:root{
  --bg:#030814;
  --bg-2:#07111f;
  --panel:#0a1424;
  --panel-2:#0d1a2d;
  --line:rgba(255,255,255,.08);
  --text:#f5f7fb;
  --muted:#aab4c5;
  --green:#46e04f;
  --green-2:#1fb737;
  --green-soft:rgba(70,224,79,.14);
  --yellow:#ffcc4d;
  --red:#ff5d5d;
  --blue:#5aa8ff;
  --shadow:0 18px 40px rgba(0,0,0,.28);
  --radius:22px;
}

*{
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

body{
  margin:0;
  font-family:Arial, Helvetica, sans-serif;
  color:var(--text);
  background:
    radial-gradient(circle at 15% 0%, rgba(44,255,99,.08), transparent 18%),
    radial-gradient(circle at 85% 8%, rgba(90,168,255,.08), transparent 18%),
    linear-gradient(180deg,#020611 0%, #06101f 35%, #030814 100%);
}

img{
  max-width:100%;
  display:block;
}

a{
  color:inherit;
  text-decoration:none;
}

button,
input{
  font:inherit;
}

.container{
  width:min(1240px, calc(100% - 32px));
  margin:0 auto;
}

/* HEADER */
.site-header{
  position:sticky;
  top:0;
  z-index:100;
  backdrop-filter:blur(12px);
  background:rgba(3,8,20,.82);
  border-bottom:1px solid var(--line);
}

.header-inner{
  min-height:82px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  font-size:22px;
  font-weight:800;
  white-space:nowrap;
}

.brand-mark{
  width:36px;
  height:36px;
  border-radius:10px;
  background:linear-gradient(135deg,var(--green),#0ea934);
  box-shadow:0 0 24px rgba(70,224,79,.25);
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:900;
  color:#03110a;
}

.mobile-nav-scroll{
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
}

.mobile-nav-scroll::-webkit-scrollbar{
  height:6px;
}

.mobile-nav-scroll::-webkit-scrollbar-thumb{
  background:#173152;
  border-radius:999px;
}

.main-nav{
  display:flex;
  gap:10px;
  min-width:max-content;
  align-items:center;
}

.main-nav a{
  color:var(--muted);
  font-size:15px;
  font-weight:700;
  padding:10px 12px;
  border-radius:12px;
  transition:.2s ease;
}

.main-nav a:hover,
.main-nav a.active{
  color:#fff;
  background:rgba(255,255,255,.05);
}

.live-link{
  display:inline-flex;
  align-items:center;
  gap:7px;
}

.live-dot{
  width:9px;
  height:9px;
  border-radius:999px;
  background:var(--green);
  box-shadow:0 0 12px rgba(70,224,79,.8);
  display:inline-block;
}

.header-actions{
  display:flex;
  align-items:center;
  gap:10px;
}

/* BUTTONS */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:14px;
  border:1px solid var(--line);
  padding:12px 18px;
  font-weight:800;
  transition:.2s ease;
  white-space:nowrap;
}

.btn-dark{
  background:rgba(255,255,255,.03);
  color:#fff;
}

.btn-dark:hover{
  background:rgba(255,255,255,.06);
}

.btn-green{
  color:#fff;
  border-color:rgba(70,224,79,.25);
  background:linear-gradient(180deg,var(--green),var(--green-2));
  box-shadow:0 14px 28px rgba(31,183,55,.22);
}

.btn-green:hover{
  filter:brightness(1.05);
}

.btn-outline{
  color:#fff;
  background:rgba(255,255,255,.03);
  border-color:rgba(70,224,79,.35);
}

.btn-large{
  padding:15px 22px;
  font-size:17px;
}

.btn-sm{
  padding:10px 14px;
  border-radius:12px;
  font-size:14px;
}

.btn-live{
  border-color:rgba(70,224,79,.22);
  color:#9cf6a3;
  background:rgba(70,224,79,.06);
}

.full-width-btn{
  width:100%;
}

/* PAGE */
.page-wrap{
  padding:26px 0 0;
}

/* HERO */
.hero{
  padding:28px 0 18px;
}

.hero-grid{
  display:grid;
  grid-template-columns:1.35fr .65fr;
  gap:22px;
}

.hero-main{
  min-height:340px;
  border:1px solid var(--line);
  border-radius:28px;
  overflow:hidden;
  position:relative;
  box-shadow:var(--shadow);
  background:
    linear-gradient(90deg, rgba(3,8,20,.92) 0%, rgba(3,8,20,.74) 44%, rgba(3,8,20,.35) 100%),
    url('/static/images/hero-stadium.jpg') center/cover no-repeat,
    radial-gradient(circle at center, rgba(70,224,79,.08), transparent 35%),
    var(--panel);
}

.hero-main::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:linear-gradient(180deg, transparent 0%, rgba(3,8,20,.35) 100%);
}

.hero-main::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:1;
  pointer-events:none;
  background:linear-gradient(115deg, transparent 0%, transparent 35%, rgba(255,255,255,.05) 48%, transparent 60%, transparent 100%);
  transform:translateX(-120%);
  animation:heroSweep 7s ease-in-out infinite;
}

.hero-animated{
  position:relative;
  isolation:isolate;
  animation:heroPan 18s ease-in-out infinite alternate;
  will-change:transform, background-position;
}

.hero-glow{
  position:absolute;
  inset:-10%;
  z-index:1;
  pointer-events:none;
  background:
    radial-gradient(circle at 20% 30%, rgba(70,224,79,0.12), transparent 18%),
    radial-gradient(circle at 75% 25%, rgba(90,168,255,0.12), transparent 18%),
    radial-gradient(circle at 55% 75%, rgba(70,224,79,0.08), transparent 22%);
  filter:blur(20px);
  animation:heroGlowMove 10s ease-in-out infinite alternate;
}

.hero-overlay{
  position:absolute;
  inset:0;
  background:linear-gradient(180deg, rgba(3,8,18,0.12), rgba(3,8,18,0.30));
}

.hero-content{
  position:relative;
  z-index:2;
  padding:44px 46px;
  max-width:620px;
}

.hero-kicker{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 14px;
  border-radius:999px;
  background:rgba(70,224,79,.12);
  color:#9cf6a3;
  font-size:13px;
  font-weight:900;
  letter-spacing:.03em;
  margin-bottom:18px;
}

.hero-title{
  margin:0 0 14px;
  font-size:62px;
  line-height:1.02;
  font-weight:900;
}

.hero-title .accent{
  color:#66ff76;
  text-shadow:0 0 18px rgba(70,224,79,.25);
}

.hero-subtitle{
  margin:0 0 28px;
  color:#c1cad8;
  font-size:18px;
  line-height:1.55;
}

.hero-buttons{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
}

.hero-side{
  display:flex;
  flex-direction:column;
  gap:20px;
}

.ai-panel,
.premium-panel,
.top-teams-panel,
.panel-box,
.match-prediction-card,
.live-strip{
  border:1px solid var(--line);
  border-radius:24px;
  background:linear-gradient(180deg, rgba(10,20,36,.96), rgba(5,11,22,.98));
  box-shadow:var(--shadow);
}

.ai-panel{
  padding:24px;
}

.panel-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:16px;
}

.panel-title{
  margin:0;
  font-size:18px;
  font-weight:900;
}

.panel-chip{
  border-radius:999px;
  padding:7px 10px;
  background:rgba(70,224,79,.12);
  color:#9cf6a3;
  font-size:11px;
  font-weight:900;
  text-transform:uppercase;
}

.feature-list{
  display:grid;
  gap:12px;
  margin:0 0 18px;
  padding:0;
  list-style:none;
}

.feature-list li{
  color:#d7dfeb;
  display:flex;
  align-items:center;
  gap:10px;
  font-size:15px;
}

.feature-check{
  color:#7ef58f;
  font-weight:900;
}

.ai-result{
  margin-top:16px;
  padding:16px;
  border-radius:16px;
  background:rgba(70,224,79,.08);
  border:1px solid rgba(70,224,79,.14);
}

.ai-result-label{
  color:#a8b2c3;
  font-size:14px;
  margin-bottom:6px;
}

.ai-result-value{
  color:#8fff9a;
  font-size:24px;
  font-weight:900;
  line-height:1.15;
}

.confidence-text{
  margin-top:6px;
  color:#b5ffc0;
  font-size:13px;
}

.premium-note{
  margin-top:18px;
  color:#ffc861;
  font-size:14px;
  font-weight:700;
}

/* SECTION TITLES */
.section{
  padding:8px 0 22px;
}

.section-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
  margin-bottom:16px;
}

.section-title-wrap{
  display:flex;
  flex-direction:column;
  gap:6px;
}

.section-title{
  margin:0;
  font-size:24px;
  font-weight:900;
}

.section-subtitle{
  color:var(--muted);
  font-size:14px;
}

/* GRID */
.main-grid{
  display:grid;
  grid-template-columns:1fr 320px;
  gap:22px;
}

/* TOP MATCHES */
.top-matches-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
}

.match-prediction-card{
  padding:20px;
}

.match-row{
  display:grid;
  grid-template-columns:1fr auto 1fr;
  gap:12px;
  align-items:center;
  margin-bottom:14px;
}

.club{
  display:flex;
  align-items:center;
  gap:12px;
}

.club.right{
  justify-content:flex-end;
  text-align:right;
}

.club-logo{
  width:58px;
  height:58px;
  border-radius:16px;
  background:rgba(255,255,255,.04);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:6px;
  flex-shrink:0;
}

.club-name{
  font-size:15px;
  font-weight:800;
  line-height:1.25;
}

.match-center{
  text-align:center;
}

.vs-big{
  font-size:22px;
  font-weight:900;
  text-transform:uppercase;
}

.meta-line{
  margin-top:14px;
  color:var(--muted);
  font-size:14px;
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

.prediction-box{
  display:grid;
  grid-template-columns:1fr auto;
  gap:12px;
  border:1px solid rgba(255,255,255,.06);
  background:rgba(255,255,255,.03);
  border-radius:16px;
  padding:16px;
  margin:16px 0 14px;
}

.prediction-label{
  color:#d1d9e6;
  font-size:14px;
}

.prediction-label strong{
  color:#8fff9a;
}

.prediction-percent{
  font-size:22px;
  font-weight:900;
  margin-top:6px;
}

.confidence-box{
  min-width:120px;
}

.confidence-title{
  color:var(--muted);
  font-size:13px;
  margin-bottom:8px;
}

.progress{
  height:10px;
  border-radius:999px;
  overflow:hidden;
  background:rgba(255,255,255,.08);
}

.progress-bar{
  height:100%;
  border-radius:999px;
  background:linear-gradient(90deg,var(--green),#7bff85);
}

.confidence-value{
  color:#dbe3ef;
  font-size:14px;
  margin-top:8px;
  text-align:right;
}

.prediction-lock-box{
  margin:16px 0 14px;
  padding:16px;
  border-radius:16px;
  background:rgba(255,255,255,.03);
  border:1px solid rgba(255,255,255,.06);
  display:flex;
  flex-direction:column;
  gap:10px;
}

.prediction-lock-title{
  font-size:16px;
  font-weight:900;
  color:#ffd27a;
}

.prediction-lock-text{
  color:var(--muted);
  line-height:1.5;
  font-size:14px;
}

.card-footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}

.tip{
  color:#efd277;
  font-size:15px;
  font-weight:700;
}

.footer-actions{
  display:flex;
  gap:10px;
}

/* LIVE STRIP */
.live-strip{
  margin-top:6px;
  padding:18px;
}

.live-strip-grid{
  display:grid;
  grid-template-columns:1fr auto 1fr auto;
  gap:18px;
  align-items:center;
}

.live-team-side{
  display:flex;
  align-items:center;
  gap:14px;
}

.live-team-side img{
  width:54px;
  height:54px;
  object-fit:contain;
  border-radius:14px;
  background:rgba(255,255,255,.04);
  padding:4px;
}

.live-team-name{
  font-size:18px;
  font-weight:900;
}

.live-team-sub{
  margin-top:4px;
  color:var(--muted);
  font-size:14px;
}

.live-score-box{
  display:flex;
  align-items:center;
  gap:10px;
  border:1px solid rgba(255,255,255,.06);
  background:rgba(255,255,255,.03);
  border-radius:16px;
  padding:14px 18px;
}

.live-big-score{
  font-size:42px;
  font-weight:900;
  line-height:1;
}

.live-minute{
  color:#7ef58f;
  font-size:14px;
  font-weight:800;
}

.live-prediction{
  border:1px solid rgba(255,255,255,.06);
  background:rgba(255,255,255,.03);
  border-radius:16px;
  padding:14px 18px;
  min-width:240px;
}

.live-prediction-label{
  color:var(--muted);
  font-size:14px;
  margin-bottom:6px;
}

.live-prediction-value{
  color:#8fff9a;
  font-size:20px;
  font-weight:900;
}

.live-locked .live-prediction-value{
  color:#ffd27a;
}

.live-percent{
  font-size:42px;
  font-weight:900;
  text-align:right;
}

.locked-percent{
  color:#9ca9be;
  font-size:28px;
}

/* BOTTOM GRID */
.bottom-duo-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:22px;
}

.panel-box{
  padding:20px;
}

.panel-header{
  margin-bottom:14px;
}

.panel-kicker{
  font-size:12px;
  color:#60a5fa;
  text-transform:uppercase;
  font-weight:900;
  letter-spacing:.05em;
  margin-bottom:4px;
}

.panel-header h3{
  margin:0;
  font-size:28px;
}

/* TABLE */
.table-mobile-wrap{
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
}

.styled-table{
  width:100%;
  border-collapse:collapse;
}

.styled-table th,
.styled-table td{
  padding:10px 8px;
  border-bottom:1px solid rgba(255,255,255,.08);
  text-align:left;
  vertical-align:middle;
}

.styled-table th{
  color:var(--muted);
  font-size:14px;
}

.table-team-cell{
  display:flex;
  align-items:center;
  gap:8px;
  min-width:0;
}

.table-team-cell img{
  width:22px;
  height:22px;
  object-fit:contain;
  border-radius:6px;
  background:rgba(255,255,255,.04);
  padding:1px;
  flex-shrink:0;
}

.table-team-cell span{
  display:inline-block;
  font-size:14px;
  line-height:1.2;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width:220px;
}

/* SCORERS */
.scorer-stack{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.scorer-card{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  padding:14px 16px;
  border-radius:16px;
  background:rgba(255,255,255,.03);
  border:1px solid rgba(255,255,255,.06);
}

.scorer-left{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
}

.scorer-left img{
  width:34px;
  height:34px;
  object-fit:contain;
  border-radius:10px;
  background:rgba(255,255,255,.04);
  padding:3px;
}

.scorer-name{
  font-weight:900;
  font-size:16px;
}

.scorer-team{
  font-size:13px;
  color:var(--muted);
}

.scorer-right{
  font-size:30px;
  font-weight:900;
  color:#fff;
}

/* RIGHT RAIL */
.right-rail{
  display:flex;
  flex-direction:column;
  gap:18px;
}

.premium-panel{
  padding:24px;
  background:
    radial-gradient(circle at top left, rgba(70,224,79,.10), transparent 28%),
    linear-gradient(180deg, rgba(8,16,31,.96), rgba(5,11,24,.98));
}

.upgrade-title{
  font-size:36px;
  font-weight:900;
  color:#ffe27a;
}

.upgrade-subtitle{
  margin-top:6px;
  color:var(--muted);
  font-size:20px;
}

.bullet-list{
  display:grid;
  gap:12px;
  list-style:none;
  padding:0;
  margin:22px 0;
}

.bullet-list li{
  display:flex;
  align-items:center;
  gap:10px;
  color:#dbe3ef;
}

.top-teams-panel{
  padding:22px;
}

.sidebar-title{
  font-size:26px;
  font-weight:900;
  margin-bottom:18px;
}

.top-team-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  padding:12px 0;
  border-bottom:1px solid rgba(255,255,255,.06);
}

.top-team-row:last-child{
  border-bottom:none;
}

.team-mini{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}

.team-mini-logo{
  width:28px;
  height:28px;
  object-fit:contain;
  border-radius:8px;
  background:rgba(255,255,255,.04);
  padding:2px;
}

.hot-tag,
.cold-tag{
  font-size:12px;
  font-weight:900;
  padding:6px 8px;
  border-radius:999px;
}

.hot-tag{
  background:rgba(239,68,68,.12);
  color:#ff8d8d;
}

.cold-tag{
  background:rgba(90,168,255,.12);
  color:#90c7ff;
}

/* FOOTER */
.site-footer{
  margin-top:28px;
  border-top:1px solid var(--line);
  background:rgba(2,6,23,.65);
}

.footer-grid{
  display:grid;
  grid-template-columns:1.2fr .7fr .7fr 1fr;
  gap:28px;
  padding:32px 0;
}

.footer-brand{
  display:flex;
  align-items:center;
  gap:12px;
  font-size:18px;
  font-weight:900;
  margin-bottom:14px;
}

.footer-text{
  color:var(--muted);
  line-height:1.7;
}

.footer-title{
  margin:0 0 14px;
  font-size:20px;
  font-weight:900;
}

.footer-links{
  list-style:none;
  padding:0;
  margin:0;
  display:grid;
  gap:12px;
}

.footer-links a{
  color:#d5dcea;
}

.subscribe-box{
  display:flex;
  gap:10px;
  margin-top:14px;
}

.subscribe-box input{
  flex:1;
  min-width:0;
  border:1px solid var(--line);
  background:rgba(255,255,255,.04);
  color:#fff;
  border-radius:14px;
  padding:14px 16px;
  outline:none;
}

.footer-bottom{
  border-top:1px solid rgba(255,255,255,.06);
  color:var(--muted);
  padding:18px 0 26px;
  text-align:center;
}

/* ERROR */
.error-box{
  margin-bottom:18px;
  background:rgba(127,29,29,.22);
  color:#fecaca;
  padding:14px 16px;
  border-radius:14px;
  border:1px solid rgba(239,68,68,.18);
}

/* LIVE FX */
.live-glow{
  box-shadow:
    0 0 0 1px rgba(50,215,75,.18),
    0 0 24px rgba(50,215,75,.12),
    0 18px 38px rgba(0,0,0,.20);
  animation:livePulse 2.2s infinite ease-in-out;
}

@keyframes livePulse{
  0%{
    box-shadow:
      0 0 0 1px rgba(50,215,75,.18),
      0 0 18px rgba(50,215,75,.10),
      0 18px 38px rgba(0,0,0,.20);
  }
  50%{
    box-shadow:
      0 0 0 1px rgba(50,215,75,.26),
      0 0 30px rgba(50,215,75,.18),
      0 18px 40px rgba(0,0,0,.24);
  }
  100%{
    box-shadow:
      0 0 0 1px rgba(50,215,75,.18),
      0 0 18px rgba(50,215,75,.10),
      0 18px 38px rgba(0,0,0,.20);
  }
}

@keyframes heroPan{
  0%{
    background-position:center center;
    transform:scale(1);
  }
  50%{
    background-position:52% 48%;
    transform:scale(1.015);
  }
  100%{
    background-position:48% 52%;
    transform:scale(1.03);
  }
}

@keyframes heroGlowMove{
  0%{
    transform:translate3d(-8px,0,0) scale(1);
    opacity:.8;
  }
  50%{
    transform:translate3d(10px,-6px,0) scale(1.03);
    opacity:1;
  }
  100%{
    transform:translate3d(-4px,8px,0) scale(1.02);
    opacity:.85;
  }
}

@keyframes heroSweep{
  0%{
    transform:translateX(-120%);
  }
  45%{
    transform:translateX(-120%);
  }
  70%{
    transform:translateX(120%);
  }
  100%{
    transform:translateX(120%);
  }
}

/* MOBILE */
@media (max-width:1180px){
  .hero-grid,
  .main-grid,
  .footer-grid{
    grid-template-columns:1fr;
  }

  .top-matches-grid,
  .bottom-duo-grid{
    grid-template-columns:1fr;
  }

  .right-rail{
    order:2;
  }
}

@media (max-width:980px){
  .header-inner{
    min-height:auto;
    padding:14px 0;
    flex-direction:column;
    align-items:flex-start;
  }

  .main-nav{
    overflow-x:auto;
    flex-wrap:nowrap;
    width:100%;
    padding-bottom:4px;
  }

  .main-nav a{
    white-space:nowrap;
  }

  .hero-title{
    font-size:46px;
  }

  .live-strip-grid{
    grid-template-columns:1fr;
    text-align:left;
  }

  .live-percent{
    text-align:left;
    font-size:34px;
  }
}

@media (max-width:640px){
  .container{
    width:min(100% - 24px, 1240px);
  }

  .brand{
    font-size:20px;
  }

  .brand-mark{
    width:32px;
    height:32px;
  }

  .header-actions{
    width:100%;
    justify-content:flex-start;
  }

  .hero{
    padding:18px 0 12px;
  }

  .hero-content{
    padding:24px 22px;
  }

  .hero-title{
    font-size:36px;
  }

  .hero-subtitle{
    font-size:16px;
  }

  .hero-buttons{
    flex-direction:column;
    align-items:stretch;
  }

  .btn{
    width:100%;
  }

  .match-row{
    grid-template-columns:1fr;
    text-align:center;
  }

  .club,
  .club.right{
    justify-content:center;
    text-align:center;
  }

  .prediction-box{
    grid-template-columns:1fr;
  }

  .card-footer{
    flex-direction:column;
    align-items:stretch;
  }

  .footer-actions{
    width:100%;
    display:grid;
    grid-template-columns:1fr 1fr;
  }

  .subscribe-box{
    flex-direction:column;
  }
}

/* ===== HEADER OPTIMIERT ===== */

.site-header{
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(3, 8, 20, 0.88);
  border-bottom: 1px solid var(--line);
}

.header-inner{
  min-height: 86px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
}

.brand{
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: 800;
  white-space: nowrap;
}

.brand-mark{
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--green), #0ea934);
  box-shadow: 0 0 24px rgba(70,224,79,.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: #03110a;
  flex-shrink: 0;
}

.mobile-nav-scroll{
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-nav-scroll::-webkit-scrollbar{
  height: 6px;
}

.mobile-nav-scroll::-webkit-scrollbar-thumb{
  background: #173152;
  border-radius: 999px;
}

.main-nav{
  display: flex;
  gap: 10px;
  min-width: max-content;
  align-items: center;
  padding-bottom: 2px;
}

.main-nav a{
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
  padding: 10px 12px;
  border-radius: 12px;
  transition: .2s ease;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active{
  color: #fff;
  background: rgba(255,255,255,.05);
}

.live-link{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: max-content;
}

.live-dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 12px rgba(70,224,79,.8);
  display: inline-block;
  flex-shrink: 0;
}

.header-right{
  display: flex;
  align-items: center;
  gap: 14px;
}

.language-switch{
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-btn{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 12px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  transition: .2s ease;
}

.lang-btn:hover,
.lang-btn.active{
  color: #fff;
  background: rgba(255,255,255,.06);
  border-color: rgba(90,168,255,.20);
}

.lang-btn img{
  width: 18px;
  height: 18px;
  border-radius: 999px;
  object-fit: cover;
  flex-shrink: 0;
}

.header-actions{
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-btn{
  min-width: 108px;
}

/* ===== MOBILE HEADER ===== */

@media (max-width: 1180px){
  .header-inner{
    grid-template-columns: 1fr;
    align-items: stretch;
    padding: 14px 0;
  }

  .header-right{
    justify-content: space-between;
    flex-wrap: wrap;
  }
}

@media (max-width: 780px){
  .brand{
    font-size: 20px;
  }

  .header-right{
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .language-switch{
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
  }

  .language-switch::-webkit-scrollbar{
    height: 5px;
  }

  .language-switch::-webkit-scrollbar-thumb{
    background: #173152;
    border-radius: 999px;
  }

  .header-actions{
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .header-btn{
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 520px){
  .brand{
    font-size: 18px;
  }

  .brand-mark{
    width: 32px;
    height: 32px;
    font-size: 18px;
  }

  .main-nav a{
    font-size: 14px;
    padding: 9px 11px;
  }

  .lang-btn{
    padding: 7px 9px;
    font-size: 12px;
  }

  .lang-btn img{
    width: 16px;
    height: 16px;
  }
}

/* ===== MOBILE FIX FINAL ===== */

html, body {
  overflow-x: hidden;
}

body {
  max-width: 100vw;
}

.site-header,
.page-wrap,
.site-footer,
.hero,
.section,
.main-grid,
.hero-grid,
.bottom-duo-grid,
.top-matches-grid,
.footer-grid {
  max-width: 100%;
}

@media (max-width: 900px) {
  .container {
    width: calc(100% - 24px);
    margin: 0 auto;
    padding: 0;
  }

  .site-header {
    overflow: hidden;
  }

  .header-inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    min-height: auto;
    padding: 12px 0;
  }

  .brand {
    font-size: 19px;
    gap: 10px;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
    font-size: 18px;
  }

  .mobile-nav-scroll {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
  }

  .main-nav {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    min-width: max-content;
    width: max-content;
    padding-right: 12px;
  }

  .main-nav a {
    white-space: nowrap;
    font-size: 14px;
    padding: 9px 11px;
    border-radius: 10px;
  }

  .header-right {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }

  .language-switch {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
  }

  .language-switch .lang-btn {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .header-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
  }

  .header-btn,
  .header-actions .btn {
    width: 100%;
    min-width: 0;
  }

  .hero {
    padding: 16px 0 10px;
  }

  .hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .hero-main {
    min-height: 260px;
    border-radius: 18px;
  }

  .hero-content {
    padding: 22px 18px;
    max-width: 100%;
  }

  .hero-kicker {
    font-size: 11px;
    padding: 8px 10px;
    margin-bottom: 12px;
  }

  .hero-title {
    font-size: 34px;
    line-height: 1.08;
  }

  .hero-subtitle {
    font-size: 15px;
    margin: 12px 0 20px;
  }

  .hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .hero-side,
  .right-rail {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .ai-panel,
  .premium-panel,
  .top-teams-panel,
  .panel-box,
  .match-prediction-card,
  .live-strip {
    border-radius: 18px;
    padding: 16px;
  }

  .main-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .top-matches-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .match-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    text-align: center;
  }

  .club,
  .club.right {
    justify-content: center;
    text-align: center;
  }

  .club-logo {
    width: 52px;
    height: 52px;
    border-radius: 14px;
  }

  .club-name {
    font-size: 15px;
  }

  .prediction-box {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .prediction-percent {
    font-size: 30px;
  }

  .card-footer {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .footer-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
  }

  .live-strip-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .live-team-side {
    justify-content: flex-start;
  }

  .live-big-score {
    font-size: 34px;
  }

  .live-prediction {
    min-width: 0;
    width: 100%;
  }

  .live-percent {
    font-size: 30px;
    text-align: left;
  }

  .bottom-duo-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .panel-header h3 {
    font-size: 22px;
  }

  .table-mobile-wrap {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .styled-table {
    min-width: 360px;
    width: 100%;
  }

  .styled-table th,
  .styled-table td {
    padding: 10px 8px;
    font-size: 13px;
  }

  .table-team-cell img {
    width: 20px;
    height: 20px;
  }

  .table-team-cell span {
    font-size: 13px;
    max-width: 160px;
  }

  .scorer-card {
    padding: 12px 14px;
    border-radius: 14px;
  }

  .scorer-left img {
    width: 28px;
    height: 28px;
  }

  .scorer-name {
    font-size: 14px;
  }

  .scorer-team {
    font-size: 12px;
  }

  .scorer-right {
    font-size: 24px;
  }

  .upgrade-title {
    font-size: 28px;
  }

  .upgrade-subtitle {
    font-size: 17px;
  }

  .bullet-list li {
    font-size: 15px;
  }

  .sidebar-title {
    font-size: 21px;
  }

  .team-mini span {
    font-size: 14px;
  }

  .footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 24px 0;
  }

  .subscribe-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .subscribe-box .btn {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .container {
    width: calc(100% - 20px);
  }

  .brand {
    font-size: 18px;
  }

  .hero-title {
    font-size: 30px;
  }

  .hero-subtitle {
    font-size: 14px;
  }

  .section-title {
    font-size: 20px;
  }

  .section-subtitle {
    font-size: 13px;
  }

  .main-nav a {
    font-size: 13px;
    padding: 8px 10px;
  }

  .lang-btn {
    font-size: 12px;
    padding: 7px 8px;
  }

  .lang-btn img {
    width: 16px;
    height: 16px;
  }

  .btn {
    padding: 11px 14px;
  }

  .hero-main,
  .ai-panel,
  .premium-panel,
  .top-teams-panel,
  .panel-box,
  .match-prediction-card,
  .live-strip {
    border-radius: 16px;
  }

  .club-logo {
    width: 48px;
    height: 48px;
  }

  .live-big-score {
    font-size: 30px;
  }

  .prediction-percent {
    font-size: 26px;
  }

  .upgrade-title {
    font-size: 24px;
  }

  .styled-table {
    min-width: 320px;
  }

  .table-team-cell span {
    max-width: 130px;
  }
}

/* ===== MOBILE FIRST HEADER WITH BURGER ===== */

.header-mobile-top {
  display: none;
}

.header-desktop {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  min-height: 86px;
}

.burger-btn {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.burger-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 999px;
  transition: .25s ease;
}

.burger-btn.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger-btn.open span:nth-child(2) {
  opacity: 0;
}

.burger-btn.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  border-top: 1px solid rgba(255,255,255,.06);
  background: rgba(3, 8, 20, 0.98);
}

.mobile-menu.open {
  display: block;
}

.mobile-menu-inner {
  padding: 14px 0 18px;
}

.mobile-menu-nav {
  display: grid;
  gap: 8px;
}

.mobile-menu-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255,255,255,.03);
  color: var(--muted);
  font-weight: 700;
}

.mobile-menu-nav a.active {
  color: #fff;
  background: rgba(255,255,255,.07);
}

.mobile-live-link {
  color: #fff !important;
}

.mobile-language-switch {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 14px 0 6px;
}

.mobile-language-switch::-webkit-scrollbar {
  height: 5px;
}

.mobile-language-switch::-webkit-scrollbar-thumb {
  background: #173152;
  border-radius: 999px;
}

.mobile-header-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding-top: 12px;
}

.language-switch {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 12px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  transition: .2s ease;
  flex: 0 0 auto;
}

.lang-btn:hover,
.lang-btn.active {
  color: #fff;
  background: rgba(255,255,255,.06);
  border-color: rgba(90,168,255,.20);
}

.lang-btn img {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  object-fit: cover;
  flex-shrink: 0;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-btn {
  min-width: 108px;
}

@media (max-width: 980px) {
  .header-desktop {
    display: none;
  }

  .header-mobile-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 74px;
    gap: 14px;
  }

  .burger-btn {
    display: inline-flex;
  }
}

/* =========================================================
   HEADER / BASE LAYOUT
========================================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(4, 10, 24, 0.94);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}

.header-mobile-top {
    display: none;
}

.header-desktop {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding: 16px 0 14px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: fit-content;
}

.brand-mark {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    font-weight: 800;
    color: #03120a;
    background: linear-gradient(135deg, #7bff63 0%, #2ddf4f 100%);
    box-shadow: 0 10px 24px rgba(61, 255, 96, 0.28);
}

.brand > div:last-child {
    font-size: 2rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.mobile-nav-scroll {
    flex: 1;
    min-width: 0;
}

.section-mini-label {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 10px;
}

.header-right {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    min-width: fit-content;
}

.language-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.language-switch {
    display: flex;
    align-items: center;
    gap: 10px;
}

.language-switch a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-decoration: none;
    color: rgba(255, 255, 255, 0.88);
    font-weight: 700;
    transition: all 0.2s ease;
}

.language-switch a:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.14);
    transform: translateY(-1px);
}

.language-switch a.active {
    background: rgba(85, 125, 255, 0.14);
    border-color: rgba(85, 125, 255, 0.34);
    box-shadow: inset 0 0 0 1px rgba(85, 125, 255, 0.16);
}

.language-switch img {
    width: 24px;
    height: 24px;
    object-fit: cover;
    border-radius: 999px;
    flex-shrink: 0;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-actions .btn,
.mobile-header-actions .btn {
    min-width: 130px;
    justify-content: center;
}

.burger-btn {
    display: none;
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
}

.burger-btn span {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 99px;
    margin: 0 auto;
    background: #ffffff;
    transition: all 0.2s ease;
}

.burger-btn.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.burger-btn.open span:nth-child(2) {
    opacity: 0;
}

.burger-btn.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* =========================================================
   LEAGUE BAR
========================================================= */

.league-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(86, 128, 255, 0.35) transparent;
}

.league-nav::-webkit-scrollbar {
    height: 6px;
}

.league-nav::-webkit-scrollbar-track {
    background: transparent;
}

.league-nav::-webkit-scrollbar-thumb {
    background: rgba(86, 128, 255, 0.35);
    border-radius: 999px;
}

.league-nav a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 16px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.82);
    font-weight: 700;
    font-size: 0.98rem;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    transition: all 0.2s ease;
}

.league-nav a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.055);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
}

.league-nav a.active {
    color: #ffffff;
    background: rgba(73, 114, 255, 0.14);
    border-color: rgba(73, 114, 255, 0.28);
    box-shadow:
        0 0 0 1px rgba(73, 114, 255, 0.10),
        0 10px 24px rgba(24, 57, 180, 0.16);
}

.league-nav a.active::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: -7px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, #4d8cff 0%, #4fd0ff 100%);
}

.nav-flag {
    font-size: 1rem;
    line-height: 1;
}

.live-link {
    color: #98ff87 !important;
}

.live-link .live-dot,
.mobile-live-link .live-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #7bff63;
    box-shadow: 0 0 0 5px rgba(123, 255, 99, 0.12);
    display: inline-block;
    flex-shrink: 0;
}

/* =========================================================
   MOBILE MENU
========================================================= */

.mobile-menu {
    display: none;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background:
        linear-gradient(180deg, rgba(6, 12, 29, 0.98) 0%, rgba(4, 10, 24, 0.98) 100%);
}

.mobile-menu.open {
    display: block;
}

.mobile-menu-inner {
    padding: 18px 0 26px;
}

.mobile-menu-label {
    margin-top: 6px;
    margin-bottom: 12px;
}

.mobile-menu-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-menu-nav a,
.mobile-live-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 18px;
    border-radius: 18px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.05rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
}

.mobile-menu-nav a.active {
    color: #ffffff;
    background: rgba(73, 114, 255, 0.14);
    border-color: rgba(73, 114, 255, 0.28);
}

.mobile-language-switch {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.mobile-language-switch a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 68px;
    padding: 12px 14px;
    border-radius: 16px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.88);
    font-weight: 800;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-language-switch a.active {
    background: rgba(73, 114, 255, 0.14);
    border-color: rgba(73, 114, 255, 0.28);
}

.mobile-header-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 18px;
}

/* =========================================================
   GENERIC BUTTON POLISH
========================================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 22px;
    border-radius: 18px;
    font-weight: 800;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-dark {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-dark:hover {
    background: rgba(255, 255, 255, 0.06);
}

.btn-green {
    color: #ffffff;
    background: linear-gradient(135deg, #79df56 0%, #31d34a 100%);
    border: 1px solid rgba(83, 255, 113, 0.28);
    box-shadow: 0 18px 35px rgba(65, 232, 79, 0.22);
}

.btn-green:hover {
    transform: translateY(-1px);
    box-shadow: 0 22px 40px rgba(65, 232, 79, 0.28);
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1280px) {
    .header-desktop {
        gap: 18px;
    }

    .brand > div:last-child {
        font-size: 1.7rem;
    }

    .league-nav a {
        padding: 11px 14px;
        font-size: 0.94rem;
    }

    .language-switch a {
        padding: 10px 12px;
    }
}

@media (max-width: 1100px) {
    .language-group {
        display: none;
    }

    .burger-btn {
        display: inline-flex;
    }

    .header-desktop {
        align-items: center;
    }
}

@media (max-width: 920px) {
    .header-desktop {
        display: none;
    }

    .header-mobile-top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 16px 0;
    }

    .header-mobile-top .brand > div:last-child {
        font-size: 1.35rem;
    }

    .header-mobile-top .brand-mark {
        width: 42px;
        height: 42px;
        font-size: 1.4rem;
    }
}

@media (max-width: 640px) {
    .mobile-header-actions {
        grid-template-columns: 1fr;
    }

    .mobile-menu-nav a,
    .mobile-live-link {
        font-size: 1rem;
        padding: 15px 16px;
    }

    .mobile-language-switch {
        gap: 8px;
    }

    .mobile-language-switch a {
        min-width: 60px;
        padding: 11px 12px;
    }
}

.section-mini-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.58);
    margin-bottom: 10px;
}

.section-mini-label-right {
    text-align: left;
    margin-bottom: 8px;
}

.language-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.mobile-menu-label {
    margin-top: 10px;
    margin-bottom: 12px;
}

.league-bar .section-mini-label {
    padding-top: 10px;
}

@media (max-width: 1100px) {
    .language-group {
        display: none;
    }
}