/* ============================================================
   WINSEND – Design System
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --gold:        #F5A623;
  --gold-dark:   #D4881A;
  --gold-light:  #FFD166;
  --gold-pale:   rgba(245,166,35,0.12);
  --green:       #2ECC71;
  --green-dark:  #27AE60;
  --blue:        #3498DB;
  --red:         #E74C3C;
  --orange:      #F39C12;

  --bg:          #080C10;
  --bg2:         #0E1318;
  --bg3:         #141A22;
  --bg4:         #1B2330;
  --border:      rgba(255,255,255,0.08);
  --border2:     rgba(245,166,35,0.25);
  --text:        #EDF2F7;
  --muted:       #718096;
  --muted2:      #4A5568;

  --radius-sm:   8px;
  --radius:      14px;
  --radius-lg:   20px;
  --radius-xl:   28px;

  --shadow:      0 8px 40px rgba(0,0,0,0.6);
  --shadow-gold: 0 4px 24px rgba(245,166,35,0.35);
  --shadow-card: 0 2px 16px rgba(0,0,0,0.4);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
.hidden { display: none !important; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--bg4); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-dark); }

/* ── NAVBAR ── */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(8,12,16,0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 28px;
}
.nav-container {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
}
.logo img { height: 36px; }
.logo-text { font-size: 24px; font-weight: 900; }
.logo-win { color: var(--gold); }
.logo-send { color: var(--text); }
.nav-links { display: flex; gap: 32px; }
.nav-links a {
  color: var(--muted); text-decoration: none;
  font-size: 14px; font-weight: 500;
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 2px; background: var(--gold);
  border-radius: 1px; transition: width 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }
.nav-auth { display: flex; gap: 10px; align-items: center; }
.nav-user { display: flex; align-items: center; gap: 14px; }
.user-chip {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 50px; padding: 6px 14px 6px 6px;
  font-size: 13px;
}
.user-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; color: var(--bg);
}
.user-chip strong { color: var(--gold); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 22px; border: none; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600; cursor: pointer;
  transition: all 0.2s; text-decoration: none; white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--bg); box-shadow: var(--shadow-gold);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(245,166,35,0.5); }
.btn-primary:active { transform: translateY(0); }
.btn-outline {
  background: transparent;
  border: 1px solid var(--border); color: var(--muted);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--text); background: var(--bg3); }
.btn-danger { background: var(--red); color: white; }
.btn-success { background: var(--green-dark); color: white; }
.btn-full { width: 100%; padding: 14px; font-size: 15px; }
.btn-lg { padding: 14px 32px; font-size: 16px; border-radius: var(--radius); }
.btn-sm { padding: 6px 14px; font-size: 12px; }
.btn-paypal {
  background: #FFC439; color: #003087;
  font-weight: 800; font-size: 15px;
  margin-bottom: 10px;
}
.btn-paypal:hover { background: #f0b429; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255,196,57,0.4); }

/* ── HERO ── */
.hero {
  position: relative; overflow: hidden;
  padding: 90px 28px 70px; min-height: calc(100vh - 68px);
  display: flex; align-items: center;
}
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 900px 600px at 70% 40%, rgba(245,166,35,0.10) 0%, transparent 70%),
    radial-gradient(ellipse 600px 400px at 10% 70%, rgba(46,204,113,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 400px 300px at 90% 80%, rgba(52,152,219,0.05) 0%, transparent 60%);
}
/* Floating orbs */
.hero-bg::before {
  content: '';
  position: absolute; top: 15%; left: 60%;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(245,166,35,0.08) 0%, transparent 70%);
  animation: float 8s ease-in-out infinite;
}
.hero-bg::after {
  content: '';
  position: absolute; bottom: 10%; left: 5%;
  width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(46,204,113,0.06) 0%, transparent 70%);
  animation: float 10s ease-in-out infinite reverse;
}
@keyframes float {
  0%,100% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}


.hero-content {
  position: relative; max-width: 1200px; margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1fr 430px; gap: 64px; align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gold-pale); border: 1px solid var(--border2);
  color: var(--gold); padding: 7px 18px; border-radius: 50px;
  font-size: 13px; font-weight: 600; margin-bottom: 24px;
  animation: fadeDown 0.6s ease;
}
.hero h1 {
  font-size: clamp(38px, 5.5vw, 62px);
  font-weight: 900; line-height: 1.07;
  letter-spacing: -1.5px; margin-bottom: 20px;
  animation: fadeDown 0.7s ease;
}
.gradient-text {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-size: 200% auto; animation: shimmer 3s linear infinite;
}
@keyframes shimmer { to { background-position: 200% center; } }
.hero p {
  font-size: 18px; color: var(--muted); line-height: 1.7;
  max-width: 480px; margin-bottom: 36px;
  animation: fadeDown 0.8s ease;
}
.hero-stats {
  display: flex; gap: 36px;
  animation: fadeDown 0.9s ease;
}
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat-num { font-size: 32px; font-weight: 900; color: var(--gold); line-height: 1; }
.stat-label { font-size: 12px; color: var(--muted); font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; }

@keyframes fadeDown { from { opacity: 0; transform: translateY(-16px); } to { opacity: 1; transform: translateY(0); } }

/* ── CALCULATOR CARD ── */
.calc-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow);
  animation: fadeUp 0.8s ease;
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
.calc-header {
  background: linear-gradient(135deg, #1A1200, #2A1E00);
  border-bottom: 1px solid var(--border2);
  padding: 20px 24px;
  display: flex; justify-content: space-between; align-items: center;
}
.calc-header-left { display: flex; align-items: center; gap: 12px; }
.calc-header-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.calc-header h3 { font-size: 15px; font-weight: 700; color: var(--text); }
.calc-header p { font-size: 12px; color: var(--muted); }
.rate-pill {
  background: rgba(245,166,35,0.15);
  border: 1px solid var(--border2);
  color: var(--gold); padding: 5px 12px;
  border-radius: 50px; font-size: 12px; font-weight: 700;
}
.calc-body { padding: 24px; }
.dir-toggle {
  display: flex; background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 4px;
  margin-bottom: 22px; gap: 4px;
}
.dir-btn {
  flex: 1; padding: 9px 8px; border: none;
  border-radius: 6px; background: transparent;
  color: var(--muted); font-size: 12px; font-weight: 600;
  cursor: pointer; transition: all 0.2s; text-align: center;
}
.dir-btn.active {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--bg); box-shadow: 0 2px 8px rgba(245,166,35,0.4);
}
.dest-tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.dest-tab {
  flex: 1; padding: 9px 12px; border-radius: 10px;
  border: 1.5px solid var(--border);
  background: transparent; color: var(--muted);
  font-size: 13px; font-weight: 700; cursor: pointer; transition: all 0.2s;
}
.dest-tab.active {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--bg); border-color: var(--gold);
  box-shadow: 0 2px 8px rgba(245,166,35,0.35);
}
.calc-row { margin-bottom: 16px; }
.calc-row label { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px; }
.input-currency {
  display: flex; align-items: center;
  background: var(--bg3); border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); overflow: hidden;
  transition: border-color 0.2s;
}
.input-currency:focus-within { border-color: var(--gold); }
.currency-flag {
  display: flex; align-items: center; gap: 6px;
  padding: 12px 14px; font-size: 18px;
  background: rgba(255,255,255,0.04);
  border-right: 1px solid var(--border);
  white-space: nowrap;
}
.currency-code { font-size: 11px; font-weight: 700; color: var(--muted); }
.input-currency input {
  flex: 1; background: none; border: none; outline: none;
  color: var(--text); font-size: 18px; font-weight: 700;
  padding: 12px 16px; width: 100%;
  font-family: 'Inter', sans-serif;
}
.input-currency input::placeholder { color: var(--muted2); font-weight: 400; font-size: 16px; }
.input-currency input[readonly] { color: var(--green); }
.calc-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 4px 0 4px; color: var(--muted2); font-size: 12px;
}
.calc-divider::before, .calc-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}
.calc-result {
  background: linear-gradient(135deg, rgba(46,204,113,0.08), rgba(39,174,96,0.04));
  border: 1px solid rgba(46,204,113,0.2);
  border-radius: var(--radius-sm); padding: 14px 16px;
  margin-bottom: 18px; font-size: 13px; line-height: 1.9;
  color: var(--muted);
}
.calc-result .highlight { color: var(--green); font-weight: 700; font-size: 15px; }
.calc-result .amount { color: var(--gold); font-weight: 600; }

/* ── TRUST BADGES ── */
.trust-row {
  display: flex; justify-content: space-around;
  padding: 16px 24px; background: var(--bg3);
  border-top: 1px solid var(--border);
}
.trust-item { text-align: center; }
.trust-num { font-size: 15px; font-weight: 800; color: var(--gold); }
.trust-label { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; }

/* ── SECTIONS ── */
.section { padding: 90px 28px; }
.section-dark { background: var(--bg2); }
.container { max-width: 1200px; margin: 0 auto; }
.section-tag {
  display: inline-block; background: var(--gold-pale); border: 1px solid var(--border2);
  color: var(--gold); padding: 5px 14px; border-radius: 50px;
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(28px, 4vw, 42px); font-weight: 900;
  letter-spacing: -1px; margin-bottom: 14px;
}
.section-sub { color: var(--muted); font-size: 17px; max-width: 580px; margin-bottom: 52px; }
.centered { text-align: center; }
.centered .section-sub { margin: 0 auto 52px; }

/* ── STEPS ── */
.steps {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2px; background: var(--border); border-radius: var(--radius-lg);
  overflow: hidden;
}
.step {
  background: var(--bg2); padding: 36px 28px;
  position: relative; transition: background 0.2s;
}
.step:hover { background: var(--bg3); }
.step-num {
  font-size: 64px; font-weight: 900; line-height: 1;
  color: var(--bg4); margin-bottom: 16px;
  font-variant-numeric: tabular-nums;
}
.step-icon { font-size: 28px; margin-bottom: 12px; display: block; }
.step h4 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--muted); line-height: 1.6; }
.step::after {
  content: attr(data-step);
  position: absolute; top: 24px; right: 24px;
  font-size: 11px; font-weight: 700; color: var(--gold);
  background: var(--gold-pale); border: 1px solid var(--border2);
  padding: 3px 10px; border-radius: 50px;
}

/* ── RATE SECTION ── */
.rate-showcase {
  background: linear-gradient(135deg, var(--bg3), var(--bg4));
  border: 1px solid var(--border); border-radius: var(--radius-xl);
  padding: 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  align-items: center;
}
.rate-big { font-size: clamp(48px, 6vw, 72px); font-weight: 900; color: var(--gold); line-height: 1; }
.rate-eq { font-size: 20px; color: var(--muted); margin-top: 8px; }
.rate-details { display: flex; flex-direction: column; gap: 12px; }
.rate-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px; background: var(--bg2); border-radius: var(--radius-sm);
  font-size: 14px;
}
.rate-row span:first-child { color: var(--muted); }
.rate-row span:last-child { font-weight: 700; color: var(--text); }
.rate-row.highlight span:last-child { color: var(--green); }

/* ── REFERRAL SECTION ── */
.referral-banner {
  background: linear-gradient(135deg, rgba(245,166,35,0.12) 0%, rgba(212,136,26,0.08) 100%);
  border: 1px solid var(--border2); border-radius: var(--radius-xl);
  padding: 48px; display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center;
}
.referral-steps { display: flex; gap: 0; margin-top: 28px; }
.ref-step {
  flex: 1; text-align: center; padding: 20px 12px;
  position: relative;
}
.ref-step::after {
  content: '→'; position: absolute; top: 50%; right: -8px;
  transform: translateY(-50%); color: var(--gold); font-size: 18px;
}
.ref-step:last-child::after { display: none; }
.ref-step-icon { font-size: 28px; margin-bottom: 8px; display: block; }
.ref-step h5 { font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.ref-step p { font-size: 12px; color: var(--muted); }
.referral-reward-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px; text-align: center;
  min-width: 200px;
}
.reward-amount { font-size: 48px; font-weight: 900; color: var(--gold); line-height: 1; }
.reward-label { font-size: 14px; color: var(--muted); margin-top: 6px; }
.reward-note { font-size: 12px; color: var(--muted2); margin-top: 8px; }

/* ── FREE SECTION ── */
.free-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 24px;
}
.free-card {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px 24px; text-align: center;
  transition: border-color .2s, transform .2s;
}
.free-card:hover { border-color: var(--gold); transform: translateY(-4px); }
.free-card.highlight {
  border-color: var(--border2);
  background: linear-gradient(135deg, rgba(245,166,35,.08), rgba(212,136,26,.04));
}
.free-icon { font-size: 36px; margin-bottom: 14px; }
.free-card h4 { font-size: 16px; font-weight: 700; margin-bottom: 8px; color: var(--gold); }
.free-card p { font-size: 14px; color: var(--muted); line-height: 1.7; }

/* ── FREE BADGE ── */
.free-badge-row { margin: 18px 0 22px; }
.free-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, rgba(46,204,113,.15), rgba(39,174,96,.08));
  border: 1.5px solid rgba(46,204,113,.35);
  color: var(--green); font-size: 15px; font-weight: 700;
  padding: 10px 22px; border-radius: 40px;
  animation: pulse-green 2.5s ease-in-out infinite;
}
@keyframes pulse-green {
  0%,100% { box-shadow: 0 0 0 0 rgba(46,204,113,.3); }
  50%      { box-shadow: 0 0 0 8px rgba(46,204,113,0); }
}

/* ── CONTACT ── */
.contact-grid {
  display: grid; grid-template-columns: repeat(2,1fr);
  gap: 20px; max-width: 560px; margin: 0 auto;
}
.centered-grid { margin: 0 auto; }
.contact-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px 24px; text-align: center;
  transition: border-color 0.2s, transform 0.2s;
}
.contact-card:hover { border-color: var(--gold); transform: translateY(-4px); }
.contact-icon {
  width: 56px; height: 56px; border-radius: 16px;
  background: var(--gold-pale); border: 1px solid var(--border2);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin: 0 auto 16px;
}
.contact-card h4 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.contact-card p { font-size: 14px; color: var(--muted); }

/* ── FOOTER ── */
.footer {
  background: var(--bg2); border-top: 1px solid var(--border);
  padding: 56px 28px 28px; color: var(--muted); font-size: 13px;
}
.footer-top {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px; max-width: 1200px; margin: 0 auto 36px;
}
.footer-brand p { line-height: 1.7; }
.footer-links-col h5 {
  font-size: 13px; font-weight: 700; color: var(--text);
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 14px;
}
.footer-links-col a {
  display: block; color: var(--muted); text-decoration: none;
  font-size: 14px; margin-bottom: 8px; transition: color .2s;
}
.footer-links-col a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 24px;
  text-align: center; max-width: 1200px; margin: 0 auto;
}

/* ── DASHBOARD ── */
.dashboard-tabs { display: flex; gap: 6px; margin-bottom: 28px; flex-wrap: wrap; }
.tab {
  padding: 10px 20px; background: var(--bg3);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--muted); cursor: pointer; font-size: 13px; font-weight: 600;
  transition: all 0.2s;
}
.tab.active { background: var(--gold); color: var(--bg); border-color: var(--gold); }
.tab:hover:not(.active) { border-color: var(--gold); color: var(--gold); }
.tab-content { animation: fadeUp 0.25s ease; }

/* ── TRANSFER FORM ── */
.transfer-dir-toggle { display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }
.transfer-dir-btn {
  padding: 12px 24px; background: var(--bg3);
  border: 2px solid var(--border); border-radius: var(--radius);
  color: var(--muted); cursor: pointer; font-size: 14px; font-weight: 700;
  transition: all 0.2s;
}
.transfer-dir-btn.active { border-color: var(--gold); color: var(--gold); background: var(--gold-pale); }
.transfer-dir-btn:hover:not(.active) { border-color: var(--gold); color: var(--gold); }

.transfer-form {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 36px; max-width: 820px; margin: 0 auto;
}
.form-section-title {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 700; color: var(--gold);
  text-transform: uppercase; letter-spacing: 0.8px;
  margin-bottom: 20px; padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; }
.form-group input, .form-group select {
  background: var(--bg3); border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); padding: 12px 16px;
  color: var(--text); font-size: 14px; outline: none;
  transition: border-color 0.2s; font-family: 'Inter', sans-serif;
}
.form-group input:focus, .form-group select:focus { border-color: var(--gold); }
.form-group select option { background: var(--bg3); }
.form-group input::placeholder { color: var(--muted2); }

.transfer-summary {
  background: var(--bg3); border-radius: var(--radius);
  padding: 18px 20px; margin: 20px 0; font-size: 14px; line-height: 2.2;
}
.sum-row { display: flex; justify-content: space-between; color: var(--muted); }
.sum-row.total {
  font-weight: 800; font-size: 17px; color: var(--gold);
  border-top: 1px solid var(--border); padding-top: 12px; margin-top: 6px;
}
.form-actions { text-align: center; }

/* ── PILOT SIM BOX ── */
.sim-deposit-box {
  background: linear-gradient(135deg, rgba(245,166,35,0.1), rgba(212,136,26,0.05));
  border: 1.5px solid var(--border2); border-radius: var(--radius);
  padding: 20px 24px; text-align: center; margin-bottom: 24px;
}
.sim-deposit-box .sim-op { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.sim-deposit-box .sim-number {
  font-size: 26px; font-weight: 900; color: var(--gold);
  letter-spacing: 3px; font-family: monospace; margin-bottom: 6px;
}
.sim-deposit-box .sim-name { font-size: 13px; color: var(--muted); }
.sim-deposit-box .sim-warning {
  font-size: 12px; color: var(--orange); margin-top: 10px;
  background: rgba(243,156,18,0.1); border-radius: 6px; padding: 8px 12px;
}

/* ── HISTORY ── */
.history-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.history-list { display: flex; flex-direction: column; gap: 10px; }
.history-item {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 22px;
  display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center;
  transition: border-color 0.2s, transform 0.15s;
}
.history-item:hover { border-color: rgba(245,166,35,0.3); transform: translateX(4px); }
.history-info h4 { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.history-info p { font-size: 12px; color: var(--muted); }
.history-amount { text-align: right; }
.history-amount .primary { font-size: 20px; font-weight: 800; color: var(--gold); }
.history-amount .secondary { font-size: 13px; color: var(--green); margin-top: 2px; }
.dir-chip {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 50px;
  text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px;
}
.dir-chip.cmr { background: rgba(46,204,113,0.12); color: var(--green); border: 1px solid rgba(46,204,113,0.2); }
.dir-chip.eu  { background: rgba(52,152,219,0.12); color: var(--blue); border: 1px solid rgba(52,152,219,0.2); }

/* ── STATUS BADGES ── */
.status-badge {
  display: inline-block; padding: 4px 12px; border-radius: 50px;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
}
.status-pending          { background: rgba(243,156,18,.15); color: var(--orange); }
.status-funds_received,
.status-payment_received { background: rgba(52,152,219,.15); color: var(--blue); }
.status-processing       { background: rgba(46,204,113,.1); color: var(--green); }
.status-completed        { background: rgba(46,204,113,.2); color: var(--green); }
.status-rejected         { background: rgba(231,76,60,.15); color: var(--red); }
.status-cancelled        { background: rgba(113,128,150,.15); color: var(--muted); }

/* ── PROFILE / REFERRAL PANEL ── */
.profile-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 32px; max-width: 640px; margin: 0 auto;
}
.profile-card h3 { font-size: 18px; font-weight: 800; margin-bottom: 24px; }
.referral-code-box {
  background: linear-gradient(135deg, var(--gold-pale), rgba(212,136,26,0.08));
  border: 2px solid var(--border2); border-radius: var(--radius);
  padding: 24px; text-align: center; margin-bottom: 24px;
}
.referral-code-box .label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; }
.referral-code-box .code {
  font-size: 28px; font-weight: 900; color: var(--gold);
  font-family: monospace; letter-spacing: 4px; margin-bottom: 10px;
}
.referral-code-box .copy-btn {
  background: var(--bg3); border: 1px solid var(--border);
  color: var(--muted); padding: 6px 16px; border-radius: 6px;
  cursor: pointer; font-size: 13px; font-weight: 600; transition: all 0.2s;
}
.referral-code-box .copy-btn:hover { border-color: var(--gold); color: var(--gold); }
.promo-section { margin-top: 20px; }
.promo-section h4 { font-size: 14px; font-weight: 700; margin-bottom: 12px; color: var(--text); }
.promo-input-row { display: flex; gap: 8px; }
.promo-input-row input {
  flex: 1; background: var(--bg3); border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); padding: 11px 16px;
  color: var(--text); font-size: 14px; outline: none;
  text-transform: uppercase; letter-spacing: 2px; font-family: monospace;
  font-weight: 700; transition: border-color 0.2s;
}
.promo-input-row input:focus { border-color: var(--gold); }

/* ── MODALS ── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.8); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.modal {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 40px; width: 100%; max-width: 440px;
  position: relative; animation: fadeUp 0.3s ease;
}
.modal h2 { font-size: 26px; font-weight: 900; letter-spacing: -0.5px; margin-bottom: 28px; }
.modal-close {
  position: absolute; top: 16px; right: 16px;
  background: var(--bg3); border: 1px solid var(--border);
  color: var(--muted); width: 32px; height: 32px; border-radius: 50%;
  cursor: pointer; font-size: 14px; display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.modal-close:hover { border-color: var(--red); color: var(--red); }
.modal-switch { text-align: center; margin-top: 20px; font-size: 14px; color: var(--muted); }
.modal-switch a { color: var(--gold); text-decoration: none; font-weight: 700; }
.modal-switch a:hover { text-decoration: underline; }
.modal-success { text-align: center; }
.success-icon { font-size: 64px; margin-bottom: 16px; animation: bounceIn 0.5s ease; }
@keyframes bounceIn { 0% { transform: scale(0.5); opacity: 0; } 70% { transform: scale(1.1); } 100% { transform: scale(1); opacity: 1; } }
.form-error {
  background: rgba(231,76,60,0.12); border: 1px solid rgba(231,76,60,0.3);
  color: #FC8181; padding: 12px 16px; border-radius: var(--radius-sm);
  font-size: 13px; margin-bottom: 16px;
}

/* ── AMOUNT ERROR BOX ── */
.amount-error {
  background: rgba(231,76,60,0.08);
  border: 1.5px solid rgba(231,76,60,0.35);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.7;
}
.amount-error-title {
  font-weight: 700; color: var(--red);
  font-size: 14px; margin-bottom: 6px;
}
.amount-error p { color: var(--muted); margin-bottom: 6px; }
.amount-error-hint {
  background: rgba(245,166,35,0.10);
  border: 1px solid rgba(245,166,35,0.25);
  border-radius: 8px; padding: 8px 12px;
  color: var(--gold); font-size: 13px; margin-top: 8px;
}

/* ── OPERATOR BUTTONS ── */
.operator-btns {
  display: flex; gap: 12px; margin-top: 4px;
}
.op-btn {
  flex: 1; display: flex; align-items: center; gap: 10px;
  background: var(--bg3); border: 2px solid var(--border);
  border-radius: var(--radius); padding: 14px 16px;
  color: var(--text); font-size: 14px; font-weight: 600;
  cursor: pointer; transition: all 0.2s; text-align: left;
}
.op-btn:hover { border-color: var(--gold); background: var(--bg4); }
.op-btn.selected { border-color: var(--gold); background: rgba(245,166,35,0.1); color: var(--gold); }
.op-btn svg { flex-shrink: 0; }

/* ── PHONE INPUT ── */
.phone-input-row {
  display: flex; align-items: stretch;
}
.phone-prefix {
  background: var(--bg4); border: 1.5px solid var(--border); border-right: none;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  padding: 11px 14px; font-size: 13px; font-weight: 600;
  color: var(--muted); white-space: nowrap; display: flex; align-items: center;
}
.phone-input-row input {
  flex: 1; border-radius: 0 var(--radius-sm) var(--radius-sm) 0 !important;
  border-left: none !important;
}

/* ── RESPONSIVE ─────────────────────────────────────────────── */

/* Prevent horizontal overflow globally */
html, body { overflow-x: hidden; max-width: 100vw; }

@media (max-width: 960px) {
  .hero-content { grid-template-columns: 1fr; }
  .calc-card { max-width: 520px; margin: 0 auto; width: 100%; }
  .free-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .referral-banner { grid-template-columns: 1fr; }
  .referral-reward-card { margin: 0 auto; }
  .contact-grid { grid-template-columns: 1fr 1fr; max-width: 480px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  /* Navbar */
  .navbar { padding: 0 16px; }
  .nav-links { display: none; }
  .nav-auth .btn-ghost { display: none; }
  .nav-auth .btn-primary { font-size: 13px; padding: 9px 14px; }

  /* Hero */
  .hero { padding: 48px 16px 36px; min-height: unset; }
  .hero-content { gap: 32px; }
  .hero h1 { font-size: clamp(28px, 8vw, 40px); letter-spacing: -0.5px; }
  .hero p { font-size: 15px; margin-bottom: 24px; max-width: 100%; }
  .hero-badge { font-size: 12px; padding: 6px 14px; }
  .hero-stats { gap: 16px; flex-wrap: wrap; }
  .stat-num { font-size: 26px; }
  .free-badge-row { margin-bottom: 16px; }
  .free-badge { font-size: 12px; padding: 7px 14px; }

  /* Calc card */
  .calc-card { border-radius: var(--radius); width: 100%; }
  .calc-body { padding: 16px; }
  .calc-header { padding: 14px 16px; }
  .calc-header h3 { font-size: 13px; }
  .rate-pill { font-size: 11px; padding: 4px 8px; }
  .dir-toggle { margin-bottom: 14px; }
  .dir-btn { font-size: 11px; padding: 8px 4px; }
  .dest-tabs { gap: 6px; margin-bottom: 12px; }
  .dest-tab { font-size: 12px; padding: 8px 10px; }
  .trust-row { gap: 8px; padding: 12px 16px; }
  .trust-label { font-size: 11px; }

  /* Sections */
  .section { padding: 48px 0; }
  .container { padding: 0 16px; }
  .section-title { font-size: clamp(22px, 6vw, 32px); }

  /* Steps */
  .steps { grid-template-columns: 1fr; gap: 12px; }

  /* Referral */
  .referral-steps { flex-direction: column; gap: 8px; }
  .ref-step::after { content: '↓'; right: 50%; top: unset; bottom: -12px; }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr; max-width: 100%; margin: 0 auto; }

  /* Footer */
  .footer-top { grid-template-columns: 1fr; gap: 24px; }
  .footer { padding: 40px 0 24px; }

  /* Dashboard tabs */
  .dashboard-tabs {
    gap: 4px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    flex-wrap: nowrap;
    white-space: nowrap;
  }
  .dashboard-tabs .tab { flex-shrink: 0; font-size: 12px; padding: 8px 12px; }

  /* Transfer direction toggle */
  .transfer-dir-toggle { flex-direction: column; gap: 6px; }
  .transfer-dir-btn { font-size: 13px; padding: 10px 14px; }

  /* Dest tabs in dashboard */
  .dest-tabs { gap: 8px; }

  /* Forms */
  .form-grid { grid-template-columns: 1fr; gap: 14px; }
  .transfer-form { padding: 16px; border-radius: var(--radius); }
  .form-group label { font-size: 13px; }
  .form-group input, .form-group select, .form-group textarea {
    font-size: 16px; /* prevents iOS auto-zoom on focus */
    padding: 12px 14px;
  }
  .form-section-title { font-size: 13px; padding: 8px 14px; margin-bottom: 16px; }

  /* Phone input row */
  .phone-input-row { flex-wrap: nowrap; }
  .phone-input-row select { min-width: 90px; font-size: 14px; padding: 11px 6px; }
  .phone-input-row input { font-size: 16px; }

  /* Operator buttons */
  .operator-btns { flex-direction: row; gap: 8px; }
  .op-btn { flex: 1; padding: 10px 8px; font-size: 12px; gap: 6px; }
  .op-btn span { font-size: 11px; }

  /* SIM box */
  .sim-deposit-box { padding: 14px; }
  .sim-number { font-size: 24px; }

  /* Modals */
  .modal-overlay { align-items: flex-end; padding: 0; }
  .modal {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    max-height: 92vh;
    overflow-y: auto;
    max-width: 100%;
    width: 100%;
    padding: 24px 20px 32px;
    -webkit-overflow-scrolling: touch;
  }
  .modal h2 { font-size: 20px; margin-bottom: 20px; }
  .modal input, .modal select { font-size: 16px; } /* prevent iOS auto-zoom */
  .modal-close { top: 14px; right: 14px; }

  /* Profile / history */
  .profile-card { padding: 20px 16px; }
  .history-item { padding: 14px 12px; }
  .history-amount .primary { font-size: 16px; }

  /* Transfer summary */
  .transfer-summary { font-size: 13px; }
  .amount-error { padding: 12px; }
}

@media (max-width: 400px) {
  .nav-auth .btn-primary { font-size: 12px; padding: 8px 12px; }
  .hero h1 { font-size: 26px; }
  .operator-btns { flex-direction: column; }
  .op-btn { flex-direction: row; justify-content: center; }
  .dest-tab { font-size: 11px; padding: 7px 8px; }
  .dir-btn { font-size: 10px; }
}
