/* =====================================================================
   PredictEdge Tips – "Floodlit matchday" theme
   Pitch green + chalk lines, floodlight gold for VIP, odds-button numerals.
   Display: Big Shoulders Display (stadium signage) · Text: Figtree
   ===================================================================== */
:root {
  --pitch: #0e4d32;
  --pitch-deep: #0a3a26;
  --pitch-night: #072a1b;
  --stripe: #11573a;
  --chalk: #f5f7f2;
  --gold: #f2b33d;
  --gold-deep: #c98a12;
  --gold-bg: #fff6e0;
  --ink: #13221b;
  --muted: #5b6b62;
  --line: #dde3dc;
  --bg: #edf1eb;
  --card: #ffffff;
  --won: #1e9e5a;
  --won-bg: #e3f4ea;
  --lost: #d64545;
  --lost-bg: #fbe8e6;
  --pitch-2: #157a4c;           /* links / accents on light backgrounds */
  --lime: var(--gold);          /* legacy name used by older templates */
  --radius: 14px;
  --radius-sm: 9px;
  --display: "Big Shoulders Display", "Arial Narrow", "Roboto Condensed", "sans-serif-condensed", "DejaVu Sans Condensed", sans-serif;
  --text: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --shadow: 0 1px 2px rgba(10, 58, 38, .06), 0 6px 18px -10px rgba(10, 58, 38, .25);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--text); }
a { color: var(--pitch-2); text-underline-offset: 3px; }
a:hover { color: var(--pitch); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 800; line-height: 1.05; letter-spacing: .005em; color: var(--ink); }
h1 { font-size: 2.6rem; margin: 0 0 .3em; }
h2 { font-size: 1.75rem; margin: 1.6em 0 .55em; }
h3 { font-size: 1.3rem; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 18px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.pos { color: var(--won); }
.neg { color: var(--lost); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30; color: #fff;
  background: repeating-linear-gradient(90deg, var(--pitch-deep) 0 80px, #0c4029 80px 160px);
  border-bottom: 3px solid var(--chalk);
  box-shadow: 0 6px 20px -12px rgba(0,0,0,.45);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-family: var(--display); font-weight: 900; font-size: 1.65rem; letter-spacing: .01em; }
.logo:hover { color: #fff; }
.logo-mark { width: 30px; height: 30px; flex: 0 0 auto; border-radius: 50%; position: relative;
  border: 2.5px solid var(--chalk); background: radial-gradient(circle, var(--gold) 0 3px, transparent 3.5px); }
.logo-mark::after { content: ""; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 2.5px; margin-left: -1.25px; background: var(--chalk); }
.main-nav { display: flex; gap: 2px; align-items: center; }
.main-nav a { color: #dbe8e0; text-decoration: none; padding: 8px 13px; border-radius: 999px; font-weight: 600; font-size: .95rem; }
.main-nav a:hover { color: #fff; background: rgba(255,255,255,.09); }
.main-nav a.active { color: var(--ink); background: var(--chalk); }
.main-nav a.nav-vip { color: var(--ink); background: var(--gold); margin-left: 6px; }
.main-nav a.nav-vip:hover { background: #f7c460; }
.main-nav a.nav-vip.active { box-shadow: inset 0 0 0 2px var(--ink); }
.nav-toggle { display: none; background: none; border: 0; color: #fff; font-size: 1.6rem; cursor: pointer; padding: 4px 8px; }

/* ---------- Buttons & forms ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--pitch); color: #fff; border: 0; border-radius: 999px;
  padding: 11px 22px; font: 700 .97rem/1.2 var(--text); text-decoration: none; cursor: pointer; transition: transform .12s, background .15s; }
.btn:hover { background: var(--pitch-deep); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold); color: #231a00; }
.btn-gold:hover { background: #f7c460; color: #231a00; }
.btn-lime { background: var(--chalk); color: var(--pitch-deep); }
.btn-lime:hover { background: #fff; color: var(--pitch-deep); }
.btn-mpesa { background: #2f9e44; }
.btn-mpesa:hover { background: #26843a; }
.btn-outline { background: transparent; color: var(--pitch); box-shadow: inset 0 0 0 2px var(--pitch); }
.btn-outline:hover { background: var(--pitch); color: #fff; }
.btn-block { display: flex; width: 100%; }
label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 14px; }
label input, label select, label textarea { display: block; width: 100%; margin-top: 5px; padding: 11px 13px; border: 1.5px solid #cdd6cf; border-radius: var(--radius-sm);
  font: 400 1rem var(--text); background: #fff; color: var(--ink); }
label input:focus, label select:focus, label textarea:focus { border-color: var(--pitch-2); outline: none; box-shadow: 0 0 0 3px rgba(21,122,76,.15); }
label.check { display: flex; gap: 9px; align-items: flex-start; font-weight: 400; }
label.check input { width: auto; margin-top: 4px; accent-color: var(--pitch); }
.form-card { max-width: 440px; margin: 40px auto; background: var(--card); padding: 30px; border-radius: var(--radius); box-shadow: var(--shadow); border-top: 5px solid var(--pitch); }
.form-card h1 { font-size: 2.2rem; }
.flash { padding: 12px 16px; border-radius: var(--radius-sm); margin: 16px 0; font-weight: 500; }
.flash-success { background: var(--won-bg); color: #145c35; }
.flash-error { background: var(--lost-bg); color: #8e2420; }
.flash-info { background: #e6eff8; color: #1d4f7a; }
.card { background: var(--card); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card h2 { margin-top: 0; font-size: 1.45rem; }
.empty { background: var(--card); border: 2px dashed #c9d3cb; padding: 34px 20px; border-radius: var(--radius); text-align: center; color: var(--muted); }
.disclaimer { font-size: .82rem; margin-top: 14px; }

/* ---------- Generic page hero ---------- */
.hero { padding: 34px 0 6px; }
.hero h1 { font-size: 2.8rem; }
.hero > p { max-width: 68ch; }
.stats-strip { display: flex; flex-wrap: wrap; gap: 10px 30px; margin-top: 16px; padding: 14px 20px; background: var(--pitch-night); color: #cfe0d6; border-radius: var(--radius); align-items: center; }
.stats-strip div { display: flex; flex-direction: column; }
.stats-strip b { font: 800 1.7rem/1 var(--display); color: var(--gold); font-variant-numeric: tabular-nums; }
.stats-strip span { font-size: .78rem; }
.stats-strip a { color: var(--chalk); font-weight: 600; }

/* ---------- HOME HERO: the floodlit pitch ---------- */
.home-hero { position: relative; overflow: hidden; margin: 24px 0 20px; padding: 44px 40px 28px; border-radius: 22px; color: #fff; isolation: isolate;
  background:
    radial-gradient(ellipse 60% 70% at 88% -10%, rgba(255,240,190,.22), transparent 60%),
    repeating-linear-gradient(90deg, #0f5536 0 70px, #0c4a2f 70px 140px);
  box-shadow: 0 24px 50px -30px rgba(7,42,27,.8); }
.hero-pitch { position: absolute; z-index: -1; right: -90px; top: 50%; width: 520px; height: 520px; transform: translateY(-50%); pointer-events: none; opacity: .55; }
.hero-pitch * { fill: none; stroke: var(--chalk); stroke-width: 2.4; stroke-linecap: round; }
.hero-pitch .spot { fill: var(--chalk); stroke: none; }
.hero-pitch .draw { stroke-dasharray: 1600; stroke-dashoffset: 1600; animation: chalk 2.2s cubic-bezier(.6,.1,.2,1) .25s forwards; }
.hero-pitch .draw.d2 { animation-delay: .7s; }
.hero-pitch .draw.d3 { animation-delay: 1.1s; }
@keyframes chalk { to { stroke-dashoffset: 0; } }
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.hero-badges span { font-size: .8rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: rgba(7,42,27,.55); border: 1px solid rgba(245,247,242,.25); backdrop-filter: blur(4px); }
.home-hero h1 { color: #fff; font-size: 2.9rem; font-weight: 800; line-height: 1.05; letter-spacing: .01em; max-width: 20ch; margin: 0 0 16px; text-wrap: balance; text-shadow: 0 2px 24px rgba(0,0,0,.25); }
.hero-lead { color: #dcebe2; font-size: 1.12rem; max-width: 52ch; margin: 0 0 24px; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-actions .btn { padding: 13px 26px; font-size: 1.02rem; }
/* scoreboard */
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 30px; background: var(--pitch-night); border-radius: 12px; border: 1px solid rgba(245,247,242,.14); box-shadow: inset 0 2px 10px rgba(0,0,0,.4); overflow: hidden; }
.hero-stats div { padding: 14px 18px; border-left: 1px solid rgba(245,247,242,.1); }
.hero-stats div:first-child { border-left: 0; }
.hero-stats b { display: block; font: 900 2.3rem/1 var(--display); color: var(--gold); font-variant-numeric: tabular-nums; text-shadow: 0 0 18px rgba(242,179,61,.35); }
.hero-stats span { display: block; margin-top: 4px; font-size: .78rem; color: #b9cdc2; line-height: 1.35; }
.hero-note { margin: 14px 0 0; font-size: .9rem; }
.hero-note a { color: var(--chalk); font-weight: 600; }

/* ---------- VIP slip + yesterday ---------- */
.home-duo { display: grid; grid-template-columns: 1.05fr 1fr; gap: 18px; margin-bottom: 8px; align-items: start; }
.acca-card, .yday-card { display: flex; flex-direction: column; border-radius: var(--radius); padding: 0; }
.acca-card { position: relative; background: #fff; box-shadow: 0 18px 40px -26px rgba(201,138,18,.9), var(--shadow); overflow: hidden; }
/* ticket cut-outs on both ends of the tear line */
.acca-card.has-slip .acca-figures::before, .acca-card.has-slip .acca-figures::after { content: ""; position: absolute; bottom: -12px; width: 22px; height: 22px; border-radius: 50%; background: var(--bg); }
.acca-card.has-slip .acca-figures::before { left: -11px; }
.acca-card.has-slip .acca-figures::after { right: -11px; }
.acca-card .acca-head { background: var(--gold); padding: 14px 20px; }
.acca-card .acca-head h2 { color: #231a00; }
.acca-label { background: #231a00; color: var(--gold); font: 800 .8rem/1 var(--display); letter-spacing: .06em; padding: 5px 8px; border-radius: 5px; }
.acca-head { display: flex; align-items: center; gap: 10px; justify-content: space-between; }
.acca-head h2 { font-size: 1.45rem; margin: 0; flex: 1; }
.acca-figures { position: relative; display: grid; grid-template-columns: .8fr 1fr 1.3fr; margin: 0; padding: 16px 20px 18px; background: linear-gradient(#fff8e6, #fff); border-bottom: 2px dashed #e7cf98; }
.acca-figures div { text-align: center; }
.acca-figures div + div { border-left: 1px solid #f0e0b8; }
.acca-figures b { display: block; font: 900 2.15rem/1 var(--display); font-variant-numeric: tabular-nums; color: var(--ink); }
.acca-figures span { font-size: .76rem; color: var(--muted); }
.acca-big { font: 900 1.9rem/1.1 var(--display); margin: 18px 20px 4px; }
.acca-card > p.muted { margin: 0 20px 14px; }
.acca-live { color: var(--gold-deep); } .acca-won { color: var(--won); } .acca-lost { color: var(--lost); }
.acca-legs, .yday-list { list-style: none; margin: 0; padding: 4px 20px 6px; }
.acca-legs li, .yday-list li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid #eef1ec; font-size: .93rem; }
.acca-legs li:first-child, .yday-list li:first-child { border-top: 0; }
.leg-time { color: var(--muted); font: 700 1.05rem var(--display); font-variant-numeric: tabular-nums; width: 44px; }
.leg-match { flex: 1; }
.leg-match small { display: block; color: var(--muted); font-size: .78rem; }
.leg-locked { color: #8a6500; font-weight: 600; }
.acca-foot { margin-top: auto; padding: 8px 20px 18px; }
.acca-foot p { margin: 10px 0 0; }
.acca-odds { color: var(--gold-deep); font-weight: 800; }
.yday-card { background: var(--card); box-shadow: var(--shadow); }
.yday-card .acca-head { padding: 16px 20px 6px; }
.yday-card .acca-head h2 { font-size: 1.45rem; }
.yday-card > p { padding: 0 20px; }
.yday-summary { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 20px 4px; }

/* ---------- Day strip & market chips ---------- */
.tips-anchor { position: relative; top: -80px; }
.tips-title { margin: 34px 0 4px; font-size: 2.1rem; }
.date-strip, .day-tabs { display: flex; gap: 8px; margin: 14px 0 12px; overflow-x: auto; padding: 2px 2px 6px; align-items: stretch; scrollbar-width: thin; }
.date-strip > a { flex: 0 0 auto; min-width: 68px; text-align: center; padding: 8px 10px; border-radius: 12px; background: var(--card); text-decoration: none; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.date-strip > a span { display: block; font-size: .74rem; color: var(--muted); font-weight: 600; }
.date-strip > a b { font: 800 1.15rem/1.1 var(--display); white-space: nowrap; }
.date-strip > a:hover { box-shadow: inset 0 0 0 1.5px var(--pitch-2); }
.date-strip > a.active { background: var(--pitch); color: #fff; box-shadow: inset 0 -4px 0 var(--gold); }
.date-strip > a.active span { color: #cfe3d8; }
.day-tabs > a { padding: 8px 16px; border-radius: 999px; background: var(--card); text-decoration: none; color: var(--ink); font-weight: 600; box-shadow: inset 0 0 0 1.5px var(--line); }
.day-tabs > a.active { background: var(--pitch); color: #fff; box-shadow: none; }
.day-pick, .date-strip .day-pick { margin-left: auto; display: flex; align-items: center; }
.day-pick input { padding: 8px 10px; border: 1.5px solid var(--line); border-radius: 10px; font: 500 .9rem var(--text); background: var(--card); color: var(--ink); }
.market-chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; margin-bottom: 12px; scrollbar-width: thin; }
.market-chips a { white-space: nowrap; padding: 7px 15px; border-radius: 999px; font-size: .88rem; font-weight: 700; text-decoration: none; color: var(--pitch); background: transparent; box-shadow: inset 0 0 0 1.5px #b9cbbf; }
.market-chips a:hover { box-shadow: inset 0 0 0 1.5px var(--pitch); }
.market-chips a.active { background: var(--pitch); color: #fff; box-shadow: none; }
.last-updated { font-size: .82rem; color: var(--muted); margin: 0 0 12px; }

/* ---------- VIP banner ---------- */
.vip-banner { display: flex; align-items: center; justify-content: space-between; gap: 14px; background: var(--gold-bg); border-left: 5px solid var(--gold); padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 16px; }

/* ---------- Tips list ---------- */
.league { background: var(--card); border-radius: var(--radius); margin-bottom: 16px; overflow: hidden; box-shadow: var(--shadow); }
.league-name { margin: 0; padding: 12px 20px; font-size: 1.2rem; color: #fff; background: var(--pitch); border-bottom: 3px solid var(--chalk); }
.tip-head, .tip { display: grid; grid-template-columns: 58px 1fr 180px 78px 104px; gap: 12px; align-items: center; padding: 12px 20px; }
.tip-head { font-size: .74rem; font-weight: 700; color: var(--muted); padding-top: 10px; padding-bottom: 6px; background: #f7f9f6; }
.tip { border-top: 1px solid #eef1ec; transition: background .12s; }
.tip-head + .tip { border-top: 0; }
.tip:hover { background: #fafcf9; }
.tip-vip { background: linear-gradient(90deg, var(--gold-bg), transparent 45%); }
.tip-time { font: 800 1.15rem var(--display); color: var(--muted); font-variant-numeric: tabular-nums; }
.tip-match .teams { display: block; font-weight: 700; font-size: 1rem; }
.tip-match .teams i { font-style: normal; color: var(--muted); font-weight: 500; font-size: .85em; margin: 0 2px; }
.tip-market { font-size: .8rem; color: var(--muted); }
.vip-tag { color: var(--gold-deep); font-weight: 800; }
.tip-pick b { font: 800 1.2rem/1.1 var(--display); letter-spacing: .01em; }
.tip-pick small { display: block; color: var(--muted); font-size: .76rem; }
/* bookmaker-style odds button */
.tip-odds { justify-self: start; min-width: 64px; text-align: center; padding: 6px 8px; border-radius: 9px; background: #f2f6f1; box-shadow: inset 0 0 0 1.5px #d5e0d6;
  font: 900 1.25rem/1 var(--display); font-variant-numeric: tabular-nums; color: var(--pitch-deep); }
.tip-locked .tip-odds { background: transparent; box-shadow: none; color: var(--muted); }
.close-odds { display: block; margin-top: 3px; font: 600 .68rem var(--text); }
.conf { display: block; height: 4px; width: 84px; background: #e6ece5; border-radius: 4px; margin-top: 6px; overflow: hidden; }
.conf span { display: block; height: 100%; background: linear-gradient(90deg, var(--pitch-2), var(--gold)); }
.res { display: inline-block; padding: 5px 9px; border-radius: 7px; font: 800 .95rem/1 var(--display); letter-spacing: .02em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.res-won { background: var(--won); color: #fff; }
.res-lost { background: var(--lost); color: #fff; }
.res-void { background: #e4e9e6; color: #4c5d55; }
.res-pending { color: var(--muted); font: 600 .85rem var(--text); padding-left: 0; }
.unlock { display: inline-block; font-weight: 800; color: #231a00; background: var(--gold); padding: 6px 12px; border-radius: 999px; text-decoration: none; font-size: .88rem; }
.unlock:hover { background: #f7c460; color: #231a00; }
.tip-analysis { grid-column: 2 / -1; font-size: .9rem; }
.tip-analysis summary { cursor: pointer; color: var(--pitch-2); font-weight: 700; font-size: .82rem; }
.tip-analysis div { padding: 6px 0 2px; color: #33413a; max-width: 70ch; }
.day-heading { margin: 22px 0 10px; font-size: 1.35rem; }

/* ---------- Results ---------- */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 18px; }
.filters select { padding: 9px 12px; border-radius: 10px; border: 1.5px solid var(--line); font: 600 .92rem var(--text); background: var(--card); color: var(--ink); }
.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat { background: var(--card); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.stat b { display: block; font: 900 2.1rem/1.05 var(--display); font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: .82rem; }
.stat.pos b { color: var(--won); }
.stat.neg b { color: var(--lost); }
.table-wrap { overflow-x: auto; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }
table.data { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.data th, table.data td { text-align: left; padding: 11px 14px; border-bottom: 1px solid #eef1ec; white-space: nowrap; }
table.data th { font-size: .74rem; font-weight: 700; color: var(--muted); background: #f7f9f6; }
table.data tr:last-child td { border-bottom: 0; }
.pager { display: flex; gap: 16px; justify-content: center; align-items: center; margin: 22px 0; font-weight: 600; }
.clv-help { margin: 12px 0 0; font-size: .9rem; background: var(--card); border-radius: var(--radius-sm); padding: 10px 16px; box-shadow: var(--shadow); }
.clv-help summary { cursor: pointer; font-weight: 700; color: var(--pitch-2); }
.clv-help p { max-width: 75ch; }

/* ---------- Profit charts ---------- */
.charts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 18px 0 8px; }
.charts:empty { display: none; }
.profit-chart { margin: 0; background: var(--card); border-radius: var(--radius); padding: 16px 18px 12px; box-shadow: var(--shadow); }
.profit-chart figcaption { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: 8px; }
.profit-chart figcaption b { font: 800 1.25rem var(--display); }
.profit-chart figcaption small { flex-basis: 100%; color: var(--muted); font-size: .8rem; }
.pc-total { font: 900 1.25rem var(--display); font-variant-numeric: tabular-nums; }
.pc-wrap { position: relative; }
.profit-chart svg { width: 100%; height: auto; display: block; overflow: visible; outline: none; }
.profit-chart svg:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.pc-grid { stroke: #e9eee8; stroke-width: 1; }
.pc-zero { stroke: #9aa8a1; stroke-width: 1; stroke-dasharray: 4 4; }
.pc-axis { fill: var(--muted); font-size: 12.5px; font-family: var(--text); }
.pc-line { fill: none; stroke: var(--pitch-2); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.pc-cross { stroke: #9aa8a1; stroke-width: 1; }
.pc-dot { fill: var(--pitch-2); stroke: #fff; stroke-width: 2; }
.pc-hit { fill: transparent; cursor: crosshair; }
.pc-tip { position: absolute; top: 0; pointer-events: none; background: #fff; border-radius: 9px; padding: 7px 10px; font-size: .78rem; white-space: nowrap; transform: translateX(-50%); box-shadow: 0 8px 22px -8px rgba(10,58,38,.35); }
.pc-tip b { display: block; font: 800 1.05rem var(--display); font-variant-numeric: tabular-nums; }
.pc-tip span { color: var(--muted); display: block; }

/* ---------- Account / plans / payments ---------- */
.account-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.vip-active { color: var(--won); font-weight: 600; }
.logout-form { margin: 26px 0; }
.pill { padding: 3px 9px; border-radius: 999px; font-size: .75rem; font-weight: 700; background: #e7ece8; color: #455a4f; }
.pill-paid { background: var(--won-bg); color: #13703f; }
.pill-failed, .pill-cancelled, .pill-expired, .pill-underpaid { background: var(--lost-bg); color: #a32f2a; }
.pill-pending { background: var(--gold-bg); color: #8a6500; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin: 22px 0; }
.plan { background: var(--card); border-radius: var(--radius); padding: 24px 22px; text-align: center; box-shadow: var(--shadow); border-top: 5px solid var(--pitch); }
.plan h3 { margin: 0; font-size: 1.6rem; }
.plan .price { font: 900 2.6rem/1.1 var(--display); margin: 10px 0 2px; color: var(--pitch-deep); }
.plan-featured { border-top-color: var(--gold); box-shadow: 0 22px 44px -26px rgba(201,138,18,.85), var(--shadow); transform: translateY(-4px); }
.pay-form { text-align: left; }
.pay-status { text-align: center; margin: 22px 0; }
.spinner { width: 40px; height: 40px; border: 4px solid var(--line); border-top-color: #2f9e44; border-radius: 50%; margin: 0 auto 12px; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.sim-box { margin-top: 18px; background: var(--gold-bg); border: 1.5px dashed var(--gold); padding: 14px; border-radius: var(--radius-sm); font-size: .92rem; }
.sim-box form { margin-top: 10px; display: flex; gap: 8px; justify-content: center; }

/* ---------- Blog / articles ---------- */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.post-card { display: block; background: var(--card); border-radius: var(--radius); padding: 20px 20px 18px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); border-left: 5px solid var(--pitch); transition: border-color .15s; }
.post-card:hover { border-left-color: var(--gold); color: var(--ink); }
.post-card h2 { margin: 0 0 8px; font-size: 1.4rem; color: var(--pitch-deep); }
.post-card p { margin: 0 0 10px; color: #3a4842; }
.article { max-width: 760px; margin: 30px auto; background: var(--card); padding: 34px 38px; border-radius: var(--radius); box-shadow: var(--shadow); }
.article h1 { font-size: 2.8rem; line-height: 1; }
.prose { font-size: 1.05rem; line-height: 1.75; }
.prose p, .prose li { max-width: 68ch; }
.prose h2 { margin-top: 1.5em; font-size: 1.7rem; }
.prose h3 { font-size: 1.3rem; }
.prose blockquote { margin: 1.2em 0; padding: 12px 18px; border-left: 5px solid var(--gold); background: var(--gold-bg); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.cta-box { margin-top: 30px; padding: 18px 20px; background: var(--pitch); color: #e4efe8; border-radius: var(--radius); display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cta-box b { color: #fff; }
.cta-box .btn { background: var(--gold); color: #231a00; }

/* ---------- News ---------- */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.news-card { background: var(--card); border-radius: var(--radius); padding: 18px 20px; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.news-card h2 { font-size: 1.3rem; margin: 6px 0 8px; line-height: 1.15; }
.news-card h2 a { color: var(--ink); text-decoration: none; }
.news-card h2 a:hover { color: var(--pitch-2); }
.news-card p { margin: 0 0 12px; color: #3a4842; font-size: .94rem; flex: 1; }
.news-meta { font-size: .8rem; color: var(--muted); }
.news-read { font-size: .88rem; font-weight: 700; }
.news-card-own { border-top: 5px solid var(--gold); }
.own-tag { color: var(--gold-deep); }
.own-news h2:first-child { margin-top: 10px; }
.web-news-head { margin-top: 30px; }
.news-grid-3 { grid-template-columns: repeat(3, 1fr); margin-bottom: 8px; }
.news-card-img { padding: 0; overflow: hidden; }
.news-img { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: repeating-linear-gradient(90deg, #0f5536 0 40px, #0c4a2f 40px 80px); }
.news-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.news-card-img:hover .news-img img { transform: scale(1.04); }
.news-img.no-img::after, .no-img-label { content: ""; display: flex; align-items: center; justify-content: center; height: 100%; color: var(--chalk); font: 800 1.3rem var(--display); }
.news-body { padding: 14px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.news-body h3 { font-size: 1.2rem; margin: 6px 0 8px; line-height: 1.15; }
.news-body h3 a { color: var(--ink); text-decoration: none; }
.news-body h3 a:hover { color: var(--pitch-2); }
.news-body p { margin: 0 0 12px; color: #3a4842; font-size: .9rem; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.home-news { margin-top: 30px; }
.home-news-head { display: flex; justify-content: space-between; align-items: baseline; }
.home-news-head h2 { margin: 0 0 12px; font-size: 2.1rem; }
.home-news-head a { font-weight: 700; }
.home-news .news-list { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 4px 20px; margin-bottom: 16px; }
.home-news .news-list:empty { display: none; }
.news-list { list-style: none; margin: 0; padding: 0; }
.news-list li { padding: 11px 0; border-top: 1px solid #eef1ec; }
.news-list li:first-child { border-top: 0; }
.news-list a { color: var(--ink); text-decoration: none; font-weight: 700; }
.news-list a:hover { color: var(--pitch-2); }
.news-list .news-meta { display: block; margin-top: 2px; }
.news-own a { color: var(--pitch-deep); }

/* ---------- FAQ & about ---------- */
.home-faq { margin-top: 40px; }
.home-faq h2 { font-size: 2.1rem; }
.home-faq details { background: var(--card); border-radius: 12px; margin-bottom: 8px; box-shadow: var(--shadow); }
.home-faq summary { cursor: pointer; padding: 15px 52px 15px 18px; font-weight: 700; list-style: none; position: relative; }
.home-faq summary::-webkit-details-marker { display: none; }
.home-faq summary::after { content: ""; position: absolute; right: 18px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%;
  background: var(--pitch) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M6 11h10M11 6v10' stroke='%23fff' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") center/100% no-repeat; transition: transform .2s; }
.home-faq details[open] summary::after { transform: rotate(45deg); background-color: var(--gold-deep); }
.home-faq details div { padding: 0 18px 16px; color: #33413a; max-width: 75ch; }
.home-about { margin-top: 40px; background: var(--card); border-radius: var(--radius); padding: 30px 36px; box-shadow: var(--shadow); border-top: 5px solid var(--pitch); }
.home-about h2:first-child { margin-top: 0; font-size: 2.1rem; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 60px; color: #c4d6cb; font-size: .92rem; position: relative;
  background: repeating-linear-gradient(90deg, var(--pitch-deep) 0 80px, #0c4029 80px 160px); border-top: 3px solid var(--chalk); padding: 40px 0 24px; overflow: hidden; }
.site-footer::before { content: ""; position: absolute; left: 50%; top: -120px; width: 240px; height: 240px; margin-left: -120px; border: 3px solid rgba(245,247,242,.18); border-radius: 50%; }
.site-footer .wrap { position: relative; }
.site-footer a { color: #e7f0ea; display: block; text-decoration: none; padding: 3px 0; }
.site-footer a:hover { color: var(--gold); }
.site-footer h4 { color: #fff; margin: 0 0 10px; font-size: 1.25rem; }
.site-footer .muted { color: #a9c0b3; }
.logo-footer { font-size: 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; }
.footer-bottom { border-top: 1px solid rgba(245,247,242,.14); margin-top: 28px; padding-top: 16px; font-size: .82rem; }
.badge-18 { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; border: 2.5px solid var(--gold); color: var(--gold); border-radius: 50%; width: 36px; height: 36px; font: 900 .95rem var(--display); margin-right: 10px; }
.age-note { display: flex; align-items: center; }

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
  .home-duo, .charts { grid-template-columns: 1fr; }
  .news-grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 15.5px; }
  h1, .hero h1 { font-size: 2.2rem; }
  .header-inner { height: 58px; }
  .logo { font-size: 1.45rem; }
  .nav-toggle { display: block; }
  .main-nav { display: none; position: absolute; top: 61px; left: 0; right: 0; background: var(--pitch-deep); flex-direction: column; align-items: stretch; padding: 10px 14px 16px; border-bottom: 3px solid var(--chalk); }
  .nav-open .main-nav { display: flex; }
  .main-nav a { border-radius: 10px; padding: 11px 14px; }
  .main-nav a.nav-vip { margin: 6px 0 0; text-align: center; }
  .home-hero { margin: 16px -6px 16px; padding: 30px 22px 22px; border-radius: 18px; }
  .home-hero h1 { font-size: 2.25rem; }
  .hero-pitch { width: 360px; height: 360px; right: -200px; top: 30%; opacity: .28; }
  .acca-figures { padding: 14px 12px 16px; }
  .acca-figures b { font-size: 1.7rem; }
  .acca-head h2 { font-size: 1.3rem; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-stats div:nth-child(3) { border-left: 0; }
  .hero-stats div:nth-child(n+3) { border-top: 1px solid rgba(245,247,242,.1); }
  .hero-stats b { font-size: 2rem; }
  .tip-head { display: none; }
  .tip { grid-template-columns: 50px 1fr auto; grid-template-areas: "time match result" "time pick odds" "an an an"; row-gap: 6px; padding: 12px 16px; }
  .tip-time { grid-area: time; align-self: start; padding-top: 1px; }
  .tip-match { grid-area: match; }
  .tip-result { grid-area: result; justify-self: end; }
  .tip-pick { grid-area: pick; }
  .tip-odds { grid-area: odds; justify-self: end; }
  .tip-analysis { grid-area: an; }
  .league-name { padding: 11px 16px; }
  .stat-cards { grid-template-columns: 1fr 1fr; }
  .account-grid, .footer-grid { grid-template-columns: 1fr; }
  .vip-banner { flex-direction: column; align-items: flex-start; }
  .article { padding: 22px 20px; }
  .article h1 { font-size: 2.2rem; }
  .home-about { padding: 22px 20px; }
  .tips-title, .home-news-head h2, .home-faq h2, .home-about h2:first-child { font-size: 1.8rem; }
  .plan-featured { transform: none; }
}

/* a chart on its own (VIP page) stays a readable size */
main > .profit-chart { max-width: 760px; margin: 18px auto 8px; }
.plan-featured .btn { background: var(--gold); color: #231a00; }
.plan-featured .btn:hover { background: #f7c460; }

/* ---------- "Payments coming soon" pop-up ---------- */
.soon-dialog { border: 0; border-radius: var(--radius); padding: 22px 24px 24px; max-width: 420px; width: calc(100% - 32px); box-shadow: 0 30px 60px -20px rgba(7,42,27,.55); border-top: 6px solid var(--gold); text-align: center; color: var(--ink); }
.soon-dialog::backdrop { background: rgba(7, 42, 27, .55); }
.soon-dialog h2 { font-size: 1.7rem; margin: 6px 0 10px; }
.soon-dialog p { margin: 0 0 14px; }
.soon-close-row { margin: 0; text-align: right; }
.soon-x { background: none; border: 0; font-size: 1.8rem; line-height: 1; color: var(--muted); cursor: pointer; padding: 0 4px; }
.soon-x:hover { color: var(--ink); }
.soon-badge { display: inline-block; background: var(--gold-bg); color: #7a5300; font-weight: 700; font-size: .85rem; padding: 4px 12px; border-radius: 999px; }
.soon-mail { word-break: break-all; margin-bottom: 12px; }

/* League pages */
.league-links { display: flex; flex-wrap: wrap; gap: 8px; }
.league-links a { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; text-decoration: none; font-weight: 600; font-size: .92rem; }
.league-links a:hover { border-color: var(--pitch-2); }
@media (max-width: 1000px) and (min-width: 761px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Front page background: animated aurora in PredictEdge colours ----------
   Three large soft "light blobs" (gold, pitch green, mint) drift slowly behind the page.
   Optimised: no CSS blur filter (soft edges come from the gradients themselves),
   only GPU-friendly transform animations, a static grain layer, and a lighter version on phones. */
body.page-home { background: #eef3ec; }
.aurora-bg {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; contain: strict;
  background: linear-gradient(165deg, #f6f1e1 0%, #eef4ec 42%, #e2efe7 100%);
}
.aurora-bg span {
  position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%;
  will-change: transform; backface-visibility: hidden;
}
.aurora-bg span:nth-child(1) {           /* floodlight gold, top left */
  top: -28vmax; left: -18vmax;
  background: radial-gradient(circle, rgba(242, 179, 61, .50) 0%, rgba(242, 179, 61, .22) 35%, rgba(242, 179, 61, 0) 68%);
  animation: auroraA 30s ease-in-out infinite alternate;
}
.aurora-bg span:nth-child(2) {           /* pitch green, right */
  top: -10vmax; right: -26vmax;
  background: radial-gradient(circle, rgba(21, 122, 76, .38) 0%, rgba(21, 122, 76, .16) 38%, rgba(21, 122, 76, 0) 68%);
  animation: auroraB 38s ease-in-out infinite alternate;
}
.aurora-bg span:nth-child(3) {           /* fresh mint, bottom */
  bottom: -34vmax; left: 18vmax;
  background: radial-gradient(circle, rgba(110, 210, 155, .45) 0%, rgba(110, 210, 155, .18) 38%, rgba(110, 210, 155, 0) 68%);
  animation: auroraC 46s ease-in-out infinite alternate;
}
.aurora-bg::after {                      /* fine film grain + soft vignette for depth (static) */
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 120% 90% at 50% 40%, transparent 55%, rgba(10, 58, 38, .10) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.05 0 0 0 0 0.2 0 0 0 0 0.12 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .5;
}
@keyframes auroraA { from { transform: translate3d(0, 0, 0) scale(1); }   to { transform: translate3d(22vmax, 14vmax, 0) scale(1.15); } }
@keyframes auroraB { from { transform: translate3d(0, 0, 0) scale(1.05); } to { transform: translate3d(-24vmax, 18vmax, 0) scale(.92); } }
@keyframes auroraC { from { transform: translate3d(0, 0, 0) scale(.95); }  to { transform: translate3d(-16vmax, -20vmax, 0) scale(1.12); } }

/* Phones: two blobs, slower movement, saves battery on budget handsets */
@media (max-width: 760px) {
  .aurora-bg span { width: 95vmax; height: 95vmax; }
  .aurora-bg span:nth-child(3) { display: none; }
  .aurora-bg span:nth-child(1) { animation-duration: 45s; }
  .aurora-bg span:nth-child(2) { animation-duration: 55s; }
}
@media (prefers-reduced-motion: reduce) { .aurora-bg span { animation: none !important; } }
/* Cards float slightly above the aurora */
body.page-home .home-duo > *, body.page-home .league, body.page-home .home-faq details { box-shadow: 0 1px 2px rgba(10,58,38,.06), 0 14px 32px -18px rgba(10,58,38,.35); }

/* Live score badge */
.res-live { background: #fdecea; color: #b42318; font: 800 .95rem/1 var(--display); padding: 5px 9px; }
.res-live small { font: 700 .78rem var(--text); margin-left: 3px; }
.live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #e5372b; margin-right: 6px; vertical-align: 2px; animation: livePulse 1.6s ease-in-out infinite; }
@keyframes livePulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }
