/* SafeCandle App UI — estilo painel fintech (inspirado em apps de trading) */
:root {
  --bg: #0b0b14;
  --bg-2: #101020;
  --bg-elevated: #161625;
  --bg-card: #1a1a2e;
  --bg-card-2: #1f1f35;
  --bg-input: #12121f;
  --border: rgba(255, 255, 255, 0.08);
  --border-2: rgba(255, 255, 255, 0.12);
  --text: #f4f6fb;
  --text-muted: #a8b0c1;
  --text-dim: #6b7388;
  --primary: #4caf50;
  --primary-2: #66bb6a;
  --primary-dim: rgba(76, 175, 80, 0.15);
  --primary-glow: rgba(76, 175, 80, 0.35);
  --accent: #00d1ff;
  --accent-dim: rgba(0, 209, 255, 0.12);
  --warn: #ffc107;
  --danger: #f38a72;
  --danger-dim: rgba(243, 138, 114, 0.14);
  --up: #4caf50;
  --down: #f38a72;
  --radius: 16px;
  --radius-sm: 12px;
  --radius-xs: 8px;
  --shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
  --sidebar: 268px;
  --topbar: 64px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select { font: inherit; }
img { max-width: 100%; display: block; }

.bg-app {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse 70% 45% at 10% 0%, rgba(76, 175, 80, 0.12), transparent 50%),
    radial-gradient(ellipse 50% 40% at 100% 10%, rgba(0, 209, 255, 0.08), transparent 45%),
    var(--bg);
}

/* ========== Brand ========== */
.sc-logo {
  display: inline-flex; align-items: center; gap: 0.65rem;
  color: var(--text); text-decoration: none; font-weight: 750;
}
.sc-logo:hover { text-decoration: none; opacity: 0.95; }
.sc-logo-mark {
  width: 38px; height: 38px; border-radius: 11px;
  background: linear-gradient(145deg, #66bb6a, #2e7d32);
  box-shadow: 0 0 0 1px rgba(76,175,80,.3), 0 8px 20px var(--primary-glow);
  display: grid; place-items: center; flex-shrink: 0;
}
.sc-logo-mark svg { width: 20px; height: 20px; }
.sc-logo-text { font-size: 1.15rem; letter-spacing: -0.03em; }
.sc-logo-text em { font-style: normal; color: var(--primary-2); }
.sc-logo-sub {
  display: block; font-size: 0.62rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-dim);
  margin-top: 2px;
}

/* ========== Auth (login / register) ========== */
.auth-shell {
  min-height: 100vh; position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr 0.95fr;
}
.auth-visual {
  padding: 2rem 2.5rem 2rem;
  display: flex; flex-direction: column; justify-content: space-between;
  background:
    linear-gradient(165deg, rgba(26,26,46,.95), rgba(11,11,20,.98)),
    radial-gradient(circle at 30% 20%, rgba(76,175,80,.15), transparent 40%);
  border-right: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.auth-visual::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 22px 22px; opacity: .5; pointer-events: none;
}
.auth-visual > * { position: relative; z-index: 1; }
.auth-visual h1 {
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  font-weight: 800; letter-spacing: -0.04em; line-height: 1.12;
  margin: 3.5rem 0 1rem; max-width: 460px;
}
.auth-visual h1 span {
  background: linear-gradient(90deg, #66bb6a, #00d1ff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.auth-visual .lead {
  color: var(--text-muted); font-size: 1.05rem; max-width: 420px; margin-bottom: 2rem;
}
.auth-metrics {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; max-width: 440px;
}
.auth-metric {
  background: rgba(255,255,255,.03); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 0.95rem;
}
.auth-metric b {
  display: block; font-size: 1.2rem; color: var(--primary-2); font-variant-numeric: tabular-nums;
}
.auth-metric span {
  font-size: 0.72rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: .04em;
}
.auth-visual-footer { color: var(--text-dim); font-size: 0.82rem; }

/* mock phone / panel preview */
.auth-preview {
  margin-top: 2rem; max-width: 380px;
  background: var(--bg-card); border: 1px solid var(--border-2);
  border-radius: 18px; padding: 1rem; box-shadow: var(--shadow);
}
.auth-preview .row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.55rem 0; border-bottom: 1px solid var(--border); font-size: 0.88rem;
}
.auth-preview .row:last-child { border-bottom: 0; }
.auth-preview .up { color: var(--up); font-weight: 700; }
.auth-preview .muted { color: var(--text-muted); }

.auth-side {
  display: flex; align-items: center; justify-content: center;
  padding: 2rem 1.25rem; background: var(--bg-2);
}
.auth-box {
  width: 100%; max-width: 420px;
  background: var(--bg-card);
  border: 1px solid var(--border-2);
  border-radius: 20px;
  padding: 1.75rem 1.6rem 1.5rem;
  box-shadow: var(--shadow);
}
.auth-box h2 {
  font-size: 1.55rem; font-weight: 750; letter-spacing: -0.03em; margin-bottom: 0.3rem;
}
.auth-box .sub { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 1.4rem; }

.tabs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem;
  background: var(--bg-input); border-radius: 999px; padding: 0.3rem; margin-bottom: 1.35rem;
  border: 1px solid var(--border);
}
.tabs a {
  text-align: center; padding: 0.55rem 0.75rem; border-radius: 999px;
  color: var(--text-muted); font-weight: 600; font-size: 0.9rem; text-decoration: none;
}
.tabs a.active {
  background: linear-gradient(180deg, #66bb6a, #3d8b40);
  color: #04150a; box-shadow: 0 4px 14px var(--primary-glow);
}
.tabs a:hover { text-decoration: none; }

.field { margin-bottom: 1rem; }
.field label {
  display: block; font-size: 0.82rem; font-weight: 600; color: var(--text-muted); margin-bottom: 0.4rem;
}
.field input, .field select {
  width: 100%; background: var(--bg-input); border: 1px solid var(--border-2);
  border-radius: var(--radius-xs); color: var(--text);
  padding: 0.8rem 0.95rem; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-dim);
}
.field input::placeholder { color: var(--text-dim); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.field-hint { font-size: 0.78rem; color: var(--text-dim); margin-top: 0.3rem; }

.check {
  display: flex; gap: 0.55rem; align-items: flex-start;
  font-size: 0.85rem; color: var(--text-muted); margin: 0.2rem 0 1.15rem;
}
.check input { margin-top: 0.2rem; accent-color: var(--primary); }

.alert {
  border-radius: var(--radius-xs); padding: 0.7rem 0.85rem; font-size: 0.88rem; margin-bottom: 1rem; display: none;
}
.alert.show { display: block; }
.alert-error { background: var(--danger-dim); border: 1px solid rgba(243,138,114,.35); color: #ffc9bc; }
.alert-ok { background: var(--primary-dim); border: 1px solid rgba(76,175,80,.35); color: #b9f6ca; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
  border: none; border-radius: var(--radius-xs); padding: 0.82rem 1.15rem;
  font-weight: 700; cursor: pointer; transition: .12s ease; text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.985); }
.btn-primary {
  width: 100%;
  background: linear-gradient(180deg, #66bb6a, #3d8b40);
  color: #04150a; box-shadow: 0 6px 18px var(--primary-glow);
}
.btn-primary:hover { filter: brightness(1.06); }
.btn-ghost {
  background: transparent; color: var(--text-muted); border: 1px solid var(--border-2);
}
.btn-ghost:hover { background: rgba(255,255,255,.04); color: var(--text); }
.btn-sm { padding: 0.45rem 0.85rem; font-size: 0.85rem; }
.btn-outline {
  background: transparent; color: var(--primary-2); border: 1px solid rgba(76,175,80,.4);
}
.btn-outline:hover { background: var(--primary-dim); }
.btn-icon {
  width: 38px; height: 38px; padding: 0; border-radius: 10px;
  background: rgba(255,255,255,.04); border: 1px solid var(--border); color: var(--text);
}

.demo-chip {
  margin-top: 1.1rem; padding: 0.85rem 0.95rem;
  background: var(--accent-dim); border: 1px solid rgba(0,209,255,.22);
  border-radius: var(--radius-xs); font-size: 0.82rem; color: var(--text-muted);
}
.demo-chip strong { color: var(--accent); }
.demo-chip code {
  background: rgba(0,0,0,.25); padding: 0.1rem 0.35rem; border-radius: 4px; color: #c8f7ff;
  font-size: 0.8rem;
}
.auth-foot {
  text-align: center; margin-top: 1.25rem; color: var(--text-muted); font-size: 0.9rem;
}

/* ========== App shell (dashboard) ========== */
.app {
  min-height: 100vh; display: grid;
  grid-template-columns: var(--sidebar) 1fr;
  position: relative; z-index: 1;
}
.sidebar {
  background: var(--bg-2);
  border-right: 1px solid var(--border);
  height: 100vh; position: sticky; top: 0;
  display: flex; flex-direction: column;
  padding: 1.1rem 0.85rem;
}
.sidebar .sc-logo { padding: 0.35rem 0.55rem 1.1rem; }
.side-nav { display: flex; flex-direction: column; gap: 0.2rem; flex: 1; overflow: auto; }
.side-nav button, .side-nav a {
  display: flex; align-items: center; gap: 0.7rem;
  width: 100%; text-align: left; border: 0; background: transparent;
  color: var(--text-muted); padding: 0.72rem 0.8rem; border-radius: 11px;
  font-weight: 600; font-size: 0.9rem; cursor: pointer;
}
.side-nav button:hover, .side-nav a:hover {
  background: rgba(255,255,255,.04); color: var(--text); text-decoration: none;
}
.side-nav button.active {
  background: var(--primary-dim); color: #b9f6ca;
  box-shadow: inset 0 0 0 1px rgba(76,175,80,.2);
}
.side-nav .ico {
  width: 22px; text-align: center; font-size: 1rem; opacity: .9;
}
.side-section {
  margin: 0.85rem 0.55rem 0.35rem;
  font-size: 0.68rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--text-dim);
}
.side-user {
  border-top: 1px solid var(--border); padding-top: 0.9rem; margin-top: 0.5rem;
  display: flex; align-items: center; gap: 0.7rem;
}
.avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, #4caf50, #00d1ff);
  display: grid; place-items: center; font-weight: 800; font-size: 0.85rem; color: #fff;
}
.side-user .meta { min-width: 0; flex: 1; }
.side-user .meta b {
  display: block; font-size: 0.88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.side-user .meta span { font-size: 0.74rem; color: var(--text-dim); }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  height: var(--topbar);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.35rem;
  border-bottom: 1px solid var(--border);
  background: rgba(11,11,20,.75);
  backdrop-filter: blur(14px);
  position: sticky; top: 0; z-index: 20;
}
.topbar-left {
  display: flex; align-items: center; gap: 0.65rem; min-width: 0;
}
.topbar h1 { font-size: 1.1rem; font-weight: 700; letter-spacing: -0.02em; }
.topbar-right { display: flex; align-items: center; gap: 0.65rem; }

/* Mobile nav hamburger (hidden on desktop) */
.nav-toggle {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; padding: 8px;
  border: 1px solid var(--border); border-radius: 10px;
  background: rgba(255,255,255,.04); color: var(--text);
  cursor: pointer; flex-shrink: 0;
}
.nav-toggle:hover { background: rgba(255,255,255,.08); }
.nav-toggle-bar {
  display: block; height: 2px; width: 100%;
  background: currentColor; border-radius: 1px;
}
.sidebar-backdrop {
  display: none;
  position: fixed; inset: 0; z-index: 90;
  background: rgba(4, 6, 14, 0.62);
  backdrop-filter: blur(3px);
}
.pill-live {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.78rem; font-weight: 700; color: #b9f6ca;
  background: var(--primary-dim); border: 1px solid rgba(76,175,80,.25);
  border-radius: 999px; padding: 0.32rem 0.7rem;
}
.pill-live::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--primary); box-shadow: 0 0 8px var(--primary);
  animation: pulse 1.5s infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; } 50% { opacity: .35; }
}

.content { padding: 1.25rem 1.35rem 2rem; flex: 1; }
.mock-note {
  background: linear-gradient(90deg, rgba(255,193,7,.12), rgba(0,209,255,.08));
  border: 1px solid rgba(255,193,7,.28);
  color: #ffe082; border-radius: var(--radius-sm);
  padding: 0.65rem 0.95rem; font-size: 0.84rem; margin-bottom: 1rem;
}

.grid { display: grid; gap: 1rem; }
.g4 { grid-template-columns: repeat(4, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g2 { grid-template-columns: 1.45fr 1fr; }
.g2-eq { grid-template-columns: 1fr 1fr; }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem;
}
.card-hd {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 0.95rem; gap: 0.75rem;
}
.card-hd h3 { font-size: 0.98rem; font-weight: 700; }
.card-hd .muted { color: var(--text-dim); font-size: 0.8rem; }

.kpi .label {
  font-size: 0.75rem; color: var(--text-dim); text-transform: uppercase;
  letter-spacing: .05em; font-weight: 700; margin-bottom: 0.4rem;
}
.kpi .value {
  font-size: 1.55rem; font-weight: 800; letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.kpi .delta { margin-top: 0.35rem; font-size: 0.84rem; font-weight: 700; }
.delta.up { color: var(--up); }
.delta.down { color: var(--down); }

/* chart */
.chart {
  height: 230px; display: flex; align-items: flex-end; gap: 5px; padding-top: 0.5rem;
}
.candle { flex: 1; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; position: relative; }
.candle .wick { width: 2px; position: absolute; opacity: .55; background: currentColor; }
.candle .body { width: 65%; max-width: 12px; border-radius: 2px; position: relative; z-index: 1; }
.candle.up { color: var(--up); }
.candle.up .body { background: var(--up); }
.candle.down { color: var(--down); }
.candle.down .body { background: var(--down); }

/* bot */
.bot-row {
  display: flex; align-items: center; gap: 0.9rem; margin-bottom: 1.1rem;
}
.bot-ico {
  width: 52px; height: 52px; border-radius: 14px;
  background: linear-gradient(145deg, #4caf50, #00bcd4);
  display: grid; place-items: center; font-size: 1.45rem;
  box-shadow: 0 0 22px var(--primary-glow);
}
.bot-meta h4 { font-size: 1.02rem; }
.bot-meta p { color: var(--text-muted); font-size: 0.85rem; }
.toggle {
  margin-left: auto; width: 50px; height: 28px; border-radius: 999px;
  background: rgba(255,255,255,.1); border: 1px solid var(--border);
  position: relative; cursor: pointer; transition: .2s;
}
.toggle.on { background: var(--primary); border-color: transparent; }
.toggle::after {
  content: ""; position: absolute; top: 3px; left: 3px;
  width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: .2s;
}
.toggle.on::after { transform: translateX(22px); }

.bars { display: flex; flex-direction: column; gap: 0.8rem; }
.bar-item label {
  display: flex; justify-content: space-between; font-size: 0.84rem;
  color: var(--text-muted); margin-bottom: 0.3rem;
}
.bar-item label strong { color: var(--text); }
.bar {
  height: 6px; border-radius: 999px; background: rgba(255,255,255,.06); overflow: hidden;
}
.bar > i {
  display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, #4caf50, #00d1ff);
}

/* tables */
.table-wrap { overflow-x: auto; }
table.data {
  width: 100%; border-collapse: collapse; font-size: 0.88rem;
}
table.data th {
  text-align: left; color: var(--text-dim); font-size: 0.72rem;
  text-transform: uppercase; letter-spacing: .05em; font-weight: 700;
  padding: 0.55rem 0.4rem; border-bottom: 1px solid var(--border);
}
table.data td {
  padding: 0.72rem 0.4rem; border-bottom: 1px solid var(--border);
  font-variant-numeric: tabular-nums;
}
table.data tr:last-child td { border-bottom: 0; }
.tag {
  display: inline-flex; padding: 0.18rem 0.5rem; border-radius: 999px;
  font-size: 0.72rem; font-weight: 750;
}
.tag.buy { background: var(--primary-dim); color: #b9f6ca; }
.tag.sell { background: var(--danger-dim); color: #ffc9bc; }
.tag.ok { background: var(--primary-dim); color: #b9f6ca; }
.tag.warn { background: rgba(255,193,7,.14); color: #ffe082; }

/* wallet quick actions */
.action-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.65rem;
}
.action-grid .btn { width: 100%; }

.toast {
  position: fixed; bottom: 1.25rem; right: 1.25rem; z-index: 100;
  background: var(--bg-card-2); border: 1px solid var(--border-2);
  border-radius: var(--radius-sm); padding: 0.85rem 1.05rem;
  box-shadow: var(--shadow); max-width: 320px; font-size: 0.9rem;
  transform: translateY(120%); opacity: 0; transition: .25s ease;
}
.toast.show { transform: translateY(0); opacity: 1; }

.panel { display: none; }
.panel.active { display: block; }

/* mini spark */
.spark {
  display: flex; align-items: flex-end; gap: 2px; height: 28px; margin-top: 0.55rem;
}
.spark span {
  flex: 1; border-radius: 2px 2px 0 0;
  background: linear-gradient(180deg, rgba(76,175,80,.9), rgba(76,175,80,.2));
  min-height: 4px;
}

@media (max-width: 1100px) {
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .g2 { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .app { grid-template-columns: 1fr; }
  .nav-toggle { display: flex; }
  .sidebar {
    display: flex;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: min(var(--sidebar), 86vw);
    z-index: 100;
    transform: translateX(-105%);
    transition: transform .22s ease;
    box-shadow: none;
    height: 100vh;
  }
  .sidebar.is-open {
    transform: translateX(0);
    box-shadow: 8px 0 32px rgba(0,0,0,.45);
  }
  .sidebar-backdrop.is-open {
    display: block;
  }
  body.nav-open { overflow: hidden; }
  .field-row { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .g4, .g3, .g2-eq, .action-grid { grid-template-columns: 1fr; }
  .content { padding: 1rem; }
  .topbar { padding: 0 0.85rem; }
}

/* ========== Modals / overlays ========== */
.modal-root {
  position: fixed; inset: 0; z-index: 200;
  display: none; align-items: center; justify-content: center;
  padding: 1rem;
}
.modal-root.open { display: flex; }
.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(4, 6, 14, 0.72);
  backdrop-filter: blur(6px);
}
.modal {
  position: relative; z-index: 1;
  width: min(480px, 100%);
  background: var(--bg-card);
  border: 1px solid var(--border-2);
  border-radius: 18px;
  box-shadow: var(--shadow);
  max-height: min(90vh, 720px);
  overflow: auto;
  animation: modalIn .18s ease;
}
.modal.wide { width: min(720px, 100%); }
.modal.lg { width: min(860px, 100%); }
@keyframes modalIn {
  from { opacity: 0; transform: translateY(10px) scale(.98); }
  to { opacity: 1; transform: none; }
}
.modal-hd {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 1.2rem; border-bottom: 1px solid var(--border);
}
.modal-hd h3 { font-size: 1.05rem; font-weight: 750; }
.modal-bd { padding: 1.15rem 1.2rem 1.25rem; }
.modal-ft {
  display: flex; gap: 0.6rem; justify-content: flex-end;
  padding: 0 1.2rem 1.2rem;
}
.modal-ft .btn { width: auto; min-width: 110px; }

.method-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.65rem; margin-bottom: 1rem;
}
.method {
  border: 1px solid var(--border-2); border-radius: 12px; padding: 0.85rem;
  background: var(--bg-input); cursor: pointer; text-align: left;
  color: var(--text); transition: .12s;
}
.method:hover { border-color: rgba(76,175,80,.4); }
.method.active {
  border-color: var(--primary); background: var(--primary-dim);
  box-shadow: 0 0 0 1px rgba(76,175,80,.25);
}
.method b { display: block; font-size: 0.9rem; margin-bottom: 0.15rem; }
.method span { font-size: 0.78rem; color: var(--text-muted); }

.plan-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem;
}
.plan-card {
  border: 1px solid var(--border-2); border-radius: 14px; padding: 1rem;
  background: var(--bg-input); position: relative;
}
.plan-card.featured {
  border-color: rgba(76,175,80,.5);
  background: linear-gradient(180deg, rgba(76,175,80,.12), var(--bg-input));
}
.plan-card .badge {
  position: absolute; top: 10px; right: 10px;
  font-size: 0.68rem; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; color: #04150a;
  background: linear-gradient(180deg,#66bb6a,#3d8b40);
  padding: 0.2rem 0.45rem; border-radius: 999px;
}
.plan-card h4 { font-size: 1rem; margin-bottom: 0.25rem; }
.plan-card .price {
  font-size: 1.45rem; font-weight: 800; letter-spacing: -0.03em; margin: 0.4rem 0 0.7rem;
}
.plan-card ul {
  list-style: none; font-size: 0.82rem; color: var(--text-muted);
  display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 0.9rem;
}
.plan-card ul li::before { content: "? "; color: var(--primary-2); font-weight: 800; }

.otp-row {
  display: flex; gap: 0.45rem; justify-content: center; margin: 1rem 0;
}
.otp-row input {
  width: 44px; height: 48px; text-align: center; font-size: 1.2rem; font-weight: 700;
  background: var(--bg-input); border: 1px solid var(--border-2);
  border-radius: 10px; color: var(--text); outline: none;
}
.otp-row input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-dim); }

.notif-list { display: flex; flex-direction: column; gap: 0.55rem; max-height: 360px; overflow: auto; }
.notif-item {
  display: flex; gap: 0.75rem; padding: 0.75rem;
  background: var(--bg-input); border: 1px solid var(--border);
  border-radius: 12px; font-size: 0.88rem;
}
.notif-item.unread { border-color: rgba(0,209,255,.25); background: var(--accent-dim); }
.notif-item .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-top: 0.4rem; flex-shrink: 0;
}
.notif-item .dot.read { background: var(--text-dim); }
.notif-item time { display: block; font-size: 0.72rem; color: var(--text-dim); margin-top: 0.2rem; }

.top-ico {
  position: relative; width: 38px; height: 38px; border-radius: 10px;
  background: rgba(255,255,255,.04); border: 1px solid var(--border);
  color: var(--text); display: grid; place-items: center; cursor: pointer;
}
.top-ico .badge-n {
  position: absolute; top: -4px; right: -4px;
  min-width: 16px; height: 16px; border-radius: 999px;
  background: var(--danger); color: #fff; font-size: 0.65rem; font-weight: 800;
  display: grid; place-items: center; padding: 0 4px;
}

.quick-actions {
  display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem;
}
.status-row {
  display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem;
}
.status-chip {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.78rem; font-weight: 700;
  padding: 0.35rem 0.65rem; border-radius: 999px;
  border: 1px solid var(--border); background: rgba(255,255,255,.03);
  color: var(--text-muted);
}
.status-chip.ok { color: #b9f6ca; border-color: rgba(76,175,80,.3); background: var(--primary-dim); }
.status-chip.warn { color: #ffe082; border-color: rgba(255,193,7,.3); background: rgba(255,193,7,.1); }

.tier-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem 1.15rem; border-radius: var(--radius);
  background: linear-gradient(105deg, rgba(76,175,80,.16), rgba(0,209,255,.1));
  border: 1px solid rgba(76,175,80,.28); margin-bottom: 1rem;
}
.tier-banner h3 { font-size: 1rem; margin-bottom: 0.2rem; }
.tier-banner p { font-size: 0.85rem; color: var(--text-muted); }

.kyc-steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.55rem; margin: 0.75rem 0 1rem;
}
.kyc-step {
  text-align: center; padding: 0.7rem 0.4rem; border-radius: 12px;
  border: 1px solid var(--border); background: var(--bg-input); font-size: 0.8rem;
}
.kyc-step.done { border-color: rgba(76,175,80,.4); background: var(--primary-dim); color: #b9f6ca; }
.kyc-step b { display: block; font-size: 1.1rem; margin-bottom: 0.2rem; }

.ref-box {
  display: flex; gap: 0.5rem; align-items: center;
  background: var(--bg-input); border: 1px solid var(--border-2);
  border-radius: 10px; padding: 0.55rem 0.65rem;
}
.ref-box code { flex: 1; font-size: 0.85rem; color: var(--accent); overflow: hidden; text-overflow: ellipsis; }

@media (max-width: 900px) {
  .plan-grid { grid-template-columns: 1fr; }
  .method-grid { grid-template-columns: 1fr; }
  .kyc-steps { grid-template-columns: 1fr; }
  .tier-banner { flex-direction: column; align-items: flex-start; }
}

/* ========== Onboarding tour ========== */
#onboarding-root {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 300;
}
#onboarding-root.onboarding-open {
  display: block;
}
.onboarding-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(4, 6, 14, 0.78);
  backdrop-filter: blur(8px);
}
.onboarding-card {
  width: min(440px, 100%);
  background: var(--bg-card);
  border: 1px solid var(--border-2);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 1.35rem 1.4rem 1.3rem;
  animation: modalIn 0.2s ease;
}
.onboarding-progress {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1rem;
}
.onboarding-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  transition: 0.15s;
}
.onboarding-dot.active {
  width: 22px;
  background: var(--primary);
}
.onboarding-dot.done {
  background: rgba(76, 175, 80, 0.55);
}
.onboarding-step-label {
  margin-left: auto;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}
.onboarding-kicker {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.35rem;
}
.onboarding-title {
  font-size: 1.35rem;
  font-weight: 750;
  margin-bottom: 0.55rem;
  line-height: 1.25;
}
.onboarding-body {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}
.onboarding-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.55rem;
}
.onboarding-actions .btn {
  width: auto;
  min-width: 100px;
}

/* Company logo — large transparent gold/navy mark */
.sc-logo-img {
  display: block;
  height: auto;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 14px rgba(212, 175, 55, 0.28)) !important;
  border-radius: 0;
  background: transparent !important;
  padding: 0;
  box-shadow: none;
}
.sc-logo-img--full { width: 110px; height: 110px; max-height: 110px; }
.sc-logo-img--app { width: 72px; height: 72px; max-height: 72px; }
.sc-logo-img--footer { width: 128px; height: 128px; max-height: 128px; }
.sc-brand { gap: 0 !important; }
.sc-logo { gap: 0 !important; }
.navbar-brand.sc-brand { padding-top: 0.2rem; padding-bottom: 0.2rem; }

/* ---- Polish: stronger primary button + card hover depth (existing tokens only) ---- */
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 10px 28px var(--primary-glow);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 36px var(--primary-glow);
}

.card {
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.card:hover {
  box-shadow: var(--shadow);
}

.kpi .value {
  text-shadow: 0 2px 12px var(--primary-glow);
}
