:root {
  --bg: #ffffff;
  --bg-alt: #f7f7f8;
  --ink: #191c1f;
  --ink-muted: #6b7280;
  --border: #e5e7eb;
  --primary: #191c1f;
  --accent: #494fdf;
  --teal: #00a87e;
  --danger: #e23b4a;
  --radius: 9999px;
  --card-radius: 16px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  height: 64px;
  gap: 32px;
}
.logo {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}
.logo span { color: var(--accent); }
.nav nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-muted);
}
.nav nav a:hover { color: var(--ink); }
.nav-cta { display: flex; gap: 12px; margin-left: 12px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 20px;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s, background 0.15s;
}
.btn:hover { opacity: 0.9; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-secondary { background: #f4f4f4; color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--border); }
.btn-lg { height: 48px; padding: 0 28px; font-size: 1rem; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-block { width: 100%; }
.btn-danger { background: var(--danger); color: #fff; }

/* Hero */
.hero {
  padding: 80px 0 96px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 20px;
}
.lead {
  font-size: 1.125rem;
  color: var(--ink-muted);
  max-width: 440px;
  margin-bottom: 32px;
}
.hero-actions { display: flex; gap: 12px; margin-bottom: 28px; }
.trust-row {
  display: flex;
  gap: 12px;
  font-size: 0.8125rem;
  color: var(--ink-muted);
  font-weight: 500;
}

.balance-card {
  background: var(--ink);
  color: #fff;
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 24px 48px rgba(0,0,0,0.12);
}
.balance-label { font-size: 0.875rem; opacity: 0.7; margin-bottom: 4px; }
.balance-amount { font-size: 2.25rem; font-weight: 700; letter-spacing: -0.03em; }
.balance-change { font-size: 0.9375rem; margin-top: 6px; }
.balance-change.positive { color: var(--teal); }
.mini-chart { margin: 24px 0 20px; height: 60px; }
.mini-chart svg { width: 100%; height: 100%; }
.asset-row { display: flex; gap: 16px; font-size: 0.8125rem; opacity: 0.85; }
.asset { display: flex; align-items: center; gap: 6px; }
.dot { width: 8px; height: 8px; border-radius: 50%; }
.dot.usdt { background: #26a17b; }
.dot.btc { background: #f7931a; }
.dot.eth { background: #627eea; }

/* Sections */
.section { padding: 80px 0; }
.section.alt { background: var(--bg-alt); }
.section h2 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}
.section-lead {
  color: var(--ink-muted);
  margin-bottom: 40px;
  max-width: 480px;
}

.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.tier-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  padding: 28px;
  position: relative;
  display: flex;
  flex-direction: column;
}
.tier-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
.tier-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: var(--radius);
}
.tier-name { font-size: 0.9375rem; font-weight: 500; color: var(--ink-muted); margin-bottom: 8px; }
.tier-rate {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}
.tier-rate span { font-size: 1rem; font-weight: 500; color: var(--ink-muted); }
.tier-card ul { margin-bottom: 24px; flex: 1; }
.tier-card li {
  font-size: 0.9375rem;
  padding: 6px 0;
  color: var(--ink-muted);
  border-bottom: 1px solid var(--border);
}
.tier-card li:last-child { border-bottom: none; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.feature-icon {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 12px;
}
.feature h3 { font-size: 1.0625rem; margin-bottom: 8px; }
.feature p { font-size: 0.9375rem; color: var(--ink-muted); }

.security-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.check-list li {
  padding: 10px 0;
  padding-left: 28px;
  position: relative;
  font-size: 1rem;
}
.check-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 16px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--teal);
}
.security-card {
  background: var(--ink);
  color: #fff;
  border-radius: 20px;
  padding: 32px;
  display: grid;
  gap: 24px;
}
.sec-stat strong { display: block; font-size: 1.75rem; letter-spacing: -0.02em; }
.sec-stat span { font-size: 0.875rem; opacity: 0.7; }

.cta-band {
  background: var(--ink);
  color: #fff;
  text-align: center;
  padding: 72px 0;
}
.cta-band h2 { font-size: 2rem; letter-spacing: -0.03em; margin-bottom: 12px; }
.cta-band p { color: rgba(255,255,255,0.7); margin-bottom: 28px; }
.cta-band .btn-primary { background: #fff; color: var(--ink); }

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
}
.footer-inner {
  display: flex;
  gap: 64px;
  margin-bottom: 40px;
}
.footer-brand { max-width: 240px; }
.footer-brand p { font-size: 0.875rem; color: var(--ink-muted); margin-top: 12px; }
.footer-links {
  display: flex;
  gap: 48px;
  margin-left: auto;
}
.footer-links h4 { font-size: 0.8125rem; font-weight: 500; margin-bottom: 12px; }
.footer-links a {
  display: block;
  font-size: 0.875rem;
  color: var(--ink-muted);
  padding: 4px 0;
}
.footer-links a:hover { color: var(--ink); }
.footer-bottom {
  font-size: 0.8125rem;
  color: var(--ink-muted);
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

/* Auth pages */
.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.auth-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
}
.auth-card {
  width: 100%;
  max-width: 400px;
}
.auth-card h1 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}
.auth-card .sub {
  color: var(--ink-muted);
  margin-bottom: 32px;
  font-size: 0.9375rem;
}
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  margin-bottom: 6px;
}
.form-group input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 0.9375rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
}
.form-group input:focus { border-color: var(--accent); }
.form-footer {
  margin-top: 24px;
  text-align: center;
  font-size: 0.875rem;
  color: var(--ink-muted);
}
.form-footer a { color: var(--accent); font-weight: 500; }

/* Dashboard */
.dash-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}
.sidebar {
  background: var(--ink);
  color: #fff;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
}
.sidebar .logo { color: #fff; margin-bottom: 32px; padding: 0 8px; }
.sidebar .logo span { color: #8b9cff; }
.side-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  margin-bottom: 4px;
}
.side-nav a:hover, .side-nav a.active {
  background: rgba(255,255,255,0.1);
  color: #fff;
}
.side-footer {
  margin-top: auto;
  padding: 12px 8px;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.5);
}
.dash-main { background: var(--bg-alt); }
.dash-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  height: 64px;
  display: flex;
  align-items: center;
  padding: 0 28px;
  justify-content: space-between;
}
.dash-header h1 { font-size: 1.125rem; font-weight: 500; }
.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  font-weight: 500;
}
.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 500;
}
.dash-content { padding: 28px; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
.stat-card {
  background: #fff;
  border-radius: 14px;
  padding: 20px;
  border: 1px solid var(--border);
}
.stat-card .label { font-size: 0.8125rem; color: var(--ink-muted); margin-bottom: 4px; }
.stat-card .value { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; }
.stat-card .delta { font-size: 0.8125rem; margin-top: 4px; }
.delta.up { color: var(--teal); }
.delta.down { color: var(--danger); }

.panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 20px;
}
.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.panel-header h2 { font-size: 1.0625rem; font-weight: 500; }

.table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.table th {
  text-align: left;
  font-weight: 500;
  color: var(--ink-muted);
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}
.table td {
  padding: 12px;
  border-bottom: 1px solid var(--border);
}
.table tr:last-child td { border-bottom: none; }
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
}
.badge-success { background: #e6f7f1; color: var(--teal); }
.badge-pending { background: #fff7e6; color: #d97706; }
.badge-locked { background: #fef2f2; color: var(--danger); }

/* Deposit / Withdraw */
.action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.wallet-box {
  background: var(--bg-alt);
  border-radius: 12px;
  padding: 16px;
  font-family: ui-monospace, monospace;
  font-size: 0.8125rem;
  word-break: break-all;
  margin: 12px 0 16px;
  border: 1px solid var(--border);
}
.copy-row { display: flex; gap: 8px; align-items: center; }
.fee-notice {
  background: #fef9e7;
  border: 1px solid #f5e6a3;
  border-radius: 12px;
  padding: 16px;
  font-size: 0.875rem;
  margin-top: 16px;
}
.fee-notice strong { display: block; margin-bottom: 4px; }
.fee-ladder {
  margin-top: 20px;
}
.fee-step {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
}
.fee-step:last-child { border-bottom: none; }
.fee-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* Fees page */
.fees-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 24px;
}
.fees-table th, .fees-table td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 0.9375rem;
}
.fees-table th {
  background: var(--bg-alt);
  font-weight: 500;
  color: var(--ink-muted);
}
.fees-table tr:last-child td { border-bottom: none; }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid, .security-grid, .action-grid, .dash-layout { grid-template-columns: 1fr; }
  .tier-grid, .feature-grid, .stat-grid { grid-template-columns: 1fr 1fr; }
  .nav nav { display: none; }
  .sidebar { display: none; }
  .footer-inner { flex-direction: column; }
  .footer-links { margin-left: 0; }
}
@media (max-width: 560px) {
  .tier-grid, .feature-grid, .stat-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
}

/* Live banner */
.live-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 10px 16px;
  border-radius: 10px;
  margin-bottom: 20px;
}
.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16,185,129,0.5);
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(16,185,129,0.5); }
  70% { box-shadow: 0 0 0 8px rgba(16,185,129,0); }
  100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); }
}
.stat-card.highlight {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
.fomo-panel {
  background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
  border-color: #c7d2fe;
}
.fee-step {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
}
.fee-step:last-child { border-bottom: none; }
.fee-step.current {
  background: #f8fafc;
  margin: 0 -12px;
  padding: 16px 12px;
  border-radius: 10px;
  border-bottom: none;
}
.fee-step.done .fee-num {
  background: var(--teal);
}
.fee-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}


/* Review marquee */
.review-marquee-wrap {
  overflow: hidden;
  background: #0f1115;
  color: #fff;
  padding: 14px 0;
  border-top: 1px solid #222;
  border-bottom: 1px solid #222;
  margin: 0;
}
.review-marquee {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: marquee 120s linear infinite;
  font-size: 0.875rem;
  white-space: nowrap;
}
.review-item {
  opacity: 0.9;
}
.review-item strong {
  color: #a5b4fc;
  font-weight: 500;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-33.333%); }
}
.review-marquee-wrap:hover .review-marquee {
  animation-play-state: paused;
}

/* FAQ */
.faq-list { margin-top: 8px; }
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  padding: 18px 0;
  cursor: pointer;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-q::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--ink-muted);
  transition: transform 0.2s;
}
.faq-item.open .faq-q::after {
  content: '−';
}
.faq-a {
  display: none;
  font-size: 0.9375rem;
  color: var(--ink-muted);
  line-height: 1.6;
  padding: 0 0 18px;
}
.faq-item.open .faq-a {
  display: block;
}

/* FAQ dark */
.faq-section {
  background: #0f1115;
  color: #fff;
}
.faq-section h2 { color: #fff; }
.faq-section .section-lead { color: rgba(255,255,255,0.65); }
.faq-section .faq-item { border-bottom-color: rgba(255,255,255,0.12); }
.faq-section .faq-q { color: #fff; }
.faq-section .faq-q::after { color: rgba(255,255,255,0.5); }
.faq-section .faq-a { color: rgba(255,255,255,0.75); }

/* Dashboard polish — closer to exchange dark */
.dash-main { background: #0b0d10; }
.dash-header { background: #12151a; border-bottom-color: #1e2229; color: #fff; }
.dash-header h1 { color: #fff; }
.stat-card {
  background: #161a21;
  border-color: #252a33;
  color: #fff;
}
.stat-card .label { color: rgba(255,255,255,0.55); }
.stat-card .value { color: #fff; }
.panel {
  background: #161a21;
  border-color: #252a33;
  color: #fff;
}
.panel-header h2 { color: #fff; }
.table th { color: rgba(255,255,255,0.5); border-bottom-color: #252a33; }
.table td { border-bottom-color: #252a33; color: rgba(255,255,255,0.9); }
.user-chip { color: #fff; }
.live-banner {
  background: rgba(16,185,129,0.12);
  border-color: rgba(16,185,129,0.3);
  color: #6ee7b7;
}
.fomo-panel {
  background: linear-gradient(135deg, #161a21 0%, #1a1f2e 100%);
  border-color: #2d3548;
}
.fee-notice { background: #1c1917; border-color: #44403c; color: #e7e5e4; }
.wallet-box { background: #0f1115; border-color: #252a33; color: #a5b4fc; }

/* Readability */
body, .dash-main, .panel, .stat-card { color: #e8eaed; }
.dash-main { background: #0c0e12; }
.stat-card .label, .panel-header p, .section-lead, .fee-desc, .fee-hint { color: #9aa0a6; }
.stat-card .value, .panel-header h2, h1, h2, h3 { color: #f1f3f4; }
.table td { color: #e8eaed; }
.table th { color: #9aa0a6; }
a { color: #8ab4f8; }
.btn-primary { background: #1a73e8; color: #fff; border-radius: 8px; }
.btn-primary:hover { background: #1765cc; }
.btn-secondary { background: #2d3139; color: #e8eaed; }
.btn-ghost { background: transparent; color: #e8eaed; border: 1px solid #3c4043; }
.btn-accent { background: #1a73e8; }
.btn-danger { background: #d93025; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 0.8125rem; }

/* Single fee step */
.fee-single { padding: 8px 0 16px; }
.fee-single-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: #9aa0a6; margin-bottom: 8px; }
.fee-single h3 { font-size: 1.25rem; margin: 0 0 8px; color: #f1f3f4; }
.fee-desc { font-size: 0.9375rem; color: #9aa0a6; margin-bottom: 20px; line-height: 1.5; }
.fee-due { display: flex; justify-content: space-between; align-items: baseline; background: #161a21; border: 1px solid #2d3139; border-radius: 8px; padding: 16px 18px; margin-bottom: 16px; }
.fee-due span { color: #9aa0a6; font-size: 0.875rem; }
.fee-due strong { font-size: 1.5rem; color: #f1f3f4; font-weight: 600; }
.fee-hint { font-size: 0.8125rem; color: #9aa0a6; margin-top: 12px; text-align: center; }
.fee-done-msg { text-align: center; padding: 24px 8px; }
.fee-done-msg h3 { margin-bottom: 8px; }
.fee-done-msg p { color: #9aa0a6; margin-bottom: 20px; }

/* NowPayments modal */
.np-modal {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.72);
  z-index: 1000;
  align-items: center; justify-content: center;
  padding: 16px;
}
.np-card {
  background: #161a21;
  border: 1px solid #2d3139;
  border-radius: 12px;
  width: 100%; max-width: 400px;
  overflow: hidden;
}
.np-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid #2d3139;
  background: #12151a;
}
.np-brand { font-weight: 600; font-size: 0.9375rem; color: #f1f3f4; letter-spacing: 0.02em; }
.np-close { background: none; border: none; color: #9aa0a6; font-size: 1.5rem; cursor: pointer; line-height: 1; }
.np-body { padding: 20px 18px 22px; text-align: center; }
.np-status { font-size: 0.8125rem; color: #f9ab00; margin-bottom: 8px; }
.np-amount { font-size: 1.75rem; font-weight: 600; color: #f1f3f4; }
.np-asset { font-size: 0.8125rem; color: #9aa0a6; margin-bottom: 18px; }
.np-addr-label { font-size: 0.75rem; color: #9aa0a6; margin-bottom: 6px; }
.np-addr {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.8125rem;
  background: #0c0e12;
  border: 1px solid #2d3139;
  border-radius: 8px;
  padding: 12px;
  word-break: break-all;
  color: #8ab4f8;
  margin-bottom: 10px;
}
.np-invoice { font-size: 0.75rem; color: #9aa0a6; margin: 14px 0 6px; }
.np-note { font-size: 0.75rem; color: #9aa0a6; margin-bottom: 16px; line-height: 1.4; }
