/* ============================================================
   BIREBIN — Design System
   Dark navy sportsbook with gold CTAs and red live accents.
   ============================================================ */

:root {
  /* Brand */
  --brand-primary: #0E1C3D;   /* Birebin navy */
  --brand-primary-2: #14264F;
  --brand-accent: #FFC21A;    /* gold/yellow */
  --brand-accent-2: #FFD65A;
  --live-accent: #E4002B;     /* red live */
  --bg-dark: #0A1226;

  /* Surfaces */
  --surface: #FFFFFF;
  --surface-2: #F4F6FB;
  --surface-3: #E9EDF6;
  --line: #DCE2EF;
  --line-dark: rgba(255, 255, 255, 0.10);

  /* Text */
  --text: #10203F;
  --text-muted: #5A6a86;
  --text-on-dark: #FFFFFF;
  --text-on-dark-muted: #A9B6D4;

  /* Semantic */
  --up: #16A34A;
  --down: #DC2626;
  --warn: #F59E0B;

  /* Radii & shadows */
  --r-sm: 6px;
  --r: 10px;
  --r-lg: 16px;
  --r-pill: 999px;
  /* softer, layered shadows for a more premium feel */
  --shadow-sm: 0 1px 2px rgba(14, 28, 61, 0.05), 0 1px 1px rgba(14, 28, 61, 0.03);
  --shadow: 0 6px 22px -8px rgba(14, 28, 61, 0.14), 0 2px 6px -2px rgba(14, 28, 61, 0.06);
  --shadow-lg: 0 24px 60px -14px rgba(10, 18, 38, 0.34), 0 8px 20px -8px rgba(10, 18, 38, 0.2);
  --shadow-gold: 0 8px 22px -8px rgba(255, 194, 26, 0.55);

  /* Layout */
  --header-h: 108px;
  --maxw: 1280px;
  --gap: 16px;
  --ease: cubic-bezier(.2, .7, .3, 1);

  /* Type */
  --font: "Manrope", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --font-display: "Archivo", "Manrope", "Segoe UI", system-ui, sans-serif;
}

/* ---------- Reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--surface-2);
  line-height: 1.55;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .15s var(--ease); }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.18; margin: 0 0 .5em; font-weight: 800; letter-spacing: -0.015em; }
h1 { letter-spacing: -0.025em; }
ul { margin: 0; padding: 0; }
li { list-style: none; }
:focus-visible { outline: 3px solid var(--brand-accent); outline-offset: 2px; border-radius: 4px; }

/* ---------- Utilities ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 16px; }
.wrap { display: flex; flex-wrap: wrap; gap: var(--gap); }
.hidden { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.muted { color: var(--text-muted); }
.center { text-align: center; }
.badge-18 {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 34px; height: 22px; padding: 0 6px;
  background: var(--live-accent); color: #fff; font-weight: 800; font-size: 12px;
  border-radius: var(--r-sm); letter-spacing: .02em;
}
.live-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--live-accent);
  display: inline-block; box-shadow: 0 0 0 0 rgba(228,0,43,.6);
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(228,0,43,.55); }
  70%  { box-shadow: 0 0 0 7px rgba(228,0,43,0); }
  100% { box-shadow: 0 0 0 0 rgba(228,0,43,0); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: var(--r);
  padding: 10px 18px; font-weight: 700; font-size: 14px; letter-spacing: -0.01em;
  transition: transform .15s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease), color .2s, border-color .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-gold {
  background: linear-gradient(180deg, #FFD65A 0%, var(--brand-accent) 55%, #F2A900 100%);
  color: #10203F;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 2px 8px -3px rgba(255,194,26,.5);
}
.btn-gold:hover {
  background: linear-gradient(180deg, #FFE083 0%, var(--brand-accent-2) 55%, #FFB800 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6), var(--shadow-gold);
}
.btn-outline { background: transparent; border-color: rgba(255,255,255,.35); color: #fff; }
.btn-outline:hover { border-color: var(--brand-accent); color: var(--brand-accent); }
.btn-outline-dark { background: transparent; border-color: var(--line); color: var(--text); }
.btn-outline-dark:hover { border-color: var(--brand-primary); }
.btn-navy { background: var(--brand-primary); color: #fff; }
.btn-navy:hover { background: var(--brand-primary-2); }
.btn-live { background: var(--live-accent); color: #fff; }
.btn-block { display: flex; width: 100%; }
.btn-sm { padding: 7px 12px; font-size: 13px; }
.btn-lg { padding: 14px 26px; font-size: 16px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 60; background: var(--brand-primary); color: #fff; box-shadow: var(--shadow); }
/* gold hairline across the very top — premium finishing touch */
.site-header::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; z-index: 1;
  background: linear-gradient(90deg, #F0A400 0%, var(--brand-accent) 22%, #FFD65A 45%, rgba(255,194,26,.12) 92%);
}
.header-top {
  display: flex; align-items: center; gap: 14px;
  height: 62px; border-bottom: 1px solid var(--line-dark);
}
.logo {
  position: relative; overflow: hidden; flex-shrink: 0; font-weight: 800; font-size: 24px; letter-spacing: -.02em; color: #fff;
  display: inline-flex; align-items: center; gap: 10px; padding: 2px 1px;
  animation: logoIn .5s var(--ease) both;
}
.logo-mark { flex-shrink: 0; display: block; border-radius: 11px; box-shadow: 0 4px 14px -5px rgba(255, 194, 26, .55); transition: transform .35s var(--ease); }
.logo:hover .logo-mark { transform: rotate(-5deg) scale(1.06); }
.logo-text { display: inline-flex; align-items: baseline; font-family: var(--font-display); font-weight: 800; letter-spacing: -.02em; }
.logo-text b {
  font-weight: 800; color: var(--brand-accent);
  background: linear-gradient(180deg, #FFD97A 0%, var(--brand-accent) 55%, #F5A600 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.logo-text .dot { color: var(--brand-accent); display: inline-block; }
.logo .dot { animation: logoDot 2.6s ease-in-out infinite; }
/* moving light glint across the wordmark */
.logo::after {
  content: ""; position: absolute; top: 0; left: -60%; width: 42%; height: 100%; pointer-events: none;
  background: linear-gradient(100deg, transparent 0%, rgba(255,255,255,.55) 50%, transparent 100%);
  transform: skewX(-20deg); animation: logoGlint 5s ease-in-out infinite;
}
.logo:hover::after { animation-duration: 1.6s; }
.logo:hover .dot { animation-duration: 1s; }
@keyframes logoGlint { 0% { left: -60%; } 16% { left: 135%; } 100% { left: 135%; } }
@keyframes logoDot {
  0%, 100% { text-shadow: 0 0 0 rgba(255,194,26,0); opacity: .9; }
  50% { text-shadow: 0 0 10px rgba(255,194,26,.9), 0 0 3px rgba(255,194,26,.6); opacity: 1; }
}
@keyframes logoIn { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .logo, .logo::after, .logo .dot { animation: none; }
}
.nav-primary { display: flex; align-items: center; gap: 2px; }
.nav-primary a {
  padding: 8px 12px; border-radius: var(--r-sm); font-weight: 600; font-size: 14px; white-space: nowrap;
  color: var(--text-on-dark); display: inline-flex; align-items: center; gap: 7px;
}
.nav-primary a:hover, .nav-primary a.active { background: rgba(255,255,255,.08); color: var(--brand-accent); }
.header-tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: var(--r-sm); background: rgba(255,255,255,.06);
  border: none; color: #fff; display: inline-flex; align-items: center; justify-content: center;
  font-size: 18px; position: relative;
}
.icon-btn:hover { background: rgba(255,255,255,.14); color: var(--brand-accent); }
.search-box { position: relative; display: flex; align-items: center; }
.search-box input {
  height: 40px; border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.06);
  color: #fff; border-radius: var(--r-pill); padding: 0 18px; width: 210px; font-size: 13.5px;
  transition: border-color .2s, background .2s;
}
.search-box input::placeholder { color: var(--text-on-dark-muted); }
.search-box input:focus { outline: none; border-color: var(--brand-accent); background: rgba(255,255,255,.10); }

/* utility links pushed to the right of the categories row */
.cats-util { margin-left: auto; display: inline-flex; align-items: center; gap: 2px; padding-left: 12px; }
.cats-util::before { content: ""; width: 1px; height: 16px; background: var(--line-dark); margin-right: 10px; }
/* hide search in the mid range so the top row never overflows */
@media (max-width: 1160px) { .search-box { display: none; } }

/* Header text links (Kampanyalar / Sorumlu Bahis / Yardım) */
.hdr-link {
  padding: 8px 10px; border-radius: var(--r-sm); font-weight: 600; font-size: 13.5px;
  color: var(--text-on-dark-muted); white-space: nowrap;
}
.hdr-link:hover { color: var(--brand-accent); background: rgba(255,255,255,.06); }

.header-cats { height: 46px; display: flex; align-items: center; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.header-cats::-webkit-scrollbar { display: none; }
.header-cats a {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: var(--r-sm);
  font-size: 13px; font-weight: 600; color: var(--text-on-dark-muted); white-space: nowrap;
}
.header-cats a:hover { color: #fff; background: rgba(255,255,255,.06); }
.header-cats a .live-dot { width: 6px; height: 6px; }

.coupon-btn {
  display: inline-flex; align-items: center; gap: 8px; background: var(--brand-accent);
  color: #10203F; border: none; padding: 9px 14px; border-radius: var(--r); font-weight: 800; font-size: 14px;
}
.coupon-btn:hover { background: var(--brand-accent-2); }
.coupon-count {
  background: var(--live-accent); color: #fff; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: var(--r-pill); font-size: 12px; display: inline-flex; align-items: center; justify-content: center;
}
.balance-chip {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
  padding: 7px 12px; border-radius: var(--r); font-weight: 700; font-size: 13px; color: var(--brand-accent);
}

/* Mobile menu toggle (CSS-drawn bars) */
.hamburger {
  display: none; width: 40px; height: 40px; border: none; background: rgba(255,255,255,.06);
  border-radius: var(--r-sm); align-items: center; justify-content: center; cursor: pointer;
}
.hamburger:hover { background: rgba(255,255,255,.14); }
.hamburger .bars, .hamburger .bars::before, .hamburger .bars::after {
  content: ""; display: block; width: 18px; height: 2px; background: #fff; border-radius: 2px; position: relative;
}
.hamburger .bars::before { position: absolute; top: -6px; }
.hamburger .bars::after { position: absolute; top: 6px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--brand-primary); color: var(--text-on-dark-muted); margin-top: 48px; border-top: 3px solid var(--brand-accent); }
.footer-top { padding: 40px 0 24px; }
.footer-brand { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; padding-bottom: 22px; border-bottom: 1px solid var(--line-dark); }
.footer-brand a { display: inline-flex; align-items: center; gap: 10px; font-size: 22px; color: #fff; }
.footer-brand p { margin: 0; font-size: 13px; color: var(--text-on-dark-muted); }
.footer-cols {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 26px 20px;
}
.footer-col h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 12px; }
.footer-col a { display: block; padding: 3px 0; font-size: 13px; color: var(--text-on-dark-muted); }
.footer-col a:hover { color: var(--brand-accent); }
.footer-trust {
  border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark);
  padding: 20px 0; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; justify-content: space-between;
}
.license-logos { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.lic {
  background: rgba(255,255,255,.06); border: 1px solid var(--line-dark); color: #fff;
  padding: 8px 14px; border-radius: var(--r-sm); font-weight: 700; font-size: 12px; letter-spacing: .02em;
  display: inline-flex; align-items: center; gap: 8px;
}
.lic small { color: var(--text-on-dark-muted); font-weight: 500; }
/* official license / dealer logo images */
.lic-img { display: inline-flex; align-items: center; height: 44px; padding: 0 6px; }
.lic-img img { width: auto; display: block; }
.lic-chip { background: #fff; border-radius: 8px; padding: 6px 12px; box-shadow: var(--shadow-sm); }
.footer-legal { padding: 22px 0; font-size: 12.5px; }
.footer-legal .warn18 {
  display: flex; align-items: center; gap: 12px; background: rgba(228,0,43,.10);
  border: 1px solid rgba(228,0,43,.4); border-radius: var(--r); padding: 12px 16px; margin-bottom: 16px;
  color: #FFC9D2;
}
.footer-links-inline { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 12px 0; }
.footer-links-inline a { color: var(--text-on-dark-muted); font-size: 12.5px; }
.footer-links-inline a:hover { color: var(--brand-accent); }
.footer-company { line-height: 1.7; }
.footer-company strong { color: #fff; }
.app-badges { display: flex; gap: 10px; flex-wrap: wrap; }
.app-badge {
  display: inline-flex; flex-direction: column; align-items: flex-start; gap: 2px; background: #000; color: #fff;
  border: 1px solid rgba(255,255,255,.18); border-radius: 8px; padding: 8px 16px; font-size: 12px;
}
.app-badge:hover { border-color: var(--brand-accent); }
.app-badge .big { font-size: 14px; font-weight: 700; line-height: 1.1; }
.app-badge .small { font-size: 10px; opacity: .7; line-height: 1; text-transform: uppercase; letter-spacing: .04em; }

/* ---------- Cards & Sections ---------- */
.section { padding: 30px 0; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; gap: 12px; }
.section-head h2 { font-size: 21px; margin: 0; display: flex; align-items: center; gap: 11px; letter-spacing: -0.02em; }
.section-head .see-all { font-size: 13px; font-weight: 700; color: var(--brand-primary); display: inline-flex; align-items: center; gap: 4px; transition: gap .15s var(--ease); }
.section-head .see-all:hover { gap: 8px; color: var(--brand-primary-2); }
.section-head .accent-bar { width: 4px; height: 20px; background: var(--brand-accent); border-radius: 3px; }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm); transition: box-shadow .2s var(--ease), transform .2s var(--ease), border-color .2s var(--ease);
}
.card-pad { padding: 18px; }
/* gentle depth on interactive content cards */
.coupon-social:hover, .live-match-card:hover { box-shadow: var(--shadow); border-color: #d3dcec; }

.grid { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-6 { grid-template-columns: repeat(6, 1fr); }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: 2fr 1fr; gap: var(--gap); padding: 22px 0; }
.hero-main {
  position: relative; border-radius: var(--r-lg); overflow: hidden; min-height: 300px;
  background: radial-gradient(120% 140% at 80% 0%, #1B336B 0%, var(--brand-primary) 55%, var(--bg-dark) 100%);
  color: #fff; display: flex; flex-direction: column; justify-content: flex-end; padding: 28px;
}
.hero-main::after {
  content: ""; position: absolute; inset: 0; background:
    radial-gradient(60% 60% at 85% 15%, rgba(255,194,26,.22), transparent 60%);
  pointer-events: none;
}
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: var(--brand-accent); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; }
.hero-main h1 { font-size: 34px; max-width: 15ch; position: relative; }
.hero-main p { color: var(--text-on-dark-muted); max-width: 46ch; position: relative; }
.hero-actions { display: flex; gap: 10px; margin-top: 16px; position: relative; }
.hero-side { display: grid; grid-template-rows: 1fr 1fr; gap: var(--gap); }
.hero-card {
  border-radius: var(--r-lg); padding: 20px; color: #fff; position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between;
  background: linear-gradient(135deg, var(--brand-primary-2), var(--bg-dark));
  border: 1px solid var(--line-dark);
}
.hero-card.gold { background: linear-gradient(135deg, #FFC21A, #FF9E1B); color: #201400; }
.hero-card h3 { font-size: 18px; }
.mini18 { position: absolute; top: 12px; right: 12px; font-size: 10px; opacity: .8; font-weight: 700; }

/* ---------- Hero slider (image slots -> assets/img/hero-*.jpg) ---------- */
.hero-slider { position: relative; border-radius: var(--r-lg); overflow: hidden; margin: 22px 0; min-height: 340px; }
.hero-slider .slides { position: relative; height: 340px; }
.slide {
  position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .6s ease;
  display: flex; flex-direction: column; justify-content: center; padding: 40px 48px; color: #fff;
  /* base navy; optional Midjourney image set via inline background-image (falls back to navy) */
  background-color: var(--brand-primary); background-size: cover; background-position: center;
}
.slide.active { opacity: 1; visibility: visible; }
.slide::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(90deg, rgba(10,18,38,.92) 0%, rgba(10,18,38,.62) 42%, rgba(10,18,38,.20) 100%);
}
.slide::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(70% 90% at 90% 15%, rgba(255,194,26,.18), transparent 60%);
}
.slide > * { position: relative; z-index: 1; }
.slide .eyebrow { font-size: 12px; font-weight: 800; color: var(--brand-accent); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 12px; }
.slide h1 { font-size: 38px; max-width: 17ch; margin: 0 0 10px; }
.slide p { color: var(--text-on-dark-muted); max-width: 48ch; margin: 0 0 18px; font-size: 15px; }
.slide .slide-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.slide .mini18 { position: absolute; top: 16px; right: 20px; z-index: 2; }
/* staggered reveal of slide content on activation */
.slide .eyebrow, .slide h1, .slide p, .slide .slide-actions { opacity: 0; }
.slide.active .eyebrow { animation: riseIn .55s var(--ease) .08s both; }
.slide.active h1 { animation: riseIn .55s var(--ease) .18s both; }
.slide.active p { animation: riseIn .55s var(--ease) .28s both; }
.slide.active .slide-actions { animation: riseIn .55s var(--ease) .38s both; }
@keyframes riseIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .slide .eyebrow, .slide h1, .slide p, .slide .slide-actions { opacity: 1; animation: none !important; }
}
.slider-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 42px; height: 42px;
  border-radius: 50%; border: none; background: rgba(255,255,255,.14); color: #fff; font-size: 22px;
  display: flex; align-items: center; justify-content: center; backdrop-filter: blur(4px);
}
.slider-nav:hover { background: var(--brand-accent); color: #10203F; }
.slider-nav.prev { left: 16px; }
.slider-nav.next { right: 16px; }
.slider-dots { position: absolute; bottom: 18px; right: 48px; z-index: 3; display: flex; gap: 8px; }
.slider-dots button { width: 10px; height: 10px; border-radius: 50%; border: none; background: rgba(255,255,255,.4); cursor: pointer; padding: 0; }
.slider-dots button.active { background: var(--brand-accent); width: 26px; border-radius: 5px; }
@media (max-width: 768px) {
  .hero-slider, .hero-slider .slides { min-height: 300px; height: auto; }
  .hero-slider .slides { height: 356px; }
  .slide { padding: 24px 20px; }
  .slide h1 { font-size: 25px; }
  .slide p { font-size: 13.5px; margin-bottom: 14px; }
  .slide .btn-lg { padding: 11px 18px; font-size: 14.5px; }
  .slider-nav { display: none; }
  .slider-dots { right: 20px; bottom: 14px; }
}

/* ---------- Product tiles ---------- */
.product-tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--gap); }
.ptile {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; transition: transform .12s, box-shadow .12s, border-color .12s;
}
.ptile:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--brand-accent); }
.ptile-img {
  height: 92px; background: var(--brand-primary) center/cover; position: relative;
  display: flex; align-items: flex-end; padding: 10px;
}
.ptile-img::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14,28,61,.15) 0%, rgba(14,28,61,.8) 100%);
}
.ptile .ico {
  position: relative; z-index: 1; width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(135deg, var(--brand-accent), #FF9E1B);
  color: #10203F; display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 800; letter-spacing: .02em; box-shadow: 0 4px 12px rgba(0,0,0,.3);
}
.ptile b { display: block; font-size: 14px; color: var(--text); padding: 12px 12px 2px; }
.ptile small { display: block; color: var(--text-muted); font-size: 12px; padding: 0 12px 14px; }

/* ---------- Match rows / bulletin ---------- */
.bulletin { display: grid; grid-template-columns: 240px 1fr; gap: var(--gap); align-items: start; }
.side-filter { position: sticky; top: 120px; }
.filter-group { border-bottom: 1px solid var(--line); padding: 10px 0; }
.filter-group h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); margin-bottom: 8px; }
.filter-item {
  display: flex; align-items: center; justify-content: space-between; padding: 7px 10px; border-radius: var(--r-sm);
  font-size: 13.5px; cursor: pointer; font-weight: 600; color: var(--text);
}
.filter-item:hover { background: var(--surface-3); }
.filter-item.active { background: var(--brand-primary); color: #fff; }
.filter-item .cnt { font-size: 11px; color: var(--text-muted); background: var(--surface-3); padding: 1px 7px; border-radius: var(--r-pill); }
.filter-item.active .cnt { background: rgba(255,255,255,.18); color: #fff; }
.filter-item .ico { margin-right: 8px; }

.league-block { margin-bottom: 14px; }
.league-head {
  display: flex; align-items: center; gap: 8px; background: var(--brand-primary); color: #fff;
  padding: 9px 14px; border-radius: var(--r) var(--r) 0 0; font-weight: 700; font-size: 13px;
}
.league-head .flag { font-size: 15px; }
.match-table { background: var(--surface); border: 1px solid var(--line); border-top: none; border-radius: 0 0 var(--r) var(--r); overflow: hidden; }
.market-header {
  display: flex; align-items: center; gap: 6px; padding: 7px 14px; font-size: 11px; color: var(--text-muted);
  font-weight: 700; text-transform: uppercase; letter-spacing: .03em; border-bottom: 1px solid var(--line);
}
.market-header .mh-spacer { flex: 1; }
.market-header .mh-label { width: 56px; text-align: center; }
.match-row {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line);
  transition: background .12s;
}
.match-row:last-child { border-bottom: none; }
.match-row:hover { background: var(--surface-2); }
.match-time { font-size: 12px; color: var(--text-muted); font-weight: 600; width: 60px; flex-shrink: 0; }
.match-time .mid { color: var(--brand-primary); font-weight: 700; display: block; }
.match-teams { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.odds-group { display: flex; gap: 6px; align-items: center; flex-shrink: 0; }
.odd-cell { width: 56px; flex-shrink: 0; }
.more-odds-cell {
  width: 46px; height: 38px; display: flex; align-items: center; justify-content: center;
  border: 1px dashed var(--line); border-radius: var(--r-sm); font-size: 12px; font-weight: 700; color: var(--brand-primary);
}
.more-odds-cell:hover { border-color: var(--brand-accent); background: #FFF7E0; }
.match-teams a { font-weight: 700; font-size: 14px; color: var(--text); }
.match-teams a:hover { color: var(--brand-primary); }
.match-teams .live-score { color: var(--live-accent); font-weight: 800; }
.match-teams small { color: var(--text-muted); font-size: 11.5px; }
.odd-cell {
  height: 40px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface-2);
  display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1;
  font-weight: 700; font-size: 14px; color: var(--text); user-select: none;
  transition: border-color .15s var(--ease), background .15s var(--ease), color .15s, transform .1s var(--ease);
}
.odd-cell small { font-size: 9.5px; color: var(--text-muted); font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }
.odd-cell:hover { border-color: var(--brand-accent); background: #FFF7E0; transform: translateY(-1px); }
.odd-cell.selected { background: var(--brand-primary); border-color: var(--brand-primary); color: #fff; box-shadow: var(--shadow-sm); }
.odd-cell.selected small { color: var(--brand-accent); }
.odd-cell.up { animation: flashUp .8s; }
.odd-cell.down { animation: flashDown .8s; }
@keyframes flashUp { 0% { background: rgba(22,163,74,.25); } 100% {} }
@keyframes flashDown { 0% { background: rgba(220,38,38,.22); } 100% {} }
.odd-cell.empty { visibility: hidden; }
.more-odds { font-size: 12px; color: var(--brand-primary); font-weight: 700; text-align: center; }

.live-badge {
  display: inline-flex; align-items: center; gap: 5px; background: var(--live-accent); color: #fff;
  font-size: 10px; font-weight: 800; padding: 2px 7px; border-radius: var(--r-sm); letter-spacing: .04em;
}
.tab-row { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.tab {
  padding: 9px 17px; border-radius: var(--r-pill); font-weight: 700; font-size: 13.5px;
  background: var(--surface); border: 1px solid var(--line); color: var(--text);
  transition: border-color .15s var(--ease), background .15s var(--ease), color .15s, box-shadow .15s var(--ease);
}
.tab:hover { border-color: var(--brand-primary); color: var(--brand-primary); }
.tab.active { background: var(--brand-primary); color: #fff; border-color: var(--brand-primary); box-shadow: var(--shadow-sm); }
.tab.active:hover { color: #fff; }
.tab.live.active { background: var(--live-accent); border-color: var(--live-accent); }

/* ---------- Coupon drawer ---------- */
.coupon-drawer {
  position: fixed; top: 0; right: 0; height: 100vh; width: 380px; max-width: 100%;
  background: var(--surface); box-shadow: var(--shadow-lg); z-index: 200; display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .25s ease;
}
.coupon-drawer.open { transform: translateX(0); }
.coupon-drawer-head {
  background: var(--brand-primary); color: #fff; padding: 16px; display: flex; align-items: center;
  justify-content: space-between;
}
.coupon-drawer-head .tabs { display: flex; gap: 4px; }
.coupon-drawer-head .tabs button {
  background: rgba(255,255,255,.08); color: #fff; border: none; padding: 6px 12px; border-radius: var(--r-sm);
  font-weight: 700; font-size: 12.5px;
}
.coupon-drawer-head .tabs button.active { background: var(--brand-accent); color: #10203F; }
.coupon-close { background: none; border: none; color: #fff; font-size: 22px; line-height: 1; }
.coupon-body { flex: 1; overflow-y: auto; padding: 12px; background: var(--surface-2); }
.coupon-empty { text-align: center; padding: 48px 20px; color: var(--text-muted); }
.coupon-empty .big-ico { font-size: 46px; opacity: .5; margin-bottom: 12px; }
.cpn-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px; margin-bottom: 8px; position: relative; }
.cpn-item .rm { position: absolute; top: 8px; right: 8px; background: none; border: none; color: var(--text-muted); font-size: 16px; }
.cpn-item .rm:hover { color: var(--live-accent); }
.cpn-item .match { font-size: 12px; color: var(--text-muted); margin-bottom: 3px; padding-right: 18px; }
.cpn-item .pick { display: flex; align-items: center; justify-content: space-between; }
.cpn-item .pick b { font-size: 13.5px; }
.cpn-item .pick .odd { font-weight: 800; color: var(--brand-primary); }
.cpn-item .market-label { font-size: 11px; color: var(--text-muted); }
.coupon-foot { border-top: 1px solid var(--line); background: var(--surface); padding: 14px; }
.coupon-foot .row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; font-size: 13.5px; }
.coupon-foot .row.total { font-size: 16px; font-weight: 800; }
.coupon-foot .row .val { font-weight: 800; }
.coupon-foot .row .win { color: var(--up); }
.stake-input { display: flex; align-items: center; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin: 8px 0; }
.stake-input span { padding: 0 12px; color: var(--text-muted); font-weight: 700; background: var(--surface-2); align-self: stretch; display: flex; align-items: center; }
.stake-input input { flex: 1; border: none; padding: 11px; font-size: 15px; font-weight: 700; width: 100%; }
.stake-input input:focus { outline: none; }
.stake-quick { display: flex; gap: 6px; margin-bottom: 10px; }
.stake-quick button { flex: 1; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 6px; font-size: 12px; font-weight: 700; }
.stake-quick button:hover { border-color: var(--brand-primary); }

/* ---------- Social / tipster cards ---------- */
.tipster-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; text-align: center;
  transition: transform .12s, box-shadow .12s;
}
.tipster-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.avatar {
  width: 60px; height: 60px; border-radius: 50%; margin: 0 auto 10px;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 22px; color: #fff;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-2));
}
.avatar.sm { width: 40px; height: 40px; font-size: 15px; margin: 0; }
.tipster-card .name { font-weight: 800; font-size: 15px; }
.verified {
  display: inline-block; margin-left: 6px; font-size: 10px; font-weight: 800; letter-spacing: .03em;
  color: #4a3600; background: var(--brand-accent); padding: 1px 7px; border-radius: var(--r-pill);
  vertical-align: middle; text-transform: uppercase;
}
.tipster-stats { display: flex; justify-content: center; gap: 14px; margin: 14px 0; }
.tipster-stats div { text-align: center; flex: 1; }
.tipster-stats div + div { border-left: 1px solid var(--line); }
.tipster-stats b { display: block; font-size: 17px; color: var(--brand-primary); letter-spacing: -0.02em; }
.tipster-stats small { font-size: 11px; color: var(--text-muted); }
.win-rate { color: var(--up); }
.follow-btn.following { background: var(--surface-3); color: var(--text); border-color: var(--line); }

.coupon-social {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
}
.coupon-social-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.coupon-social-head .name { font-weight: 700; font-size: 14px; }
.coupon-social-head .meta { font-size: 11.5px; color: var(--text-muted); }
.coupon-social-body { padding: 6px 14px; }
.cs-leg { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
.cs-leg:last-child { border-bottom: none; }
.cs-leg .odd { font-weight: 800; color: var(--brand-primary); }
.coupon-social-foot { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; background: var(--surface-2); }
.coupon-social-foot .tot { font-weight: 800; }
.play-count { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--text-muted); font-weight: 600; }

/* ---------- Live score widget ---------- */
.live-match {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px;
  padding: 12px 14px; border-bottom: 1px solid var(--line);
}
.live-match:last-child { border-bottom: none; }
.live-match .team { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13.5px; }
.live-match .team.away { justify-content: flex-end; }
.live-match .score { text-align: center; }
.live-match .score b { font-size: 20px; color: var(--live-accent); }
.live-match .score small { display: block; font-size: 11px; color: var(--text-muted); }

/* ---------- Auth split (banner + form) ---------- */
.auth-split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 940px; margin: 28px auto; align-items: stretch; }
.auth-banner {
  position: relative; overflow: hidden; border-radius: var(--r-lg); color: #fff;
  background: var(--brand-primary) center/cover; min-height: 440px;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 30px;
}
.auth-banner::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,18,38,.25) 0%, rgba(10,18,38,.9) 100%); }
.auth-banner > * { position: relative; z-index: 1; }
.auth-banner .eyebrow { color: var(--brand-accent); font-weight: 800; text-transform: uppercase; letter-spacing: .1em; font-size: 12px; }
.auth-banner h2 { font-size: 24px; margin: 8px 0 6px; }
.auth-banner p { color: #cdd6ea; margin: 0; font-size: 14px; }
.auth-split .card { margin: 0; }
@media (max-width: 768px) { .auth-split { grid-template-columns: 1fr; max-width: 520px; } .auth-banner { display: none; } }

/* ---------- Forms ---------- */
.form-card { max-width: 520px; margin: 24px auto; }
.form-wide { max-width: 720px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; font-size: 13px; margin-bottom: 6px; }
.field label .req { color: var(--live-accent); }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--r);
  font-size: 14px; font-family: inherit; background: var(--surface); color: var(--text);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand-primary); box-shadow: 0 0 0 3px rgba(14,28,61,.10); }
.field .hint { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.field .error-msg { font-size: 12px; color: var(--down); margin-top: 4px; display: none; }
.field.invalid input, .field.invalid select { border-color: var(--down); }
.field.invalid .error-msg { display: block; }
.field.valid input { border-color: var(--up); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.check-row { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; font-size: 13px; }
.check-row input { width: 18px; height: 18px; margin-top: 1px; flex-shrink: 0; accent-color: var(--brand-primary); }
.check-row a { color: var(--brand-primary); font-weight: 700; }
.pw-strength { height: 6px; border-radius: 3px; background: var(--surface-3); overflow: hidden; margin-top: 6px; }
.pw-strength i { display: block; height: 100%; width: 0; transition: width .2s, background .2s; }
.form-alert { padding: 12px 14px; border-radius: var(--r); font-size: 13.5px; margin-bottom: 16px; font-weight: 600; }
.form-alert.ok { background: rgba(22,163,74,.10); color: #15803D; border: 1px solid rgba(22,163,74,.3); }
.form-alert.err { background: rgba(220,38,38,.08); color: #B91C1C; border: 1px solid rgba(220,38,38,.3); }

/* ---------- Page header / breadcrumb ---------- */
.page-hero { position: relative; overflow: hidden; background: var(--brand-primary); color: #fff; padding: 34px 0; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; background: url('../img/texture-band.jpg') center/cover;
  opacity: .55;
}
.page-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, rgba(14,28,61,.94) 0%, rgba(10,18,38,.78) 55%, rgba(10,18,38,.55) 100%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: 28px; margin: 0; }
.page-hero p { color: #cdd6ea; margin: 6px 0 0; }
.breadcrumb { font-size: 12.5px; color: var(--text-on-dark-muted); margin-bottom: 8px; }
.breadcrumb a:hover { color: var(--brand-accent); }

/* ---------- Legal / content pages ---------- */
.content-layout { display: grid; grid-template-columns: 240px 1fr; gap: 30px; align-items: start; }
.content-nav { position: sticky; top: 120px; }
.content-nav a { display: block; padding: 8px 12px; border-radius: var(--r-sm); font-size: 13.5px; font-weight: 600; color: var(--text-muted); }
.content-nav a:hover, .content-nav a.active { background: var(--surface); color: var(--brand-primary); border-left: 3px solid var(--brand-accent); }
.prose { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px 34px; }
.prose h1 { font-size: 26px; }
.prose h2 { font-size: 20px; margin-top: 28px; color: var(--brand-primary); }
.prose h3 { font-size: 16px; margin-top: 20px; }
.prose p, .prose li { color: #33425e; font-size: 14.5px; line-height: 1.75; }
.prose ul { margin: 10px 0 16px; padding-left: 20px; }
.prose ul li { list-style: disc; margin-bottom: 6px; }
.prose .updated { color: var(--text-muted); font-size: 12.5px; margin-bottom: 20px; }
.callout {
  background: var(--surface-2); border-left: 4px solid var(--brand-accent); border-radius: var(--r-sm);
  padding: 14px 18px; margin: 18px 0;
}
.callout.danger { background: rgba(228,0,43,.06); border-left-color: var(--live-accent); }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 300; background: var(--bg-dark); color: #fff;
  border-top: 3px solid var(--brand-accent); padding: 18px 0; box-shadow: 0 -8px 30px rgba(0,0,0,.35);
  transform: translateY(110%); transition: transform .3s;
}
.cookie-banner.show { transform: translateY(0); }
.cookie-inner { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.cookie-inner .txt { flex: 1; min-width: 260px; font-size: 13.5px; color: var(--text-on-dark-muted); }
.cookie-inner .txt b { color: #fff; }
.cookie-inner .txt a { color: var(--brand-accent); text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(10,18,38,.6); z-index: 400; display: none;
  align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--surface); border-radius: var(--r-lg); max-width: 520px; width: 100%; max-height: 90vh;
  overflow-y: auto; box-shadow: var(--shadow-lg);
}
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.modal-head h3 { margin: 0; font-size: 18px; }
.modal-head .x { background: none; border: none; font-size: 24px; color: var(--text-muted); line-height: 1; }
.modal-body { padding: 22px; }
.cookie-cat { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cookie-cat:last-child { border-bottom: none; }
.cookie-cat b { font-size: 14px; }
.cookie-cat p { margin: 4px 0 0; font-size: 12.5px; color: var(--text-muted); }
/* toggle switch */
.switch { position: relative; width: 44px; height: 24px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider { position: absolute; inset: 0; background: var(--surface-3); border-radius: 999px; transition: .2s; }
.switch .slider::before { content: ""; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; box-shadow: var(--shadow-sm); }
.switch input:checked + .slider { background: var(--up); }
.switch input:checked + .slider::before { transform: translateX(20px); }
.switch input:disabled + .slider { background: var(--brand-primary); opacity: .6; cursor: not-allowed; }

/* ---------- Toast ---------- */
.toast-wrap { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 500; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast {
  background: var(--brand-primary); color: #fff; padding: 12px 20px; border-radius: var(--r-pill);
  box-shadow: var(--shadow-lg); font-size: 13.5px; font-weight: 600; display: flex; align-items: center; gap: 8px;
  animation: toastIn .25s ease;
}
.toast.ok { background: var(--up); }
.toast.err { background: var(--down); }
.toast .ic { font-size: 16px; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- Tables (results, draws) ---------- */
.data-table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--r-lg); overflow: hidden; }
.data-table th { background: var(--brand-primary); color: #fff; text-align: left; padding: 11px 14px; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.data-table td { padding: 11px 14px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--surface-2); }

/* ---------- Promo banner (image bg) ---------- */
.promo-banner {
  position: relative; overflow: hidden; border-radius: var(--r-lg); color: #fff;
  background: var(--brand-primary) center/cover; padding: 44px 40px;
}
.promo-banner::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(10,18,38,.92) 0%, rgba(10,18,38,.6) 45%, rgba(10,18,38,.2) 100%);
}
.promo-banner > * { position: relative; z-index: 1; }
.promo-banner .eyebrow { color: var(--brand-accent); font-weight: 800; text-transform: uppercase; letter-spacing: .1em; font-size: 12px; }
.promo-banner h2 { font-size: 30px; margin: 8px 0; max-width: 22ch; }
.promo-banner p { color: var(--text-on-dark-muted); max-width: 52ch; margin: 0; }

/* ---------- Lottery cards (image bg + color identity) ---------- */
.lottery-card {
  position: relative; overflow: hidden; border-radius: var(--r-lg); color: #fff; padding: 22px;
  min-height: 230px; display: flex; flex-direction: column;
  background: var(--brand-primary) center/cover; transition: transform .12s, box-shadow .12s;
}
.lottery-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.lottery-card::before { content: ""; position: absolute; inset: 0; z-index: 0; }
.lottery-card.st::before   { background: linear-gradient(120deg, rgba(14,28,61,.94) 0%, rgba(14,28,61,.5) 60%, rgba(27,51,107,.3) 100%); }
.lottery-card.sy::before   { background: linear-gradient(120deg, rgba(74,20,140,.94) 0%, rgba(122,31,162,.55) 60%, rgba(122,31,162,.3) 100%); }
.lottery-card.py::before   { background: linear-gradient(120deg, rgba(142,0,0,.94) 0%, rgba(198,40,40,.55) 60%, rgba(198,40,40,.3) 100%); }
.lottery-card.snys::before { background: linear-gradient(120deg, rgba(0,77,64,.94) 0%, rgba(0,105,92,.55) 60%, rgba(0,105,92,.3) 100%); }
.lottery-card > * { position: relative; z-index: 1; }
.lottery-head { display: flex; align-items: center; justify-content: space-between; }
.lottery-card h3 { font-size: 22px; margin: 10px 0 2px; }
.lottery-card .lbl { font-size: 12px; opacity: .8; }
.lottery-balls { display: flex; gap: 5px; margin: 12px 0; flex-wrap: wrap; }
.lottery-balls .ball { width: 30px; height: 30px; font-size: 12px; margin: 0; box-shadow: 0 2px 8px rgba(0,0,0,.3); }
.jackpot-amt { font-size: 30px; font-weight: 800; color: var(--brand-accent); line-height: 1.05; }
.lottery-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 14px; }
.lottery-foot small { opacity: .85; font-size: 12px; }
.draw-card { position: relative; overflow: hidden; }
.draw-card .draw-when { display: inline-flex; align-items: center; gap: 6px; }

/* number ball */
.ball {
  width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px; background: var(--brand-primary); color: #fff; margin: 2px;
}
.ball.gold { background: var(--brand-accent); color: #10203F; }
.ball.plus { background: var(--live-accent); }

/* Şans oyunları tiles */
.game-tile {
  border-radius: var(--r-lg); padding: 22px; color: #fff; min-height: 150px; display: flex; flex-direction: column;
  justify-content: space-between; position: relative; overflow: hidden;
}
.game-tile h3 { font-size: 20px; }
.game-tile .big-ico { font-size: 40px; }
.game-tile.st  { background: linear-gradient(135deg, #0E1C3D, #1B336B); }
.game-tile.sy  { background: linear-gradient(135deg, #7A1FA2, #4A148C); }
.game-tile.py  { background: linear-gradient(135deg, #C62828, #8E0000); }
.game-tile.snys{ background: linear-gradient(135deg, #00695C, #004D40); }
/* Optional Midjourney image slot (falls back to navy gradient if image missing).
   Image is set via inline background-image on the element; overlay keeps text legible. */
.game-tile.has-img { background-color: var(--brand-primary); background-size: cover; background-position: center; }
.game-tile.has-img::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(135deg, rgba(14,28,61,.86), rgba(10,18,38,.55));
}
.game-tile.has-img > * { position: relative; z-index: 1; }
.game-tile .btn { align-self: flex-start; }

/* stat strip */
.stat-strip { display: grid; grid-template-columns: repeat(4,1fr); gap: var(--gap); }
.stat-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px 18px; text-align: center; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.stat-box:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.stat-box b { display: block; font-size: 26px; color: var(--brand-primary); letter-spacing: -0.03em; }
.stat-box small { color: var(--text-muted); font-size: 12.5px; }

/* account layout */
.account-layout { display: grid; grid-template-columns: 260px 1fr; gap: 24px; align-items: start; }
.account-nav .a-item { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: var(--r); font-weight: 600; font-size: 14px; color: var(--text); cursor: pointer; }
.account-nav .a-item:hover { background: var(--surface); }
.account-nav .a-item.active { background: var(--brand-primary); color: #fff; }
.account-nav .a-item .ico { width: 20px; text-align: center; }
.balance-card { background: linear-gradient(135deg, var(--brand-primary), var(--bg-dark)); color: #fff; border-radius: var(--r-lg); padding: 22px; }
.balance-card .lbl { color: var(--text-on-dark-muted); font-size: 13px; }
.balance-card .amt { font-size: 34px; font-weight: 800; color: var(--brand-accent); margin: 4px 0 14px; }
.limit-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }

/* app promo row */
.app-row { background: linear-gradient(135deg, var(--brand-primary-2), var(--bg-dark)); color: #fff; border-radius: var(--r-lg); padding: 24px 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.app-row h3 { font-size: 20px; margin: 0 0 6px; }
.app-row p { color: var(--text-on-dark-muted); margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: repeat(3, 1fr); }
  .product-tiles { grid-template-columns: repeat(3, 1fr); }
  .grid-6 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .bulletin { grid-template-columns: 1fr; }
  .side-filter { position: static; }
  .content-layout { grid-template-columns: 1fr; }
  .content-nav { position: static; display: flex; flex-wrap: wrap; gap: 6px; }
  .account-layout { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  :root { --header-h: 106px; }
  /* any grid using an inline column template collapses to one column on mobile */
  .grid[style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
  .nav-primary, .search-box, .header-cats { display: none; }
  .header-cats.mobile-open { display: flex; }
  .hamburger { display: inline-flex; }
  .header-top { gap: 10px; }
  .hero-main h1 { font-size: 26px; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
  .product-tiles, .grid-6, .grid-4, .grid-3, .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .stat-strip { grid-template-columns: repeat(2,1fr); }
  .market-header { display: none; }
  .match-row { flex-wrap: wrap; gap: 10px; padding: 12px 14px; }
  .match-time { width: auto; }
  .match-teams { flex: 1 1 60%; }
  .odds-group { flex: 1 1 100%; justify-content: flex-start; }
  .odd-cell { flex: 1; min-width: 52px; }
  .coupon-drawer { width: 100%; }
  .balance-chip { display: none; }
  .nav-mobile-panel { display: block; }
  /* declutter mobile header: hide secondary text links, keep +18 (compliance) */
  .hdr-link { display: none; }
  .header-tools { gap: 6px; }
  .logo { font-size: 21px; gap: 8px; }
  .logo-mark { width: 30px; height: 30px; }
  .coupon-btn { padding: 8px 11px; }
  .header-tools .btn-sm { padding: 7px 9px; font-size: 12.5px; }
  .badge-18 { min-width: 30px; }
  /* Giriş Yap moves into the hamburger menu on mobile; keep Üye Ol + Kuponum */
  [data-auth="guest"] .btn-outline { display: none; }
  /* logged-in: keep Profilim (hub), drop Para Yatır from the top bar */
  [data-auth="user"] .btn-gold { display: none; }
}
@media (max-width: 520px) {
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .product-tiles { grid-template-columns: repeat(2, 1fr); }
  .field-row { grid-template-columns: 1fr; }
}

/* Mobile nav panel */
.mobile-nav {
  position: fixed; inset: 0 20% 0 0; background: var(--brand-primary); z-index: 250; padding: 20px;
  transform: translateX(-110%); transition: transform .25s; overflow-y: auto; box-shadow: var(--shadow-lg);
}
.mobile-nav.open { transform: translateX(0); }
.mobile-auth { display: flex; gap: 8px; margin-bottom: 12px; }
.mobile-auth .btn { flex: 1; }
.mobile-nav a { display: block; color: #fff; padding: 12px 8px; border-bottom: 1px solid var(--line-dark); font-weight: 600; }
.mobile-nav .mobile-auth a { display: flex; align-items: center; justify-content: center; border-bottom: none; padding: 12px 18px; }
.mobile-nav a:hover { color: var(--brand-accent); }
.mobile-nav .close-x { text-align: right; font-size: 26px; color: #fff; margin-bottom: 10px; }
.nav-scrim { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 249; display: none; }
.nav-scrim.open { display: block; }

/* skip link */
.skip-link { position: absolute; left: -999px; top: 0; background: var(--brand-accent); color: #10203F; padding: 10px 16px; z-index: 999; border-radius: 0 0 8px 0; font-weight: 700; }
.skip-link:focus { left: 0; }

/* ============================================================
   SOCIAL FEED (alive homepage) — dense 3-column layout
   ============================================================ */
.feed-3 { display: grid; grid-template-columns: 1fr 1.14fr 1fr; gap: 16px; align-items: start; }
.feed-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.feed-block { min-width: 0; }
.feed-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-2) 100%);
  color: #fff; padding: 12px 16px; border-radius: var(--r) var(--r) 0 0; font-weight: 800; font-size: 15px;
  letter-spacing: -0.01em; position: relative;
}
.feed-head::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; background: var(--brand-accent); border-radius: 0 3px 3px 0; }
.feed-head span:first-child { padding-left: 8px; }
.feed-head .see-all { color: var(--brand-accent); font-size: 12.5px; font-weight: 700; }
.feed-head .see-all:hover { color: #fff; }
.feed-body { background: var(--surface); border: 1px solid var(--line); border-top: none; border-radius: 0 0 var(--r) var(--r); overflow: hidden; box-shadow: var(--shadow-sm); }

/* winning member rows */
.wmember { display: flex; align-items: center; gap: 11px; padding: 11px 14px; border-top: 1px solid var(--line); }
.wmember:first-child { border-top: none; }
.wmember .name { font-weight: 700; font-size: 13.5px; }
.wmember .sub { font-size: 11px; color: var(--text-muted); }
.wmember .won { margin-left: auto; text-align: right; }
.wmember .won b { color: var(--up); font-size: 13px; }
.wmember .won small { display: block; font-size: 10px; color: var(--text-muted); }

/* feed coupon (tipster with full legs) */
.fcoupon { border-bottom: 7px solid var(--surface-2); }
.fcoupon:last-child { border-bottom: none; }
.fcoupon-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px 6px; }
.fcoupon-head .avatar { flex-shrink: 0; }
.fcoupon-head .who { min-width: 0; }
.fcoupon-head .name { font-weight: 800; font-size: 13.5px; display: flex; align-items: center; gap: 6px; }
.tipster-tag { font-size: 9px; font-weight: 800; color: #10203F; background: var(--brand-accent); padding: 1px 6px; border-radius: var(--r-sm); text-transform: uppercase; letter-spacing: .03em; }
.fcoupon-head .meta { font-size: 11px; color: var(--text-muted); margin-top: 2px; display: flex; gap: 10px; }
.fmini-follow {
  margin-left: auto; align-self: flex-start; width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0;
  border: 1px solid var(--line); background: var(--surface-2); color: var(--brand-primary); font-weight: 800; font-size: 16px;
  display: flex; align-items: center; justify-content: center; transition: all .15s var(--ease);
}
.fmini-follow:hover { border-color: var(--brand-primary); }
.fmini-follow.following { background: var(--brand-primary); color: #fff; border-color: var(--brand-primary); }
.fcoupon .ago { font-size: 11px; color: var(--text-muted); padding: 0 14px 8px; }
.fleg { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 14px; }
.fleg + .fleg { border-top: 1px dashed var(--line); }
.fleg .fmatch { min-width: 0; }
.fleg .fmatch b { font-size: 12.5px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fleg .fmatch small { font-size: 10.5px; color: var(--text-muted); }
.fpick { display: flex; flex-direction: column; align-items: center; justify-content: center; flex-shrink: 0;
  min-width: 76px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 5px 8px; }
.fpick .pk { font-size: 10.5px; color: var(--text-muted); font-weight: 600; }
.fpick .od { font-weight: 800; color: var(--brand-primary); font-size: 13.5px; }
.fcoupon-foot { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: var(--surface-2); font-size: 11.5px; flex-wrap: wrap; border-top: 1px solid var(--line); }
.fcoupon-foot .k { color: var(--text-muted); }
.fcoupon-foot .k b { color: var(--text); font-weight: 700; }
.fcoupon-foot .spacer { flex: 1; }
.fcoupon-foot .btn { padding: 6px 12px; font-size: 12px; }
.win-badge { display: inline-flex; align-items: center; gap: 5px; background: rgba(22,163,74,.12); color: #15803D; font-weight: 800; font-size: 11px; padding: 3px 9px; border-radius: var(--r-pill); }
.win-amt { color: var(--up); font-weight: 800; }
.hot { display: inline-flex; align-items: center; gap: 4px; color: #E0530A; font-weight: 700; }
.hot svg { flex-shrink: 0; }

/* hot bet rows (Popüler Bahisler compact) */
.hotbet { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-top: 1px solid var(--line); }
.hotbet:first-child { border-top: none; }
.hotbet .hb-info { flex: 1; min-width: 0; }
.hotbet .hb-info .hb-market { font-size: 10.5px; color: var(--text-muted); }
.hotbet .hb-info b { font-size: 12.5px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hotbet .odd-cell { width: 66px; height: 42px; }

@media (max-width: 1024px) {
  .feed-3 { grid-template-columns: 1fr 1fr; }
  .feed-3 .feed-col:last-child { grid-column: span 2; }
  .feed-3 .feed-col:last-child { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
}
@media (max-width: 680px) {
  .feed-3 { grid-template-columns: 1fr; }
  .feed-3 .feed-col:last-child { grid-column: auto; display: flex; }
}
