/* ============================================================
   Hadi Kazan Mini App – Whiskey & Turf CSS
   ============================================================ */

/* ══════════════════════════════════════════════════════════════
   SİNEMATİK INTRO SPLASH
══════════════════════════════════════════════════════════════ */
#intro-splash {
  position: fixed; inset: 0;
  background: #060b14;
  z-index: 9999;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  overflow: hidden;
  transition: opacity .6s ease, visibility .6s ease;
}
#intro-splash.hidden { 
    opacity: 0; 
    visibility: hidden; 
    pointer-events: none; 
    transform: scale(1.5);
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.6s ease;
}
.intro-lens-flare {
    position: absolute;
    width: 600px; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,184,106,0.3), white, rgba(255,184,106,0.3), transparent);
    top: 50%; left: 50%;
    transform: translate(-50%,-50%) rotate(-45deg);
    z-index: 1;
    pointer-events: none;
    animation: flare-sweep 3s infinite;
}
@keyframes flare-sweep {
    0% { transform: translate(-150%, -150%) rotate(-45deg); opacity: 0; }
    50% { opacity: 0.5; }
    100% { transform: translate(50%, 50%) rotate(-45deg); opacity: 0; }
}

/* Canvas partikel */
#intro-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}

/* Dönen ışık halkaları */
.intro-rings { position: absolute; inset: 0; pointer-events: none; }
.intro-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255,184,106,.12);
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  animation: ring-rotate linear infinite;
}
.r1 { width: 340px; height: 340px; animation-duration: 12s;  border-color: rgba(255,184,106,.15); }
.r2 { width: 500px; height: 500px; animation-duration: 18s;  border-color: rgba(255,184,106,.08); animation-direction: reverse; }
.r3 { width: 680px; height: 680px; animation-duration: 26s;  border-color: rgba(255,184,106,.05); }
@keyframes ring-rotate { to { transform: translate(-50%,-50%) rotate(360deg); } }

/* Zemin glow */
.intro-glow-bg {
  position: absolute;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(232,149,42,.18) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  animation: glow-breathe 3s ease-in-out infinite;
  pointer-events: none;
}
@keyframes glow-breathe {
  0%,100% { transform: translate(-50%,-50%) scale(1);   opacity: .7; }
  50%      { transform: translate(-50%,-50%) scale(1.2); opacity: 1;  }
}

/* İçerik wrap */
.intro-content {
  position: relative; z-index: 2;
  display: flex; flex-direction: column;
  align-items: center; text-align: center;
  gap: 0;
}

/* Top + gölge */
.intro-ball-wrap {
  position: relative; margin-bottom: 24px;
}
.intro-ball {
  font-size: 80px;
  display: block;
  filter: drop-shadow(0 0 40px rgba(255,184,106,.7))
          drop-shadow(0 0 80px rgba(255,184,106,.3));
  animation: intro-ball-bounce 1s cubic-bezier(.36,.07,.19,.97) forwards,
             intro-ball-spin   1s linear forwards;
  opacity: 0;
}
@keyframes intro-ball-bounce {
  0%   { opacity: 0; transform: translateY(-120px) scale(.4); }
  60%  { opacity: 1; transform: translateY(12px) scale(1.1);  }
  80%  { transform: translateY(-6px) scale(.95); }
  100% { opacity: 1; transform: translateY(0) scale(1);       }
}
@keyframes intro-ball-spin {
  from { filter: drop-shadow(0 0 40px rgba(255,184,106,.7)) drop-shadow(0 0 80px rgba(255,184,106,.3)); }
  to   { filter: drop-shadow(0 0 40px rgba(255,184,106,.7)) drop-shadow(0 0 80px rgba(255,184,106,.3)); }
}
.intro-ball-shadow {
  width: 60px; height: 8px;
  background: radial-gradient(ellipse, rgba(0,0,0,.6) 0%, transparent 70%);
  border-radius: 50%;
  margin: 0 auto;
  animation: shadow-pulse 1s ease-out forwards;
  opacity: 0;
}
@keyframes shadow-pulse {
  0%   { opacity: 0; transform: scaleX(.2); }
  60%  { opacity: .8; transform: scaleX(1.2); }
  100% { opacity: .5; transform: scaleX(1); }
}

/* DÜNYA KUPASI 2026 etiketi */
.intro-tagline {
  font-size: 11px; font-weight: 700;
  letter-spacing: .25em; text-transform: uppercase;
  color: rgba(255,184,106,.6);
  margin-bottom: 8px;
  opacity: 0;
  animation: fade-up .5s .8s ease forwards;
}

/* Ana marka adı */
.intro-brand {
  font-family: 'DM Sans', sans-serif;
  font-size: 48px; font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #ffd700 0%, #ffb86a 40%, #e8952a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0;
  animation: brand-reveal .7s .95s cubic-bezier(.34,1.56,.64,1) forwards;
  text-shadow: none;
  filter: drop-shadow(0 0 30px rgba(255,184,106,.4));
}
@keyframes brand-reveal {
  0%   { opacity: 0; transform: scale(.8) translateY(10px); letter-spacing: .1em; }
  100% { opacity: 1; transform: scale(1) translateY(0);     letter-spacing: -0.03em; }
}

/* Alt tagline */
.intro-sub {
  font-size: 13px; color: rgba(255,255,255,.45);
  margin-top: 8px; font-weight: 500;
  opacity: 0;
  animation: fade-up .5s 1.3s ease forwards;
}

/* İlerleme barı */
.intro-bar-wrap {
  width: 160px; height: 2px;
  background: rgba(255,255,255,.08);
  border-radius: 99px;
  margin-top: 32px; overflow: hidden;
  opacity: 0;
  animation: fade-up .3s 1.5s ease forwards;
}
.intro-bar {
  height: 100%; width: 0%; border-radius: 99px;
  background: linear-gradient(90deg, #e8952a, #ffd700);
  box-shadow: 0 0 10px rgba(255,184,106,0.6);
  animation: bar-fill 3.8s 0.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@keyframes bar-fill { to { width: 100%; } }

#intro-flash-overlay {
    position: absolute; inset: 0;
    background: white;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
}
.flash-active {
    animation: grand-finale 0.8s ease-out forwards;
}
@keyframes grand-finale {
    0% { opacity: 0; }
    30% { opacity: 1; }
    100% { opacity: 0; }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Alt footer */
.intro-footer {
  position: absolute; bottom: 32px;
  font-size: 11px; color: rgba(255,255,255,.2);
  letter-spacing: .08em;
  opacity: 0;
  animation: fade-up .4s 1.8s ease forwards;
}

/* ── YILDIZ KANVASı ── */
#star-canvas {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .35;
  width: 100%; height: 100%;
}
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(4px);
  z-index: 800;
  display: flex; align-items: flex-end; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity .25s, visibility .25s;
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding: 24px 20px max(env(safe-area-inset-bottom),20px);
  width: 100%; max-height: 80vh; overflow-y: auto;
  transform: translateY(30px);
  transition: transform .3s cubic-bezier(.34,1.56,.64,1);
}
.modal-overlay.open .modal { transform: translateY(0); }
.modal-title { font-size: 17px; font-weight: 800; margin-bottom: 16px; }
.modal-actions { display: flex; gap: 8px; margin-top: 16px; }

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&display=swap');

/* ── TOKENS ── */
:root {
  --bg:          #0c1322;
  --surface:     #141b2a;
  --surface-2:   #18202f;
  --surface-3:   #232a39;
  --border:      #2e3545;
  --primary:     #ffb86a;
  --primary-d:   #e8952a;
  --primary-glow:rgba(255,184,106,.18);
  --text:        #dbe2f7;
  --text-dim:    #8b92a5;
  --text-muted:  #4a5568;
  --red:         #ff5f57;
  --green:       #30d158;
  --blue:        #6ed2ff;
  --radius-sm:   6px;
  --radius:      12px;
  --radius-lg:   18px;
  --radius-xl:   24px;
  --font:        'DM Sans', sans-serif;
}

/* ── BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { height: 100%; overflow: hidden; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

/* Background ambient glow */
body::before {
  content: '';
  position: fixed;
  top: -100px; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 400px;
  background: radial-gradient(ellipse, rgba(232,149,42,.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ── LOADING SCREEN ── */
#loading-screen {
  position: fixed; inset: 0;
  background: var(--bg);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  z-index: 9999;
  transition: opacity .4s, visibility .4s;
}
#loading-screen.hidden { opacity: 0; visibility: hidden; }
.loading-ball {
  font-size: 56px;
  animation: spin-ball 1s linear infinite;
  filter: drop-shadow(0 0 20px var(--primary));
}
@keyframes spin-ball {
  0%   { transform: rotate(0deg) scale(1); }
  50%  { transform: rotate(180deg) scale(1.1); }
  100% { transform: rotate(360deg) scale(1); }
}
.loading-text {
  margin-top: 16px;
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.02em;
}
.loading-dots span {
  animation: blink 1.2s infinite;
  font-size: 24px;
  color: var(--primary);
}
.loading-dots span:nth-child(2) { animation-delay: .2s; }
.loading-dots span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%,80%,100% { opacity: .2; } 40% { opacity: 1; } }

/* ── SKELETON ── */
.skeleton {
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 50%, var(--surface-2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ── HEADER ── */
.app-header {
  padding: 14px 16px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 10;
  flex-shrink: 0;
}
.app-header h1 {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffd700 0%, #ffb86a 50%, #e8952a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}
.header-right { display: flex; align-items: center; gap: 10px; }
.user-points {
  display: flex; align-items: center; gap: 5px;
  background: rgba(255,184,106,.12);
  border: 1px solid rgba(255,184,106,.2);
  padding: 5px 10px;
  border-radius: 99px;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
}
.user-points .pts-num {
  transition: transform .3s cubic-bezier(.34,1.56,.64,1);
}
.user-points .pts-num.bump {
  animation: pts-bump .4s cubic-bezier(.34,1.56,.64,1);
}
@keyframes pts-bump {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.4); color: #fff; }
  100% { transform: scale(1); }
}
.sound-btn {
  background: none; border: none;
  font-size: 18px; cursor: pointer;
  opacity: .6; transition: opacity .2s;
  padding: 4px;
}
.sound-btn:hover { opacity: 1; }

/* ── SCROLL AREA ── */
.scroll-area {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 16px;
  position: relative;
  z-index: 1;
}
.scroll-area::-webkit-scrollbar { width: 0; }

/* ── BOTTOM NAV ── */
.bottom-nav {
  display: flex;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 6px 0 max(env(safe-area-inset-bottom),6px);
  flex-shrink: 0;
  position: relative;
  z-index: 10;
}
.nav-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px 4px;
  cursor: pointer;
  border: none;
  background: none;
  color: var(--text-dim);
  font-size: 10px;
  font-weight: 600;
  font-family: var(--font);
  transition: color .2s;
  position: relative;
}
.nav-tab .nav-icon { font-size: 22px; transition: transform .2s; }
.nav-tab.active { color: var(--primary); }
.nav-tab.active .nav-icon { transform: scale(1.15); }
.nav-tab::after {
  content: '';
  position: absolute;
  top: 0; left: 30%; right: 30%;
  height: 2px;
  background: var(--primary);
  border-radius: 0 0 3px 3px;
  transform: scaleX(0);
  transition: transform .2s;
}
.nav-tab.active::after { transform: scaleX(1); }

/* ── PAGES ── */
.page { display:none; padding-bottom:120px; opacity:0; transform:translateY(10px); transition:all 0.3s ease-out; }
.page.active { display:block; opacity:1; transform:translateY(0); }
.page.active { animation: pageIn 0.3s ease-out forwards; }
@keyframes pageIn {
    from { opacity:0; transform:translateY(10px); }
    to { opacity:1; transform:translateY(0); }
}

/* ── SECTION TITLE ── */
.section-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 12px;
}

/* ── MATCH CARD ── */
.match-card { 
    background: rgba(255, 255, 255, 0.02); 
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.05); 
    border-radius: var(--radius-lg); 
    padding: 16px; 
    margin-bottom: 16px; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}
.match-card.live { border-color:var(--primary); background:rgba(234,179,8,0.05); }
.match-card {
  transition: border-color .2s, box-shadow .2s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.match-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,184,106,.04) 0%, transparent 60%);
  pointer-events: none;
}
.match-card.live {
  border-color: rgba(255,95,87,.4);
  box-shadow: 0 0 20px rgba(255,95,87,.1);
  animation: live-pulse 2s ease-in-out infinite;
}
@keyframes live-pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(255,95,87,.1); }
  50%       { box-shadow: 0 0 30px rgba(255,95,87,.2); }
}
.match-card.predicted {
  border-color: rgba(255,184,106,.35);
  box-shadow: 0 0 16px rgba(255,184,106,.08);
}
.match-meta {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.league-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: var(--surface-3);
  padding: 3px 8px;
  border-radius: 99px;
}
.live-badge {
  display: flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 700;
  color: var(--red); letter-spacing: 0.05em;
}
.live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--red);
  animation: live-dot 1s ease-in-out infinite;
}
@keyframes live-dot { 0%,100% { opacity:1; } 50% { opacity:.3; } }

.teams-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.team {
  display: flex; flex-direction: column;
  align-items: center; gap: 6px;
  flex: 1;
}
.team-badge {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--surface-3);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  overflow: hidden;
  border: 2px solid var(--border);
}
.team-badge img { width: 100%; height: 100%; object-fit: contain; }
.team-name { font-size: 13px; font-weight: 700; text-align: center; }
.match-time-center {
  display: flex; flex-direction: column; align-items: center;
  gap: 4px; padding: 0 8px;
}
.score { font-size: 26px; font-weight: 800; color: var(--text); }
.vs    { font-size: 14px; font-weight: 700; color: var(--text-dim); }
.match-time-str { font-size: 11px; color: var(--text-dim); }

/* Prediction buttons */
.pred-buttons { display: flex; gap: 8px; }
.pred-btn {
  flex: 1;
  padding: 9px 4px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-3);
  color: var(--text-dim);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.pred-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: currentColor;
  opacity: 0;
  transition: opacity .15s;
}
.pred-btn:active::after { opacity: .08; }
.pred-btn:hover { border-color: var(--primary); color: var(--text); }
.pred-btn.selected,
.pred-btn.active {
  background: rgba(255, 184, 106, 0.25) !important;
  border-color: var(--primary) !important;
  color: var(--primary) !important;
  box-shadow: 0 0 15px rgba(255, 184, 106, 0.2);
  transform: scale(1.02);
  z-index: 2;
}
.pred-btn.active::before {
  content: '✓';
  position: absolute;
  right: 6px;
  top: 2px;
  font-size: 10px;
}
.pred-btn.correct {
  background: rgba(48,209,88,.15);
  border-color: var(--green);
  color: var(--green);
}
.pred-btn.wrong {
  background: rgba(255,95,87,.1);
  border-color: rgba(255,95,87,.3);
  color: var(--text-muted);
}

/* Community stats */
.community-stats {
  margin-top: 10px;
  display: flex; gap: 6px;
}
.stat-bar-wrap {
  flex: 1; text-align: center;
}
.stat-bar-label { font-size: 10px; color: var(--text-dim); margin-bottom: 4px; }
.stat-bar-track {
  height: 4px; border-radius: 99px;
  background: var(--surface-3);
  overflow: hidden;
}
.stat-bar-fill {
  height: 100%; border-radius: 99px;
  background: var(--primary);
  transition: width .8s cubic-bezier(.4,0,.2,1);
}
.stat-bar-pct { font-size: 11px; font-weight: 700; color: var(--text-dim); margin-top: 4px; }

/* ── TRIVIA ── */
.trivia-wrap { perspective: 1000px; }
.trivia-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 22px;
  margin-bottom: 16px;
  transform-style: preserve-3d;
  transition: transform .5s;
}
.trivia-card.flip { transform: rotateY(180deg); }
.trivia-q { font-size: 16px; font-weight: 600; line-height: 1.5; margin-bottom: 20px; }
.trivia-options { display: flex; flex-direction: column; gap: 10px; }
.trivia-opt {
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface-3);
  color: var(--text);
  font-size: 14px; font-weight: 500;
  cursor: pointer;
  transition: all .2s;
  display: flex; align-items: center; gap: 10px;
}
.trivia-opt:hover { border-color: var(--primary); background: rgba(255,184,106,.06); }
.trivia-opt.correct { background: rgba(48,209,88,.12); border-color: var(--green); color: var(--green); }
.trivia-opt.wrong   { background: rgba(255,95,87,.1);  border-color: rgba(255,95,87,.3); color: var(--red); }
.trivia-opt.dimmed  { opacity: .4; pointer-events: none; }
.opt-letter {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--surface-2); display: flex;
  align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; flex-shrink: 0;
}
.trivia-result {
  text-align: center; padding: 16px 0 8px;
  animation: slide-up .4s cubic-bezier(.34,1.56,.64,1);
}
.trivia-result .result-icon { font-size: 48px; }
.trivia-result .result-pts  {
  font-size: 18px; font-weight: 700; color: var(--primary); margin-top: 6px;
}
.trivia-next-btn {
  width: 100%;
  padding: 13px;
  border-radius: var(--radius);
  background: var(--primary);
  color: #1a1000;
  font-family: var(--font);
  font-size: 15px; font-weight: 700;
  border: none; cursor: pointer;
  margin-top: 10px;
  transition: all .2s;
}
.trivia-next-btn:hover { background: var(--primary-d); }

/* ── PROFILE ── */
.profile-hero {
  background: linear-gradient(135deg, var(--surface-2), var(--surface-3));
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px;
  text-align: center;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}
.profile-hero::before {
  content: '⚽';
  position: absolute;
  font-size: 140px;
  opacity: .04;
  right: -20px; top: -20px;
  pointer-events: none;
}
.profile-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-d), var(--primary));
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 800;
  color: #1a1000; margin-bottom: 12px;
  box-shadow: 0 0 24px rgba(255,184,106,.3);
}
.profile-name   { font-size: 20px; font-weight: 800; }
.profile-handle { font-size: 13px; color: var(--text-dim); margin-top: 2px; }
.profile-points {
  font-size: 36px; font-weight: 800;
  color: var(--primary); margin: 12px 0 4px;
  letter-spacing: -0.02em;
}
.profile-rank { font-size: 14px; color: var(--text-dim); }

.stats-row { display: flex; gap: 8px; margin-bottom: 16px; }
.mini-stat {
  flex: 1; background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px; text-align: center;
}
.mini-stat .val { font-size: 22px; font-weight: 800; color: var(--primary); }
.mini-stat .lbl { font-size: 11px; color: var(--text-dim); margin-top: 2px; }

.streak-card {
  background: linear-gradient(135deg, rgba(255,159,10,.1), rgba(255,184,106,.05));
  border: 1px solid rgba(255,159,10,.3);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 16px;
}
.streak-flame { font-size: 36px; animation: flame .8s ease-in-out infinite alternate; }
@keyframes flame { from { transform: scale(1) rotate(-3deg); } to { transform: scale(1.1) rotate(3deg); } }
.streak-info .big  { font-size: 22px; font-weight: 800; color: #ff9f0a; }
.streak-info .sub  { font-size: 12px; color: var(--text-dim); }

/* Badges */
.badges-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.badge-item {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 6px;
  text-align: center;
  transition: all .2s;
}
.badge-item.earned {
  border-color: rgba(255,184,106,.35);
  background: rgba(255,184,106,.05);
  box-shadow: 0 0 12px rgba(255,184,106,.08);
}
.badge-item .icon    { font-size: 26px; }
.badge-item .b-name  { font-size: 9px; color: var(--text-dim); margin-top: 4px; line-height: 1.2; }
.badge-item.locked   { opacity: .35; filter: grayscale(1); }

/* ── INVITE ── */
.invite-hero {
  background: linear-gradient(135deg, rgba(255,184,106,.08), rgba(232,149,42,.04));
  border: 1px solid rgba(255,184,106,.2);
  border-radius: var(--radius-xl);
  padding: 24px;
  text-align: center;
  margin-bottom: 16px;
}
.invite-hero h2 { font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.invite-hero p  { font-size: 14px; color: var(--text-dim); }
.reward-chips { display: flex; gap: 10px; justify-content: center; margin: 16px 0; }
.reward-chip {
  display: flex; flex-direction: column; align-items: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 20px;
}
.reward-chip .chip-pts { font-size: 22px; font-weight: 800; color: var(--primary); }
.reward-chip .chip-lbl { font-size: 11px; color: var(--text-dim); margin-top: 2px; }
.link-box {
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-size: 13px;
  color: var(--text-dim);
  word-break: break-all;
  text-align: left;
  margin-bottom: 10px;
  font-family: monospace;
}
.invite-btns { display: flex; gap: 8px; }
.invite-btn {
  flex: 1; padding: 12px;
  border-radius: var(--radius);
  border: none;
  font-family: var(--font);
  font-size: 14px; font-weight: 700;
  cursor: pointer; transition: all .2s;
}
.invite-btn.copy   { background: var(--surface-3); color: var(--text); }
.invite-btn.share  { background: var(--primary); color: #1a1000; }
.invite-btn:hover  { opacity: .85; }

.friends-list { }
.friend-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.friend-item:last-child { border-bottom: none; }
.friend-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--surface-3);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: var(--primary);
  flex-shrink: 0;
}
.friend-name { font-size: 14px; font-weight: 600; }
.friend-date { font-size: 12px; color: var(--text-dim); }

/* ── GROUPS ── */
.group-code-input {
  display: flex; gap: 8px; margin-bottom: 16px;
}
.group-code-input input {
  flex: 1;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  padding: 11px 14px;
  font-family: var(--font);
  font-size: 14px; font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  outline: none;
  transition: border .15s;
}
.group-code-input input:focus { border-color: var(--primary); }
.group-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 12px;
}
.group-card-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 12px;
}
.group-card h3 { font-size: 16px; font-weight: 700; }
.group-code  {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.1em; color: var(--primary);
  background: rgba(255,184,106,.1);
  padding: 3px 8px; border-radius: 99px;
}

/* Leaderboard rows */
.lb-row {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
}
.lb-row:last-child { border-bottom: none; }
.lb-rank {
  font-size: 14px; font-weight: 800;
  width: 28px; text-align: center;
  color: var(--text-dim);
}
.lb-rank.gold   { color: #ffd700; }
.lb-rank.silver { color: #c0c0c0; }
.lb-rank.bronze { color: #cd7f32; }
.lb-info { flex: 1; }
.lb-name { font-size: 14px; font-weight: 600; }
.lb-sub  { font-size: 11px; color: var(--text-dim); }
.lb-pts  { font-size: 16px; font-weight: 800; color: var(--primary); }

/* ── TOAST ── */
.toast-container {
  position: fixed;
  bottom: 90px; left: 16px; right: 16px;
  z-index: 2000;
  pointer-events: none;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.toast {
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 12px 18px;
  font-size: 14px; font-weight: 600;
  color: var(--text);
  animation: toast-in .35s cubic-bezier(.34,1.56,.64,1) forwards;
  max-width: 320px;
  text-align: center;
}
.toast.out { animation: toast-out .3s ease-in forwards; }
@keyframes toast-in  { from { opacity:0; transform: translateY(20px) scale(.9); } to { opacity:1; transform: none; } }
@keyframes toast-out { from { opacity:1; transform: none; } to { opacity:0; transform: translateY(-10px) scale(.95); } }

/* ── FLOATING PTS ── */
.floating-pts {
  position: fixed;
  font-size: 20px; font-weight: 800;
  color: var(--primary);
  pointer-events: none;
  z-index: 3000;
  text-shadow: 0 0 10px rgba(255,184,106,.5);
  animation: float-up .9s ease-out forwards;
}
@keyframes float-up {
  0%   { opacity: 1;  transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(-80px) scale(1.3); }
}

/* ── CONFETTI ── */
.confetti-piece {
  position: fixed;
  width: 8px; height: 8px;
  border-radius: 2px;
  pointer-events: none;
  z-index: 3000;
  animation: confetti-fall linear forwards;
}
@keyframes confetti-fall {
  0%   { opacity: 1; transform: translate(0,0) rotate(0deg); }
  100% { opacity: 0; transform: translate(var(--dx),var(--dy)) rotate(var(--rot)); }
}

/* Badge pop */
.badge-pop {
  position: fixed;
  bottom: 90px; left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--surface-2), var(--surface-3));
  border: 1px solid rgba(255,184,106,.4);
  border-radius: var(--radius-xl);
  padding: 16px 24px;
  text-align: center;
  z-index: 2500;
  box-shadow: 0 0 40px rgba(255,184,106,.15);
  animation: badge-pop-in .5s cubic-bezier(.34,1.56,.64,1) forwards;
  line-height: 1.2;
}
@keyframes badge-pop-in {
  from { opacity:0; transform: translateX(-50%) translateY(40px) scale(.8); }
  to   { opacity:1; transform: translateX(-50%) translateY(0) scale(1); }
}
.badge-pop .pop-icon { font-size: 32px; }
.badge-pop .pop-title { font-size: 13px; font-weight: 700; color: var(--primary); margin-top: 4px; }
.badge-pop .pop-name  { font-size: 16px; font-weight: 800; margin-top: 2px; }

/* ── SHAKE ── */
.shake { animation: shake .4s cubic-bezier(.36,.07,.19,.97); }
@keyframes shake { 0%,100%{transform:none} 20%{transform:translateX(-6px)} 40%{transform:translateX(6px)} 60%{transform:translateX(-4px)} 80%{transform:translateX(4px)} }

/* ── RIPPLE ── */
.ripple-container { position: relative; overflow: hidden; }
.ripple {
  position: absolute; border-radius: 50%;
  background: rgba(255,255,255,.15);
  transform: scale(0);
  animation: ripple .5s linear;
  pointer-events: none;
}
@keyframes ripple { to { transform: scale(4); opacity: 0; } }

/* ── SLIDE UP ── */
@keyframes slide-up {
  from { opacity:0; transform: translateY(20px); }
  to   { opacity:1; transform: translateY(0); }
}
.slide-up { animation: slide-up .4s ease-out; }

/* ── GLOW PULSE ── */
@keyframes glow-pulse {
  0%,100% { box-shadow: 0 0 0 rgba(255,184,106,0); }
  50%      { box-shadow: 0 0 20px rgba(255,184,106,.25); }
}
.glow-pulse { animation: glow-pulse 2s ease-in-out infinite; }

/* ── BADGE GRID & ITEMS ── */
.badge-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 16px;
}

.badge-item {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 12px 8px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.badge-item.earned {
  background: linear-gradient(145deg, var(--surface-3), var(--surface-2));
  border-color: rgba(232,149,42,0.4);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.badge-item.earned::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at top right, rgba(232,149,42,0.1), transparent);
  pointer-events: none;
}

.badge-item.locked {
  opacity: 0.6;
  filter: grayscale(1);
}

.badge-item .badge-icon {
  font-size: 24px;
  margin-bottom: 6px;
  display: block;
}

.badge-item .badge-title {
  font-size: 9px;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  line-height: 1.2;
  overflow: hidden;
  word-wrap: break-word;
}

.badge-item.earned .badge-title {
  color: var(--primary);
}

/* ── EMPTY STATE ── */
.empty-state {
  text-align: center;
  padding: 48px 24px;
}
.empty-state .empty-icon { font-size: 56px; margin-bottom: 12px; }
.empty-state h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.empty-state p  { font-size: 14px; color: var(--text-dim); }

/* ── TABS ── */
.tabs { display: flex; gap: 6px; margin-bottom: 16px; }
.tab-btn {
  flex: 1; padding: 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-dim);
  font-family: var(--font);
  font-size: 13px; font-weight: 600;
  cursor: pointer; transition: all .2s;
}
.tab-btn.active { background: rgba(255,184,106,.12); border-color: rgba(255,184,106,.3); color: var(--primary); }

/* ── PROFILE SUB-TABS ── */
.profile-tabs {
  display: flex; gap: 6px;
  margin-bottom: 16px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 4px;
}
.profile-tab {
  flex: 1; padding: 9px 6px;
  border-radius: var(--radius);
  border: none;
  background: none;
  color: var(--text-dim);
  font-family: var(--font);
  font-size: 13px; font-weight: 700;
  cursor: pointer;
  transition: all .2s;
}
.profile-tab.active {
  background: rgba(255,184,106,.15);
  color: var(--primary);
  box-shadow: 0 0 12px rgba(255,184,106,.1);
}
.profile-sub { display: none; }
.profile-sub.active { display: block; animation: slide-up .3s ease-out; }

/* ── ÖDÜLLER ── */
.reward-hero {
  background: linear-gradient(135deg, rgba(255,184,106,.1), rgba(232,149,42,.05));
  border: 1px solid rgba(255,184,106,.25);
  border-radius: var(--radius-xl);
  padding: 24px 20px 18px;
  text-align: center;
  margin-bottom: 14px;
}
.reward-hero-icon { font-size: 40px; margin-bottom: 6px; }
.reward-hero-title { font-size: 13px; font-weight: 700; color: var(--text-dim); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 12px; }
.reward-pool-toggle {
  display: inline-flex; gap: 4px;
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 3px;
  margin-bottom: 14px;
}
.pool-btn {
  padding: 6px 14px; border-radius: 99px; border: none;
  font-family: var(--font); font-size: 12px; font-weight: 700;
  cursor: pointer; color: var(--text-dim); background: none;
  transition: all .2s;
}
.pool-btn.active { background: var(--primary); color: #1a1000; }
.reward-total { font-size: 32px; font-weight: 800; color: var(--primary); letter-spacing: -0.02em; }
.reward-total-lbl { font-size: 12px; color: var(--text-dim); margin-top: 4px; }

.reward-list { margin-bottom: 8px; }
.reward-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 11px 14px;
  border-radius: var(--radius);
  margin-bottom: 4px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 14px;
}
.reward-row.gold   { border-color: rgba(255,215,0,.35);  background: rgba(255,215,0,.06); }
.reward-row.silver { border-color: rgba(192,192,192,.3); background: rgba(192,192,192,.04); }
.reward-row.bronze { border-color: rgba(205,127,50,.3);  background: rgba(205,127,50,.05); }
.rw-rank  { font-weight: 700; color: var(--text-dim); font-size: 13px; }
.rw-prize { font-weight: 800; color: var(--primary); font-size: 15px; }
.reward-row.gold   .rw-prize { color: #ffd700; }
.reward-row.silver .rw-prize { color: #c0c0c0; }
.reward-row.bronze .rw-prize { color: #cd7f32; }

.multiplier-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 16px;
}
.mul-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.mul-row:last-child { border-bottom: none; }
.mul-row.highlight { background: rgba(255,184,106,.06); }
.mul-val { font-weight: 800; color: var(--primary); }

/* ── SSS / FAQ ── */
.faq-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.faq-item {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.faq-q {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 16px;
  cursor: pointer;
  font-size: 14px; font-weight: 600;
  gap: 10px;
  transition: background .15s;
}
.faq-q:hover { background: rgba(255,184,106,.04); }
.faq-arrow {
  font-size: 22px; font-weight: 400; color: var(--primary);
  transition: transform .25s;
  flex-shrink: 0;
  line-height: 1;
}
.faq-item.open .faq-arrow { transform: rotate(90deg); }
.faq-a {
  max-height: 0; overflow: hidden;
  padding: 0 16px;
  font-size: 13px; color: var(--text-dim); line-height: 1.65;
  transition: max-height .35s ease, padding .35s ease;
}
.faq-item.open .faq-a {
  max-height: 400px;
  padding: 0 16px 14px;
}
.faq-a strong { color: var(--text); }

/* ── BTN BASE ── */
.btn {
  padding: 12px 20px;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 14px; font-weight: 700;
  border: none; cursor: pointer;
  transition: all .2s; display: inline-flex; align-items: center; gap: 6px;
}
.btn-primary { background: var(--primary); color: #1a1000; }
.btn-primary:hover { background: var(--primary-d); }
.btn-secondary { background: var(--surface-3); color: var(--text); border: 1px solid var(--border); }

/* ── MATCH CARD REFINEMENT ── */
.match-meta {
    display: flex; justify-content: space-between; align-items: flex-start;
    margin-bottom: 20px;
}
.league-tag {
    font-size: 10px; font-weight: 800; color: var(--text-dim);
    background: rgba(255,255,255,0.06); padding: 4px 10px; border-radius: 6px;
    letter-spacing: 0.05em;
}
.match-time-str { font-size: 13px; font-weight: 700; color: var(--text-dim); }

.teams-row {
    display: grid; grid-template-columns: 1fr auto 1fr;
    align-items: center; gap: 12px; text-align: center;
    margin-bottom: 24px;
}
.team-badge {
    width: 54px; height: 54px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 8px;
    overflow: hidden;
    border: 2px solid rgba(255,255,255,0.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}
.team-badge img {
    width: 100%; height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
.team-name { font-size: 14px; font-weight: 800; color: #fff; }
.match-time-center { font-size: 12px; font-weight: 900; color: var(--text-dim); opacity: 0.5; }

/* ── TRIVIA OPTIONS ── */
.trivia-opt {
  width: 100%; text-align: left;
  padding: 14px 16px; border-radius: 12px;
  background: var(--surface-2); border: 1px solid var(--border);
  color: var(--text); font-size: 15px; font-weight: 600;
  cursor: pointer; transition: all .2s; margin-bottom: 8px;
}
.trivia-opt:hover { background: var(--surface-3); border-color: var(--border-h); }
.trivia-opt.correct {
  background: rgba(43, 203, 116, 0.15) !important;
  border-color: #2bcb74 !important;
  color: #2bcb74 !important;
  box-shadow: 0 0 15px rgba(43, 203, 116, 0.2);
}
.trivia-opt.wrong {
  background: rgba(255, 71, 87, 0.15) !important;
  border-color: #ff4757 !important;
  color: #ff4757 !important;
  box-shadow: 0 0 15px rgba(255, 71, 87, 0.2);
}
.trivia-opt:disabled { cursor: default; }

/* ══════════════════════════════════════════════════════════════
   YENİ ANİMASYON EFEKTLERİ v2.0
══════════════════════════════════════════════════════════════ */

/* ── EKRAN TİTREMESİ ── */
@keyframes screen-shake {
  0%,100% { transform: none; }
  10% { transform: translate(-4px,2px) rotate(-.5deg); }
  20% { transform: translate(4px,-2px) rotate(.5deg); }
  40% { transform: translate(3px,-1px) rotate(.3deg); }
  60% { transform: translate(2px,-3px); }
  80% { transform: translate(1px,-1px); }
}
.screen-shake { animation: screen-shake .5s cubic-bezier(.36,.07,.19,.97) both; }

/* ── GOL TOPU ── */
.goal-ball {
  position: fixed; top:50%; left:50%;
  transform: translate(-50%,-50%) scale(0);
  font-size: 80px; z-index: 5000; pointer-events: none;
  animation: goal-ball-pop 1.2s cubic-bezier(.34,1.56,.64,1) forwards;
  filter: drop-shadow(0 0 30px rgba(255,184,106,.8));
}
@keyframes goal-ball-pop {
  0%  { transform: translate(-50%,-50%) scale(0) rotate(-180deg); opacity:0; }
  40% { transform: translate(-50%,-50%) scale(1.3) rotate(20deg);  opacity:1; }
  70% { transform: translate(-50%,-50%) scale(1) rotate(0);       opacity:1; }
  100%{ transform: translate(-50%,-50%) scale(1.5) rotate(10deg);  opacity:0; }
}

/* ── GOL YAZISI ── */
.goal-text {
  position: fixed; top:35%; left:50%;
  font-size: 64px; font-weight: 900; font-family: var(--font);
  color: var(--primary); z-index: 5001; pointer-events: none;
  text-shadow: 0 0 40px rgba(255,184,106,.8), 0 0 80px rgba(255,184,106,.4);
  animation: goal-text-pop 1.5s cubic-bezier(.34,1.56,.64,1) forwards;
}
@keyframes goal-text-pop {
  0%  { opacity:0; transform: translate(-50%,-50%) scale(.3) skewX(-15deg); }
  30% { opacity:1; transform: translate(-50%,-50%) scale(1.2) skewX(5deg);  }
  60% { opacity:1; transform: translate(-50%,-50%) scale(1);                }
  100%{ opacity:0; transform: translate(-50%,-60%) scale(1.1);              }
}

/* ── RING BURST ── */
.ring-burst {
  position: fixed; width:60px; height:60px;
  border: 3px solid var(--primary); border-radius: 50%;
  z-index: 4000; pointer-events: none;
  animation: ring-expand .8s ease-out forwards;
}
@keyframes ring-expand { 0%{transform:scale(0);opacity:1;} 100%{transform:scale(6);opacity:0;} }

/* ── NEON İZ ── */
.neon-trail {
  position: fixed; width:6px; height:6px; border-radius:50%;
  background: var(--primary); pointer-events:none; z-index:9998;
  transform: translate(-50%,-50%);
  box-shadow: 0 0 8px var(--primary), 0 0 16px rgba(255,184,106,.4);
  animation: neon-fade .5s ease-out forwards;
}
@keyframes neon-fade {
  0%  { opacity:.8; transform:translate(-50%,-50%) scale(1); }
  100%{ opacity:0;  transform:translate(-50%,-50%) scale(.2); }
}

/* ── KIVILCIM (SPARK) ── */
.spark {
  position: fixed; width:4px; height:10px;
  background: linear-gradient(to top,#ff6b00,#ffd700);
  border-radius: 99px; pointer-events:none; z-index:4000;
  animation: spark-rise var(--dur,.7s) ease-out forwards;
}
@keyframes spark-rise {
  0%  { transform:translateY(0) translateX(0)          scaleY(1);   opacity:1; }
  60% { transform:translateY(-60px) translateX(var(--dx,0)) scaleY(1.5); opacity:.8; }
  100%{ transform:translateY(-90px) translateX(var(--dx,0)) scaleY(.3);  opacity:0; }
}

/* ── ROZET OVERLAY ── */
.badge-pop-overlay {
  position:fixed; inset:0;
  background:rgba(0,0,0,.85); backdrop-filter:blur(8px);
  z-index:6000; display:flex; align-items:center; justify-content:center;
  animation: overlay-in .3s ease forwards;
}
.badge-pop-overlay.closing { animation: overlay-out .4s ease forwards; }
@keyframes overlay-in  { from{opacity:0;} to{opacity:1;} }
@keyframes overlay-out { from{opacity:1;} to{opacity:0;} }

.badge-pop-canvas { position:absolute; inset:0; pointer-events:none; }
.badge-pop-card {
  position:relative;
  background: linear-gradient(135deg,var(--surface-2),var(--surface-3));
  border: 2px solid rgba(255,184,106,.5); border-radius:28px;
  padding:40px 32px; text-align:center;
  box-shadow: 0 0 80px rgba(255,184,106,.25), inset 0 1px 0 rgba(255,255,255,.05);
  max-width:300px; width:90%; overflow:hidden;
  animation: card-entrance .5s cubic-bezier(.34,1.56,.64,1) forwards;
}
@keyframes card-entrance {
  from{transform:scale(.5) rotate(-10deg);opacity:0;}
  to  {transform:scale(1)  rotate(0);    opacity:1;}
}
.pop-shine {
  position:absolute; top:-50%; left:-50%; width:200%; height:200%;
  background: conic-gradient(from 0deg,transparent 0%,rgba(255,184,106,.05) 25%,transparent 50%);
  animation: shine-spin 4s linear infinite; pointer-events:none;
}
@keyframes shine-spin { to{transform:rotate(360deg);} }
.pop-icon  { font-size:72px; filter:drop-shadow(0 0 20px rgba(255,184,106,.6)); animation:pop-icon-bounce .6s .3s cubic-bezier(.34,1.56,.64,1) backwards; }
@keyframes pop-icon-bounce { from{transform:scale(0) rotate(-20deg);} to{transform:scale(1) rotate(0);} }
.pop-label { font-size:12px; font-weight:700; color:var(--primary); letter-spacing:.1em; text-transform:uppercase; margin-top:16px; }
.pop-name  { font-size:22px; font-weight:800; margin-top:6px; }
.pop-desc  { font-size:13px; color:var(--text-dim); margin-top:6px; line-height:1.4; }
.pop-close {
  margin-top:20px; width:100%; padding:13px; border-radius:var(--radius);
  background:var(--primary); color:#1a1000;
  border:none; font-family:var(--font); font-size:15px; font-weight:700;
  cursor:pointer; transition:all .2s;
}
.pop-close:hover { background:var(--primary-d); transform:scale(1.02); }

/* ── CART HOVER ── */
.match-card:hover {
  border-color: rgba(255,184,106,.3);
  box-shadow: 0 4px 24px rgba(255,184,106,.08);
  transform: translateY(-1px);
}

/* ── NAV ICON GLOW ── */
.nav-tab .nav-icon { transition: transform .3s cubic-bezier(.34,1.56,.64,1), filter .2s; }
.nav-tab:active  .nav-icon { transform: scale(.85); }
.nav-tab.active  .nav-icon { transform: scale(1.2); filter: drop-shadow(0 0 6px var(--primary)); }

/* ── SEÇİLİ TAHMİN GLOW ── */
.pred-btn.active {
  background: var(--primary) !important;
  color: #1a1000 !important;
  border-color: #fff !important;
  box-shadow: 0 0 20px rgba(255,184,106,0.6), inset 0 0 0 2px rgba(255,255,255,0.3);
  font-weight: 900;
  transform: scale(1.05);
  z-index: 2;
}
.pred-btn.selected {
  background: rgba(255,184,106, 0.2) !important;
  border-color: var(--primary) !important;
  color: var(--primary) !important;
  box-shadow: 0 0 12px rgba(255,184,106,0.2);
}
.pred-btn.correct { 
    background: #30d158 !important; 
    color: #1a1000 !important; 
    border-color: #fff !important; 
    box-shadow: 0 0 20px rgba(48,209,88,0.5);
    font-weight: 900;
}
.pred-buttons.disabled .pred-btn:not(.active):not(.selected):not(.correct) {
    opacity: 0.4;
    filter: grayscale(0.5);
}

/* ── CARD ── */
.card { 
    background: rgba(255, 255, 255, 0.03); 
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08); 
    border-radius: var(--radius-lg); 
    margin-bottom: 16px; 
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.reward-total, .pts-num { 
    text-shadow: 0 0 10px rgba(234, 179, 8, 0.4), 0 0 20px rgba(234, 179, 8, 0.2); 
    font-weight: 800;
}
.btn-primary {
    position: relative;
    overflow: hidden;
}
.btn-primary::after {
    content: "";
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg);
    animation: shimmer 3s infinite;
}
@keyframes shimmer {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

/* ── CUSTOM SELECT ── */
.p-row { display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
.custom-select-container {
  position: relative;
  width: 100%;
  z-index: 100;
}
.custom-select-trigger {
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center; justify-content: space-between;
  transition: all .2s;
}
.custom-select-trigger:hover { border-color: var(--primary); }
.custom-select-trigger::after {
  content: '▼';
  font-size: 10px;
  color: var(--primary);
  margin-left: 8px;
}
.custom-options {
  position: absolute;
  top: calc(100% + 5px);
  left: 0; right: 0;
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 25px rgba(0,0,0,.5);
  max-height: 200px;
  overflow-y: auto;
  z-index: 9999;
  display: none;
  animation: dropdown-fade .2s ease-out;
}
.custom-options.open { display: block; }
@keyframes dropdown-fade { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }

.custom-option {
  padding: 10px 12px;
  cursor: pointer;
  display: flex;
  align-items: center; gap: 10px;
  border-bottom: 1px solid rgba(255,255,255,.05);
  transition: background .15s;
}
.custom-option:last-child { border-bottom: none; }
.custom-option:hover { background: rgba(255,255,255,.05); color: var(--primary); }
.custom-option img { width: 20px; height: 14px; object-fit: cover; border-radius: 2px; }
.custom-option.selected { color: var(--primary); font-weight: 800; background: rgba(255,184,106,.05); }

.custom-options::-webkit-scrollbar { width: 4px; }
/* ── LEADERBOARD MEDALS ── */
.lb-rank.gold, .lb-rank.silver, .lb-rank.bronze {
  font-size: 20px;
  filter: drop-shadow(0 0 8px currentColor);
}

.match-date-str {
    font-size: 11px;
    font-weight: 700;
    color: var(--primary);
    margin-top: 6px;
    opacity: 0.9;
    text-transform: capitalize;
}

/* ── TRIVIA UI REFINEMENT ── */
.trivia-status-row {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}
.t-badge-group {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}
.t-badge {
    font-size: 10px;
    font-weight: 800;
    padding: 5px 10px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-dim);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.t-badge.primary {
    background: var(--primary);
    color: #1a1000;
    border: none;
    box-shadow: 0 2px 8px rgba(234, 179, 8, 0.3);
}
.t-counter {
    font-size: 12px;
    font-weight: 800;
    color: var(--primary);
    background: rgba(234, 179, 8, 0.1);
    padding: 4px 10px;
    border-radius: 99px;
    border: 1px solid rgba(234, 179, 8, 0.2);
}
.trivia-q {
    font-size: 20px;
    font-weight: 800;
    line-height: 1.4;
    margin-bottom: 24px;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.trivia-opt {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    transition: all 0.2s;
}
.trivia-opt:hover {
    background: rgba(255,255,255,0.07);
    border-color: rgba(255,255,255,0.15);
}

/* -- RESTORED BADGE STYLES -- */
.badge-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 20px 16px;
}

.badge-item {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 12px 8px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
}

.badge-item.earned {
  background: linear-gradient(145deg, var(--surface-3), var(--surface-2));
  border-color: rgba(232,149,42,0.4);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.badge-item.locked {
  opacity: 0.4;
  filter: grayscale(1);
}

.badge-item .badge-icon {
  font-size: 24px;
  margin-bottom: 6px;
  display: block;
}

.badge-item .badge-title {
  font-size: 9px;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  line-height: 1.2;
  overflow: hidden;
  word-wrap: break-word;
}

.badge-item.earned .badge-title {
  color: var(--primary);
}
