/* OrbePay Dashboard — visual completo */
:root {
  --bg: #030a14;
  --bg-2: #061223;
  --sidebar: #07111f;
  --card: rgba(10, 22, 40, 0.82);
  --card-border: rgba(0, 184, 255, 0.16);
  --ink: #eef5ff;
  --ink-soft: #a9bdd6;
  --ink-muted: #7d93ad;
  --line: rgba(0, 184, 255, 0.14);
  --accent: #0099ff;
  --accent-2: #00b8ff;
  --accent-3: #33d6ff;
  --success: #34d399;
  --glow: 0 0 24px rgba(0, 153, 255, 0.28);
  --font: "Syne", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --font-num: "Manrope", "Segoe UI", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-hover: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast: 180ms;
  --dur-med: 320ms;
  --dur-slow: 380ms;
}

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

html,
body {
  min-height: 100%;
  touch-action: pan-y;
  overscroll-behavior: none;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background:
    radial-gradient(ellipse 55% 40% at 85% 0%, rgba(0, 153, 255, 0.16), transparent 55%),
    radial-gradient(ellipse 45% 35% at 0% 100%, rgba(0, 100, 200, 0.12), transparent 50%),
    linear-gradient(180deg, #040c18 0%, #030a14 100%);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

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

button,
input {
  font: inherit;
  color: inherit;
}

button {
  border: none;
  background: none;
  cursor: pointer;
}

.panel {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  background: linear-gradient(180deg, #06101d 0%, #040b16 100%);
  border-right: 1px solid var(--line);
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  padding: 4px 8px 10px;
}

.sidebar-logo img {
  height: 40px;
  width: auto;
  filter: drop-shadow(0 4px 14px rgba(0, 153, 255, 0.4));
}

.side-label {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--ink-muted);
  font-weight: 800;
  padding: 4px 12px;
}

.side-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.side-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition:
    transform var(--dur-fast) var(--ease-hover),
    background var(--dur-fast) var(--ease-hover),
    color var(--dur-fast) var(--ease-hover),
    box-shadow var(--dur-fast) var(--ease-hover),
    border-color var(--dur-fast) var(--ease-hover);
  position: relative;
}

.side-nav a svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.side-nav a:hover {
  background: rgba(0, 153, 255, 0.08);
  color: #fff;
}

.side-nav a.active {
  background: linear-gradient(90deg, rgba(0, 153, 255, 0.22), rgba(0, 153, 255, 0.08));
  color: #fff;
  border-color: rgba(0, 184, 255, 0.25);
  box-shadow: var(--glow);
}

.side-nav a.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 0 4px 4px 0;
  background: var(--accent-3);
  box-shadow: 0 0 12px rgba(51, 214, 255, 0.8);
}

.side-cta {
  margin-top: auto;
  background: linear-gradient(160deg, rgba(0, 153, 255, 0.16), rgba(0, 80, 160, 0.08));
  border: 1px solid rgba(0, 184, 255, 0.28);
  border-radius: 18px;
  padding: 16px;
  box-shadow: inset 0 0 30px rgba(0, 153, 255, 0.08);
}

.side-cta__icon {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.side-cta strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.side-cta p {
  color: var(--ink-muted);
  font-size: 0.8rem;
  line-height: 1.4;
  margin-bottom: 14px;
}

/* Main */
.main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  position: relative;
}

.topbar {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 22px;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 12, 24, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.search {
  flex: 1;
  max-width: 460px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  color: var(--ink-muted);
}

.search input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  color: var(--ink);
  font-size: 0.9rem;
}

.search input::placeholder {
  color: rgba(169, 189, 214, 0.45);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chip {
  height: 38px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.chip-sm {
  height: 32px;
  font-size: 0.78rem;
}

.notify {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.03);
}

.notify span {
  position: absolute;
  top: 6px;
  right: 6px;
  min-width: 16px;
  height: 16px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  box-shadow: 0 0 10px rgba(0, 153, 255, 0.7);
}

.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 800;
  background: linear-gradient(135deg, #33d6ff, #0099ff);
  color: #fff;
  box-shadow: 0 0 16px rgba(0, 153, 255, 0.45);
}

.logout-link {
  color: var(--ink-muted);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 8px 4px;
}

.logout-link:hover {
  color: var(--accent-3);
}

.content {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.content.is-locked {
  filter: blur(2.2px);
  pointer-events: none;
  user-select: none;
  opacity: 0.78;
}

.content-head h1 {
  font-family: var(--font);
  font-size: 1.55rem;
  letter-spacing: -0.02em;
}

.content-head p {
  color: var(--ink-muted);
  font-size: 0.92rem;
  margin-top: 4px;
}

/* KPI */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.kpi-card,
.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(10px);
}

.kpi-card {
  position: relative;
  overflow: hidden;
}

.kpi-card::after {
  content: "";
  position: absolute;
  inset: auto -20% -40% auto;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(0, 153, 255, 0.18), transparent 70%);
  pointer-events: none;
}

.kpi-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.kpi-top span {
  color: var(--ink-muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.kpi-card strong {
  display: block;
  font-family: var(--font);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.kpi-card em.up {
  font-style: normal;
  color: var(--success);
  font-size: 0.78rem;
  font-weight: 700;
}

.kpi-mini.bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 22px;
}

.kpi-mini.bars i {
  width: 4px;
  border-radius: 2px;
  background: linear-gradient(180deg, #33d6ff, #0099ff);
  display: block;
}

.kpi-mini.bars i:nth-child(1) { height: 8px; }
.kpi-mini.bars i:nth-child(2) { height: 14px; }
.kpi-mini.bars i:nth-child(3) { height: 10px; }
.kpi-mini.bars i:nth-child(4) { height: 18px; }
.kpi-mini.bars i:nth-child(5) { height: 12px; }

.kpi-mini.line {
  width: 34px;
  height: 18px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, transparent, #33d6ff, transparent);
  box-shadow: 0 0 10px rgba(0, 184, 255, 0.5);
  opacity: 0.9;
}

.kpi-mini.coins {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--accent-3);
  background: rgba(0, 153, 255, 0.15);
  border: 1px solid rgba(0, 184, 255, 0.3);
  font-size: 0.9rem;
}

.kpi-mini.ring {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 3px solid rgba(0, 153, 255, 0.2);
  border-top-color: #33d6ff;
  border-right-color: #0099ff;
  box-shadow: 0 0 10px rgba(0, 153, 255, 0.4);
}

/* Mid grid */
.mid-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr 0.85fr;
  gap: 12px;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.card-head h3 {
  font-size: 0.98rem;
  font-weight: 700;
}

.link-accent {
  color: var(--accent-3);
  font-size: 0.82rem;
  font-weight: 700;
}

.link-accent:hover {
  color: #7ae0ff;
}

.line-chart {
  position: relative;
  height: 230px;
  cursor: crosshair;
}

.line-chart svg {
  width: 100%;
  height: 190px;
  display: block;
  overflow: visible;
}

.line-chart .area {
  fill: url(#lineFill);
  opacity: 1;
}

.line-chart .stroke {
  fill: none;
  stroke: #33d6ff;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 8px rgba(0, 184, 255, 0.8));
  opacity: 1;
}

.line-chart .stroke.is-draw {
  stroke-dasharray: var(--path-len, 1200);
  stroke-dashoffset: var(--path-len, 1200);
  animation: chartDraw 1.1s ease forwards;
}

@keyframes chartDraw {
  to { stroke-dashoffset: 0; }
}

@keyframes chartAreaIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.line-chart .chart-point {
  fill: #fff;
  stroke: #0099ff;
  stroke-width: 2.5;
  filter: drop-shadow(0 0 8px rgba(0, 153, 255, 0.9));
  opacity: 0;
  transform-origin: center;
  transition: r 0.15s ease, opacity 0.2s ease;
}

.line-chart .chart-point.is-visible {
  opacity: 1;
  animation: pointPop 0.35s ease both;
}

.line-chart .chart-point.is-active {
  r: 7;
  fill: #33d6ff;
  stroke: #fff;
  stroke-width: 3;
}

@keyframes pointPop {
  from { opacity: 0; r: 0; }
  to { opacity: 1; }
}

.line-chart .hit-area {
  fill: transparent;
  cursor: pointer;
}

.chart-crosshair {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 190px;
  background: linear-gradient(180deg, rgba(51, 214, 255, 0.8), rgba(51, 214, 255, 0.05));
  pointer-events: none;
  z-index: 2;
  will-change: transform;
  transition: transform 0.08s var(--ease-out, ease-out);
}

.chart-crosshair[hidden] {
  display: none !important;
}

.chart-tooltip {
  position: absolute;
  top: 0;
  left: 0;
  transform: translate3d(0, 0, 0);
  will-change: transform, opacity;
  background: rgba(6, 18, 34, 0.96);
  border: 1px solid rgba(0, 184, 255, 0.45);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 0.75rem;
  color: var(--ink-soft);
  box-shadow: 0 0 24px rgba(0, 153, 255, 0.35);
  line-height: 1.4;
  pointer-events: none;
  z-index: 3;
  min-width: 110px;
  text-align: center;
  opacity: 0;
  transition: opacity 0.15s var(--ease-out, ease), transform 0.08s var(--ease-out, ease-out);
}

.chart-tooltip.is-on {
  opacity: 1;
}

.chart-tooltip[hidden] {
  display: none !important;
}

.chart-tooltip .tip-day {
  display: block;
  font-weight: 700;
  color: var(--accent-3);
  margin-bottom: 2px;
  letter-spacing: 0.02em;
}

.chart-tooltip strong {
  color: #fff;
  font-size: 0.95rem;
  font-family: var(--font);
}

.chart-labels {
  display: flex;
  justify-content: space-between;
  color: var(--ink-muted);
  font-size: 0.72rem;
  padding: 0 4px;
}

.kpi-card strong {
  transition: color 0.25s ease;
}

.kpi-card strong.is-tick {
  animation: kpiFlash 0.45s ease;
}

@keyframes kpiFlash {
  0% { color: #33d6ff; transform: scale(1.03); }
  100% { color: inherit; transform: scale(1); }
}

.live-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--success);
}

.live-dot i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.8);
  animation: livePulse 1.4s ease infinite;
}

@keyframes livePulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.55; }
}

.donut svg circle {
  transition: stroke-dasharray 0.6s ease, stroke-dashoffset 0.6s ease;
}

.donut-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}

.donut {
  position: relative;
  width: 140px;
  height: 140px;
  flex-shrink: 0;
}

.donut svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.donut circle {
  stroke-linecap: round;
}

.donut-center {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
}

.donut-center strong {
  font-size: 0.85rem;
}

.donut-center span {
  color: var(--accent-3);
  font-weight: 800;
  font-size: 0.95rem;
}

.legend {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.legend li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--ink-soft);
}

.legend i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.legend b {
  margin-left: auto;
  color: #fff;
  font-weight: 700;
}

.saldo-card {
  display: flex;
  flex-direction: column;
}

.saldo-value {
  font-family: var(--font);
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 8px 0 12px;
  color: #f3f8ff;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  min-height: 1.2em;
  line-height: 1.2;
}

.saldo-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  margin-bottom: 8px;
}

.saldo-bar__fill {
  width: 72%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #34d399, #10b981);
  box-shadow: 0 0 12px rgba(52, 211, 153, 0.5);
}

.saldo-note {
  color: var(--success);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: auto;
  padding-bottom: 16px;
}

/* Bottom */
.bottom-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 0.9fr;
  gap: 12px;
}

.tx-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tx-list li {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.tx-avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: #fff;
  background: color-mix(in srgb, var(--c) 35%, #0a1628);
  border: 1px solid color-mix(in srgb, var(--c) 55%, transparent);
}

.tx-list strong {
  display: block;
  font-size: 0.9rem;
}

.tx-list small {
  color: var(--ink-muted);
  font-size: 0.75rem;
}

.tx-right {
  text-align: right;
}

.tx-right strong {
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 0.7rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.badge.ok {
  background: rgba(52, 211, 153, 0.14);
  color: var(--success);
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.perf-grid {
  display: grid;
  gap: 14px;
}

.perf-grid > div {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  padding: 14px;
}

.perf-grid span {
  display: block;
  color: var(--ink-muted);
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.perf-grid strong {
  font-family: var(--font);
  font-size: 1.25rem;
  display: block;
  margin-bottom: 10px;
}

.mini-spark.line {
  height: 28px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, #33d6ff, transparent);
  opacity: 0.85;
  box-shadow: 0 0 12px rgba(0, 184, 255, 0.35);
}

.mini-spark.bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 28px;
}

.mini-spark.bars i {
  flex: 1;
  border-radius: 3px;
  background: linear-gradient(180deg, #33d6ff, #0066cc);
}

.mini-spark.bars i:nth-child(1) { height: 40%; }
.mini-spark.bars i:nth-child(2) { height: 70%; }
.mini-spark.bars i:nth-child(3) { height: 55%; }
.mini-spark.bars i:nth-child(4) { height: 90%; }
.mini-spark.bars i:nth-child(5) { height: 65%; }

.status-all {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--success);
  font-size: 0.84rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.status-all i,
.status-list em i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.7);
  display: inline-block;
}

.status-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.status-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.86rem;
  color: var(--ink-soft);
}

.status-list em {
  font-style: normal;
  color: var(--success);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  padding: 11px 16px;
  font-weight: 700;
  transition:
    transform var(--dur-fast) var(--ease-hover),
    filter var(--dur-fast) var(--ease-hover),
    box-shadow var(--dur-fast) var(--ease-hover);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-block {
  width: 100%;
}

.btn-accent {
  background: linear-gradient(135deg, #33d6ff 0%, #0099ff 52%, #0066cc 100%);
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 153, 255, 0.4);
}

.btn-accent:hover {
  filter: brightness(1.05);
}

/* Modal KYC */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(2, 8, 16, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal-backdrop.is-hidden,
.modal-backdrop[hidden] {
  display: none !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

.modal {
  width: min(520px, 100%);
  background: #0c1628;
  border: 1px solid rgba(0, 184, 255, 0.22);
  border-radius: 20px;
  padding: 28px 26px 22px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  position: relative;
  text-align: center;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--line);
  color: var(--ink-muted);
  display: grid;
  place-items: center;
}

.modal-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.modal-icon {
  width: 52px;
  height: 52px;
  margin: 4px auto 16px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(51, 214, 255, 0.25), rgba(0, 153, 255, 0.18));
  border: 1px solid rgba(0, 184, 255, 0.35);
  color: var(--accent-3);
}

.modal-icon svg {
  width: 26px;
  height: 26px;
}

.modal h2 {
  font-family: var(--font);
  font-size: 1.35rem;
  margin-bottom: 10px;
}

.modal p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.55;
  margin-bottom: 22px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
}

.modal-actions .btn-accent {
  min-width: 180px;
}

@media (max-width: 1200px) {
  .mid-grid,
  .bottom-grid {
    grid-template-columns: 1fr 1fr;
  }

  .saldo-card,
  .status-card {
    grid-column: 1 / -1;
  }
}

@media (max-width: 960px) {
  .panel {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: none;
  }

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

  .mid-grid,
  .bottom-grid {
    grid-template-columns: 1fr;
  }

  .content {
    padding: 16px;
  }
}

@media (max-width: 560px) {
  .kpi-grid {
    grid-template-columns: 1fr;
  }

  .search {
    display: none;
  }

  .chip {
    display: none;
  }

  .modal {
    text-align: left;
  }

  .modal-actions {
    justify-content: stretch;
  }

  .modal-actions .btn-accent {
    width: 100%;
  }
}

/* ===== Restore: alert / hidden / dropdown / tables / KYC ===== */
.alert-banner {
  background: #dc2626;
  color: #fff;
  text-align: center;
  font-size: 0.92rem;
  font-weight: 700;
  padding: 10px 16px;
}
.alert-banner.is-ok { background: #059669; }
.alert-banner[hidden] { display: none !important; }

.content[hidden],
.kyc-view[hidden],
.section-view[hidden],
#dashContent[hidden],
#kycView[hidden] {
  display: none !important;
}

body.kyc-mode #dashContent,
body.kyc-mode .section-view {
  display: none !important;
}
body.kyc-mode #kycView {
  display: flex !important;
  flex-direction: column;
  gap: 16px;
}
body.kyc-mode .mobile-tabbar { display: none !important; }

.dropdown { position: relative; }
.dropdown-menu--wide { min-width: min(360px, 92vw); }
/* painel dropdown base → ui-premium.css (.dropdown-menu) */
.dropdown-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px 6px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 4px;
}
.dropdown-head button {
  width: auto;
  color: var(--accent-3);
  font-size: .78rem;
  padding: 4px 8px;
}
.profile-btn { border: none; background: none; padding: 0; cursor: pointer; }
.profile-card {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 4px;
}
.profile-card strong { display: block; font-size: .9rem; }
.profile-card small { color: var(--ink-muted); font-size: .75rem; }
.notify-list { max-height: 280px; overflow: auto; }
.notify-item { padding: 10px 12px; border-radius: 10px; cursor: pointer; }
.notify-item:hover { background: rgba(255,255,255,.04); }
.notify-item.is-unread { background: rgba(0,153,255,.08); }
.notify-item strong { display: block; font-size: .84rem; margin-bottom: 2px; }
.notify-item small { color: var(--ink-muted); font-size: .75rem; line-height: 1.35; display: block; }

.row-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.table-tools { display: flex; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.table-tools select,
.config-form input,
.config-form select,
.config-form textarea {
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  color: var(--ink);
  padding: 0 12px;
  font: inherit;
}
.config-form textarea { height: auto; padding: 12px; resize: vertical; }
.table-wrap { overflow: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: .86rem; }
.data-table th, .data-table td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid rgba(255,255,255,.05);
  white-space: nowrap;
}
.data-table th {
  color: var(--ink-muted);
  font-weight: 700;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.badge.warn {
  background: rgba(245,197,66,.14);
  color: #f5c542;
  border: 1px solid rgba(245,197,66,.3);
}
.badge.bad {
  background: rgba(251,113,133,.14);
  color: #fb7185;
  border: 1px solid rgba(251,113,133,.3);
}
.kpi-grid--3 { grid-template-columns: repeat(3, 1fr); }
.config-form { display: grid; gap: 14px; max-width: 520px; }
.form-ok { color: var(--success); font-weight: 700; font-size: .88rem; }
em.down { color: #fb7185; font-style: normal; font-size: .78rem; font-weight: 700; }
em.flat { color: var(--ink-muted); font-style: normal; font-size: .78rem; font-weight: 700; }

.kyc-view {
  width: min(820px, 100%);
  margin: 0 auto;
  padding: 22px;
  display: none;
  flex-direction: column;
  gap: 16px;
}
.kyc-view:not([hidden]) {
  /* controlled by body.kyc-mode */
}
.kyc-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  border-radius: 14px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line);
  margin-bottom: 4px;
}
.kyc-tab {
  padding: 10px 18px;
  border-radius: 10px;
  font-size: .9rem;
  font-weight: 700;
  color: var(--ink-muted);
}
.kyc-tab.is-active {
  background: rgba(255,255,255,.09);
  color: #fff;
}
.kyc-tab:disabled { opacity: .4; cursor: not-allowed; }
.kyc-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 14px 40px rgba(0,0,0,.28);
}
.kyc-card[hidden] { display: none !important; }
.kyc-card-head { margin-bottom: 22px; }
.kyc-card-head h1 {
  font-family: var(--font);
  font-size: 1.45rem;
  margin-bottom: 6px;
}
.kyc-card-head p { color: var(--ink-muted); font-size: .95rem; }
.kyc-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.kyc-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: .88rem;
  font-weight: 700;
}
.kyc-field em { color: #e11d48; font-style: normal; }
.kyc-field input,
.kyc-field select {
  height: 48px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  color: var(--ink);
  padding: 0 14px;
  font-weight: 500;
  outline: none;
}
.kyc-check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0 22px;
  font-size: .92rem;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
}
.kyc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 50px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #33d6ff 0%, #0099ff 55%, #0077cc 100%);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 10px 28px rgba(0,153,255,.35);
  cursor: pointer;
}
.kyc-btn:disabled {
  opacity: .4;
  cursor: not-allowed;
  box-shadow: none;
  background: #64748b;
}
.kyc-btn-ghost {
  height: 50px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  color: var(--ink-soft);
  font-weight: 700;
}
.kyc-actions {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  margin-top: 8px;
}
.kyc-error { color: #fb7185; font-size: .86rem; font-weight: 700; margin-bottom: 12px; }
.kyc-uploads { display: grid; gap: 12px; margin-bottom: 16px; }
.kyc-upload {
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  font-size: .88rem;
  font-weight: 800;
}
.kyc-upload input { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.kyc-upload-box {
  margin-top: 6px;
  border: 1.5px dashed rgba(0,184,255,.28);
  border-radius: 14px;
  background: rgba(255,255,255,.03);
  padding: 18px;
  text-align: center;
}
.kyc-upload.is-filled .kyc-upload-box { border-color: var(--accent-2); background: rgba(0,153,255,.08); }
.kyc-upload.is-uploading .kyc-upload-box { border-color: rgba(251, 191, 36, .55); background: rgba(251, 191, 36, .08); }
.kyc-card--done { text-align: center; padding: 48px 28px; }
.kyc-success {
  width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #34d399, #059669);
  color: #fff; font-size: 1.5rem; font-weight: 800;
}

.modal-backdrop.is-hidden,
.modal-backdrop[hidden] {
  display: none !important;
  pointer-events: none !important;
}

/* ===== Mobile shell (mockup) ===== */
.mobile-top,
.mobile-tabbar,
.mobile-drawer-backdrop,
.chip-period-mobile,
#mobileTop,
#mobileTabbar,
#drawerBackdrop {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

html.is-mobile .mobile-top,
html.is-mobile #mobileTop,
body.is-mobile .mobile-top,
body.is-mobile #mobileTop {
  display: flex !important;
  visibility: visible !important;
  pointer-events: auto !important;
  height: auto !important;
  max-height: none !important;
  opacity: 1 !important;
  overflow: visible !important;
  position: sticky !important;
  left: auto !important;
  width: auto !important;
  z-index: 60 !important;
}
html.is-mobile .mobile-tabbar,
html.is-mobile #mobileTabbar,
body.is-mobile .mobile-tabbar,
body.is-mobile #mobileTabbar {
  display: grid !important;
  visibility: visible !important;
  pointer-events: auto !important;
  height: auto !important;
  max-height: none !important;
  opacity: 1 !important;
  overflow: visible !important;
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  width: auto !important;
  z-index: 65 !important;
}
body.is-mobile .chip-period-mobile {
  display: inline-flex !important;
  visibility: visible !important;
  pointer-events: auto !important;
}
body.is-desktop .mobile-top,
body.is-desktop .mobile-tabbar,
body.is-desktop .mobile-drawer-backdrop,
body.is-desktop .chip-period-mobile,
body.is-desktop #mobileTop,
body.is-desktop #mobileTabbar,
body.is-desktop #drawerBackdrop {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  height: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
  opacity: 0 !important;
}

@media (max-width: 960px) {
  .mobile-top {
    display: flex !important;
    visibility: visible !important;
    pointer-events: auto !important;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(5, 12, 24, 0.92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
  }
  .mobile-brand img {
    height: 34px;
    width: auto;
    filter: drop-shadow(0 4px 12px rgba(0,153,255,.45));
  }
  .mobile-top-actions {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .mobile-menu-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.03);
    color: var(--ink-soft);
    display: grid;
    place-items: center;
  }

  .panel { grid-template-columns: 1fr; min-height: auto; }
  .sidebar {
    display: flex !important;
    position: fixed;
    inset: 0 auto 0 0;
    width: min(300px, 86vw);
    z-index: 80;
    transform: translateX(-105%);
    transition: transform .28s ease;
    box-shadow: 20px 0 60px rgba(0,0,0,.45);
  }
  body.drawer-open .sidebar { transform: translateX(0); }
  body.drawer-open { overflow: hidden; }
  .mobile-drawer-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 70;
    background: rgba(2,8,16,.62);
    backdrop-filter: blur(4px);
  }
  .mobile-drawer-backdrop[hidden] { display: none !important; }

  .topbar {
    display: none;
  }

  .content {
    padding: 14px 14px 96px;
  }

  .content-head--dash {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 4px;
  }
  .content-head--dash h1 {
    font-size: 1.35rem;
  }
  .content-head--dash p {
    font-size: .84rem;
  }
  .chip-period-mobile {
    display: inline-flex !important;
    flex-shrink: 0;
    height: 36px;
    max-width: 42%;
    font-size: .72rem;
    padding: 0 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .chip-period-mobile span {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .kpi-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px;
  }
  .kpi-card {
    padding: 14px;
    border-radius: 16px;
  }
  .kpi-card strong {
    font-size: 1.15rem;
  }
  .kpi-card em.up,
  .kpi-card em.down,
  .kpi-card em.flat {
    font-size: .68rem;
    line-height: 1.3;
  }

  .mid-grid,
  .bottom-grid {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }
  /* saldo/status/perf agora visíveis no app mobile (override no bloco APP MOBILE) */
  .saldo-card,
  .status-card,
  .perf-card {
    display: flex;
  }

  .donut-wrap {
    flex-direction: row;
    align-items: center;
  }
  .legend { font-size: .72rem; }

  .mobile-tabbar {
    display: grid !important;
    visibility: visible !important;
    pointer-events: auto !important;
    height: auto !important;
    max-height: none !important;
    opacity: 1 !important;
    overflow: visible !important;
    grid-template-columns: repeat(4, 1fr);
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 65;
    padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
    background: rgba(6, 12, 22, 0.96);
    border-top: 1px solid var(--line);
    backdrop-filter: blur(16px);
  }
  .mobile-tabbar .tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 6px 2px;
    border-radius: 12px;
    color: var(--ink-muted);
    font-size: .62rem;
    font-weight: 700;
    background: transparent;
  }
  .mobile-tabbar .tab svg {
    width: 22px;
    height: 22px;
  }
  .mobile-tabbar .tab.is-active {
    color: #fff;
    background: rgba(0,153,255,.16);
    box-shadow: 0 0 18px rgba(0,153,255,.28);
  }
  .mobile-tabbar .tab.is-active svg {
    filter: drop-shadow(0 0 8px rgba(51,214,255,.7));
    stroke: #33d6ff;
  }

  body.kyc-mode .mobile-top { display: flex; }
  body.kyc-mode .sidebar {
    display: none !important;
  }

  .kyc-fields,
  .kyc-actions {
    grid-template-columns: 1fr;
  }
  .kyc-card { padding: 18px 14px; }
  .kyc-tabs { width: 100%; overflow-x: auto; }
  .kpi-grid--3 { grid-template-columns: 1fr !important; }

  .line-chart { height: 210px; }
  .line-chart svg { height: 170px; }
}

@media (max-width: 560px) {
  .kpi-grid {
    grid-template-columns: 1fr 1fr !important;
  }
  .search { display: none; }
  /* keep period chip on mobile */
  .chip-period-mobile { display: inline-flex !important; }
  .top-actions .chip { display: none; }
}

/* ===== HOTFIX desktop vs mobile / KYC overlay ===== */
@media (min-width: 961px) {
  .mobile-top,
  .mobile-tabbar,
  .mobile-drawer-backdrop,
  .chip-period-mobile,
  #mobileTop,
  #mobileTabbar,
  #drawerBackdrop {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
    height: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    left: -9999px !important;
  }

  .sidebar {
    display: flex !important;
    position: sticky !important;
    transform: none !important;
    inset: auto !important;
    width: auto !important;
    box-shadow: none !important;
  }

  .topbar {
    display: flex !important;
  }

  .saldo-card,
  .status-card,
  .perf-card {
    display: flex !important;
  }

  .content {
    padding: 22px !important;
    padding-bottom: 22px !important;
  }
}

/* KYC só aparece em modo KYC */
#kycView,
.kyc-view {
  display: none !important;
}
body.kyc-mode #kycView,
body.kyc-mode .kyc-view {
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
  width: min(820px, 100%) !important;
  margin: 0 auto !important;
  position: relative !important;
  z-index: 5 !important;
}
body.kyc-mode #dashContent,
body.kyc-mode .section-view,
body.kyc-mode #viewTxDetail,
body.kyc-mode #viewTransacoes,
body.kyc-mode #viewFinCobranca,
body.kyc-mode #viewFinTransferencias,
body.kyc-mode #viewFinSaque,
body.kyc-mode #viewFinReembolsos,
body.kyc-mode #viewFinConta,
body.kyc-mode #viewFinTaxas,
body.kyc-mode #viewFinConquistas,
body.kyc-mode #viewFinCorrida,
body.kyc-mode #viewRecebimentos,
body.kyc-mode #viewClientes,
body.kyc-mode #viewRelatorios,
body.kyc-mode #viewConfig,
body.kyc-mode #viewIntegracoes,
body.kyc-mode #viewSuporte {
  display: none !important;
}
body:not(.kyc-mode) #kycView {
  display: none !important;
}

.saldo-value {
  display: block !important;
  color: #eef5ff !important;
  font-size: 1.7rem !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  min-height: 1.2em !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.saldo-card {
  flex-direction: column;
}

/* inputs KYC nunca brancos no dark */
.kyc-field input,
.kyc-field select {
  background: rgba(255, 255, 255, 0.04) !important;
  color: #eef5ff !important;
  border: 1px solid rgba(0, 184, 255, 0.18) !important;
  -webkit-appearance: none;
  appearance: none;
}
.kyc-field option {
  background: #0c1628;
  color: #fff;
}


/* ===== Final safety (desktop shell) ===== */
html.is-desktop .mobile-top,
html.is-desktop .mobile-tabbar,
html.is-desktop #mobileTop,
html.is-desktop #mobileTabbar,
html body.is-desktop .mobile-top,
html body.is-desktop .mobile-tabbar,
html body.is-desktop #mobileTop,
html body.is-desktop #mobileTabbar {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  position: fixed !important;
  left: -99999px !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  opacity: 0 !important;
  z-index: -1 !important;
}

html body:not(.kyc-mode) #kycView,
html body:not(.kyc-mode) .kyc-view {
  display: none !important;
}

html body.kyc-mode #dashContent {
  display: none !important;
}

.saldo-card .saldo-value {
  color: #f3f8ff !important;
  font-size: 1.85rem !important;
  font-weight: 800 !important;
}

/* ===== Transações (AmploPay layout / OrbePay dark) ===== */
.tx-filters-card { padding: 16px 18px 18px; }
.tx-filter-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.chip-tx-period {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  color: var(--ink);
  font-weight: 700;
  font-size: .84rem;
}
.chip-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  color: var(--ink-soft);
}
.chip-icon.is-on {
  color: #fff;
  border-color: rgba(0,184,255,.45);
  background: rgba(0,153,255,.16);
  box-shadow: 0 0 16px rgba(0,153,255,.25);
}
.tx-export-btn {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  color: var(--ink);
  font-weight: 700;
  font-size: .84rem;
}
.tx-export-btn:hover { border-color: rgba(0,184,255,.4); color: #fff; }

.tx-filter-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.tx-filter-grid .kyc-field span { font-size: .72rem; color: var(--ink-muted); }
.tx-quick-search { margin-top: 12px; }
.tx-quick-search input {
  width: 100%;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  color: #eef5ff;
  padding: 0 14px;
}

.tx-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 14px 0;
}
.tx-stat {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(165deg, rgba(12,24,42,.95), rgba(7,14,26,.92));
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.tx-stat-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1rem;
  color: #041018;
  flex-shrink: 0;
}
.tx-stat--paid .tx-stat-icon,
.tx-stat--conv .tx-stat-icon { background: linear-gradient(135deg, #33d6ff, #0099ff); box-shadow: 0 0 18px rgba(0,153,255,.45); }
.tx-stat--pending .tx-stat-icon { background: linear-gradient(135deg, #fbbf24, #f59e0b); box-shadow: 0 0 18px rgba(245,158,11,.4); color: #1a1200; }
.tx-stat--failed .tx-stat-icon,
.tx-stat--charge .tx-stat-icon,
.tx-stat--refund .tx-stat-icon { background: linear-gradient(135deg, #fb7185, #e11d48); box-shadow: 0 0 18px rgba(225,29,72,.35); color: #fff; }
.tx-stat-body { flex: 1; min-width: 0; }
.tx-stat-body span {
  display: block;
  font-size: .78rem;
  font-weight: 700;
  color: var(--ink-muted);
  margin-bottom: 4px;
}
.tx-stat-body strong {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -.02em;
  color: #f3f8ff;
}
.tx-stat em {
  font-style: normal;
  font-size: .84rem;
  font-weight: 700;
  color: var(--ink-soft);
  white-space: nowrap;
}

.tx-table-card { padding: 0; overflow: hidden; }
.tx-table-card .table-wrap { margin: 0; }
.tx-table { width: 100%; border-collapse: collapse; }
.tx-table thead th {
  text-align: left;
  font-size: .72rem;
  font-weight: 700;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.02);
}
.tx-table tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,.04);
  vertical-align: middle;
  font-size: .88rem;
}
.tx-table tbody tr:hover { background: rgba(0,153,255,.05); }

.tx-client strong { display: block; color: #f3f8ff; font-weight: 700; }
.tx-client small { color: var(--ink-muted); font-size: .78rem; }
.tx-product {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-soft);
}
.tx-product-ico {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--line);
  color: var(--accent-2);
  flex-shrink: 0;
}
.tx-product-ico svg { width: 16px; height: 16px; }

.badge-type {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 700;
  background: rgba(0,153,255,.14);
  color: #7dd3fc;
  border: 1px solid rgba(0,184,255,.28);
}
.badge-pay {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 700;
}
.badge-pay::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 2px;
  transform: rotate(45deg);
  background: currentColor;
}
.badge-pay.is-paid { background: rgba(16,185,129,.14); color: #34d399; border: 1px solid rgba(52,211,153,.28); }
.badge-pay.is-pending { background: rgba(245,158,11,.14); color: #fbbf24; border: 1px solid rgba(251,191,36,.28); }
.badge-pay.is-failed,
.badge-pay.is-charge,
.badge-pay.is-refund { background: rgba(244,63,94,.14); color: #fb7185; border: 1px solid rgba(251,113,133,.28); }

.tx-net { font-weight: 700; color: #eef5ff; white-space: nowrap; }
.tx-date { color: var(--ink-soft); white-space: nowrap; font-size: .84rem; }
.tx-view-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-muted);
  display: grid;
  place-items: center;
}
.tx-view-btn:hover { color: #33d6ff; border-color: rgba(0,184,255,.4); }

.tx-pager {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
}
.tx-pager button {
  height: 34px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  color: var(--ink-soft);
  font-weight: 700;
  font-size: .8rem;
}
.tx-pager button:disabled { opacity: .4; cursor: not-allowed; }
.tx-pager span { font-size: .82rem; color: var(--ink-muted); font-weight: 600; }

.modal--wide { max-width: 560px; width: min(560px, 94vw); text-align: left; }
.tx-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
  margin-top: 16px;
}
.tx-detail-grid .full { grid-column: 1 / -1; }
.tx-detail-grid dt {
  font-size: .72rem;
  font-weight: 700;
  color: var(--ink-muted);
  margin-bottom: 2px;
}
.tx-detail-grid dd {
  font-size: .92rem;
  font-weight: 600;
  color: #eef5ff;
  margin: 0 0 4px;
}

@media (max-width: 1100px) {
  .tx-filter-grid { grid-template-columns: repeat(2, 1fr); }
  .tx-stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .tx-stats-grid { grid-template-columns: 1fr 1fr; }
  .tx-filter-grid { grid-template-columns: 1fr; }
  .tx-export-btn { margin-left: 0; }
  .tx-table { min-width: 780px; }
}


/* ===== Página detalhe da venda (olhinho) ===== */
.sale-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 4px;
}
.sale-head h1 {
  font-family: var(--font);
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  word-break: break-all;
}
.sale-head p {
  color: var(--ink-muted);
  font-size: 0.9rem;
  margin-top: 6px;
}
.sale-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 38px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  color: var(--ink-soft);
  font-weight: 700;
  font-size: .86rem;
  flex-shrink: 0;
}
.sale-back:hover { color: #fff; border-color: rgba(0,184,255,.4); }

.sale-summary { padding: 18px 20px; }
.sale-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.sale-label {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  color: var(--ink-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.sale-summary-grid strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  color: #f3f8ff;
}
.sale-release-tag {
  display: block;
  margin-top: 4px;
  font-style: normal;
  font-size: .78rem;
  font-weight: 700;
}
.sale-release-tag.is-ok { color: #34d399; }
.sale-release-tag.is-warn { color: #fbbf24; }
.sale-release-tag.is-bad { color: #fb7185; }

.sale-method-card { padding: 16px 20px; margin-top: 12px; }
.sale-method-card h3,
.sale-items-card h3,
.sale-extra h3,
.sale-recover h3 {
  font-size: .95rem;
  font-weight: 800;
  margin-bottom: 14px;
  color: #eef5ff;
}
.sale-method {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.sale-method-ico {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(0,153,255,.12);
  border: 1px solid rgba(0,184,255,.28);
  color: #33d6ff;
}
.sale-method strong { font-size: 1rem; color: #fff; }

.sale-bottom {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 12px;
  margin-top: 12px;
  align-items: start;
}
.sale-items-card { padding: 16px 18px; }
.sale-items-table th { font-size: .72rem; }
.sale-items-table td { font-size: .88rem; }

.sale-recover {
  padding: 18px;
  border-color: rgba(0,184,255,.28) !important;
  background: linear-gradient(160deg, rgba(0,153,255,.16), rgba(7,14,26,.95)) !important;
}
.sale-recover h3 { color: #7dd3fc; }
.sale-recover p {
  color: var(--ink-soft);
  font-size: .88rem;
  line-height: 1.45;
  margin-bottom: 14px;
}
.sale-recover-link {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.sale-recover-link input {
  flex: 1;
  min-width: 0;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.25);
  color: #cfe8ff;
  padding: 0 10px;
  font-size: .78rem;
}
.sale-recover-link button {
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid rgba(0,184,255,.35);
  background: rgba(0,153,255,.2);
  color: #fff;
  font-weight: 700;
  font-size: .8rem;
}
.sale-recover-actions { display: flex; gap: 8px; }
.sale-share {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: none;
  color: #fff;
}
.sale-share--wa { background: #25d366; }
.sale-share--copy {
  background: rgba(255,255,255,.08);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  cursor: pointer;
}

.sale-extra { margin-top: 12px; padding: 16px 18px; }
.sale-extra-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.sale-extra-grid strong {
  display: block;
  font-size: .92rem;
  color: #eef5ff;
  font-weight: 700;
  word-break: break-word;
}
.sale-split-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sale-split-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
}
.sale-split-row .sale-label {
  margin: 0;
  color: #c9d6ea;
}
.sale-split-row strong {
  font-size: .95rem;
  color: #eef5ff;
  font-weight: 700;
  white-space: nowrap;
}

@media (max-width: 960px) {
  .sale-summary-grid { grid-template-columns: 1fr 1fr; }
  .sale-bottom { grid-template-columns: 1fr; }
  .sale-extra-grid { grid-template-columns: 1fr 1fr; }
  .sale-head { flex-direction: column; }
}

/* ===== APP MOBILE — visual 100% responsivo ===== */
html.is-mobile,
body.is-mobile {
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
}

@media (max-width: 960px), (pointer: coarse) {
  html.is-mobile body,
  body.is-mobile {
    background: #030a14;
  }

  /* shell app */
  html.is-mobile .mobile-top,
  body.is-mobile .mobile-top,
  html.is-mobile #mobileTop,
  body.is-mobile #mobileTop {
    display: flex !important;
    visibility: visible !important;
    pointer-events: auto !important;
    position: sticky !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    opacity: 1 !important;
    overflow: visible !important;
    z-index: 60 !important;
    padding: 10px 14px calc(10px) !important;
    padding-top: max(10px, env(safe-area-inset-top)) !important;
    background: rgba(3, 10, 20, 0.92) !important;
    backdrop-filter: blur(18px) saturate(1.2);
    -webkit-backdrop-filter: blur(18px) saturate(1.2);
    border-bottom: 1px solid rgba(0, 184, 255, 0.12) !important;
  }

  html.is-mobile .mobile-tabbar,
  body.is-mobile .mobile-tabbar,
  html.is-mobile #mobileTabbar,
  body.is-mobile #mobileTabbar {
    display: grid !important;
    visibility: visible !important;
    pointer-events: auto !important;
    grid-template-columns: repeat(4, 1fr) !important;
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    opacity: 1 !important;
    overflow: visible !important;
    z-index: 70 !important;
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom)) !important;
    background: rgba(4, 10, 20, 0.96) !important;
    border-top: 1px solid rgba(0, 184, 255, 0.14) !important;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.45);
  }

  html.is-mobile .topbar,
  body.is-mobile .topbar {
    display: none !important;
  }

  html.is-mobile .panel,
  body.is-mobile .panel {
    display: block !important;
    min-height: 100dvh;
    grid-template-columns: 1fr !important;
  }

  html.is-mobile .sidebar,
  body.is-mobile .sidebar {
    display: flex !important;
    position: fixed !important;
    inset: 0 auto 0 0 !important;
    width: min(86vw, 320px) !important;
    max-width: 320px !important;
    z-index: 90 !important;
    transform: translateX(-108%) !important;
    transition: transform 0.28s cubic-bezier(.2,.8,.2,1) !important;
    box-shadow: 24px 0 60px rgba(0,0,0,.5) !important;
    padding-bottom: calc(24px + env(safe-area-inset-bottom)) !important;
    overflow-y: auto !important;
  }

  html.is-mobile body.drawer-open .sidebar,
  body.is-mobile.drawer-open .sidebar {
    transform: translateX(0) !important;
  }

  html.is-mobile .content,
  body.is-mobile .content,
  html.is-mobile .section-view,
  body.is-mobile .section-view,
  html.is-mobile #viewTxDetail,
  body.is-mobile #viewTxDetail {
    padding: 12px 12px calc(96px + env(safe-area-inset-bottom)) !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* tipografia / heads */
  html.is-mobile .content-head h1,
  body.is-mobile .content-head h1,
  html.is-mobile .sale-head h1,
  body.is-mobile .sale-head h1 {
    font-size: 1.28rem !important;
    line-height: 1.25 !important;
  }
  html.is-mobile .content-head p,
  body.is-mobile .content-head p {
    font-size: 0.82rem !important;
    line-height: 1.4 !important;
  }

  /* KPI / stats — app cards */
  html.is-mobile .kpi-grid,
  body.is-mobile .kpi-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }
  html.is-mobile .kpi-card,
  body.is-mobile .kpi-card {
    padding: 14px !important;
    border-radius: 18px !important;
  }
  html.is-mobile .kpi-card strong,
  body.is-mobile .kpi-card strong {
    font-size: 1.12rem !important;
  }

  html.is-mobile .tx-stats-grid,
  body.is-mobile .tx-stats-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
    margin: 12px 0 !important;
  }
  html.is-mobile .tx-stat,
  body.is-mobile .tx-stat {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
    padding: 14px !important;
    border-radius: 18px !important;
    position: relative !important;
  }
  html.is-mobile .tx-stat em,
  body.is-mobile .tx-stat em {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    font-size: 0.72rem !important;
  }
  html.is-mobile .tx-stat-body strong,
  body.is-mobile .tx-stat-body strong {
    font-size: 1.15rem !important;
  }
  html.is-mobile .tx-stat-icon,
  body.is-mobile .tx-stat-icon {
    width: 36px !important;
    height: 36px !important;
    font-size: 0.9rem !important;
  }

  /* grids dashboard — empilhar tudo e MOSTRAR saldo/status */
  html.is-mobile .mid-grid,
  body.is-mobile .mid-grid,
  html.is-mobile .bottom-grid,
  body.is-mobile .bottom-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  html.is-mobile .saldo-card,
  body.is-mobile .saldo-card,
  html.is-mobile .status-card,
  body.is-mobile .status-card,
  html.is-mobile .perf-card,
  body.is-mobile .perf-card {
    display: flex !important;
  }
  html.is-mobile .line-chart,
  body.is-mobile .line-chart {
    height: 200px !important;
  }
  html.is-mobile .line-chart svg,
  body.is-mobile .line-chart svg {
    height: 160px !important;
    width: 100% !important;
  }
  html.is-mobile .donut-wrap,
  body.is-mobile .donut-wrap {
    flex-direction: column !important;
    align-items: center !important;
  }

  /* filtros transações */
  html.is-mobile .tx-filters-card,
  body.is-mobile .tx-filters-card {
    padding: 12px !important;
    border-radius: 18px !important;
  }
  html.is-mobile .tx-filter-toolbar,
  body.is-mobile .tx-filter-toolbar {
    gap: 8px !important;
    margin-bottom: 10px !important;
  }
  html.is-mobile .tx-export-btn,
  body.is-mobile .tx-export-btn {
    margin-left: 0 !important;
    flex: 1 1 100% !important;
    justify-content: center !important;
  }
  html.is-mobile .tx-filter-grid,
  body.is-mobile .tx-filter-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  html.is-mobile .chip-tx-period,
  body.is-mobile .chip-tx-period,
  html.is-mobile .chip-icon,
  body.is-mobile .chip-icon {
    height: 42px !important;
    min-width: 42px !important;
  }

  /* tabela → cards estilo app */
  html.is-mobile .tx-table-card,
  body.is-mobile .tx-table-card,
  html.is-mobile .sale-items-card,
  body.is-mobile .sale-items-card {
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
  }
  html.is-mobile .tx-table-card .table-wrap,
  body.is-mobile .tx-table-card .table-wrap,
  html.is-mobile .sale-items-card .table-wrap,
  body.is-mobile .sale-items-card .table-wrap {
    overflow: visible !important;
  }
  html.is-mobile .tx-table,
  body.is-mobile .tx-table,
  html.is-mobile .sale-items-table,
  body.is-mobile .sale-items-table,
  html.is-mobile .data-table,
  body.is-mobile .data-table {
    min-width: 0 !important;
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 10px !important;
  }
  html.is-mobile .tx-table thead,
  body.is-mobile .tx-table thead,
  html.is-mobile .sale-items-table thead,
  body.is-mobile .sale-items-table thead,
  html.is-mobile .data-table thead,
  body.is-mobile .data-table thead {
    display: none !important;
  }
  html.is-mobile .tx-table tbody,
  body.is-mobile .tx-table tbody,
  html.is-mobile .sale-items-table tbody,
  body.is-mobile .sale-items-table tbody,
  html.is-mobile .data-table tbody,
  body.is-mobile .data-table tbody {
    display: block !important;
  }
  html.is-mobile .tx-table tr,
  body.is-mobile .tx-table tr,
  html.is-mobile .sale-items-table tr,
  body.is-mobile .sale-items-table tr,
  html.is-mobile .data-table tbody tr,
  body.is-mobile .data-table tbody tr {
    display: grid !important;
    grid-template-columns: 1fr auto !important;
    gap: 8px 10px !important;
    padding: 14px !important;
    margin: 0 0 10px !important;
    border-radius: 18px !important;
    border: 1px solid rgba(0, 184, 255, 0.14) !important;
    background: linear-gradient(165deg, rgba(12, 24, 42, 0.95), rgba(7, 14, 26, 0.92)) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22) !important;
  }
  html.is-mobile .tx-table td,
  body.is-mobile .tx-table td,
  html.is-mobile .sale-items-table td,
  body.is-mobile .sale-items-table td,
  html.is-mobile .data-table tbody td,
  body.is-mobile .data-table tbody td {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    padding: 0 !important;
    border: none !important;
    font-size: 0.86rem !important;
    grid-column: 1 / -1;
  }
  html.is-mobile .tx-table td[data-label]::before,
  body.is-mobile .tx-table td[data-label]::before,
  html.is-mobile .sale-items-table td[data-label]::before,
  body.is-mobile .sale-items-table td[data-label]::before,
  html.is-mobile .data-table tbody td[data-label]::before,
  body.is-mobile .data-table tbody td[data-label]::before {
    content: attr(data-label);
    color: var(--ink-muted);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    flex-shrink: 0;
  }
  html.is-mobile .tx-table td:first-child,
  body.is-mobile .tx-table td:first-child {
    grid-column: 1 / 2;
    justify-content: flex-start !important;
  }
  html.is-mobile .tx-table td:first-child::before,
  body.is-mobile .tx-table td:first-child::before {
    display: none;
  }
  html.is-mobile .tx-table td.tx-actions,
  body.is-mobile .tx-table td.tx-actions {
    grid-column: 2 / 3;
    grid-row: 1;
    justify-content: flex-end !important;
  }
  html.is-mobile .tx-table td.tx-actions::before,
  body.is-mobile .tx-table td.tx-actions::before {
    display: none;
  }
  html.is-mobile .tx-table td.tx-net,
  body.is-mobile .tx-table td.tx-net {
    font-size: 1rem !important;
    font-weight: 800 !important;
  }
  html.is-mobile .tx-view-btn,
  body.is-mobile .tx-view-btn {
    width: 40px !important;
    height: 40px !important;
    border-radius: 12px !important;
    background: rgba(0, 153, 255, 0.12) !important;
    border-color: rgba(0, 184, 255, 0.3) !important;
    color: #33d6ff !important;
  }
  html.is-mobile .tx-pager,
  body.is-mobile .tx-pager {
    justify-content: space-between !important;
    padding: 8px 2px 0 !important;
    border: none !important;
  }
  html.is-mobile .tx-pager button,
  body.is-mobile .tx-pager button {
    height: 40px !important;
    min-width: 44px !important;
  }

  /* detalhe da venda */
  html.is-mobile .sale-head,
  body.is-mobile .sale-head {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
  }
  html.is-mobile .sale-back,
  body.is-mobile .sale-back {
    align-self: flex-start !important;
    height: 40px !important;
  }
  html.is-mobile .sale-summary-grid,
  body.is-mobile .sale-summary-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 14px !important;
  }
  html.is-mobile .sale-bottom,
  body.is-mobile .sale-bottom {
    grid-template-columns: 1fr !important;
  }
  html.is-mobile .sale-extra-grid,
  body.is-mobile .sale-extra-grid {
    grid-template-columns: 1fr !important;
  }
  html.is-mobile .sale-recover,
  body.is-mobile .sale-recover {
    order: -1;
  }
  html.is-mobile .sale-recover-link,
  body.is-mobile .sale-recover-link {
    flex-direction: column !important;
  }
  html.is-mobile .sale-recover-link button,
  body.is-mobile .sale-recover-link button {
    width: 100% !important;
  }

  /* cards / forms / KYC / modals */
  html.is-mobile .card,
  body.is-mobile .card {
    border-radius: 18px !important;
  }
  html.is-mobile .kyc-fields,
  body.is-mobile .kyc-fields,
  html.is-mobile .kyc-actions,
  body.is-mobile .kyc-actions,
  html.is-mobile .config-form,
  body.is-mobile .config-form {
    grid-template-columns: 1fr !important;
  }
  html.is-mobile .kyc-tabs,
  body.is-mobile .kyc-tabs {
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }
  html.is-mobile .modal,
  body.is-mobile .modal {
    width: min(100vw - 24px, 440px) !important;
    max-height: calc(100dvh - 48px) !important;
    overflow-y: auto !important;
    border-radius: 20px !important;
    padding: 20px 16px !important;
  }
  html.is-mobile .modal-backdrop,
  body.is-mobile .modal-backdrop {
    padding: 12px !important;
    align-items: flex-end !important;
  }
  html.is-mobile .btn,
  body.is-mobile .btn,
  html.is-mobile .kyc-btn,
  body.is-mobile .kyc-btn {
    min-height: 44px !important;
  }
  html.is-mobile .kyc-field input,
  body.is-mobile .kyc-field input,
  html.is-mobile .kyc-field select,
  body.is-mobile .kyc-field select {
    min-height: 44px !important;
    font-size: 16px !important; /* evita zoom iOS */
  }

  /* tab labels um pouco maiores no app */
  html.is-mobile .mobile-tabbar .tab,
  body.is-mobile .mobile-tabbar .tab {
    font-size: 0.62rem !important;
    padding: 8px 2px !important;
    gap: 3px !important;
    border-radius: 14px !important;
  }
  html.is-mobile .mobile-tabbar .tab svg,
  body.is-mobile .mobile-tabbar .tab svg {
    width: 22px !important;
    height: 22px !important;
  }

  /* esconder tabbar no detalhe? manter — UX app normalmente mantém */
  html.is-mobile body.kyc-mode .mobile-tabbar,
  body.is-mobile.kyc-mode .mobile-tabbar {
    display: none !important;
  }
}

@media (max-width: 420px) {
  html.is-mobile .kpi-grid,
  body.is-mobile .kpi-grid,
  html.is-mobile .tx-stats-grid,
  body.is-mobile .tx-stats-grid,
  html.is-mobile .sale-summary-grid,
  body.is-mobile .sale-summary-grid {
    grid-template-columns: 1fr 1fr !important;
  }
  html.is-mobile .tx-stat-body strong,
  body.is-mobile .tx-stat-body strong {
    font-size: 1.02rem !important;
  }
  html.is-mobile .mobile-brand img,
  body.is-mobile .mobile-brand img {
    height: 30px !important;
  }
}

html.is-mobile .tx-recent-item[data-view-tx],
body.is-mobile .tx-recent-item[data-view-tx] {
  cursor: pointer;
  border-radius: 14px;
  padding: 10px 8px;
  transition: background .2s ease;
}
html.is-mobile .tx-recent-item[data-view-tx]:active,
body.is-mobile .tx-recent-item[data-view-tx]:active {
  background: rgba(0,153,255,.1);
}
html.is-mobile .tx-list li,
body.is-mobile .tx-list li {
  align-items: flex-start;
  gap: 10px;
}


/* ===== Financeiro (submenu) ===== */
.nav-group { list-style: none; }
.nav-group-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: var(--ink-soft);
  font: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  text-align: left;
}
.nav-group-btn__left {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.nav-group-btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.nav-group-btn .nav-chevron { transition: transform .2s ease; opacity: .7; }
.nav-group.is-open .nav-group-btn .nav-chevron { transform: rotate(180deg); }
.nav-group-btn:hover,
.nav-group-btn.is-active {
  color: #fff;
  background: rgba(0,153,255,.12);
}
.nav-sub {
  list-style: none;
  margin: 4px 0 8px;
  padding: 0 0 0 12px;
  display: grid;
  gap: 2px;
  border-left: 1px solid rgba(0,184,255,.18);
  margin-left: 20px;
}
.nav-sub[hidden] { display: none !important; }
.nav-sub a {
  display: block;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--ink-muted);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
}
.nav-sub a:hover { color: #fff; background: rgba(255,255,255,.04); }
.nav-sub a.is-active,
.nav-sub a.active {
  color: #7dd3fc;
  background: rgba(0,153,255,.14);
  box-shadow: inset 2px 0 0 #0099ff;
}

.fin-placeholder {
  padding: 28px 22px;
  text-align: center;
}
.fin-placeholder__text {
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 420px;
  margin: 0 auto;
}

@media (max-width: 960px) {
  html.is-mobile .nav-sub,
  body.is-mobile .nav-sub {
    margin-left: 14px;
    padding-left: 10px;
  }
  html.is-mobile .nav-sub a,
  body.is-mobile .nav-sub a {
    min-height: 40px;
    display: flex;
    align-items: center;
    font-size: 0.88rem;
  }
  html.is-mobile .fin-placeholder,
  body.is-mobile .fin-placeholder {
    padding: 22px 16px;
    border-radius: 18px;
  }
}


/* ===== FIX ícone Financeiro + motion Amplo-like ===== */
.side-nav .nav-group-btn.side-nav-item,
.side-nav .nav-group-btn {
  width: 100%;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  padding: 12px 14px !important;
  border-radius: 12px !important;
  border: 1px solid transparent !important;
  background: transparent !important;
  color: var(--ink-soft) !important;
  font-size: 0.92rem !important;
  font-weight: 600 !important;
  font-family: inherit !important;
  cursor: pointer;
  position: relative;
  text-align: left;
  line-height: 1.2;
  transition: background .22s ease, color .22s ease, box-shadow .22s ease, border-color .22s ease, transform .18s ease;
}

.side-nav .nav-group-btn__left {
  display: inline-flex !important;
  align-items: center !important;
  gap: 12px !important;
  min-width: 0;
  flex: 1;
}

.side-nav .nav-group-btn .nav-ico,
.side-nav .nav-group-btn__left > svg.nav-ico {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  max-width: 18px !important;
  min-height: 18px !important;
  max-height: 18px !important;
  flex: 0 0 18px !important;
  display: block !important;
  overflow: visible !important;
}

.side-nav .nav-group-btn .nav-chevron {
  width: 14px !important;
  height: 14px !important;
  min-width: 14px !important;
  max-width: 14px !important;
  flex: 0 0 14px !important;
  opacity: .65;
  transition: transform .28s cubic-bezier(.2,.8,.2,1);
}

.nav-group.is-open .nav-group-btn .nav-chevron {
  transform: rotate(180deg);
}

.side-nav .nav-group-btn:hover,
.side-nav .nav-group-btn.is-active {
  background: rgba(0, 153, 255, 0.08) !important;
  color: #fff !important;
}

.side-nav .nav-group-btn.is-active {
  background: linear-gradient(90deg, rgba(0, 153, 255, 0.22), rgba(0, 153, 255, 0.08)) !important;
  border-color: rgba(0, 184, 255, 0.25) !important;
  box-shadow: var(--glow);
}

.nav-sub {
  list-style: none;
  margin: 4px 0 8px 20px;
  padding: 0 0 0 12px;
  display: grid;
  gap: 2px;
  border-left: 1px solid rgba(0,184,255,.18);
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(-6px);
  transition: max-height .34s cubic-bezier(.2,.8,.2,1), opacity .24s ease, transform .28s ease;
}
.nav-group.is-open .nav-sub,
.nav-sub:not([hidden]) {
  max-height: 420px;
  opacity: 1;
  transform: translateY(0);
}
.nav-sub[hidden] {
  display: grid !important;
  max-height: 0 !important;
  opacity: 0 !important;
  transform: translateY(-6px) !important;
  pointer-events: none;
  margin-top: 0;
  margin-bottom: 0;
  padding-top: 0;
  padding-bottom: 0;
  border: none;
}
.nav-group.is-open .nav-sub[hidden] {
  /* JS remove hidden when open */
}
.nav-sub a {
  display: block;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--ink-muted);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s ease, color .2s ease, transform .18s ease, padding-left .2s ease;
}
.nav-sub a:hover {
  color: #fff;
  background: rgba(255,255,255,.04);
  padding-left: 14px;
}
.nav-sub a.is-active,
.nav-sub a.active {
  color: #7dd3fc;
  background: rgba(0,153,255,.14);
  box-shadow: inset 2px 0 0 #0099ff;
}

/* --- Motion global (cliques / hover Amplo-like) --- */
@media (prefers-reduced-motion: no-preference) {
  .side-nav a,
  .nav-group-btn,
  .btn,
  .chip,
  .chip-icon,
  .chip-tx-period,
  .tx-export-btn,
  .tx-view-btn,
  .mobile-tabbar .tab,
  .mobile-menu-btn,
  .notify,
  .profile-btn,
  .kyc-btn,
  .kyc-tab,
  .sale-back,
  .sale-share,
  .link-accent,
  .dropdown-menu button {
    transition:
      background .22s ease,
      color .22s ease,
      border-color .22s ease,
      box-shadow .22s ease,
      transform .18s cubic-bezier(.2,.8,.2,1),
      filter .22s ease,
      opacity .22s ease !important;
  }

  .side-nav a:active,
  .nav-group-btn:active,
  .btn:active,
  .chip:active,
  .chip-icon:active,
  .tx-export-btn:active,
  .tx-view-btn:active,
  .mobile-tabbar .tab:active,
  .mobile-menu-btn:active,
  .notify:active,
  .profile-btn:active,
  .kyc-btn:active,
  .kyc-tab:active,
  .sale-back:active,
  .sale-share:active,
  .dropdown-menu button:active {
    transform: scale(0.96) !important;
  }

  .side-nav a:hover {
    transform: translateX(2px);
  }
  .side-nav a.active:hover {
    transform: none;
  }

  .kpi-card,
  .tx-stat,
  .card,
  .saldo-card,
  .status-card,
  .perf-card {
    transition: transform .28s cubic-bezier(.2,.8,.2,1), box-shadow .28s ease, border-color .28s ease !important;
  }
  .kpi-card:hover,
  .tx-stat:hover,
  .card:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 16px 40px rgba(0,0,0,.28), 0 0 0 1px rgba(0,184,255,.12);
  }

  .mobile-tabbar .tab.is-active {
    transform: translateY(-1px);
  }
  .mobile-tabbar .tab.is-active:active {
    transform: scale(0.96) translateY(-1px) !important;
  }

  .view-enter {
    animation: orbeViewIn var(--dur-slow, 380ms) var(--ease-out) both;
  }
  @keyframes orbeViewIn {
    from {
      opacity: 0;
      transform: translateY(10px) scale(0.99);
    }
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }

  .btn-accent,
  .kyc-btn {
    position: relative;
    overflow: hidden;
  }
  .btn-accent:hover,
  .kyc-btn:hover {
    filter: brightness(1.06);
    box-shadow: 0 8px 28px rgba(0,153,255,.35);
  }

  .tx-table tbody tr,
  .data-table tbody tr {
    transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
  }
  .tx-table tbody tr:hover,
  .data-table tbody tr:hover {
    background: rgba(0,153,255,.06);
  }

  /* dropdown motion → ui-premium.css (OrbeMenu) */

  .modal-backdrop:not([hidden]):not(.is-hidden) .modal {
    animation: orbeModalIn .32s cubic-bezier(.2,.8,.2,1) both;
  }
  @keyframes orbeModalIn {
    from { opacity: 0; transform: translateY(18px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
  }
}

@media (max-width: 960px) {
  html.is-mobile .kpi-card:hover,
  body.is-mobile .kpi-card:hover,
  html.is-mobile .card:hover,
  body.is-mobile .card:hover,
  html.is-mobile .tx-stat:hover,
  body.is-mobile .tx-stat:hover {
    transform: none;
  }
  html.is-mobile .side-nav a:active,
  body.is-mobile .side-nav a:active,
  html.is-mobile .nav-group-btn:active,
  body.is-mobile .nav-group-btn:active,
  html.is-mobile .mobile-tabbar .tab:active,
  body.is-mobile .mobile-tabbar .tab:active {
    transform: scale(0.94) !important;
  }
}


/* ===== Submenus Financeiro com ícones ===== */
.nav-sub a {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}
.nav-sub a .nav-sub-ico {
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  max-width: 16px !important;
  flex: 0 0 16px !important;
  display: block !important;
  opacity: 0.85;
}
.nav-sub a.is-active .nav-sub-ico,
.nav-sub a.active .nav-sub-ico,
.nav-sub a:hover .nav-sub-ico {
  opacity: 1;
  color: #7dd3fc;
}
.nav-sub a span {
  line-height: 1.25;
}

/* ===== Cobrança Personalizada ===== */
.charge-card { padding: 22px 22px 24px; }
.charge-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.charge-card-head h2 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #f3f8ff;
}
.charge-hint {
  margin-top: 6px;
  color: var(--ink-muted);
  font-size: 0.88rem;
}
.charge-switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--ink-soft);
  cursor: pointer;
  user-select: none;
  flex-shrink: 0;
}
.charge-switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.charge-switch .switch-ui {
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  border: 1px solid var(--line);
  position: relative;
  transition: background .2s ease, border-color .2s ease;
}
.charge-switch .switch-ui::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #dbe7f5;
  transition: transform .22s cubic-bezier(.2,.8,.2,1);
}
.charge-switch input:checked + .switch-ui {
  background: rgba(0,153,255,.35);
  border-color: rgba(0,184,255,.5);
}
.charge-switch input:checked + .switch-ui::after {
  transform: translateX(20px);
  background: #33d6ff;
}

.charge-alert {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(245,158,11,.12);
  border: 1px solid rgba(251,191,36,.28);
  color: #fbbf24;
  font-size: 0.86rem;
  line-height: 1.45;
  font-weight: 600;
}

.charge-form .charge-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}
.charge-methods {
  display: flex;
  gap: 12px;
  margin: 6px 0 16px;
  flex-wrap: wrap;
}
.charge-method {
  width: 88px;
  height: 78px;
  border-radius: 14px;
  border: 1.5px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.03);
  color: var(--ink-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, transform .18s ease, box-shadow .2s ease;
}
.charge-method strong { font-size: 0.78rem; font-weight: 700; }
.charge-method-ico { color: #7dd3fc; }
.charge-method-ico--pix { color: #32bcad; }
.charge-method.is-selected {
  border-color: rgba(0,184,255,.65);
  background: rgba(0,153,255,.14);
  box-shadow: 0 0 0 1px rgba(0,184,255,.2), 0 8px 24px rgba(0,153,255,.2);
  color: #fff;
}
.charge-method:hover { transform: translateY(-2px); }
.charge-submit { margin-top: 4px; min-height: 48px; font-size: 1rem; }

.charge-result { margin-top: 12px; padding: 18px; }
.charge-result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.charge-result-head h3 { font-size: 1.05rem; font-weight: 800; }
.charge-warning {
  margin: 12px 0 4px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.28);
  color: #fcd34d;
  font-size: 0.84rem;
  line-height: 1.45;
}
.charge-result-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.charge-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.charge-new-btn {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  color: #eef5ff;
  border-radius: 12px;
  padding: 0 16px;
  min-height: 44px;
  font-weight: 700;
}

@media (max-width: 960px) {
  html.is-mobile .charge-card,
  body.is-mobile .charge-card {
    padding: 16px 14px !important;
    border-radius: 18px !important;
  }
  html.is-mobile .charge-card-head,
  body.is-mobile .charge-card-head {
    flex-direction: column !important;
    align-items: stretch !important;
  }
  html.is-mobile .charge-switch,
  body.is-mobile .charge-switch {
    justify-content: space-between !important;
    width: 100% !important;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255,255,255,.03);
    border: 1px solid var(--line);
  }
  html.is-mobile .charge-form .charge-grid,
  body.is-mobile .charge-form .charge-grid,
  html.is-mobile .charge-result-grid,
  body.is-mobile .charge-result-grid {
    grid-template-columns: 1fr !important;
  }
  html.is-mobile .charge-methods,
  body.is-mobile .charge-methods {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
  }
  html.is-mobile .charge-method,
  body.is-mobile .charge-method {
    width: 100% !important;
    height: 84px !important;
  }
  html.is-mobile .charge-result-actions,
  body.is-mobile .charge-result-actions {
    flex-direction: column !important;
  }
  html.is-mobile .charge-result-actions .btn,
  body.is-mobile .charge-result-actions .btn,
  html.is-mobile .charge-new-btn,
  body.is-mobile .charge-new-btn {
    width: 100% !important;
  }
}

/* ===== Sidebar scroll — brilho OrbePay ===== */
.sidebar {
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 184, 255, 0.55) rgba(0, 153, 255, 0.06);
  scroll-behavior: smooth;
  overscroll-behavior: contain;
}

.sidebar::-webkit-scrollbar {
  width: 8px;
}

.sidebar::-webkit-scrollbar-track {
  margin: 10px 0;
  background: linear-gradient(
    180deg,
    rgba(0, 153, 255, 0.02),
    rgba(0, 184, 255, 0.08),
    rgba(0, 153, 255, 0.02)
  );
  border-radius: 999px;
  box-shadow: inset 0 0 8px rgba(0, 153, 255, 0.12);
}

.sidebar::-webkit-scrollbar-thumb {
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
  background-image: linear-gradient(
    180deg,
    #66e0ff 0%,
    #0099ff 35%,
    #00b8ff 65%,
    #33d6ff 100%
  );
  box-shadow:
    0 0 10px rgba(0, 184, 255, 0.55),
    0 0 18px rgba(51, 214, 255, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transition: box-shadow 0.25s ease, filter 0.25s ease;
  animation: orbeScrollGlow 2.8s ease-in-out infinite;
}

.sidebar::-webkit-scrollbar-thumb:hover {
  filter: brightness(1.15);
  box-shadow:
    0 0 14px rgba(0, 184, 255, 0.8),
    0 0 28px rgba(51, 214, 255, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
  animation-duration: 1.6s;
}

.sidebar::-webkit-scrollbar-thumb:active {
  filter: brightness(1.25);
  box-shadow:
    0 0 18px rgba(51, 214, 255, 0.95),
    0 0 36px rgba(0, 153, 255, 0.65);
}

.sidebar::-webkit-scrollbar-corner {
  background: transparent;
}

@keyframes orbeScrollGlow {
  0%, 100% {
    box-shadow:
      0 0 8px rgba(0, 184, 255, 0.4),
      0 0 14px rgba(51, 214, 255, 0.25),
      inset 0 1px 0 rgba(255, 255, 255, 0.35);
  }
  50% {
    box-shadow:
      0 0 14px rgba(0, 184, 255, 0.75),
      0 0 26px rgba(51, 214, 255, 0.5),
      inset 0 1px 0 rgba(255, 255, 255, 0.55);
  }
}

@media (prefers-reduced-motion: reduce) {
  .sidebar::-webkit-scrollbar-thumb {
    animation: none;
  }
}

/* ===== Saque Personalizado (PIX) ===== */
.saque-balance-row {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.saque-balance-item {
  flex: 1;
  min-width: 140px;
  padding: 14px 16px;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(0, 153, 255, 0.08), rgba(0, 40, 80, 0.35));
  border: 1px solid rgba(0, 184, 255, 0.18);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.saque-balance-item span {
  font-size: 0.78rem;
  color: var(--muted, #8aa4b8);
  letter-spacing: 0.02em;
}
.saque-balance-item strong {
  font-size: 1.25rem;
  color: #e8f6ff;
  font-weight: 700;
}
.saque-card { max-width: 820px; }
.saque-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 14px 16px;
  margin-bottom: 14px;
}
.saque-field-key .field-hint,
.field-hint {
  display: block;
  margin-top: 6px;
  font-size: 0.75rem;
  color: var(--muted, #8aa4b8);
  line-height: 1.35;
}
.saque-check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  margin: 4px 0 14px;
  font-size: 0.92rem;
  color: #d7eaf8;
}
.saque-check input {
  width: 18px;
  height: 18px;
  accent-color: #00b8ff;
  cursor: pointer;
}
.saque-fee-preview {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(0, 153, 255, 0.1);
  border: 1px solid rgba(0, 184, 255, 0.22);
  color: #b8dcf5;
  font-size: 0.86rem;
}
@media (max-width: 760px) {
  .saque-grid {
    grid-template-columns: 1fr;
  }
  .saque-card { max-width: none; }
}
html.is-mobile .saque-grid,
body.is-mobile .saque-grid {
  grid-template-columns: 1fr;
}

/* ===== Dashboard conquistas ===== */
.dash-achievements { margin: 14px 0 4px; padding: 16px 18px; }
.dash-ach-summary { display: grid; grid-template-columns: 1.2fr 1fr; gap: 18px; align-items: center; }
.dash-ach-meta { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.dash-ach-meta span { color: var(--muted, #8aa4b8); font-size: .82rem; }
.dash-ach-meta strong { color: #e8f6ff; font-size: .95rem; }
.dash-ach-bar {
  height: 10px; border-radius: 999px; background: rgba(255,255,255,.06);
  border: 1px solid rgba(0,184,255,.18); overflow: hidden;
}
.dash-ach-bar i {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, #0099FF, #33D6FF);
  box-shadow: 0 0 12px rgba(0,184,255,.45);
  transition: width .5s ease;
}
.dash-ach-stats {
  display: flex; justify-content: space-between; margin-top: 8px;
  font-size: .8rem; color: #9fc0d8;
}
.dash-ach-strip {
  display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px;
  scrollbar-width: thin;
}
.dash-ach-item {
  flex: 0 0 72px; text-align: center;
}
.dash-ach-item img {
  width: 64px; height: 64px; object-fit: contain;
  filter: grayscale(1) brightness(.55);
  opacity: .55; transition: .25s ease;
}
.dash-ach-item.is-unlocked img {
  filter: none; opacity: 1;
  filter: drop-shadow(0 0 10px rgba(0,184,255,.35));
}
.dash-ach-item small {
  display: block; margin-top: 4px; font-size: .7rem; color: #8aa4b8;
}

/* ===== Reembolsos ===== */
.refund-filters {
  display: grid;
  grid-template-columns: repeat(5, minmax(0,1fr)) auto;
  gap: 10px;
  margin-top: 8px;
}
.refund-filters input,
.refund-filters select {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(0,184,255,.16);
  border-radius: 10px;
  color: #e8f6ff;
  padding: 10px 12px;
}
.refund-search-btn { min-width: 46px; padding-inline: 12px; }
.refund-create-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
  margin-top: 12px;
}
.refund-create-row input {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(0,184,255,.16);
  border-radius: 10px;
  color: #e8f6ff;
  padding: 10px 12px;
}
.refund-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 12px;
  margin-top: 14px;
}
.refund-stat-card {
  background: linear-gradient(160deg, rgba(0,40,80,.45), rgba(0,20,40,.55));
  border: 1px solid rgba(0,184,255,.18);
  border-radius: 14px;
  padding: 16px;
}
.refund-stat-top { display: flex; justify-content: space-between; align-items: center; }
.refund-ico {
  width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center; font-weight: 700;
  background: rgba(0,153,255,.15); color: #33D6FF;
}
.refund-ico--deny { background: rgba(255,70,70,.12); color: #ff6b6b; }
.refund-ratio { color: #8aa4b8; font-size: .85rem; }
.refund-stat-card strong { display: block; font-size: 1.8rem; margin: 8px 0 2px; color: #fff; }
.refund-stat-card > span { color: #9fc0d8; font-size: .9rem; }
.table-pager {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; padding: 12px 4px 4px; color: #9fc0d8; font-size: .88rem;
}
.pager-btns { display: flex; gap: 8px; }

/* ===== Conta bancária / tabs ===== */
.fin-tabs {
  display: inline-flex; gap: 6px; padding: 4px;
  background: rgba(255,255,255,.04);
  border-radius: 999px; margin-bottom: 14px;
  border: 1px solid rgba(0,184,255,.12);
}
.fin-tab {
  border: 0; background: transparent; color: #9fc0d8;
  padding: 8px 14px; border-radius: 999px; cursor: pointer;
  font-weight: 600; transition: .2s ease;
}
.fin-tab.is-active {
  background: rgba(0,153,255,.18);
  color: #e8f6ff;
  box-shadow: 0 0 0 1px rgba(0,184,255,.25);
}
.bank-alert {
  border-radius: 12px; padding: 12px 14px; margin: 10px 0;
  font-size: .9rem; line-height: 1.4;
}
.bank-alert--info {
  background: rgba(0,153,255,.1);
  border: 1px solid rgba(0,184,255,.28);
  color: #b8dcf5;
}
.bank-alert--warn {
  background: rgba(255,160,40,.1);
  border: 1px solid rgba(255,160,40,.3);
  color: #ffd39a;
}
.bank-lead { color: #9fc0d8; font-size: .92rem; margin: 8px 0 12px; }
.bank-info-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px;
}
.bank-list { display: grid; gap: 10px; margin-top: 12px; }
.bank-item {
  display: flex; justify-content: space-between; gap: 12px; align-items: center;
  padding: 14px; border-radius: 12px;
  border: 1px solid rgba(0,184,255,.16);
  background: rgba(0,30,60,.35);
}
.bank-item strong { color: #e8f6ff; display: block; }
.bank-item small { color: #8aa4b8; }
.bank-item-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.bank-form { margin-top: 14px; }
.bank-code-field input.is-found {
  border-color: rgba(34,197,94,.55);
  box-shadow: 0 0 0 1px rgba(34,197,94,.25);
}
.bank-code-field input.is-error {
  border-color: rgba(251,113,133,.65);
  box-shadow: 0 0 0 1px rgba(251,113,133,.25);
}
#bankName.is-found,
#bancoNome.is-found {
  color: #86efac;
  font-weight: 600;
}
#bankName[readonly],
#bancoNome[readonly] {
  opacity: 1;
  cursor: default;
  background: rgba(255,255,255,.03);
}
#bankCodeHint.is-found,
#kycBancoHint.is-found { color: #86efac; }
#bankCodeHint.is-error,
#kycBancoHint.is-error { color: #fb7185; }
.bank-name-field { grid-column: span 1; }

/* ===== Taxas ===== */
.fees-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px;
}
.fee-item {
  padding: 16px; border-radius: 14px;
  border: 1px solid rgba(0,184,255,.16);
  background: linear-gradient(160deg, rgba(0,40,80,.4), rgba(0,20,40,.5));
}
.fee-item span { color: #9fc0d8; font-size: .85rem; }
.fee-item strong { display: block; margin-top: 6px; font-size: 1.4rem; color: #33D6FF; }
.fees-anticipation-msg {
  color: #7ec8ff; font-weight: 600; padding: 24px 8px; text-align: center;
}

/* ===== Conquistas timeline ===== */
.ach-overview { padding: 18px; margin-bottom: 16px; }
.ach-overview-row {
  display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; margin-bottom: 14px;
}
.ach-overview-row .sale-label { display: block; margin-bottom: 4px; }
.ach-overview-row strong { font-size: 1.2rem; color: #e8f6ff; }
.ach-timeline { display: flex; flex-direction: column; gap: 22px; }
.ach-row {
  display: grid; grid-template-columns: 1fr 180px; gap: 18px; align-items: center;
  padding: 16px 18px; border-radius: 18px;
  border: 1px solid rgba(0,184,255,.14);
  background: linear-gradient(145deg, rgba(0,40,80,.35), rgba(0,16,32,.5));
}
.ach-row:nth-child(even) { grid-template-columns: 180px 1fr; }
.ach-row:nth-child(even) .ach-copy { order: 2; }
.ach-row:nth-child(even) .ach-art { order: 1; }
.ach-copy h3 { margin: 0 0 4px; color: #e8f6ff; font-size: 1.15rem; }
.ach-copy .ach-value { color: #33D6FF; font-weight: 700; margin: 0 0 6px; }
.ach-copy p { margin: 0; color: #9fc0d8; font-size: .92rem; }
.ach-art {
  display: grid; place-items: center;
}
.ach-art img {
  width: 150px; height: auto; object-fit: contain;
  filter: grayscale(1) brightness(.5); opacity: .5;
  transition: .35s ease;
}
.ach-row.is-unlocked .ach-art img {
  filter: drop-shadow(0 0 18px rgba(0,184,255,.45));
  opacity: 1;
}
.ach-progress-mini {
  margin-top: 10px; font-size: .8rem; color: #8aa4b8;
}

/* ===== Corrida ===== */
.race-hero { margin-bottom: 16px; }
.race-hero strong { display: block; font-size: 2rem; color: #fff; margin: 6px 0; }
.race-bar { margin: 12px 0; height: 12px; }
.race-meta {
  display: flex; flex-wrap: wrap; gap: 14px;
  color: #9fc0d8; font-size: .88rem;
}
.race-empty { text-align: center; padding: 36px 20px; }
.race-empty-sub { color: #33D6FF; font-weight: 700; }
.race-empty h2 { color: #e8f6ff; margin: 8px 0 10px; }
.race-path {
  display: inline-block; margin: 12px 0 18px; padding: 6px 10px;
  border-radius: 8px; background: rgba(255,255,255,.05); color: #8aa4b8;
}

@media (max-width: 900px) {
  .dash-ach-summary,
  .refund-filters,
  .refund-cards,
  .refund-create-row,
  .fees-grid,
  .ach-overview-row,
  .bank-info-grid { grid-template-columns: 1fr; }
  .refund-filters { grid-template-columns: 1fr 1fr; }
  .ach-row,
  .ach-row:nth-child(even) { grid-template-columns: 1fr; }
  .ach-row:nth-child(even) .ach-copy,
  .ach-row:nth-child(even) .ach-art { order: initial; }
}
html.is-mobile .dash-ach-summary,
body.is-mobile .dash-ach-summary,
html.is-mobile .refund-cards,
body.is-mobile .refund-cards,
html.is-mobile .fees-grid,
body.is-mobile .fees-grid,
html.is-mobile .ach-overview-row,
body.is-mobile .ach-overview-row {
  grid-template-columns: 1fr;
}
html.is-mobile .ach-row,
body.is-mobile .ach-row,
html.is-mobile .ach-row:nth-child(even),
body.is-mobile .ach-row:nth-child(even) {
  grid-template-columns: 1fr;
}

/* ===== Mapa de Conquistas (caminho) ===== */
.main {
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
}
.ach-map {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 12px 8px 40px;
  max-width: 920px;
}
.ach-path-line {
  position: absolute;
  left: 50%;
  top: 40px;
  bottom: 40px;
  width: 4px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  z-index: 0;
  overflow: hidden;
}
.ach-path-line i {
  display: block;
  width: 100%;
  height: 0%;
  background: linear-gradient(180deg, #0099FF, #33D6FF);
  box-shadow: 0 0 16px rgba(0,184,255,.55);
  transition: height .6s ease;
}
.ach-node {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: center;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(0,184,255,.16);
  background: linear-gradient(145deg, rgba(0,40,80,.42), rgba(0,14,30,.62));
  box-shadow: 0 12px 32px rgba(0,0,0,.25);
}
.ach-node[data-side="right"] .ach-node-art { order: 2; }
.ach-node[data-side="right"] .ach-node-copy { order: 1; text-align: right; }
.ach-node[data-side="right"] .ach-node-copy .ach-progress-mini { margin-left: auto; }
.ach-node-art {
  display: grid;
  place-items: center;
  position: relative;
  min-height: 200px;
}
.ach-node-art img {
  width: min(220px, 100%);
  height: auto;
  object-fit: contain;
  filter: grayscale(1) brightness(.45);
  opacity: .55;
  transition: transform .35s ease, filter .35s ease, opacity .35s ease;
}
.ach-node.is-unlocked .ach-node-art img,
.ach-node.is-current .ach-node-art img {
  filter: drop-shadow(0 0 22px rgba(0,184,255,.55));
  opacity: 1;
}
.ach-node.is-current .ach-node-art img {
  animation: achPulse 2.4s ease-in-out infinite;
}
.ach-node.is-unlocked {
  border-color: rgba(51,214,255,.45);
  box-shadow: 0 0 0 1px rgba(0,184,255,.2), 0 16px 40px rgba(0,100,200,.2);
}
.ach-node-pin {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: .75rem;
  font-weight: 800;
  color: #031018;
  background: linear-gradient(135deg, #33D6FF, #0099FF);
  box-shadow: 0 0 14px rgba(0,184,255,.5);
  z-index: 2;
}
.ach-node:not(.is-unlocked):not(.is-current) .ach-node-pin {
  background: #334155;
  color: #cbd5e1;
  box-shadow: none;
}
.ach-node-copy h3 {
  margin: 0 0 6px;
  font-size: 1.2rem;
  color: #e8f6ff;
}
.ach-node-icon { font-size: 1.25rem; margin-right: 4px; }
.ach-node-copy .ach-value {
  color: #33D6FF;
  font-weight: 700;
  margin-bottom: 8px;
}
.ach-node-copy p {
  margin: 0;
  color: #9fc0d8;
  font-size: .92rem;
  line-height: 1.45;
}
.ach-progress-mini {
  margin-top: 10px;
  font-size: .8rem;
  color: #8aa4b8;
  max-width: 280px;
}
@keyframes achPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}
@media (max-width: 820px) {
  .ach-path-line { left: 22px; transform: none; }
  .ach-node,
  .ach-node[data-side="right"] {
    grid-template-columns: 1fr;
    padding-left: 48px;
  }
  .ach-node[data-side="right"] .ach-node-art,
  .ach-node[data-side="right"] .ach-node-copy {
    order: initial;
    text-align: left;
  }
  .ach-node[data-side="right"] .ach-node-copy .ach-progress-mini { margin-left: 0; }
  .ach-node-art { min-height: 160px; }
  .ach-node-art img { width: min(180px, 70%); }
}
html.is-mobile .ach-path-line,
body.is-mobile .ach-path-line { left: 18px; transform: none; }
html.is-mobile .ach-node,
body.is-mobile .ach-node,
html.is-mobile .ach-node[data-side="right"],
body.is-mobile .ach-node[data-side="right"] {
  grid-template-columns: 1fr;
  padding-left: 44px;
}

/* Conquistas: conteúdo precisa rolar no main */
#viewFinConquistas {
  overflow: visible !important;
  min-height: min-content;
}
#viewFinConquistas .ach-map {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* ===== Dashboard conquistas interativas + resgate ===== */
.dash-ach-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.dash-ach-actions .btn[disabled] {
  opacity: .45;
  cursor: not-allowed;
  filter: grayscale(.4);
}
.dash-ach-redeem-hint {
  font-size: .8rem;
  color: #8aa4b8;
}
.dash-ach-interactive {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.dash-ach-strip {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  overflow-x: auto;
  padding: 8px 4px 10px;
  scrollbar-width: thin;
}
.dash-ach-item {
  flex: 1 1 0;
  min-width: 72px;
  max-width: 110px;
  text-align: center;
  cursor: pointer;
  border: 0;
  background: transparent;
  padding: 6px;
  border-radius: 14px;
  transition: transform .25s ease, background .25s ease;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}
.dash-ach-item img {
  width: 100%;
  max-width: 88px;
  height: auto;
  aspect-ratio: 3/4;
  object-fit: contain;
  filter: grayscale(1) brightness(.5);
  opacity: .55;
  transition: transform .3s cubic-bezier(.2,.8,.2,1), filter .3s ease, opacity .3s ease;
  transform-origin: center bottom;
}
.dash-ach-item small {
  display: block;
  margin-top: 6px;
  font-size: .72rem;
  font-weight: 700;
  color: #8aa4b8;
}
.dash-ach-item:hover,
.dash-ach-item:focus-visible,
.dash-ach-item.is-active {
  background: rgba(0,153,255,.1);
  outline: none;
}
.dash-ach-item:hover img,
.dash-ach-item:focus-visible img,
.dash-ach-item.is-active img {
  transform: scale(1.28);
  filter: drop-shadow(0 0 16px rgba(0,184,255,.55));
  opacity: 1;
  z-index: 2;
  position: relative;
}
.dash-ach-item.is-unlocked img {
  filter: none;
  opacity: 1;
  filter: drop-shadow(0 0 10px rgba(0,184,255,.35));
}
.dash-ach-item.is-unlocked:hover img,
.dash-ach-item.is-unlocked.is-active img {
  filter: drop-shadow(0 0 18px rgba(51,214,255,.65));
  transform: scale(1.32);
}
.dash-ach-item.is-redeemed::after {
  content: "✓";
  position: absolute;
  top: 4px;
  right: 8px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #34d399;
  color: #04120c;
  font-size: .7rem;
  font-weight: 800;
  display: grid;
  place-items: center;
}
.dash-ach-tip {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(0,184,255,.28);
  background: linear-gradient(135deg, rgba(0,80,160,.35), rgba(0,20,40,.7));
  position: relative;
  animation: achTipIn .28s ease;
}
.dash-ach-tip[hidden] { display: none !important; }
.dash-ach-tip-close {
  position: absolute;
  top: 8px;
  right: 10px;
  color: #9fc0d8;
  font-size: 1rem;
}
.dash-ach-tip-art img {
  width: 90px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(0,184,255,.45));
}
.dash-ach-tip-code {
  display: inline-block;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  color: #031018;
  background: linear-gradient(90deg,#33D6FF,#0099FF);
  padding: 2px 8px;
  border-radius: 999px;
  margin-bottom: 6px;
}
.dash-ach-tip-body h4 {
  margin: 0 0 6px;
  color: #e8f6ff;
  font-size: 1rem;
}
.dash-ach-tip-body p {
  margin: 0 0 8px;
  color: #b8dcf5;
  font-size: .86rem;
  line-height: 1.4;
}
.dash-ach-tip-reward {
  color: #33D6FF !important;
  font-weight: 700;
}
@keyframes achTipIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.ach-redeem-btn[disabled] {
  opacity: .4;
  cursor: not-allowed;
  filter: grayscale(.5);
}
.ach-node .ach-redeem-btn { margin-top: 10px; }

.modal--ach { max-width: 560px; width: min(94vw, 560px); }
.ach-redeem-head {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
}
.ach-redeem-head img {
  width: 84px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(0,184,255,.4));
}
.ach-redeem-form { text-align: left; }

.ach-congrats {
  text-align: center;
  padding: 18px 8px 8px;
  position: relative;
  overflow: hidden;
}
.ach-congrats-burst {
  position: absolute;
  inset: -40% -20% auto;
  height: 180px;
  background: radial-gradient(circle, rgba(0,184,255,.35), transparent 65%);
  pointer-events: none;
}
.ach-congrats-badge {
  font-size: 3rem;
  margin-bottom: 8px;
  animation: achBounce 1s ease infinite;
}
.ach-congrats h2 {
  font-size: 1.8rem;
  color: #fff;
  margin: 0 0 8px;
  text-shadow: 0 0 24px rgba(0,184,255,.45);
}
.ach-congrats-lead {
  color: #33D6FF;
  font-weight: 700;
  font-size: 1.05rem;
  margin: 0 0 10px;
}
.ach-congrats-mail {
  color: #b8dcf5;
  font-size: .95rem;
  line-height: 1.5;
  margin: 0 0 18px;
}
@keyframes achBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@media (max-width: 900px) {
  .dash-ach-tip { grid-template-columns: 72px 1fr; }
  .dash-ach-item:hover img,
  .dash-ach-item.is-active img { transform: scale(1.2); }
}
.ach-node.is-focus .ach-node-art img,
.ach-node:hover .ach-node-art img {
  transform: scale(1.12);
  filter: drop-shadow(0 0 22px rgba(0,184,255,.55));
  opacity: 1;
}
.ach-node .ach-node-art img {
  transition: transform .3s ease, filter .3s ease, opacity .3s ease;
  cursor: pointer;
}

/* ===== Mobile floating menus (period / notifications) ===== */
.mobile-menu-scrim {
  position: fixed;
  inset: 0;
  z-index: 210;
  background: rgba(2, 8, 16, 0.45);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.dropdown-menu.is-floating-menu {
  display: block !important;
  position: fixed !important;
  z-index: 220 !important;
  min-width: 220px;
  padding: 8px;
  border-radius: 14px;
  border: 1px solid rgba(0, 184, 255, 0.22);
  background: rgba(8, 18, 34, 0.98) !important;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(0, 153, 255, 0.12);
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}
#notifyMenu.is-floating-menu {
  min-width: min(360px, calc(100vw - 24px));
}
html.is-mobile .chip-period-mobile,
body.is-mobile .chip-period-mobile {
  display: inline-flex !important;
  visibility: visible !important;
  pointer-events: auto !important;
  z-index: 5;
  position: relative;
}
html.is-mobile #notifyBtnMobile,
body.is-mobile #notifyBtnMobile {
  pointer-events: auto !important;
  position: relative;
  z-index: 5;
}

/* ===== Relatórios: Afiliados / Indicações ===== */
.report-head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.report-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 4px;
}
.report-kpi {
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(0,184,255,.16);
  background: linear-gradient(160deg, rgba(0,40,80,.4), rgba(0,16,32,.55));
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.report-kpi span {
  font-size: .78rem;
  color: #9fc0d8;
  font-weight: 600;
}
.report-kpi strong {
  font-size: 1.45rem;
  color: #e8f6ff;
}
.report-kpi small {
  color: #7d93ad;
  font-size: .75rem;
  line-height: 1.35;
}
.report-empty {
  padding: 28px 16px;
  text-align: center;
  color: #8aa4b8;
  border: 1px dashed rgba(0,184,255,.22);
  border-radius: 14px;
  background: rgba(0,20,40,.25);
}
.aff-top-list { display: grid; gap: 10px; }
.aff-top-item {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(0,184,255,.14);
  background: rgba(0,30,60,.35);
}
.aff-top-rank {
  width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center;
  background: rgba(0,153,255,.15);
  color: #33D6FF; font-weight: 800; font-size: .85rem;
}
.aff-top-item small { display: block; color: #8aa4b8; margin-top: 2px; }
.aff-top-vals { text-align: right; }
.aff-top-vals small { color: #9fc0d8; }
.ref-link-box { margin-top: 12px; }
.ref-link-box small { color: #8aa4b8; display: block; margin-top: 6px; }
@media (max-width: 960px) {
  .report-kpi-grid { grid-template-columns: 1fr 1fr; }
  .content-head.row-head { flex-direction: column; align-items: stretch; }
  .report-head-actions { width: 100%; }
}
html.is-mobile .report-kpi-grid,
body.is-mobile .report-kpi-grid { grid-template-columns: 1fr; }

/* ===== Dashboard chart Amplo-like + motion ===== */
.chart-card .card-head {
  align-items: flex-start;
  flex-wrap: wrap;
}
.chart-card .card-head > div,
.chart-card .chart-head-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.chart-sub {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.8rem;
  font-weight: 500;
  width: 100%;
  order: 3;
  flex-basis: 100%;
}
.line-chart {
  position: relative;
  height: 260px;
  cursor: crosshair;
  touch-action: pan-y;
}
.line-chart svg {
  width: 100%;
  height: 220px;
  display: block;
  overflow: visible;
}
.line-chart .chart-grid {
  stroke: rgba(0, 184, 255, 0.22);
  stroke-width: 1;
  stroke-dasharray: 4 6;
}
.line-chart .chart-yaxis-label {
  fill: #9eb4cc;
  font-size: 10px;
  font-family: var(--font-body), system-ui, sans-serif;
}
.line-chart .area {
  fill: url(#lineFill);
  opacity: 1;
}
.line-chart .stroke {
  fill: none;
  stroke: url(#lineStrokeGrad);
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 1;
}
.line-chart .stroke.is-draw {
  stroke-dasharray: var(--path-len, 1000);
  stroke-dashoffset: var(--path-len, 1000);
  animation: chartDraw 1.25s cubic-bezier(.2,.8,.2,1) forwards;
}
.line-chart .chart-point {
  fill: #061223;
  stroke: #33d6ff;
  stroke-width: 2.4;
  filter: drop-shadow(0 0 8px rgba(0, 184, 255, 0.75));
  opacity: 0;
  transition: r 0.15s ease, fill 0.15s ease, stroke 0.15s ease;
}
.line-chart .chart-point.is-visible { opacity: 1; animation: pointPop 0.4s ease both; }
.line-chart .chart-point.is-active {
  fill: #33d6ff;
  stroke: #fff;
  stroke-width: 3;
}
.chart-crosshair {
  position: absolute;
  top: 0;
  width: 1px;
  height: 220px;
  background: linear-gradient(180deg, rgba(51,214,255,.85), rgba(51,214,255,.05));
  pointer-events: none;
  z-index: 2;
  transition: left .08s ease-out;
}
.chart-crosshair-h {
  position: absolute;
  left: 54px;
  right: 18px;
  height: 1px;
  background: linear-gradient(90deg, rgba(51,214,255,.05), rgba(51,214,255,.7), rgba(51,214,255,.05));
  pointer-events: none;
  z-index: 2;
  transition: top .08s ease-out;
}
.chart-crosshair-h[hidden],
.chart-crosshair[hidden] { display: none !important; }
.chart-tooltip {
  position: absolute;
  transform: translateX(-50%);
  background: rgba(8, 18, 34, 0.97);
  border: 1px solid rgba(0, 184, 255, 0.5);
  border-radius: 12px;
  padding: 10px 14px;
  box-shadow: 0 12px 32px rgba(0,0,0,.45), 0 0 24px rgba(0,153,255,.25);
  z-index: 4;
  min-width: 120px;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity .15s ease, left .08s ease-out, top .08s ease-out;
}
.chart-tooltip.is-on { opacity: 1; }
.chart-labels {
  display: flex;
  justify-content: space-between;
  color: var(--ink-muted);
  font-size: 0.72rem;
  padding: 4px 18px 0 54px;
}

/* entrada com movimento */
.dash-pop {
  animation: dashPopIn 0.55s cubic-bezier(.2,.8,.2,1) both;
  animation-delay: var(--dash-delay, 0ms);
}
@keyframes dashPopIn {
  from { opacity: 0; transform: translateY(14px) scale(.985); }
  to { opacity: 1; transform: none; }
}
.kpi-card,
.mid-grid .card,
.bottom-grid .card,
.dash-achievements {
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.kpi-card:hover,
.mid-grid .card:hover,
.bottom-grid .card:hover,
.dash-achievements:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(0, 100, 200, 0.18);
  border-color: rgba(0, 184, 255, 0.32);
}
.live-dot i {
  animation: livePulse 1.4s ease-in-out infinite;
}
@keyframes livePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, .55); opacity: 1; }
  50% { box-shadow: 0 0 0 6px rgba(52, 211, 153, 0); opacity: .85; }
}
.saldo-bar__fill {
  transition: width .8s cubic-bezier(.2,.8,.2,1) !important;
}
html.is-mobile .line-chart,
body.is-mobile .line-chart { height: 230px !important; }
html.is-mobile .line-chart svg,
body.is-mobile .line-chart svg { height: 190px !important; }
html.is-mobile .kpi-card:hover,
body.is-mobile .kpi-card:hover,
html.is-mobile .mid-grid .card:hover,
body.is-mobile .mid-grid .card:hover {
  transform: none;
}

/* ===== Configurações: Perfil / Documentos / Colaboradores ===== */
.avatar.has-photo {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 0 0 2px rgba(0,153,255,.35);
}
.profile-card-panel { display: grid; gap: 16px; }
.profile-form { display: grid; gap: 18px; max-width: none; }
.profile-form__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, .8fr);
  gap: 20px;
  align-items: start;
}
.profile-form__fields { display: grid; gap: 12px; }
.profile-notify-row {
  display: flex; flex-wrap: wrap; gap: 12px 18px; margin-top: 4px;
}
.profile-avatar-box { display: grid; gap: 8px; }
.profile-avatar-box__title {
  font-size: .82rem; font-weight: 700; color: var(--ink-soft);
}
.avatar-drop {
  display: grid;
  place-items: center;
  min-height: 220px;
  border: 1.5px dashed rgba(0,184,255,.35);
  border-radius: 16px;
  background: rgba(255,255,255,.03);
  cursor: pointer;
  padding: 16px;
  text-align: center;
  transition: border-color .2s, background .2s;
  position: relative;
  overflow: hidden;
}
.avatar-drop:hover,
.avatar-drop.is-drag {
  border-color: #33d6ff;
  background: rgba(0,153,255,.08);
}
.avatar-drop__placeholder {
  display: grid; gap: 8px; justify-items: center; color: var(--ink-muted);
}
.avatar-drop__placeholder strong {
  color: var(--ink-soft); font-size: .9rem;
}
.avatar-drop__placeholder small { font-size: .75rem; line-height: 1.35; max-width: 220px; }
#cfgAvatarPreview {
  width: 100%; height: 100%; max-height: 220px; object-fit: cover; border-radius: 12px;
}
.btn-link {
  background: none; border: none; color: #7dd3fc; font: inherit; font-weight: 700;
  cursor: pointer; padding: 0; text-align: left; width: fit-content;
}
.btn-link:hover { text-decoration: underline; }
.btn.btn-ghost {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line);
  color: var(--ink-soft);
}
.btn.btn-ghost:hover { background: rgba(255,255,255,.08); color: #fff; }
.btn.btn-sm { height: 34px; padding: 0 12px; font-size: .8rem; border-radius: 10px; }
.btn.btn-block { width: 100%; }

.kyc-embed { display: grid; gap: 14px; }
.kyc-embed .kyc-card { background: transparent; border: none; padding: 0; box-shadow: none; }
.kyc-details {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 4px 12px 12px;
  background: rgba(255,255,255,.02);
  margin-top: 8px;
}
.kyc-details summary {
  cursor: pointer;
  font-weight: 700;
  padding: 10px 4px;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.kyc-details summary::-webkit-details-marker { display: none; }
.kyc-details summary::after {
  content: "";
  width: 8px; height: 8px;
  border-right: 2px solid var(--ink-muted);
  border-bottom: 2px solid var(--ink-muted);
  transform: rotate(45deg);
  transition: transform .2s;
  margin-right: 4px;
}
.kyc-details[open] summary::after { transform: rotate(-135deg); }
.kyc-approved-banner,
.kyc-pending-banner {
  border-radius: 12px;
  padding: 12px 14px;
  font-weight: 700;
  margin-bottom: 4px;
}
.kyc-approved-banner {
  background: rgba(52,211,153,.12);
  border: 1px solid rgba(52,211,153,.35);
  color: #6ee7b7;
}
.kyc-pending-banner {
  background: rgba(245,197,66,.1);
  border: 1px solid rgba(245,197,66,.3);
  color: #f5c542;
}
.kyc-rejected-banner {
  border-radius: 12px;
  padding: 12px 14px;
  font-weight: 700;
  margin-bottom: 4px;
  background: rgba(255,92,108,.12);
  border: 1px solid rgba(255,92,108,.35);
  color: #ffb0b8;
}
body.kyc-locked .side-nav a[data-nav]:not([data-nav="cfgDocs"]):not([data-nav="suporte"]),
body.kyc-locked .nav-sub a[data-nav]:not([data-nav="cfgDocs"]),
body.kyc-locked .mobile-tabbar .tab:not([data-nav="cfgDocs"]),
body.kyc-locked #navFinanceiroBtn,
body.kyc-locked #navRelatoriosBtn {
  pointer-events: none;
  opacity: 0.38;
}

.collab-card { display: grid; gap: 14px; }
.search--inline {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 12px;
  height: 42px;
  max-width: 360px;
  width: 100%;
}
.search--inline input {
  border: none; background: transparent; color: var(--ink);
  font: inherit; outline: none; width: 100%; height: 100%;
}
.collab-pager {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; margin-top: 12px;
  color: var(--ink-muted); font-size: .85rem;
}
.collab-pager select {
  height: 36px; border-radius: 10px; border: 1px solid var(--line);
  background: rgba(255,255,255,.04); color: var(--ink); margin-left: 8px; padding: 0 8px;
}
.collab-pager__nav { display: flex; gap: 8px; }
.role-perms { display: grid; gap: 8px; }
.role-perms__title { font-weight: 700; font-size: .9rem; margin-bottom: 2px; }

.bank-alert--warn {
  background: rgba(251,113,133,.1) !important;
  border: 1px solid rgba(251,113,133,.35) !important;
  color: #fda4af !important;
}

@media (max-width: 960px) {
  .profile-form__grid { grid-template-columns: 1fr; }
  .avatar-drop { min-height: 180px; }
  .collab-pager { flex-direction: column; align-items: stretch; }
  .collab-pager__nav { width: 100%; }
  .collab-pager__nav .btn { flex: 1; }
  .search--inline { max-width: none; }
  #viewConfigDocs .kyc-tabs {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
  }
  #viewConfigDocs .kyc-tab { white-space: nowrap; flex: 1; }
  #viewConfigCollab .content-head.row-head {
    align-items: stretch;
  }
  #viewConfigCollab .content-head.row-head .btn {
    width: 100%;
  }
}
@media (max-width: 560px) {
  .profile-notify-row { flex-direction: column; }
  #collabUsersBody td,
  #collabRolesBody td {
    white-space: normal;
  }
}

/* ===== Modal Adicionar colaborador — sempre card central + scroll do sidebar ===== */
.modal-backdrop:has(.modal--collab) {
  align-items: center !important;
  justify-content: center !important;
  padding: 16px !important;
}

.modal.modal--collab {
  width: min(560px, calc(100vw - 32px)) !important;
  max-width: 560px !important;
  min-width: min(560px, calc(100vw - 32px));
  text-align: left !important;
  max-height: min(88vh, 820px) !important;
  max-height: min(88dvh, 820px) !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  padding: 24px 26px 20px !important;
  border-radius: 20px !important;
  margin: 0 auto !important;
  display: block !important;
  /* mesma rolagem do sidebar */
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 184, 255, 0.55) rgba(0, 153, 255, 0.06);
  scroll-behavior: smooth;
  overscroll-behavior: contain;
}

.modal.modal--collab::-webkit-scrollbar {
  width: 8px;
}

.modal.modal--collab::-webkit-scrollbar-track {
  margin: 10px 0;
  background: linear-gradient(
    180deg,
    rgba(0, 153, 255, 0.02),
    rgba(0, 184, 255, 0.08),
    rgba(0, 153, 255, 0.02)
  );
  border-radius: 999px;
  box-shadow: inset 0 0 8px rgba(0, 153, 255, 0.12);
}

.modal.modal--collab::-webkit-scrollbar-thumb {
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
  background-image: linear-gradient(
    180deg,
    #66e0ff 0%,
    #0099ff 35%,
    #00b8ff 65%,
    #33d6ff 100%
  );
  box-shadow:
    0 0 10px rgba(0, 184, 255, 0.55),
    0 0 18px rgba(51, 214, 255, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
  animation: orbeScrollGlow 2.8s ease-in-out infinite;
}

.modal.modal--collab::-webkit-scrollbar-thumb:hover {
  filter: brightness(1.15);
  box-shadow:
    0 0 14px rgba(0, 184, 255, 0.8),
    0 0 28px rgba(51, 214, 255, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.modal.modal--collab::-webkit-scrollbar-thumb:active {
  filter: brightness(1.25);
  box-shadow:
    0 0 18px rgba(51, 214, 255, 0.95),
    0 0 36px rgba(0, 153, 255, 0.65);
}

.modal.modal--collab::-webkit-scrollbar-corner {
  background: transparent;
}

.modal.modal--collab h2 {
  margin: 0 40px 18px 0 !important;
  font-size: 1.28rem !important;
  text-align: left !important;
  position: sticky;
  top: -24px;
  z-index: 2;
  background: linear-gradient(180deg, #0c1628 70%, rgba(12, 22, 40, 0));
  padding: 4px 0 12px;
}

.collab-form { display: grid; gap: 18px; }
.collab-form__section { display: grid; gap: 10px; }
.collab-form__section h3 {
  margin: 0;
  font-size: .95rem;
  font-weight: 800;
  color: var(--ink);
}
.collab-form__hint {
  margin: 0;
  font-size: .82rem;
  line-height: 1.4;
  color: var(--ink-muted);
}
.collab-info-box {
  border-radius: 12px;
  padding: 12px 14px;
  font-size: .84rem;
  line-height: 1.45;
  background: rgba(0,153,255,.1);
  border: 1px solid rgba(0,184,255,.28);
  border-left: 3px solid #33d6ff;
  color: #b8dcf5;
}
.password-field {
  position: relative;
  display: flex;
  align-items: center;
}
.password-field input {
  width: 100%;
  padding-right: 44px !important;
}
.password-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: var(--ink-muted);
  cursor: pointer;
  display: grid;
  place-items: center;
  border-radius: 8px;
}
.password-toggle:hover { color: #fff; background: rgba(255,255,255,.06); }
.collab-role-help {
  margin: 0;
  font-size: .82rem;
  color: var(--ink-muted);
  line-height: 1.45;
}
.collab-role-help .btn-link {
  display: inline;
  margin-left: 4px;
  font-size: inherit;
}
.collab-form__actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  padding-top: 12px;
  position: sticky;
  bottom: -20px;
  background: linear-gradient(0deg, #0c1628 75%, rgba(12, 22, 40, 0));
  z-index: 2;
}
.btn-text {
  border: none;
  background: transparent;
  color: var(--ink-soft);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  padding: 10px 14px;
  border-radius: 10px;
}
.btn-text:hover { background: rgba(255,255,255,.05); color: #fff; }
.collab-form .kyc-field input,
.collab-form .kyc-field select {
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  color: var(--ink);
  padding: 0 12px;
  font: inherit;
  width: 100%;
}
.collab-form .kyc-field select:disabled {
  opacity: .7;
  cursor: not-allowed;
}

/* PC e mobile: mesmo card central (nunca bottom-sheet) */
html.is-mobile .modal-backdrop:has(.modal--collab),
body.is-mobile .modal-backdrop:has(.modal--collab) {
  align-items: center !important;
  justify-content: center !important;
  padding: 12px !important;
}

html.is-mobile .modal.modal--collab,
body.is-mobile .modal.modal--collab {
  width: min(560px, calc(100vw - 24px)) !important;
  max-width: 560px !important;
  max-height: min(90dvh, 820px) !important;
  border-radius: 20px !important;
  padding: 20px 18px 16px !important;
}

@media (max-width: 960px) {
  .modal-backdrop:has(.modal--collab) {
    align-items: center !important;
    justify-content: center !important;
  }
  .modal.modal--collab {
    width: min(560px, calc(100vw - 24px)) !important;
    max-width: 560px !important;
    max-height: min(90dvh, 820px) !important;
    border-radius: 20px !important;
    padding: 20px 18px 16px !important;
  }
}

@media (max-width: 560px) {
  .modal.modal--collab {
    width: min(560px, calc(100vw - 20px)) !important;
    padding: 18px 16px 14px !important;
  }
  .collab-form__actions {
    flex-direction: row;
    justify-content: flex-end;
    flex-wrap: wrap;
  }
  .collab-form__actions .btn {
    min-width: 120px;
  }
}

/* ===== Integrações / Automação ===== */
.integ-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 18px;
}
.integ-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink-muted);
  font: inherit;
  font-weight: 700;
  font-size: .88rem;
  cursor: pointer;
  white-space: nowrap;
}
.integ-tab:hover { color: #fff; background: rgba(255,255,255,.04); }
.integ-tab.is-active {
  color: #fff;
  background: rgba(255,255,255,.08);
  border-color: rgba(0,184,255,.22);
  box-shadow: inset 0 0 0 1px rgba(0,184,255,.12);
}
.integ-tab svg { opacity: .9; }

.integ-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.integ-card {
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(0,184,255,.22);
  background: rgba(8, 18, 34, .92);
  color: inherit;
  font: inherit;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
  min-height: 96px;
  width: 100%;
}
.integ-card:hover:not(:disabled) {
  transform: translateY(-2px);
  border-color: rgba(0,184,255,.45);
  box-shadow: 0 12px 28px rgba(0,100,200,.18);
  background: rgba(10, 24, 44, .98);
}
.integ-card img {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  background: #0a1220;
}
.integ-card strong {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: .98rem;
  margin-bottom: 4px;
}
.integ-card span {
  display: block;
  color: var(--ink-muted);
  font-size: .82rem;
  line-height: 1.4;
}
.integ-badge {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: var(--ink-muted);
  font-size: .68rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: .02em;
}
.integ-card.is-soon {
  opacity: .72;
  cursor: not-allowed;
}
.integ-card.is-connected {
  border-color: rgba(52,211,153,.4);
}
.integ-card.is-connected::after {
  content: "Conectado";
  margin-left: auto;
  align-self: flex-start;
  font-size: .68rem;
  font-weight: 800;
  color: #6ee7b7;
  background: rgba(52,211,153,.12);
  border: 1px solid rgba(52,211,153,.3);
  border-radius: 999px;
  padding: 3px 8px;
  white-space: nowrap;
}
.integ-empty {
  padding: 28px 22px;
  text-align: center;
  color: var(--ink-soft);
}

.modal--integ {
  max-width: 520px;
  width: min(520px, 94vw);
  text-align: left;
  max-height: min(88dvh, 760px);
  overflow: auto;
}
.modal--integ h2 { text-align: left; margin: 0 0 4px; }
.integ-modal-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 28px 16px 0;
  text-align: left;
}
.integ-modal-head img {
  width: 48px; height: 48px; border-radius: 12px; object-fit: cover;
}
.integ-modal-head p {
  margin: 0;
  color: var(--ink-muted);
  font-size: .86rem;
  line-height: 1.4;
}
.integ-modal-form { max-width: none; }
.copy-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.copy-row input { flex: 1; min-width: 0; }
.integ-modal-form code {
  color: #7dd3fc;
  font-size: .82rem;
  word-break: break-all;
}

@media (max-width: 1100px) {
  .integ-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .integ-grid { grid-template-columns: 1fr; }
  .integ-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }
  .integ-card.is-connected {
    flex-wrap: wrap;
  }
  .integ-card.is-connected::after {
    margin-left: 70px;
  }
  .copy-row { flex-direction: column; align-items: stretch; }
}

/* ===== Modais Integrações — estilo Amplo (footer fixo + animação) ===== */
body.modal-open {
  overflow: hidden !important;
}

.modal-backdrop.is-open {
  display: grid !important;
  visibility: visible !important;
  pointer-events: auto !important;
  animation: amplBackdropIn .22s ease both;
}
.modal-backdrop.is-closing {
  display: grid !important;
  visibility: visible !important;
  pointer-events: none !important;
  animation: amplBackdropOut .22s ease both;
}
.modal-backdrop.is-open .modal,
.modal-backdrop.is-closing .modal {
  animation: amplModalIn .32s cubic-bezier(.2,.8,.2,1) both;
}
.modal-backdrop.is-closing .modal {
  animation: amplModalOut .22s ease both;
}

@keyframes amplBackdropIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes amplBackdropOut {
  from { opacity: 1; }
  to { opacity: 0; }
}
@keyframes amplModalIn {
  from { opacity: 0; transform: translateY(18px) scale(.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes amplModalOut {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to { opacity: 0; transform: translateY(12px) scale(.97); }
}

.modal-backdrop:has(.modal--ampl) {
  align-items: center !important;
  justify-content: center !important;
  padding: 16px !important;
  z-index: 120;
}

.modal.modal--ampl {
  width: min(440px, calc(100vw - 32px)) !important;
  max-width: 440px !important;
  text-align: left !important;
  padding: 0 !important;
  border-radius: 20px !important;
  max-height: min(88dvh, 720px) !important;
  margin: 0 auto !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  position: relative;
}

.modal.modal--ampl > h2 {
  margin: 0 !important;
  padding: 22px 48px 12px 24px !important;
  font-size: 1.3rem !important;
  font-weight: 800 !important;
  text-align: left !important;
  color: #fff !important;
  flex-shrink: 0;
}

.modal.modal--ampl > .modal-close { z-index: 3; }

.ampl-form--flex {
  display: flex !important;
  flex-direction: column !important;
  min-height: 0;
  flex: 1;
  gap: 0 !important;
}

.ampl-scroll {
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 4px 24px 12px;
  display: grid;
  gap: 16px;
  align-content: start;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 184, 255, 0.55) rgba(0, 153, 255, 0.06);
  overscroll-behavior: contain;
}
.ampl-scroll::-webkit-scrollbar { width: 8px; }
.ampl-scroll::-webkit-scrollbar-track {
  margin: 8px 0;
  background: linear-gradient(180deg, rgba(0,153,255,.02), rgba(0,184,255,.08), rgba(0,153,255,.02));
  border-radius: 999px;
}
.ampl-scroll::-webkit-scrollbar-thumb {
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
  background-image: linear-gradient(180deg, #66e0ff, #0099ff 35%, #00b8ff 65%, #33d6ff);
  box-shadow: 0 0 10px rgba(0,184,255,.55), inset 0 1px 0 rgba(255,255,255,.4);
}

.ampl-footer {
  flex-shrink: 0;
  display: grid;
  gap: 10px;
  padding: 14px 24px 20px;
  border-top: 1px solid rgba(255,255,255,.06);
  background: linear-gradient(180deg, rgba(12,22,40,.92), #0c1628);
}

.ampl-modal-lead {
  margin: 0 !important;
  color: var(--ink-muted) !important;
  font-size: .88rem !important;
  line-height: 1.45 !important;
  text-align: left !important;
}

.ampl-form { display: grid; gap: 16px; }
.ampl-field { display: grid; gap: 7px; text-align: left; }
.ampl-field > span { font-size: .86rem; font-weight: 700; color: var(--ink-soft); }
.ampl-field > span em { color: #fb7185; font-style: normal; margin-left: 2px; }
.ampl-field input,
.ampl-field select {
  height: 48px; width: 100%; border: none; border-radius: 12px;
  background: rgba(255,255,255,.07); color: var(--ink); padding: 0 14px;
  font: inherit; font-size: .95rem; outline: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04);
  transition: box-shadow .15s ease, background .15s ease;
}
.ampl-field input:focus,
.ampl-field select:focus {
  background: rgba(255,255,255,.1);
  box-shadow: inset 0 0 0 1px rgba(0,184,255,.45), 0 0 0 3px rgba(0,153,255,.12);
}
.ampl-field input::placeholder { color: rgba(180, 210, 230, .45); }
.ampl-field small { font-size: .78rem; color: var(--ink-muted); line-height: 1.35; }
.ampl-field select option {
  background-color: #ffffff;
  color: #0b1220;
}
.ampl-field select option:checked,
.ampl-field select option:hover {
  background-color: #0099ff;
  color: #ffffff;
}

.ampl-copy { display: flex; gap: 8px; align-items: center; }
.ampl-copy input { flex: 1; min-width: 0; }
.ampl-copy-btn {
  height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line);
  background: rgba(255,255,255,.04); color: var(--ink-soft); font: inherit; font-weight: 700;
  font-size: .82rem; cursor: pointer; white-space: nowrap;
}
.ampl-copy-btn:hover { background: rgba(0,153,255,.14); color: #fff; }

.ampl-checks { display: grid; gap: 10px; padding: 2px 0 4px; }
.ampl-checks .kyc-check { gap: 12px; font-weight: 600; }
.ampl-checks .kyc-check input { width: 20px; height: 20px; accent-color: #0099ff; }

.ampl-submit {
  width: 100% !important; height: 50px !important; border-radius: 12px !important;
  font-size: 1rem !important; font-weight: 800 !important; margin-top: 0 !important;
}
.ampl-secondary { width: 100%; height: 46px; border-radius: 12px; }

html.is-mobile .modal-backdrop:has(.modal--ampl),
body.is-mobile .modal-backdrop:has(.modal--ampl) {
  align-items: center !important;
  padding: 12px !important;
}

@media (max-width: 560px) {
  .modal.modal--ampl {
    width: min(440px, calc(100vw - 20px)) !important;
    max-height: min(92dvh, 760px) !important;
  }
  .modal.modal--ampl > h2 { padding: 18px 44px 10px 18px !important; }
  .ampl-scroll { padding: 4px 18px 10px; }
  .ampl-footer { padding: 12px 18px 16px; }
  .ampl-copy { flex-direction: column; align-items: stretch; }
  .ampl-copy-btn { width: 100%; }
}

/* ===== Tutorial SellFlux (igual Amplo) ===== */
.tut-back-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.tut-card {
  padding: 28px 28px 32px;
  max-width: 980px;
}
.tut-head { margin-bottom: 18px; }
.tut-head__brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.tut-head__brand img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
}
.tut-head h1 {
  margin: 0;
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.2;
}
.tut-head p {
  margin: 4px 0 0;
  color: var(--ink-muted);
  font-size: .95rem;
}
.tut-body { display: grid; gap: 14px; }
.tut-intro {
  margin: 0;
  color: var(--ink-soft);
  font-size: .98rem;
  line-height: 1.55;
}
.tut-steps {
  margin: 0;
  padding-left: 1.25rem;
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: .96rem;
  line-height: 1.55;
}
.tut-steps--continue { margin-top: 4px; }
.tut-line {
  margin: 0;
  font-size: .96rem;
  line-height: 1.55;
  color: var(--ink);
}
.tut-link {
  color: #33d6ff;
  font-weight: 700;
  text-decoration: none;
}
.tut-link:hover { text-decoration: underline; color: #7dd3fc; }
.tut-link-btn {
  border: none;
  background: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
  color: #33d6ff;
  font-weight: 700;
}
.tut-link-btn:hover { text-decoration: underline; color: #7dd3fc; }
.tut-figure {
  margin: 6px 0 4px;
  display: grid;
  gap: 8px;
}
.tut-figure img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #061018;
  display: block;
}
.tut-figure figcaption {
  font-size: .82rem;
  color: var(--ink-muted);
  font-weight: 600;
}
.tut-params {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.tut-params li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: .95rem;
}
.tut-params code,
.tut-codebox {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .84rem;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  padding: 6px 10px;
  color: #c7e9ff;
  word-break: break-all;
}
.tut-codebox {
  padding: 14px 16px;
  line-height: 1.45;
  overflow-x: auto;
}

@media (max-width: 960px) {
  .tut-card { padding: 20px 16px 24px; }
  .tut-head h1 { font-size: 1.3rem; }
  .tut-back-row .btn { flex: 1; min-width: 140px; }
}

/* ---- Webhooks (Amplo-like) ---- */
.wh-head { gap: 16px; align-items: flex-start; }
.wh-head__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}
.wh-card { padding-top: 18px; }
.wh-table code.wh-token {
  font-size: .82rem;
  color: #9fd9ff;
  margin-right: 6px;
}
.wh-actions { white-space: nowrap; }
.wh-actions .btn { margin: 0 2px; }
.wh-empty { text-align: center; color: var(--ink-muted); padding: 28px 12px !important; }

.modal.modal--ampl.modal--wh {
  width: min(520px, calc(100vw - 32px)) !important;
  max-width: 520px !important;
}

.ampl-footer--end {
  display: flex !important;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  grid-template-columns: none;
}
.ampl-footer--end .ampl-cancel {
  color: #fb7185 !important;
  background: transparent !important;
  box-shadow: none !important;
  font-weight: 700;
}
.ampl-footer--end .ampl-cancel:hover {
  color: #fda4af !important;
  background: rgba(251, 113, 133, .08) !important;
}
.ampl-footer--end .ampl-submit {
  min-width: 120px;
}

.wh-ms { position: relative; }
.wh-ms__trigger {
  width: 100%;
  height: 48px;
  border: none;
  border-radius: 12px;
  background: rgba(255,255,255,.07);
  color: var(--ink);
  padding: 0 14px;
  font: inherit;
  font-size: .95rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04);
  transition: box-shadow .15s ease, background .15s ease;
}
.wh-ms__trigger:hover,
.wh-ms__trigger.is-open {
  background: rgba(255,255,255,.1);
  box-shadow: inset 0 0 0 1px rgba(0,184,255,.45), 0 0 0 3px rgba(0,153,255,.12);
}
.wh-ms__trigger svg { opacity: .7; transition: transform .2s ease; flex-shrink: 0; }
.wh-ms__trigger.is-open svg { transform: rotate(180deg); }
.wh-ms__panel {
  position: absolute;
  z-index: 5;
  left: 0; right: 0;
  top: auto;
  bottom: calc(100% + 6px);
  background: #0f1c30;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  padding: 8px;
  display: grid;
  gap: 2px;
  box-shadow: 0 -12px 40px rgba(0,0,0,.45);
  max-height: min(260px, 42vh);
  overflow: auto;
  animation: whMsIn .18s ease;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 184, 255, 0.55) rgba(0, 153, 255, 0.06);
}
.wh-ms__panel::-webkit-scrollbar { width: 8px; }
.wh-ms__panel::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: linear-gradient(180deg, #66e0ff, #0099ff 50%, #00b8ff);
}
@keyframes whMsIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.wh-ms__opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 8px;
  cursor: pointer;
  color: var(--ink);
  font-size: .92rem;
}
.wh-ms__opt:hover,
.wh-ms__opt:has(input:checked) { background: rgba(0,153,255,.14); }
.wh-ms__opt input {
  width: 18px; height: 18px;
  accent-color: #00b8ff;
  flex-shrink: 0;
}

.wh-toggle-block { display: grid; gap: 8px; text-align: left; }
.wh-toggle-block > small { font-size: .78rem; color: var(--ink-muted); line-height: 1.35; }
.wh-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}
.wh-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.wh-toggle__ui {
  width: 44px; height: 26px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  position: relative;
  flex-shrink: 0;
  transition: background .2s ease;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
}
.wh-toggle__ui::after {
  content: "";
  position: absolute;
  top: 3px; left: 3px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,.25);
  transition: transform .22s cubic-bezier(.2,.8,.2,1);
}
.wh-toggle input:checked + .wh-toggle__ui {
  background: linear-gradient(135deg, #0099ff, #00b8ff);
}
.wh-toggle input:checked + .wh-toggle__ui::after {
  transform: translateX(18px);
}
.wh-toggle__label { font-weight: 700; font-size: .95rem; color: var(--ink); }

.wh-docs-p {
  margin: 0 0 10px;
  color: var(--ink-soft);
  font-size: .92rem;
  line-height: 1.5;
}
.wh-docs-p code {
  font-size: .84rem;
  color: #9fd9ff;
  background: rgba(255,255,255,.06);
  padding: 1px 6px;
  border-radius: 6px;
}
.wh-docs-pre {
  margin: 0 0 12px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(0,0,0,.28);
  border: 1px solid rgba(255,255,255,.08);
  color: #c7e9ff;
  font-size: .82rem;
  line-height: 1.45;
  overflow-x: auto;
  white-space: pre;
}

@media (max-width: 860px) {
  .wh-head { flex-direction: column; }
  .wh-head__actions { width: 100%; }
  .wh-head__actions .btn { flex: 1; justify-content: center; }
}

/* ---- Tracking pages ---- */
.track-page {
  padding: 18px 18px 14px;
  display: grid;
  gap: 14px;
}
.track-page__head {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}
.track-page__head .track-back { justify-self: start; }
.track-page__head h1 {
  margin: 0;
  text-align: center;
  font-size: 1.35rem;
  font-weight: 800;
  justify-self: center;
}
.track-page__head #trackCreateBtn { justify-self: end; }

@media (max-width: 720px) {
  .track-page__head {
    grid-template-columns: 1fr 1fr;
  }
  .track-page__head h1 {
    grid-column: 1 / -1;
    order: -1;
    text-align: left;
    justify-self: start;
  }
}

.track-extra { display: grid; gap: 16px; }

/* ---- API Gateway page ---- */
.api-page { display: grid; gap: 18px; }
.api-page__top {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  align-items: flex-start;
}
.api-page__top h1 {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 800;
}
.api-page__top p {
  margin: 4px 0 0;
  color: var(--ink-muted);
  font-size: .92rem;
}
.api-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}
.api-card {
  padding: 20px;
  display: grid;
  gap: 16px;
}
.api-card__head {
  display: flex;
  gap: 14px;
  justify-content: space-between;
  align-items: flex-start;
}
.api-card__head h2 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
}
.api-card__head p {
  margin: 6px 0 0;
  color: var(--ink-muted);
  font-size: .88rem;
  line-height: 1.45;
  max-width: 42ch;
}
.api-card__head .btn { flex-shrink: 0; white-space: nowrap; }
.api-base {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(0,153,255,.08);
  border: 1px solid rgba(0,184,255,.18);
}
.api-base span {
  font-size: .78rem;
  font-weight: 700;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.api-base code {
  flex: 1;
  min-width: 0;
  color: #9fd9ff;
  font-size: .88rem;
  word-break: break-all;
}
.api-cred-list { display: grid; gap: 10px; }
.api-cred-item {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  transition: border-color .15s ease, background .15s ease;
}
.api-cred-item:hover {
  background: rgba(0,153,255,.08);
  border-color: rgba(0,184,255,.25);
}
.api-cred-item strong {
  display: block;
  font-size: .98rem;
}
.api-cred-item small {
  display: block;
  margin-top: 3px;
  color: var(--ink-muted);
  font-size: .8rem;
}
.api-cred-pk {
  display: inline-block;
  margin-top: 8px;
  font-size: .78rem;
  color: #9fd9ff;
  background: rgba(0,0,0,.22);
  padding: 3px 8px;
  border-radius: 6px;
}
.api-cred-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}
.api-cred-del { color: #fb7185 !important; }
.api-empty {
  text-align: center;
  color: var(--ink-muted);
  padding: 28px 12px;
  border: 1px dashed rgba(255,255,255,.1);
  border-radius: 12px;
}
@media (max-width: 980px) {
  .api-grid { grid-template-columns: 1fr; }
  .api-card__head { flex-direction: column; }
  .api-card__head .btn { width: 100%; }
}

/* ===== Transferências (Financeiro) ===== */
.wd-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}
.wd-filters-card { margin-bottom: 14px; }
.wd-filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
}
.wd-filter-label {
  font-weight: 700;
  color: var(--ink-muted);
  padding-bottom: 10px;
}
.wd-filter-field { min-width: 160px; margin: 0; }
.wd-balance-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.wd-balance-card {
  background: var(--card);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.wd-balance-card span {
  color: var(--ink-muted);
  font-size: .88rem;
}
.wd-balance-card strong {
  font-size: 1.35rem;
  color: var(--ink);
  letter-spacing: -.02em;
}
.wd-balance-card em {
  color: var(--ink-muted);
  font-size: .82rem;
  font-style: normal;
}
.wd-stats-grid { margin-bottom: 14px; }
.wd-pager {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 12px 16px;
  border-top: 1px solid rgba(255,255,255,.06);
}
.wd-page-size select {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  color: var(--ink);
  border-radius: 8px;
  padding: 6px 10px;
}
.modal--wd { max-width: 480px; }
.modal--wd-request .wd-modal-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 14px 0 18px;
}
.wd-modal-tab {
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color: var(--ink-muted);
  border-radius: 10px;
  padding: 10px 12px;
  font-weight: 600;
  cursor: pointer;
  transition: .2s ease;
}
.wd-modal-tab.is-active {
  background: rgba(20,20,24,.85);
  color: var(--ink);
  border-color: rgba(255,255,255,.2);
}
.wd-modal-balance {
  text-align: center;
  margin-bottom: 18px;
}
.wd-modal-balance strong {
  display: block;
  font-size: 2rem;
  color: var(--ink);
  letter-spacing: -.03em;
}
.wd-modal-balance span {
  color: var(--ink-muted);
  font-size: .9rem;
}
.wd-request-form .kyc-field { text-align: left; }
.wd-fee-banner {
  background: rgba(34,197,94,.12);
  border: 1px solid rgba(34,197,94,.28);
  border-radius: 10px;
  padding: 12px 14px;
  margin: 8px 0 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.wd-fee-banner strong { color: #86efac; font-size: .95rem; }
.wd-fee-banner span { color: #9fc0d8; font-size: .82rem; }
.wd-modal-footnote {
  color: var(--ink-muted);
  font-size: .82rem;
  line-height: 1.45;
  margin: 8px 0 12px;
}
.wd-no-bank-msg {
  color: var(--ink-muted);
  margin: 12px 0 20px;
  line-height: 1.5;
}
.modal-footer--split {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}
.btn-danger-text { color: #fb7185 !important; }
@media (max-width: 980px) {
  .wd-balance-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .wd-balance-grid { grid-template-columns: 1fr; }
  .wd-head .btn { width: 100%; }
}

/* ===== MOBILE DASHBOARD — pixel-perfect (referência print) ===== */
.dash-mobile { display: none; }
.dash-desktop { display: block; }

@media (max-width: 960px) {
  html.is-mobile,
  body.is-mobile {
    background: #000 !important;
  }

  .dash-mobile {
    display: block !important;
    position: relative;
    z-index: 1;
    padding: 0 0 12px;
  }
  .dash-desktop { display: none !important; }

  #dashContent {
    padding: 0 16px calc(96px + env(safe-area-inset-bottom)) !important;
    background: #000 !important;
    border: none !important;
    box-shadow: none !important;
    min-height: calc(100dvh - 56px);
    overflow-x: hidden;
  }

  /* raios de luz no fundo */
  .dash-m-bg {
    pointer-events: none;
    position: absolute;
    inset: -60px -30px auto;
    height: 480px;
    z-index: 0;
    background:
      linear-gradient(118deg, transparent 38%, rgba(0, 180, 255, 0.09) 46%, transparent 54%),
      linear-gradient(128deg, transparent 52%, rgba(0, 220, 255, 0.06) 58%, transparent 66%),
      linear-gradient(108deg, transparent 62%, rgba(0, 140, 255, 0.05) 68%, transparent 74%),
      radial-gradient(ellipse 100% 55% at 50% -8%, rgba(0, 140, 255, 0.28), transparent 62%);
  }

  .dash-m-period-wrap,
  .dash-m-goal,
  .dash-m-metrics { position: relative; z-index: 1; }

  /* header app */
  .mobile-top,
  #mobileTop {
    background: rgba(0, 0, 0, 0.92) !important;
    border-bottom: 1px solid rgba(0, 180, 255, 0.08) !important;
    box-shadow: none !important;
    padding: 10px 16px !important;
    padding-top: max(10px, env(safe-area-inset-top)) !important;
  }
  .mobile-brand img {
    height: 30px !important;
    filter: drop-shadow(0 0 12px rgba(0, 180, 255, 0.6)) !important;
  }
  .mobile-top .notify,
  .mobile-menu-btn {
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    border: 1px solid rgba(0, 180, 255, 0.2) !important;
    background: rgba(255, 255, 255, 0.04) !important;
    color: #b8d4ea !important;
    box-shadow: 0 0 16px rgba(0, 140, 255, 0.12);
  }

  /* filtro período — largura total como no print */
  .dash-m-period-wrap {
    display: block;
    width: 100%;
    margin: 12px 0 22px;
  }
  .dash-m-period {
    display: grid;
    grid-template-columns: 18px 1fr 14px;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 13px 18px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(6, 12, 22, 0.85);
    color: #f0f8ff;
    font-size: 0.92rem;
    font-weight: 600;
    box-shadow:
      0 0 0 1px rgba(0, 180, 255, 0.12) inset,
      0 0 28px rgba(0, 140, 255, 0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
  .dash-m-period svg:first-child { color: #33d6ff; }
  .dash-m-period span { text-align: center; }
  .dash-m-period-chev { opacity: 0.55; justify-self: end; }

  /* faturamento / meta — igual ao print */
  .dash-m-goal {
    display: grid;
    grid-template-columns: minmax(72px, 1fr) minmax(0, 1.55fr) minmax(72px, 1fr);
    align-items: end;
    gap: 8px 12px;
    margin-bottom: 22px;
    padding: 0 4px 4px;
  }
  .dash-m-goal-side {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
  }
  .dash-m-goal-side--right {
    align-items: flex-end;
    text-align: right;
  }
  .dash-m-goal-label {
    font-size: 0.72rem;
    font-weight: 500;
    color: #8aa0b4;
    line-height: 1.15;
    letter-spacing: 0.01em;
  }
  .dash-m-goal-value {
    display: flex;
    align-items: baseline;
    gap: 0.15em;
    font-family: var(--font-num);
    font-size: 1.02rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0;
    line-height: 1.15;
    white-space: nowrap;
    font-variant-numeric: tabular-nums lining-nums;
  }
  .dash-m-goal-value .dash-m-cur {
    font-size: 0.78rem;
    font-weight: 600;
    color: #9cb8cc;
    letter-spacing: 0.01em;
  }
  .dash-m-goal-value .dash-m-amt {
    font-weight: 700;
    color: #fff;
  }
  .dash-m-goal-bar {
    align-self: center;
    padding-bottom: 2px;
  }
  .dash-m-goal-track {
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
    box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.45);
  }
  .dash-m-goal-track i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #0066dd 0%, #00c8ff 55%, #66e8ff 100%);
    box-shadow:
      0 0 12px rgba(51, 214, 255, 0.95),
      0 0 24px rgba(0, 153, 255, 0.55);
    transition: width 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  }

  /* cards métricas */
  .dash-m-metrics {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .dash-m-card {
    position: relative;
    display: grid;
    grid-template-columns: 50px minmax(0, 1fr) 56px;
    grid-template-rows: auto auto;
    column-gap: 12px;
    row-gap: 4px;
    align-items: center;
    padding: 16px 14px 16px 16px;
    min-height: 96px;
    border-radius: 20px;
    background: linear-gradient(155deg, rgba(10, 24, 46, 0.62) 0%, rgba(4, 10, 22, 0.82) 100%);
    border: 1px solid rgba(0, 180, 255, 0.32);
    box-shadow:
      0 0 0 1px rgba(0, 180, 255, 0.1) inset,
      0 10px 36px rgba(0, 0, 0, 0.55),
      0 0 32px rgba(0, 120, 255, 0.14);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }
  .dash-m-card.dash-m-pop {
    animation: dash-m-enter var(--dur-med) var(--ease-out) both;
    animation-delay: var(--dash-m-delay, 0ms);
  }
  @keyframes dash-m-enter {
    from { opacity: 0; transform: translateY(8px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
  }

  #dashMobile {
    position: relative;
    overflow: visible;
  }

  #dashContent.content {
    gap: 0 !important;
  }

  html.is-mobile .panel,
  body.is-mobile .panel {
    background: #000 !important;
  }

  .dash-m-menu {
    position: absolute;
    top: 12px;
    right: 10px;
    z-index: 3;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #4a6478;
    display: grid;
    place-items: center;
    cursor: pointer;
  }
  .dash-m-menu svg { width: 14px; height: 14px; }

  .dash-m-icon {
    grid-row: 1 / 3;
    grid-column: 1;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at 35% 30%, rgba(80, 200, 255, 0.45), rgba(0, 60, 140, 0.35));
    border: 1px solid rgba(0, 200, 255, 0.4);
    box-shadow: 0 0 22px rgba(0, 160, 255, 0.45), inset 0 0 14px rgba(51, 214, 255, 0.2);
    color: #fff;
  }
  .dash-m-icon svg {
    width: 22px;
    height: 22px;
    filter: drop-shadow(0 0 8px rgba(51, 214, 255, 0.8));
  }

  .dash-m-info {
    grid-column: 2;
    grid-row: 1 / 3;
    min-width: 0;
    padding-right: 20px;
  }
  .dash-m-label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.78rem;
    font-weight: 500;
    color: #9cb0c4;
    margin-bottom: 7px;
    line-height: 1.2;
  }
  .dash-m-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22e57a;
    box-shadow: 0 0 8px rgba(34, 229, 122, 0.95);
    flex-shrink: 0;
  }
  .dash-m-value {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.18em;
    font-family: var(--font-num);
    font-size: 1.22rem;
    font-weight: 700;
    letter-spacing: 0;
    color: #fff;
    line-height: 1.2;
    font-variant-numeric: tabular-nums lining-nums;
    overflow: visible;
    white-space: normal;
    word-break: keep-all;
  }
  .dash-m-value .dash-m-cur {
    font-size: 0.72rem;
    font-weight: 600;
    color: #9cb8cc;
    letter-spacing: 0.02em;
    flex-shrink: 0;
  }
  .dash-m-value .dash-m-amt {
    font-weight: 700;
    font-size: 1em;
    color: #fff;
    letter-spacing: 0.005em;
  }
  .dash-m-value.is-tick .dash-m-amt,
  .dash-m-value.is-tick .dash-m-cur {
    animation: dashNumTick 0.35s ease;
  }
  @keyframes dashNumTick {
    from { opacity: 0.5; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .dash-m-visual {
    grid-column: 3;
    grid-row: 1 / 3;
    align-self: center;
    justify-self: end;
  }
  .dash-m-visual--line svg {
    width: 54px;
    height: 28px;
  }
  .dash-m-visual--line polyline {
    fill: none;
    stroke: #33d6ff;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 5px rgba(51, 214, 255, 0.9));
  }
  .dash-m-visual--bars {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 32px;
    width: 44px;
  }
  .dash-m-visual--bars i {
    flex: 1;
    border-radius: 2px;
    background: linear-gradient(180deg, #66e0ff, #0099ff);
    box-shadow: 0 0 10px rgba(0, 153, 255, 0.55);
    display: block;
  }
  .dash-m-visual--coins {
    position: relative;
    width: 38px;
    height: 34px;
  }
  .dash-m-visual--coins span {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(51, 214, 255, 0.55);
    background: radial-gradient(circle at 35% 30%, rgba(51, 214, 255, 0.55), rgba(0, 50, 120, 0.45));
    box-shadow: 0 0 12px rgba(0, 153, 255, 0.5);
  }
  .dash-m-visual--coins span:nth-child(1) { width: 20px; height: 20px; left: 0; bottom: 0; }
  .dash-m-visual--coins span:nth-child(2) { width: 17px; height: 17px; left: 11px; bottom: 9px; }
  .dash-m-visual--coins span:nth-child(3) { width: 14px; height: 14px; left: 22px; bottom: 16px; }
  .dash-m-visual--ring svg {
    width: 40px;
    height: 40px;
    filter: drop-shadow(0 0 8px rgba(51, 214, 255, 0.55));
  }

  /* tabbar inferior — override total dos estilos antigos */
  html.is-mobile .mobile-tabbar,
  html.is-mobile #mobileTabbar,
  body.is-mobile .mobile-tabbar,
  body.is-mobile #mobileTabbar,
  .mobile-tabbar,
  #mobileTabbar {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    position: fixed !important;
    left: 14px !important;
    right: 14px !important;
    bottom: calc(8px + env(safe-area-inset-bottom)) !important;
    width: auto !important;
    margin: 0 !important;
    padding: 8px 10px !important;
    border-radius: 22px !important;
    background: rgba(8, 14, 24, 0.92) !important;
    border: 1px solid rgba(0, 180, 255, 0.14) !important;
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.55), 0 0 24px rgba(0, 120, 255, 0.08) !important;
  }
  html.is-mobile .mobile-tabbar .tab,
  html.is-mobile #mobileTabbar .tab,
  body.is-mobile .mobile-tabbar .tab,
  body.is-mobile #mobileTabbar .tab,
  .mobile-tabbar .tab,
  #mobileTabbar .tab {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 6px 4px;
    border: 0;
    background: transparent !important;
    box-shadow: none !important;
    color: #6a8498 !important;
    font-size: 0.52rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.01em;
    line-height: 1.1;
    text-align: center;
    min-height: 48px;
    padding: 4px 2px 2px !important;
  }
  html.is-mobile .mobile-tabbar .tab svg,
  html.is-mobile #mobileTabbar .tab svg,
  body.is-mobile .mobile-tabbar .tab svg,
  body.is-mobile #mobileTabbar .tab svg,
  .mobile-tabbar .tab svg,
  #mobileTabbar .tab svg {
    width: 24px !important;
    height: 24px !important;
    stroke: #5a7288;
    transition: stroke 0.2s, filter 0.2s;
  }
  html.is-mobile .mobile-tabbar .tab.is-active,
  html.is-mobile #mobileTabbar .tab.is-active,
  body.is-mobile .mobile-tabbar .tab.is-active,
  body.is-mobile #mobileTabbar .tab.is-active,
  .mobile-tabbar .tab.is-active,
  #mobileTabbar .tab.is-active {
    color: #fff !important;
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
  }
  html.is-mobile .mobile-tabbar .tab.is-active::before,
  html.is-mobile #mobileTabbar .tab.is-active::before,
  body.is-mobile .mobile-tabbar .tab.is-active::before,
  body.is-mobile #mobileTabbar .tab.is-active::before,
  .mobile-tabbar .tab.is-active::before,
  #mobileTabbar .tab.is-active::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -58%);
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: rgba(0, 100, 200, 0.35);
    box-shadow: 0 0 28px rgba(0, 160, 255, 0.45), inset 0 0 12px rgba(51, 214, 255, 0.15);
    z-index: 0;
  }
  html.is-mobile .mobile-tabbar .tab.is-active svg,
  html.is-mobile #mobileTabbar .tab.is-active svg,
  body.is-mobile .mobile-tabbar .tab.is-active svg,
  body.is-mobile #mobileTabbar .tab.is-active svg,
  .mobile-tabbar .tab.is-active svg,
  #mobileTabbar .tab.is-active svg {
    position: relative;
    z-index: 1;
    stroke: #fff !important;
    filter: drop-shadow(0 0 10px rgba(51, 214, 255, 0.9)) !important;
  }
  html.is-mobile .mobile-tabbar .tab.is-active span,
  html.is-mobile #mobileTabbar .tab.is-active span,
  body.is-mobile .mobile-tabbar .tab.is-active span,
  body.is-mobile #mobileTabbar .tab.is-active span,
  .mobile-tabbar .tab.is-active span,
  #mobileTabbar .tab.is-active span {
    position: relative;
    z-index: 1;
    color: #fff !important;
  }

  /* esconder kpi desktop residual no mobile */
  #dashContent .kpi-grid,
  #dashContent .dash-desktop,
  #dashContent .mid-grid,
  #dashContent .bottom-grid,
  #dashContent .dash-achievements,
  #dashContent .content-head--dash {
    display: none !important;
  }

  @media (max-width: 380px) {
    .dash-m-goal {
      grid-template-columns: 1fr 1fr;
      row-gap: 10px;
      align-items: end;
    }
    .dash-m-goal-bar {
      grid-column: 1 / -1;
      order: 3;
      padding-bottom: 0;
    }
    .dash-m-goal-label { font-size: 0.66rem; }
    .dash-m-goal-value { font-size: 0.92rem; }
    .dash-m-value { font-size: 1.1rem; }
    .mobile-tabbar .tab span,
    #mobileTabbar .tab span {
      font-size: 0.48rem !important;
    }
    .dash-m-card {
      grid-template-columns: 44px minmax(0, 1fr) 48px;
      padding: 14px 12px;
    }
    .dash-m-icon { width: 42px; height: 42px; }
  }
}

/* ===== PWA app + notificações ===== */
.pwa-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid rgba(0, 184, 255, 0.22);
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(0, 153, 255, 0.16), transparent 55%),
    rgba(8, 18, 34, 0.92);
  box-shadow: 0 0 28px rgba(0, 140, 255, 0.12);
}
.pwa-card__icon img {
  display: block;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  box-shadow: 0 0 20px rgba(0, 153, 255, 0.35);
}
.pwa-card--mobile .pwa-card__icon img {
  width: 52px;
  height: 52px;
  border-radius: 14px;
}
.pwa-card__body { min-width: 0; flex: 1; }
.pwa-card h3 {
  font-family: var(--font);
  font-size: 1.12rem;
  color: #fff;
  margin-bottom: 6px;
}
.pwa-card p {
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.45;
}
.pwa-card__status {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 12px 0 14px;
  color: #9ec9e6;
  font-size: 0.82rem;
}
.pwa-card__status li::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: #33d6ff;
  box-shadow: 0 0 8px #33d6ff;
}
.pwa-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pwa-card__hint {
  margin-top: 10px;
  color: #fbbf24;
  font-size: 0.84rem;
  line-height: 1.4;
}
.pwa-card__steps {
  margin: 12px 0 4px 18px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.55;
}
.pwa-card--dash { margin: 4px 0 18px; }
.pwa-card--page { margin-top: 4px; }
.pwa-card--mobile {
  position: relative;
  z-index: 1;
  margin: 16px 0 8px;
  padding: 16px;
}

.pwa-toast {
  position: fixed;
  left: 50%;
  bottom: calc(86px + env(safe-area-inset-bottom));
  transform: translate(-50%, 24px);
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: min(92vw, 380px);
  max-width: 420px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(6, 14, 26, 0.96);
  border: 1px solid rgba(0, 184, 255, 0.28);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45), 0 0 24px rgba(0, 153, 255, 0.2);
  color: #fff;
  opacity: 0;
  pointer-events: none;
  z-index: 80;
  transition: opacity 220ms ease, transform 220ms ease;
}
.pwa-toast.is-on {
  opacity: 1;
  transform: translate(-50%, 0);
}
.pwa-toast img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}
.pwa-toast strong { display: block; font-size: 0.92rem; }
.pwa-toast span { display: block; color: #b7cce0; font-size: 0.8rem; margin-top: 2px; }

@media (min-width: 961px) {
  .pwa-toast { bottom: 28px; }
}

.view-loader {
  position: absolute;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(3, 10, 20, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
  color: #9ec4e4;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.view-loader[hidden] { display: none; }
.view-loader.is-on {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}
.view-loader__spin {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid rgba(0, 153, 255, 0.18);
  border-top-color: #00b8ff;
  animation: viewSpin 0.7s linear infinite;
}
@keyframes viewSpin {
  to { transform: rotate(360deg); }
}

.notify-prefs-lead {
  color: var(--ink-muted);
  font-size: 0.86rem;
  margin: 0 16px 12px;
}
.notify-pref-list {
  display: flex;
  flex-direction: column;
  padding: 4px 8px 12px;
}
.notify-switch {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.notify-switch:last-child { border-bottom: 0; }
.notify-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.notify-switch i {
  flex: 0 0 46px;
  width: 46px;
  height: 28px;
  border-radius: 999px;
  background: rgba(125, 147, 173, 0.28);
  position: relative;
  transition: background 180ms ease;
}
.notify-switch i::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #eef5ff;
  box-shadow: 0 1px 4px rgba(0,0,0,.28);
  transition: transform 180ms var(--ease-out);
}
.notify-switch input:checked + i {
  background: linear-gradient(135deg, #0099ff, #00b8ff);
}
.notify-switch input:checked + i::after {
  transform: translateX(18px);
}
.notify-switch span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.notify-switch strong {
  font-size: 0.92rem;
  font-weight: 700;
}
.notify-switch small {
  color: var(--ink-muted);
  font-size: 0.75rem;
}

@media (max-width: 960px) {
  .view-loader {
    position: fixed;
    top: 56px;
    bottom: 68px;
    left: 0;
    right: 0;
  }
  html, body, .panel, .main, .content {
    touch-action: pan-y;
  }
}

.race-empty[hidden],
.race-card[hidden],
.collab-empty[hidden],
#collabTableWrap[hidden] {
  display: none !important;
}
.race-meta strong { color: #e8f6ff; }
.race-board-me td { background: rgba(0,153,255,.12); }
.ref-link-card { margin-bottom: 14px; }
.ref-link-card .sale-recover-link { display: flex; gap: 8px; }
.ref-link-card input {
  flex: 1; height: 44px; border-radius: 12px;
  border: 1px solid var(--line); background: rgba(255,255,255,.04);
  color: var(--ink); padding: 0 12px; font: inherit;
}
.ref-progress {
  height: 8px; border-radius: 99px; background: rgba(255,255,255,.08);
  overflow: hidden; margin-top: 8px;
}
.ref-progress > i {
  display: block; height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, #0099ff, #33d6ff);
}
.aff-top-item.is-done { border-color: rgba(52,211,153,.35); }
.avatar-preview-wrap {
  width: 112px; height: 112px; border-radius: 50%;
  overflow: hidden; margin: 0 auto 8px;
  border: 2px solid rgba(0,184,255,.35);
  background: rgba(0,153,255,.12);
  display: grid; place-items: center;
}
#cfgAvatarPreview {
  width: 112px !important; height: 112px !important;
  max-height: none !important; object-fit: cover; border-radius: 50%;
}
.avatar-preview-fallback {
  font-weight: 800; color: #7dd3fc; font-size: 1.4rem;
}
.avatar-drop--compact {
  min-height: 72px !important; padding: 10px !important;
}
.avatar-presets { display: grid; gap: 8px; }
.avatar-presets__label {
  margin: 0; font-size: .78rem; font-weight: 700; color: var(--ink-soft);
}
.avatar-presets__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.avatar-preset {
  width: 100%; aspect-ratio: 1;
  border-radius: 50%; border: 2px solid transparent;
  padding: 0; background: transparent; cursor: pointer; overflow: hidden;
}
.avatar-preset img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-preset.is-selected {
  border-color: #33d6ff;
  box-shadow: 0 0 0 3px rgba(51,214,255,.25);
}
.collab-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
  margin-bottom: 14px;
}
.collab-empty {
  text-align: center; padding: 36px 16px;
  display: grid; gap: 10px; justify-items: center;
}
.collab-empty p { margin: 0; color: var(--ink-muted); max-width: 420px; }
.collab-person { display: flex; align-items: center; gap: 10px; }
.collab-person__av {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; flex-shrink: 0;
  background: rgba(0,153,255,.18); color: #7dd3fc; font-weight: 800; font-size: .78rem;
}
.collab-actions { display: flex; flex-wrap: wrap; gap: 6px; }
@media (max-width: 960px) {
  .collab-stats { grid-template-columns: 1fr 1fr; }
  .avatar-presets__grid { grid-template-columns: repeat(4, 1fr); }
}



