/* ============================================
   FX PULSE — Premium Dark Trading Theme
   Palette: Midnight Navy + Electric Blue + Gold
   ============================================ */

:root {
  --bg-base: #070C14;
  --bg-surface: #0D1421;
  --bg-card: #111827;
  --bg-card-hover: #1a2236;
  --bg-input: #0D1421;
  --border: #1e2d45;
  --border-light: #243350;
  --text-primary: #E8EDF5;
  --text-secondary: #8A9BB5;
  --text-muted: #4A5E7A;
  --accent-blue: #3B82F6;
  --accent-blue-light: #60A5FA;
  --accent-gold: #F59E0B;
  --accent-gold-light: #FCD34D;
  --accent-green: #10B981;
  --accent-red: #EF4444;
  --accent-purple: #8B5CF6;
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-blue: 0 0 30px rgba(59,130,246,0.15);
  --shadow-gold: 0 0 30px rgba(245,158,11,0.15);
}

* { box-sizing: border-box; }

body {
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
}

/* ---- NAVBAR ---- */
.fx-navbar {
  background: rgba(7,12,20,0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
.fx-brand { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.brand-icon { font-size: 20px; filter: drop-shadow(0 0 8px #3B82F6); }
.brand-text { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--text-primary); letter-spacing: -0.5px; }
.brand-accent { color: var(--accent-blue); }
.navbar-nav .nav-link { color: var(--text-secondary) !important; font-size: 14px; font-weight: 500; transition: color .2s; padding: 6px 12px !important; }
.navbar-nav .nav-link:hover { color: var(--text-primary) !important; }

/* ---- BUTTONS ---- */
.fx-btn-primary {
  background: var(--accent-blue);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 8px 20px;
  font-weight: 600;
  font-size: 14px;
  transition: all .2s;
  text-decoration: none;
  display: inline-block;
}
.fx-btn-primary:hover { background: var(--accent-blue-light); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-blue); }
.fx-btn-gold {
  background: linear-gradient(135deg, var(--accent-gold), #D97706);
  color: #000;
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 24px;
  font-weight: 700;
  font-size: 14px;
  transition: all .2s;
  text-decoration: none;
  display: inline-block;
}
.fx-btn-gold:hover { transform: translateY(-2px); box-shadow: var(--shadow-gold); color: #000; }
.fx-btn-outline {
  background: transparent;
  color: var(--accent-blue);
  border: 1px solid var(--accent-blue);
  border-radius: var(--radius-sm);
  padding: 8px 20px;
  font-weight: 600;
  font-size: 14px;
  transition: all .2s;
  text-decoration: none;
  display: inline-block;
}
.fx-btn-outline:hover { background: var(--accent-blue); color: #fff; }
.fx-btn-outline.active { background: var(--accent-blue); color: #fff; }

/* ---- CARDS ---- */
.fx-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color .2s, box-shadow .2s;
}
.fx-card:hover { border-color: var(--border-light); box-shadow: var(--shadow); }
.fx-card-glow { box-shadow: var(--shadow-blue); border-color: rgba(59,130,246,0.3); }

/* ---- LANDING HERO ---- */
.fx-hero {
  position: relative;
  padding: 100px 0 80px;
  overflow: hidden;
}
.fx-hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 800px 500px at 20% 50%, rgba(59,130,246,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 600px 400px at 80% 20%, rgba(139,92,246,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.fx-hero-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(30,45,69,0.3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30,45,69,0.3) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}
.fx-hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-blue);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.fx-hero-eyebrow::before { content: ''; width: 24px; height: 1px; background: var(--accent-blue); }
.fx-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -2px;
  color: var(--text-primary);
}
.fx-hero h1 .highlight {
  background: linear-gradient(135deg, var(--accent-blue-light), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.fx-hero-sub {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 500px;
  line-height: 1.7;
}

/* ---- STAT COUNTERS ---- */
.fx-stat-strip {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 32px 0;
}
.fx-stat {
  text-align: center;
  position: relative;
}
.fx-stat:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0; top: 10%;
  height: 80%; width: 1px;
  background: var(--border);
}
.fx-stat-value {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}
.fx-stat-value .unit { font-size: 22px; color: var(--accent-blue); }
.fx-stat-label { font-size: 13px; color: var(--text-muted); margin-top: 6px; text-transform: uppercase; letter-spacing: 1px; }

/* ---- SIGNAL CARDS ---- */
.signal-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: all .2s;
  position: relative;
  overflow: hidden;
}
.signal-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  border-radius: 3px 0 0 3px;
}
.signal-card.buy::before { background: var(--accent-green); }
.signal-card.sell::before { background: var(--accent-red); }
.signal-card:hover { border-color: var(--border-light); transform: translateY(-2px); box-shadow: var(--shadow); }

.signal-pair {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}
.signal-direction {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 4px;
  letter-spacing: 1px;
}
.direction-buy { background: rgba(16,185,129,0.15); color: var(--accent-green); }
.direction-sell { background: rgba(239,68,68,0.15); color: var(--accent-red); }

.signal-price-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}
.price-item label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
}
.price-item .value {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-primary);
  font-weight: 500;
}

.result-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  font-family: var(--font-mono);
}
.result-win { background: rgba(16,185,129,0.15); color: var(--accent-green); }
.result-loss { background: rgba(239,68,68,0.15); color: var(--accent-red); }
.result-pending { background: rgba(245,158,11,0.15); color: var(--accent-gold); }
.result-open { background: rgba(59,130,246,0.15); color: var(--accent-blue); }

.pips-badge {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
}
.pips-pos { color: var(--accent-green); }
.pips-neg { color: var(--accent-red); }

/* ---- VIP LOCK OVERLAY ---- */
.vip-lock {
  position: relative;
}
.vip-overlay {
  position: absolute; inset: 0;
  background: rgba(7,12,20,0.85);
  backdrop-filter: blur(4px);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

/* ---- PRICING CARDS ---- */
.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px;
  transition: all .3s;
  position: relative;
}
.pricing-card.featured {
  border-color: var(--accent-gold);
  box-shadow: var(--shadow-gold);
}
.pricing-badge {
  position: absolute;
  top: -14px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent-gold), #D97706);
  color: #000;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 20px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.pricing-price {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}
.pricing-price .currency { font-size: 22px; color: var(--text-secondary); vertical-align: top; margin-top: 8px; display: inline-block; }
.pricing-price .period { font-size: 16px; color: var(--text-muted); font-weight: 400; }

.feature-list { list-style: none; padding: 0; margin: 0; }
.feature-list li {
  padding: 8px 0;
  font-size: 14px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border);
}
.feature-list li:last-child { border: none; }
.feature-list li .check { color: var(--accent-green); font-size: 16px; }
.feature-list li .cross { color: var(--text-muted); font-size: 16px; }

/* ---- TRADER LEADERBOARD ---- */
.trader-row {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all .2s;
  margin-bottom: 8px;
}
.trader-row:hover { border-color: var(--border-light); }
.trader-rank {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-muted);
  width: 32px;
  text-align: center;
}
.trader-rank.gold { color: var(--accent-gold); }
.trader-rank.silver { color: #94A3B8; }
.trader-rank.bronze { color: #C97C3A; }
.trader-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 16px; color: #fff;
  flex-shrink: 0;
}
.win-rate-bar {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin-top: 4px;
  overflow: hidden;
}
.win-rate-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-green));
  border-radius: 2px;
}

/* ---- DASHBOARD ---- */
.fx-dashboard-header {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
}
.stat-mini {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  text-align: center;
}
.stat-mini .val {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
}
.stat-mini .lbl { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }

/* ---- TABLE ---- */
.fx-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.fx-table th {
  background: var(--bg-surface);
  color: var(--text-muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
}
.fx-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-primary);
  font-size: 14px;
  vertical-align: middle;
}
.fx-table tr:hover td { background: rgba(255,255,255,0.02); }
.fx-table .pair-cell { font-family: var(--font-display); font-weight: 600; font-size: 15px; }
.fx-table .mono { font-family: var(--font-mono); font-size: 13px; }

/* ---- SECTION HEADERS ---- */
.fx-section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-blue);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.fx-section-title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -1px;
}

/* ---- FORMS ---- */
.fx-form-control {
  background: var(--bg-input) !important;
  border: 1px solid var(--border) !important;
  color: var(--text-primary) !important;
  border-radius: var(--radius-sm) !important;
  padding: 12px 16px !important;
  font-size: 14px !important;
  transition: border-color .2s !important;
}
.fx-form-control:focus {
  border-color: var(--accent-blue) !important;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.1) !important;
  outline: none !important;
}
.fx-form-control::placeholder { color: var(--text-muted) !important; }
label { color: var(--text-secondary); font-size: 13px; font-weight: 500; margin-bottom: 6px; }

/* ---- ALERTS ---- */
.fx-alert {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
}
.alert-success { border-color: rgba(16,185,129,0.4) !important; background: rgba(16,185,129,0.08) !important; }
.alert-danger { border-color: rgba(239,68,68,0.4) !important; background: rgba(239,68,68,0.08) !important; }

/* ---- FOOTER ---- */
.fx-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: 60px 0 32px;
}
.footer-link { color: var(--text-muted); text-decoration: none; font-size: 14px; display: block; padding: 3px 0; transition: color .2s; }
.footer-link:hover { color: var(--text-primary); }
.fx-divider { border-color: var(--border); margin: 0; }
.fx-social {
  color: var(--text-muted);
  font-size: 20px;
  text-decoration: none;
  transition: color .2s;
}
.fx-social:hover { color: var(--accent-blue); }
.fx-telegram-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ---- CHECKOUT ---- */
.mpesa-box {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.mpesa-number {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  color: var(--accent-green);
  letter-spacing: -1px;
}

/* ---- LIVE PULSE ANIMATION ---- */
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}
.live-dot {
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--accent-green);
  border-radius: 50%;
  animation: pulse-dot 1.5s ease-in-out infinite;
  box-shadow: 0 0 8px var(--accent-green);
}

/* ---- MISC ---- */
.text-green { color: var(--accent-green) !important; }
.text-red { color: var(--accent-red) !important; }
.text-gold { color: var(--accent-gold) !important; }
.text-blue { color: var(--accent-blue) !important; }
.text-muted-fx { color: var(--text-muted) !important; }
.text-secondary-fx { color: var(--text-secondary) !important; }
.fw-500 { font-weight: 500; }
.mono { font-family: var(--font-mono); }

.vip-tag {
  background: linear-gradient(135deg, var(--accent-gold), #D97706);
  color: #000;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 3px;
  letter-spacing: 1px;
}
.free-tag {
  background: rgba(59,130,246,0.15);
  color: var(--accent-blue);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 3px;
  letter-spacing: 1px;
}

.page-section { padding: 80px 0; }
.page-section-sm { padding: 48px 0; }

@media (max-width: 768px) {
  .fx-hero { padding: 60px 0 48px; }
  .fx-stat-value { font-size: 28px; }
  .fx-stat:not(:last-child)::after { display: none; }
  .pricing-card { padding: 24px; }
  .signal-price-row { grid-template-columns: 1fr 1fr; }
}

/* ---- LEGAL PAGES (Terms / Privacy) ---- */
.fx-legal h2 {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--text-primary);
  margin: 28px 0 12px;
}
.fx-legal h2:first-of-type { margin-top: 0; }
.fx-legal p, .fx-legal li { color: var(--text-secondary); font-size: 14px; line-height: 1.7; }
.fx-legal ul { padding-left: 20px; margin-bottom: 16px; }
.fx-legal a { color: var(--accent-blue); }
