/* Turco Bahis paleti: koyu lacivert zemin, marka kırmızısı vurgu. Gradient ve emoji yok. */
:root {
  --bg: #090b19;
  --surface: #10142d;
  --surface-2: #151a38;
  --surface-3: #1c2246;
  --text: #f3f4fb;
  --text-2: #c5c8de;
  --muted: #8a8fb0;
  --border: #212950;
  --border-strong: #2f3868;
  --accent: #e23c52;
  --accent-hover: #ec4d62;
  --accent-text: #ffffff;
  --brand: #e23c52;
  --navy: #0e183c;
  --ok: #2fc77f;  --ok-bg: rgba(47, 199, 127, .13);
  --warn: #f2b33d; --warn-bg: rgba(242, 179, 61, .13);
  --err: #ff5a6e;  --err-bg: rgba(255, 90, 110, .13);
  --info: #7d96ff; --info-bg: rgba(125, 150, 255, .14);
  --radius: 16px; --radius-sm: 10px;
  --shadow: 0 1px 0 rgba(255,255,255,.03) inset, 0 12px 32px rgba(0,0,0,.35);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}
/* İsteğe bağlı açık tema (panel "Tema" düğmesi) */
:root[data-theme="light"] {
  --bg: #f4f5f9; --surface: #ffffff; --surface-2: #f6f7fb; --surface-3: #eceef5;
  --text: #0e183c; --text-2: #343c5e; --muted: #6d7394; --border: #e3e5ee; --border-strong: #cfd3e2;
  --ok: #138a52; --ok-bg: #e6f5ed; --warn: #a8640a; --warn-bg: #fdf3e3; --err: #c8283d; --err-bg: #fdeaec; --info: #2a4fd7; --info-bg: #eaf0fd;
  --shadow: 0 1px 2px rgba(14,24,60,.05), 0 8px 24px rgba(14,24,60,.07);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; font-feature-settings: "tnum" 1, "cv11" 1; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
.mono { font-family: var(--mono); font-size: .92em; letter-spacing: -.01em; }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 12px;
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font-weight: 550; font-size: 14px; cursor: pointer;
  text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s, opacity .15s; }
.btn:hover { background: var(--surface-2); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-danger { color: var(--err); }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-ghost:hover { background: var(--surface-3); }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.btn-lg { height: 52px; font-size: 15px; border-radius: 14px; }
.btn-block { width: 100%; }
.icon-btn { width: 36px; height: 36px; padding: 0; border-radius: 10px; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* Inputs */
.field { display: grid; gap: 6px; }
.field > span { font-size: 13px; color: var(--text-2); font-weight: 500; }
.field small { color: var(--muted); font-size: 12px; }
.input, select.input, textarea.input { width: 100%; height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--surface); outline: none; }
textarea.input { height: auto; min-height: 96px; padding: 10px 12px; resize: vertical; }
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(226, 60, 82, .18); }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 550; background: var(--surface-3); color: var(--text-2); white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .9; }
.badge.plain::before { display: none; }
.badge.ok { background: var(--ok-bg); color: var(--ok); }
.badge.warn { background: var(--warn-bg); color: var(--warn); }
.badge.err { background: var(--err-bg); color: var(--err); }
.badge.info { background: var(--info-bg); color: var(--info); }

.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--border-strong); border-top-color: var(--accent); animation: spin .8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }

.toast-wrap { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); display: grid; gap: 8px; z-index: 1000; pointer-events: none; width: max-content; max-width: calc(100vw - 32px); }
.toast { background: var(--surface-3); color: var(--text); border: 1px solid var(--border-strong); padding: 10px 16px; border-radius: 12px; font-size: 14px; font-weight: 500; box-shadow: var(--shadow); animation: toastIn .2s ease-out; }
.toast.err { background: var(--accent); border-color: var(--accent); color: #fff; }
@keyframes toastIn { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
