/* ============================================================
   LosingNumbers.com — Main Stylesheet
   Aesthetic: Dark intelligence / lottery precision
   Fonts: Bebas Neue (display) + DM Sans (body) + DM Mono (data)
   ============================================================ */

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
  --bg-void:       #050608;
  --bg-deep:       #090b10;
  --bg-card:       #0e1119;
  --bg-card-hover: #131720;
  --bg-glass:      rgba(14, 17, 25, 0.85);

  --gold-bright:   #f5c842;
  --gold-mid:      #d4a017;
  --gold-dim:      #8a6910;
  --gold-glow:     rgba(245, 200, 66, 0.15);

  --cyan-bright:   #00e5ff;
  --cyan-dim:      rgba(0, 229, 255, 0.08);

  --red-losing:    #ff4444;
  --red-dim:       rgba(255, 68, 68, 0.1);

  --text-primary:  #eef0f4;
  --text-secondary:#8b91a0;
  --text-muted:    #4a5060;
  --text-gold:     #f5c842;

  --border:        rgba(255,255,255,0.06);
  --border-gold:   rgba(245, 200, 66, 0.3);

  --radius-sm:  6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;

  --font-display: 'Bebas Neue', sans-serif;
  --font-body:    'DM Sans', sans-serif;
  --font-mono:    'DM Mono', monospace;

  --transition: 0.2s ease;
  --shadow-gold: 0 0 30px rgba(245, 200, 66, 0.12), 0 4px 20px rgba(0,0,0,0.5);
  --shadow-card: 0 2px 24px rgba(0,0,0,0.6);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background-color: var(--bg-void);
  color: var(--text-primary);
  font-size: 15px;
  line-height: 1.65;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(245,200,66,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 90% 80%, rgba(0,229,255,0.03) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* Grid texture overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* Ensure content sits above overlays */
.container, nav, footer { position: relative; z-index: 1; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  letter-spacing: 0.02em;
  color: var(--text-primary);
  line-height: 1.1;
}

a { color: var(--gold-bright); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--cyan-bright); }

p { color: var(--text-secondary); }

/* ── Navbar ────────────────────────────────────────────────── */
.ln-navbar {
  background: rgba(5, 6, 8, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0.9rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: background 0.3s;
}

.ln-brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.05em;
  color: var(--text-primary) !important;
  text-decoration: none;
}
.brand-l, .brand-n { color: var(--gold-bright); }
.brand-sep { color: var(--gold-dim); margin: 0 2px; }
.brand-rest { color: var(--text-primary); }

.ln-navbar .nav-link {
  color: var(--text-secondary) !important;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.45rem 0.9rem !important;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.ln-navbar .nav-link:hover,
.ln-navbar .nav-link.active {
  color: var(--text-primary) !important;
  background: rgba(255,255,255,0.05);
}
.navbar-toggler { border-color: var(--border); }
.navbar-toggler-icon { filter: invert(1) opacity(0.6); }

/* ── Buttons ───────────────────────────────────────────────── */
.ln-btn-gold {
  background: var(--gold-bright);
  color: #000 !important;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  padding: 0.45rem 1rem;
  transition: all var(--transition);
}
.ln-btn-gold:hover {
  background: #ffe066;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(245,200,66,0.4);
  color: #000 !important;
}

.ln-btn-outline {
  background: transparent;
  color: var(--text-secondary) !important;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  padding: 0.45rem 1rem;
  transition: all var(--transition);
}
.ln-btn-outline:hover {
  border-color: var(--gold-dim);
  color: var(--text-primary) !important;
}

.ln-btn-ghost {
  background: transparent;
  color: var(--text-secondary) !important;
  border: none;
  font-size: 0.82rem;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.ln-btn-ghost:hover {
  color: var(--text-primary) !important;
  background: rgba(255,255,255,0.05);
}

.btn-lg.ln-btn-gold {
  font-size: 1rem;
  padding: 0.75rem 2rem;
  border-radius: var(--radius-md);
}

/* ── Badges ────────────────────────────────────────────────── */
.ln-badge-pro {
  background: linear-gradient(135deg, var(--gold-mid), var(--gold-bright));
  color: #000;
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 4px;
}

.badge-free {
  background: rgba(255,255,255,0.08);
  color: var(--text-secondary);
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid var(--border);
}

/* ── Cards ─────────────────────────────────────────────────── */
.ln-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  transition: border-color var(--transition), background var(--transition);
}
.ln-card:hover { border-color: rgba(255,255,255,0.1); }
.ln-card--gold {
  border-color: var(--border-gold);
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(245,200,66,0.04) 100%);
}
.ln-card--glow {
  box-shadow: var(--shadow-gold);
}

/* ── Lottery Balls ─────────────────────────────────────────── */
.ln-ball {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 500;
  margin: 3px;
  flex-shrink: 0;
  transition: transform 0.15s, box-shadow 0.15s;
}

.ln-ball--main {
  background: linear-gradient(145deg, #1a2a3a, #0e1a28);
  border: 2px solid var(--cyan-bright);
  color: var(--cyan-bright);
  box-shadow: 0 0 10px rgba(0,229,255,0.2), inset 0 1px 0 rgba(255,255,255,0.05);
}
.ln-ball--main:hover { transform: scale(1.1); box-shadow: 0 0 20px rgba(0,229,255,0.4); }

.ln-ball--star {
  background: linear-gradient(145deg, #2a2010, #1a1508);
  border: 2px solid var(--gold-bright);
  color: var(--gold-bright);
  box-shadow: 0 0 10px rgba(245,200,66,0.2), inset 0 1px 0 rgba(255,255,255,0.05);
}
.ln-ball--star:hover { transform: scale(1.1); box-shadow: 0 0 20px rgba(245,200,66,0.4); }

.ln-ball--losing {
  background: rgba(255,68,68,0.07);
  border: 2px solid rgba(255,68,68,0.3);
  color: var(--red-losing);
  text-decoration: line-through;
  opacity: 0.6;
}

.ln-ball--sm {
  width: 32px;
  height: 32px;
  font-size: 0.75rem;
  margin: 2px;
}

.ln-ball--lg {
  width: 56px;
  height: 56px;
  font-size: 1.1rem;
  margin: 4px;
}

/* ── Ball Row ──────────────────────────────────────────────── */
.ball-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
}
.ball-row-sep {
  width: 1px;
  height: 36px;
  background: var(--border);
  margin: 0 10px;
}

/* ── Hero Section ──────────────────────────────────────────── */
.ln-hero {
  padding: 7rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.ln-hero::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(245,200,66,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: clamp(3.5rem, 8vw, 7rem);
  line-height: 0.95;
  margin-bottom: 1.5rem;
}

.hero-title .highlight {
  color: var(--gold-bright);
  position: relative;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.hero-cta-group { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }

.hero-stat-row {
  display: flex;
  gap: 2rem;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.hero-stat { text-align: left; }
.hero-stat .val {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--gold-bright);
  line-height: 1;
  display: block;
}
.hero-stat .lbl {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
  display: block;
}

/* ── Section ───────────────────────────────────────────────── */
.ln-section { padding: 5rem 0; }
.ln-section-sm { padding: 3rem 0; }

.section-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin-bottom: 1rem;
}

/* ── Stats Grid ────────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.stat-cell {
  background: var(--bg-card);
  padding: 1.5rem;
  text-align: center;
  transition: background var(--transition);
}
.stat-cell:hover { background: var(--bg-card-hover); }
.stat-cell .v {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--gold-bright);
  display: block;
  line-height: 1;
}
.stat-cell .l {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 6px;
  display: block;
}

/* Footer stats pill */
.stat-pill {
  display: flex;
  flex-direction: column;
}
.stat-pill .stat-val {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--gold-bright);
  line-height: 1;
}
.stat-pill .stat-lbl {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── Pricing Cards ─────────────────────────────────────────── */
.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  height: 100%;
  position: relative;
  transition: all 0.3s;
}

.pricing-card--pro {
  border-color: var(--border-gold);
  background: linear-gradient(160deg, var(--bg-card) 0%, rgba(245,200,66,0.05) 100%);
  box-shadow: var(--shadow-gold);
}

.pricing-card--pro::before {
  content: 'MOST POPULAR';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold-bright);
  color: #000;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  padding: 3px 14px;
  border-radius: 20px;
  white-space: nowrap;
}

.price-amount {
  font-family: var(--font-display);
  font-size: 3.5rem;
  color: var(--text-primary);
  line-height: 1;
}
.price-amount sup { font-size: 1.5rem; vertical-align: super; }
.price-period { font-size: 0.85rem; color: var(--text-muted); }

.pricing-features { list-style: none; padding: 0; margin: 1.75rem 0; }
.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--text-secondary);
}
.pricing-features li:last-child { border-bottom: none; }
.pricing-features .ico {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  margin-top: 2px;
}
.ico-yes { background: rgba(0,229,255,0.1); color: var(--cyan-bright); border: 1px solid rgba(0,229,255,0.3); }
.ico-no  { background: rgba(255,255,255,0.04); color: var(--text-muted); border: 1px solid var(--border); }

/* ── Dashboard ─────────────────────────────────────────────── */
.dashboard-hero {
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(245,200,66,0.04) 100%);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 0;
}

.dash-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  height: 100%;
}

.dash-card--highlight {
  border-color: var(--border-gold);
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(245,200,66,0.03) 100%);
}

.lines-table {
  width: 100%;
  border-collapse: collapse;
}
.lines-table th {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.5rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.lines-table td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}
.lines-table tr:last-child td { border-bottom: none; }
.lines-table tr:hover td { background: rgba(255,255,255,0.02); }

.line-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  width: 30px;
}

/* ── Forms ─────────────────────────────────────────────────── */
.ln-form-group { margin-bottom: 1.25rem; }
.ln-form-group label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
  letter-spacing: 0.03em;
}
.ln-input {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 0.65rem 1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.ln-input:focus {
  border-color: var(--gold-dim);
  box-shadow: 0 0 0 3px rgba(245,200,66,0.1);
}
.ln-input::placeholder { color: var(--text-muted); }

.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  max-width: 440px;
  margin: 0 auto;
}

/* ── Alert ─────────────────────────────────────────────────── */
.ln-alert-success {
  background: rgba(0,229,255,0.07);
  border: 1px solid rgba(0,229,255,0.2);
  color: var(--cyan-bright);
}
.ln-alert-danger {
  background: rgba(255,68,68,0.07);
  border: 1px solid rgba(255,68,68,0.2);
  color: var(--red-losing);
}
.ln-alert-warning {
  background: rgba(245,200,66,0.07);
  border: 1px solid rgba(245,200,66,0.2);
  color: var(--gold-bright);
}

/* ── Footer ────────────────────────────────────────────────── */
.ln-footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
  margin-top: 6rem;
  position: relative;
  z-index: 1;
}

.footer-heading {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  padding: 0;
}
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a {
  color: var(--text-secondary);
  font-size: 0.875rem;
  text-decoration: none;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--gold-bright); }

.footer-hr {
  border-color: var(--border);
  margin: 2rem 0 1.5rem;
}

.footer-stripe-link {
  color: var(--text-secondary);
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: all var(--transition);
}
.footer-stripe-link:hover { color: var(--gold-bright); text-decoration-color: currentColor; }

/* ── How-It-Works Steps ────────────────────────────────────── */
.steps-list { list-style: none; padding: 0; }
.step-item {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.step-num {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--gold-bright);
  background: rgba(245,200,66,0.06);
}
.step-content h5 {
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

/* ── Countdown ─────────────────────────────────────────────── */
.countdown-wrap {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.countdown-unit {
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1.25rem;
  min-width: 70px;
}
.countdown-unit .cd-val {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--gold-bright);
  line-height: 1;
  display: block;
}
.countdown-unit .cd-lbl {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ── Progress bar (backtest) ───────────────────────────────── */
.ln-progress {
  height: 8px;
  background: rgba(255,255,255,0.06);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 6px;
}
.ln-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-mid), var(--gold-bright));
  border-radius: 4px;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}
.ln-progress-bar--cyan {
  background: linear-gradient(90deg, #009db5, var(--cyan-bright));
}

/* ── Divider ───────────────────────────────────────────────── */
.ln-divider {
  border: none;
  height: 1px;
  background: var(--border);
  margin: 2rem 0;
}

/* ── Ticker / Scrolling ────────────────────────────────────── */
.ticker-wrap {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 0.6rem 0;
  background: rgba(255,255,255,0.015);
}
.ticker {
  display: flex;
  white-space: nowrap;
  animation: ticker-scroll 30s linear infinite;
  gap: 3rem;
}
.ticker-item {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}
.ticker-item span { color: var(--gold-bright); margin: 0 4px; }

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

/* ── Animations ────────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 10px rgba(245,200,66,0.1); }
  50%       { box-shadow: 0 0 30px rgba(245,200,66,0.3); }
}

.animate-fade-up { animation: fadeInUp 0.6s ease both; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero-stat-row { gap: 1rem; }
  .hero-stat .val { font-size: 1.8rem; }
  .ln-hero { padding: 4rem 0 3rem; }
  .pricing-card { padding: 1.75rem; }
  .form-card { padding: 1.75rem; }
  .ln-ball { width: 36px; height: 36px; font-size: 0.8rem; }
  .ln-ball--lg { width: 44px; height: 44px; font-size: 0.95rem; }
}

/* ── Utility ───────────────────────────────────────────────── */
.text-gold { color: var(--gold-bright); }
.text-cyan { color: var(--cyan-bright); }
.text-muted-custom { color: var(--text-muted); }
.font-mono { font-family: var(--font-mono); }
.font-display { font-family: var(--font-display); }
.bg-card { background: var(--bg-card); }
.border-gold { border-color: var(--border-gold) !important; }
