:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --ink: #0a0a0a;
  --ink-2: #404040;
  --muted: #737373;
  --line: #e5e5e5;
  --line-2: #f0f0f0;
  --soft: #f5f5f5;
  --ok: #15803d;
  --ok-soft: #f0fdf4;
  --warn: #b91c1c;
  --warn-soft: #fef2f2;
  --sport: #ea580c;
  --radius: 10px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-font-smoothing: antialiased; }
body {
  margin: 0;
  font-family: 'Inter Variable', Inter, system-ui, -apple-system, sans-serif;
  font-size: 15px;
  background: var(--bg);
  color: var(--ink);
  font-feature-settings: "tnum" 1, "cv11" 1;
}
button, input, select { font: inherit; color: inherit; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* Üst bar */
.topbar { background: var(--surface); border-bottom: 1px solid var(--line); }
.topbar-inner { max-width: 1120px; margin: 0 auto; padding: 0 24px; height: 64px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: baseline; gap: 5px; color: var(--ink); text-decoration: none; font-size: 24px; letter-spacing: -0.02em; line-height: 1; }
.brand-bold { font-weight: 700; }
.brand-light { font-weight: 300; color: var(--sport); }

/* Sayfa başlığı */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding: 40px 0 24px; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
.page-head h1 { margin: 6px 0 8px; font-size: 30px; font-weight: 700; letter-spacing: -0.02em; }
.page-head p { margin: 0; color: var(--muted); max-width: 560px; line-height: 1.5; }
.data-info { display: flex; gap: 28px; margin: 0; }
.data-info div { text-align: right; }
.data-info dt { font-size: 12px; color: var(--muted); }
.data-info dd { margin: 2px 0 0; font-weight: 600; font-size: 15px; }

/* Panel */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }

.seg { display: inline-flex; background: var(--soft); border: 1px solid var(--line); border-radius: 8px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: transparent; padding: 7px 14px; border-radius: 6px; font-size: 14px; font-weight: 500; color: var(--muted); cursor: pointer; white-space: nowrap; }
.seg button.active { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.seg button:hover:not(.active) { color: var(--ink); }
.tabs { margin-bottom: 16px; }

input[type=text], input[type=number], select, .select-like {
  height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--surface); width: 100%; font-size: 14px; text-align: left;
}
input:focus, select:focus, .select-like:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(0,0,0,.06); }
select, .select-like {
  appearance: none; cursor: pointer; padding-right: 32px;
  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='%23737373' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}

/* Maç arama */
.combo { position: relative; }
.combo-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.combo input { height: 48px; padding-left: 42px; padding-right: 40px; font-size: 15px; }
.combo-clear { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: none; font-size: 22px; line-height: 1; color: var(--muted); cursor: pointer; padding: 4px 8px; }
.combo-list {
  position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px); list-style: none; margin: 0; padding: 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); max-height: 360px; overflow: auto;
  box-shadow: 0 12px 32px rgba(0,0,0,.08);
}
.combo-list li { display: grid; grid-template-columns: 140px 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 6px; cursor: pointer; font-size: 14px; }
.combo-list li.hl { background: var(--soft); }
.combo-list .c-date { color: var(--muted); font-size: 13px; white-space: nowrap; }
.combo-list .c-teams { font-weight: 500; }
.combo-list .c-teams small { color: var(--muted); font-weight: 400; margin-left: 6px; }
.combo-list .c-odds { color: var(--ink-2); font-size: 13px; }
.combo-list .empty { display: block; color: var(--muted); cursor: default; }

.picked { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 12px; padding: 14px 16px; background: var(--soft); border-radius: 8px; }
.picked .meta { font-size: 13px; color: var(--muted); }
.picked .teams { font-weight: 600; font-size: 16px; margin: 2px 0; }
.odds-row { display: flex; gap: 6px; }
.odd { min-width: 54px; padding: 6px 8px; border: 1px solid var(--line); background: var(--surface); border-radius: 6px; text-align: center; }
.odd small { display: block; font-size: 11px; color: var(--muted); }
.odd b { font-weight: 600; font-size: 14px; }

.odds-inputs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.odds-inputs label span { display: block; font-size: 12px; font-weight: 500; color: var(--muted); margin-bottom: 6px; }
.hint { color: var(--muted); font-size: 13px; margin: 10px 0 0; }

/* Ayarlar */
.settings { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: end; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line-2); }
.setting { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.setting-label { font-size: 12px; font-weight: 500; color: var(--muted); }
.setting .seg { height: 42px; align-items: stretch; display: flex; }
.setting .seg button { flex: 1; }

.league-filter { position: relative; }
.league-panel {
  position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; width: 380px; max-width: calc(100vw - 48px);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; box-shadow: 0 12px 32px rgba(0,0,0,.08);
}
.league-actions { display: flex; gap: 4px; padding: 0 4px 8px; border-bottom: 1px solid var(--line-2); margin-bottom: 4px; }
.league-actions button { border: 0; background: none; font-size: 13px; color: var(--ink-2); cursor: pointer; padding: 4px 6px; border-radius: 4px; }
.league-actions button:hover { background: var(--soft); }
.league-list { display: grid; grid-template-columns: 1fr 1fr; }
.league-list label { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 6px; cursor: pointer; font-size: 14px; }
.league-list label:hover { background: var(--soft); }
.league-list input { width: 15px; height: 15px; margin: 0; accent-color: var(--ink); flex: none; }
.league-list .l-name { line-height: 1.2; }
.league-list small { display: block; color: var(--muted); font-size: 12px; }

.btn { height: 42px; padding: 0 24px; background: var(--ink); color: #fff; border: 0; border-radius: 8px; font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap; }
.btn:hover { background: #262626; }
.btn:disabled { opacity: .6; cursor: wait; }
.error { color: var(--warn); font-size: 14px; margin: 12px 0 0; }

/* Rapor */
.report { margin: 24px 0 48px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.r-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.r-title { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.r-title h2 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.r-title .vs { color: var(--muted); font-weight: 400; margin: 0 6px; }
.r-meta { color: var(--muted); font-size: 13px; margin-top: 4px; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font-size: 12px; font-weight: 500; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-2); background: var(--surface); }
.tag.dark { background: var(--ink); color: #fff; border-color: var(--ink); }

.r-body { padding: 24px; }
.verdicts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.verdicts.single { grid-template-columns: 1fr; }
.verdict { padding: 14px 16px; border-radius: 8px; border: 1px solid; }
.verdict .v-label { font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; }
.verdict .v-text { margin-top: 4px; font-weight: 600; font-size: 16px; }
.verdict.ok { background: var(--ok-soft); border-color: #bbf7d0; color: var(--ok); }
.verdict.warn { background: var(--warn-soft); border-color: #fecaca; color: var(--warn); }
.verdict.neutral { background: var(--soft); border-color: var(--line); color: var(--ink-2); }

.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 16px; }
.stat { border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; }
.stat .k { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .5px; }
.stat .v { font-size: 30px; font-weight: 700; margin: 6px 0 10px; letter-spacing: -0.02em; }
.bar { height: 4px; background: var(--line-2); border-radius: 2px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--ink); }
.stat .n { font-size: 12px; color: var(--muted); margin-top: 8px; }

.summary { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 12px; margin-top: 12px; }
.box { border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; }
.box .k { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .5px; margin-bottom: 10px; }
.split { display: flex; height: 28px; border-radius: 6px; overflow: hidden; font-size: 12px; font-weight: 600; }
.split span { display: grid; place-items: center; min-width: 0; overflow: hidden; white-space: nowrap; }
.split .s1 { background: var(--ink); color: #fff; }
.split .sx { background: #a3a3a3; color: #fff; }
.split .s2 { background: #e5e5e5; color: var(--ink); }
.legend { display: flex; gap: 14px; margin-top: 8px; font-size: 12px; color: var(--muted); }
.legend b { color: var(--ink); }
.htft { display: flex; gap: 6px; flex-wrap: wrap; }
.htft span { font-size: 13px; padding: 4px 8px; background: var(--soft); border-radius: 5px; }
.htft b { margin-left: 4px; }
.big { font-size: 24px; font-weight: 700; }
.big small { font-size: 13px; color: var(--muted); font-weight: 400; margin-left: 4px; }

.r-section { display: flex; justify-content: space-between; align-items: baseline; margin: 28px 0 10px; }
.r-section h3 { margin: 0; font-size: 16px; font-weight: 600; }
.r-section span { font-size: 12px; color: var(--muted); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { font-size: 11px; font-weight: 600; letter-spacing: .8px; color: var(--muted); text-transform: uppercase; padding: 10px 12px; text-align: right; background: var(--soft); border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 11px 12px; text-align: right; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
th.l, td.l { text-align: left; }
th.c, td.c { text-align: center; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fcfcfc; }
td.date, td.league { color: var(--muted); }
td.ms { font-weight: 700; }
td.odds-cell { color: var(--ink-2); }
td.odds-cell.sep { border-left: 1px solid var(--line-2); }
.badge { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 6px; border-radius: 4px; margin-left: 6px; vertical-align: 1px; }
.badge.cb { background: var(--ink); color: #fff; }
.badge.hi { border: 1px solid var(--ink); color: var(--ink); }
.pill { display: inline-block; min-width: 36px; font-size: 12px; font-weight: 600; padding: 2px 6px; border-radius: 4px; background: var(--soft); }
.pill.chg { background: var(--warn-soft); color: var(--warn); }
.foot-note { font-size: 12px; color: var(--muted); margin-top: 10px; display: flex; gap: 16px; flex-wrap: wrap; }

.footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; padding: 20px 0 32px; }

@media (max-width: 900px) {
  .settings { grid-template-columns: 1fr 1fr; }
  .settings .btn { grid-column: 1 / -1; }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .summary { grid-template-columns: 1fr; }
  .page-head { flex-direction: column; align-items: flex-start; }
  .data-info div { text-align: left; }
}
@media (max-width: 600px) {
  .container, .topbar-inner { padding: 0 16px; }
  .page-head h1 { font-size: 24px; }
  .settings { grid-template-columns: 1fr; }
  .odds-inputs { grid-template-columns: repeat(3, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .verdicts { grid-template-columns: 1fr; }
  .combo-list li { grid-template-columns: 1fr; gap: 2px; }
  .r-body, .r-head { padding: 16px; }
  .league-list { grid-template-columns: 1fr; }
}

/* Üst bar menüsü */
.nav { display: flex; align-items: center; gap: 28px; }
.nav form { margin: 0; }
.nav-link { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; padding: 21px 0; border: 0; border-bottom: 2px solid transparent; background: none; cursor: pointer; }
.nav-link:hover { color: var(--ink); }
.nav-link.active { color: var(--ink); border-bottom-color: var(--ink); }
.btn-sm { height: 36px; padding: 0 16px; display: inline-grid; place-items: center; text-decoration: none; font-size: 14px; }
.btn-ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--soft); }
a.btn { display: inline-grid; place-items: center; text-decoration: none; }

/* Tanıtım sayfası */
.hero { text-align: center; padding: 88px 0 64px; }
.hero .eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); letter-spacing: .5px; text-transform: none; font-weight: 500; color: var(--ink-2); }
.hero .eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--sport); }
.hero h1 { font-size: clamp(34px, 6vw, 60px); line-height: 1.05; letter-spacing: -0.035em; margin: 24px auto 20px; max-width: 820px; font-weight: 700; }
.hero h1 span { color: var(--sport); }
.hero p { color: var(--muted); font-size: 18px; line-height: 1.55; max-width: 620px; margin: 0 auto; }
.hero-actions { display: flex; gap: 10px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
.hero-actions .btn { height: 48px; padding: 0 28px; font-size: 15px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-bottom: 80px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.feature .num { font-size: 13px; font-weight: 600; color: var(--sport); }
.feature h3 { margin: 10px 0 8px; font-size: 17px; }
.feature p { margin: 0; color: var(--muted); line-height: 1.55; font-size: 14px; }

/* Giriş / kayıt */
.auth { min-height: calc(100vh - 64px - 70px); display: grid; place-items: center; align-content: center; gap: 16px; padding: 48px 16px; }
.auth-card { width: 100%; max-width: 400px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.auth-card h1 { margin: 0 0 6px; font-size: 24px; letter-spacing: -0.02em; }
.auth-card h1 + .form-field, .auth-card h1 + .status { margin-top: 20px; }
.auth-card .lead { margin: 0 0 24px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.form-field span { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.form-field input { height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 15px; background: var(--surface); }
.form-field input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(0,0,0,.06); }
.form-field.invalid input { border-color: var(--warn); }
.field-error { color: var(--warn); font-size: 13px; }
.check { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); margin: 4px 0 18px; cursor: pointer; }
.check input { accent-color: var(--ink); width: 15px; height: 15px; margin: 0; }
.auth-card .btn { width: 100%; height: 46px; }
.auth-alt { text-align: center; font-size: 14px; color: var(--muted); margin: 20px 0 0; }
.auth-alt a { color: var(--ink); font-weight: 600; }

.status { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 8px; border: 1px solid var(--line); background: var(--soft); margin-bottom: 20px; font-size: 14px; line-height: 1.5; }
.status b { display: block; margin-bottom: 2px; }
.status.warn { background: var(--warn-soft); border-color: #fecaca; color: var(--warn); }
.status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sport); margin-top: 7px; flex: none; }
.status.warn .dot { background: var(--warn); }
.kv { display: grid; grid-template-columns: 120px 1fr; gap: 8px 12px; font-size: 14px; margin: 0 0 24px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 500; }

@media (max-width: 800px) {
  .features { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 40px; }
  .nav { gap: 16px; }
}

/* Şifre göster/gizle */
.pw-wrap { position: relative; display: block; }
.pw-wrap input { width: 100%; padding-right: 44px; }
.pw-toggle { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; display: grid; place-items: center; border: 0; background: none; color: var(--muted); cursor: pointer; border-radius: 6px; }
.pw-toggle:hover { color: var(--ink); background: var(--soft); }
.pw-toggle:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }

/* Son analizlerim */
.history { margin-top: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; }
.history-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.history-head h3 { margin: 0; font-size: 15px; font-weight: 600; }
.history-head span { font-size: 12px; color: var(--muted); }
.history-list { list-style: none; margin: 0; padding: 0; }
.history-list li button { width: 100%; display: grid; grid-template-columns: 110px 1fr auto; gap: 12px; align-items: center; text-align: left; padding: 9px 10px; border: 0; background: none; border-radius: 6px; cursor: pointer; font-size: 14px; }
.history-list li button:hover { background: var(--soft); }
.history-list .h-date { color: var(--muted); font-size: 13px; white-space: nowrap; }
.history-list .h-title { font-weight: 500; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.history-list .h-title small { color: var(--muted); font-weight: 400; margin-left: 6px; }
.history-list .h-meta { color: var(--muted); font-size: 13px; white-space: nowrap; }

/* Lig dağılımı ve oran hareketi */
.league-bars { display: grid; gap: 6px; }
.league-bars > div { display: grid; grid-template-columns: minmax(0, 1fr) 90px 28px; gap: 10px; align-items: center; font-size: 13px; }
.league-bars span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.league-bars .bar { height: 6px; }
.league-bars b { text-align: right; }
.movement { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.movement .odd { min-width: 0; padding: 5px 9px; text-align: left; }
.movement .odd span { font-size: 13px; color: var(--muted); }
.movement .up { color: var(--ok); }
.movement .down { color: var(--warn); }

@media (max-width: 900px) {
  .settings { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .settings { grid-template-columns: 1fr; }
  .history-list li button { grid-template-columns: 1fr; gap: 2px; }
}
.summary .wide { grid-column: 1 / -1; }
.summary .wide .league-bars { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
@media (max-width: 600px) { .summary .wide .league-bars { grid-template-columns: 1fr; } }

/* Gizlilik metni */
.legal { max-width: 760px; padding-top: 40px; padding-bottom: 64px; line-height: 1.65; color: var(--ink-2); }
.legal h1 { color: var(--ink); font-size: 28px; letter-spacing: -0.02em; margin: 6px 0 4px; line-height: 1.25; }
.legal-updated { color: var(--muted); font-size: 13px; margin: 0 0 24px; }
.legal h2 { color: var(--ink); font-size: 17px; margin: 28px 0 8px; }
.legal ul { padding-left: 20px; margin: 0; }
.legal li { margin-bottom: 6px; }
.legal a, .footer a, .form-note a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.form-note { font-size: 13px; color: var(--muted); line-height: 1.5; margin: 4px 0 16px; }
