/* =============================================================
   Rooted Predictions — Global Design System
   "Precision Tips. Global Reach. Real Results."
   ============================================================= */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;600;700;800;900&family=Inter:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/icon?family=Material+Icons+Round');

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
  --navy:       #0B2A1A;
  --red:        #E74C3C;
  --midnight:   #0D3D22;
  --surface:    #F5F5F0;
  --white:      #FFFFFF;
  --muted:      #6B7280;
  --green:      #1A8A44;
  --yellow:     #D4A017;
  --border:     #E5E7EB;
  --card-bg:    #FFFFFF;
  --page-bg:    #F5F5F0;
  --text:       #0B2A1A;
  --text-soft:  #4B5563;
  --header-bg:  #0B2A1A;
  --nav-border: rgba(255,255,255,0.08);
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.08);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg:  0 8px 32px rgba(0,0,0,0.14);
  --radius:     10px;
  --radius-lg:  16px;
  --font-head:  'Barlow Condensed', sans-serif;
  --font-body:  'Inter', sans-serif;
  --transition: 0.2s ease;
}

[data-theme="dark"] {
  --surface:    #111827;
  --card-bg:    #1F2937;
  --page-bg:    #111827;
  --text:       #F9FAFB;
  --text-soft:  #9CA3AF;
  --border:     #374151;
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.3);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.4);
  --shadow-lg:  0 8px 32px rgba(0,0,0,0.5);
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--page-bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  transition: background var(--transition), color var(--transition);
}

/* ── Content Protection ─────────────────────────────────────── */
body, p, h1, h2, h3, h4, h5, h6, span, div, article, section, li, td, th, a {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
/* Exempt form elements */
input, textarea, select, [contenteditable] {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

/* ── Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  color: var(--text);
}
a { color: var(--green); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--midnight); }
img { max-width: 100%; display: block; }

/* ── Layout ─────────────────────────────────────────────────── */
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }

/* ── HEADER ─────────────────────────────────────────────────── */
.site-header {
  background: var(--header-bg);
  border-bottom: 1px solid var(--nav-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}
.site-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.site-logo-img {
  height: 44px;
  width: auto;
  display: block;
  /* Slight brightness boost so logo pops on dark headers */
  filter: brightness(1.05);
}
/* Keep .logo-mark for any remaining admin/standalone references */
.logo-mark {
  background: var(--green);
  color: #fff;
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  padding: 6px 10px;
  border-radius: 6px;
  line-height: 1;
}
.logo-text {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.06em;
}
.logo-text span { color: var(--red); }

/* ── Main Nav ───────────────────────────────────────────────── */
.main-nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
  color: rgba(255,255,255,0.75);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 6px;
  transition: all var(--transition);
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
  color: #fff;
  background: rgba(255,255,255,0.1);
}
.nav-link.active { color: var(--yellow); }

/* ── Header CTA ─────────────────────────────────────────────── */
.header-actions { display: flex; align-items: center; gap: 8px; }
.btn-telegram {
  background: #26A5E4;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 8px 14px;
  border-radius: 6px;
  transition: all var(--transition);
  border: none;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
}
.btn-telegram:hover { background: #1a94d1; color: #fff; transform: translateY(-1px); }
.btn-telegram svg { width: 15px; height: 15px; flex-shrink: 0; }
.btn-login {
  color: rgba(255,255,255,0.75);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.15);
  transition: all var(--transition);
}
.btn-login:hover { color: #fff; border-color: rgba(255,255,255,0.4); }
.btn-join {
  background: var(--green);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 6px;
  border: 1px solid var(--green);
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
}
.btn-join:hover { background: var(--midnight); border-color: var(--midnight); color: #fff; transform: translateY(-1px); }

/* ── Dark mode toggle ───────────────────────────────────────── */
.theme-toggle {
  background: rgba(255,255,255,0.1);
  border: none;
  color: rgba(255,255,255,0.75);
  width: 36px;
  height: 36px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  flex-shrink: 0;
}
.theme-toggle:hover { background: rgba(255,255,255,0.2); color: #fff; }
.theme-toggle .material-icons-round { font-size: 1.1rem; }

/* ── Mobile nav toggle ──────────────────────────────────────── */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: rgba(255,255,255,0.75);
  cursor: pointer;
  padding: 6px;
}
.nav-toggle .material-icons-round { font-size: 1.5rem; }

/* ── HERO ─────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--midnight) 60%, #071a0e 100%);
  color: #fff;
  padding: 60px 0 48px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 50%, rgba(26,138,68,0.15) 0%, transparent 70%),
    repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(255,255,255,0.02) 40px),
    repeating-linear-gradient(90deg, transparent, transparent 39px, rgba(255,255,255,0.02) 40px);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; }
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(26,138,68,0.18);
  border: 1px solid rgba(26,138,68,0.35);
  color: #4ade80;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 20px;
}
.hero-tag .material-icons-round { font-size: 0.9rem; }
.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 900;
  letter-spacing: 0.03em;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 16px;
}
.hero h1 em { color: var(--yellow); font-style: normal; }
.hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.65);
  max-width: 560px;
  margin-bottom: 32px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ── Stats bar ──────────────────────────────────────────────── */
.stats-bar {
  background: var(--midnight);
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 14px 0;
}
.stats-inner {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 12px;
}
.stat-item { text-align: center; }
.stat-value {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--yellow);
  line-height: 1;
}
.stat-label {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 2px;
}
.stat-divider { width: 1px; height: 32px; background: rgba(255,255,255,0.1); }

/* ── BUTTONS ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  text-decoration: none;
  white-space: nowrap;
}
.btn .material-icons-round { font-size: 1.1rem; }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: #157a3a; color: #fff; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(26,138,68,0.35); }
.btn-secondary { background: rgba(255,255,255,0.1); color: #fff; border: 1px solid rgba(255,255,255,0.2); }
.btn-secondary:hover { background: rgba(255,255,255,0.18); color: #fff; }
.btn-outline { background: transparent; color: var(--green); border: 2px solid var(--green); }
.btn-outline:hover { background: var(--green); color: #fff; }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--midnight); color: #fff; }
.btn-sm { padding: 8px 16px; font-size: 0.8rem; }
.btn-lg { padding: 16px 32px; font-size: 1rem; }

/* ── CARDS ──────────────────────────────────────────────────── */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
  overflow: hidden;
}
.card:hover { box-shadow: var(--shadow-md); }

/* ── Prediction Card ────────────────────────────────────────── */
.pred-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  position: relative;
}
.pred-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.pred-card.featured-card { border-color: rgba(26,138,68,0.35); }
.pred-card.featured-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green), #4ade80);
}

.pred-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  gap: 8px;
}
.pred-league {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.league-logo {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
}
.league-flag {
  width: 18px;
  height: 13px;
  border-radius: 2px;
  object-fit: cover;
  flex-shrink: 0;
}
.league-name {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pred-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
}
.badge-free  { background: rgba(26,138,68,0.12); color: var(--green); }
.badge-won   { background: rgba(26,138,68,0.15); color: var(--green); }
.badge-lost  { background: rgba(231,76,60,0.12); color: var(--red); }
.badge-pending { background: rgba(109,122,128,0.12); color: var(--muted); }
.badge-strong { background: rgba(212,160,23,0.15); color: var(--yellow); border: 1px solid rgba(212,160,23,0.3); }
.badge .material-icons-round { font-size: 0.7rem; }

.pred-card-body { padding: 16px; }
.pred-teams {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.pred-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
}
.team-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
}
.team-logo-placeholder {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}
.team-logo-placeholder .material-icons-round { font-size: 1.2rem; color: var(--muted); }
.team-name {
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
  color: var(--text);
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.vs-divider {
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--muted);
  flex-shrink: 0;
  text-align: center;
}
.vs-time {
  font-size: 0.7rem;
  color: var(--muted);
  font-weight: 400;
  font-family: var(--font-body);
  display: block;
}

.pred-tip-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  background: var(--surface);
  border-radius: var(--radius);
  margin-bottom: 10px;
}
.tip-label {
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}
.tip-value {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 0.03em;
}
.tip-odds {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-soft);
}

/* ── Confidence Bar ─────────────────────────────────────────── */
.confidence-bar-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.confidence-label { font-size: 0.72rem; color: var(--muted); flex-shrink: 0; }
.confidence-track {
  flex: 1;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}
.confidence-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 1s ease;
}
.confidence-fill.high   { background: linear-gradient(90deg, var(--green), #22c55e); }
.confidence-fill.medium { background: linear-gradient(90deg, var(--yellow), #f59e0b); }
.confidence-fill.low    { background: linear-gradient(90deg, var(--red), #f87171); }
.confidence-pct { font-size: 0.78rem; font-weight: 700; color: var(--text); flex-shrink: 0; }

/* ── VIP lock overlay ───────────────────────────────────────── */
.vip-lock-overlay {
  position: relative;
}
.vip-lock-overlay .lock-blur {
  filter: blur(4px);
  pointer-events: none;
  user-select: none;
}
.vip-unlock-cta {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(26,26,46,0.7);
  border-radius: var(--radius);
  padding: 16px;
}
.vip-unlock-cta .material-icons-round { font-size: 1.8rem; color: var(--red); }
.vip-unlock-cta p { font-size: 0.8rem; color: rgba(255,255,255,0.85); text-align: center; }

/* ── Affiliate strip ────────────────────────────────────────── */
.affiliate-strip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.affiliate-label {
  font-size: 0.68rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.affiliate-links { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.affiliate-link {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-soft);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 3px 8px;
  transition: all var(--transition);
  text-decoration: none;
}
.affiliate-link:hover { color: var(--green); border-color: var(--green); }

/* ── Market filter tabs ─────────────────────────────────────── */
.market-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.market-tabs::-webkit-scrollbar { display: none; }
.market-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--text-soft);
  flex-shrink: 0;
}
.market-tab:hover { border-color: var(--green); color: var(--green); }
.market-tab.active {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.market-tab .tab-count {
  background: rgba(255,255,255,0.2);
  border-radius: 10px;
  font-size: 0.7rem;
  padding: 1px 6px;
  font-weight: 700;
}
.market-tab:not(.active) .tab-count { background: var(--surface); color: var(--muted); }

/* ── League Filter Dropdown ─────────────────────────────────── */
.league-filter-wrap { position: relative; }
.league-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card-bg);
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  font-family: var(--font-body);
}
.league-filter-btn:hover { border-color: var(--green); }
.league-filter-btn .material-icons-round { font-size: 1.1rem; color: var(--muted); }
.league-filter-btn .chevron { font-size: 1rem; transition: transform var(--transition); }
.league-filter-btn[aria-expanded="true"] .chevron { transform: rotate(180deg); }

.league-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 320px;
  max-height: 480px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 500;
  display: none;
  flex-direction: column;
  overflow: hidden;
}
.league-dropdown.open { display: flex; }

.league-search-wrap {
  padding: 10px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.league-search {
  width: 100%;
  padding: 8px 12px 8px 36px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  font-size: 0.85rem;
  color: var(--text);
  font-family: var(--font-body);
  outline: none;
  -webkit-user-select: text !important;
  user-select: text !important;
}
.league-search:focus { border-color: var(--green); }
.league-search-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  color: var(--muted);
  pointer-events: none;
}

.league-list {
  overflow-y: auto;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.league-group-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 8px 12px 4px;
  position: sticky;
  top: 0;
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 6px;
}
.league-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  cursor: pointer;
  transition: background var(--transition);
  font-size: 0.85rem;
  color: var(--text);
}
.league-option:hover { background: var(--surface); }
.league-option.selected { background: rgba(26,138,68,0.08); color: var(--green); font-weight: 600; }
.league-option-logo {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
}

/* ── Filters bar (predictions page) ────────────────────────── */
.filters-bar {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.filters-row-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.filters-selects {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  flex: 1;
}
.filters-selects .form-control {
  width: auto;
  padding: 9px 14px;
  flex: 1;
  min-width: 120px;
}

/* ── Section filters wrap (homepage) ───────────────────────── */
.section-filters-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}
.section-filters-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ── Date picker row ────────────────────────────────────────── */
.date-nav-wrap {
  width: 100%;
  overflow: hidden;
}
.date-nav {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
  width: 100%;
}
.date-nav::-webkit-scrollbar { display: none; }
.date-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition);
  border: 1px solid var(--border);
  background: var(--card-bg);
  min-width: 58px;
  flex: 0 0 auto;
}
.date-btn .day-name { font-size: 0.68rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; white-space: nowrap; }
.date-btn .day-num  { font-family: var(--font-head); font-size: 1.2rem; font-weight: 700; color: var(--text); }
.date-btn:hover { border-color: var(--red); }
.date-btn.active { background: var(--navy); border-color: var(--navy); }
.date-btn.active .day-name { color: rgba(255,255,255,0.6); }
.date-btn.active .day-num  { color: #fff; }

/* ── FOOTER ─────────────────────────────────────────────────── */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  margin-top: 64px;
}
.footer-top {
  padding: 48px 0 32px;
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand p { font-size: 0.875rem; line-height: 1.7; margin-top: 12px; color: rgba(255,255,255,0.55); max-width: 280px; }
.footer-col h4 {
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 14px;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { font-size: 0.85rem; color: rgba(255,255,255,0.55); transition: color var(--transition); }
.footer-links a:hover { color: var(--yellow); }

.footer-bottom {
  padding: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom p { font-size: 0.78rem; color: rgba(255,255,255,0.4); }
.gambling-notice {
  background: rgba(233,69,96,0.08);
  border: 1px solid rgba(233,69,96,0.2);
  border-radius: 6px;
  padding: 10px 16px;
  margin-bottom: 16px;
}
.gambling-notice p { font-size: 0.78rem; color: rgba(255,255,255,0.5); line-height: 1.6; }
.gambling-notice strong { color: var(--red); }

/* ── SECTIONS ────────────────────────────────────────────────── */
.section { padding: 48px 0; }
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}
.section-title {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: 0.03em;
}
.section-title span { color: var(--green); }

/* ── AdSense slots ──────────────────────────────────────────── */
/* AdSense slot — below header */
.ad-slot-header {
  width: 100%;
  min-height: 90px;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 16px 0;
}
/* AdSense slot — between prediction cards */
.ad-slot-inline {
  width: 100%;
  min-height: 250px;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 16px 0;
}
/* AdSense slot — sidebar */
.ad-slot-sidebar {
  width: 100%;
  min-height: 600px;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
/* AdSense slot — above footer */
.ad-slot-footer {
  width: 100%;
  min-height: 90px;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 32px;
}

/* ── Sidebar layout ─────────────────────────────────────────── */
.page-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 28px;
  align-items: start;
}
.sidebar { display: flex; flex-direction: column; gap: 20px; }
.sidebar-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.sidebar-card-header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.sidebar-card-header .material-icons-round { color: var(--green); font-size: 1.1rem; }
.sidebar-card-body { padding: 12px 16px; }

/* ── Forms ──────────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.form-control {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card-bg);
  color: var(--text);
  font-size: 0.9rem;
  font-family: var(--font-body);
  transition: border-color var(--transition);
  outline: none;
  -webkit-user-select: text !important;
  user-select: text !important;
}
.form-control:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(26,138,68,0.1); }
.form-control::placeholder { color: var(--muted); }
.input-icon-wrap { position: relative; }
.input-icon-wrap .form-control { padding-left: 40px; }
.input-icon-wrap .material-icons-round {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.1rem;
  color: var(--muted);
  pointer-events: none;
}

/* ── Auth card ──────────────────────────────────────────────── */
.auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--midnight) 100%);
  padding: 24px;
}
.auth-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 40px;
  width: 100%;
  max-width: 460px;
  box-shadow: var(--shadow-lg);
}
.auth-logo { text-align: center; margin-bottom: 28px; }
.auth-title { font-family: var(--font-head); font-size: 1.8rem; font-weight: 800; color: var(--text); margin-bottom: 6px; text-align: center; }
.auth-sub { font-size: 0.875rem; color: var(--muted); text-align: center; margin-bottom: 28px; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.auth-divider span { font-size: 0.78rem; color: var(--muted); }
.auth-footer { text-align: center; margin-top: 24px; font-size: 0.875rem; color: var(--muted); }
.auth-footer a { color: var(--green); font-weight: 600; }

/* ── Pricing ────────────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.pricing-card {
  background: var(--card-bg);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: all var(--transition);
  position: relative;
}
.pricing-card.featured {
  border-color: var(--red);
  transform: scale(1.04);
  box-shadow: var(--shadow-lg);
}
.pricing-popular {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--red);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 20px;
  white-space: nowrap;
}
.pricing-plan-name { font-family: var(--font-head); font-size: 1.1rem; font-weight: 700; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 16px; }
.pricing-price { font-family: var(--font-head); font-size: 3rem; font-weight: 900; color: var(--text); line-height: 1; }
.pricing-price sup { font-size: 1.4rem; vertical-align: top; margin-top: 8px; }
.pricing-period { font-size: 0.85rem; color: var(--muted); margin: 4px 0 20px; }
.pricing-save { font-size: 0.78rem; font-weight: 700; color: var(--green); margin-bottom: 20px; }
.pricing-features { list-style: none; text-align: left; margin-bottom: 28px; }
.pricing-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-soft);
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}
.pricing-features li:last-child { border-bottom: none; }
.pricing-features .material-icons-round { font-size: 1rem; color: var(--green); flex-shrink: 0; }
.trial-note { font-size: 0.78rem; color: var(--muted); margin-top: 10px; }

/* ── Blog ───────────────────────────────────────────────────── */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.blog-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: all var(--transition); }
.blog-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.blog-card img { width: 100%; height: 180px; object-fit: cover; }
.blog-card-body { padding: 20px; }
.blog-category { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green); margin-bottom: 8px; }
.blog-card-title { font-family: var(--font-head); font-size: 1.1rem; font-weight: 700; color: var(--text); margin-bottom: 8px; line-height: 1.3; }
.blog-card-excerpt { font-size: 0.85rem; color: var(--muted); line-height: 1.6; margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.blog-card-meta { font-size: 0.75rem; color: var(--muted); display: flex; align-items: center; gap: 12px; }
.blog-card-meta .material-icons-round { font-size: 0.9rem; }

/* ── Leaderboard ────────────────────────────────────────────── */
.leaderboard-table { width: 100%; border-collapse: collapse; }
.leaderboard-table th {
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 10px 16px;
  background: var(--surface);
  border-bottom: 2px solid var(--border);
}
.leaderboard-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--text);
}
.leaderboard-table tr:hover td { background: var(--surface); }
.rank-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.85rem;
}
.rank-1 { background: #FFD700; color: #333; }
.rank-2 { background: #C0C0C0; color: #333; }
.rank-3 { background: #CD7F32; color: #fff; }
.rank-other { background: var(--surface); color: var(--muted); border: 1px solid var(--border); }

/* ── Live ticker ────────────────────────────────────────────── */
.ticker-wrap {
  background: var(--midnight);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  overflow: hidden;
  height: 36px;
  display: flex;
  align-items: center;
}
.ticker-label {
  background: var(--green);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0 14px;
  height: 100%;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 4px;
}
.ticker-label .material-icons-round { font-size: 0.85rem; }
.ticker-track {
  display: flex;
  gap: 40px;
  animation: ticker 30s linear infinite;
  white-space: nowrap;
  padding-left: 24px;
}
.ticker-item { font-size: 0.78rem; color: rgba(255,255,255,0.7); display: flex; align-items: center; gap: 8px; }
.ticker-item .score { color: #fff; font-weight: 700; }
.ticker-item .live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red); animation: pulse 1s infinite; }
.live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--red); animation: pulse 1s infinite; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

/* ── Utilities ──────────────────────────────────────────────── */
.text-red    { color: var(--red) !important; }
.text-green  { color: var(--green) !important; }
.text-muted  { color: var(--muted) !important; }
.text-center { text-align: center; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.flex   { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }

/* ── RESPONSIVE ─────────────────────────────────────────────── */

/* Tablet */
@media (max-width: 1024px) {
  .page-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .pricing-card.featured { transform: scale(1); }
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
}

/* Mobile — 768px and below */
@media (max-width: 768px) {
  /* ── Base ── */
  html { font-size: 15px; }
  .container { padding: 0 16px; }
  .section { padding: 32px 0; }

  /* ── Header ── */
  .header-inner { height: 58px; gap: 8px; }
  .logo-text { font-size: 1.2rem; }
  .logo-mark { font-size: 1rem; padding: 5px 8px; }
  .main-nav {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 58px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--navy);
    padding: 16px;
    border-top: 1px solid var(--nav-border);
    overflow-y: auto;
    z-index: 999;
  }
  .main-nav.open { display: flex; }
  .nav-link {
    padding: 14px 16px;
    font-size: 1rem;
    border-radius: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .nav-link:last-child { border-bottom: none; }
  .nav-toggle { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; }
  /* Keep Login + Join visible on mobile; drop the redundant Telegram button (it's a CTA in the hero) */
  .header-actions .btn-telegram { display: none; }
  .header-actions .btn-login { padding: 7px 11px; font-size: 0.8rem; }
  .header-actions .btn-join  { padding: 7px 12px; font-size: 0.8rem; }
  .header-actions .btn-vip { padding: 7px 12px; font-size: 0.75rem; }

  /* ── Hero ── */
  .hero { padding: 32px 0 28px; }
  .hero h1 { font-size: clamp(1.9rem, 8vw, 2.8rem); }
  .hero-sub { font-size: 0.95rem; margin-bottom: 24px; }
  /* Single-column: text + buttons first, then stacked cards */
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  /* Four stat cards stacked vertically, 10px gap */
  .hero-stats { grid-template-columns: 1fr; gap: 10px; }
  /* Primary (Create Account) full-width on top; Log In + Telegram share the row below */
  .hero-cta { flex-wrap: wrap; gap: 10px; }
  .hero-cta .btn { padding: 11px 14px; font-size: 0.8rem; }
  .hero-cta .btn-primary   { flex: 1 1 100%; }
  .hero-cta .btn-secondary { flex: 1 1 calc(50% - 5px); }
  .hero-cta .btn .material-icons-round, .hero-cta .btn svg { font-size: 1rem; width: 16px; height: 16px; }

  /* ── Stats bar ── */
  .stats-inner { gap: 0; justify-content: space-between; }
  .stat-item { flex: 1; }
  .stat-value { font-size: 1.3rem; }
  .stat-label { font-size: 0.65rem; }
  .stat-divider { display: none; }

  /* ── Prediction cards ── */
  .pred-card-header { padding: 10px 12px; }
  .pred-card-body { padding: 12px; }
  .team-logo { width: 36px; height: 36px; }
  .team-logo-placeholder { width: 36px; height: 36px; }
  .team-name { font-size: 0.78rem; }
  .pred-teams { gap: 8px; margin-bottom: 10px; }

  /* ── Grids ── */
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; gap: 16px; }
  .blog-grid { grid-template-columns: 1fr; }

  /* ── Section headers ── */
  .section-header { flex-direction: column; align-items: flex-start; gap: 10px; }
  .section-title { font-size: 1.4rem; }

  /* ── Tabs & filters ── */
  .market-tabs { gap: 6px; padding-bottom: 6px; }
  .market-tab { padding: 8px 12px; font-size: 0.78rem; }

  /* ── Date nav — full width scrollable row ── */
  .date-nav-wrap { width: 100%; overflow: hidden; }
  .date-nav { width: 100%; gap: 5px; }
  .date-btn { min-width: 50px; padding: 7px 8px; }
  .date-btn .day-num { font-size: 1rem; }
  .date-btn .day-name { font-size: 0.6rem; }

  /* ── Filter rows that contain date-nav — stack vertically ── */
  .filters-row {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
  }
  .filters-row .date-nav-wrap,
  .filters-row [style*="flex:1"],
  .filters-row [style*="flex: 1"] { width: 100%; flex: none !important; }

  /* ── League dropdown ── */
  .league-dropdown {
    width: calc(100vw - 32px);
    left: 50%;
    transform: translateX(-50%);
    max-height: 60vh;
  }

  /* ── Pricing ── */
  .pricing-grid { max-width: 100%; }
  .pricing-card { padding: 24px 20px; }
  .pricing-price { font-size: 2.4rem; }

  /* ── Blog ── */
  .blog-card img { height: 160px; }
  .blog-card-body { padding: 16px; }

  /* ── Auth ── */
  .auth-wrap { padding: 16px; align-items: flex-start; padding-top: 40px; }
  .auth-card { padding: 24px 20px; }
  .auth-title { font-size: 1.5rem; }

  /* ── Leaderboard table ── */
  .leaderboard-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* ── Footer ── */
  .footer-top { grid-template-columns: 1fr; gap: 20px; padding: 32px 0 24px; }
  .footer-brand p { max-width: 100%; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 6px; }

  /* ── Buttons ── */
  .btn { padding: 12px 20px; }
  .btn-lg { padding: 14px 24px; font-size: 0.95rem; }

  /* ── Ticker ── */
  .ticker-wrap { height: 32px; }
  .ticker-label { padding: 0 10px; font-size: 0.65rem; }
  .ticker-item { font-size: 0.72rem; }

  /* ── Ads ── */
  .ad-slot-header { min-height: 60px; }
  .ad-slot-sidebar { display: none; }
}

/* Small mobile — 480px and below */
@media (max-width: 480px) {
  html { font-size: 14px; }
  .container { padding: 0 12px; }

  /* ── Header ── */
  .header-inner { height: 54px; }
  .logo-text { display: none; }

  /* ── Hero ── */
  .hero { padding: 24px 0 20px; }
  .hero h1 { font-size: clamp(1.7rem, 9vw, 2.2rem); }
  .hero-sub { font-size: 0.875rem; }
  /* Primary full-width; Log In + Telegram side by side below, slightly smaller */
  .hero-cta { flex-direction: row; flex-wrap: wrap; align-items: stretch; gap: 8px; }
  .hero-cta .btn { width: auto; justify-content: center; padding: 11px 10px; font-size: 0.78rem; }
  .hero-cta .btn-primary   { flex: 1 1 100%; }
  .hero-cta .btn-secondary { flex: 1 1 calc(50% - 4px); }

  /* ── Stats ── */
  .stat-value { font-size: 1.15rem; }
  .stat-label { font-size: 0.6rem; }

  /* ── Cards ── */
  .pred-card-header { flex-wrap: wrap; }
  .pred-meta { width: 100%; justify-content: flex-end; margin-top: 4px; }
  .team-logo { width: 32px; height: 32px; }
  .team-logo-placeholder { width: 32px; height: 32px; }

  /* ── Pricing ── */
  .pricing-price { font-size: 2rem; }
  .pricing-features li { font-size: 0.82rem; }

  /* ── Auth ── */
  .auth-card { padding: 20px 16px; }

  /* ── Section title ── */
  .section-title { font-size: 1.25rem; }

  /* ── Tabs ── */
  .market-tab { padding: 7px 10px; font-size: 0.75rem; }

  /* ── Footer ── */
  .footer-col h4 { font-size: 0.85rem; }
  .footer-links a { font-size: 0.8rem; }
}
