/* =====================================================================
   SASP — SAN ANDREAS STATE POLICE · TASARIM SİSTEMİ v3 (sıfırdan)
   Kimlik: lacivert zemin · gümüş/çelik tonlar · tek mavi vurgu · kısıtlı altın
   Bölümler:
     1. Tasarım değişkenleri & temel
     2. Tipografi, butonlar, formlar
     3. Rozet / etiket / durum bileşenleri
     4. Panel kabuğu (sidebar, topbar, KPI, araç çubuğu)
     5. Listeler, kartlar, tablo, memur profili
     6. Panel sayfaları (mazeret, liderlik, analiz, arşiv, yönetim, CMS, birimler)
     7. Modal, lightbox, toast, giriş ekranı
     8. Herkese açık ana sayfa
     9. Duyarlı (responsive) kurallar
   ===================================================================== */

/* ============================ 1. DEĞİŞKENLER & TEMEL ============================ */
:root {
  --bg: #060a12;
  --bg-2: #0a101b;
  --surface: #0e1522;
  --surface-2: #131c2e;
  --surface-3: #1a2540;
  --input: #0a111d;

  --line: rgba(150, 170, 205, 0.11);
  --line-2: rgba(150, 170, 205, 0.22);
  --border: var(--line);
  --border-hi: var(--line-2);

  --text: #edf1f8;
  --soft: #b3bfd2;
  --muted: #76859b;
  --steel: #c5ccd9;

  --accent: #4f8cff;
  --accent-2: #7eaaff;
  --accent-soft: rgba(79, 140, 255, 0.13);
  --gold: #d8b25b;
  --gold-lt: #efd08a;
  --gold-soft: rgba(216, 178, 91, 0.13);
  --green: #2fcf94;
  --amber: #f4a93b;
  --red: #f06461;
  --cyan: #35c6d9;
  --blue: var(--accent);

  --r-xs: 6px;
  --r-sm: 8px;
  --r: 11px;
  --r-lg: 15px;
  --r-xl: 22px;

  --shadow-1: 0 1px 0 rgba(255, 255, 255, 0.025) inset, 0 8px 22px rgba(0, 0, 0, 0.26);
  --shadow-2: 0 28px 70px rgba(0, 0, 0, 0.62);

  --font: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --display: 'Barlow Condensed', 'Inter', 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  background-image: radial-gradient(ellipse 80% 42% at 50% -8%, rgba(46, 76, 140, 0.2), transparent 70%);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; }
a { color: inherit; }
button { font-family: inherit; }

::selection { background: rgba(79, 140, 255, 0.4); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ince, modern kaydırma çubukları */
* { scrollbar-width: thin; scrollbar-color: rgba(150, 170, 205, 0.22) transparent; }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(150, 170, 205, 0.2); border-radius: 99px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: rgba(150, 170, 205, 0.34); background-clip: content-box; }

.mono { font-family: var(--mono); }
code {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent-2);
  background: var(--accent-soft);
  border: 1px solid rgba(79, 140, 255, 0.24);
  padding: 1px 6px;
  border-radius: 5px;
}

.divider { border: none; border-top: 1px solid var(--line); margin: 18px 0; }

/* ============================ 2. TİPOGRAFİ, BUTON, FORM ============================ */
h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.01em; color: #fff; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 15px;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  color: var(--text);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[disabled] { opacity: 0.4; cursor: not-allowed; pointer-events: none; }
.btn-sm { min-height: 31px; padding: 0 12px; font-size: 12.5px; }
.btn-xs { min-height: 25px; padding: 0 9px; font-size: 11.5px; border-radius: 7px; }

.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset; }
.btn-primary:hover { background: #6199ff; }
.btn-success { background: rgba(47, 207, 148, 0.16); border-color: rgba(47, 207, 148, 0.42); color: #7ff0c3; }
.btn-success:hover { background: rgba(47, 207, 148, 0.28); color: #fff; }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { background: #f67d7a; }
.btn-gold { background: var(--gold); color: #1a1405; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset; }
.btn-gold:hover { background: #e4c071; }
.btn-outline { background: var(--surface-2); border-color: var(--line-2); color: var(--text); }
.btn-outline:hover { background: var(--surface-3); border-color: rgba(150, 170, 205, 0.4); }
.btn-danger-outline { background: rgba(240, 100, 97, 0.1); border-color: rgba(240, 100, 97, 0.38); color: #ff9c99; }
.btn-danger-outline:hover { background: rgba(240, 100, 97, 0.22); color: #fff; }
.btn-archive { background: rgba(53, 198, 217, 0.1); border-color: rgba(53, 198, 217, 0.34); color: #7be3f0; }
.btn-archive:hover { background: rgba(53, 198, 217, 0.22); color: #fff; }

.btn-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

input, select, textarea {
  width: 100%;
  background: var(--input);
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 13.5px;
  line-height: 1.45;
  padding: 9px 12px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
input::placeholder, textarea::placeholder { color: #5b6a80; }
input:hover, select:hover, textarea:hover { border-color: rgba(150, 170, 205, 0.34); }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(79, 140, 255, 0.18);
  background: #0c1422;
}
select {
  min-height: 38px;
  cursor: pointer;
  color-scheme: dark;
  padding-right: 12px;
}
select option { background: #0e1626; color: var(--text); }
textarea { resize: vertical; min-height: 70px; }
input[type='checkbox'] { width: 16px; height: 16px; padding: 0; accent-color: var(--accent); cursor: pointer; }
input[type='month'], input[type='date'] { color-scheme: dark; }

label { display: block; font-size: 12px; font-weight: 600; color: var(--soft); margin-bottom: 6px; }
.field-help { display: block; margin-top: 6px; font-size: 11.5px; color: var(--muted); line-height: 1.5; }
.form-stack { display: flex; flex-direction: column; gap: 14px; }
.two-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

.cols-config-box { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; }

.cms-toggle-row {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  margin-bottom: 0;
}
.cms-toggle-row input[type='checkbox'] { width: 17px; height: 17px; }

/* ============================ 3. ROZET / ETİKET / DURUM ============================ */
.badge-tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--gold-soft);
  color: var(--gold-lt);
  border: 1px solid rgba(216, 178, 91, 0.3);
}
.rank-tag {
  display: inline-flex;
  align-items: center;
  font-size: 11.5px;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 99px;
  background: var(--accent-soft);
  color: var(--accent-2);
  border: 1px solid rgba(79, 140, 255, 0.26);
}
.unit-tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(150, 170, 205, 0.09);
  color: var(--steel);
  border: 1px solid var(--line-2);
}
.off-chip-mini {
  display: inline-flex;
  align-items: center;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 5px;
  background: rgba(150, 170, 205, 0.08);
  border: 1px solid var(--line);
  color: var(--soft);
}
.off-chip-mini.is-class { color: var(--accent-2); background: var(--accent-soft); border-color: rgba(79, 140, 255, 0.24); }
.off-chip-mini.is-muted { color: var(--muted); }

.report-id-tag {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-lt);
  background: var(--gold-soft);
  padding: 2px 9px;
  border-radius: 5px;
}
.url-chip {
  display: inline-flex;
  font-size: 12px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 5px 11px;
  border-radius: var(--r-sm);
}
.hint-text { font-size: 12px; color: var(--muted); }

.badge-pill {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  min-width: 20px;
  text-align: center;
  padding: 1px 7px;
  border-radius: 99px;
  background: var(--gold-soft);
  color: var(--gold-lt);
  border: 1px solid rgba(216, 178, 91, 0.32);
}
.badge-pill.excuse-pill { background: rgba(240, 100, 97, 0.12); color: #ff9c99; border-color: rgba(240, 100, 97, 0.3); }
.badge-pill.archive-pill { background: rgba(53, 198, 217, 0.12); color: #7be3f0; border-color: rgba(53, 198, 217, 0.3); }
.badge-pill.rankup-pill { background: var(--gold-soft); color: var(--gold-lt); }
.badge-pill[data-count='0'] { opacity: 0.4; background: transparent; color: var(--muted); border-color: var(--line); }

.cat-count {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 99px;
  background: rgba(150, 170, 205, 0.13);
  color: var(--soft);
}

.roster-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 99px;
  border: 1px solid var(--line-2);
  color: var(--soft);
  white-space: nowrap;
}
.roster-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.roster-status-pill.is-aktif { color: #6fe7bc; background: rgba(47, 207, 148, 0.1); border-color: rgba(47, 207, 148, 0.3); }
.roster-status-pill.is-izinli { color: #f9c773; background: rgba(244, 169, 59, 0.1); border-color: rgba(244, 169, 59, 0.3); }
.roster-status-pill.is-pasif { color: #ff9c99; background: rgba(240, 100, 97, 0.1); border-color: rgba(240, 100, 97, 0.3); }

.rankup-badge {
  display: inline-flex;
  align-items: center;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 99px;
  border: 1px solid transparent;
  white-space: nowrap;
}
.rankup-badge.is-overdue { color: #ffb1ae; background: rgba(240, 100, 97, 0.14); border-color: rgba(240, 100, 97, 0.38); }
.rankup-badge.is-today { color: #ffe08a; background: rgba(244, 196, 59, 0.16); border-color: rgba(244, 196, 59, 0.45); }
.rankup-badge.is-soon { color: #f9c773; background: rgba(244, 169, 59, 0.12); border-color: rgba(244, 169, 59, 0.34); }
.rankup-badge.is-planned { color: var(--accent-2); background: var(--accent-soft); border-color: rgba(79, 140, 255, 0.28); }
.rankup-badge.is-none { color: var(--muted); background: rgba(150, 170, 205, 0.08); border-color: var(--line); }
.rankup-arrow { color: var(--gold-lt); font-weight: 700; margin: 0 4px; }

.role-badge { display: inline-flex; align-items: center; font-size: 10.5px; font-weight: 700; letter-spacing: 0.02em; padding: 2px 8px; border-radius: 6px; border: 1px solid transparent; }
.role-badge.written { background: rgba(47, 207, 148, 0.12); color: #6fe7bc; border-color: rgba(47, 207, 148, 0.32); }
.role-badge.involved { background: var(--accent-soft); color: var(--accent-2); border-color: rgba(79, 140, 255, 0.3); }
.role-badge.pending { background: rgba(244, 169, 59, 0.13); color: #f9c773; border-color: rgba(244, 169, 59, 0.38); }
.role-badge.rejected { background: rgba(240, 100, 97, 0.13); color: #ff9c99; border-color: rgba(240, 100, 97, 0.38); }

.excuse-active-pill {
  display: inline-flex;
  align-items: center;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 99px;
  background: rgba(240, 100, 97, 0.12);
  color: #ff9c99;
  border: 1px solid rgba(240, 100, 97, 0.32);
}

.excuse-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 2px 9px;
  border-radius: 99px;
  border: 1px solid transparent;
}
.excuse-status-pill.is-active { background: rgba(47, 207, 148, 0.12); border-color: rgba(47, 207, 148, 0.34); color: #6fe7bc; }
.excuse-status-pill.is-upcoming { background: var(--accent-soft); border-color: rgba(79, 140, 255, 0.34); color: var(--accent-2); }
.excuse-status-pill.is-completed { background: rgba(150, 170, 205, 0.1); border-color: var(--line-2); color: var(--soft); }
.excuse-status-pill.is-ended { background: rgba(244, 169, 59, 0.12); border-color: rgba(244, 169, 59, 0.34); color: #f9c773; }
.excuse-status-pill.is-rejected { background: rgba(240, 100, 97, 0.12); border-color: rgba(240, 100, 97, 0.36); color: #ff9c99; }
.excuse-status-pill.is-pending { background: var(--gold-soft); border-color: rgba(216, 178, 91, 0.36); color: var(--gold-lt); }

.excuse-reject-reason-box {
  margin-top: 8px;
  padding: 8px 12px;
  border-radius: var(--r-sm);
  background: rgba(240, 100, 97, 0.08);
  border: 1px solid rgba(240, 100, 97, 0.24);
  border-left: 3px solid var(--red);
  color: #ffc4c2;
  font-size: 12.5px;
}

.note-kind-pill { display: inline-flex; align-items: center; font-size: 10.5px; font-weight: 700; padding: 2px 8px; border-radius: 99px; border: 1px solid transparent; }
.note-kind-pill.commend { background: rgba(47, 207, 148, 0.12); color: #6fe7bc; border-color: rgba(47, 207, 148, 0.32); }
.note-kind-pill.warning { background: rgba(240, 100, 97, 0.12); color: #ff9c99; border-color: rgba(240, 100, 97, 0.32); }
.note-kind-pill.note { background: var(--accent-soft); color: var(--accent-2); border-color: rgba(79, 140, 255, 0.3); }

.archived-tag-mini { font-size: 10.5px; font-weight: 700; padding: 2px 7px; border-radius: 6px; background: rgba(53, 198, 217, 0.1); color: #7be3f0; border: 1px solid rgba(53, 198, 217, 0.28); }

.status-pill { display: inline-flex; align-items: center; font-size: 10.5px; font-weight: 700; padding: 2px 8px; border-radius: 99px; }
.status-pill.active { background: rgba(47, 207, 148, 0.12); color: #6fe7bc; border: 1px solid rgba(47, 207, 148, 0.32); }
.status-pill.inactive { background: rgba(240, 100, 97, 0.12); color: #ff9c99; border: 1px solid rgba(240, 100, 97, 0.32); }

.conn-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  min-height: 31px;
  border-radius: 99px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 600;
  color: var(--soft);
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); }
.dot.online { background: var(--green); box-shadow: 0 0 0 3px rgba(47, 207, 148, 0.18); }

.user-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 12px;
  border-radius: var(--r-sm);
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.user-pill:hover { background: var(--surface-3); border-color: rgba(150, 170, 205, 0.4); }

.avatar {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 11px;
  background: var(--surface-3);
  border: 1px solid var(--line-2);
  color: var(--steel);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.avatar.lg { width: 68px; height: 68px; border-radius: 16px; font-size: 20px; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }

.sasp-logo-img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.crest-box {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #05080f;
  border: 1.5px solid rgba(197, 204, 217, 0.34);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}
.crest-box.sm { width: 38px; height: 38px; }



/* ============================ 4. PANEL KABUĞU ============================ */
.shell { position: relative; z-index: 1; min-height: 100vh; }
.app-layout { display: flex; min-height: 100vh; }

/* ---- Sidebar ---- */
.sidebar {
  width: 248px;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-2);
  border-right: 1px solid var(--line);
  padding: 18px 12px 14px;
  z-index: 60;
}
.sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(3, 6, 12, 0.7); backdrop-filter: blur(3px); z-index: 55; }

.sb-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 2px 8px 16px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.sb-brand .crest-box { width: 40px; height: 40px; }
.sb-brand-text { flex: 1; min-width: 0; }
.sb-brand-text h1 {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.05;
  color: #fff;
}
.sb-brand-text p { font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }
.sb-close-btn { display: none; background: transparent; border: 1px solid var(--line-2); color: var(--soft); border-radius: 8px; width: 30px; height: 30px; cursor: pointer; font-size: 13px; }

.sb-nav { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 18px; padding: 0 2px 6px; }
.sb-group { display: flex; flex-direction: column; gap: 1px; }
.sb-group-title { font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #566379; padding: 0 10px 6px; }

.nav-link {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 36px;
  padding: 0 10px;
  background: transparent;
  border: none;
  border-radius: var(--r-sm);
  color: var(--soft);
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background 0.14s ease, color 0.14s ease;
}
.nav-lbl { display: inline-flex; align-items: center; gap: 11px; min-width: 0; }
.nav-ico { width: 16px; height: 16px; flex-shrink: 0; color: #5f6e86; transition: color 0.14s ease; }
.nav-link:hover { background: rgba(150, 170, 205, 0.07); color: #fff; }
.nav-link:hover .nav-ico { color: var(--steel); }
.nav-link.active { background: var(--accent-soft); color: #fff; font-weight: 600; }
.nav-link.active::before { content: ''; position: absolute; left: -2px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); }
.nav-link.active .nav-ico { color: var(--accent-2); }

.sb-footer { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.sb-user-card { width: 100%; justify-content: flex-start; background: var(--surface); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-footer-btns { display: flex; gap: 6px; }

/* ---- Ana alan & üst bar ---- */
.main-area { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 64px;
  padding: 10px 30px;
  background: rgba(6, 10, 18, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.topbar-left h2 {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.05;
  color: #fff;
}
.topbar-left p { font-size: 12px; color: var(--muted); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mobile-menu-btn { display: none; padding: 0 10px; }
.topbar-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.container { width: 100%; max-width: 1360px; margin: 0 auto; padding: 26px 30px 70px; }
.view { display: none; }
.view.active { display: block; animation: viewIn 0.22s ease; }
@keyframes viewIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---- KPI kartları ---- */
.stats-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.kpi-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 18px 20px 16px;
  box-shadow: var(--shadow-1);
  overflow: hidden;
}
.kpi-card::before { content: ''; position: absolute; left: 20px; top: 0; width: 26px; height: 3px; border-radius: 0 0 3px 3px; background: var(--accent); }
.kpi-card.gold::before { background: var(--gold); }
.kpi-card.amber::before { background: var(--amber); }
.kpi-card.cyan::before { background: var(--cyan); }
.kpi-card.clickable { cursor: pointer; transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease; }
.kpi-card.clickable:hover { border-color: var(--line-2); background: var(--surface-2); transform: translateY(-2px); }
.kpi-label { display: block; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.kpi-val { display: block; font-family: var(--mono); font-size: 28px; font-weight: 700; letter-spacing: -0.02em; color: #fff; margin: 7px 0 4px; font-variant-numeric: tabular-nums; }
.kpi-sub { display: block; font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---- Araç çubuğu, arama, filtre hapları ---- */
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.toolbar-right { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.toolbar-right select { width: auto; }
.sub-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.back-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }

.search-box { position: relative; flex: 1; min-width: 230px; max-width: 440px; }
.search-box svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--muted); pointer-events: none; }
.search-box input { padding-left: 36px; }

.filter-pills, .pill-group { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); }
.pill {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: color 0.14s ease, background 0.14s ease;
}
.pill:hover { color: var(--text); }
.pill.active { background: var(--surface-3); color: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset; }

.command-brief-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 16px;
  margin-bottom: 18px;
  border-radius: var(--r);
  background: var(--gold-soft);
  border: 1px solid rgba(216, 178, 91, 0.26);
  font-size: 13px;
  color: var(--text);
}
.command-brief-chips { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.command-brief-chip { font-size: 13px; color: var(--text); }

.info-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--accent-soft);
  border: 1px solid rgba(79, 140, 255, 0.22);
  border-left: 3px solid var(--accent);
  border-radius: var(--r);
  padding: 13px 16px;
  margin-bottom: 18px;
  font-size: 13px;
  color: var(--soft);
  line-height: 1.55;
}

.empty-box {
  background: transparent;
  border: 1px dashed var(--line-2);
  border-radius: var(--r-lg);
  padding: 40px 24px;
  text-align: center;
  color: var(--muted);
}
.empty-box h3 { color: #fff; font-size: 16px; margin-bottom: 6px; }
.empty-box p { font-size: 13px; max-width: 480px; margin: 0 auto; line-height: 1.55; }

/* ============================ 5. LİSTE, KART, TABLO, PROFİL ============================ */
.excuse-section-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 20px 22px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-1);
}
.excuse-section-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.excuse-section-head h3 { font-size: 15.5px; font-weight: 700; color: #fff; letter-spacing: -0.005em; }
.excuse-section-head p { font-size: 12.5px; color: var(--muted); margin-top: 3px; }

/* Satır listesi */
.report-rows { display: flex; flex-direction: column; gap: 8px; }
.report-row {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 13px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  cursor: pointer;
  transition: background 0.14s ease, border-color 0.14s ease;
}
.report-row:hover { background: var(--surface-2); border-color: var(--line-2); }
.row-left { display: flex; align-items: center; gap: 14px; min-width: 0; flex: 1; }
.row-thumb { width: 60px; height: 42px; flex-shrink: 0; border-radius: 8px; border: 1px solid var(--line); background: var(--input); overflow: hidden; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 16px; }
.row-thumb img { width: 100%; height: 100%; object-fit: cover; }
.row-thumb-code { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; color: var(--soft); text-transform: uppercase; }
.row-thumb-code.is-danger { color: #f6a09e; }
.row-thumb-code.is-gold { color: var(--gold-lt); }
.row-thumb-code.is-accent { color: var(--accent-2); }
.off-top { display: flex; align-items: center; gap: 11px; }
.off-top .off-title { min-width: 0; flex: 1; }
.row-info { min-width: 0; }
.row-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.row-top h4 { font-size: 14.5px; font-weight: 600; color: #fff; letter-spacing: -0.005em; }
.row-sub { font-size: 12px; color: var(--muted); display: flex; gap: 6px 14px; flex-wrap: wrap; }
.row-right { display: flex; align-items: center; gap: 10px; }
.detail-cue { font-size: 12px; font-weight: 600; color: var(--muted); transition: color 0.14s ease; }
.report-row:hover .detail-cue { color: var(--accent-2); }

/* Memur kartları */
.officers-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.officer-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 16px 17px 14px;
  display: flex;
  flex-direction: column;
  gap: 13px;
  cursor: pointer;
  box-shadow: var(--shadow-1);
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.officer-card:hover { transform: translateY(-2px); background: var(--surface-2); border-color: rgba(216, 178, 91, 0.4); }
.off-head-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.off-identity { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; }
.off-title { flex: 1; min-width: 0; }
.off-title h3 { font-size: 15px; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.off-subline { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.off-badge-mono { font-family: var(--mono); font-size: 11.5px; font-weight: 700; color: var(--gold-lt); }
.off-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 5px; }
.off-tags-row { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; min-height: 22px; }

.off-metrics-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r); padding: 9px 4px; }
.off-m-cell { text-align: center; padding: 0 4px; border-right: 1px solid var(--line); }
.off-m-cell:last-child { border-right: none; }
.off-m-cell small { display: block; font-size: 10px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.off-m-cell strong { font-family: var(--mono); font-size: 16px; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
.off-m-cell.is-primary strong { color: var(--gold-lt); }

.off-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-top: 11px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--muted); }
.off-foot-actions { display: inline-flex; align-items: center; gap: 8px; }

/* Memur tablo görünümü */
.officers-table-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow-x: auto; box-shadow: var(--shadow-1); }
.officers-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.officers-table th { text-align: left; font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); padding: 13px 16px; border-bottom: 1px solid var(--line); background: var(--bg-2); white-space: nowrap; }
.officers-table td { padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--text); vertical-align: middle; }
.officers-table tbody tr { cursor: pointer; transition: background 0.12s ease; }
.officers-table tbody tr:hover { background: var(--surface-2); }
.officers-table tbody tr:last-child td { border-bottom: none; }

/* Memur profil sayfası */
.officer-hero {
  background: linear-gradient(135deg, var(--surface-2), var(--surface) 62%);
  border: 1px solid var(--line-2);
  border-radius: var(--r-xl);
  padding: 24px 26px;
  margin-bottom: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-1);
}
.hero-left { display: flex; align-items: center; gap: 18px; }
.hero-left h2 { font-family: var(--display); font-size: 32px; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; line-height: 1.05; }
.hero-right { display: flex; flex-direction: column; align-items: flex-end; gap: 11px; }
.hero-stats { display: grid; grid-template-columns: repeat(3, minmax(108px, 1fr)); gap: 8px; }
.h-stat { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 14px; text-align: left; }
.h-stat small { display: block; font-size: 10.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.h-stat strong { font-family: var(--mono); font-size: 22px; font-weight: 700; color: #fff; }
.h-stat.gold { border-color: rgba(216, 178, 91, 0.3); }
.h-stat.gold strong { color: var(--gold-lt); }

.hero-archive-strip {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  background: rgba(53, 198, 217, 0.07); border: 1px solid rgba(53, 198, 217, 0.26);
  border-radius: var(--r); padding: 11px 16px; margin-bottom: 18px; font-size: 13px; color: #c6f2f8;
}

.docs-profile-card { margin: 0 0 18px; padding: 18px 20px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.docs-profile-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
.docs-profile-head h3 { font-size: 14.5px; font-weight: 700; color: #fff; }
.docs-profile-grid { display: grid; grid-template-columns: 1.35fr 1fr 1.15fr; gap: 14px; }
.docs-subbox { padding: 13px 15px; border-radius: var(--r); background: var(--bg-2); border: 1px solid var(--line); }
.docs-subbox small { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.docs-cert-list { display: flex; flex-wrap: wrap; gap: 6px; }
.docs-cert-badge, .docs-class-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; padding: 4px 10px; border-radius: 7px; border: 1px solid var(--line); }
.docs-cert-badge.owned { color: var(--gold-lt); background: var(--gold-soft); border-color: rgba(216, 178, 91, 0.4); }
.docs-class-badge.owned { color: #6fe7bc; background: rgba(47, 207, 148, 0.1); border-color: rgba(47, 207, 148, 0.34); }
.docs-cert-badge.unowned, .docs-class-badge.unowned { color: #56647a; background: transparent; opacity: 0.7; }
.docs-rankup-dates { display: flex; flex-direction: column; gap: 8px; font-size: 12.5px; color: var(--text); }
.docs-date-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }

/* Kategori sekmeleri (alt çizgili) */
.category-tabs { display: flex; gap: 2px; flex-wrap: wrap; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.cat-tab {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; border: none; border-bottom: 2px solid transparent; margin-bottom: -1px;
  color: var(--muted); font-size: 13px; font-weight: 600; padding: 11px 15px; cursor: pointer;
  transition: color 0.14s ease, border-color 0.14s ease;
}
.cat-tab:hover { color: var(--text); }
.cat-tab.active { color: #fff; border-bottom-color: var(--gold); }
.cat-panel { display: none; }
.cat-panel.active { display: block; }

/* Detay kartları, memur çipleri, görseller */
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.detail-card { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r); padding: 13px 14px; }
.detail-card.full { grid-column: 1 / -1; }
.detail-card small { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 7px; }

.officer-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--accent-soft); border: 1px solid rgba(79, 140, 255, 0.28); color: #d6e4ff; padding: 4px 11px; border-radius: 7px; font-size: 12.5px; font-weight: 600; cursor: pointer; margin: 2px 4px 2px 0; transition: filter 0.14s ease; }
.officer-chip.writer { background: rgba(47, 207, 148, 0.1); border-color: rgba(47, 207, 148, 0.34); color: #b3f5dc; }
.officer-chip:hover { filter: brightness(1.2); }

.screenshot-frame { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: #03060c; cursor: zoom-in; }
.screenshot-frame img { width: 100%; max-height: 420px; object-fit: contain; display: block; }
.mugshot-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.mugshot-gallery .screenshot-frame img { max-height: 300px; }
.linked-mugshots-section { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.linked-mugshot-card { background: var(--bg-2); border: 1px solid rgba(53, 198, 217, 0.28); border-radius: var(--r); padding: 14px; margin-bottom: 10px; }
.linked-mugshot-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.linked-mugshot-thumbs { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin-top: 8px; }
.linked-mugshot-thumbs .screenshot-frame img { max-height: 180px; }

.edit-officer-picker { max-height: 180px; overflow-y: auto; background: var(--input); border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 8px; display: grid; grid-template-columns: repeat(auto-fill, minmax(195px, 1fr)); gap: 6px; }
.edit-off-check { display: flex !important; align-items: center; gap: 8px; font-size: 12px !important; font-weight: 500 !important; margin: 0 !important; padding: 5px 7px; border-radius: 7px; cursor: pointer; }
.edit-off-check:hover { background: rgba(150, 170, 205, 0.08); }
.edit-off-check input { width: auto; padding: 0; }

.pending-bulk-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 16px; margin-bottom: 12px; border-radius: var(--r); background: var(--accent-soft); border: 1px solid rgba(79, 140, 255, 0.28); }
.pending-row-check { width: 16px !important; height: 16px !important; min-height: 16px !important; padding: 0 !important; margin-right: 4px; accent-color: var(--green); cursor: pointer; flex-shrink: 0; }

/* Modern Yetkili & Sebep Çipleri (#2) */
.row-sub-pill { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 6px; background: rgba(150, 170, 205, 0.08); border: 1px solid var(--line); color: var(--soft); font-size: 11.5px; font-weight: 500; }
.row-sub-pill.is-warn { color: var(--gold-lt); background: var(--gold-soft); border-color: rgba(216, 178, 91, 0.28); }
.row-sub-text { color: var(--soft); font-size: 12px; }

.row-meta-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 7px; }
.actor-chip {
  display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px;
  padding: 3px 9px 3px 4px; border-radius: 8px;
  background: rgba(150, 170, 205, 0.07); border: 1px solid var(--line);
  font-size: 12px; line-height: 1.3; max-width: 100%;
}
.actor-chip.tone-approved { background: rgba(47, 207, 148, 0.08); border-color: rgba(47, 207, 148, 0.28); }
.actor-chip.tone-rejected { background: rgba(240, 100, 97, 0.09); border-color: rgba(240, 100, 97, 0.3); }
.actor-chip.tone-info { background: rgba(79, 140, 255, 0.09); border-color: rgba(79, 140, 255, 0.28); }
.actor-chip.tone-pending { background: rgba(244, 169, 59, 0.09); border-color: rgba(244, 169, 59, 0.28); }

.actor-chip-role {
  font-family: var(--mono); font-size: 9.5px; font-weight: 700; letter-spacing: 0.07em;
  text-transform: uppercase; padding: 2px 6px; border-radius: 5px;
  background: rgba(255, 255, 255, 0.07); color: var(--soft);
}
.actor-chip.tone-approved .actor-chip-role { background: rgba(47, 207, 148, 0.16); color: #7ef0c5; }
.actor-chip.tone-rejected .actor-chip-role { background: rgba(240, 100, 97, 0.2); color: #ffb3b1; }
.actor-chip.tone-info .actor-chip-role { background: rgba(79, 140, 255, 0.18); color: #b7d2ff; }
.actor-chip.tone-pending .actor-chip-role { background: rgba(244, 169, 59, 0.18); color: #ffd48a; }

.actor-chip-name { font-weight: 600; color: #f3f6fb; }
.actor-chip-handle { font-family: var(--mono); font-size: 11px; color: var(--accent-2); opacity: 0.92; }
.actor-chip-time { font-size: 11px; color: var(--muted); padding-left: 5px; border-left: 1px solid var(--line); }

.reason-callout {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px;
  margin-top: 7px; padding: 7px 11px; border-radius: 8px;
  background: rgba(240, 100, 97, 0.08); border: 1px solid rgba(240, 100, 97, 0.26); border-left: 3px solid var(--red);
  font-size: 12.5px; line-height: 1.45;
}
.reason-callout.tone-info { background: rgba(79, 140, 255, 0.08); border-color: rgba(79, 140, 255, 0.26); border-left-color: var(--accent); }
.reason-callout-tag { font-family: var(--mono); font-size: 9.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #ff9f9d; flex-shrink: 0; }
.reason-callout.tone-info .reason-callout-tag { color: var(--accent-2); }
.reason-callout-text { color: #ffe0df; font-weight: 500; word-break: break-word; }
.reason-callout.tone-info .reason-callout-text { color: #dce8ff; }

.detail-meta-stack { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.audit-decision-banner { background: rgba(240, 100, 97, 0.07); border: 1px solid rgba(240, 100, 97, 0.32); border-radius: var(--r-lg); padding: 14px 16px; margin-bottom: 14px; }
.audit-decision-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }



/* ============================ 6. PANEL SAYFALARI ============================ */

/* ---- Mazeret ---- */
#excuses-pending-box { border-color: rgba(216, 178, 91, 0.32); background: linear-gradient(180deg, rgba(216, 178, 91, 0.05), var(--surface) 60%); }
.excuses-today-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; }
.excuse-today-card { background: var(--bg-2); border: 1px solid var(--line); border-left: 3px solid var(--red); border-radius: var(--r); padding: 14px; cursor: pointer; transition: background 0.14s ease, border-color 0.14s ease; }
.excuse-today-card:hover { background: var(--surface-2); border-color: var(--line-2); border-left-color: var(--red); }
.excuse-chart-wrap { display: flex; flex-direction: column; gap: 8px; }
.excuse-bar-row { display: grid; grid-template-columns: 230px 1fr 150px; align-items: center; gap: 16px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 15px; cursor: pointer; transition: border-color 0.14s ease, background 0.14s ease; }
.excuse-bar-row:hover { border-color: var(--line-2); background: var(--surface-2); }
.excuse-bar-officer { display: flex; align-items: center; gap: 11px; min-width: 0; }
.excuse-bar-officer strong { display: block; font-size: 13.5px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.excuse-bar-officer small { font-size: 11px; color: var(--muted); }
.excuse-bar-track { height: 10px; background: rgba(150, 170, 205, 0.1); border-radius: 99px; overflow: hidden; }
.excuse-bar-fill { height: 100%; min-width: 6px; border-radius: 99px; background: linear-gradient(90deg, var(--accent), var(--cyan)); transition: width 0.4s ease; }
.excuse-bar-fill.med { background: linear-gradient(90deg, var(--amber), #f7c46a); }
.excuse-bar-fill.high { background: linear-gradient(90deg, var(--red), #ff8c89); }
.excuse-bar-fill.gold { background: linear-gradient(90deg, var(--gold), var(--gold-lt)); }
.excuse-bar-val { text-align: right; font-family: var(--mono); }
.excuse-bar-val strong { display: block; font-size: 13px; color: #fff; }
.excuse-bar-val span { font-size: 11px; color: var(--muted); }
.officer-excuse-summary-card { background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 15px 18px; margin-bottom: 14px; }

/* ---- Liderlik ---- */
.leaderboard-podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.podium-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; display: flex; flex-direction: column; gap: 14px; cursor: pointer; position: relative; overflow: hidden; box-shadow: var(--shadow-1); transition: transform 0.15s ease, border-color 0.15s ease; }
.podium-card::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--line-2); }
.podium-card:hover { transform: translateY(-2px); border-color: var(--line-2); }
.podium-card.rank-1 { background: linear-gradient(170deg, rgba(216, 178, 91, 0.12), var(--surface) 55%); border-color: rgba(216, 178, 91, 0.36); }
.podium-card.rank-1::before { background: var(--gold); }
.podium-card.rank-2::before { background: var(--steel); }
.podium-card.rank-3::before { background: #c58a5a; }
.podium-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.podium-medal { font-family: var(--mono); font-size: 12px; font-weight: 700; padding: 3px 11px; border-radius: 99px; background: rgba(150, 170, 205, 0.12); color: #fff; }
.podium-card.rank-1 .podium-medal { background: var(--gold-soft); color: var(--gold-lt); border: 1px solid rgba(216, 178, 91, 0.4); }
.podium-score strong { font-family: var(--mono); font-size: 34px; font-weight: 700; color: #fff; line-height: 1; letter-spacing: -0.02em; }
.podium-card.rank-1 .podium-score strong { color: var(--gold-lt); }
.podium-score span { display: block; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.podium-sub { font-size: 12px; color: var(--muted); display: flex; gap: 6px 12px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 11px; }
.lb-rank-pill { font-family: var(--mono); font-size: 11.5px; font-weight: 700; min-width: 36px; text-align: center; padding: 4px 6px; border-radius: 7px; background: rgba(150, 170, 205, 0.1); color: var(--soft); flex-shrink: 0; }
.lb-rank-pill.top1 { background: var(--gold-soft); color: var(--gold-lt); }
.lb-rank-pill.top2 { background: rgba(197, 204, 217, 0.14); color: #fff; }
.lb-rank-pill.top3 { background: rgba(197, 138, 90, 0.18); color: #f0c9a8; }

/* ---- Analiz & Trendler v2 ---- */
.an-command-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 13px 18px; margin-bottom: 16px; box-shadow: var(--shadow-1);
}
.an-command-left { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.an-command-sub { font-size: 13px; color: var(--soft); }
.an-command-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.an-peak-pill { font-size: 11.5px; color: var(--gold-lt); background: var(--gold-soft); border: 1px solid rgba(216, 178, 91, 0.3); padding: 5px 11px; border-radius: 99px; }

.an-kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.an-kpi-card {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 16px 18px; display: flex; flex-direction: column; gap: 7px; overflow: hidden; box-shadow: var(--shadow-1);
}
.an-kpi-card::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--accent); }
.an-kpi-card.tone-gold::before { background: var(--gold); }
.an-kpi-card.tone-green::before { background: var(--green); }
.an-kpi-card.tone-red::before { background: var(--red); }
.an-kpi-card.tone-cyan::before { background: var(--cyan); }
.an-kpi-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.an-kpi-tag { font-size: 10px; font-weight: 700; color: var(--muted); background: var(--bg-2); border: 1px solid var(--line); padding: 2px 7px; border-radius: 5px; }
.an-kpi-val { font-size: 30px; font-weight: 700; color: #fff; line-height: 1.05; letter-spacing: -0.02em; }
.an-kpi-card.tone-gold .an-kpi-val { color: var(--gold-lt); }
.an-kpi-card.tone-green .an-kpi-val { color: #7ef0c5; }
.an-kpi-card.tone-red .an-kpi-val { color: #ff9c99; }
.an-kpi-card.tone-cyan .an-kpi-val { color: #8beaf6; }
.an-kpi-sub { font-size: 11.5px; color: var(--muted); }

.an-mini-track { height: 7px; border-radius: 99px; background: rgba(150, 170, 205, 0.1); overflow: hidden; width: 100%; }
.an-mini-fill { height: 100%; border-radius: 99px; background: var(--accent); transition: width 0.35s ease; }
.an-mini-fill.is-green { background: linear-gradient(90deg, var(--green), #7ef0c5); }
.an-mini-fill.is-red { background: linear-gradient(90deg, var(--red), #ff9c99); }
.an-mini-fill.is-gold { background: linear-gradient(90deg, var(--gold), var(--gold-lt)); }
.an-mini-fill.is-accent { background: linear-gradient(90deg, var(--accent), var(--cyan)); }

.an-stage-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(300px, 1fr); gap: 16px; margin-bottom: 16px; align-items: stretch; }
.an-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 20px; box-shadow: var(--shadow-1); display: flex; flex-direction: column; gap: 14px; }
.an-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.an-panel-head h3 { font-size: 15.5px; font-weight: 700; color: #fff; }
.an-panel-head p { font-size: 12px; color: var(--muted); margin-top: 2px; }
.an-trend-readout { color: var(--soft) !important; min-height: 18px; }

.analytics-two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.an-legend { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 11.5px; color: var(--soft); font-weight: 600; }
.an-leg-item { display: inline-flex; align-items: center; gap: 5px; }
.an-leg-item i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; }

.an-trend-v2 { width: 100%; }
.an-v2-shell { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 8px; align-items: stretch; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 14px 10px; }
.an-v2-yaxis { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; height: 170px; font-size: 10.5px; color: var(--muted); padding-right: 4px; }
.an-v2-canvas { position: relative; min-width: 0; overflow-x: auto; }
.an-v2-gridlines { position: absolute; inset: 0 0 24px 0; height: 170px; display: flex; flex-direction: column; justify-content: space-between; pointer-events: none; }
.an-v2-gridlines i { display: block; width: 100%; border-bottom: 1px dashed rgba(150, 170, 205, 0.14); }
.an-v2-gridlines i:last-child { border-bottom-style: solid; border-bottom-color: var(--line-2); }
.an-v2-cols { position: relative; z-index: 1; display: flex; align-items: flex-end; gap: 6px; min-height: 194px; }
.an-v2-col { flex: 1; min-width: 24px; display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; }
.an-v2-plot { height: 170px; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; }
.an-v2-count { font-size: 10.5px; font-weight: 700; color: var(--text); }
.an-v2-col.is-peak .an-v2-count { color: var(--gold-lt); }
.an-v2-stack { width: 100%; max-width: 26px; display: flex; flex-direction: column; justify-content: flex-end; border-radius: 5px 5px 2px 2px; overflow: hidden; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35); transition: transform 0.15s ease, filter 0.15s ease; }
.an-v2-col:hover .an-v2-stack { transform: translateY(-2px); filter: brightness(1.12); }
.an-v2-baseline { width: 100%; max-width: 18px; height: 3px; border-radius: 2px; background: rgba(150, 170, 205, 0.18); }
.an-v2-lbl { font-size: 10px; color: var(--muted); white-space: nowrap; }
.an-v2-col.has-data .an-v2-lbl { color: var(--soft); font-weight: 600; }

.an-seg { width: 100%; min-height: 2px; }
.an-seg.mdt { background: var(--gold); }
.an-seg.robbery { background: var(--red); }
.an-seg.dp { background: var(--accent); }
.an-seg.mugshot { background: var(--cyan); }

.an-mix-panel { display: flex; flex-direction: column; justify-content: center; flex: 1; }
.an-donut-wrap { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 18px; align-items: center; }
.an-donut-svg-box { position: relative; width: 132px; height: 132px; margin: 0 auto; }
.an-donut-svg { width: 100%; height: 100%; display: block; }
.an-donut-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; pointer-events: none; }
.an-donut-center strong { font-size: 24px; color: #fff; line-height: 1; }
.an-donut-center span { font-size: 9.5px; letter-spacing: 0.12em; color: var(--muted); margin-top: 3px; font-weight: 700; }
.an-mix-bars { display: flex; flex-direction: column; gap: 11px; }
.an-mix-row { display: flex; flex-direction: column; gap: 5px; }
.an-mix-top { display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; color: var(--soft); }
.an-mix-name { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; }
.an-mix-name i { display: inline-block; width: 8px; height: 8px; border-radius: 3px; }
.an-mix-top strong { color: #fff; font-size: 12.5px; }
.an-mix-top small { color: var(--muted); font-weight: 500; }

.an-stack-list { display: flex; flex-direction: column; gap: 10px; }
.an-risk-strip { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r); padding: 11px 13px; margin-bottom: 4px; }
.an-risk-labels { display: flex; justify-content: space-between; font-size: 12px; color: var(--soft); margin-bottom: 7px; flex-wrap: wrap; gap: 6px; }
.an-risk-bar { display: flex; height: 8px; border-radius: 99px; overflow: hidden; background: rgba(150, 170, 205, 0.1); gap: 2px; }
.an-risk-bar i { display: block; height: 100%; }
.an-risk-bar i.is-norm { background: var(--gold); }
.an-risk-bar i.is-conf { background: var(--red); }

.an-metric-card { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r); padding: 11px 13px; display: flex; flex-direction: column; gap: 8px; }
.an-metric-card.compact { padding: 10px 12px; gap: 7px; }
.an-metric-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.an-metric-title { display: flex; align-items: center; gap: 8px; min-width: 0; flex-wrap: wrap; }
.an-metric-title strong { font-size: 13px; color: #fff; }
.an-metric-num { font-size: 13px; font-weight: 700; color: #fff; white-space: nowrap; }
.an-metric-num small { color: var(--muted); font-weight: 500; }
.an-metric-badge { font-size: 10.5px; font-weight: 700; padding: 2px 7px; border-radius: 99px; border: 1px solid var(--line); }
.an-metric-badge.is-gold { color: var(--gold-lt); background: var(--gold-soft); border-color: rgba(216, 178, 91, 0.32); }
.an-metric-badge.is-danger { color: #ff9c99; background: rgba(240, 100, 97, 0.12); border-color: rgba(240, 100, 97, 0.34); }

.an-shift-bars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 12px 12px; margin-bottom: 12px; }
.an-shift-col { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.an-shift-val { font-size: 14px; font-weight: 700; color: #fff; }
.an-shift-col.is-peak .an-shift-val { color: var(--gold-lt); }
.an-shift-track { width: 28px; height: 74px; border-radius: 7px; background: rgba(150, 170, 205, 0.08); display: flex; align-items: flex-end; overflow: hidden; }
.an-shift-fill { width: 100%; border-radius: 7px 7px 0 0; background: linear-gradient(180deg, var(--accent-2), var(--accent)); transition: height 0.3s ease; }
.an-shift-col.is-peak .an-shift-fill { background: linear-gradient(180deg, var(--gold-lt), var(--gold)); }
.an-shift-lbl { font-size: 10.5px; color: var(--soft); white-space: nowrap; }
.an-shift-tag { font-family: var(--mono); font-size: 9px; font-weight: 700; padding: 1px 6px; border-radius: 99px; background: var(--gold-soft); color: var(--gold-lt); }
.an-shift-sub { font-size: 10px; color: var(--muted); }

.an-hotspots-list { display: flex; flex-direction: column; gap: 8px; }
.an-subhead { font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 2px; }
.an-empty-inline { padding: 16px; border: 1px dashed var(--line-2); border-radius: var(--r); font-size: 12.5px; color: var(--muted); text-align: center; line-height: 1.5; }
.an-duo-card { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r); padding: 11px 13px; display: flex; flex-direction: column; gap: 9px; }
.an-duo-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.an-duo-names { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.an-duo-plus { color: var(--muted); font-weight: 700; }

/* ---- Arşiv ---- */
.archive-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; }
.archive-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 17px; display: flex; flex-direction: column; gap: 14px; position: relative; overflow: hidden; box-shadow: var(--shadow-1); }
.archive-card::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--cyan); }
.archive-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.archive-metric { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 8px; text-align: center; }
.archive-metric.gold { border-color: rgba(216, 178, 91, 0.32); background: var(--gold-soft); }
.archive-metric small { display: block; font-size: 10px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.archive-metric strong { font-family: var(--mono); font-size: 17px; color: #fff; }
.archive-metric.gold strong { color: var(--gold-lt); }
.history-period-card { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r); padding: 13px 15px; margin-bottom: 10px; }
.history-period-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.history-period-counts { display: flex; gap: 10px; flex-wrap: wrap; font-size: 12px; color: var(--soft); }

/* ---- Yönetim Kontrol & Portal Stüdyosu (#3) ---- */
.ws-header-card {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  background: linear-gradient(135deg, rgba(79, 140, 255, 0.08), var(--surface) 60%);
  border: 1px solid var(--line-2); border-radius: var(--r-lg);
  padding: 18px 22px; margin-bottom: 16px; box-shadow: var(--shadow-1);
}
.ws-header-main h2 { font-family: var(--display); font-size: 28px; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; color: #fff; line-height: 1.05; margin-top: 6px; }
.ws-header-main p { font-size: 13px; color: var(--soft); margin-top: 4px; }
.ws-header-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.ws-tabs-bar { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; scrollbar-width: none; }
.ws-tabs-bar::-webkit-scrollbar { display: none; }
.ws-tab {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; border: none; border-bottom: 2px solid transparent; margin-bottom: -1px;
  color: var(--muted); font-size: 13.5px; font-weight: 600; padding: 11px 16px; cursor: pointer; white-space: nowrap;
  transition: color 0.14s ease, border-color 0.14s ease;
}
.ws-tab:hover { color: #fff; }
.ws-tab.active { color: #fff; border-bottom-color: var(--gold); }
.ws-tab-panel { display: none; }
.ws-tab-panel.active { display: block; }

.adm-users-layout { display: grid; grid-template-columns: minmax(320px, 410px) minmax(0, 1fr); gap: 16px; align-items: start; }
.adm-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 20px; box-shadow: var(--shadow-1); }
.adm-create-card { position: sticky; top: 78px; border-color: rgba(216, 178, 91, 0.25); }
.adm-card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 15px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.adm-card-head h3 { font-size: 15.5px; font-weight: 700; color: #fff; }
.adm-card-head p { font-size: 12px; color: var(--muted); margin-top: 2px; }
.adm-created-banner { margin-top: 14px; background: rgba(47, 207, 148, 0.08); border: 1px solid rgba(47, 207, 148, 0.34); border-radius: var(--r); padding: 12px 14px; }
.adm-created-title { font-weight: 700; font-size: 13px; color: #7ef0c5; margin-bottom: 5px; }
.adm-created-code { font-size: 12px; color: #fff; background: rgba(0, 0, 0, 0.25); padding: 7px 10px; border-radius: 6px; }

.admin-users-list { display: flex; flex-direction: column; gap: 10px; }
.admin-user-row { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r); padding: 13px 15px; display: flex; justify-content: space-between; align-items: center; gap: 12px 16px; flex-wrap: wrap; }
.admin-user-row.inactive { opacity: 0.6; border-style: dashed; }
.admin-user-main { display: flex; align-items: center; gap: 12px; min-width: 280px; flex: 1 1 320px; }
.admin-user-actions { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.role-select-sm { width: auto !important; min-height: 28px !important; padding: 3px 10px !important; font-size: 12px !important; border-radius: 7px !important; }

/* ---- Birimler & Lisanslar ---- */
.units-hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; }
.unit-hub-card { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 17px; border-radius: var(--r-lg); background: var(--bg-2); border: 1px solid var(--line); cursor: pointer; text-align: left; color: inherit; transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease; }
.unit-hub-card:hover { transform: translateY(-2px); background: var(--surface-2); border-color: rgba(216, 178, 91, 0.42); }
.unit-hub-card.is-empty { opacity: 0.6; }
.unit-hub-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.unit-hub-title-wrap { display: flex; align-items: center; gap: 12px; min-width: 0; }
.unit-hub-icon { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; font-size: 19px; flex-shrink: 0; background: var(--accent-soft); border: 1px solid rgba(79, 140, 255, 0.26); }
.unit-hub-card.is-license .unit-hub-icon { background: var(--gold-soft); border-color: rgba(216, 178, 91, 0.3); }
.unit-hub-title { font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: 0.06em; text-transform: uppercase; color: #fff; line-height: 1.05; }
.unit-hub-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.unit-hub-count { padding: 4px 11px; border-radius: 99px; font-size: 11.5px; font-weight: 700; background: var(--accent-soft); border: 1px solid rgba(79, 140, 255, 0.28); color: var(--accent-2); white-space: nowrap; }
.unit-hub-card.is-license .unit-hub-count { background: var(--gold-soft); border-color: rgba(216, 178, 91, 0.32); color: var(--gold-lt); }
.unit-hub-meta { font-size: 12.5px; line-height: 1.5; color: var(--soft); }
.unit-hub-preview { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.unit-hub-member-chip { font-size: 11.5px; padding: 3px 9px; border-radius: 99px; background: rgba(150, 170, 205, 0.07); border: 1px solid var(--line); color: var(--soft); }
.unit-hub-cta { font-size: 12px; font-weight: 600; color: var(--gold-lt); }

/* ---- Ayarlar Sekmeleri & Geri Al Kartı (#9) ---- */
.settings-tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 14px; overflow-x: auto; scrollbar-width: none; }
.settings-tabs::-webkit-scrollbar { display: none; }
.settings-tab { background: transparent; border: none; border-bottom: 2px solid transparent; margin-bottom: -1px; color: var(--muted); font-size: 13px; font-weight: 600; padding: 10px 15px; cursor: pointer; white-space: nowrap; transition: color 0.14s ease; }
.settings-tab:hover { color: var(--text); }
.settings-tab.active { color: #fff; border-bottom-color: var(--gold); }
.settings-tab-panel { display: none; }
.settings-tab-panel.active { display: block; }

.settings-undo-quick {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  background: rgba(216, 178, 91, 0.09); border: 1px solid rgba(216, 178, 91, 0.3);
  border-radius: var(--r); padding: 9px 13px; margin-bottom: 14px; font-size: 12.5px; color: var(--soft);
}
.undo-last-card {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  background: linear-gradient(135deg, rgba(216, 178, 91, 0.1), var(--bg-2) 70%);
  border: 1px solid rgba(216, 178, 91, 0.32); border-radius: var(--r-lg);
  padding: 14px 16px; margin-bottom: 14px;
}
.undo-last-info { flex: 1; min-width: 200px; }
.undo-last-head { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
.undo-last-head strong { font-size: 14px; color: #fff; }
.undo-last-info p { font-size: 12.5px; color: var(--soft); line-height: 1.45; }

/* ---- Ana Sayfa Portal Stüdyosu (CMS #3) ---- */
.cms-studio-top { position: sticky; top: 68px; z-index: 15; backdrop-filter: blur(12px); }
.cms-dirty-pill { font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 99px; background: rgba(244, 169, 59, 0.15); border: 1px solid rgba(244, 169, 59, 0.4); color: #ffd48a; }
.cms-studio-shell { display: grid; grid-template-columns: 265px minmax(0, 1fr); gap: 16px; align-items: start; }
.cms-studio-nav {
  position: sticky; top: 185px; display: flex; flex-direction: column; gap: 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px 12px; box-shadow: var(--shadow-1);
}
.cms-nav-label { font-size: 10px; font-weight: 700; letter-spacing: 0.12em; color: var(--muted); padding: 0 8px 6px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.cms-nav-item {
  width: 100%; text-align: left; background: transparent; border: 1px solid transparent; border-radius: var(--r);
  padding: 11px 12px; cursor: pointer; display: flex; flex-direction: column; gap: 3px; color: var(--soft);
  transition: background 0.14s ease, border-color 0.14s ease, color 0.14s ease;
}
.cms-nav-item:hover { background: var(--bg-2); color: #fff; }
.cms-nav-item.active { background: var(--accent-soft); border-color: rgba(79, 140, 255, 0.36); color: #fff; }
.cms-nav-item strong { font-size: 13px; font-weight: 700; color: inherit; }
.cms-nav-item small { font-size: 11px; color: var(--muted); line-height: 1.35; }
.cms-studio-main { min-width: 0; }

.cms-editor-body { display: flex; flex-direction: column; gap: 14px; }
.cms-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px 22px; box-shadow: var(--shadow-1); }
.cms-card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-bottom: 14px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.cms-card-head h3 { font-size: 15.5px; font-weight: 700; color: #fff; }
.cms-card-head p { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.cms-list { display: flex; flex-direction: column; gap: 12px; }
.cms-item-row { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r); padding: 15px; display: flex; flex-direction: column; gap: 11px; }
.cms-item-row-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.cms-gallery-edit-row { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 14px; align-items: start; }
.cms-thumb-box { background: #04070d; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; aspect-ratio: 16 / 9; cursor: pointer; }
.cms-thumb-box img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cms-upload-box { background: var(--accent-soft); border: 1.5px dashed rgba(79, 140, 255, 0.42); border-radius: var(--r-lg); padding: 17px; display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.cms-file-btn { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; }
.cms-media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(185px, 1fr)); gap: 12px; }
.cms-media-card { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; }
.cms-media-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; cursor: pointer; }
.cms-media-meta { padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.cms-media-meta span { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cms-toggle-row { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 13px; color: var(--text); font-weight: 600; }
.cms-toggle-row input { width: auto; }



/* ============================ 7. MODAL, LIGHTBOX, TOAST, GİRİŞ ============================ */
.modal-backdrop { position: fixed; inset: 0; background: rgba(3, 6, 12, 0.74); backdrop-filter: blur(7px); display: none; align-items: center; justify-content: center; z-index: 1000; padding: 22px; }
.modal-backdrop.open { display: flex; animation: fadeIn 0.16s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-box { width: 100%; max-width: 560px; max-height: 90vh; overflow-y: auto; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-xl); padding: 24px; box-shadow: var(--shadow-2); animation: modalIn 0.2s ease; }
@keyframes modalIn { from { opacity: 0; transform: translateY(10px) scale(0.985); } to { opacity: 1; transform: none; } }
.modal-box.modal-lg { max-width: 780px; }
.modal-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.modal-header h2 { font-family: var(--display); font-size: 26px; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; color: #fff; margin-top: 5px; line-height: 1.05; }
.modal-body { display: block; }

.lightbox { position: fixed; inset: 0; background: rgba(2, 4, 9, 0.94); backdrop-filter: blur(6px); display: none; align-items: center; justify-content: center; z-index: 2000; padding: 28px; cursor: zoom-out; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 94vw; max-height: 86vh; border-radius: var(--r); border: 1px solid var(--line-2); box-shadow: var(--shadow-2); cursor: default; }
.lightbox-close { position: fixed; top: 18px; right: 22px; z-index: 2010; }
.lightbox-arrow { position: fixed !important; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; padding: 0 !important; border-radius: 50% !important; z-index: 2100; font-size: 24px !important; }
.lightbox-arrow.left { left: 18px; }
.lightbox-arrow.right { right: 18px; }
.lightbox-caption { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); max-width: min(760px, 88vw); padding: 8px 18px; border-radius: 99px; background: rgba(10, 16, 27, 0.9); border: 1px solid var(--line-2); color: var(--text); font-size: 13px; text-align: center; z-index: 2100; }

#toast-container { position: fixed; bottom: 22px; right: 22px; display: flex; flex-direction: column; gap: 8px; z-index: 2500; }
.toast { background: var(--surface-2); border: 1px solid var(--line-2); border-left: 3px solid var(--gold); color: var(--text); padding: 12px 16px; border-radius: var(--r); font-size: 13px; font-weight: 500; max-width: 380px; box-shadow: var(--shadow-2); animation: toastIn 0.22s ease; }
@keyframes toastIn { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }

/* Giriş ekranı */
.auth-gate { position: relative; z-index: 20; min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 28px 16px; background: radial-gradient(ellipse 60% 55% at 50% 0%, rgba(46, 76, 140, 0.26), transparent 70%), var(--bg); }
.auth-card { width: 100%; max-width: 410px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-xl); padding: 32px 30px 28px; box-shadow: var(--shadow-2); }
.auth-brand { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; margin-bottom: 22px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.crest-box.auth-crest { width: 88px; height: 88px; margin-bottom: 4px; border: 2px solid rgba(197, 204, 217, 0.4); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.6), 0 0 0 6px rgba(79, 140, 255, 0.06); }
.auth-brand h2 { font-family: var(--display); font-size: 28px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: #fff; line-height: 1.05; }
.auth-desc { font-size: 13px; color: var(--muted); line-height: 1.55; text-align: center; }
.auth-loading { text-align: center; padding: 26px 0; color: var(--soft); font-size: 13.5px; font-weight: 500; }
.auth-error { background: rgba(240, 100, 97, 0.1); border: 1px solid rgba(240, 100, 97, 0.38); color: #ffc4c2; border-radius: var(--r-sm); padding: 9px 12px; font-size: 12.5px; font-weight: 500; }

/* Modern SASP Onay / Giriş Diyaloğu (#1) */
.ui-dialog-backdrop { z-index: 2300; }
.ui-dialog-box { position: relative; max-width: 470px; padding: 24px 24px 20px; overflow: hidden; border-color: rgba(150, 170, 205, 0.3); }
.ui-dialog-accent { position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--accent); }
.ui-dialog-accent.tone-success { background: var(--green); }
.ui-dialog-accent.tone-warn { background: var(--gold); }
.ui-dialog-accent.tone-danger { background: var(--red); }
.ui-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.ui-dialog-kicker { font-size: 10.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-2); }
.ui-dialog-close { width: 28px; height: 28px; border-radius: 7px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; display: grid; place-items: center; font-size: 13px; transition: color 0.14s ease, border-color 0.14s ease; }
.ui-dialog-close:hover { color: #fff; border-color: var(--line-2); }
.ui-dialog-title { font-family: var(--display); font-size: 26px; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; color: #fff; line-height: 1.05; margin-bottom: 10px; }
.ui-dialog-message { font-size: 13.5px; line-height: 1.6; color: var(--soft); margin-bottom: 14px; }
.ui-dialog-fields { margin-bottom: 16px; gap: 12px; }
.ui-dialog-field label { display: block; font-size: 12px; font-weight: 600; color: var(--soft); margin-bottom: 5px; }
.ui-dialog-actions { display: flex; justify-content: flex-end; gap: 9px; padding-top: 12px; border-top: 1px solid var(--line); }

/* Üstten Düşen Panel Dikkat Bildirimi (#8) */
.panel-alert-banner {
  position: fixed; top: 14px; left: calc(50% + 125px); transform: translate(-50%, -150%); opacity: 0; pointer-events: none;
  z-index: 1600; width: min(640px, calc(100vw - 290px));
  background: rgba(12, 18, 30, 0.94); backdrop-filter: blur(16px);
  border: 1px solid rgba(216, 178, 91, 0.42); border-radius: var(--r-lg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  padding: 10px 16px 12px; overflow: hidden; touch-action: none; user-select: none; cursor: grab;
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.28s ease;
}
.panel-alert-banner.open { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.panel-alert-banner.swiping-out { transform: translate(-50%, -140%) !important; opacity: 0 !important; pointer-events: none; }
.panel-alert-grip { width: 38px; height: 4px; border-radius: 99px; background: rgba(197, 204, 217, 0.28); margin: 0 auto 8px; }
.panel-alert-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.panel-alert-lead { display: flex; align-items: flex-start; gap: 12px; min-width: 0; flex: 1; }
.panel-alert-ico { width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0; display: grid; place-items: center; background: var(--gold-soft); border: 1px solid rgba(216, 178, 91, 0.38); color: var(--gold-lt); }
.panel-alert-copy { min-width: 0; flex: 1; }
.panel-alert-head { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; }
.panel-alert-head strong { font-size: 13.5px; font-weight: 700; color: #fff; }
.panel-alert-countdown { font-size: 10.5px; color: var(--gold-lt); background: var(--gold-soft); border: 1px solid rgba(216, 178, 91, 0.26); padding: 1px 7px; border-radius: 99px; }
.panel-alert-items { display: flex; flex-wrap: wrap; gap: 7px; }
.panel-alert-pill {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px; border-radius: 8px;
  background: rgba(150, 170, 205, 0.09); border: 1px solid var(--line-2);
  color: #fff; font-size: 12px; font-weight: 600; cursor: pointer; transition: transform 0.14s ease, filter 0.14s ease;
}
.panel-alert-pill:hover { transform: translateY(-1px); filter: brightness(1.16); }
.panel-alert-pill.tone-amber { background: rgba(244, 169, 59, 0.14); border-color: rgba(244, 169, 59, 0.36); color: #ffe0a8; }
.panel-alert-pill.tone-red { background: rgba(240, 100, 97, 0.15); border-color: rgba(240, 100, 97, 0.38); color: #ffc8c7; }
.panel-alert-pill.tone-gold { background: rgba(216, 178, 91, 0.14); border-color: rgba(216, 178, 91, 0.38); color: var(--gold-lt); }
.panel-alert-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.panel-alert-hint { font-size: 11px; color: var(--muted); white-space: nowrap; }
.panel-alert-close { width: 28px; height: 28px; border-radius: 7px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.panel-alert-close:hover { color: #fff; border-color: var(--line-2); }
.panel-alert-progress { position: absolute; inset: auto 0 0 0; height: 3px; background: rgba(150, 170, 205, 0.12); }
.panel-alert-progress i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--gold), var(--accent)); transform-origin: left center; }
@keyframes panelAlertCountdown { from { transform: scaleX(1); } to { transform: scaleX(0); } }



/* ============================ 8. HERKESE AÇIK ANA SAYFA — MODERN SASP PORTALI (SIFIRDAN) ============================ */
.neo-home {
  --neo-bg: #050811;
  --neo-bg-tint: #080d1a;
  --neo-glass: rgba(255, 255, 255, 0.032);
  --neo-glass-hi: rgba(255, 255, 255, 0.058);
  --neo-border: rgba(255, 255, 255, 0.08);
  --neo-border-hi: rgba(255, 255, 255, 0.16);
  --neo-cobalt: #3b82f6;
  --neo-cobalt-lt: #60a5fa;
  --neo-cobalt-soft: rgba(59, 130, 246, 0.14);
  --neo-silver: #cbd5e1;
  --neo-ink: #f8fafc;
  --neo-soft: #94a3b8;
  --neo-muted: #64748b;
  --neo-emerald: #34d399;
  --neo-font: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  --neo-head: 'Space Grotesk', 'Plus Jakarta Sans', system-ui, sans-serif;

  position: relative; z-index: 2; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--neo-bg); color: var(--neo-ink); font-family: var(--neo-font); overflow-x: clip;
}

.neo-bg-aurora {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse 68% 42% at 50% -6%, rgba(59, 130, 246, 0.22), transparent 68%),
    radial-gradient(ellipse 40% 35% at 85% 22%, rgba(148, 163, 184, 0.09), transparent 70%),
    radial-gradient(ellipse 45% 35% at 12% 65%, rgba(37, 99, 235, 0.08), transparent 72%);
}

.neo-progress { position: fixed; top: 0; left: 0; width: 0; height: 2px; z-index: 1200; background: linear-gradient(90deg, var(--neo-cobalt), #93c5fd); pointer-events: none; transition: width 80ms linear; }

.neo-container { position: relative; z-index: 2; max-width: 1200px; width: 100%; margin: 0 auto; padding: 0 24px; }

/* Yüzen Cam Üst Menü */
.neo-nav-wrap { position: sticky; top: 14px; z-index: 60; padding: 0 24px; pointer-events: none; }
.neo-nav {
  pointer-events: auto; max-width: 1200px; margin: 0 auto; padding: 9px 12px 9px 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: rgba(9, 14, 26, 0.76); backdrop-filter: blur(22px) saturate(150%);
  border: 1px solid var(--neo-border-hi); border-radius: 999px;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.neo-brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--neo-ink); min-width: 0; }
.neo-brand-logo { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; border: 1.5px solid rgba(203, 213, 225, 0.35); flex-shrink: 0; }
.neo-brand-text strong { display: block; font-family: var(--neo-head); font-size: 15px; font-weight: 700; letter-spacing: -0.01em; color: #fff; line-height: 1.1; white-space: nowrap; }
.neo-brand-text span { display: block; font-size: 11px; color: var(--neo-soft); margin-top: 1px; white-space: nowrap; }

.neo-links { display: flex; align-items: center; gap: 2px; }
.neo-links a { padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--neo-soft); text-decoration: none; transition: color 0.15s ease, background 0.15s ease; }
.neo-links a:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.neo-links a.spy-active { color: #fff; background: rgba(59, 130, 246, 0.18); }

.neo-nav-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.neo-menu-btn { display: none; width: 38px; height: 38px; border-radius: 999px; border: 1px solid var(--neo-border-hi); background: rgba(255, 255, 255, 0.04); color: #fff; align-items: center; justify-content: center; cursor: pointer; }
.neo-cta-pill {
  display: inline-flex; align-items: center; justify-content: center; height: 38px; padding: 0 18px;
  border-radius: 999px; border: none; background: #ffffff; color: #050811;
  font-size: 13px; font-weight: 700; letter-spacing: -0.01em; cursor: pointer;
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.14); transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.neo-cta-pill:hover { transform: translateY(-1px); background: #eef4ff; box-shadow: 0 10px 26px rgba(96, 165, 250, 0.25); }

/* Merkezi Modern Hero */
.neo-hero { position: relative; z-index: 2; padding: 30px 0 64px; }
.neo-hero-header { text-align: center; max-width: 820px; margin: 0 auto 28px; display: flex; flex-direction: column; align-items: center; }

.neo-status-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 16px; }
.neo-pill-alert {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  background: rgba(52, 211, 153, 0.1); border: 1px solid rgba(52, 211, 153, 0.28);
  font-size: 12px; color: #a7f3d0;
}
.neo-pill-alert.level-amber { background: rgba(251, 191, 36, 0.12); border-color: rgba(251, 191, 36, 0.34); color: #fde68a; }
.neo-pill-alert.level-red { background: rgba(248, 113, 113, 0.14); border-color: rgba(248, 113, 113, 0.38); color: #fecaca; }
.neo-pill-alert strong { font-weight: 700; font-size: 11.5px; }
.neo-pill-detail { color: rgba(255, 255, 255, 0.72); font-size: 11.5px; display: none; }

.neo-pill-ann {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px 5px 6px; border-radius: 999px;
  background: var(--neo-glass-hi); border: 1px solid var(--neo-border-hi);
  font-size: 12px; color: #e2e8f0;
}
.neo-ann-chip { font-size: 10.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--neo-cobalt); color: #fff; }
.neo-pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.18); animation: pulseDot 2s infinite; }
.neo-pulse-dot.is-live { color: var(--neo-emerald); background: var(--neo-emerald); }
@keyframes pulseDot { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.45; transform: scale(0.85); } }

.neo-hero-title {
  font-family: var(--neo-head); font-size: clamp(36px, 4.9vw, 62px); font-weight: 700;
  line-height: 1.06; letter-spacing: -0.035em; color: #ffffff; margin-bottom: 14px;
}
.neo-hero-title span {
  background: linear-gradient(120deg, #ffffff 10%, #93c5fd 60%, #60a5fa 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.neo-hero-desc { font-size: 15.5px; line-height: 1.65; color: var(--neo-soft); max-width: 600px; margin-bottom: 22px; }

.neo-hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.neo-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 24px;
  border-radius: 999px; font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: transform 0.16s ease, background 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.neo-btn.sm { min-height: 40px; padding: 0 18px; font-size: 13px; }
.neo-btn.full { width: 100%; border-radius: 12px; }
.neo-btn-primary { background: #fff; color: #050811; border: 1px solid #fff; box-shadow: 0 10px 30px rgba(255, 255, 255, 0.12); }
.neo-btn-primary:hover { transform: translateY(-2px); background: #eff6ff; }
.neo-btn-glass { background: var(--neo-glass-hi); color: #fff; border: 1px solid var(--neo-border-hi); backdrop-filter: blur(12px); }
.neo-btn-glass:hover { transform: translateY(-2px); background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.28); }
.neo-btn-cobalt { background: linear-gradient(135deg, #2563eb, #3b82f6); color: #fff; border: 1px solid rgba(96, 165, 250, 0.45); box-shadow: 0 12px 30px rgba(37, 99, 235, 0.3); }
.neo-btn-cobalt:hover { transform: translateY(-1px); filter: brightness(1.08); }

/* Vitrin Fotoğraf Çerçevesi + Canlı Dock */
.neo-showcase { display: flex; flex-direction: column; gap: 16px; }
.neo-showcase-frame {
  position: relative; width: 100%; height: 430px; border-radius: 24px; overflow: hidden;
  border: 1px solid var(--neo-border-hi); background: #0a1020;
  box-shadow: 0 36px 90px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}
.neo-showcase-frame > img { width: 100%; height: 100%; object-fit: cover; object-position: center 32%; display: block; }
.neo-showcase-vignette { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 8, 17, 0.32) 0%, transparent 32%, transparent 56%, rgba(5, 8, 17, 0.92) 100%); pointer-events: none; }

.neo-showcase-badge {
  position: absolute; top: 18px; left: 18px; z-index: 2;
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px;
  border-radius: 999px; background: rgba(6, 10, 20, 0.72); backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.16); font-size: 11.5px; font-weight: 600; color: #e2e8f0; letter-spacing: 0.04em;
}
.neo-showcase-badge img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; border: 1px solid rgba(203, 213, 225, 0.4); }

.neo-live-dock {
  position: absolute; left: 18px; right: 18px; bottom: 18px; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  padding: 14px 20px; border-radius: 16px;
  background: rgba(8, 13, 26, 0.78); backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.neo-live-label { display: flex; align-items: center; gap: 9px; font-size: 12.5px; font-weight: 600; color: #e2e8f0; }
.neo-live-grid { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.neo-live-stat { display: flex; align-items: baseline; gap: 7px; }
.neo-live-stat strong { font-family: var(--neo-head); font-size: 22px; font-weight: 700; color: #fff; line-height: 1; }
.neo-live-stat span { font-size: 12px; color: var(--neo-soft); }

.neo-highlights-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.neo-hl-pill {
  padding: 18px 20px; border-radius: 18px; background: var(--neo-glass); border: 1px solid var(--neo-border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05); transition: border-color 0.16s ease, background 0.16s ease;
}
.neo-hl-pill:hover { border-color: var(--neo-border-hi); background: var(--neo-glass-hi); }
.neo-hl-pill strong { display: block; font-family: var(--neo-head); font-size: 26px; font-weight: 700; color: #fff; letter-spacing: -0.02em; line-height: 1.1; }
.neo-hl-pill span { display: block; font-size: 12.5px; color: var(--neo-soft); margin-top: 5px; line-height: 1.4; }

/* Genel Bölüm Düzeni */
.neo-section { position: relative; z-index: 2; padding: 96px 0; }
.neo-section-tinted { background: linear-gradient(180deg, rgba(14, 22, 42, 0.45), rgba(8, 13, 26, 0.65)); border-top: 1px solid var(--neo-border); border-bottom: 1px solid var(--neo-border); }

.neo-sec-head { margin-bottom: 48px; }
.neo-sec-head.is-center { text-align: center; max-width: 680px; margin-left: auto; margin-right: auto; }
.neo-sec-head.is-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.neo-sec-head.is-row p { max-width: 440px; margin: 0; }
.neo-eyebrow {
  display: inline-flex; align-items: center; padding: 5px 13px; border-radius: 999px; margin-bottom: 14px;
  background: var(--neo-cobalt-soft); border: 1px solid rgba(96, 165, 250, 0.28);
  font-size: 12px; font-weight: 600; color: var(--neo-cobalt-lt);
}
.neo-sec-head h2 { font-family: var(--neo-head); font-size: clamp(30px, 3.8vw, 44px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.12; color: #fff; margin-bottom: 12px; }
.neo-sec-head p { font-size: 15.5px; line-height: 1.65; color: var(--neo-soft); }

/* Hakkımızda Asimetrik Bento */
.neo-bento-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 18px; }
.neo-bento-card {
  position: relative; overflow: hidden; padding: 30px; border-radius: 22px; background: var(--neo-glass); border: 1px solid var(--neo-border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.neo-bento-card:hover { transform: translateY(-3px); border-color: rgba(96, 165, 250, 0.35); background: var(--neo-glass-hi); }
.neo-bento-card.is-lead {
  grid-row: span 2; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; padding: 36px;
  background: linear-gradient(155deg, rgba(59, 130, 246, 0.16), rgba(255, 255, 255, 0.03) 56%);
  border-color: rgba(96, 165, 250, 0.3);
}
.neo-bento-lead-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.neo-bento-lead-top .neo-card-icon { margin-bottom: 0; }
.neo-bento-crest {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 6px; border-radius: 999px;
  background: rgba(5, 8, 17, 0.55); border: 1px solid rgba(255, 255, 255, 0.14);
  font-family: var(--mono); font-size: 11px; font-weight: 600; color: var(--neo-silver);
}
.neo-bento-crest img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.neo-bento-card.is-lead h3 { font-size: 28px; margin-bottom: 14px; }
.neo-bento-card.is-lead p { font-size: 16px; line-height: 1.76; }
.neo-bento-tags { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 20px; border-top: 1px solid var(--neo-border); }
.neo-bento-tag {
  font-size: 12px; font-weight: 600; color: #dbeafe; padding: 6px 12px; border-radius: 999px;
  background: rgba(59, 130, 246, 0.12); border: 1px solid rgba(96, 165, 250, 0.25);
}
.neo-card-icon {
  width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 18px;
  background: var(--neo-cobalt-soft); border: 1px solid rgba(96, 165, 250, 0.3); color: var(--neo-cobalt-lt);
}
.neo-bento-card h3 { font-family: var(--neo-head); font-size: 21px; font-weight: 700; letter-spacing: -0.02em; color: #fff; margin-bottom: 10px; }
.neo-bento-card p { font-size: 14.5px; line-height: 1.72; color: var(--neo-silver); }

/* Uzmanlaşmış Birimler — Cam Kartlar + Canlı Kadro Çubuğu */
.neo-units-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.neo-unit-card {
  text-align: left; padding: 24px; border-radius: 20px; background: var(--neo-glass); border: 1px solid var(--neo-border);
  display: flex; flex-direction: column; gap: 12px; cursor: pointer; color: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.neo-unit-card:hover { transform: translateY(-3px); border-color: var(--neo-border-hi); background: var(--neo-glass-hi); }
.neo-unit-card.is-active {
  background: linear-gradient(160deg, rgba(59, 130, 246, 0.16), rgba(255, 255, 255, 0.04) 70%);
  border-color: rgba(96, 165, 250, 0.55); box-shadow: 0 20px 44px rgba(37, 99, 235, 0.16);
}
.neo-unit-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.neo-unit-ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--neo-border-hi); color: var(--neo-cobalt-lt); }
.neo-unit-card.is-active .neo-unit-ico { background: var(--neo-cobalt); border-color: var(--neo-cobalt-lt); color: #fff; }
.neo-unit-count { font-size: 11.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); color: var(--neo-silver); }
.neo-unit-card.is-active .neo-unit-count { background: rgba(52, 211, 153, 0.16); color: #6ee7b7; }
.neo-unit-card h3 { font-family: var(--neo-head); font-size: 18px; font-weight: 700; letter-spacing: -0.015em; color: #fff; line-height: 1.25; }
.neo-unit-card p { font-size: 13.5px; line-height: 1.62; color: var(--neo-soft); flex: 1; }
.neo-unit-foot { font-size: 12.5px; font-weight: 600; color: var(--neo-cobalt-lt); margin-top: 4px; }

.neo-unit-roster-bar {
  margin-top: 18px; padding: 18px 22px; border-radius: 18px;
  background: rgba(12, 20, 38, 0.72); border: 1px solid rgba(96, 165, 250, 0.28);
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
}
.neo-urb-lead { display: flex; align-items: center; gap: 14px; }
.neo-urb-tag { font-family: var(--mono); font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 10px; background: var(--neo-cobalt-soft); border: 1px solid rgba(96, 165, 250, 0.35); color: #93c5fd; }
.neo-urb-lead strong { display: block; font-size: 14.5px; color: #fff; }
.neo-urb-lead span { display: block; font-size: 12.5px; color: var(--neo-soft); margin-top: 2px; }
.neo-urb-members { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.neo-urb-chip { display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px 4px 5px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--neo-border-hi); font-size: 12px; color: #f1f5f9; }
.neo-urb-chip img, .neo-urb-chip i { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; display: grid; place-items: center; font-style: normal; font-size: 10px; font-weight: 700; background: var(--neo-cobalt-soft); color: #fff; }
.neo-urb-rank { font-style: normal; font-size: 10.5px; font-weight: 600; color: #93c5fd; padding: 2px 7px; border-radius: 999px; background: rgba(59, 130, 246, 0.16); border: 1px solid rgba(96, 165, 250, 0.28); }
.neo-urb-more { font-size: 12px; font-weight: 700; color: var(--neo-cobalt-lt); padding: 4px 10px; border-radius: 999px; background: var(--neo-cobalt-soft); }
.neo-urb-empty { font-size: 12.5px; color: var(--neo-muted); }

/* Galeri — Yuvarlatılmış Modern Sinema Sahnesi */
.neo-gallery-stage { margin-bottom: 14px; }
.neo-stage-card {
  position: relative; width: 100%; height: 470px; border-radius: 24px; overflow: hidden;
  border: 1px solid var(--neo-border-hi); background: #0a1020; cursor: zoom-in;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.55);
}
.neo-stage-card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.55s ease; }
.neo-stage-card:hover img { transform: scale(1.025); }
.neo-stage-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 8, 17, 0.35) 0%, transparent 35%, transparent 55%, rgba(5, 8, 17, 0.92) 100%); pointer-events: none; }
.neo-stage-top { position: absolute; top: 18px; left: 18px; right: 18px; z-index: 2; display: flex; justify-content: space-between; align-items: center; }
.neo-stage-pill { font-family: var(--mono); font-size: 12px; font-weight: 600; padding: 6px 13px; border-radius: 999px; background: rgba(6, 10, 20, 0.72); backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, 0.16); color: #fff; }
.neo-stage-expand { padding: 6px 14px; border-radius: 999px; background: rgba(6, 10, 20, 0.72); backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, 0.18); color: #fff; font-size: 12px; font-weight: 600; cursor: pointer; transition: background 0.15s ease; }
.neo-stage-expand:hover { background: #fff; color: #050811; }
.neo-stage-bottom { position: absolute; left: 18px; right: 18px; bottom: 18px; z-index: 2; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.neo-stage-copy { padding: 14px 18px; border-radius: 16px; background: rgba(6, 10, 20, 0.72); backdrop-filter: blur(16px); border: 1px solid rgba(255, 255, 255, 0.14); max-width: 640px; }
.neo-stage-copy h3 { font-family: var(--neo-head); font-size: 21px; font-weight: 700; color: #fff; line-height: 1.2; }
.neo-stage-copy p { font-size: 13.5px; color: var(--neo-silver); margin-top: 4px; }
.neo-stage-arrows { display: flex; gap: 8px; }
.neo-circle-btn { width: 42px; height: 42px; border-radius: 50%; background: rgba(6, 10, 20, 0.75); backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, 0.2); color: #fff; font-size: 16px; cursor: pointer; display: grid; place-items: center; transition: background 0.15s ease, color 0.15s ease; }
.neo-circle-btn:hover { background: #fff; color: #050811; }

.neo-gallery-thumbs { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.neo-thumb {
  text-align: left; padding: 6px; border-radius: 16px; background: var(--neo-glass); border: 1px solid var(--neo-border);
  cursor: pointer; overflow: hidden; transition: border-color 0.16s ease, transform 0.16s ease, background 0.16s ease;
}
.neo-thumb:hover { transform: translateY(-2px); border-color: var(--neo-border-hi); }
.neo-thumb.is-active { border-color: var(--neo-cobalt-lt); background: rgba(59, 130, 246, 0.12); }
.neo-thumb img { width: 100%; height: 108px; object-fit: cover; border-radius: 11px; display: block; opacity: 0.78; transition: opacity 0.16s ease; }
.neo-thumb.is-active img, .neo-thumb:hover img { opacity: 1; }
.neo-thumb-copy { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 6px 4px; }
.neo-thumb-copy strong { font-size: 12.5px; font-weight: 600; color: #f1f5f9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.neo-thumb-copy span { font-family: var(--mono); font-size: 11px; color: var(--neo-cobalt-lt); font-weight: 600; }

/* Personel Kadrosu */
.neo-roster-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 32px; }
.neo-segmented { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 5px; border-radius: 999px; background: var(--neo-glass); border: 1px solid var(--neo-border); }
.pub-staff-pill { border: none; background: transparent; color: var(--neo-soft); font-size: 13px; font-weight: 600; padding: 7px 16px; border-radius: 999px; cursor: pointer; transition: all 0.16s ease; }
.pub-staff-pill:hover { color: #fff; }
.pub-staff-pill.active { background: #fff; color: #050811; box-shadow: 0 4px 14px rgba(255, 255, 255, 0.15); }

.neo-search-pill { display: flex; align-items: center; gap: 9px; padding: 0 16px; height: 42px; border-radius: 999px; background: var(--neo-glass); border: 1px solid var(--neo-border-hi); color: var(--neo-soft); width: min(320px, 100%); }
.neo-search-pill input { background: transparent !important; border: none !important; padding: 0 !important; min-height: auto !important; color: #fff; font-size: 13.5px; width: 100%; box-shadow: none !important; }
.neo-search-pill input:focus { outline: none; }

.neo-staff-groups { display: flex; flex-direction: column; gap: 36px; }
.pub-staff-tier-block + .pub-staff-tier-block { margin-top: 28px; }
.pub-staff-tier-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.pub-staff-tier-title { font-family: var(--neo-head); font-size: 17px; font-weight: 700; color: #fff; white-space: nowrap; }
.pub-staff-tier-count { font-family: var(--mono); font-size: 11.5px; font-weight: 600; padding: 2px 10px; border-radius: 999px; background: var(--neo-cobalt-soft); color: var(--neo-cobalt-lt); }
.pub-staff-tier-line { flex: 1; height: 1px; background: var(--neo-border); }
.pub-command-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 13px; }
.pub-cmd-card {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px;
  background: var(--neo-glass); border: 1px solid var(--neo-border);
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}
.pub-cmd-card.tier-command { background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), var(--neo-glass) 60%); border-color: rgba(96, 165, 250, 0.25); }
.pub-cmd-card:hover { transform: translateY(-2px); border-color: var(--neo-border-hi); background: var(--neo-glass-hi); }
.pub-cmd-avatar { width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; font-weight: 700; font-size: 14px; color: #fff; background: var(--neo-cobalt-soft); border: 1.5px solid var(--neo-border-hi); overflow: hidden; }
.pub-cmd-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pub-cmd-meta { min-width: 0; flex: 1; }
.pub-cmd-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 2px; }
.pub-cmd-rank { font-size: 11px; font-weight: 600; color: var(--neo-cobalt-lt); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pub-cmd-card.tier-field .pub-cmd-rank { color: var(--neo-soft); }
.pub-cmd-status { flex-shrink: 0; font-size: 10.5px; font-weight: 600; color: var(--neo-soft); }
.pub-cmd-status.is-aktif { color: var(--neo-emerald); }
.pub-cmd-status.is-izinli { color: #fbbf24; }
.pub-cmd-status.is-pasif { color: #f87171; }
.pub-cmd-name { font-size: 14.5px; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pub-cmd-sub { margin-top: 6px; display: flex; flex-wrap: wrap; align-items: center; gap: 5px; font-size: 11px; color: var(--neo-muted); }
.pub-cmd-badge { font-family: var(--mono); font-size: 11px; font-weight: 600; color: #e2e8f0; background: rgba(255, 255, 255, 0.08); padding: 1px 7px; border-radius: 6px; }

/* Duyurular & Görev İlkeleri */
.neo-notices-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.neo-notice-card { padding: 24px; border-radius: 20px; background: var(--neo-glass); border: 1px solid var(--neo-border); }
.neo-notice-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.neo-notice-date { font-size: 12px; color: var(--neo-muted); }
.neo-notice-card h3 { font-family: var(--neo-head); font-size: 19px; color: #fff; margin-bottom: 8px; }
.neo-notice-card p { font-size: 14px; line-height: 1.68; color: var(--neo-soft); }

.neo-principles-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.neo-principle-card {
  padding: 28px; border-radius: 20px; background: var(--neo-glass); border: 1px solid var(--neo-border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05); transition: transform 0.18s ease, border-color 0.18s ease;
}
.neo-principle-card:hover { transform: translateY(-3px); border-color: rgba(96, 165, 250, 0.35); }
.neo-p-badge {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 16px;
  font-family: var(--mono); font-size: 13px; font-weight: 700; color: var(--neo-cobalt-lt);
  background: var(--neo-cobalt-soft); border: 1px solid rgba(96, 165, 250, 0.28);
}
.neo-principle-card h4 { font-family: var(--neo-head); font-size: 19px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.neo-principle-card p { font-size: 14px; line-height: 1.68; color: var(--neo-soft); }

/* Vatandaş Bildirim & Takip Merkezi */
.neo-support-hub { display: grid; grid-template-columns: minmax(290px, 420px) minmax(0, 1fr); gap: 22px; align-items: start; }
.neo-support-side { display: flex; flex-direction: column; gap: 14px; }
.neo-channel-cards { display: flex; flex-direction: column; gap: 10px; }
.neo-channel-card {
  width: 100%; text-align: left; padding: 16px 18px; border-radius: 16px;
  background: var(--neo-glass); border: 1px solid var(--neo-border);
  display: flex; align-items: flex-start; gap: 14px; cursor: pointer; color: inherit;
  transition: border-color 0.16s ease, background 0.16s ease;
}
.neo-channel-card:hover { border-color: var(--neo-border-hi); background: var(--neo-glass-hi); }
.neo-channel-card.is-selected { background: rgba(59, 130, 246, 0.12); border-color: rgba(96, 165, 250, 0.45); }
.neo-ch-ico { width: 38px; height: 38px; border-radius: 11px; flex-shrink: 0; display: grid; place-items: center; background: rgba(255, 255, 255, 0.06); color: var(--neo-cobalt-lt); }
.neo-channel-card.is-selected .neo-ch-ico { background: var(--neo-cobalt); color: #fff; }
.neo-channel-card strong { display: block; font-size: 14.5px; font-weight: 700; color: #fff; margin-bottom: 3px; }
.neo-channel-card span { display: block; font-size: 12.5px; line-height: 1.5; color: var(--neo-soft); }

.neo-lookup-card { padding: 20px; border-radius: 18px; background: var(--neo-glass); border: 1px solid var(--neo-border-hi); }
.neo-lookup-head { display: flex; align-items: center; gap: 8px; color: #fff; font-size: 14.5px; margin-bottom: 5px; }
.neo-lookup-card p { font-size: 12.5px; color: var(--neo-soft); margin-bottom: 12px; }
.neo-lookup-row { display: flex; gap: 8px; }
.neo-lookup-row input { flex: 1; border-radius: 999px !important; padding-left: 16px !important; text-transform: uppercase; font-family: var(--mono); letter-spacing: 0.06em; }
.pub-lookup-result { margin-top: 12px; padding: 12px 14px; border-radius: 12px; font-size: 13px; line-height: 1.55; border: 1px solid var(--neo-border-hi); background: rgba(255, 255, 255, 0.04); }
.pub-lookup-result.is-error { border-color: rgba(248, 113, 113, 0.45); background: rgba(248, 113, 113, 0.1); color: #fecaca; }
.pub-lookup-result.is-ok { border-color: rgba(52, 211, 153, 0.4); background: rgba(52, 211, 153, 0.09); }

.neo-form-card { padding: 30px; border-radius: 22px; background: var(--neo-glass); border: 1px solid var(--neo-border-hi); display: flex; flex-direction: column; gap: 16px; box-shadow: 0 20px 54px rgba(0, 0, 0, 0.35); }
.neo-form-card input, .neo-form-card select, .neo-form-card textarea { border-radius: 12px !important; background: rgba(5, 8, 17, 0.72) !important; border-color: var(--neo-border-hi) !important; }
.neo-form-card input:focus, .neo-form-card select:focus, .neo-form-card textarea:focus { border-color: var(--neo-cobalt-lt) !important; box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18) !important; }
.pub-fb-result { padding: 12px 15px; border-radius: 12px; font-size: 13px; font-weight: 600; background: rgba(52, 211, 153, 0.1); border: 1px solid rgba(52, 211, 153, 0.4); color: #a7f3d0; }
.pub-fb-result.err { background: rgba(248, 113, 113, 0.1); border-color: rgba(248, 113, 113, 0.42); color: #fecaca; }

/* Alt Bilgi */
.neo-footer { position: relative; z-index: 2; margin-top: auto; border-top: 1px solid var(--neo-border); background: rgba(5, 8, 17, 0.9); padding: 30px 84px 30px 24px; }
.neo-footer-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.neo-footer-brand { display: flex; align-items: center; gap: 12px; }
.neo-footer-logo { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 1.5px solid rgba(203, 213, 225, 0.3); }
.neo-footer-brand strong { display: block; font-family: var(--neo-head); font-size: 15px; font-weight: 700; color: #fff; }
.neo-footer-brand p { font-size: 12.5px; color: var(--neo-muted); margin-top: 2px; }
.neo-footer-links { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; font-weight: 500; }
.neo-footer-links a { color: var(--neo-soft); text-decoration: none; transition: color 0.15s ease; }
.neo-footer-links a:hover { color: #fff; }
.neo-footer-right { font-size: 12.5px; color: var(--neo-muted); }

.neo-scroll-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 950; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--neo-border-hi); background: rgba(9, 14, 26, 0.88); backdrop-filter: blur(12px); color: #fff;
  cursor: pointer; display: grid; place-items: center; box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
  opacity: 0; pointer-events: none; transform: translateY(10px); transition: opacity 0.2s ease, transform 0.2s ease, background 0.15s ease;
}
.neo-scroll-top.visible { opacity: 1; pointer-events: auto; transform: none; }
.neo-scroll-top:hover { background: #fff; color: #050811; }

.scroll-reveal { opacity: 0; transform: translateY(12px); transition: opacity 0.3s ease, transform 0.3s ease; }
.scroll-reveal.revealed { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .scroll-reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}



/* ============================ 9. DUYARLI KURALLAR ============================ */
@media (max-width: 1200px) {
  .an-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .an-stage-grid { grid-template-columns: 1fr; }
}

@media (max-width: 1180px) {
  .docs-profile-grid { grid-template-columns: 1fr 1fr; }
  .adm-users-layout, .cms-studio-shell { grid-template-columns: 1fr; }
  .adm-create-card, .cms-studio-nav { position: static; }
  .cms-studio-nav { flex-direction: row; flex-wrap: wrap; }
  .cms-nav-item { flex: 1 1 180px; }
  .neo-units-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
  .panel-alert-banner { left: 50%; width: min(680px, calc(100vw - 28px)); }
  .sidebar { position: fixed; left: 0; top: 0; transform: translateX(-105%); transition: transform 0.22s ease; box-shadow: 14px 0 44px rgba(0, 0, 0, 0.6); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-overlay.open { display: block; }
  .sb-close-btn { display: inline-flex; align-items: center; justify-content: center; }
  .mobile-menu-btn { display: inline-flex; }
  .topbar { padding: 10px 16px; }
  .topbar-left h2 { font-size: 21px; }
  .container { padding: 20px 16px 56px; }
  .stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .neo-nav { border-radius: 20px; flex-wrap: wrap; }
  .neo-menu-btn { display: inline-flex; }
  .neo-links { display: none; order: 3; width: 100%; padding-top: 10px; border-top: 1px solid var(--neo-border); flex-wrap: wrap; justify-content: center; gap: 4px; }
  .neo-links.open { display: flex; }
}

@media (max-width: 900px) {
  .neo-bento-grid, .neo-principles-grid, .neo-support-hub { grid-template-columns: 1fr; }
  .neo-bento-card.is-lead { grid-row: auto; padding: 26px; }
  .neo-bento-card.is-lead h3 { font-size: 23px; }
  .neo-highlights-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .leaderboard-podium { grid-template-columns: 1fr; }
  .analytics-two-col { grid-template-columns: 1fr; }
  .detail-grid, .two-cols { grid-template-columns: 1fr; }
  .archive-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-right { align-items: flex-start; }
  .docs-profile-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .neo-nav-wrap { padding: 0 10px; top: 10px; }
  .neo-nav { padding: 7px 8px 7px 10px; gap: 8px; border-radius: 22px; }
  .neo-brand { flex: 1 1 0; min-width: 0; gap: 8px; }
  .neo-brand-logo { width: 32px; height: 32px; }
  .neo-brand-text { min-width: 0; overflow: hidden; }
  .neo-brand-text span { display: none; }
  .neo-brand-text strong { font-size: 12px; letter-spacing: -0.02em; overflow: hidden; text-overflow: ellipsis; }
  .neo-nav-right { gap: 6px; }
  .neo-menu-btn { width: 34px; height: 34px; }
  .neo-cta-pill { height: 34px; padding: 0 11px; font-size: 11.5px; white-space: nowrap; }
  .neo-container { padding: 0 16px; }
  .neo-hero { padding: 26px 0 46px; }
  .neo-hero-header { margin-bottom: 24px; }
  .neo-hero-desc { font-size: 14.5px; }
  .neo-hero-actions .neo-btn { flex: 1 1 auto; }
  .neo-showcase-frame { height: 320px; border-radius: 18px; }
  .neo-showcase-badge { top: 10px; left: 10px; max-width: calc(100% - 20px); padding: 4px 10px 4px 5px; font-size: 10px; gap: 7px; }
  .neo-showcase-badge img { width: 22px; height: 22px; }
  .neo-live-dock { padding: 12px 14px; gap: 10px; left: 10px; right: 10px; bottom: 10px; }
  .neo-live-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; gap: 8px 12px; }
  .neo-live-stat strong { font-size: 18px; }
  .neo-section { padding: 64px 0; }
  .neo-units-grid { grid-template-columns: 1fr; }
  .neo-stage-card { height: 290px; border-radius: 18px; }
  .neo-stage-bottom { flex-direction: column; align-items: flex-start; left: 12px; right: 12px; bottom: 12px; }
  .neo-stage-copy { padding: 10px 14px; }
  .neo-stage-copy h3 { font-size: 17px; }
  .neo-gallery-thumbs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .neo-roster-bar { flex-direction: column; align-items: stretch; }
  .neo-search-pill { width: 100%; }
  .neo-form-card { padding: 20px; }
  .neo-footer { padding: 26px 68px 26px 16px; }
  .excuse-bar-row { grid-template-columns: 1fr; gap: 8px; }
  .excuse-bar-val { text-align: left; display: flex; justify-content: space-between; }
  .cms-gallery-edit-row { grid-template-columns: 1fr; }
  .topbar-actions .btn span { display: none; }
  .topbar-left p { display: none; }
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .officer-hero { padding: 18px; }
  .hero-left h2 { font-size: 26px; }
  .an-donut-wrap { grid-template-columns: 1fr; }
  .panel-alert-hint { display: none; }
}

@media (max-width: 600px) {
  .stats-row, .an-kpi-grid { grid-template-columns: 1fr; }
  .officers-grid { grid-template-columns: 1fr; }
  .off-metrics-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 8px; }
  .off-m-cell { border-right: none; background: rgba(150, 170, 205, 0.05); border-radius: 7px; padding: 6px; }
  .modal-box { padding: 18px; border-radius: var(--r-lg); }
  .modal-header h2 { font-size: 22px; }
  .report-row { padding: 12px 14px; }
  .auth-card { padding: 26px 20px 22px; }
  .excuse-section-box, .cms-card, .an-panel, .adm-card { padding: 16px; }
  .ws-header-card { padding: 15px 16px; }
  .ws-header-main h2 { font-size: 23px; }
}
