/* ============================================================
   TeerResult.info – Main Stylesheet
   ============================================================ */

/* ── Google Font: Inter */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ── CSS Custom Properties (Light Mode) */
:root {
  --primary:        #6D5BFF;
  --primary-light:  #8B7BFF;
  --secondary:      #24D5FF;
  --accent:         #FF4D73;
  --bg:             #FFFFFF;
  --bg-surface:     #F8FAFC;
  --bg-card:        #FFFFFF;
  --text:           #111827;
  --text-muted:     #6B7280;
  --text-light:     #9CA3AF;
  --border:         #E5E7EB;
  --border-light:   #F3F4F6;
  --shadow-sm:      0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow:         0 4px 16px rgba(0,0,0,.08);
  --shadow-lg:      0 8px 32px rgba(0,0,0,.12);
  --radius:         1rem;
  --radius-sm:      .75rem;
  --gradient:       linear-gradient(135deg, #6D5BFF 0%, #24D5FF 100%);
  --gradient-warm:  linear-gradient(135deg, #6D5BFF 0%, #FF4D73 100%);
  --transition:     .2s ease;
}

/* ── Dark Mode */
[data-theme="dark"] {
  --bg:           #0F172A;
  --bg-surface:   #1E293B;
  --bg-card:      #1E293B;
  --text:         #F1F5F9;
  --text-muted:   #94A3B8;
  --text-light:   #64748B;
  --border:       #334155;
  --border-light: #1E293B;
  --shadow-sm:    0 1px 3px rgba(0,0,0,.3);
  --shadow:       0 4px 16px rgba(0,0,0,.3);
  --shadow-lg:    0 8px 32px rgba(0,0,0,.4);
}

/* ── Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background var(--transition), color var(--transition);
  overflow-x: hidden;
}

/* ── Typography */
h1, h2, h3, h4, h5, h6 { line-height: 1.25; font-weight: 700; color: var(--text); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-surface); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-light); }

/* ============================================================
   LAYOUT – Ad Space + Main Content
   ============================================================ */
.page-wrapper {
  display: flex;
  min-height: 100vh;
  position: relative;
}

/* Sticky ad sidebars – visible on screens ≥ 1300px */
.ad-sidebar {
  width: 160px;
  flex-shrink: 0;
  display: none;
}
.ad-sticky {
  position: sticky;
  top: 80px;
  padding: 1rem .5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.ad-placeholder {
  width: 160px;
  min-height: 600px;
  background: var(--bg-surface);
  border: 2px dashed var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  color: var(--text-light);
  writing-mode: vertical-rl;
  letter-spacing: .05em;
}
@media (min-width: 1300px) {
  .ad-sidebar { display: block; }
}

.main-content {
  flex: 1;
  min-width: 0;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border-light);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(255,255,255,.85);
  transition: background var(--transition);
}
[data-theme="dark"] .navbar {
  background: rgba(15,23,42,.9);
}

.nav-container {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: .875rem 1rem;
  max-width: 1040px;
  margin: 0 auto;
}

.nav-logo { display: flex; align-items: center; flex-shrink: 0; }
.nav-logo svg { height: 56px; width: auto; }

.nav-links {
  display: none;
  gap: .25rem;
  flex: 1;
  align-items: center;
}
@media (min-width: 900px) {
  .nav-links { display: flex; }
}

.nav-link {
  padding: .5rem .875rem;
  border-radius: 99px;
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
  background: rgba(109,91,255,.1);
  color: var(--primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-left: auto;
}

/* ── Theme Toggle – pill switch */
.theme-toggle {
  position: relative;
  width: 54px;
  height: 28px;
  border-radius: 99px;
  border: none;
  background: linear-gradient(135deg, #FDB827 0%, #F97316 100%);
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 0;
  transition: background .35s ease;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 1px 4px rgba(0,0,0,.15);
}
[data-theme="dark"] .theme-toggle {
  background: linear-gradient(135deg, #4338CA 0%, #6D5BFF 100%);
}

/* Sliding ball */
.theme-toggle::before {
  content: '';
  position: absolute;
  left: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 5px rgba(0,0,0,.22);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  z-index: 2;
}
[data-theme="dark"] .theme-toggle::before {
  transform: translateX(26px);
}

/* Sun icon – visible in light mode on right side */
.theme-toggle::after {
  content: '☀️';
  position: absolute;
  right: 5px;
  font-size: .65rem;
  line-height: 1;
  z-index: 1;
  transition: opacity .2s;
}
[data-theme="dark"] .theme-toggle::after {
  content: '🌙';
  right: auto;
  left: 5px;
}

.theme-toggle:hover { opacity: .88; }

.mobile-menu-btn {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: none;
  background: none;
  cursor: pointer;
  padding: 10px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}
.mobile-menu-btn:hover { background: var(--bg-surface); }
.mobile-menu-btn span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all .3s;
}
@media (min-width: 900px) { .mobile-menu-btn { display: none; } }

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: .25rem;
  padding: 1rem;
  border-top: 1px solid var(--border-light);
  background: var(--bg);
}
.mobile-nav.open { display: flex; }
@media (min-width: 900px) { .mobile-nav { display: none !important; } }
.mobile-nav .nav-link { padding: .75rem 1rem; border-radius: var(--radius-sm); }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
  padding: 4rem 1rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -10%;
  width: 120%;
  height: 200%;
  background: radial-gradient(ellipse at 50% 30%, rgba(109,91,255,.08) 0%, transparent 60%);
  pointer-events: none;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(255,77,115,.1);
  color: var(--accent);
  font-size: .75rem;
  font-weight: 600;
  padding: .375rem 1rem;
  border-radius: 99px;
  margin-bottom: 1.5rem;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.live-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(1.3); }
}

.hero-section h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
  letter-spacing: -.02em;
}
.hero-section p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}
.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  background: var(--gradient);
  color: #fff;
  font-weight: 600;
  border-radius: 99px;
  font-size: .9375rem;
  border: none;
  cursor: pointer;
  transition: opacity .2s, transform .2s;
  text-decoration: none;
}
.btn-primary:hover { opacity: .9; transform: translateY(-1px); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  background: var(--bg-surface);
  color: var(--primary);
  font-weight: 600;
  border-radius: 99px;
  font-size: .9375rem;
  border: 1.5px solid var(--primary);
  cursor: pointer;
  transition: background .2s, transform .2s;
  text-decoration: none;
}
.btn-secondary:hover { background: rgba(109,91,255,.08); transform: translateY(-1px); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .625rem 1.25rem;
  background: transparent;
  color: var(--text-muted);
  font-weight: 500;
  border-radius: 99px;
  font-size: .875rem;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

/* ============================================================
   SECTIONS
   ============================================================ */
.section {
  padding: 3rem 1rem;
}
.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.section-header h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  margin-bottom: .5rem;
}
.section-header p { color: var(--text-muted); font-size: 1rem; }

/* Section badge / pill */
.section-badge {
  display: inline-block;
  background: rgba(109,91,255,.1);
  color: var(--primary);
  font-size: .75rem;
  font-weight: 600;
  padding: .25rem .875rem;
  border-radius: 99px;
  margin-bottom: .75rem;
  letter-spacing: .05em;
  text-transform: uppercase;
}

/* ============================================================
   RESULT CARDS (Section A)
   ============================================================ */
.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}

.result-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s, border-color .2s;
  position: relative;
  overflow: hidden;
}
.result-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient);
  border-radius: var(--radius) var(--radius) 0 0;
}
.result-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: rgba(109,91,255,.2);
}

.result-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}
.result-game-name {
  font-size: .9375rem;
  font-weight: 700;
  color: var(--text);
}
.result-date {
  font-size: .75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.live-indicator {
  display: flex;
  align-items: center;
  gap: .375rem;
  font-size: .6875rem;
  font-weight: 600;
  color: #10B981;
  background: rgba(16,185,129,.1);
  padding: .25rem .625rem;
  border-radius: 99px;
  flex-shrink: 0;
}
.live-dot {
  width: 6px;
  height: 6px;
  background: #10B981;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

.yesterday-indicator {
  display: flex;
  align-items: center;
  gap: .375rem;
  font-size: .6875rem;
  font-weight: 600;
  color: #F59E0B;
  background: rgba(245,158,11,.12);
  padding: .25rem .625rem;
  border-radius: 99px;
  flex-shrink: 0;
  border: 1px solid rgba(245,158,11,.25);
}

.result-numbers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
  margin-bottom: 1.25rem;
}
.result-round {
  text-align: center;
  background: var(--bg-surface);
  border-radius: var(--radius-sm);
  padding: .875rem .5rem;
}
.round-label {
  font-size: .6875rem;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: .25rem;
}
.round-num {
  font-size: 2.25rem;
  font-weight: 900;
  letter-spacing: -.02em;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.round-num.pending {
  font-size: 1.75rem;
  color: var(--text-light);
  background: none;
  -webkit-text-fill-color: var(--text-light);
}
.round-time {
  font-size: .6875rem;
  color: var(--text-light);
  margin-top: .25rem;
}

.result-card-footer { text-align: right; }

/* ============================================================
   PREDICTION CARDS (Section B)
   ============================================================ */
.prediction-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.prediction-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.prediction-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

/* ── Colored header bar per game */
.pred-card-header {
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: .75rem;
}
.prediction-card[data-game="shillong"]  .pred-card-header { background: linear-gradient(135deg,#6D5BFF,#24D5FF); }
.prediction-card[data-game="khanapara"] .pred-card-header { background: linear-gradient(135deg,#059669,#34D399); }
.prediction-card[data-game="juwai"]     .pred-card-header { background: linear-gradient(135deg,#D97706,#EF4444); }
.prediction-card[data-game="night"]     .pred-card-header { background: linear-gradient(135deg,#1E40AF,#7C3AED); }

.pred-card-icon {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.22);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.pred-game-name {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
}
.pred-game-sub {
  font-size: .7rem;
  color: rgba(255,255,255,.75);
  font-weight: 400;
  margin-top: .1rem;
}

/* ── Card body */
.pred-card-body {
  padding: 1.125rem 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .875rem;
}

.pred-result { display: block; }
.pred-result.visible { display: block; }

/* Prediction sets */
.pred-set {
  margin-bottom: .5rem;
}
.pred-set-label {
  display: inline-flex;
  align-items: center;
  font-size: .6375rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(109,91,255,.08);
  padding: .175rem .55rem;
  border-radius: 99px;
  margin-bottom: .45rem;
}
.pred-set-divider {
  border: none;
  border-top: 1px dashed var(--border-light);
  margin: .5rem 0;
}

.pred-section-label {
  font-size: .625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-light);
  margin-bottom: .5rem;
}
.pred-direct-nums {
  display: flex;
  flex-wrap: wrap;
  gap: .375rem;
  min-height: 2.25rem;
  align-items: center;
}
.pred-num-chip {
  font-weight: 700;
  font-size: .9375rem;
  padding: .3rem .6rem;
  border-radius: .5rem;
  font-variant-numeric: tabular-nums;
  border: 1.5px solid transparent;
}
.prediction-card[data-game="shillong"]  .pred-num-chip { background: rgba(109,91,255,.1);  color: #6D5BFF; border-color: rgba(109,91,255,.25); }
.prediction-card[data-game="khanapara"] .pred-num-chip { background: rgba(5,150,105,.1);   color: #059669; border-color: rgba(5,150,105,.25); }
.prediction-card[data-game="juwai"]     .pred-num-chip { background: rgba(217,119,6,.1);   color: #D97706; border-color: rgba(217,119,6,.25); }
.prediction-card[data-game="night"]     .pred-num-chip { background: rgba(30,64,175,.1);   color: #1E40AF; border-color: rgba(30,64,175,.25); }

.pred-house-ending {
  display: flex;
  gap: .75rem;
}
.pred-he-box {
  text-align: center;
  background: var(--bg-surface);
  border-radius: var(--radius-sm);
  padding: .75rem .5rem;
  flex: 1;
  border: 1px solid var(--border-light);
}
.pred-he-label {
  font-size: .625rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-light);
  font-weight: 600;
  margin-bottom: .25rem;
}
.pred-he-num {
  font-size: 1.75rem;
  font-weight: 900;
  line-height: 1.1;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.prediction-card[data-game="shillong"]  .pred-he-num { background: linear-gradient(135deg,#6D5BFF,#24D5FF); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.prediction-card[data-game="khanapara"] .pred-he-num { background: linear-gradient(135deg,#059669,#34D399); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.prediction-card[data-game="juwai"]     .pred-he-num { background: linear-gradient(135deg,#D97706,#EF4444); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.prediction-card[data-game="night"]     .pred-he-num { background: linear-gradient(135deg,#1E40AF,#7C3AED); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* ── Refresh button at card bottom */
.btn-generate {
  width: 100%;
  padding: .7rem 1rem;
  color: #fff;
  font-weight: 600;
  font-size: .875rem;
  border: none;
  border-radius: 0 0 var(--radius) var(--radius);
  cursor: pointer;
  transition: opacity .2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  margin-top: auto;
}
.btn-generate:hover { opacity: .88; }
.prediction-card[data-game="shillong"]  .btn-generate { background: linear-gradient(135deg,#6D5BFF,#24D5FF); }
.prediction-card[data-game="khanapara"] .btn-generate { background: linear-gradient(135deg,#059669,#34D399); }
.prediction-card[data-game="juwai"]     .btn-generate { background: linear-gradient(135deg,#D97706,#EF4444); }
.prediction-card[data-game="night"]     .btn-generate { background: linear-gradient(135deg,#1E40AF,#7C3AED); }

/* Forum floating action button */
.fab-create-post {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 200;
  background: var(--gradient);
  color: #fff;
  border: none;
  border-radius: 99px;
  padding: .875rem 1.5rem;
  font-size: .9375rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 24px rgba(109,91,255,.4);
  display: flex;
  align-items: center;
  gap: .5rem;
  transition: transform .2s, box-shadow .2s;
}
.fab-create-post:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(109,91,255,.5); }

/* ============================================================
   CTA IMAGE BANNER
   ============================================================ */
.cta-img-wrap {
  padding: 0 1rem 1rem;
}
.cta-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
}
@media (max-width: 768px) {
  .cta-img-wrap {
    padding: 0 0 1rem;
  }
  .cta-img {
    border-radius: 0;
  }
}

/* ============================================================
   CTA BANNER v2 – Redesigned Bold Dark Gradient
   ============================================================ */
.cta-banner-v2 {
  margin: 1rem;
  background: linear-gradient(135deg, #1A0A3C 0%, #2D1B69 40%, #0F2A60 100%);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(109,91,255,.35);
  box-shadow: 0 8px 40px rgba(109,91,255,.25);
}
/* Decorative glow orbs */
.cta-banner-v2::before {
  content: '';
  position: absolute;
  top: -60px; right: 25%;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(109,91,255,.35) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.cta-banner-v2::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -40px;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(36,213,255,.2) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* Left counter circle */
.cta-counter {
  flex-shrink: 0;
  width: 118px; height: 118px;
  border-radius: 50%;
  background: rgba(255,255,255,.07);
  border: 2px solid rgba(109,91,255,.5);
  box-shadow: 0 0 0 8px rgba(109,91,255,.1), 0 8px 28px rgba(0,0,0,.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  z-index: 1;
  backdrop-filter: blur(8px);
}
.cta-counter-num {
  font-size: 1.625rem;
  font-weight: 900;
  color: #24D5FF;
  line-height: 1;
  letter-spacing: -.02em;
}
.cta-counter-billion {
  display: block;
  font-size: .625rem;
  font-weight: 800;
  letter-spacing: .12em;
  color: rgba(255,255,255,.7);
  margin-top: .1rem;
}
.cta-counter-label {
  font-size: .55rem;
  font-weight: 700;
  letter-spacing: .18em;
  color: rgba(255,255,255,.5);
  margin-top: .2rem;
  text-transform: uppercase;
}

/* Center main content */
.cta-main {
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 1;
}
.cta-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(36,213,255,.15);
  color: #24D5FF;
  border: 1px solid rgba(36,213,255,.3);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .07em;
  padding: .3rem .9rem;
  border-radius: 99px;
  margin-bottom: .875rem;
  text-transform: uppercase;
}
.cta-headline {
  font-size: clamp(1.25rem, 2.8vw, 1.875rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.2;
  margin-bottom: .75rem;
}
.cta-highlight {
  background: linear-gradient(135deg, #24D5FF, #6D5BFF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.cta-headline-arrow {
  color: #24D5FF;
  font-style: normal;
}
.cta-desc {
  font-size: .9375rem;
  color: rgba(255,255,255,.65);
  margin-bottom: 1.25rem;
  line-height: 1.65;
  max-width: 400px;
}
.cta-btns {
  display: flex;
  gap: .875rem;
  flex-wrap: wrap;
}
.cta-btn-solid {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.5rem;
  background: linear-gradient(135deg, #6D5BFF, #24D5FF);
  color: #fff;
  font-weight: 700;
  font-size: .9375rem;
  border-radius: 99px;
  border: none;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, opacity .2s;
  box-shadow: 0 4px 20px rgba(109,91,255,.5);
  text-decoration: none;
}
.cta-btn-solid:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(109,91,255,.6); opacity: .92; }
.cta-btn-ring {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.5rem;
  background: rgba(255,255,255,.08);
  color: #fff;
  font-weight: 700;
  font-size: .9375rem;
  border-radius: 99px;
  border: 1.5px solid rgba(255,255,255,.3);
  cursor: pointer;
  transition: transform .2s, background .2s, border-color .2s;
  text-decoration: none;
  backdrop-filter: blur(4px);
}
.cta-btn-ring:hover { transform: translateY(-2px); background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.55); }

/* Right feature list */
.cta-features {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.cta-feature {
  display: flex;
  align-items: center;
  gap: .625rem;
  font-size: .875rem;
  font-weight: 600;
  color: rgba(255,255,255,.85);
  white-space: nowrap;
}
.cta-feat-icon {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .875rem;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}

/* Responsive */
@media (max-width: 860px) {
  .cta-banner-v2 { flex-direction: column; text-align: center; padding: 2rem 1.5rem; gap: 1.5rem; }
  .cta-features { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .cta-btns { justify-content: center; }
  .cta-desc { margin-left: auto; margin-right: auto; }
}
@media (max-width: 480px) { .cta-counter { width: 96px; height: 96px; } }

/* Dark mode – banner already dark, just fine-tune */
[data-theme="dark"] .cta-banner-v2 {
  background: linear-gradient(135deg, #0D0620 0%, #1A0F3D 40%, #071830 100%);
  border-color: rgba(109,91,255,.5);
}


/* ============================================================
   PREVIOUS RESULTS TABLE (Section D)
   ============================================================ */
.prev-results-table-wrap {
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.prev-results-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .875rem;
}
.prev-results-table thead th {
  background: var(--bg-surface);
  padding: .875rem 1rem;
  text-align: center;
  font-size: .75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  border-bottom: 1px solid var(--border-light);
}
.prev-results-table thead th:first-child { text-align: left; }
.prev-results-table tbody tr {
  border-bottom: 1px solid var(--border-light);
  transition: background .15s;
}
.prev-results-table tbody tr:hover { background: var(--bg-surface); }
.prev-results-table tbody tr:last-child { border-bottom: none; }
.prev-results-table td {
  padding: .875rem 1rem;
  text-align: center;
  font-weight: 700;
  color: var(--primary);
}
.prev-results-table td:first-child {
  text-align: left;
  font-weight: 600;
  color: var(--text);
  font-size: .875rem;
}
.prev-fr { color: var(--primary) !important; }
.prev-sr { color: var(--secondary) !important; }

.show-more-wrap {
  text-align: center;
  margin-top: 1.25rem;
}

/* ============================================================
   WHY CHOOSE (Section E)
   ============================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.25rem;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature-icon {
  width: 72px;
  height: 72px;
  border-radius: 22px;
  background: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 1rem;
  box-shadow: 0 8px 24px rgba(110,94,255,.1);
}
.feature-icon svg {
  width: 56px;
  height: 56px;
}
.feature-title {
  font-size: .9375rem;
  font-weight: 700;
  margin-bottom: .375rem;
}
.feature-desc { font-size: .8125rem; color: var(--text-muted); line-height: 1.5; }

/* ============================================================
   FAQ (Section F)
   ============================================================ */
.faq-list { display: flex; flex-direction: column; gap: .75rem; max-width: 720px; margin: 0 auto; }
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: border-color .2s;
}
.faq-item.open { border-color: rgba(109,91,255,.3); }
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.125rem 1.25rem;
  cursor: pointer;
  font-weight: 600;
  font-size: .9375rem;
  user-select: none;
  transition: color .2s;
}
.faq-item.open .faq-question { color: var(--primary); }
.faq-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: .875rem;
  transition: transform .3s, background .2s;
}
.faq-item.open .faq-icon { transform: rotate(45deg); background: rgba(109,91,255,.1); color: var(--primary); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .35s ease;
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 0 1.25rem 1.25rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-light);
  padding: 3rem 1rem 1.5rem;
  margin-top: 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
  max-width: 1040px;
  margin-left: auto;
  margin-right: auto;
}
.footer-brand p { font-size: .875rem; color: var(--text-muted); margin-top: .75rem; line-height: 1.6; }
.footer-col h4 { font-size: .875rem; font-weight: 700; margin-bottom: .875rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: .5rem; }
.footer-col a { font-size: .875rem; color: var(--text-muted); transition: color .2s; }
.footer-col a:hover { color: var(--primary); }
.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
  font-size: .8125rem;
  color: var(--text-light);
  max-width: 1040px;
  margin: 0 auto;
}

/* ============================================================
   LOADING SKELETON
   ============================================================ */
@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}
.skeleton {
  background: linear-gradient(90deg, var(--border-light) 25%, var(--bg-surface) 50%, var(--border-light) 75%);
  background-size: 800px 100%;
  animation: shimmer 1.5s infinite;
  border-radius: .5rem;
}

/* ============================================================
   HISTORY PAGE
   ============================================================ */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-bottom: 1.5rem;
  align-items: flex-end;
  justify-content: center;
}
.filter-group { display: flex; flex-direction: column; gap: .375rem; }
.filter-label { font-size: .75rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; }
.filter-input, .filter-select {
  padding: .625rem .875rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: .875rem;
  font-family: inherit;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.filter-input:focus, .filter-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(109,91,255,.12);
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  margin-top: 1.5rem;
}
.page-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 .5rem;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
  border-radius: .5rem;
  cursor: pointer;
  font-size: .875rem;
  transition: all .2s;
  font-family: inherit;
}
.page-btn:hover { border-color: var(--primary); color: var(--primary); }
.page-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 600; }
.page-btn:disabled { opacity: .4; cursor: not-allowed; }

/* ============================================================
   DREAM NUMBER PAGE
   ============================================================ */
.dream-search-hero {
  padding: 3rem 1rem 2rem;
  text-align: center;
}
.dream-search-wrap {
  max-width: 500px;
  margin: 0 auto;
  position: relative;
}
.dream-search-input {
  width: 100%;
  padding: 1rem 1.25rem 1rem 3rem;
  border: 2px solid var(--border);
  border-radius: 99px;
  background: var(--bg-card);
  font-size: 1rem;
  color: var(--text);
  font-family: inherit;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  box-shadow: var(--shadow-sm);
}
.dream-search-input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(109,91,255,.12); }
.dream-search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1.1rem;
  pointer-events: none;
}
.dream-search-results {
  position: absolute;
  top: calc(100% + .5rem);
  left: 0; right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  z-index: 50;
  max-height: 300px;
  overflow-y: auto;
  display: none;
}
.dream-search-results.open { display: block; }
.dream-result-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .75rem 1rem;
  cursor: pointer;
  font-size: .9rem;
  transition: background .15s;
  border-bottom: 1px solid var(--border-light);
}
.dream-result-item:last-child { border-bottom: none; }
.dream-result-item:hover { background: var(--bg-surface); }

.popular-tags { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-top: 1.25rem; }
.popular-tag {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: .375rem .875rem;
  border-radius: 99px;
  font-size: .8125rem;
  cursor: pointer;
  transition: all .2s;
}
.popular-tag:hover { border-color: var(--primary); color: var(--primary); background: rgba(109,91,255,.06); }

.dream-categories { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-bottom: 2rem; }
.cat-btn {
  padding: .5rem 1rem;
  border: 1px solid var(--border);
  border-radius: 99px;
  font-size: .8125rem;
  font-weight: 600;
  cursor: pointer;
  background: var(--bg-card);
  color: var(--text-muted);
  transition: all .2s;
  font-family: inherit;
  text-transform: capitalize;
}
.cat-btn:hover, .cat-btn.active { border-color: var(--primary); background: rgba(109,91,255,.08); color: var(--primary); }

.dream-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1rem; }
.dream-item {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 1rem;
  text-align: center;
  cursor: pointer;
  transition: all .2s;
  box-shadow: var(--shadow-sm);
}
.dream-item:hover { border-color: rgba(109,91,255,.3); transform: translateY(-2px); box-shadow: var(--shadow); }
.dream-item-emoji { font-size: 1.75rem; margin-bottom: .5rem; }
.dream-item-name { font-size: .8125rem; font-weight: 600; color: var(--text); }
.dream-item-cat { font-size: .6875rem; color: var(--text-muted); text-transform: capitalize; margin-top: .25rem; }

/* Dream Billboard */
.dream-billboard {
  background: var(--bg-card);
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 480px;
  margin: 0 auto 2rem;
  box-shadow: 0 0 40px rgba(109,91,255,.15);
  text-align: center;
  animation: fadeInUp .4s ease;
}
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.bb-dream-name {
  font-size: 1.5rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
}
.bb-section { margin-bottom: 1.25rem; }
.bb-label {
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: .75rem;
}
.bb-nums {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: center;
}
.bb-num {
  font-size: 1.75rem;
  font-weight: 900;
  width: 56px;
  height: 56px;
  border-radius: .875rem;
  background: var(--gradient);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: popIn .3s ease backwards;
}
@keyframes popIn { from { opacity: 0; transform: scale(.5); } to { opacity: 1; transform: scale(1); } }
.bb-num:nth-child(1) { animation-delay: .05s; }
.bb-num:nth-child(2) { animation-delay: .1s; }
.bb-num:nth-child(3) { animation-delay: .15s; }
.bb-num:nth-child(4) { animation-delay: .2s; }
.bb-num:nth-child(5) { animation-delay: .25s; }
.bb-he { font-size: 2.5rem; font-weight: 900; background: var(--gradient-warm); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.bb-divider { border: none; border-top: 1px solid var(--border-light); margin: 1.25rem 0; }
.bb-actions { display: flex; gap: .75rem; justify-content: center; margin-top: 1.5rem; flex-wrap: wrap; }

/* ============================================================
   FORUM PAGE
   ============================================================ */
.forum-stats {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 2rem;
  justify-content: flex-start;
}
.stat-card {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 99px;
  padding: .35rem .875rem;
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}
.stat-icon { font-size: .875rem; }
.stat-value { font-size: .875rem; font-weight: 800; color: var(--primary); }
.stat-label { font-size: .75rem; color: var(--text-muted); font-weight: 500; }

.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1rem;
  transition: border-color .2s, box-shadow .2s;
}
.post-card:hover { border-color: rgba(109,91,255,.2); box-shadow: var(--shadow); }

/* Compact post card – very small list-style */
.post-card-compact {
  padding: .5rem .75rem;
  margin-bottom: .3rem;
  border-radius: .5rem;
  box-shadow: none;
  border-color: var(--border-light);
}
.post-card-compact:hover { border-color: rgba(109,91,255,.18); box-shadow: var(--shadow-sm); }
.post-avatar-sm    { width: 24px !important; height: 24px !important; font-size: .65rem !important; }
.post-title-sm     { font-size: .825rem; font-weight: 700; margin-bottom: .15rem; }
.post-preview-sm   { font-size: .75rem; max-height: 28px; overflow: hidden; color: var(--text-muted); line-height: 1.4; }
.post-footer-sm    { margin-top: .3rem; gap: .25rem; }
.reaction-btn-sm   { font-size: .7rem !important; padding: .15rem .4rem !important; gap: .2rem !important; }
.post-expand-arrow { margin-left: auto; font-size: .65rem; color: var(--text-light); flex-shrink: 0; }

/* Comment section */
.comment-section {
  border-top: 1px solid var(--border-light);
  margin-top: .625rem;
  padding-top: .625rem;
}
.comments-list {
  max-height: 200px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: .375rem;
  margin-bottom: .5rem;
  scrollbar-width: thin;
}
.comment-item {
  display: flex;
  gap: .5rem;
  align-items: flex-start;
}
.comment-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  font-size: .65rem;
  flex-shrink: 0;
}
.comment-body {
  flex: 1;
  background: var(--bg-surface);
  border-radius: .5rem;
  padding: .3rem .625rem;
}
.comment-username { font-size: .75rem; font-weight: 700; }
.comment-time     { font-size: .6875rem; color: var(--text-muted); margin-left: .375rem; }
.comment-text     { font-size: .8rem; line-height: 1.4; margin-top: .125rem; }
.comment-input-row {
  display: flex;
  gap: .375rem;
  align-items: center;
  margin-top: .5rem;
}
.comment-input    { padding: .4rem .75rem !important; font-size: .8125rem !important; flex: 1; }

.post-header { display: flex; align-items: center; gap: .5rem; margin-bottom: .375rem; }
.post-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  font-size: 1rem;
  flex-shrink: 0;
}
.post-meta { flex: 1; }
.post-username { font-weight: 600; font-size: .9rem; }
.post-time { font-size: .75rem; color: var(--text-muted); }
.post-title { font-size: 1rem; font-weight: 700; margin-bottom: .5rem; }
.post-preview { font-size: .875rem; color: var(--text-muted); line-height: 1.6; }
.post-footer { display: flex; align-items: center; gap: 1rem; margin-top: 1rem; flex-wrap: wrap; }
.reaction-btn {
  display: flex;
  align-items: center;
  gap: .375rem;
  font-size: .8125rem;
  color: var(--text-muted);
  cursor: pointer;
  background: none;
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: .3125rem .75rem;
  transition: all .2s;
  font-family: inherit;
}
.reaction-btn:hover { border-color: var(--primary); color: var(--primary); background: rgba(109,91,255,.06); }
.reaction-btn.active { border-color: var(--primary); color: var(--primary); background: rgba(109,91,255,.08); font-weight: 600; }
.comment-count { font-size: .8125rem; color: var(--text-muted); display: flex; align-items: center; gap: .375rem; }

/* Modal / Auth */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 2rem;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-lg);
  animation: fadeInUp .3s ease;
}
.modal-close { float: right; background: none; border: none; font-size: 1.25rem; cursor: pointer; color: var(--text-muted); }
.form-group { margin-bottom: 1rem; }
.form-label { display: block; font-size: .8125rem; font-weight: 600; margin-bottom: .375rem; color: var(--text); }
.form-input {
  width: 100%;
  padding: .75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  color: var(--text);
  font-size: .9rem;
  font-family: inherit;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.form-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(109,91,255,.12); }
.form-error { color: var(--accent); font-size: .8125rem; margin-top: .375rem; display: none; }
.form-error.visible { display: block; }

/* ============================================================
   COMMON NUMBER PAGE
   ============================================================ */
.common-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.game-tabs { display: flex; gap: .5rem; flex-wrap: wrap; }
.game-tab {
  padding: .5rem 1rem;
  border: 1px solid var(--border);
  border-radius: 99px;
  font-size: .8125rem;
  font-weight: 600;
  cursor: pointer;
  background: var(--bg-card);
  color: var(--text-muted);
  transition: all .2s;
  font-family: inherit;
}
.game-tab:hover, .game-tab.active { border-color: var(--primary); background: rgba(109,91,255,.08); color: var(--primary); }

.common-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.common-table th {
  background: var(--bg-surface);
  padding: .875rem 1.25rem;
  text-align: center;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-muted);
  border-bottom: 2px solid var(--border-light);
}
.common-table th:first-child { text-align: center; width: 60px; }
.common-table td {
  padding: .875rem 1.25rem;
  text-align: center;
  border-bottom: 1px solid var(--border-light);
  font-weight: 700;
}
.common-table td:first-child { color: var(--text-muted); font-weight: 500; }
.common-table td:nth-child(2) { color: var(--text); font-weight: 700; }
.common-table td:nth-child(3) { color: var(--primary); font-size: 1.1rem; }
.common-table td:nth-child(4) { color: var(--secondary); font-size: 1.1rem; }
.common-table tbody tr:hover { background: var(--bg-surface); }

/* ============================================================
   GAME CHIP / LABEL
   ============================================================ */
.game-chip {
  display: inline-block;
  font-size: .6875rem;
  font-weight: 600;
  padding: .2rem .6rem;
  border-radius: 99px;
  text-transform: capitalize;
}
.game-chip.shillong  { background: rgba(109,91,255,.1); color: #6D5BFF; }
.game-chip.khanapara { background: rgba(36,213,255,.12); color: #0ea5e9; }
.game-chip.juwai     { background: rgba(16,185,129,.1);  color: #10B981; }
.game-chip.night     { background: rgba(255,77,115,.1);  color: #FF4D73; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 860px) {
  .prediction-grid    { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .prev-results-table { font-size: .65rem; }
  .prev-results-table thead th,
  .prev-results-table td { padding: .4rem .25rem; }
  .prev-results-table td:first-child { font-size: .65rem; white-space: nowrap; }
  .results-grid       { grid-template-columns: 1fr 1fr; }
  .prediction-grid    { grid-template-columns: 1fr 1fr; }
  .hero-section       { padding: 2.5rem 1rem 2rem; }
  .section            { padding: 2rem 1rem; }
  .footer-grid        { grid-template-columns: 1fr 1fr; }
  .forum-stats        { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 420px) {
  .results-grid       { grid-template-columns: 1fr; }
  .prediction-grid    { grid-template-columns: 1fr; }
}

/* ============================================================
   MOBILE FULL-BLEED & NO HORIZONTAL SCROLL FIXES
   ============================================================ */
@media (max-width: 768px) {

  /* Global – prevent horizontal overflow */
  html, body {
    overflow-x: hidden;
    max-width: 100%;
  }
  .page-wrapper {
    overflow-x: hidden;
  }

  /* Main content – remove side padding for full bleed */
  .main-content {
    padding: 0;
    max-width: 100%;
  }

  /* Sections – full bleed on mobile */
  .section {
    padding: 1.75rem 0;
  }
  .section-header,
  .faq-list,
  .results-grid,
  .prediction-grid,
  .features-grid,
  .seo-content,
  .dream-search-hero,
  .dream-categories,
  .common-header,
  .show-more-wrap,
  .hero-section {
    padding-left: .875rem;
    padding-right: .875rem;
  }

  /* CTA Banner – full bleed */
  .cta-banner-v2 {
    margin: 0;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }

  /* ── Point 5: Filter bar – compact, full-bleed gradient ── */
  .filter-bar-card {
    margin: 0;
    border-radius: 0;
    border-left: none;
    border-right: none;
    background: linear-gradient(135deg, var(--primary) 0%, #24D5FF 100%) !important;
    border-color: transparent !important;
    padding: 1rem .875rem !important;
  }
  .filter-bar-card h3 {
    color: #fff !important;
    font-size: .875rem !important;
  }
  .filter-bar {
    gap: .5rem;
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  .filter-group {
    flex: 1 1 calc(50% - .25rem);
    min-width: 120px;
  }
  .filter-label {
    color: rgba(255,255,255,.75) !important;
    font-size: .625rem;
  }
  .filter-input,
  .filter-select {
    background: rgba(255,255,255,.15) !important;
    border-color: rgba(255,255,255,.25) !important;
    color: #fff !important;
    font-size: .8125rem;
    padding: .5rem .75rem;
  }
  .filter-input::placeholder { color: rgba(255,255,255,.55); }
  .filter-input option,
  .filter-select option { background: var(--bg-card); color: var(--text); }

  /* ── Point 6: Result table – full bleed ── */
  .prev-results-table-wrap {
    border-radius: 0;
    border-left: none;
    border-right: none;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .prev-results-table {
    min-width: 100%;
    font-size: .72rem;
  }
  .prev-results-table thead th,
  .prev-results-table td {
    padding: .55rem .4rem;
  }

  /* ── Point 7: Other sections full bleed ── */
  .dream-billboard {
    margin-left: 0;
    margin-right: 0;
    border-radius: 0;
  }
  .seo-content {
    border-radius: 0;
  }
  #features.section {
    padding-left: 0;
    padding-right: 0;
  }
  #features .section-header,
  #features .features-grid {
    padding-left: .875rem;
    padding-right: .875rem;
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: .75rem;
  }
  .footer-grid {
    padding: 0 .875rem;
  }

  /* Pagination – full bleed friendly */
  .pagination {
    padding: 0 .875rem;
    flex-wrap: wrap;
  }

  /* ── Point 8: Dream categories – horizontal scrollable strip ── */
  .dream-categories {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: .375rem;
    padding-bottom: .5rem;
    padding-left: .875rem;
    padding-right: .875rem;
    justify-content: flex-start;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .dream-categories::-webkit-scrollbar { display: none; }
  .cat-btn {
    flex-shrink: 0;
    scroll-snap-align: start;
    padding: .625rem 1rem;
    font-size: .8125rem;
    white-space: nowrap;
    border-radius: 99px;
  }
  .cat-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
  }

  /* Dream grid – larger items on mobile */
  .dream-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: .625rem;
    padding: 0 .875rem;
  }
  .dream-item-emoji { font-size: 1.5rem; }

  /* Popular tags full width scrollable */
  .popular-tags {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;
    padding-bottom: .25rem;
    scrollbar-width: none;
  }
  .popular-tags::-webkit-scrollbar { display: none; }
  .popular-tag { flex-shrink: 0; }

  /* Navbar full width */
  .nav-container {
    padding: .75rem .875rem;
    gap: .5rem;
  }
  /* Shrink logo so hamburger stays visible on narrow screens */
  .nav-logo svg {
    height: 40px;
  }
}

/* How-It-Works 4-col grid (predict page) */
.how-it-works-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .875rem;
  max-width: 860px;
  margin: 0 auto;
}
@media (max-width: 768px) {
  .how-it-works-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Dream category swipe hint – mobile only */
.dream-cat-hint {
  display: none;
  font-size: .7rem;
  color: var(--text-muted);
  text-align: right;
  padding-right: .875rem;
  margin-bottom: .375rem;
}
@media (max-width: 768px) {
  .dream-cat-hint { display: block; }
}

/* ============================================================
   ANIMATIONS / UTILITIES
   ============================================================ */
.fade-in { animation: fadeInUp .5s ease backwards; }
.text-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.divider { border: none; border-top: 1px solid var(--border-light); margin: 2rem 0; }
.loading-spin {
  display: inline-block;
  width: 20px; height: 20px;
  border: 2px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   SCROLL-TO-TOP BUTTON
   ============================================================ */
.scroll-top-btn {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 500;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(109,91,255,.4);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease, background .2s;
}
.scroll-top-btn.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.scroll-top-btn:hover {
  background: var(--primary-light);
  box-shadow: 0 4px 18px rgba(109,91,255,.55);
}
.scroll-top-btn svg {
  width: 16px;
  height: 16px;
  display: block;
}
@media (max-width: 768px) {
  .scroll-top-btn {
    width: 32px;
    height: 32px;
    bottom: 1rem;
    right: 1rem;
  }
  .scroll-top-btn svg { width: 14px; height: 14px; }
}

/* Toast */
.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: var(--text);
  color: var(--bg);
  padding: .875rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: .875rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  transition: opacity .3s, transform .3s;
  max-width: 300px;
}
.toast.toast-success { background: #10B981; color: #fff; }
.toast.toast-error   { background: var(--accent); color: #fff; }
.toast.hide { opacity: 0; transform: translateY(10px); pointer-events: none; }

/* SEO Content */
.seo-content {
  background: var(--bg-surface);
  border-radius: var(--radius);
  padding: 2rem;
  margin-top: 2rem;
}
.seo-content h3 { font-size: 1.125rem; margin-bottom: .75rem; }
.seo-content p  { font-size: .9rem; color: var(--text-muted); line-height: 1.8; }
.keyword-cloud  { display: flex; flex-wrap: wrap; gap: .375rem; margin-top: 1rem; }
.keyword-tag    { background: rgba(109,91,255,.08); color: var(--primary); font-size: .75rem; padding: .25rem .625rem; border-radius: 99px; }
