:root {
  --black: #020303;
  --black-soft: #050606;
  --panel: #070909;
  --panel-soft: #0a0c0c;
  --panel-hover: #0c0f0f;

  --white: #f3f5f2;
  --text: #d2d6d1;
  --muted: #858a84;
  --muted-dark: #555a55;

  --green: #65c536;
  --green-light: #78d64a;
  --green-dark: #2f751c;
  --green-soft: rgba(101, 197, 54, 0.1);

  --red: #df6d6d;
  --orange: #ef951e;
  --purple: #7661c8;

  --border: rgba(255, 255, 255, 0.08);
  --border-soft: rgba(255, 255, 255, 0.045);

  --sidebar-width: 208px;
  --header-height: 82px;
  --footer-height: 78px;

  --shadow:
    0 22px 60px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.012);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--black);
  color: var(--white);
  font-family: "Inter", Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

/* ==========================================================
   ESTRUTURA
========================================================== */

.dashboard-app {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  background:
    radial-gradient(circle at 70% 5%, rgba(101, 197, 54, 0.018), transparent 22%),
    var(--black);
}

.dashboard-shell {
  min-width: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ==========================================================
   SIDEBAR
========================================================== */

.dashboard-sidebar {
  position: sticky;
  top: 0;
  z-index: 80;
  width: var(--sidebar-width);
  height: 100vh;
  height: 100dvh;
  padding: 20px 16px 17px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(5, 7, 7, 0.99), rgba(2, 3, 3, 0.995));
}

.sidebar-header {
  min-height: 65px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.sidebar-logo {
  width: 142px;
  display: inline-flex;
}

.sidebar-logo img {
  width: 100%;
  height: auto;
}

.sidebar-close {
  display: none;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
}

.sidebar-close svg {
  width: 18px;
  height: 18px;
}

.sidebar-navigation {
  margin-top: 17px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.sidebar-link {
  min-height: 38px;
  padding: 0 13px;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid transparent;
  border-radius: 5px;
  color: rgba(255, 255, 255, 0.57);
  font-size: 11px;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.sidebar-link:hover {
  border-color: rgba(101, 197, 54, 0.1);
  background: rgba(101, 197, 54, 0.045);
  color: rgba(255, 255, 255, 0.88);
  transform: translateX(2px);
}

.sidebar-link.is-active {
  border-color: rgba(101, 197, 54, 0.2);
  background:
    linear-gradient(
      90deg,
      rgba(55, 133, 32, 0.72),
      rgba(36, 95, 22, 0.68)
    );
  color: #fff;
  box-shadow:
    inset 0 0 18px rgba(101, 197, 54, 0.06),
    0 7px 18px rgba(0, 0, 0, 0.16);
}

.sidebar-link__icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-link__icon svg {
  width: 17px;
  height: 17px;
  stroke-width: 1.45;
}

.sidebar-bottom {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.company-card {
  padding: 14px 13px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background:
    linear-gradient(
      145deg,
      rgba(10, 12, 12, 0.96),
      rgba(5, 7, 7, 0.98)
    );
  box-shadow: var(--shadow);
}

.company-card__header {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.company-card__header > span {
  display: flex;
  flex-direction: column;
}

.company-card__header strong {
  color: rgba(255, 255, 255, 0.88);
  font-size: 11px;
  font-weight: 500;
}

.company-card__header small {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.38);
  font-size: 9px;
}

.company-card__header svg {
  width: 13px;
  height: 13px;
  color: rgba(255, 255, 255, 0.4);
}

.company-card__document {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.34);
  font-size: 8px;
}

.company-card__status {
  margin-top: 15px;
  padding: 10px 9px;
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr) 13px;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(101, 197, 54, 0.12);
  border-radius: 5px;
  background: rgba(101, 197, 54, 0.035);
}

.company-card__status-icon {
  width: 25px;
  height: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
}

.company-card__status-icon svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.4;
}

.company-card__status > span:nth-child(2) {
  display: flex;
  flex-direction: column;
}

.company-card__status strong {
  color: var(--green);
  font-size: 8px;
  font-weight: 500;
}

.company-card__status small {
  margin-top: 1px;
  color: rgba(101, 197, 54, 0.65);
  font-size: 8px;
}

.company-card__arrow {
  width: 12px;
  height: 12px;
  color: var(--green);
}

.logout-button {
  min-height: 42px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.012);
  color: rgba(255, 255, 255, 0.58);
  font-size: 11px;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    color 160ms ease;
}

.logout-button:hover {
  border-color: rgba(223, 109, 109, 0.22);
  background: rgba(223, 109, 109, 0.04);
  color: var(--red);
}

.logout-button svg {
  width: 17px;
  height: 17px;
  stroke-width: 1.45;
}

.sidebar-overlay {
  display: none;
}

/* ==========================================================
   CABEÇALHO
========================================================== */

.dashboard-header {
  min-height: var(--header-height);
  padding: 18px 24px 15px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  border-bottom: 1px solid var(--border-soft);
  background: rgba(2, 3, 3, 0.88);
  backdrop-filter: blur(14px);
}

.dashboard-header__left,
.dashboard-header__right {
  display: flex;
  align-items: center;
}

.dashboard-header__left {
  gap: 15px;
}

.dashboard-header__right {
  gap: 22px;
}

.mobile-menu-button {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.015);
  cursor: pointer;
}

.mobile-menu-button svg {
  width: 19px;
  height: 19px;
}

.dashboard-greeting h1 {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.94);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.025em;
}

.dashboard-greeting p {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.43);
  font-size: 10px;
}

.verified-dot {
  width: 15px;
  height: 15px;
  color: var(--green);
}

.verified-dot svg {
  width: 15px;
  height: 15px;
  fill: var(--green);
  stroke: #071004;
}

.header-status {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-status__item {
  display: flex;
  align-items: center;
  gap: 9px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.header-status__item svg {
  width: 20px;
  height: 20px;
  color: var(--green);
  stroke-width: 1.35;
}

.header-status__divider {
  width: 1px;
  height: 24px;
  background: var(--border);
}

.profile-avatar {
  width: 39px;
  height: 39px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.055),
      rgba(255, 255, 255, 0.015)
    );
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  cursor: pointer;
}

/* ==========================================================
   CONTEÚDO
========================================================== */

.dashboard-content {
  width: 100%;
  padding: 16px 24px 20px 28px;
  flex: 1;
}

/* ==========================================================
   CARDS DE SALDO
========================================================== */

.balance-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(150px, 1fr));
  gap: 10px;
}

.balance-card,
.kpi-card,
.dashboard-panel {
  border: 1px solid var(--border);
  background:
    linear-gradient(
      145deg,
      rgba(8, 10, 10, 0.97),
      rgba(4, 6, 6, 0.985)
    );
  box-shadow: var(--shadow);
}

.balance-card {
  min-height: 82px;
  padding: 13px 14px 11px;
  display: flex;
  flex-direction: column;
  border-radius: 5px;
  transition:
    border-color 180ms ease,
    transform 180ms ease,
    background-color 180ms ease;
}

.balance-card:hover,
.kpi-card:hover,
.dashboard-panel:hover {
  border-color: rgba(101, 197, 54, 0.15);
}

.balance-card:hover {
  transform: translateY(-2px);
}

.balance-card__label {
  color: rgba(255, 255, 255, 0.39);
  font-size: 9px;
}

.balance-card__value {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(13px, 1.1vw, 17px);
  font-weight: 400;
  line-height: 1.3;
  white-space: nowrap;
}

.balance-card__change {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 9px;
}

.balance-card__change svg {
  width: 11px;
  height: 11px;
  stroke-width: 1.8;
}

.is-positive {
  color: var(--green) !important;
}

.is-negative {
  color: var(--red) !important;
}

/* ==========================================================
   PAINÉIS PRINCIPAIS
========================================================== */

.dashboard-main-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: minmax(420px, 1.75fr) minmax(260px, 0.82fr) minmax(300px, 1.08fr);
  gap: 10px;
}

.dashboard-panel {
  min-width: 0;
  border-radius: 5px;
  overflow: hidden;
}

.panel-header {
  min-height: 42px;
  padding: 11px 13px 5px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.panel-header h2 {
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  font-weight: 500;
}

.panel-header p {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.34);
  font-size: 8px;
}

.panel-link {
  color: var(--green);
  font-size: 8px;
  transition: opacity 160ms ease;
}

.panel-link:hover {
  opacity: 0.72;
}

.period-selector {
  min-height: 27px;
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border-soft);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.012);
  color: rgba(255, 255, 255, 0.5);
  font-size: 8px;
  cursor: pointer;
}

.period-selector svg {
  width: 11px;
  height: 11px;
}

.patrimony-panel {
  min-height: 232px;
}

.patrimony-chart-wrapper {
  position: relative;
  height: 188px;
  padding: 0 8px 6px 4px;
}

.patrimony-chart-wrapper canvas {
  width: 100% !important;
  height: 100% !important;
}

/* ==========================================================
   ATIVOS
========================================================== */

.assets-panel {
  min-height: 232px;
}

.assets-content {
  height: 184px;
  padding: 5px 13px 14px;
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(100px, 0.88fr);
  align-items: center;
  gap: 10px;
}

.assets-chart-wrapper {
  position: relative;
  width: min(138px, 100%);
  aspect-ratio: 1;
  margin: 0 auto;
}

.assets-chart-wrapper canvas {
  width: 100% !important;
  height: 100% !important;
}

.assets-chart-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.assets-chart-center span {
  color: rgba(255, 255, 255, 0.75);
  font-size: 10px;
}

.assets-chart-center strong {
  color: rgba(255, 255, 255, 0.94);
  font-size: 17px;
  font-weight: 400;
}

.assets-chart-center small {
  color: rgba(255, 255, 255, 0.34);
  font-size: 8px;
}

.assets-legend {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.assets-legend__item {
  display: grid;
  grid-template-columns: 8px minmax(35px, 1fr) auto;
  align-items: center;
  gap: 7px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 8px;
}

.assets-legend__item strong {
  color: rgba(255, 255, 255, 0.66);
  font-size: 8px;
  font-weight: 500;
}

.asset-color {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.asset-color--brl {
  background: #52bd3c;
}

.asset-color--usdt {
  background: #138a57;
}

.asset-color--btc {
  background: #ed8c19;
}

.asset-color--eth {
  background: #8c7eda;
}

.asset-color--usdc {
  background: #564caf;
}

.asset-color--others {
  background: #b8bab7;
}

/* ==========================================================
   ATIVIDADES
========================================================== */

.activity-panel {
  min-height: 232px;
}

.activity-list {
  padding: 1px 12px 8px;
  display: flex;
  flex-direction: column;
}

.activity-item {
  min-height: 31px;
  padding: 4px 0;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border-soft);
}

.activity-item:last-child {
  border-bottom: 0;
}

.activity-item__icon {
  width: 27px;
  height: 27px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.065);
  color: rgba(255, 255, 255, 0.76);
}

.activity-item__icon svg {
  width: 15px;
  height: 15px;
  stroke-width: 1.5;
}

.activity-item__icon--pix {
  background: rgba(101, 197, 54, 0.16);
  color: var(--green);
}

.activity-item__icon--btc {
  background: rgba(239, 149, 30, 0.88);
  color: #fff;
}

.activity-item__icon--usdt {
  background: rgba(38, 158, 104, 0.9);
  color: #fff;
}

.activity-item__content,
.activity-item__value {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.activity-item__content strong,
.activity-item__value strong {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.78);
  font-size: 8px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activity-item__content small,
.activity-item__value small {
  margin-top: 1px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.34);
  font-size: 7px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activity-item__value {
  align-items: flex-end;
  text-align: right;
}

/* ==========================================================
   KPIs
========================================================== */

.kpi-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(6, minmax(145px, 1fr));
  gap: 8px;
}

.kpi-card {
  min-height: 67px;
  padding: 10px 12px 8px;
  display: flex;
  flex-direction: column;
  border-radius: 5px;
}

.kpi-card > span {
  color: rgba(255, 255, 255, 0.38);
  font-size: 8px;
}

.kpi-card > strong {
  margin-top: 3px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.84);
  font-size: 12px;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kpi-card > small {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 8px;
}

.kpi-card > small svg {
  width: 10px;
  height: 10px;
}

/* ==========================================================
   MÓDULOS INFERIORES
========================================================== */

.operations-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns:
    minmax(300px, 1.12fr)
    minmax(300px, 1.1fr)
    minmax(250px, 0.9fr)
    minmax(280px, 1.03fr);
  gap: 10px;
}

.operations-grid > .dashboard-panel {
  min-height: 270px;
}

/* ==========================================================
   PIX EM TEMPO REAL
========================================================== */

.pix-flow-panel {
  display: flex;
  flex-direction: column;
}

.pix-flow {
  margin-top: 9px;
  padding: 0 15px;
  display: grid;
  grid-template-columns:
    minmax(41px, 1fr)
    13px
    minmax(41px, 1fr)
    13px
    minmax(41px, 1fr)
    13px
    minmax(41px, 1fr)
    13px
    minmax(41px, 1fr);
  align-items: start;
  gap: 2px;
}

.pix-flow__step {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.pix-flow__icon {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background:
    radial-gradient(
      circle,
      rgba(255, 255, 255, 0.045),
      rgba(255, 255, 255, 0.008)
    );
  color: rgba(255, 255, 255, 0.73);
}

.pix-flow__icon svg {
  width: 23px;
  height: 23px;
  stroke-width: 1.35;
}

.pix-flow__icon strong {
  font-size: 16px;
  font-weight: 400;
}

.pix-flow__icon--green {
  border: 0;
  background: var(--green);
  color: #071004;
}

.pix-flow__icon--usdt {
  border-color: rgba(101, 197, 54, 0.55);
  background:
    radial-gradient(
      circle,
      rgba(101, 197, 54, 0.22),
      rgba(101, 197, 54, 0.035)
    );
  color: var(--green);
  box-shadow: 0 0 22px rgba(101, 197, 54, 0.08);
}

.pix-flow__step small {
  color: rgba(255, 255, 255, 0.43);
  font-size: 7px;
  white-space: nowrap;
}

.pix-flow__arrow {
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
}

.pix-flow__arrow svg {
  width: 12px;
  height: 12px;
}

.pix-flow__description {
  margin-top: auto;
  color: rgba(255, 255, 255, 0.78);
  font-size: 11px;
  line-height: 1.65;
  text-align: center;
}

.outline-button {
  min-width: 140px;
  min-height: 31px;
  margin: 13px auto 14px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.01);
  color: rgba(255, 255, 255, 0.7);
  font-size: 8px;
  transition:
    border-color 160ms ease,
    color 160ms ease,
    background-color 160ms ease;
}

.outline-button:hover {
  border-color: rgba(101, 197, 54, 0.45);
  background: rgba(101, 197, 54, 0.035);
  color: var(--green);
}

/* ==========================================================
   LIQUIDEZ
========================================================== */

.liquidity-panel {
  position: relative;
  display: flex;
  flex-direction: column;
}

.liquidity-map {
  position: relative;
  height: 145px;
  margin: 0 10px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle, rgba(101, 197, 54, 0.1), transparent 58%),
    linear-gradient(180deg, rgba(8, 12, 10, 0.9), rgba(4, 6, 6, 0.95));
}

.liquidity-map::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 7, 7, 0.05), rgba(5, 7, 7, 0.58)),
    linear-gradient(90deg, rgba(5, 7, 7, 0.3), transparent 30%, rgba(5, 7, 7, 0.28));
  pointer-events: none;
}

.liquidity-map > svg {
  width: min(130px, 48%);
  height: auto;
  color: rgba(101, 197, 54, 0.45);
  stroke-width: 0.75;
}

.liquidity-metrics {
  margin-top: auto;
  padding: 8px 13px 12px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  border-top: 1px solid var(--border-soft);
}

.liquidity-metrics > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.liquidity-metrics span {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.3);
  font-size: 6px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.liquidity-metrics strong {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.79);
  font-size: 9px;
  font-weight: 400;
}

.liquidity-details {
  position: absolute;
  right: 13px;
  bottom: 8px;
}

/* ==========================================================
   CONVERSÃO
========================================================== */

.conversion-panel {
  display: flex;
  flex-direction: column;
}

.quick-conversion-form {
  position: relative;
  padding: 8px 12px 12px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.conversion-box {
  padding: 8px 9px 7px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.012);
}

.conversion-box label {
  display: block;
  color: rgba(255, 255, 255, 0.43);
  font-size: 7px;
}

.conversion-box__content {
  margin-top: 5px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 7px;
}

.currency-selector {
  display: flex;
  align-items: center;
  gap: 5px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  font-size: 9px;
  cursor: pointer;
}

.currency-selector svg {
  width: 10px;
  height: 10px;
}

.currency-selector__icon,
.currency-selector__coin {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(101, 197, 54, 0.12);
  color: var(--green);
  font-size: 11px;
}

.conversion-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  text-align: right;
}

.conversion-box small {
  display: block;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.27);
  font-size: 6px;
}

.conversion-swap {
  position: relative;
  z-index: 2;
  width: 25px;
  height: 25px;
  margin: -4px 6px -4px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(101, 197, 54, 0.2);
  border-radius: 50%;
  background: #071008;
  color: var(--green);
  cursor: pointer;
}

.conversion-swap svg {
  width: 12px;
  height: 12px;
}

.convert-button {
  min-height: 32px;
  margin-top: auto;
  border: 0;
  border-radius: 4px;
  background:
    linear-gradient(135deg, #4caf2d, #286c19);
  color: #fff;
  font-size: 8px;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(38, 102, 24, 0.17);
  transition:
    transform 160ms ease,
    filter 160ms ease;
}

.convert-button:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.conversion-rate {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.28);
  font-size: 6px;
  text-align: center;
}

/* ==========================================================
   COMPLIANCE
========================================================== */

.compliance-panel {
  display: flex;
  flex-direction: column;
}

.compliance-content {
  padding: 8px 13px 3px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px;
  align-items: center;
  gap: 10px;
}

.compliance-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  list-style: none;
}

.compliance-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 8px;
}

.compliance-list li svg {
  width: 13px;
  height: 13px;
  color: var(--green);
  fill: rgba(101, 197, 54, 0.12);
}

.compliance-shield {
  position: relative;
  width: 105px;
  height: 115px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.42);
}

.compliance-shield::before {
  content: "";
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(101, 197, 54, 0.04);
  filter: blur(12px);
}

.compliance-shield svg {
  position: relative;
  width: 92px;
  height: 92px;
  stroke-width: 0.85;
  filter: drop-shadow(0 0 10px rgba(101, 197, 54, 0.08));
}

.certification-grid {
  margin-top: auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--border);
}

.certification-grid > div {
  min-height: 49px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--border);
  text-align: center;
}

.certification-grid > div:last-child {
  border-right: 0;
}

.certification-grid strong {
  color: rgba(255, 255, 255, 0.66);
  font-size: 11px;
  font-weight: 400;
}

.certification-grid span {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.34);
  font-size: 7px;
}

/* ==========================================================
   RODAPÉ
========================================================== */

.dashboard-footer {
  min-height: var(--footer-height);
  padding: 12px 25px 12px 20px;
  display: grid;
  grid-template-columns: minmax(250px, 1fr) auto minmax(360px, 1fr);
  align-items: center;
  gap: 24px;
  border-top: 1px solid var(--border);
  background: #030404;
}

.dashboard-footer__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dashboard-footer__symbol {
  color: var(--green);
  font-size: 31px;
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.12em;
}

.dashboard-footer__brand > div {
  display: flex;
  flex-direction: column;
}

.dashboard-footer__brand strong {
  color: rgba(255, 255, 255, 0.79);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.14em;
}

.dashboard-footer__brand strong span {
  color: var(--green);
}

.dashboard-footer__brand small {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.32);
  font-size: 6px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.dashboard-footer__copyright {
  color: rgba(255, 255, 255, 0.34);
  font-size: 8px;
  text-align: center;
}

.dashboard-footer__features {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
}

.dashboard-footer__features > div {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.43);
  font-size: 8px;
}

.dashboard-footer__features svg {
  width: 19px;
  height: 19px;
  color: var(--green);
  stroke-width: 1.35;
}

.dashboard-footer__divider {
  width: 1px;
  height: 25px;
  background: var(--border-soft);
}

/* ==========================================================
   ACESSIBILIDADE
========================================================== */

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid rgba(101, 197, 54, 0.72);
  outline-offset: 3px;
}

/* ==========================================================
   RESPONSIVIDADE
========================================================== */

@media (max-width: 1450px) {
  :root {
    --sidebar-width: 196px;
  }

  .dashboard-content {
    padding-right: 18px;
    padding-left: 20px;
  }

  .balance-grid {
    grid-template-columns: repeat(3, minmax(150px, 1fr));
  }

  .dashboard-main-grid {
    grid-template-columns: minmax(480px, 1.7fr) minmax(260px, 0.82fr);
  }

  .activity-panel {
    grid-column: 1 / -1;
  }

  .activity-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 15px;
  }

  .operations-grid {
    grid-template-columns: repeat(2, minmax(300px, 1fr));
  }
}

@media (max-width: 1180px) {
  .dashboard-header__right .header-status {
    display: none;
  }

  .kpi-grid {
    grid-template-columns: repeat(3, minmax(150px, 1fr));
  }

  .dashboard-footer {
    grid-template-columns: 1fr auto;
  }

  .dashboard-footer__copyright {
    display: none;
  }
}

@media (max-width: 980px) {
  .dashboard-app {
    display: block;
  }

  .dashboard-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 120;
    width: 245px;
    transform: translateX(-105%);
    transition: transform 220ms ease;
  }

  .dashboard-sidebar.is-open {
    transform: translateX(0);
  }

  .sidebar-close,
  .mobile-menu-button {
    display: flex;
  }

  .sidebar-overlay {
    position: fixed;
    inset: 0;
    z-index: 110;
    display: block;
    visibility: hidden;
    background: rgba(0, 0, 0, 0.64);
    opacity: 0;
    backdrop-filter: blur(3px);
    transition:
      opacity 220ms ease,
      visibility 220ms ease;
  }

  .sidebar-overlay.is-visible {
    visibility: visible;
    opacity: 1;
  }

  body.sidebar-open {
    overflow: hidden;
  }

  .dashboard-main-grid {
    grid-template-columns: 1fr;
  }

  .activity-panel {
    grid-column: auto;
  }

  .activity-list {
    display: flex;
  }

  .dashboard-footer {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .dashboard-footer__features {
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media (max-width: 760px) {
  .dashboard-header {
    min-height: 72px;
    padding: max(13px, env(safe-area-inset-top)) 15px 13px;
  }

  .dashboard-content {
    padding: 14px 12px 18px;
  }

  .dashboard-greeting h1 {
    font-size: 16px;
  }

  .balance-grid,
  .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .operations-grid {
    grid-template-columns: 1fr;
  }

  .assets-content {
    grid-template-columns: 1fr;
    height: auto;
  }

  .assets-panel {
    min-height: 350px;
  }

  .assets-chart-wrapper {
    width: 155px;
  }

  .assets-legend {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-footer__features {
    gap: 13px;
  }

  .dashboard-footer__divider {
    display: none;
  }

  .mobile-menu-button,
  .profile-avatar,
  .outline-button,
  .convert-button {
    min-width: 44px;
    min-height: 44px;
  }

  .conversion-box input {
    font-size: 16px;
  }
}

@media (max-width: 500px) {
  .profile-avatar {
    width: 35px;
    height: 35px;
  }

  .balance-grid,
  .kpi-grid {
    grid-template-columns: 1fr;
  }

  .balance-card {
    min-height: 76px;
  }

  .dashboard-greeting p {
    display: none;
  }

  .balance-card__value {
    white-space: normal;
  }

  .patrimony-chart-wrapper {
    height: 210px;
  }

  .activity-item {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .activity-item__value {
    grid-column: 2;
    align-items: flex-start;
    text-align: left;
  }

  .pix-flow {
    padding: 0 9px;
  }

  .pix-flow__icon {
    width: 38px;
    height: 38px;
  }

  .pix-flow__arrow {
    height: 38px;
  }

  .liquidity-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .compliance-content {
    grid-template-columns: 1fr;
  }

  .compliance-shield {
    display: none;
  }

  .dashboard-footer__features {
    flex-direction: column;
    align-items: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
