/* ==========================================================
   Vertex Trading Hub – responsive UI (mobile / tablet / desktop)
   ========================================================== */
:root {
  --bg: #222838;
  --bg-2: #1a1f2d;
  --bg-3: #2b3346;
  --card: #ffffff;
  --ink: #0f1422;
  --ink-2: #374151;
  --muted: #6b7385;
  --line: #e9edf2;
  --teal: #22d3cf;
  --teal-2: #14b8b3;
  --teal-ink: #0e7c78;
  --mint: #e6fbfa;
  --danger: #e11d48;
  --warn: #d97706;
  --ok: #059669;
  --radius: 28px;
  --side-w: 272px;
  --shadow: 0 10px 30px rgba(10, 15, 30, .12);
  --font: "DM Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --display: "Sora", "DM Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); background: var(--bg); color: var(--ink); line-height: 1.45; min-height: 100vh; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--display); margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
code { background: #f1f4f8; padding: 2px 6px; border-radius: 6px; }
.muted { color: var(--muted); }
.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.ic { flex: none; }
[hidden] { display: none !important; }
html.hide-balance [data-sensitive] { filter: blur(9px); user-select: none; }

/* ---------- Brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 8px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text b { font-family: var(--display); font-weight: 800; font-size: 24px; letter-spacing: .02em; }
.brand-text small { font-size: 8.5px; letter-spacing: .42em; color: var(--teal-2); font-weight: 700; margin-top: 4px; }
.brand-dark .brand-text b { color: #1f2937; }
.brand-light .brand-text b { color: #fff; font-size: 30px; }
.brand-light .brand-mark { width: 44px; height: 44px; }

/* ---------- Sidebar (desktop) ---------- */
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--side-w); background: #fff; padding: 26px 16px; display: none; flex-direction: column; z-index: 20; overflow-y: auto; }
.sidebar-top { display: flex; align-items: center; justify-content: space-between; padding: 0 12px 26px; }
.round-btn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--mint); color: var(--teal-ink); border: 1px solid #c9f2ef; }
.round-btn.dark { width: 56px; height: 56px; background: rgba(255, 255, 255, .06); color: #fff; border: 1px solid rgba(255, 255, 255, .12); }
.round-btn.dark:first-child { color: var(--teal); background: rgba(34, 211, 207, .1); border-color: rgba(34, 211, 207, .3); }
.side-label { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--teal-ink); padding: 0 18px 10px; }
.side-nav { display: flex; flex-direction: column; gap: 4px; }
.side-nav a { display: flex; align-items: center; gap: 14px; padding: 13px 18px; border-radius: 16px; color: #4b5563; font-weight: 600; font-size: 16px; transition: background .15s; border: 1px solid transparent; }
.side-nav a:hover { background: #f4f7f9; }
.side-nav a.active { background: var(--mint); color: var(--ink); border-color: #a9ece8; box-shadow: inset 4px 0 0 var(--teal), 0 4px 14px rgba(34, 211, 207, .15); }
.side-foot { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.side-switch { display: flex; align-items: center; gap: 12px; padding: 11px 18px; border-radius: 14px; color: var(--muted); font-weight: 600; font-size: 14px; }
.side-switch:hover { background: #f4f7f9; color: var(--ink); }

/* ---------- Top bars ---------- */
.topbar { display: none; align-items: center; justify-content: space-between; gap: 16px; padding: 26px 32px; border-bottom: 1px solid rgba(255, 255, 255, .08); position: relative; overflow: hidden; }
.topbar::after { content: ""; position: absolute; right: 300px; top: -60px; width: 160px; height: 160px; border-radius: 50%; border: 18px solid rgba(34, 211, 207, .06); pointer-events: none; }
.topbar h1 { color: #fff; font-size: 26px; font-weight: 800; }
.topbar p { color: #c4cad6; margin-top: 2px; }
.topbar-pills { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.pill { display: inline-flex; align-items: center; gap: 6px; background: #fff; border-radius: 999px; padding: 9px 16px; font-size: 13px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.pill b { color: var(--ink); }
.user-chip { padding: 5px 14px 5px 5px; gap: 10px; font-size: 15px; font-weight: 600; color: var(--ink); }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--mint); color: var(--ink); display: grid; place-items: center; font-weight: 700; font-size: 13px; border: 2px solid #c9f2ef; }
.role { display: inline-flex; align-items: center; gap: 3px; font-size: 9.5px; letter-spacing: .1em; color: var(--muted); border: 1px solid var(--line); padding: 3px 7px; border-radius: 6px; }
.seg { display: inline-flex; background: #fff; border-radius: 999px; padding: 4px; gap: 2px; }
.seg a { padding: 5px 13px; border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--muted); }
.seg a.on { background: var(--bg); color: #fff; }

.mtop { display: flex; align-items: center; justify-content: space-between; padding: 18px 18px 8px; position: sticky; top: 0; z-index: 15; background: linear-gradient(var(--bg) 70%, rgba(34, 40, 56, 0)); gap: 12px; }
.mtop-btn { width: 48px; height: 48px; display: grid; place-items: center; color: #fff; position: relative; border-radius: 50%; }
.mtop-title { color: #fff; font-size: 20px; font-family: var(--font); font-weight: 700; flex: 1; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bell .dot { position: absolute; top: 10px; right: 12px; width: 9px; height: 9px; background: var(--teal); border-radius: 50%; box-shadow: 0 0 0 2px var(--bg); }

/* ---------- Content ---------- */
.content { padding: 12px 16px 150px; max-width: 1240px; margin: 0 auto; }
.panel { background: var(--card); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.panel + .panel, .stack > * + * { margin-top: 20px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.panel-head h2 { font-size: 22px; font-weight: 800; }
.link-teal { color: var(--teal-ink); font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--teal-ink); }
.page-intro { color: #c4cad6; margin: 4px 0 18px; }
.section-title { color: #fff; font-size: 18px; margin: 28px 0 14px; }
.grid-2 { display: grid; gap: 20px; }
.grid-2 > * + *, .grid-2 > .panel + .panel { margin-top: 0; }
.stack + .panel, .grid-2 + .panel, .panel + .grid-2 { margin-top: 20px; }
.empty { text-align: center; color: var(--muted); padding: 28px 10px; }

/* ---------- Dashboard ---------- */
.dash-grid { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); }
.dash-grid > *, .grid-2 > * { min-width: 0; }
.wallet-wrap { margin-bottom: 4px; }
.wallet { position: relative; overflow: hidden; background: linear-gradient(135deg, #fff 55%, #e9fbfa); border-radius: 32px; padding: 24px; box-shadow: var(--shadow); }
.wallet::after { content: ""; position: absolute; width: 230px; height: 230px; border-radius: 50%; border: 22px solid rgba(34, 211, 207, .07); right: 40px; bottom: -150px; pointer-events: none; }
.wallet-head { display: flex; align-items: center; gap: 16px; }
.icon-tile { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: var(--mint); border: 1px solid #bff0ec; color: var(--ink); flex: none; }
.wallet-head h3 { font-family: var(--font); font-size: 22px; font-weight: 700; }
.wallet-user { color: var(--muted); display: inline-flex; align-items: center; gap: 6px; font-size: 15px; }
.copy-btn { background: none; border: 0; color: #9aa3b2; padding: 2px; display: inline-grid; }
.copy-btn:hover { color: var(--teal-ink); }
.status-pill { margin-left: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; background: var(--mint); border: 1px solid #a9ece8; color: var(--teal-ink); font-weight: 700; font-size: 12px; letter-spacing: .12em; }
.status-pill::before, .status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status-pill::before { background: var(--teal); }
.wallet-balance { margin-top: 26px; }
.balance-row { display: flex; align-items: center; gap: 14px; margin-top: 6px; }
.balance { font-family: var(--display); font-weight: 800; font-size: clamp(34px, 9vw, 48px); letter-spacing: -.03em; line-height: 1.1; }
.eye-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; color: var(--ink); }
.eye-btn .ic-show { display: none; }
html.hide-balance .eye-btn .ic-show { display: block; }
html.hide-balance .eye-btn .ic-hide { display: none; }
.wallet-split { display: flex; gap: 22px; margin-top: 14px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.wallet-split b { color: var(--ink); }

.actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 26px 0 8px; }
.action { display: flex; flex-direction: column; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 16px; text-align: center; }
.action .a-ic { width: min(72px, 18vw); aspect-ratio: 1; border-radius: 50%; background: var(--teal); color: var(--bg); display: grid; place-items: center; box-shadow: 0 10px 26px rgba(34, 211, 207, .3); transition: transform .15s; }
.action:active .a-ic { transform: scale(.94); }
.action .a-ic .ic { width: 30px; height: 30px; }
.action .a-ic .ic-desk { display: none; }

/* Subscription cards */
.subs-panel { background: transparent; box-shadow: none; padding: 0; margin-top: 24px; }
.subs-panel .panel-head h2 { color: #fff; }
.subs-panel .link-teal { color: var(--teal); }
.sub-grid { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 16px 14px; margin: 0 -16px; scrollbar-width: none; }
.sub-grid::-webkit-scrollbar { display: none; }
.sub-card { flex: 0 0 86%; scroll-snap-align: center; border-radius: 26px; overflow: hidden; background: #fff; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.sub-top { position: relative; overflow: hidden; background: var(--bg-2); color: #fff; padding: 22px 22px 16px; border: 1px solid rgba(255, 255, 255, .08); border-bottom: 0; border-radius: 26px 26px 0 0; }
.sub-top::after { content: ""; position: absolute; width: 170px; height: 170px; border-radius: 50%; border: 20px solid rgba(34, 211, 207, .12); right: -50px; top: -40px; pointer-events: none; }
.sub-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; position: relative; z-index: 1; }
.sub-title h3 { font-size: 22px; font-weight: 700; }
.sub-desc { color: #b9c0cd; font-size: 13px; margin-top: 6px; position: relative; z-index: 1; font-weight: 600; }
.sub-count { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .12); position: relative; z-index: 1; }
.sub-count b { font-family: var(--display); font-size: 28px; margin-right: 8px; }
.sub-count span { color: #c4cad6; font-weight: 600; font-size: 14px; }
.sub-count .ic { color: var(--teal); }
.status { display: inline-flex; align-items: center; gap: 7px; padding: 6px 13px; border-radius: 999px; font-size: 12px; font-weight: 700; border: 1px solid rgba(255, 255, 255, .18); color: #aab2c0; background: rgba(255, 255, 255, .04); white-space: nowrap; }
.status.on { color: var(--teal); border-color: rgba(34, 211, 207, .5); background: rgba(34, 211, 207, .08); }
.sub-rows { padding: 4px 22px 10px; }
.kv { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.kv:last-child { border-bottom: 0; }
.kv span { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-weight: 600; }
.kv span .ic { color: var(--teal-ink); }
.kv b { font-size: 16px; font-weight: 700; }

/* Notifications */
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 6px; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.chip { padding: 7px 14px; border-radius: 999px; background: #f1f4f7; color: var(--ink-2); font-size: 13px; font-weight: 600; white-space: nowrap; border: 1px solid transparent; }
.chip.on { background: var(--teal); color: var(--ink); }
.notif-list { list-style: none; margin: 10px 0 0; padding: 0; }
.notif-list li { display: flex; align-items: center; gap: 14px; padding: 12px 0; }
.n-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--mint); color: var(--teal-ink); flex: none; }
.n-body { flex: 1; min-width: 0; }
.n-body b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.n-body small { color: var(--muted); font-size: 12px; }
.n-unread { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); flex: none; }

.notif-cards { display: flex; flex-direction: column; gap: 16px; }
.notif-card { background: #fff; border-radius: 24px; padding: 20px; display: flex; gap: 16px; align-items: flex-start; position: relative; }
.notif-card .n-ic { width: 56px; height: 56px; border-radius: 50%; background: #fff; box-shadow: 0 4px 14px rgba(0, 0, 0, .07); color: var(--ink); }
.notif-card h3 { font-family: var(--font); font-size: 18px; font-weight: 700; }
.notif-card p { color: var(--ink-2); margin-top: 4px; }
.notif-card time { display: block; color: #9aa3b2; font-size: 14px; margin-top: 6px; }
.notif-card.unread::after { content: ""; position: absolute; top: 22px; right: 22px; width: 10px; height: 10px; border-radius: 50%; background: var(--teal); }
.notif-bar { display: flex; align-items: center; justify-content: space-between; color: #fff; margin: 6px 0 14px; }
.notif-bar h2 { font-family: var(--font); font-size: 20px; }
.btn-link { background: none; border: 0; color: var(--teal); font-weight: 700; font-size: 16px; padding: 0; }
.dark-chips .chip { background: #fff; color: var(--ink); font-size: 15px; padding: 10px 20px; }
.dark-chips .chip.on { background: var(--teal); }

/* Referral card */
.ref-panel .icon-tile { width: 52px; height: 52px; border-radius: 14px; margin-bottom: 18px; }
.ref-panel h2 { font-size: 22px; }
.ref-code { margin-top: 18px; border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; background: #f8fafb; gap: 10px; }
.ref-code small { display: block; font-size: 11px; letter-spacing: .1em; font-weight: 700; color: var(--muted); }
.ref-code b { font-size: 18px; letter-spacing: .04em; word-break: break-all; }

/* ---------- Forms & buttons ---------- */
.form { display: flex; flex-direction: column; gap: 16px; }
.form label { display: flex; flex-direction: column; gap: 7px; font-weight: 600; font-size: 14px; color: var(--ink-2); }
.form .row { display: grid; gap: 16px; }
input, select, textarea { font: inherit; font-size: 16px; padding: 13px 15px; border: 1px solid #d9dfe7; border-radius: 14px; background: #fff; color: var(--ink); width: 100%; outline: none; transition: border .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { border-color: var(--teal-2); box-shadow: 0 0 0 4px rgba(34, 211, 207, .18); }
textarea { min-height: 110px; resize: vertical; }
input[type=file] { padding: 10px; background: #f8fafb; }
input[type=checkbox] { width: auto; }
.pw-wrap { position: relative; display: block; }
.pw-wrap input { padding-right: 52px; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); display: grid; place-items: center; padding: 0; }
.pw-toggle:hover { color: var(--ink); background: #f1f4f7; }
.pw-toggle:focus-visible { outline: 2px solid var(--teal-2); outline-offset: 1px; }
.pw-toggle[aria-pressed="true"] { color: var(--teal-ink); }
.login-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: -4px; }
.form label.check { flex-direction: row; align-items: center; gap: 9px; font-weight: 600; cursor: pointer; }
.form label.check input { width: 18px; height: 18px; accent-color: var(--teal-2); margin: 0; }
.hint { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.amount-input { position: relative; }
.amount-input input { font-size: 24px; font-weight: 700; padding-left: 40px; }
.amount-input::before { content: "₱"; position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 700; color: var(--muted); }
.quick { display: flex; gap: 8px; flex-wrap: wrap; }
.quick button { border: 1px solid var(--line); background: #f8fafb; border-radius: 999px; padding: 7px 14px; font-weight: 600; font-size: 13px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 22px; border-radius: 16px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-weight: 700; font-size: 16px; transition: transform .1s, box-shadow .15s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--teal); border-color: var(--teal); color: var(--ink); box-shadow: 0 8px 22px rgba(34, 211, 207, .32); }
.btn-primary:hover { background: #2fe0dc; }
.btn-dark { background: var(--bg); color: #fff; border-color: var(--bg); }
.btn-danger { background: #fff1f3; color: var(--danger); border-color: #fecdd6; }
.btn-ok { background: #ecfdf5; color: var(--ok); border-color: #a7f3d0; }
.btn-sm { padding: 8px 14px; font-size: 13px; border-radius: 12px; }
.btn-block { width: 100%; }
.btn-logout { background: #fff; color: var(--danger); border-radius: 999px; padding: 18px; font-size: 20px; width: 100%; margin-top: 26px; }

.alert { display: flex; align-items: flex-start; gap: 10px; padding: 13px 16px; border-radius: 16px; margin-bottom: 16px; font-weight: 600; font-size: 14px; }
.alert-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-error { background: #fff1f3; color: #9f1239; border: 1px solid #fecdd6; }
.alert-info { background: var(--mint); color: var(--teal-ink); border: 1px solid #a9ece8; }

/* ---------- Plan picker ---------- */
.plan-options { display: grid; gap: 14px; }
.plan-opt { position: relative; display: block; cursor: pointer; }
.plan-opt input { position: absolute; opacity: 0; pointer-events: none; }
.plan-opt .po { border: 2px solid var(--line); border-radius: 20px; padding: 18px; display: flex; justify-content: space-between; gap: 12px; align-items: center; transition: border .15s, background .15s; }
.plan-opt input:checked + .po { border-color: var(--teal); background: var(--mint); }
.plan-opt h3 { font-size: 18px; }
.plan-opt p { color: var(--muted); font-size: 13px; margin-top: 4px; font-weight: 600; }
.plan-opt .ret { text-align: right; flex: none; }
.plan-opt .ret b { font-family: var(--display); font-size: 24px; color: var(--teal-ink); display: block; }
.plan-opt .ret small { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.estimate { background: var(--bg); color: #fff; border-radius: 20px; padding: 18px 20px; }
.estimate .kv { border-color: rgba(255, 255, 255, .1); }
.estimate .kv span { color: #b9c0cd; }
.estimate .kv span .ic { color: var(--teal); }
.risk { font-size: 12.5px; color: var(--muted); background: #fffbeb; border: 1px solid #fde68a; color: #92400e; border-radius: 14px; padding: 12px 14px; }

.pay-box { border: 1px dashed #a9ece8; background: var(--mint); border-radius: 18px; padding: 16px; }
.pay-box b { font-size: 20px; letter-spacing: .03em; }
.pay-box .muted { font-size: 13px; }

/* ---------- Lists ---------- */
.txn-list { list-style: none; margin: 0; padding: 0; }
.txn-list li { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.txn-list li:last-child { border-bottom: 0; }
.txn-main { flex: 1; min-width: 0; }
.txn-main b { display: block; font-size: 15px; }
.txn-main small { color: var(--muted); font-size: 12.5px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.txn-amt { text-align: right; flex: none; }
.txn-amt b { display: block; font-size: 15px; }
.txn-amt b.plus { color: var(--ok); }
.txn-amt b.minus { color: var(--ink); }
.badge { display: inline-block; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; text-transform: capitalize; }
.badge-pending, .badge-unpaid { background: #fef3c7; color: #92400e; }
.badge-processing { background: #dbeafe; color: #1e40af; }
.badge-approved, .badge-active, .badge-answered { background: #d1fae5; color: #065f46; }
.badge-rejected, .badge-suspended { background: #ffe4e6; color: #9f1239; }
.badge-matured, .badge-closed, .badge-open { background: #e0e7ff; color: #3730a3; }

.progress { height: 8px; background: #edf1f5; border-radius: 999px; overflow: hidden; margin: 10px 0 6px; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--teal-2), var(--teal)); border-radius: 999px; }

.table-wrap { overflow-x: auto; margin: 0 -24px; padding: 0 24px; }
table.table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
.table th { text-align: left; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table .actions-cell { display: flex; gap: 6px; flex-wrap: wrap; }
.table .actions-cell input { padding: 7px 10px; font-size: 13px; border-radius: 10px; width: 140px; }

/* ---------- Stats / profile ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.stat { background: var(--bg-3); border: 1px solid rgba(255, 255, 255, .08); border-radius: 24px; padding: 18px; color: #fff; position: relative; }
.stat .s-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: rgba(34, 211, 207, .18); color: var(--teal); margin-bottom: 16px; }
.stat .s-ic.purple { background: rgba(217, 70, 239, .2); color: #e879f9; }
.stat .s-ic.amber { background: rgba(245, 158, 11, .2); color: #fbbf24; }
.stat .s-go { position: absolute; right: 18px; top: 22px; color: #9aa3b2; }
.stat small { color: #b9c0cd; font-weight: 600; font-size: 13px; }
.stat b { display: block; font-family: var(--display); font-size: 22px; margin-top: 4px; }
.light-stats .stat { background: #fff; color: var(--ink); border-color: var(--line); }
.light-stats .stat small { color: var(--muted); }

.profile-card { background: var(--bg-2); border: 1px solid rgba(255, 255, 255, .08); border-radius: 32px; padding: 26px 22px; color: #fff; position: relative; overflow: hidden; box-shadow: 0 20px 40px rgba(34, 211, 207, .06); }
.profile-card::after { content: ""; position: absolute; width: 190px; height: 190px; border-radius: 50%; border: 28px solid rgba(34, 211, 207, .1); right: -40px; top: -60px; }
.profile-card h2 { font-family: var(--font); font-size: 30px; font-weight: 700; position: relative; z-index: 1; }
.joined { color: var(--teal); font-weight: 700; display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.handle { color: #d4d9e2; font-size: 18px; margin: 6px 0 20px; }
.limit-row { margin-top: 14px; background: var(--bg-3); border: 1px solid rgba(255, 255, 255, .08); border-radius: 22px; color: #fff; }
.limit-row summary { list-style: none; display: flex; align-items: center; gap: 16px; padding: 16px 18px; cursor: pointer; }
.limit-row summary::-webkit-details-marker { display: none; }
.limit-row summary b { display: block; font-size: 18px; }
.limit-row summary small { color: #b9c0cd; }
.limit-row summary > .ic:last-child { margin-left: auto; color: #9aa3b2; transition: transform .2s; }
.limit-row[open] summary > .ic:last-child { transform: rotate(90deg); }
.limit-row .kv { margin: 0 18px; border-color: rgba(255, 255, 255, .08); }
.limit-row .kv span { color: #b9c0cd; }
.portfolio-head { display: flex; justify-content: space-between; align-items: center; margin: 30px 0 14px; }
.portfolio-head .eyebrow { color: var(--teal); font-size: 15px; letter-spacing: .16em; }
.portfolio-head p { color: #c4cad6; margin-top: 2px; }
.port-card { background: var(--bg-3); border: 1px solid rgba(255, 255, 255, .06); border-radius: 26px; padding: 22px; text-align: center; color: #fff; margin-bottom: 14px; }
.port-card .ic { color: var(--teal); }
.port-card small { display: block; color: #c4cad6; font-weight: 600; margin-top: 8px; }
.port-card b { font-family: var(--display); font-size: 28px; }

/* ---------- Verification / KYC ---------- */
.kyc-banner { display: flex; align-items: center; gap: 16px; background: #fff; border-radius: 24px; padding: 16px 18px; margin-bottom: 20px; box-shadow: var(--shadow); border-left: 6px solid var(--teal); flex-wrap: wrap; }
.kyc-banner.pending { border-left-color: #f59e0b; }
.kyc-banner.rejected { border-left-color: var(--danger); }
.kyc-banner .icon-tile { width: 52px; height: 52px; border-radius: 16px; }
.kb-text { flex: 1; min-width: 200px; }
.kb-text b { display: block; font-size: 16px; }
.kb-text small { color: var(--muted); }
.kyc-state { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; }
.kyc-state h2 { font-size: 22px; }
.icon-tile.ok { color: var(--ok); background: #ecfdf5; border-color: #a7f3d0; }
.steps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.steps div { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; color: var(--ink-2); }
.steps b { width: 30px; height: 30px; border-radius: 50%; background: var(--mint); color: var(--teal-ink); display: grid; place-items: center; flex: none; border: 1px solid #a9ece8; }
.upload-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form label.upload { display: block; cursor: pointer; }
.upload input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload-box { aspect-ratio: 1.58; border: 2px dashed #c9d1db; border-radius: 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--muted); background: #f8fafb; text-align: center; padding: 10px; background-size: cover; background-position: center; position: relative; overflow: hidden; transition: border-color .15s; }
.upload-box b { color: var(--ink); font-size: 14px; }
.upload-box small { font-size: 12px; }
.upload:hover .upload-box, .upload input:focus-visible + .upload-box { border-color: var(--teal-2); }
.upload-box.has-img { border-style: solid; border-color: var(--teal-2); }
.upload-box.has-img > * { background: rgba(255, 255, 255, .88); border-radius: 8px; padding: 1px 8px; }
.upload-box.has-img .ic { display: none; }
.tips { margin: 0; padding-left: 18px; color: var(--ink-2); font-size: 13.5px; display: grid; gap: 6px; }
.doc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.doc-grid figure { margin: 0; }
.doc-grid img { width: 100%; border-radius: 14px; border: 1px solid var(--line); display: block; background: #f1f4f7; }
.doc-grid figcaption { font-size: 13px; color: var(--muted); margin-top: 6px; font-weight: 600; }
.acct-options { display: grid; gap: 10px; }
.acct-options .po { padding: 12px 14px; gap: 12px; }
.acct-options .n-ic { flex: none; }

/* ---------- Live Trade ---------- */
.live-room { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; background: linear-gradient(135deg, var(--bg-2), #22334a); color: #fff; border: 1px solid rgba(255, 255, 255, .08); margin-bottom: 20px; }
.live-room h2 { font-size: 24px; margin: 10px 0 4px; }
.live-room p { color: #c4cad6; max-width: 560px; }
.live-sched { display: flex; gap: 8px; align-items: flex-start; margin-top: 8px; color: var(--teal) !important; font-weight: 600; }
.live-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; letter-spacing: .12em; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .08); color: #aab2c0; }
.live-badge i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.live-badge.on { background: rgba(239, 68, 68, .15); color: #f87171; }
.live-badge.on i { animation: pulse 1.2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.live-chart { background: var(--bg-2); border: 1px solid rgba(255, 255, 255, .08); }
.live-chart .panel-head h2 { color: #fff; }
.live-chart .link-teal { color: var(--teal); }
.live-chart .chip { background: rgba(255, 255, 255, .06); color: #c4cad6; }
.live-chart .chip.on { background: var(--teal); color: var(--ink); }
.tv-box { height: min(70vh, 620px); min-height: 380px; border-radius: 16px; overflow: hidden; background: #1a1f2d; }
.live-chart .hint { color: #8f98a8; }

/* ---------- MT5 live trades ---------- */
.mt5 { margin-bottom: 20px; }
.mt5-sub { color: #8f98a8; font-size: 13.5px; margin-top: 4px; }
.mt5-status { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; padding: 7px 13px; border-radius: 999px; background: rgba(255, 255, 255, .06); color: #aab2c0; white-space: nowrap; }
.mt5-status i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.mt5-status.on { color: #34d399; background: rgba(52, 211, 153, .12); }
.mt5-status.on i { animation: pulse 1.2s infinite; }
.mt5-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 14px; }
.mt5-stats div { background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .06); border-radius: 14px; padding: 10px 14px; }
.mt5-stats small { display: block; color: #8f98a8; font-size: 12px; font-weight: 600; }
.mt5-stats b { color: #fff; font-size: 16px; font-family: var(--display); }
.mt5 .pos, .mt5-stats b.pos { color: #34d399; }
.mt5 .neg, .mt5-stats b.neg { color: #f87171; }
.mt5 .chip { border: 0; font-family: inherit; cursor: pointer; }
.mt5-chart-wrap { position: relative; height: min(62vh, 520px); min-height: 340px; border-radius: 16px; overflow: hidden; background: #1a1f2d; border: 1px solid rgba(255, 255, 255, .06); }
.mt5-chart { position: absolute; inset: 0; }
.mt5-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 20px; color: #8f98a8; background: #1a1f2d; z-index: 2; }
.mt5-empty b { color: #fff; font-size: 17px; }
.mt5-empty .ic { color: var(--teal); }
.mt5-legend { display: flex; gap: 16px; flex-wrap: wrap; margin: 10px 2px 0; font-size: 12px; color: #8f98a8; }
.mt5-legend span { display: inline-flex; align-items: center; gap: 6px; }
.mt5-legend i { width: 18px; height: 0; border-top: 2px solid; }
.lg-buy { border-color: #22d3cf !important; } .lg-sell { border-color: #f87171 !important; }
.lg-sl { border-top-style: dashed !important; border-color: #ef4444 !important; } .lg-tp { border-top-style: dashed !important; border-color: #34d399 !important; }
.mt5-lists { display: grid; gap: 18px; margin-top: 18px; }
.mt5-lists h3 { color: #fff; font-size: 16px; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.mt5-count { font-family: var(--font); font-size: 12px; background: rgba(34, 211, 207, .15); color: var(--teal); border-radius: 999px; padding: 2px 9px; }
.mt5-list { list-style: none; margin: 0; padding: 0; }
.mt5-list li { display: flex; align-items: center; gap: 12px; padding: 11px 4px; border-bottom: 1px solid rgba(255, 255, 255, .06); color: #e5e9f0; }
.mt5-list li[data-sym] { cursor: pointer; }
.mt5-list li.cur { background: rgba(34, 211, 207, .05); border-radius: 10px; }
.mt5-list .side { font-size: 11px; font-weight: 800; padding: 4px 8px; border-radius: 8px; flex: none; letter-spacing: .04em; }
.mt5-list .side.buy { background: rgba(34, 211, 207, .15); color: var(--teal); }
.mt5-list .side.sell { background: rgba(248, 113, 113, .15); color: #f87171; }
.mt5-list .m { flex: 1; min-width: 0; }
.mt5-list .m b { display: block; font-size: 14px; }
.mt5-list small { color: #8f98a8; font-size: 12px; display: block; }
.mt5-list .r { text-align: right; flex: none; }
.mt5-list .r b { display: block; font-size: 14px; }
.mt5-list .r small.pos { color: #34d399; } .mt5-list .r small.neg { color: #f87171; }
.mt5-none { color: #8f98a8 !important; justify-content: center; font-size: 13.5px; }
@media (min-width: 700px) {
  .mt5-stats { grid-template-columns: repeat(4, 1fr); }
  .mt5-lists { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Backups & System Updates ---------- */
.sys-grid { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
.sys-grid > * { min-width: 0; }
.sys-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; align-items: center; }
.sys-hr { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }
.diff-list { list-style: none; margin: 10px 0 0; padding: 0; max-height: 280px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; }
.diff-list li { padding: 6px 10px; border-bottom: 1px solid var(--line); display: flex; gap: 8px; align-items: center; word-break: break-all; }
.diff-list li:last-child { border-bottom: 0; }
.tag { font-family: var(--font); font-size: 10px; font-weight: 800; letter-spacing: .05em; padding: 2px 7px; border-radius: 6px; flex: none; }
.tag-new { background: #d1fae5; color: #065f46; } .tag-changed { background: #fef3c7; color: #92400e; } .tag-deleted { background: #ffe4e6; color: #9f1239; }
.log-box { background: var(--bg-2); color: #d4d9e2; border-radius: 12px; padding: 12px 14px; font-size: 12.5px; white-space: pre-wrap; margin: 6px 0 0; max-height: 260px; overflow: auto; }
dialog.dialog { border: 0; border-radius: 24px; padding: 24px; width: min(460px, calc(100vw - 32px)); box-shadow: 0 30px 60px rgba(0, 0, 0, .35); }
dialog.dialog::backdrop { background: rgba(10, 15, 30, .6); }
dialog.dialog h2 { font-size: 20px; }
dialog.dialog p { color: var(--ink-2); }
.busy-overlay { position: fixed; inset: 0; z-index: 90; background: rgba(15, 20, 34, .7); display: grid; place-items: center; color: #fff; font-weight: 700; text-align: center; padding: 20px; }
.busy-overlay i { display: block; width: 46px; height: 46px; margin: 0 auto 14px; border-radius: 50%; border: 4px solid rgba(255, 255, 255, .2); border-top-color: var(--teal); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (min-width: 1100px) { .sys-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; } }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.faq summary::after { content: "+"; color: var(--teal-ink); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq p { color: var(--ink-2); margin-top: 10px; }
.prose h3 { font-size: 18px; margin: 22px 0 8px; }
.prose p, .prose li { color: var(--ink-2); }
.prose p + p { margin-top: 10px; }

/* ---------- Mobile menu overlay ---------- */
.menu-overlay { position: fixed; inset: 0; z-index: 40; background: radial-gradient(120% 60% at 50% 0%, #2c3a4d, #1a1f2d 60%); overflow-y: auto; opacity: 0; visibility: hidden; transform: translateY(14px); transition: opacity .22s, transform .22s, visibility .22s; overscroll-behavior: contain; }
body.menu-open { overflow: hidden; }
body.menu-open .menu-overlay { opacity: 1; visibility: visible; transform: none; }
.menu-inner { max-width: 720px; margin: 0 auto; padding: 28px 18px 180px; }
.menu-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding-bottom: 22px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.menu-head h2 { color: #fff; font-size: clamp(30px, 8vw, 42px); font-weight: 800; letter-spacing: -.04em; margin-top: 10px; }
.menu-head-btns { display: flex; gap: 10px; }
.mono-label { font-family: ui-monospace, Menlo, Consolas, monospace; color: var(--teal); font-weight: 700; letter-spacing: .2em; font-size: 13px; }
.menu-balance { display: flex; justify-content: space-between; align-items: center; color: #c4cad6; padding: 20px 14px; border-bottom: 1px solid rgba(255, 255, 255, .1); font-size: 17px; }
.menu-balance span { display: inline-flex; align-items: center; gap: 12px; }
.menu-balance span .ic { color: var(--teal); }
.menu-balance b { color: #fff; font-size: 18px; }
.menu-currency { display: flex; justify-content: space-between; align-items: center; gap: 10px; color: #c4cad6; border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .03); border-radius: 26px; padding: 14px 16px 14px 22px; margin: 20px 0; font-size: 16px; }
.seg-lg { background: transparent; border: 1px solid rgba(255, 255, 255, .2); }
.seg-lg a { padding: 9px 22px; font-size: 15px; color: #c4cad6; }
.seg-lg a.on { background: var(--teal); color: var(--ink); }
.menu-sec { background: #1c2130; border: 1px solid rgba(255, 255, 255, .06); border-radius: 32px; padding: 24px 22px; margin-top: 18px; }
.menu-sec-head { display: flex; justify-content: space-between; align-items: flex-start; padding-bottom: 18px; border-bottom: 1px solid rgba(255, 255, 255, .08); margin-bottom: 20px; }
.menu-sec h3 { color: #fff; font-size: 26px; font-weight: 700; }
.menu-sec p { color: #8f98a8; margin-top: 4px; }
.sec-ic { color: var(--teal); }
.live-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--teal); margin-top: 18px; box-shadow: 0 0 12px var(--teal); }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px 10px; }
.tiles-2 { grid-template-columns: repeat(2, 1fr); }
.tiles-4 { grid-template-columns: repeat(4, 1fr); }
.tile { display: flex; flex-direction: column; align-items: center; gap: 12px; color: #e5e9f0; font-weight: 600; font-size: 14px; text-align: center; }
.tile-ic { width: 64px; height: 64px; border-radius: 50%; background: #2a3142; display: grid; place-items: center; color: #fff; border: 1px solid rgba(255, 255, 255, .06); transition: background .15s; position: relative; }
.tile:hover .tile-ic { background: #343c50; }
.tile.accent .tile-ic { color: var(--teal); border: 2px solid var(--teal); background: rgba(34, 211, 207, .08); }
.tile.accent .tile-ic::after { content: ""; position: absolute; top: 2px; right: 2px; width: 10px; height: 10px; border-radius: 50%; background: var(--teal); }

/* FAB */
.fab { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); transform: translateX(-50%); width: 92px; height: 92px; border-radius: 50%; border: 4px solid var(--teal); background: var(--bg); color: var(--teal); z-index: 50; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .35), 0 0 22px rgba(34, 211, 207, .2); padding: 0; }
.fab-label { grid-area: 1 / 1; font-weight: 700; font-size: 18px; line-height: 1.1; transition: opacity .2s; }
.fab-close { opacity: 0; color: #fff; font-size: 15px; }
.fab-rays { position: absolute; inset: 0; pointer-events: none; }
.fab-rays i { position: absolute; left: 50%; top: 50%; width: 14px; height: 38px; border: 2px solid var(--teal); border-radius: 10px; transform: translate(-50%, -50%) rotate(var(--r)) translateY(-40px) scaleY(.2); opacity: 0; transition: transform .3s, opacity .25s; }
body.menu-open .fab-open { opacity: 0; }
body.menu-open .fab-close { opacity: 1; }
body.menu-open .fab-rays i { opacity: .9; transform: translate(-50%, -50%) rotate(var(--r)) translateY(-66px); }

.toast { position: fixed; left: 50%; bottom: 130px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 999px; font-weight: 600; font-size: 14px; opacity: 0; pointer-events: none; transition: .2s; z-index: 60; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Auth pages ---------- */
.auth-body { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: radial-gradient(90% 60% at 50% 0%, #2c3a4d, var(--bg) 70%); }
.auth-wrap { width: 100%; max-width: 440px; }
.auth-wrap > .brand, .auth-wrap > .auth-brand { display: flex; justify-content: center; margin-bottom: 26px; }
.auth-card { background: #fff; border-radius: 30px; padding: 30px 24px; width: 100%; max-width: 440px; box-shadow: 0 30px 60px rgba(0, 0, 0, .25); }
.auth-card h1 { font-size: 28px; font-weight: 800; margin-bottom: 6px; }
.auth-card > .muted { margin-bottom: 20px; }
.auth-foot { text-align: center; color: #c4cad6; margin-top: 18px; }
.auth-foot a { color: var(--teal); font-weight: 700; }

/* ==========================================================
   Tablet ≥ 700px
   ========================================================== */
@media (min-width: 700px) {
  .content { padding: 16px 32px 160px; }
  .sub-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; margin: 0; padding: 0; }
  .sub-card { flex: none; }
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .form .row { grid-template-columns: repeat(2, 1fr); }
  .plan-options { grid-template-columns: repeat(3, 1fr); }
  .plan-opt .po { flex-direction: column; align-items: flex-start; height: 100%; }
  .plan-opt .ret { text-align: left; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .portfolio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .port-card { margin: 0; }
  .panel { padding: 28px; }
  .dash-side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
  .dash-side .panel + .panel { margin-top: 0; }
}

/* ==========================================================
   Desktop ≥ 1100px – sidebar layout like a web dashboard
   ========================================================== */
@media (min-width: 1100px) {
  .sidebar { display: flex; }
  .app { margin-left: var(--side-w); }
  .mtop, .fab, .menu-overlay { display: none; }
  .topbar { display: flex; }
  .content { padding: 40px 40px 60px; }
  .toast { bottom: 40px; }

  .dash-grid { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
  .dash-side { display: block; }
  .dash-side .panel + .panel { margin-top: 24px; }

  /* Wallet becomes one white card containing pill action buttons */
  .wallet-wrap { background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
  .wallet { background: none; box-shadow: none; padding: 0; border-radius: 0; overflow: visible; }
  .wallet::after { display: none; }
  .wallet-head .icon-tile { width: 48px; height: 48px; border-radius: 50%; background: #f4f6f8; border-color: var(--line); }
  .wallet-head .eyebrow { display: none; }
  .wallet-head h3 { font-size: 18px; }
  .wallet-balance .eyebrow { display: none; }
  .wallet-balance { margin-top: 16px; }
  .actions { margin: 24px 0 0; gap: 14px; }
  .action { flex-direction: row; justify-content: center; border: 1px solid var(--line); border-radius: 16px; padding: 14px 10px; color: var(--ink); font-size: 17px; gap: 10px; }
  .action:hover { border-color: #c9d1db; }
  .action .a-ic { width: auto; aspect-ratio: auto; background: none; box-shadow: none; color: var(--ink); }
  .action .a-ic .ic { width: 22px; height: 22px; }
  .action .a-ic .ic-mob { display: none; }
  .action .a-ic .ic-desk { display: block; }
  .action.primary { background: var(--teal); border-color: var(--teal); box-shadow: 0 8px 22px rgba(34, 211, 207, .35); }

  .subs-panel { background: #fff; box-shadow: var(--shadow); padding: 28px; }
  .subs-panel .panel-head h2 { color: var(--ink); }
  .subs-panel .link-teal { color: var(--teal-ink); }
  .sub-title h3 { font-size: 19px; }
  .sub-desc { font-size: 11.5px; }
  .kv { font-size: 13px; padding: 11px 0; }
  .kv b { font-size: 15px; }
}

@media (max-width: 420px) {
  .tiles-4 { grid-template-columns: repeat(3, 1fr); }
  .action { font-size: 14px; }
  .wallet-head h3 { font-size: 19px; }
  .status-pill { padding: 6px 11px; font-size: 10px; }
}
