/* ─── SHARED + FALLBACK VARIABLES ─── */
:root {
  --blue: #3a55de;
  --blue-dark: #2a3fb0;
  --blue-deeper: #1b2a80;
  --blue-light: #eef1fd;
  --blue-mid: #c7cffa;
  --gold: #f5a623;
  --gold-light: #fff8ec;
  --green: #1db954;
  --green-light: #e8f8ee;
  --red: #e64040;
  --red-light: #fdf0f0;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 2px 12px rgba(58,85,222,0.07);
  --shadow-md: 0 4px 24px rgba(58,85,222,0.12);
  --text: #0f1117;
  --text-muted: #5a6075;
  --text-light: #9399b0;
  --border: #e4e7f2;
  --surface: #f8f9fe;
  --white: #ffffff;
  --bg: #f4f6fe;
  --nav-bg: #ffffff;
  --card-bg: #ffffff;
  --topbar-bg: #1b2a80;
  --topbar-text: #b8c3ff;
  --footer-bg: #1b2a80;
  --footer-text: rgba(255,255,255,.7);
  --mobile-nav-bg: #ffffff;
  --mobile-nav-border: #e4e7f2;
}

[data-theme="light"] {
  --text: #0f1117;
  --text-muted: #5a6075;
  --text-light: #9399b0;
  --border: #e4e7f2;
  --surface: #f8f9fe;
  --white: #ffffff;
  --bg: #f4f6fe;
  --nav-bg: #ffffff;
  --card-bg: #ffffff;
  --topbar-bg: #1b2a80;
  --topbar-text: #b8c3ff;
  --footer-bg: #1b2a80;
  --footer-text: rgba(255,255,255,.7);
  --mobile-nav-bg: #ffffff;
  --mobile-nav-border: #e4e7f2;
}

[data-theme="dark"] {
  --text: #e8ecff;
  --text-muted: #9aa0c0;
  --text-light: #6068a0;
  --border: #2a3060;
  --surface: #181e3a;
  --white: #1e2545;
  --bg: #111628;
  --nav-bg: #161d3c;
  --card-bg: #1e2545;
  --topbar-bg: #0d1428;
  --topbar-text: #8899dd;
  --footer-bg: #0d1428;
  --footer-text: rgba(200,210,255,.6);
  --mobile-nav-bg: #161d3c;
  --mobile-nav-border: #2a3060;
  --blue-light: #1e2a60;
  --blue-mid: #2a3880;
  --green-light: #0d2818;
  --red-light: #2a1010;
  --gold-light: #2a1e00;
  --surface: #1a2040;
  --shadow: 0 2px 12px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 24px rgba(0,0,0,0.4);
}

/* ─── RESET & BASE ─── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
  transition: background .3s, color .3s;
  min-height: 100vh;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}
a { color: inherit; text-decoration: none }
img { max-width: 100%; height: auto; display: block }

/* ─── TOP BAR ─── */
.topbar {
  background: var(--topbar-bg);
  color: var(--topbar-text);
  font-size: 11px;
  text-align: center;
  padding: 5px 16px;
  letter-spacing: .3px;
  width: 100%;
  overflow: hidden;
}
.topbar a { color: #ffd; font-weight: 600 }

/* ─── NAV ─── */
nav.main-nav {
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
  transition: background .3s, border-color .3s;
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 54px;
}
.logo { display:flex; align-items:center; gap:8px }
.logo-mark {
  width: 30px; height: 30px;
  background: var(--blue);
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.logo-mark svg { width:16px; height:16px; fill:white }
.logo-text {
  font-family: 'Sora', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: -.3px;
}
.logo-text span { color: var(--text-muted); font-weight: 400 }
.nav-links { display: flex; gap: 2px }
.nav-links a {
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-muted);
  transition: .15s;
}
.nav-links a:hover, .nav-links a.active {
  background: var(--blue-light);
  color: var(--blue);
}
.nav-right { display:flex; align-items:center; gap:8px }
.nav-cta {
  background: var(--blue);
  color: white;
  padding: 6px 13px;
  border-radius: 7px;
  font-size: 12.5px;
  font-weight: 600;
  transition: .15s;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--blue-dark); color: white }

.theme-toggle {
  width: 38px; height: 20px;
  background: var(--border);
  border-radius: 10px;
  border: none;
  cursor: pointer;
  position: relative;
  transition: background .3s;
  flex-shrink: 0;
}
.theme-toggle::after {
  content: '';
  position: absolute;
  top: 2px; left: 2px;
  width: 16px; height: 16px;
  background: var(--blue);
  border-radius: 50%;
  transition: transform .3s;
}
[data-theme="dark"] .theme-toggle::after { transform: translateX(18px) }

/* ─── HERO ─── */
.hero {
  background: linear-gradient(135deg, var(--blue-deeper) 0%, var(--blue) 60%, #5a66ee 100%);
  padding: 32px 0 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
  width: 100%;
}
[data-theme="dark"] .hero {
  background: linear-gradient(135deg, #0d1530 0%, #1b2a80 60%, #2a3ab0 100%);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='20'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
  pointer-events: none;
}
.hero-inner {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  padding: 0 20px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 20px;
  padding: 3px 12px;
  font-size: 11px;
  color: rgba(255,255,255,.9);
  margin-bottom: 14px;
}
.hero h1 {
  font-family: 'Sora', sans-serif;
  font-size: clamp(19px, 3.5vw, 30px);
  font-weight: 700;
  color: white;
  line-height: 1.25;
  margin-bottom: 12px;
  letter-spacing: -.3px;
}
.hero h1 em { font-style: normal; color: #ffd76a }
.hero-description {
  color: rgba(255,255,255,.82);
  font-size: 13.5px;
  margin-bottom: 20px;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.65;
}
.hero-description strong { color: #ffd76a; font-weight: 600 }
.hero-cta-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.hero-btn-primary {
  background: #ffd76a;
  color: #1b2a80;
  padding: 9px 20px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  transition: .2s;
}
.hero-btn-primary:hover { background: #ffe799 }
.hero-btn-secondary {
  background: rgba(255,255,255,.15);
  color: white;
  border: 1px solid rgba(255,255,255,.3);
  padding: 9px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  transition: .2s;
}
.hero-btn-secondary:hover { background: rgba(255,255,255,.25) }
.hero-stats { display:flex; justify-content:center; gap:24px; flex-wrap:wrap }
.hero-stat { text-align: center }
.hero-stat-num {
  font-family: 'Sora', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: white;
}
.hero-stat-label {
  font-size: 10px;
  color: rgba(255,255,255,.6);
  text-transform: uppercase;
  letter-spacing: .8px;
  margin-top: 1px;
}
.hero-stat-divider { width:1px; background:rgba(255,255,255,.15); align-self:stretch }

/* ─── TABS ─── */
.tabs-section {
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border);
  transition: background .3s;
  width: 100%;
  overflow: hidden;
}
.tabs-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  gap: 2px;
  overflow-x: auto;
  padding-top: 6px;
  padding-bottom: 0;
  scrollbar-width: none;
}
.tabs-inner::-webkit-scrollbar { display: none }
.tab-btn {
  white-space: nowrap;
  padding: 8px 14px;
  border: none;
  background: transparent;
  font-family: 'DM Sans', sans-serif;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: .15s;
  margin-bottom: -1px;
}
.tab-btn.active { color: var(--blue); border-bottom-color: var(--blue); font-weight: 600 }
.tab-btn:hover { color: var(--blue) }

/* ─── MAIN LAYOUT ─── */
.main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 16px;
  width: 100%;
  box-sizing: border-box;
}

/* ─── SECTION TITLES ─── */
.section-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:12px }
.section-title {
  font-family: 'Sora', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 7px;
}
.section-title::before {
  content: '';
  width: 3px; height: 15px;
  background: var(--blue);
  border-radius: 2px;
  display: block;
}
.section-link { font-size: 11.5px; color: var(--blue); font-weight: 500 }

/* ─── POPULAR TIPS HORIZONTAL SCROLL ─── */
.popular-scroll-wrap { margin-bottom: 22px; overflow: hidden; max-width: 100% }
.popular-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  max-width: 100%;
}
.popular-scroll::-webkit-scrollbar { display: none }
.popular-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 13px 12px;
  min-width: 165px;
  max-width: 180px;
  flex-shrink: 0;
  scroll-snap-align: start;
  transition: .2s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.popular-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--blue-mid);
  transform: translateY(-2px);
}
.pc-date {
  font-size: 10px;
  color: var(--text-light);
  font-weight: 600;
  text-align: center;
  margin-bottom: 10px;
  background: var(--surface);
  border-radius: 5px;
  padding: 3px 8px;
  width: 100%;
}
.pc-teams {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
  width: 100%;
}
.pc-team-logo {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--border);
  padding: 3px;
  object-fit: contain;
  flex-shrink: 0;
}
.pc-vs {
  font-size: 9px;
  font-weight: 700;
  color: var(--text-light);
  background: var(--surface);
  border-radius: 4px;
  padding: 2px 6px;
  border: 1px solid var(--border);
}
.pc-names {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 10px;
  gap: 5px;
}
.pc-team-name {
  font-size: 10px;
  font-weight: 600;
  color: var(--text);
  text-align: center;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.3;
}
.pc-names .pc-sep { font-size: 9px; color: var(--text-light); font-weight: 400; flex-shrink: 0 }
.pc-tip {
  background: var(--blue);
  color: white;
  border-radius: 7px;
  padding: 7px 10px;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  width: 100%;
  line-height: 1.4;
}
.pc-tip .tip-label { font-size: 11px; font-weight: 700; display: block }
.pc-tip .tip-prob {
  font-weight: 400;
  color: rgba(255,255,255,.75);
  font-size: 9.5px;
  display: block;
  margin-top: 1px;
}
.scroll-dots { display:flex; justify-content:center; gap:5px; margin-top:6px }
.scroll-dot { width:6px; height:6px; border-radius:50%; background:var(--border); transition:.2s }
.scroll-dot.active { background:var(--blue); width:18px; border-radius:3px }

/* ─── ACCUMULATOR ─── */
.accu-section { margin-bottom: 22px }
.accu-grid { display:grid; grid-template-columns:1fr 1fr; gap:14px; width:100% }
@media(max-width:720px) { .accu-grid { grid-template-columns:1fr } }
.accu-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: background .3s, border-color .3s;
  min-width: 0;
}
.accu-header {
  background: linear-gradient(90deg, var(--blue-deeper), var(--blue));
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
[data-theme="dark"] .accu-header { background: linear-gradient(90deg, #0d1428, #1b2a80) }
.accu-title { font-family:'Sora',sans-serif; font-size:12px; font-weight:600; color:white }
.accu-total { font-family:'Sora',sans-serif; font-size:17px; font-weight:700; color:#ffd76a }
.accu-total-label { font-size:10px; color:rgba(255,255,255,.7); text-align:right }
.accu-game { border-bottom:1px solid var(--border) }
.accu-game:last-of-type { border-bottom:none }
.accu-game-row {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  gap: 8px;
  cursor: pointer;
  transition: background .15s;
}
.accu-game-row:hover { background: var(--surface) }
.accu-game-row .score-badge {
  font-size: 10px;
  padding: 2px 5px;
  flex-shrink: 0;
  white-space: nowrap;
}
.accu-league-logo { width:18px; height:18px; border-radius:3px; object-fit:contain; flex-shrink:0 }
.accu-match-name { flex:1; font-size:12.5px; font-weight:500; color:var(--text); min-width:0 }
.accu-match-name .league-tag {
  font-size: 9.5px;
  color: var(--text-light);
  display: block;
  margin-top: 1px;
  font-weight: 400;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.accu-match-name .match-text { overflow:hidden; text-overflow:ellipsis; white-space:nowrap }
.accu-tip-badge {
  background: var(--blue-light);
  color: var(--blue);
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 9.5px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}
.accu-tip-badge.green { background:var(--green-light); color:#0d9140 }
[data-theme="dark"] .accu-tip-badge.green { color:#1db954 }
.accu-odds {
  font-family: 'Sora', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text);
  min-width: 26px;
  text-align: right;
  flex-shrink: 0;
}
.accu-expand-icon { color:var(--text-light); font-size:11px; transition:transform .2s; margin-left:2px; flex-shrink:0 }
.accu-expand-icon.open { transform:rotate(180deg) }

/* Match Preview */
.match-preview { display:none; padding:12px; background:var(--surface); border-top:1px solid var(--border) }
.match-preview.open { display:block }
.preview-teams { display:flex; align-items:center; justify-content:center; gap:12px; margin-bottom:10px }
.preview-team { text-align:center }
.preview-team img {
  width:34px; height:34px;
  border-radius:50%;
  object-fit:contain;
  background:var(--white);
  border:1px solid var(--border);
  padding:3px;
  margin-bottom:3px;
}
.preview-team-name { font-size:10.5px; font-weight:500; color:var(--text) }
.preview-vs { font-size:11px; font-weight:600; color:var(--text-light) }
.preview-kickoff { text-align:center; font-size:10.5px; color:var(--text-light); margin-bottom:10px }
.preview-analysis {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 10px;
  padding: 9px 10px;
  background: var(--white);
  border-radius: 7px;
  border-left: 3px solid var(--blue);
}
.preview-stats { display:grid; grid-template-columns:repeat(3,1fr); gap:6px }
.preview-stat-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 7px;
  text-align: center;
}
.psb-val { font-family:'Sora',sans-serif; font-size:15px; font-weight:700; color:var(--blue) }
.psb-val.green { color:var(--green) }
.psb-val.orange { color:#e67e22 }
.psb-label { font-size:9.5px; color:var(--text-light); margin-top:2px; font-weight:500 }
.confidence-bar { margin-top:9px }
.cb-top { display:flex; justify-content:space-between; font-size:10.5px; margin-bottom:3px }
.cb-top span:first-child { color:var(--text-muted) }
.cb-top span:last-child { font-weight:600; color:var(--blue) }
.cb-track { background:var(--border); border-radius:4px; height:5px; overflow:hidden }
.cb-fill { height:100%; background:var(--blue); border-radius:4px; transition:width .4s }

/* ─── TIPS TABLE ─── */
.tips-table-wrap {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 22px;
  width: 100%;
}
.tt-head {
  background: linear-gradient(90deg, var(--blue-deeper), var(--blue));
  padding: 11px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
[data-theme="dark"] .tt-head { background: linear-gradient(90deg, #0d1428, #1b2a80) }
.tt-head-title { font-family:'Sora',sans-serif; font-size:12px; font-weight:600; color:white }
.tt-date-badge { background:rgba(255,255,255,.15); color:white; border-radius:4px; padding:2px 8px; font-size:10px }

table.tips {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
table.tips th {
  background: var(--surface);
  padding: 8px 11px;
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  text-align: left;
  border-bottom: 1px solid var(--border);
  text-transform: uppercase;
  letter-spacing: .5px;
  overflow: hidden;
}
table.tips td {
  padding: 9px 11px;
  font-size: 12.5px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  /*overflow: hidden;*/
}
table.tips tr:last-child td { border-bottom: none }
table.tips tr:hover td { background: var(--surface) }

table.tips col.col-time   { width: 52px }
table.tips col.col-league { width: 58px }
table.tips col.col-match  { width: auto }
table.tips col.col-tip    { width: 76px }
table.tips col.col-odds   { width: 52px }
table.tips col.col-score  { width: 62px }

.tt-league { display:flex; align-items:center; gap:6px }
.tt-league img { width:16px; height:16px; border-radius:3px; object-fit:contain; flex-shrink:0 }
.tt-league-code {
  background: var(--blue-light);
  color: var(--blue);
  border-radius: 3px;
  padding: 2px 5px;
  font-size: 9px;
  font-weight: 600;
  white-space: nowrap;
}
.tt-teams { font-weight:500; color:var(--text); white-space:nowrap; overflow:hidden; text-overflow:ellipsis }
.tt-teams .teams-vs { font-size:10.5px; color:var(--text-light); font-weight:400 }
.tt-time { font-size:11.5px; color:var(--text-muted); font-weight:500; white-space:nowrap }
.tt-tip {
  display: inline-block;
  background: var(--blue-light);
  color: var(--blue);
  border-radius: 4px;
  padding: 2px 7px;
  font-size: 10.5px;
  font-weight: 600;
  white-space: nowrap;
}
.tt-tip.won { background:var(--green-light); color:#0d9140 }
[data-theme="dark"] .tt-tip.won { color:#1db954 }
.tt-tip.lost { background:var(--red-light); color:var(--red) }
.tt-odds { font-family:'Sora',sans-serif; font-weight:600; color:var(--text); font-size:12.5px }
.score-badge {
  background: var(--blue-light);
  color: var(--blue);
  border-radius: 4px;
  padding: 2px 7px;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
  display: inline-block;
}
.score-badge.scored { background:var(--green-light); color:#0d9140 }
.score-badge.lost { background:var(--red-light); color:var(--red) }
[data-theme="dark"] .score-badge.scored { color:#1db954 }

/* ── Mobile table overrides ── */
@media (max-width: 600px) {
  table.tips .col-time,
  table.tips th.th-time,
  table.tips td.td-time { display: none }

  table.tips col.col-league { width: 46px }
  table.tips col.col-tip    { width: 64px }
  table.tips col.col-odds   { width: 44px }
  table.tips col.col-score  { width: 52px }

  table.tips th { padding: 7px 7px; font-size: 9px }
  table.tips td { padding: 8px 7px; font-size: 11.5px }

  .tt-league-code { font-size: 8px; padding: 2px 4px }
  .tt-tip         { font-size: 9.5px; padding: 2px 5px }
  .tt-odds        { font-size: 11px }
  .score-badge    { font-size: 10.5px; padding: 2px 5px }
  .tt-teams       { font-size: 11px }
  .tt-teams .teams-vs { font-size: 9.5px }
}

/* ─── TELEGRAM CTA ─── */
.tg-cta {
  background: linear-gradient(90deg, #0078bb, #1a9fd0);
  border-radius: var(--radius);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
  color: white;
  flex-wrap: wrap;
}
.tg-cta-text h3 { font-family:'Sora',sans-serif; font-size:14px; font-weight:600 }
.tg-cta-text p { font-size:11.5px; opacity:.85; margin-top:2px }
.tg-btn {
  background: white;
  color: #0088cc;
  padding: 8px 16px;
  border-radius: 7px;
  font-weight: 600;
  font-size: 12.5px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ─── ACCU FOOTER ROW ─── */
.accu-total-row {
  background: var(--blue-deeper);
  color: #ffd76a;
  padding: 9px 14px;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
}
[data-theme="dark"] .accu-total-row { background:#0d1428 }

/* ─── SEO CONTENT ─── */
.seo-section {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 22px;
  transition: background .3s, border-color .3s;
}
.seo-section h2 { font-family:'Sora',sans-serif; font-size:17px; font-weight:700; color:var(--text); margin-bottom:10px }
.seo-section h3 { font-family:'Sora',sans-serif; font-size:13.5px; font-weight:600; color:var(--text); margin:14px 0 7px }
.seo-section p { color:var(--text-muted); margin-bottom:10px; font-size:13px; line-height:1.7 }
.seo-section ul { margin:7px 0 10px 16px; color:var(--text-muted); font-size:13px; line-height:1.8 }

/* ─── FOOTER ─── */
footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 30px 20px 16px;
  transition: background .3s;
}
.footer-inner { max-width:1100px; margin:0 auto }
.footer-grid { display:grid; grid-template-columns:2fr 1fr 1fr 1fr; gap:24px; margin-bottom:24px }
@media(max-width:700px) { .footer-grid { grid-template-columns:1fr 1fr } }
.footer-brand .logo-text { color:white; font-size:16px }
.footer-brand p { font-size:12.5px; margin-top:10px; line-height:1.6; max-width:240px }
.footer-col h4 { font-family:'Sora',sans-serif; font-size:11px; font-weight:600; color:white; margin-bottom:8px; text-transform:uppercase; letter-spacing:.8px }
.footer-col a { display:block; font-size:12.5px; margin-bottom:5px; color:rgba(255,255,255,.55); transition:.15s }
.footer-col a:hover { color:white }
.footer-bottom { border-top:1px solid rgba(255,255,255,.1); padding-top:14px; display:flex; justify-content:space-between; font-size:11px; flex-wrap:wrap; gap:6px }
.disclaimer { max-width:1100px; margin:12px auto 0; font-size:10px; opacity:.45; line-height:1.5; text-align:center }

/* ─── MOBILE BOTTOM NAV ─── */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--mobile-nav-bg);
  border-top: 1px solid var(--mobile-nav-border);
  z-index: 200;
  padding: 4px 0;
  padding-bottom: env(safe-area-inset-bottom, 4px);
  box-shadow: 0 -2px 10px rgba(0,0,0,0.08);
  transition: background .3s, border-color .3s;
}
.mobile-bottom-nav ul { display:flex; list-style:none; justify-content:space-around; margin:0; padding:0 }
.mobile-bottom-nav li { flex:1 }
.mobile-bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 5px 2px;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 9px;
  font-weight: 500;
  transition: .15s;
  border-radius: 8px;
  margin: 0 3px;
}
.mobile-bottom-nav a:hover,
.mobile-bottom-nav a.active { color: var(--blue) }
.mobile-bottom-nav a.active { background: var(--blue-light) }
.mobile-bottom-nav .nav-icon { font-size: 17px; line-height: 1 }
.mobile-bottom-nav .nav-label { font-size: 9px; font-weight: 600; text-transform: uppercase; letter-spacing: .3px }

/* ─── MOBILE RESPONSIVE ─── */
@media(max-width:768px) {
  body { padding-bottom: 62px }
  .mobile-bottom-nav { display: block }
  .nav-links, .nav-cta { display: none }
  .nav-right { gap: 8px }
  .hero { padding: 24px 14px 20px }
  .hero-stat-divider { display: none }
  .hero-stats { gap: 16px }
  .popular-card { min-width: 148px; max-width: 165px; padding: 11px 10px }
  .accu-grid { grid-template-columns: 1fr }
  .footer-grid { grid-template-columns: 1fr 1fr }
  footer { padding-bottom: 20px }
  .main { padding: 14px 12px }
  .tabs-inner { padding: 0 12px; padding-top: 4px }
}

@media(max-width:480px) {
  .popular-card { min-width: 140px; max-width: 155px }
  .hero h1 { font-size: 18px }
  .hero-description { font-size: 13px }
  .hero-cta-row { gap: 8px }
  .hero-btn-primary, .hero-btn-secondary { padding: 8px 14px; font-size: 12px }
}

/* ─── FORMERLY INLINE STYLES ─── */

/* Accumulator header sub-line */
.accu-header-sub {
  font-size: 10px;
  color: rgba(255,255,255,.6);
  margin-top: 2px;
}

/* Telegram CTA left group */
.tg-cta-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 180px;
}

/* Footer logo mark ghost variant */
.logo-mark--ghost {
  background: rgba(255,255,255,.15);
}

/* Footer logo text variant */
.logo-text--footer {
  color: white;
  font-size: 16px;
}
.logo-text--footer span {
  color: rgba(255,255,255,.5);
  font-weight: 400;
}

/* SEO section internal links */
.seo-section a {
  color: var(--blue);
}

/* ============================================
   FOOTER
   ============================================ */

footer {
  /* add your existing footer background/color here */
}

.footer-inner {
  /* your existing padding/max-width here */
}

.footer-grid {
  /* your existing grid layout here */
}

/* ── Sponsor Links Section ── */
.sponsor-section {
  padding: 16px 0 10px;
  text-align: center;
}

.sponsor-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 12px;
}

.sponsor-links-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px 0;
}

.sponsor-link {
  position: relative;
  color: rgba(255, 255, 255, 0.72) !important;
  font-size: 0.8rem;
  text-decoration: none !important;
  padding: 3px 14px;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.sponsor-link:hover {
  color: #ffffff !important;
}

/* CSS pipe separator — never appears at the start of a wrapped row */
.sponsor-link + .sponsor-link::before,
.sponsor-link + .sponsor-toggle::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 11px;
  width: 1px;
  background: rgba(255, 255, 255, 0.2);
}

.sponsor-toggle {
  position: relative;
  background: none;
  border: none;
  color: #f5c842;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 3px 14px;
  cursor: pointer;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.sponsor-toggle:hover {
  color: #ffe680;
}

/* ── Footer Bottom Bar ── */
.footer-bottom {
  /* your existing footer-bottom styles */
}

/* ── Disclaimer ── */
.disclaimer {
  /* your existing disclaimer styles */
}

/* ── Back To Top Button ── */
#btn-back-to-top {
  position: fixed;
  bottom: 80px; /* sits above mobile bottom nav */
  right: 20px;
  z-index: 999;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #a5bf3b;
  border: none;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(229, 57, 53, 0.45);
  transition: background 0.2s ease, transform 0.2s ease, opacity 0.3s ease;
}

#btn-back-to-top:hover {
  background: #c62828;
  transform: translateY(-2px);
}

#btn-back-to-top.show {
  display: flex;
}

/* ── Mobile Bottom Navigation ── */
.mobile-bottom-nav {
  /* your existing mobile nav styles */
}

/* ── Footer Mobile Layout ── */
@media (max-width: 767px) {

  .footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px 16px;
  }

  /* Brand takes full width — spans both columns */
  .footer-brand {
    grid-column: 1 / -1;
    width: 100%;
  }

  /* Quick Links and Useful Links side by side */
  .footer-col:nth-child(2),
  .footer-col:nth-child(3) {
    grid-column: span 1;
  }

  /* Join Us takes full width on mobile */
  .footer-col:nth-child(4) {
    grid-column: 1 / -1;
  }

}

/* ============================================
   TOPBAR
   ============================================ */
.topbar {
  background: #1a237e;
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 7px 16px;
}

/* ============================================
   MAIN NAV
   ============================================ */
.main-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #0f1f5c;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  gap: 16px;
}

/* ── Logo ── */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-mark {
  width: 34px;
  height: 34px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-mark svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.logo-text {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.logo-text span {
  color: #a8d840;
}

/* ── Desktop Nav Links ── */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  justify-content: center;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.nav-links a.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  font-weight: 600;
}

/* ── Nav Right ── */
.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* ── Telegram CTA Button ── */
.nav-cta {
  display: inline-flex;
  align-items: center;
  background: #229ED9;
  color: #ffffff !important;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 8px;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.15s ease;
}

.nav-cta:hover {
  background: #1a8bbf;
  transform: translateY(-1px);
}

/* ── Theme Toggle ── */
.theme-toggle {
  width: 44px;
  height: 26px;
  background: rgba(255, 255, 255, 0.15);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  transition: background 0.3s ease;
}

.theme-toggle::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: #ffffff;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

[data-theme="light"] .theme-toggle,
body.light .theme-toggle {
  background: #a8d840;
  border-color: #a8d840;
}

[data-theme="light"] .theme-toggle::after,
body.light .theme-toggle::after {
  transform: translateX(18px);
}

/* ── Hamburger Button ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-shrink: 0;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Animate to × when open */
.nav-hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================
   MOBILE DRAWER
   ============================================ */
.nav-mobile-drawer {
  display: none;
  flex-direction: column;
  background: #0f1f5c; /* always dark — never inherits light theme */
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.nav-mobile-drawer.open {
  max-height: 700px;
}

.nav-mobile-drawer a {
  display: block;
  color: rgba(255, 255, 255, 0.82) !important;
  text-decoration: none !important;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 13px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-mobile-drawer a:hover,
.nav-mobile-drawer a.active {
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff !important;
}

.nav-mobile-drawer a.nav-drawer-highlight {
  color: #f5c842 !important;
  font-weight: 600;
}

.nav-mobile-drawer a.nav-drawer-highlight:hover {
  background: rgba(245, 200, 66, 0.08);
  color: #ffe680 !important;
}

.nav-mobile-drawer a.nav-drawer-telegram {
  margin: 14px 16px 16px;
  border: none;
  background: #229ED9;
  color: #ffffff !important;
  border-radius: 10px;
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 24px;
  border-bottom: none;
}

.nav-mobile-drawer a.nav-drawer-telegram:hover {
  background: #1a8bbf;
  color: #ffffff !important;
}

/* ============================================
   RESPONSIVE — MOBILE
   ============================================ */
@media (max-width: 767px) {

  .nav-inner {
    padding: 0 16px;
    height: 54px;
  }

  /* Hide desktop links */
  .nav-links {
    display: none;
  }

  /* Hide desktop CTA on very small screens — drawer has it */
  .nav-cta {
    display: none;
  }

  /* Show hamburger */
  .nav-hamburger {
    display: flex;
  }

  /* Show drawer container */
  .nav-mobile-drawer {
    display: flex;
  }

}

@media (max-width: 480px) {
  .topbar {
    font-size: 0.72rem;
    padding: 6px 12px;
  }

  .logo-text {
    font-size: 1rem;
  }
}

/* ============================================
   LIGHT MODE OVERRIDES
   (only affects elements that aren't locked dark)
   ============================================ */
[data-theme="light"] .main-nav,
body.light .main-nav {
  background: #0f1f5c; /* keep nav always dark */
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .topbar,
body.light .topbar {
  background: #1a237e;
  color: rgba(255, 255, 255, 0.85);
}

/* Drawer is always dark — no light override needed */
[data-theme="light"] .nav-mobile-drawer,
body.light .nav-mobile-drawer {
  background: #0f1f5c;
}

/*
 * style-hero-patch.css
 * ─────────────────────────────────────────────────────────────
 * Drop these rules into your existing style.css (or @import
 * this file after it). They handle the one structural change:
 * .hero and .tabs-section now render inside index.php instead
 * of header.php, so they sit BELOW the sticky nav rather than
 * being output by the shared include.
 *
 * No existing rules need to be removed — these are purely
 * additive overrides / safety guards.
 * ─────────────────────────────────────────────────────────────
 */

/* ── 1. Ensure hero always starts flush below the sticky nav ── */
/*    (guards against any page that once relied on header.php
      outputting the hero and had margin/padding set against it) */
.hero {
  /* No top margin — nav is sticky and hero is the first element
     in the page flow after the include ends */
  margin-top: 0;
}

/* ── 2. Tabs section directly follows hero with no gap ── */
.tabs-section {
  /* tabs-section was previously border-bottom only; keep that
     but also make sure no orphan gap appears between hero and tabs
     on any inner page that might accidentally include this block */
  margin-top: 0;
}

/* ── 3. Inner-page safety: hide hero/tabs if accidentally
        included on non-homepage templates                   ──
   Add class="no-hero" to <body> on every page except index.php
   and the blocks will be invisible if ever mistakenly present. */
body.no-hero .hero,
body.no-hero .tabs-section {
  display: none !important;
}

/* ── 4. Smooth fade-in for hero on page load (optional flair) ── */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-inner {
  animation: heroFadeUp .55s ease both;
}

.hero-badge   { animation-delay: .05s; }
.hero h1      { animation-delay: .10s; }
.hero-description { animation-delay: .15s; }
.hero-cta-row { animation-delay: .20s; }
.hero-stats   { animation-delay: .25s; }

/* Give each animated element its own fade so stagger works */
.hero-badge,
.hero h1,
.hero-description,
.hero-cta-row,
.hero-stats {
  animation: heroFadeUp .5s ease both;
}