/* ==========================================================================
   ZarinX — Design System (original work)
   Mobile-first · RTL · Dark default with light theme
   ========================================================================== */

/* ---------- Fonts ---------- */
@import url("https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/Vazirmatn-font-face.css");

/* ---------- Tokens ---------- */
:root {
  --brand: #7c5cfc;
  --brand-600: #6a49f0;
  --brand-700: #5738d6;
  --brand-soft: rgba(124, 92, 252, 0.14);
  --blue: #5b8cff;
  --mint: #25e0a8;
  --mint-soft: rgba(37, 224, 168, 0.14);
  --amber: #ffb020;
  --amber-soft: rgba(255, 176, 32, 0.14);
  --danger: #ff5c7a;
  --danger-soft: rgba(255, 92, 122, 0.14);

  --bg: #0a0c14;
  --bg-2: #0e111c;
  --surface: #12141f;
  --surface-2: #191d2b;
  --surface-3: #212637;
  --text: #eaecf5;
  --muted: #8b92a8;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --shadow: 0 18px 50px -20px rgba(0, 0, 0, 0.7);
  --shadow-sm: 0 8px 24px -14px rgba(0, 0, 0, 0.65);

  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 26px;
  --container: 1200px;
  --header-h: 64px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

[data-theme="light"] {
  --bg: #f6f7fb;
  --bg-2: #eef0f7;
  --surface: #ffffff;
  --surface-2: #f4f5fa;
  --surface-3: #eceef6;
  --text: #14182a;
  --muted: #667089;
  --border: rgba(16, 20, 40, 0.09);
  --border-strong: rgba(16, 20, 40, 0.16);
  --brand-soft: rgba(124, 92, 252, 0.12);
  --shadow: 0 18px 50px -24px rgba(30, 35, 70, 0.35);
  --shadow-sm: 0 8px 24px -16px rgba(30, 35, 70, 0.35);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Vazirmatn", "Segoe UI", Tahoma, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  font-size: 15px;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
ul { list-style: none; }

::selection { background: var(--brand); color: #fff; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 99px; border: 2px solid var(--bg); }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 18px;
}

.section { padding-block: 52px; }
.section-head { text-align: center; margin-bottom: 34px; }
.section-head .eyebrow {
  display: inline-block;
  color: var(--brand);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  background: var(--brand-soft);
  padding: 6px 14px;
  border-radius: 99px;
  margin-bottom: 14px;
}
.section-head h2 {
  font-size: clamp(1.5rem, 5vw, 2.1rem);
  line-height: 1.4;
  font-weight: 800;
}
.section-head p { color: var(--muted); margin-top: 10px; max-width: 620px; margin-inline: auto; }

.grid { display: grid; gap: 16px; }

/* ---------- Typography helpers ---------- */
.muted { color: var(--muted); }
.mono { font-variant-numeric: tabular-nums; letter-spacing: 0.01em; }
.up { color: var(--mint); }
.down { color: var(--danger); }
.text-center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.15s var(--ease), background 0.2s, border-color 0.2s, opacity 0.2s;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--blue));
  color: #fff;
  box-shadow: 0 12px 30px -14px var(--brand);
}
.btn-primary:hover { filter: brightness(1.06); }
.btn-ghost {
  background: var(--surface-2);
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--border-strong); background: var(--surface-3); }
.btn-outline {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }
.btn-mint { background: var(--mint); color: #04241a; }
.btn-danger { background: var(--danger-soft); color: var(--danger); }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 14px; font-size: 0.85rem; border-radius: 11px; }
.btn-lg { padding: 15px 30px; font-size: 1.02rem; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* ---------- Chips / badges ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 0.78rem;
  font-weight: 700;
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.chip-mint { background: var(--mint-soft); color: var(--mint); border-color: transparent; }
.chip-danger { background: var(--danger-soft); color: var(--danger); border-color: transparent; }
.chip-amber { background: var(--amber-soft); color: var(--amber); border-color: transparent; }
.chip-brand { background: var(--brand-soft); color: var(--brand); border-color: transparent; }

/* ---------- Card ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.card-2 { background: var(--surface-2); }
.card-pad-lg { padding: 26px; }

/* ==========================================================================
   Header / Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, background 0.25s;
}
.site-header.scrolled { border-bottom-color: var(--border); }
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; }
.brand .logo {
  width: 38px; height: 38px; border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--blue));
  box-shadow: 0 10px 24px -12px var(--brand);
  color: #fff; font-weight: 900; font-size: 1.1rem;
}
.brand small { display: block; font-size: 0.66rem; color: var(--muted); font-weight: 600; letter-spacing: 0.06em; }

.main-nav { display: none; }
.main-nav a {
  padding: 8px 12px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--muted);
  transition: color 0.2s, background 0.2s;
}
.main-nav a:hover, .main-nav a.active { color: var(--text); background: var(--surface-2); }

.header-actions { display: flex; align-items: center; gap: 8px; }
.header-actions .btn { padding: 9px 16px; }
.icon-btn {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
}
.icon-btn:hover { border-color: var(--border-strong); }
.hide-sm { display: none; }

/* Mobile drawer */
.nav-toggle { display: grid; }
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
}
.mobile-drawer .backdrop {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0; transition: opacity 0.25s;
}
.mobile-drawer .panel {
  position: absolute;
  inset-block: 0; inset-inline-start: 0;
  width: min(84vw, 330px);
  background: var(--bg-2);
  border-inline-end: 1px solid var(--border);
  padding: 20px;
  transform: translateX(-100%);
  transition: transform 0.3s var(--ease);
  display: flex; flex-direction: column; gap: 8px;
  overflow-y: auto;
}
html[dir="rtl"] .mobile-drawer .panel { transform: translateX(100%); }
.mobile-drawer.open { pointer-events: auto; }
.mobile-drawer.open .backdrop { opacity: 1; }
.mobile-drawer.open .panel { transform: translateX(0); }
.mobile-drawer .panel a {
  padding: 13px 14px;
  border-radius: 12px;
  font-weight: 600;
  background: var(--surface);
  border: 1px solid var(--border);
}
.mobile-drawer .panel a.active { color: var(--brand); border-color: var(--brand); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; overflow: hidden; padding-block: 40px 30px; }
.hero::before {
  content: "";
  position: absolute;
  inset-inline-end: -160px; top: -140px;
  width: 460px; height: 460px;
  background: radial-gradient(circle, var(--brand-soft), transparent 68%);
  filter: blur(10px);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset-inline-start: -180px; bottom: -180px;
  width: 420px; height: 420px;
  background: radial-gradient(circle, var(--mint-soft), transparent 70%);
  pointer-events: none;
}
.hero-grid { position: relative; z-index: 1; display: grid; gap: 34px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--border);
  padding: 7px 14px; border-radius: 99px;
  font-size: 0.82rem; font-weight: 600; color: var(--muted);
  margin-bottom: 18px;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px var(--mint-soft); }
.hero h1 {
  font-size: clamp(1.9rem, 8vw, 3.3rem);
  line-height: 1.35;
  font-weight: 900;
  letter-spacing: -0.01em;
}
.hero h1 .grad {
  background: linear-gradient(120deg, var(--brand), var(--blue) 60%, var(--mint));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead { color: var(--muted); font-size: clamp(1rem, 3.6vw, 1.12rem); margin-top: 16px; max-width: 540px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 32px; }
.hero-stats .stat b { display: block; font-size: 1.35rem; font-weight: 800; }
.hero-stats .stat span { color: var(--muted); font-size: 0.82rem; }

/* Phone mockup */
.phone-wrap { display: flex; justify-content: center; }
.phone {
  width: min(300px, 78vw);
  border-radius: 40px;
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border-strong);
  padding: 12px;
  box-shadow: var(--shadow);
  position: relative;
}
.phone::before {
  content: "";
  position: absolute; top: 18px; left: 50%; transform: translateX(-50%);
  width: 96px; height: 8px; border-radius: 99px; background: var(--surface-3);
}
.phone-screen {
  border-radius: 30px;
  background: var(--bg-2);
  padding: 30px 16px 16px;
  min-height: 420px;
  display: flex; flex-direction: column; gap: 12px;
}
.mini-balance {
  background: linear-gradient(135deg, var(--brand), var(--blue));
  border-radius: 18px; padding: 16px; color: #fff;
}
.mini-balance span { font-size: 0.75rem; opacity: 0.85; }
.mini-balance b { display: block; font-size: 1.3rem; font-weight: 800; margin-top: 2px; }
.mini-row {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 11px 13px;
}
.mini-row .coin { display: flex; align-items: center; gap: 9px; }
.coin-dot {
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 0.62rem; font-weight: 800; color: #fff;
}
.coin-dot.btc { background: #f7931a; }
.coin-dot.usdt { background: #26a17b; }
.coin-dot.eth { background: #627eea; }
.coin-dot.trx { background: #eb0029; }
.mini-row b { font-size: 0.85rem; }
.mini-row small { color: var(--muted); font-size: 0.72rem; }

/* ==========================================================================
   Ticker / Price table
   ========================================================================== */
.ticker-wrap {
  display: flex; gap: 12px; overflow-x: auto;
  padding-block: 14px;
  scrollbar-width: none;
}
.ticker-wrap::-webkit-scrollbar { display: none; }
.ticker {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 9px 14px; white-space: nowrap;
}
.ticker b { font-size: 0.88rem; }
.ticker .up, .ticker .down { font-size: 0.8rem; font-weight: 700; }

.table-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.table-head-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px; border-bottom: 1px solid var(--border); gap: 12px;
}
.table-head-row h3 { font-size: 1.02rem; font-weight: 800; }

table.market { width: 100%; border-collapse: collapse; }
table.market th {
  text-align: start; font-size: 0.78rem; color: var(--muted);
  font-weight: 600; padding: 12px 16px; border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
table.market td { padding: 14px 16px; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
table.market tr:last-child td { border-bottom: none; }
table.market tbody tr:hover { background: var(--surface-2); }
.coin-cell { display: flex; align-items: center; gap: 11px; }
.coin-cell .name { font-weight: 700; }
.coin-cell .sym { color: var(--muted); font-size: 0.74rem; }
.spark { width: 96px; height: 30px; }
.price-cell { font-weight: 700; }
.actions-cell { display: flex; gap: 8px; }

/* Market cards (mobile) */
.market-cards { display: grid; gap: 12px; }
.market-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 14px;
}
.market-card .top { display: flex; align-items: center; justify-content: space-between; }
.market-card .row { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.market-card .price { font-weight: 800; }
.market-card .spark { width: 90px; height: 28px; }

/* ==========================================================================
   Services / features
   ========================================================================== */
.services-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.service {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px;
  transition: transform 0.2s var(--ease), border-color 0.2s;
}
.service:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.service .ic {
  width: 50px; height: 50px; border-radius: 15px;
  display: grid; place-items: center; font-size: 1.4rem;
  background: var(--brand-soft); margin-bottom: 14px;
}
.service h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: 6px; }
.service p { color: var(--muted); font-size: 0.9rem; }

.feature-list { display: grid; gap: 16px; }
.feature {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px;
}
.feature .ic {
  flex: none; width: 44px; height: 44px; border-radius: 13px;
  display: grid; place-items: center; font-size: 1.2rem;
  background: var(--mint-soft);
}
.feature h3 { font-size: 1rem; font-weight: 800; }
.feature p { color: var(--muted); font-size: 0.88rem; }

/* App banner */
.app-banner {
  background: linear-gradient(135deg, var(--brand), var(--blue) 70%, #3ad1c0);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.app-banner::after {
  content: "";
  position: absolute; inset-inline-end: -60px; top: -60px;
  width: 220px; height: 220px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}
.app-banner h2 { font-size: clamp(1.3rem, 5vw, 1.9rem); font-weight: 900; }
.app-banner p { opacity: 0.9; margin-top: 8px; max-width: 480px; }
.store-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; position: relative; z-index: 1; }
.store-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(0, 0, 0, 0.28); border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 11px 18px; border-radius: 14px; font-weight: 700;
}
.store-btn small { display: block; font-size: 0.66rem; opacity: 0.8; font-weight: 500; }

/* ==========================================================================
   FAQ accordion
   ========================================================================== */
.faq { display: grid; gap: 12px; max-width: 820px; margin-inline: auto; }
.faq-item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); overflow: hidden;
}
.faq-q {
  width: 100%; text-align: start;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 17px 18px; font-weight: 700; font-size: 0.96rem;
}
.faq-q .pm {
  flex: none; width: 26px; height: 26px; border-radius: 8px;
  display: grid; place-items: center; background: var(--brand-soft); color: var(--brand);
  transition: transform 0.25s var(--ease);
}
.faq-item.open .faq-q .pm { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s var(--ease); }
.faq-a p { padding: 0 18px 18px; color: var(--muted); font-size: 0.9rem; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 40px;
  padding-block: 40px 24px;
  background: var(--bg-2);
}
.footer-grid { display: grid; gap: 28px; }
.footer-col h4 { font-size: 0.95rem; font-weight: 800; margin-bottom: 14px; }
.footer-col a, .footer-col li { display: block; color: var(--muted); font-size: 0.88rem; padding-block: 5px; }
.footer-col a:hover { color: var(--brand); }
.footer-bottom {
  margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between;
  color: var(--muted); font-size: 0.82rem;
}
.footer-brand p { color: var(--muted); font-size: 0.88rem; margin-top: 12px; max-width: 320px; }

/* ==========================================================================
   Auth pages
   ========================================================================== */
.auth-wrap {
  min-height: calc(100vh - var(--header-h));
  display: grid; place-items: center;
  padding: 30px 18px 60px;
}
.auth-card {
  width: 100%; max-width: 440px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 30px 24px;
  box-shadow: var(--shadow-sm);
}
.auth-card h1 { font-size: 1.5rem; font-weight: 900; }
.auth-card .sub { color: var(--muted); margin-top: 6px; font-size: 0.92rem; }
.auth-form { margin-top: 24px; display: grid; gap: 16px; }
.field label { display: block; font-size: 0.85rem; font-weight: 700; margin-bottom: 7px; }
.field .control {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 13px; padding: 0 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field .control:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.field .control .prefix { color: var(--muted); font-size: 0.9rem; }
.field input, .field select, .field textarea {
  width: 100%; background: transparent; border: none; outline: none;
  padding: 13px 0; font-size: 0.95rem;
}
.field input::placeholder { color: var(--muted); opacity: 0.7; }
.field .hint { color: var(--muted); font-size: 0.78rem; margin-top: 6px; }
.field .toggle-eye { color: var(--muted); padding: 4px; }
.auth-alt { text-align: center; margin-top: 20px; color: var(--muted); font-size: 0.9rem; }
.auth-alt a { color: var(--brand); font-weight: 700; }
.otp-row { display: flex; gap: 10px; direction: ltr; justify-content: center; }
.otp-row input {
  width: 46px; height: 54px; text-align: center; font-size: 1.3rem; font-weight: 800;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px;
  outline: none;
}
.otp-row input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.steps-mini { display: flex; gap: 6px; margin-bottom: 18px; }
.steps-mini i { flex: 1; height: 4px; border-radius: 99px; background: var(--surface-3); }
.steps-mini i.on { background: var(--brand); }

/* ==========================================================================
   App shell (authenticated pages)
   ========================================================================== */
.app-shell { display: grid; grid-template-columns: 1fr; min-height: calc(100vh - var(--header-h)); }
.app-side {
  display: none;
  background: var(--bg-2);
  border-inline-end: 1px solid var(--border);
  padding: 22px 16px;
}
.app-side .side-group { margin-bottom: 22px; }
.app-side .side-title { font-size: 0.72rem; color: var(--muted); font-weight: 700; margin: 0 10px 8px; letter-spacing: 0.04em; }
.app-side a {
  display: flex; align-items: center; gap: 11px;
  padding: 11px 12px; border-radius: 12px;
  color: var(--muted); font-weight: 600; font-size: 0.92rem;
}
.app-side a:hover { background: var(--surface); color: var(--text); }
.app-side a.active { background: var(--brand-soft); color: var(--brand); }
.app-main { padding: 22px 16px 60px; min-width: 0; }
.page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 22px; }
.page-head h1 { font-size: 1.4rem; font-weight: 900; }
.page-head p { color: var(--muted); font-size: 0.9rem; }

.stat-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
.stat-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px;
}
.stat-card .label { color: var(--muted); font-size: 0.82rem; }
.stat-card .value { font-size: 1.4rem; font-weight: 800; margin-top: 6px; }
.stat-card .delta { font-size: 0.82rem; font-weight: 700; margin-top: 4px; }

/* Mobile bottom nav */
.bottom-nav {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 70;
  display: flex; justify-content: space-around;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--border);
  padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
}
.bottom-nav a {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  font-size: 0.68rem; color: var(--muted); padding: 4px;
}
.bottom-nav a.active { color: var(--brand); }
.bottom-nav a .bi { font-size: 1.15rem; }

/* ==========================================================================
   Tabs
   ========================================================================== */
.tabs { display: flex; gap: 6px; background: var(--surface-2); padding: 5px; border-radius: 14px; border: 1px solid var(--border); }
.tabs button {
  flex: 1; padding: 10px 14px; border-radius: 10px;
  font-weight: 700; font-size: 0.9rem; color: var(--muted);
  transition: background 0.2s, color 0.2s;
}
.tabs button.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ==========================================================================
   Trade layout
   ========================================================================== */
.trade-grid { display: grid; gap: 16px; }
.orderbook { display: grid; gap: 2px; }
.ob-row { display: flex; justify-content: space-between; font-size: 0.82rem; padding: 5px 8px; border-radius: 7px; }
.ob-row.bid { background: linear-gradient(90deg, transparent, var(--mint-soft)); }
.ob-row.ask { background: linear-gradient(90deg, transparent, var(--danger-soft)); }
.ob-head { display: flex; justify-content: space-between; color: var(--muted); font-size: 0.76rem; padding: 0 8px 8px; }

/* ==========================================================================
   KYC steps
   ========================================================================== */
.steps-bar { display: flex; gap: 8px; margin-bottom: 26px; flex-wrap: wrap; }
.step-pill {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 15px; border-radius: 99px;
  background: var(--surface); border: 1px solid var(--border);
  font-size: 0.84rem; font-weight: 700; color: var(--muted);
}
.step-pill .n {
  width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; font-size: 0.74rem;
  background: var(--surface-3);
}
.step-pill.active { border-color: var(--brand); color: var(--brand); }
.step-pill.active .n { background: var(--brand); color: #fff; }
.step-pill.done { color: var(--mint); border-color: transparent; background: var(--mint-soft); }
.step-pill.done .n { background: var(--mint); color: #04241a; }

.upload-box {
  border: 1.5px dashed var(--border-strong); border-radius: var(--radius);
  padding: 26px 18px; text-align: center; background: var(--surface-2);
}
.upload-box .ic { font-size: 1.8rem; }
.upload-box p { color: var(--muted); font-size: 0.86rem; margin-top: 6px; }

/* ==========================================================================
   Utilities & responsive
   ========================================================================== */
.divider { height: 1px; background: var(--border); margin-block: 18px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.stack { display: grid; gap: 12px; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.hide-mobile { display: none; }

@media (min-width: 560px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-stats .stat b { font-size: 1.5rem; }
}

@media (min-width: 860px) {
  body { font-size: 15.5px; }
  .section { padding-block: 74px; }
  .hide-sm { display: grid; }
  .hide-mobile { display: block; }
  .nav-toggle { display: none; }
  .main-nav { display: flex; align-items: center; gap: 2px; }
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .feature-list { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
  .app-shell { grid-template-columns: 250px 1fr; }
  .app-side { display: block; }
  .app-main { padding: 30px 28px 70px; }
  .stat-grid { grid-template-columns: repeat(4, 1fr); }
  .trade-grid { grid-template-columns: 1.5fr 1fr; }
  .bottom-nav { display: none; }
}

@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 50px; }
  .hero { padding-block: 64px 44px; }
  .feature-list { grid-template-columns: repeat(4, 1fr); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
