/* ============================================================
   ARIBA TRADING PLATFORM — MASTER STYLESHEET
   Dark Institutional Theme | Glassmorphism | Responsive
   ============================================================ */

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

:root {
  --bg-primary: #070B11;
  --bg-secondary: #0D1117;
  --bg-card: rgba(13, 17, 23, 0.85);
  --bg-glass: rgba(255, 255, 255, 0.04);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(0, 200, 255, 0.25);

  --cyan: #00C8FF;
  --cyan-dim: rgba(0, 200, 255, 0.15);
  --cyan-glow: 0 0 30px rgba(0, 200, 255, 0.35);
  --red: #FF1744;
  --red-dim: rgba(255, 23, 68, 0.15);
  --gold: #FFD700;
  --gold-dim: rgba(255, 215, 0, 0.15);
  --green: #00E676;

  --text-primary: #F0F6FC;
  --text-secondary: #8B949E;
  --text-muted: #484F58;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);

  --nav-height: 72px;
}

/* ── RTL Support (Arabic) ─────────────────────────── */
[dir="rtl"] { direction: rtl; text-align: right; }
[dir="rtl"] .nav-links { flex-direction: row-reverse; }
[dir="rtl"] .hero-cta { flex-direction: row-reverse; }
[dir="rtl"] .signal-row { flex-direction: row-reverse; }
[dir="rtl"] .footer-grid { direction: rtl; }

/* ── Reset & Base ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden !important; width: 100%; position: relative; max-width: 100%; }

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden !important;
  width: 100%;
  max-width: 100%;
  position: relative;
  min-height: 100vh;
}

/* Hide any leftover custom cursor elements */
#hammerCursor, .cursor-dot, .cursor-ring, .trail-dot {
  display: none !important;
  pointer-events: none !important;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--cyan); border-radius: 3px; }

/* ── GRID BACKGROUND ──────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,200,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,200,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* ── NAVBAR ───────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  background: rgba(7, 11, 17, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
  z-index: 1000;
  transition: var(--transition);
  max-width: 100%;
  overflow-x: hidden;
}

.navbar.scrolled { box-shadow: 0 4px 30px rgba(0,0,0,0.5); }

.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
}

.nav-logo-mark {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--cyan), #0070FF);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 700; font-size: 18px;
  color: white;
  box-shadow: var(--cyan-glow);
}

.nav-logo-text {
  font-family: var(--font-display);
  font-size: 1.3rem; font-weight: 700;
  background: linear-gradient(135deg, #fff 0%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-logo-version {
  font-size: 0.65rem; color: var(--cyan);
  background: var(--cyan-dim);
  padding: 2px 7px; border-radius: 20px;
  border: 1px solid rgba(0,200,255,0.3);
  font-weight: 600;
}

.nav-links {
  display: flex; align-items: center; gap: 6px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.9rem; font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--text-primary);
  background: var(--bg-glass);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 50%; transform: translateX(-50%);
  width: 20px; height: 2px;
  background: var(--cyan);
  border-radius: 2px;
}

.nav-badge {
  font-size: 0.6rem; color: var(--gold);
  background: var(--gold-dim);
  padding: 2px 6px; border-radius: 20px;
  border: 1px solid rgba(255,215,0,0.3);
  margin-left: 4px;
  vertical-align: middle;
}

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

.lang-switcher {
  display: flex; gap: 4px;
  background: var(--bg-glass);
  padding: 4px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-glass);
}

.lang-btn {
  background: none; border: none;
  color: var(--text-secondary);
  font-size: 0.78rem; font-weight: 600;
  padding: 4px 9px; border-radius: 6px;
  cursor: pointer; transition: var(--transition);
  font-family: var(--font-body);
}

.lang-btn.active, .lang-btn:hover {
  background: var(--cyan-dim);
  color: var(--cyan);
}

.btn-nav-login {
  background: none;
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  cursor: pointer; font-size: 0.88rem;
  font-family: var(--font-body); font-weight: 500;
  transition: var(--transition);
  text-decoration: none;
  display: inline-block;
}

.btn-nav-login:hover { color: var(--text-primary); border-color: var(--border-glow); }

.btn-nav-cta {
  background: linear-gradient(135deg, var(--cyan) 0%, #0070FF 100%);
  border: none;
  color: #000;
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  cursor: pointer; font-size: 0.88rem;
  font-family: var(--font-body); font-weight: 700;
  transition: var(--transition);
  text-decoration: none;
  display: inline-block;
}

.btn-nav-cta:hover { transform: translateY(-1px); box-shadow: var(--cyan-glow); }

.hamburger {
  display: none;
  flex-direction: column; gap: 4px;
  background: none; border: none;
  cursor: pointer; padding: 12px;
}

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

/* Mobile Nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--nav-height); left: 0; right: 0;
  max-height: calc(100vh - var(--nav-height));
  overflow-y: auto;
  background: rgba(7,11,17,0.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
  padding: 20px 5%;
  z-index: 999;
  flex-direction: column; gap: 8px;
  -webkit-overflow-scrolling: touch;
}

.mobile-nav.open { display: flex; }

.mobile-nav a {
  text-decoration: none; color: var(--text-secondary);
  padding: 12px 16px; border-radius: var(--radius-sm);
  font-size: 0.95rem; font-weight: 500;
  transition: var(--transition);
  border: 1px solid transparent;
}

.mobile-nav a:hover { color: var(--cyan); border-color: var(--border-glow); background: var(--cyan-dim); }

/* ── BUTTONS ──────────────────────────────────────── */
.btn-primary {
  background: linear-gradient(135deg, var(--cyan) 0%, #0070FF 100%);
  border: none; color: #000;
  padding: 14px 30px; border-radius: var(--radius-sm);
  cursor: pointer; font-size: 0.95rem;
  font-family: var(--font-body); font-weight: 700;
  transition: var(--transition); text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,200,255,0.4); }
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  padding: 14px 30px; border-radius: var(--radius-sm);
  cursor: pointer; font-size: 0.95rem;
  font-family: var(--font-body); font-weight: 600;
  transition: var(--transition); text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
  backdrop-filter: blur(10px);
}

.btn-secondary:hover { border-color: var(--border-glow); background: var(--cyan-dim); }

.btn-ghost {
  background: none; border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  padding: 10px 22px; border-radius: var(--radius-sm);
  cursor: pointer; font-size: 0.88rem;
  font-family: var(--font-body); font-weight: 500;
  transition: var(--transition); text-decoration: none;
  display: inline-block;
}

.btn-ghost:hover { color: var(--cyan); border-color: var(--cyan); }

.btn-red {
  background: linear-gradient(135deg, var(--red) 0%, #FF6B6B 100%);
  border: none; color: #fff;
  padding: 12px 26px; border-radius: var(--radius-sm);
  cursor: pointer; font-size: 0.9rem;
  font-family: var(--font-body); font-weight: 700;
  transition: var(--transition); text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
}

.btn-red:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(255,23,68,0.4); }

/* ── CARD COMPONENT ───────────────────────────────── */
.card {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 24px;
  backdrop-filter: blur(12px);
  transition: var(--transition);
}

.card:hover {
  border-color: var(--border-glow);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4), 0 0 0 1px rgba(0,200,255,0.1);
}

.card-glow {
  box-shadow: 0 0 0 1px rgba(0,200,255,0.15), 0 8px 32px rgba(0,0,0,0.4);
}

/* ── SECTION LAYOUT ───────────────────────────────── */
.section {
  position: relative;
  padding: 100px 5%;
  z-index: 1;
  max-width: 100%;
  overflow-x: hidden;
}

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

.section-label {
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--cyan);
  background: var(--cyan-dim);
  border: 1px solid rgba(0,200,255,0.25);
  padding: 5px 16px; border-radius: 20px;
  display: inline-block; margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700; line-height: 1.2;
  margin-bottom: 16px;
}

.section-sub {
  color: var(--text-secondary);
  font-size: 1.05rem; max-width: 580px;
  margin: 0 auto;
}

/* ── GRADIENT TEXT ────────────────────────────────── */
.text-cyan { color: var(--cyan); }
.text-gold { color: var(--gold); }
.text-red { color: var(--red); }

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

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

/* ── LIVE TICKER STRIP ────────────────────────────── */
.ticker-strip {
  background: rgba(0,200,255,0.05);
  border-top: 1px solid var(--border-glass);
  border-bottom: 1px solid var(--border-glass);
  padding: 10px 0;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.ticker-inner {
  display: flex; gap: 60px;
  animation: ticker 35s linear infinite;
  white-space: nowrap;
}

.ticker-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.85rem; font-weight: 600;
  font-family: var(--font-display);
}

.ticker-sym { color: var(--text-primary); }
.ticker-price { color: var(--text-secondary); }
.ticker-up { color: var(--green); }
.ticker-down { color: var(--red); }

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

/* ── STAT CARDS ───────────────────────────────────── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 60px;
}

.stat-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  backdrop-filter: blur(12px);
  transition: var(--transition);
}

.stat-card:hover { border-color: var(--border-glow); }

.stat-value {
  font-family: var(--font-display);
  font-size: 2.2rem; font-weight: 700;
  color: var(--text-primary);
}

.stat-label { color: var(--text-secondary); font-size: 0.85rem; margin-top: 4px; }

/* ── GRID LAYOUTS ─────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ── BADGE ────────────────────────────────────────── */
.badge {
  font-size: 0.7rem; font-weight: 700;
  padding: 3px 10px; border-radius: 20px;
  text-transform: uppercase; letter-spacing: 0.08em;
}

.badge-cyan { background: var(--cyan-dim); color: var(--cyan); border: 1px solid rgba(0,200,255,0.3); }
.badge-gold { background: var(--gold-dim); color: var(--gold); border: 1px solid rgba(255,215,0,0.3); }
.badge-red { background: var(--red-dim); color: var(--red); border: 1px solid rgba(255,23,68,0.3); }
.badge-green { background: rgba(0,230,118,0.12); color: var(--green); border: 1px solid rgba(0,230,118,0.3); }
.badge-new { background: linear-gradient(135deg, #8B5CF6, #06B6D4); color: #fff; }

/* ── PULSE DOT ────────────────────────────────────── */
.pulse-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  display: inline-block;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(0,230,118,0.4); }
  50% { opacity: 0.8; box-shadow: 0 0 0 6px rgba(0,230,118,0); }
}

/* ── SIGNAL ROW ───────────────────────────────────── */
.signal-row {
  display: flex; align-items: center;
  gap: 16px; padding: 16px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  margin-bottom: 10px;
}

.signal-row:hover { border-color: var(--border-glow); background: rgba(0,200,255,0.03); }

.signal-badge-buy {
  padding: 4px 12px; border-radius: 6px;
  background: rgba(0,230,118,0.15); color: var(--green);
  font-weight: 700; font-size: 0.8rem;
  border: 1px solid rgba(0,230,118,0.3);
  min-width: 50px; text-align: center;
}

.signal-badge-sell {
  padding: 4px 12px; border-radius: 6px;
  background: var(--red-dim); color: var(--red);
  font-weight: 700; font-size: 0.8rem;
  border: 1px solid rgba(255,23,68,0.3);
  min-width: 50px; text-align: center;
}

/* ── FOOTER ───────────────────────────────────────── */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-glass);
  padding: 60px 5% 30px;
  position: relative; z-index: 1;
}

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

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.9rem; margin-top: 14px;
  max-width: 320px; line-height: 1.7;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.9rem; font-weight: 700;
  color: var(--text-primary); margin-bottom: 16px;
  text-transform: uppercase; letter-spacing: 0.05em;
}

.footer-col a {
  display: block; color: var(--text-secondary);
  text-decoration: none; font-size: 0.88rem;
  margin-bottom: 10px; transition: var(--transition);
}

.footer-col a:hover { color: var(--cyan); }

.footer-bottom {
  border-top: 1px solid var(--border-glass);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}

.footer-bottom p { color: var(--text-muted); font-size: 0.82rem; }

/* ── CHART CANVAS (Fake Chart) ────────────────────── */
.fake-chart {
  position: relative;
  height: 140px;
  overflow: hidden;
  border-radius: var(--radius-sm);
  margin-top: 16px;
}

.fake-chart canvas { width: 100% !important; }

/* ── SCORE BAR ─────────────────────────────────────── */
.score-bar-wrapper { margin-top: 8px; }
.score-bar-track {
  height: 6px; border-radius: 3px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
}

.score-bar-fill {
  height: 100%; border-radius: 3px;
  background: linear-gradient(90deg, var(--cyan), #0070FF);
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.score-bar-fill.gold { background: linear-gradient(90deg, var(--gold), #FF9800); }
.score-bar-fill.green { background: linear-gradient(90deg, var(--green), #00BCD4); }
.score-bar-fill.red { background: linear-gradient(90deg, var(--red), #FF5252); }

/* ── TOOLTIP ─────────────────────────────────────── */
.tooltip-wrapper { position: relative; display: inline-block; }
.tooltip-wrapper .tooltip-text {
  position: absolute; bottom: 120%; left: 50%; transform: translateX(-50%);
  background: #1C2333; border: 1px solid var(--border-glass);
  color: var(--text-primary); font-size: 0.78rem;
  padding: 8px 12px; border-radius: var(--radius-sm);
  white-space: nowrap; opacity: 0; pointer-events: none;
  transition: var(--transition); z-index: 999;
}

.tooltip-wrapper:hover .tooltip-text { opacity: 1; }

/* ── PAGE HERO ────────────────────────────────────── */
.page-hero {
  padding: calc(var(--nav-height) + 80px) 5% 80px;
  text-align: center;
  position: relative; z-index: 1;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800; line-height: 1.15;
  margin-bottom: 20px;
}

.page-hero p {
  color: var(--text-secondary);
  font-size: 1.1rem; max-width: 640px; margin: 0 auto 36px;
}

/* ── GLOW BLOB ────────────────────────────────────── */
.glow-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.glow-blob-cyan {
  width: 500px; height: 500px;
  background: rgba(0,200,255,0.07);
}

.glow-blob-red {
  width: 400px; height: 400px;
  background: rgba(255,23,68,0.07);
}

/* ── ANIMATIONS ─────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes spin { to { transform: rotate(360deg); } }

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.animate-fade-up { /* Animation disabled */ }
.animate-fade-up-d1 { /* Animation disabled */ }
.animate-fade-up-d2 { /* Animation disabled */ }
.animate-fade-up-d3 { /* Animation disabled */ }
.animate-fade-up-d4 { /* Animation disabled */ }

/* ── LOADING SPINNER ─────────────────────────────── */
.spinner {
  width: 20px; height: 20px;
  border: 2px solid rgba(0,200,255,0.2);
  border-top-color: var(--cyan);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}

/* ── SKELETON LOADER ─────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg,
    rgba(255,255,255,0.03) 25%,
    rgba(255,255,255,0.07) 50%,
    rgba(255,255,255,0.03) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

/* ── NEWS CARD ────────────────────────────────────── */
.news-card .news-img {
  width: 100%; height: 180px;
  object-fit: cover; border-radius: var(--radius-sm);
  margin-bottom: 16px;
}

.news-card .news-meta {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 10px;
}

.news-card h3 {
  font-family: var(--font-display);
  font-size: 1rem; font-weight: 600; line-height: 1.4;
  margin-bottom: 8px;
}

.news-card p { color: var(--text-secondary); font-size: 0.85rem; }

/* ── INDICATOR CARD ──────────────────────────────── */
.indicator-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.indicator-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-glow);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 0 1px rgba(0,200,255,0.1);
}

.indicator-card-header {
  padding: 24px 24px 16px;
  border-bottom: 1px solid var(--border-glass);
}

.indicator-card-body { padding: 20px 24px; }

.indicator-stats {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px; margin: 16px 0;
}

.indicator-stat-item { text-align: center; }
.indicator-stat-item .val {
  font-family: var(--font-display);
  font-size: 1.4rem; font-weight: 700;
  color: var(--cyan);
}

.indicator-stat-item .lbl { color: var(--text-secondary); font-size: 0.78rem; }

.price-tag {
  font-family: var(--font-display);
  font-size: 2rem; font-weight: 800;
  background: linear-gradient(135deg, var(--gold), #FF9800);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.price-period { font-size: 0.85rem; color: var(--text-secondary); font-weight: 400; }

/* ── FEATURE LIST ────────────────────────────────── */
.feature-list { list-style: none; }
.feature-list li {
  display: flex; align-items: flex-start; gap: 10px;
  color: var(--text-secondary); font-size: 0.9rem;
  margin-bottom: 10px;
}

.feature-list li::before {
  content: '✓';
  color: var(--cyan); font-weight: 700;
  flex-shrink: 0; margin-top: 1px;
}

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

/* Global Responsive Utilities */
.grid-cols-1 { grid-template-columns: 1fr; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1200px) {
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1024px) {
  .navbar { padding: 0 4%; }
  .nav-links { gap: 4px; }
  .nav-links a { padding: 8px 10px; font-size: 0.85rem; }
  .nav-actions { gap: 8px; }
  .btn-nav-login { padding: 8px 14px; font-size: 0.82rem; }
  .btn-nav-cta { padding: 8px 16px; font-size: 0.82rem; }
  .lang-switcher { display: none; } /* Hide on tablet, shown in mobile menu */
}

@media (max-width: 768px) {
  :root { --nav-height: 64px; }

  .nav-links, .nav-actions { display: none; }
  .hamburger { 
    display: flex; 
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
  }

  .nav-logo {
    position: absolute !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    margin: 0 !important;
    z-index: 1001;
  }

  .mobile-nav {
    max-height: calc(100vh - var(--nav-height));
    overflow-y: auto;
  }

  .section { padding: 60px 5%; }
  .section-header { margin-bottom: 40px; }
  .section-title { font-size: 1.8rem; }
  .section-sub { font-size: 1rem; }

  /* Hero Section */
  .hero-section {
    min-height: auto !important;
    padding-top: calc(var(--nav-height) + 40px) !important;
    padding-bottom: 60px !important;
    text-align: center;
  }
  .hero-section .section-two-col {
    grid-template-columns: 1fr !important;
    gap: 40px;
  }
  .hero-section p { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; flex-direction: column; width: 100%; gap: 12px !important; }
  .hero-cta a { width: 100%; justify-content: center; }
  .hero-card-float { display: none; }

  /* Global Grid Collapses */
  .grid-2, .grid-3, .grid-4, .section-two-col {
    grid-template-columns: 1fr !important;
    gap: 32px;
  }
  
  .stats-row { grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 40px; }
  .stat-card { padding: 20px; }
  .stat-value { font-size: 1.7rem; }

  .page-hero { padding: calc(var(--nav-height) + 40px) 5% 60px; }
  .page-hero h1 { font-size: 2.2rem; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr !important; gap: 32px; text-align: center; }
  .footer-brand p { margin-left: auto; margin-right: auto; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 12px; }

  /* Specific Sections Fixes */
  #plans div[style*="grid-template-columns"],
  .pricing-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  #scannerStats { grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; }
  #scannerStats > div:last-child { grid-column: span 2; }
  #scannerAnalysisPanel { grid-template-columns: 1fr !important; }

  #investMockGrid { grid-template-columns: 1fr !important; }
  #investMockGrid [style*="grid-column:span 2"],
  #investMockGrid [style*="grid-column: span 2"] {
    grid-column: span 1 !important;
  }

  /* Tables Scrollable Wrapper */
  .table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0;
    padding: 0;
  }

  /* Hide large blobs to prevent overflow */
  .glow-blob, .orb, .fake-chart { display: none !important; }
}

@media (max-width: 480px) {
  .section-title { font-size: 1.6rem; }
  .stat-value { font-size: 1.4rem; }
  .stats-row { grid-template-columns: 1fr; }
  
  .btn-primary, .btn-secondary { padding: 12px 20px; font-size: 0.9rem; }
  
  .page-hero h1 { font-size: 1.8rem; }
  .page-hero p { font-size: 0.95rem; }
}


/* ── PAYMENT METHODS ──────────────────────────────── */
.payment-badge {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition);
  cursor: default;
}
.payment-badge:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
  background: var(--gold-dim);
}
