/* ============================================================
   Easyfy — dark exchange design system
   ============================================================ */

:root {
  --bg: #05070d;
  --bg-2: #090d16;
  --surface: #0e1320;
  --surface-2: #141a2b;
  --surface-3: #1a2236;
  --border: #1f2740;
  --border-soft: #182036;
  --text: #eef2fa;
  --muted: #8b94ab;
  --faint: #5d6680;
  --accent: #19e3b1;
  --accent-dark: #0f8f70;
  --accent-2: #4d7cff;
  --up: #16c784;
  --down: #ea3943;
  --warn: #f0b90b;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 18px 50px rgba(0, 0, 0, .45);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: rgba(25, 227, 177, .28); }

.container { width: min(1240px, 100% - 40px); margin-inline: auto; }
.section { padding: 84px 0; }
.section-tight { padding: 56px 0; }

h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; letter-spacing: -.01em; }
.h-display { font-size: clamp(34px, 5vw, 58px); font-weight: 800; letter-spacing: -.02em; }
.h-section { font-size: clamp(26px, 3.2vw, 38px); font-weight: 800; }
.lead { color: var(--muted); font-size: 17px; max-width: 640px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.eyebrow::before { content: ''; width: 22px; height: 2px; background: var(--accent); border-radius: 2px; }
.grad-text {
  background: linear-gradient(92deg, var(--accent) 10%, #6ee7ff 55%, var(--accent-2) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.up { color: var(--up); }
.down { color: var(--down); }
.mono { font-variant-numeric: tabular-nums; font-feature-settings: 'tnum'; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 10px; border: 1px solid transparent;
  font-weight: 600; font-size: 14.5px; cursor: pointer; transition: .18s ease;
  white-space: nowrap;
}
.btn-primary { background: linear-gradient(135deg, var(--accent), #12b7d8); color: #04121a; }
.btn-primary:hover { filter: brightness(1.1); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(25, 227, 177, .25); }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-soft { background: var(--surface-2); border-color: var(--border); color: var(--text); }
.btn-soft:hover { background: var(--surface-3); }
.btn-danger { background: rgba(234, 57, 67, .12); border-color: rgba(234, 57, 67, .4); color: #ff7a83; }
.btn-danger:hover { background: rgba(234, 57, 67, .22); }
.btn-sm { padding: 8px 14px; font-size: 13px; border-radius: 8px; }
.btn-lg { padding: 15px 30px; font-size: 16px; border-radius: 12px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- ticker ---------- */
.ticker-bar {
  background: var(--bg-2); border-bottom: 1px solid var(--border-soft);
  overflow: hidden; height: 38px; display: flex; align-items: center;
  font-size: 12.5px;
}
.ticker-track { display: flex; gap: 34px; white-space: nowrap; animation: ticker-scroll 55s linear infinite; padding-left: 20px; }
.ticker-bar:hover .ticker-track { animation-play-state: paused; }
.ticker-item { display: inline-flex; gap: 8px; align-items: center; color: var(--muted); }
.ticker-item b { color: var(--text); font-weight: 600; }
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(5, 7, 13, .86); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
}
.header-inner { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.brand img { width: 32px; height: 32px; }
.brand span { color: var(--text); }
.brand em { font-style: normal; color: var(--accent); }
.main-nav { display: flex; gap: 4px; flex: 1; }
.main-nav a {
  padding: 8px 14px; border-radius: 8px; font-size: 14.5px; font-weight: 500; color: var(--muted);
  transition: .15s;
}
.main-nav a:hover { color: var(--text); background: var(--surface-2); }
.main-nav a.active { color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-user { display: flex; align-items: center; gap: 10px; }
.avatar-chip {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent-2), var(--accent)); color: #04121a;
  font-weight: 800; font-size: 14px;
}
.nav-toggle { display: none; background: none; border: 1px solid var(--border); border-radius: 8px; width: 40px; height: 40px; cursor: pointer; }
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--text); margin: 4px auto; border-radius: 2px; }

/* ---------- flashes ---------- */
.flashes { position: fixed; top: 84px; right: 20px; z-index: 100; display: flex; flex-direction: column; gap: 10px; max-width: 380px; }
.flash {
  padding: 13px 18px; border-radius: 10px; font-size: 14px; border: 1px solid var(--border);
  background: var(--surface-2); box-shadow: var(--shadow); animation: flash-in .25s ease;
}
.flash-success { border-color: rgba(22, 199, 132, .5); }
.flash-error { border-color: rgba(234, 57, 67, .55); }
.flash-info { border-color: rgba(77, 124, 255, .5); }
@keyframes flash-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ---------- hero ---------- */
.hero { position: relative; padding: 90px 0 70px; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: -20% -10% auto; height: 720px; pointer-events: none;
  background:
    radial-gradient(560px 340px at 18% 30%, rgba(25, 227, 177, .14), transparent 65%),
    radial-gradient(640px 400px at 82% 18%, rgba(77, 124, 255, .16), transparent 65%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 20px; }
.hero .lead { margin-bottom: 30px; font-size: 18px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 36px; }
.hero-stats { display: flex; gap: 40px; flex-wrap: wrap; }
.hero-stat b { display: block; font-size: 26px; font-weight: 800; }
.hero-stat span { color: var(--muted); font-size: 13px; }
.hero-visual { position: relative; }
.hero-visual img { border-radius: 20px; box-shadow: var(--shadow); border: 1px solid var(--border); }
.hero-badge {
  position: absolute; display: flex; align-items: center; gap: 10px;
  background: rgba(14, 19, 32, .92); border: 1px solid var(--border); border-radius: 12px;
  padding: 10px 16px; font-size: 13px; box-shadow: var(--shadow); backdrop-filter: blur(8px);
}
.hero-badge b { font-size: 15px; }
.hero-badge.b1 { left: -18px; top: 12%; }
.hero-badge.b2 { right: -12px; bottom: 14%; }
.dot-live { width: 8px; height: 8px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 4px rgba(22, 199, 132, .18); }

/* ---------- cards & grids ---------- */
.card { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius); }
.card-pad { padding: 26px; }
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.feature-card { padding: 30px 26px; transition: .2s ease; position: relative; overflow: hidden; }
.feature-card:hover { transform: translateY(-4px); border-color: var(--border); box-shadow: var(--shadow); }
.feature-icon {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(25, 227, 177, .16), rgba(77, 124, 255, .16));
  border: 1px solid var(--border); color: var(--accent); font-size: 22px;
}
.feature-card h3 { font-size: 18px; margin-bottom: 10px; }
.feature-card p { color: var(--muted); font-size: 14px; }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 36px; flex-wrap: wrap; }
.section-head .lead { margin-top: 10px; }

/* ---------- market table ---------- */
.market-table-wrap { overflow-x: auto; border: 1px solid var(--border-soft); border-radius: var(--radius); background: var(--surface); }
table.market-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.market-table th {
  text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .08em;
  color: var(--faint); font-weight: 600; padding: 14px 18px; border-bottom: 1px solid var(--border-soft);
}
.market-table td { padding: 15px 18px; border-bottom: 1px solid var(--border-soft); font-size: 14.5px; }
.market-table tbody tr { transition: .12s; cursor: pointer; }
.market-table tbody tr:hover { background: var(--surface-2); }
.market-table tbody tr:last-child td { border-bottom: none; }
.coin-cell { display: flex; align-items: center; gap: 12px; }
.coin-cell img { width: 30px; height: 30px; }
.coin-cell b { font-size: 15px; }
.coin-cell small { display: block; color: var(--faint); font-size: 12px; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
th.num { text-align: right; }
.spark { width: 110px; height: 34px; }
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600; border: 1px solid var(--border);
}
.badge-up { color: var(--up); border-color: rgba(22, 199, 132, .35); background: rgba(22, 199, 132, .08); }
.badge-down { color: var(--down); border-color: rgba(234, 57, 67, .35); background: rgba(234, 57, 67, .08); }
.badge-warn { color: var(--warn); border-color: rgba(240, 185, 11, .35); background: rgba(240, 185, 11, .08); }
.badge-info { color: #7ea2ff; border-color: rgba(77, 124, 255, .35); background: rgba(77, 124, 255, .08); }
.badge-muted { color: var(--muted); }

/* ---------- markets page ---------- */
.markets-toolbar { display: flex; gap: 14px; align-items: center; margin-bottom: 22px; flex-wrap: wrap; }
.search-box { position: relative; flex: 1; min-width: 220px; max-width: 360px; }
.search-box input {
  width: 100%; background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  padding: 11px 14px 11px 40px; font-size: 14px; outline: none;
}
.search-box input:focus { border-color: var(--accent); }
.search-box svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); opacity: .5; }
.tab-row { display: flex; gap: 8px; flex-wrap: wrap; }
.tab-btn {
  padding: 9px 16px; border-radius: 999px; border: 1px solid var(--border); background: transparent;
  color: var(--muted); font-size: 13.5px; font-weight: 600; cursor: pointer; transition: .15s;
}
.tab-btn.active, .tab-btn:hover { color: var(--accent); border-color: var(--accent); background: rgba(25, 227, 177, .07); }

/* ---------- trade ---------- */
.trade-shell { padding: 22px 0 60px; }
.trade-grid { display: grid; grid-template-columns: 250px 1fr 320px; gap: 16px; align-items: start; }
.trade-panel { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius); overflow: hidden; }
.panel-head { padding: 14px 18px; border-bottom: 1px solid var(--border-soft); font-weight: 700; font-size: 14px; display: flex; justify-content: space-between; align-items: center; }
.pair-list { max-height: 560px; overflow-y: auto; }
.pair-row { display: flex; justify-content: space-between; align-items: center; padding: 11px 16px; cursor: pointer; border-left: 2px solid transparent; }
.pair-row:hover { background: var(--surface-2); }
.pair-row.active { background: var(--surface-2); border-left-color: var(--accent); }
.pair-row small { color: var(--faint); display: block; font-size: 11.5px; }
.pair-row .num { font-size: 13px; }
.pair-search { padding: 12px 14px; border-bottom: 1px solid var(--border-soft); }
.pair-search input { width: 100%; background: var(--bg-2); border: 1px solid var(--border); border-radius: 8px; padding: 8px 12px; font-size: 13px; outline: none; }

.trade-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.pair-header { display: flex; align-items: center; gap: 22px; padding: 16px 20px; flex-wrap: wrap; }
.pair-header .coin-cell img { width: 36px; height: 36px; }
.pair-price { font-size: 26px; font-weight: 800; }
.pair-meta { display: flex; gap: 22px; flex-wrap: wrap; margin-left: auto; }
.pair-meta div { font-size: 12px; color: var(--faint); }
.pair-meta b { display: block; font-size: 13.5px; color: var(--text); font-weight: 600; }
.chart-box { height: 460px; background: var(--bg-2); }
.chart-box iframe { width: 100%; height: 100%; border: 0; }
.trade-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.orderbook { font-size: 12.5px; font-variant-numeric: tabular-nums; }
.ob-head, .ob-row { display: grid; grid-template-columns: 1fr 1fr 1fr; padding: 4px 16px; }
.ob-head { color: var(--faint); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; padding-block: 10px; }
.ob-row { position: relative; cursor: default; }
.ob-row span { position: relative; z-index: 1; }
.ob-row .depth { position: absolute; top: 0; bottom: 0; right: 0; opacity: .12; }
.ob-row.ask .depth { background: var(--down); }
.ob-row.bid .depth { background: var(--up); }
.ob-mid { padding: 10px 16px; font-size: 17px; font-weight: 800; border-block: 1px solid var(--border-soft); display: flex; justify-content: space-between; align-items: center; }
.ob-mid small { font-size: 12px; color: var(--faint); font-weight: 500; }

.trade-side { display: flex; flex-direction: column; gap: 16px; }
.order-tabs { display: grid; grid-template-columns: 1fr 1fr; }
.order-tabs button {
  padding: 13px; background: var(--bg-2); border: none; font-weight: 700; font-size: 14.5px;
  color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent;
}
.order-tabs button.active-buy { color: var(--up); border-bottom-color: var(--up); background: var(--surface); }
.order-tabs button.active-sell { color: var(--down); border-bottom-color: var(--down); background: var(--surface); }
.order-form { padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.type-switch { display: flex; gap: 16px; font-size: 13px; }
.type-switch label { display: flex; gap: 6px; align-items: center; color: var(--muted); cursor: pointer; }
.type-switch input { accent-color: var(--accent); }
.field label { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 6px; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; background: var(--bg-2); border: 1px solid var(--border); border-radius: 9px;
  padding: 11px 13px; font-size: 14px; outline: none; transition: .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); }
.input-affix { position: relative; }
.input-affix .affix { position: absolute; right: 13px; top: 50%; transform: translateY(-50%); color: var(--faint); font-size: 13px; font-weight: 600; }
.input-affix input { padding-right: 64px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-hint { font-size: 12px; color: var(--faint); display: flex; justify-content: space-between; }
.balance-line { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); }
.balance-line b { color: var(--text); }
.order-summary { background: var(--bg-2); border: 1px solid var(--border-soft); border-radius: 9px; padding: 12px 14px; font-size: 12.5px; display: flex; flex-direction: column; gap: 6px; }
.order-summary div { display: flex; justify-content: space-between; color: var(--muted); }
.order-summary b { color: var(--text); }

.mini-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.mini-table th { text-align: left; color: var(--faint); font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; padding: 10px 14px; border-bottom: 1px solid var(--border-soft); }
.mini-table td { padding: 9px 14px; border-bottom: 1px solid var(--border-soft); }
.mini-table tr:last-child td { border-bottom: none; }
.mini-table .num { text-align: right; }
.empty-note { padding: 26px; text-align: center; color: var(--faint); font-size: 13px; }

/* ---------- wallet / account ---------- */
.page-head { padding: 46px 0 26px; }
.page-head h1 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 8px; }
.wallet-grid { display: grid; grid-template-columns: 1fr 360px; gap: 20px; align-items: start; }
.balance-hero { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 28px; flex-wrap: wrap; }
.balance-hero .total b { font-size: 34px; font-weight: 800; display: block; }
.balance-hero .total span { color: var(--muted); font-size: 13px; }
.asset-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr auto; gap: 14px; align-items: center; padding: 15px 22px; border-bottom: 1px solid var(--border-soft); }
.asset-row:last-child { border-bottom: none; }
.asset-row .amt { text-align: right; font-variant-numeric: tabular-nums; }
.asset-row .amt small { display: block; color: var(--faint); font-size: 11.5px; }
.side-stack { display: flex; flex-direction: column; gap: 20px; }
.tabs-line { display: flex; gap: 6px; border-bottom: 1px solid var(--border-soft); padding: 0 18px; }
.tabs-line button { background: none; border: none; padding: 13px 14px; color: var(--muted); font-weight: 600; font-size: 14px; cursor: pointer; border-bottom: 2px solid transparent; }
.tabs-line button.active { color: var(--accent); border-bottom-color: var(--accent); }
.tab-pane { display: none; padding: 20px; }
.tab-pane.active { display: block; }
.status-pill { padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; }
.st-pending { background: rgba(240, 185, 11, .12); color: var(--warn); }
.st-approved, .st-paid, .st-verified, .st-active { background: rgba(22, 199, 132, .12); color: var(--up); }
.st-rejected, .st-frozen { background: rgba(234, 57, 67, .12); color: var(--down); }
.st-open { background: rgba(77, 124, 255, .12); color: #7ea2ff; }
.st-canceled, .st-none { background: rgba(139, 148, 171, .12); color: var(--muted); }

/* ---------- auth ---------- */
.auth-wrap { min-height: calc(100vh - 68px); display: grid; grid-template-columns: 1fr 1fr; }
.auth-panel { display: flex; align-items: center; justify-content: center; padding: 60px 24px; }
.auth-card { width: min(440px, 100%); }
.auth-card h1 { font-size: 28px; margin-bottom: 8px; }
.auth-card .lead { margin-bottom: 28px; font-size: 15px; }
.auth-card form { display: flex; flex-direction: column; gap: 16px; }
.auth-aside {
  position: relative; display: flex; flex-direction: column; justify-content: center; padding: 60px;
  background: linear-gradient(160deg, #0a1220, #05070d); border-left: 1px solid var(--border-soft); overflow: hidden;
}
.auth-aside::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(480px 320px at 70% 20%, rgba(25, 227, 177, .12), transparent 60%),
              radial-gradient(520px 380px at 20% 85%, rgba(77, 124, 255, .14), transparent 60%);
}
.auth-aside > * { position: relative; }
.auth-aside h2 { font-size: 30px; margin-bottom: 16px; }
.auth-points { display: flex; flex-direction: column; gap: 16px; margin-top: 28px; }
.auth-points li { display: flex; gap: 12px; color: var(--muted); font-size: 14.5px; }
.auth-points li::before { content: '✓'; color: var(--accent); font-weight: 800; }
.checkbox-line { display: flex; gap: 10px; font-size: 13px; color: var(--muted); align-items: flex-start; }
.checkbox-line input { margin-top: 3px; accent-color: var(--accent); }
.auth-alt { text-align: center; font-size: 14px; color: var(--muted); margin-top: 20px; }
.auth-alt a { color: var(--accent); font-weight: 600; }

/* ---------- earn ---------- */
.product-card { padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.product-apy { font-size: 34px; font-weight: 800; color: var(--accent); }
.product-apy small { font-size: 13px; color: var(--muted); font-weight: 600; }
.product-meta { display: flex; gap: 18px; font-size: 12.5px; color: var(--muted); flex-wrap: wrap; }

/* ---------- content pages ---------- */
.prose { max-width: 820px; }
.prose h2 { font-size: 22px; margin: 34px 0 12px; }
.prose h3 { font-size: 17px; margin: 24px 0 10px; }
.prose p, .prose li { color: var(--muted); font-size: 15px; margin-bottom: 12px; }
.prose ul { list-style: disc; padding-left: 22px; }
.prose a { color: var(--accent); }
.prose .card { margin: 20px 0; }
.faq-item { border: 1px solid var(--border-soft); border-radius: var(--radius-sm); margin-bottom: 12px; background: var(--surface); }
.faq-item summary { cursor: pointer; padding: 18px 22px; font-weight: 600; font-size: 15px; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::after { content: '+'; color: var(--accent); font-size: 20px; font-weight: 400; }
.faq-item[open] summary::after { content: '−'; }
.faq-item .faq-body { padding: 0 22px 18px; color: var(--muted); font-size: 14.5px; }
.ann-card { display: block; padding: 24px 26px; transition: .15s; }
.ann-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.ann-card h3 { font-size: 17px; margin: 8px 0; }
.ann-meta { display: flex; gap: 12px; align-items: center; font-size: 12.5px; color: var(--faint); }

/* ---------- banners / app ---------- */
.banner { position: relative; border-radius: 20px; overflow: hidden; border: 1px solid var(--border); }
.banner img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.banner-content { position: relative; padding: 54px 48px; max-width: 560px; }
.banner-content h2 { font-size: 30px; margin-bottom: 12px; }
.banner-content p { color: #c4cbdc; margin-bottom: 24px; }
.app-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.store-badges { display: flex; gap: 12px; flex-wrap: wrap; }
.store-badge {
  display: flex; align-items: center; gap: 10px; background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 12px; padding: 10px 18px; font-size: 13px;
}
.store-badge b { display: block; font-size: 15px; }
.stats-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stats-band b { font-size: 32px; font-weight: 800; display: block; }
.stats-band span { color: var(--muted); font-size: 13.5px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--border-soft); background: var(--bg-2); padding: 60px 0 30px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
.footer-grid h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--faint); margin-bottom: 16px; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: var(--muted); font-size: 14px; }
.footer-grid a:hover { color: var(--accent); }
.footer-brand p { color: var(--muted); font-size: 13.5px; margin: 14px 0; max-width: 320px; }
.footer-legal { border-top: 1px solid var(--border-soft); padding-top: 24px; color: var(--faint); font-size: 12.5px; display: flex; flex-direction: column; gap: 10px; }
.footer-legal .row { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

/* ---------- misc ---------- */
.pagination { display: flex; gap: 8px; justify-content: center; padding: 20px; }
.pagination a, .pagination span { padding: 8px 14px; border-radius: 8px; border: 1px solid var(--border); font-size: 13px; color: var(--muted); }
.pagination .current { background: var(--accent); color: #04121a; border-color: var(--accent); font-weight: 700; }
.divider { height: 1px; background: var(--border-soft); margin: 26px 0; }
.notice { border: 1px solid rgba(240, 185, 11, .35); background: rgba(240, 185, 11, .07); border-radius: 10px; padding: 14px 18px; font-size: 13.5px; color: #e8cf8a; }
.notice a { color: var(--warn); font-weight: 600; }
.kyc-status-card { display: flex; gap: 18px; align-items: center; padding: 24px; }
.kyc-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 24px; background: var(--surface-2); border: 1px solid var(--border); }
.upload-zone { border: 1.5px dashed var(--border); border-radius: 10px; padding: 18px; text-align: center; color: var(--muted); font-size: 13px; cursor: pointer; transition: .15s; }
.upload-zone:hover { border-color: var(--accent); color: var(--accent); }
.upload-zone input { display: none; }
.upload-zone.has-file { border-color: var(--up); color: var(--up); }
.error-hero { text-align: center; padding: 120px 0; }
.error-hero h1 { font-size: 90px; font-weight: 800; }
.steps { counter-reset: step; display: grid; gap: 18px; }
.step { display: flex; gap: 18px; align-items: flex-start; }
.step::before {
  counter-increment: step; content: counter(step);
  width: 38px; height: 38px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #04121a; font-weight: 800;
}
.step h3 { font-size: 16px; margin-bottom: 4px; }
.step p { color: var(--muted); font-size: 14px; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .trade-grid { grid-template-columns: 1fr 320px; }
  .trade-pairs { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 640px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .wallet-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .main-nav {
    position: fixed; inset: 68px 0 auto; background: var(--bg-2); border-bottom: 1px solid var(--border);
    flex-direction: column; padding: 16px 20px; display: none; z-index: 59;
  }
  .main-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .header-actions .btn-ghost { display: none; }
  .trade-grid { grid-template-columns: 1fr; }
  .trade-bottom { grid-template-columns: 1fr; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .grid-3 { grid-template-columns: 1fr; }
  .app-grid { grid-template-columns: 1fr; }
  .stats-band { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 60px 0; }
  .hero { padding: 56px 0; }
  .hero-badge.b1 { left: 6px; }
  .hero-badge.b2 { right: 6px; }
  .banner-content { padding: 36px 26px; }
  .asset-row { grid-template-columns: 1.2fr 1fr auto; }
  .asset-row .usd-col { display: none; }
}
@media (max-width: 560px) {
  .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; }
  .pair-meta { margin-left: 0; }
  .flashes { left: 16px; right: 16px; max-width: none; }
}
