/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Brand colours — never change */
  --primary: #009578;
  --primary-dark: #007a62;
  --primary-light: #00c49a;
  --accent: #ffd700;
  --accent-dark: #e6c200;
  --danger: #f85149;
  --success: #3fb950;
  --radius: 8px;
  --radius-lg: 14px;

  /* Dark theme (default) */
  --dark:       #0d1117;
  --dark-2:     #161b22;
  --dark-3:     #21262d;
  --dark-4:     #30363d;
  --text:       #e6edf3;
  --text-muted: #8b949e;
  --white:      #ffffff;
  --border:     #30363d;
  --shadow:     0 4px 24px rgba(0,0,0,0.4);
  --shadow-sm:  0 2px 8px rgba(0,0,0,0.3);
  --header-bg:  rgba(13,17,23,0.97);
}

/* ===== LIGHT THEME ===== */
html[data-theme="light"] {
  --dark:       #f0f6fc;
  --dark-2:     #ffffff;
  --dark-3:     #f6f8fa;
  --dark-4:     #eaeef2;
  --text:       #24292f;
  --text-muted: #57606a;
  --white:      #0d1117;
  --border:     #d0d7de;
  --shadow:     0 4px 24px rgba(0,0,0,0.08);
  --shadow-sm:  0 2px 8px rgba(0,0,0,0.06);
  --header-bg:  rgba(255,255,255,0.97);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--dark);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--primary-light); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent); }
img { max-width: 100%; display: block; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--dark-2); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: var(--white);
}
.btn-primary:hover { background: var(--primary-dark); color: var(--white); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(0,149,120,0.4); }

.btn-accent {
  background: var(--accent);
  color: #0d1117;
}
.btn-accent:hover { background: var(--accent-dark); color: var(--dark); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(255,215,0,0.4); }

.btn-outline {
  background: transparent;
  color: var(--primary-light);
  border: 2px solid var(--primary);
}
.btn-outline:hover { background: var(--primary); color: var(--white); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--dark-3); color: var(--white); }

.btn-lg { padding: 14px 30px; font-size: 1rem; }
.btn-sm { padding: 7px 16px; font-size: 0.82rem; }
.btn-full { width: 100%; justify-content: center; }

/* ===== HEADER / NAV ===== */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 20px;
}

.nav-logo {
  display: flex;
  align-items: center;
  font-size: 1.55rem;
  font-weight: 900;
  letter-spacing: -1px;
  color: var(--white);
  flex-shrink: 0;
  text-transform: none;
  font-style: italic;
  line-height: 1;
}
.nav-logo span {
  color: var(--primary-light);
  font-style: normal;
  font-weight: 900;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav-links a {
  padding: 8px 14px;
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--white);
  background: var(--dark-3);
}
.nav-links a.active { color: var(--primary-light); }

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

.nav-telegram {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: #229ED9;
  color: white;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 600;
}
.nav-telegram:hover { background: #1a86b8; color: white; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius);
  background: none;
  border: none;
}
.hamburger span {
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
  display: block;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu hidden by default on all screen sizes */
.mobile-menu { display: none; }

/* ===== HERO ===== */
.hero {
  background:
    linear-gradient(155deg, rgba(0,80,60,0.82) 0%, rgba(5,12,18,0.78) 60%, rgba(0,60,45,0.70) 100%),
    url('https://images.unsplash.com/photo-1431324155629-1a6deb1dec8d?auto=format&fit=crop&w=1920&q=75') center/cover no-repeat;
  padding: 100px 20px 80px;
  position: relative;
  overflow: hidden;
  min-height: 520px;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 30%, rgba(0,149,120,0.18), transparent);
  pointer-events: none;
  z-index: 1;
}

/* Hero centred single-column layout */
.hero-inner {
  max-width: 740px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}
.hero-text {
  flex: 1;
  max-width: 740px;
  text-align: center;
}

@keyframes floatBall {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%       { transform: translateY(-18px) rotate(8deg); }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0,149,120,0.15);
  border: 1px solid rgba(0,149,120,0.3);
  color: var(--primary-light);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--white);
}
.hero h1 .highlight { color: var(--primary-light); }
.hero-text p {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 52px;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.15);
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}
.stat-item { text-align: center; }
.stat-item .stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-light);
  display: block;
}
.stat-item .stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Sidebar logo (dashboards) — bold type only */
.sidebar-logo .logo-icon { display: none; }

/* Page header with image */
.page-header-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  position: relative;
  z-index: 1;
}
.page-header-img {
  width: 100px;
  height: 100px;
  animation: floatBall 4s ease-in-out infinite;
  filter: drop-shadow(0 8px 24px rgba(0,149,120,0.4));
  flex-shrink: 0;
}
.page-header-trophy {
  width: 90px;
  height: 110px;
  animation: floatBall 4s ease-in-out infinite;
  filter: drop-shadow(0 8px 24px rgba(255,215,0,0.35));
  flex-shrink: 0;
}

/* ===== SECTIONS ===== */
.section { padding: 60px 20px; }
.section-alt { background: var(--dark-2); }

.container { max-width: 1200px; margin: 0 auto; }

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 16px;
  flex-wrap: wrap;
}
.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-title .title-icon {
  width: 36px; height: 36px;
  background: rgba(0,149,120,0.15);
  border: 1px solid rgba(0,149,120,0.3);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
}

/* ===== PREDICTION TABLE ===== */
.table-card {
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 32px;
}
.table-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--dark-3);
  flex-wrap: wrap;
  gap: 12px;
}
.table-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 8px;
}
.badge {
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.badge-success { background: rgba(63,185,80,0.15); color: var(--success); border: 1px solid rgba(63,185,80,0.3); }
.badge-warning { background: rgba(255,215,0,0.15); color: var(--accent); border: 1px solid rgba(255,215,0,0.3); }
.badge-info { background: rgba(0,149,120,0.15); color: var(--primary-light); border: 1px solid rgba(0,149,120,0.3); }
.badge-danger { background: rgba(248,81,73,0.15); color: var(--danger); border: 1px solid rgba(248,81,73,0.3); }
.badge-muted { background: rgba(139,148,158,0.15); color: var(--text-muted); border: 1px solid rgba(139,148,158,0.2); }

.pred-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.pred-table thead tr {
  background: rgba(0,0,0,0.2);
}
.pred-table th {
  padding: 12px 16px;
  text-align: left;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.pred-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(48,54,61,0.5);
  vertical-align: middle;
}
.pred-table tr:last-child td { border-bottom: none; }
.pred-table tbody tr { transition: background 0.15s; }
.pred-table tbody tr:hover { background: rgba(255,255,255,0.03); }

.match-teams { font-weight: 600; color: var(--white); margin-bottom: 2px; }
.match-league { font-size: 0.75rem; color: var(--text-muted); }
.match-league .flag { margin-right: 4px; }

.tip-cell {
  background: rgba(0,149,120,0.08);
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid rgba(0,149,120,0.2);
  font-weight: 600;
  color: var(--primary-light);
  display: inline-block;
  font-size: 0.82rem;
}

.result-won {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--success);
  font-weight: 700;
}
.result-lost {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--danger);
  font-weight: 700;
}
.result-pending {
  color: var(--text-muted);
  font-style: italic;
  font-size: 0.82rem;
}

.odds-cell { font-weight: 700; color: var(--accent); }
.code-cell {
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  background: rgba(0,149,112,0.15);
  border: 1px solid rgba(0,149,112,0.35);
  padding: 4px 10px;
  border-radius: 5px;
  color: var(--primary-light);
  font-weight: 800;
  letter-spacing: 2px;
}

/* ===== VIP TEASER ===== */
.vip-teaser {
  background: linear-gradient(135deg, rgba(0,149,120,0.15) 0%, rgba(0,100,80,0.1) 100%);
  border: 1px solid rgba(0,149,120,0.3);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.vip-teaser::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 70% 50%, rgba(255,215,0,0.05), transparent 60%);
}
.vip-teaser h2 { font-size: 2rem; font-weight: 800; color: var(--white); margin-bottom: 14px; }
.vip-teaser h2 .crown { color: var(--accent); }
.vip-teaser p { color: var(--text-muted); max-width: 560px; margin: 0 auto 28px; font-size: 1rem; }
.vip-features {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.vip-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 0.9rem;
}
.vip-feature .check { color: var(--primary-light); font-size: 1rem; }

/* ===== VIP PAGE ===== */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.plan-card {
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: relative;
  transition: transform 0.2s, border-color 0.2s;
}
.plan-card:hover { transform: translateY(-4px); border-color: var(--primary); }
.plan-card.featured {
  border-color: var(--primary);
  background: linear-gradient(145deg, rgba(0,149,120,0.08), var(--dark-2));
}
.plan-card.featured::before {
  content: 'MOST POPULAR';
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--primary);
  color: white;
  padding: 4px 16px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
}
.plan-name { font-size: 0.85rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; }
.plan-price { font-size: 2.8rem; font-weight: 800; color: var(--white); line-height: 1; margin-bottom: 6px; }
.plan-price span { font-size: 1rem; color: var(--text-muted); font-weight: 500; }
.plan-period { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 28px; }
.plan-features { list-style: none; margin-bottom: 28px; }
.plan-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(48,54,61,0.5);
  font-size: 0.88rem;
  color: var(--text);
}
.plan-features li:last-child { border-bottom: none; }
.plan-features li .icon { color: var(--primary-light); flex-shrink: 0; }
.plan-features li.disabled { color: var(--text-muted); }
.plan-features li.disabled .icon { color: var(--text-muted); }

/* ===== ABOUT PAGE ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-text h2 { font-size: 2rem; font-weight: 800; color: var(--white); margin-bottom: 16px; }
.about-text h2 span { color: var(--primary-light); }
.about-text p { color: var(--text-muted); margin-bottom: 16px; line-height: 1.8; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 48px;
}
.feature-card {
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: border-color 0.2s, transform 0.2s;
}
.feature-card:hover { border-color: var(--primary); transform: translateY(-3px); }
.feature-icon {
  width: 48px; height: 48px;
  background: rgba(0,149,120,0.12);
  border: 1px solid rgba(0,149,120,0.25);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
}
.feature-card h3 { font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: 8px; }
.feature-card p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }

/* ===== CONTACT PAGE ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  align-items: start;
}
.contact-info h2 { font-size: 1.8rem; font-weight: 800; color: var(--white); margin-bottom: 14px; }
.contact-info p { color: var(--text-muted); margin-bottom: 28px; line-height: 1.7; }
.contact-channels { display: flex; flex-direction: column; gap: 14px; }
.contact-channel {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s;
}
.contact-channel:hover { border-color: var(--primary); }
.channel-icon {
  width: 42px; height: 42px;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.channel-icon.telegram { background: rgba(34,158,217,0.15); }
.channel-icon.email { background: rgba(0,149,120,0.15); }
.channel-icon.whatsapp { background: rgba(37,211,102,0.15); }
.channel-label { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 2px; }
.channel-value { font-size: 0.9rem; font-weight: 600; color: var(--white); }

.contact-form {
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: var(--dark-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 11px 14px;
  color: var(--text);
  font-size: 0.9rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,149,120,0.12);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal {
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 480px;
  width: 100%;
  text-align: center;
  transform: scale(0.9);
  transition: transform 0.3s;
  position: relative;
}
.modal-overlay.active .modal { transform: scale(1); }
.modal-close {
  position: absolute; top: 14px; right: 14px;
  width: 30px; height: 30px;
  background: var(--dark-3);
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.modal-close:hover { background: var(--danger); color: white; border-color: var(--danger); }
.modal-icon { font-size: 3rem; margin-bottom: 16px; }
.modal h2 { font-size: 1.5rem; font-weight: 800; color: var(--white); margin-bottom: 12px; }
.modal p { color: var(--text-muted); margin-bottom: 24px; line-height: 1.6; }
.modal-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ===== AUTH MODAL ===== */
.auth-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}
.auth-tab {
  flex: 1;
  padding: 12px;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}
.auth-tab.active { color: var(--primary-light); border-bottom-color: var(--primary); }

/* ===== TICKER ===== */
.ticker-bar {
  background: var(--dark-3);
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
  overflow: hidden;
}
.ticker-inner {
  display: flex;
  gap: 60px;
  animation: ticker 30s linear infinite;
  white-space: nowrap;
  width: max-content;
}
.ticker-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.ticker-item .result { font-weight: 700; }
.ticker-item .won { color: var(--success); }
.ticker-item .lost { color: var(--danger); }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ===== FOOTER ===== */
footer {
  background: var(--dark-2);
  border-top: 1px solid var(--border);
  padding: 48px 20px 24px;
}
.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .nav-logo { margin-bottom: 14px; }
.footer-brand p { color: var(--text-muted); font-size: 0.85rem; line-height: 1.7; margin-bottom: 16px; }
.social-links { display: flex; gap: 8px; flex-wrap: wrap; }
.social-link {
  height: 34px;
  padding: 0 14px;
  background: var(--dark-3);
  border: 1px solid var(--border);
  border-radius: 6px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
}
.social-link:hover { background: var(--primary); border-color: var(--primary); color: white; }
.footer-col h4 { font-size: 0.85rem; font-weight: 700; color: var(--white); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: var(--text-muted); font-size: 0.85rem; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--primary-light); }

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom p { font-size: 0.8rem; color: var(--text-muted); }
.age-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(248,81,73,0.1);
  border: 1px solid rgba(248,81,73,0.3);
  color: var(--danger);
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
}
/* ===== PAGE HEADER ===== */
.page-header {
  background: linear-gradient(135deg, var(--dark) 0%, #0a1f1a 100%);
  padding: 60px 20px 50px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 80% at 50% -20%, rgba(0,149,120,0.12), transparent);
}
.page-header h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; color: var(--white); margin-bottom: 12px; }
.page-header p { color: var(--text-muted); max-width: 520px; margin: 0 auto; font-size: 1rem; }

/* ===== NOTIFICATION TOAST ===== */
.toast {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 9998;
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.35s ease;
  max-width: 360px;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast-icon { font-size: 1.2rem; flex-shrink: 0; }
.toast-msg { font-size: 0.88rem; color: var(--text); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero-inner { flex-direction: column; text-align: center; }
  .hero-text { max-width: 100%; }
  .hero-actions { justify-content: center; }
  .page-header-img, .page-header-trophy { display: none; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .mobile-menu {
    display: none;
    position: absolute; top: 68px; left: 0; right: 0;
    background: var(--dark-2);
    border-bottom: 1px solid var(--border);
    padding: 16px 20px;
    flex-direction: column;
    gap: 4px;
  }
  .mobile-menu.open { display: flex; }
  .mobile-menu a {
    padding: 10px 14px;
    border-radius: var(--radius);
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    display: block;
  }
  .mobile-menu a:hover { background: var(--dark-3); color: var(--white); }
  .mobile-menu .mobile-actions {
    display: flex; gap: 10px; padding-top: 12px; margin-top: 8px;
    border-top: 1px solid var(--border);
  }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .pred-table { font-size: 0.8rem; }
  .pred-table th, .pred-table td { padding: 10px 10px; }
  .pred-table .hide-mobile { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-stats { gap: 24px; }
  .form-row { grid-template-columns: 1fr; }
  .contact-grid, .about-grid { grid-template-columns: 1fr; }
  .nav-telegram { display: none; }
  .vip-teaser { padding: 32px 20px; }
  .modal { padding: 28px 20px; }
}

/* ===== UTILITY ===== */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-24 { margin-bottom: 24px; }
.fw-bold { font-weight: 700; }
.divider { height: 1px; background: var(--border); margin: 32px 0; }


/* ===== THEME TOGGLE BUTTON ===== */
.theme-toggle {
  background: var(--dark-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.2s;
  flex-shrink: 0;
  padding: 0;
}
.theme-toggle:hover {
  background: var(--dark-4);
  color: var(--primary-light);
  border-color: var(--primary);
}
/* Sun shown in dark mode; moon shown in light mode */
.icon-moon { display: none; }
html[data-theme="light"] .icon-sun  { display: none; }
html[data-theme="light"] .icon-moon { display: block; }

/* ===== LIGHT THEME OVERRIDES ===== */

/* Hero always has dark photo background — keep text white */
html[data-theme="light"] .hero h1,
html[data-theme="light"] .hero-text > p { color: #fff; }
html[data-theme="light"] .hero-text > p { color: rgba(255,255,255,0.85); }
html[data-theme="light"] .hero .stat-number { color: var(--accent); }
html[data-theme="light"] .hero .stat-label  { color: rgba(255,255,255,0.75); }
html[data-theme="light"] .hero .btn-outline  {
  color: #fff;
  border-color: rgba(255,255,255,0.55);
}
html[data-theme="light"] .hero .btn-outline:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
}

/* Page headers (VIP, About, Contact) — keep dark gradient so text stays readable */
html[data-theme="light"] .page-header {
  background: linear-gradient(135deg, #0d1117 0%, #0a2a20 100%);
}
html[data-theme="light"] .page-header h1 { color: #fff; }
html[data-theme="light"] .page-header p  { color: rgba(255,255,255,0.7); }

/* Scrollbar track */
html[data-theme="light"] ::-webkit-scrollbar-track { background: var(--dark-3); }

/* Ghost button readable on light backgrounds */
html[data-theme="light"] .btn-ghost {
  color: var(--text);
  border-color: var(--border);
}
html[data-theme="light"] .btn-ghost:hover {
  background: var(--dark-4);
  color: var(--white);
}

/* Nav logo stays legible — "Klink" dark, "Predict" green */
html[data-theme="light"] .nav-logo { color: var(--white); }

/* Ticker bar subtle border */
html[data-theme="light"] .ticker-bar { border-bottom-color: var(--border); }

/* Table header */
html[data-theme="light"] .pred-table th {
  background: var(--dark-3);
  color: var(--text-muted);
}

/* Panel / card shadows */
html[data-theme="light"] .table-card,
html[data-theme="light"] .section-card,
html[data-theme="light"] .stat-card {
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
}
