/* ============================================================
   Ligof — Tasarim Sistemi v3 (profesyonel SaaS)
   Font: Plus Jakarta Sans · JetBrains Mono (sayilar/kodlar)
   Palet: slate notrler + tek vurgu (yesil). Kirilimlar 375/768/1024/1440
   ============================================================ */
:root {
  --primary: #15803d;
  --primary-hover: #166534;
  --primary-soft: #ecfdf3;
  --primary-ring: rgb(21 128 61 / 0.25);

  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-2: #f1f5f9;
  --ink: #0f172a;
  --ink-2: #1e293b;
  --muted: #64748b;
  --muted-2: #94a3b8;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --dark: #0f172a;
  --dark-2: #1e293b;

  --ok-bg: #ecfdf3;   --ok-fg: #15803d;   --ok-dot: #22c55e;
  --warn-bg: #fffbeb; --warn-fg: #b45309; --warn-dot: #f59e0b;
  --err-bg: #fef2f2;  --err-fg: #b91c1c;  --err-dot: #ef4444;
  --info-bg: #f1f5f9; --info-fg: #475569; --info-dot: #94a3b8;
  --danger: #dc2626;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgb(15 23 42 / 0.05);
  --shadow-md: 0 1px 3px rgb(15 23 42 / 0.06), 0 8px 24px -12px rgb(15 23 42 / 0.15);
  --shadow-lg: 0 2px 6px rgb(15 23 42 / 0.06), 0 24px 48px -20px rgb(15 23 42 / 0.25);
  --font: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --primary: #22c55e;
    --primary-hover: #4ade80;
    --primary-soft: #14291c;
    --primary-ring: rgb(34 197 94 / 0.3);
    --bg: #0b1120;
    --surface: #111827;
    --surface-2: #1a2333;
    --ink: #e5e7eb;
    --ink-2: #d1d5db;
    --muted: #94a3b8;
    --muted-2: #64748b;
    --line: #1f2937;
    --line-strong: #374151;
    --dark: #020617;
    --dark-2: #0f172a;
    --ok-bg: #14291c;   --ok-fg: #4ade80;
    --warn-bg: #2b2108; --warn-fg: #fbbf24;
    --err-bg: #2f1414;  --err-fg: #f87171;
    --info-bg: #1a2333; --info-fg: #cbd5e1;
    --danger: #ef4444;
    --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.4);
    --shadow-md: 0 1px 3px rgb(0 0 0 / 0.5), 0 8px 24px -12px rgb(0 0 0 / 0.6);
    --shadow-lg: 0 2px 6px rgb(0 0 0 / 0.5), 0 24px 48px -20px rgb(0 0 0 / 0.7);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 15.5px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }
button, select, summary, label[for], input[type="checkbox"] { cursor: pointer; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -48px; z-index: 100; background: var(--surface); color: var(--ink); padding: 8px 14px; border-radius: 8px; box-shadow: var(--shadow-lg); transition: top 0.15s; }
.skip-link:focus { top: 12px; }

/* ---------- Ust bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  padding: 0 24px; max-width: 1180px; margin: 0 auto; min-height: 62px; position: relative;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; font-size: 1.12rem; letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--primary); color: #fff; flex: none;
}
/* Marka kilidi: yesil LIG(top)F + sari TURKEY rozeti */
:root { --gold: #facc15; --gold-ink: #14532d; }
.wordmark {
  display: inline-flex; align-items: center; line-height: 1;
  font-weight: 800; letter-spacing: -0.035em; color: var(--primary); white-space: nowrap;
}
.wordmark .wm-ball { display: inline-block; width: 0.94em; height: 0.94em; margin: 0 0.015em; flex: none; align-self: baseline; transform: translateY(0.08em); }
.wordmark .wm-country {
  font-weight: 800; font-size: 0.38em; letter-spacing: 0.16em; margin-left: 0.6em;
  padding: 0.3em 0.7em; border-radius: 999px; background: var(--gold); color: var(--gold-ink);
}
.brand .wordmark, .footer-brand .wordmark { color: var(--primary); }
.brand:hover .wordmark { color: var(--primary-hover); }
@media (prefers-color-scheme: dark) { .wordmark { color: #fff; } .brand .wordmark, .footer-brand .wordmark { color: #fff; } }
.logo-mark { flex: none; display: block; }
.topnav { display: flex; gap: 4px; margin-left: auto; align-items: center; font-size: 0.92rem; font-weight: 600; }
.topnav a { color: var(--muted); padding: 8px 12px; border-radius: 8px; }
.topnav a:hover { color: var(--ink); background: var(--surface-2); text-decoration: none; }
.topnav .nav-cta { color: #fff; margin-left: 6px; }
.topnav .nav-cta:hover { color: #fff; background: var(--primary-hover); }
.topnav form { margin: 0; }
.btn-ghost { background: var(--surface-2); border: 1px solid var(--line); color: var(--ink); padding: 7px 14px; border-radius: 8px; font-size: 0.88rem; font-family: var(--font); font-weight: 600; }
.btn-ghost:hover { border-color: var(--line-strong); }
.nav-check { display: none; }
.nav-burger { display: none; margin-left: auto; padding: 9px; border-radius: 8px; color: var(--ink); }
.nav-burger .ico-close { display: none; }
@media (max-width: 767px) {
  .nav-burger { display: inline-flex; }
  .topnav { display: none; flex-direction: column; align-items: stretch; width: 100%; padding: 6px 0 14px; gap: 2px; margin-left: 0; }
  .topnav a, .topnav .btn-ghost { display: block; width: 100%; text-align: left; padding: 12px 12px; }
  .topnav .nav-cta { margin: 6px 0 0; text-align: center; }
  .nav-check:checked ~ .topnav { display: flex; }
  .nav-check:checked ~ .nav-burger .ico-menu { display: none; }
  .nav-check:checked ~ .nav-burger .ico-close { display: inline; }
}

/* ---------- Yerlesim ve tipografi ---------- */
main { max-width: 1180px; margin: 0 auto; padding: 24px 24px 72px; }
@media (max-width: 480px) { main { padding: 16px 16px 56px; } }
section, .section { margin-top: 56px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }

h1 { font-weight: 800; font-size: clamp(1.6rem, 3.2vw, 2.1rem); letter-spacing: -0.03em; line-height: 1.15; margin: 0.3em 0; text-wrap: balance; }
h2 { font-weight: 700; font-size: 1.32rem; letter-spacing: -0.02em; margin: 1.3em 0 0.5em; text-wrap: balance; }
h3 { font-weight: 700; font-size: 1.02rem; letter-spacing: -0.01em; margin: 1em 0 0.4em; }
p { max-width: 68ch; }
.eyebrow { display: inline-block; font-size: 0.78rem; font-weight: 700; color: var(--primary); letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 10px; }
.lede { font-size: 1.08rem; color: var(--muted); }
.sub { color: var(--muted); font-size: 0.9rem; }
.muted { color: var(--muted); }
.right { text-align: right; }
.mt0 { margin-top: 0; }
.wfull { width: 100%; }
.danger-text { color: var(--danger); }
.spacer { height: 10px; }
.crumb { font-size: 0.86rem; color: var(--muted); display: flex; gap: 8px; align-items: center; margin-bottom: 4px; }
.crumb a { color: var(--muted); }
.crumb a:hover { color: var(--ink); }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 8px; }
.page-head h1 { margin: 0.1em 0 0.15em; }
.page-head-bar { padding: 8px 0 18px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.page-head-bar h1 { margin: 0.2em 0 0.1em; }
.page-head-bar .sub { margin: 0; }
.row-split { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }

/* ---------- Kartlar ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin: 14px 0; box-shadow: var(--shadow-sm); }
.card h2:first-child, .card h3:first-child { margin-top: 0; }
a.card, .card-link { display: block; color: inherit; transition: border-color 0.18s, box-shadow 0.18s; }
a.card:hover, .card-link:hover { text-decoration: none; border-color: var(--line-strong); box-shadow: var(--shadow-md); }
.grid { display: grid; gap: 14px; }
.grid > * { min-width: 0; } /* genis tablo/form iceren grid ogeleri ekran disina tasmasin */
.grid .card { margin: 0; }
@media (min-width: 768px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: repeat(3, 1fr); } }

/* Liste karti (satir listesi) */
.list-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.list-row { display: flex; align-items: center; gap: 14px; padding: 15px 18px; border-bottom: 1px solid var(--line); color: var(--ink); transition: background 0.15s; }
.list-row:last-child { border-bottom: 0; }
.list-row:hover { background: var(--surface-2); text-decoration: none; }
.list-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.list-main b { font-weight: 700; }
.list-main .sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-arrow { color: var(--muted-2); flex: none; transition: transform 0.15s, color 0.15s; }
.list-row:hover .list-arrow { color: var(--primary); transform: translateX(2px); }
@media (max-width: 480px) { .list-row { flex-wrap: wrap; } .list-main { flex-basis: 100%; } }

/* ---------- Hero ---------- */
.hero {
  display: grid; gap: 40px; align-items: center; margin-top: 28px;
  padding: 8px 0 0;
}
@media (min-width: 1024px) { .hero { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; margin-top: 44px; } }
.hero h1 { font-size: clamp(2rem, 4.2vw, 3rem); letter-spacing: -0.035em; line-height: 1.08; margin: 0 0 14px; }
.hero .lede { margin: 0 0 26px; max-width: 52ch; }

.combobox { position: relative; max-width: 560px; }
.combobox-label { display: block; font-size: 0.82rem; font-weight: 700; color: var(--ink-2); margin-bottom: 8px; }
.combobox-field {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 12px;
  padding: 6px 6px 6px 14px; box-shadow: var(--shadow-md); transition: border-color 0.15s, box-shadow 0.15s;
}
.combobox-field:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-ring), var(--shadow-md); }
.combobox-field svg { color: var(--muted); flex: none; }
.combobox-field input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 1rem; color: var(--ink); padding: 9px 0; }
.combobox-field input:focus { outline: none; box-shadow: none; }
.combobox-field .btn { flex: none; }
.combobox-list {
  position: absolute; left: 0; right: 0; top: calc(100% - 34px); z-index: 30; list-style: none; margin: 6px 0 0; padding: 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg);
}
.combobox-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; cursor: pointer; font-weight: 600; }
.combobox-list li small { color: var(--muted); font-weight: 500; font-size: 0.8rem; }
.combobox-list li:hover, .combobox-list li.active { background: var(--primary-soft); color: var(--primary); }
.combobox-list li.combobox-empty { color: var(--muted); cursor: default; font-weight: 500; }
.popular { display: flex; gap: 6px 10px; flex-wrap: wrap; align-items: center; margin-top: 12px; font-size: 0.86rem; color: var(--muted); }
.popular a { color: var(--ink-2); font-weight: 600; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.popular a:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }
.popular a small { font-family: var(--mono); font-size: 0.72rem; color: var(--primary); font-weight: 700; margin-left: 3px; }
@media (max-width: 480px) {
  .combobox-field { flex-wrap: wrap; padding: 6px; }
  .combobox-field svg { display: none; }
  .combobox-field input { padding: 9px 8px; flex-basis: 100%; }
  .combobox-field .btn { width: 100%; }
  .combobox-list { top: calc(100% - 34px); }
}

/* Urun onizleme (hero sag) */
.hero-visual { position: relative; display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.mock { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 14px 16px; font-size: 0.82rem; }
.mock-table { grid-column: 1 / -1; }
.mock-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
.mock-title { font-weight: 700; font-size: 0.88rem; }
.mock-sub { color: var(--muted); font-size: 0.75rem; }
.mock-live { display: inline-flex; align-items: center; gap: 6px; font-size: 0.72rem; font-weight: 700; color: var(--ok-fg); background: var(--ok-bg); padding: 3px 9px; border-radius: 999px; }
.mock-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ok-dot); }
/* Turkiye geneli ozet satirlari */
.ov-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 0.84rem; }
.ov-row:last-child { border-bottom: 0; }
.ov-row:hover { text-decoration: none; }
.ov-row:hover .ov-name { color: var(--primary); }
.ov-city { flex: none; font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); background: var(--surface-2); padding: 3px 8px; border-radius: 6px; min-width: 64px; text-align: center; }
.ov-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ov-name { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ov-sub { color: var(--muted); font-size: 0.74rem; }
.ov-meta { flex: none; text-align: right; font-size: 0.76rem; color: var(--muted); }
.ov-meta b { display: block; color: var(--ink); font-family: var(--mono); font-size: 0.8rem; }
.res-row { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.res-row:last-child { border-bottom: 0; }
.res-row:hover { text-decoration: none; }
.res-row span:last-of-type { text-align: right; }
.res-row b { font-family: var(--mono); background: var(--dark); color: #fff; padding: 2px 8px; border-radius: 6px; font-size: 0.75rem; }
.res-tag { grid-column: 1 / -1; font-size: 0.7rem; color: var(--muted); margin-top: -4px; }
.mock-foot { margin-top: 8px; font-size: 0.78rem; }
.mock-live.sample { color: var(--info-fg); background: var(--info-bg); }
.mock-live.sample::before { background: var(--info-dot); }
.sample-tag { font-size: 0.66rem; font-weight: 600; color: var(--muted); background: var(--surface-2); padding: 1px 7px; border-radius: 999px; margin-left: 6px; vertical-align: 1px; }
a.mock-link { display: block; color: inherit; transition: border-color 0.15s, box-shadow 0.15s; }
a.mock-link:hover { text-decoration: none; border-color: var(--primary); }
.mock table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.mock th { font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 600; text-align: left; padding: 6px 4px; border-bottom: 1px solid var(--line); }
.mock td { padding: 7px 4px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.mock tr:last-child td { border-bottom: 0; }
.mock td:first-child, .mock th:first-child { color: var(--muted); font-family: var(--mono); font-size: 0.72rem; }
.mock th:not(:nth-child(2)), .mock td:not(:nth-child(2)) { text-align: right; }
.mock th:first-child, .mock td:first-child { text-align: left; }
.mock tbody tr:first-child td:nth-child(2) { color: var(--primary); font-weight: 700; }
.mock-match { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.mock-match:last-child { border-bottom: 0; }
.mock-match span:last-child { text-align: right; }
.mock-match b { font-family: var(--mono); background: var(--dark); color: #fff; padding: 2px 8px; border-radius: 6px; font-size: 0.75rem; }
.mock-match em { font-style: normal; font-size: 0.7rem; color: var(--muted); background: var(--surface-2); padding: 2px 8px; border-radius: 6px; white-space: nowrap; }
.mock-row { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); align-items: center; }
.mock-row:last-child { border-bottom: 0; }
.mock-row i { font-style: normal; color: var(--muted); font-size: 0.74rem; }
.mock-row b { font-family: var(--mono); }
@media (max-width: 560px) { .hero-visual { grid-template-columns: 1fr; } .mock-scorer { display: none; } }

/* Istatistik seridi */
.stats-strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 44px; }
@media (min-width: 768px) { .stats-strip { grid-template-columns: repeat(4, 1fr); } }
.stats-strip > div { background: var(--surface); padding: 18px 20px; display: flex; flex-direction: column; gap: 2px; }
.stats-strip b { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; }
.stats-strip span { color: var(--muted); font-size: 0.84rem; }

/* Adimlar */
.steps { display: grid; gap: 14px; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.step-num { display: inline-flex; width: 28px; height: 28px; align-items: center; justify-content: center; border-radius: 8px; background: var(--dark); color: #fff; font-weight: 700; font-size: 0.85rem; font-family: var(--mono); margin-bottom: 12px; }
.step h3 { margin: 0 0 6px; }
.step p { margin: 0; color: var(--muted); font-size: 0.92rem; }

/* Ozellikler */
.features { display: grid; gap: 14px; }
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.feature > svg { color: var(--primary); margin-bottom: 10px; }
.feature h3 { margin: 0 0 4px; font-size: 0.98rem; }
.feature p { margin: 0; color: var(--muted); font-size: 0.9rem; }

/* CTA bandi */
.cta-band {
  margin-top: 56px; background: var(--dark); color: #fff; border-radius: var(--radius);
  padding: 34px 36px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin: 0 0 6px; }
.cta-band p { margin: 0; color: #cbd5e1; max-width: 60ch; }
.btn.light { background: #fff; color: var(--dark); }
.btn.light:hover { background: #e2e8f0; color: var(--dark); }

/* Tum iller */
.all-cities { margin-top: 40px; border-top: 1px solid var(--line); padding-top: 18px; }
.all-cities summary { font-weight: 700; color: var(--muted); list-style: none; display: inline-flex; align-items: center; gap: 8px; font-size: 0.9rem; }
.all-cities summary::-webkit-details-marker { display: none; }
.all-cities summary::before { content: "+"; width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line-strong); border-radius: 5px; font-size: 0.85rem; }
.all-cities[open] summary::before { content: "–"; }
.all-cities-grid { columns: 2; column-gap: 24px; margin-top: 14px; font-size: 0.92rem; }
@media (min-width: 640px) { .all-cities-grid { columns: 4; } }
@media (min-width: 1024px) { .all-cities-grid { columns: 6; } }
.all-cities-grid a { display: block; color: var(--ink-2); padding: 4px 0; break-inside: avoid; }
.all-cities-grid a small { color: var(--primary); font-weight: 700; font-family: var(--mono); font-size: 0.72rem; margin-left: 4px; }

/* Bos durum */
.empty-state { text-align: center; padding: 56px 24px; background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--radius); }
.empty-ico { width: 44px; height: 44px; border-radius: 10px; background: var(--surface-2); color: var(--muted); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.empty-state h2 { margin: 0.2em 0 0.3em; }
.empty-state p { margin: 0 auto 8px; }

/* ---------- Butonlar ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  background: var(--primary); color: #fff; border: 1px solid transparent;
  padding: 10px 18px; border-radius: 9px; font-size: 0.92rem; font-weight: 700; font-family: var(--font); line-height: 1.25;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.btn:hover { background: var(--primary-hover); text-decoration: none; }
.btn.secondary { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn.secondary:hover { background: var(--surface-2); border-color: var(--muted-2); }
.btn.ghost { background: transparent; color: var(--primary); border-color: transparent; }
.btn.ghost:hover { background: var(--primary-soft); }
.btn.danger { background: var(--danger); }
.btn.danger:hover { background: #b91c1c; }
.btn.warn { background: var(--warn-fg); }
.btn.warn:hover { background: #92400e; }
.btn.small { padding: 6px 12px; font-size: 0.84rem; border-radius: 7px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
button.linklike { background: none; border: 0; color: var(--primary); padding: 0; font: inherit; }

/* ---------- Formlar ---------- */
form.stack label, .stack label { display: block; margin: 14px 0 6px; font-weight: 600; font-size: 0.88rem; color: var(--ink-2); }
input[type=text], input[type=tel], input[type=password], input[type=number], input[type=date], input[type=datetime-local], input[type=email], input[type=search], select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 9px;
  font-size: 1rem; font-family: var(--font); background: var(--surface); color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-ring); }
input::placeholder, textarea::placeholder { color: var(--muted-2); }
.check { display: flex; gap: 9px; align-items: flex-start; margin: 13px 0; font-size: 0.9rem; }
.check input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--primary); }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.inline-form input, .inline-form select { width: auto; max-width: 100%; min-width: 0; }
@media (max-width: 480px) {
  .inline-form select { flex: 1 1 100%; }
}

/* Mobilde tabloyu kart satirlarina cevir (stack-table + td[data-label]) */
@media (max-width: 640px) {
  .stack-table thead { display: none; }
  .stack-table tbody tr { display: block; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin: 10px 0; background: var(--surface); }
  .stack-table tbody tr:hover { background: var(--surface); }
  .stack-table td { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; white-space: normal; border: 0; padding: 5px 0; text-align: left; }
  .stack-table td::before { content: attr(data-label); color: var(--muted); font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; flex: none; min-width: 74px; padding-top: 3px; }
  .stack-table td.num { text-align: right; }
  .stack-table td.actions-cell { display: block; }
  .stack-table td.actions-cell::before { display: block; margin-bottom: 6px; }
  .stack-table td.actions-cell form { display: inline-flex !important; flex-wrap: wrap; gap: 6px; margin: 4px 6px 4px 0; }
}
.hint { font-size: 0.84rem; color: var(--muted); margin: 4px 0 10px; }
.popform { position: relative; }
.popform > summary { list-style: none; }
.popform > summary::-webkit-details-marker { display: none; }
.popform-body { position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; width: min(320px, 88vw); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow-lg); }
@media (max-width: 480px) { .popform-body { position: static; width: 100%; margin-top: 10px; } }

/* ---------- Bildirimler ---------- */
.flash { padding: 12px 16px; border-radius: 10px; font-size: 0.92rem; font-weight: 600; border: 1px solid transparent; margin: 0 0 14px; display: flex; gap: 10px; align-items: flex-start; }
.flash::before { content: ""; width: 8px; height: 8px; border-radius: 50%; margin-top: 7px; flex: none; }
.flash.success { background: var(--ok-bg); color: var(--ok-fg); border-color: color-mix(in srgb, var(--ok-fg) 20%, transparent); }
.flash.success::before { background: var(--ok-dot); }
.flash.error { background: var(--err-bg); color: var(--err-fg); border-color: color-mix(in srgb, var(--err-fg) 20%, transparent); }
.flash.error::before { background: var(--err-dot); }
.banner { padding: 12px 16px; border-radius: 10px; margin: 12px 0; font-size: 0.92rem; border: 1px solid transparent; }
.banner.archive, .banner.grace { background: var(--warn-bg); color: var(--warn-fg); border-color: color-mix(in srgb, var(--warn-fg) 25%, transparent); }
.note { border-left: 3px solid var(--primary); background: var(--surface); border-radius: 0 10px 10px 0; padding: 12px 18px; margin: 14px 0; }

/* ---------- Rozetler ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 0.74rem; font-weight: 700; white-space: nowrap; vertical-align: 1px; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.8; }
.badge.green { background: var(--ok-bg); color: var(--ok-fg); }
.badge.gray { background: var(--info-bg); color: var(--info-fg); }
.badge.orange { background: var(--warn-bg); color: var(--warn-fg); }
.badge.red { background: var(--err-bg); color: var(--err-fg); }
.badge.mvp { background: #fef3c7; color: #92400e; }
.badge.mvp::before { background: #f59e0b; opacity: 1; }
.mvp-card { border-color: #fcd34d; background: linear-gradient(135deg, var(--surface), #fffbeb); }
@media (prefers-color-scheme: dark) {
  .badge.mvp { background: #3a2c0a; color: #fcd34d; }
  .mvp-card { border-color: #92400e; background: var(--surface); }
}

/* ---------- Tablolar ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; font-size: 0.92rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { color: var(--muted); font-weight: 600; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; background: var(--surface-2); }
tbody tr { transition: background 0.1s; }
tbody tr:hover { background: var(--surface-2); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.standings td:first-child { font-family: var(--mono); font-size: 0.8rem; color: var(--muted); }
.standings tbody tr:first-child td:nth-child(2) { color: var(--primary); font-weight: 700; }

/* ---------- Sekmeler ---------- */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin: 18px 0 20px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tabs a { padding: 10px 16px; white-space: nowrap; color: var(--muted); font-weight: 600; font-size: 0.92rem; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a:hover { color: var(--ink); text-decoration: none; }
.tabs a.active { color: var(--primary); border-bottom-color: var(--primary); }

/* ---------- Mac satirlari ---------- */
.match-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 0.93rem; }
.match-row:last-child { border-bottom: 0; }
.match-row .teams { flex: 1; display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; min-width: 0; }
.match-row .home { text-align: right; }
.match-row .home, .match-row .teams > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.match-row .score { font-family: var(--mono); font-weight: 600; font-size: 0.84rem; background: var(--dark); color: #fff; padding: 3px 10px; border-radius: 7px; font-variant-numeric: tabular-nums; white-space: nowrap; }
a.score:hover { background: var(--primary); text-decoration: none; }
.match-row .score.upcoming { background: var(--surface-2); color: var(--muted); font-weight: 600; font-size: 0.76rem; }
.match-row .meta { color: var(--muted); font-size: 0.78rem; min-width: 88px; line-height: 1.35; }
@media (max-width: 480px) { .match-row { flex-wrap: wrap; } .match-row .meta { width: 100%; min-width: 0; order: 3; } }

/* ---------- Istatistik kartlari ---------- */
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin: 14px 0; }
.stat-cards .sc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; }
.sc .v { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.15; }
.sc .l { color: var(--muted); font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; margin-top: 3px; }

/* ---------- Fiyatlandirma ---------- */
.pricing-hero { text-align: center; max-width: 760px; margin: 36px auto 8px; }
.pricing-hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -0.035em; margin: 0 0 12px; }
.pricing-hero .lede { margin: 0 auto 22px; }
.period-toggle { display: inline-flex; background: var(--surface-2); border-radius: 10px; padding: 4px; gap: 4px; }
.period-toggle button { border: 0; background: transparent; padding: 8px 18px; border-radius: 8px; font: inherit; font-weight: 700; color: var(--muted); display: inline-flex; gap: 8px; align-items: center; }
.period-toggle button.active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.plan-grid { display: grid; gap: 16px; margin-top: 28px; align-items: stretch; }
@media (min-width: 768px) { .plan-grid { grid-template-columns: repeat(3, 1fr); } }
.plan-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; display: flex; flex-direction: column; gap: 10px; }
.plan-card.featured { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-ring), var(--shadow-md); }
.plan-flag { position: absolute; top: -12px; left: 20px; background: var(--primary); color: #fff; font-size: 0.72rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; letter-spacing: 0.03em; }
.plan-card h3 { margin: 0; font-size: 1.15rem; }
.plan-price b { font-size: 2.1rem; font-weight: 800; letter-spacing: -0.03em; }
.plan-price small { color: var(--muted); font-size: 0.9rem; margin-left: 2px; }
.plan-note { color: var(--muted); font-size: 0.84rem; }
.plan-limits { list-style: none; padding: 0; margin: 8px 0 14px; display: grid; gap: 8px; font-size: 0.94rem; }
.plan-limits li { padding-left: 24px; position: relative; }
.plan-limits li::before { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--primary-soft); border: 2px solid var(--primary); box-sizing: border-box; }
.plan-card .btn { margin-top: auto; }
.apply-layout { display: grid; gap: 18px; align-items: start; margin-top: 8px; }
@media (min-width: 900px) { .apply-layout { grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); } }
.apply-form { margin: 0; }
.apply-side { position: sticky; top: 78px; }
.plan-summary { background: var(--surface); border: 1px solid var(--primary); border-radius: var(--radius); padding: 20px 22px; box-shadow: 0 0 0 3px var(--primary-ring); }
.plan-summary h3 { margin: 0 0 6px; font-size: 1.15rem; }
.plan-summary .plan-limits { margin-bottom: 0; }
@media (max-width: 899px) { .apply-side { position: static; } }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; margin: 8px 0; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq p { margin: 8px 0 0; color: var(--muted); }

/* ---------- Kota / kullanim ---------- */
.quota-box { background: var(--surface-2); border-radius: 10px; padding: 14px 16px; }
.quota-title { font-weight: 700; font-size: 0.92rem; margin-bottom: 6px; }
.quota { margin: 4px 0 2px; }
.quota-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-variant-numeric: tabular-nums; }
.quota-head b { font-size: 1.05rem; }
.quota-bar { height: 8px; background: var(--line); border-radius: 999px; overflow: hidden; margin-top: 6px; }
.quota-bar span { display: block; height: 100%; background: var(--primary); border-radius: 999px; transition: width 0.3s; }
.quota-bar span.warn { background: var(--warn-dot); }
.quota-bar span.full { background: var(--err-dot); }
.quota-box .hint { margin: 8px 0 0; }

/* ---------- Ozel parcalar ---------- */
.link-code { font-family: var(--mono); background: var(--surface-2); padding: 8px 12px; border-radius: 8px; word-break: break-all; font-size: 0.82rem; border: 1px solid var(--line); }
.qr-box { text-align: center; padding: 14px; }
.qr-box img { border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 8px; }
.event-list { list-style: none; padding: 0; margin: 0; }
.event-list li { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
.event-list li:last-child { border-bottom: 0; }
.ev-ico { display: inline-block; width: 26px; }
.actions { display: flex; gap: 9px; flex-wrap: wrap; margin: 12px 0; align-items: center; }
.player-check { display: flex; align-items: center; gap: 11px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; margin: 7px 0; background: var(--surface); transition: border-color 0.12s, background 0.12s; font-size: 0.94rem; }
.player-check:hover { border-color: var(--line-strong); }
.player-check:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.player-check input { width: 17px; height: 17px; accent-color: var(--primary); flex: none; }
.player-check.susp { opacity: 0.55; background: var(--err-bg); border-color: transparent; }
.season-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; align-items: center; }
.chip { display: inline-block; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink); padding: 4px 12px; border-radius: 999px; font-size: 0.84rem; font-weight: 600; }
.feature-ico { width: 42px; height: 42px; border-radius: 11px; display: flex; align-items: center; justify-content: center; background: var(--primary-soft); color: var(--primary); margin-bottom: 12px; }
.league-card { display: flex; align-items: flex-start; gap: 14px; }
.league-mono { flex: none; width: 42px; height: 42px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: var(--dark); color: #fff; font-weight: 700; }
.city-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.city-grid a { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; display: flex; justify-content: space-between; font-size: 0.92rem; color: var(--ink); }

/* ---------- Alt bilgi ---------- */
.footer { border-top: 1px solid var(--line); margin-top: 64px; background: var(--surface); }
.footer-inner { max-width: 1180px; margin: 0 auto; padding: 40px 24px 24px; display: grid; gap: 28px; grid-template-columns: 1fr 1fr; }
@media (min-width: 768px) { .footer-inner { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-about { grid-column: 1 / -1; }
@media (min-width: 768px) { .footer-about { grid-column: auto; } }
.footer-col { display: flex; flex-direction: column; gap: 8px; font-size: 0.9rem; }
.footer-col h4 { margin: 0 0 4px; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.footer-col a { color: var(--ink-2); }
.footer-col a:hover { color: var(--primary); }
.footer-col p { margin: 0; color: var(--muted); font-size: 0.9rem; }
.footer-brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--ink); font-size: 1.05rem; margin-bottom: 6px; }
.footer-brand .brand-mark { width: 26px; height: 26px; border-radius: 7px; }
.footer-bottom { max-width: 1180px; margin: 0 auto; padding: 16px 24px 28px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 0.82rem; }
