/* ============================================================
   AYYILDIZ2 Yönetim Paneli — arayüz kabuğu ve bileşen dili (2026-09-20 yeniden tasarım).
   İLKELER: siyah zemin, düz yüzeyler (gölge yok, ince çizgi), tek vurgu rengi, az öğe.
   Yan menüde yalnız bölümler; sayfalar üstte sekme şeridi (inc/nav.php). Tablolar okunur:
   koyu zeminde AÇIK metin, sıkı satır, sabit başlık (panel.js tabloyu ayrıca arama+sıralama ile donatır).
   Sınıf adları ve CSS değişken adları ~58 admin sayfasıyla paylaşılıyor — DEĞİŞTİRME; yalnız değerleri yenile.
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* ---- SİYAH (varsayılan). Açık tema [data-theme="light"] altında, üstteki ay düğmesiyle. ---- */
  --bg: #09090b;
  --surface: #111114;          /* kart / yan yüzey */
  --surface-2: #18181c;        /* hover, ikinci yüzey */
  --surface-3: #202026;        /* aktif, rozet zemini */
  --field: #0c0c0f;            /* form alanı zemini (karttan koyu = "içeri gömülü") */
  --hover: rgba(255, 255, 255, 0.045);
  --active: rgba(255, 255, 255, 0.08);
  --line: #24242b;
  --line-soft: #1a1a20;
  --line-strong: #34343e;
  --text: #ededf1;
  --muted: #a3a3ae;
  --faint: #6f6f7b;
  /* Vurgu: tek renk. Eski ad --gold korunuyor (~58 sayfa var(--gold) kullanıyor); değer artık mor. */
  --gold: #8b7df7;
  --gold-lite: #b1a8fb;
  --gold-deep: #7566ee;
  --gold-soft: rgba(139, 125, 247, 0.16);
  --ok: #28c76f;
  --ok-lite: #48da89;
  --ok-soft: rgba(40, 199, 111, 0.14);
  --warn: #ff9f43;
  --warn-soft: rgba(255, 159, 67, 0.14);
  --danger: #ea5455;
  --danger-lite: #f28384;
  --danger-soft: rgba(234, 84, 85, 0.14);
  --info: #00cfe8;
  --info-lite: #4ddceb;
  --info-soft: rgba(0, 207, 232, 0.14);
  --violet: #a78bfa;
  --violet-soft: rgba(139, 125, 247, 0.16);
  --teal: #1fc9c9;
  --teal-lite: #4cc7da;
  --teal-soft: rgba(31, 201, 201, 0.16);
  --radius: 8px;
  --shadow: 0 14px 34px -10px rgba(0, 0, 0, 0.7);   /* yalnız kayan katmanlar (modal/drawer/açılır menü) */
  --shadow-btn: none;
  --side-w: 236px;
  --top-h: 52px;
  --serif: "Inter", -apple-system, "Segoe UI", Roboto, system-ui, sans-serif;
  --mono: ui-monospace, "Cascadia Code", Consolas, "Roboto Mono", "SFMono-Regular", monospace;
  color-scheme: dark;
}

[data-theme="light"] {
  --bg: #f5f5f8;
  --surface: #ffffff;
  --surface-2: #f2f2f6;
  --surface-3: #e9e9ef;
  --field: #ffffff;
  --hover: rgba(0, 0, 0, 0.045);
  --active: rgba(0, 0, 0, 0.075);
  --line: #e3e3ea;
  --line-soft: #eeeef3;
  --line-strong: #d0d0da;
  --text: #1b1b22;
  --muted: #595965;
  --faint: #8b8b97;
  --gold: #6d5ef0;
  --gold-lite: #5b4ce0;
  --gold-deep: #5a4be0;
  --gold-soft: rgba(109, 94, 240, 0.12);
  --ok-soft: rgba(40, 199, 111, 0.14);
  --warn-soft: rgba(255, 159, 67, 0.16);
  --danger-soft: rgba(234, 84, 85, 0.12);
  --info-soft: rgba(0, 207, 232, 0.14);
  --violet: #6d5ef0;
  --violet-soft: rgba(109, 94, 240, 0.12);
  --teal: #16b1c9;
  --teal-soft: rgba(22, 177, 201, 0.14);
  --shadow: 0 10px 28px -8px rgba(30, 30, 50, 0.22);
  color-scheme: light;
}

/* Eski değişken adları köprüsü — sayfalar bunları kullanıyor, isimler sabit kalıyor. */
:root {
  --primary: var(--gold); --primary-soft: var(--gold-soft);
  --border: var(--line); --border-soft: var(--line-soft);
  --green: var(--ok); --green-soft: var(--ok-soft);
  --red: var(--danger); --blue: var(--info); --amber: var(--warn);
  --r: var(--radius); --r-sm: 6px;
  --lake: var(--danger); --lake-lite: var(--danger-lite);
  --cizgi: var(--line);
}

* { box-sizing: border-box; }
html, body { margin: 0; }

body {
  color: var(--text);
  font: 13.5px/1.5 var(--serif);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  background: var(--bg);
}

a { color: inherit; text-decoration: none; }
::selection { background: var(--gold-soft); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; margin: 0; letter-spacing: -0.1px; }
h1 { font-size: 21px; letter-spacing: -0.3px; margin-bottom: 3px; }
h2 { font-size: 14px; }
.lead { color: var(--muted); font-size: 13px; margin: 0 0 16px; max-width: 78ch; }
.tnum, .num { font-variant-numeric: tabular-nums; }
.stat .v { font-variant-numeric: tabular-nums; }

*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 9px; border: 2px solid var(--bg); }
*::-webkit-scrollbar-thumb:hover { background: var(--faint); }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ---------- İskelet ---------- */
.app { display: flex; min-height: 100vh; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sayfa { width: 100%; max-width: 1480px; margin: 0 auto; padding: 22px 26px 56px; }

/* ---------- Yan menü: yalnız bölümler ---------- */
.side {
  width: var(--side-w); flex: 0 0 var(--side-w);
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column;
  background: var(--bg);
  border-right: 1px solid var(--line);
  z-index: 40; overflow-y: auto;
}
.side-perde { display: none; }

.brand {
  display: flex; align-items: center; gap: 11px;
  padding: 15px 16px 12px; color: inherit;
}
.brand .mark {
  width: 34px; height: 34px; flex: 0 0 34px; border-radius: 9px;
  display: grid; place-items: center; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
}
.brand .mark img { width: 24px; height: 24px; object-fit: contain; }
.brand .name { font-weight: 700; font-size: 14.5px; letter-spacing: 0.3px; line-height: 1.2; display: block; color: var(--text); }
.brand .sub { font-size: 11.5px; color: var(--faint); display: block; margin-top: 1px; }

.sb-nav { flex: 1; padding: 2px 10px 14px; }
.sb-grup {
  font-size: 11px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--faint); padding: 16px 10px 6px;
}
.sb-link {
  position: relative; display: flex; align-items: center; gap: 10px;
  height: 34px; padding: 0 10px; margin: 1px 0; border-radius: 7px;
  color: var(--muted); font-size: 13.5px; font-weight: 500;
  transition: background 0.12s, color 0.12s;
}
.sb-link:hover { background: var(--hover); color: var(--text); }
.sb-link.on { background: var(--active); color: var(--text); font-weight: 600; }
.sb-link.on::before {
  content: ""; position: absolute; left: -10px; top: 7px; bottom: 7px; width: 3px;
  border-radius: 0 3px 3px 0; background: var(--gold);
}
.sb-ico { display: grid; place-items: center; width: 20px; flex: 0 0 20px; color: var(--faint); transition: color 0.12s; }
.sb-link:hover .sb-ico { color: var(--text); }
.sb-link.on .sb-ico { color: var(--gold-lite); }
.sb-ad { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Sayı rozeti (bekleyen iş) — yan menüde ve sekmelerde aynı */
.sb-link .tag, .sekmeler .tag {
  flex: 0 0 auto; min-width: 18px; height: 18px; padding: 0 6px;
  display: inline-grid; place-items: center;
  font-size: 11px; font-weight: 700; line-height: 1;
  border-radius: 9px; background: var(--danger); color: #fff;
}

.sb-alt { padding: 12px 16px; border-top: 1px solid var(--line); margin-top: auto; }
.sb-durum { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.sb-durum.kapali { color: var(--danger-lite); }
.dot { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: var(--ok); animation: atim 2.4s infinite; }
.dot.off { background: var(--danger); animation: none; box-shadow: 0 0 0 3px var(--danger-soft); }
@keyframes atim {
  0% { box-shadow: 0 0 0 0 rgba(40, 199, 111, 0.5); }
  70% { box-shadow: 0 0 0 7px rgba(40, 199, 111, 0); }
  100% { box-shadow: 0 0 0 0 rgba(40, 199, 111, 0); }
}
.canli { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--ok); font-weight: 600; }
.canli.kapali { color: var(--danger); }

/* ---------- Üst şerit ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  height: var(--top-h); display: flex; align-items: center; gap: 10px;
  padding: 0 26px;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.iz { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); white-space: nowrap; min-width: 0; }
.iz-bolum:hover { color: var(--text); }
.iz-ayrac { color: var(--faint); }
.iz-sayfa { color: var(--text); font-weight: 600; overflow: hidden; text-overflow: ellipsis; }

.topbar .ops-ara-btn { margin-left: auto; flex: 0 1 380px; justify-content: flex-start; }
.topbar .ops-ara-btn .ops-kbd { margin-left: auto; }

.icobtn {
  width: 34px; height: 34px; flex-shrink: 0; border-radius: 7px;
  border: 1px solid var(--line); background: transparent;
  display: grid; place-items: center; cursor: pointer;
  color: var(--muted); transition: 0.14s; position: relative; padding: 0;
}
.icobtn:hover { border-color: var(--line-strong); background: var(--hover); color: var(--text); }
.icobtn svg { width: 16px; height: 16px; }

.pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 600; color: var(--muted);
  background: var(--surface-2); border: 1px solid var(--line);
  padding: 4px 11px; border-radius: 30px; white-space: nowrap;
}
.pill.live { color: var(--ok); border-color: rgba(40, 199, 111, 0.3); background: var(--ok-soft); }
.pill .dot { animation: none; }
.pill.live .dot { animation: atim 2.4s infinite; }

.gm { display: flex; align-items: center; gap: 4px; padding-left: 8px; margin-left: 2px; border-left: 1px solid var(--line); }
.gm-kim { display: flex; align-items: center; gap: 9px; padding: 3px 8px 3px 3px; border-radius: 30px; color: inherit; }
.gm-kim:hover { background: var(--hover); }
.av, .gm .avatar {
  width: 28px; height: 28px; flex-shrink: 0; border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 700; font-size: 12px; color: #fff;
  background: linear-gradient(140deg, var(--gold), var(--gold-deep));
}
.gm-yazi { display: flex; flex-direction: column; line-height: 1.2; }
.gm-ad { font-size: 12.5px; font-weight: 600; }
.gm-rol { font-size: 11px; color: var(--faint); }
.gm-cikis { margin: 0; }
.gm-cikis .iconlink { color: var(--faint); padding: 6px; }
.gm-cikis .iconlink:hover { color: var(--danger); background: var(--danger-soft); }

/* ---------- Bölüm sekme şeridi (her sayfanın üstünde) ---------- */
.sekmeler {
  display: flex; gap: 2px; width: fit-content; max-width: 100%;
  margin: 0 0 20px; padding: 3px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  overflow-x: auto; scrollbar-width: none;
}
.sekmeler::-webkit-scrollbar { display: none; }
.sekmeler a {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 13px; border-radius: 7px;
  font-size: 13px; font-weight: 500; color: var(--muted); white-space: nowrap;
  transition: background 0.12s, color 0.12s;
}
.sekmeler a:hover { color: var(--text); background: var(--hover); }
.sekmeler a.on { background: var(--gold-soft); color: var(--gold-lite); font-weight: 600; }

/* ---------- Kartlar ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
  position: relative; padding: 18px;
}
.card + .card, .row-head + .card, .grid + .card { margin-top: 14px; }
.card-head {
  display: flex; align-items: center; gap: 12px;
  margin: -18px -18px 16px; padding: 13px 18px;
  border-bottom: 1px solid var(--line);
}
.card-head h2 { font-size: 14px; }
.card-head .hint { margin-left: auto; font-size: 12px; color: var(--faint); }
.hint { color: var(--faint); font-size: 12px; }

.eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--faint); padding-bottom: 8px; border-bottom: 1px solid var(--line-soft);
}

.grid { display: grid; gap: 14px; }
.grid.stats { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-bottom: 14px; }
.cols { display: grid; grid-template-columns: 1.6fr 1fr; gap: 14px; margin-bottom: 14px; }
.cols3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 14px; }
.cols > .card, .cols3 > .card, .grid > .card { margin-top: 0; }

/* İstatistik kartı */
.stat { padding: 14px 16px; }
.stat .k {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  font-size: 12px; color: var(--muted); font-weight: 500;
}
.stat .v { font-size: 26px; margin: 8px 0 0; letter-spacing: -0.6px; font-weight: 600; line-height: 1.15; }
.stat .d { display: flex; align-items: center; gap: 8px; margin-top: 5px; font-size: 12px; color: var(--faint); }
.stat .d.up { color: var(--ok); }
.stat .d.down { color: var(--danger); }
.stat-ico {
  width: 30px; height: 30px; display: grid; place-items: center;
  border-radius: 8px; background: var(--gold-soft); color: var(--gold-lite); float: right;
}
.stat-ico svg { width: 16px; height: 16px; }
.stat-ico.i-ok { color: var(--ok); background: var(--ok-soft); }
.stat-ico.i-info { color: var(--info); background: var(--info-soft); }
.stat-ico.i-warn { color: var(--warn); background: var(--warn-soft); }
.stat-ico.i-violet { color: var(--violet); background: var(--violet-soft); }
.kivilcim { margin-top: 10px; display: block; width: 100%; height: 30px; }

/* ---------- Tablolar ----------
   Tek dil: .table / .rank / .ops-tablo / kartın içindeki çıplak <table>. Metin AÇIK renkte (eskiden soluk gri
   okunmuyordu), başlık küçük ve sakin, satır sıkı, hover belirgin. Tablo kartın ilk çocuğuysa kart
   kenarlara kadar açılır (çift girinti olmasın). */
:is(.table, .rank, .ops-tablo, .card table) { width: 100%; border-collapse: collapse; font-size: 13px; }
:is(.table, .rank, .ops-tablo, .card table) th {
  text-align: left; padding: 10px 14px; white-space: nowrap;
  font-size: 12px; font-weight: 600; letter-spacing: 0.01em; color: var(--faint);
  background: transparent; border-bottom: 1px solid var(--line);
}
:is(.table, .rank, .ops-tablo, .card table) td {
  padding: 10px 14px; vertical-align: middle; color: var(--text);
  border-bottom: 1px solid var(--line-soft); background: transparent;
}
:is(.table, .rank, .ops-tablo, .card table) tbody tr:last-child td { border-bottom: 0; }
:is(.table, .rank, .ops-tablo, .card table) tbody tr { transition: background 0.1s; }
:is(.table, .rank, .ops-tablo, .card table) tbody tr:hover td { background: var(--hover); }
:is(.table, .rank, .ops-tablo, .card table) :is(td, th).num { text-align: right; }
:is(.table, .rank, .ops-tablo, .card table) td small { color: var(--faint); }
:is(.table, .rank, .ops-tablo, .card table) td:has(> .iconlink):last-child,
:is(.table, .rank, .ops-tablo, .card table) td.tacts { white-space: nowrap; }
.rank td.rank, td.rank { color: var(--faint); width: 44px; font-variant-numeric: tabular-nums; }
.num { text-align: right; }

/* Kartın gövdesi doğrudan tablo ise kart kenara açılır. */
.card:is(:has(> table:first-child), :has(> div:first-child > table), :has(> .card-head + table), :has(> .card-head + div > table), :has(> .tablo-arac + .tablo-sarma), :has(> .card-head + .tablo-arac)) { padding: 0; }
.card:is(:has(> table:first-child), :has(> div:first-child > table), :has(> .card-head + table), :has(> .card-head + div > table), :has(> .tablo-arac + .tablo-sarma), :has(> .card-head + .tablo-arac)) > .card-head { margin: 0; }
.card:is(:has(> table:first-child), :has(> div:first-child > table), :has(> .card-head + table), :has(> .card-head + div > table), :has(> .tablo-arac + .tablo-sarma), :has(> .card-head + .tablo-arac)) table :is(th, td):first-child { padding-left: 18px; }
.card:is(:has(> table:first-child), :has(> div:first-child > table), :has(> .card-head + table), :has(> .card-head + div > table), :has(> .tablo-arac + .tablo-sarma), :has(> .card-head + .tablo-arac)) table :is(th, td):last-child { padding-right: 18px; }

/* panel.js'in tablolara eklediği araç çubuğu (arama + sayaç) ve uzun tablolarda kaydırma alanı */
.tablo-arac { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line-soft); }
.tablo-arama {
  display: flex; align-items: center; gap: 8px; flex: 0 1 300px;
  background: var(--field); border: 1px solid var(--line-strong); border-radius: 7px;
  padding: 0 10px; height: 32px; color: var(--faint);
}
.tablo-arama:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.tablo-arama svg { width: 14px; height: 14px; flex-shrink: 0; }
.tablo-arama input { all: unset; flex: 1; min-width: 0; font-size: 13px; color: var(--text); }
.tablo-arama input::placeholder { color: var(--faint); }
.tablo-sayac { font-size: 12px; color: var(--faint); margin-left: auto; white-space: nowrap; }
.tablo-sarma { overflow-x: auto; }
.tablo-sarma.uzun { max-height: 70vh; overflow: auto; }
.tablo-sarma.uzun th { position: sticky; top: 0; z-index: 2; background: var(--surface); box-shadow: 0 1px 0 var(--line); }
th.siralanabilir { cursor: pointer; user-select: none; }
th.siralanabilir:hover { color: var(--text); }
th.siralanabilir::after { content: ""; display: inline-block; width: 0; margin-left: 0; }
th.sirali-asc::after, th.sirali-desc::after { width: auto; margin-left: 5px; color: var(--gold-lite); }
th.sirali-asc::after { content: "↑"; }
th.sirali-desc::after { content: "↓"; }
th.sirali-asc, th.sirali-desc { color: var(--text); }
tr.tablo-gizli { display: none; }
.tablo-bos-satir td { text-align: center; color: var(--faint); padding: 26px 14px; }

.who { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.who .av { width: 28px; height: 28px; font-size: 11px; }
.who small { display: block; font-weight: 400; color: var(--faint); font-size: 12px; margin-top: 1px; }
.fig { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 7px; background: var(--surface-3); color: var(--muted); flex: 0 0 28px; }

/* Krallık rozetleri */
.kpill {
  display: inline-block; padding: 2px 9px;
  font-size: 11.5px; font-weight: 600; border-radius: 6px; border: 1px solid transparent;
}
.k-sh { color: var(--info); background: var(--info-soft); }
.k-ch { color: var(--warn); background: var(--warn-soft); }
.k-ji { color: var(--danger-lite); background: var(--danger-soft); }

/* ---------- Rozet & çip ---------- */
.badge {
  display: inline-block; padding: 2px 9px;
  font-size: 12px; font-weight: 600; line-height: 1.5;
  border-radius: 6px; border: 0; color: var(--muted); background: var(--surface-3);
}
.b-live, .b-ok { color: var(--ok); background: var(--ok-soft); }
.b-soon, .b-warn { color: var(--warn); background: var(--warn-soft); }
.b-off, .b-danger { color: var(--danger-lite); background: var(--danger-soft); }
.b-info { color: var(--info); background: var(--info-soft); }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; padding: 3px 10px; border-radius: 20px;
  border: 1px solid var(--line); color: var(--muted); background: var(--surface-2);
}

/* ---------- Liste ---------- */
.list { display: flex; flex-direction: column; }
.item { display: flex; align-items: flex-start; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line-soft); }
.item:last-child { border-bottom: 0; padding-bottom: 0; }
.item:first-child { padding-top: 0; }
.item .t { font-weight: 600; font-size: 13.5px; }
.item .s { font-size: 12.5px; color: var(--muted); margin-top: 2px; line-height: 1.5; }
.item .badge { margin-left: auto; flex-shrink: 0; }

/* ---------- Kanal durumu ---------- */
.ch-grid { display: flex; flex-direction: column; gap: 12px; }
.ch-satir { display: grid; grid-template-columns: 104px 1fr 66px; gap: 13px; align-items: center; font-size: 12.5px; }
.ch-satir .nm { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; }
.ch-satir .nokta { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; background: var(--ok); animation: atim 2.4s infinite; }
.ch-satir.off .nokta { background: var(--danger); animation: none; box-shadow: 0 0 0 3px var(--danger-soft); }
.ch-satir.yavas .nokta { background: var(--warn); animation: none; box-shadow: 0 0 0 3px var(--warn-soft); }
.ch-satir .ms { text-align: right; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.ch-satir.off .ms { color: var(--danger); font-weight: 700; }
.ch-ayrac { margin: 4px 0 2px; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
.cubuk { height: 8px; border-radius: 9px; overflow: hidden; background: var(--surface-3); }
.cubuk i { display: block; height: 100%; border-radius: 9px; }
.cubuk .y-ok { background: var(--ok); }
.cubuk .y-warn { background: var(--warn); }
.cubuk .y-off { background: var(--danger); }

/* ---------- Grafik (7 gün) ---------- */
.bars { display: flex; align-items: flex-end; gap: 9px; height: 120px; margin-bottom: 24px; }
.bars .b {
  flex: 1; min-width: 10px; position: relative;
  background: var(--gold-soft); border-radius: 5px 5px 0 0; border-top: 2px solid var(--gold); transition: 0.15s;
}
.bars .b:hover { background: color-mix(in srgb, var(--gold) 40%, transparent); }
.bars .b i { position: absolute; bottom: -20px; left: 0; right: 0; text-align: center; font-size: 11px; font-style: normal; color: var(--faint); }

/* ---------- Formlar & düğmeler ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 34px; padding: 0 14px; border-radius: 7px; font-size: 13px; cursor: pointer;
  font-family: inherit; font-weight: 600; line-height: 1; white-space: nowrap;
  background: var(--gold); color: #fff; border: 1px solid transparent;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
}
.btn:hover { background: var(--gold-deep); }
.btn:active { transform: translateY(1px); }
.btn-sm { height: 28px; padding: 0 11px; font-size: 12.5px; border-radius: 6px; }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn.ghost:hover { background: var(--hover); border-color: var(--faint); }
.btn.danger { background: var(--danger); color: #fff; }
.btn.danger:hover { background: color-mix(in srgb, var(--danger) 82%, black); }
.btn[disabled], .btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Tüm alanlar tek görünümde (özgüllük 0: sayfaya özel stiller yine üstün gelir). */
:where(input, select, textarea):not([type=checkbox], [type=radio], [type=range], [type=color], [type=file], [type=hidden], [type=submit], [type=button], [type=image]) {
  background: var(--field); color: var(--text);
  border: 1px solid var(--line-strong); border-radius: 7px;
  font: inherit; font-size: 13px; padding: 0 11px; height: 34px; outline: 0;
  transition: border-color 0.12s, box-shadow 0.12s;
}
:where(textarea) { height: auto; padding: 8px 11px; line-height: 1.5; }
:where(input, select, textarea):focus { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
:where(input, textarea)::placeholder { color: var(--faint); }
:where(input[type=checkbox], input[type=radio]) { accent-color: var(--gold); }
:where(select) { padding-right: 8px; }

.fld { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.fld label { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.fld input, .fld select, .fld textarea { width: 100%; }
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.formcard { max-width: 660px; }

.searchbox { display: flex; gap: 8px; }
.searchbox input, .searchbox select { min-width: 210px; }

.row-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.row-head h1 { margin: 0; }
.row-head .lead { margin: 4px 0 0; }
.acts, .tacts { display: flex; gap: 8px; align-items: center; }
.iconlink { color: var(--faint); display: inline-grid; place-items: center; padding: 5px 6px; border-radius: 6px; border: 1px solid transparent; cursor: pointer; background: none; font-size: 14px; }
.iconlink:hover { color: var(--text); background: var(--hover); }
.iconlink.del:hover { color: var(--danger); background: var(--danger-soft); }

.empty { text-align: center; color: var(--faint); padding: 32px 10px; font-size: 13px; }
.err {
  background: var(--danger-soft); color: var(--danger-lite);
  border: 1px solid rgba(234, 84, 85, 0.3);
  border-radius: 8px; font-size: 13px; padding: 10px 14px; margin-bottom: 14px;
}
.flash {
  background: var(--ok-soft); color: var(--ok);
  border: 1px solid rgba(40, 199, 111, 0.3);
  border-radius: 8px; font-size: 13px; padding: 10px 14px; margin-bottom: 14px;
}

/* ---------- Giriş ekranı ---------- */
.login {
  min-height: 100vh; display: grid; place-items: center; padding: 20px;
  background: radial-gradient(800px 420px at 50% -10%, var(--gold-soft), transparent 65%), var(--bg);
}
.login .card { width: 100%; max-width: 400px; padding: 30px 28px; }
.login .brand { justify-content: center; padding: 0 0 20px; border-bottom: 0; }

/* ---------- Log satırları ---------- */
.loglines { font: 12.5px/1.8 var(--mono); }
.loglines .row { display: flex; gap: 12px; padding: 5px 9px; border-radius: 6px; }
.loglines .row:nth-child(odd) { background: var(--surface-2); }
.loglines .zaman { color: var(--faint); flex-shrink: 0; }
.loglines .tur { font-weight: 700; flex-shrink: 0; width: 68px; }
.loglines .tur.ok { color: var(--ok); }
.loglines .tur.warn { color: var(--warn); }
.loglines .tur.err { color: var(--danger); }

/* ---------- Akış (zaman çizelgesi) ---------- */
.akis { position: relative; padding-left: 22px; }
.akis::before { content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 1px; background: var(--line); }
.akis-madde { position: relative; padding: 0 0 16px; }
.akis-madde:last-child { padding-bottom: 0; }
.akis-madde::before {
  content: ""; position: absolute; left: -21px; top: 5px;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--gold);
}
.akis-madde.la::before { border-color: var(--danger); }
.akis-madde.ye::before { border-color: var(--ok); }
.akis-madde .zmn { font-size: 11.5px; color: var(--faint); }
.akis-madde p { margin: 3px 0 0; font-size: 13px; line-height: 1.55; color: var(--muted); }
.akis-madde p b { color: var(--text); font-weight: 600; }

/* ---------- Onay kutusu ---------- */
.onay { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); cursor: pointer; user-select: none; }
.onay input { width: 15px; height: 15px; cursor: pointer; }

/* ---------- Tanıtım videoları ---------- */
.vid-izgara { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.vid-kart { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface-2); transition: border-color .18s; }
.vid-kart:hover { border-color: var(--line-strong); }
.vid-kart.pasif { opacity: 0.5; }
.vid-kapak { display: block; position: relative; aspect-ratio: 16/9; background-size: cover; background-position: center; background-color: #000; }
.vid-play {
  position: absolute; inset: 0; margin: auto; width: 46px; height: 46px;
  display: grid; place-items: center; border-radius: 50%;
  background: rgba(234, 84, 85, 0.92); color: #fff; font-size: 16px; padding-left: 3px;
  box-shadow: 0 6px 18px -6px #000; transition: transform .18s;
}
.vid-kapak:hover .vid-play { transform: scale(1.12); }
.vid-govde { padding: 10px 12px 12px; }
.vid-alt { display: flex; align-items: center; gap: 8px; margin-top: 8px; }

/* ============================================================
   Oyun Paneli (_araclar/OYUN_PANEL_SARTNAME.md) — reload kutusu,
   değişiklik geçmişi, eşya çipi.
   ============================================================ */
.oy-reload { border-color: var(--warn-soft); }
.oy-reload-satir { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 0; border-bottom: 1px dashed var(--line-soft); }
.oy-reload-satir:last-of-type { border-bottom: 0; }
.oy-komut { font-family: var(--mono); background: var(--field); color: var(--gold-lite); padding: 3px 8px; border-radius: 6px; border: 1px solid var(--line); font-size: 12.5px; }
.oy-reload-adet { color: var(--muted); font-size: 12px; }
.oy-fark { background: var(--warn-soft); }
.oy-esya { display: inline-flex; align-items: center; gap: 6px; }
.oy-esya img { border-radius: 4px; flex: none; }
.oy-esya-ad { font-size: 12.5px; }
.oy-yon { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.oy-yon-baslik { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.oy-stub { text-align: center; padding: 44px 20px; color: var(--muted); }
.oy-stub svg { opacity: .5; margin-bottom: 10px; }
.oy-uyari {
  display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px;
  border: 1px solid rgba(255, 159, 67, 0.3); background: var(--warn-soft); border-radius: 8px;
  font-size: 12.5px; color: var(--text); margin: 10px 0;
}


/* ---------- Kontrol paneli (admin/index.php) ---------- */
.acts.hizli { flex-wrap: wrap; }
.cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.card.dikkat { margin-bottom: 14px; border-color: var(--line-strong); }
.dikkat-satir { align-items: center; padding: 10px 0; }
a.dikkat-satir:hover .t { color: var(--gold-lite); }
.dikkat-satir .t { flex: 1; min-width: 0; font-weight: 500; }
.dikkat-ico { width: 30px; height: 30px; flex: 0 0 30px; display: grid; place-items: center; border-radius: 8px; background: var(--info-soft); color: var(--info); }
.dikkat-ico.dikkat-warn { background: var(--warn-soft); color: var(--warn); }
.dikkat-ico.dikkat-danger { background: var(--danger-soft); color: var(--danger-lite); }
.dikkat-yok {
  display: flex; align-items: center; gap: 9px; margin-bottom: 14px; padding: 10px 14px;
  border: 1px solid rgba(40, 199, 111, 0.25); background: var(--ok-soft); color: var(--ok);
  border-radius: var(--radius); font-size: 13px; font-weight: 500;
}
.dagilim { display: flex; flex-direction: column; gap: 14px; }
.dagilim-satir { display: grid; grid-template-columns: 96px 1fr auto; gap: 12px; align-items: center; font-size: 13px; }
.dagilim-satir .cubuk { height: 8px; }
.dagilim-sinif { display: flex; align-items: center; gap: 8px; }
.dagilim-sinif img { width: 20px; height: 20px; border-radius: 5px; object-fit: cover; }
.dagilim-say { text-align: right; min-width: 78px; }
.dagilim-say small { color: var(--faint); margin-left: 4px; }
@media (max-width: 1080px) { .cols2 { grid-template-columns: 1fr; } }

/* ---------- Duyarlılık ---------- */
.side .kapat { display: none; }
.menu-ac { display: none; }
@media (max-width: 1080px) {
  .cols, .cols3, .oy-yon { grid-template-columns: 1fr; }
  .side {
    position: fixed; left: 0; top: 0; bottom: 0;
    transform: translateX(-100%); transition: transform 0.26s ease;
  }
  .side.acik { transform: none; box-shadow: 30px 0 60px -20px rgba(0, 0, 0, 0.6); }
  .side .kapat { display: grid; position: absolute; top: 12px; right: 10px; }
  .side-perde { position: fixed; inset: 0; z-index: 35; background: rgba(0, 0, 0, 0.55); }
  .app:has(.side.acik) .side-perde { display: block; }
  .sayfa { padding: 18px 16px 48px; }
  .topbar { padding: 0 14px; }
  .menu-ac { display: grid !important; }
  .gm-yazi { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .side { transition: none; }
}

/* ── Destek talepleri (admin/destek.php): yöneticiler telefondan da bakabilsin ── */
@media (min-width: 1081px) {
  .cols.destek-detay { grid-template-columns: 1.5fr 1fr; }
}
.destek-acts { flex-wrap: wrap; }
@media (max-width: 720px) {
  .destek-acts { width: 100%; }
  .destek-acts form, .destek-acts > .btn { flex: 1 1 auto; }
  .destek-acts .btn { width: 100%; justify-content: center; min-height: 40px; }
  table.destek-liste thead { display: none; }
  table.destek-liste, table.destek-liste tbody { display: block; width: 100%; }
  table.destek-liste tr {
    display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: center;
    padding: 12px 2px; border-bottom: 1px solid var(--line);
  }
  table.destek-liste td { display: block; border: 0; padding: 0; text-align: left; }
  table.destek-liste td[data-etiket]::before {
    content: attr(data-etiket); display: block; margin-bottom: 2px;
    font-size: 11px; color: var(--faint);
  }
  table.destek-liste td.destek-konu { grid-column: 1 / -1; font-size: 14px; }
  table.destek-liste td.destek-ac { grid-column: 1 / -1; }
  table.destek-liste td.destek-ac .btn { width: 100%; justify-content: center; min-height: 40px; }
}

/* ── Dar telefon (≤640px): üst şerit sıkışır, arama düğmesi yalnız ikon ── */
@media (max-width: 640px) {
  .topbar { gap: 6px; }
  .iz-bolum, .iz-ayrac { display: none; }
  .iz { flex: 1 1 auto; min-width: 0; }
  .iz-sayfa { font-size: 13px; }
  .topbar .ops-ara-btn { flex: 0 0 auto; margin-left: 0; }
  .gm { padding-left: 4px; }
  .frow { grid-template-columns: 1fr; }
}
