/* BOT SOCIAL EXCHANGE — design tokens
   ink #1C2434 · teal #0E9F9A (actions) · coin #E8A33D (points only) · danger #D64545 · surface #F4F7FA */
:root {
  --ink: #1c2434; --ink-2: #4a5568; --ink-3: #7b8696;
  --bg: #f4f7fa; --surface: #ffffff; --surface-2: #eef2f6; --line: #e1e7ee;
  --side: #17202e; --side-ink: #c9d2de; --side-active: #233147;
  --teal: #0e9f9a; --teal-ink: #ffffff; --teal-soft: #e0f4f3;
  --coin: #e8a33d; --coin-deep: #a96d12; --coin-soft: #fdf1dc;
  --ok: #1f9d55; --ok-soft: #e3f5ea; --warn: #c27c0e; --warn-soft: #fdf0d8;
  --danger: #d64545; --danger-soft: #fbe5e5; --info: #3b6fd6; --info-soft: #e5edfb;
  --r-panel: 14px; --r-ctl: 8px; --r-pill: 999px;
  --shadow: 0 1px 2px rgba(23, 32, 46, .06), 0 4px 16px rgba(23, 32, 46, .05);
  --font: "IBM Plex Sans Arabic", "Noto Kufi Arabic", "Noto Sans Arabic", "Segoe UI", Tahoma, system-ui, sans-serif;
  color-scheme: light;
}
[data-theme="dark"] {
  --ink: #e6ebf2; --ink-2: #aab4c3; --ink-3: #7c879a;
  --bg: #0f1620; --surface: #17212d; --surface-2: #1e2a38; --line: #273546;
  --side: #0b1118; --side-ink: #aeb8c7; --side-active: #1b2737;
  --teal: #19b8b2; --teal-soft: #11312f; --coin-soft: #3a2c14; --coin-deep: #f0b65c;
  --ok-soft: #12301f; --warn-soft: #36290f; --danger-soft: #3a1a1a; --info-soft: #172a4a;
  --shadow: 0 1px 2px rgba(0,0,0,.3);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--font); background: var(--bg); color: var(--ink); font-size: 15px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; line-height: 1.3; font-weight: 700; }
h1 { font-size: 1.6rem; } h2 { font-size: 1.25rem; } h3 { font-size: 1.05rem; }
p { margin: 0 0 .5em; }
.num, .coin, td.n { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
.muted { color: var(--ink-3); } .small { font-size: .85rem; } .ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.hidden { display: none !important; }

/* ---------- layout ---------- */
.shell { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.sidebar { background: var(--side); color: var(--side-ink); padding: 18px 12px; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 18px; color: #fff; font-weight: 800; letter-spacing: .2px; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--teal); display: grid; place-items: center; color: #fff; }
.brand small { display: block; font-weight: 400; color: var(--side-ink); font-size: .75rem; }
.nav-group { font-size: .78rem; color: #7d8aa0; padding: 14px 12px 4px; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: var(--r-ctl); color: var(--side-ink); font-size: .93rem; }
.nav a:hover { background: var(--side-active); text-decoration: none; color: #fff; }
.nav a.active { background: var(--side-active); color: #fff; box-shadow: inset -3px 0 0 var(--teal); }
.nav a .badge-dot { margin-inline-start: auto; background: var(--danger); color: #fff; border-radius: var(--r-pill); font-size: .7rem; padding: 0 7px; }
.nav svg { width: 18px; height: 18px; flex: none; }
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; gap: 12px; padding: 12px 28px; background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.topbar .title { font-weight: 700; font-size: 1.05rem; }
.topbar .spacer { flex: 1; }
.content { padding: 26px 28px 60px; max-width: 1280px; width: 100%; }
.menu-btn { display: none; }
@media (max-width: 920px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; inset: 0 0 0 auto; width: 270px; z-index: 50; transform: translateX(100%); transition: transform .2s; }
  body.nav-open .sidebar { transform: none; }
  body.nav-open::after { content: ""; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 40; }
  .menu-btn { display: inline-flex; }
  .topbar { padding: 10px 14px; }
  .content { padding: 18px 14px 80px; }
}

/* ---------- the coin: the one memorable element ---------- */
.coin { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--coin-deep); white-space: nowrap; }
.coin::before { content: ""; width: .95em; height: .95em; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ffd98a, var(--coin) 55%, #b9761a); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.35); flex: none; }
.coin.lg { font-size: 2.2rem; letter-spacing: -.5px; }
.coin.neg { color: var(--danger); } .coin.neg::before { filter: grayscale(.6); }
.balance-pill { background: var(--coin-soft); border-radius: var(--r-pill); padding: 5px 14px; }

/* ---------- surfaces ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-panel); padding: 20px; box-shadow: var(--shadow); }
.panel + .panel { margin-top: 18px; }
.panel-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.panel-head .spacer { flex: 1; }
.page-head { display: flex; align-items: flex-end; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head p { margin: 4px 0 0; color: var(--ink-3); }
.page-head .spacer { flex: 1; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-main { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
@media (max-width: 1100px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g-main { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-panel); padding: 16px 18px; }
.stat .label { color: var(--ink-3); font-size: .86rem; display: flex; align-items: center; gap: 8px; }
.stat .label svg { width: 16px; height: 16px; }
.stat .value { font-size: 1.6rem; font-weight: 700; margin-top: 4px; font-variant-numeric: tabular-nums; }
.stat .sub { font-size: .8rem; color: var(--ink-3); }
.hero-balance { background: var(--side); color: #fff; border-radius: var(--r-panel); padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.hero-balance .label { color: var(--side-ink); }
.hero-balance .coin { color: #ffd98a; }
.hero-balance .row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: var(--r-ctl); padding: 8px 15px; font: inherit; font-weight: 600; font-size: .92rem; cursor: pointer; white-space: nowrap; text-decoration: none !important; }
.btn:hover { background: var(--surface-2); }
.btn svg { width: 17px; height: 17px; }
.btn.primary { background: var(--teal); color: var(--teal-ink); border-color: transparent; }
.btn.primary:hover { filter: brightness(1.06); }
.btn.coin-btn { background: var(--coin); color: #3b2604; border-color: transparent; }
.btn.danger { background: var(--danger); color: #fff; border-color: transparent; }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.sm { padding: 5px 10px; font-size: .84rem; }
.btn.icon { padding: 7px; }
.btn[disabled], .btn.loading { opacity: .6; pointer-events: none; }
.btn.loading::after { content: ""; width: 14px; height: 14px; border: 2px solid currentColor; border-top-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.field label { font-size: .88rem; font-weight: 600; }
.field .help { font-size: .8rem; color: var(--ink-3); }
.field .err { font-size: .8rem; color: var(--danger); }
.input, select.input, textarea.input { font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-ctl); padding: 9px 12px; width: 100%; }
.input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-soft); }
.input.invalid { border-color: var(--danger); }
textarea.input { min-height: 90px; resize: vertical; }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: .9rem; }
.check input { margin-top: 5px; accent-color: var(--teal); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.filters .input { width: auto; min-width: 150px; padding: 7px 10px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tabs button { background: none; border: 0; font: inherit; color: var(--ink-3); padding: 9px 14px; cursor: pointer; border-bottom: 2px solid transparent; font-weight: 600; white-space: nowrap; }
.tabs button.active { color: var(--ink); border-bottom-color: var(--teal); }
.seg { display: inline-flex; background: var(--surface-2); border-radius: var(--r-ctl); padding: 3px; gap: 2px; }
.seg button { border: 0; background: transparent; font: inherit; font-size: .86rem; padding: 5px 12px; border-radius: 6px; cursor: pointer; color: var(--ink-2); }
.seg button.active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); font-weight: 600; }

/* ---------- badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; border-radius: var(--r-pill); padding: 1px 10px; font-size: .78rem; font-weight: 600; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.badge.ok { background: var(--ok-soft); color: var(--ok); } .badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.danger { background: var(--danger-soft); color: var(--danger); } .badge.info { background: var(--info-soft); color: var(--info); }
.badge.teal { background: var(--teal-soft); color: var(--teal); }
.pf { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.pf i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
table.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: start; font-weight: 600; color: var(--ink-3); background: var(--surface-2); padding: 10px 12px; white-space: nowrap; font-size: .82rem; }
.table td { padding: 11px 12px; border-top: 1px solid var(--line); vertical-align: middle; }
.table tr:hover td { background: color-mix(in srgb, var(--surface-2) 45%, transparent); }
.table .actions { display: flex; gap: 6px; justify-content: flex-end; }
.pager { display: flex; align-items: center; gap: 8px; justify-content: space-between; margin-top: 12px; font-size: .85rem; color: var(--ink-3); flex-wrap: wrap; }

/* ---------- task cards (exchange) ---------- */
.tasks { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.task { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-panel); padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.task-top { display: flex; gap: 12px; align-items: center; }
.avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; font-weight: 700; color: var(--ink-2); overflow: hidden; flex: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.sm { width: 32px; height: 32px; font-size: .8rem; }
.avatar.xl { width: 88px; height: 88px; font-size: 1.6rem; }
.task .meta { display: flex; justify-content: space-between; align-items: center; font-size: .85rem; color: var(--ink-3); }
.task .actions { display: flex; gap: 8px; }
.task .actions .btn { flex: 1; }
.task.state-started { border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-soft); }
.steps-inline { display: flex; gap: 6px; font-size: .78rem; color: var(--ink-3); }
.steps-inline span.on { color: var(--teal); font-weight: 700; }

/* ---------- progress ---------- */
.progress { height: 8px; background: var(--surface-2); border-radius: var(--r-pill); overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--teal); border-radius: inherit; transition: width .4s; }
.progress.coin > i { background: var(--coin); }

/* ---------- daily rewards ---------- */
.days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.day { border: 1px dashed var(--line); border-radius: 10px; padding: 10px 4px; text-align: center; font-size: .8rem; color: var(--ink-3); }
.day b { display: block; font-size: 1rem; color: var(--ink); }
.day.done { border-style: solid; background: var(--coin-soft); border-color: transparent; }
.day.next { border: 2px solid var(--coin); color: var(--ink); }
@media (max-width: 560px) { .days { grid-template-columns: repeat(4, 1fr); } }
.countdown { font-size: 1.4rem; font-weight: 700; font-variant-numeric: tabular-nums; direction: ltr; display: inline-block; }

/* ---------- levels ---------- */
.levels { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.level { border: 1px solid var(--line); border-radius: 12px; padding: 12px; font-size: .82rem; }
.level h4 { display: flex; gap: 6px; align-items: center; font-size: .95rem; }
.level h4 i { width: 12px; height: 12px; border-radius: 50%; }
.level.current { border: 2px solid var(--teal); }
@media (max-width: 900px) { .levels { grid-template-columns: repeat(2, 1fr); } }

/* ---------- leaderboard ---------- */
.lb-row { display: grid; grid-template-columns: 40px 36px 1fr auto; gap: 12px; align-items: center; padding: 10px 6px; border-bottom: 1px solid var(--line); }
.lb-row:last-child { border-bottom: 0; }
.lb-rank { font-weight: 800; font-size: 1.05rem; text-align: center; color: var(--ink-3); }
.lb-row.top1 .lb-rank { color: var(--coin-deep); } .lb-row.me { background: var(--teal-soft); border-radius: 10px; }

/* ---------- lists ---------- */
.list { display: flex; flex-direction: column; }
.list-item { display: flex; gap: 12px; align-items: flex-start; padding: 12px 2px; border-bottom: 1px solid var(--line); }
.list-item:last-child { border-bottom: 0; }
.list-item .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); flex: none; }
.list-item .ic svg { width: 17px; height: 17px; }
.list-item .grow { flex: 1; min-width: 0; }
.list-item.unread .title { font-weight: 700; }
.list-item.unread::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); margin-top: 14px; flex: none; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; font-size: .9rem; }
.kv dt { color: var(--ink-3); } .kv dd { margin: 0; }

/* ---------- chart ---------- */
.chart { width: 100%; height: 220px; }
.chart text { fill: var(--ink-3); font-size: 11px; font-family: var(--font); }
.chart .grid-line { stroke: var(--line); }
.legend { display: flex; gap: 14px; font-size: .82rem; color: var(--ink-3); flex-wrap: wrap; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-inline-end: 5px; vertical-align: -1px; }

/* ---------- empty / skeleton ---------- */
.empty { text-align: center; padding: 36px 16px; color: var(--ink-3); }
.empty .ic { width: 52px; height: 52px; border-radius: 16px; background: var(--surface-2); display: grid; place-items: center; margin: 0 auto 12px; }
.empty .ic svg { width: 24px; height: 24px; }
.empty h3 { color: var(--ink); margin-bottom: 4px; }
.empty .btn { margin-top: 12px; }
.sk { background: linear-gradient(90deg, var(--surface-2) 25%, var(--line) 50%, var(--surface-2) 75%); background-size: 200% 100%; animation: sk 1.3s infinite; border-radius: 6px; }
@keyframes sk { to { background-position: -200% 0; } }
.sk-line { height: 12px; margin: 10px 0; } .sk-block { height: 120px; border-radius: var(--r-panel); }

/* ---------- modal & toast ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(10, 16, 26, .55); display: grid; place-items: center; z-index: 100; padding: 16px; animation: fade .15s; }
.modal { background: var(--surface); border-radius: var(--r-panel); width: min(520px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; box-shadow: 0 20px 60px rgba(0,0,0,.3); animation: pop .18s; }
.modal.wide { width: min(860px, 100%); }
.modal-head { display: flex; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); gap: 10px; }
.modal-head h3 { flex: 1; }
.modal-body { padding: 20px; }
.modal-foot { display: flex; gap: 8px; justify-content: flex-end; padding: 14px 20px; border-top: 1px solid var(--line); background: var(--surface-2); border-radius: 0 0 var(--r-panel) var(--r-panel); }
@keyframes fade { from { opacity: 0; } } @keyframes pop { from { transform: translateY(8px) scale(.98); opacity: 0; } }
.toasts { position: fixed; bottom: 18px; left: 18px; display: flex; flex-direction: column; gap: 8px; z-index: 200; max-width: calc(100vw - 36px); }
.toast { background: var(--side); color: #fff; padding: 11px 16px; border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.25); display: flex; gap: 10px; align-items: center; min-width: 240px; animation: pop .2s; font-size: .92rem; }
.toast.error { background: var(--danger); } .toast.success { border-inline-start: 4px solid var(--teal); }
.alert { border-radius: 10px; padding: 11px 14px; font-size: .9rem; display: flex; gap: 10px; align-items: center; margin-bottom: 16px; }
.alert.warn { background: var(--warn-soft); color: var(--warn); } .alert.info { background: var(--info-soft); color: var(--info); } .alert.danger { background: var(--danger-soft); color: var(--danger); }
.alert .grow { flex: 1; }
.code-box { direction: ltr; font-family: ui-monospace, Menlo, Consolas, monospace; background: var(--surface-2); border-radius: var(--r-ctl); padding: 9px 12px; display: flex; align-items: center; gap: 10px; justify-content: space-between; word-break: break-all; }

/* ---------- auth ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.auth-side { background: var(--side); color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-side h1 { font-size: 2.1rem; max-width: 14em; margin: 18px 0 12px; }
.auth-side p { color: var(--side-ink); max-width: 30em; }
.auth-flow { display: flex; flex-direction: column; gap: 14px; margin-top: 28px; }
.auth-flow div { display: flex; gap: 12px; align-items: center; color: var(--side-ink); }
.auth-flow b { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--side-active); color: #fff; font-size: .85rem; flex: none; }
.coins-deco { position: absolute; inset: auto -40px -40px auto; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ffd98a, var(--coin) 55%, #8f5a12); opacity: .9; }
.coins-deco::after { content: ""; position: absolute; inset: 22px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); }
.auth-main { display: grid; place-items: center; padding: 32px 18px; }
.auth-card { width: min(420px, 100%); }
.auth-card h2 { font-size: 1.5rem; margin-bottom: 6px; }
.auth-card .sub { color: var(--ink-3); margin-bottom: 22px; }
@media (max-width: 860px) { .auth { grid-template-columns: 1fr; } .auth-side { display: none; } }
.center-page { min-height: 100vh; display: grid; place-items: center; padding: 20px; }

.dropdown { position: relative; }
.dropdown-menu { position: absolute; inset-inline-end: 0; top: calc(100% + 6px); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 30px rgba(0,0,0,.15); min-width: 220px; padding: 6px; z-index: 30; }
.dropdown-menu a, .dropdown-menu button { display: flex; width: 100%; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 8px; color: var(--ink); background: none; border: 0; font: inherit; cursor: pointer; text-align: start; }
.dropdown-menu a:hover, .dropdown-menu button:hover { background: var(--surface-2); text-decoration: none; }
.dropdown-menu svg { width: 16px; height: 16px; }
.icon-btn { position: relative; }
.icon-btn .dot { position: absolute; top: 2px; inset-inline-end: 2px; min-width: 16px; height: 16px; border-radius: 8px; background: var(--danger); color: #fff; font-size: .65rem; display: grid; place-items: center; padding: 0 4px; }
.perm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px 16px; }
.mt { margin-top: 16px; } .mb { margin-bottom: 16px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row .spacer { flex: 1; }

/* ---- layout safety (mobile overflow + unsized icons) ---- */
svg:not([width]):not([class*="chart"]) { max-width: 100%; }
.alert > svg, .panel h2 > svg, .panel h3 > svg, .badge > svg, .row > svg, .center-page svg, .small > svg { width: 18px; height: 18px; flex: none; }
.center-page .panel > svg { width: 36px; height: 36px; margin-bottom: 8px; }
.topbar { min-width: 0; }
.topbar .title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
html, body { overflow-x: clip; }
@media (max-width: 640px) {
  .topbar { gap: 4px; padding-inline: 10px; }
  .topbar [data-user-menu] .small, .topbar .row.small > span:not(.avatar) { display: none; }
  .topbar .balance-pill { padding-inline: 10px; }
  .page-head { flex-wrap: wrap; }
}
.seg button { flex: none; white-space: nowrap; }
.toast svg { width: 18px; height: 18px; flex: none; }

/* ================= exchange — neon design ================= */
.xh { position: relative; overflow: hidden; border-radius: 22px; padding: 30px 32px; min-height: 210px; color: #fff;
  background: radial-gradient(60% 120% at 15% 30%, rgba(59,130,246,.45), transparent 60%), radial-gradient(50% 120% at 90% 0%, rgba(168,85,247,.45), transparent 60%), linear-gradient(120deg, #0b1230 0%, #1a1045 55%, #2a0f5c 100%);
  display: grid; grid-template-columns: auto 1fr 300px; gap: 24px; align-items: center; box-shadow: 0 10px 40px rgba(76, 29, 149, .25); }
.xh-text { grid-column: 2; text-align: center; }
.xh h1 { font-size: 2.3rem; font-weight: 800; display: inline-flex; align-items: center; gap: 14px; letter-spacing: -.5px; }
.xh-ic svg { width: 46px; height: 46px; stroke: url(#xg) #22d3ee; color: #22d3ee; filter: drop-shadow(0 0 12px rgba(34,211,238,.7)); }
.xh p { color: #cfd6f6; margin-top: 8px; font-size: 1.05rem; }
.xh-feats { grid-column: 1; grid-row: 1; display: flex; gap: 10px; }
.xh-feats > div { width: 104px; padding: 14px 8px; border-radius: 16px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); backdrop-filter: blur(6px); text-align: center; display: grid; gap: 2px; justify-items: center; }
.xh-feats span svg { width: 30px; height: 30px; fill: currentColor; filter: drop-shadow(0 0 10px currentColor); }
.xh-feats > div:nth-child(1) span { color: #fbbf24; } .xh-feats > div:nth-child(2) span { color: #facc15; } .xh-feats > div:nth-child(3) span { color: #22d3ee; }
.xh-feats b { font-size: .82rem; } .xh-feats small { color: #b9c2e8; font-size: .76rem; }
.xh-art { grid-column: 3; position: relative; height: 170px; }
.xh-arrows { position: absolute; inset: 0; margin: auto; width: 230px; height: 170px; filter: drop-shadow(0 0 10px rgba(34,211,238,.55)); }
.xh-t1, .xh-t2 { position: absolute; top: 34px; }
.xh-t1 { right: 30px; transform: rotate(-10deg); } .xh-t2 { left: 34px; transform: rotate(8deg); }
.xh-b { position: absolute; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #e0f2fe;
  background: radial-gradient(circle at 30% 30%, #60a5fa, #1d4ed8); box-shadow: 0 0 18px rgba(59,130,246,.6); animation: xfloat 4s ease-in-out infinite; }
.xh-b svg { width: 20px; height: 20px; }
.xh-b.b1 { top: 0; left: 0; } .xh-b.b2 { bottom: 8px; left: 60px; width: 28px; height: 28px; animation-delay: -1s; } .xh-b.b3 { top: 6px; right: -4px; animation-delay: -2s; } .xh-b.b4 { bottom: 0; right: 70px; width: 26px; height: 26px; animation-delay: -3s; }
@keyframes xfloat { 50% { transform: translateY(-8px); } }

.xc-tile { display: inline-grid; place-items: center; border-radius: 12px; width: 40px; height: 40px; color: #fff; flex: none; box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.xc-tile svg { width: 55%; height: 55%; }
.xc-tile.sm { width: 30px; height: 30px; border-radius: 9px; }
.xc-tile.lg { width: 92px; height: 92px; border-radius: 24px; box-shadow: 0 16px 40px rgba(0,0,0,.45), inset 0 2px 0 rgba(255,255,255,.25); }
.xc-tile.xl { width: 72px; height: 72px; border-radius: 18px; }

.xc-bar { margin: 18px 0 12px; flex-wrap: wrap; }
.xc-bar .seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.xc-bar .seg button { white-space: nowrap; }
.xc { border-radius: 22px; padding: 26px; color: #e8ecff;
  background: radial-gradient(80% 100% at 100% 0%, rgba(124,58,237,.18), transparent 60%), linear-gradient(180deg, #121a3a, #0e1430); border: 1px solid rgba(129,140,248,.25); box-shadow: 0 10px 40px rgba(15, 23, 42, .35); }
.xc-steps { list-style: none; margin: 0 0 24px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); position: relative; }
.xc-steps::before { content: ''; position: absolute; top: 17px; right: 16%; left: 16%; height: 2px; background: linear-gradient(90deg, rgba(129,140,248,.15), rgba(129,140,248,.5), rgba(129,140,248,.15)); }
.xc-steps li { text-align: center; display: grid; justify-items: center; gap: 4px; position: relative; opacity: .55; transition: opacity .2s; }
.xc-steps li.on { opacity: 1; }
.xc-steps i { font-style: normal; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: linear-gradient(135deg, #7c3aed, #6366f1); color: #fff; box-shadow: 0 0 0 5px #121a3a; z-index: 1; }
.xc-steps li.now i { box-shadow: 0 0 0 5px #121a3a, 0 0 18px rgba(139,92,246,.9); }
.xc-steps span svg { width: 34px; height: 34px; margin-top: 4px; }
.xc-steps li:nth-child(1) span { color: #a5b4fc; } .xc-steps li:nth-child(2) span { color: #22d3ee; } .xc-steps li:nth-child(3) span { color: #38bdf8; }
.xc-steps b { font-size: 1.02rem; } .xc-steps small { color: #aab3d8; }
.xc-grid { display: grid; grid-template-columns: 1fr 340px; gap: 18px; align-items: start; }
.xc-target { border-radius: 18px; padding: 18px; background: rgba(255,255,255,.03); border: 1px solid rgba(129,140,248,.3); }
.xc-target-head { display: flex; align-items: center; gap: 8px; padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px solid rgba(129,140,248,.18); }
.xc-target-head svg { width: 22px; height: 22px; color: #a78bfa; }
.xc-target-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.xc-who { display: grid; min-width: 0; flex: 1; }
.xc-who b { font-size: 1.35rem; word-break: break-all; color: #fff; }
.xc-who span { color: #c7cdf0; display: inline-flex; align-items: center; gap: 8px; }
.xc-who span i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.xc-who small { color: #aab3d8; }
.xc-go { border: 0; cursor: pointer; font: inherit; font-weight: 700; font-size: 1.05rem; color: #fff; padding: 14px 34px; border-radius: 999px; display: inline-flex; gap: 10px; align-items: center;
  background: linear-gradient(90deg, #9333ea, #22d3ee); box-shadow: 0 8px 26px rgba(147,51,234,.45); transition: transform .15s, box-shadow .15s; }
.xc-go:hover { transform: translateY(-1px); box-shadow: 0 10px 32px rgba(34,211,238,.45); }
.xc-go svg { width: 20px; height: 20px; }
.xc-confirm { margin-top: 14px; width: 100%; border: 0; cursor: pointer; font: inherit; font-weight: 700; font-size: 1.05rem; padding: 15px; border-radius: 999px; display: flex; gap: 10px; justify-content: center; align-items: center; color: #fff;
  background: linear-gradient(90deg, #16a34a, #22c55e); box-shadow: 0 8px 24px rgba(34,197,94,.35); }
.xc-confirm svg { width: 20px; height: 20px; }
.xc-confirm:disabled { cursor: not-allowed; background: rgba(148,163,184,.25); color: #94a3b8; box-shadow: none; }
.xc-skip { text-align: center; margin-top: 8px; } .xc-skip .btn { color: #aab3d8; }
.xc-info { border-radius: 18px; padding: 20px; background: linear-gradient(160deg, #4c1d95 0%, #312e81 60%, #1e1b4b 100%); border: 1px solid rgba(167,139,250,.35); box-shadow: 0 10px 30px rgba(76,29,149,.35); }
.xc-info h3 { display: flex; gap: 8px; align-items: center; margin-bottom: 14px; color: #fff; } .xc-info h3 svg { width: 24px; height: 24px; color: #22d3ee; }
.xc-info dl { margin: 0; display: grid; gap: 12px; }
.xc-info dl > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.xc-info dt { display: inline-flex; gap: 8px; align-items: center; color: #e0e7ff; } .xc-info dt svg { width: 18px; height: 18px; color: #a5b4fc; }
.xc-info dd { margin: 0; }
.xc-info .pill { min-width: 70px; text-align: center; padding: 3px 14px; border-radius: 999px; background: rgba(124,58,237,.6); color: #fff; font-weight: 700; font-size: .9rem; }
.xc-info .pill.coinpill { background: linear-gradient(90deg, #f59e0b, #fbbf24); color: #3b2300; }
.xc-info .pill.soft { background: rgba(255,255,255,.12); }
.xc-empty .empty { color: #c7cdf0; } .xc-empty .empty h3 { color: #fff; }
.xc-more { margin-top: 18px; } .xc-more h3 { margin-bottom: 10px; }
.xc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.xc-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; font: inherit; font-size: .9rem; }
.xc-chip:hover { border-color: #8b5cf6; }
.xc .skeleton, .xc .sk { opacity: .3; }
@media (max-width: 1100px) {
  .xh { grid-template-columns: 1fr; text-align: center; padding: 24px 18px; }
  .xh-text, .xh-feats, .xh-art { grid-column: 1; grid-row: auto; }
  .xh-feats { justify-content: center; } .xh-art { display: none; }
  .xc-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .xh h1 { font-size: 1.6rem; } .xh-ic svg { width: 34px; height: 34px; }
  .xh-feats > div { width: 31%; padding: 10px 4px; }
  .xc { padding: 16px; }
  .xc-steps b { font-size: .82rem; } .xc-steps small { display: none; } .xc-steps span svg { width: 26px; height: 26px; }
  .xc-go { width: 100%; justify-content: center; }
}

/* ================= members site — neon look (matches the exchange design) ================= */
[data-site="user"] {
  --teal: #7c3aed; --teal-ink: #fff; --teal-soft: #ede9fe;
  --grad: linear-gradient(90deg, #9333ea, #22d3ee);
  --r-panel: 18px; --r-ctl: 10px;
}
[data-site="user"][data-theme="dark"] {
  --ink: #eef1ff; --ink-2: #c3c9ec; --ink-3: #8f98c4;
  --bg: #0a0f24; --surface: #11183a; --surface-2: #19214b; --line: rgba(129, 140, 248, .2);
  --side: #0b1029; --side-ink: #c7cdf0; --side-active: #1b2560;
  --teal: #8b5cf6; --teal-soft: rgba(139, 92, 246, .18);
  --coin-soft: rgba(245, 158, 11, .16); --coin-deep: #fbbf24;
  --ok: #34d399; --ok-soft: rgba(52, 211, 153, .14); --warn: #fbbf24; --warn-soft: rgba(251, 191, 36, .14);
  --danger: #f87171; --danger-soft: rgba(248, 113, 113, .14); --info: #67e8f9; --info-soft: rgba(34, 211, 238, .12);
  --shadow: 0 8px 30px rgba(3, 7, 30, .45);
}
[data-site="user"][data-theme="dark"] body {
  background: radial-gradient(900px 500px at 85% -10%, rgba(124, 58, 237, .22), transparent 60%), radial-gradient(800px 500px at 0% 20%, rgba(37, 99, 235, .16), transparent 60%), var(--bg);
  background-attachment: fixed;
}
/* sidebar + topbar */
[data-site="user"][data-theme="dark"] .sidebar { background: linear-gradient(180deg, #0c1230, #080c22); border-inline-start: 1px solid rgba(129,140,248,.12); }
[data-site="user"] .brand-mark { background: var(--grad); box-shadow: 0 0 18px rgba(34, 211, 238, .45); }
[data-site="user"] .nav a { border-radius: 12px; padding: 10px 14px; }
[data-site="user"] .nav a.active { background: linear-gradient(90deg, rgba(37,99,235,.55), rgba(124,58,237,.45)); color: #fff; box-shadow: inset 0 0 0 1px rgba(96,165,250,.55), 0 0 18px rgba(59,130,246,.35); }
[data-site="user"][data-theme="dark"] .topbar { background: rgba(11, 16, 41, .78); backdrop-filter: blur(12px); border-bottom-color: rgba(129,140,248,.15); }
[data-site="user"][data-theme="dark"] .balance-pill { background: linear-gradient(90deg, rgba(120, 72, 8, .7), rgba(161, 98, 7, .55)); color: #fde68a; box-shadow: inset 0 0 0 1px rgba(251,191,36,.35); }
[data-site="user"][data-theme="dark"] .balance-pill .coin { color: #fde68a; }

/* page heads become banners */
[data-site="user"] .content > .page-head, [data-site="user"] #view > .page-head { position: relative; overflow: hidden; border-radius: 20px; padding: 22px 24px; color: #fff; align-items: center;
  background: radial-gradient(60% 140% at 10% 20%, rgba(59,130,246,.4), transparent 60%), radial-gradient(50% 140% at 95% 0%, rgba(168,85,247,.45), transparent 60%), linear-gradient(120deg, #0b1230, #1a1045 60%, #2a0f5c);
  box-shadow: 0 10px 34px rgba(76, 29, 149, .25); border: 1px solid rgba(129,140,248,.18); }
[data-site="user"] #view > .page-head h1 { font-size: 1.7rem; font-weight: 800; }
[data-site="user"] #view > .page-head p { color: #cfd6f6; }
[data-site="user"] #view > .page-head .btn:not(.primary) { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.16); }

/* surfaces */
[data-site="user"][data-theme="dark"] .panel, [data-site="user"][data-theme="dark"] .stat, [data-site="user"][data-theme="dark"] .task {
  background: linear-gradient(180deg, rgba(25, 33, 75, .85), rgba(15, 21, 52, .9)); border-color: rgba(129,140,248,.2); }
[data-site="user"][data-theme="dark"] .stat { position: relative; overflow: hidden; }
[data-site="user"][data-theme="dark"] .stat::after { content: ''; position: absolute; inset: auto -30% -60% auto; width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(circle, rgba(139,92,246,.25), transparent 70%); pointer-events: none; }
[data-site="user"] .stat .label svg { color: #a78bfa; }
[data-site="user"] .hero-balance { background: radial-gradient(70% 140% at 100% 0%, rgba(168,85,247,.55), transparent 60%), linear-gradient(135deg, #1e1b4b, #312e81 60%, #4c1d95); border: 1px solid rgba(167,139,250,.35); box-shadow: 0 10px 30px rgba(76,29,149,.35); }
[data-site="user"][data-theme="dark"] .modal { background: #11183a; border: 1px solid rgba(129,140,248,.25); }
[data-site="user"][data-theme="dark"] .modal-foot { background: #0e1433; }
[data-site="user"][data-theme="dark"] .toast { background: #19214b; border: 1px solid rgba(129,140,248,.3); }

/* controls */
[data-site="user"] .btn { border-radius: 999px; }
[data-site="user"] .btn.icon { border-radius: 12px; }
[data-site="user"] .btn.primary { background: var(--grad); border: 0; box-shadow: 0 6px 20px rgba(147, 51, 234, .35); }
[data-site="user"] .btn.primary:hover { filter: brightness(1.08); box-shadow: 0 8px 26px rgba(34, 211, 238, .35); }
[data-site="user"][data-theme="dark"] .btn:not(.primary):not(.danger):not(.coin-btn):not(.ghost) { background: rgba(255,255,255,.05); border-color: rgba(129,140,248,.25); color: var(--ink); }
[data-site="user"][data-theme="dark"] .btn:not(.primary):not(.danger):not(.coin-btn):hover { background: rgba(139,92,246,.18); }
[data-site="user"] .btn.coin-btn { background: linear-gradient(90deg, #f59e0b, #fbbf24); box-shadow: 0 6px 18px rgba(245,158,11,.3); }
[data-site="user"][data-theme="dark"] .input, [data-site="user"][data-theme="dark"] select.input, [data-site="user"][data-theme="dark"] textarea.input { background: rgba(8, 12, 34, .7); border-color: rgba(129,140,248,.25); border-radius: 12px; }
[data-site="user"] .input:focus { border-color: #8b5cf6; box-shadow: 0 0 0 3px rgba(139,92,246,.25); }
[data-site="user"] .seg { border-radius: 999px; padding: 4px; }
[data-site="user"] .seg button { border-radius: 999px; }
[data-site="user"] .seg button.active { background: var(--grad); color: #fff; box-shadow: 0 4px 14px rgba(147,51,234,.35); }
[data-site="user"][data-theme="dark"] .seg { background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px rgba(129,140,248,.2); }
[data-site="user"] .tabs button.active { border-bottom-color: #8b5cf6; }
[data-site="user"] .progress > i { background: var(--grad); }
[data-site="user"] .progress.coin > i { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
[data-site="user"] .task.state-started { border-color: #22d3ee; box-shadow: 0 0 0 3px rgba(34,211,238,.15), 0 0 24px rgba(34,211,238,.15); }

/* tables, badges, lists */
[data-site="user"][data-theme="dark"] .table-wrap { border-color: rgba(129,140,248,.2); border-radius: 14px; }
[data-site="user"][data-theme="dark"] .table th { background: rgba(124,58,237,.14); color: #c4b5fd; }
[data-site="user"][data-theme="dark"] .table td { border-top-color: rgba(129,140,248,.12); }
[data-site="user"] .badge { padding: 2px 11px; }
[data-site="user"] .empty .ic { background: linear-gradient(135deg, rgba(147,51,234,.25), rgba(34,211,238,.2)); color: #a78bfa; }
[data-site="user"] .list-item .ic { background: rgba(139,92,246,.16); color: #a78bfa; }
[data-site="user"] .level.current { border-color: #8b5cf6; box-shadow: 0 0 18px rgba(139,92,246,.3); }
[data-site="user"] .lb-row.me { background: rgba(139,92,246,.16); }
[data-site="user"][data-theme="dark"] .day.done { background: rgba(245,158,11,.14); }
[data-site="user"][data-theme="dark"] .code-box { background: rgba(8,12,34,.7); box-shadow: inset 0 0 0 1px rgba(129,140,248,.2); }

/* auth pages */
[data-site="user"] .auth-side { background: radial-gradient(60% 80% at 20% 20%, rgba(59,130,246,.45), transparent 60%), radial-gradient(60% 80% at 90% 10%, rgba(168,85,247,.5), transparent 60%), linear-gradient(140deg, #0b1230, #1a1045 55%, #2a0f5c); }

/* ================= public landing page ================= */
.ld { min-height: 100vh; color: #eef1ff; overflow-x: hidden;
  background: radial-gradient(900px 600px at 85% -10%, rgba(124,58,237,.35), transparent 60%), radial-gradient(800px 600px at -10% 30%, rgba(37,99,235,.25), transparent 60%), #0a0f24; }
.ld a:not(.btn) { color: #c7cdf0; }
.ld-nav { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 14px; padding: 14px clamp(16px, 5vw, 64px); background: rgba(10,15,36,.75); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(129,140,248,.12); }
.ld-brand { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; color: #fff !important; text-decoration: none !important; }
.ld-brand .brand-mark { width: 38px; height: 38px; border-radius: 11px; background: linear-gradient(90deg, #9333ea, #22d3ee); display: grid; place-items: center; color: #fff; box-shadow: 0 0 18px rgba(34,211,238,.45); }
.ld-links { display: flex; gap: 22px; margin-inline-start: 24px; }
.ld-links a { font-weight: 600; }
.ld .btn.ghost { color: #fff; }
.ld .btn.lg { padding: 13px 28px; font-size: 1.05rem; }
.ld .btn:not(.primary):not(.ghost) { background: rgba(255,255,255,.06); border-color: rgba(129,140,248,.3); color: #fff; }
.ld-hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 30px; align-items: center; padding: clamp(40px, 7vw, 90px) clamp(16px, 5vw, 64px) 40px; max-width: 1280px; margin: 0 auto; }
.ld-kicker { display: inline-flex; gap: 8px; align-items: center; padding: 6px 14px; border-radius: 999px; background: rgba(139,92,246,.16); border: 1px solid rgba(139,92,246,.35); color: #ddd6fe; font-weight: 600; font-size: .9rem; }
.ld-kicker svg { width: 16px; height: 16px; color: #facc15; fill: currentColor; }
.ld-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); font-weight: 800; line-height: 1.25; margin: 18px 0 14px; letter-spacing: -.5px; }
.ld-grad { background: linear-gradient(90deg, #a855f7, #22d3ee); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ld-hero p { color: #c3c9ec; font-size: 1.12rem; max-width: 34em; }
.ld-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.ld-bonus { display: inline-flex; gap: 8px; align-items: center; margin-top: 16px !important; color: #fde68a !important; font-size: .98rem !important; }
.ld-bonus svg { width: 18px; height: 18px; }
.ld-hero-art { position: relative; height: 380px; }
.ld-orb { position: absolute; inset: 10% 10%; border-radius: 50%; background: radial-gradient(circle at 40% 40%, rgba(139,92,246,.55), rgba(37,99,235,.25) 50%, transparent 70%); filter: blur(10px); }
.ld-hero-art .xh-arrows { position: absolute; inset: 0; margin: auto; width: 300px; height: 220px; }
.ld-t1, .ld-t2 { position: absolute; top: 120px; } .ld-t1 { right: 16%; transform: rotate(-10deg); } .ld-t2 { left: 16%; transform: rotate(8deg); }
.ld-hero-art .xc-tile.lg { width: 120px; height: 120px; border-radius: 30px; }
.ld-float { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 14px; background: rgba(17,24,58,.85); border: 1px solid rgba(129,140,248,.35); box-shadow: 0 10px 30px rgba(0,0,0,.35); font-weight: 700; animation: xfloat 4s ease-in-out infinite; }
.ld-float svg { width: 18px; height: 18px; color: #22d3ee; }
.ld-float.f1 { top: 20px; right: 4%; } .ld-float.f2 { bottom: 40px; left: 2%; animation-delay: -1.3s; } .ld-float.f2 svg { color: #f472b6; } .ld-float.f3 { bottom: 0; right: 22%; animation-delay: -2.4s; }
.ld-stats { max-width: 1100px; margin: 10px auto 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; padding: 0 clamp(16px, 5vw, 64px); }
.ld-stats > div { text-align: center; padding: 20px 10px; border-radius: 18px; background: linear-gradient(180deg, rgba(25,33,75,.85), rgba(15,21,52,.9)); border: 1px solid rgba(129,140,248,.2); }
.ld-stats b { display: block; font-size: 2rem; font-weight: 800; background: linear-gradient(90deg, #c084fc, #22d3ee); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ld-stats span { color: #aab3d8; }
.ld-sec { max-width: 1180px; margin: 0 auto; padding: 70px clamp(16px, 5vw, 64px) 0; text-align: center; }
.ld-sec h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; }
.ld-sub { color: #aab3d8; margin-top: 6px; }
.ld-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 30px; }
.ld-steps > div, .ld-feats > div { position: relative; padding: 28px 22px; border-radius: 20px; background: linear-gradient(180deg, rgba(25,33,75,.85), rgba(15,21,52,.9)); border: 1px solid rgba(129,140,248,.22); text-align: center; }
.ld-steps i { position: absolute; top: -16px; right: 50%; transform: translateX(50%); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 800; background: linear-gradient(135deg, #7c3aed, #6366f1); box-shadow: 0 0 0 5px #0a0f24, 0 0 18px rgba(139,92,246,.8); }
.ld-steps svg { width: 40px; height: 40px; color: #22d3ee; margin: 8px 0 6px; }
.ld-steps h3, .ld-feats h3 { font-size: 1.15rem; margin-bottom: 6px; }
.ld-steps p, .ld-feats p { color: #aab3d8; margin: 0; }
.ld-feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 30px; text-align: start; }
.ld-feats > div { text-align: start; }
.ld-feats span { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: linear-gradient(135deg, rgba(147,51,234,.35), rgba(34,211,238,.25)); margin-bottom: 12px; }
.ld-feats span svg { width: 24px; height: 24px; color: #e9d5ff; }
.ld-pfs { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; margin-top: 26px; }
.ld-pf { display: grid; justify-items: center; gap: 6px; width: 140px; padding: 18px 10px; border-radius: 18px; background: rgba(255,255,255,.04); border: 1px solid rgba(129,140,248,.18); }
.ld-pf small { color: #aab3d8; }
.ld-faq { max-width: 780px; margin: 26px auto 0; display: grid; gap: 10px; text-align: start; }
.ld-faq details { border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid rgba(129,140,248,.2); padding: 14px 18px; }
.ld-faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; }
.ld-faq summary::after { content: '+'; color: #a78bfa; font-size: 1.3rem; line-height: 1; } .ld-faq details[open] summary::after { content: '−'; }
.ld-faq p { color: #c3c9ec; margin: 10px 0 0; }
.ld-final { max-width: 1100px; margin: 80px auto 0; padding: 44px 20px; text-align: center; border-radius: 26px;
  background: radial-gradient(60% 140% at 10% 20%, rgba(59,130,246,.45), transparent 60%), radial-gradient(50% 140% at 95% 0%, rgba(168,85,247,.55), transparent 60%), linear-gradient(120deg, #0b1230, #1a1045 60%, #2a0f5c); border: 1px solid rgba(129,140,248,.25); }
.ld-final h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; } .ld-final p { color: #cfd6f6; margin: 8px 0 20px; }
.ld-foot { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; padding: 30px clamp(16px, 5vw, 64px); margin-top: 60px; border-top: 1px solid rgba(129,140,248,.12); color: #8f98c4; }
@media (max-width: 900px) {
  .ld-links { display: none; }
  .ld-hero { grid-template-columns: 1fr; text-align: center; padding-top: 34px; }
  .ld-hero p { margin-inline: auto; } .ld-cta { justify-content: center; }
  .ld-hero-art { height: 280px; } .ld-hero-art .xc-tile.lg { width: 90px; height: 90px; } .ld-t1, .ld-t2 { top: 90px; }
  .ld-stats { grid-template-columns: repeat(2, 1fr); }
  .ld-steps, .ld-feats { grid-template-columns: 1fr; }
  .ld-steps { gap: 30px; }
}
@media (max-width: 480px) { .ld-login { display: none; } .ld-nav { gap: 8px; } .ld-brand b { font-size: .95rem; } }
/* profile pictures in the exchange */
.xc-ava { position: relative; display: inline-block; flex: none; width: 40px; height: 40px; }
.xc-ava img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; background: #1b2560; box-shadow: 0 0 0 3px rgba(139,92,246,.55), 0 8px 24px rgba(0,0,0,.4); }
.xc-ava.xl { width: 76px; height: 76px; } .xc-ava.sm { width: 30px; height: 30px; }
.xc-ava .xc-tile.badge { position: absolute; bottom: -4px; left: -4px; width: 26px; height: 26px; border-radius: 8px; box-shadow: 0 0 0 3px #121a3a; }
.xc-ava.sm .xc-tile.badge { width: 14px; height: 14px; border-radius: 4px; bottom: -2px; left: -2px; box-shadow: 0 0 0 2px #121a3a; }
.xc-ava.sm .xc-tile.badge svg { display: none; }
.xc-ava.broken img { visibility: hidden; }
.xc-ava.broken .xc-tile.badge { inset: 0; width: 100%; height: 100%; border-radius: 18px; }
/* install the app */
.nav-install { padding: 14px 8px 4px; } .nav-install .btn { width: 100%; }
.ld-app { max-width: 1100px; margin: 70px max(16px, calc((100% - 1100px) / 2)) 0; padding: 30px clamp(18px, 4vw, 44px); display: flex; gap: 24px; align-items: center; justify-content: space-between; border-radius: 26px; background: linear-gradient(135deg, rgba(25,33,75,.9), rgba(30,20,70,.9)); border: 1px solid rgba(129,140,248,.25); }
.ld-app h2 { display: flex; gap: 10px; align-items: center; font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 800; }
.ld-app h2 svg { width: 30px; height: 30px; color: #22d3ee; }
.ld-app p { color: #c3c9ec; margin-top: 8px; max-width: 34em; }
.ld-app img { border-radius: 34px; box-shadow: 0 20px 50px rgba(124,58,237,.45); flex: none; }
@media (max-width: 700px) { .ld-app { flex-direction: column-reverse; text-align: center; } .ld-app .ld-cta { justify-content: center; } .ld-app img { width: 110px; height: 110px; } }
/* inside the installed app: respect the phone's notch */
@media (display-mode: standalone) { .topbar { padding-top: max(12px, env(safe-area-inset-top)); } }
/* app download */
.ld-dl { max-width: 820px; }
.ld-dl-icon { border-radius: 28px; box-shadow: 0 0 40px rgba(139,92,246,.5); }
.ld-dl h2 { margin-top: 16px; }
.ld-dl-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }
.ld-dl-how { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 30px; text-align: start; }
.ld-dl-how > div { padding: 20px; border-radius: 18px; background: linear-gradient(180deg, rgba(25,33,75,.85), rgba(15,21,52,.9)); border: 1px solid rgba(129,140,248,.22); }
.ld-dl-how h3 { display: flex; gap: 8px; align-items: center; } .ld-dl-how h3 svg { width: 20px; height: 20px; color: #22d3ee; }
.ld-dl-how ol { margin: 10px 0 0; padding-inline-start: 20px; color: #c3c9ec; line-height: 2; }
@media (max-width: 640px) { .ld-dl-how { grid-template-columns: 1fr; } }

/* ---------- language switch + LTR (English) ---------- */
.lang-btn span { font-weight: 700; letter-spacing: .02em; }
.lang-float { position: fixed; top: 12px; inset-inline-start: 12px; z-index: 60; }
[dir="ltr"] .toasts { left: auto; right: 18px; }
@media (max-width: 920px) {
  [dir="ltr"] .sidebar { inset: 0 auto 0 0; transform: translateX(-100%); }
  [dir="ltr"] body.nav-open .sidebar { transform: none; }
}
[dir="ltr"] .xc-ava .xc-tile.badge { left: auto; right: -4px; }
[dir="ltr"] .xc-ava.sm .xc-tile.badge { left: auto; right: -2px; }
