/* ═══════════════════════════════════════════════════════════════
   JargonBet — Premium UI System v6.4
   Vanilla CSS · Dark/Light Themes · Digitain/BetConstruct Layouts
   GIF-Style CSS Animations for All Images
   ═══════════════════════════════════════════════════════════════ */

/* ─── 1. CSS VARIABLES ──────────────────────────────────────────── */
:root {
  /* Dark Theme (Default) */
  --bg-0:          #0D1B2A;
  --bg-1:          #112236;
  --bg-2:          #162d44;
  --bg-card:       #1a3454;
  --bg-card-hover: #1e3d63;
  --gold:          #B8963E;
  --gold-glow:     rgba(184,150,62,0.22);
  --gold-light:    #d4ae58;
  --gold-dim:      #8a6e28;
  --text-1:        #FFFFFF;
  --text-2:        #8aaec8;
  --text-3:        #4d6f8a;
  --border:        rgba(201,168,76,0.18);
  --border-s:      rgba(201,168,76,0.5);
  --overlay:       rgba(201,168,76,0.12);
  --header-h:      64px;
  --bnav-h:        60px;
  --radius:        8px;
  --radius-lg:     14px;
  --radius-xl:     20px;
  --shadow:        0 4px 28px rgba(0,0,0,0.45);
  --shadow-card:   0 2px 12px rgba(0,0,0,0.3);
  --tr:            0.2s ease;
  --tr-med:        0.35s ease;
}

[data-theme="light"] {
  --bg-0:          #EEF2F7;
  --bg-1:          #FFFFFF;
  --bg-2:          #F5F7FA;
  --bg-card:       #FFFFFF;
  --bg-card-hover: #F0F4FA;
  --gold:          #9E7A2E;
  --gold-glow:     rgba(158,122,46,0.15);
  --gold-light:    #b89040;
  --gold-dim:      #7a5c1e;
  --text-1:        #1A2530;
  --text-2:        #4A6278;
  --text-3:        #8A9BAB;
  --border:        rgba(184,134,11,0.15);
  --border-s:      rgba(184,134,11,0.45);
  --overlay:       rgba(184,134,11,0.08);
  --shadow:        0 4px 28px rgba(0,0,0,0.1);
  --shadow-card:   0 2px 12px rgba(0,0,0,0.07);
}

/* ─── 1.1 GIF-STYLE IMAGE ANIMATIONS (Soft & Elegant) ───────────── */
/* 12 farklı GIF efekti - Soft ve belirgin - Admin'den seçilebilir */

/* Efekt 1: Yumuşak Parıltı / Soft Shimmer */
@keyframes softShimmer {
  0%, 100% { filter: brightness(1) saturate(1); }
  50% { filter: brightness(1.08) saturate(1.05) drop-shadow(0 0 6px rgba(184,150,62,0.3)); }
}

/* Efekt 2: Hafif Dalga / Gentle Wave */
@keyframes gentleWave {
  0%, 100% { transform: scale(1) translateY(0); }
  50% { transform: scale(1.01) translateY(-2px); }
}

/* Efekt 3: Renk Tonu / Soft Color */
@keyframes softColor {
  0%, 100% { filter: hue-rotate(0deg) saturate(1); }
  50% { filter: hue-rotate(8deg) saturate(1.08); }
}

/* Efekt 4: Nabız / Gentle Pulse */
@keyframes gentlePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

/* Efekt 5: Neon Işık / Soft Neon */
@keyframes softNeon {
  0%, 100% { 
    filter: drop-shadow(0 0 3px rgba(184,150,62,0.25));
  }
  50% { 
    filter: drop-shadow(0 0 8px rgba(184,150,62,0.4));
  }
}

/* Efekt 6: Hafif Titreşim / Micro Shake */
@keyframes microShake {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-0.5px, 0.5px); }
  50% { transform: translate(0.5px, -0.5px); }
  75% { transform: translate(-0.5px, -0.5px); }
}

/* Efekt 7: Nefes Alma / Breathe */
@keyframes breathe {
  0%, 100% { opacity: 0.95; }
  50% { opacity: 1; }
}

/* Efekt 8: Işık Geçişi / Light Sweep */
@keyframes lightSweep {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* Efekt 9: Zoom / Soft Zoom */
@keyframes softZoom {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

/* Efekt 10: Gradient / Soft Gradient */
@keyframes softGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Efekt 11: Float / Yüzme */
@keyframes floatEffect {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

/* Efekt 12: Glow / Yumuşak Işıma */
@keyframes softGlow {
  0%, 100% { 
    box-shadow: 0 0 5px rgba(184,150,62,0.2);
    filter: brightness(1);
  }
  50% { 
    box-shadow: 0 0 12px rgba(184,150,62,0.35);
    filter: brightness(1.05);
  }
}

/* Varsayılan animasyon - tüm görsellere uygulanır */
.game-thumb,
.live-thumb {
  position: relative;
}

.game-thumb::before,
.live-thumb::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(184,150,62,0.08) 50%, transparent 70%);
  animation: lightSweep 6s linear infinite;
  z-index: 1;
  pointer-events: none;
}

/* GIF içeren kartlar için özel stil - overlay'i kaldır */
.game-thumb.has-gif::before,
.live-thumb.has-gif::before {
  display: none;
}

/* Manuel görsel içeren kartlar için özel stil */
.game-thumb.has-img::before,
.live-thumb.has-img::before {
  display: none;
}

/* GIF image için optimize edilmiş container */
.game-thumb.has-gif,
.live-thumb.has-gif {
  overflow: hidden;
}

/* Manuel görsel için optimize edilmiş container */
.game-thumb.has-img,
.live-thumb.has-img {
  overflow: hidden;
}

.game-art-svg,
.game-real-img,
.live-thumb img {
  position: relative;
  z-index: 0;
}

/* Live thumb GIF desteği */
.live-thumb .game-gif-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
  /* Performans optimizasyonu */
  will-change: transform;
  transform: translateZ(0);
  /* GIF kalitesini koru */
  image-rendering: auto;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* Live kart hover efekti */
.live-card:hover .game-gif-img {
  transform: scale(1.05) translateZ(0);
  transition: transform 0.3s ease;
}

/* Per-game animation classes */
.game-card[class*="game-anim-"],
.live-card[class*="live-anim-"] {
  position: relative;
}

/* Soft Shimmer */
.game-card.game-anim-softShimmer .game-art-svg,
.game-card.game-anim-softShimmer .game-real-img,
.live-card.live-anim-softShimmer .game-art-svg,
.live-card.live-anim-softShimmer .game-real-img {
  animation: softShimmer var(--anim-speed, 3s) ease-in-out infinite;
}

/* Gentle Wave */
.game-card.game-anim-gentleWave .game-art-svg,
.game-card.game-anim-gentleWave .game-real-img,
.live-card.live-anim-gentleWave .game-art-svg,
.live-card.live-anim-gentleWave .game-real-img {
  animation: gentleWave var(--anim-speed, 3s) ease-in-out infinite;
}

/* Soft Color */
.game-card.game-anim-softColor .game-art-svg,
.game-card.game-anim-softColor .game-real-img,
.live-card.live-anim-softColor .game-art-svg,
.live-card.live-anim-softColor .game-real-img {
  animation: softColor var(--anim-speed, 3s) ease-in-out infinite;
}

/* Gentle Pulse */
.game-card.game-anim-gentlePulse .game-art-svg,
.game-card.game-anim-gentlePulse .game-real-img,
.live-card.live-anim-gentlePulse .game-art-svg,
.live-card.live-anim-gentlePulse .game-real-img {
  animation: gentlePulse var(--anim-speed, 3s) ease-in-out infinite;
}

/* Soft Neon */
.game-card.game-anim-softNeon .game-art-svg,
.game-card.game-anim-softNeon .game-real-img,
.live-card.live-anim-softNeon .game-art-svg,
.live-card.live-anim-softNeon .game-real-img {
  animation: softNeon var(--anim-speed, 3s) ease-in-out infinite;
}

/* Micro Shake */
.game-card.game-anim-microShake .game-art-svg,
.game-card.game-anim-microShake .game-real-img,
.live-card.live-anim-microShake .game-art-svg,
.live-card.live-anim-microShake .game-real-img {
  animation: microShake var(--anim-speed, 3s) ease-in-out infinite;
}

/* Breathe */
.game-card.game-anim-breathe .game-art-svg,
.game-card.game-anim-breathe .game-real-img,
.live-card.live-anim-breathe .game-art-svg,
.live-card.live-anim-breathe .game-real-img {
  animation: breathe var(--anim-speed, 3s) ease-in-out infinite;
}

/* Soft Zoom */
.game-card.game-anim-softZoom .game-art-svg,
.game-card.game-anim-softZoom .game-real-img,
.live-card.live-anim-softZoom .game-art-svg,
.live-card.live-anim-softZoom .game-real-img {
  animation: softZoom var(--anim-speed, 3s) ease-in-out infinite;
}

/* Float Effect */
.game-card.game-anim-floatEffect .game-art-svg,
.game-card.game-anim-floatEffect .game-real-img,
.live-card.live-anim-floatEffect .game-art-svg,
.live-card.live-anim-floatEffect .game-real-img {
  animation: floatEffect var(--anim-speed, 3s) ease-in-out infinite;
}

/* Soft Glow */
.game-card.game-anim-softGlow .game-art-svg,
.game-card.game-anim-softGlow .game-real-img,
.live-card.live-anim-softGlow .game-art-svg,
.live-card.live-anim-softGlow .game-real-img {
  animation: softGlow var(--anim-speed, 3s) ease-in-out infinite;
}

/* Tüm görseller için otomatik GIF efektleri */
.game-art-svg,
.game-real-img,
.game-thumb::before,
.game-thumb::after,
.live-thumb::before,
.live-thumb::after {
  position: relative;
  animation: shimmerGlow 3s ease-in-out infinite;
}

.game-thumb::before,
.live-thumb::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(255,215,0,0.1) 50%, transparent 70%);
  animation: rotatingLight 4s linear infinite;
  z-index: 1;
  pointer-events: none;
}

.game-thumb::after,
.live-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  animation: gradientOverlay 5s ease-in-out infinite;
  z-index: 1;
  pointer-events: none;
}

/* Farklı kartlara farklı efektler */
.game-card:nth-child(12n+1) .game-art-svg,
.game-card:nth-child(12n+1) .game-real-img {
  animation: shimmerGlow 3s ease-in-out infinite;
}

.game-card:nth-child(12n+2) .game-art-svg,
.game-card:nth-child(12n+2) .game-real-img {
  animation: waveMotion 4s ease-in-out infinite;
}

.game-card:nth-child(12n+3) .game-art-svg,
.game-card:nth-child(12n+3) .game-real-img {
  animation: colorShift 5s ease-in-out infinite;
}

.game-card:nth-child(12n+4) .game-art-svg,
.game-card:nth-child(12n+4) .game-real-img {
  animation: pulseZoom 3.5s ease-in-out infinite;
}

.game-card:nth-child(12n+5) .game-art-svg,
.game-card:nth-child(12n+5) .game-real-img {
  animation: neonGlow 2.5s ease-in-out infinite;
}

.game-card:nth-child(12n+6) .game-art-svg,
.game-card:nth-child(12n+6) .game-real-img {
  animation: microVibrate 0.5s linear infinite;
}

.game-card:nth-child(12n+7) .game-art-svg,
.game-card:nth-child(12n+7) .game-real-img {
  animation: fadeInOut 4s ease-in-out infinite;
}

.game-card:nth-child(12n+8) .game-art-svg,
.game-card:nth-child(12n+8) .game-real-img {
  animation: zoomEffect 4.5s ease-in-out infinite;
}

.game-card:nth-child(12n+9) .game-art-svg,
.game-card:nth-child(12n+9) .game-real-img {
  animation: glitchEffect 3s ease-in-out infinite;
}

.game-card:nth-child(12n+10) .game-art-svg,
.game-card:nth-child(12n+10) .game-real-img {
  animation: softBounce 3s ease-in-out infinite;
}

.game-card:nth-child(12n+11) .game-art-svg,
.game-card:nth-child(12n+11) .game-real-img {
  animation: shimmerGlow 3.5s ease-in-out infinite;
}

.game-card:nth-child(12n+12) .game-art-svg,
.game-card:nth-child(12n+12) .game-real-img {
  animation: colorShift 4s ease-in-out infinite;
}

/* Live Casino kartları için efektler */
.live-card:nth-child(6n+1) .live-thumb img,
.live-card:nth-child(6n+1) .game-art-svg {
  animation: neonGlow 3s ease-in-out infinite;
}

.live-card:nth-child(6n+2) .live-thumb img,
.live-card:nth-child(6n+2) .game-art-svg {
  animation: pulseZoom 3.5s ease-in-out infinite;
}

.live-card:nth-child(6n+3) .live-thumb img,
.live-card:nth-child(6n+3) .game-art-svg {
  animation: waveMotion 4s ease-in-out infinite;
}

.live-card:nth-child(6n+4) .live-thumb img,
.live-card:nth-child(6n+4) .game-art-svg {
  animation: colorShift 4.5s ease-in-out infinite;
}

.live-card:nth-child(6n+5) .live-thumb img,
.live-card:nth-child(6n+5) .game-art-svg {
  animation: shimmerGlow 3s ease-in-out infinite;
}

.live-card:nth-child(6n+6) .live-thumb img,
.live-card:nth-child(6n+6) .game-art-svg {
  animation: fadeInOut 4s ease-in-out infinite;
}

/* Hover durumunda animasyonları durdur */
.game-card:hover .game-art-svg,
.game-card:hover .game-real-img,
.live-card:hover .live-thumb img,
.live-card:hover .game-art-svg {
  animation-play-state: paused;
}

/* Provider kartları için özel efekt */
.provider-card:nth-child(4n+1) { animation: softBounce 4s ease-in-out infinite; }
.provider-card:nth-child(4n+2) { animation: pulseZoom 3.5s ease-in-out infinite; }
.provider-card:nth-child(4n+3) { animation: shimmerGlow 3s ease-in-out infinite; }
.provider-card:nth-child(4n+4) { animation: waveMotion 4s ease-in-out infinite; }

.provider-card:hover {
  animation-play-state: paused;
}

/* ─── 2. RESET & BASE ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg-0);
  color: var(--text-1);
  line-height: 1.5;
  min-height: 100dvh;
  overflow-x: hidden;
  transition: background var(--tr-med), color var(--tr-med);
}

a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
input { font: inherit; }

/* ─── 3. TRANSITION OVERLAY (Flash Engine) ──────────────────────── */
.transition-overlay {
  position: fixed; inset: 0; z-index: 9998;
  background: var(--bg-0);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.transition-overlay.active { opacity: 0.92; pointer-events: all; }

/* Logo pulse animation */
@keyframes logoPulse {
  0%   { transform: scale(1);    filter: brightness(1); }
  50%  { transform: scale(1.08); filter: brightness(1.6) drop-shadow(0 0 12px var(--gold)); }
  100% { transform: scale(1);    filter: brightness(1); }
}
.logo-pulse { animation: logoPulse 0.4s ease; }

/* ─── 4. GATEWAY ────────────────────────────────────────────────── */
.gateway-overlay {
  position: fixed; inset: 0; z-index: 10000;
  background: radial-gradient(ellipse at 50% 30%, #142545 0%, #0D1B2A 70%);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.4s ease;
}
.gateway-overlay.fade-out { opacity: 0; }

.gateway-modal {
  background: linear-gradient(145deg, #162d44, #0f2035);
  border: 1px solid var(--border-s);
  border-radius: var(--radius-xl);
  padding: 40px 40px 32px;
  width: min(480px, 95vw);
  max-height: 92vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6), inset 0 1px 0 rgba(201,168,76,0.2);
  animation: fadeInUp 0.5s ease;
  scrollbar-width: thin;
  scrollbar-color: var(--border-s) transparent;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.gateway-logo {
  margin-bottom: 28px;
}
.gateway-logo .logo-text {
  font-size: 2.2rem; font-weight: 800; letter-spacing: 0.06em;
  color: var(--text-1);
}
.gateway-logo .logo-accent { color: var(--gold); }

.gateway-title {
  font-size: 1.4rem; font-weight: 700; color: var(--text-1); margin-bottom: 8px;
}
.gateway-subtitle {
  font-size: 0.9rem; color: var(--text-2); margin-bottom: 32px;
}
.gateway-checks {
  display: flex; flex-direction: column; gap: 14px;
  text-align: left; margin-bottom: 28px;
}
.check-item {
  display: flex; align-items: flex-start; gap: 12px; cursor: pointer;
}
.check-item input[type="checkbox"] { display: none; }
.check-box {
  width: 22px; height: 22px; min-width: 22px;
  border: 2px solid var(--border-s);
  border-radius: 5px;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--tr);
  background: var(--bg-card);
  margin-top: 1px;
}
.check-item input:checked + .check-box {
  background: var(--gold); border-color: var(--gold);
}
.check-item input:checked + .check-box::after {
  content: "✓"; font-size: 13px; font-weight: 700; color: #0D1B2A;
}
.check-label { font-size: 0.88rem; color: var(--text-2); line-height: 1.4; }

.btn-gateway {
  width: 100%; padding: 14px; font-size: 1rem; font-weight: 700;
  border-radius: var(--radius); margin-bottom: 20px;
  letter-spacing: 0.04em;
}
.btn-gateway:disabled {
  opacity: 0.4; cursor: not-allowed;
}

.gateway-lang-switch {
  display: flex; justify-content: center; gap: 8px; margin-bottom: 20px;
}
.lang-btn {
  padding: 6px 16px; border-radius: 20px;
  font-size: 0.82rem; font-weight: 600;
  border: 1px solid var(--border);
  color: var(--text-2);
  transition: all var(--tr);
}
.lang-btn.active, .lang-btn:hover {
  border-color: var(--gold); color: var(--gold); background: var(--gold-glow);
}

.gateway-deny {
  color: #ff6b6b; font-size: 0.83rem; margin-bottom: 12px;
  padding: 8px 12px; background: rgba(255,107,107,0.1); border-radius: 6px;
}
.gateway-logos {
  display: flex; justify-content: center; align-items: center; gap: 16px;
  margin-top: 4px;
}
.age-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  border: 2px solid var(--gold); color: var(--gold);
  font-size: 0.75rem; font-weight: 800;
}
.responsible-badge {
  font-size: 0.78rem; color: var(--text-3);
}

/* ─── 5. PROMO MODAL ────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(0,0,0,0.75);
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
  opacity: 0; transition: opacity 0.3s ease;
}
.modal-overlay.active { opacity: 1; }
.modal-overlay.hidden { display: none; }

.promo-modal {
  position: relative;
  background: linear-gradient(145deg, #162d44, #0f2035);
  border: 1px solid var(--border-s);
  border-radius: var(--radius-xl);
  padding: 48px 40px 36px;
  width: min(460px, 95vw);
  text-align: center;
  box-shadow: 0 24px 64px rgba(0,0,0,0.7);
  animation: scaleIn 0.3s ease;
}
@keyframes scaleIn {
  from { transform: scale(0.9); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

.modal-close {
  position: absolute; top: 16px; right: 20px;
  font-size: 1.5rem; color: var(--text-2);
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; transition: all var(--tr);
}
.modal-close:hover { background: var(--overlay); color: var(--text-1); }

.promo-badge {
  display: inline-block;
  background: var(--gold); color: #0D1B2A;
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.12em;
  padding: 4px 14px; border-radius: 20px; margin-bottom: 16px;
}
.promo-title { font-size: 1.6rem; font-weight: 800; color: var(--text-1); margin-bottom: 4px; }
.promo-amount {
  font-size: 3.5rem; font-weight: 900; color: var(--gold);
  line-height: 1; margin: 12px 0;
  text-shadow: 0 0 30px var(--gold-glow);
}
.promo-subtitle { font-size: 1.1rem; font-weight: 600; color: var(--gold-light); margin-bottom: 12px; }
.promo-desc { font-size: 0.86rem; color: var(--text-2); margin-bottom: 28px; line-height: 1.6; }
.btn-promo { width: 100%; padding: 14px; font-size: 1rem; font-weight: 700; border-radius: var(--radius); margin-bottom: 10px; }
.btn-promo-skip { width: 100%; padding: 10px; font-size: 0.88rem; color: var(--text-3); }
.btn-promo-skip:hover { color: var(--text-2); }

/* ─── 6. APP SHELL ──────────────────────────────────────────────── */
.app { display: flex; flex-direction: column; min-height: 100dvh; }
.app.hidden { display: none; }

/* ─── 7. HEADER ─────────────────────────────────────────────────── */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  height: var(--header-h);
  background: rgba(13,27,42,0.97);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  transition: background var(--tr-med);
}
[data-theme="light"] .header {
  background: rgba(255,255,255,0.97);
  box-shadow: 0 1px 12px rgba(0,0,0,0.08);
}

.header-inner {
  max-width: 1440px; margin: 0 auto;
  height: 100%;
  display: flex; align-items: center; gap: 24px;
  padding: 0 20px;
}

.header-left { display: flex; align-items: center; gap: 16px; }

.mobile-menu-btn {
  display: none; flex-direction: column; gap: 5px;
  padding: 8px; border-radius: var(--radius);
  transition: background var(--tr);
}
.mobile-menu-btn:hover { background: var(--overlay); }
.mobile-menu-btn span {
  display: block; width: 22px; height: 2px;
  background: var(--text-2); border-radius: 2px; transition: all var(--tr);
}

.logo {
  display: flex; align-items: center;
  user-select: none;
}
.logo-text {
  font-size: 1.35rem; font-weight: 900; letter-spacing: 0.05em;
  color: var(--text-1);
}
.logo-accent { color: var(--gold); }

.desktop-nav {
  display: flex; align-items: center; gap: 4px; flex: 1;
}
.nav-link {
  padding: 8px 14px; border-radius: var(--radius);
  font-size: 0.88rem; font-weight: 500; color: var(--text-2);
  transition: all var(--tr); white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
  color: var(--gold); background: var(--overlay);
}

.header-right { display: flex; align-items: center; gap: 12px; margin-left: auto; }

.header-controls { display: flex; align-items: center; gap: 6px; }

/* Icon buttons */
.icon-btn {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-2); font-size: 1rem;
  transition: all var(--tr);
  border: 1px solid transparent;
}
.icon-btn:hover { background: var(--overlay); border-color: var(--border); color: var(--gold); }

.hidden { display: none !important; }

/* Language Switcher */
.lang-switcher { position: relative; }
.lang-current {
  display: flex; align-items: center; gap: 4px;
  padding: 6px 12px; border-radius: 20px;
  font-size: 0.82rem; font-weight: 700; color: var(--text-2);
  border: 1px solid var(--border);
  transition: all var(--tr); white-space: nowrap;
}
.lang-current:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-glow); }

.lang-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-s);
  border-radius: var(--radius);
  overflow: hidden;
  min-width: 140px;
  box-shadow: var(--shadow);
  display: none;
}
.lang-dropdown.open { display: block; animation: fadeInDown 0.2s ease; }
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.lang-dropdown button {
  display: block; width: 100%;
  padding: 10px 16px; text-align: left;
  font-size: 0.88rem; color: var(--text-2);
  transition: all var(--tr);
}
.lang-dropdown button:hover { background: var(--overlay); color: var(--gold); }
.lang-dropdown button.active { color: var(--gold); }

/* Infra Switcher */
.infra-switcher {
  display: flex; border-radius: 20px;
  border: 1px solid var(--border);
  overflow: hidden;
}
.infra-btn {
  padding: 5px 12px; font-size: 0.78rem; font-weight: 700;
  color: var(--text-3); transition: all var(--tr);
}
.infra-btn.active {
  background: var(--gold); color: #0D1B2A;
}
.infra-btn:not(.active):hover { color: var(--gold); background: var(--gold-glow); }

/* Header auth */
.header-auth { display: flex; align-items: center; gap: 8px; }
.header-balance { display: flex; align-items: center; gap: 6px; font-size: 0.88rem; }
.balance-label { color: var(--text-3); }
.balance-amount { color: var(--gold); font-weight: 700; }

/* User menu (logged-in header) */
.user-menu { position: relative; }
.user-menu-trigger {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 10px 6px 6px; border-radius: 999px;
  background: var(--surface-2, rgba(255,255,255,0.05));
  border: 1px solid var(--border, rgba(255,255,255,0.08));
  color: var(--text-1, #fff); cursor: pointer; transition: all var(--tr);
}
.user-menu-trigger:hover { border-color: var(--gold); background: var(--gold-glow, rgba(184,150,62,0.1)); }
.user-menu .user-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-light, #d4b565));
  color: #0D1B2A; font-weight: 800; font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.user-menu-info { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.2; }
.user-menu-name { font-size: 0.82rem; font-weight: 600; color: var(--text-1); max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-menu-balance { font-size: 0.72rem; color: var(--gold); font-weight: 700; }
.user-menu-caret { color: var(--text-3); transition: transform 0.2s; }
.user-menu-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  min-width: 200px; background: var(--surface-1, #101a2b);
  border: 1px solid var(--border, rgba(255,255,255,0.08));
  border-radius: 10px; padding: 6px; display: none;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  z-index: 1000;
}
.user-menu-dropdown.open { display: block; animation: fadeInDown 0.2s ease; }
.user-menu-item {
  display: block; padding: 10px 14px; border-radius: 6px;
  color: var(--text-2, #c0c8d4); font-size: 0.88rem; cursor: pointer;
  text-decoration: none; transition: all 0.15s;
}
.user-menu-item:hover { background: var(--overlay, rgba(255,255,255,0.06)); color: var(--gold); }
.user-menu-divider { height: 1px; background: var(--border, rgba(255,255,255,0.08)); margin: 4px 0; }
.user-menu-logout { color: #ff6b6b !important; }
.user-menu-logout:hover { background: rgba(255,107,107,0.1) !important; color: #ff8888 !important; }
@media (max-width: 640px) {
  .user-menu-info { display: none; }
}

/* ─── 8. BUTTONS ────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 22px; border-radius: var(--radius);
  font-size: 0.9rem; font-weight: 600; letter-spacing: 0.02em;
  transition: all var(--tr); white-space: nowrap; cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--gold); color: #0D1B2A;
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-light); border-color: var(--gold-light);
  box-shadow: 0 0 18px var(--gold-glow);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent; color: var(--gold);
  border-color: var(--border-s);
}
.btn-ghost:hover { background: var(--gold-glow); border-color: var(--gold); }
.btn-sm  { padding: 7px 16px; font-size: 0.82rem; }
.btn-lg  { padding: 14px 32px; font-size: 1rem; }
.btn-full { width: 100%; }

/* ─── 9. MAIN CONTENT ───────────────────────────────────────────── */
.main-content {
  flex: 1;
  margin-top: var(--header-h);
  padding-bottom: calc(var(--bnav-h) + 16px);
}

.page-inner {
  max-width: 1440px; margin: 0 auto;
  padding: 24px 20px;
}

.page-section {
  max-width: 1440px; margin: 0 auto;
  padding: 24px 20px 0;
}

/* ─── 10. HERO ──────────────────────────────────────────────────── */
.hero {
  position: relative;
  background: linear-gradient(135deg, #112236 0%, #0D1B2A 60%, #0a1520 100%);
  border-bottom: 1px solid var(--border);
  padding: 60px 20px 48px;
  overflow: hidden;
}
[data-theme="light"] .hero {
  background: linear-gradient(135deg, #162d44 0%, #1a3a5c 100%);
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 80% 50%, rgba(201,168,76,0.08) 0%, transparent 60%),
    radial-gradient(circle at 20% 80%, rgba(201,168,76,0.05) 0%, transparent 40%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 40px,
    rgba(201,168,76,0.03) 40px,
    rgba(201,168,76,0.03) 41px
  );
  pointer-events: none;
}

/* Hero background image (admin-uploadable) */
.hero-bg-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}
.hero-bg-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #0D1B2A 0%, rgba(13,27,42,0.65) 40%, rgba(10,21,32,0.85) 100%);
  z-index: 0;
  pointer-events: none;
}
.hero.hero-has-bg::before,
.hero.hero-has-bg::after { z-index: 0; }

.hero-content {
  position: relative; z-index: 1;
  max-width: 640px; margin: 0 auto;
  text-align: center;
}
.hero-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900; line-height: 1.15;
  color: var(--text-1); margin-bottom: 14px;
  letter-spacing: -0.01em;
}
.hero-subtitle {
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  color: var(--text-2); margin-bottom: 32px; line-height: 1.6;
}
.hero-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

.hero-stats {
  position: relative; z-index: 1;
  display: flex; justify-content: center; gap: 40px;
  max-width: 1440px; margin: 40px auto 0;
  padding: 0 20px;
}
.hero-stat { text-align: center; }
.stat-num { display: block; font-size: 1.6rem; font-weight: 800; color: var(--gold); }
.stat-lbl { display: block; font-size: 0.8rem; color: var(--text-3); margin-top: 2px; text-transform: uppercase; letter-spacing: 0.06em; }

/* ─── 11. SECTION HEADERS ───────────────────────────────────────── */
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.section-title {
  font-size: 1.1rem; font-weight: 700; color: var(--text-1);
  display: flex; align-items: center; gap: 10px;
}
.section-title::before {
  content: ""; display: block;
  width: 3px; height: 18px; border-radius: 2px;
  background: var(--gold);
}
.section-more {
  font-size: 0.82rem; color: var(--gold); font-weight: 600;
  cursor: pointer; transition: opacity var(--tr);
}
.section-more:hover { opacity: 0.75; }

/* ─── 12. GAME GRIDS ────────────────────────────────────────────── */
/* Admin panelinden özelleştirilebilir değişkenler */
:root {
  --game-grid-cols: 8;
  --game-card-gap:  10px;
  --card-aspect:    3/4;
}

/* Home: admin değişkenlerine bağlı */
.game-grid-home {
  display: grid;
  grid-template-columns: repeat(var(--game-grid-cols), 1fr);
  gap: var(--game-card-gap);
}

/* Full page */
.game-grid-full {
  display: grid;
  grid-template-columns: repeat(var(--game-grid-cols), 1fr);
  gap: var(--game-card-gap);
}

@media (max-width: 1200px) {
  .game-grid-home, .game-grid-full { grid-template-columns: repeat(6, 1fr); }
}
@media (max-width: 900px) {
  .game-grid-home, .game-grid-full { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 600px) {
  .game-grid-home, .game-grid-full { grid-template-columns: repeat(3, 1fr); gap: 7px; }
}

/* ─── 13. GAME CARDS ────────────────────────────────────────────── */
.game-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  cursor: pointer; transition: transform var(--tr), box-shadow var(--tr);
}
.game-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4), 0 0 0 1px var(--border-s);
}
.game-card:hover .game-overlay { opacity: 1; }

.game-thumb {
  position: relative;
  aspect-ratio: var(--card-aspect, 3/4);
  overflow: hidden;
  border-radius: var(--radius);
}

/* Game art images (SVG data URI + real img + GIF) */
.game-art-svg,
.game-real-img,
.game-gif-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: inherit;
}
.game-real-img { z-index: 1; }
.game-art-svg  { z-index: 0; }
.game-gif-img  { 
  z-index: 1;
  /* GIF için optimize edilmiş scaling - kart oranına tam uyum */
  object-fit: cover;
  object-position: center center;
  width: 100%;
  height: 100%;
  /* Performans optimizasyonu */
  will-change: transform;
  transform: translateZ(0);
  /* GIF kalitesini koru */
  image-rendering: auto;
  /* Smooth rendering */
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* GIF hover efekti - zoom */
.game-card:hover .game-gif-img,
.live-card:hover .game-gif-img {
  transform: scale(1.05) translateZ(0);
  transition: transform 0.3s ease;
}

/* Ensure overlays/badges sit above art */
.game-thumb-pattern,
.game-thumb-letter,
.game-overlay,
.tag,
.live-type-badge,
.live-players-badge { z-index: 2; }

/* CSS generated game art */
.game-thumb-pattern {
  position: absolute; inset: 0;
  background:
    linear-gradient(135deg, rgba(201,168,76,0.05) 0%, transparent 55%),
    radial-gradient(circle at 30% 20%, rgba(255,255,255,0.06) 0%, transparent 40%);
}
.game-thumb-letter {
  position: absolute;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: rgba(184,150,62,0.22);
  text-transform: uppercase; user-select: none;
  letter-spacing: -0.02em;
  font-family: Georgia, serif;
}

/* Game overlay — gold hover layer */
.game-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.85) 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 10px 8px 8px;
  opacity: 0; transition: opacity var(--tr-med);
  border: 2px solid var(--gold);
  border-radius: var(--radius);
}
.game-overlay-info { margin-bottom: 8px; }
.game-overlay-name {
  display: block; font-size: 0.78rem; font-weight: 700;
  color: var(--text-1); line-height: 1.3;
}
.game-overlay-provider {
  display: block; font-size: 0.68rem; color: var(--gold); margin-top: 2px;
}
.game-overlay-btns { display: flex; gap: 6px; }
.btn-play-mini, .btn-demo-mini {
  flex: 1; padding: 6px 4px; border-radius: 5px;
  font-size: 0.72rem; font-weight: 700;
  transition: all var(--tr);
}
.btn-play-mini {
  background: var(--gold); color: #0D1B2A;
}
.btn-play-mini:hover { background: var(--gold-light); }
.btn-demo-mini {
  background: rgba(255,255,255,0.1); color: var(--text-1);
  border: 1px solid rgba(255,255,255,0.2);
}
.btn-demo-mini:hover { background: rgba(255,255,255,0.2); }

/* BetConstruct card: shows name below thumb */
.bc-card .game-info {
  padding: 8px 4px 4px;
}
.bc-card .game-name {
  display: block; font-size: 0.75rem; font-weight: 600; color: var(--text-1);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bc-card .game-provider {
  display: block; font-size: 0.67rem; color: var(--text-3); margin-top: 1px;
}

/* Digitain card: minimal, info only on hover */
.dg-card .game-info { display: none; }

/* Tags */
.tag {
  position: absolute; top: 6px; left: 6px; z-index: 2;
  font-size: 0.58rem; font-weight: 800; letter-spacing: 0.08em;
  padding: 3px 7px; border-radius: 3px; text-transform: uppercase;
}
.tag-popular  { background: #8B1A1A; color: #fff; }
.tag-new      { background: #0d4a28; color: #7de8a8; }
.tag-jackpot  { background: #7a5e18; color: #f5d98a; }

/* ─── 14. LIVE CASINO GRIDS ─────────────────────────────────────── */
.live-grid-home {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}
.live-grid-full {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
@media (max-width: 1200px) {
  .live-grid-home { grid-template-columns: repeat(4, 1fr); }
  .live-grid-full { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 900px) {
  .live-grid-home { grid-template-columns: repeat(3, 1fr); }
  .live-grid-full { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .live-grid-home { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .live-grid-full { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}

.live-card {
  position: relative; border-radius: var(--radius-lg);
  overflow: hidden; cursor: pointer;
  transition: transform var(--tr), box-shadow var(--tr);
  border: 1px solid var(--border);
}
.live-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.4), 0 0 0 1px var(--border-s); }

.live-thumb {
  position: relative; aspect-ratio: 16/10; overflow: hidden;
}
.live-type-badge {
  position: absolute; top: 8px; left: 8px; z-index: 2;
  background: rgba(0,0,0,0.65); color: var(--text-1);
  font-size: 0.68rem; font-weight: 700; padding: 3px 8px; border-radius: 4px;
}
.live-players-badge {
  position: absolute; bottom: 8px; right: 8px; z-index: 2;
  background: rgba(0,0,0,0.65); color: #fff;
  font-size: 0.65rem; padding: 3px 8px; border-radius: 4px;
  display: flex; align-items: center; gap: 5px;
}
.live-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #2ecc71; display: inline-block;
  animation: livePulse 1.2s infinite;
}
@keyframes livePulse {
  0%,100% { opacity: 1; } 50% { opacity: 0.3; }
}

.live-info { padding: 10px 12px; background: var(--bg-card); }
.live-name { display: block; font-size: 0.82rem; font-weight: 700; color: var(--text-1); }
.live-provider { display: block; font-size: 0.7rem; color: var(--text-3); margin-top: 2px; }

/* Digitain: slightly more compact */
.dg-live-card .live-info { padding: 8px 10px; }
.dg-live-card .live-players-badge { font-size: 0.6rem; }

/* ─── 15. AD BANNERS ────────────────────────────────────────────── */
.ad-banner {
  max-width: 1440px; margin: 20px auto; padding: 0 20px;
  cursor: pointer;
}
.ad-banner-inner {
  background: linear-gradient(90deg, var(--bg-card), var(--bg-1), var(--bg-card));
  border: 1px solid var(--border-s);
  border-radius: var(--radius);
  padding: 14px 20px;
  display: flex; align-items: center; gap: 14px;
  transition: all var(--tr);
}
.ad-banner:hover .ad-banner-inner {
  border-color: var(--gold); background: linear-gradient(90deg, var(--bg-card), var(--overlay), var(--bg-card));
  box-shadow: 0 0 20px var(--gold-glow);
}
.ad-icon { font-size: 1.1rem; color: var(--gold); flex-shrink: 0; }
.ad-text { flex: 1; font-size: 0.88rem; color: var(--text-1); font-weight: 500; }
.ad-cta {
  padding: 6px 16px; border-radius: 20px;
  font-size: 0.78rem; font-weight: 700;
  background: var(--gold); color: #0D1B2A;
  flex-shrink: 0; transition: all var(--tr);
}
.ad-cta:hover { background: var(--gold-light); transform: scale(1.04); }

/* Image banner variant */
.ad-banner.ad-banner-image { padding: 0 20px; }
.ad-banner.ad-banner-image > * { max-width: 1440px; }
.ad-banner.ad-banner-image {
  position: relative; overflow: hidden;
}
.ad-banner.ad-banner-image img {
  display: block; width: 100%; max-width: 1400px;
  height: auto; max-height: 260px;
  object-fit: cover; border-radius: var(--radius);
  border: 1px solid var(--border-s); margin: 0 auto;
  transition: transform var(--tr);
}
.ad-banner.ad-banner-image:hover img { transform: scale(1.01); border-color: var(--gold); }
.ad-banner-caption {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 14px;
  background: rgba(13,27,42,0.85); backdrop-filter: blur(4px);
  padding: 10px 18px; border-radius: 999px;
  border: 1px solid var(--border-s);
}
.ad-banner-caption .ad-text { color: #fff; font-size: 0.88rem; }

/* ─── 16. SPORTS — DIGITAIN STYLE ───────────────────────────────── */
.sports-container { display: flex; flex-direction: column; gap: 2px; }

/* Digitain: compact list */
.dg-sports { gap: 2px; }
.match-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
  background: var(--bg-card);
  border-radius: var(--radius);
  gap: 16px;
  transition: background var(--tr);
  border: 1px solid transparent;
}
.match-row:hover { background: var(--bg-card-hover); border-color: var(--border); }
.match-row.live { border-left: 3px solid #2ecc71; }

.match-left { flex: 1; min-width: 0; }
.match-time { font-size: 0.75rem; color: var(--text-3); display: block; margin-bottom: 3px; }
.match-name-dg { font-size: 0.88rem; font-weight: 600; color: var(--text-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.match-league-dg { font-size: 0.72rem; color: var(--text-3); }

.match-odds-dg { display: flex; gap: 5px; flex-shrink: 0; }
.odds-btn-dg {
  display: flex; flex-direction: column; align-items: center;
  min-width: 52px; padding: 5px 8px;
  background: var(--bg-0); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text-1);
  font-size: 0.72rem; transition: all var(--tr);
}
.odds-btn-dg span { font-size: 0.65rem; color: var(--text-3); }
.odds-btn-dg strong { font-size: 0.88rem; font-weight: 700; color: var(--gold); }
.odds-btn-dg:hover, .odds-btn-dg.selected {
  background: var(--gold); border-color: var(--gold);
}
.odds-btn-dg:hover span, .odds-btn-dg.selected span { color: rgba(13,27,42,0.7); }
.odds-btn-dg:hover strong, .odds-btn-dg.selected strong { color: #0D1B2A; }

/* BetConstruct: card grid */
.bc-sports {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px;
}
.match-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 16px;
  transition: all var(--tr);
}
.match-card:hover { border-color: var(--border-s); box-shadow: var(--shadow-card); }
.match-card.live { border-left: 3px solid #2ecc71; }

.match-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.match-time { font-size: 0.78rem; color: var(--text-3); }
.match-league { font-size: 0.72rem; color: var(--text-3); margin-left: auto; }
.match-name { font-size: 0.95rem; font-weight: 700; color: var(--text-1); margin-bottom: 14px; }

.match-odds { display: flex; gap: 8px; }
.odds-btn {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  padding: 8px 4px; background: var(--bg-0);
  border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--text-1); transition: all var(--tr);
}
.odds-btn .odds-lbl { font-size: 0.68rem; color: var(--text-3); }
.odds-btn .odds-val { font-size: 0.95rem; font-weight: 700; color: var(--gold); }
.odds-btn:hover, .odds-btn.selected {
  background: var(--gold); border-color: var(--gold);
}
.odds-btn:hover .odds-lbl, .odds-btn.selected .odds-lbl { color: rgba(13,27,42,0.7); }
.odds-btn:hover .odds-val, .odds-btn.selected .odds-val { color: #0D1B2A; }

.live-badge {
  background: #2ecc71; color: #fff;
  font-size: 0.62rem; font-weight: 800; letter-spacing: 0.08em;
  padding: 2px 7px; border-radius: 4px; text-transform: uppercase;
}

/* ─── 17. PROVIDERS GRID ────────────────────────────────────────── */
.provider-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 8px;
}
@media (max-width: 1000px) { .provider-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 600px)  { .provider-grid { grid-template-columns: repeat(2, 1fr); } }

.provider-card {
  background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 10px;
  text-align: center; cursor: pointer;
  transition: all var(--tr);
  position: relative; overflow: hidden;
}
.provider-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0; transition: opacity var(--tr);
}
.provider-card:hover { border-color: var(--border-s); transform: translateY(-2px); box-shadow: var(--shadow-card); }
.provider-card:hover::before { opacity: 1; }
.provider-name { display: block; font-size: 0.78rem; font-weight: 700; color: var(--text-1); }
.provider-games { display: block; font-size: 0.67rem; color: var(--gold); margin-top: 4px; }

/* ─── 18. PAGE TOOLBAR ──────────────────────────────────────────── */
.page-toolbar {
  display: flex; align-items: center; gap: 16px;
  flex-wrap: wrap; margin-bottom: 20px;
}
.filter-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-pill {
  padding: 7px 16px; border-radius: 20px;
  font-size: 0.82rem; font-weight: 600;
  border: 1px solid var(--border); color: var(--text-2);
  transition: all var(--tr);
}
.filter-pill:hover { border-color: var(--gold); color: var(--gold); }
.filter-pill.active {
  background: var(--gold); border-color: var(--gold); color: #0D1B2A;
}

.search-box {
  position: relative; display: flex; align-items: center;
  margin-left: auto;
}
.search-icon {
  position: absolute; left: 12px; width: 16px; height: 16px;
  color: var(--text-3); pointer-events: none;
}
.search-input {
  padding: 9px 14px 9px 38px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 20px; color: var(--text-1); width: 220px;
  transition: all var(--tr);
  outline: none;
}
.search-input::placeholder { color: var(--text-3); }
.search-input:focus { border-color: var(--gold); width: 260px; box-shadow: 0 0 0 3px var(--gold-glow); }

/* ─── 19. PROMOTIONS PAGE ───────────────────────────────────────── */
.promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.promo-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px 24px;
  position: relative; overflow: hidden;
  transition: all var(--tr);
}
.promo-card:hover { border-color: var(--border-s); transform: translateY(-3px); box-shadow: var(--shadow); }
.promo-card-icon { font-size: 2rem; margin-bottom: 12px; }
.promo-card-badge {
  position: absolute; top: 16px; right: 16px;
  background: var(--gold); color: #0D1B2A;
  font-size: 0.7rem; font-weight: 800; padding: 4px 10px; border-radius: 20px;
}
.promo-card-title { font-size: 1.05rem; font-weight: 700; color: var(--text-1); margin-bottom: 8px; }
.promo-card-desc { font-size: 0.84rem; color: var(--text-2); line-height: 1.5; margin-bottom: 20px; }

/* ─── 20. AUTH CARD ─────────────────────────────────────────────── */
.auth-card {
  max-width: 420px; margin: 0 auto;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 40px 36px;
}
.auth-title { font-size: 1.4rem; font-weight: 700; color: var(--text-1); margin-bottom: 28px; text-align: center; }
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.82rem; color: var(--text-2); font-weight: 500; }
.form-input {
  padding: 11px 14px;
  background: var(--bg-0); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text-1); outline: none;
  transition: all var(--tr);
}
.form-input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-glow); }
.auth-divider {
  display: flex; align-items: center; gap: 12px; color: var(--text-3); font-size: 0.8rem;
}
.auth-divider::before, .auth-divider::after {
  content: ""; flex: 1; height: 1px; background: var(--border);
}

/* ─── 21. SETTINGS PAGE ─────────────────────────────────────────── */
.settings-card {
  max-width: 600px; margin: 0 auto;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 36px;
}
.settings-title { font-size: 1.3rem; font-weight: 700; color: var(--text-1); margin-bottom: 28px; }
.settings-group { margin-bottom: 24px; }
.settings-label { display: block; font-size: 0.82rem; color: var(--text-2); font-weight: 600; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.06em; }
.toggle-group { display: flex; gap: 8px; flex-wrap: wrap; }
.toggle-btn {
  padding: 10px 18px; border-radius: var(--radius);
  font-size: 0.86rem; font-weight: 600;
  border: 1px solid var(--border); color: var(--text-2);
  transition: all var(--tr);
}
.toggle-btn:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-glow); }
.toggle-btn.active {
  background: var(--gold); border-color: var(--gold); color: #0D1B2A;
}

/* ─── 22. FOOTER ────────────────────────────────────────────────── */
.footer {
  background: var(--bg-1); border-top: 1px solid var(--border);
  margin-top: 48px;
}
.footer-inner {
  max-width: 1440px; margin: 0 auto;
  padding: 32px 20px;
  display: flex; flex-direction: column; align-items: center; gap: 18px;
}
.footer-logo { font-size: 1.3rem; font-weight: 900; letter-spacing: 0.05em; color: var(--text-1); }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; }
.footer-link { font-size: 0.82rem; color: var(--text-3); transition: color var(--tr); }
.footer-link:hover { color: var(--gold); }
.footer-badges { display: flex; align-items: center; gap: 16px; }
.footer-copy { font-size: 0.75rem; color: var(--text-3); }

/* ─── 23. BOTTOM NAV (Mobile) ───────────────────────────────────── */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 400;
  height: var(--bnav-h);
  background: var(--bg-1);
  border-top: 1px solid var(--border);
  display: none;
  grid-template-columns: repeat(5, 1fr);
  backdrop-filter: blur(12px);
}
.bottom-nav-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; padding: 4px;
  color: var(--text-3); font-size: 0.62rem; font-weight: 500;
  transition: color var(--tr); text-decoration: none;
}
.bottom-nav-item svg { width: 22px; height: 22px; stroke: currentColor; }
.bottom-nav-item.active { color: var(--gold); }
.bottom-nav-item:hover { color: var(--gold); }

/* ─── 24. EMPTY STATE ───────────────────────────────────────────── */
.empty-state {
  grid-column: 1 / -1; text-align: center;
  color: var(--text-3); padding: 40px; font-size: 0.9rem;
}

/* ─── 25. TOAST NOTIFICATIONS ───────────────────────────────────── */
.toast {
  position: fixed; bottom: calc(var(--bnav-h) + 16px); left: 50%;
  transform: translateX(-50%) translateY(12px);
  background: var(--bg-card);
  border: 1px solid var(--border-s);
  border-radius: var(--radius);
  padding: 12px 22px; font-size: 0.86rem; color: var(--text-1);
  box-shadow: var(--shadow); z-index: 9999;
  opacity: 0; transition: all 0.3s ease;
  white-space: nowrap; max-width: 90vw; text-align: center;
}
.toast.visible { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ─── 26. MOBILE RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 768px) {
  /* Show bottom nav */
  .bottom-nav { display: grid; }

  /* Hide desktop nav (show on mobile menu toggle) */
  .desktop-nav {
    display: none; position: fixed; top: var(--header-h); left: 0; right: 0;
    background: var(--bg-1); border-bottom: 1px solid var(--border);
    flex-direction: column; padding: 12px 16px; gap: 4px; z-index: 490;
  }
  .desktop-nav.mobile-open { display: flex; }
  .nav-link { padding: 12px 16px; border-radius: var(--radius); }

  /* Show hamburger */
  .mobile-menu-btn { display: flex; }

  /* Header adjustments */
  .header-auth .btn-ghost { display: none; }
  .infra-switcher { display: none; }

  /* Hero */
  .hero { padding: 40px 16px 32px; }
  .hero-stats { gap: 20px; }
  .hero-actions .btn-lg { padding: 11px 22px; font-size: 0.92rem; }

  /* Sections */
  .page-section { padding: 20px 12px 0; }
  .page-inner { padding: 16px 12px; }

  /* Search */
  .search-box { width: 100%; margin-left: 0; }
  .search-input { width: 100%; }
  .search-input:focus { width: 100%; }

  /* Page toolbar */
  .page-toolbar { flex-direction: column; align-items: stretch; gap: 10px; }

  /* Settings/auth cards */
  .settings-card, .auth-card { padding: 24px 18px; }

  /* Sports BC grid */
  .bc-sports { grid-template-columns: 1fr; }

  /* Footer */
  .footer-links { gap: 14px; }

  /* Bottom nav safe area */
  .main-content { padding-bottom: calc(var(--bnav-h) + 24px); }
}

@media (max-width: 400px) {
  .hero-stats { flex-wrap: wrap; gap: 14px; justify-content: center; }
  .stat-num { font-size: 1.3rem; }
  .gateway-modal { padding: 32px 20px; }
  .promo-modal { padding: 36px 20px 28px; }
  .promo-amount { font-size: 2.8rem; }
}

/* ─── 27. SCROLLBAR ─────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-0); }
::-webkit-scrollbar-thumb { background: var(--border-s); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-dim); }

/* ─── 28. SELECTION ─────────────────────────────────────────────── */
::selection { background: var(--gold-glow); color: var(--text-1); }

/* ─── 29. FOCUS ─────────────────────────────────────────────────── */
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: var(--radius); }

/* ─── 30. LOADING SHIMMER (lazy-load ready) ─────────────────────── */
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.skeleton {
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-2) 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--radius);
}

/* ─── GATEWAY: T&C SCROLL BOX ──────────────────────────────────── */
.tc-scroll-box {
  position: relative;
  max-height: 180px; overflow-y: auto;
  background: rgba(0,0,0,0.25);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 20px;
  text-align: left;
  scroll-behavior: smooth;
}
.tc-scroll-box::-webkit-scrollbar { width: 4px; }
.tc-scroll-box::-webkit-scrollbar-track { background: transparent; }
.tc-scroll-box::-webkit-scrollbar-thumb { background: var(--border-s); border-radius: 4px; }
.tc-content p {
  font-size: 0.78rem; color: var(--text-2); line-height: 1.6;
  margin-bottom: 8px;
}
.tc-content p:empty { display: none; }
.tc-scroll-hint {
  position: sticky; bottom: -14px; left: 0; right: 0;
  background: linear-gradient(to top, rgba(14,30,50,0.95) 60%, transparent);
  padding: 10px 0 4px;
  display: flex; align-items: center; justify-content: center; gap: 5px;
  font-size: 0.72rem; color: var(--gold);
  pointer-events: none;
}
.check-item.unlocked .check-box { border-color: var(--border-s); }

/* ─── GATEWAY: LICENSE BAR ──────────────────────────────────────── */
.gateway-license-bar {
  display: flex; align-items: center; justify-content: center;
  gap: 16px; margin-top: 20px; flex-wrap: wrap;
}
.license-badge-link { text-decoration: none; }
.license-badge-gw {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 14px; border-radius: 20px;
  border: 1px solid rgba(184,150,62,0.4);
  background: rgba(184,150,62,0.08);
  font-size: 0.72rem; color: var(--gold);
  transition: all var(--tr);
}
.license-badge-gw:hover { border-color: var(--gold); background: rgba(184,150,62,0.15); }

/* ─── FOOTER: LICENSE BADGE ─────────────────────────────────────── */
.footer-license-bar {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
  padding: 20px 0; border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}
.footer-license-badge {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 12px 20px; border-radius: var(--radius-lg);
  border: 1px solid rgba(184,150,62,0.45);
  background: linear-gradient(135deg, rgba(184,150,62,0.06), rgba(184,150,62,0.02));
  text-decoration: none; transition: all var(--tr); cursor: pointer;
}
.footer-license-badge:hover {
  border-color: var(--gold); box-shadow: 0 0 20px var(--gold-glow);
  transform: translateY(-1px);
}
.license-shield {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--gold-glow); border: 1px solid rgba(184,150,62,0.4);
  color: var(--gold); flex-shrink: 0;
}
.license-info { display: flex; flex-direction: column; gap: 3px; }
.license-status {
  display: flex; align-items: center; gap: 7px;
  font-size: 0.78rem; font-weight: 700; color: var(--text-1);
}
.license-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #2ecc71; display: inline-block;
  box-shadow: 0 0 6px rgba(46,204,113,0.6);
  animation: livePulse 1.5s infinite;
}
.license-number { font-size: 0.7rem; color: var(--gold); font-weight: 500; }
.license-ext-icon { color: var(--text-3); flex-shrink: 0; }

.footer-badges-row { display: flex; align-items: center; gap: 10px; }
.age-badge-lg {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%;
  border: 2px solid var(--gold); color: var(--gold);
  font-size: 0.85rem; font-weight: 900; flex-shrink: 0;
}
.responsible-pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 14px; border-radius: 20px;
  border: 1px solid var(--border); color: var(--text-2);
  font-size: 0.78rem; font-weight: 600;
}

/* ─── FOOTER: NAV GRID ──────────────────────────────────────────── */
.footer-nav {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px; margin-bottom: 28px;
}
@media (max-width: 768px) {
  .footer-nav { grid-template-columns: 1fr 1fr; gap: 20px; }
}
@media (max-width: 480px) {
  .footer-nav { grid-template-columns: 1fr; }
}
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-logo { font-size: 1.4rem; font-weight: 900; letter-spacing: 0.05em; color: var(--text-1); }
.footer-tagline { font-size: 0.8rem; color: var(--text-3); }
.footer-col-title { font-size: 0.72rem; font-weight: 800; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 2px; }
.footer-link { font-size: 0.83rem; color: var(--text-2); transition: color var(--tr); cursor: pointer; }
.footer-link:hover { color: var(--gold); }
.footer-support-hours { font-size: 0.75rem; color: var(--gold); }

/* ─── FOOTER: DISCLAIMER ────────────────────────────────────────── */
.footer-disclaimer {
  padding: 20px; border-radius: var(--radius);
  background: rgba(0,0,0,0.15); border: 1px solid var(--border);
  margin-bottom: 20px;
}
.footer-disclaimer p { font-size: 0.76rem; color: var(--text-3); line-height: 1.7; }

/* ─── FOOTER: BOTTOM BAR ────────────────────────────────────────── */
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px; padding-top: 16px;
  border-top: 1px solid var(--border);
}
.footer-copy { font-size: 0.76rem; color: var(--text-3); }
.footer-admin-link {
  cursor: pointer; padding: 0 4px; opacity: 0.4;
  transition: opacity .2s, color .2s;
  user-select: none;
}
.footer-admin-link:hover { opacity: 1; color: var(--gold); }
.footer-bottom-badges { display: flex; gap: 8px; }

/* ─── 23. PROVIDER TAB BAR ─────────────────────────────────────── */
.provider-tab-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 10px;
  margin-bottom: 4px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.provider-tab-bar::-webkit-scrollbar { display: none; }

.provider-tab-bar--sm .provider-tab {
  font-size: 0.78rem;
  padding: 5px 12px;
}

.provider-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-2);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s ease;
  flex-shrink: 0;
}
.provider-tab:hover {
  border-color: var(--gold);
  color: var(--gold-light);
  background: var(--overlay);
}
.provider-tab.active {
  background: linear-gradient(135deg, var(--gold), var(--gold-dim));
  border-color: var(--gold);
  color: #0D1B2A;
}
.ptab-name { font-weight: 600; }
.ptab-count {
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(0,0,0,0.15);
  border-radius: 10px;
  padding: 1px 6px;
}
.provider-tab.active .ptab-count {
  background: rgba(0,0,0,0.2);
}

/* ─── 24. GAMES COUNT BAR ──────────────────────────────────────── */
.games-count-bar {
  font-size: 0.78rem;
  color: var(--text-3);
  padding: 4px 0 12px;
  font-weight: 500;
}

/* ─── 25. ALL GAMES HERO ───────────────────────────────────────── */
.all-games-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0 16px;
  flex-wrap: wrap;
}
.all-games-hero h2 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--gold-light);
  margin: 0;
}

/* ─── 26. HOME PROVIDER STRIP ──────────────────────────────────── */
.home-provider-strip {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.home-provider-chip {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 10px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  cursor: pointer;
  transition: all 0.18s ease;
  min-width: 120px;
}
.home-provider-chip:hover {
  border-color: var(--gold);
  background: var(--overlay);
  transform: translateY(-2px);
}
.hpc-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-1);
  white-space: nowrap;
}
.hpc-count {
  font-size: 0.7rem;
  color: var(--text-2);
}

/* ─── 27. EMPTY STATE ──────────────────────────────────────────── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 64px 24px;
  color: var(--text-3);
  text-align: center;
  font-size: 0.9rem;
}
.empty-state svg { opacity: 0.3; }
.ssl-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: 4px;
  border: 1px solid var(--border); font-size: 0.68rem;
  font-weight: 700; color: var(--text-3); letter-spacing: 0.04em;
}

/* ─── LEGAL PAGES ───────────────────────────────────────────────── */
.legal-page-card {
  max-width: 860px; margin: 0 auto;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
}
.legal-page-header {
  padding: 28px 36px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  background: linear-gradient(135deg, var(--bg-1), var(--bg-card));
}
.legal-page-title { font-size: 1.4rem; font-weight: 800; color: var(--text-1); }
.license-verify-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 20px;
  border: 1px solid rgba(184,150,62,0.4); color: var(--gold);
  font-size: 0.78rem; font-weight: 600; text-decoration: none;
  transition: all var(--tr);
}
.license-verify-link:hover { background: var(--gold-glow); border-color: var(--gold); }
.legal-content {
  padding: 32px 36px;
  max-height: 70vh; overflow-y: auto;
}
.legal-content p { font-size: 0.86rem; color: var(--text-2); line-height: 1.75; margin-bottom: 12px; }
.legal-content li { font-size: 0.86rem; color: var(--text-2); line-height: 1.75; margin-bottom: 6px; margin-left: 20px; list-style: disc; }
.legal-section-title { font-size: 0.88rem; font-weight: 800; color: var(--gold); margin: 24px 0 10px; letter-spacing: 0.04em; }
@media (max-width: 600px) {
  .legal-page-header { padding: 20px; flex-direction: column; align-items: flex-start; }
  .legal-content { padding: 20px; }
  .footer-license-bar { flex-direction: column; align-items: flex-start; }
}

/* ─── LAZY LOAD ANIMATION ───────────────────────────────────── */
.game-card, .live-card {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.game-card.card-visible, .live-card.card-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── PERFORMANCE: GPU HİNTLERİ ─────────────────────────────── */
.header         { will-change: transform; }
.game-overlay   { will-change: opacity; }
.transition-overlay { will-change: opacity; }
.bottom-nav     { will-change: transform; }

/* ─── PRINT: YASAL SAYFALAR ─────────────────────────────────── */
@media print {
  .header, .bottom-nav, .footer-license-bar, .ad-banner { display: none !important; }
  .legal-content { max-height: none !important; overflow: visible !important; }
  body { background: white !important; color: black !important; }
  .legal-page-card { border: 1px solid #ccc; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   §28 — Profile Page
═══════════════════════════════════════════════════════════════════════════ */
.profile-hero {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  position: relative;
}

.profile-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.profile-hero-info {
  flex: 1;
  min-width: 0;
}

.profile-hero-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-hero-email {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
  margin-bottom: 8px;
}

.profile-vip-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 11px;
  border-radius: 20px;
  border: 1px solid;
}

.profile-queue-badge {
  background: linear-gradient(135deg, #b8860b 0%, #ffd700 100%);
  color: #1a1200;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.15s;
  margin-left: auto;
}
.profile-queue-badge:hover { opacity: 0.85; }

/* Stats grid */
.profile-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 20px;
  border: 1px solid var(--border);
}

.profile-stat {
  background: var(--card-bg);
  padding: 14px 10px;
  text-align: center;
}

.profile-stat-val {
  font-size: 1rem;
  font-weight: 800;
  color: var(--gold, #ffd700);
}

.profile-stat-lbl {
  font-size: 0.63rem;
  color: var(--text-muted);
  margin-top: 3px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Sections */
.profile-section {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 16px;
}

.profile-section-title {
  margin: 0 0 14px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
}

/* Active bonuses */
.profile-bonus-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.profile-bonus-item {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
}

.profile-bonus-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.profile-bonus-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.profile-bonus-prog {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold, #ffd700);
}

.profile-bonus-bar {
  height: 5px;
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 8px;
}

.profile-bonus-fill {
  height: 100%;
  background: linear-gradient(90deg, #b8860b, #ffd700);
  border-radius: 3px;
  transition: width 0.6s ease;
}

.profile-bonus-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.profile-bonus-meta span {
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 20px;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.55);
  border: 1px solid rgba(255,255,255,0.1);
}

/* Info grid */
.profile-info-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.profile-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.profile-info-row:last-child { border-bottom: none; }

.profile-info-lbl {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.profile-info-val {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  text-align: right;
}

.profile-edit-btn {
  margin-top: 4px;
}

/* Responsive */
@media (max-width: 480px) {
  .profile-hero { gap: 12px; }
  .profile-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .profile-avatar { width: 52px; height: 52px; font-size: 1.1rem; }
}

/* ═══════════════════════════════════════════════════════════════
   AUTH MODAL - Premium Login/Register
   ═══════════════════════════════════════════════════════════════ */

.auth-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
}

.auth-modal.open {
  display: flex;
}

.auth-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
}

.auth-modal-content {
  position: relative;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border: 2px solid var(--gold);
  border-radius: 20px;
  padding: 40px;
  max-width: 450px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(184, 150, 62, 0.3);
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.auth-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  color: var(--text-1);
  font-size: 2rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
}

.auth-close:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: rotate(90deg);
}

.auth-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  border-bottom: 2px solid rgba(184, 150, 62, 0.3);
}

.auth-tab {
  flex: 1;
  padding: 12px;
  background: none;
  border: none;
  color: var(--text-2);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
}

.auth-tab.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.auth-tab:hover {
  color: var(--gold-light);
}

.auth-form {
  display: none;
}

.auth-form.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.auth-form h2 {
  color: var(--text-1);
  margin: 0 0 25px 0;
  font-size: 1.8rem;
  text-align: center;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  color: var(--text-2);
  margin-bottom: 8px;
  font-size: 0.9rem;
  font-weight: 500;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="tel"] {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(184, 150, 62, 0.3);
  border-radius: 8px;
  color: var(--text-1);
  font-size: 1rem;
  transition: all 0.2s;
}

.form-group input:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(184, 150, 62, 0.1);
}

.form-group small {
  display: block;
  color: var(--text-3);
  margin-top: 6px;
  font-size: 0.8rem;
}

.btn-primary {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  border: none;
  border-radius: 8px;
  color: #000;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 10px;
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(184, 150, 62, 0.4);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.forgot-password {
  display: block;
  text-align: center;
  color: var(--text-2);
  margin-top: 15px;
  text-decoration: none;
  font-size: 0.9rem;
}

.forgot-password:hover {
  color: var(--gold);
}

/* Toast Notifications */
.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border: 2px solid var(--gold);
  border-radius: 12px;
  padding: 16px 20px;
  color: var(--text-1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  z-index: 10001;
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.3s ease;
  max-width: 400px;
}

.toast.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Responsive */
@media (max-width: 768px) {
  .auth-modal-content {
    padding: 30px 20px;
    width: 95%;
  }
  
  .toast {
    right: 10px;
    left: 10px;
    max-width: none;
  }
}

/* ═══════════════════════════════════════════════════════════════
   LIVE SPORTS — MODERN REAL-DATA UI
   ═══════════════════════════════════════════════════════════════ */
.sports-page { padding-top: 8px; }

.sports-hero {
  background: linear-gradient(135deg, rgba(184,150,62,0.12) 0%, rgba(13,27,42,0.85) 100%);
  border: 1px solid rgba(184,150,62,0.25);
  border-radius: 20px;
  padding: 22px 26px;
  margin-bottom: 18px;
  display: flex; flex-direction: column; gap: 10px;
  position: relative; overflow: hidden;
  box-shadow: 0 12px 32px -12px rgba(0,0,0,0.35);
}
.sports-hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 90% 10%, rgba(46,204,113,0.18) 0%, transparent 45%);
  pointer-events: none;
}
.sports-hero-title { display: flex; align-items: center; gap: 14px; position: relative; z-index: 1; }
.sports-hero-title h1 {
  margin: 0; font-size: 1.55rem; font-weight: 800;
  background: linear-gradient(135deg, #fff 0%, #D4AF37 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  letter-spacing: 0.3px;
}
.sports-pulse {
  display: inline-block; width: 12px; height: 12px; border-radius: 50%;
  background: #2ecc71;
  box-shadow: 0 0 0 0 rgba(46,204,113,0.8);
  animation: sportsPulse 1.8s cubic-bezier(0.4,0,0.6,1) infinite;
  flex-shrink: 0;
}
@keyframes sportsPulse {
  0%   { box-shadow: 0 0 0 0    rgba(46,204,113,0.8); transform: scale(1); }
  50%  { box-shadow: 0 0 0 12px rgba(46,204,113,0);   transform: scale(1.15); }
  100% { box-shadow: 0 0 0 0    rgba(46,204,113,0);   transform: scale(1); }
}
.sports-hero-meta { position: relative; z-index: 1; }
.sports-status {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.87rem; color: var(--text-2);
  padding: 6px 12px; border-radius: 999px;
  background: rgba(0,0,0,0.25); border: 1px solid rgba(255,255,255,0.06);
}
.sports-status .dot {
  width: 8px; height: 8px; border-radius: 50%; display: inline-block;
}
.sports-status .dot-live     { background: #2ecc71; box-shadow: 0 0 8px #2ecc71; animation: sportsPulse 1.8s infinite; }
.sports-status .dot-cache    { background: #f59e0b; }
.sports-status .dot-fallback { background: #ef4444; }
.sports-quota { color: var(--gold); font-weight: 600; font-size: 0.8rem; }
.sports-err   { color: #ef4444; font-size: 0.78rem; }

.sports-toolbar {
  display: flex !important; align-items: center; gap: 12px;
  margin-bottom: 16px;
}
.sports-toolbar .filter-pills { flex: 1; }
.sports-refresh-btn {
  width: 40px; height: 40px; border-radius: 12px;
  border: 1px solid rgba(184,150,62,0.3);
  background: linear-gradient(135deg, rgba(184,150,62,0.1), rgba(184,150,62,0.05));
  color: var(--gold); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
  flex-shrink: 0;
}
.sports-refresh-btn:hover {
  background: linear-gradient(135deg, rgba(184,150,62,0.25), rgba(184,150,62,0.15));
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -8px rgba(184,150,62,0.5);
}
.sports-refresh-btn.spinning svg { animation: sportsSpin 0.8s linear infinite; }
@keyframes sportsSpin { to { transform: rotate(360deg); } }

/* Live badge — pulsing red */
.live-badge {
  display: inline-flex !important; align-items: center; gap: 6px;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
  color: #fff !important; font-weight: 700;
  padding: 4px 10px !important; border-radius: 6px !important;
  font-size: 0.72rem !important; letter-spacing: 0.5px;
  box-shadow: 0 4px 12px -4px rgba(239,68,68,0.5);
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
.live-badge .live-pulse {
  width: 6px; height: 6px; border-radius: 50%; background: #fff;
  animation: livePulse 1s ease-in-out infinite;
}
@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(0.7); }
}

/* Score display */
.match-score {
  display: inline-flex; align-items: center; gap: 6px;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, rgba(46,204,113,0.15), rgba(46,204,113,0.05));
  border: 1px solid rgba(46,204,113,0.3);
  color: #2ecc71;
  padding: 3px 10px; border-radius: 8px;
  font-weight: 800; font-size: 0.95rem;
  margin: 0 8px;
}
.match-score b { color: #fff; font-size: 1.05rem; }
.match-vs, .match-vs-sm {
  color: var(--text-2); font-size: 0.78rem; opacity: 0.6;
  margin: 0 6px; font-weight: 500;
}

/* Home/away team names */
.match-team {
  font-weight: 600; color: var(--text-1);
  flex: 1; text-align: center;
}

/* Bookmaker badge */
.match-book {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 0.7rem; color: var(--gold);
  opacity: 0.75;
  padding: 2px 8px; border-radius: 6px;
  background: rgba(184,150,62,0.08);
  border: 1px solid rgba(184,150,62,0.18);
  margin-left: auto;
}

/* Match name flex layout for home/score/away */
.bc-match .match-name {
  display: flex; align-items: center; gap: 4px;
  font-size: 1.02rem; font-weight: 700;
  padding: 8px 0;
}
.dg-match .match-name-dg {
  display: flex; align-items: center; gap: 4px;
  font-weight: 600;
}

/* Disabled odds button */
.odds-btn.disabled, .odds-btn-dg.disabled {
  opacity: 0.4; cursor: not-allowed; pointer-events: none;
  filter: grayscale(0.6);
}

/* Empty state */
.sports-empty {
  text-align: center; padding: 60px 20px; color: var(--text-2);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.sports-empty span { font-size: 3rem; opacity: 0.5; }
.sports-empty p    { margin: 0; font-size: 0.95rem; }

/* Skeleton loader */
.match-skel {
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid var(--border-s);
  border-radius: 14px;
  padding: 18px; margin-bottom: 10px;
  position: relative; overflow: hidden;
}
.match-skel::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(184,150,62,0.08), transparent);
  animation: skelShimmer 1.4s infinite;
  transform: translateX(-100%);
}
@keyframes skelShimmer { to { transform: translateX(100%); } }
.skel-line {
  height: 14px; border-radius: 6px;
  background: rgba(255,255,255,0.06);
  margin-bottom: 10px;
}
.skel-line.s1 { width: 35%; }
.skel-line.s2 { width: 75%; height: 18px; }
.skel-odds { display: flex; gap: 8px; }
.skel-odds span {
  flex: 1; height: 40px; border-radius: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.05);
}

/* Match card hover enhancement — modern lift */
.match-card {
  transition: all 0.28s cubic-bezier(0.4,0,0.2,1);
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(255,255,255,0.015) 100%);
}
.match-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold) !important;
  box-shadow: 0 14px 32px -12px rgba(0,0,0,0.4), 0 0 0 1px rgba(184,150,62,0.15);
}
.match-card.live {
  border-left: 3px solid #ef4444 !important;
  background: linear-gradient(135deg, rgba(239,68,68,0.04) 0%, var(--bg-card) 50%);
}
.match-row.live {
  border-left: 3px solid #ef4444;
  background: linear-gradient(90deg, rgba(239,68,68,0.04) 0%, transparent 60%);
}

/* Odds value — highlight price change feel */
.odds-btn, .odds-btn-dg {
  transition: all 0.22s cubic-bezier(0.4,0,0.2,1);
  position: relative; overflow: hidden;
}
.odds-btn:hover, .odds-btn-dg:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
  box-shadow: 0 6px 14px -6px rgba(184,150,62,0.4);
}
.odds-val, .odds-btn-dg strong {
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}

/* Responsive */
@media (max-width: 640px) {
  .sports-hero { padding: 16px 18px; border-radius: 14px; }
  .sports-hero-title h1 { font-size: 1.2rem; }
  .sports-status { font-size: 0.78rem; padding: 5px 10px; }
  .sports-toolbar { flex-wrap: wrap; }
  .sports-refresh-btn { width: 36px; height: 36px; }
  .match-book { display: none; }
  .match-score { font-size: 0.85rem; padding: 2px 7px; }
  .match-score b { font-size: 0.95rem; }
  .team-crest { width: 22px; height: 22px; }
  .match-matchday { display: none; }
  .match-teams-row { flex-wrap: wrap; gap: 8px; }
  .match-side .match-team { font-size: 0.92rem; }
}

/* ─────────────────────────────────────────────────
   Team crests & modern match layout (football-data.org)
   ───────────────────────────────────────────────── */
.team-crest {
  width: 28px; height: 28px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.35));
  transition: transform 0.25s cubic-bezier(0.4,0,0.2,1);
}
.team-crest-fallback {
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(184,150,62,0.22), rgba(184,150,62,0.05));
  border: 1px solid rgba(184,150,62,0.35);
  color: var(--gold);
  border-radius: 50%;
  font-weight: 800; font-size: 0.82rem;
}
.match-card:hover .team-crest { transform: scale(1.08); }

/* BetConstruct layout — home | score | away row */
.bc-match .match-teams-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding: 10px 2px;
}
.match-side {
  display: flex; align-items: center; gap: 9px;
  flex: 1; min-width: 0;
}
.match-side.home { justify-content: flex-start; }
.match-side.away { justify-content: flex-end; }
.match-side .match-team {
  font-weight: 700; font-size: 1rem;
  color: var(--text-1);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  flex: initial; text-align: initial;
}

/* Digitain layout — inline compact */
.dg-match .match-teams-inline {
  display: flex; align-items: center; gap: 6px;
  font-weight: 600; font-size: 0.95rem;
  flex-wrap: nowrap; overflow: hidden;
}
.dg-match .match-teams-inline .team-crest { width: 22px; height: 22px; }
.dg-match .match-teams-inline > span {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 130px;
}

/* Final score badge */
.final-badge {
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(148,163,184,0.12);
  border: 1px solid rgba(148,163,184,0.28);
  color: #cbd5e1;
  font-weight: 700; font-size: 0.72rem;
  letter-spacing: 0.6px;
  padding: 3px 9px; border-radius: 8px;
  text-transform: uppercase;
}

/* Score variants */
.match-score.live { animation: scorePulseGlow 2.2s ease-in-out infinite; }
.match-score.final {
  background: linear-gradient(135deg, rgba(148,163,184,0.12), rgba(148,163,184,0.04));
  border-color: rgba(148,163,184,0.28);
  color: #cbd5e1;
}
.match-score.final b { color: #f1f5f9; }
.match-score i { opacity: 0.55; font-style: normal; font-weight: 500; }
@keyframes scorePulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(46,204,113,0);      border-color: rgba(46,204,113,0.3); }
  50%      { box-shadow: 0 0 0 4px rgba(46,204,113,0.18); border-color: rgba(46,204,113,0.55); }
}

/* Matchday badge */
.match-matchday {
  display: inline-flex; align-items: center;
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.7px;
  color: var(--text-2);
  padding: 2px 8px; border-radius: 6px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  margin-left: auto;
  text-transform: uppercase;
}

/* Finished match — slightly dimmed */
.match-card.finished, .match-row.finished {
  opacity: 0.88;
}
.match-card.finished:hover, .match-row.finished:hover { opacity: 1; }

/* Finer ticker: live scoreboard heartbeat on the whole card */
.match-card.live::before {
  content: ""; position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, #ef4444, transparent);
  background-size: 200% 100%;
  animation: liveTickerSweep 2.4s linear infinite;
  border-radius: 14px 14px 0 0;
  pointer-events: none;
}
.match-card { position: relative; }
@keyframes liveTickerSweep {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}/* ═══════════════════════════════════════════════════════════════
   NEXUSSPORTS — Sportsbook Overlay (Nexustrike iframe)
   ═══════════════════════════════════════════════════════════════ */

.nexus-sports-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: var(--bg-0);
  display: flex;
  flex-direction: column;
  opacity: 0;
  transition: opacity 0.22s ease;
}
.nexus-sports-overlay.is-open { opacity: 1; }

.nexus-sports-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
  padding: 0 1rem;
  background: linear-gradient(135deg, var(--bg-1) 0%, var(--bg-2) 100%);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.nexus-sports-meta {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: var(--text-1);
  font-weight: 600;
  font-size: .95rem;
}

.nexus-sports-badge {
  background: #ef4444;
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
  letter-spacing: .5px;
  animation: nexusPulse 1.8s ease-in-out infinite;
}
@keyframes nexusPulse {
  0%,100% { opacity: 1; }
  50%      { opacity: .55; }
}

.nexus-sports-actions {
  display: flex;
  align-items: center;
  gap: .4rem;
}
.nexus-sports-fs,
.nexus-sports-exit {
  width: 34px; height: 34px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-2);
  color: var(--text-2);
  font-size: 1rem;
  cursor: pointer;
  transition: var(--tr);
  display: flex; align-items: center; justify-content: center;
}
.nexus-sports-fs:hover,
.nexus-sports-exit:hover {
  background: var(--gold);
  color: #000;
  border-color: var(--gold);
}

.nexus-sports-body {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.nexus-sports-iframe {
  width: 100%; height: 100%;
  border: none;
  display: block;
}

.nexus-sports-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--text-2);
  font-size: .95rem;
}

.nexus-sports-spinner {
  width: 42px; height: 42px;
  border: 3px solid var(--border);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

.nexus-sports-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  padding: 2rem;
  color: var(--text-2);
}
.nexus-sports-error h3 {
  color: var(--text-1);
  font-size: 1.3rem;
  margin-bottom: .5rem;
}

/* ═══════════════════════════════════════════════════════════════
   NEXUS SPORTS BUTONU — Spor sayfasında "Sportsbook Aç" CTA
   ═══════════════════════════════════════════════════════════════ */

.nexus-sports-open-btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .75rem 1.5rem;
  background: linear-gradient(135deg, #1e3a5f 0%, #0d2a45 100%);
  border: 1px solid var(--border-s);
  border-radius: var(--radius-lg);
  color: var(--text-1);
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  transition: var(--tr-med);
  text-decoration: none;
}
.nexus-sports-open-btn:hover {
  background: linear-gradient(135deg, var(--gold) 0%, #8a6e28 100%);
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(184,150,62,.3);
}
.nexus-sports-open-btn svg {
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════════
   NEXUS OYUN KARTI — API'den gelen oyunlar için
   ═══════════════════════════════════════════════════════════════ */

.nexus-game-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: var(--tr-med);
  aspect-ratio: 4/3;
}
.nexus-game-card:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: var(--gold);
  box-shadow: 0 12px 32px rgba(0,0,0,.5), 0 0 0 1px var(--gold-dim);
}
.nexus-game-card img.nexus-thumb {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.nexus-game-card:hover img.nexus-thumb {
  transform: scale(1.06);
}
.nexus-game-card .nexus-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.85) 0%, transparent 55%);
  opacity: 0;
  transition: opacity .25s;
  display: flex; align-items: flex-end;
  padding: .75rem;
}
.nexus-game-card:hover .nexus-card-overlay { opacity: 1; }
.nexus-card-info { color: #fff; }
.nexus-card-name {
  font-size: .85rem; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-bottom: 2px;
}
.nexus-card-provider {
  font-size: .7rem; opacity: .75;
}
.nexus-card-play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%) scale(.8);
  background: var(--gold);
  color: #000;
  border: none;
  border-radius: 50%;
  width: 48px; height: 48px;
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0;
  transition: all .25s;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900;
}
.nexus-game-card:hover .nexus-card-play-btn {
  opacity: 1;
  transform: translate(-50%,-50%) scale(1);
}

/* Provider badge */
.nexus-provider-badge {
  position: absolute;
  top: .5rem; left: .5rem;
  background: rgba(0,0,0,.7);
  color: var(--gold);
  font-size: .62rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: .3px;
  text-transform: uppercase;
  border: 1px solid rgba(184,150,62,.3);
}

/* Live casino badge */
.nexus-game-card.is-live .nexus-provider-badge {
  background: rgba(239,68,68,.85);
  color: #fff;
}

/* NexusGGR bağlantı durumu göstergesi (admin) */
.nexus-status-bar {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .4rem .8rem;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: .78rem;
  color: var(--text-2);
}
.nexus-status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #6b7280;
  flex-shrink: 0;
}
.nexus-status-dot.connected    { background: #22c55e; box-shadow: 0 0 6px #22c55e88; }
.nexus-status-dot.mock         { background: #f59e0b; box-shadow: 0 0 6px #f59e0b88; }
.nexus-status-dot.error        { background: #ef4444; box-shadow: 0 0 6px #ef444488; }

