/* =============================================================
   components.css — Özel komponentler (Faz 1)
   .card-match / .badge-live / .badge-locked / .countdown-box / .leader-row
   ============================================================= */

/* =========================================================
   NAVBAR (üst) — kompakt, 64px
   ========================================================= */
.app-navbar {
  height: var(--navbar-h);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: var(--z-navbar);
}
.app-navbar .navbar-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.01em;
  color: var(--brand-deep);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}
.app-navbar .navbar-brand .brand-mark {
  font-size: 1.35rem;
  line-height: 1;
}
.app-navbar .nav-link {
  color: var(--text-muted);
  font-weight: 500;
  min-height: var(--tap-min);
  display: inline-flex;
  align-items: center;
}
.app-navbar .nav-link:hover,
.app-navbar .nav-link.active {
  color: var(--brand-sky-dark);
}
/* Kullanıcı menüsü tetikleyici */
.app-navbar .user-trigger {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: var(--tap-min);
  font-weight: 600;
  color: var(--brand-deep);
}
.app-navbar .user-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--surface-alt);
  color: var(--brand-sky-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

/* ---- Mobil (<576px): navbar TEK SATIRDA kalsın — Giriş/Kayıt kaymasın/taşmasın ----
   .app-navbar sabit 64px; Bootstrap .navbar flex-wrap:wrap olduğundan dar ekranda
   marka + butonlar 2. satıra sarıp 64px'i taşıyordu. nowrap + markayı daraltılabilir
   yaparak butonlar sabit kalır, marka gerekirse "…" ile kısalır. Masaüstü (≥576px) etkilenmez. */
@media (max-width: 575.98px) {
  .app-navbar > .container { flex-wrap: nowrap; gap: var(--space-2); }
  .app-navbar .navbar-brand { font-size: 1.05rem; min-width: 0; }
  .app-navbar .navbar-brand > span:last-child {
    min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .app-navbar > .container > .ms-auto { flex: 0 0 auto; }
  .app-navbar .btn-sm { padding-left: .6rem; padding-right: .6rem; }
}

/* =========================================================
   ALT TAB BAR (sadece mobil, md ve altı, auth'lu)
   ========================================================= */
.app-tabbar {
  display: none;
}
@media (max-width: 767.98px) {
  .app-tabbar {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    position: fixed;
    left: 0; right: 0; bottom: 0;
    height: var(--tabbar-h);
    background: var(--surface);
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 16px rgba(15, 23, 42, .06);
    z-index: var(--z-tabbar);
    padding-bottom: env(safe-area-inset-bottom, 0);
  }
}
.app-tabbar .tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: var(--tap-min);
  color: var(--text-muted);
  font-size: .68rem;
  font-weight: 600;
  text-decoration: none;
  transition: color .15s ease;
}
.app-tabbar .tab-item i {
  font-size: 1.35rem;
  line-height: 1;
}
.app-tabbar .tab-item:hover { color: var(--brand-sky-dark); }
.app-tabbar .tab-item.active { color: var(--brand-sky); }
.app-tabbar .tab-item.active i { transform: translateY(-1px); }

/* =========================================================
   FOOTER (minimal)
   ========================================================= */
.app-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-size: .85rem;
  text-align: center;
  padding: var(--space-5) var(--space-4);
}
@media (max-width: 767.98px) {
  body.has-tabbar .app-footer { display: none; }
}

/* =========================================================
   MAÇ KARTI — .card-match
   ========================================================= */
.card-match {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transition: box-shadow .18s ease, transform .18s ease;
}
.card-match:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
/* üst satır: turnuva etiketi + durum rozeti */
.card-match__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}
.card-match__stage {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: .72rem;
  color: var(--text-muted);
}
/* takım satırı */
.card-match__teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--space-3);
}
.card-match__team {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 600;
  color: var(--text-primary);
  min-width: 0;
}
.card-match__team--away { justify-content: flex-end; text-align: right; }
.card-match__team .flag {
  width: 28px; height: 20px;
  border-radius: 3px;
  background: var(--surface-alt);
  flex: 0 0 auto;
  box-shadow: inset 0 0 0 1px var(--border);
  overflow: hidden;
}

/* Bayrak/logo görseli: bulunduğu .flag / .flag-lg kutusunu tam doldurur ve
   köşeleri kutuya göre kırpar. Boyut bağlamdaki .flag kuralından gelir. */
.flag > img, .flag-lg > img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
}

.card-match__vs {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--brand-sky-dark);
  font-size: .8rem;
}
.card-match__score {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--brand-deep);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
/* alt satır: zaman / aksiyon */
.card-match__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  border-top: 1px dashed var(--border);
  padding-top: var(--space-3);
  font-size: .85rem;
  color: var(--text-muted);
}

/* =========================================================
   DURUM ROZETLERİ
   ========================================================= */
.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .68rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  line-height: 1;
}

/* Canlı — kırmızı, nabız animasyonu */
.badge-live {
  background: color-mix(in oklab, var(--accent-red) 12%, white);
  color: var(--accent-red);
}
.badge-live .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent-red);
  animation: pulse-live 1.3s ease-in-out infinite;
}
@keyframes pulse-live {
  0%   { box-shadow: 0 0 0 0 color-mix(in oklab, var(--accent-red) 60%, transparent); opacity: 1; }
  70%  { box-shadow: 0 0 0 7px transparent; opacity: .85; }
  100% { box-shadow: 0 0 0 0 transparent; opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .badge-live .dot { animation: none; }
}

/* Kilitli — gri */
.badge-locked {
  background: #F1F5F9;
  color: var(--text-muted);
}
.badge-locked i { font-size: .8rem; }

/* Bitti — yeşil ton (yardımcı) */
.badge-final {
  background: color-mix(in oklab, var(--accent-green) 12%, white);
  color: var(--accent-green);
}

/* =========================================================
   GERİ SAYIM — .countdown-box
   ========================================================= */
.countdown {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.countdown-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  padding: var(--space-2) var(--space-2);
  background: var(--brand-deep);
  border-radius: var(--radius-sm);
  border: 1px solid color-mix(in oklab, var(--accent-gold) 35%, var(--brand-deep));
}
.countdown-box__num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--accent-gold);
  font-variant-numeric: tabular-nums;
}
.countdown-box__label {
  font-family: var(--font-body);
  font-size: .6rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: color-mix(in oklab, var(--text-inverse) 70%, transparent);
  margin-top: 3px;
}
.countdown__sep {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--accent-gold-dark);
}

/* =========================================================
   LİDER TABLOSU — .leader-row
   ========================================================= */
.leader-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.leader-row {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.leader-row__rank {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-muted);
  text-align: center;
}
.leader-row__name {
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-width: 0;
}
.leader-row__name .avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--surface-alt);
  color: var(--brand-sky-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .85rem;
  flex: 0 0 auto;
}
.leader-row__pts {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--brand-deep);
  font-variant-numeric: tabular-nums;
}
.leader-row__pts small { color: var(--text-muted); font-weight: 500; }

/* 1. sıra — altın arka plan */
.leader-row--first {
  background: linear-gradient(
    100deg,
    color-mix(in oklab, var(--accent-gold) 22%, white) 0%,
    color-mix(in oklab, var(--accent-gold) 8%, white) 100%
  );
  border-color: color-mix(in oklab, var(--accent-gold) 45%, white);
  box-shadow: var(--shadow-sm);
}
.leader-row--first .leader-row__rank {
  color: var(--accent-gold-dark);
}
.leader-row--first .leader-row__name .avatar {
  background: var(--accent-gold);
  color: var(--brand-deep);
}

/* 2. ve 3. sıra hafif vurgu */
.leader-row--second .leader-row__rank { color: #64748B; }
.leader-row--third  .leader-row__rank { color: var(--accent-gold-dark); }

/* =========================================================
   Bölüm başlığı yardımcısı
   ========================================================= */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}
.section-head h2 { margin: 0; }
.section-head .section-link {
  font-size: .85rem;
  font-weight: 600;
}

/* =============================================================
   FAZ 2 — Ana sayfa + Auth ekranları
   ============================================================= */

/* ---------- HERO (gradient kahraman) ---------- */
.hero-gradient {
  position: relative;
  overflow: hidden;
  min-height: 70vh;
  display: flex;
  align-items: center;
  color: var(--text-inverse);
  background: linear-gradient(135deg, var(--brand-deep) 0%, var(--brand-sky) 100%);
}
@media (max-width: 767.98px) {
  .hero-gradient { min-height: 60vh; }
}
.hero-gradient .container { position: relative; z-index: 2; }

.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: var(--space-6);
  width: 100%;
  padding: 64px 0 72px;
}
@media (max-width: 767.98px) {
  .hero__grid { grid-template-columns: 1fr; padding: 40px 0 56px; gap: var(--space-5); }
}

.hero__kicker {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: var(--space-3);
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.01em;
  font-size: clamp(32px, 5vw, 48px);
  margin: 0 0 var(--space-3);
  text-wrap: balance;
}
.hero__lead {
  font-size: 1.05rem;
  line-height: 1.55;
  color: color-mix(in oklab, #fff 82%, transparent);
  max-width: 46ch;
  margin: 0 0 var(--space-5);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }

/* Hero üzerinde beyaz çerçeveli buton */
.btn-ghost-light {
  --bs-btn-color: #fff;
  --bs-btn-border-color: color-mix(in oklab, #fff 60%, transparent);
  --bs-btn-bg: transparent;
  --bs-btn-hover-bg: rgba(255,255,255,.12);
  --bs-btn-hover-border-color: #fff;
  --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: rgba(255,255,255,.18);
  --bs-btn-active-color: #fff;
  font-weight: 600;
}

/* Hero kupa silüeti (yer tutucu) */
.hero__trophy {
  font-size: 200px;
  line-height: .9;
  text-align: center;
  opacity: .3;
  filter: drop-shadow(0 12px 40px rgba(0,0,0,.3));
  user-select: none;
}
@media (max-width: 767.98px) { .hero__trophy { display: none; } }

/* Hero karşılama (auth'lu) */
.hero__welcome-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff; font-weight: 600; font-size: .85rem;
  padding: 6px 14px; border-radius: 999px;
  margin-bottom: var(--space-4);
}

/* ---------- Geri sayım — HERO varyantı ---------- */
.countdown--hero { gap: var(--space-3); flex-wrap: wrap; }
.countdown--hero .countdown-box {
  background: var(--surface);
  border-color: color-mix(in oklab, var(--accent-gold) 42%, var(--surface));
  min-width: 78px;
  padding: 12px 12px;
  box-shadow: var(--shadow-md);
}
.countdown--hero .countdown-box__num {
  color: var(--brand-deep);
  font-size: clamp(32px, 6vw, 48px);
}
.countdown--hero .countdown-box__label { color: var(--accent-gold-dark); }
.countdown--hero .countdown__sep { color: rgba(255,255,255,.65); font-size: 1.5rem; }
@media (max-width: 767.98px) {
  .countdown--hero .countdown-box { min-width: 60px; padding: 10px 8px; }
}

/* ---------- Ülke bayrak şeridi (USA / CAN / MEX) ---------- */
.flag-stripe {
  height: 6px; width: 100%;
  background: linear-gradient(
    to right,
    var(--brand-deep)   0%,  var(--brand-deep)   20%,
    #ffffff             20%, #ffffff             40%,
    var(--accent-red)   40%, var(--accent-red)   60%,
    #ffffff             60%, #ffffff             80%,
    var(--accent-green) 80%, var(--accent-green) 100%
  );
}
.hero-gradient .flag-stripe {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
}

/* ---------- "Nasıl oynanır" adımları ---------- */
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}
@media (max-width: 767.98px) { .how-grid { grid-template-columns: 1fr; } }
.how-step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.how-step__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 3rem;
  line-height: 1;
  color: color-mix(in oklab, var(--brand-sky) 40%, white);
  -webkit-text-stroke: 1px var(--brand-sky);
}
.how-step__icon {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
  color: var(--brand-sky-dark);
  font-size: 1.3rem;
}
.how-step h3 { margin: var(--space-2) 0 0; font-size: 1.15rem; }
.how-step p { margin: 0; color: var(--text-muted); font-size: .92rem; }

/* ---------- Puanlama kartları ---------- */
.score-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}
@media (max-width: 767.98px) { .score-grid { grid-template-columns: 1fr; } }
.score-card {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent-gold);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  display: flex; flex-direction: column; gap: var(--space-2);
}
.score-card__icon { font-size: 1.8rem; line-height: 1; }
.score-card__title { font-weight: 700; color: var(--text-primary); }
.score-card__pts {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2rem;
  color: var(--brand-deep);
  font-variant-numeric: tabular-nums;
}
.score-card__pts small { font-size: .9rem; color: var(--text-muted); font-weight: 600; }
.score-card p { margin: 0; color: var(--text-muted); font-size: .9rem; }

/* ---------- Footer CTA şeridi ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--brand-deep) 0%, var(--brand-sky-dark) 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-6);
  text-align: center;
}
.cta-band h2 { color: #fff; margin: 0 0 var(--space-2); }
.cta-band p { color: color-mix(in oklab, #fff 80%, transparent); margin: 0 0 var(--space-5); }

/* ---------- Puanlama: hiyerarşik kurallar (Faz 2 güncelleme) ---------- */
.scoring-hint-box {
  display: flex; align-items: flex-start; gap: 12px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand-sky);
  border-radius: var(--radius-md);
  padding: 16px 18px; margin-bottom: 24px;
}
.scoring-hint-box .bi { color: var(--brand-sky-dark); font-size: 1.3rem; flex: 0 0 auto; line-height: 1.3; }
.scoring-hint-box p { margin: 0; color: var(--text-primary); font-weight: 500; line-height: 1.5; }
.scoring-hint-box b { color: var(--brand-deep); font-weight: 700; }

.scoring-group-label {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600;
  text-transform: uppercase; letter-spacing: .05em; font-size: .82rem;
  color: var(--text-muted); margin: 28px 0 14px;
}
.scoring-group-label::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.scoring-group-label .seq { color: var(--accent-gold-dark); font-weight: 700; }

/* hiyerarşik artan puan: kartların puan rengi soldan sağa koyulaşır */
.score-card__pts .step { color: var(--text-muted); font-weight: 600; }
.score-card .formula { font-size: .82rem; color: var(--text-muted); margin: 0; }
.score-note {
  font-size: .82rem; color: var(--text-muted); margin: 12px 0 0;
  background: var(--surface); border: 1px dashed var(--border);
  border-radius: var(--radius-sm); padding: 10px 14px;
}
.score-note b { color: var(--brand-deep); }

/* Eleme bonusu — tek geniş altın kart */
.bonus-card {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent-gold);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center;
}
@media (max-width: 767.98px) { .bonus-card { grid-template-columns: 1fr; gap: 12px; } }
.bonus-card__icon {
  width: 52px; height: 52px; border-radius: 13px; flex: 0 0 auto;
  background: var(--accent-gold); color: var(--brand-deep);
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.5rem;
}
.bonus-card__body h3 { margin: 0 0 4px; font-size: 1.1rem; }
.bonus-card__body p { margin: 0; color: var(--text-muted); font-size: .92rem; line-height: 1.5; }
.bonus-card__body .fine { margin-top: 8px; font-size: .82rem; }
.bonus-card__pts {
  font-family: var(--font-display); font-weight: 700; font-size: 2rem;
  color: var(--accent-gold-dark); white-space: nowrap; text-align: center;
}
.bonus-card__pts small { display: block; font-size: .8rem; color: var(--text-muted); font-weight: 600; }

/* Turnuva geneli ikinci satır — daha kompakt kartlar */
.score-grid--compact .score-card { padding: var(--space-4); }
.score-grid--compact .score-card__pts { font-size: 1.5rem; }

/* =============================================================
   AUTH — split layout
   ============================================================= */
.auth-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - var(--navbar-h));
}
@media (max-width: 767.98px) {
  /* Mobil: form üstte, görsel altta */
  .auth-split { display: flex; flex-direction: column-reverse; min-height: auto; }
}

.auth-split__visual {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding: var(--space-8) var(--space-6);
  color: #fff;
  text-align: center;
  background: linear-gradient(135deg, var(--brand-deep) 0%, var(--brand-sky) 100%);
}
@media (max-width: 767.98px) {
  .auth-split__visual { min-height: 220px; padding: var(--space-6); }
}
.auth-split__visual .trophy {
  font-size: 300px; line-height: .9; opacity: .4; user-select: none;
  filter: drop-shadow(0 12px 40px rgba(0,0,0,.3));
}
@media (max-width: 767.98px) { .auth-split__visual .trophy { font-size: 140px; } }
.auth-split__visual .tagline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: #fff;
}
.auth-split__visual .flag-stripe {
  position: absolute; left: 0; right: 0; bottom: 0;
}

.auth-split__form {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8) var(--space-5);
  background: var(--bg);
}
.auth-card { width: 100%; max-width: 400px; }
.auth-card h1 {
  font-size: clamp(1.7rem, 4vw, 2rem);
  margin: 0 0 var(--space-2);
}
.auth-card .auth-sub { color: var(--text-muted); margin: 0 0 var(--space-5); }

/* Input grupları (ikon iliştirilmiş) */
.auth-card .input-group-text {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text-muted);
  min-height: 48px;
}
.auth-card .input-group .form-control { border-left: 0; }
.auth-card .input-group .form-control:focus { box-shadow: none; border-color: var(--brand-sky); }
.auth-card .input-group:focus-within {
  border-radius: var(--radius-sm);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--brand-sky) 35%, transparent);
}
.auth-card .input-group:focus-within .input-group-text { border-color: var(--brand-sky); }

/* Şifre göster/gizle butonu */
.pw-toggle {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 0;
  color: var(--text-muted);
  padding: 0 14px;
  border-top-right-radius: var(--radius-sm);
  border-bottom-right-radius: var(--radius-sm);
}
.pw-toggle:hover { color: var(--brand-sky-dark); }

/* "── veya ──" ayırıcı */
.divider-or {
  display: flex; align-items: center; gap: var(--space-3);
  color: var(--text-muted); font-size: .8rem; font-weight: 600;
  margin: var(--space-5) 0;
}
.divider-or::before, .divider-or::after {
  content: ""; flex: 1; height: 1px; background: var(--border);
}

/* Google butonu */
.btn-google {
  width: 100%;
  min-height: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-weight: 600;
  transition: background .15s ease, border-color .15s ease;
}
.btn-google:hover { background: #F8FAFC; border-color: #CBD5E1; color: var(--text-primary); }
.btn-google svg { width: 18px; height: 18px; flex: 0 0 auto; }

.auth-footnote { font-size: .8rem; color: var(--text-muted); }
.auth-switch { text-align: center; font-size: .9rem; color: var(--text-muted); }

/* Auth sayfasını _Layout'un container + app-main padding'inden taşır (tam genişlik) */
.bleed-page {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: calc(-1 * var(--space-5));
  margin-bottom: calc(-1 * var(--space-6));
}
@media (max-width: 767.98px) {
  body.has-tabbar .bleed-page { margin-bottom: calc(-1 * (var(--tabbar-h) + var(--space-4))); }
}

/* =============================================================
   FAZ 3 — Dashboard (auth'lu hub)
   ============================================================= */

/* ---------- Selamlama satırı ---------- */
.dash-greet {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-4); flex-wrap: wrap; margin-bottom: var(--space-5);
}
.dash-greet h1 { font-size: 28px; margin: 0; }
.points-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-gold);
  color: var(--brand-deep);
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.05rem;
  padding: 8px 18px; border-radius: 999px;
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}

/* ---------- Puan kırılım kartları ---------- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}
@media (max-width: 767.98px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 14px 16px;
  min-height: 90px;
  display: flex; flex-direction: column; gap: 6px; justify-content: center;
}
.stat-card__top {
  display: flex; align-items: center; gap: 8px;
  color: var(--text-muted); font-size: .82rem; font-weight: 600;
}
.stat-card__icon { font-size: 1.15rem; line-height: 1; }
.stat-card__num {
  font-family: var(--font-display); font-weight: 700;
  font-size: 32px; line-height: 1;
  color: var(--brand-deep); font-variant-numeric: tabular-nums;
}

/* ---------- Sıradaki tahmin maç kartı ---------- */
.upcoming-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4);
}
@media (max-width: 767.98px) { .upcoming-grid { grid-template-columns: 1fr; } }
.upcoming-match-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 18px;
  display: flex; flex-direction: column; gap: 16px;
}
.upcoming-match-card__top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; font-size: .82rem; color: var(--text-muted);
}
.upcoming-match-card__cd {
  font-family: var(--font-mono); font-weight: 700; font-size: .78rem;
  color: var(--accent-gold-dark);
  display: inline-flex; align-items: center; gap: 5px;
}
.upcoming-match-card__teams {
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: var(--space-3);
}
.umc-team {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-weight: 700; text-align: center; min-width: 0;
}
.umc-team .flag {
  width: 40px; height: 28px; border-radius: 4px;
  background: var(--surface-alt);
  box-shadow: inset 0 0 0 1px var(--border);
}
.umc-vs { font-family: var(--font-mono); font-weight: 700; color: var(--brand-sky-dark); }

/* ---------- Günün maçları (gün gün gezinme) ---------- */
.matchday {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.matchday__nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-3);
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-alt);
}
.matchday__arrow {
  width: 40px; height: 40px; flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: var(--radius-md);
  background: var(--surface); color: var(--brand-deep);
  font-size: 1.1rem; cursor: pointer;
  transition: background .15s, border-color .15s, opacity .15s;
}
.matchday__arrow:hover:not(:disabled) { background: var(--surface-alt); border-color: var(--brand-sky); }
.matchday__arrow:disabled { opacity: .4; cursor: default; }
.matchday__date { text-align: center; min-width: 0; flex: 1 1 auto; }
.matchday__day {
  display: block; font-family: var(--font-display);
  font-weight: 600; font-size: 1.05rem; color: var(--text-primary);
  text-transform: capitalize;
}
.matchday__count { display: block; font-size: .78rem; color: var(--text-muted); }
.matchday__panel { display: none; flex-direction: column; }
.matchday__panel.is-active { display: flex; }
.md-match {
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: var(--space-3);
  padding: 12px 14px;
}
.md-match + .md-match { border-top: 1px solid var(--border); }
.md-match__side { display: flex; align-items: center; gap: 10px; min-width: 0; }
.md-match__side--home { justify-content: flex-end; text-align: right; }
.md-match__side--away { justify-content: flex-start; text-align: left; }
.md-match__name {
  font-weight: 600; font-size: .92rem; color: var(--text-primary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.md-match .flag {
  width: 28px; height: 20px; flex: 0 0 auto; border-radius: 3px;
  background: var(--surface-alt); box-shadow: inset 0 0 0 1px var(--border);
}
.md-match__mid {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  min-width: 64px;
}
.md-match__score {
  font-family: var(--font-mono); font-weight: 700; font-size: 1.1rem;
  color: var(--brand-deep);
}
.md-match__score .sep { margin: 0 4px; color: var(--text-muted); }
.md-match__time {
  font-family: var(--font-mono); font-weight: 600; font-size: .95rem;
  color: var(--text-muted);
}
.md-badge {
  font-size: .64rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; padding: 1px 6px; border-radius: 999px;
  background: var(--surface-alt); color: var(--text-muted);
}
.md-badge--live {
  background: var(--accent-red); color: var(--text-inverse);
  animation: md-live-pulse 1.4s ease-in-out infinite;
}
@keyframes md-live-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
@media (max-width: 575.98px) {
  .md-match__name { font-size: .82rem; }
  .md-match { gap: var(--space-2); padding: 10px; }
}

/* Sıradaki tahminler — 3'er 3'er sayfalama */
.upcoming-pager__nav {
  display: flex; align-items: center; justify-content: flex-end;
  gap: var(--space-3); margin-bottom: 14px;
}
.upcoming-pager__count {
  font-family: var(--font-mono); font-weight: 600; font-size: .82rem;
  color: var(--text-muted); min-width: 64px; text-align: center;
}
.upcoming-pager__page { display: none; }
.upcoming-pager__page.is-active { display: grid; }

/* AJAX kaydetme durum pill'i — sayfa yenilemeden "Kaydediliyor…/Kaydedildi ✓" geri bildirimi */
.wc-save-pill {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 16px);
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 999px;
  background: var(--surface); color: var(--text-primary);
  border: 1px solid var(--border); box-shadow: var(--shadow-lg);
  font-size: .9rem; font-weight: 600; z-index: 1080;
  opacity: 0; pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.wc-save-pill.show { opacity: 1; transform: translate(-50%, 0); }
.wc-save-pill__ic { display: inline-flex; align-items: center; font-size: 1.05rem; }
.wc-save-pill .spinner-border { width: 1rem; height: 1rem; border-width: 2px; }
.wc-save-pill.ok .wc-save-pill__ic { color: #16A34A; }
.wc-save-pill.err { border-color: var(--accent-red); }
.wc-save-pill.err .wc-save-pill__ic { color: var(--accent-red); }
@media (max-width: 575.98px) { .wc-save-pill { bottom: 16px; font-size: .84rem; } }

.umc-form { display: flex; flex-direction: column; gap: 10px; }
.umc-score-row {
  display: flex; align-items: center; justify-content: center; gap: 12px;
}
.score-input {
  width: 56px; height: 56px; text-align: center;
  font-family: var(--font-mono); font-weight: 700; font-size: 20px;
  color: var(--brand-deep);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface);
}
.score-input:focus {
  border-color: var(--brand-sky); outline: none;
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--brand-sky) 30%, transparent);
}
.umc-score-row .dash { color: var(--text-muted); font-weight: 700; }

/* ---------- Lig sıralama kartı ---------- */
.league-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4);
}
@media (max-width: 767.98px) { .league-grid { grid-template-columns: 1fr; } }
.league-position-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 18px;
  display: flex; flex-direction: column; gap: 10px;
  text-decoration: none; color: inherit;
  transition: box-shadow .18s ease, transform .18s ease;
}
.league-position-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); color: inherit; }
.league-position-card__name {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  font-weight: 700; color: var(--text-primary);
}
.league-position-card__name .crown { color: var(--accent-gold-dark); }
.league-position-card__rank {
  font-family: var(--font-display); font-weight: 700; font-size: 2rem;
  color: var(--brand-deep); line-height: 1;
}
.league-position-card__rank small { font-size: 1rem; color: var(--text-muted); font-weight: 600; }
.lp-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.lp-meta .members { font-size: .82rem; color: var(--text-muted); }
.lp-progress {
  height: 8px; border-radius: 999px;
  background: var(--surface-alt); overflow: hidden;
}
.lp-progress > span { display: block; height: 100%; background: var(--brand-sky); border-radius: 999px; }
.lp-progress-label { font-size: .72rem; color: var(--text-muted); }
.league-position-card--first {
  border: 2px solid var(--accent-gold);
  box-shadow: 0 0 20px rgba(251, 191, 36, .3);
}
.league-position-card--first .lp-progress > span { background: var(--accent-gold); }

/* ---------- Turnuva geneli özet (compact) ---------- */
.global-summary {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-4); flex-wrap: wrap;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 14px 18px;
}
.global-summary__items {
  display: flex; gap: var(--space-5); flex-wrap: wrap;
  font-size: .92rem; color: var(--text-muted);
}
.global-summary__items b { color: var(--text-primary); font-weight: 700; }
.global-warn {
  display: inline-flex; align-items: center; gap: 6px;
  background: color-mix(in oklab, var(--accent-gold) 16%, white);
  color: var(--accent-gold-dark); font-weight: 600; font-size: .85rem;
  padding: 5px 12px; border-radius: 999px;
}

/* ---------- Genel boş durum ---------- */
.empty-state {
  text-align: center; padding: 44px 24px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
}
.empty-state__icon { font-size: 3rem; line-height: 1; opacity: .45; filter: grayscale(.3); }
.empty-state p { margin: 0; color: var(--text-muted); max-width: 38ch; }
.empty-state__actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 4px; }

/* =============================================================
   FAZ 3.1 — Premium pas (emoji'siz, vektör ikon + gerçek görsel)
   ============================================================= */

/* Özgün altın marka rozeti — navbar logosunda emoji yerine */
.brand-badge {
  width: 30px; height: 30px; flex: 0 0 auto;
  border-radius: 8px;
  background: linear-gradient(145deg, var(--accent-gold), var(--accent-gold-dark));
  color: var(--brand-deep);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1rem;
  box-shadow: var(--shadow-sm);
}

/* Bölüm başlığı önündeki küçük vektör ikon */
.section-head h2 .sh-ico {
  color: var(--brand-sky-dark);
  font-size: 1.05rem;
  margin-right: 8px;
  vertical-align: -1px;
}

/* Stat kartları artık ikonsuz: sadece ince altın üst aksanı + etiket + sayı */
.stat-card { border-top: 2px solid color-mix(in oklab, var(--accent-gold) 55%, var(--surface)); }
.stat-card__top {
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: .75rem;
}

/* Puan pill'i içindeki vektör trophy ikonu */
.points-pill .bi { font-size: .95rem; }

/* Marketing puanlama kartlarında emoji yerine altın vektör ikon */
.score-card__icon { color: var(--accent-gold-dark); }
.score-card__icon .bi { font-size: 1.8rem; }

/* Boş durumlarda emoji yerine sönük vektör ikon */
.empty-state__icon { color: var(--text-muted); }
.empty-state__icon .bi { font-size: 2.6rem; line-height: 1; }

/* Hero & auth görselleri için kullanıcı görseli (img veya <image-slot>) */
.hero__art {
  display: block;
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
@media (max-width: 767.98px) { .hero__art { height: 220px; } }

.auth-art {
  display: block;
  width: min(420px, 80%);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
@media (max-width: 767.98px) { .auth-art { width: 150px; } }

/* =============================================================
   FAZ 4 — Maçlar sayfası
   ============================================================= */

/* ---------- Sticky filtre çubuğu + chip'ler ---------- */
.matches-filter {
  position: sticky;
  top: var(--navbar-h);
  z-index: 1020;
  background: var(--bg);
  padding: 12px 0 10px;
  margin: 0 calc(-1 * var(--space-3));
}
.filter-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0 var(--space-3) 2px;
}
.filter-chips::-webkit-scrollbar { display: none; }
.filter-chip {
  flex: 0 0 auto;
  min-height: 40px;
  display: inline-flex; align-items: center;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-weight: 600; font-size: .85rem; white-space: nowrap;
  text-decoration: none;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.filter-chip:hover { color: var(--brand-sky-dark); border-color: var(--brand-sky); }
.filter-chip.active {
  background: var(--brand-sky);
  border-color: var(--brand-sky);
  color: #fff;
}

/* ---------- Sticky gün ayracı ---------- */
.day-divider {
  position: sticky;
  top: calc(var(--navbar-h) + 56px);
  z-index: 1010;
  display: flex; align-items: center; gap: 12px;
  background: var(--bg);
  padding: 10px 0;
  margin: 20px 0 12px;
  font-family: var(--font-display);
  font-weight: 600; text-transform: uppercase; letter-spacing: .06em;
  font-size: .8rem; color: var(--text-muted);
}
.day-divider::before, .day-divider::after {
  content: ""; flex: 1; height: 1px; background: var(--border);
}

/* ---------- Tur MVP (en gollü maç) seçici ---------- */
.round-mvp {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent-gold);
  border-radius: var(--radius-md);
  padding: 16px;
  margin: 4px 0 16px;
}
.round-mvp__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 12px; flex-wrap: wrap;
}
.round-mvp__title {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; color: var(--text-primary);
}
.round-mvp__title .bi { color: var(--brand-sky-dark); }
.round-mvp__chips { display: flex; gap: 8px; flex-wrap: wrap; }
.mvp-match-chip {
  cursor: pointer;
  display: inline-flex; align-items: center;
  min-height: 40px; padding: 8px 14px;
  border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface);
  font-weight: 600; font-size: .82rem; color: var(--text-primary);
  transition: background .15s ease, border-color .15s ease;
}
.mvp-match-chip input { position: absolute; opacity: 0; pointer-events: none; }
.mvp-match-chip:has(input:checked) {
  background: var(--accent-gold);
  border-color: var(--accent-gold);
  color: var(--brand-deep);
}

/* ---------- Maç kartı (Faz 4 — durumlu) ---------- */
.match-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}
@media (max-width: 991.98px) { .match-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767.98px)  { .match-grid { grid-template-columns: 1fr; } }

.match-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.match-card:focus-within { box-shadow: var(--shadow-md); }

.match-card__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.match-card__meta { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.match-card__stage {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-display); font-weight: 600;
  text-transform: uppercase; letter-spacing: .04em;
  font-size: .72rem; color: var(--text-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.match-card__stage .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-sky); flex: 0 0 auto; }
.match-card__time { font-family: var(--font-mono); font-weight: 700; font-size: .8rem; color: var(--text-primary); white-space: nowrap; }

.match-card__teams { padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.match-team { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text-primary); min-width: 0; }
.match-team .flag {
  width: 24px; height: 24px; border-radius: 4px; flex: 0 0 auto;
  background: var(--surface-alt); box-shadow: inset 0 0 0 1px var(--border);
  object-fit: cover; display: inline-flex; align-items: center; justify-content: center;
  font-size: .7rem; color: var(--text-muted);
}
.match-team__name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.match-card__body { padding: 14px 16px; border-top: 1px dashed var(--border); }

/* Bitmiş maç sonucu */
.match-result { text-align: center; }
.match-result__score {
  font-family: var(--font-display); font-weight: 700; font-size: 32px;
  color: var(--brand-deep); font-variant-numeric: tabular-nums; line-height: 1;
}
.match-result__pred { font-size: .8rem; margin-top: 6px; color: var(--text-muted); }
.match-result__pred.correct { color: var(--accent-gold-dark); font-weight: 700; }

/* Açık maç skor girişi */
.score-entry { display: flex; align-items: flex-end; justify-content: center; gap: 12px; flex-wrap: wrap; }
.score-entry__row { display: flex; align-items: flex-end; gap: 12px; }
.score-field { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.score-field label {
  font-size: .64rem; font-weight: 700; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .05em;
}
.score-entry .sep {
  font-family: var(--font-display); font-size: 24px; color: var(--text-muted);
  align-self: center; padding-bottom: 10px;
}
.score-entry .btn { min-height: 44px; }
@media (max-width: 767.98px) {
  .score-entry { flex-direction: column; align-items: stretch; }
  .score-entry__row { justify-content: center; }
  .score-entry .btn { width: 100%; }
}

/* Kilitli / canlı önizleme satırı */
.match-locked-note {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: .85rem; color: var(--text-muted);
}
.match-locked-note .pred { color: var(--brand-deep); font-weight: 700; }

/* ---------- Eleme: "kim tur atlar" seçici (Faz 4 güncelleme) ---------- */
.advance-block { margin-top: 14px; }
.advance-block[hidden] { display: none; }
.advance-block__label {
  display: flex; align-items: center; gap: 7px;
  font-size: .82rem; font-weight: 600; color: var(--text-primary);
  margin-bottom: 8px;
}
.advance-block__label .bi { color: var(--accent-gold-dark); }
.advance-block.is-draw .advance-block__label .bi { color: #C2410C; }
.advance-picker { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.advance-team {
  display: flex; align-items: center; gap: 8px;
  padding: 12px; min-height: 48px; cursor: pointer;
  background: var(--surface);
  border: 2px solid var(--border); border-radius: var(--radius-sm);
  font-weight: 600; font-size: .88rem; transition: border-color .15s ease, background .15s ease;
}
.advance-team:hover { border-color: var(--brand-sky-dark); }
.advance-team .flag { width: 22px; height: 15px; border-radius: 3px; background: var(--surface-alt); box-shadow: inset 0 0 0 1px var(--border); flex: 0 0 auto; display:inline-flex; align-items:center; justify-content:center; font-size:.6rem; color:var(--text-muted); }
.advance-team__name { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.advance-team input { position: absolute; opacity: 0; pointer-events: none; }
.advance-team:has(input:checked) {
  border-color: var(--accent-gold);
  background: color-mix(in oklab, var(--accent-gold) 12%, white);
}
.advance-team:has(input:checked) .advance-team__name { color: var(--brand-deep); }

/* non-draw: otomatik kazanan, soluk + bilgi metni */
.advance-block.is-auto .advance-picker { opacity: .55; pointer-events: none; }
.advance-auto-info {
  display: flex; align-items: center; gap: 7px;
  font-size: .8rem; color: var(--text-muted); margin-top: 8px;
}
.advance-auto-info .bi { color: var(--brand-sky-dark); }
.advance-auto-info b { color: var(--brand-deep); }

/* kilitli/bitti kartta tur atlayan satırı */
.advance-locked-note { font-size: .82rem; color: var(--text-muted); margin-top: 6px; }
.advance-locked-note b { color: var(--brand-deep); }
.match-result__extra { font-size: .78rem; color: var(--text-muted); margin-top: 4px; }

/* ---------- Kart durum varyantları ---------- */
.match-card--locked { opacity: .72; }
.match-card--correct {
  border: 2px solid var(--accent-gold);
  box-shadow: 0 0 18px rgba(251, 191, 36, .28);
}
.match-card--live {
  border: 2px solid var(--accent-red);
  animation: pulse-card 1.6s ease-in-out infinite;
}
@keyframes pulse-card {
  0%, 100% { box-shadow: 0 0 0 0 rgba(213, 43, 30, .26); }
  50%      { box-shadow: 0 0 16px 0 rgba(213, 43, 30, .26); }
}
@media (prefers-reduced-motion: reduce) { .match-card--live { animation: none; } }

/* ---------- Durum rozetleri (Faz 4 ekleri) ---------- */
.badge-open {
  background: color-mix(in oklab, var(--accent-green) 14%, white);
  color: var(--accent-green);
}
.badge-urgent {
  background: color-mix(in oklab, #EA580C 14%, white);
  color: #C2410C;
}
.badge-points {
  background: color-mix(in oklab, var(--accent-gold) 18%, white);
  color: var(--accent-gold-dark);
}
.badge-zero {
  background: #F1F5F9;
  color: var(--text-muted);
}

/* ---------- MVP satırı + bottom sheet ---------- */
.mvp-row {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-top: 1px dashed var(--border);
}
.mvp-row__label {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--text-muted); font-weight: 600; font-size: .85rem; white-space: nowrap;
}
.mvp-row__label .bi { color: var(--accent-gold-dark); }
.mvp-trigger {
  flex: 1; min-height: 44px;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 8px 12px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text-primary); font-weight: 600; font-size: .9rem;
  cursor: pointer; text-align: left;
}
.mvp-trigger.placeholder { color: var(--text-muted); font-weight: 500; }
.mvp-trigger .chevron { color: var(--text-muted); }

.mvp-sheet-backdrop {
  position: fixed; inset: 0; background: rgba(15, 23, 42, .5);
  z-index: 1050; opacity: 0; pointer-events: none; transition: opacity .2s ease;
}
.mvp-sheet-backdrop.open { opacity: 1; pointer-events: auto; }
.mvp-sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1051;
  background: var(--surface);
  border-top-left-radius: 20px; border-top-right-radius: 20px;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, .2);
  max-height: 72vh; overflow: auto;
  transform: translateY(100%); transition: transform .26s ease;
  padding-bottom: env(safe-area-inset-bottom, 16px);
  pointer-events: none; /* KAPALIYKEN (özellikle masaüstünde ortada opacity:0) altındaki tıklamayı YUTMASIN */
}
.mvp-sheet.open { transform: translateY(0); pointer-events: auto; }
@media (min-width: 768px) {
  /* Masaüstünde ortalı bir panel gibi göster */
  .mvp-sheet { left: 50%; right: auto; bottom: auto; top: 50%; width: 420px; max-width: 92vw;
    border-radius: var(--radius-lg); transform: translate(-50%, -46%) scale(.98); opacity: 0; }
  .mvp-sheet.open { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}
.mvp-sheet__handle { width: 40px; height: 4px; border-radius: 999px; background: var(--border); margin: 10px auto 4px; }
@media (min-width: 768px) { .mvp-sheet__handle { display: none; } }
.mvp-sheet__title {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 20px 12px; font-weight: 700; border-bottom: 1px solid var(--border);
}
.mvp-sheet__close { background: none; border: none; color: var(--text-muted); font-size: 1.2rem; min-height: 44px; min-width: 44px; }
.mvp-player {
  display: flex; align-items: center; gap: 12px;
  width: 100%; padding: 12px 20px; min-height: 56px;
  background: none; border: none; text-align: left; cursor: pointer;
  font-size: .92rem; color: var(--text-primary);
}
.mvp-player:hover, .mvp-player:focus-visible { background: var(--surface-alt); }
.mvp-player .avatar {
  width: 36px; height: 36px; border-radius: 50%; flex: 0 0 auto;
  background: var(--surface-alt); color: var(--brand-sky-dark);
  display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: .82rem;
}
.mvp-player__name { flex: 1; font-weight: 600; }
.mvp-player .flag { width: 22px; height: 15px; border-radius: 2px; background: var(--surface-alt); box-shadow: inset 0 0 0 1px var(--border); flex: 0 0 auto; }
.mvp-empty { padding: 24px 20px; text-align: center; color: var(--text-muted); }

/* =============================================================
   FAZ 5 — Ligler + Leaderboard
   ============================================================= */

/* ---------- Lig kart grid'i (Index) ---------- */
.leagues-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}
@media (max-width: 991.98px) { .leagues-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575.98px)  { .leagues-grid { grid-template-columns: 1fr; } }

.league-card {
  display: flex; flex-direction: column; gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 20px;
  text-decoration: none; color: inherit;
  transition: box-shadow .18s ease, transform .18s ease;
}
.league-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); color: inherit; }
.league-card--first {
  border: 2px solid var(--accent-gold);
  box-shadow: 0 0 30px rgba(251, 191, 36, .4);
}
.league-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.league-card__name { font-family: var(--font-display); font-weight: 700; font-size: 24px; line-height: 1.1; margin: 0; }
.members-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--surface-alt); color: var(--text-muted);
  border-radius: 999px; padding: 4px 12px;
  font-size: .8rem; font-weight: 600; white-space: nowrap; flex: 0 0 auto;
}

.league-card__rank { text-align: center; padding: 8px 0; }
.league-card__rank .trophy { font-size: 2.6rem; color: var(--accent-gold-dark); line-height: 1; }
.league-card__rank .first-label {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  color: var(--accent-gold-dark); font-size: 1.1rem; margin-top: 6px;
}
.league-card__rank .place { font-family: var(--font-display); font-weight: 700; font-size: 2.4rem; color: var(--brand-deep); line-height: 1; }
.league-card__rank .place small { font-size: 1.1rem; color: var(--text-muted); font-weight: 600; }
.league-card__rank .pts { font-size: .85rem; color: var(--text-muted); margin-top: 4px; }

.league-card__leader { font-size: .82rem; color: var(--text-muted); }
.league-card__leader b { color: var(--text-primary); font-weight: 600; }

/* ---------- Lig detay: davet bölümü ---------- */
.invite-card {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
}
@media (max-width: 767.98px) { .invite-card { grid-template-columns: 1fr; } }
.invite-col__label {
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  color: var(--text-muted); margin-bottom: 10px;
}
.invite-code { display: flex; gap: 4px; flex-wrap: wrap; }
.invite-code__box {
  width: 48px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-weight: 700; font-size: 24px;
  color: var(--brand-deep);
  background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
}
.invite-share { display: flex; flex-direction: column; gap: 10px; }
.invite-qr { display: flex; align-items: center; gap: 14px; margin-top: 4px; }
.invite-qr canvas, .invite-qr img { width: 120px; height: 120px; border-radius: var(--radius-sm); background: #fff; border: 1px solid var(--border); }
.invite-qr__hint { font-size: .8rem; color: var(--text-muted); }

/* ---------- Leaderboard ---------- */
.leader-list2 { display: flex; flex-direction: column; gap: 8px; }
.leader-card {
  display: grid;
  grid-template-columns: 36px 40px 1fr auto;
  align-items: center; gap: 12px;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.leader-card__rank {
  font-family: var(--font-display); font-weight: 700; font-size: 1.25rem;
  color: var(--text-muted); text-align: center;
}
.leader-card__rank .bi { color: var(--accent-gold-dark); font-size: 1.3rem; }
.leader-card__avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--surface-alt); border: 1px solid var(--border); }
.leader-card__main { min-width: 0; }
.leader-card__name { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--text-primary); }
.leader-card__name .tag {
  font-size: .64rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  padding: 2px 7px; border-radius: 999px; background: var(--surface-alt); color: var(--text-muted);
}
.leader-card__name .tag.you { background: var(--brand-sky); color: #fff; }
.leader-card__breakdown { display: flex; gap: 12px; font-size: .78rem; color: var(--text-muted); margin-top: 5px; flex-wrap: wrap; }
.leader-card__breakdown span { display: inline-flex; align-items: center; gap: 4px; font-variant-numeric: tabular-nums; }
.leader-card__total { font-family: var(--font-display); font-weight: 700; font-size: 28px; color: var(--brand-deep); font-variant-numeric: tabular-nums; }

/* sıra varyantları */
.leader-card--1 {
  background: linear-gradient(100deg, color-mix(in oklab, var(--accent-gold) 26%, white), color-mix(in oklab, var(--accent-gold) 10%, white));
  border-color: color-mix(in oklab, var(--accent-gold) 50%, white);
  box-shadow: 0 0 30px rgba(251, 191, 36, .4);
}
.leader-card--1 .leader-card__total { color: var(--accent-gold-dark); }
.leader-card--2 { background: var(--surface-alt); }

/* mobilde breakdown gizli, açılır accordion */
@media (max-width: 767.98px) {
  .leader-card { cursor: pointer; }
  .leader-card__breakdown { display: none; }
  .leader-card.open .leader-card__breakdown { display: flex; }
}

/* "Sen" satırı mobilde sticky alt bar */
@media (max-width: 767.98px) {
  .leader-card--you {
    position: sticky;
    bottom: calc(var(--tabbar-h) + 12px);
    z-index: 6;
    box-shadow: 0 -2px 16px rgba(15, 23, 42, .14);
    border-color: var(--brand-sky);
  }
}

/* ---------- Mini toast (kopyalandı) ---------- */
.toast-mini {
  position: fixed; left: 50%; bottom: calc(var(--tabbar-h) + 24px);
  transform: translateX(-50%) translateY(16px);
  background: var(--brand-deep); color: #fff;
  padding: 10px 18px; border-radius: 999px;
  font-weight: 600; font-size: .85rem;
  box-shadow: var(--shadow-lg);
  display: inline-flex; align-items: center; gap: 8px;
  opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease;
  z-index: 1100;
}
.toast-mini.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Auth/marka büyük soluk ikon (Create/Join başlığı) ---------- */
.form-hero-icon { font-size: 4rem; color: var(--brand-sky); opacity: .35; line-height: 1; text-align: center; }

/* =============================================================
   FAZ 6 — Turnuva Geneli tahminler (accordion)
   ============================================================= */

/* ---------- Durum rozeti + uyarı banner ---------- */
.status-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 999px;
  font-weight: 600; font-size: .85rem;
}
.status-pill--open   { background: var(--brand-sky); color: #fff; }
.status-pill--locked { background: var(--accent-red); color: #fff; }
.warn-banner {
  display: flex; align-items: center; gap: 10px;
  background: color-mix(in oklab, var(--accent-gold) 16%, white);
  color: var(--accent-gold-dark);
  border: 1px solid color-mix(in oklab, var(--accent-gold) 40%, white);
  border-radius: var(--radius-md);
  padding: 12px 16px; font-weight: 600; font-size: .9rem;
  margin: 16px 0;
}

/* ---------- Accordion ---------- */
.acc { display: flex; flex-direction: column; gap: 12px; }
.acc-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.acc-head {
  width: 100%; display: flex; align-items: center; gap: 12px;
  padding: 16px 18px; background: none; border: none; cursor: pointer; text-align: left;
}
.acc-icon {
  width: 42px; height: 42px; flex: 0 0 auto;
  border-radius: 11px; background: var(--surface-alt); color: var(--brand-sky-dark);
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.2rem;
}
.acc-titles { flex: 1; min-width: 0; }
.acc-title { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--text-primary); }
.acc-status { font-size: .82rem; color: var(--text-muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acc-status.done { color: var(--accent-green); font-weight: 600; }
.acc-stat { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.acc-points {
  font-family: var(--font-mono); font-weight: 700; font-size: .76rem;
  color: var(--accent-gold-dark);
  background: color-mix(in oklab, var(--accent-gold) 16%, white);
  padding: 5px 10px; border-radius: 999px; white-space: nowrap;
}
.acc-chevron { color: var(--text-muted); transition: transform .22s ease; }
.acc-item.open .acc-chevron { transform: rotate(180deg); }
.acc-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .28s ease; }
.acc-item.open .acc-body { grid-template-rows: 1fr; }
.acc-body__clip { overflow: hidden; }
.acc-body__pad { padding: 4px 18px 20px; border-top: 1px solid var(--border); }

/* ---------- Bracket (şampiyon & final) ---------- */
.bracket { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 0; }
.bracket__row { display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap; }
.bracket-card {
  width: 168px; min-height: 104px;
  border: 1px solid var(--border); border-radius: var(--radius-md);
  background: var(--surface);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  padding: 14px; text-align: center; cursor: pointer;
  transition: box-shadow .18s ease, border-color .18s ease;
}
.bracket-card .label { font-size: .64rem; text-transform: uppercase; letter-spacing: .07em; color: var(--text-muted); font-weight: 700; }
.bracket-card .flag-lg { width: 40px; height: 28px; border-radius: 4px; background: var(--surface-alt); box-shadow: inset 0 0 0 1px var(--border); display: inline-flex; align-items: center; justify-content: center; font-size: .72rem; color: var(--text-muted); }
.bracket-card .team-name { font-weight: 700; color: var(--text-primary); }
.bracket-card.empty .team-name { color: var(--text-muted); font-weight: 500; }
.bracket-card.is-picked { border-color: var(--accent-gold); box-shadow: 0 0 0 3px var(--accent-gold), 0 8px 20px rgba(251, 191, 36, .3); }
.bracket-card--champion { background: var(--accent-gold); border-color: var(--accent-gold-dark); }
.bracket-card--champion .label, .bracket-card--champion .team-name { color: var(--brand-deep); }
.bracket-card--champion .flag-lg { background: rgba(255,255,255,.5); }
.vs-divider { font-family: var(--font-display); font-style: italic; font-weight: 700; font-size: 32px; color: var(--accent-red); }
.bracket__connector { color: var(--border); font-size: 1.5rem; line-height: 1; }
.bracket__champ-pick { display: flex; gap: 10px; justify-content: center; margin-top: 6px; flex-wrap: wrap; }
.champ-chip {
  cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 8px 14px;
  border: 1px solid var(--border); border-radius: 999px; background: var(--surface);
  font-weight: 600; font-size: .85rem;
}
.champ-chip:has(input:checked) { background: var(--accent-gold); border-color: var(--accent-gold); color: var(--brand-deep); }
.champ-chip input { position: absolute; opacity: 0; pointer-events: none; }

/* ---------- Grup birincileri ---------- */
.group-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 991.98px) { .group-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 575.98px)  { .group-grid { grid-template-columns: repeat(2, 1fr); } }
.group-pick-card { border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; background: var(--surface); }
.group-pick-card__head {
  background: var(--brand-deep); color: #fff;
  font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: .04em;
  font-size: .8rem; padding: 8px 12px;
}
.group-pick-row {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; min-height: 44px; cursor: pointer;
  border-top: 1px solid var(--border); font-size: .85rem; font-weight: 600;
}
.group-pick-row .flag { width: 22px; height: 15px; border-radius: 3px; background: var(--surface-alt); box-shadow: inset 0 0 0 1px var(--border); flex: 0 0 auto; }
.group-pick-row .name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.group-pick-row input { position: absolute; opacity: 0; pointer-events: none; }
.group-pick-row:has(input:checked) { background: var(--accent-gold); color: var(--brand-deep); }
.group-pick-row:has(input:checked) .flag { box-shadow: inset 0 0 0 1px var(--accent-gold-dark); }

/* ---------- Gol kralı: arama + oyuncu kartları ---------- */
.player-search { position: relative; margin-bottom: 14px; }
.player-search .bi { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-muted); }
.player-search input { width: 100%; min-height: 48px; padding-left: 42px; border-radius: var(--radius-sm); border: 1px solid var(--border); }
/* Oyuncu araç çubuğu: arama + takım filtresi + sayfalama */
.player-toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.player-toolbar .player-search { flex: 1 1 220px; margin-bottom: 0; }
.player-team-filter { flex: 0 0 auto; min-width: 170px; min-height: 48px; border-radius: var(--radius-sm); border: 1px solid var(--border); }
@media (max-width: 575.98px) { .player-team-filter { flex-basis: 100%; width: 100%; } }
.player-pager { display: flex; align-items: center; justify-content: center; gap: var(--space-3); margin-top: 16px; }
.player-pager__count { font-family: var(--font-mono); font-weight: 600; font-size: .82rem; color: var(--text-muted); min-width: 96px; text-align: center; }
.picked-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: color-mix(in oklab, var(--accent-gold) 14%, white);
  border: 1px solid color-mix(in oklab, var(--accent-gold) 40%, white);
  border-radius: var(--radius-md); padding: 10px 14px; margin-bottom: 14px; font-weight: 600; color: var(--brand-deep);
}
.picked-banner a { font-size: .85rem; }
.player-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 767.98px) { .player-grid { grid-template-columns: repeat(2, 1fr); } }
.player-pick-card {
  min-height: 120px; cursor: pointer; position: relative;
  border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 14px; text-align: center;
  transition: box-shadow .18s ease, border-color .18s ease;
}
.player-pick-card .avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--surface-alt); border: 1px solid var(--border); color: var(--brand-sky-dark); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }
.player-pick-card .pname { font-weight: 700; font-size: .9rem; line-height: 1.15; }
.player-pick-card .pmeta { font-size: .74rem; color: var(--text-muted); display: inline-flex; align-items: center; gap: 6px; }
.player-pick-card .flag { width: 20px; height: 13px; border-radius: 2px; background: var(--surface-alt); box-shadow: inset 0 0 0 1px var(--border); }
.player-pick-card input, .team-pick-card input { position: absolute; opacity: 0; pointer-events: none; }
.player-pick-card:has(input:checked), .team-pick-card:has(input:checked) {
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px var(--accent-gold), 0 8px 20px rgba(251, 191, 36, .3);
}

/* ---------- Takım seçim kartları (en gollü / en az yiyen) ---------- */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 991.98px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 575.98px)  { .team-grid { grid-template-columns: repeat(2, 1fr); } }
.team-pick-card {
  cursor: pointer; position: relative;
  border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface);
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 12px; text-align: center;
  transition: box-shadow .18s ease, border-color .18s ease;
}
.team-pick-card .flag-lg { width: 48px; height: 34px; border-radius: 5px; background: var(--surface-alt); box-shadow: inset 0 0 0 1px var(--border); display: inline-flex; align-items: center; justify-content: center; font-size: .8rem; color: var(--text-muted); }
.team-pick-card .tname { font-weight: 700; font-size: .9rem; }
.team-pick-card .grp { font-size: .72rem; color: var(--text-muted); }

/* ---------- Kilitli durum ---------- */
.predictions-locked .acc-body__pad { pointer-events: none; opacity: .85; }
.predictions-locked .acc-head { cursor: pointer; } /* açıp görmek serbest */

/* =============================================================
   FAZ 7 — Profil + mikro-etkileşimler + toast + son rötuş
   ============================================================= */

/* ---------- Sayfa açılış fade ----------
   ÖNEMLİ: transform KULLANMA. .app-main bir transform animasyonu (fill-mode both)
   alırsa kalıcı "containing block" olur ve içindeki position:fixed popup'lar
   (takım/MVP alt-menüsü) viewport yerine .app-main'e göre konumlanır → mobilde
   popup ekranın dışına/altına kayar ve seçilemez. Sadece opacity ile fade yap. */
@keyframes page-fade { from { opacity: 0; } to { opacity: 1; } }
.app-main { animation: page-fade .22s ease both; }

/* ---------- Buton dokunma geri bildirimi ---------- */
.btn { transition: background .15s ease, border-color .15s ease, color .15s ease, transform .1s ease, box-shadow .15s ease; }
.btn:active { transform: scale(.97); }
.filter-chip:active, .mvp-match-chip:active, .champ-chip:active { transform: scale(.95); }

/* ---------- Buton içi spinner (form submit) ---------- */
.btn .spinner-border { width: 1rem; height: 1rem; border-width: .15em; }

/* ---------- "Doğru bildim" rozet animasyonu ---------- */
@keyframes pop-in { 0% { transform: scale(.6); opacity: 0; } 60% { transform: scale(1.08); } 100% { transform: scale(1); opacity: 1; } }
.badge-points { animation: pop-in .32s ease both; }

/* ---------- Toast (sağ üst, slide-in) ---------- */
.toast-stack {
  position: fixed; top: calc(var(--navbar-h) + 12px); right: 16px;
  z-index: 1200; display: flex; flex-direction: column; gap: 10px;
  max-width: min(340px, calc(100vw - 32px));
}
.toast-item {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface); color: var(--text-primary);
  border: 1px solid var(--border); border-left: 4px solid var(--brand-sky);
  border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
  padding: 12px 14px; font-weight: 600; font-size: .9rem;
  transform: translateX(120%); opacity: 0;
  transition: transform .28s ease, opacity .28s ease;
}
.toast-item.show { transform: translateX(0); opacity: 1; }
.toast-item .bi { font-size: 1.1rem; color: var(--brand-sky-dark); flex: 0 0 auto; }
.toast-item.success { border-left-color: var(--accent-green); }
.toast-item.success .bi { color: var(--accent-green); }
.toast-item.error { border-left-color: var(--accent-red); }
.toast-item.error .bi { color: var(--accent-red); }

/* ---------- Profil ---------- */
.profile-head {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  padding: 20px 22px; margin-bottom: var(--space-5);
}
.profile-avatar { width: 80px; height: 80px; border-radius: 50%; background: var(--surface-alt); border: 1px solid var(--border); flex: 0 0 auto; }
.profile-id { flex: 1; min-width: 0; }
.profile-id h1 { font-size: 1.6rem; margin: 0; display: flex; align-items: center; gap: 10px; }
.profile-id .email { color: var(--text-muted); font-size: .9rem; margin: 2px 0 0; }
.profile-id .admin-tag {
  font-size: .64rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  padding: 3px 9px; border-radius: 999px; background: var(--accent-gold); color: var(--brand-deep);
}

/* ---------- Sub-tab ---------- */
.sub-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.sub-tab {
  background: none; border: none; cursor: pointer;
  padding: 12px 16px; min-height: 44px;
  font-family: var(--font-display); font-weight: 600; font-size: .95rem;
  color: var(--text-muted); border-bottom: 3px solid transparent; margin-bottom: -1px;
}
.sub-tab.active { color: var(--brand-sky-dark); border-bottom-color: var(--brand-sky); }

/* ---------- Tahmin tablosu (responsive) ---------- */
.pred-filter { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.pred-list { display: flex; flex-direction: column; gap: 8px; }
.pred-head {
  display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 12px;
  padding: 6px 16px; font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .05em; color: var(--text-muted);
}
@media (max-width: 575.98px) { .pred-head { display: none; } }
.pred-row {
  display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 12px; align-items: center;
  padding: 12px 16px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-md);
}
.pred-row__match { font-weight: 700; min-width: 0; }
.pred-row__match small { display: block; font-weight: 500; color: var(--text-muted); font-size: .75rem; }
.pred-row__pred, .pred-row__real { font-family: var(--font-mono); font-weight: 700; }
.pred-row__pts { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; text-align: right; color: var(--brand-deep); }
.pred-row .cell-label { display: none; font-family: var(--font-body); font-weight: 600; font-size: .68rem; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); margin-bottom: 2px; }
.pred-row.correct { background: color-mix(in oklab, var(--accent-gold) 14%, white); border-color: color-mix(in oklab, var(--accent-gold) 40%, white); }
.pred-row.correct .pred-row__pts { color: var(--accent-gold-dark); }
.pred-row.wrong { background: #F8FAFC; }
.pred-row.wrong .pred-row__pts { color: var(--text-muted); }
.pred-row.pending { background: var(--surface-alt); border-color: color-mix(in oklab, var(--brand-sky) 30%, white); }
.pred-row.pending .pred-row__real { color: var(--text-muted); font-weight: 500; }
@media (max-width: 575.98px) {
  .pred-row { grid-template-columns: 1fr 1fr; gap: 8px 12px; }
  .pred-row__match { grid-column: 1 / -1; }
  .pred-row__pts { grid-column: 2; }
  .pred-row .cell-label { display: block; }
}

/* ---------- Hesap bölümü ---------- */
.account-actions { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.btn-danger-soft {
  --bs-btn-color: var(--accent-red); --bs-btn-border-color: color-mix(in oklab, var(--accent-red) 50%, white);
  --bs-btn-bg: transparent;
  --bs-btn-hover-bg: var(--accent-red); --bs-btn-hover-border-color: var(--accent-red); --bs-btn-hover-color: #fff;
  font-weight: 600;
}

/* ---------- Reduced motion: tüm animasyon/geçişleri kapat ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
