/* ─── CSS VARIABLES ─────────────────────────────── */
:root {
  --bg:          #0a0b0f;
  --bg2:         #111318;
  --bg3:         #181b22;
  --card:        #13161e;
  --card2:       #1a1e28;
  --border:      rgba(255,255,255,0.08);
  --border2:     rgba(255,255,255,0.12);

  --accent:      #6c63ff;
  --accent2:     #8b85ff;
  --green:       #00e676;
  --red:         #ff5252;
  --yellow:      #ffd740;
  --orange:      #ff9100;

  --text:        #f0f0f5;
  --text2:       #a0a4b8;
  --text3:       #6b7080;

  --font:        'Inter', sans-serif;
  --radius:      12px;
  --radius-lg:   20px;
  --shadow:      0 8px 32px rgba(0,0,0,0.4);
  --shadow-glow: 0 0 40px rgba(108,99,255,0.15);
}

/* ─── RESET ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
input, select, button { font-family: var(--font); }
input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; }

/* ─── UTILITIES ─────────────────────────────────── */
.hidden { display: none !important; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.green { color: var(--green); }
.muted  { color: var(--text2); }
.mt-8   { margin-top: 8px; }

/* ─── BUTTONS ───────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #9c8cff);
  color: #fff;
  box-shadow: 0 4px 20px rgba(108,99,255,0.35);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(108,99,255,0.5);
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border2);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent2); }
.btn-accent {
  background: linear-gradient(135deg, var(--green), #00c853);
  color: #000;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(0,230,118,0.25);
}
.btn-accent:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(0,230,118,0.4);
}
.btn-lg { padding: 14px 32px; font-size: 16px; border-radius: 14px; }
.btn-full { width: 100%; margin-top: 10px; padding: 15px; font-size: 16px; }

/* ─── NAVBAR ─────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,11,15,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
}
.logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--accent), #9c8cff);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.nav-links { display: flex; gap: 32px; }
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text2);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-cta { font-size: 13px; padding: 9px 18px; }

/* ─── HERO ───────────────────────────────────────── */
.hero {
  position: relative;
  padding: 100px 24px 80px;
  text-align: center;
  overflow: hidden;
}
.hero-bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(108,99,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(108,99,255,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px; left: 50%; transform: translateX(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(108,99,255,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; }
.hero-badge {
  display: inline-block;
  background: rgba(108,99,255,0.15);
  border: 1px solid rgba(108,99,255,0.3);
  color: var(--accent2);
  padding: 6px 18px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 800;
  line-height: 1.1;
  background: linear-gradient(135deg, #fff 30%, var(--accent2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
}
.hero-sub {
  font-size: 18px;
  color: var(--text2);
  max-width: 540px;
  margin: 0 auto 36px;
}
.hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  margin-top: 48px;
  flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-num { display: block; font-size: 28px; font-weight: 800; color: var(--text); }
.stat-label { font-size: 13px; color: var(--text3); }
.stat-divider { width: 1px; height: 40px; background: var(--border); }

/* ─── TICKER ─────────────────────────────────────── */
.ticker-wrap {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  overflow: hidden;
}
.ticker {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  padding: 0 24px;
}
.ticker-item {
  display: flex;
  align-items: center;
  gap: 10px;
}
.coin-icon {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  font-weight: 700;
}
.coin-icon.btc  { background: rgba(247,147,26,0.15); color: #f7931a; }
.coin-icon.eth  { background: rgba(98,126,234,0.15); color: #627eea; }
.coin-icon.usdt { background: rgba(38,161,123,0.15); color: #26a17b; }
.coin-icon.sol  { background: rgba(153,69,255,0.15); color: #9945ff; }
.coin-name { font-weight: 700; font-size: 15px; }
.coin-price { font-size: 15px; font-weight: 600; }
.coin-change { font-size: 13px; font-weight: 600; }
.coin-change.up   { color: var(--green); }
.coin-change.down { color: var(--red); }

/* ─── SECTIONS ───────────────────────────────────── */
.section { padding: 80px 0; }
.alt-section { background: var(--bg2); }
.section-header {
  text-align: center;
  margin-bottom: 52px;
}
.section-header h2 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 10px;
}
.section-header p { color: var(--text2); font-size: 17px; }

/* ─── EXCHANGE LAYOUT ────────────────────────────── */
.exchange-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 28px;
  align-items: start;
}
@media (max-width: 800px) {
  .exchange-layout { grid-template-columns: 1fr; }
}

/* ─── EXCHANGE CARD ──────────────────────────────── */
.exchange-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow), var(--shadow-glow);
}

/* Direction Toggle */
.direction-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: var(--bg3);
  border-radius: var(--radius);
  padding: 6px;
  margin-bottom: 28px;
}
.dir-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border: none;
  background: transparent;
  color: var(--text2);
  font-size: 14px;
  font-weight: 600;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.2s;
}
.dir-btn.active {
  background: var(--card2);
  color: var(--text);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.dir-btn:hover:not(.active) { color: var(--text); }

/* Form Steps */
.form-step { margin-bottom: 22px; }
.step-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text2);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.step-num {
  width: 22px; height: 22px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.input-field {
  width: 100%;
  background: var(--bg3);
  border: 1.5px solid var(--border);
  color: var(--text);
  border-radius: var(--radius);
  padding: 13px 16px;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
}
.input-field:focus { border-color: var(--accent); }
.input-field::placeholder { color: var(--text3); }
select.input-field {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b7080' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.amount-wrap { position: relative; }
.currency-label {
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  font-weight: 600;
  color: var(--text3);
  pointer-events: none;
}
.amount-input { padding-left: 52px; }

/* Payment Grid */
.payment-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.pay-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 8px;
  background: var(--bg3);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  color: var(--text2);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.pay-btn:hover { border-color: var(--border2); color: var(--text); }
.pay-btn.active {
  border-color: var(--accent);
  background: rgba(108,99,255,0.1);
  color: var(--text);
}
.pay-logo {
  width: 36px; height: 36px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  font-weight: 800;
}
.cashapp { background: rgba(0,220,130,0.15); color: #00dc82; }
.venmo   { background: rgba(0,133,247,0.15); color: #0085f7; }
.paypal  { background: rgba(0,112,243,0.15); color: #0070f3; }
.zelle   { background: rgba(110,45,255,0.15); color: #6e2dff; }
.apple   { background: rgba(255,255,255,0.08); }
.bank    { background: rgba(255,193,7,0.1); }

/* Quote Box */
.quote-box {
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 18px;
  margin: 16px 0;
}
.quote-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 14px;
  color: var(--text2);
  border-bottom: 1px solid var(--border);
}
.quote-row:last-of-type { border-bottom: none; }
.quote-val { font-weight: 700; color: var(--text); font-size: 15px; }
.quote-val.green { color: var(--green); }
.quote-val.muted { color: var(--text2); font-size: 13px; font-weight: 500; }
.quote-expire {
  text-align: center;
  font-size: 12px;
  color: var(--yellow);
  margin-top: 10px;
  font-weight: 600;
}

/* Error */
.error-msg {
  background: rgba(255,82,82,0.1);
  border: 1px solid rgba(255,82,82,0.3);
  color: var(--red);
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  margin-top: 12px;
}

/* ─── SIDEBAR ────────────────────────────────────── */
.exchange-sidebar { display: flex; flex-direction: column; gap: 16px; }
.sidebar-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
}
.sidebar-card h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--text);
}
.feature-list li {
  padding: 6px 0;
  font-size: 13.5px;
  color: var(--text2);
  border-bottom: 1px solid var(--border);
}
.feature-list li:last-child { border-bottom: none; }
.limits-table { display: flex; flex-direction: column; gap: 8px; }
.limit-row {
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
  color: var(--text2);
}
.limit-row span:last-child { font-weight: 700; color: var(--text); }

/* ─── MODAL ──────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal {
  background: var(--card);
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 480px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow);
}
.modal-icon { font-size: 48px; margin-bottom: 12px; }
.modal h2 { font-size: 26px; font-weight: 800; margin-bottom: 8px; }
.modal-sub { color: var(--text2); margin-bottom: 12px; }
.order-id-badge {
  display: inline-block;
  background: rgba(108,99,255,0.15);
  border: 1px solid rgba(108,99,255,0.4);
  color: var(--accent2);
  font-size: 24px;
  font-weight: 800;
  padding: 10px 28px;
  border-radius: var(--radius);
  letter-spacing: 4px;
  margin-bottom: 20px;
}
.modal-instructions {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  font-size: 14px;
  color: var(--text2);
  text-align: left;
  line-height: 1.7;
  margin-bottom: 16px;
}
.modal-details {
  font-size: 13px;
  color: var(--text3);
  margin-bottom: 20px;
}

/* ─── HOW IT WORKS ───────────────────────────────── */
.steps-grid {
  display: flex;
  align-items: flex-start;
  gap: 0;
  justify-content: center;
}
.step-card {
  flex: 1;
  max-width: 300px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
}
.step-card:hover { border-color: var(--border2); }
.step-icon { font-size: 40px; margin-bottom: 8px; }
.step-number {
  font-size: 11px;
  font-weight: 800;
  color: var(--accent2);
  letter-spacing: 1px;
  margin-bottom: 12px;
}
.step-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.step-card p { font-size: 14px; color: var(--text2); line-height: 1.7; }
.step-connector {
  font-size: 24px;
  color: var(--text3);
  padding: 0 4px;
  margin-top: 80px;
  flex-shrink: 0;
}
@media (max-width: 760px) {
  .steps-grid { flex-direction: column; align-items: center; }
  .step-connector { transform: rotate(90deg); margin: 4px 0; }
}

/* ─── PAYMENT SHOWCASE ───────────────────────────── */
.payments-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
}
.payment-showcase-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  transition: all 0.2s;
}
.payment-showcase-item:hover {
  border-color: var(--border2);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.psi-logo {
  width: 56px; height: 56px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  font-weight: 800;
  margin: 0 auto 14px;
}
.cashapp-bg { background: rgba(0,220,130,0.12); color: #00dc82; }
.venmo-bg   { background: rgba(0,133,247,0.12); color: #0085f7; }
.paypal-bg  { background: rgba(0,112,243,0.12); color: #0070f3; }
.zelle-bg   { background: rgba(110,45,255,0.12); color: #6e2dff; }
.apple-bg   { background: rgba(255,255,255,0.07); }
.bank-bg    { background: rgba(255,193,7,0.1); }
.payment-showcase-item h4 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.payment-showcase-item p  { font-size: 13px; color: var(--text2); line-height: 1.5; }

/* ─── TRACK ORDER ────────────────────────────────── */
.track-box { max-width: 540px; margin: 0 auto; }
.track-input-row {
  display: flex;
  gap: 12px;
}
.track-input-row .input-field { flex: 1; }
.track-result {
  margin-top: 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.status-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.status-pending    { background: rgba(255,215,64,0.15); color: var(--yellow); }
.status-processing { background: rgba(108,99,255,0.15); color: var(--accent2); }
.status-completed  { background: rgba(0,230,118,0.15);  color: var(--green); }
.status-cancelled  { background: rgba(255,82,82,0.15);  color: var(--red); }
.track-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text2);
}
.track-row:last-child { border-bottom: none; }
.track-row span:last-child { color: var(--text); font-weight: 600; }

/* ─── FOOTER ─────────────────────────────────────── */
.footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 48px 24px 32px;
  text-align: center;
}
.footer-inner { max-width: 600px; margin: 0 auto; }
.footer-logo {
  font-size: 22px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
}
.footer-tagline { color: var(--text2); font-size: 14px; margin-bottom: 20px; }
.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.footer-links a {
  font-size: 13px;
  color: var(--text3);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text2); }
.footer-disclaimer {
  font-size: 12px;
  color: var(--text3);
  line-height: 1.7;
  margin-bottom: 12px;
  padding: 12px;
  background: rgba(255,215,64,0.05);
  border: 1px solid rgba(255,215,64,0.1);
  border-radius: var(--radius);
}
.footer-copy { font-size: 12px; color: var(--text3); }

/* ─── RESPONSIVE ─────────────────────────────────── */
@media (max-width: 640px) {
  .nav-links { display: none; }
  .hero { padding: 70px 24px 60px; }
  .payment-grid { grid-template-columns: repeat(2, 1fr); }
  .input-row { grid-template-columns: 1fr; }
  .hero-stats { gap: 20px; }
  .stat-divider { display: none; }
  .track-input-row { flex-direction: column; }
}
