@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #0a0b0f;
  --bg-elevated: #111318;
  --surface: #16181f;
  --surface-hover: #1c1f28;
  --border: rgba(255,255,255,.08);
  --border-strong: rgba(255,255,255,.14);
  --text: #eef0f6;
  --muted: #8b93a7;
  --white: #fff;
  --cb-blue: #0052ff;
  --cb-blue-hover: #0040cc;
  --cb-blue-glow: rgba(0,82,255,.45);
  --accent: #0052ff;
  --accent-2: #7936f0;
  --cyan: #22d3ee;
  --green: #16c784;
  --red: #ea3943;
  --gradient: linear-gradient(135deg, #0052ff 0%, #0052ff 45%, #7936f0 100%);
  --gradient-blue: linear-gradient(135deg, #0052ff, #3385ff);
  --gradient-soft: linear-gradient(135deg, rgba(0,82,255,.18), rgba(121,54,240,.1));
  --shadow: 0 32px 80px rgba(0,0,0,.5);
  --shadow-blue: 0 20px 60px rgba(0,82,255,.25);
  --nav-h: 72px;
  --radius: 16px;
  --radius-lg: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: '';
  position: fixed; inset: 0; pointer-events: none; z-index: -1;
  background:
    radial-gradient(ellipse 70% 45% at 15% -5%, rgba(0,82,255,.22), transparent),
    radial-gradient(ellipse 50% 35% at 85% 5%, rgba(121,54,240,.12), transparent);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.container { width: min(1200px, calc(100% - 2rem)); margin: 0 auto; }
.page-main { padding-top: 2rem; padding-bottom: 4rem; min-height: 50vh; }

/* Typography */
h1,h2,h3,h4 { margin: 0; color: var(--white); line-height: 1.15; }
.text-gradient {
  background: var(--gradient);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.text-gradient-blue {
  background: var(--gradient-blue);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.eyebrow-blue {
  background: rgba(0,82,255,.14); border-color: rgba(0,82,255,.35); color: #93b4ff;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .45rem .9rem; border-radius: 999px;
  background: rgba(124,108,255,.12); border: 1px solid rgba(124,108,255,.25);
  color: #c4b5fd; font-size: .8125rem; font-weight: 600;
}
.section-head { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.section-head p { color: var(--muted); margin: .75rem 0 0; font-size: 1.05rem; }
.section-title { font-size: clamp(1.75rem, 4vw, 2.75rem); font-weight: 800; }
.section { padding: 5rem 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .9rem 1.35rem; border-radius: 12px; font-weight: 700; font-size: .9375rem;
  border: none; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--white); color: #0a0a0f; box-shadow: 0 8px 24px rgba(255,255,255,.12); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border-strong); }
.btn-ghost:hover { background: var(--surface-hover); border-color: rgba(255,255,255,.2); }
.btn-indigo { background: var(--gradient); color: #fff; box-shadow: var(--shadow-blue); }
.btn-blue { background: var(--cb-blue); color: #fff; box-shadow: var(--shadow-blue); }
.btn-blue:hover { background: var(--cb-blue-hover); }
.btn-white { background: #fff; color: #0a0b0f; box-shadow: 0 12px 32px rgba(255,255,255,.15); }
.btn-google {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  background: #fff !important;
  color: #1f1f1f !important;
  border: 1px solid rgba(255,255,255,.18) !important;
  font-weight: 600;
  white-space: nowrap;
}
.btn-google:hover {
  background: #f8f9fa !important;
  border-color: rgba(255,255,255,.28) !important;
  box-shadow: 0 4px 14px rgba(0,0,0,.22);
}
.btn-google.w-full { width: 100%; }
.google-g-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: block;
}
.link-arrow { display: inline-flex; align-items: center; gap: .35rem; color: var(--cb-blue); font-weight: 700; font-size: .9375rem; }
.link-arrow:hover { text-decoration: underline; }
.btn-lg { padding: 1rem 1.75rem; font-size: 1rem; }
.btn-sm { padding: .55rem 1rem; font-size: .8125rem; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

/* Clean button variants — single-line labels + icon */
.btn-with-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  white-space: nowrap;
  line-height: 1.2;
}
.btn-with-icon .icon { flex-shrink: 0; margin: 0; }
.btn-outline {
  background: rgba(255,255,255,.05);
  color: var(--white);
  border: 1px solid rgba(255,255,255,.14);
}
.btn-outline:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(0,82,255,.45);
  color: var(--white);
}
.section-cta {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}
.section-cta .btn { min-width: 220px; max-width: 100%; }

/* Forms */
.nx-input, input.nx-input, select.nx-input, textarea.nx-input {
  width: 100%; padding: .85rem 1rem; border-radius: 12px;
  background: var(--bg-elevated); border: 1px solid var(--border-strong);
  color: var(--white); font-size: 16px; transition: border-color .15s;
}
.nx-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(124,108,255,.15); }
label.field-label { display: block; font-size: .8125rem; font-weight: 600; color: var(--muted); margin-bottom: .45rem; }

/* Cards */
.card {
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  backdrop-filter: blur(8px);
}
.card-hover:hover { border-color: rgba(0,82,255,.4); transform: translateY(-2px); transition: .2s; box-shadow: var(--shadow-blue); }

/* Navbar */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(6,6,11,.72);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}
.nav-row {
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand-link { display: inline-flex; align-items: center; gap: .65rem; flex-shrink: 0; }
.brand-icon { width: 40px; height: 40px; border-radius: 11px; box-shadow: 0 8px 20px var(--cb-blue-glow); }
.brand-text { font-size: 1.15rem; font-weight: 800; letter-spacing: -.02em; color: var(--white); }

.nav-center { display: none; align-items: center; gap: .25rem; }
.nav-center a {
  padding: .55rem .9rem; border-radius: 10px; color: var(--muted);
  font-size: .9rem; font-weight: 600; transition: .15s;
}
.nav-center a:hover, .nav-center a.active { color: var(--white); background: rgba(255,255,255,.06); }

.nav-actions { display: flex; align-items: center; gap: .5rem; }
.menu-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 0;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; cursor: pointer;
}
.menu-btn span {
  display: block; width: 18px; height: 2px; flex-shrink: 0;
  background: var(--white); margin: 0; border-radius: 2px; transition: transform .2s, opacity .2s;
}
.menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-drawer {
  position: fixed; inset: 0; z-index: 99; pointer-events: none; opacity: 0; transition: .25s;
}
.mobile-drawer.open { pointer-events: auto; opacity: 1; }
.mobile-drawer-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.65); }
.mobile-drawer-panel {
  position: absolute; top: 0; right: 0; width: min(320px, 88vw); height: 100%;
  background: var(--bg-elevated); border-left: 1px solid var(--border);
  padding: calc(var(--nav-h) + 1rem) 1.25rem 2rem; transform: translateX(100%); transition: .25s;
  display: flex; flex-direction: column; gap: .35rem;
}
.mobile-drawer.open .mobile-drawer-panel { transform: translateX(0); }
.mobile-drawer-panel a {
  padding: .9rem 1rem; border-radius: 12px; color: var(--text); font-weight: 600;
  border: 1px solid transparent;
}
.mobile-drawer-panel a:hover { background: var(--surface); border-color: var(--border); }
.mobile-drawer-actions { margin-top: auto; display: flex; flex-direction: column; gap: .65rem; padding-top: 1rem; border-top: 1px solid var(--border); }

@media (min-width: 960px) {
  .nav-center { display: flex; }
  .menu-btn { display: none; }
}

/* Ticker */
.ticker-bar {
  margin-top: var(--nav-h);
  border-bottom: 1px solid var(--border);
  background: rgba(12,12,20,.8);
  overflow: hidden;
}
.ticker-track {
  display: flex; gap: 2.5rem; width: max-content;
  animation: ticker 40s linear infinite; padding: .7rem 0;
}
.ticker-item {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .8125rem; color: var(--muted); white-space: nowrap;
}
.ticker-item img { width: 20px; height: 20px; border-radius: 50%; }
.ticker-item strong { color: var(--white); }
.ticker-item .up { color: var(--green); }
.ticker-item .down { color: var(--red); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* Hero */
.hero-section { padding: 4rem 0 5rem; position: relative; overflow: hidden; }
.hero-grid {
  display: grid; gap: 3rem; align-items: center;
}
.hero-copy h1 {
  font-size: clamp(2.25rem, 5.5vw, 4rem); font-weight: 800;
  letter-spacing: -.03em; margin: 1.25rem 0;
}
.hero-copy .lead { font-size: 1.125rem; color: var(--muted); max-width: 34rem; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 2rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 1.25rem; color: var(--muted); font-size: .875rem; }
.hero-trust span { display: inline-flex; align-items: center; gap: .4rem; }

.hero-visual { position: relative; min-height: 420px; }
.hero-card-main {
  position: relative; z-index: 2;
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow);
  background: var(--surface);
}
.hero-card-main img.hero-banner { width: 100%; height: 220px; object-fit: cover; }
.hero-card-body { padding: 1.25rem; }
.hero-float {
  position: absolute; z-index: 3;
  display: flex; align-items: center; gap: .65rem;
  padding: .75rem 1rem; border-radius: 14px;
  background: rgba(12,12,20,.92); border: 1px solid var(--border-strong);
  backdrop-filter: blur(12px); box-shadow: 0 12px 40px rgba(0,0,0,.35);
  animation: float 6s ease-in-out infinite;
}
.hero-float img { width: 36px; height: 36px; border-radius: 50%; }
.hero-float-1 { top: 8%; right: -4%; animation-delay: 0s; }
.hero-float-2 { bottom: 18%; left: -6%; animation-delay: 1.5s; }
.hero-float-3 { top: 42%; right: -8%; animation-delay: 3s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

@media (min-width: 992px) { .hero-grid { grid-template-columns: 1.05fr .95fr; } }

/* Grids */
.grid-2 { display: grid; gap: 1.25rem; }
.grid-3 { display: grid; gap: 1.25rem; }
.grid-4 { display: grid; gap: 1rem; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 768px) { .grid-3 { grid-template-columns: repeat(3,1fr); } .grid-4 { grid-template-columns: repeat(4,1fr); } }

.stat-card { text-align: center; padding: 1.75rem 1rem; }
.stat-card .num { font-size: 2rem; font-weight: 800; color: var(--white); margin: .35rem 0; }
.stat-card .label { color: var(--muted); font-size: .875rem; }

.feature-card { padding: 1.75rem; height: 100%; }
.feature-card .icon-box { margin-bottom: 1rem; }
.feature-icon-wrap {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: var(--gradient-soft); font-size: 1.4rem; margin-bottom: 1rem;
}
.feature-card h3 { font-size: 1.125rem; margin-bottom: .5rem; }
.feature-card p { color: var(--muted); font-size: .9375rem; margin: 0; }

.step-card { position: relative; padding-top: 2.5rem; }
.step-num {
  position: absolute; top: 1rem; left: 1rem;
  width: 32px; height: 32px; border-radius: 10px;
  background: var(--gradient); color: #fff; font-weight: 800; font-size: .875rem;
  display: flex; align-items: center; justify-content: center;
}

/* Market cards */
.market-card {
  display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.25rem;
}
.market-card img { width: 44px; height: 44px; border-radius: 50%; }
.market-card .meta { flex: 1; }
.market-card .name { font-weight: 700; color: var(--white); }
.market-card .sym { font-size: .8125rem; color: var(--muted); }
.market-card .price { text-align: right; font-weight: 700; color: var(--white); }

/* Testimonials */
.testimonial-card { display: flex; flex-direction: column; gap: 1rem; }
.testimonial-card .avatar { width: 48px; height: 48px; border-radius: 50%; border: 2px solid rgba(124,108,255,.4); }
.testimonial-card blockquote { margin: 0; color: var(--muted); font-size: .9375rem; }
.testimonial-card cite { font-style: normal; font-weight: 700; color: var(--white); }

/* Payments strip — white tiles like Stripe / Coinbase checkout */
.pay-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .75rem;
  max-width: 720px;
  margin: 0 auto;
}
@media (min-width: 640px) {
  .pay-strip { grid-template-columns: repeat(3, 1fr); max-width: 900px; }
}
.pay-strip-lg { max-width: 960px; }
.pay-strip-lg .pay-brand { min-height: 56px; }

.pay-brand {
  display: flex; align-items: center; justify-content: center;
  min-height: 52px; padding: .75rem 1rem;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 4px 16px rgba(0,0,0,.25);
  transition: transform .15s, box-shadow .15s;
}
.pay-brand:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
}
.pay-brand-img {
  display: block;
  height: 24px;
  width: auto;
  max-width: 96px;
  object-fit: contain;
}
.pay-brand-img-wide { height: 22px; max-width: 88px; }
.pay-brand-text { font-size: .8125rem; font-weight: 600; color: var(--muted); }

.pay-mark-img { height: 1.25rem; width: auto; max-width: 100%; object-fit: contain; }
.pay-chip .pay-mark-img { filter: brightness(0) invert(1); }
.wallet-panel-dark .pay-mark-img { filter: brightness(0) invert(1); }
.wallet-panel-light .pay-mark-img { filter: none; }
.pay-mark { height: 1.25rem; width: auto; }
.pay-mark-sm { height: 1rem; max-width: 72px; }
.pay-mark-lg { height: 1.75rem; max-width: 120px; }
.pay-pill {
  padding: .65rem 1.1rem; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--border);
  font-size: .8125rem; font-weight: 600; color: var(--muted);
}

/* CTA band */
.cta-band {
  border-radius: var(--radius-lg); padding: 3rem 2rem; text-align: center;
  background: var(--gradient-soft);
  border: 1px solid rgba(124,108,255,.25);
  position: relative; overflow: hidden;
}
.cta-band::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(124,108,255,.2), transparent 60%);
  pointer-events: none;
}
.cta-band > * { position: relative; }

/* FAQ */
.faq-item { padding: 1.25rem 1.5rem; }
.faq-q {
  width: 100%; text-align: left; background: none; border: none;
  color: var(--white); font-weight: 700; font-size: 1rem; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq-q::after { content: '+'; color: var(--accent); font-size: 1.25rem; }
.faq-item.open .faq-q::after { content: '−'; }
.faq-a { display: none; padding-top: .75rem; color: var(--muted); font-size: .9375rem; }
.faq-item.open .faq-a { display: block; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
  padding: 4rem 0 2rem; margin-top: 2rem;
}
.footer-grid { display: grid; gap: 2rem; }
.footer-col h4 { font-size: .875rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 1rem; }
.footer-col a { display: block; color: var(--muted); font-size: .9375rem; margin-bottom: .55rem; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  color: var(--muted); font-size: .8125rem;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr repeat(3, 1fr); } }

/* Auth pages — single-screen compact layout */
body.auth-page {
  overflow-x: hidden;
  min-height: 100dvh;
}
.auth-shell {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(.75rem, env(safe-area-inset-top)) max(.75rem, env(safe-area-inset-right)) max(.75rem, env(safe-area-inset-bottom)) max(.75rem, env(safe-area-inset-left));
  background:
    linear-gradient(180deg, rgba(10,11,15,.9), rgba(10,11,15,.97)),
    url('/assets/images/sections/auth-cover.jpg') center/cover no-repeat fixed;
}
.auth-panel {
  width: 100%;
  max-width: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.auth-card {
  width: 100%;
  padding: 1.15rem 1.15rem 1rem;
  border-color: rgba(255,255,255,.1);
  box-shadow: var(--shadow);
}
.auth-head {
  text-align: center;
  margin-bottom: .85rem;
}
.auth-head h1 {
  font-size: 1.35rem;
  font-weight: 800;
  margin: .35rem 0 .15rem;
}
.auth-head p { margin: 0; font-size: .8125rem; }
.auth-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  margin: 0 auto;
  box-shadow: var(--shadow-blue);
}
.auth-form {
  display: flex;
  flex-direction: column;
  gap: .55rem;
}
.auth-form .field-label {
  margin-bottom: .2rem;
  font-size: .75rem;
}
.auth-page .auth-form .nx-input {
  padding: .6rem .8rem;
  font-size: 16px;
}
.auth-page .btn {
  padding: .65rem 1rem;
  min-height: 42px;
  font-size: .9375rem;
}
.auth-page .btn-google { min-height: 42px; }
.auth-divider {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin: .55rem 0;
  color: var(--muted);
  font-size: .6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.auth-forgot {
  margin: .35rem 0 0;
}
.auth-foot {
  text-align: center;
  margin: .65rem 0 0;
  font-size: .8125rem;
}
.auth-page .alert-error {
  padding: .5rem .65rem;
  font-size: .8125rem;
  margin: 0;
}

.pwd-field { position: relative; }
.pwd-field .nx-input { padding-right: 4.25rem; }
.pwd-toggle {
  position: absolute; right: .55rem; bottom: .55rem;
  background: none; border: none; color: var(--cb-blue);
  font-size: .75rem; font-weight: 600; cursor: pointer; padding: .2rem .3rem;
}
.otp-input { letter-spacing: .35em; text-align: center; font-size: 1.25rem; font-weight: 700; }

@media (min-width: 768px) {
  .auth-card { padding: 1.35rem 1.5rem 1.15rem; }
  .auth-head h1 { font-size: 1.5rem; }
}

/* Page hero (inner pages) */
.page-hero {
  padding: 3rem 0 2.5rem; margin-bottom: 2rem; margin-top: var(--nav-h);
  border-bottom: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(0,82,255,.12), transparent),
    url('/assets/images/sections/page-banner.jpg') center/cover no-repeat;
  position: relative;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,11,15,.88), rgba(10,11,15,.95));
}
.page-hero .container, .page-hero h1, .page-hero p { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); margin-bottom: .5rem; }
.page-hero p { color: var(--muted); margin: 0; max-width: 36rem; font-size: 1.05rem; }

/* Account & admin (keep working) */
.account-layout { display: grid; gap: 1.5rem; padding-top: calc(var(--nav-h) + 1.5rem); min-height: 100vh; padding-bottom: 3rem; }
.sidebar { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; height: fit-content; }
.sidebar a { display: block; padding: .7rem .85rem; border-radius: 10px; color: var(--muted); font-size: .875rem; font-weight: 600; margin-bottom: .2rem; }
.sidebar a.active, .sidebar a:hover { background: rgba(124,108,255,.12); color: #c4b5fd; }

.admin-layout { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.admin-sidebar { background: var(--bg-elevated); border-right: 1px solid var(--border); padding: 1.25rem; }
.admin-sidebar a { display: block; padding: .7rem .85rem; border-radius: 10px; color: var(--muted); font-size: .875rem; font-weight: 600; margin-bottom: .2rem; }
.admin-sidebar a.active { background: rgba(124,108,255,.12); color: #c4b5fd; }
.admin-main { padding: 1.5rem; }

.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.75); backdrop-filter: blur(6px);
  display: none; align-items: center; justify-content: center; z-index: 200; padding: 1rem;
}
.modal-overlay.open { display: flex; }
.modal { background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius); padding: 1.5rem; width: 100%; max-width: 28rem; max-height: 90vh; overflow-y: auto; }
.modal-lg { max-width: 32rem; }
.modal-sm { max-width: 24rem; }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.modal-close { background: none; border: none; color: var(--muted); font-size: 1.25rem; cursor: pointer; }

.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; font-size: .875rem; }
th, td { padding: .85rem 1rem; border-bottom: 1px solid var(--border); text-align: left; }
th { color: var(--muted); font-weight: 600; background: var(--bg-elevated); }

.badge { display: inline-block; padding: .2rem .55rem; border-radius: 999px; font-size: .75rem; font-weight: 600; }
.badge-pending { background: rgba(251,191,36,.15); color: #fcd34d; }
.badge-approved { background: rgba(52,211,153,.15); color: #6ee7b7; }
.badge-rejected { background: rgba(248,113,113,.15); color: #fca5a5; }

.alert-error { background: rgba(239,68,68,.1); border: 1px solid rgba(239,68,68,.25); color: #fca5a5; padding: .75rem; border-radius: 10px; font-size: .875rem; }
.alert-success { background: rgba(34,197,94,.1); border: 1px solid rgba(34,197,94,.25); color: #86efac; padding: .75rem; border-radius: 10px; font-size: .875rem; }

.spinner { width: 2rem; height: 2rem; border: 3px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.kyc-gate { min-height: 50vh; display: flex; align-items: center; justify-content: center; }

/* Trade modals — trustworthy card payment */
.pay-modal { max-width: min(26rem, calc(100vw - 1.5rem)); }
.pay-order-summary {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem;
  padding: .85rem 1rem; margin-bottom: 1rem; border-radius: 12px;
  background: rgba(0,82,255,.08); border: 1px solid rgba(0,82,255,.2);
}
.pay-order-amount { display: block; font-size: 1.25rem; font-weight: 800; color: var(--white); }
.pay-card-preview {
  position: relative; padding: 1.15rem 1.25rem; margin-bottom: 1rem; border-radius: 16px;
  background: linear-gradient(135deg, #1a1f35 0%, #0d1020 50%, #1a1240 100%);
  border: 1px solid rgba(99,102,241,.35);
  box-shadow: 0 12px 32px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.06);
  min-height: 148px; display: flex; flex-direction: column; justify-content: space-between;
}
.pay-card-preview-top { display: flex; justify-content: space-between; align-items: flex-start; }
.pay-card-chip {
  width: 36px; height: 26px; border-radius: 5px;
  background: linear-gradient(135deg, #fcd34d, #d97706);
  opacity: .9;
}
.pay-card-brand { font-size: .6875rem; font-weight: 800; letter-spacing: .08em; padding: .2rem .45rem; border-radius: 6px; background: rgba(255,255,255,.12); color: #fff; }
.pay-card-brand-visa { color: #93c5fd; }
.pay-card-brand-mc { color: #fca5a5; }
.pay-card-brand-amex { color: #86efac; }
.pay-card-preview-num { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: clamp(.9375rem, 3.5vw, 1.125rem); font-weight: 700; letter-spacing: .12em; color: #e2e8f0; margin: .75rem 0 0; word-break: break-all; }
.pay-card-preview-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: .75rem; margin-top: .65rem; }
.pay-card-preview-name { font-size: .6875rem; font-weight: 700; letter-spacing: .06em; color: rgba(255,255,255,.75); text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 65%; }
.pay-card-preview-exp { font-size: .6875rem; font-weight: 700; color: rgba(255,255,255,.65); font-family: ui-monospace, monospace; }
.pay-trust-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-bottom: 1rem; }
.pay-trust-pci { font-size: .6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: .35rem .55rem; border-radius: 8px; border: 1px solid var(--border); }
.pay-card-form { display: flex; flex-direction: column; gap: .85rem; }
.pay-field { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.pay-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.pay-input { min-height: 48px; font-size: 1rem; }
.pay-card-note { display: flex; align-items: flex-start; gap: .4rem; font-size: .75rem; color: var(--muted); margin: 0; line-height: 1.45; }
.pay-card-note .icon { flex-shrink: 0; margin-top: .1rem; color: var(--green); }
.pay-submit-btn { min-height: 48px; font-weight: 700; }
.pay-card-brands { display: flex; justify-content: center; gap: 1rem; margin-top: 1rem; padding-top: .85rem; border-top: 1px solid var(--border); }
.pay-card-brands span { font-size: .625rem; font-weight: 800; letter-spacing: .06em; color: var(--muted); opacity: .65; }

/* Trade modals extras */
.quick-amounts { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { padding: .5rem 1rem; border-radius: 999px; border: 1px solid var(--border); background: var(--bg-elevated); color: var(--muted); cursor: pointer; font-weight: 600; font-size: .8125rem; }
.chip.active { border-color: var(--cb-blue); color: #fff; background: rgba(0,82,255,.18); }
.pay-methods { display: flex; flex-wrap: wrap; gap: .5rem; }
.pay-chip { min-height: 44px; padding: .5rem 1rem; border-radius: 12px; border: 1px solid var(--border); background: var(--bg-elevated); color: var(--white); cursor: pointer; display: inline-flex; align-items: center; }
.pay-chip.active { border-color: var(--cb-blue); background: rgba(0,82,255,.12); }
.pay-mark { height: 1.25rem; width: auto; }
.pay-mark-sm { height: 1rem; }
.pay-mark-lg { height: 2rem; }
.declined-banner { background: rgba(239,68,68,.12); border: 1px solid rgba(239,68,68,.35); color: #fca5a5; padding: .75rem 1rem; border-radius: 12px; margin-bottom: 1rem; font-size: .875rem; }
.preview-box { padding: 1rem; border-radius: 12px; background: var(--bg-elevated); border: 1px solid var(--border); }
.secure-badge { display: inline-flex; align-items: center; gap: .5rem; padding: .625rem .875rem; border-radius: 12px; background: rgba(34,197,94,.1); border: 1px solid rgba(34,197,94,.25); color: #86efac; font-size: .875rem; }
.wallet-panel { border-radius: 16px; padding: 2rem; display: flex; flex-direction: column; align-items: center; text-align: center; }
.wallet-panel-dark { background: #000; color: #fff; }
.wallet-panel-light { background: #fff; color: #111; }

.dash-header { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.token-grid { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.token-card { display: flex; align-items: center; gap: .75rem; padding: 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.token-icon { width: 2.5rem; height: 2.5rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; background: var(--gradient-soft); }
.token-price { margin-left: auto; font-weight: 700; color: var(--white); }
.action-card { display: block; text-align: center; padding: 1.25rem; transition: .2s; }
.action-card:hover { border-color: rgba(124,108,255,.4); }
.market-asset { display: flex; align-items: center; gap: .75rem; }
.coin-icon { border-radius: 50%; }
.tv-chart { width: 100%; height: 420px; border: 0; border-radius: 12px; }

/* Utilities */
.hidden { display: none !important; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: .5rem; }
.gap-4 { gap: 1rem; }
.w-full { width: 100%; }
.text-sm { font-size: .875rem; }
.text-muted { color: var(--muted); }
.text-white { color: var(--white); }
.text-green { color: var(--green); }
.text-red { color: var(--red); }
.text-indigo { color: #a5b4fc; }
.text-center { text-align: center; }
.mb-2 { margin-bottom: .5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-4 { margin-top: 1rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-md { max-width: 28rem; }
.max-w-lg { max-width: 32rem; }
.max-w-4xl { max-width: 56rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.grid-cols-2-md { grid-template-columns: 1fr; }
@media (min-width: 768px) { .grid-cols-2-md { grid-template-columns: repeat(2,1fr); } .account-layout { grid-template-columns: 260px 1fr; } }
@media (max-width: 1023px) { .admin-layout:not(.adm-layout) { grid-template-columns: 1fr; } }
@media (max-width: 767px) {
  .hero-float { display: none; }
  input, textarea, select { font-size: 16px !important; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .dash-header { flex-direction: column; align-items: stretch; }
  .dash-actions { display: flex; gap: .5rem; }
  .dash-actions .btn { flex: 1; }
  .portfolio-value { font-size: 1.75rem; }
  .cta-band { padding: 2rem 1.25rem; }
  .section { padding: 3rem 0; }
  .container { width: min(1200px, calc(100% - 1.25rem)); }
  .market-card { flex-wrap: wrap; }
  .market-card .price-col { width: 100%; text-align: left; margin-top: .35rem; }
  .pay-methods { flex-direction: column; }
  .pay-chip { width: 100%; justify-content: center; }
  .sidebar { position: sticky; top: calc(var(--nav-h) + .5rem); overflow-x: auto; }
  .sidebar .sidebar-link { white-space: nowrap; display: inline-flex; align-items: center; gap: .45rem; }
  .account-layout .sidebar:not(.acct-sidebar) { display: flex; flex-wrap: nowrap; gap: .35rem; padding: .75rem; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .account-layout .sidebar-label { display: none; }
  .account-layout .sidebar-link { margin: 0; flex-shrink: 0; }
  .account-layout .sidebar-logout { margin-left: auto; }
  .modal { padding: 1.25rem; border-radius: 14px; max-height: calc(100dvh - 1rem); }
  .modal-overlay { padding: .5rem; align-items: flex-end; }
  .pay-modal { max-width: 100%; border-radius: 16px 16px 0 0; max-height: calc(100dvh - .5rem); }
  .pay-field-row { grid-template-columns: 1fr 1fr; gap: .65rem; }
  .pay-card-preview { min-height: 132px; padding: 1rem; }
  .table-wrap table { min-width: 520px; }
}

/* SVG icon system */
.icon { width: 1.25rem; height: 1.25rem; flex-shrink: 0; display: block; }
.icon-xs { width: .875rem; height: .875rem; }
.icon-sm { width: 1rem; height: 1rem; }
.icon-md { width: 1.25rem; height: 1.25rem; }
.icon-lg { width: 1.5rem; height: 1.5rem; }
.icon-inline { display: inline-block; vertical-align: -.2em; margin-left: .25rem; }
.icon-box {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--gradient-soft); color: #93b4ff;
  border: 1px solid rgba(0,82,255,.25);
}
.icon-box-lg { width: 64px; height: 64px; border-radius: 16px; }
.icon-box-success { background: rgba(52,211,153,.12); border-color: rgba(52,211,153,.35); color: var(--green); }
.icon-box-error { background: rgba(239,68,68,.12); border-color: rgba(239,68,68,.35); color: #f87171; }
.success-icon { display: flex; justify-content: center; }
.success-icon .icon-box { width: 56px; height: 56px; }

.live-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 4px rgba(52,211,153,.2);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot { 0%,100% { opacity: 1; } 50% { opacity: .55; } }

.hero-trust { list-style: none; padding: 0; margin: 0; }
.hero-trust-pill {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .45rem .75rem; border-radius: 999px;
  background: rgba(255,255,255,.04); border: 1px solid var(--border);
  color: var(--muted); font-size: .8125rem; font-weight: 600;
}
.hero-card-head { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.hero-app-icon { border-radius: 8px; }
.hero-card-title { font-weight: 700; color: var(--white); margin: 0; font-size: .9375rem; }
.market-row {
  display: flex; align-items: center; gap: .75rem; padding: .65rem 0;
  border-bottom: 1px solid var(--border);
}
.market-row:last-child { border-bottom: none; }
.market-row img { border-radius: 50%; }
.market-row .meta { flex: 1; min-width: 0; }
.market-row .name { font-weight: 600; color: var(--white); font-size: .875rem; }
.market-row .sym { font-size: .75rem; color: var(--muted); }
.market-row .price { font-weight: 700; color: var(--white); font-size: .875rem; }
.float-sym { font-weight: 700; color: var(--white); font-size: .8125rem; }
.float-price { font-size: .75rem; color: var(--muted); }

.section-tight { padding: 2.5rem 0; }
.section-alt { background: rgba(255,255,255,.02); border-block: 1px solid var(--border); }
.section-label { font-size: .8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 1rem; }
.market-grid { display: grid; gap: .75rem; }
@media (min-width: 640px) { .market-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .market-grid { grid-template-columns: repeat(3, 1fr); } }
.market-card .price-col { text-align: right; }
.market-card .price-val { font-weight: 700; color: var(--white); }
.market-card .change { font-size: .8125rem; font-weight: 600; }

.stat-card { display: flex; flex-direction: column; align-items: center; gap: .35rem; }
.stat-card .icon-box { margin-bottom: .25rem; }

.step-card .step-icon { margin: .75rem 0 1rem; }
.step-card h3 { font-size: 1.0625rem; margin-bottom: .5rem; }
.step-card p { color: var(--muted); font-size: .9375rem; margin: 0; }

.testimonial-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.testimonial-top .avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(124,108,255,.35); }
.star-icon { color: #fbbf24; display: inline; vertical-align: middle; margin-right: 1px; }
.testimonial-card cite span { display: block; font-weight: 500; color: var(--muted); font-size: .8125rem; margin-top: .15rem; }
.faq-grid { display: grid; gap: .75rem; max-width: 720px; margin: 0 auto; }

.sidebar-label { font-size: .6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 .65rem; }
.sidebar-link { display: flex; align-items: center; gap: .55rem; }
.sidebar-link.active, .sidebar a.active { background: rgba(0,82,255,.14); color: #93b4ff; }
.sidebar-logout { color: var(--red) !important; margin-top: .5rem; }
.lock-badge { margin-left: auto; opacity: .65; display: inline-flex; }

.portfolio-card { background: var(--gradient-soft); border-color: rgba(124,108,255,.25); }
.portfolio-value { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 800; color: var(--white); margin: .35rem 0 0; }
.dash-actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.action-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: .75rem;
  text-align: left; width: 100%; border: none; cursor: pointer; color: inherit;
  font: inherit;
}
.action-icon { margin: 0; }
.action-label { font-weight: 700; color: var(--white); font-size: .9375rem; }
.token-img { border-radius: 50%; flex-shrink: 0; }

.learn-card .learn-thumb { width: 100%; height: 140px; border-radius: 14px; object-fit: cover; margin-bottom: 1rem; background: var(--bg-elevated); }
.learn-card .learn-icon { width: 56px; height: 56px; border-radius: 14px; object-fit: contain; margin-bottom: 1rem; background: var(--bg-elevated); padding: .5rem; }
.learn-card h3 { margin-bottom: .5rem; }

.modal-close {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 10px;
  background: rgba(255,255,255,.06); transition: .15s;
}
.modal-close:hover { background: rgba(255,255,255,.1); color: var(--white); }
.pay-chip { gap: .45rem; font-weight: 600; font-size: .875rem; }
.secure-badge { font-weight: 600; }

@media (min-width: 768px) {
  .account-layout .sidebar:not(.acct-sidebar) { display: block; overflow: visible; }
  .account-layout .sidebar-label { display: block; }
  .account-layout .sidebar-link { display: flex; width: 100%; }
}

@media (min-width: 1200px) {
  .hero-visual { min-height: 480px; }
  .hero-card-main img.hero-banner { height: 280px; }
}

/* ── Coinbase-inspired homepage ── */
.cb-hero {
  position: relative; padding: 3.5rem 0 4.5rem; overflow: hidden;
  min-height: calc(100vh - var(--nav-h) - 48px);
  display: flex; align-items: center;
}
.cb-hero-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: .18; filter: saturate(1.2);
}
.cb-hero-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 55% 45% at 75% 35%, rgba(0,82,255,.28), transparent),
    radial-gradient(ellipse 40% 35% at 20% 60%, rgba(121,54,240,.15), transparent);
}
.cb-hero-grid {
  position: relative; z-index: 1;
  display: grid; gap: 2.5rem; align-items: center;
}
.cb-hero-copy h1 {
  font-size: clamp(2.5rem, 6vw, 4.25rem); font-weight: 800;
  letter-spacing: -.035em; line-height: 1.05; margin: 1rem 0 1.25rem;
}
.cb-hero-copy .lead { font-size: 1.125rem; color: var(--muted); max-width: 32rem; margin-bottom: 1.75rem; }
.hero-signup-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1.75rem; }

/* Phone mockup + coin stickers */
.phone-wrap { position: relative; width: min(340px, 100%); margin: 0 auto; min-height: 420px; }
.phone-device {
  position: relative; z-index: 2; margin: 0 auto;
  width: min(280px, 88%); border-radius: 36px; padding: 10px;
  background: linear-gradient(160deg, #2a2d38, #0f1118);
  border: 2px solid rgba(255,255,255,.12);
  box-shadow: var(--shadow), var(--shadow-blue);
}
.phone-notch {
  width: 90px; height: 22px; border-radius: 0 0 14px 14px;
  background: #0f1118; margin: 0 auto 6px;
}
.phone-screen {
  background: linear-gradient(180deg, #12141c, #0a0b10);
  border-radius: 28px; padding: 1rem 1rem 1.25rem; overflow: hidden;
}
.phone-status { display: flex; align-items: center; gap: .5rem; font-size: .8125rem; font-weight: 700; color: var(--white); margin-bottom: 1rem; }
.phone-app-icon { border-radius: 6px; }
.phone-label { font-size: .75rem; color: var(--muted); margin: 0 0 .25rem; }
.phone-balance { font-size: 1.75rem; font-weight: 800; color: var(--white); margin: 0 0 .25rem; letter-spacing: -.02em; }
.phone-change { font-size: .8125rem; margin: 0 0 1rem; }
.phone-actions-row { display: flex; gap: .5rem; margin-bottom: 1rem; }
.phone-pill {
  flex: 1; text-align: center; padding: .45rem; border-radius: 999px;
  background: rgba(0,82,255,.18); border: 1px solid rgba(0,82,255,.35);
  color: #93b4ff; font-size: .75rem; font-weight: 700;
}
.phone-list { display: flex; flex-direction: column; gap: .65rem; }
.phone-row { display: flex; align-items: center; gap: .65rem; padding: .55rem 0; border-top: 1px solid var(--border); }
.phone-row img { border-radius: 50%; width: 32px; height: 32px; }
.phone-row-meta { flex: 1; min-width: 0; }
.phone-row-meta strong { display: block; font-size: .8125rem; color: var(--white); }
.phone-row-meta span { font-size: .6875rem; color: var(--muted); }
.phone-row-price { text-align: right; }
.phone-row-price strong { display: block; font-size: .8125rem; color: var(--white); }
.phone-row-price span { font-size: .6875rem; }

.coin-sticker {
  position: absolute; z-index: 3; border-radius: 50%;
  box-shadow: 0 12px 32px rgba(0,0,0,.45);
  animation: float 5s ease-in-out infinite;
  object-fit: cover; background: #fff;
}
.coin-sticker.sticker-1 { width: 72px; height: 72px; top: -8px; right: 0; animation-delay: 0s; }
.coin-sticker.sticker-2 { width: 56px; height: 56px; top: 28%; left: -12px; animation-delay: .8s; }
.coin-sticker.sticker-3 { width: 64px; height: 64px; bottom: 18%; right: -16px; animation-delay: 1.6s; }
.coin-sticker.sticker-4 { width: 48px; height: 48px; bottom: 4%; left: 8%; animation-delay: 2.4s; }

/* Explore crypto scroll */
.explore-section { padding: 3.5rem 0 4rem; background: rgba(255,255,255,.015); border-block: 1px solid var(--border); }
.explore-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.75rem; }
.explore-title { font-size: clamp(1.5rem, 4vw, 2.25rem); margin-bottom: .35rem; }
.explore-sub { font-size: .875rem; margin: 0; }
.explore-scroll {
  display: flex; gap: 1rem; overflow-x: auto; padding-bottom: .5rem;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.explore-scroll::-webkit-scrollbar { height: 6px; }
.explore-scroll::-webkit-scrollbar-thumb { background: rgba(0,82,255,.35); border-radius: 999px; }
.explore-card {
  flex: 0 0 min(260px, 78vw); scroll-snap-align: start;
  padding: 1.25rem; border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border: 1px solid var(--border); transition: .2s;
}
.explore-card:hover { border-color: rgba(0,82,255,.45); transform: translateY(-3px); box-shadow: var(--shadow-blue); }
.explore-card-top { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.explore-card-top img { border-radius: 50%; }
.explore-card-top strong { display: block; color: var(--white); font-size: .9375rem; }
.explore-card-top span { font-size: .75rem; color: var(--muted); }
.explore-card-mid { display: flex; align-items: center; justify-content: space-between; margin-bottom: .5rem; }
.explore-price { font-size: 1.25rem; font-weight: 800; color: var(--white); }
.explore-change { font-size: .8125rem; font-weight: 600; }
.sparkline { display: block; }

/* Trust band */
.trust-band {
  border-block: 1px solid var(--border);
  background: linear-gradient(90deg, rgba(0,82,255,.08), rgba(121,54,240,.06));
  padding: 2rem 0;
}
.trust-band-inner {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; text-align: center;
}
.trust-stat {
  padding: 1rem .75rem;
  border-radius: 12px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border);
}
.trust-stat strong { display: block; font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; color: var(--white); }
.trust-stat span { font-size: .8125rem; color: var(--muted); }
@media (min-width: 768px) { .trust-band-inner { grid-template-columns: repeat(4, 1fr); } }

/* Split feature bands */
.split-band { padding: 5rem 0; }
.split-band-alt { background: rgba(255,255,255,.02); border-block: 1px solid var(--border); }
.split-grid { display: grid; gap: 3rem; align-items: center; }
.split-grid-reverse .split-visual { order: 2; }
.split-grid-reverse .split-copy { order: 1; }
@media (min-width: 992px) {
  .split-grid { grid-template-columns: 1fr 1fr; }
  .split-grid-reverse .split-visual { order: 2; }
  .split-grid-reverse .split-copy { order: 1; }
}
.split-visual { position: relative; }
.split-img {
  width: 100%; border-radius: var(--radius-lg); object-fit: cover;
  aspect-ratio: 4/3; border: 1px solid var(--border-strong);
  box-shadow: var(--shadow);
}
.split-float-coin {
  position: absolute; border-radius: 50%; box-shadow: 0 16px 40px rgba(0,0,0,.4);
  top: -16px; right: -8px; animation: float 5s ease-in-out infinite;
}
.split-float-coin-2 { top: auto; bottom: -12px; left: -8px; right: auto; animation-delay: 1.2s; }
.section-tag {
  display: inline-block; font-size: .75rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .1em; color: var(--cb-blue); margin-bottom: .75rem;
}
.split-title { font-size: clamp(1.75rem, 3.5vw, 2.5rem); margin-bottom: 1rem; text-align: left; }
.split-copy p { color: var(--muted); font-size: 1.05rem; margin-bottom: 1.5rem; max-width: 28rem; }
.split-list { list-style: none; padding: 0; margin: 0 0 1.75rem; display: flex; flex-direction: column; gap: .65rem; }
.split-copy .btn { margin-top: .25rem; }

/* Steps section */
.section-steps { background: rgba(255,255,255,.02); border-block: 1px solid var(--border); }
.steps-grid .step-card-v2 {
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color .2s, transform .2s;
}
.steps-grid .step-card-v2:hover { border-color: rgba(0,82,255,.35); transform: translateY(-2px); }

/* Testimonials polish */
.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  position: relative;
}
.testimonial-card blockquote {
  font-style: normal;
  line-height: 1.65;
  position: relative;
  padding-left: .15rem;
}

/* FAQ polish */
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color .2s;
}
.faq-item.open { border-color: rgba(0,82,255,.35); }
.faq-q { padding: 0; }
.faq-a p { margin: 0; line-height: 1.65; }

/* Market table */
.market-table-section { padding: 5rem 0; }
.market-table-card { padding: 0; overflow: hidden; background: var(--surface); }
.market-table-card tbody tr:hover { background: rgba(255,255,255,.03); }
.market-table-card .btn-sm { white-space: nowrap; min-width: 72px; }
.market-table-card th { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; }

/* Security section */
.security-section { padding: 5rem 0; background: linear-gradient(180deg, transparent, rgba(0,82,255,.06)); }
.security-grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 992px) { .security-grid { grid-template-columns: 1.1fr .9fr; } }
.security-copy .section-title { text-align: left; margin-bottom: 1rem; }
.security-copy > p { color: var(--muted); margin-bottom: 2rem; max-width: 28rem; }
.security-cards { display: flex; flex-direction: column; gap: 1rem; }
.security-mini {
  display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem;
  border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border);
}
.security-mini strong { display: block; color: var(--white); font-size: .9375rem; }
.security-mini p { margin: .15rem 0 0; font-size: .8125rem; color: var(--muted); }
.security-copy .btn { margin-top: .5rem; }
.security-visual { position: relative; display: flex; justify-content: center; }
.security-phone {
  width: min(280px, 100%); border-radius: 28px;
  border: 3px solid rgba(255,255,255,.1); box-shadow: var(--shadow), var(--shadow-blue);
}
.security-coin {
  position: absolute; top: 10%; right: 10%; border-radius: 50%;
  box-shadow: 0 12px 32px rgba(0,0,0,.4); animation: float 5s ease-in-out infinite;
}

.cta-band-blue {
  background: linear-gradient(135deg, rgba(0,82,255,.2), rgba(121,54,240,.12));
  border-color: rgba(0,82,255,.35);
  text-align: center;
  padding: 3rem 2rem;
}
.cta-band-blue .btn-white { color: #0a0b0f; }
.cta-band-blue p { max-width: 28rem; margin-left: auto; margin-right: auto; }
.cta-logo { border-radius: 18px; margin: 0 auto 1.25rem; box-shadow: var(--shadow-blue); }

.step-card-v2 { padding-top: 2.75rem; }

@media (min-width: 992px) {
  .cb-hero-grid { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .phone-wrap { margin-left: auto; margin-right: 0; }
}

@media (max-width: 767px) {
  .cb-hero { min-height: auto; padding: 2rem 0 2.5rem; }
  .cb-hero-copy { text-align: center; }
  .cb-hero-copy .lead { margin-left: auto; margin-right: auto; font-size: 1rem; line-height: 1.65; }
  .cb-hero-copy h1 { font-size: clamp(1.85rem, 8vw, 2.5rem); margin-top: .75rem; }
  .cb-hero-copy .eyebrow { font-size: .75rem; }
  .hero-signup-row { flex-direction: column; width: 100%; }
  .hero-signup-row .btn { width: 100%; min-height: 48px; }
  .hero-trust { justify-content: center; gap: .5rem; }
  .hero-trust-pill { font-size: .75rem; padding: .4rem .65rem; }
  .cb-hero-visual { overflow: hidden; padding: 0 .5rem; margin-top: .5rem; }
  .phone-wrap { min-height: 360px; max-width: 300px; }
  .phone-device { width: min(260px, 92%); }
  .coin-sticker.sticker-1 { width: 48px; height: 48px; top: 0; right: 2%; }
  .coin-sticker.sticker-2 { width: 40px; height: 40px; left: 0; }
  .coin-sticker.sticker-3 { width: 44px; height: 44px; right: 0; bottom: 20%; }
  .coin-sticker.sticker-4 { width: 36px; height: 36px; left: 6%; }

  .explore-section { padding: 2.5rem 0; }
  .explore-head { align-items: stretch; }
  .explore-head .btn-with-icon { width: 100%; justify-content: center; }
  .section-cta .btn { width: 100%; max-width: 360px; justify-content: center; }
  .split-copy .btn-with-icon { width: 100%; justify-content: center; }
  .security-copy .btn-with-icon { width: 100%; justify-content: center; }
  .cta-band-blue .btn-with-icon { width: 100%; max-width: 360px; margin: 0 auto; justify-content: center; }
  .explore-card { flex: 0 0 min(240px, 85vw); }

  .split-band { padding: 2.5rem 0; }
  .split-grid-reverse .split-visual,
  .split-grid-reverse .split-copy { order: unset; }
  .split-copy { text-align: center; }
  .split-title { text-align: center; font-size: 1.5rem; }
  .split-copy p { margin-left: auto; margin-right: auto; font-size: .9375rem; }
  .split-list { align-items: flex-start; max-width: 20rem; margin-left: auto; margin-right: auto; }
  .split-copy .btn { width: 100%; min-height: 48px; }
  .split-float-coin { width: 48px !important; height: 48px !important; }

  .section { padding: 2.5rem 0; }
  .section-head { margin-bottom: 2rem; }
  .section-head p { font-size: .9375rem; }
  .section-title { font-size: clamp(1.5rem, 6vw, 2rem); }
  .pay-strip { gap: .65rem; }

  .security-section { padding: 2.5rem 0; }
  .security-copy { text-align: center; }
  .security-copy .section-title { text-align: center; }
  .security-copy > p { margin-left: auto; margin-right: auto; }
  .security-coin { width: 44px; height: 44px; }

  .cta-band { padding: 2rem 1rem; }
  .cta-band .btn { width: 100%; min-height: 48px; }

  .nav-auth-desktop { display: none !important; }
  .brand-text { font-size: 1rem; }
  .nav-row { gap: .65rem; }
  .container { width: min(1200px, calc(100% - 1rem)); }

  .btn { min-height: 44px; }
  .btn-lg { min-height: 48px; padding: .95rem 1.25rem; }
  .w-full.btn { width: 100%; }

  .page-hero { padding: 2rem 0 1.75rem; }
  .page-hero h1 { font-size: 1.65rem; }
  .page-hero p { font-size: .9375rem; }

  .footer-bottom { flex-direction: column; text-align: center; gap: .5rem; }
  .footer-grid { gap: 1.5rem; }

  .market-table-card th:nth-child(5),
  .market-table-card td:nth-child(5),
  .market-table-card th:nth-child(6),
  .market-table-card td:nth-child(6) { display: none; }

  .grid-2.mb-8 { grid-template-columns: 1fr; }
  .action-card { min-height: auto; padding: 1.1rem; }
}

@media (max-width: 380px) {
  .brand-text { display: none; }
  .ticker-item { font-size: .75rem; gap: .35rem; }
}

/* ── Account dashboard redesign ── */
.acct-page { background: var(--bg); overflow-x: hidden; }
.acct-page .account-layout {
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
  padding-top: calc(var(--nav-h) + 1rem);
  width: 100%;
  max-width: 100%;
}
.acct-page .account-layout > #sidebar,
.acct-page .account-layout > #content {
  min-width: 0;
  max-width: 100%;
}
.acct-page #content { overflow-x: hidden; }
@media (min-width: 992px) {
  .acct-page .account-layout { grid-template-columns: 280px 1fr; gap: 2rem; align-items: start; }
}

.acct-sidebar { position: sticky; top: calc(var(--nav-h) + 1rem); padding: 1.25rem; }
.acct-user-card {
  display: flex; gap: .85rem; align-items: flex-start;
  padding-bottom: 1rem; margin-bottom: 1rem; border-bottom: 1px solid var(--border);
}
.acct-user-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .2rem; }
.acct-avatar {
  width: 48px; height: 48px; border-radius: 14px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.125rem; color: #fff;
  background: linear-gradient(135deg, var(--cb-blue), #7936f0);
  box-shadow: 0 4px 12px rgba(0,82,255,.25);
}
.acct-moon-tag { font-weight: 700; color: var(--white); margin: 0; font-size: .9375rem; line-height: 1.3; }
.acct-email { font-size: .75rem; color: var(--muted); margin: 0; word-break: break-all; line-height: 1.35; }
.acct-kyc-badge {
  display: inline-flex; align-items: center; gap: .25rem;
  width: fit-content; max-width: 100%;
  font-size: .6875rem; font-weight: 700; line-height: 1;
  padding: .28rem .55rem; border-radius: 999px;
  margin-top: .35rem; white-space: nowrap;
}
.acct-kyc-badge .icon { width: .75rem; height: .75rem; flex-shrink: 0; }
.acct-kyc-badge--approved { background: rgba(52,211,153,.14); color: #6ee7b7; border: 1px solid rgba(52,211,153,.28); }
.acct-kyc-badge--pending { background: rgba(251,191,36,.12); color: #fcd34d; border: 1px solid rgba(251,191,36,.25); }
.acct-kyc-badge--rejected { background: rgba(248,113,113,.12); color: #fca5a5; border: 1px solid rgba(248,113,113,.25); }
.acct-kyc-badge--none { background: rgba(255,255,255,.06); color: var(--muted); border: 1px solid var(--border); }

.acct-nav-link { flex-direction: row !important; align-items: flex-start !important; padding: .75rem .85rem !important; }
.acct-nav-text { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.acct-nav-label { font-weight: 700; color: inherit; }
.acct-nav-desc { font-size: .6875rem; font-weight: 500; color: var(--muted); opacity: .85; }
.acct-nav-link.active .acct-nav-desc { color: rgba(147,180,255,.7); }
.acct-nav-link.is-locked { opacity: .7; }
.acct-logout { margin-top: .75rem !important; border-top: 1px solid var(--border); padding-top: .75rem !important; }

.acct-page-header {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start;
  gap: 1rem; margin-bottom: 1.5rem;
  max-width: 100%; min-width: 0;
}
.acct-greeting { font-size: .8125rem; color: var(--muted); margin: 0 0 .25rem; }
.acct-page-title { font-size: clamp(1.5rem, 4vw, 2rem); font-weight: 800; color: var(--white); margin: 0; letter-spacing: -.02em; }
.acct-page-sub { font-size: .9375rem; color: var(--muted); margin: .35rem 0 0; max-width: 36rem; }
.acct-page-tools { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.acct-head-actions { display: flex; gap: .5rem; flex-wrap: wrap; }

.acct-notify { position: relative; }
.acct-notify-btn {
  position: relative; width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--surface); color: var(--white);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.acct-notify-count {
  position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px;
  padding: 0 4px; border-radius: 999px; background: var(--cb-blue); color: #fff;
  font-size: .625rem; font-weight: 800; display: flex; align-items: center; justify-content: center;
}
.acct-notify-panel {
  display: none; position: absolute; right: 0; top: calc(100% + .5rem); width: min(320px, calc(100vw - 2rem));
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius);
  box-shadow: 0 16px 48px rgba(0,0,0,.45); z-index: 50; max-height: 360px; overflow: hidden;
}
.acct-notify.open .acct-notify-panel { display: flex; flex-direction: column; }
.acct-notify-head { display: flex; justify-content: space-between; padding: .85rem 1rem; border-bottom: 1px solid var(--border); }
.acct-notify-list { overflow-y: auto; padding: .5rem; }
.acct-notify-item { padding: .65rem .75rem; border-radius: 10px; margin-bottom: .25rem; }
.acct-notify-item:hover { background: rgba(255,255,255,.04); }
.acct-notify-title { font-weight: 700; color: var(--white); font-size: .8125rem; margin: 0 0 .2rem; }
.acct-notify-msg { font-size: .75rem; color: var(--muted); margin: 0; }
.acct-notify-time { font-size: .6875rem; color: var(--muted); opacity: .7; }
.acct-notify-empty { padding: 1rem; text-align: center; }

.acct-stats {
  display: grid; gap: .75rem; grid-template-columns: repeat(2, 1fr); margin-bottom: 1.5rem;
}
@media (min-width: 640px) { .acct-stats { grid-template-columns: repeat(4, 1fr); } }
.acct-stat { padding: 1rem 1.15rem; display: flex; flex-direction: column; gap: .35rem; }
.acct-stat-label { font-size: .75rem; color: var(--muted); font-weight: 600; }
.acct-stat-value { font-size: 1.375rem; font-weight: 800; color: var(--white); }
.text-amber { color: #fcd34d; }

.acct-dash-grid {
  display: grid; gap: 1.5rem; margin-bottom: 2rem;
}
@media (min-width: 1024px) { .acct-dash-grid { grid-template-columns: 1.2fr 1fr; } }

.acct-panel { margin-bottom: 0; }
.acct-panel-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.acct-section-title { font-size: 1.0625rem; font-weight: 700; color: var(--white); margin: 0 0 .5rem; }
.acct-portfolio-panel { padding: 1.25rem; }

.acct-holdings { display: flex; flex-direction: column; gap: .65rem; }
.acct-holding-row {
  display: grid; grid-template-columns: auto 1fr auto; gap: .75rem; align-items: center;
  padding: .65rem 0; border-bottom: 1px solid var(--border);
}
.acct-holding-row:last-child { border-bottom: none; }
.acct-holding-sym { font-weight: 700; color: var(--white); display: block; }
.acct-holding-bal { font-size: .75rem; color: var(--muted); }
.acct-holding-val { text-align: right; font-weight: 700; color: var(--white); font-size: .875rem; min-width: 5rem; }
.acct-allocation-bar { height: 3px; background: rgba(255,255,255,.08); border-radius: 999px; margin-top: .35rem; overflow: hidden; }
.acct-allocation-bar span { display: block; height: 100%; background: var(--cb-blue); border-radius: 999px; }

.acct-actions-grid {
  display: grid; gap: .75rem; grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 640px) { .acct-actions-grid { grid-template-columns: repeat(3, 1fr); } }
.action-desc { font-size: .75rem; color: var(--muted); font-weight: 500; display: block; margin-top: .15rem; }

.token-card-click {
  border: 1px solid var(--border); background: var(--surface); cursor: pointer;
  font: inherit; color: inherit; width: 100%; text-align: left; transition: .15s;
}
.token-card-click:hover { border-color: rgba(0,82,255,.45); background: rgba(0,82,255,.06); }

/* ── Exchange-style dashboard ── */
.acct-exchange { display: flex; flex-direction: column; gap: 1rem; max-width: 100%; width: 100%; min-width: 0; }

.acct-hero { padding: 1.5rem; background: linear-gradient(135deg, rgba(0,82,255,.12), rgba(121,54,240,.08)), var(--surface); border-color: rgba(0,82,255,.2); }
.acct-hero-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1.25rem; }
.acct-hero-label { font-size: .8125rem; color: var(--muted); font-weight: 600; display: block; margin-bottom: .35rem; }
.acct-hero-value { font-size: clamp(2rem, 5vw, 2.75rem); font-weight: 800; color: var(--white); margin: 0; letter-spacing: -.03em; line-height: 1.1; }
.acct-hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; margin-top: .65rem; font-size: .8125rem; color: var(--muted); }
.acct-hero-meta strong { color: var(--white); font-weight: 700; }
.acct-hero-dot { opacity: .4; }
.acct-hero-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.acct-hero-actions .btn { min-height: 44px; }

.acct-quick-bar {
  display: flex;
  flex-wrap: nowrap;
  gap: .25rem;
  padding: .65rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  width: 100%;
  max-width: 100%;
}
.acct-quick-bar::-webkit-scrollbar { display: none; }
.acct-quick-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem;
  padding: .75rem .5rem; border-radius: 12px; border: none; background: transparent;
  color: var(--muted); font-size: .75rem; font-weight: 600; cursor: pointer; text-decoration: none;
  min-width: 72px; transition: .15s;
}
.acct-quick-item:hover { background: rgba(255,255,255,.05); color: var(--white); }
.acct-quick-item .icon { color: var(--cb-blue); }

.acct-main-grid {
  display: grid; gap: 1rem;
}
@media (min-width: 992px) { .acct-main-grid { grid-template-columns: 1fr 1fr; align-items: start; } }

.acct-block { padding: 0; overflow: hidden; }
.acct-block-head {
  display: flex; justify-content: space-between; align-items: center; gap: .75rem;
  padding: 1rem 1.15rem; border-bottom: 1px solid var(--border);
}
.acct-block-head h2 { font-size: 1rem; font-weight: 700; color: var(--white); margin: 0; }
.acct-block-head-right { display: flex; align-items: center; gap: .5rem; }
.acct-block-hint { font-size: .75rem; color: var(--muted); margin: 0; padding: .65rem 1.15rem 0; }
.acct-block-foot { padding: .75rem 1.15rem; border-top: 1px solid var(--border); }
.acct-block-foot a { font-size: .8125rem; font-weight: 600; color: var(--cb-blue); display: inline-flex; align-items: center; gap: .25rem; }

/* Assets list */
.acct-assets-list { padding: 0; }
.acct-asset-row {
  display: grid; grid-template-columns: 1fr auto auto; gap: .75rem; align-items: center;
  padding: .85rem 1.15rem; border-bottom: 1px solid var(--border);
}
.acct-asset-row:last-child { border-bottom: none; }
.acct-asset-left { display: flex; align-items: center; gap: .65rem; min-width: 0; }
.acct-asset-sym { display: block; font-weight: 700; color: var(--white); font-size: .9375rem; }
.acct-asset-name { display: block; font-size: .6875rem; color: var(--muted); }
.acct-asset-mid { text-align: right; }
.acct-asset-qty { display: block; font-weight: 600; color: var(--white); font-size: .875rem; font-variant-numeric: tabular-nums; }
.acct-asset-pct { display: block; font-size: .6875rem; color: var(--muted); }
.acct-asset-right { text-align: right; min-width: 5.5rem; }
.acct-asset-usd { display: block; font-weight: 700; color: var(--white); font-size: .875rem; font-variant-numeric: tabular-nums; margin-bottom: .35rem; }
.acct-asset-actions { display: flex; gap: .35rem; justify-content: flex-end; }
.acct-asset-btn {
  padding: .2rem .5rem; border-radius: 6px; border: 1px solid var(--border);
  background: rgba(255,255,255,.04); color: var(--muted); font-size: .6875rem; font-weight: 700; cursor: pointer;
}
.acct-asset-btn:hover { border-color: var(--cb-blue); color: #93b4ff; }
.acct-empty-inline { text-align: center; padding: 2rem 1.15rem; color: var(--muted); }
.acct-empty-inline p { margin: 0 0 1rem; }

/* Markets list (exchange row style — no overlap) */
.acct-market-list { display: flex; flex-direction: column; }
.acct-market-row {
  display: grid; grid-template-columns: 1fr auto auto; gap: .75rem; align-items: center;
  padding: .85rem 1.15rem; border-bottom: 1px solid var(--border);
  min-height: 56px;
}
.acct-market-row:last-child { border-bottom: none; }
.acct-market-row-click { cursor: pointer; transition: background .15s; border: none; background: transparent; width: 100%; text-align: left; font: inherit; color: inherit; }
.acct-market-row-click:hover { background: rgba(0,82,255,.06); }
.acct-market-asset { display: flex; align-items: center; gap: .65rem; min-width: 0; }
.acct-market-names { display: flex; flex-direction: column; min-width: 0; }
.acct-market-sym { font-weight: 700; color: var(--white); font-size: .9375rem; }
.acct-market-name { font-size: .6875rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acct-market-price-col { text-align: right; min-width: 5.5rem; }
.acct-market-price { display: block; font-weight: 700; color: var(--white); font-size: .9375rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.acct-market-pair { display: block; font-size: .6875rem; color: var(--muted); }
.acct-market-buy {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .35rem .75rem; border-radius: 8px; min-width: 52px;
  background: rgba(0,82,255,.15); color: #93b4ff; font-size: .75rem; font-weight: 700;
  border: 1px solid rgba(0,82,255,.3);
}

/* Orders table */
.acct-orders-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.acct-orders-table { width: 100%; border-collapse: collapse; font-size: .8125rem; }
.acct-orders-table th {
  padding: .65rem 1.15rem; text-align: left; color: var(--muted); font-weight: 600;
  background: var(--bg-elevated); border-bottom: 1px solid var(--border); white-space: nowrap;
}
.acct-orders-table td { padding: .75rem 1.15rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.acct-orders-table tr:last-child td { border-bottom: none; }
.acct-orders-table .acct-empty { padding: 2rem 1.15rem !important; text-align: center; color: var(--muted); }

.acct-dash-gate { margin-bottom: 1.5rem; }

@media (max-width: 767px) {
  .acct-stats { grid-template-columns: repeat(2, 1fr); }
  .acct-stat-value { font-size: 1.125rem; }
}

.acct-table-wrap { border: none; }
.acct-table { font-size: .8125rem; }
.acct-table th { white-space: nowrap; }
.acct-empty { padding: 2rem 1rem !important; text-align: center; color: var(--muted); }
.acct-tx-type { font-weight: 700; font-size: .75rem; text-transform: capitalize; }
.acct-tx-buy { color: var(--green); }
.acct-tx-sell { color: #fca5a5; }

.badge-completed { background: rgba(52,211,153,.15); color: #6ee7b7; }

.acct-kyc-gate { max-width: 520px; margin: 0 auto; }
.acct-kyc-steps {
  display: flex; gap: .5rem; margin-bottom: 1.5rem; flex-wrap: wrap; justify-content: center;
}
.acct-kyc-step {
  display: flex; align-items: center; gap: .45rem; font-size: .75rem; font-weight: 600;
  color: var(--muted); padding: .45rem .75rem; border-radius: 999px;
  background: rgba(255,255,255,.04); border: 1px solid var(--border);
}
.acct-kyc-step.done { color: var(--green); border-color: rgba(52,211,153,.35); }
.acct-kyc-step.active { color: #93b4ff; border-color: rgba(0,82,255,.4); background: rgba(0,82,255,.1); }
.acct-kyc-step-num {
  width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.08); font-size: .6875rem;
}
.acct-kyc-card { text-align: center; padding: 2rem 1.5rem; }
.acct-kyc-card h2 { font-size: 1.25rem; font-weight: 800; color: var(--white); margin: 1rem 0 .5rem; }
.acct-kyc-card p { color: var(--muted); font-size: .9375rem; margin-bottom: 1.25rem; }
.acct-kyc-benefits { list-style: none; padding: 0; margin: 0 0 1.25rem; text-align: left; max-width: 260px; margin-inline: auto; }
.acct-kyc-benefits li { display: flex; align-items: center; gap: .5rem; font-size: .875rem; color: var(--muted); margin-bottom: .5rem; }

.acct-wallets-grid {
  display: grid; gap: 1rem; grid-template-columns: 1fr;
}
@media (min-width: 640px) { .acct-wallets-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .acct-wallets-grid { grid-template-columns: repeat(3, 1fr); } }
.acct-wallet-card { padding: 1.25rem; display: flex; flex-direction: column; gap: .75rem; }
.acct-wallet-top { display: flex; align-items: center; gap: .85rem; }
.acct-wallet-sym { font-size: 1.125rem; font-weight: 800; color: var(--white); margin: 0; }
.acct-wallet-usd { font-size: .875rem; color: var(--muted); margin: 0; }
.acct-wallet-bal { font-size: 1.375rem; font-weight: 800; color: var(--white); margin: 0; }
.acct-wallet-actions { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: auto; }
.acct-wallet-actions .btn { flex: 1 1 calc(50% - .2rem); min-width: 0; justify-content: center; }
.acct-info-card { display: flex; gap: .85rem; align-items: flex-start; padding: 1.15rem; }
.acct-empty-state { text-align: center; padding: 2.5rem 1.5rem; grid-column: 1 / -1; }

.acct-filter-bar { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.acct-filter-chip {
  padding: .45rem .9rem; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); color: var(--muted); font-weight: 600; font-size: .8125rem; cursor: pointer;
}
.acct-filter-chip.active { border-color: var(--cb-blue); color: #fff; background: rgba(0,82,255,.15); }

.acct-settings-tabs {
  display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.25rem;
  overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: .25rem;
}
.acct-tab {
  display: inline-flex; align-items: center; gap: .4rem; padding: .55rem 1rem;
  border-radius: 999px; border: 1px solid var(--border); background: var(--surface);
  color: var(--muted); font-weight: 600; font-size: .8125rem; cursor: pointer; white-space: nowrap;
}
.acct-tab.active { border-color: var(--cb-blue); color: #fff; background: rgba(0,82,255,.12); }
.acct-settings-card { padding: 1.25rem; }
.acct-info-rows { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.acct-form { display: flex; flex-direction: column; gap: 1rem; }
.acct-form-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .acct-form-grid { grid-template-columns: repeat(2, 1fr); } }
.acct-form-inline { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.acct-form-inline .nx-input { flex: 1; min-width: 160px; }
.acct-upload-grid { display: grid; gap: 1rem; }
.acct-toggle-row {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: .85rem 0; border-bottom: 1px solid var(--border);
}
.acct-toggle-row:last-of-type { border-bottom: none; }
.acct-toggle-row input[type="checkbox"] { width: 44px; height: 24px; accent-color: var(--cb-blue); cursor: pointer; }
.acct-kyc-success { text-align: center; padding: 2rem 1rem; color: var(--green); }
.acct-danger-zone { border-color: rgba(248,113,113,.25); }

.acct-chat { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.acct-chat-head {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem;
  padding: .85rem 1.15rem; border-bottom: 1px solid var(--border); font-weight: 600; color: var(--white);
}
.acct-chat-msgs { min-height: 280px; max-height: 420px; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .65rem; }
.acct-chat-bubble { max-width: 85%; padding: .65rem .85rem; border-radius: 14px; }
.acct-chat-bubble.in { align-self: flex-start; background: var(--bg-elevated); border: 1px solid var(--border); }
.acct-chat-bubble.out { align-self: flex-end; background: rgba(0,82,255,.18); border: 1px solid rgba(0,82,255,.35); }
.acct-chat-sender { font-size: .6875rem; font-weight: 700; color: var(--muted); display: block; margin-bottom: .2rem; }
.acct-chat-bubble p { margin: 0; font-size: .875rem; color: var(--white); }
.acct-chat-form { display: flex; gap: .5rem; padding: .85rem; border-top: 1px solid var(--border); }
.acct-chat-form .nx-input { flex: 1; }
.acct-chat-form .btn { flex-shrink: 0; min-width: 48px; }
.acct-chat-empty { text-align: center; padding: 2rem 1rem; }
.acct-support-status {
  font-size: .75rem; font-weight: 700; padding: .35rem .65rem; border-radius: 999px;
  background: rgba(255,255,255,.06); color: var(--muted);
}
.acct-support-status.live { background: rgba(52,211,153,.12); color: var(--green); }

.acct-modal .acct-form { margin-top: .5rem; }
.acct-toast {
  position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%) translateY(120%);
  padding: .75rem 1.25rem; border-radius: 12px; font-weight: 600; font-size: .875rem;
  z-index: 300; transition: transform .25s ease; pointer-events: none;
  background: rgba(52,211,153,.15); border: 1px solid rgba(52,211,153,.35); color: #86efac;
}
.acct-toast-error { background: rgba(239,68,68,.12); border-color: rgba(239,68,68,.35); color: #fca5a5; }
.acct-toast.show { transform: translateX(-50%) translateY(0); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

@media (max-width: 991px) {
  .acct-sidebar { position: static; }

  .acct-page .container.account-layout {
    width: 100%;
    max-width: 100%;
    padding-left: max(.75rem, env(safe-area-inset-left, 0px));
    padding-right: max(.75rem, env(safe-area-inset-right, 0px));
    box-sizing: border-box;
  }
  .acct-page .account-layout { padding-bottom: 1.5rem; gap: .85rem; }

  /* Mobile nav: 3×2 grid — fits screen, no horizontal page overflow */
  .acct-page .account-layout .sidebar.acct-sidebar {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .35rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: .5rem;
    overflow: visible;
    border-radius: 14px;
  }
  .acct-page .acct-nav { display: contents; }
  .acct-user-card,
  .acct-page .sidebar-label { display: none !important; }

  .acct-page .sidebar-link {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .3rem;
    min-width: 0 !important;
    width: 100%;
    max-width: 100%;
    padding: .55rem .35rem !important;
    margin: 0 !important;
    border-radius: 10px;
    font-size: .625rem;
    font-weight: 600;
    white-space: nowrap;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .acct-page .sidebar-link .icon {
    width: 1.125rem;
    height: 1.125rem;
    flex-shrink: 0;
  }
  .acct-nav-link { align-items: center !important; }
  .acct-nav-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
  }
  .acct-nav-desc { display: none; }
  .acct-nav-label {
    font-size: .625rem;
    line-height: 1.15;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .acct-page .sidebar-link.active {
    background: rgba(0,82,255,.16);
    color: #93b4ff;
    box-shadow: inset 0 0 0 1px rgba(0,82,255,.25);
  }

  .acct-page .acct-logout {
    margin: 0 !important;
    border-top: none !important;
    padding: .55rem .35rem !important;
    color: #f87171 !important;
  }
  .acct-page .acct-logout:hover { background: rgba(248,113,113,.1); }
  .acct-page .lock-badge { display: none; }

  /* Dashboard & account content — stay within viewport */
  .acct-hero { padding: 1.15rem; max-width: 100%; }
  .acct-hero-top { flex-wrap: wrap; gap: .75rem; }
  .acct-hero-value {
    font-size: clamp(1.5rem, 7.5vw, 2.25rem);
    word-break: break-word;
    overflow-wrap: anywhere;
  }
  .acct-hero-meta { font-size: .75rem; gap: .25rem; }
  .acct-hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .acct-hero-actions .btn {
    width: 100%;
    flex: none;
    min-width: 0;
    justify-content: center;
  }

  .acct-quick-item { flex: 0 0 auto; min-width: 58px; padding: .65rem .4rem; }

  .acct-block { max-width: 100%; }
  .acct-block-head { padding: .85rem 1rem; }
  .acct-block-hint { padding: .5rem 1rem 0; }
  .acct-block-foot { padding: .65rem 1rem; }

  .acct-asset-row {
    grid-template-columns: 1fr;
    gap: .45rem;
    padding: .75rem 1rem;
  }
  .acct-asset-left { grid-column: auto; }
  .acct-asset-mid,
  .acct-asset-right { text-align: left; min-width: 0; }
  .acct-asset-right {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: .5rem;
  }
  .acct-asset-usd { margin-bottom: 0; }

  .acct-market-row { padding: .75rem 1rem; grid-template-columns: 1fr auto; }
  .acct-market-price-col { min-width: 0; }

  .acct-orders-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
  }
  .acct-orders-table { min-width: 480px; }

  .acct-page-header { flex-direction: column; }
  .acct-head-actions { width: 100%; }
  .acct-head-actions .btn { flex: 1; min-width: 0; }
  .acct-dash-grid { grid-template-columns: 1fr; }
  .acct-actions-grid { grid-template-columns: repeat(2, 1fr); }
  .acct-wallets-grid { grid-template-columns: 1fr; }
  .acct-wallet-actions .btn { flex: 1 1 calc(50% - .2rem); min-width: 0; }
  .acct-settings-tabs { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .acct-form-inline { flex-direction: column; align-items: stretch; }
  .acct-form-inline .nx-input,
  .acct-form-inline .btn { width: 100%; }
  .acct-table-wrap { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .acct-table.acct-responsive-stack { min-width: 0; }
  .acct-table.acct-responsive-stack thead { display: none; }
  .acct-table.acct-responsive-stack tr {
    display: block; margin-bottom: .75rem; padding: .85rem;
    border: 1px solid var(--border); border-radius: 12px; background: var(--bg-elevated);
  }
  .acct-table.acct-responsive-stack td {
    display: flex; justify-content: space-between; align-items: center; gap: 1rem;
    padding: .35rem 0; border: none; text-align: right;
  }
  .acct-table.acct-responsive-stack td::before {
    content: attr(data-label);
    font-weight: 600; color: var(--muted); font-size: .75rem; text-align: left;
  }
  .acct-table.acct-responsive-stack .acct-empty { display: block; text-align: center; }
  .acct-table-wrap table { min-width: 480px; }
  .acct-page .card { max-width: 100%; min-width: 0; }
}

@media (min-width: 992px) {
  .acct-page .acct-nav { display: flex; flex-direction: column; }
  .acct-page .sidebar-link { flex-direction: row !important; width: 100%; text-align: left; padding: .75rem .85rem !important; }
  .acct-nav-text { align-items: flex-start; text-align: left; }
}

@media (max-width: 767px) {
  .acct-stats { grid-template-columns: repeat(2, 1fr); }
  .acct-stat-value { font-size: 1.125rem; }
  .acct-table-wrap { margin: 0; border-radius: 12px; }
  .acct-market-buy { display: none; }
}

/* ── Admin panel redesign ── */
.admin-page { overflow-x: hidden; background: var(--bg); }
.adm-layout {
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  min-height: 100vh;
}
.adm-sidebar {
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.adm-brand { display: flex; align-items: center; gap: .75rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.adm-brand-icon { border-radius: 10px; }
.adm-brand-title { font-weight: 800; color: var(--white); margin: 0; font-size: .9375rem; }
.adm-brand-sub { font-size: .6875rem; color: var(--muted); margin: 0; }
.adm-nav { display: flex; flex-direction: column; gap: .2rem; flex: 1; }
.adm-nav-link {
  display: flex; align-items: center; gap: .55rem;
  padding: .65rem .75rem; border-radius: 10px;
  color: var(--muted); font-size: .8125rem; font-weight: 600;
  position: relative;
}
.adm-nav-link:hover { background: rgba(255,255,255,.05); color: var(--white); }
.adm-nav-link.active { background: rgba(0,82,255,.14); color: #93b4ff; }
.adm-nav-text { display: flex; flex-direction: column; gap: .05rem; min-width: 0; flex: 1; }
.adm-nav-label { font-weight: 700; }
.adm-nav-desc { font-size: .625rem; opacity: .75; font-weight: 500; }
.adm-nav-badge {
  min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px;
  background: var(--red); color: #fff; font-size: .625rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.adm-sidebar-foot { border-top: 1px solid var(--border); padding-top: .75rem; display: flex; flex-direction: column; gap: .35rem; }
.adm-site-link { font-size: .75rem; color: var(--muted); display: flex; align-items: center; gap: .35rem; padding: .4rem .5rem; border-radius: 8px; }
.adm-site-link:hover { color: #93b4ff; background: rgba(255,255,255,.04); }
.adm-logout { font-size: .8125rem; color: #f87171 !important; display: flex; align-items: center; gap: .45rem; padding: .5rem; margin-top: .25rem; }

.adm-main { padding: 1.25rem 1.5rem 2rem; min-width: 0; max-width: 100%; }
.adm-page-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1.25rem; }
.adm-page-title { font-size: clamp(1.35rem, 4vw, 1.75rem); font-weight: 800; color: var(--white); margin: 0; }
.adm-page-sub { font-size: .875rem; color: var(--muted); margin: .35rem 0 0; max-width: 40rem; }
.adm-live { display: flex; align-items: center; gap: .45rem; font-size: .75rem; color: var(--muted); font-weight: 600; }
.adm-content { display: flex; flex-direction: column; gap: 1rem; max-width: 1100px; }

.adm-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
@media (min-width: 768px) { .adm-stats { grid-template-columns: repeat(4, 1fr); } }
.adm-stat { padding: 1rem; display: flex; flex-direction: column; gap: .3rem; text-decoration: none; transition: .15s; }
.adm-stat:hover { border-color: rgba(0,82,255,.35); transform: translateY(-1px); }
.adm-stat-warn { border-color: rgba(251,191,36,.35); background: rgba(251,191,36,.06); }
.adm-stat-label { font-size: .75rem; color: var(--muted); font-weight: 600; }
.adm-stat-value { font-size: 1.5rem; font-weight: 800; color: var(--white); }

.adm-section { padding: 1rem 1.15rem; }
.adm-section-head { display: flex; justify-content: space-between; align-items: center; gap: .75rem; margin-bottom: 1rem; flex-wrap: wrap; }
.adm-section-head h2 { font-size: 1rem; font-weight: 700; color: var(--white); margin: 0; }
.adm-count { font-size: .75rem; color: var(--muted); font-weight: 600; margin-left: .35rem; }
.adm-subtitle { font-size: .875rem; font-weight: 700; color: var(--white); margin: 0 0 .65rem; }

.adm-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
.adm-table { width: 100%; border-collapse: collapse; font-size: .8125rem; min-width: 480px; }
.adm-table th { padding: .65rem 1rem; text-align: left; color: var(--muted); font-weight: 600; background: var(--bg-elevated); border-bottom: 1px solid var(--border); white-space: nowrap; }
.adm-table td { padding: .7rem 1rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.adm-table tr:last-child td { border-bottom: none; }
.adm-actions { display: flex; flex-wrap: wrap; gap: .35rem; }
.adm-empty { padding: 1.5rem 1rem; text-align: center; color: var(--muted); font-size: .875rem; }
.adm-mono { font-family: ui-monospace, monospace; font-size: .75rem; }

.adm-toolbar { margin-bottom: .75rem; }
.adm-toolbar .nx-input { max-width: 100%; width: min(400px, 100%); }
.adm-form-inline { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; padding: 1rem; }
.adm-form-inline .nx-input { flex: 1; min-width: 140px; }
.adm-info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }

.adm-filter-bar, .adm-filter-bar.adm-filter-bar { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.adm-filter {
  padding: .45rem .85rem; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); color: var(--muted); font-size: .8125rem; font-weight: 600; cursor: pointer;
}
.adm-filter.active { border-color: var(--cb-blue); color: #fff; background: rgba(0,82,255,.12); }

.adm-kyc-list { display: flex; flex-direction: column; gap: .75rem; }
.adm-kyc-details {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem 1rem;
  margin-bottom: 1rem; padding: .85rem 1rem; border-radius: 10px;
  background: rgba(0,0,0,.2); border: 1px solid var(--border);
}
.adm-kyc-details div { display: flex; flex-direction: column; gap: .15rem; font-size: .8125rem; }
.adm-kyc-details strong { color: var(--white); font-weight: 600; }
.adm-kyc-docs {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .75rem; margin-bottom: 1rem;
}
.adm-kyc-doc { margin: 0; }
.adm-kyc-doc figcaption { font-size: .6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-bottom: .35rem; }
.adm-kyc-doc-link { display: block; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); background: #0a0b0f; }
.adm-kyc-doc-link img { display: block; width: 100%; height: 120px; object-fit: cover; transition: transform .2s; }
.adm-kyc-doc-link:hover img { transform: scale(1.03); }

.adm-card-pending { border-color: rgba(251,191,36,.3); }
.adm-card-table { min-width: 960px; }
.adm-card-table .adm-mono { font-size: .75rem; }

.adm-card-mobile-list { display: none; flex-direction: column; gap: .75rem; }
.adm-card-desktop-table { display: block; }
.adm-card-tile { padding: 1rem 1.1rem; border-color: rgba(99,102,241,.25); }
.adm-card-tile-head { display: flex; justify-content: space-between; align-items: flex-start; gap: .75rem; margin-bottom: .65rem; }
.adm-card-tile-user { font-weight: 700; color: var(--white); margin: 0 0 .2rem; font-size: .875rem; word-break: break-all; }
.adm-card-tile-meta { font-size: .75rem; color: var(--muted); margin: 0; }
.adm-card-tile-pan {
  font-size: 1.0625rem; font-weight: 800; letter-spacing: .08em; color: #c4b5fd;
  padding: .65rem .85rem; margin-bottom: .75rem; border-radius: 10px;
  background: rgba(99,102,241,.1); border: 1px dashed rgba(99,102,241,.35);
  word-break: break-all;
}
.adm-card-tile-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem .75rem;
  margin-bottom: .85rem; font-size: .8125rem;
}
.adm-card-tile-grid strong { display: block; color: var(--white); font-weight: 600; margin-top: .1rem; word-break: break-word; }
.adm-card-tile-actions { display: flex; flex-direction: column; gap: .5rem; }
.adm-card-tile-actions .btn { width: 100%; justify-content: center; min-height: 44px; }
.adm-kyc-card { padding: 1rem 1.15rem; }
.adm-kyc-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: .75rem; }
.adm-kyc-name { font-size: 1rem; font-weight: 700; color: var(--white); margin: 0 0 .25rem; }
.adm-doc-links { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .75rem; }
.adm-queue { list-style: none; padding: 0; margin: 0; }
.adm-queue li { display: flex; justify-content: space-between; gap: 1rem; padding: .65rem 0; border-bottom: 1px solid var(--border); font-size: .875rem; }
.adm-queue li:last-child { border-bottom: none; }

.adm-chat-layout { display: grid; grid-template-columns: minmax(0, 240px) minmax(0, 1fr); gap: 1rem; min-height: 420px; }
.adm-chat-list { overflow-y: auto; max-height: 520px; }
.adm-chat-item {
  display: flex; flex-direction: column; align-items: flex-start; gap: .15rem;
  width: 100%; padding: .75rem 1rem; border: none; border-bottom: 1px solid var(--border);
  background: transparent; color: inherit; text-align: left; cursor: pointer; font: inherit;
}
.adm-chat-item:hover { background: rgba(255,255,255,.04); }
.adm-chat-item.active { background: rgba(0,82,255,.1); border-left: 3px solid var(--cb-blue); }
.adm-chat-panel { display: flex; flex-direction: column; min-height: 400px; padding: 0; overflow: hidden; }
.adm-chat-head { display: flex; justify-content: space-between; align-items: center; padding: .85rem 1rem; border-bottom: 1px solid var(--border); }
.adm-chat-msgs { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .5rem; max-height: 320px; }
.adm-chat-msg { padding: .55rem .75rem; border-radius: 10px; max-width: 90%; font-size: .875rem; }
.adm-chat-user { align-self: flex-start; background: var(--bg-elevated); border: 1px solid var(--border); }
.adm-chat-agent { align-self: flex-end; background: rgba(0,82,255,.15); border: 1px solid rgba(0,82,255,.3); }
.adm-chat-ai, .adm-chat-system { align-self: flex-start; background: rgba(255,255,255,.04); color: var(--muted); font-size: .8125rem; }
.adm-chat-who { font-size: .625rem; font-weight: 700; color: var(--muted); display: block; margin-bottom: .15rem; text-transform: uppercase; }
.adm-chat-form { display: flex; gap: .5rem; padding: .85rem; border-top: 1px solid var(--border); }
.adm-chat-form .nx-input { flex: 1; min-width: 0; }

.adm-otp-form { padding: 1.25rem; display: flex; flex-direction: column; gap: 1rem; }

.adm-otp-feed { padding: 1rem 1.15rem; border-color: rgba(99,102,241,.35); background: linear-gradient(135deg, rgba(99,102,241,.08), rgba(0,82,255,.04)); }
.adm-otp-feed-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: .75rem; margin-bottom: .85rem; }
.adm-otp-feed-title { display: flex; align-items: center; gap: .45rem; font-size: 1rem; font-weight: 700; color: var(--white); margin: 0; }
.adm-otp-feed-sub { font-size: .75rem; color: var(--muted); margin: .35rem 0 0; }
.adm-otp-count { font-size: .6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #86efac; padding: .25rem .55rem; border-radius: 999px; background: rgba(52,211,153,.12); border: 1px solid rgba(52,211,153,.25); }
.adm-otp-empty { margin: 0; padding: .85rem 1rem; border-radius: 10px; background: rgba(0,0,0,.2); border: 1px dashed var(--border); color: var(--muted); font-size: .8125rem; text-align: center; }
.adm-otp-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .5rem; }
.adm-otp-item {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem;
  padding: .75rem 1rem; border-radius: 12px; background: rgba(0,0,0,.25); border: 1px solid var(--border);
}
.adm-otp-meta { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.adm-otp-email { font-size: .875rem; font-weight: 600; color: var(--white); word-break: break-all; }
.adm-otp-purpose { font-size: .6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #a5b4fc; }
.adm-otp-right { display: flex; flex-direction: column; align-items: flex-end; gap: .2rem; }
.adm-otp-code {
  font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1.35rem; font-weight: 800;
  letter-spacing: .25em; color: #c4b5fd; padding: .35rem .65rem; border-radius: 10px;
  background: rgba(99,102,241,.12); border: 1px dashed rgba(99,102,241,.4);
}
.adm-otp-timer { font-size: .6875rem; color: var(--muted); font-weight: 600; }

.adm-modal { max-width: 36rem; }

.admin-toast {
  position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%) translateY(120%);
  padding: .75rem 1.25rem; border-radius: 12px; font-weight: 600; font-size: .875rem; z-index: 400;
  background: rgba(52,211,153,.15); border: 1px solid rgba(52,211,153,.35); color: #86efac;
  transition: transform .25s ease; pointer-events: none;
}
.admin-toast-error { background: rgba(239,68,68,.12); border-color: rgba(239,68,68,.35); color: #fca5a5; }
.admin-toast.show { transform: translateX(-50%) translateY(0); }

@media (max-width: 991px) {
  .adm-layout { grid-template-columns: minmax(0, 1fr); }
  .adm-sidebar {
    position: static; height: auto; overflow: visible;
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .35rem;
    padding: .65rem; border-right: none; border-bottom: 1px solid var(--border);
  }
  .adm-brand { grid-column: 1 / -1; border-bottom: none; padding-bottom: .5rem; }
  .adm-nav { display: contents; }
  .adm-nav-link { flex-direction: column; text-align: center; padding: .5rem .35rem !important; font-size: .625rem; min-width: 0; }
  .adm-nav-desc { display: none; }
  .adm-nav-badge { position: absolute; top: 4px; right: 4px; min-width: 16px; height: 16px; font-size: .5625rem; }
  .adm-sidebar-foot { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; gap: .5rem; border-top: none; padding-top: 0; }
  .adm-main { padding: 1rem max(.75rem, env(safe-area-inset-right)) 1.5rem max(.75rem, env(safe-area-inset-left)); }
  .adm-page-head { flex-direction: column; gap: .5rem; }
  .adm-page-sub { font-size: .8125rem; }
  .adm-stats { grid-template-columns: repeat(2, 1fr); gap: .5rem; }
  .adm-stat-value { font-size: 1.25rem; }
  .adm-section { padding: .85rem; }
  .adm-section-head { flex-direction: column; align-items: flex-start; }
  .adm-otp-feed { padding: .85rem; }
  .adm-otp-item { flex-direction: column; align-items: flex-start; }
  .adm-otp-right { align-items: flex-start; width: 100%; flex-direction: row; justify-content: space-between; }
  .adm-otp-code { font-size: 1.125rem; letter-spacing: .15em; }
  .adm-kyc-details { grid-template-columns: 1fr; }
  .adm-kyc-docs { grid-template-columns: 1fr; }
  .adm-kyc-doc-link img { height: 160px; }
  .adm-card-mobile-list { display: flex; }
  .adm-card-desktop-table { display: none; }
  .adm-table-wrap { overflow: visible; }
  .adm-table.adm-card-table { min-width: 0; }
  .adm-table.adm-responsive-stack { min-width: 0; border: none; }
  .adm-table.adm-responsive-stack thead { display: none; }
  .adm-table.adm-responsive-stack tr {
    display: block; margin-bottom: .75rem; padding: .85rem;
    border: 1px solid var(--border); border-radius: 12px; background: var(--bg-elevated);
  }
  .adm-table.adm-responsive-stack td {
    display: flex; justify-content: space-between; gap: 1rem;
    padding: .4rem 0; border: none; text-align: right;
  }
  .adm-table.adm-responsive-stack td::before {
    content: attr(data-label);
    font-weight: 600; color: var(--muted); font-size: .75rem; text-align: left; flex-shrink: 0;
  }
  .adm-table.adm-responsive-stack td.adm-actions { flex-direction: column; align-items: stretch; }
  .adm-table.adm-responsive-stack td.adm-actions .btn { width: 100%; }
  .adm-chat-layout { grid-template-columns: 1fr; }
  .adm-chat-list { max-height: 200px; }
  .adm-form-inline { flex-direction: column; align-items: stretch; }
  .adm-form-inline .nx-input, .adm-form-inline .btn { width: 100%; }
  .adm-actions { flex-direction: column; width: 100%; }
  .adm-actions .btn { width: 100%; justify-content: center; }
}
