/* ===================================
   LOTTY GUESS — Main Stylesheet
   Dark Futuristic AI Dashboard Theme
   =================================== */

/* ---- Custom Properties ---- */
:root {
  --bg-primary:   #050810;
  --bg-secondary: #080d1a;
  --bg-card:      #0b1120;
  --bg-card-hover:#0e1628;
  --bg-glass:     rgba(11, 17, 32, 0.7);

  --accent-blue:  #00d4ff;
  --accent-green: #00ff9d;
  --accent-purple:#8b5cf6;
  --accent-amber: #f59e0b;
  --accent-red:   #ff4757;

  --text-primary:   #e8f0fe;
  --text-secondary: #7a8db5;
  --text-muted:     #3d4f75;

  --border-dim:     rgba(0, 212, 255, 0.08);
  --border-mid:     rgba(0, 212, 255, 0.2);
  --border-bright:  rgba(0, 212, 255, 0.5);

  --glow-blue:  0 0 20px rgba(0, 212, 255, 0.15), 0 0 60px rgba(0, 212, 255, 0.05);
  --glow-green: 0 0 20px rgba(0, 255, 157, 0.15), 0 0 60px rgba(0, 255, 157, 0.05);
  --glow-gold:  0 0 20px rgba(245, 158, 11, 0.2),  0 0 60px rgba(245, 158, 11, 0.08);

  --font-display: 'Space Grotesk', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  18px;
  --radius-xl:  24px;

  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-display);
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input { font-family: inherit; }

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border-mid); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-blue); }

/* ============================
   NAVBAR
   ============================ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0 2rem;
  height: 64px;
  background: rgba(5, 8, 16, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-dim);
  transition: border-color var(--transition);
}
.navbar.scrolled { border-bottom-color: var(--border-mid); }
.nav-container {
  max-width: 1400px; margin: 0 auto;
  height: 100%; display: flex; align-items: center; gap: 2rem;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.2rem; font-weight: 700; letter-spacing: 0.05em;
}
.logo-icon { color: var(--accent-blue); font-size: 1.4rem; }
.logo-text { color: var(--text-primary); }
.logo-accent { color: var(--accent-green); }
.nav-links {
  display: flex; align-items: center; gap: 0.25rem; margin-left: auto;
}
.nav-links li a {
  padding: 0.5rem 0.875rem; border-radius: var(--radius-sm);
  font-size: 0.875rem; font-weight: 500; color: var(--text-secondary);
  transition: all var(--transition);
}
.nav-links li a:hover,
.nav-links li a.active { color: var(--text-primary); }
.nav-links li a.active { background: rgba(0, 212, 255, 0.08); color: var(--accent-blue); }
.nav-cta {
  background: linear-gradient(135deg, rgba(0,212,255,0.15), rgba(0,255,157,0.1)) !important;
  border: 1px solid var(--border-mid) !important;
  color: var(--accent-blue) !important;
}
.nav-cta:hover { background: rgba(0, 212, 255, 0.2) !important; }
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  padding: 6px; border-radius: var(--radius-sm);
  margin-left: auto;
}
.nav-toggle span {
  width: 22px; height: 2px;
  background: var(--text-secondary); border-radius: 1px;
  transition: all var(--transition);
}

/* ============================
   HERO
   ============================ */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; padding-top: 64px;
}
.hero-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0,212,255,0.06) 0%, transparent 60%),
              radial-gradient(ellipse 40% 40% at 80% 80%, rgba(0,255,157,0.04) 0%, transparent 50%);
}
.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,212,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
}
#particleCanvas { position: absolute; inset: 0; pointer-events: none; }

.hero-content {
  position: relative; z-index: 2;
  text-align: center; padding: 2rem;
  max-width: 800px;
  animation: fadeUp 0.8s ease both;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-radius: 100px;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.2);
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.1em;
  color: var(--accent-blue); margin-bottom: 2rem;
}
.badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent-green);
  animation: pulse 2s ease infinite;
}
.hero-title {
  font-size: clamp(3.5rem, 10vw, 7rem);
  font-weight: 700; line-height: 1;
  letter-spacing: -0.02em; margin-bottom: 0.5rem;
}
.title-main { color: var(--text-primary); }
.title-accent {
  color: transparent;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-green));
  -webkit-background-clip: text; background-clip: text;
  display: block;
}
.hero-sub {
  font-size: 1rem; font-weight: 500; letter-spacing: 0.25em;
  color: var(--accent-blue); text-transform: uppercase; margin-bottom: 1.5rem;
}
.hero-desc {
  font-size: 1.1rem; color: var(--text-secondary);
  max-width: 500px; margin: 0 auto 2rem; line-height: 1.7;
}

/* AI Summary */
.ai-summary-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin: 0 auto 2rem;
  max-width: 560px;
  backdrop-filter: blur(20px);
  box-shadow: var(--glow-blue);
  text-align: left;
}
.ai-summary-header {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 0.75rem;
}
.ai-icon { color: var(--accent-blue); font-size: 1.1rem; }
.ai-label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; color: var(--accent-blue); }
.ai-live {
  margin-left: auto;
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.15em;
  color: var(--accent-green);
  padding: 2px 8px; border-radius: 100px;
  background: rgba(0, 255, 157, 0.1);
  animation: pulse 2s ease infinite;
}
.ai-summary-text {
  font-size: 0.9rem; line-height: 1.7; color: var(--text-secondary);
  font-family: var(--font-mono);
}

/* Typing dots */
.typing-dots { display: inline-flex; gap: 4px; align-items: center; }
.typing-dots span {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-blue);
  animation: typingDot 1.2s ease infinite;
}
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Floating orbs */
.number-orbs {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden;
}
.orb {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 1.2rem; font-weight: 700;
  color: rgba(0, 212, 255, 0.15);
  animation: floatOrb linear infinite;
}

/* ============================
   BUTTONS
   ============================ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0.75rem 1.75rem; border-radius: var(--radius-md);
  font-size: 0.9rem; font-weight: 600; letter-spacing: 0.03em;
  transition: all var(--transition); white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, rgba(0,212,255,0.2), rgba(0,255,157,0.15));
  border: 1px solid var(--border-bright);
  color: var(--accent-blue);
  box-shadow: 0 0 20px rgba(0,212,255,0.1);
}
.btn-primary:hover {
  background: linear-gradient(135deg, rgba(0,212,255,0.3), rgba(0,255,157,0.2));
  box-shadow: 0 0 30px rgba(0,212,255,0.25);
  transform: translateY(-2px);
}
.btn-outline {
  border: 1px solid var(--border-mid);
  color: var(--text-secondary);
}
.btn-outline:hover {
  border-color: var(--border-bright);
  color: var(--text-primary);
  background: rgba(0,212,255,0.05);
}

/* ============================
   STATS BAR
   ============================ */
.stats-bar {
  display: flex; justify-content: center; align-items: center;
  flex-wrap: wrap; gap: 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-dim);
  border-bottom: 1px solid var(--border-dim);
}
.stat-item {
  display: flex; flex-direction: column; align-items: center;
  gap: 4px; padding: 1rem 3rem;
}
.stat-num {
  font-family: var(--font-mono);
  font-size: 1.4rem; font-weight: 700;
  color: var(--accent-blue);
}
.stat-label { font-size: 0.72rem; color: var(--text-muted); letter-spacing: 0.05em; }
.stat-divider { width: 1px; height: 40px; background: var(--border-dim); }

/* ============================
   MAIN DASHBOARD
   ============================ */
.dashboard { padding: 3rem 1rem; }
.container { max-width: 1400px; margin: 0 auto; }

.section-header {
  display: flex; align-items: center; gap: 1rem;
  margin-bottom: 1.25rem;
}
.section-header h2 {
  font-size: 1.1rem; font-weight: 600; letter-spacing: 0.05em;
}
.section-tag {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em;
  padding: 4px 12px; border-radius: 100px;
  background: rgba(0,212,255,0.08);
  color: var(--accent-blue);
  border: 1px solid var(--border-dim);
}

/* ---- Lottery Tabs ---- */
.lottery-tabs {
  display: flex; gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.tab-btn {
  padding: 0.625rem 1.5rem; border-radius: var(--radius-md);
  font-size: 0.875rem; font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  transition: all var(--transition);
}
.tab-btn.active {
  background: rgba(0,212,255,0.1);
  border-color: var(--border-mid);
  color: var(--accent-blue);
}

/* ---- Result Showcase ---- */
.result-showcase { margin-bottom: 2rem; }
.result-panel { display: none; }
.result-panel.active { display: block; }
.result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}
.result-item {
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  transition: all var(--transition);
}
.result-item:hover { border-color: var(--border-mid); }
.result-item.result-main {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(0,212,255,0.05), rgba(0,255,157,0.03));
  border-color: var(--border-mid);
}
.result-label {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em;
  color: var(--text-muted); text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.result-number {
  font-family: var(--font-mono);
  font-size: 2.5rem; font-weight: 700;
  color: var(--accent-green);
  letter-spacing: 0.15em;
  text-shadow: 0 0 20px rgba(0,255,157,0.3);
}
.result-number.six-digit { font-size: 3rem; letter-spacing: 0.25em; }

/* ============================
   CARDS GRID
   ============================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,212,255,0.3), transparent);
  opacity: 0; transition: opacity var(--transition);
}
.card:hover { border-color: var(--border-mid); transform: translateY(-2px); }
.card:hover::before { opacity: 1; }
.card-glow { box-shadow: var(--glow-blue); }
.card-ai {
  background: linear-gradient(135deg, rgba(139,92,246,0.05), rgba(0,212,255,0.05));
  border-color: rgba(139,92,246,0.2);
}
.card-wide { grid-column: 1 / -1; }
.card-header {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 1.25rem;
}
.card-header h3 { font-size: 0.9rem; font-weight: 600; }
.card-icon { font-size: 1.1rem; }
.card-badge {
  margin-left: auto;
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.1em;
  padding: 3px 10px; border-radius: 100px;
  background: rgba(0,212,255,0.08);
  color: var(--text-muted);
  border: 1px solid var(--border-dim);
}
.ghost-badge { color: var(--accent-amber) !important; }
.ai-confidence {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 1rem; font-weight: 700;
  color: var(--accent-green);
}

/* Hot Numbers */
.hot-numbers, .ghost-numbers { display: flex; flex-direction: column; gap: 0.625rem; }
.hot-item {
  display: flex; align-items: center; gap: 10px;
  padding: 0.5rem 0.75rem;
  background: rgba(255,71,87,0.05);
  border: 1px solid rgba(255,71,87,0.12);
  border-radius: var(--radius-sm);
}
.hot-rank {
  font-family: var(--font-mono); font-size: 0.7rem;
  color: var(--text-muted); min-width: 20px;
}
.hot-num {
  font-family: var(--font-mono); font-weight: 700;
  font-size: 1rem; color: var(--accent-red);
  letter-spacing: 0.1em;
}
.hot-bar-wrap { flex: 1; height: 4px; background: rgba(255,71,87,0.1); border-radius: 2px; }
.hot-bar { height: 100%; background: var(--accent-red); border-radius: 2px; transition: width 0.8s ease; }
.hot-count { font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-muted); }

/* Ghost Numbers */
.ghost-item {
  display: flex; align-items: center; gap: 10px;
  padding: 0.5rem 0.75rem;
  background: rgba(245,158,11,0.05);
  border: 1px solid rgba(245,158,11,0.12);
  border-radius: var(--radius-sm);
}
.ghost-num {
  font-family: var(--font-mono); font-weight: 700;
  font-size: 1rem; color: var(--accent-amber);
}
.ghost-info { font-size: 0.75rem; color: var(--text-muted); }

/* AI Insight */
.insight-list { display: flex; flex-direction: column; gap: 0.625rem; }
.insight-item {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.82rem; line-height: 1.6;
  color: var(--text-secondary);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-dim);
}
.insight-item:last-child { border: none; }
.insight-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-blue); flex-shrink: 0;
  margin-top: 0.4rem;
}
.card-cta {
  display: block; text-align: right;
  font-size: 0.8rem; color: var(--accent-blue);
  margin-top: 1rem; padding-top: 0.75rem;
  border-top: 1px solid var(--border-dim);
  transition: opacity var(--transition);
}
.card-cta:hover { opacity: 0.7; }

/* Trend Radar */
.trend-radar { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0.75rem; }
.trend-section {
  padding: 0.75rem; border-radius: var(--radius-sm);
  text-align: center;
}
.trend-section.up { background: rgba(0,255,157,0.05); border: 1px solid rgba(0,255,157,0.12); }
.trend-section.down { background: rgba(255,71,87,0.05); border: 1px solid rgba(255,71,87,0.12); }
.trend-section.return { background: rgba(0,212,255,0.05); border: 1px solid rgba(0,212,255,0.12); }
.trend-label {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.05em;
  color: var(--text-muted); margin-bottom: 0.5rem;
}
.trend-section.up .trend-label { color: var(--accent-green); }
.trend-section.down .trend-label { color: var(--accent-red); }
.trend-section.return .trend-label { color: var(--accent-blue); }
.trend-nums {
  font-family: var(--font-mono); font-size: 1rem; font-weight: 700;
  color: var(--text-primary); letter-spacing: 0.1em;
}

/* Heatmap */
.heatmap-container { display: flex; flex-direction: column; gap: 1rem; }
.heatmap-grid { display: flex; gap: 0.625rem; flex-wrap: wrap; }
.heat-cell {
  flex: 1; min-width: 60px; max-width: 120px;
  aspect-ratio: 1; border-radius: var(--radius-md);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; cursor: pointer; transition: all var(--transition);
  border: 1px solid transparent;
}
.heat-cell:hover { transform: scale(1.08); border-color: var(--border-bright); }
.heat-digit {
  font-family: var(--font-mono); font-size: 1.5rem; font-weight: 700;
  color: white;
}
.heat-val { font-family: var(--font-mono); font-size: 0.65rem; color: rgba(255,255,255,0.7); }
.heatmap-legend {
  display: flex; align-items: center; gap: 0.75rem;
  font-size: 0.72rem; color: var(--text-muted);
}
.legend-bar {
  flex: 1; height: 6px; border-radius: 3px;
  background: linear-gradient(90deg, #0a1a3d, #0d4f9e, #00d4ff, #00ff9d, #f59e0b, #ff4757);
}

/* Personas */
.personas-grid {
  display: flex; gap: 0.75rem; flex-wrap: wrap;
  margin-bottom: 1.25rem;
}
.persona-btn {
  flex: 1; min-width: 100px;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 0.875rem 1rem; border-radius: var(--radius-md);
  background: var(--bg-secondary);
  border: 1px solid var(--border-dim);
  cursor: pointer; transition: all var(--transition);
}
.persona-btn:hover { border-color: var(--border-mid); }
.persona-btn.active {
  background: rgba(0,212,255,0.08);
  border-color: var(--border-bright);
  box-shadow: var(--glow-blue);
}
.persona-icon { font-size: 1.4rem; }
.persona-name { font-size: 0.8rem; font-weight: 600; }
.persona-desc { font-size: 0.68rem; color: var(--text-muted); }
.persona-analysis {
  background: var(--bg-secondary);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  font-size: 0.85rem; line-height: 1.8;
  color: var(--text-secondary);
  min-height: 80px;
  font-family: var(--font-mono);
}
.pa-loading { color: var(--text-muted); font-style: italic; }

/* DNA */
.dna-search {
  display: flex; gap: 0.5rem; margin-bottom: 1rem;
}
.dna-input {
  flex: 1; padding: 0.625rem 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-dim); border-radius: var(--radius-sm);
  color: var(--text-primary); font-family: var(--font-mono);
  font-size: 1rem; letter-spacing: 0.15em;
  transition: border-color var(--transition);
}
.dna-input:focus { outline: none; border-color: var(--accent-blue); }
.dna-btn {
  padding: 0.625rem 1.25rem; border-radius: var(--radius-sm);
  background: rgba(0,212,255,0.12);
  border: 1px solid var(--border-mid);
  color: var(--accent-blue); font-weight: 600; font-size: 0.85rem;
  transition: all var(--transition);
}
.dna-btn:hover { background: rgba(0,212,255,0.2); }
.dna-result {
  font-size: 0.82rem; line-height: 1.8;
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

/* Correlation */
.corr-pairs { display: flex; flex-direction: column; gap: 0.625rem; }
.corr-item {
  display: flex; align-items: center; gap: 12px;
  padding: 0.5rem 0.75rem;
  background: rgba(139,92,246,0.05);
  border: 1px solid rgba(139,92,246,0.12);
  border-radius: var(--radius-sm);
}
.corr-nums {
  font-family: var(--font-mono); font-weight: 700;
  font-size: 0.95rem; color: var(--accent-purple);
}
.corr-pct { margin-left: auto; font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-muted); }

/* Skeleton */
.skeleton-row {
  height: 44px; border-radius: var(--radius-sm);
  background: linear-gradient(90deg, var(--bg-secondary) 25%, rgba(0,212,255,0.04) 50%, var(--bg-secondary) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}
.skeleton-row + .skeleton-row { margin-top: 0.5rem; }

/* Prediction Battle */
.battle-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem; margin-bottom: 2rem;
}
.battle-loading {
  grid-column: 1/-1;
  text-align: center; color: var(--text-muted);
  padding: 2rem; font-size: 0.9rem;
}
.battle-card {
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-lg); padding: 1.25rem;
  transition: all var(--transition);
}
.battle-card:hover { border-color: var(--border-mid); }
.battle-persona {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em;
  color: var(--text-muted); margin-bottom: 0.625rem;
}
.battle-pick {
  font-family: var(--font-mono); font-size: 1.8rem; font-weight: 700;
  color: var(--accent-blue); letter-spacing: 0.15em;
  margin-bottom: 0.5rem;
}
.battle-confidence {
  font-size: 0.75rem; color: var(--text-muted);
}
.battle-conf-bar {
  height: 3px; background: var(--border-dim);
  border-radius: 2px; margin-top: 0.375rem; overflow: hidden;
}
.battle-conf-fill {
  height: 100%; border-radius: 2px;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-green));
  transition: width 1s ease;
}

/* Check CTA */
.check-cta {
  margin-top: 2rem;
  background: linear-gradient(135deg, rgba(0,212,255,0.06), rgba(0,255,157,0.04));
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-xl); padding: 2rem;
}
.check-cta-inner {
  display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap;
}
.check-icon { font-size: 2.5rem; }
.check-text h3 { font-size: 1.1rem; margin-bottom: 0.25rem; }
.check-text p { font-size: 0.875rem; color: var(--text-secondary); }
.check-cta .btn { margin-left: auto; }

/* ============================
   FOOTER
   ============================ */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-dim);
  padding: 3rem 1rem 1.5rem;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem; margin-bottom: 2rem;
}
.footer-logo {
  font-size: 1.1rem; font-weight: 700; margin-bottom: 0.75rem;
}
.footer-brand p {
  font-size: 0.82rem; color: var(--text-secondary);
  line-height: 1.7; margin-bottom: 0.5rem;
}
.footer-disclaimer { color: var(--text-muted) !important; font-size: 0.75rem !important; }
.footer-links h4 {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em;
  color: var(--text-muted); text-transform: uppercase; margin-bottom: 1rem;
}
.footer-links ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a {
  font-size: 0.875rem; color: var(--text-secondary);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--accent-blue); }
.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-dim);
  font-size: 0.75rem; color: var(--text-muted);
  text-align: center;
}

/* ============================
   ANIMATIONS
   ============================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}
@keyframes typingDot {
  0%, 80%, 100% { transform: scale(0.7); opacity: 0.3; }
  40%           { transform: scale(1); opacity: 1; }
}
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}
@keyframes floatOrb {
  0%   { transform: translateY(100vh) rotate(0deg);   opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateY(-10vh) rotate(360deg); opacity: 0; }
}
@keyframes glowPulse {
  0%, 100% { box-shadow: var(--glow-blue); }
  50%       { box-shadow: 0 0 40px rgba(0,212,255,0.3), 0 0 80px rgba(0,212,255,0.1); }
}
@keyframes rollIn {
  from { transform: rotateX(-90deg); opacity: 0; }
  to   { transform: rotateX(0); opacity: 1; }
}
.number-roll { animation: rollIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) both; }

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none; flex-direction: column; align-items: stretch;
    position: fixed; top: 64px; left: 0; right: 0;
    background: rgba(5,8,16,0.97); backdrop-filter: blur(20px);
    padding: 1rem; border-bottom: 1px solid var(--border-dim);
    gap: 0.25rem;
  }
  .nav-links.open { display: flex; }
  .nav-links li a { display: block; padding: 0.75rem 1rem; }

  .hero-title { font-size: 3.5rem; }
  .stat-item { padding: 0.875rem 1.5rem; }
  .cards-grid { grid-template-columns: 1fr; }
  .card-wide { grid-column: 1; }
  .result-grid { grid-template-columns: 1fr 1fr; }
  .result-item.result-main { grid-column: 1/-1; }
  .result-number.six-digit { font-size: 2rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .trend-radar { grid-template-columns: 1fr; }
  .check-cta-inner { flex-direction: column; text-align: center; }
  .check-cta .btn { margin-left: 0; }
  .battle-container { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .hero-title { font-size: 2.8rem; }
  .result-grid { grid-template-columns: 1fr; }
  .personas-grid { flex-direction: column; }
  .stat-divider { display: none; }
  .stats-bar { justify-content: flex-start; gap: 0.5rem; }
  .stat-item { padding: 0.75rem 1rem; }
}
