/* ==================================================================== */
/* KUPONMATİK — ARAYÜZ SİSTEMİ                                          */
/* Tek dosya, katmanlı tasarım sistemi. Her bileşen burada tanımlı.     */
/* ==================================================================== */

/* ------------------------------------------------------------------ */
/* 1. tokenlar                                                         */
/* ------------------------------------------------------------------ */

:root {
  /* yüzeyler */
  --bg: #05070b;
  --bg-soft: #080b12;
  --bg-deep: #030408;
  --panel: rgba(17, 22, 33, 0.72);
  --panel-solid: #101521;
  --panel-hi: rgba(26, 33, 48, 0.82);
  --panel-low: rgba(11, 15, 24, 0.68);

  /* çizgiler */
  --line: rgba(255, 255, 255, 0.065);
  --line-soft: rgba(255, 255, 255, 0.035);
  --line-strong: rgba(255, 255, 255, 0.14);
  --line-hot: rgba(163, 255, 46, 0.28);

  /* metin */
  --txt: #eef3f9;
  --txt-soft: #c2ccda;
  --muted: #8695a8;
  --muted-2: #556577;
  --muted-3: #3b4757;

  /* vurgu */
  --accent: #a3ff2e;
  --accent-2: #00f5c4;
  --accent-3: #7b61ff;
  --accent-dim: rgba(163, 255, 46, 0.13);
  --accent-glow: rgba(163, 255, 46, 0.42);

  /* durum */
  --danger: #ff4d6d;
  --danger-dim: rgba(255, 77, 109, 0.13);
  --warn: #ffb703;
  --warn-dim: rgba(255, 183, 3, 0.12);
  --ok: #38ef7d;
  --ok-dim: rgba(56, 239, 125, 0.12);
  --info: #4cc9f0;
  --info-dim: rgba(76, 201, 240, 0.12);

  /* ölçü */
  --radius: 20px;
  --radius-md: 15px;
  --radius-sm: 11px;
  --radius-xs: 8px;

  /* gölge */
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.62);
  --shadow-sm: 0 12px 32px rgba(0, 0, 0, 0.38);
  --shadow-glow: 0 0 0 1px rgba(163, 255, 46, 0.2), 0 12px 40px rgba(163, 255, 46, 0.12);

  /* tipografi */
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Manrope", "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", "SF Mono", ui-monospace, "Cascadia Code", Consolas, monospace;

  /* hareket */
  --ease: cubic-bezier(0.32, 0.72, 0.32, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --fast: 0.16s;
  --mid: 0.28s;
}

/* ------------------------------------------------------------------ */
/* 2. temel                                                            */
/* ------------------------------------------------------------------ */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg-deep);
  color: var(--txt);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* sayısal veriler hizalı dursun */
.odds-pill, .cc-stat b, .cc-leg-odds, .cc-leg-prob, .ari-odds,
.ari-chance-num, .ring span, .as-box b, .cmp-item .ring span,
.cons-row .ring span, .st-odds-txt, .st-stat-box b, .tm-pill b,
.sum-row b, .basket-leg .bl-prob, .basket-leg .bl-odds,
.verify-progress b, .badge, .st-barcode {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1, "ss01" 1;
}

::selection { background: rgba(163, 255, 46, 0.3); color: #fff; }

::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.09);
  border-radius: 99px;
  border: 2px solid transparent;
  background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover { background: rgba(163, 255, 46, 0.32); background-clip: content-box; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { margin: 0; font-family: var(--display); letter-spacing: -0.02em; }

input, select, textarea, button { font-family: inherit; }

/* erişilebilir odak halkası */
:focus-visible {
  outline: 2px solid rgba(163, 255, 46, 0.65);
  outline-offset: 2px;
}

/* ------------------------------------------------------------------ */
/* 3. arka plan atmosferi                                              */
/* ------------------------------------------------------------------ */

.bg-fx {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 620px at 8% -12%, rgba(163, 255, 46, 0.10), transparent 62%),
    radial-gradient(760px 560px at 98% 4%, rgba(0, 245, 196, 0.075), transparent 60%),
    radial-gradient(1000px 700px at 62% 108%, rgba(123, 97, 255, 0.09), transparent 64%),
    radial-gradient(600px 400px at 40% 45%, rgba(0, 0, 0, 0.5), transparent 70%),
    linear-gradient(180deg, #05070b 0%, #04060a 55%, #030408 100%);
}
.bg-fx::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 10%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 10%, transparent 78%);
}

/* ------------------------------------------------------------------ */
/* 4. iskelet                                                          */
/* ------------------------------------------------------------------ */

.app {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 264px;
  flex: 0 0 264px;
  display: flex;
  flex-direction: column;
  padding: 24px 16px 18px;
  border-right: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(13, 17, 26, 0.92), rgba(7, 10, 16, 0.88));
  backdrop-filter: blur(28px) saturate(1.2);
  -webkit-backdrop-filter: blur(28px) saturate(1.2);
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 40;
}
.sidebar::after {
  content: "";
  position: absolute;
  top: 0; right: -1px; bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(163, 255, 46, 0.16) 35%, rgba(0, 245, 196, 0.12) 65%, transparent);
}

.main {
  flex: 1;
  min-width: 0;
  padding: 0 36px 80px;
}

/* ------------------------------------------------------------------ */
/* 5. marka                                                           */
/* ------------------------------------------------------------------ */

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 2px 6px 24px;
  position: relative;
}
.brand-mark {
  position: relative;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 900;
  font-size: 16.5px;
  letter-spacing: -0.04em;
  color: #05080a;
  background: linear-gradient(140deg, var(--accent) 0%, var(--accent-2) 62%, #3ad8ff 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.14) inset,
    0 10px 30px rgba(163, 255, 46, 0.24),
    0 0 42px rgba(0, 245, 196, 0.16);
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 18px;
  background: linear-gradient(140deg, var(--accent), var(--accent-2));
  opacity: 0.22;
  filter: blur(11px);
  z-index: -1;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-text strong {
  font-family: var(--display);
  font-weight: 800;
  font-size: 16.5px;
  letter-spacing: -0.025em;
  white-space: nowrap;
}
.brand-text strong span {
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand-text small {
  color: var(--muted-2);
  font-size: 9.5px;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  margin-top: 4px;
  font-weight: 700;
  white-space: nowrap;
}

/* ------------------------------------------------------------------ */
/* 6. menü                                                            */
/* ------------------------------------------------------------------ */

.nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 2px;
  scrollbar-width: thin;
}
.nav::-webkit-scrollbar { width: 0; }

.nav-group { display: flex; flex-direction: column; gap: 3px; }

.nav-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--muted-3);
  padding: 0 12px 7px;
  white-space: nowrap;
}
.nav-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--line-soft), transparent);
}

.nav-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 550;
  letter-spacing: -0.01em;
  text-align: left;
  cursor: pointer;
  white-space: nowrap;
  transition: color var(--fast) var(--ease), background var(--fast) var(--ease),
              border-color var(--fast) var(--ease), transform var(--fast) var(--ease);
}
.nav-btn svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.9;
  transition: opacity var(--fast) var(--ease), transform var(--fast) var(--ease);
}
.nav-btn:hover {
  color: var(--txt-soft);
  background: rgba(255, 255, 255, 0.038);
  border-color: var(--line);
}
.nav-btn:hover svg { opacity: 1; }

.nav-btn.active {
  color: var(--accent);
  background: linear-gradient(96deg, rgba(163, 255, 46, 0.15), rgba(163, 255, 46, 0.028) 72%, transparent);
  border-color: rgba(163, 255, 46, 0.24);
  box-shadow:
    0 0 0 1px rgba(163, 255, 46, 0.05) inset,
    0 8px 24px rgba(163, 255, 46, 0.08);
  font-weight: 700;
}
.nav-btn.active svg { opacity: 1; }
.nav-btn.active::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 18px;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 14px var(--accent-glow);
}

/* yönetim grubu */
#navAdminGroup { margin-top: 2px; }
#navAdminGroup .nav-label { color: rgba(163, 255, 46, 0.6); }
#navAdminGroup .nav-label::after { background: linear-gradient(90deg, rgba(163, 255, 46, 0.24), transparent); }
#navAdminGroup .nav-btn { border-color: rgba(163, 255, 46, 0.12); }
#navAdminGroup .nav-btn:hover { border-color: rgba(163, 255, 46, 0.3); background: rgba(163, 255, 46, 0.055); }

/* ------------------------------------------------------------------ */
/* 7. yan alt blok                                                    */
/* ------------------------------------------------------------------ */

.side-foot {
  margin-top: auto;
  padding: 16px 6px 0;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.side-block { padding: 16px 0; border-bottom: 1px solid var(--line); }
.side-block:last-child { border-bottom: 0; }
.side-block-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 11px;
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--muted-2);
}

.health, .status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  color: var(--muted);
}
.status i, .health b {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex: 0 0 7px;
  background: var(--muted-2);
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
}
.status.ok i { background: var(--ok); box-shadow: 0 0 10px rgba(56, 239, 125, 0.7); animation: pulseDot 2.4s ease-in-out infinite; }
.status.err i { background: var(--danger); box-shadow: 0 0 10px rgba(255, 77, 109, 0.7); }
.status i { animation: pulseDot 2.6s ease-in-out infinite; }

/* ayarlar sayfasındaki çok satırlı sağlık bloğu */
#healthBox {
  display: block;
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 1.95;
  color: var(--muted-2);
  white-space: pre-wrap;
  letter-spacing: 0;
}
#healthBox b {
  display: inline;
  width: auto;
  height: auto;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: var(--txt-soft);
  font-family: inherit;
  font-size: inherit;
  font-weight: 650;
}

.source-dots { display: flex; gap: 6px; flex-wrap: wrap; }
.source-dot { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; color: var(--muted-2); }
.source-dot i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--muted-3); display: inline-block;
  transition: background var(--mid) var(--ease), box-shadow var(--mid) var(--ease);
}
.source-dot.ok i { background: var(--ok); box-shadow: 0 0 8px rgba(56, 239, 125, 0.6); }
.source-dot.err i { background: var(--danger); }

.side-models { display: flex; flex-direction: column; gap: 5px; }
.side-model {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: var(--muted);
  padding: 5px 7px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.022);
  border: 1px solid var(--line-soft);
}
.side-model i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); flex: 0 0 6px;
  box-shadow: 0 0 8px rgba(163, 255, 46, 0.6);
}
.side-model span {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.side-model button {
  border: 0; background: none; padding: 0;
  color: var(--muted-3); font-size: 15px; line-height: 1;
  cursor: pointer; transition: color var(--fast) var(--ease);
}
.side-model button:hover { color: var(--danger); }

.mini-link {
  padding: 0; border: 0; background: none;
  color: var(--muted-2);
  font-size: 10.5px;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
  align-self: flex-start;
  transition: color var(--fast) var(--ease);
}
.mini-link:hover { color: var(--accent); text-decoration-color: var(--accent); }

.mini-switch {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  user-select: none;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: normal;
  text-transform: none;
}
.mini-switch input { position: absolute; opacity: 0; pointer-events: none; }
.mini-switch .switch-text {
  font-size: 11.5px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}
.mini-switch .switch-text small { color: var(--muted-3); font-size: 10px; }
.mini-switch .switch-ui {
  position: relative;
  width: 32px; height: 18px;
  flex: 0 0 32px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid var(--line-strong);
  transition: background var(--mid) var(--ease), border-color var(--mid) var(--ease);
}
.mini-switch .switch-ui::after {
  content: "";
  position: absolute;
  top: 2px; left: 2px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--muted);
  transition: transform var(--mid) var(--ease), background var(--mid) var(--ease);
}
.mini-switch input:checked + .switch-ui { background: rgba(163, 255, 46, 0.22); border-color: rgba(163, 255, 46, 0.45); }
.mini-switch input:checked + .switch-ui::after { transform: translateX(14px); background: var(--accent); box-shadow: 0 0 10px rgba(163, 255, 46, 0.7); }

/* ------------------------------------------------------------------ */
/* 8. üst bar                                                         */
/* ------------------------------------------------------------------ */

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  padding: 30px 0 26px;
  position: relative;
}
.topbar::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--line), var(--line-soft) 48%, transparent);
}

.title-wrap { min-width: 0; }
.title-wrap h1 {
  margin: 0;
  font-family: var(--display);
  font-size: 29px;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.12;
  background: linear-gradient(120deg, #ffffff 12%, #cfdae8 62%, #93a3b6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.title-wrap p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13.5px;
  max-width: 68ch;
  line-height: 1.5;
}

.page-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 3px 10px 3px 8px;
  border-radius: 99px;
  background: linear-gradient(96deg, rgba(163, 255, 46, 0.13), rgba(0, 245, 196, 0.05));
  border: 1px solid rgba(163, 255, 46, 0.22);
  margin-bottom: 11px;
  box-shadow: 0 0 24px rgba(163, 255, 46, 0.08);
}
.page-eyebrow::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 9px var(--accent-glow);
  animation: pulseDot 2.6s ease-in-out infinite;
}

.top-actions { display: flex; gap: 10px; align-items: center; flex: 0 0 auto; }

/* sepet tetikleyicisi — sayacı sağda taşır */
.basket-btn {
  gap: 9px;
  padding-right: 9px;
  border-color: rgba(163, 255, 46, 0.26);
  background: linear-gradient(120deg, rgba(163, 255, 46, 0.11), rgba(255, 255, 255, 0.03));
}
.basket-btn:hover {
  border-color: rgba(163, 255, 46, 0.48);
  background: linear-gradient(120deg, rgba(163, 255, 46, 0.19), rgba(255, 255, 255, 0.055));
  box-shadow: 0 10px 30px rgba(163, 255, 46, 0.14);
}
.basket-btn svg { width: 17px; height: 17px; stroke: currentColor; }
.basket-btn .badge {
  min-width: 20px;
  height: 20px;
  font-size: 10.5px;
  padding: 0 6px;
  margin-left: 1px;
}

.badge {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 99px;
  background: linear-gradient(140deg, var(--accent), var(--accent-2));
  color: #05100a;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: -0.02em;
  box-shadow: 0 4px 14px rgba(163, 255, 46, 0.28);
}

/* ------------------------------------------------------------------ */
/* 9. sekme geçişi                                                    */
/* ------------------------------------------------------------------ */

.tab { display: none; }
.tab.active { display: block; animation: fadeUp 0.38s var(--ease-out) both; }

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 344px;
  gap: 22px;
  align-items: start;
}
.col-main { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.col-side { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 22px; }

/* ------------------------------------------------------------------ */
/* 10. kart                                                           */
/* ------------------------------------------------------------------ */

.card {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.022), transparent 42%),
    var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm), 0 0 0 1px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(22px) saturate(1.1);
  -webkit-backdrop-filter: blur(22px) saturate(1.1);
  transition: border-color var(--mid) var(--ease), box-shadow var(--mid) var(--ease);
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 16px; right: 16px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14), transparent);
  pointer-events: none;
}
.card:hover {
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.46), 0 0 0 1px rgba(0, 0, 0, 0.28);
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.card-head > div { min-width: 0; }
.card-head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 750;
  letter-spacing: -0.015em;
  display: flex;
  align-items: center;
  gap: 9px;
}
.card-head h3, .card h3 {
  font-family: var(--display);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.sticky { position: sticky; top: 22px; }

.hint { color: var(--muted-2); font-size: 11.5px; line-height: 1.5; }
.hint-line { color: var(--muted); font-size: 12.5px; margin: -6px 0 16px; line-height: 1.55; }
.tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.muted { color: var(--muted); }
.fine { color: var(--muted-2); font-size: 11px; line-height: 1.55; margin: 12px 0 0; }

.save-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.save-bar p { margin: 0; color: var(--muted); font-size: 12px; }

.errbox {
  background: var(--danger-dim);
  border: 1px solid rgba(255, 77, 109, 0.34);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  color: #ffb3c0;
  font-size: 12.5px;
  line-height: 1.5;
}
.warnbox {
  background: var(--warn-dim);
  border: 1px solid rgba(255, 183, 3, 0.3);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 12.5px;
  color: #ffd98a;
}
.warnbox ul { margin: 6px 0 0; padding-left: 18px; }
.warnbox li { margin: 4px 0; line-height: 1.5; }

.banner-lock {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 12.5px;
  line-height: 1.55;
}
.banner-lock[hidden] { display: none !important; }

.audit-results-card[hidden] { display: none !important; }
.coupon-agreement-wrap { font-size: 11.5px; text-transform: none; letter-spacing: normal; }

/* ------------------------------------------------------------------ */
/* 11. butonlar                                                       */
/* ------------------------------------------------------------------ */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.045);
  color: var(--txt);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: -0.005em;
  cursor: pointer;
  white-space: nowrap;
  transition: transform var(--fast) var(--ease), background var(--fast) var(--ease),
              border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease),
              opacity var(--fast) var(--ease);
}
.btn:hover {
  background: rgba(255, 255, 255, 0.075);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}
.btn:active { transform: translateY(0) scale(0.985); }
.btn:disabled { opacity: 0.42; cursor: not-allowed; transform: none; }

.btn.primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  border-color: transparent;
  color: #04120a;
  font-weight: 800;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.16) inset,
    0 10px 26px rgba(163, 255, 46, 0.22);
}
.btn.primary:hover {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.24) inset,
    0 14px 34px rgba(163, 255, 46, 0.34);
  filter: brightness(1.05);
}

.btn.sm { padding: 8px 14px; font-size: 12px; border-radius: 10px; }
.btn.small { padding: 8px 13px; font-size: 11.5px; border-radius: 10px; }
.btn.secondary {
  background: rgba(0, 245, 196, 0.075);
  border-color: rgba(0, 245, 196, 0.26);
  color: #7df5e2;
}
.btn.secondary:hover {
  background: rgba(0, 245, 196, 0.14);
  border-color: rgba(0, 245, 196, 0.44);
  color: #a8fff1;
  box-shadow: 0 10px 26px rgba(0, 245, 196, 0.13);
}
.btn.full { width: 100%; }
label.full { grid-column: 1 / -1; }
.full { width: 100%; }
.btn.big { padding: 14px 26px; font-size: 14.5px; border-radius: 14px; width: 100%; }
.btn.icon { padding: 9px; width: 36px; height: 36px; border-radius: 10px; }
.btn.icon:hover { background: rgba(163, 255, 46, 0.1); border-color: rgba(163, 255, 46, 0.3); color: var(--accent); }
.btn.ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--muted);
}
.btn.ghost:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--line-strong);
  color: var(--txt-soft);
}
.btn svg {
  width: 16px; height: 16px;
  fill: none; stroke: currentColor;
  stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round;
}
.btn-label { display: inline-block; }

.linkbtn {
  border: 0;
  background: none;
  padding: 0;
  color: var(--muted);
  font-family: var(--font);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
  transition: color var(--fast) var(--ease), text-decoration-color var(--fast) var(--ease);
}
.linkbtn:hover { color: var(--accent); text-decoration-color: var(--accent); }
.linkbtn.danger:hover { color: var(--danger); text-decoration-color: var(--danger); }

/* ------------------------------------------------------------------ */
/* 12. form alanları                                                  */
/* ------------------------------------------------------------------ */

.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  color: var(--muted-2);
}

input[type="text"], input[type="number"], input[type="password"],
input[type="search"], input[type="url"], input[type="email"],
select, textarea {
  width: 100%;
  background: rgba(0, 0, 0, 0.34);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 11px 13px;
  color: var(--txt);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: normal;
  text-transform: none;
  outline: none;
  transition: border-color var(--fast) var(--ease), background var(--fast) var(--ease),
              box-shadow var(--fast) var(--ease);
}
input::placeholder, textarea::placeholder { color: var(--muted-3); }
input:focus, select:focus, textarea:focus {
  border-color: rgba(163, 255, 46, 0.42);
  background: rgba(0, 0, 0, 0.48);
  box-shadow: 0 0 0 3px rgba(163, 255, 46, 0.09);
}
input:disabled, select:disabled, textarea:disabled { opacity: 0.5; cursor: not-allowed; }

select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238695a8' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
  background-size: 15px;
  padding-right: 34px;
  cursor: pointer;
}
select option { background: var(--panel-solid); color: var(--txt); }

textarea { resize: vertical; min-height: 84px; line-height: 1.55; }

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 99px;
  background: linear-gradient(90deg, rgba(163, 255, 46, 0.55), rgba(0, 245, 196, 0.35), rgba(255, 255, 255, 0.07));
  outline: none;
  cursor: pointer;
  accent-color: var(--accent);
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 17px; height: 17px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--accent), var(--accent-2));
  border: 2px solid #06110a;
  box-shadow: 0 0 14px rgba(163, 255, 46, 0.6);
  cursor: pointer;
  transition: transform var(--fast) var(--ease);
}
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.14); }
input[type="range"]::-moz-range-thumb {
  width: 15px; height: 15px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid #06110a;
  cursor: pointer;
}

.switch {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: normal;
  text-transform: none;
}
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch-ui {
  position: relative;
  width: 38px; height: 21px;
  flex: 0 0 38px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line-strong);
  transition: background var(--mid) var(--ease), border-color var(--mid) var(--ease);
}
.switch-ui::after {
  content: "";
  position: absolute;
  top: 2px; left: 2px;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: var(--muted);
  transition: transform var(--mid) var(--ease), background var(--mid) var(--ease);
}
.switch input:checked + .switch-ui { background: rgba(163, 255, 46, 0.24); border-color: rgba(163, 255, 46, 0.5); }
.switch input:checked + .switch-ui::after {
  transform: translateX(16px);
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}
.switch-text { font-size: 12px; color: var(--muted); font-weight: 500; text-transform: none; letter-spacing: normal; }
.switch-text small { color: var(--muted-3); font-size: 10.5px; }

/* onay kutuları / radyolar — tarayıcı varsayılanı yerine ölçülü */
input[type="checkbox"], input[type="radio"] {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  margin: 0;
  padding: 0;
  accent-color: var(--accent);
  cursor: pointer;
}
input[type="checkbox"]:focus-visible,
input[type="radio"]:focus-visible { outline: 2px solid rgba(163, 255, 46, 0.65); outline-offset: 2px; }

/* satır biçimli etiketler — alan etiketi tipografisini devralmaz */
.coupon-stake,
.coupon-agreement-wrap,
.audit-model-picker label {
  flex-direction: row;
  align-items: center;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: normal;
  text-transform: none;
  color: var(--muted);
}

/* anahtar-değer satırları */
.key-row { display: flex; gap: 8px; align-items: center; }
.key-row input { flex: 1; min-width: 0; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0; }

.set-row { display: flex; flex-direction: column; gap: 7px; margin-bottom: 15px; }
.set-row:last-child { margin-bottom: 0; }
.set-row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.set-row.two > div { display: flex; flex-direction: column; gap: 7px; }
.set-row label { font-size: 10.5px; }
.set-row label small { color: var(--muted-3); text-transform: none; letter-spacing: normal; font-weight: 500; }
.set-actions { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 6px; }

.settings-grid { display: flex; flex-direction: column; gap: 18px; }

/* aralık kaydırıcı */
.range-row { display: flex; flex-direction: column; gap: 9px; }
.range-top { display: flex; justify-content: space-between; align-items: baseline; }
.range-top b { font-family: var(--display); font-size: 14px; color: var(--accent); font-variant-numeric: tabular-nums; }
.range-scale {
  display: flex;
  justify-content: space-between;
  font-size: 9.5px;
  color: var(--muted-3);
  letter-spacing: 0.05em;
  font-variant-numeric: tabular-nums;
}

/* stil etiketi / pill */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 99px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--line);
  color: var(--muted);
  white-space: nowrap;
}
.pill.ok { background: var(--ok-dim); border-color: rgba(56, 239, 125, 0.32); color: var(--ok); }
.pill.err { background: var(--danger-dim); border-color: rgba(255, 77, 109, 0.32); color: #ff8fa4; }
.pill.run { background: var(--info-dim); border-color: rgba(76, 201, 240, 0.32); color: var(--info); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.alt-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  font-size: 11.5px;
  color: var(--muted);
  cursor: pointer;
  transition: all var(--fast) var(--ease);
}
.alt-chip b { color: var(--txt-soft); font-variant-numeric: tabular-nums; }
.alt-chip:hover { border-color: rgba(163, 255, 46, 0.3); color: var(--accent); background: var(--accent-dim); }

/* ------------------------------------------------------------------ */
/* 13. hareket                                                        */
/* ------------------------------------------------------------------ */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(9px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes popIn {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer {
  0% { background-position: -420px 0; }
  100% { background-position: 420px 0; }
}
@keyframes toastIn {
  from { opacity: 0; transform: translateY(14px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.42; }
}

.spinner {
  width: 15px; height: 15px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.16);
  border-top-color: var(--accent);
  animation: spin 0.7s linear infinite;
  display: inline-block;
}

.skel {
  background: rgba(255, 255, 255, 0.035);
  border-radius: var(--radius-sm);
  padding: 16px;
}
.skel-line {
  height: 11px;
  border-radius: 6px;
  margin-bottom: 9px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0%, rgba(255, 255, 255, 0.085) 50%, rgba(255, 255, 255, 0.035) 100%);
  background-size: 420px 100%;
  animation: shimmer 1.5s linear infinite;
}
.skel-line.short { width: 42%; }
.skel-line.ringline { width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 12px; }

/* ==================================================================== */
/* 14. MAÇ PROGRAMI / FİKSTÜR                                           */
/* ==================================================================== */

.fixture-card { padding-bottom: 18px; }

.fixture-bar {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 14px;
}
.fixture-pick select { width: 100%; }

.live-ticker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--line-soft);
  overflow: hidden;
}
.ticker-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--danger);
  padding: 3px 8px;
  border-radius: 5px;
  background: var(--danger-dim);
  border: 1px solid rgba(255, 77, 109, 0.26);
}
.ticker-badge::before {
  content: "";
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--danger);
  box-shadow: 0 0 8px var(--danger);
  animation: pulseDot 1.6s ease-in-out infinite;
}
.ticker-track {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  scrollbar-width: none;
  flex: 1;
  min-width: 0;
}
.ticker-track::-webkit-scrollbar { height: 0; }

.ticker-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  cursor: pointer;
  transition: all var(--fast) var(--ease);
}
.ticker-chip:hover { border-color: rgba(163, 255, 46, 0.32); color: var(--txt); background: rgba(163, 255, 46, 0.06); }
.ticker-chip.ticker-live { border-color: rgba(255, 77, 109, 0.3); background: rgba(255, 77, 109, 0.07); }
.tc-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--muted-3); flex: 0 0 5px;
}
.ticker-chip.ticker-live .tc-dot {
  background: var(--danger);
  box-shadow: 0 0 8px var(--danger);
  animation: pulseDot 1.5s ease-in-out infinite;
}
.tc-teams { color: var(--txt-soft); font-weight: 600; }
.tc-teams b { color: var(--txt); font-weight: 700; }
.tc-time { font-size: 10px; color: var(--muted-2); font-variant-numeric: tabular-nums; }
.ticker-chip.ticker-live .tc-time { color: #ff8fa4; }

.fixture-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
  padding: 11px 0;
  border-top: 1px solid var(--line-soft);
}
.fixture-meta b { color: var(--txt-soft); font-weight: 650; }
.fixture-meta .live {
  color: var(--danger);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 10px;
}

/* maç seçim listesi */
.coupon-match-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 420px;
  overflow-y: auto;
  padding-right: 4px;
}
.coupon-match-list::-webkit-scrollbar { width: 6px; }
.coupon-match-list::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.1); border-radius: 99px; }

.cm-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.018);
  cursor: pointer;
  font-size: 12.5px;
  font-weight: inherit;
  letter-spacing: normal;
  text-transform: none;
  transition: all var(--fast) var(--ease);
}
.cm-row:hover { border-color: rgba(255, 255, 255, 0.13); background: rgba(255, 255, 255, 0.042); }
.cm-row.on {
  border-color: rgba(163, 255, 46, 0.4);
  background: linear-gradient(96deg, rgba(163, 255, 46, 0.11), rgba(163, 255, 46, 0.02));
  box-shadow: 0 0 0 1px rgba(163, 255, 46, 0.08) inset;
}
.cm-row input { width: auto; flex: 0 0 auto; accent-color: var(--accent); cursor: pointer; }
.cm-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cm-teams { font-size: 12.5px; font-weight: 600; color: var(--txt-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cm-row.on .cm-teams { color: var(--txt); }
.cm-sub { font-size: 10.5px; color: var(--muted-2); display: flex; gap: 8px; }
.cm-time { font-size: 10.5px; color: var(--muted-2); font-variant-numeric: tabular-nums; flex: 0 0 auto; }
.cm-live {
  font-size: 9px; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--danger); padding: 2px 6px; border-radius: 4px;
  background: var(--danger-dim); border: 1px solid rgba(255, 77, 109, 0.26);
  flex: 0 0 auto;
}
.cm-group {
  font-size: 9.5px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted-3);
  padding: 12px 2px 5px;
}
.cm-missing { font-size: 11.5px; color: var(--muted-2); padding: 12px 2px; }

/* ==================================================================== */
/* 15. MARKETLER                                                       */
/* ==================================================================== */

.market-groups { display: flex; flex-direction: column; gap: 9px; }

.mgroup {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.2);
  overflow: hidden;
  transition: border-color var(--fast) var(--ease);
}
.mgroup:hover { border-color: rgba(255, 255, 255, 0.11); }
.mgroup[open] { border-color: rgba(163, 255, 46, 0.16); background: rgba(0, 0, 0, 0.26); }

.mgroup summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 15px;
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 650;
  color: var(--txt-soft);
  list-style: none;
  user-select: none;
  transition: color var(--fast) var(--ease), background var(--fast) var(--ease);
}
.mgroup summary::-webkit-details-marker { display: none; }
.mgroup summary:hover { color: var(--txt); background: rgba(255, 255, 255, 0.026); }
.mgroup summary .gtitle { flex: 1; min-width: 0; }
.mgroup summary::before {
  content: "";
  width: 6px; height: 6px;
  flex: 0 0 6px;
  border-right: 1.8px solid var(--muted-2);
  border-bottom: 1.8px solid var(--muted-2);
  transform: rotate(-45deg);
  transition: transform var(--mid) var(--ease), border-color var(--mid) var(--ease);
  margin-left: 2px;
}
.mgroup[open] summary::before { transform: rotate(45deg); border-color: var(--accent); }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 4px 15px 15px;
}

.chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.028);
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 550;
  cursor: pointer;
  transition: all var(--fast) var(--ease);
  white-space: nowrap;
}
.chip:hover { border-color: rgba(255, 255, 255, 0.2); color: var(--txt-soft); background: rgba(255, 255, 255, 0.055); }
.chip.on {
  color: #05100a;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color: transparent;
  font-weight: 750;
  box-shadow: 0 5px 18px rgba(163, 255, 46, 0.24);
}
.chip.on::before {
  content: "✓";
  font-size: 9.5px;
  font-weight: 900;
  line-height: 1;
  opacity: 0.85;
}

.market { display: flex; flex-direction: column; gap: 8px; }

/* hazır ayarlar */
.preset-row, .quick-preset-bar {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  align-items: center;
}
.quick-preset-bar { margin-top: 12px; padding-top: 13px; border-top: 1px solid var(--line-soft); }
.qpb-label {
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--muted-3);
  margin-right: 2px;
}
.qpb-buttons { display: flex; gap: 6px; flex-wrap: wrap; }

.preset, .btn-preset-pill, .btn-filter-pill {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.028);
  border-radius: 99px;
  padding: 6px 13px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  font-family: var(--font);
  transition: all var(--fast) var(--ease);
  white-space: nowrap;
}
.preset:hover, .btn-preset-pill:hover, .btn-filter-pill:hover {
  color: var(--accent);
  border-color: rgba(163, 255, 46, 0.38);
  background: var(--accent-dim);
}
.btn-filter-pill.active {
  color: #05100a;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color: transparent;
  font-weight: 750;
}

/* ==================================================================== */
/* 16. MODELLER                                                       */
/* ==================================================================== */

.model-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 10px;
}
.model-list.tall { max-height: 420px; overflow-y: auto; padding-right: 4px; }

.model-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 13px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  transition: all var(--fast) var(--ease);
}
.model-row:hover { border-color: rgba(255, 255, 255, 0.14); background: rgba(255, 255, 255, 0.045); }
.model-row.on {
  border-color: rgba(163, 255, 46, 0.4);
  background: linear-gradient(96deg, rgba(163, 255, 46, 0.1), rgba(163, 255, 46, 0.018));
}
.model-row.muted-row { opacity: 0.45; }
.model-row.muted-row:hover { opacity: 0.68; }

.model-check {
  width: 17px; height: 17px;
  flex: 0 0 17px;
  border-radius: 5px;
  border: 1.5px solid var(--line-strong);
  background: rgba(0, 0, 0, 0.3);
  position: relative;
  transition: all var(--fast) var(--ease);
}
.model-row.on .model-check {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color: transparent;
}
.model-row.on .model-check::after {
  content: "";
  position: absolute;
  left: 4.5px; top: 1.5px;
  width: 5px; height: 9px;
  border-right: 2px solid #05100a;
  border-bottom: 2px solid #05100a;
  transform: rotate(42deg);
}

.model-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.model-meta b { font-size: 12.5px; font-weight: 650; color: var(--txt-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.model-meta small { font-size: 10.5px; color: var(--muted-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.model-badge {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 2.5px 7px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  color: var(--muted);
  flex: 0 0 auto;
}
.model-badge.ag { background: rgba(123, 97, 255, 0.14); border-color: rgba(123, 97, 255, 0.34); color: #b3a3ff; }
.model-badge.nv { background: rgba(118, 185, 0, 0.14); border-color: rgba(118, 185, 0, 0.34); color: #a6e34d; }
.model-badge.free { background: var(--ok-dim); border-color: rgba(56, 239, 125, 0.3); color: var(--ok); }

.model-status {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  flex: 0 0 auto;
  color: var(--muted-3);
}
.model-status.ok { color: var(--ok); }
.model-status.bad { color: var(--danger); }

.model-toolbar {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 14px;
}
.model-toolbar input { flex: 1; min-width: 160px; }
.model-toolbar select { flex: 0 0 auto; min-width: 150px; width: auto; }

.model-quick-filters { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }

.model-title-row { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; }

.side-model + .side-model { margin-top: 0; }

/* ==================================================================== */
/* 17. HALKALAR / SKOR GÖSTERGELERİ                                    */
/* ==================================================================== */

.ring {
  --p: 0;
  --ring-color: var(--muted-2);
  position: relative;
  width: 58px; height: 58px;
  flex: 0 0 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    conic-gradient(var(--ring-color) calc(var(--p) * 1%), rgba(255, 255, 255, 0.055) 0);
  transition: background var(--mid) var(--ease);
}
.ring::before {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: var(--panel-solid);
  box-shadow: 0 0 0 1px var(--line-soft) inset;
}
.ring span {
  position: relative;
  z-index: 1;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ring-color);
}
.ring.low { --ring-color: var(--danger); }
.ring.mid { --ring-color: var(--warn); }
.ring.high { --ring-color: var(--ok); }
.ring.high::before { box-shadow: 0 0 0 1px rgba(56, 239, 125, 0.18) inset, 0 0 22px rgba(56, 239, 125, 0.14); }

.risk {
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--line);
  color: var(--muted);
  white-space: nowrap;
}
.risk.low { background: var(--ok-dim); border-color: rgba(56, 239, 125, 0.3); color: var(--ok); }
.risk.mid { background: var(--warn-dim); border-color: rgba(255, 183, 3, 0.3); color: var(--warn); }
.risk.high { background: var(--danger-dim); border-color: rgba(255, 77, 109, 0.32); color: #ff8fa4; }

.dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  flex: 0 0 7px;
  background: var(--muted-2);
  display: inline-block;
}
.dot.banko { background: var(--ok); box-shadow: 0 0 8px rgba(56, 239, 125, 0.6); }
.dot.ideal { background: var(--accent); box-shadow: 0 0 8px rgba(163, 255, 46, 0.6); }
.dot.surpriz { background: var(--warn); box-shadow: 0 0 8px rgba(255, 183, 3, 0.6); }

.odds-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 8px;
  background: rgba(163, 255, 46, 0.1);
  border: 1px solid rgba(163, 255, 46, 0.26);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.banko {
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ok);
}

.pick {
  font-size: 12px;
  font-weight: 650;
  color: var(--txt-soft);
  line-height: 1.4;
}
.reason {
  font-size: 11.5px;
  color: var(--muted-2);
  line-height: 1.55;
}

/* ------------------------------------------------------------------ */
/* as-box — özet kutuları                                              */
/* ------------------------------------------------------------------ */
.as-box {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 11px 13px;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.26);
  border: 1px solid var(--line-soft);
}
.as-box span { font-size: 9.5px; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted-2); font-weight: 700; }
.as-box b { font-family: var(--display); font-size: 16px; font-weight: 800; letter-spacing: -0.03em; color: var(--txt); }
.as-box b.acc { color: var(--accent); }

/* ==================================================================== */
/* 18. ANALİZ SONUÇLARI                                                */
/* ==================================================================== */

.results { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }
.results-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 11.5px;
  color: var(--muted-2);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid var(--line-soft);
}
.results-bar b { color: var(--txt-soft); font-weight: 700; }

.rescard {
  position: relative;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.022), transparent 46%),
    var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  animation: fadeUp 0.32s var(--ease-out) both;
  transition: border-color var(--fast) var(--ease);
}
.rescard:hover { border-color: rgba(255, 255, 255, 0.12); }

.res-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.res-model { display: flex; align-items: center; gap: 8px; min-width: 0; }
.res-model b { font-size: 12.5px; font-weight: 700; color: var(--txt-soft); }
.res-model .dot { background: var(--accent); box-shadow: 0 0 9px rgba(163, 255, 46, 0.6); }
.res-sub { font-size: 10.5px; color: var(--muted-2); }

.rescard .pick {
  padding: 11px 13px;
  border-radius: var(--radius-sm);
  background: rgba(163, 255, 46, 0.055);
  border: 1px solid rgba(163, 255, 46, 0.16);
  margin-bottom: 10px;
  font-size: 13px;
  color: var(--txt);
}
.rescard .reason { padding-left: 2px; }

.raw {
  margin-top: 12px;
  border-top: 1px solid var(--line-soft);
  padding-top: 10px;
}
.raw summary {
  font-size: 10.5px;
  color: var(--muted-3);
  cursor: pointer;
  list-style: none;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 700;
  transition: color var(--fast) var(--ease);
}
.raw summary::-webkit-details-marker { display: none; }
.raw summary:hover { color: var(--accent); }
.raw pre {
  margin: 10px 0 0;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.44);
  border: 1px solid var(--line-soft);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.6;
  color: var(--muted);
  overflow-x: auto;
  max-height: 320px;
  white-space: pre-wrap;
  word-break: break-word;
}

/* boş durum */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 52px 24px;
  text-align: center;
  border-radius: var(--radius);
  border: 1px dashed var(--line-strong);
  background: rgba(0, 0, 0, 0.16);
}
.empty-state .big-glyph {
  font-size: 34px;
  line-height: 1;
  opacity: 0.3;
  filter: grayscale(0.4);
}
.empty-state h3 { font-size: 14.5px; font-weight: 700; color: var(--txt-soft); }
.empty-state p { margin: 0; font-size: 12.5px; color: var(--muted-2); max-width: 46ch; line-height: 1.55; }
.empty-mini {
  padding: 16px;
  text-align: center;
  font-size: 11.5px;
  color: var(--muted-3);
  border-radius: var(--radius-sm);
  border: 1px dashed var(--line);
}

/* ilerleme */
.coupon-progress {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: var(--panel);
  border: 1px solid rgba(163, 255, 46, 0.18);
  box-shadow: 0 0 34px rgba(163, 255, 46, 0.06);
}
.cp-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 11px; font-size: 12.5px; color: var(--muted); }
.cp-head b { color: var(--accent); font-weight: 700; font-variant-numeric: tabular-nums; }
.cp-bar {
  height: 5px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}
.cp-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 16px rgba(163, 255, 46, 0.5);
  transition: width 0.45s var(--ease);
}
.cp-note { margin-top: 9px; font-size: 11px; color: var(--muted-3); }

.verify-progress { display: flex; flex-direction: column; gap: 7px; }
.verify-progress span { font-size: 11px; color: var(--muted-2); }
.verify-progress b { font-size: 11.5px; color: var(--muted); font-weight: 650; }
.verify-progress b.ok { color: var(--ok); }
.verify-progress b.err { color: var(--danger); }

/* ==================================================================== */
/* 19. KUPON KARTI (sonuç özeti)                                       */
/* ==================================================================== */

.coupon-card {
  border-radius: var(--radius);
  border: 1px solid rgba(163, 255, 46, 0.2);
  background:
    radial-gradient(680px 300px at 50% -10%, rgba(163, 255, 46, 0.09), transparent 66%),
    linear-gradient(180deg, rgba(20, 26, 38, 0.9), rgba(10, 14, 21, 0.94));
  padding: 22px;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(163, 255, 46, 0.06) inset;
  backdrop-filter: blur(24px);
}

.cc-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}
.cc-title { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cc-title strong {
  font-family: var(--display);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--txt);
}
.cc-title small { font-size: 10.5px; color: var(--muted-2); letter-spacing: 0.04em; text-transform: uppercase; font-weight: 600; }

.cc-stats { display: flex; gap: 10px; flex-wrap: wrap; }
.cc-stat {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 8px 14px;
  min-width: 88px;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--line-soft);
}
.cc-stat span { font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); font-weight: 800; }
.cc-stat b {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--txt);
}
.cc-stat b.acc { color: var(--accent); }
.cc-stat b.warn { color: var(--warn); }

.cc-legs { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }

.cc-leg {
  display: grid;
  grid-template-columns: auto 1fr auto auto auto;
  gap: 12px;
  align-items: center;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.022);
  border: 1px solid var(--line-soft);
  transition: border-color var(--fast) var(--ease), background var(--fast) var(--ease);
}
.cc-leg:hover { border-color: rgba(255, 255, 255, 0.11); background: rgba(255, 255, 255, 0.038); }
.cc-leg-num {
  width: 22px; height: 22px;
  flex: 0 0 22px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: rgba(163, 255, 46, 0.12);
  border: 1px solid rgba(163, 255, 46, 0.24);
  color: var(--accent);
  font-size: 10.5px;
  font-weight: 900;
}
.cc-leg-main { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.cc-leg-match {
  font-size: 12px;
  font-weight: 650;
  color: var(--txt-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cc-leg-pick { font-size: 11px; color: var(--muted-2); display: flex; gap: 5px; align-items: baseline; min-width: 0; }
.cc-leg-pick .mk { color: var(--muted-3); }
.cc-leg-pick .pk { color: var(--accent); font-weight: 650; }
.cc-leg-odds {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
  color: var(--txt);
  padding: 3px 9px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
}
.cc-leg-prob {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--ok);
  min-width: 46px;
  text-align: right;
}
.cc-leg-rm {
  border: 0; background: none; padding: 2px 4px;
  color: var(--muted-3); font-size: 15px; line-height: 1; cursor: pointer;
  border-radius: 5px;
  transition: color var(--fast) var(--ease), background var(--fast) var(--ease);
}
.cc-leg-rm:hover { color: var(--danger); background: var(--danger-dim); }

.cc-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.cc-foot .note { font-size: 11px; color: var(--muted-3); line-height: 1.5; max-width: 52ch; }
.cc-foot .btns { display: flex; gap: 9px; flex-wrap: wrap; }

.cc-alt {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}
.cc-alt span.lbl {
  font-size: 9.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted-3);
  font-weight: 800;
}

/* kupon araç çubuğu */
.coupon-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 15px;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid var(--line-soft);
  margin-bottom: 14px;
}
.coupon-toolbar .muted { font-size: 11.5px; }

.coupon-stake { display: flex; align-items: center; gap: 9px; }
.coupon-stake label { font-size: 10px; letter-spacing: 0.08em; }
.coupon-stake input { width: 110px; font-variant-numeric: tabular-nums; }

.stake-row { display: flex; flex-direction: column; gap: 6px; }
.stake-row input { font-variant-numeric: tabular-nums; }

.combo {
  padding: 15px 17px;
  border-radius: var(--radius-md);
  background:
    radial-gradient(400px 160px at 0% 0%, rgba(163, 255, 46, 0.08), transparent 70%),
    rgba(0, 0, 0, 0.26);
  border: 1px solid var(--line);
}
.combo-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 12px;
}
.combo-head b { font-family: var(--display); font-size: 13.5px; font-weight: 750; color: var(--txt); }
.combo-head button {
  border: 0; background: rgba(255, 255, 255, 0.05);
  border-radius: 7px; padding: 4px 9px;
  color: var(--muted); font-size: 10.5px; cursor: pointer;
  transition: all var(--fast) var(--ease);
}
.combo-head button:hover { color: var(--accent); background: var(--accent-dim); }
.combo-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(78px, 1fr)); gap: 9px; }
.combo-stats .stat { display: flex; flex-direction: column; gap: 1px; }
.combo-stats .stat span { font-size: 8.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); font-weight: 800; }
.combo-stats .stat b {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.combo-note { margin-top: 11px; font-size: 10.5px; color: var(--muted-3); line-height: 1.5; }

/* ==================================================================== */
/* 20. SEPET / DRAWER                                                 */
/* ==================================================================== */

.drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(420px, 94vw);
  z-index: 120;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(180deg, rgba(14, 19, 28, 0.98), rgba(7, 10, 16, 0.99));
  border-left: 1px solid var(--line-strong);
  box-shadow: -30px 0 80px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(28px);
  transform: translateX(102%);
  transition: transform 0.34s var(--ease-out);
  visibility: hidden;
}
.drawer.open { transform: translateX(0); visibility: visible; }

.drawer-head {
  padding: 20px 22px 16px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.drawer-head h3 { font-family: var(--display); font-size: 16px; font-weight: 800; letter-spacing: -0.025em; }
.drawer-head p { margin: 4px 0 0; font-size: 11px; color: var(--muted-2); }

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.drawer-actions {
  padding: 16px 22px 20px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.drawer-actions .btn { width: 100%; }

.basket-legs { display: flex; flex-direction: column; gap: 7px; }
.basket-leg {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line-soft);
}
.basket-leg .bl-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.basket-leg .bl-market { font-size: 10px; color: var(--muted-3); }
.basket-leg .bl-pick { font-size: 12px; font-weight: 650; color: var(--txt-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.basket-leg .bl-meta { font-size: 10px; color: var(--muted-3); display: flex; gap: 6px; }
.basket-leg .bl-prob { font-size: 11px; font-weight: 800; color: var(--ok); font-variant-numeric: tabular-nums; }
.basket-leg .bl-odds { font-family: var(--mono); font-size: 11.5px; font-weight: 800; color: var(--accent); }
.basket-leg button {
  border: 0; background: none; padding: 2px 3px;
  color: var(--muted-3); font-size: 15px; line-height: 1; cursor: pointer;
  border-radius: 4px; transition: all var(--fast) var(--ease);
}
.basket-leg button:hover { color: var(--danger); background: var(--danger-dim); }

.basket-summary {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: rgba(163, 255, 46, 0.055);
  border: 1px solid rgba(163, 255, 46, 0.18);
}
.sum-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
  padding: 4px 0;
}
.sum-row b { color: var(--txt); font-weight: 750; font-variant-numeric: tabular-nums; }
.sum-row.total {
  margin-top: 7px;
  padding-top: 9px;
  border-top: 1px solid rgba(163, 255, 46, 0.2);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--txt-soft);
}
.sum-row.total b { font-family: var(--display); font-size: 17px; color: var(--accent); letter-spacing: -0.03em; }

.scrim {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgba(3, 5, 9, 0.72);
  backdrop-filter: blur(5px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--mid) var(--ease), visibility var(--mid);
}
.scrim.on { opacity: 1; visibility: visible; }

/* ==================================================================== */
/* 21. MODALLAR                                                       */
/* ==================================================================== */

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(3, 5, 9, 0.78);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
}
.modal.open { display: grid; animation: fadeUp 0.24s var(--ease-out) both; }

.modal-card {
  width: min(660px, 96vw);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, rgba(19, 25, 36, 0.99), rgba(9, 13, 20, 0.99));
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  animation: popIn 0.26s var(--ease-out) both;
  overflow: hidden;
}
.modal-card.wide { width: min(1080px, 96vw); }

.modal-head {
  padding: 19px 22px 15px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.modal-head h3 { font-family: var(--display); font-size: 16px; font-weight: 800; letter-spacing: -0.025em; }
.modal-head p { margin: 4px 0 0; font-size: 11.5px; color: var(--muted-2); }

.iconbtn {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  transition: all var(--fast) var(--ease);
}
.iconbtn:hover {
  background: var(--danger-dim);
  border-color: rgba(255, 77, 109, 0.3);
  color: var(--danger);
}

.modal-body {
  padding: 18px 22px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.modal-foot {
  padding: 15px 22px 19px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.share-card-modal { display: flex; flex-direction: column; gap: 14px; align-items: center; }
.share-card-modal img { width: 100%; border-radius: var(--radius-sm); border: 1px solid var(--line); }

/* ==================================================================== */
/* 22. TOAST                                                          */
/* ==================================================================== */

.toasts {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 9px;
  align-items: flex-end;
  pointer-events: none;
  max-width: min(400px, 92vw);
}
.toast {
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 16px;
  border-radius: 13px;
  background: rgba(16, 22, 32, 0.97);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  font-size: 12.5px;
  color: var(--txt);
  animation: toastIn 0.26s var(--ease-out) both;
  position: relative;
  overflow: hidden;
}
.toast::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--muted-2);
}
.toast.ok { border-color: rgba(56, 239, 125, 0.3); }
.toast.ok::before { background: var(--ok); box-shadow: 0 0 14px var(--ok); }
.toast.err { border-color: rgba(255, 77, 109, 0.34); }
.toast.err::before { background: var(--danger); box-shadow: 0 0 14px var(--danger); }
.toast small { font-size: 10.5px; color: var(--muted-2); }

/* ==================================================================== */
/* 23. KUPON KONTROL (denetim)                                         */
/* ==================================================================== */

.audit-input-methods { display: flex; flex-direction: column; gap: 14px; }

.audit-dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 34px 22px;
  border-radius: var(--radius-md);
  border: 1.5px dashed var(--line-strong);
  background: rgba(0, 0, 0, 0.2);
  text-align: center;
  cursor: pointer;
  transition: all var(--mid) var(--ease);
}
.audit-dropzone:hover, .audit-dropzone.dragover {
  border-color: rgba(163, 255, 46, 0.5);
  background: rgba(163, 255, 46, 0.055);
  box-shadow: 0 0 0 1px rgba(163, 255, 46, 0.1) inset, 0 0 40px rgba(163, 255, 46, 0.07);
}
.drop-icon {
  width: 44px; height: 44px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: rgba(163, 255, 46, 0.1);
  border: 1px solid rgba(163, 255, 46, 0.24);
  font-size: 19px;
  color: var(--accent);
}
.drop-text { display: flex; flex-direction: column; gap: 4px; }
.drop-text strong { font-size: 13px; font-weight: 700; color: var(--txt-soft); }
.drop-text p { margin: 0; font-size: 11.5px; color: var(--muted-2); line-height: 1.5; }
.drop-text code {
  font-family: var(--mono);
  font-size: 10.5px;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--accent);
}

.audit-text-block details {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.2);
  overflow: hidden;
}
.audit-text-block summary {
  padding: 11px 14px;
  font-size: 12px;
  font-weight: 650;
  color: var(--muted);
  cursor: pointer;
  list-style: none;
  transition: color var(--fast) var(--ease);
}
.audit-text-block summary::-webkit-details-marker { display: none; }
.audit-text-block summary:hover { color: var(--accent); }
.audit-text-inner { padding: 0 14px 14px; }

.audit-legs-list { display: flex; flex-direction: column; gap: 8px; }
.audit-leg-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1.15fr 92px auto;
  gap: 8px;
  align-items: center;
}
.audit-leg-row input { font-size: 12px; padding: 9px 11px; }
.audit-leg-row .audit-odds {
  font-family: var(--mono);
  font-size: 11.5px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.audit-leg-row .audit-pick { color: var(--accent); font-weight: 600; }

.audit-model-picker {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 0;
}
.audit-model-picker label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  text-transform: none;
  letter-spacing: normal;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  padding: 5px 11px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  transition: all var(--fast) var(--ease);
}
.audit-model-picker label:hover { border-color: rgba(163, 255, 46, 0.32); color: var(--txt-soft); }
.audit-model-picker input { width: auto; accent-color: var(--accent); }

.audit-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}

.audit-results-list { display: flex; flex-direction: column; gap: 8px; }

.audit-res-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  transition: all var(--fast) var(--ease);
}
.audit-res-item:hover {
  border-color: rgba(163, 255, 46, 0.28);
  background: rgba(163, 255, 46, 0.045);
}

.audit-del-btn {
  border: 0; background: none;
  color: var(--muted-3); font-size: 14px;
  cursor: pointer; padding: 3px 5px; border-radius: 5px;
  transition: all var(--fast) var(--ease);
}
.audit-del-btn:hover { color: var(--danger); background: var(--danger-dim); }

.audit-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

/* ari-* — maç bazlı analiz satırı */
.ari-match {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 15px 17px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  margin-bottom: 10px;
}
.ari-teams {
  font-family: var(--display);
  font-size: 13.5px;
  font-weight: 750;
  letter-spacing: -0.015em;
  color: var(--txt);
}
.ari-analysis {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
}
.ari-pick-row { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-bottom: 7px; }
.ari-pick-badge {
  font-size: 12px;
  font-weight: 750;
  color: var(--accent);
}
.ari-odds {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
  padding: 2px 9px;
  border-radius: 7px;
  background: rgba(163, 255, 46, 0.1);
  border: 1px solid rgba(163, 255, 46, 0.24);
  color: var(--accent);
}
.ari-reason { font-size: 11.5px; color: var(--muted-2); line-height: 1.55; }

.ari-chance-col { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.ari-chance-num {
  font-family: var(--display);
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--muted);
}
.ari-chance-num.high { color: var(--ok); }
.ari-chance-num.mid { color: var(--warn); }
.ari-chance-num.low { color: var(--danger); }
.ari-chance-label { font-size: 8.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-3); font-weight: 800; }

.ari-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.ari-tag {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 2.5px 8px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  color: var(--muted);
}
.ari-tag.value { background: var(--ok-dim); border-color: rgba(56, 239, 125, 0.3); color: var(--ok); }
.ari-tag.trap { background: var(--danger-dim); border-color: rgba(255, 77, 109, 0.3); color: #ff8fa4; }
.ari-tag.neutral { background: rgba(255, 255, 255, 0.045); color: var(--muted-2); }

.ari-risk-badge {
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 5px;
  background: var(--warn-dim);
  border: 1px solid rgba(255, 183, 3, 0.3);
  color: var(--warn);
  white-space: nowrap;
}
.ari-alt {
  font-size: 10.5px;
  color: var(--muted-3);
  padding-top: 10px;
  border-top: 1px solid var(--line-soft);
  line-height: 1.5;
}

/* ==================================================================== */
/* 24. KARŞILAŞTIRMA                                                  */
/* ==================================================================== */

.compare-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.compare-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.compare-title h2 { font-family: var(--display); font-size: 16px; font-weight: 800; letter-spacing: -0.025em; }
.compare-title p { margin: 4px 0 0; font-size: 12px; color: var(--muted-2); }

.cmp-col {
  padding: 16px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.022);
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.cmp-head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-soft);
}
.cmp-head b { font-size: 12.5px; font-weight: 700; color: var(--txt-soft); }
.cmp-head small { font-size: 10px; color: var(--muted-3); margin-left: auto; }

.cmp-list { display: flex; flex-direction: column; gap: 8px; }

.cmp-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--line-soft);
}
.cmp-item .ci-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.cmp-item .ci-market { font-size: 10px; color: var(--muted-3); }
.cmp-item .ci-pick { font-size: 12px; font-weight: 650; color: var(--txt-soft); }
.cmp-item .ring { width: 44px; height: 44px; flex: 0 0 44px; }
.cmp-item .ring span { font-size: 11.5px; }
.cmp-item .ring::before { inset: 4px; }

.cmp-summary {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid var(--line-soft);
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}

/* konsensüs */
.consensus {
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background:
    radial-gradient(500px 220px at 50% 0%, rgba(163, 255, 46, 0.065), transparent 70%),
    rgba(0, 0, 0, 0.26);
  border: 1px solid rgba(163, 255, 46, 0.16);
}
.consensus h3 {
  font-family: var(--display);
  font-size: 14px;
  font-weight: 750;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.consensus > p { margin: 0 0 12px; font-size: 12px; color: var(--muted-2); line-height: 1.6; }

.cons-grid { display: flex; flex-direction: column; gap: 7px; }

.cons-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 11px;
  align-items: center;
  padding: 10px 13px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.022);
  border: 1px solid var(--line-soft);
}
.cons-row.unanimous {
  border-color: rgba(56, 239, 125, 0.28);
  background: rgba(56, 239, 125, 0.045);
}
.cons-row .ring { width: 42px; height: 42px; flex: 0 0 42px; }
.cons-row .ring span { font-size: 11px; }
.cons-row .ring::before { inset: 4px; }
.cons-market { font-size: 10.5px; color: var(--muted-3); }
.cons-pick { font-size: 12.5px; font-weight: 650; color: var(--txt-soft); }
.cons-main { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.cons-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
  min-width: 44px;
}
.cons-side .muted {
  font-family: var(--display);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--txt-soft);
  font-variant-numeric: tabular-nums;
}

.votes { display: flex; gap: 3px; align-items: center; }
.vote {
  width: 15px; height: 15px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 8px;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.07);
  color: var(--muted-3);
  border: 1px solid var(--line);
}
.unanimous .vote { background: rgba(56, 239, 125, 0.2); border-color: rgba(56, 239, 125, 0.4); color: var(--ok); }

.uni-badge {
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2.5px 8px;
  border-radius: 5px;
  background: var(--ok-dim);
  border: 1px solid rgba(56, 239, 125, 0.32);
  color: var(--ok);
}

/* ==================================================================== */
/* 25. REHBER / DOKTRİN                                               */
/* ==================================================================== */

.guide-intro { margin-bottom: 22px; }
.guide-intro h2 {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.035em;
  margin-bottom: 8px;
  background: linear-gradient(120deg, #fff 10%, #b9c6d6 78%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.guide-intro p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.6; max-width: 76ch; }

.doctrine-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 14px;
}

.doctrine-card {
  padding: 18px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.022), transparent 50%),
    rgba(255, 255, 255, 0.016);
  transition: border-color var(--mid) var(--ease), transform var(--mid) var(--ease);
}
.doctrine-card:hover { border-color: rgba(163, 255, 46, 0.22); transform: translateY(-2px); }
.doctrine-card h3 {
  font-family: var(--display);
  font-size: 13.5px;
  font-weight: 750;
  letter-spacing: -0.015em;
  color: var(--accent);
  margin-bottom: 11px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.doctrine-card h3::before {
  content: "";
  width: 3px; height: 13px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 10px rgba(163, 255, 46, 0.5);
}

.guide-card {
  padding: 18px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.018);
}
.guide-card h3 { font-family: var(--display); font-size: 13.5px; font-weight: 750; margin-bottom: 11px; color: var(--txt); }
.guide-card > p { margin: 0 0 11px; font-size: 12px; color: var(--muted-2); line-height: 1.6; }

.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.guide-items, .legs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.guide-items li, .legs li {
  position: relative;
  padding-left: 17px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.55;
}
.guide-items li::before, .legs li::before {
  content: "";
  position: absolute;
  left: 2px; top: 7px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 7px rgba(163, 255, 46, 0.55);
  opacity: 0.75;
}

.api-info { padding: 18px 20px; }
.api-info h3 {
  font-family: var(--display);
  font-size: 13.5px;
  font-weight: 750;
  margin-bottom: 7px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.api-info h3 small { font-size: 9.5px; color: var(--muted-3); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
.api-info p { margin: 0 0 11px; font-size: 12px; color: var(--muted-2); line-height: 1.6; }
.api-info a {
  font-size: 11.5px;
  font-weight: 650;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: opacity var(--fast) var(--ease);
}
.api-info a:hover { opacity: 0.75; text-decoration: none; }

/* ==================================================================== */
/* 26. AKTARMA (Transfermarkt)                                        */
/* ==================================================================== */

.tm-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.tm-badge {
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 5px;
  background: var(--info-dim);
  border: 1px solid rgba(76, 201, 240, 0.3);
  color: var(--info);
}

.tm-input-group { display: flex; gap: 9px; flex-wrap: wrap; }
.tm-input-group input { flex: 1; min-width: 200px; font-size: 12px; }

.tm-link-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }

.tm-preview-box {
  padding: 15px 17px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.22);
  margin-top: 14px;
}
.tm-meta-line { font-size: 11px; color: var(--muted-3); margin-top: 10px; line-height: 1.5; }

.tm-missing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 14px;
}
.tm-team-col { display: flex; flex-direction: column; gap: 8px; }
.tm-team-title {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted-2);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line-soft);
}

.miss-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  padding: 6px 9px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.022);
  border: 1px solid var(--line-soft);
}
.miss-row b { font-weight: 650; color: var(--txt-soft); }
.miss-row span { font-size: 10px; color: var(--danger); margin-left: auto; white-space: nowrap; }

.tm-pill-list { display: flex; flex-wrap: wrap; gap: 6px; }
.tm-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
}
.tm-pill b { font-weight: 700; color: var(--txt-soft); }
.tm-pill small { font-size: 9.5px; color: var(--muted-3); }

.tm-actions { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 14px; }

/* ==================================================================== */
/* 27. KAYITLI KUPONLAR                                               */
/* ==================================================================== */

.saved-wrap { display: flex; flex-direction: column; gap: 9px; }
.saved-wrap h4 {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted-3);
}

.saved-list { display: flex; flex-direction: column; gap: 6px; max-height: 320px; overflow-y: auto; }

.saved-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.02);
  transition: all var(--fast) var(--ease);
}
.saved-item:hover { border-color: rgba(255, 255, 255, 0.12); background: rgba(255, 255, 255, 0.04); }
.saved-item .si-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.saved-item b { font-size: 11.5px; font-weight: 650; color: var(--txt-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.saved-item small { font-size: 10px; color: var(--muted-3); }
.saved-item button {
  border: 0; background: none; padding: 2px 4px;
  color: var(--muted-3); font-size: 13px; cursor: pointer;
  border-radius: 5px; transition: all var(--fast) var(--ease);
}
.saved-item button:hover { color: var(--accent); background: var(--accent-dim); }

/* ==================================================================== */
/* 28. MERo KARTI (paylaşım)                                          */
/* ==================================================================== */

.mero-card {
  position: relative;
  padding: 20px;
  border-radius: var(--radius);
  background:
    radial-gradient(500px 240px at 50% -20%, rgba(163, 255, 46, 0.1), transparent 68%),
    linear-gradient(160deg, #0e131c, #070a10);
  border: 1px solid rgba(163, 255, 46, 0.18);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.5);
  transition: transform var(--mid) var(--ease), box-shadow var(--mid) var(--ease);
}
.mero-card:hover { transform: translateY(-3px); box-shadow: 0 32px 84px rgba(0, 0, 0, 0.6); }
.mero-name { font-family: var(--display); font-size: 15px; font-weight: 800; letter-spacing: -0.025em; }
.mero-tag { font-size: 10px; color: var(--muted-2); letter-spacing: 0.08em; text-transform: uppercase; font-weight: 650; }
.mero-details { display: flex; flex-direction: column; gap: 5px; margin-top: 12px; }

.mero-avatar {
  position: relative;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, var(--accent), var(--accent-2));
  color: #05100a;
  font-weight: 900;
  font-size: 14px;
  box-shadow: 0 0 20px rgba(163, 255, 46, 0.35);
}
.mero-avatar .mero-badge-dot {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 10px;
  height: 10px;
  border: 2px solid #0a0d13;
  box-shadow: 0 0 8px var(--accent-glow);
}
.mero-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 9px var(--accent-glow);
  display: inline-block;
}

/* yan paneldeki mero kartı — kompakt satır */
.side-foot .mero-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.028);
  border: 1px solid var(--line);
  box-shadow: none;
}
.side-foot .mero-card:hover {
  transform: none;
  border-color: rgba(163, 255, 46, 0.28);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.32);
}
.side-foot .mero-details { margin-top: 0; gap: 1px; min-width: 0; }
.side-foot .mero-name { font-size: 12.5px; letter-spacing: -0.015em; }
.side-foot .mero-tag {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  letter-spacing: 0.07em;
}
.side-foot .mero-tag .discord-icon {
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  background: none;
  border: 0;
  color: var(--muted-2);
}
.side-foot .mero-avatar { width: 30px; height: 30px; flex: 0 0 30px; font-size: 12.5px; }

/* öne çıkanlar bandı — sağ kenarda yumuşak geçiş */
.live-ticker { position: relative; }
.live-ticker::after {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 56px;
  pointer-events: none;
  background: linear-gradient(270deg, rgba(5, 7, 11, 0.92), transparent);
}

/* ==================================================================== */
/* 29. DISCORD KARTI                                                  */
/* ==================================================================== */

.dc-head {
  display: flex;
  align-items: center;
  gap: 11px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 13px;
}
.dc-head h3 { font-family: var(--display); font-size: 14px; font-weight: 800; letter-spacing: -0.02em; }
.discord-icon {
  width: 32px; height: 32px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: rgba(88, 101, 242, 0.16);
  border: 1px solid rgba(88, 101, 242, 0.36);
  color: #9aa4ff;
  flex: 0 0 32px;
}
.dc-num {
  width: 20px; height: 20px;
  border-radius: 6px;
  display: grid; place-items: center;
  background: rgba(163, 255, 46, 0.12);
  border: 1px solid rgba(163, 255, 46, 0.24);
  color: var(--accent);
  font-size: 10px;
  font-weight: 900;
  flex: 0 0 20px;
}
.dc-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.dc-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line-soft);
}
.dc-list li b { color: var(--txt); font-weight: 700; }

/* ==================================================================== */
/* 30. SLIP TICKET (kupon fişi)                                       */
/* ==================================================================== */

.slip-ticket {
  border-radius: var(--radius);
  background: linear-gradient(160deg, #0f141d, #080b11);
  border: 1px solid var(--line-strong);
  overflow: hidden;
}
.slip-ticket-inner { padding: 20px 22px; }

.st-legs-list { display: flex; flex-direction: column; gap: 0; }
.st-leg-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--line-strong);
}
.st-leg-item:last-child { border-bottom: 0; }
.st-match-name { font-size: 11.5px; font-weight: 650; color: var(--txt-soft); }
.st-pick-row { display: flex; align-items: center; gap: 7px; margin-top: 2px; }
.st-pick-txt { font-size: 11px; color: var(--muted-2); }
.st-pick-txt b { color: var(--accent); font-weight: 700; }
.st-odds-txt {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
  color: var(--txt);
  margin-left: auto;
  white-space: nowrap;
}
.st-line-dashed { height: 0; border-top: 1px dashed var(--line-strong); margin: 14px 0; }

.st-brand-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.st-brand-title {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -0.03em;
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.st-brand-sub { font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-3); font-weight: 700; }

.st-badge-verified {
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 5px;
  background: var(--ok-dim);
  border: 1px solid rgba(56, 239, 125, 0.32);
  color: var(--ok);
}

.st-stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); gap: 9px; }
.st-stat-box {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 9px 11px;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--line-soft);
}
.st-stat-box span { font-size: 8.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-3); font-weight: 800; }
.st-stat-box b {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--txt);
}
.st-stat-box b.st-acc { color: var(--accent); }
.st-stat-box b.st-gold { color: var(--warn); }

.st-footer-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.st-discord-credit { font-size: 10.5px; color: var(--muted-3); letter-spacing: 0.02em; }
.st-discord-credit b { color: var(--accent); font-weight: 800; }

.st-barcode {
  display: flex;
  gap: 1.5px;
  align-items: flex-end;
  height: 26px;
  opacity: 0.5;
}
.st-barcode i {
  display: block;
  width: 1.5px;
  background: var(--muted);
  border-radius: 0.5px;
}

/* split card */
.split-card {
  padding: 16px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}
.split-card h4 { font-family: var(--display); font-size: 12.5px; font-weight: 750; margin-bottom: 11px; }
.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.split-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 11.5px;
  padding: 6px 0;
  border-bottom: 1px solid var(--line-soft);
}
.split-line:last-child { border-bottom: 0; }
.split-line span:first-child { color: var(--muted-2); }
.split-line span:last-child { color: var(--txt-soft); font-weight: 700; font-variant-numeric: tabular-nums; }

/* kaynak test */
.src-test {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 5px;
  border: 1px solid var(--line);
  color: var(--muted-2);
  cursor: pointer;
  background: none;
  transition: all var(--fast) var(--ease);
}
.src-test:hover { border-color: var(--line-strong); color: var(--txt-soft); }
.src-test.ok { background: var(--ok-dim); border-color: rgba(56, 239, 125, 0.32); color: var(--ok); }
.src-test.err { background: var(--danger-dim); border-color: rgba(255, 77, 109, 0.32); color: #ff8fa4; }

.provider-tag {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted-2);
}

.gmeta { font-size: 10.5px; color: var(--muted-3); display: flex; gap: 9px; flex-wrap: wrap; }

.sel { display: flex; gap: 9px; flex-wrap: wrap; }
.sel-main { flex: 1; min-width: 180px; }

.rb-left { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rb-left .match-name { font-size: 12px; font-weight: 650; color: var(--txt-soft); }
.rb-right { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }

.foot-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 16px; }

/* ==================================================================== */
/* 31. SARMA / SARIMLI DÜZEN                                          */
/* ==================================================================== */

.addbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 9px;
  border: 1px solid rgba(163, 255, 46, 0.3);
  background: rgba(163, 255, 46, 0.09);
  color: var(--accent);
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
  transition: all var(--fast) var(--ease);
}
.addbtn:hover { background: rgba(163, 255, 46, 0.18); border-color: rgba(163, 255, 46, 0.5); transform: translateY(-1px); }

/* ==================================================================== */
/* 32. DUYARLI DÜZEN                                                  */
/* ==================================================================== */

@media (max-width: 1180px) {
  .layout { grid-template-columns: minmax(0, 1fr) 312px; }
  .results { gap: 10px; }
}

@media (max-width: 1080px) {
  .main { padding: 0 24px 64px; }
  .sidebar { width: 238px; flex: 0 0 238px; }
  .layout { grid-template-columns: 1fr; }
  .col-side { position: static; }
  .sticky { position: static; }
}

@media (max-width: 980px) {
  .app { flex-direction: column; }
  .sidebar {
    width: 100%;
    flex: none;
    height: auto;
    position: sticky;
    top: 0;
    z-index: 60;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    padding: 11px 16px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    background: rgba(6, 9, 14, 0.94);
  }
  .sidebar::after { display: none; }
  .brand { padding: 0; flex: 0 0 auto; }
  .brand-text small { display: none; }
  .brand-mark { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 12px; font-size: 14px; }
  .brand-text strong { font-size: 14.5px; }

  .nav {
    flex-direction: row;
    gap: 4px;
    flex: 1;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 2px;
    scrollbar-width: none;
    mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 26px), transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 26px), transparent 100%);
  }
  .nav::-webkit-scrollbar { height: 0; }
  .nav-group { flex-direction: row; align-items: center; gap: 4px; flex: 0 0 auto; }
  .nav-label { display: none; }

  .nav-btn {
    padding: 8px 12px;
    font-size: 12px;
    border-radius: 10px;
    white-space: nowrap;
  }
  .nav-btn svg { width: 15px; height: 15px; flex: 0 0 15px; }
  .nav-btn.active::before {
    left: 50%; top: auto; bottom: -1px;
    transform: translateX(-50%);
    width: 16px; height: 2.5px;
    border-radius: 3px 3px 0 0;
  }
  #navAdminGroup .nav-btn { border-color: transparent; }

  .side-foot { display: none; }
  .main { padding: 0 18px 56px; }
  .topbar { padding: 20px 0 18px; }
  .title-wrap h1 { font-size: 23px; }
}

@media (max-width: 768px) {
  .fields { grid-template-columns: 1fr; }
  .set-row.two { grid-template-columns: 1fr; }
  .fixture-bar { grid-template-columns: 1fr; }
  .audit-leg-row { grid-template-columns: 1fr 1fr; }
  .tm-missing-grid { grid-template-columns: 1fr; }
  .split-grid { grid-template-columns: 1fr; }
  .cc-leg { grid-template-columns: auto 1fr auto; gap: 9px; }
  .cc-leg-odds, .cc-leg-rm { grid-column: 3; }
  .cc-leg-prob { display: none; }
  .model-list { grid-template-columns: 1fr; }
  .compare-grid { grid-template-columns: 1fr; }
  .doctrine-grid { grid-template-columns: 1fr; }
  .guide-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .card { padding: 16px; border-radius: 16px; }
  .title-wrap h1 { font-size: 20px; }
  .title-wrap p { font-size: 12.5px; }
  .cc-stats { width: 100%; }
  .cc-stat { flex: 1; min-width: 0; padding: 7px 10px; }
  .cc-stat b { font-size: 15px; }
  .top-actions { gap: 7px; }
  .btn { padding: 10px 15px; font-size: 12.5px; }
  .audit-summary-grid { grid-template-columns: 1fr 1fr; }
  .ari-analysis { grid-template-columns: 1fr; gap: 12px; }
  .ari-chance-col { flex-direction: row; justify-content: flex-start; gap: 8px; align-items: baseline; }
}

@media (max-width: 600px) {
  .audit-leg-row { grid-template-columns: 1fr; }
  .cons-row { grid-template-columns: auto 1fr auto; }
  .cons-row .votes { display: none; }
  .modal { padding: 12px; }
  .modal-card { max-height: 92vh; }
  .drawer { width: 100vw; }
}

@media (min-width: 981px) and (max-height: 780px) {
  .sidebar { padding-top: 18px; padding-bottom: 14px; }
  .brand { padding-bottom: 18px; }
  .nav { gap: 13px; }
  .nav-btn { padding: 8px 11px; font-size: 12.5px; }
  .nav-label { font-size: 8.5px; padding-bottom: 5px; }
}

/* hareket azaltma tercihi */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
