/* ============================================================
   MUSK SPACE — MAIN CSS  v6
   Matches muskspace.pro exactly. Professional. Clean.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:       #000000;
  --bg-1:     #0a0a0a;
  --bg-2:     #111111;
  --bg-3:     #181818;
  --bg-4:     #222222;
  --border:   rgba(255,255,255,0.08);
  --border-2: rgba(255,255,255,0.15);
  --white:    #ffffff;
  --light:    #c8c4be;
  --muted:    #6a6a6a;
  --dim:      #383838;
  --accent:   #e6ddd0;
  --green:    #22c55e;
  --red:      #ef4444;
  --yellow:   #f59e0b;
  --blue:     #3b82f6;
  --display:  'Syne', sans-serif;
  --body:     'Inter', sans-serif;
  --nav-h:    60px;
  --max-w:    1140px;
  --px:       48px;
}


/* ================================================================
   DOT GRID BACKGROUND — dark mode only, subtle depth texture
   ================================================================ */
body:not(.light)::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(255,255,255,0.065) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 1;
}
/* Ensure page content sits above dot grid */
.navbar, main, section, footer, .home-split, .split-panel,
.invest-hero, .shop-hero, .app-layout {
  position: relative;
  z-index: 1;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.5;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button { cursor: pointer; font-family: var(--body); border: none; background: none; }

::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--dim); border-radius: 2px; }

/* ================================================================
   NAVBAR — exact match to reference
   ================================================================ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--px);
  background: rgba(0,0,0,0.80);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.navbar-transparent {
  background: transparent;
  border-bottom: none;
  transition: background 0.3s, border-color 0.3s;
}
.navbar-transparent.scrolled {
  background: rgba(0,0,0,0.82);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: var(--display);
  font-size: 16px; font-weight: 800;
  letter-spacing: -0.3px; color: var(--white);
}
.nav-logo span { color: var(--accent); }

.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  font-size: 13px; font-weight: 400;
  color: rgba(255,255,255,0.55);
  transition: color 0.18s;
}
.nav-links a:hover { color: var(--white); }

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

.btn-ghost {
  display: inline-block;
  font-size: 13px; font-weight: 400;
  color: rgba(255,255,255,0.7);
  padding: 7px 18px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 6px;
  transition: all 0.18s;
}
.btn-ghost:hover { color: var(--white); border-color: rgba(255,255,255,0.35); }

.btn-primary {
  display: inline-block;
  font-size: 13px; font-weight: 500;
  color: var(--bg); background: var(--white);
  padding: 7px 18px; border-radius: 6px;
  transition: opacity 0.18s;
}
.btn-primary:hover { opacity: 0.88; }

/* ================================================================
   HOME PAGE — EXACT SPLIT LAYOUT
   Reference: two equal panels, full viewport height
   ================================================================ */
.home-page { overflow: hidden; }

.home-split {
  display: flex;
  height: 100vh;
  height: 100svh;
  min-height: 600px;
  position: relative;
  z-index: 1;
}

.split-panel {
  position: relative; flex: 1;
  overflow: hidden; cursor: pointer;
  text-decoration: none; display: block;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: flex 0.6s cubic-bezier(0.4,0,0.2,1);
}
.split-panel:hover { flex: 1.18; }

.panel-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform 0.65s cubic-bezier(0.4,0,0.2,1);
}
.split-panel:hover .panel-bg { transform: scale(1.04); }

.panel-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.80) 0%,
    rgba(0,0,0,0.25) 55%,
    rgba(0,0,0,0.05) 100%
  );
}
.panel-shop { border-right: 1px solid rgba(255,255,255,0.07); }


.panel-content {
  position: absolute;
  bottom: 52px; left: 48px; right: 48px;
}

.panel-eyebrow {
  display: block;
  font-size: 10px; font-weight: 500;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: rgba(255,255,255,0.42);
  margin-bottom: 12px;
}

/* FIXED: moderately sized panel titles (not too big) */
.panel-title {
  font-family: var(--display);
  font-size: clamp(42px, 4.5vw, 64px);
  font-weight: 800; line-height: 1;
  letter-spacing: -1.5px; color: var(--white);
  margin-bottom: 10px;
}

.panel-sub {
  font-size: 14px; color: rgba(255,255,255,0.55);
  line-height: 1.55; margin-bottom: 24px;
}

.panel-btn {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 500;
  color: var(--bg); background: var(--white);
  padding: 10px 22px; border-radius: 6px;
  transition: opacity 0.18s;
}
.panel-btn:hover { opacity: 0.88; }

/* ================================================================
   INVEST LANDING — HERO
   FIXED: realistic rocket image, moderately sized headline
   ================================================================ */
.invest-hero {
  position: relative;
  height: 100vh; min-height: 600px;
  display: flex; align-items: center; justify-content: center;
  padding-top: var(--nav-h); overflow: hidden;
}

.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center top;
  opacity: 0; transition: opacity 0.8s ease;
}
.hero-slide.active { opacity: 1; }

.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.52) 0%,
    rgba(0,0,0,0.68) 40%,
    rgba(0,0,0,0.72) 60%,
    rgba(0,0,0,0.48) 100%
  );
}

/* ── Centred hero body ── */
.hero-body {
  position: relative; z-index: 2;
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 var(--px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-trust {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 10px; font-weight: 600;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: rgba(255,255,255,0.50);
  margin-bottom: 24px;
  border: 1px solid rgba(255,255,255,0.12);
  padding: 7px 16px; border-radius: 30px;
  backdrop-filter: blur(8px);
  background: rgba(255,255,255,0.05);
}
.hero-trust-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 10px rgba(34,197,94,0.7);
  animation: glow 2.4s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes glow {
  0%,100% { box-shadow: 0 0 6px rgba(34,197,94,0.5); }
  50%      { box-shadow: 0 0 18px rgba(34,197,94,1); }
}

.hero-headline {
  font-family: var(--display);
  font-size: clamp(38px, 5.5vw, 76px);
  font-weight: 800; line-height: 1.04;
  letter-spacing: -2px; color: #ffffff;
  margin-bottom: 22px;
  text-shadow: 0 2px 32px rgba(0,0,0,0.4);
}
.hero-headline em {
  font-style: normal; display: block;
  background: linear-gradient(135deg, #ffffff 0%, rgba(255,255,255,0.65) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 16px; line-height: 1.75;
  color: rgba(255,255,255,0.60);
  max-width: 560px;
  margin-bottom: 38px;
  text-shadow: 0 1px 12px rgba(0,0,0,0.5);
}

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

.btn-invest-primary {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 600;
  color: #000000; background: #ffffff;
  padding: 15px 34px; border-radius: 8px;
  letter-spacing: -0.2px;
  transition: opacity 0.18s, transform 0.18s;
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}
.btn-invest-primary:hover { opacity: 0.92; transform: translateY(-1px); }

.btn-invest-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 400;
  color: rgba(255,255,255,0.80);
  border: 1px solid rgba(255,255,255,0.28);
  padding: 15px 34px; border-radius: 8px;
  backdrop-filter: blur(8px);
  background: rgba(255,255,255,0.06);
  transition: all 0.18s;
}
.btn-invest-ghost:hover {
  color: #ffffff;
  border-color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.10);
}

/* ================================================================
   SECTION SYSTEM
   ================================================================ */
.section { padding: 108px 0; }
.section-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--px); }

.section-eyebrow {
  display: block;
  font-size: 10px; font-weight: 600;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--muted); margin-bottom: 16px;
}
.section-title {
  font-family: var(--display);
  font-size: clamp(26px, 3.2vw, 44px);
  font-weight: 800; line-height: 1.1;
  letter-spacing: -1px; color: var(--white);
  margin-bottom: 56px;
}
.section-title em { font-style: normal; display: block; color: var(--muted); }

.section-desc {
  font-size: 14px; color: var(--muted);
  line-height: 1.72; max-width: 500px;
  margin-bottom: 52px; margin-top: -36px;
}

.section-dark { background: var(--bg-1); }

/* ================================================================
   HOW IT WORKS
   ================================================================ */
.how-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
}
.how-item {
  background: var(--bg-1); padding: 44px 36px;
  transition: background 0.2s;
}
.how-item:hover { background: var(--bg-2); }
.how-num {
  display: block; font-family: var(--display);
  font-size: 10px; font-weight: 700;
  letter-spacing: 2px; color: var(--dim); margin-bottom: 24px;
}
.how-item h3 {
  font-family: var(--display);
  font-size: 16px; font-weight: 700;
  color: var(--white); margin-bottom: 18px; line-height: 1.35;
}
.how-item ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.how-item ul li {
  font-size: 13px; color: var(--muted);
  padding-left: 14px; position: relative; line-height: 1.55;
}
.how-item ul li::before {
  content: ''; position: absolute; left: 0; top: 7px;
  width: 4px; height: 4px; border-radius: 50%; background: var(--dim);
}

/* ================================================================
   MARKETS
   ================================================================ */
.markets-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.market-card {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 10px; padding: 24px 22px;
  transition: border-color 0.2s, transform 0.2s;
}
.market-card:hover { border-color: var(--border-2); transform: translateY(-2px); }
.market-top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.market-icon {
  width: 38px; height: 38px; border-radius: 8px;
  background: var(--bg-3); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800;
  font-family: var(--display); color: var(--white); flex-shrink: 0;
}
.market-name { font-family: var(--display); font-size: 14px; font-weight: 700; color: var(--white); margin-bottom: 2px; }
.market-ticker { font-size: 10px; letter-spacing: 1px; color: var(--muted); }
.market-desc { font-size: 12px; color: var(--muted); line-height: 1.6; }

/* ================================================================
   PLANS
   ================================================================ */
.plans-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.plan-card {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 12px; padding: 34px 28px 28px;
  position: relative; display: flex; flex-direction: column;
  transition: border-color 0.2s, transform 0.22s;
}
.plan-card:hover { border-color: var(--border-2); transform: translateY(-3px); }
.plan-card.featured {
  border-color: rgba(255,255,255,0.16);
  background: linear-gradient(160deg, var(--bg-3) 0%, var(--bg-2) 100%);
}
.plan-badge {
  position: absolute; top: -1px; right: 22px;
  background: var(--white); color: var(--bg);
  font-size: 9px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  padding: 4px 12px; border-radius: 0 0 8px 8px;
}
.plan-tier { display: block; font-size: 10px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.plan-name { font-family: var(--display); font-size: 21px; font-weight: 800; color: var(--white); margin-bottom: 4px; }
.plan-range { font-size: 13px; color: var(--muted); margin-bottom: 24px; }
.plan-roi-label { display: block; font-size: 10px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); margin-bottom: 5px; }
.plan-roi { font-family: var(--display); font-size: 34px; font-weight: 800; color: var(--white); line-height: 1; margin-bottom: 5px; }
.plan-roi-note { font-size: 11px; color: var(--muted); line-height: 1.6; margin-bottom: 20px; }
.plan-cycle-line {
  font-size: 12px; color: var(--muted);
  padding: 14px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}
.plan-cycle-line strong { color: var(--light); }
.plan-desc { font-size: 12px; color: rgba(255,255,255,0.35); line-height: 1.6; margin-bottom: 20px; }
.plan-features { list-style: none; display: flex; flex-direction: column; gap: 9px; margin-bottom: 26px; flex: 1; }
.plan-features li { font-size: 13px; color: var(--light); display: flex; align-items: flex-start; gap: 9px; line-height: 1.5; }
.plan-features li::before { content: '✓'; color: var(--green); font-size: 11px; flex-shrink: 0; margin-top: 2px; }
.btn-plan {
  display: block; width: 100%; text-align: center;
  font-size: 13px; font-weight: 500;
  padding: 12px; border-radius: 7px;
  border: 1px solid var(--border-2); color: var(--white); background: transparent;
  transition: all 0.18s; cursor: pointer;
}
.btn-plan:hover { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.3); }
.plan-card.featured .btn-plan { background: var(--white); color: var(--bg); border-color: var(--white); }
.plan-card.featured .btn-plan:hover { opacity: 0.88; }

/* ================================================================
   RISK GRID
   ================================================================ */
.risk-grid {
  display: grid; grid-template-columns: repeat(2,1fr);
  gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
}
.risk-item { background: var(--bg-1); padding: 40px 36px; transition: background 0.2s; }
.risk-item:hover { background: var(--bg-2); }
.risk-num { display: block; font-size: 10px; font-weight: 700; letter-spacing: 2px; color: var(--dim); margin-bottom: 16px; font-family: var(--display); }
.risk-item h3 { font-family: var(--display); font-size: 15px; font-weight: 700; color: var(--white); margin-bottom: 11px; }
.risk-item p { font-size: 13px; color: var(--muted); line-height: 1.68; }

/* ================================================================
   INVEST CTA
   ================================================================ */
.invest-cta { text-align: center; padding: 128px var(--px); }
.invest-cta .section-eyebrow { display: block; text-align: center; margin-bottom: 20px; }
.invest-cta h2 {
  font-family: var(--display);
  font-size: clamp(30px, 4vw, 54px);
  font-weight: 800; letter-spacing: -1.2px; line-height: 1.08;
  color: var(--white); margin-bottom: 16px;
}
.invest-cta h2 em { font-style: normal; display: block; color: var(--muted); }
.invest-cta p {
  font-size: 14px; color: var(--muted); line-height: 1.72;
  max-width: 430px; margin: 0 auto 40px;
}
.invest-cta-btns { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* ================================================================
   FOOTER
   ================================================================ */
.invest-footer { border-top: 1px solid var(--border); padding: 72px 0 36px; }
.invest-footer-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 var(--px);
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 44px;
}
.footer-logo { font-family: var(--display); font-size: 15px; font-weight: 800; color: var(--white); margin-bottom: 12px; }
.footer-tagline { font-size: 13px; color: var(--muted); line-height: 1.68; max-width: 220px; }
.footer-col-title { display: block; font-size: 11px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--light); margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer-col ul li a { font-size: 13px; color: var(--muted); transition: color 0.18s; }
.footer-col ul li a:hover { color: var(--light); }
.footer-bottom {
  max-width: var(--max-w); margin: 44px auto 0; padding: 22px var(--px) 0;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 14px; font-size: 12px; color: var(--muted);
}
.footer-bottom-links { display: flex; gap: 22px; }
.footer-bottom-links a { font-size: 12px; color: var(--muted); transition: color 0.18s; }
.footer-bottom-links a:hover { color: var(--light); }

/* Site footer (shop) */
.site-footer {
  border-top: 1px solid var(--border); padding: 24px var(--px);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.site-footer p { font-size: 12px; color: var(--muted); }
.site-footer-links { display: flex; gap: 22px; }
.site-footer-links a { font-size: 12px; color: var(--muted); transition: color 0.18s; }
.site-footer-links a:hover { color: var(--light); }

/* ================================================================
   SHOP PAGE — exact match to reference
   ================================================================ */
.shop-page {}

/* FIXED: shop hero — moderately sized like the reference */
.shop-hero {
  position: relative;
  height: 100vh; min-height: 600px;
  overflow: hidden; display: flex; flex-direction: column;
  padding-top: var(--nav-h);
}
.shop-hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: opacity 0.5s ease;
}
.shop-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.18) 0%, rgba(0,0,0,0.58) 100%);
}
.shop-hero-content {
  position: relative; z-index: 2;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  flex: 1; text-align: center; padding: 0 24px;
}
/* ── Shop hero — centralized title (matches invest hero) ── */
.shop-hero-trust {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 10px; font-weight: 600;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: rgba(255,255,255,0.50);
  margin-bottom: 22px;
  border: 1px solid rgba(255,255,255,0.12);
  padding: 7px 16px; border-radius: 30px;
  backdrop-filter: blur(8px);
  background: rgba(255,255,255,0.05);
}
.shop-hero-trust-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 10px rgba(34,197,94,0.7);
  animation: glow 2.4s ease-in-out infinite;
  flex-shrink: 0;
}
.shop-hero-headline {
  font-family: var(--display);
  font-size: clamp(52px, 7.5vw, 96px);
  font-weight: 800; line-height: 1.0;
  letter-spacing: -3px; color: #ffffff;
  margin-bottom: 16px;
  text-shadow: 0 2px 48px rgba(0,0,0,0.5);
}
.shop-hero-tagline {
  font-size: clamp(14px, 1.5vw, 17px);
  line-height: 1.75;
  color: rgba(255,255,255,0.58);
  max-width: 480px;
  margin: 0 auto;
  text-shadow: 0 1px 12px rgba(0,0,0,0.5);
  letter-spacing: 0.1px;
}



/* ── Shop hero text (centred, matches invest hero) ── */
/* .shop-hero-content definition above is canonical — do not re-define */
.shop-hero-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 14px;
  display: block;
}
.shop-hero-title {
  font-family: var(--display);
  font-size: clamp(36px, 5.5vw, 72px);
  font-weight: 800;
  letter-spacing: -2px;
  color: #ffffff;
  line-height: 1.04;
  margin-bottom: 14px;
  text-shadow: 0 2px 32px rgba(0,0,0,0.5);
}
.shop-hero-sub {
  font-size: 16px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 32px;
}
.shop-hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  pointer-events: all;
  flex-wrap: wrap;
}
.btn-shop-primary {
  display: inline-flex; align-items: center;
  font-size: 15px; font-weight: 600;
  background: #ffffff; color: #000000;
  padding: 14px 32px; border-radius: 8px;
  transition: opacity .18s, transform .18s;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}
.btn-shop-primary:hover { opacity: .9; transform: translateY(-1px); }
.btn-shop-ghost {
  display: inline-flex; align-items: center;
  font-size: 15px; font-weight: 400;
  color: rgba(255,255,255,0.8);
  border: 1px solid rgba(255,255,255,0.28);
  padding: 14px 32px; border-radius: 8px;
  backdrop-filter: blur(8px);
  background: rgba(255,255,255,0.06);
  transition: all .18s;
}
.btn-shop-ghost:hover { color: #fff; border-color: rgba(255,255,255,0.5); }



/* FIXED: moderately sized shop hero title */
.shop-hero-title {
  font-family: var(--display);
  font-size: clamp(48px, 7vw, 90px);
  font-weight: 800; letter-spacing: -2.5px; line-height: 1;
  color: var(--white); margin-bottom: 10px;
}
.shop-hero-sub { font-size: 14px; color: rgba(255,255,255,0.62); margin-bottom: 28px; }
.btn-shop-primary {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 500;
  color: var(--bg); background: var(--white);
  padding: 11px 24px; border-radius: 6px;
  transition: opacity 0.18s; cursor: pointer; border: none; font-family: var(--body);
}
.btn-shop-primary:hover { opacity: 0.88; }
.btn-shop-ghost {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 400;
  color: rgba(255,255,255,0.72);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 11px 24px; border-radius: 6px;
  transition: all 0.18s; cursor: pointer; background: none; font-family: var(--body);
}
.btn-shop-ghost:hover { color: var(--white); border-color: rgba(255,255,255,0.4); }
.shop-hero-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

.shop-tabs-bar {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 3;
  display: flex;
  background: rgba(0,0,0,0.68);
  backdrop-filter: blur(14px);
  border-top: 1px solid rgba(255,255,255,0.07);
}
.shop-tab {
  flex: 1; text-align: center; font-size: 11px; font-weight: 500;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: rgba(255,255,255,0.38); padding: 18px 8px; cursor: pointer;
  border-bottom: 2px solid transparent; transition: all 0.18s;
}
.shop-tab:hover { color: rgba(255,255,255,0.72); }
.shop-tab.active { color: var(--white); border-bottom-color: var(--white); }

/* Vehicle grid */
.shop-vehicles { padding: 80px 0; }
.vehicles-section-header { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--px) 44px; }
.vehicles-grid { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--px); display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.vehicle-card {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 10px; overflow: hidden;
  transition: border-color 0.2s, transform 0.22s;
}
.vehicle-card:hover { border-color: var(--border-2); transform: translateY(-4px); }
.vehicle-img { width: 100%; aspect-ratio: 16/9; overflow: hidden; background: var(--bg-3); }
.vehicle-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.55s ease; }
.vehicle-card:hover .vehicle-img img { transform: scale(1.05); }
.vehicle-info { padding: 22px 22px 20px; }
.vehicle-name { font-family: var(--display); font-size: 18px; font-weight: 700; color: var(--white); margin-bottom: 5px; }
.vehicle-caption { font-size: 13px; color: var(--muted); line-height: 1.55; margin-bottom: 9px; }
.vehicle-price { font-size: 13px; font-weight: 600; color: var(--light); margin-bottom: 18px; }
.vehicle-actions { display: flex; gap: 9px; }
.btn-order-now {
  flex: 1; display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 500;
  color: var(--bg); background: var(--white);
  padding: 9px 16px; border-radius: 6px;
  transition: opacity 0.18s; cursor: pointer; border: none; font-family: var(--body);
}
.btn-order-now:hover { opacity: 0.88; }
.btn-learn-more {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 400;
  color: var(--muted); border: 1px solid var(--border);
  padding: 9px 16px; border-radius: 6px;
  transition: all 0.18s; cursor: pointer; background: none; font-family: var(--body);
}
.btn-learn-more:hover { color: var(--white); border-color: var(--border-2); }

.shop-footer-cta {
  background: var(--bg-1); text-align: center;
  padding: 100px var(--px); border-top: 1px solid var(--border);
}
.shop-footer-cta h2 { font-family: var(--display); font-size: clamp(26px, 3.5vw, 46px); font-weight: 800; letter-spacing: -1px; color: var(--white); margin-bottom: 14px; }
.shop-footer-cta p { font-size: 14px; color: var(--muted); max-width: 400px; margin: 0 auto 32px; line-height: 1.7; }
.shop-cta-btns { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* Vehicle detail + order modals */
.vmodal-overlay, .order-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.80); backdrop-filter: blur(8px);
  z-index: 1000; display: none;
  align-items: center; justify-content: center; padding: 20px;
}
.vmodal-overlay.show, .order-overlay.show { display: flex; }
.vmodal {
  background: var(--bg-2); border: 1px solid var(--border-2);
  border-radius: 14px; width: 100%; max-width: 820px;
  max-height: 90vh; overflow-y: auto; position: relative;
  display: grid; grid-template-columns: 1fr 1fr;
}
.vmodal-img { overflow: hidden; border-radius: 14px 0 0 14px; }
.vmodal-img img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; }
.vmodal-info { padding: 40px 36px; display: flex; flex-direction: column; }
.vmodal-close, .omodal-close {
  position: absolute; top: 16px; right: 16px;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,0.1); border: none;
  color: var(--white); font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background 0.18s;
}
.vmodal-close:hover, .omodal-close:hover { background: rgba(255,255,255,0.2); }
.vm-tag { display: block; font-size: 10px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.vm-name { font-family: var(--display); font-size: 28px; font-weight: 800; color: var(--white); margin-bottom: 7px; letter-spacing: -0.8px; }
.vm-caption { font-size: 13px; color: var(--muted); margin-bottom: 5px; }
.vm-price { font-size: 16px; font-weight: 700; color: var(--white); margin-bottom: 20px; }
.vm-desc { font-size: 13px; color: var(--muted); line-height: 1.72; margin-bottom: 28px; flex: 1; }
.vm-actions { display: flex; flex-direction: column; gap: 9px; }

.omodal {
  background: var(--bg-2); border: 1px solid var(--border-2);
  border-radius: 14px; width: 100%; max-width: 440px;
  max-height: 90vh; overflow-y: auto; position: relative;
  padding: 40px 36px;
}
.omodal-title { font-family: var(--display); font-size: 20px; font-weight: 800; color: var(--white); margin-bottom: 6px; }
.omodal-sub { font-size: 13px; color: var(--muted); margin-bottom: 28px; line-height: 1.6; }
.omodal-actions { display: flex; flex-direction: column; gap: 9px; }
.btn-omodal-primary {
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 500;
  color: var(--bg); background: var(--white);
  padding: 13px; border-radius: 7px; transition: opacity 0.18s;
}
.btn-omodal-primary:hover { opacity: 0.88; }
.btn-omodal-ghost {
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 400;
  color: rgba(255,255,255,0.7); border: 1px solid rgba(255,255,255,0.18);
  padding: 13px; border-radius: 7px; transition: all 0.18s;
}
.btn-omodal-ghost:hover { color: var(--white); border-color: rgba(255,255,255,0.35); }
.omodal-divider { border: none; border-top: 1px solid var(--border); margin: 20px 0; }
.omodal-note { font-size: 12px; color: var(--muted); line-height: 1.65; }
.omodal-note a { color: var(--light); transition: color 0.18s; }
.omodal-note a:hover { color: var(--white); }

/* ================================================================
   AUTH PAGES — exact match to login page
   ================================================================ */
.auth-page { min-height: 100vh; display: flex; flex-direction: column; }
.auth-page .navbar { position: static; background: var(--bg); }
.auth-main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 60px 24px; }
.auth-card {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 14px; padding: 48px 44px;
  width: 100%; max-width: 420px;
}
.auth-logo { font-family: var(--display); font-size: 15px; font-weight: 800; color: var(--white); margin-bottom: 36px; display: block; }
.auth-title { font-family: var(--display); font-size: 24px; font-weight: 800; color: var(--white); letter-spacing: -0.4px; margin-bottom: 7px; }
.auth-sub { font-size: 13px; color: var(--muted); margin-bottom: 32px; line-height: 1.6; }

.auth-form-group { margin-bottom: 16px; }
.auth-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.auth-label { display: block; font-size: 12px; font-weight: 500; color: var(--light); margin-bottom: 7px; }
.auth-input {
  width: 100%; background: var(--bg-3); border: 1px solid var(--border);
  border-radius: 7px; padding: 11px 14px; font-size: 14px;
  color: var(--white); font-family: var(--body); outline: none;
  transition: border-color 0.18s; -webkit-appearance: none; appearance: none;
}
.auth-input:focus { border-color: rgba(255,255,255,0.3); }
.auth-input::placeholder { color: var(--muted); }
.auth-select {
  width: 100%; background: var(--bg-3); border: 1px solid var(--border);
  border-radius: 7px; padding: 11px 14px; font-size: 14px;
  color: var(--white); font-family: var(--body); outline: none;
  -webkit-appearance: none; appearance: none; cursor: pointer; transition: border-color 0.18s;
}
.auth-select:focus { border-color: rgba(255,255,255,0.3); }
.auth-select option { background: var(--bg-3); }
.auth-select-wrap { position: relative; }
.auth-select-wrap::after { content:'▾'; position:absolute; right:13px; top:50%; transform:translateY(-50%); font-size:11px; color:var(--muted); pointer-events:none; }
.auth-input-wrap { position: relative; }
.auth-input-wrap .auth-input { padding-right: 52px; }
.show-pass-btn { position:absolute; right:13px; top:50%; transform:translateY(-50%); font-size:11px; color:var(--muted); cursor:pointer; transition:color .18s; background:none; border:none; font-family:var(--body); }
.show-pass-btn:hover { color: var(--light); }
.auth-forgot { display:block; text-align:right; font-size:12px; color:var(--muted); margin:-4px 0 22px; transition:color .18s; }
.auth-forgot:hover { color: var(--light); }
.btn-auth {
  width:100%; padding:13px; font-size:14px; font-weight:600;
  background:var(--white); color:var(--bg); border:none; border-radius:7px;
  cursor:pointer; transition:opacity .18s; font-family:var(--body); position:relative;
}
.btn-auth:hover { opacity:.88; }
.btn-auth:disabled { opacity:.45; cursor:not-allowed; }
.btn-auth.loading { color:transparent; }
.btn-auth.loading::after {
  content:''; position:absolute; top:50%; left:50%;
  transform:translate(-50%,-50%); width:18px; height:18px;
  border:2px solid rgba(0,0,0,.2); border-top-color:var(--bg);
  border-radius:50%; animation:spin .6s linear infinite;
}
@keyframes spin { to { transform:translate(-50%,-50%) rotate(360deg); } }
.auth-divider { display:flex; align-items:center; gap:12px; margin:24px 0; }
.auth-divider-line { flex:1; height:1px; background:var(--border); }
.auth-divider-text { font-size:11px; color:var(--muted); letter-spacing:1px; text-transform:uppercase; }
.auth-switch { text-align:center; font-size:13px; color:var(--muted); margin-top:20px; }
.auth-switch a { color:var(--light); transition:color .18s; }
.auth-switch a:hover { color:var(--white); }
.auth-error { background:rgba(239,68,68,.08); border:1px solid rgba(239,68,68,.22); border-radius:7px; padding:11px 14px; font-size:13px; color:#fca5a5; margin-bottom:16px; display:none; line-height:1.5; }
.auth-error.show { display:block; }
.auth-success { background:rgba(34,197,94,.08); border:1px solid rgba(34,197,94,.22); border-radius:7px; padding:11px 14px; font-size:13px; color:#86efac; margin-bottom:16px; display:none; line-height:1.5; }
.auth-success.show { display:block; }

/* Auth card wide (signup) */
.auth-card-wide { max-width: 500px; }

/* ================================================================
   RESPONSIVE
   ================================================================ */



/* ================================================================
   BACK TO TOP BUTTON
   ================================================================ */
#backToTop {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 900;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.28s ease, transform 0.28s ease, background 0.18s, border-color 0.18s;
  pointer-events: none;
}
#backToTop.btt-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
#backToTop:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.28);
}
#backToTop svg {
  width: 16px;
  height: 16px;
  stroke: var(--white);
  flex-shrink: 0;
}


/* ================================================================
   LIVE MARKET TICKER STRIP
   ================================================================ */
.ticker-strip {
  background: var(--bg-1);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 0;
  overflow: hidden;
  position: relative;
  height: 72px;
  display: flex;
  align-items: center;
}

/* Fade edges */
.ticker-strip::before,
.ticker-strip::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.ticker-strip::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-1) 0%, transparent 100%);
}
.ticker-strip::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-1) 0%, transparent 100%);
}

.ticker-track {
  display: flex;
  align-items: center;
  gap: 0;
  animation: ticker-scroll 52s linear infinite;
  will-change: transform;
  white-space: nowrap;
}
.ticker-track:hover { animation-play-state: paused; }

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

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0 28px;
  border-right: 1px solid var(--border);
  height: 72px;
  cursor: default;
  transition: background 0.2s;
  flex-shrink: 0;
}
.ticker-item:hover { background: rgba(255,255,255,0.03); }

.ticker-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  font-family: var(--display);
  flex-shrink: 0;
}
.ticker-icon-btc  { background: rgba(247,147,26,0.15); color: #f7931a; }
.ticker-icon-eth  { background: rgba(98,126,234,0.15);  color: #627eea; }
.ticker-icon-tsla { background: rgba(204,0,0,0.12);     color: #e53935; }
.ticker-icon-nvda { background: rgba(118,185,0,0.12);   color: #76b900; }
.ticker-icon-sol  { background: rgba(153,69,255,0.15);  color: #9945ff; }
.ticker-icon-bnb  { background: rgba(243,186,47,0.15);  color: #f3ba2f; }
.ticker-icon-aapl { background: rgba(255,255,255,0.08); color: #fff; }
.ticker-icon-msft { background: rgba(0,120,215,0.15);   color: #0078d7; }
.ticker-icon-amzn { background: rgba(255,153,0,0.15);   color: #ff9900; }

.ticker-info { display: flex; flex-direction: column; gap: 2px; }
.ticker-name {
  font-size: 12px; font-weight: 600;
  color: var(--white); letter-spacing: 0.2px;
  line-height: 1;
}
.ticker-sym {
  font-size: 10px; color: var(--muted);
  letter-spacing: 0.5px;
}

.ticker-chart {
  width: 56px;
  height: 28px;
  flex-shrink: 0;
}

.ticker-price-group { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.ticker-price {
  font-family: var(--display);
  font-size: 13px; font-weight: 700;
  color: var(--white);
  letter-spacing: -0.3px; line-height: 1;
}
.ticker-change {
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.3px; line-height: 1;
}
.ticker-change.up   { color: #4ade80; }
.ticker-change.down { color: #f87171; }

/* Loading skeleton */
.ticker-loading {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
  gap: 10px;
  font-size: 12px; color: var(--muted);
}
.ticker-pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--muted);
  animation: tp 1.2s ease-in-out infinite;
}
.ticker-pulse:nth-child(2) { animation-delay: .2s; }
.ticker-pulse:nth-child(3) { animation-delay: .4s; }
@keyframes tp {
  0%,80%,100% { opacity: .25; transform: scale(.8); }
  40%         { opacity: 1;   transform: scale(1); }
}

/* ── Shop hero slideshow ── */
.shop-hero-slides {
  position: absolute; inset: 0;
}
.shop-hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center top;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.shop-hero-slide.active { opacity: 1; }


/* ================================================================
   GLASSMORPHISM — strong white-on-dark frosted glass (dark mode only)
   ================================================================ */

body:not(.light) .auth-card {
  background: rgba(255,255,255,0.09) !important;
  border: 1px solid rgba(255,255,255,0.18) !important;
  backdrop-filter: blur(40px) !important;
  -webkit-backdrop-filter: blur(40px) !important;
  box-shadow: 0 12px 60px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.15), inset 0 -1px 0 rgba(255,255,255,0.04) !important;
}
body:not(.light) .how-item {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 24px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.10);
}
body:not(.light) .risk-item {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
body:not(.light) .market-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.11);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
body:not(.light) .plan-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.12);
}
body:not(.light) .plan-card.featured {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.28);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.10), 0 24px 64px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.18);
}
body:not(.light) .vehicle-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.11);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
body:not(.light) .hero-trust {
  background: rgba(255,255,255,0.09);
  border-color: rgba(255,255,255,0.18);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
body:not(.light) .invest-cta {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.13);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 8px 40px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.10);
}
body:not(.light) .invest-footer {
  background: rgba(255,255,255,0.03);
  border-top: 1px solid rgba(255,255,255,0.09);
}

/* ================================================================
   LIGHT / DARK MODE
   ================================================================ */

/* Light mode overrides */
body.light {
  --bg:       #f4f4f4;
  --bg-1:     #ececec;
  --bg-2:     #e4e4e4;
  --bg-3:     #d8d8d8;
  --bg-4:     #cccccc;
  --border:   rgba(0,0,0,0.12);
  --border-2: rgba(0,0,0,0.22);
  --white:    #111111;    /* primary text */
  --light:    #333333;    /* secondary text — 8.5:1 on bg */
  --muted:    #555555;    /* muted text — 6.3:1 on bg */
  --dim:      #777777;    /* dim text — 4.6:1 on panels */
  --accent:   #333333;
  color: #111111;
  background: #f4f4f4;
}

/* Navbar in light mode */
body.light .navbar {
  background: rgba(245,245,245,0.88);
  border-bottom-color: rgba(0,0,0,0.1);
}
body.light .navbar-transparent.scrolled {
  background: rgba(245,245,245,0.92);
}

/* Panels and cards in light mode */
body.light .how-item,
body.light .risk-item  { background: #e8e8e8; }
body.light .market-card,
body.light .plan-card,
body.light .vehicle-card { background: #e0e0e0; border-color: rgba(0,0,0,0.1); }
body.light .plan-card.featured { background: #d8d8d8; }

/* Auth card light */
body.light .auth-card  { background: #e8e8e8; border-color: rgba(0,0,0,0.1); }
body.light .auth-input,
body.light .auth-select { background: #ececec; border-color: rgba(0,0,0,0.18); color: #111; }
body.light .auth-input::placeholder { color: #777; }

/* Shop tabs in light mode */
body.light .shop-tabs-bar { background: rgba(245,245,245,0.82); border-top-color: rgba(0,0,0,0.08); }
body.light .shop-tab { color: rgba(0,0,0,0.45); }
body.light .shop-tab.active { color: #111; border-bottom-color: #111; }

/* Sections */
body.light .section-dark { background: #ebebeb; }
body.light .invest-cta   { background: #f5f5f5; }
body.light .shop-footer-cta { background: #ebebeb; border-top-color: rgba(0,0,0,0.09); }
body.light .invest-footer   { border-top-color: rgba(0,0,0,0.09); }
body.light .footer-bottom   { border-top-color: rgba(0,0,0,0.09); }
body.light .site-footer     { border-top-color: rgba(0,0,0,0.09); }

/* Ticker strip */
body.light .ticker-strip { background: #ebebeb; border-color: rgba(0,0,0,0.09); }
body.light .ticker-strip::before { background: linear-gradient(to right,#ebebeb,transparent); }
body.light .ticker-strip::after  { background: linear-gradient(to left, #ebebeb,transparent); }
body.light .ticker-item { border-right-color: rgba(0,0,0,0.08); }
body.light .ticker-item:hover { background: rgba(0,0,0,0.03); }
body.light .ticker-name  { color: #111; }
body.light .ticker-sym   { color: #666; }
body.light .ticker-price { color: #111; }

/* Buttons in light mode */
body.light .btn-invest-primary { color: #fff; background: #111; }
body.light .btn-invest-ghost   { color: #333; border-color: rgba(0,0,0,0.25); }
body.light .btn-invest-ghost:hover { color: #111; border-color: rgba(0,0,0,0.5); }
body.light .panel-btn { color: #fff; background: #111; }
body.light .btn-shop-primary { color: #fff; background: #111; }
body.light .btn-omodal-primary { color: #fff; background: #111; }
body.light .btn-auth { background: #111; color: #fff; }
body.light .btn-plan { color: #111; border-color: rgba(0,0,0,0.2); }
body.light .form-control::placeholder { color: #777; }
body.light .btn-plan:hover { background: rgba(0,0,0,0.06); }
body.light .plan-card.featured .btn-plan { background: #111; color: #fff; border-color: #111; }

/* Grid lines */
body.light .how-grid,
body.light .risk-grid { background: rgba(0,0,0,0.08); border-color: rgba(0,0,0,0.08); }

/* Modals */
body.light .vmodal,
body.light .omodal { background: #e8e8e8; border-color: rgba(0,0,0,0.12); }

/* ── Theme toggle button ── */
.theme-toggle {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  border: 1px solid var(--border-2);
  background: transparent;
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
  flex-shrink: 0;
  padding: 0;
}
.theme-toggle:hover { background: rgba(255,255,255,0.08); border-color: var(--border-2); }
body.light .theme-toggle { color: #111; border-color: rgba(0,0,0,0.18); }
body.light .theme-toggle:hover { background: rgba(0,0,0,0.06); }
.theme-toggle svg { width: 15px; height: 15px; pointer-events: none; }

/* Sun icon — shown in dark mode */
.icon-sun  { display: none; }
.icon-moon { display: block; }
body.light .icon-sun  { display: block; }
body.light .icon-moon { display: none; }

/* ── Google OAuth button ── */
.btn-google {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 16px;
  background: var(--bg-3);
  border: 1px solid var(--border-2);
  border-radius: 7px;
  font-size: 13px;
  font-weight: 500;
  color: var(--white);
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s;
  font-family: var(--body);
  text-decoration: none;
}
.btn-google:hover {
  background: var(--bg-4);
  border-color: rgba(255,255,255,0.25);
}
.btn-google svg { flex-shrink: 0; width: 18px; height: 18px; }
body.light .btn-google {
  background: #e8e8e8;
  border-color: rgba(0,0,0,0.18);
  color: #111;
}
body.light .btn-google:hover {
  background: #dedede;
  border-color: rgba(0,0,0,0.28);
}

/* ================================================================
   PRELOADER
   ================================================================ */
#ms-preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #000000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  transition: opacity 0.55s ease, visibility 0.55s ease;
}

#ms-preloader.ms-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Tesla logo */
.ms-preloader-logo {
  width: 72px;
  height: 72px;
  animation: ms-logo-pulse 1.8s ease-in-out infinite;
  user-select: none;
  filter: drop-shadow(0 0 18px rgba(255,255,255,0.18));
}

@keyframes ms-logo-pulse {
  0%   { opacity: 1;    transform: scale(1); }
  50%  { opacity: 0.55; transform: scale(0.92); }
  100% { opacity: 1;    transform: scale(1); }
}

/* Brand name */
.ms-preloader-brand {
  font-family: 'Syne', 'Inter', sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: #ffffff;
  opacity: 0;
  animation: ms-brand-in 0.7s ease 0.3s forwards;
}

.ms-preloader-brand span {
  color: rgba(255,255,255,0.38);
}

@keyframes ms-brand-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Progress bar */
.ms-preloader-bar-wrap {
  width: 120px;
  height: 1px;
  background: rgba(255,255,255,0.1);
  border-radius: 1px;
  overflow: hidden;
}

.ms-preloader-bar {
  height: 100%;
  width: 0%;
  background: #ffffff;
  border-radius: 1px;
  animation: ms-bar-fill 1.4s cubic-bezier(0.4, 0, 0.2, 1) 0.1s forwards;
}

@keyframes ms-bar-fill {
  0%   { width: 0%; }
  60%  { width: 75%; }
  85%  { width: 92%; }
  100% { width: 100%; }
}

/* Light mode preloader stays black regardless (it's a transition element) */
body.light #ms-preloader { background: #000000; }

/* ================================================================
   SCROLL REVEAL — initial hidden states
   IMPORTANT: Only applies to PUBLIC pages (not .app-layout pages)
   Dashboard/admin pages must never be hidden by scroll reveal
   ================================================================ */

/* Public page elements only - scoped to pages WITHOUT app-layout */
body:not(:has(.app-layout)) .js-ready .plan-card,
body:not(:has(.app-layout)) .js-ready .how-item,
body:not(:has(.app-layout)) .js-ready .risk-item,
body:not(:has(.app-layout)) .js-ready .market-card,
body:not(:has(.app-layout)) .js-ready .vehicle-card {
  opacity: 0;
  transform: translateY(28px);
}

body:not(:has(.app-layout)) .js-ready .section-title,
body:not(:has(.app-layout)) .js-ready .section-sub,
body:not(:has(.app-layout)) .js-ready .ticker-strip,
body:not(:has(.app-layout)) .js-ready .invest-cta,
body:not(:has(.app-layout)) .js-ready .shop-footer-cta {
  opacity: 0;
  transform: translateY(22px);
}

.js-ready .hero-content,
.js-ready .invest-hero-content {
  opacity: 0;
  transform: translateX(-28px);
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .js-ready *[style*="opacity"],
  .js-ready *[style*="transform"] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ── Hero scroll indicator ── */
.hero-scroll-indicator {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: rgba(255,255,255,0.40);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
  animation: scroll-bounce 2.2s ease-in-out infinite;
}
.hero-scroll-indicator:hover { color: rgba(255,255,255,0.75); }

@keyframes scroll-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(7px); }
}

/* ── Responsive hero text ── */



/* ================================================================
   FULL RESPONSIVE SYSTEM — PUBLIC PAGES
   Breakpoints: 1200, 1024, 900, 768, 600, 480, 380
   ================================================================ */

/* ── Mobile hamburger button ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
  background: none; border: none;
  cursor: pointer; padding: 4px; flex-shrink: 0;
}
.nav-hamburger span {
  display: block; width: 22px; height: 1.5px;
  background: var(--white);
  transition: transform 0.28s ease, opacity 0.2s ease;
  transform-origin: center;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile nav drawer */
.nav-mobile-drawer {
  display: none;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: rgba(0,0,0,0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 20px 24px 28px;
  z-index: 998;
  flex-direction: column;
  gap: 4px;
  transform: translateY(-8px);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-mobile-drawer.open {
  display: flex;
  transform: translateY(0);
  opacity: 1;
}
.nav-mobile-drawer a {
  display: block;
  font-size: 16px; font-weight: 400;
  color: rgba(255,255,255,0.7);
  padding: 13px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: color 0.15s;
}
.nav-mobile-drawer a:last-child { border-bottom: none; }
.nav-mobile-drawer a:hover { color: #fff; }
.nav-mobile-drawer .btn-mobile-primary {
  display: block; text-align: center;
  background: #fff; color: #000;
  font-weight: 600; font-size: 14px;
  padding: 13px; border-radius: 8px;
  margin-top: 8px;
}

/* ── 1200px ── */
@media (max-width: 1200px) {
  .plans-grid { grid-template-columns: repeat(3,1fr); gap: 14px; }
  .markets-grid { grid-template-columns: repeat(2,1fr); }
}

/* ── 1024px ── */
@media (max-width: 1024px) {
:root { --px: 32px; }
  .how-grid { grid-template-columns: 1fr; }
  .markets-grid { grid-template-columns: 1fr 1fr; }
  .plans-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .risk-grid { grid-template-columns: 1fr; }
  .invest-footer-inner { grid-template-columns: 1fr 1fr; }
  .vehicles-grid { grid-template-columns: 1fr 1fr; }
  .vmodal { grid-template-columns: 1fr; }
  .vmodal-img { border-radius: 14px 14px 0 0; }
  .vmodal-img img { min-height: 220px; }
:root { --px: 28px; }
  .home-split { gap: 0; }
  .how-grid { grid-template-columns: 1fr 1fr; gap: 1px; }
  .plans-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .vehicles-grid { grid-template-columns: repeat(2,1fr); }
  .shop-tabs-bar { padding: 0 28px; }
}

/* ── 900px ── */
@media (max-width: 900px) {
  .vehicles-grid { grid-template-columns: 1fr 1fr; }
  .vmodal { grid-template-columns: 1fr; max-width: 480px; }
  .vmodal-img { border-radius: 14px 14px 0 0; min-height: 220px; }
}

/* ── 768px ── */
@media (max-width: 768px) {
:root { --nav-h: 56px; --px: 20px; }
  .navbar { padding: 0 20px; }
  .nav-links { display: none; }
  .home-split { flex-direction: column; height: 100svh; min-height: 100vh; }
  .split-panel { flex: none; height: 50%; min-height: 0; }
  .split-panel:hover { flex: none; }
  .panel-content { left: 24px; right: 24px; bottom: 36px; }
  .panel-title { font-size: 40px; }
  .section { padding: 72px 0; }
  .invest-footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .markets-grid { grid-template-columns: 1fr; }
  .vehicles-grid { grid-template-columns: 1fr; }
  .auth-card { padding: 32px 22px; }
  .auth-form-row { grid-template-columns: 1fr; }
  .plans-grid { max-width: 100%; }
#backToTop { bottom: 20px; right: 20px; width: 40px; height: 40px; }
.hero-headline   { font-size: clamp(32px, 9vw, 54px); letter-spacing: -1.2px; }
  .hero-desc       { font-size: 14px; }
  .btn-invest-primary,
  .btn-invest-ghost { padding: 13px 26px; font-size: 14px; }
:root { --nav-h: 56px; --px: 18px; }

  /* Navbar */
  .navbar { padding: 0 18px; }
  .nav-links { display: none !important; }
  .nav-cta-group .btn-ghost,
  .nav-cta-group .btn-nav-primary { display: none; }
  .nav-hamburger { display: flex; }
  .theme-toggle { width: 28px; height: 28px; }

  /* Hero */
  .hero-headline { letter-spacing: -1px; }
  .hero-desc { font-size: 14px; max-width: 100%; }
  .btn-invest-primary,
  .btn-invest-ghost { padding: 13px 22px; font-size: 14px; }

  /* Homepage split panels */
  .home-split { flex-direction: column; height: 100svh; min-height: 100vh; }
  .split-panel { flex: none; height: 50%; min-height: 0; }
  .split-panel:hover { flex: none !important; }
  .panel-content { left: 20px; right: 20px; bottom: 28px; }
  .panel-title { font-size: 32px; }

  /* How it works */
  .how-grid { grid-template-columns: 1fr; }
  .how-item { padding: 28px 22px; }

  /* Markets */
  .markets-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .market-card { padding: 18px 14px; }

  /* Plans */
  .plans-grid { max-width: 100%; padding: 0; }
  .plan-card { padding: 28px 22px; }

  /* Risk grid */
  .risk-grid { grid-template-columns: 1fr 1fr; }

  /* Shop */
  .vehicles-grid { grid-template-columns: 1fr; }
  .shop-tabs-bar { padding: 0 18px; gap: 4px; }
  .shop-tab { font-size: 11px; padding: 0 10px; }
  .shop-section { padding: 48px 0; }
  .vehicle-specs { grid-template-columns: 1fr 1fr; }

  /* Auth */
  .auth-page { padding: 0; }
  .auth-main { padding: 32px 16px 40px; }
  .auth-card { padding: 28px 20px; max-width: 100%; }

  /* Invest footer */
  .invest-footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; align-items: flex-start; }

  /* Sections */
  .section { padding: 64px 0; }
  .section-title { margin-bottom: 36px; }

  /* Ticker */
  .ticker-item { padding: 0 16px; }

  .shop-hero        { min-height: 100svh; }
  .shop-hero-content { padding: 0 20px; }
  .shop-hero-headline { font-size: clamp(40px, 11vw, 64px); letter-spacing: -2px; }
  .shop-hero-tagline  { font-size: 14px; }
  .shop-hero-dots     { bottom: 40px; }
}

/* ── 600px ── */
@media (max-width: 600px) {
.shop-hero-actions { flex-direction: column; align-items: center; }
  .btn-shop-primary, .btn-shop-ghost { width: 100%; max-width: 280px; justify-content: center; }
/* Hero actions stack */
  .hero-actions { flex-direction: column; align-items: center; width: 100%; gap: 10px; }
  .btn-invest-primary,
  .btn-invest-ghost { width: 100%; max-width: 320px; justify-content: center; }

  /* Markets 1 col */
  .markets-grid { grid-template-columns: 1fr; }
  .market-card { padding: 16px 14px; }

  /* Risk 1 col */
  .risk-grid { grid-template-columns: 1fr; }

  /* Plans */
  .plan-card { border-radius: 12px; }

  /* Vehicle modal */
  .vmodal { border-radius: 12px; }

  /* Invest footer */
  .invest-footer-inner { grid-template-columns: 1fr; gap: 28px; }

  /* Shop tabs scroll */
  .shop-tabs-bar { overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* Section padding */
  .section { padding: 52px 0; }

  /* Ticker fewer items */
  .ticker-chart { width: 40px; }
}

/* ── 480px ── */
@media (max-width: 480px) {
.hero-actions    { flex-direction: column; align-items: center; width: 100%; }
  .btn-invest-primary,
  .btn-invest-ghost { width: 100%; justify-content: center; }
:root { --px: 16px; }

  .hero-headline { font-size: clamp(28px, 9vw, 44px); letter-spacing: -0.8px; }
  .hero-trust { font-size: 9px; letter-spacing: 1.5px; padding: 6px 12px; }

  .home-split { flex-direction: column; height: 100svh; min-height: 100vh; }
  .split-panel { flex: none; height: 50%; }
  .panel-title { font-size: 26px; }
  .panel-btn { font-size: 12px; padding: 9px 18px; }

  .auth-card { border-radius: 10px; padding: 24px 16px; }
  .auth-title { font-size: 22px; }

  .navbar { padding: 0 16px; }

  .vehicle-specs { grid-template-columns: 1fr; }
  
/* ================================================================
   SHOP HERO — DOT NAVIGATION & MOBILE IMPROVEMENTS
   ================================================================ */
.shop-hero-dots {
  position: absolute;
  bottom: 24px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; align-items: center;
  z-index: 10;
}
.shop-hero-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.35);
  border: none; cursor: pointer; padding: 0;
  transition: background 0.3s, transform 0.3s, width 0.3s;
  flex-shrink: 0;
}
.shop-hero-dot.active {
  background: #ffffff;
  width: 24px; border-radius: 4px;
  transform: none;
}
.shop-hero-dot:hover { background: rgba(255,255,255,0.7); }

/* Mobile shop hero */


.shop-hero { min-height: 60vh; }

  .vmodal { margin: 8px; border-radius: 10px; }

  /* Plan badge */
  .plan-badge { font-size: 9px; padding: 3px 10px; }

  .shop-hero-headline { font-size: 38px; }
  .shop-hero-actions  { flex-direction: column; align-items: center; gap: 10px; width: 100%; max-width: 280px; margin: 28px auto 0; }
  .btn-shop-primary, .btn-shop-ghost { width: 100%; text-align: center; justify-content: center; }
}

/* ── 380px (very small phones) ── */
@media (max-width: 380px) {
  :root { --px: 14px; }
  .hero-headline { font-size: 26px; }
  .btn-invest-primary,
  .btn-invest-ghost { padding: 12px 18px; font-size: 13px; }
  .ticker-item { padding: 0 12px; }
  .ticker-price { font-size: 12px; }
}

/* ── Touch / hover adjustments ── */
@media (hover: none) {
  .split-panel:hover { flex: 1 !important; }
  .plan-card:hover { transform: none; }
  .vehicle-card:hover { transform: none; }
  .btn-invest-primary:hover { transform: none; }
}

/* ================================================================
   LIGHT MODE — DASHBOARD & ADMIN OVERRIDES
   Overrides the dark-only variables defined in dashboard.css :root
   ================================================================ */
body.light {
  --text-primary:   #111111;
  --text-secondary: #444444;
  --text-muted:     #777777;
  --text-dim:       #999999;
  --border-d:       rgba(0,0,0,0.10);
  --border-d2:      rgba(0,0,0,0.18);
  --surface-1:      #f4f4f4;
  --surface-2:      #ffffff;
  --surface-3:      #f0f0f0;
  --surface-4:      #e8e8e8;
}

body.light .app-layout        { background: var(--surface-1); }
body.light .sidebar           { background: #fafafa; border-right-color: rgba(0,0,0,0.1); }
body.light .sidebar-link      { color: #555; }
body.light .sidebar-link:hover,
body.light .sidebar-link.active { color: #111; background: rgba(0,0,0,0.04); }
body.light .sidebar-section   { color: #aaa; }
body.light .app-topbar        { background: rgba(250,250,250,0.95); border-bottom-color: rgba(0,0,0,0.1); }
body.light .panel             { background: #fff; border-color: rgba(0,0,0,0.09); }
body.light .panel-header      { border-bottom-color: rgba(0,0,0,0.07); }
body.light .stat-card         { background: #fff; border-color: rgba(0,0,0,0.09); }
body.light .data-table th     { background: rgba(0,0,0,0.02); color: #888; border-bottom-color: rgba(0,0,0,0.08); }
body.light .data-table td     { border-bottom-color: rgba(0,0,0,0.06); color: #444; }
body.light .data-table tbody tr:hover td { background: rgba(0,0,0,0.02); }
body.light .form-control      { background: #f8f8f8; border-color: rgba(0,0,0,0.12); color: #111; }
body.light .form-control:focus { background: #fff; border-color: rgba(0,0,0,0.22); }
body.light .modal             { background: #fff; border-color: rgba(0,0,0,0.12); }
body.light .modal-overlay     { background: rgba(0,0,0,0.5); }
body.light .iplan-card        { background: #fff; border-color: rgba(0,0,0,0.09); }
body.light .iplan-card.featured { background: #f8f8f8; }
body.light .crypto-option     { border-color: rgba(0,0,0,0.1); }
body.light .wallet-box        { background: #f8f8f8; border-color: rgba(0,0,0,0.1); }
body.light .wallet-address-copy { background: #fff; border-color: rgba(0,0,0,0.1); }
body.light .inv-note          { background: #f8f8f8; }
body.light .sidebar-user      { border-top-color: rgba(0,0,0,0.08); }
body.light .alert-success     { background: rgba(34,197,94,0.08);  border-color: rgba(34,197,94,0.2);  color: #166534; }
body.light .alert-error       { background: rgba(239,68,68,0.08);  border-color: rgba(239,68,68,0.2);  color: #991b1b; }
body.light .alert-info        { background: rgba(59,130,246,0.08); border-color: rgba(59,130,246,0.2); color: #1e40af; }
body.light .alert-warning     { background: rgba(245,158,11,0.08); border-color: rgba(245,158,11,0.2); color: #92400e; }
body.light .notif-dropdown    { background: #fff; border-color: rgba(0,0,0,0.1); }
body.light .notif-item:hover  { background: #f8f8f8; }
body.light .announcement-banner.info { background: rgba(59,130,246,0.06); }
