/* ============================================================
   WC2026 — Editorial B2B SaaS Design System
   Bootstrap/Tailwind YOK. CSS tokens + patterns.
   ============================================================ */

:root {
  /* BRAND */
  --primary:        #11b682;
  --primary-dark:   #0e9a6e;
  --primary-deep:   #0a7854;
  --primary-tint:   rgba(17, 182, 130, 0.10);
  --primary-soft:   rgba(17, 182, 130, 0.06);
  --primary-glow:   rgba(17, 182, 130, 0.55);

  /* TEXT */
  --text-dark:      #0f1521;
  --text-body:      #1f2937;
  --text-medium:    #4b5563;
  --text-muted:     #6b7280;
  --text-faint:     #9ca3af;

  /* SURFACE */
  --bg-app:         #f6f7f9;
  --bg-card:        #ffffff;
  --bg-soft:        #fbfbfc;
  --border:         #eef0f4;
  --border-strong:  #e8eaef;
  --border-hover:   #dde1e8;

  /* SEMANTIC */
  --warn:           #c2410c;
  --warn-tint:      rgba(194, 65, 12, 0.10);
  --danger:         #b91c1c;
  --danger-tint:    rgba(185, 28, 28, 0.08);

  /* TYPOGRAPHY */
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* RADII */
  --r-pill:  999px;
  --r-input: 10px;
  --r-card:  14px;
  --r-shell: 24px;

  /* HEADER */
  --header-height: 60px;
  --bottom-nav-height: 72px;
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea, button { font-family: inherit; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1,h2,h3,h4,h5 { margin: 0; }

html, body {
  font-family: var(--font-sans);
  font-feature-settings: "cv11", "ss01", "ss03";
  color: var(--text-body);
  background: var(--bg-app);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}

body {
  padding-bottom: calc(env(safe-area-inset-bottom) + var(--bottom-nav-height) + 12px);
  min-height: 100vh;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 20px;
}
.container--wide {
  max-width: 980px;
}

/* ============================================================
   HEADER
   ============================================================ */
.app-header {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1020;
}
.app-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-dark);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.025em;
}
.brand__logo {
  width: 34px; height: 34px;
  background: var(--primary);
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 8px 18px -8px var(--primary-glow);
}
.brand__year { color: var(--primary-dark); }

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-dark);
  font-size: 0.88rem;
  font-weight: 600;
}
.avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.76rem;
  letter-spacing: 0.02em;
}
.admin-pin {
  color: var(--warn);
  display: inline-flex;
  align-items: center;
  margin-left: 4px;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.h1 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: -0.032em;
  line-height: 1.15;
}
.h1__accent {
  background: linear-gradient(120deg, var(--primary), var(--primary-dark));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  padding-bottom: 0.14em;
  line-height: 1.18;
}
.h2 {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text-dark);
  line-height: 1.22;
}
.h3 {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.018em;
  color: var(--text-dark);
  line-height: 1.35;
}
.subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
  margin-top: 6px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-tint);
  color: var(--primary-dark);
  padding: 5px 12px;
  border-radius: var(--r-pill);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  font-weight: 700;
  text-transform: uppercase;
}
.eyebrow__dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--primary);
}
.text-dark { color: var(--text-dark); }
.text-muted { color: var(--text-muted); }
.text-faint { color: var(--text-faint); }
.text-primary { color: var(--primary-dark); }
.text-warn { color: var(--warn); }

/* ============================================================
   SECTION HEAD
   ============================================================ */
.section-head { margin: 22px 0 14px; }
.section-head__row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 18px;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.card--soft { padding: 22px; }
.card--hover:hover {
  border-color: var(--border-hover);
  transform: translateY(-1px);
  box-shadow: 0 16px 40px -22px rgba(15, 22, 41, 0.14);
}
.shell-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-shell);
  padding: clamp(22px, 4vw, 32px);
  box-shadow: 0 30px 80px -50px rgba(15, 22, 41, 0.18);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  border-radius: var(--r-input);
  font-weight: 600;
  font-size: 0.92rem;
  border: 1px solid transparent;
  cursor: pointer;
  background: transparent;
  color: var(--text-dark);
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none;
  line-height: 1;
}
.btn--primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 10px 24px -12px var(--primary-glow);
}
.btn--primary:hover { background: var(--primary-dark); transform: translateY(-1px); color: #fff; }
.btn--primary:active { transform: translateY(0); }
.btn--primary:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn--outline {
  background: #fff;
  color: var(--primary-dark);
  border-color: var(--primary);
}
.btn--outline:hover { background: var(--primary-tint); }
.btn--ghost {
  background: #fff;
  border-color: var(--border-strong);
  color: var(--text-dark);
}
.btn--ghost:hover { background: var(--bg-soft); border-color: var(--border-hover); }
.btn--block { width: 100%; }
.btn--lg { padding: 14px 18px; font-size: 0.98rem; }
.btn--sm { padding: 7px 12px; font-size: 0.82rem; }

/* ============================================================
   FORM CONTROLS
   ============================================================ */
.form-group { margin-bottom: 14px; }
.form-label {
  display: block;
  color: var(--text-dark);
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: 0.005em;
}
.input, .select {
  width: 100%;
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  padding: 11px 13px;
  color: var(--text-dark);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.input::placeholder { color: var(--text-faint); }
.input:focus, .select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-tint);
}
.input:disabled, .select:disabled { background: var(--bg-soft); color: var(--text-muted); cursor: not-allowed; }
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}
.input-icon { position: relative; }
.input-icon .input { padding-left: 38px; }
.input-icon__svg {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

/* Score input (Tam Skor) */
.score-input {
  text-align: center;
  font-size: 2.4rem;
  font-weight: 800;
  padding: 14px 4px;
  border-radius: var(--r-card);
  background: var(--bg-soft);
  border: 1.5px solid var(--border);
  color: var(--text-dark);
  letter-spacing: -0.02em;
  width: 100%;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.score-input:focus {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 4px var(--primary-tint);
}

/* ============================================================
   BADGES
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--primary-tint);
  color: var(--primary-dark);
  font-weight: 600;
  font-size: 0.68rem;
  padding: 4px 9px;
  border-radius: 6px;
  letter-spacing: 0.01em;
}
.badge--mute { background: var(--bg-soft); color: var(--text-muted); border: 1px solid var(--border); }
.badge--warn { background: var(--warn-tint); color: var(--warn); }
.badge--danger { background: var(--danger-tint); color: var(--danger); }
.badge--solid { background: var(--text-dark); color: #fff; font-weight: 700; }

/* ============================================================
   ALERTS
   ============================================================ */
.alert {
  border: 1px solid;
  border-radius: var(--r-card);
  padding: 11px 14px;
  font-size: 0.88rem;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.alert--success { background: var(--primary-tint); color: var(--primary-deep); border-color: rgba(17, 182, 130, 0.25); }
.alert--warn    { background: #fff7ed; color: #9a3009; border-color: #fed7aa; }
.alert--danger  { background: var(--danger-tint); color: var(--danger); border-color: #fecaca; }
.alert__icon { flex-shrink: 0; line-height: 1; margin-top: 1px; }

/* ============================================================
   MATCH CARD (specific)
   ============================================================ */
.match-card {
  display: block;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 14px 16px;
  margin-bottom: 8px;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.match-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-1px);
  box-shadow: 0 14px 36px -22px rgba(15, 22, 41, 0.14);
}
.match-card__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  gap: 8px;
}
.match-card__time {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.match-card__teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
}
.match-card__team {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 700;
  color: var(--text-dark);
}
.match-card__team--right { justify-content: flex-end; text-align: right; }
.match-card__team-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.match-card__vs {
  color: var(--text-faint);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0 6px;
}
.match-card__score {
  color: var(--primary-dark);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.flag-circle {
  width: 30px; height: 30px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  display: inline-flex; align-items: center; justify-content: center;
}
.flag-circle img { width: 100%; height: 100%; object-fit: cover; }
.flag-circle--lg { width: 56px; height: 56px; }
.flag-circle--empty { color: var(--text-faint); }

/* Day separator */
.day-sep {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 24px 0 10px;
}
.day-sep__num {
  background: var(--text-dark);
  color: #fff;
  font-weight: 700;
  font-size: 0.74rem;
  padding: 4px 10px;
  border-radius: 7px;
  letter-spacing: -0.005em;
}
.day-sep__name {
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 500;
}

/* ============================================================
   HERO STAT (Potansiyel Puan vb.)
   ============================================================ */
.stat-hero {
  background: linear-gradient(135deg, #0e1a14 0%, #14271d 60%, #0e1a14 100%);
  color: #fff;
  border-radius: var(--r-shell);
  padding: 20px 22px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 22px 48px -30px rgba(15, 22, 41, 0.45);
}
.stat-hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 92% 8%, rgba(17,182,130,.40), transparent 40%),
    radial-gradient(circle at -5% 90%, rgba(17,182,130,.15), transparent 50%);
  pointer-events: none;
}
.stat-hero > * { position: relative; z-index: 1; }
.stat-hero__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.stat-hero__label { font-size: 0.78rem; opacity: 0.75; font-weight: 500; }
.stat-hero__value {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-top: 4px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.stat-hero__unit { font-size: 0.78rem; font-weight: 500; opacity: 0.7; }
.stat-hero__breakdown {
  font-size: 0.78rem;
  line-height: 1.4;
  opacity: 0.85;
  text-align: right;
}

/* Stat tiles (light) */
.stat-tile {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-input);
  padding: 12px 14px;
  text-align: center;
}
.stat-tile__num {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-dark);
  letter-spacing: -0.02em;
  line-height: 1;
}
.stat-tile__label {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 6px;
}

/* ============================================================
   PICK GRID (1X2, Alt/Üst, KG)
   ============================================================ */
.section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-dark);
  margin: 22px 0 10px;
}
.section-title__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--primary); }
.section-title__chip {
  margin-left: auto;
  font-size: 0.66rem;
  font-weight: 700;
  background: var(--primary-tint);
  color: var(--primary-dark);
  padding: 3px 8px;
  border-radius: 5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pick-grid { display: grid; gap: 8px; }
.pick-grid--3 { grid-template-columns: repeat(3, 1fr); }
.pick-grid--2 { grid-template-columns: repeat(2, 1fr); }
.pick-btn {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 11px;
  padding: 12px 8px;
  font-weight: 600;
  font-size: 0.86rem;
  color: var(--text-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  line-height: 1.18;
  transition: all 0.12s ease;
}
.pick-btn:hover:not(:disabled):not(.is-active) {
  border-color: var(--primary);
  background: var(--primary-tint);
}
.pick-btn.is-active:hover:not(:disabled) {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px -8px var(--primary-glow);
}
.pick-btn__tag {
  font-size: 0.62rem;
  font-weight: 800;
  padding: 2px 8px;
  background: var(--bg-soft);
  color: var(--text-muted);
  border-radius: 5px;
  letter-spacing: 0.04em;
}
.pick-btn.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 8px 18px -8px var(--primary-glow);
}
.pick-btn.is-active .pick-btn__tag { background: rgba(255,255,255,0.22); color: #fff; }
.pick-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.pick-btn__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

/* ============================================================
   MATCH HEADER (üst kart)
   ============================================================ */
.match-hero {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-shell);
  padding: 20px;
  text-align: center;
  box-shadow: 0 18px 50px -40px rgba(15, 22, 41, 0.18);
}
.match-hero__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.match-hero__date {
  color: var(--text-muted);
  font-size: 0.82rem;
  margin-bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.match-hero__teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}
.match-hero__team { text-align: center; min-width: 0; }
.match-hero__name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-dark);
  margin-top: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.match-hero__vs {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-faint);
  letter-spacing: -0.01em;
}

/* ============================================================
   BOTTOM NAV
   ============================================================ */
.nav-bottom {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 1020;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-top: 1px solid var(--border);
  padding-bottom: env(safe-area-inset-bottom);
}
.nav-bottom__inner {
  max-width: 600px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}
.nav-bottom__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 4px;
  color: var(--text-faint);
  font-size: 0.66rem;
  font-weight: 600;
  position: relative;
  transition: color 0.15s;
}
.nav-bottom__link svg { width: 22px; height: 22px; stroke-width: 2; }
.nav-bottom__link.is-active { color: var(--primary-dark); font-weight: 700; }
.nav-bottom__link.is-active::before {
  content: '';
  position: absolute;
  top: 0; left: 32%; right: 32%;
  height: 3px;
  background: var(--primary);
  border-radius: 0 0 4px 4px;
}

/* ============================================================
   DISCLAIMER
   ============================================================ */
.app-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 32px auto 0;
  padding: 14px 16px;
  max-width: 600px;
  border-top: 1px solid var(--border);
  color: var(--text-faint);
  font-size: 0.72rem;
  line-height: 1.45;
}
.app-disclaimer svg { flex: 0 0 auto; margin-top: 1px; stroke-width: 2; }

/* ============================================================
   UTILITIES
   ============================================================ */
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.gap-1 { gap: 4px; } .gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; }
.mt-1 { margin-top: 4px; } .mt-2 { margin-top: 8px; } .mt-3 { margin-top: 12px; } .mt-4 { margin-top: 16px; } .mt-5 { margin-top: 24px; }
.mb-1 { margin-bottom: 4px; } .mb-2 { margin-bottom: 8px; } .mb-3 { margin-bottom: 12px; } .mb-4 { margin-bottom: 16px; } .mb-5 { margin-bottom: 24px; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-sm { font-size: 0.85rem; }
.text-xs { font-size: 0.75rem; }
.fw-600 { font-weight: 600; } .fw-700 { font-weight: 700; } .fw-800 { font-weight: 800; }
.hidden { display: none !important; }
.w-full { width: 100%; }
.relative { position: relative; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.divider { height: 1px; background: var(--border); margin: 16px 0; }

/* ============================================================
   RANK PICKER (Grup sıralama)
   ============================================================ */
.rank-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  margin-bottom: 6px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.rank-row.has-rank {
  border-color: var(--primary);
  background: var(--primary-soft);
}
.rank-row__pos {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--bg-soft);
  border: 1px solid var(--border-strong);
  color: var(--text-faint);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.88rem;
  flex-shrink: 0;
  transition: all 0.15s ease;
}
.rank-row.has-rank .rank-row__pos {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 4px 10px -3px var(--primary-glow);
}
.rank-row__name {
  flex: 1;
  font-weight: 700;
  color: var(--text-dark);
  font-size: 0.92rem;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rank-row__pills {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}
.rank-pill {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: var(--bg-soft);
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.82rem;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all 0.12s ease;
}
.rank-pill:hover:not(.is-active):not(:disabled) {
  border-color: var(--primary);
  color: var(--primary-dark);
}
.rank-pill.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 4px 10px -3px var(--primary-glow);
}
.rank-pill.is-active:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.rank-pill:disabled { opacity: 0.5; cursor: not-allowed; }
@media (max-width: 380px) {
  .rank-pill { width: 26px; height: 26px; font-size: 0.78rem; }
  .rank-row { padding: 8px 10px; gap: 8px; }
}

/* ============================================================
   STEPPER (Bracket funnel)
   ============================================================ */
.stepper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 16px;
}
.stepper__item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 8px;
  text-align: center;
  position: relative;
  cursor: pointer;
  transition: all 0.15s ease;
}
.stepper__item.is-done { background: var(--primary-soft); border-color: rgba(17,182,130,0.25); }
.stepper__item.is-active { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 8px 18px -8px var(--primary-glow); }
.stepper__item.is-locked { opacity: 0.55; cursor: not-allowed; }
.stepper__num {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  opacity: 0.7;
  text-transform: uppercase;
}
.stepper__label {
  font-size: 0.78rem;
  font-weight: 700;
  margin-top: 3px;
  letter-spacing: -0.01em;
}
.stepper__count {
  display: inline-block;
  margin-top: 4px;
  font-size: 0.66rem;
  font-weight: 700;
  opacity: 0.8;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}
.team-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.86rem;
  color: var(--text-dark);
  cursor: pointer;
  transition: all 0.12s ease;
  min-width: 0;
}
.team-chip:hover:not(.is-active):not(:disabled):not(.is-locked) {
  border-color: var(--primary);
  background: var(--primary-tint);
}
.team-chip.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 4px 12px -3px var(--primary-glow);
}
.team-chip.is-active:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.team-chip.is-locked { opacity: 0.4; cursor: not-allowed; }
.team-chip__tag {
  font-size: 0.6rem;
  font-weight: 800;
  padding: 2px 7px;
  background: var(--bg-soft);
  color: var(--text-muted);
  border-radius: 5px;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.team-chip.is-active .team-chip__tag { background: rgba(255,255,255,0.22); color: #fff; }
.team-chip__name {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 1;
}
.team-chip__flag {
  width: 22px; height: 22px; border-radius: 50%;
  overflow: hidden; flex-shrink: 0;
  background: var(--bg-soft);
}
.team-chip__flag img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   BRACKET LAYOUT (2 kolon + sağ timeline)
   ============================================================ */
.bracket-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 900px) {
  .bracket-wrap { grid-template-columns: minmax(0, 1fr) 280px; align-items: start; }
  .bracket-wrap__main { min-width: 0; }
  .bracket-wrap__side { position: sticky; top: 76px; }
}

.timeline {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 16px;
}
.timeline__title {
  display: flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 0.88rem; color: var(--text-dark);
  margin-bottom: 12px;
}
.timeline__title-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--primary); }

.tl-stage { position: relative; padding-left: 26px; padding-bottom: 14px; }
.tl-stage:last-child { padding-bottom: 0; }
.tl-stage::before {
  content: ''; position: absolute;
  left: 9px; top: 6px; bottom: -8px;
  width: 2px; background: var(--border);
}
.tl-stage:last-child::before { display: none; }
.tl-stage__dot {
  position: absolute; left: 4px; top: 4px;
  width: 12px; height: 12px; border-radius: 50%;
  background: #fff; border: 2px solid var(--border-strong);
  z-index: 1;
}
.tl-stage.is-active .tl-stage__dot { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-tint); }
.tl-stage.is-done   .tl-stage__dot { background: var(--primary); border-color: var(--primary); }
.tl-stage__head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 6px;
}
.tl-stage__label {
  font-size: 0.78rem; font-weight: 700; color: var(--text-dark);
  letter-spacing: -0.005em;
}
.tl-stage__count {
  font-size: 0.66rem; font-weight: 700;
  background: var(--bg-soft); color: var(--text-muted);
  padding: 2px 7px; border-radius: 5px;
  letter-spacing: 0.02em;
}
.tl-stage.is-done .tl-stage__count {
  background: var(--primary-tint); color: var(--primary-dark);
}
.tl-stage__teams {
  display: flex; flex-wrap: wrap; gap: 4px;
}
.tl-team {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  padding: 3px 7px 3px 4px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-dark);
  max-width: 100%;
}
.tl-team img { width: 14px; height: 14px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.tl-team__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-empty {
  font-size: 0.72rem; color: var(--text-faint); font-style: italic;
}

/* ============================================================
   GROUP SUMMARY (sağ timeline)
   ============================================================ */
.summary-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 900px) {
  .summary-wrap { grid-template-columns: minmax(0, 1fr) 300px; align-items: start; }
  .summary-wrap__main { min-width: 0; }
  .summary-wrap__side { position: sticky; top: 76px; max-height: calc(100vh - 96px); overflow-y: auto; }
  .summary-wrap__side::-webkit-scrollbar { width: 6px; }
  .summary-wrap__side::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 3px; }
}

.group-sum {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 14px 14px 10px;
  margin-bottom: 8px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.group-sum.is-complete {
  border-color: rgba(17,182,130,0.30);
  background: var(--primary-soft);
}
.group-sum__head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px;
}
.group-sum__title {
  font-weight: 800; font-size: 0.84rem; color: var(--text-dark);
  letter-spacing: -0.01em;
}
.group-sum__count {
  font-size: 0.66rem; font-weight: 700;
  background: var(--bg-soft); color: var(--text-muted);
  padding: 2px 7px; border-radius: 5px;
}
.group-sum.is-complete .group-sum__count {
  background: var(--primary-tint); color: var(--primary-dark);
}
.group-sum__row {
  display: flex; align-items: center; gap: 6px;
  padding: 4px 0;
  font-size: 0.78rem;
  color: var(--text-dark);
}
.group-sum__row + .group-sum__row { border-top: 1px dashed var(--border); }
.group-sum__pos {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--bg-soft); color: var(--text-faint);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.66rem; flex-shrink: 0;
}
.group-sum.is-complete .group-sum__pos,
.group-sum__row.has-pick .group-sum__pos {
  background: var(--primary); color: #fff;
}
.group-sum__flag { width: 14px; height: 14px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: var(--bg-soft); }
.group-sum__flag img { width: 100%; height: 100%; object-fit: cover; }
.group-sum__name {
  font-weight: 600; flex: 1;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0;
}
.group-sum__name--empty { color: var(--text-faint); font-style: italic; font-weight: 500; }

/* ============================================================
   HALF CARD (45 dk grouped prediction)
   ============================================================ */
.half-card {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  overflow: hidden;
  margin-bottom: 12px;
}
.half-card__label {
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  padding: 14px 0;
  line-height: 1;
}
.half-card__body {
  padding: 16px;
}
.half-card__title {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-dark);
  margin-bottom: 4px;
  display: flex; align-items: center; justify-content: space-between;
}
.half-card__pts {
  font-size: 0.66rem; font-weight: 700;
  background: var(--primary-tint); color: var(--primary-dark);
  padding: 2px 7px; border-radius: 5px;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.half-card__sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  margin: 12px 0 6px;
}

/* ============================================================
   ACCORDION (admin maç listesi)
   ============================================================ */
.acc {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  margin-bottom: 8px;
  overflow: hidden;
  transition: border-color 0.15s ease;
}
.acc.is-open { border-color: var(--primary); box-shadow: 0 10px 30px -18px rgba(15,22,41,0.14); }
.acc__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  cursor: pointer;
  user-select: none;
}
.acc__head:hover { background: var(--bg-soft); }
.acc__meta {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.acc__title {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-dark);
}
.acc__chev {
  color: var(--text-faint);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.acc.is-open .acc__chev { transform: rotate(180deg); color: var(--primary); }
.acc__body {
  border-top: 1px solid var(--border);
  padding: 14px;
  display: none;
}
.acc.is-open .acc__body { display: block; }

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.field-pair {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
}

/* responsive */
@media (max-width: 380px) {
  .pick-btn { font-size: 0.78rem; padding: 10px 4px; }
  .score-input { font-size: 2rem; padding: 12px 4px; }
  .team-chip { font-size: 0.78rem; padding: 9px 10px; }
}
