
:root {
  --bg: #f5f6fb;
  --bg-soft: #eceefa;
  --surface: #ffffff;
  --surface-2: #f8f9fd;
  --ink: #12142b;
  --ink-2: #4a4e6d;
  --muted: #8a8fae;
  --line: #e3e5f2;
  --accent: #5b4cf5;
  --accent-2: #8a7dff;
  --accent-soft: #ecebff;
  --mint: #12b886;
  --mint-soft: #e2f8ef;
  --amber: #e8930c;
  --amber-soft: #fdf1dc;
  --rose: #e5484d;
  --rose-soft: #fde8e8;
  --shadow: 0 1px 2px rgba(18, 20, 43, .04), 0 8px 24px rgba(18, 20, 43, .06);
  --shadow-lg: 0 24px 60px -12px rgba(43, 32, 140, .22);
  --radius: 18px;
  --radius-sm: 12px;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0c0d18;
  --bg-soft: #13152a;
  --surface: #151729;
  --surface-2: #1a1d33;
  --ink: #eef0ff;
  --ink-2: #b4b8d6;
  --muted: #7d82a6;
  --line: #262a46;
  --accent: #8a7dff;
  --accent-2: #b3a9ff;
  --accent-soft: #241f4d;
  --mint: #3dd6a3;
  --mint-soft: #11322a;
  --amber: #f5b14a;
  --amber-soft: #3a2a10;
  --rose: #ff6b70;
  --rose-soft: #3d1a1d;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  --shadow-lg: 0 24px 60px -12px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  transition: background .3s, color .3s;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
.mono { font-family: var(--mono); font-feature-settings: "tnum"; }
.muted { color: var(--muted); }
.container { width: min(1180px, 100% - 40px); margin-inline: auto; }


.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px; border-radius: 999px;
  font: 600 15px/1 var(--font); border: 1px solid transparent; cursor: pointer;
  transition: transform .15s, box-shadow .2s, background .2s, border-color .2s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; box-shadow: 0 8px 20px -6px rgba(91, 76, 245, .55);
}
.btn-primary:hover { box-shadow: 0 12px 28px -6px rgba(91, 76, 245, .7); transform: translateY(-1px); }
.btn-ghost { background: var(--surface); border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-text { background: none; color: var(--ink-2); padding: 0 12px; }
.btn-text:hover { color: var(--accent); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn-mint { background: var(--mint); color: #fff; }
.btn-mint:hover { filter: brightness(1.06); }
.btn-danger { background: var(--rose-soft); color: var(--rose); }
.btn-block { width: 100%; }

.icon-btn {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); cursor: pointer;
  transition: color .2s, border-color .2s;
}
.icon-btn:hover { color: var(--accent); border-color: var(--accent); }
.icon-btn svg { width: 18px; height: 18px; }
.i-sun { display: none; }
:root[data-theme="dark"] .i-sun { display: block; }
:root[data-theme="dark"] .i-moon { display: none; }


.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -.02em; }
.logo-mark {
  width: 32px; height: 32px; border-radius: 10px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--accent), var(--mint));
}
.logo-mark::before, .logo-mark::after {
  content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .9);
}
.logo-mark::before { width: 12px; height: 12px; left: 6px; top: 10px; }
.logo-mark::after { width: 8px; height: 8px; right: 6px; top: 6px; opacity: .65; }
.logo b { color: var(--accent); }


.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(160%) blur(14px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.nav-links { display: flex; gap: 6px; }
.nav-links a { padding: 8px 14px; border-radius: 999px; color: var(--ink-2); font-weight: 500; font-size: 15px; }
.nav-links a:hover { background: var(--surface); color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 8px; }


.hero { position: relative; padding: 72px 0 96px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -200px -10% auto auto; width: 720px; height: 720px;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 22%, transparent), transparent);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; left: -240px; bottom: -280px; width: 640px; height: 640px;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--mint) 18%, transparent), transparent);
  pointer-events: none;
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px;
  border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
  font-size: 13px; font-weight: 600; color: var(--ink-2); box-shadow: var(--shadow);
}
.pill span { background: var(--accent-soft); color: var(--accent); padding: 3px 10px; border-radius: 999px; }
.hero h1 {
  font-size: clamp(40px, 5.6vw, 68px); line-height: 1.02; letter-spacing: -.035em;
  margin: 22px 0 20px; font-weight: 800;
}
.grad {
  background: linear-gradient(120deg, var(--accent), var(--mint));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead { font-size: 19px; color: var(--ink-2); max-width: 520px; margin: 0 0 32px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-trust { display: flex; gap: 28px; margin-top: 40px; flex-wrap: wrap; }
.hero-trust div { font-size: 13px; color: var(--muted); }
.hero-trust strong { display: block; font-size: 22px; color: var(--ink); letter-spacing: -.02em; }


.mock {
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px;
  box-shadow: var(--shadow-lg); padding: 18px; transform: rotate(-1.2deg);
  animation: float 7s ease-in-out infinite;
}
@keyframes float { 50% { transform: rotate(-1.2deg) translateY(-10px); } }
.mock-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.mock-balance {
  border-radius: 16px; padding: 20px; color: #fff; margin-bottom: 14px;
  background: linear-gradient(135deg, #4b3df0 0%, #7a6cff 55%, #19c39c 130%);
}
.mock-balance small { opacity: .8; font-size: 13px; }
.mock-balance .big { font-size: 34px; font-weight: 800; letter-spacing: -.02em; margin: 4px 0 10px; }
.mock-balance .row { display: flex; gap: 18px; font-size: 13px; opacity: .9; }
.mock-list { display: grid; gap: 8px; }
.mock-item {
  display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center;
  padding: 12px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line);
}
.mock-item .av { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-weight: 700; font-size: 13px; background: var(--accent-soft); color: var(--accent); }
.mock-item b { font-size: 14px; display: block; }
.mock-item small { font-size: 12px; color: var(--muted); }
.mock-toast {
  position: absolute; right: -14px; bottom: -22px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; padding: 12px 16px; box-shadow: var(--shadow-lg); display: flex; gap: 10px; align-items: center;
  font-size: 14px; font-weight: 600; transform: rotate(1.5deg);
}
.mock-toast i { width: 28px; height: 28px; border-radius: 50%; background: var(--mint-soft); color: var(--mint); display: grid; place-items: center; font-style: normal; }
.mock-wrap { position: relative; }


.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 700; white-space: nowrap;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.waiting { background: var(--amber-soft); color: var(--amber); }
.badge.review { background: var(--accent-soft); color: var(--accent); }
.badge.done { background: var(--mint-soft); color: var(--mint); }
.badge.cancelled { background: var(--rose-soft); color: var(--rose); }


section.block { padding: 96px 0; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.section-head { max-width: 680px; margin-bottom: 52px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(30px, 3.8vw, 46px); line-height: 1.08; letter-spacing: -.03em; margin: 12px 0 14px; }
.section-head p { font-size: 18px; color: var(--ink-2); margin: 0; }

.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
}
.bento .card { transition: transform .25s, box-shadow .25s; }
.bento .card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.span-2 { grid-column: span 2; } .span-3 { grid-column: span 3; } .span-4 { grid-column: span 4; }
.f-icon {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); margin-bottom: 18px;
}
.f-icon.mint { background: var(--mint-soft); color: var(--mint); }
.f-icon.amber { background: var(--amber-soft); color: var(--amber); }
.f-icon svg { width: 22px; height: 22px; }
.card h3 { font-size: 20px; letter-spacing: -.015em; margin: 0 0 8px; }
.card p { margin: 0; color: var(--ink-2); }
.feature-visual { margin-top: 22px; display: grid; gap: 8px; }
.search-mock {
  display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 12px;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); font-size: 14px;
}
.search-mock kbd { margin-left: auto; font: 600 11px var(--mono); padding: 3px 7px; border-radius: 6px; border: 1px solid var(--line); background: var(--surface); }


.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.mode { padding: 36px; position: relative; overflow: hidden; }
.mode.dark { background: #15122f; color: #eef0ff; border-color: #2a2556; }
.mode.dark p, .mode.dark li { color: #b9b5e6; }
.mode .tag { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.mode.dark .tag { color: #a99fff; }
.mode h3 { font-size: 28px; margin: 10px 0 12px; }
.mode ul { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.mode li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); }
.mode li::before {
  content: "✓"; flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  font-size: 12px; font-weight: 800; background: var(--mint-soft); color: var(--mint);
}


.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; position: relative; }
.step { position: relative; }
.step .num {
  font: 700 13px var(--mono); color: var(--accent); background: var(--accent-soft);
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px;
}
.step h3 { margin-bottom: 6px; }
.step .badge { margin-top: 16px; }
.steps-line { position: absolute; top: 48px; left: 8%; right: 8%; height: 2px; background: linear-gradient(90deg, var(--accent), var(--mint)); opacity: .25; z-index: 0; }
.step.card { z-index: 1; }


.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 0 24px; transition: border-color .2s; }
.faq details[open] { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 0; font-weight: 700; font-size: 17px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; font-weight: 400; color: var(--accent); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 22px; color: var(--ink-2); }


.cta {
  border-radius: 32px; padding: 64px; text-align: center; color: #fff; position: relative; overflow: hidden;
  background: radial-gradient(120% 140% at 0% 0%, #6d5cff 0%, #3b2dc9 45%, #14103a 100%);
}
.cta::after {
  content: ""; position: absolute; right: -120px; bottom: -160px; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(25, 195, 156, .55), transparent);
}
.cta h2 { font-size: clamp(30px, 4vw, 50px); letter-spacing: -.03em; margin: 0 0 14px; position: relative; z-index: 1; }
.cta p { color: #cfcaff; font-size: 18px; margin: 0 0 30px; position: relative; z-index: 1; }
.cta .btn { position: relative; z-index: 1; }
.cta .btn-ghost { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .25); color: #fff; }

.site-footer { padding: 48px 0; border-top: 1px solid var(--line); margin-top: 96px; }
.footer-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.footer-row nav { display: flex; gap: 22px; }
.footer-row a:hover { color: var(--accent); }


.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .mock { animation: none; }
}


.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-side {
  padding: 48px; color: #fff; display: flex; flex-direction: column; justify-content: space-between;
  background: radial-gradient(120% 120% at 100% 0%, #19c39c 0%, transparent 40%), linear-gradient(160deg, #4b3df0, #1a1446);
}
.auth-side .logo { color: #fff; }
.auth-side .logo b { color: #b9ffe9; }
.auth-side h2 { font-size: 40px; line-height: 1.08; letter-spacing: -.03em; max-width: 440px; }
.auth-side p { color: #d6d2ff; max-width: 420px; }
.auth-main { display: grid; place-items: center; padding: 40px 20px; }
.auth-form { width: min(400px, 100%); }
.auth-form h1 { font-size: 32px; letter-spacing: -.03em; margin: 0 0 6px; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.input {
  height: 48px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface);
  padding: 0 16px; font: 500 15px var(--font); color: var(--ink); outline: none; width: 100%;
  transition: border-color .2s, box-shadow .2s;
}
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; margin: 20px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-switch { margin-top: 22px; text-align: center; color: var(--muted); font-size: 14px; }
.auth-switch a { color: var(--accent); font-weight: 600; }
.alert {
  padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: 14px;
  background: var(--rose-soft); color: var(--rose);
}
.alert code { font-family: var(--mono); font-size: 13px; }
.verify-steps { margin: 0 0 24px; padding-left: 20px; display: grid; gap: 10px; color: var(--ink-2); }
.verify-status { display: flex; align-items: center; gap: 10px; margin-top: 18px; font-size: 14px; color: var(--muted); }
.verify-status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); animation: pulse 1.4s ease-in-out infinite; }
.verify-status[data-linked="1"] .dot { background: var(--mint); }
@keyframes pulse { 50% { opacity: .3; } }


.shell { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh; padding: 24px 18px; display: flex; flex-direction: column; gap: 28px;
  border-right: 1px solid var(--line); background: var(--surface);
}
.side-nav { display: grid; gap: 4px; }
.side-nav a {
  display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 12px;
  color: var(--ink-2); font-weight: 600; font-size: 15px; transition: background .15s, color .15s;
}
.side-nav a svg { width: 19px; height: 19px; }
.side-nav a:hover { background: var(--surface-2); color: var(--ink); }
.side-nav a.active { background: var(--accent-soft); color: var(--accent); }
.side-nav .count { margin-left: auto; font: 700 12px var(--mono); background: var(--amber-soft); color: var(--amber); padding: 2px 8px; border-radius: 999px; }
.side-foot { margin-top: auto; display: grid; gap: 12px; }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.avatar { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--accent), var(--mint)); flex: none; }
.user-chip b { font-size: 14px; display: block; line-height: 1.2; }
.user-chip small { font-size: 12px; color: var(--muted); }
.user-chip a { margin-left: auto; color: var(--muted); }
.user-chip a:hover { color: var(--rose); }

.main { padding: 28px 36px 60px; min-width: 0; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.topbar h1 { font-size: 28px; letter-spacing: -.025em; margin: 0; }
.topbar .sub { color: var(--muted); font-size: 14px; margin-top: 2px; }
.topbar-actions { display: flex; gap: 10px; align-items: center; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.stat { padding: 22px; }
.stat small { color: var(--muted); font-size: 13px; font-weight: 600; }
.stat .val { font-size: 28px; font-weight: 800; letter-spacing: -.02em; margin-top: 6px; }
.stat .hint { font-size: 13px; color: var(--muted); margin-top: 2px; }
.stat.hero-stat { color: #fff; border: 0; background: linear-gradient(135deg, #4b3df0, #7a6cff 60%, #19c39c 140%); }
.stat.hero-stat small, .stat.hero-stat .hint { color: rgba(255, 255, 255, .8); }

.grid-2 { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; align-items: start; }
.card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.card-head h2 { font-size: 18px; margin: 0; letter-spacing: -.01em; }
.card-head a { font-size: 14px; color: var(--accent); font-weight: 600; }
.card.flush { padding: 0; overflow: hidden; }
.card.flush .card-head { padding: 22px 24px 0; }

.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; padding: 14px 24px; border-bottom: 1px solid var(--line); }
.table td { padding: 16px 24px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { cursor: pointer; transition: background .15s; }
.table tbody tr:hover { background: var(--surface-2); }
.table .r { text-align: right; }
.cell-title b { display: block; }
.cell-title small { color: var(--muted); }
.side-tag { font: 700 11px var(--mono); padding: 3px 7px; border-radius: 6px; }
.side-tag.buy { background: var(--mint-soft); color: var(--mint); }
.side-tag.sell { background: var(--rose-soft); color: var(--rose); }
.pos { color: var(--mint); } .neg { color: var(--rose); }

.feed { display: grid; }
.feed-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.feed-item:last-child { border-bottom: 0; }
.feed-dot { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; font-weight: 800; }
.feed-dot.pos { background: var(--mint-soft); }
.feed-dot.neg { background: var(--rose-soft); }
.feed-item b { font-size: 14px; display: block; }
.feed-item small { color: var(--muted); font-size: 12px; }
.feed-item .amt { margin-left: auto; font-weight: 700; }


.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 24px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.tabs { display: flex; gap: 4px; background: var(--surface-2); padding: 4px; border-radius: 12px; border: 1px solid var(--line); flex-wrap: wrap; }
.tabs a { padding: 7px 12px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--ink-2); display: inline-flex; gap: 6px; align-items: center; }
.tabs a span { font: 600 11px var(--mono); color: var(--muted); }
.tabs a.active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.search { position: relative; }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--muted); }
.search .input { padding-left: 40px; height: 42px; width: 280px; }
.empty { padding: 60px 24px; text-align: center; color: var(--muted); }


.back { display: inline-flex; gap: 6px; align-items: center; color: var(--muted); font-weight: 600; font-size: 14px; margin-bottom: 10px; }
.back svg { width: 16px; height: 16px; }

.alert.info { background: var(--amber-soft); color: var(--amber); }


.reserve-banner {
  display: flex; align-items: center; gap: 16px; padding: 18px 22px; margin-bottom: 20px;
  border: 1px solid var(--accent); background: var(--accent-soft); color: var(--ink);
}
.reserve-banner > div:first-child svg { width: 28px; height: 28px; color: var(--accent); }
.reserve-banner > div:nth-child(2) { flex: 1; }
.reserve-banner small { display: block; color: var(--ink-2); font-size: 13px; margin-top: 2px; }
a.card.stat { color: inherit; transition: border-color .2s; }
a.card.stat:hover { border-color: var(--accent); }
.deposit-card { padding: 28px; max-width: 720px; margin-bottom: 16px; }
.deposit-card h2 { margin: 0 0 6px; font-size: 22px; }
.deposit-card.done { text-align: center; padding: 48px 28px; }
.deposit-ok { width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 16px; display: grid; place-items: center;
  background: var(--mint-soft); color: var(--mint); }
.deposit-ok svg { width: 28px; height: 28px; }
.deposit-row { display: grid; gap: 6px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.deposit-row:first-child { padding-top: 0; }
.deposit-row small { color: var(--muted); font-size: 13px; font-weight: 600; }
.deposit-copy { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.deposit-amount { font-size: 28px; letter-spacing: -.02em; }
.deposit-address { font-size: 15px; overflow-wrap: anywhere; }
.deposit-notes { margin: 18px 0 0; padding-left: 20px; display: grid; gap: 8px; color: var(--ink-2); font-size: 14px; }
.deposit-networks { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-top: 18px; }
.network-btn {
  width: 100%; text-align: left; padding: 18px 20px; border-radius: var(--radius-sm); cursor: pointer;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit;
  transition: border-color .2s, box-shadow .2s;
}
.network-btn:hover:not(:disabled) { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.network-btn:disabled { opacity: .5; cursor: not-allowed; }
.network-btn b { display: block; font-size: 17px; }
.network-btn small { color: var(--muted); }
.deposit-claim { padding: 18px 28px; max-width: 720px; }
.deposit-claim summary { cursor: pointer; font-weight: 600; }
.deposit-claim-form { display: flex; gap: 10px; flex-wrap: wrap; }
.deposit-claim-form .input { flex: 1; min-width: 240px; font-family: var(--mono); font-size: 13px; }

.deposit-next { display: flex; gap: 18px; align-items: flex-start; border-color: var(--mint); background: var(--mint-soft); }
.deposit-next .deposit-ok { margin: 0; flex: none; background: var(--surface); }
.deposit-next p { margin: 0; }
.work-form { margin-top: 18px; }
.work-form .field { margin-bottom: 18px; }
.work-form .input { font-size: 20px; font-weight: 700; height: 54px; }
.amount-presets { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.chip {
  height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2);
  color: var(--ink-2); font: 600 14px var(--mono); cursor: pointer;
}
.chip:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.field-label { display: block; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.field-label + .deposit-networks { margin-top: 8px; }
.field-hint { font-size: 13px; color: var(--mint); font-weight: 600; }


.ref-hero {
  display: grid; grid-template-columns: auto 1fr; gap: 28px; padding: 26px 28px; margin-bottom: 16px; border: 0; color: #fff;
  background: linear-gradient(135deg, #3b2dc9, #6d5cff 55%, #19c39c 140%);
}
.ref-hero small { display: block; opacity: .8; font-weight: 600; font-size: 13px; margin-bottom: 8px; }
.ref-hero .ref-code b { font-size: 28px; letter-spacing: .02em; }
.ref-hero .ref-link .mono { font-size: 14px; overflow-wrap: anywhere; min-width: 0; }
.ref-hero .ref-link .deposit-copy { flex-wrap: nowrap; }
.ref-hero .btn { background: rgba(255, 255, 255, .15); color: #fff; border-color: rgba(255, 255, 255, .25); flex: none; }
.ref-how { padding: 22px 26px; margin-bottom: 16px; }
.ref-how h2 { font-size: 18px; margin: 0 0 14px; }
.ref-how .verify-steps { margin: 0; }
.show-sm { display: none; }
.ref-topped { display: block; margin-top: 6px; }
.table tbody tr.static { cursor: default; }
.table tbody tr.static:hover { background: none; }


.chat { display: flex; flex-direction: column; height: calc(100vh - 190px); height: calc(100dvh - 190px); min-height: 420px; }
.chat-log { flex: 1; overflow-y: auto; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.chat-log .empty { margin: auto; }
.msg { max-width: min(560px, 80%); padding: 10px 14px; border-radius: 16px; background: var(--bg-soft); align-self: flex-start; }
.chat .msg p { margin: 0; color: inherit; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg b { display: block; font-size: 12px; color: var(--accent); margin-bottom: 2px; }
.msg small { display: block; font-size: 11px; color: var(--muted); margin-top: 4px; text-align: right; }
.msg.user { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.msg.user small { color: rgba(255, 255, 255, .7); }
.msg.manager { border-bottom-left-radius: 4px; }
.msg.system { align-self: center; background: none; color: var(--muted); font-size: 13px; padding: 4px; }
.msg.system small { display: none; }
.chat-form { display: flex; gap: 10px; padding: 14px; border-top: 1px solid var(--line); }
.chat-form .input { height: auto; min-height: 46px; max-height: 160px; padding: 12px 16px; resize: vertical; font-family: var(--font); }
.chat-form .btn { padding: 0 16px; }
.back:hover { color: var(--accent); }
.order-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; align-items: start; }
.amount-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-bottom: 22px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.amount-hero .big { font-size: 40px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.amount-hero small { color: var(--muted); font-size: 13px; font-weight: 600; }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; }
.kv small { color: var(--muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.kv div > div { font-weight: 700; margin-top: 2px; display: flex; align-items: center; gap: 8px; }
.copy { border: 0; background: var(--surface-2); color: var(--muted); border-radius: 8px; width: 28px; height: 28px; display: grid; place-items: center; cursor: pointer; }
.copy:hover { color: var(--accent); }
.copy svg { width: 14px; height: 14px; }
.progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 4px 0 24px; }
.progress div { height: 6px; border-radius: 999px; background: var(--line); }
.progress div.on { background: linear-gradient(90deg, var(--accent), var(--mint)); }
.progress-labels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; font-size: 12px; color: var(--muted); font-weight: 600; margin-top: -16px; margin-bottom: 24px; }

.dropzone {
  display: grid; place-items: center; text-align: center; gap: 6px; padding: 28px; border-radius: 16px;
  border: 2px dashed var(--line); background: var(--surface-2); cursor: pointer; transition: border-color .2s, background .2s;
}
.dropzone:hover, .dropzone.drag { border-color: var(--accent); background: var(--accent-soft); }
.dropzone svg { width: 28px; height: 28px; color: var(--accent); }
.dropzone b { font-size: 15px; }
.dropzone small { color: var(--muted); }
.dropzone input { display: none; }
.file-ok { display: flex; align-items: center; gap: 10px; padding: 14px; border-radius: 14px; background: var(--mint-soft); color: var(--mint); font-weight: 700; font-size: 14px; }
.actions { display: grid; gap: 10px; margin-top: 16px; }
.note { font-size: 13px; color: var(--muted); margin-top: 12px; }

.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.timeline li { position: relative; padding: 0 0 20px 28px; }
.timeline li::before { content: ""; position: absolute; left: 5px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.timeline li::after { content: ""; position: absolute; left: 10px; top: 22px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child { padding-bottom: 0; }
.timeline li:last-child::after { display: none; }
.timeline b { font-size: 14px; display: block; }
.timeline small { color: var(--muted); font-size: 12px; }


.wallet { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 16px; margin-bottom: 24px; }
.wallet .main-card { padding: 30px; color: #fff; border: 0; position: relative; overflow: hidden; background: linear-gradient(135deg, #3b2dc9, #6d5cff 55%, #19c39c 140%); }
.wallet .main-card::after { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; right: -80px; top: -100px; background: rgba(255, 255, 255, .08); }
.wallet .main-card small { opacity: .8; font-weight: 600; }
.wallet .main-card .big { font-size: 44px; font-weight: 800; letter-spacing: -.03em; margin: 8px 0 22px; }
.wallet .main-card .btn { background: rgba(255, 255, 255, .15); color: #fff; border-color: rgba(255, 255, 255, .25); }

.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); opacity: 0;
  background: var(--ink); color: var(--bg); padding: 12px 20px; border-radius: 999px; font-weight: 600; font-size: 14px;
  transition: opacity .25s, transform .25s; pointer-events: none; z-index: 100;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.mobile-only { display: none; }
.mobile-bar { display: none; }


@media (max-width: 1080px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .grid-2, .order-grid { grid-template-columns: 1fr; }
  .wallet { grid-template-columns: 1fr 1fr; }
  .wallet .main-card { grid-column: span 2; }
}
@media (max-width: 960px) {
  .hero-grid, .modes { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr 1fr; }
  .span-2, .span-3, .span-4 { grid-column: span 1; }
  .bento .wide { grid-column: span 2; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps-line { display: none; }
  .nav-links { display: none; }
  .auth { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .shell { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .sidebar {
    position: fixed; inset: auto 0 0 0; height: auto; flex-direction: row; padding: 8px 12px; z-index: 60;
    border-right: 0; border-top: 1px solid var(--line);
  }
  .sidebar > .logo, .side-foot { display: none; }
  .side-nav { grid-auto-flow: column; width: 100%; }
  .side-nav a { flex-direction: column; gap: 4px; font-size: 11px; padding: 8px 2px; justify-content: center; }
  .side-nav .count { display: none; }
  .main { padding: 16px 16px 100px; }
  .mobile-only { display: flex; }
  .sidebar { padding-bottom: calc(8px + env(safe-area-inset-bottom)); }
  .mobile-bar {
    display: flex; align-items: center; gap: 8px; position: sticky; top: 0; z-index: 50;
    padding: 10px 16px; background: var(--surface); border-bottom: 1px solid var(--line);
  }
  .mobile-bar .logo { margin-right: auto; font-size: 18px; }
  .mobile-bar .icon-btn { width: 40px; height: 40px; }
  .mobile-bar .logout { color: var(--muted); }
  .mobile-bar .logout:hover { color: var(--rose); }
  .chat { height: calc(100vh - 280px); height: calc(100dvh - 280px); min-height: 360px; }
  .toast { bottom: calc(90px + env(safe-area-inset-bottom)); }
}
@media (max-width: 640px) {
  .container { width: calc(100% - 32px); }
  .hero { padding: 40px 0 72px; }
  .bento, .steps { grid-template-columns: 1fr; }
  .bento .wide { grid-column: span 1; }
  section.block { padding: 64px 0; }
  .cta { padding: 44px 22px; border-radius: 24px; }
  .nav-actions { gap: 6px; }
  .nav-actions .btn-text { padding: 0 8px; }
  .feature-visual .mock-item { grid-template-columns: auto 1fr; row-gap: 8px; }
  .feature-visual .mock-item .badge { grid-column: 2; justify-self: start; }
  .stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat { padding: 16px; } .stat .val { font-size: 22px; }
  .table .hide-sm { display: none; }
  .table .show-sm { display: block; margin-top: 6px; }
  .table th, .table td { padding: 14px 16px; }
  .search .input { width: 100%; }
  .search { width: 100%; }
  .kv { grid-template-columns: 1fr; }
  .wallet { grid-template-columns: 1fr; }
  .wallet .main-card { grid-column: span 1; }
  .mock-toast { right: 8px; }
  .topbar h1 { font-size: 24px; }
  .topbar { flex-wrap: wrap; align-items: flex-start; margin-bottom: 20px; }
  .topbar-actions, .topbar-actions .btn { width: 100%; }
  
  .input, .chat-form .input { font-size: 16px; }
  .reserve-banner { flex-wrap: wrap; padding: 16px; }
  .reserve-banner > div:nth-child(2) { flex: 1 1 calc(100% - 60px); }
  .reserve-banner .btn { width: 100%; }
  .deposit-card { padding: 20px; }
  .deposit-card.done { padding: 36px 20px; }
  .deposit-claim { padding: 16px 20px; }
  .deposit-amount { font-size: 24px; }
  .deposit-address { font-size: 14px; }
  .deposit-claim-form .input { min-width: 0; }
  .deposit-claim-form .btn { width: 100%; }
  .ref-hero { grid-template-columns: 1fr; gap: 18px; padding: 20px; }
  .ref-hero .ref-link .deposit-copy { flex-wrap: wrap; }
  .ref-how { padding: 18px 20px; }
  .deposit-next { gap: 14px; }
  .deposit-next .deposit-ok { width: 44px; height: 44px; }
  .chat-log { padding: 16px; }
  .msg { max-width: 88%; }
  .chat-form { padding: 10px; }
}
