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

/* ==========================================
   CSS VARIABLES
   ========================================== */
:root {
  --bg-primary: #030712;
  --bg-secondary: #0D1525;
  --bg-card: #0F1E35;
  --bg-card-hover: #162A46;
  --bg-glass: rgba(15, 30, 53, 0.6);
  --text-primary: #F1F5F9;
  --text-secondary: #94A3B8;
  --text-muted: #475569;
  --accent: #F59E0B;
  --accent-hover: #FCD34D;
  --accent-dim: rgba(245, 158, 11, 0.12);
  --accent-border: rgba(245, 158, 11, 0.28);
  --green: #10B981;
  --green-hover: #34D399;
  --green-dim: rgba(16, 185, 129, 0.12);
  --border: rgba(255, 255, 255, 0.07);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.35);
  --shadow-md: 0 6px 24px rgba(0,0,0,0.45);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.55);
  --shadow-gold: 0 4px 24px rgba(245,158,11,0.25);
  --nav-bg: rgba(3, 7, 18, 0.88);
  --transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  --radius: 14px;
  --radius-lg: 22px;
}

[data-theme="light"] {
  --bg-primary: #F0F4FF;
  --bg-secondary: #E8EFFF;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F8FAFF;
  --bg-glass: rgba(255,255,255,0.75);
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #94A3B8;
  --accent: #D97706;
  --accent-hover: #B45309;
  --accent-dim: rgba(217,119,6,0.1);
  --accent-border: rgba(217,119,6,0.22);
  --green: #059669;
  --green-hover: #047857;
  --green-dim: rgba(5,150,105,0.1);
  --border: rgba(0,0,0,0.07);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.07);
  --shadow-md: 0 6px 24px rgba(0,0,0,0.09);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.12);
  --shadow-gold: 0 4px 24px rgba(217,119,6,0.15);
  --nav-bg: rgba(240,244,255,0.92);
}

/* ==========================================
   RESET & BASE
   ========================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  font-size: 15px;
  transition: background 0.35s ease, color 0.35s ease;
  overflow-x: hidden;
}

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

/* ==========================================
   TYPOGRAPHY
   ========================================== */
h1, h2, h3, h4, h5 { line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.1rem; }

.text-accent { color: var(--accent); }
.text-green { color: var(--green); }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-center { text-align: center; }

.gradient-text {
  background: linear-gradient(135deg, var(--accent) 0%, #FBBF24 50%, var(--green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ==========================================
   LAYOUT
   ========================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
}

.section-sm { padding: 64px 0; }
.section-alt { background: var(--bg-secondary); }

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 14px;
}

.section-subtitle {
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.7;
}

/* ==========================================
   BUTTONS
   ========================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  transition: var(--transition);
  border: 1.5px solid transparent;
  line-height: 1;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #FBBF24);
  color: #000;
  border-color: transparent;
  box-shadow: var(--shadow-gold);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(245,158,11,0.4);
  filter: brightness(1.08);
}

.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--text-primary);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

.btn-green {
  background: linear-gradient(135deg, var(--green), #34D399);
  color: #fff;
  border-color: transparent;
}
.btn-green:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--text-secondary);
}
.btn-ghost:hover { color: var(--accent); }

.btn-lg { padding: 15px 34px; font-size: 15px; border-radius: 12px; }
.btn-sm { padding: 8px 18px; font-size: 13px; border-radius: 8px; }
.btn-full { width: 100%; justify-content: center; }

/* ==========================================
   NAV
   ========================================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100px;
  gap: 32px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.brand-icon {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent), #FBBF24);
  border-radius: 10px;
  color: #000;
  font-size: 1rem;
  font-weight: 900;
}

.brand-name { color: var(--text-primary); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}

/* Login/Register inside the menu — hidden on desktop, shown only in the mobile drawer */
.nav-mobile-actions { display: none; }

.nav-links a {
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
  background: var(--accent-dim);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  color: var(--text-secondary);
  font-size: 15px;
  transition: var(--transition);
}

.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 8px;
}

.nav-hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ==========================================
   HERO
   ========================================== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero-glow-1 {
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(245,158,11,0.12) 0%, transparent 65%);
  border-radius: 50%;
}

.hero-glow-2 {
  position: absolute;
  bottom: 10%;
  left: 10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(16,185,129,0.08) 0%, transparent 65%);
  border-radius: 50%;
}

.hero-glow-3 {
  position: absolute;
  top: 30%;
  right: 5%;
  width: 350px;
  height: 350px;
  background: radial-gradient(ellipse, rgba(245,158,11,0.07) 0%, transparent 65%);
  border-radius: 50%;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
}

[data-theme="light"] .hero-grid {
  background-image:
    linear-gradient(rgba(0,0,0,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.03) 1px, transparent 1px);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 860px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 7px 16px;
  border-radius: 100px;
  margin-bottom: 28px;
  text-transform: uppercase;
}

.hero-badge i { font-size: 10px; }

.hero-title {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 22px;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  overflow: hidden;
}

.hero-stat {
  padding: 20px 40px;
  text-align: center;
  border-right: 1px solid var(--border);
  flex: 1;
  min-width: 160px;
}

.hero-stat:last-child { border-right: none; }

.hero-stat-value {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--accent);
  display: block;
  line-height: 1;
  margin-bottom: 6px;
}

.hero-stat-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ==========================================
   TICKER
   ========================================== */
.ticker-wrap {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 11px 0;
  overflow: hidden;
}

.ticker-inner {
  display: flex;
  gap: 60px;
  animation: ticker 30s linear infinite;
  width: max-content;
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--text-secondary);
}

.ticker-item .ticker-sym { color: var(--text-primary); }
.ticker-item .ticker-up { color: var(--green); }
.ticker-item .ticker-down { color: #EF4444; }

@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ==========================================
   CARDS
   ========================================== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: var(--transition);
}

.card:hover {
  border-color: var(--accent-border);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 18px;
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid var(--accent-border);
}

.card-icon-green {
  background: var(--green-dim);
  color: var(--green);
  border-color: rgba(16,185,129,0.22);
}

/* ==========================================
   TECH STACK SECTION
   ========================================== */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.tech-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.tech-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-dim) 0%, transparent 60%);
  opacity: 0;
  transition: var(--transition);
}

.tech-card:hover {
  border-color: var(--accent-border);
  box-shadow: var(--shadow-gold);
  transform: translateY(-3px);
}

.tech-card:hover::before { opacity: 1; }

.tech-card-name {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.tech-card-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.tech-card-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  padding: 3px 10px;
  border-radius: 6px;
  margin-bottom: 14px;
  text-transform: uppercase;
}

/* ==========================================
   PLANS / SCHEMA
   ========================================== */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.plan-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  transition: var(--transition);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.plan-card.featured {
  border-color: var(--accent);
  background: linear-gradient(160deg, var(--bg-card) 60%, rgba(245,158,11,0.06) 100%);
}

.plan-featured-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--accent);
  color: #000;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 6px;
}

.plan-card:hover {
  border-color: var(--accent-border);
  box-shadow: var(--shadow-gold);
  transform: translateY(-4px);
}

.plan-name {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.plan-rate {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 4px;
}

.plan-rate-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.plan-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 20px 0;
}

.plan-details {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.plan-detail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13.5px;
}

.plan-detail-label { color: var(--text-muted); }
.plan-detail-value { font-weight: 600; color: var(--text-primary); }

/* ==========================================
   HOW IT WORKS
   ========================================== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 36px;
  left: calc(12.5% + 20px);
  right: calc(12.5% + 20px);
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--green));
  opacity: 0.3;
  z-index: 0;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 22px;
  text-align: center;
  transition: var(--transition);
  position: relative;
  z-index: 1;
}

.step-card:hover {
  border-color: var(--accent-border);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.step-num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent), #FBBF24);
  color: #000;
  font-size: 1.1rem;
  font-weight: 800;
  margin: 0 auto 18px;
  box-shadow: var(--shadow-gold);
}

.step-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.step-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================
   REFERRAL SECTION
   ========================================== */
.referral-section {
  background: var(--bg-secondary);
}

.referral-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.referral-levels {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ref-level {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  transition: var(--transition);
}

.ref-level:hover {
  border-color: var(--accent-border);
  transform: translateX(6px);
}

.ref-level-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
  background: var(--accent-dim);
  color: var(--accent);
  border: 1.5px solid var(--accent-border);
}

.ref-level-info { flex: 1; }

.ref-level-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}

.ref-level-desc {
  font-size: 12.5px;
  color: var(--text-muted);
}

.ref-level-rate {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent);
  flex-shrink: 0;
}

.referral-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.referral-info-card h3 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.referral-info-card p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 28px;
}

.referral-perks {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.referral-perk {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--text-secondary);
}

.referral-perk i { color: var(--green); font-size: 15px; }

/* ==========================================
   RANKINGS PAGE
   ========================================== */
.rank-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.rank-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 20px;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.rank-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.rank-card.rank-diamond {
  border-color: var(--accent);
  background: linear-gradient(160deg, var(--bg-card), rgba(245,158,11,0.05));
}

.rank-icon {
  font-size: 2.8rem;
  margin-bottom: 14px;
  display: block;
}

.rank-name {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.rank-req {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.5;
}

.rank-perks {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}

.rank-perk {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-secondary);
}

.rank-perk i { font-size: 12px; color: var(--green); }

.rank-divider {
  border-top: 1px solid var(--border);
  margin: 16px 0;
}

/* ==========================================
   ABOUT PAGE
   ========================================== */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.values-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.value-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: var(--transition);
}

.value-card:hover {
  border-color: var(--accent-border);
  transform: translateY(-3px);
}

/* ==========================================
   CONTACT PAGE
   ========================================== */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.contact-item-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 1.1rem;
  flex-shrink: 0;
  border: 1px solid var(--accent-border);
}

.contact-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
}

/* ==========================================
   FORMS
   ========================================== */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  background: var(--bg-secondary);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 13px 16px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text-primary);
  transition: var(--transition);
  outline: none;
}

.form-control::placeholder { color: var(--text-muted); }

.form-control:focus {
  border-color: var(--accent);
  background: var(--bg-card);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

textarea.form-control { resize: vertical; min-height: 120px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.input-icon-wrap {
  position: relative;
}

.input-icon-wrap i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 14px;
}

.input-icon-wrap .form-control { padding-left: 42px; }

/* ==========================================
   AUTH PAGES (LOGIN / REGISTER)
   ========================================== */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 24px 60px;
  background: var(--bg-primary);
  position: relative;
}

.auth-bg-glow {
  position: fixed;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(245,158,11,0.09) 0%, transparent 65%);
  pointer-events: none;
}

.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 1;
}

.auth-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.3rem;
  margin-bottom: 32px;
}

.auth-title {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 6px;
  text-align: center;
}

.auth-subtitle {
  color: var(--text-secondary);
  font-size: 14px;
  text-align: center;
  margin-bottom: 32px;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 20px 0;
  color: var(--text-muted);
  font-size: 12px;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-top: 1px solid var(--border);
}

.auth-footer {
  text-align: center;
  margin-top: 22px;
  font-size: 13.5px;
  color: var(--text-secondary);
}

.auth-footer a { color: var(--accent); font-weight: 600; }

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--accent);
  cursor: pointer;
}

.checkbox-group a { color: var(--accent); }

/* ==========================================
   DISCLAIMER / ALERT
   ========================================== */
.alert {
  border-radius: var(--radius);
  padding: 18px 22px;
  font-size: 13.5px;
  line-height: 1.6;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.alert-warning {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid var(--accent-border);
  color: var(--text-secondary);
}

.alert-warning i { color: var(--accent); font-size: 1rem; margin-top: 2px; flex-shrink: 0; }

.disclaimer-section { background: var(--bg-secondary); }
.disclaimer-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
}

/* ==========================================
   PAGE HERO (inner pages)
   ========================================== */
.page-hero {
  padding: 130px 0 80px;
  text-align: center;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(245,158,11,0.1) 0%, transparent 60%);
}

.page-hero-content { position: relative; z-index: 1; }

.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.breadcrumb a { color: var(--accent); }
.breadcrumb i { font-size: 10px; }

/* ==========================================
   CTA SECTION
   ========================================== */
.cta-section {
  background: linear-gradient(135deg, rgba(245,158,11,0.08) 0%, rgba(16,185,129,0.05) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cta-inner {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.cta-inner h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 14px;
}

.cta-inner p {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 36px;
  line-height: 1.7;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding-top: 72px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-top: 16px;
  margin-bottom: 24px;
  max-width: 280px;
}

.social-links {
  display: flex;
  gap: 10px;
}

.social-link {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 14px;
  transition: var(--transition);
}

.social-link:hover {
  background: var(--accent-dim);
  border-color: var(--accent-border);
  color: var(--accent);
  transform: translateY(-2px);
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col ul li a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: var(--accent);
  padding-left: 4px;
}

.footer-disclaimer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.7;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  color: var(--text-muted);
  transition: var(--transition);
}

.footer-bottom-links a:hover { color: var(--accent); }

/* ==========================================
   UTILITY
   ========================================== */
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.fw-700 { font-weight: 700; }
.fw-600 { font-weight: 600; }
.fs-sm { font-size: 13.5px; }

/* Stats number counter */
.count-up { font-variant-numeric: tabular-nums; }

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 1024px) {
  .plans-grid { grid-template-columns: repeat(2, 1fr); }
  .rank-grid { grid-template-columns: repeat(3, 1fr); }
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .section { padding: 72px 0; }

  .nav-links {
    position: fixed;
    top: 100px; left: 0; right: 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 20px 24px 28px;
    gap: 4px;
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    z-index: 999;
    align-items: flex-start;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    width: 100%;
    padding: 10px 14px;
    font-size: 15px;
  }

  .nav-hamburger { display: flex; }
  .nav-actions .btn { display: none; }
  .nav-actions .theme-toggle { display: flex; }
  .nav-actions { gap: 8px; }

  /* Show login/register in mobile menu */
  .nav-mobile-actions {
    display: flex;
    gap: 10px;
    padding: 16px 24px 0;
    border-top: 1px solid var(--border);
    margin-top: 8px;
    width: 100%;
  }

  .hero-stat { padding: 14px 20px; min-width: 120px; }
  .hero-stat-value { font-size: 1.3rem; }

  .plans-grid { grid-template-columns: 1fr 1fr; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .steps-grid::before { display: none; }
  .tech-grid { grid-template-columns: 1fr; }
  .rank-grid { grid-template-columns: repeat(2, 1fr); }
  .referral-layout { grid-template-columns: 1fr; gap: 40px; }
  .about-layout { grid-template-columns: 1fr; gap: 40px; }
  .contact-layout { grid-template-columns: 1fr; gap: 40px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .auth-card { padding: 32px 24px; }
  .disclaimer-box { padding: 32px 24px; }
  .values-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .plans-grid { grid-template-columns: 1fr; }
  .rank-grid { grid-template-columns: 1fr 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; }
  .hero-stat { border-right: none; border-bottom: 1px solid var(--border); }
  .hero-stat:last-child { border-bottom: none; }
}

/* ==========================================
   MARKET INTELLIGENCE (LIVE CHART)
   ========================================== */
.market-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 24px;
}
.market-tab {
  padding: 9px 20px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}
.market-tab:hover { border-color: var(--accent); color: var(--text); }
.market-tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #0a0a0a;
}
.market-chart-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px;
  overflow: hidden;
}
.tv-chart { width: 100%; height: 520px; }
.market-note { text-align: center; margin-top: 14px; max-width: 640px; margin-left: auto; margin-right: auto; }

@media (max-width: 640px) {
  .tv-chart { height: 420px; }
}

/* ==========================================
   MEMBER PLATFORM (TWO-COLUMN)
   ========================================== */
.platform-layout {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 56px;
  align-items: center;
}
.platform-cards { display: flex; flex-direction: column; gap: 16px; }
.platform-feature { display: flex; gap: 18px; align-items: flex-start; }
.platform-feature .card-icon { flex-shrink: 0; margin: 0; }
.platform-feature-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; }
.platform-feature-desc { font-size: 14px; line-height: 1.65; color: var(--text-secondary); }

@media (max-width: 860px) {
  .platform-layout { grid-template-columns: 1fr; gap: 36px; }
}

/* ==========================================
   SETTLEMENT WORKFLOW
   ========================================== */
.settle-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
.settle-step {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 22px;
  text-align: center;
  transition: var(--transition);
}
.settle-step:hover {
  border-color: var(--accent-border);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.settle-step-num {
  position: absolute;
  top: 14px; right: 16px;
  font-size: 13px; font-weight: 800;
  color: var(--text-muted);
  opacity: 0.5;
}
.settle-step-icon {
  width: 54px; height: 54px;
  margin: 0 auto 16px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.35rem;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(245,158,11,0.22);
}
.settle-step-title { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.settle-step-desc { font-size: 13px; line-height: 1.65; color: var(--text-secondary); }

@media (max-width: 900px) {
  .settle-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .settle-grid { grid-template-columns: 1fr; }
}

/* ==========================================
   LOGO IMAGE
   ========================================== */
.nav-logo {
  height: 84px;
  width: auto;
  display: block;
  object-fit: contain;
}

.footer-logo {
  height: 130px;
  width: auto;
  display: block;
  object-fit: contain;
  margin-bottom: 16px;
}

.auth-logo-img {
  height: 155px;
  width: auto;
  display: block;
  object-fit: contain;
  margin: 0 auto 28px;
}

/* In light mode add a subtle dark pill behind the logo so it reads on light nav */
[data-theme="light"] .nav-brand {
  background: rgba(0,0,0,0.06);
  padding: 4px 10px 4px 4px;
  border-radius: 10px;
}

[data-theme="light"] .nav-brand:hover {
  background: rgba(0,0,0,0.1);
}

/* ==========================================
   LANGUAGE SWITCHER
   ========================================== */
.lang-switcher { position: relative; }

.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  white-space: nowrap;
  line-height: 1;
}

.lang-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.lang-btn .chevron {
  font-size: 9px;
  transition: transform 0.3s ease;
  color: var(--text-muted);
}

.lang-btn.open .chevron { transform: rotate(180deg); }

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px;
  min-width: 185px;
  box-shadow: var(--shadow-lg);
  z-index: 600;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.lang-dropdown.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 13.5px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font-family: inherit;
}

.lang-option:hover {
  background: var(--accent-dim);
  color: var(--text-primary);
}

.lang-option.active {
  color: var(--accent);
  font-weight: 600;
  background: var(--accent-dim);
}

.lang-flag { font-size: 1.1rem; line-height: 1; }
.lang-name { flex: 1; }
.lang-check { color: var(--accent); font-size: 11px; }

@media (max-width: 900px) {
  .lang-label { display: none; }
  .lang-btn { padding: 7px 10px; }
}

@media (max-width: 768px) {
  .nav-inner { height: 76px; }
  .nav-logo { height: 60px; }
  .nav-links { top: 76px; }
}

/* ==========================================
   COOKIE CONSENT BANNER
   ========================================== */
.cookie-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 2000;
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.45);
  transform: translateY(140%);
  opacity: 0;
  transition: transform 0.45s cubic-bezier(0.16,1,0.3,1), opacity 0.45s ease;
}
.cookie-banner.show { transform: translateY(0); opacity: 1; }

.cookie-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(245,158,11,0.25);
}
.cookie-body { flex: 1; min-width: 0; }
.cookie-title { font-weight: 800; font-size: 1rem; margin-bottom: 4px; }
.cookie-text { font-size: 13px; line-height: 1.6; color: var(--text-secondary); margin: 0; }
.cookie-actions {
  flex-shrink: 0;
  display: flex;
  gap: 10px;
  align-items: center;
}
.cookie-actions .btn { white-space: nowrap; }

@media (max-width: 640px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 14px;
    padding: 20px;
    left: 12px;
    right: 12px;
    bottom: 12px;
  }
  .cookie-icon { margin: 0 auto; }
  .cookie-actions { justify-content: center; }
  .cookie-actions .btn { flex: 1; justify-content: center; }
}

[dir="rtl"] .cookie-banner { direction: rtl; }
