/* =============================================================================
   Blaine County Sheriff Department — Tasarım Sistemi
   Tek dosya, build adımı yok. Renkler/ölçüler CSS değişkenleriyle yönetilir.
   ============================================================================= */

/* ------------------------------ 1. TOKENS ------------------------------ */
:root {
  --font-display: "Cabinet Grotesk", "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --container: 1240px;
  --header-h: 76px;

  --ease: cubic-bezier(.4, 0, .2, 1);
  --shadow-sm: 0 1px 2px rgb(0 0 0 / .18);
  --shadow: 0 18px 50px -20px rgb(0 0 0 / .55);
  --shadow-lg: 0 40px 90px -30px rgb(0 0 0 / .7);
}

html[data-theme="dark"] {
  --bg: #020617;
  --bg-soft: #070d1f;
  --surface: #0b1226;
  --surface-2: #0f172a;
  --surface-3: #131c33;
  --fg: #e8eef9;
  --fg-strong: #ffffff;
  --muted-fg: #8fa3c0;
  --border: rgb(148 163 184 / .16);
  --border-strong: rgb(148 163 184 / .3);
  --primary: #38bdf8;
  --primary-soft: rgb(56 189 248 / .14);
  --primary-fg: #04121f;
  --emergency: #fb7185;
  --emergency-soft: rgb(251 113 133 / .14);
  --success: #34d399;
  --success-soft: rgb(52 211 153 / .14);
  --warning: #fbbf24;
  --warning-soft: rgb(251 191 36 / .14);
  --grid-line: rgb(56 189 248 / .07);
  --footer-fg: #94a3b8;
  --card-bg: linear-gradient(180deg, rgb(15 23 42 / .72), rgb(2 6 23 / .55));
  --input-bg: rgb(2 6 23 / .55);
  --on-accent: #04121f;
}

html[data-theme="light"] {
  --bg: #fbfcfe;
  --bg-soft: #f1f5f9;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --surface-3: #eef2f7;
  --fg: #0f1729;
  --fg-strong: #020617;
  --muted-fg: #5b6b83;
  --border: rgb(15 23 42 / .1);
  --border-strong: rgb(15 23 42 / .2);
  --primary: #0284c7;
  --primary-soft: rgb(2 132 199 / .1);
  --primary-fg: #ffffff;
  --emergency: #e11d48;
  --emergency-soft: rgb(225 29 72 / .1);
  --success: #059669;
  --success-soft: rgb(5 150 105 / .12);
  --warning: #b45309;
  --warning-soft: rgb(180 83 9 / .12);
  --grid-line: rgb(2 132 199 / .07);
  --footer-fg: #64748b;
  --card-bg: #ffffff;
  --input-bg: #ffffff;
  --on-accent: #ffffff;
  --shadow: 0 18px 50px -24px rgb(15 23 42 / .25);
  --shadow-lg: 0 40px 90px -40px rgb(15 23 42 / .3);
}

/* ------------------------------ 2. RESET ------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

/* "hidden" özniteliği her zaman gizli kalmalı (display kuralları onu ezebilir) */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.08; margin: 0; letter-spacing: -.02em; }
h1 { font-size: clamp(2.6rem, 6.4vw, 4.6rem); font-weight: 800; letter-spacing: -.03em; }
h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); font-weight: 800; }
h3 { font-size: 1.18rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--primary); color: var(--primary-fg); }

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--primary); color: var(--primary-fg); padding: 10px 16px; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

/* ------------------------------ 3. HELPERS ------------------------------ */
.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.display { font-family: var(--font-display); font-weight: 800; letter-spacing: -.03em; }
.mono { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.muted { color: var(--muted-fg); }
.small { font-size: .84rem; }
.grad {
  background: linear-gradient(100deg, var(--primary) 0%, #7dd3fc 40%, var(--fg-strong) 95%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { color: var(--muted-fg); font-size: 1.06rem; max-width: 62ch; margin-top: 18px; }
.empty { text-align: center; color: var(--muted-fg); padding: 40px 0; }
.block { width: 100%; justify-content: center; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow.live { color: var(--success); }

.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 0 currentColor;
  animation: pulse 2s infinite;
  flex: none;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgb(52 211 153 / .55); }
  70%  { box-shadow: 0 0 0 10px rgb(52 211 153 / 0); }
  100% { box-shadow: 0 0 0 0 rgb(52 211 153 / 0); }
}

/* ------------------------------ 4. BUTTONS ------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 24px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: .92rem; font-weight: 700;
  cursor: pointer;
  transition: transform .18s var(--ease), background .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease), box-shadow .18s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

.btn-primary { background: var(--primary); color: var(--primary-fg); box-shadow: 0 10px 30px -12px rgb(56 189 248 / .55); }
.btn-primary:hover { filter: brightness(1.06); }

.btn-ghost { border-color: var(--border-strong); color: var(--fg); background: transparent; }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }

.btn-quiet { color: var(--muted-fg); padding-inline: 14px; }
.btn-quiet:hover { color: var(--primary); }

.btn-outline { border-color: var(--border-strong); background: transparent; }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

.btn-danger { background: var(--emergency); color: #1a0208; }
.btn-danger:hover { filter: brightness(1.05); }

.btn-success { background: var(--success); color: #04231a; }

.btn-sm { padding: 9px 16px; font-size: .82rem; }
.btn-xs { padding: 6px 12px; font-size: .74rem; border-radius: var(--radius-pill); }
.btn-lg { padding: 15px 30px; font-size: 1rem; }

.icon-btn {
  width: 40px; height: 40px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--border); cursor: pointer;
  color: var(--muted-fg);
  transition: all .18s var(--ease);
}
.icon-btn:hover { color: var(--primary); border-color: var(--primary); background: var(--primary-soft); }
.icon-btn svg { width: 19px; height: 19px; }

html[data-theme="dark"] .icon-sun { display: none; }
html[data-theme="light"] .icon-moon { display: none; }

/* ------------------------------ 5. HEADER ------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .25s var(--ease), background .25s var(--ease);
}
.site-header.is-scrolled {
  box-shadow: 0 14px 40px -26px rgb(0 0 0 / .85);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
}
.header-inner {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}

.brand { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 11px;
  display: grid; place-items: center;
  background: var(--primary-soft); color: var(--primary);
  border: 1px solid rgb(56 189 248 / .28);
}
.brand-mark svg { width: 21px; height: 21px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; white-space: nowrap; }
.brand-text strong { font-family: var(--font-display); font-size: 1.16rem; font-weight: 800; letter-spacing: -.02em; }
.brand-text small { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .22em; color: var(--muted-fg); margin-top: 4px; }

.header-nav { display: flex; gap: 4px; margin: 0 auto; flex: 1; justify-content: center; }
.header-nav a {
  padding: 9px 13px; border-radius: 10px; font-size: .86rem; font-weight: 600;
  color: var(--muted-fg); transition: all .16s var(--ease); white-space: nowrap;
}
.header-nav a:hover { color: var(--fg); background: var(--surface-2); }
.header-nav a.active { color: var(--primary); background: var(--primary-soft); }

.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; margin-left: auto; }
.header-nav + .header-actions { margin-left: 0; }

.emergency-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em;
  color: var(--emergency); border: 1px solid var(--emergency-soft);
  background: var(--emergency-soft); padding: 7px 12px; border-radius: var(--radius-pill);
}

.header-portal {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 15px; border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong); font-size: .84rem; font-weight: 700;
  transition: all .18s var(--ease);
}
.header-portal svg { width: 17px; height: 17px; }
.header-portal:hover { border-color: var(--primary); color: var(--primary); }
.header-portal.is-authed { border-color: var(--success); color: var(--success); background: var(--success-soft); }

.menu-btn { display: none; }

.mobile-menu {
  display: none; flex-direction: column; gap: 2px;
  padding: 12px 20px 20px; border-top: 1px solid var(--border);
  background: var(--bg);
}
.mobile-menu a { padding: 11px 4px; border-bottom: 1px solid var(--border); font-size: .92rem; font-weight: 600; }
.mobile-menu hr { border: 0; border-top: 1px solid var(--border); margin: 10px 0; }

/* ------------------------------ 6. HERO ------------------------------ */
.hero { position: relative; padding: 92px 0 0; overflow: hidden; }
.grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 78%);
}
.grid-bg-dark { opacity: .8; }
.hero-glow {
  position: absolute; top: -180px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 520px; pointer-events: none;
  background: radial-gradient(circle, rgb(56 189 248 / .16), transparent 62%);
  filter: blur(20px);
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
  padding-bottom: 84px;
}
.hero h1 { margin-bottom: 4px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.hero-stats { display: flex; gap: 42px; margin: 46px 0 0; flex-wrap: wrap; }
.hero-stats .stat dt {
  font-family: var(--font-display); font-size: 2.1rem; font-weight: 800; line-height: 1;
  color: var(--fg-strong);
}
.hero-stats .stat dd {
  margin: 8px 0 0; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .16em;
  color: var(--muted-fg);
}

.hero-visual { position: relative; }
.hero-image {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border); box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3.4;
}
.hero-image img { width: 100%; height: 100%; object-fit: cover; }
.hero-image-shade {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgb(2 6 23 / .88) 0%, rgb(2 6 23 / .12) 48%, transparent 75%);
}
html[data-theme="light"] .hero-image-shade { background: linear-gradient(to top, rgb(2 6 23 / .55), transparent 65%); }
.hero-badge {
  position: absolute; left: 22px; bottom: 22px;
  background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(10px);
  border: 1px solid var(--border-strong); border-radius: var(--radius);
  padding: 12px 16px; display: flex; flex-direction: column; gap: 3px;
}
.hero-badge span { color: var(--muted-fg); }
.hero-badge strong { font-family: var(--font-display); font-size: 1.06rem; color: var(--success); }
.hero-badge-corner {
  position: absolute; right: 18px; top: 18px; color: #fff;
  background: rgb(2 6 23 / .6); backdrop-filter: blur(8px);
  border: 1px solid rgb(255 255 255 / .18); padding: 6px 11px; border-radius: var(--radius-pill);
}

.ticker { position: relative; z-index: 1; border-block: 1px solid var(--border); background: var(--bg-soft); overflow: hidden; }
.ticker-track { display: flex; gap: 0; width: max-content; animation: ticker 42s linear infinite; }
.ticker-item {
  display: inline-flex; align-items: center; gap: 12px; white-space: nowrap;
  padding: 13px 26px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em;
  color: var(--muted-fg); border-right: 1px solid var(--border);
}
.ticker-item b { color: var(--fg); font-weight: 600; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ------------------------------ 7. SECTIONS ------------------------------ */
.section { position: relative; padding: 96px 0; }
.section-alt { background: color-mix(in srgb, var(--bg-soft) 60%, transparent); border-block: 1px solid var(--border); }
.section-dark { background: #020617; color: #e2e8f0; }
html[data-theme="light"] .section-dark { background: #0b1226; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .lead { color: #94a3b8; }
.section-dark .eyebrow { color: var(--primary); }

.section-head { max-width: 760px; margin-bottom: 52px; }
.section-head.row {
  max-width: none; display: flex; justify-content: space-between; align-items: flex-end;
  gap: 28px; flex-wrap: wrap;
}
.section-head .lead { margin-top: 20px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.split-media { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); }
.split-media img { width: 100%; aspect-ratio: 4/3.2; object-fit: cover; }
.media-chip {
  position: absolute; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 2px;
  background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: blur(10px);
  border: 1px solid var(--border-strong); border-radius: var(--radius); padding: 9px 13px;
}
.media-chip span { color: var(--muted-fg); }
.media-chip strong { font-family: var(--font-display); font-size: .95rem; }

.feature-card {
  background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px; margin-bottom: 20px;
}
.feature-card h3 { margin-bottom: 10px; }
.feature-card p { color: var(--muted-fg); font-size: .94rem; }
.feature-metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--border); }
.feature-metrics strong { display: block; font-family: var(--font-display); font-size: 1.85rem; font-weight: 800; color: var(--primary); line-height: 1; }
.feature-metrics span { display: block; color: var(--muted-fg); margin-top: 7px; }

/* units */
.unit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 18px; }
.unit-card {
  position: relative; padding: 26px 22px 28px; border-radius: var(--radius-lg);
  border: 1px solid var(--border); background: var(--card-bg);
  transition: transform .22s var(--ease), border-color .22s var(--ease), box-shadow .22s var(--ease);
  overflow: hidden;
}
.unit-card::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 2px;
  background: linear-gradient(90deg, var(--primary), transparent);
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.unit-card:hover { transform: translateY(-4px); border-color: var(--primary); box-shadow: var(--shadow); }
.unit-card:hover::after { transform: scaleX(1); }
.unit-index { color: var(--primary); opacity: .8; }
.unit-card h3 { margin: 12px 0 9px; }
.unit-card p { color: var(--muted-fg); font-size: .89rem; }

/* pillars */
.pillar-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 22px; }
.pillar {
  padding: 30px 26px; border-radius: var(--radius-lg);
  border: 1px solid rgb(148 163 184 / .18); background: rgb(15 23 42 / .55);
}
.pillar-icon {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: rgb(56 189 248 / .12); color: var(--primary); border: 1px solid rgb(56 189 248 / .25);
  margin-bottom: 18px;
}
.pillar-icon svg { width: 22px; height: 22px; }
.pillar h3 { margin-bottom: 10px; font-size: 1.08rem; }
.pillar p { color: #94a3b8; font-size: .92rem; }

/* ------------------------------ 8. TEAM ------------------------------ */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-btn {
  padding: 8px 15px; border-radius: var(--radius-pill); border: 1px solid var(--border);
  background: transparent; color: var(--muted-fg); font-size: .82rem; font-weight: 600; cursor: pointer;
  transition: all .16s var(--ease);
}
.filter-btn:hover { color: var(--fg); border-color: var(--border-strong); }
.filter-btn.active { background: var(--primary); color: var(--primary-fg); border-color: var(--primary); }

.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.team-card {
  border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--card-bg);
  overflow: hidden; transition: transform .22s var(--ease), border-color .22s var(--ease), box-shadow .22s var(--ease);
}
.team-card:hover { transform: translateY(-4px); border-color: var(--primary); box-shadow: var(--shadow); }
.team-top { position: relative; height: 132px; display: grid; place-items: center; background: linear-gradient(135deg, var(--surface-2), var(--surface-3)); }
.team-avatar {
  width: 82px; height: 82px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; color: var(--primary);
  background: var(--surface); border: 2px solid var(--border-strong); overflow: hidden;
}
.team-avatar img { width: 100%; height: 100%; object-fit: cover; }
.team-callsign {
  position: absolute; left: 12px; bottom: 12px; font-family: var(--font-mono); font-size: 10px;
  letter-spacing: .12em; color: var(--primary); background: color-mix(in srgb, var(--bg) 80%, transparent);
  border: 1px solid var(--border); padding: 4px 9px; border-radius: var(--radius-pill);
}
.team-body { padding: 18px; }
.team-body h3 { font-size: 1.05rem; }
.team-role { color: var(--muted-fg); font-size: .85rem; margin-top: 4px; }
.team-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 14px; }
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--radius-pill);
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase;
  border: 1px solid var(--border); color: var(--muted-fg);
}
.badge-doc { color: var(--primary); border-color: rgb(56 189 248 / .3); background: var(--primary-soft); }
.badge-sec { color: var(--warning); border-color: rgb(251 191 36 / .3); background: var(--warning-soft); }
.badge-man { color: var(--success); border-color: rgb(52 211 153 / .3); background: var(--success-soft); }
.badge-off { color: var(--muted-fg); }
.badge-on { color: var(--success); border-color: rgb(52 211 153 / .35); background: var(--success-soft); }
.badge-break { color: var(--warning); border-color: rgb(251 191 36 / .35); background: var(--warning-soft); }

/* ------------------------------ 9. SHIFTS ------------------------------ */
.shift-legend { display: flex; gap: 10px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: var(--radius-pill);
  border: 1px solid var(--border); font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em;
  color: var(--muted-fg); background: rgb(15 23 42 / .4);
}
.chip-active { color: var(--success); border-color: rgb(52 211 153 / .3); }
.chip-break { color: var(--warning); border-color: rgb(251 191 36 / .3); }
.chip-off { color: var(--muted-fg); }

.shift-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.shift-card {
  border-radius: var(--radius-lg); border: 1px solid rgb(148 163 184 / .2);
  background: rgb(15 23 42 / .55); padding: 24px; position: relative; overflow: hidden;
}
.shift-card.is-current { border-color: var(--primary); box-shadow: 0 0 0 1px rgb(56 189 248 / .25), var(--shadow); }
.shift-card h3 { font-size: 1.12rem; }
.shift-hours { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; color: var(--primary); margin-top: 6px; }
.shift-assignees { margin-top: 18px; display: flex; flex-direction: column; gap: 9px; }
.assignee { display: flex; align-items: center; gap: 11px; font-size: .9rem; }
.assignee-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted-fg); flex: none; }
.assignee.is-on .assignee-dot { background: var(--success); box-shadow: 0 0 8px rgb(52 211 153 / .8); }
.assignee.is-break .assignee-dot { background: var(--warning); }
.assignee span:last-child { margin-left: auto; font-family: var(--font-mono); font-size: 10px; color: var(--muted-fg); }
.shift-empty { color: var(--muted-fg); font-size: .86rem; font-style: italic; }

.on-duty-panel { margin-top: 26px; border: 1px solid rgb(148 163 184 / .18); border-radius: var(--radius-lg); background: rgb(15 23 42 / .45); overflow: hidden; }
.panel-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid rgb(148 163 184 / .15); }
.panel-head h3 { font-size: 1rem; }
.on-duty-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1px; background: rgb(148 163 184 / .1); }
.on-duty-item { background: rgb(2 6 23 / .55); padding: 16px 20px; display: flex; align-items: center; gap: 12px; }
.on-duty-item .who { font-weight: 700; font-size: .92rem; }
.on-duty-item .when { font-family: var(--font-mono); font-size: 10px; color: var(--muted-fg); letter-spacing: .08em; }

/* ------------------------------ 10. ANNOUNCEMENTS ------------------------------ */
.ann-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.ann-card {
  border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--card-bg);
  padding: 24px; display: flex; flex-direction: column; gap: 12px;
  transition: transform .2s var(--ease), border-color .2s var(--ease);
}
.ann-card:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.ann-card h3 { font-size: 1.06rem; }
.ann-card p { color: var(--muted-fg); font-size: .9rem; }
.ann-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border); }
.ann-cat { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .12em; color: var(--primary); border: 1px solid rgb(56 189 248 / .3); padding: 3px 9px; border-radius: var(--radius-pill); }

/* ------------------------------ 11. DUTY / FORMS ------------------------------ */
.card { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; }
.duty-layout { display: grid; grid-template-columns: 1.45fr 1fr; gap: 22px; align-items: start; }

.duty-terminal { position: relative; overflow: hidden; }
.terminal-head { display: flex; justify-content: space-between; align-items: center; color: var(--muted-fg); margin-bottom: 20px; }
.terminal-timer {
  font-family: var(--font-display); font-size: clamp(2.6rem, 7vw, 4.2rem); font-weight: 800;
  letter-spacing: -.02em; color: var(--fg-strong); line-height: 1; font-variant-numeric: tabular-nums;
}
.terminal-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: .16em; color: var(--muted-fg); margin-top: 10px; }
.terminal-actions { display: flex; gap: 10px; margin-top: 22px; }
.terminal-actions .input { flex: 1; }
.terminal-note { color: var(--muted-fg); opacity: .75; margin-top: 18px; font-size: 9.5px; line-height: 1.8; }
.terminal-note.warn { color: var(--warning); opacity: 1; }

.duty-side h3 { margin-bottom: 8px; }
.duty-side p { color: var(--muted-fg); font-size: .9rem; }
.check-list { margin: 18px 0 22px; display: flex; flex-direction: column; gap: 10px; }
.check-list li { position: relative; padding-left: 26px; font-size: .89rem; color: var(--muted-fg); }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 8px; width: 13px; height: 7px;
  border-left: 2px solid var(--success); border-bottom: 2px solid var(--success);
  transform: rotate(-45deg);
}

.form-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 22px; align-items: start; }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form.wide { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.field { display: flex; flex-direction: column; gap: 7px; }
.span-2 { grid-column: span 2; }
.label { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em; color: var(--muted-fg); text-transform: uppercase; }
.input {
  height: 46px; width: 100%; padding: 0 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--input-bg); color: var(--fg);
  font-size: .92rem; transition: border-color .16s var(--ease), box-shadow .16s var(--ease);
}
textarea.input { height: auto; padding: 12px 14px; resize: vertical; line-height: 1.55; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted-fg) 50%), linear-gradient(135deg, var(--muted-fg) 50%, transparent 50%); background-position: calc(100% - 19px) 21px, calc(100% - 14px) 21px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 38px; }
.input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.input::placeholder { color: color-mix(in srgb, var(--muted-fg) 70%, transparent); }
.input.invalid { border-color: var(--emergency); box-shadow: 0 0 0 3px var(--emergency-soft); }
.form-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 4px; }
.form-note { color: var(--muted-fg); font-size: 9.5px; opacity: .8; }
.field-error { color: var(--emergency); font-size: .78rem; }

.side-card h3 { margin-bottom: 14px; }
.rules { display: flex; flex-direction: column; gap: 12px; counter-reset: r; margin-bottom: 22px; }
.rules li { position: relative; padding-left: 34px; color: var(--muted-fg); font-size: .89rem; }
.rules li::before {
  counter-increment: r; content: counter(r, decimal-leading-zero);
  position: absolute; left: 0; top: 0; font-family: var(--font-mono); font-size: 10px;
  color: var(--primary); border: 1px solid rgb(56 189 248 / .3); border-radius: 6px;
  width: 24px; height: 24px; display: grid; place-items: center;
}
.callout { border: 1px solid var(--emergency-soft); background: var(--emergency-soft); border-radius: var(--radius); padding: 16px; }
.callout span { color: var(--emergency); }
.callout p { color: var(--fg); font-size: .88rem; margin-top: 6px; }

/* ------------------------------ 12. FOOTER ------------------------------ */
.site-footer { position: relative; background: #020617; color: var(--footer-fg); padding: 78px 0 26px; margin-top: 40px; overflow: hidden; }
.footer-mark {
  position: absolute; bottom: -3vw; left: 50%; transform: translateX(-50%);
  font-family: var(--font-display); font-size: 19vw; font-weight: 800; line-height: 1;
  color: rgb(255 255 255 / .035); white-space: nowrap; pointer-events: none;
}
.footer-inner { position: relative; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 42px; }
.footer-brand p { margin: 18px 0 20px; font-size: .9rem; max-width: 42ch; }
.footer-brand .btn { border-color: rgb(148 163 184 / .25); color: #e2e8f0; }
.footer-brand .btn:hover { border-color: var(--primary); color: var(--primary); }
.footer-label { color: #475569; margin-bottom: 16px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: .88rem; color: #cbd5e1; transition: color .16s var(--ease); }
.footer-col a:hover { color: var(--primary); }
.freq { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.freq li { display: flex; justify-content: space-between; gap: 12px; font-size: .85rem; border-bottom: 1px dashed rgb(148 163 184 / .16); padding-bottom: 9px; }
.freq b { font-family: var(--font-mono); font-size: 12px; color: #e2e8f0; font-weight: 500; }
.footer-callout { border: 1px solid rgb(251 113 133 / .25); background: rgb(251 113 133 / .08); border-radius: var(--radius); padding: 14px 16px; }
.footer-callout p { font-size: .85rem; color: #cbd5e1; margin-top: 6px; }
.footer-callout .mono { color: var(--emergency); }
.footer-bottom { position: relative; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 48px; padding-top: 22px; border-top: 1px solid rgb(148 163 184 / .14); color: #64748b; }

/* ------------------------------ 13. ROUTE VIEWS ------------------------------ */
.view { min-height: 60vh; }
.view-pad { padding: 58px 0 90px; }

.auth-wrap { display: grid; place-items: center; min-height: calc(100vh - var(--header-h)); padding: 48px 0 80px; }
.auth-card { width: min(100%, 460px); background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow-lg); }
.auth-card .brand { margin-bottom: 26px; }
.auth-title { font-family: var(--font-display); font-size: 1.9rem; font-weight: 800; letter-spacing: -.02em; }
.auth-sub { color: var(--muted-fg); font-size: .9rem; margin: 8px 0 24px; }
.auth-card .field { margin-bottom: 14px; }
.auth-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 18px; }
.checkbox { display: inline-flex; align-items: center; gap: 9px; font-size: .85rem; color: var(--muted-fg); cursor: pointer; }
.checkbox input { width: 16px; height: 16px; accent-color: var(--primary); }
.link-btn { background: none; border: 0; color: var(--primary); font-size: .85rem; cursor: pointer; padding: 0; }
.link-btn:hover { text-decoration: underline; }
.auth-error {
  background: var(--emergency-soft); border: 1px solid rgb(251 113 133 / .3); color: var(--emergency);
  padding: 11px 14px; border-radius: var(--radius-sm); font-size: .85rem; margin-bottom: 16px;
}
.auth-info { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); color: var(--muted-fg); font-size: .82rem; }
.auth-info code { font-family: var(--font-mono); font-size: .8rem; color: var(--primary); background: var(--primary-soft); padding: 1px 6px; border-radius: 5px; }

/* ------------------------------ YÖNETİM KAPISI ------------------------------ */
.admin-gate {
  min-height: calc(100vh - var(--header-h));
  display: grid; place-items: center;
  padding: 58px 20px 90px;
  background:
    radial-gradient(900px 420px at 50% -8%, rgb(251 191 36 / .10), transparent 62%),
    radial-gradient(700px 380px at 88% 108%, rgb(56 189 248 / .07), transparent 60%);
}
.admin-gate-card {
  width: 100%; max-width: 480px;
  background: var(--surface);
  border: 1px solid rgb(251 191 36 / .28);
  border-radius: var(--radius-lg);
  padding: 34px 30px 30px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgb(251 191 36 / .06) inset;
  position: relative; overflow: hidden;
}
.admin-gate-card::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 3px;
  background: linear-gradient(90deg, transparent, var(--warning), transparent);
}
.admin-gate-mark {
  width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center;
  background: var(--warning-soft); color: var(--warning);
  border: 1px solid rgb(251 191 36 / .3); margin-bottom: 18px;
}
.admin-gate-mark svg { width: 26px; height: 26px; }
.admin-eyebrow { color: var(--warning); }
.admin-gate-card .auth-title { margin-bottom: 8px; }
.admin-gate-card .auth-sub { color: var(--muted-fg); font-size: .88rem; }
.admin-gate-card .auth-sub strong { color: var(--fg); }
.admin-gate-card .field { margin-top: 18px; }
.admin-gate-card .checkbox { margin-top: 14px; }
.admin-gate-card .btn-lg { margin-top: 20px; }
.admin-gate-alt {
  margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border);
  display: grid; gap: 10px;
}
.admin-gate-note {
  margin-top: 16px; font-size: .68rem; letter-spacing: .08em;
  color: var(--muted-fg); opacity: .75; text-align: center;
}
.admin-gate-card .auth-info { border-top-color: rgb(251 191 36 / .2); }
.admin-gate-card .auth-info code { color: var(--warning); background: var(--warning-soft); }

/* ------------------------------ YÖNETİM PANELİ ------------------------------ */
.admin-shell { position: relative; }
.admin-shell::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 2px;
  background: linear-gradient(90deg, var(--warning), rgb(56 189 248 / .55), transparent);
}
.admin-head { padding-top: 10px; }
.admin-access-badge {
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .14em;
  padding: 6px 11px; border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong); color: var(--muted-fg); white-space: nowrap;
}
.admin-access-badge.is-password { color: var(--warning); border-color: rgb(251 191 36 / .38); background: var(--warning-soft); }
.admin-access-badge.is-account { color: var(--primary); border-color: rgb(56 189 248 / .38); background: var(--primary-soft); }
.admin-divider { border: 0; border-top: 1px solid var(--border); margin: 26px 0 22px; }
.admin-settings h3 { font-family: var(--font-display); font-size: 1.15rem; }
.admin-settings p { max-width: 62ch; }

/* Mobil menüdeki çıkış düğmesi */
.mobile-menu .mobile-logout {
  margin-top: 8px; width: 100%; text-align: left;
  padding: 11px 4px; border: 0; border-top: 1px solid var(--border);
  background: transparent; color: var(--emergency);
  font-size: .92rem; font-weight: 600; font-family: inherit; cursor: pointer;
}
.mobile-menu .mobile-logout:hover { color: var(--emergency); opacity: .8; }

/* dashboard */
.dash-head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 22px; flex-wrap: wrap;
  margin-bottom: 30px;
}
.dash-user { display: flex; align-items: center; gap: 14px; }
.dash-avatar { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); font-family: var(--font-display); font-weight: 800; border: 1px solid rgb(56 189 248 / .3); }
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; margin-bottom: 26px; }
.kpi { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; background: var(--card-bg); }
.kpi span { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .14em; color: var(--muted-fg); text-transform: uppercase; }
.kpi strong { display: block; font-family: var(--font-display); font-size: 2rem; font-weight: 800; line-height: 1.1; margin-top: 9px; }
.kpi small { color: var(--muted-fg); font-size: .78rem; }
.kpi.accent strong { color: var(--primary); }
.kpi.good strong { color: var(--success); }
.kpi.warn strong { color: var(--warning); }

.dash-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 22px; align-items: start; }
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: .87rem; }
table.data th {
  text-align: left; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted-fg); font-weight: 500; padding: 11px 12px; border-bottom: 1px solid var(--border); white-space: nowrap;
}
table.data td { padding: 13px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
table.data tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover { background: var(--surface-2); }

.tabs { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 1px solid var(--border); margin-bottom: 24px; }
.tab {
  padding: 11px 16px; border: 0; background: none; cursor: pointer; font-size: .88rem; font-weight: 600;
  color: var(--muted-fg); border-bottom: 2px solid transparent; margin-bottom: -1px; transition: all .16s var(--ease);
}
.tab:hover { color: var(--fg); }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab .count { font-family: var(--font-mono); font-size: 10px; opacity: .7; margin-left: 6px; }

.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.toolbar h3 { font-size: 1.05rem; }

.clock-panel {
  border: 1px solid rgb(52 211 153 / .3); background: linear-gradient(180deg, rgb(52 211 153 / .1), transparent);
  border-radius: var(--radius-lg); padding: 24px;
}
.clock-panel.on-break { border-color: rgb(251 191 36 / .3); background: linear-gradient(180deg, rgb(251 191 36 / .1), transparent); }
.clock-time { font-family: var(--font-display); font-size: 3rem; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.clock-meta { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 14px; color: var(--muted-fg); font-size: .84rem; }
.clock-meta b { color: var(--fg); }
.clock-actions { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }

.progress { height: 7px; border-radius: 99px; background: var(--surface-3); overflow: hidden; margin-top: 12px; }
.progress > span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--primary), #7dd3fc); transition: width .4s var(--ease); }

/* ------------------------------ 14. MODAL ------------------------------ */
.modal-root { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 24px; }
.modal-root[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgb(2 6 23 / .72); backdrop-filter: blur(6px); }
.modal-panel {
  position: relative; width: min(100%, 640px); max-height: 88vh; overflow-y: auto;
  background: var(--bg-soft); border: 1px solid var(--border-strong); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); animation: modal-in .22s var(--ease);
}
@keyframes modal-in { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--bg-soft); z-index: 2; }
.modal-body { padding: 24px; }
.modal-foot { display: flex; gap: 10px; justify-content: flex-end; margin-top: 22px; flex-wrap: wrap; }

/* ------------------------------ 15. TOAST ------------------------------ */
.toast-root { position: fixed; right: 18px; bottom: 18px; z-index: 300; display: flex; flex-direction: column; gap: 10px; max-width: min(92vw, 380px); pointer-events: none; }
.toast {
  background: var(--surface); border: 1px solid var(--border-strong); border-left: 3px solid var(--primary);
  border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); animation: toast-in .22s var(--ease);
}
.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--emergency); }
.toast.warn { border-left-color: var(--warning); }
.toast strong { display: block; font-size: .9rem; }
.toast span { display: block; color: var(--muted-fg); font-size: .82rem; margin-top: 3px; }
@keyframes toast-in { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }

/* ------------------------------ 16. RESPONSIVE ------------------------------ */
@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; max-width: 560px; }
  .split, .duty-layout, .form-layout, .dash-grid { grid-template-columns: 1fr; }
  .form.wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .header-nav { gap: 2px; }
  .header-nav a { padding: 7px 10px; font-size: .8rem; }
  .header-actions { gap: 8px; }
}

@media (max-width: 860px) {
  .header-nav { display: none; }
  .menu-btn { display: inline-flex; }
  .header-cta { display: none; }
  .emergency-badge { display: none; }
  .mobile-menu { display: flex; }
  .mobile-menu[hidden] { display: none; }
  .section { padding: 68px 0; }
  .hero { padding-top: 56px; }
  .hero-stats { gap: 26px; }
  .header-portal span { display: none; }
  .header-portal { padding: 9px 11px; }
  .header-actions { gap: 6px; }
}

@media (max-width: 620px) {
  .container { width: min(100% - 28px, var(--container)); }
  .form, .form.wide { grid-template-columns: 1fr; }
  .span-2 { grid-column: span 1; }
  .feature-metrics { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .terminal-actions { flex-direction: column; }
  .header-portal span { display: none; }
  .header-portal { padding: 9px 11px; }
  .section-head.row { flex-direction: column; align-items: flex-start; }
  .brand-text small { display: none; }
  .header-actions { gap: 4px; }
  .emergency-badge { padding: 5px 8px; font-size: 10px; }
}

@media (max-width: 620px) {
  .container { width: min(100% - 28px, var(--container)); }
  .form, .form.wide { grid-template-columns: 1fr; }
  .span-2 { grid-column: span 1; }
  .feature-metrics { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .terminal-actions { flex-direction: column; }
  .header-portal span { display: none; }
  .header-portal { padding: 9px 11px; }
  .section-head.row { flex-direction: column; align-items: flex-start; }
}

/* ------------------------------ 17. YETERLİLİK TESTİ ------------------------------ */
.yeterlilik-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, var(--primary), #0284c7);
  color: var(--primary-fg);
  box-shadow: var(--shadow-lg);
  animation: slideDown 0.4s var(--ease);
}
@keyframes slideDown {
  from { transform: translateY(-100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.yeterlilik-banner-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.yeterlilik-banner-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.yeterlilik-banner-content strong {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
}
.yeterlilik-banner-content span {
  font-size: 0.85rem;
  opacity: 0.9;
}
.header-yeterlilik-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.yeterlilik-wrap {
  display: grid;
  place-items: center;
  min-height: calc(100vh - var(--header-h) - 80px);
  padding: 40px 20px;
}
.yeterlilik-card {
  width: 100%;
  max-width: 480px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-lg);
}
.yeterlilik-form-card { max-width: 520px; }
.yeterlilik-test-card { max-width: 720px; }
.yeterlilik-success-card { max-width: 480px; text-align: center; }

.yeterlilik-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  margin-bottom: 28px;
}
.yeterlilik-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  color: var(--primary);
  border: 1px solid rgb(56 189 248 / .3);
}
.yeterlilik-icon svg { width: 28px; height: 28px; }
.yeterlilik-header h1 { font-size: 1.7rem; margin: 0; }
.yeterlilik-header p { margin: 0; font-size: 0.95rem; }

.yeterlilik-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  background: var(--surface-2);
  border-radius: var(--radius-pill);
  padding: 4px;
}
.yeterlilik-tab {
  flex: 1;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  border: 0;
  background: transparent;
  color: var(--muted-fg);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.yeterlilik-tab:hover { color: var(--fg); }
.yeterlilik-tab.active {
  background: var(--primary);
  color: var(--primary-fg);
  box-shadow: 0 4px 14px -4px rgb(56 189 248 / .5);
}

/* Şifre formu - alan aralıkları ve buton */
#yeterlilik-password-form { display: flex; flex-direction: column; gap: 16px; }
#yeterlilik-password-form .field { margin-bottom: 0; }
#yeterlilik-password-form .field-error { margin-top: 4px; }
#yeterlilik-password-form .btn { margin-top: 8px; }
#yeterlilik-password-form .btn-lg { padding: 12px 24px; font-size: 0.95rem; }

#yeterlilik-dept-field { margin-top: 12px; }

.yeterlilik-field { margin-bottom: 16px; }
.yeterlilik-field .input { width: 100%; }

.yeterlilik-management-wrap {
  width: 100%;
  max-width: 1100px;
  min-height: calc(100vh - var(--header-h));
}
.yeterlilik-management-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 20px 24px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  border-bottom: 0;
}
.management-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.management-header-left h1 { font-size: 1.35rem; margin: 0; }
.management-header-left p { margin: 4px 0 0; font-size: 0.9rem; }
.management-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.management-count-badge {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), #0284c7);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  box-shadow: 0 8px 24px -8px rgb(56 189 248 / .6);
}

.yeterlilik-management-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  overflow: hidden;
}
.yeterlilik-management-sidebar {
  border-right: 1px solid var(--border);
  padding: 20px;
  overflow-y: auto;
  max-height: calc(100vh - var(--header-h) - 120px);
}
.yeterlilik-management-sidebar h3 {
  font-size: 0.95rem;
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  color: var(--fg);
}
.management-test-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.management-test-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.18s var(--ease);
}
.management-test-item:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
}
.management-test-item.active {
  border-color: var(--primary);
  background: var(--primary-soft);
  box-shadow: 0 0 0 2px var(--primary-soft);
}
.test-item-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.test-item-info strong { font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.test-item-info .mono { font-size: 10px; color: var(--muted-fg); }
.test-status {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  flex-shrink: 0;
}
.test-status.pending { background: var(--warning-soft); color: var(--warning); border: 1px solid rgb(251 191 36 / .3); }
.test-status.approved { background: var(--success-soft); color: var(--success); border: 1px solid rgb(52 211 153 / .3); }
.test-status.rejected { background: var(--emergency-soft); color: var(--emergency); border: 1px solid rgb(251 113 133 / .3); }
.management-empty {
  text-align: center;
  color: var(--muted-fg);
  padding: 40px 20px;
  font-size: 0.9rem;
}

.yeterlilik-management-detail {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
  max-height: calc(100vh - var(--header-h) - 120px);
}
.management-detail-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 300px;
  text-align: center;
  color: var(--muted-fg);
  gap: 12px;
}
.management-detail-empty svg { width: 64px; height: 64px; opacity: 0.4; }
.management-detail-empty p { max-width: 280px; }

.management-detail-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
  height: 100%;
}
.management-detail-left h3 { font-size: 1rem; margin: 0 0 16px; }
.management-answers { display: flex; flex-direction: column; gap: 16px; }
.management-answer-row {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}
.management-question {
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--fg);
}
.management-answer {
  color: var(--muted-fg);
  font-size: 0.92rem;
  line-height: 1.6;
  white-space: pre-wrap;
}

.management-detail-right { display: flex; flex-direction: column; gap: 16px; }
.management-staff-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.management-staff-card h4 { margin: 0 0 16px; font-size: 1rem; }
.staff-info-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 0.9rem;
}
.staff-info-row:last-child { margin-bottom: 0; }
.staff-info-row .mono { color: var(--muted-fg); font-size: 10px; }
.staff-info-row strong { color: var(--fg); }

.management-actions {
  display: flex;
  gap: 10px;
  padding-top: 8px;
}
.management-actions .btn { flex: 1; }

/* Test soruları */
.yeterlilik-test-wrap .yeterlilik-header p { font-size: 0.85rem; opacity: 0.8; }
.questions-container { display: flex; flex-direction: column; gap: 20px; margin-bottom: 8px; }
.question-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.question-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}
.question-header .mono {
  background: var(--primary-soft);
  color: var(--primary);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 10px;
  flex-shrink: 0;
  margin-top: 2px;
}
.question-header strong { font-size: 1rem; line-height: 1.4; }
.question-input { display: flex; flex-direction: column; gap: 10px; }
.radio-option, .checkbox-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.16s var(--ease);
}
.radio-option:hover, .checkbox-option:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
}
.radio-option input, .checkbox-option input { accent-color: var(--primary); width: 16px; height: 16px; }
.question-input textarea.input { min-height: 80px; }

/* Başarı ekranı */
.yeterlilik-success-card { padding: 48px 32px; }
.success-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: var(--success-soft);
  color: var(--success);
  margin-bottom: 20px;
  border: 1px solid rgb(52 211 153 / .3);
}
.success-icon svg { width: 36px; height: 36px; }
.yeterlilik-success-card h1 { font-size: 1.6rem; margin-bottom: 12px; }
.success-desc {
  color: var(--muted-fg);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 28px;
}

/* Responsive */
@media (max-width: 1080px) {
  .yeterlilik-management-grid { grid-template-columns: 1fr; }
  .yeterlilik-management-sidebar { border-right: 0; border-bottom: 1px solid var(--border); max-height: 40vh; }
  .yeterlilik-management-detail { max-height: 50vh; }
  .management-detail-content { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .yeterlilik-card { padding: 24px 20px; }
  .yeterlilik-banner-inner { flex-direction: column; text-align: center; }
  .management-header-left h1 { font-size: 1.1rem; }
  .management-count-badge { width: 48px; height: 48px; font-size: 1.1rem; }
  .management-actions { flex-direction: column; }
  .questions-container { gap: 14px; }
  .question-block { padding: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

@media print {
  .site-header, .site-footer, .toast-root, .btn, .icon-btn { display: none !important; }
  body { background: #fff; color: #000; }
}



/* ============================================================================
   BLAINE COUNTY SHERIFF DEPARTMENT — VISUAL REBRAND 2026
   Presentation-only design layer; API keys, routes and integrations untouched.
   ============================================================================ */
:root {
  --font-display: "Barlow Condensed", "Cabinet Grotesk", "Plus Jakarta Sans", sans-serif;
  --font-body: "Plus Jakarta Sans", sans-serif;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 17px;
  --container: 1320px;
  --header-h: 84px;
}
html[data-theme="dark"] {
  --bg: #0c1410;
  --bg-soft: #111d17;
  --surface: #15231b;
  --surface-2: #1b2d23;
  --surface-3: #25382b;
  --fg: #edf0e9;
  --fg-strong: #fff8e9;
  --muted-fg: #a3b0a3;
  --border: rgb(216 186 126 / .18);
  --border-strong: rgb(216 186 126 / .34);
  --primary: #d9b879;
  --primary-soft: rgb(217 184 121 / .13);
  --primary-fg: #17251c;
  --on-accent: #17251c;
  --emergency: #df9270;
  --emergency-soft: rgb(223 146 112 / .13);
  --success: #a4c7a0;
  --success-soft: rgb(164 199 160 / .14);
  --warning: #e3ba65;
  --warning-soft: rgb(227 186 101 / .15);
  --grid-line: rgb(216 186 126 / .07);
  --footer-fg: #b1bcac;
  --card-bg: linear-gradient(150deg, rgb(29 47 36 / .82), rgb(15 28 22 / .84));
  --input-bg: rgb(11 22 16 / .72);
}
html[data-theme="light"] {
  --bg: #f8f5ec;
  --bg-soft: #f0ecdf;
  --surface: #fffdf7;
  --surface-2: #eeeadd;
  --surface-3: #e8e2cf;
  --fg: #22362a;
  --fg-strong: #152b20;
  --muted-fg: #637267;
  --border: rgb(59 73 52 / .18);
  --border-strong: rgb(59 73 52 / .33);
  --primary: #876b32;
  --primary-soft: rgb(135 107 50 / .12);
  --primary-fg: #fff9e8;
  --on-accent: #fff9e8;
  --emergency: #b45136;
  --emergency-soft: rgb(180 81 54 / .10);
  --success: #39774f;
  --success-soft: rgb(57 119 79 / .1);
  --warning: #a77320;
  --warning-soft: rgb(167 115 32 / .1);
  --grid-line: rgb(135 107 50 / .10);
  --footer-fg: #b6bbac;
  --card-bg: linear-gradient(160deg, #fffdf7, #f5f2e8);
  --input-bg: #fffdf7;
}
body { letter-spacing: -.012em; }
h1, h2, h3, h4, .display { letter-spacing: .004em; }
h1, h2, .display { text-transform: uppercase; font-stretch: condensed; }
h2 { font-size: clamp(2.55rem, 4.8vw, 4.6rem); line-height: .99; }
h3 { font-family: "Plus Jakarta Sans",sans-serif; letter-spacing: -.02em; }
.section { padding: 105px 0; }
.section-alt { background: var(--bg-soft); }
.grad {
  background: linear-gradient(102deg,#f7dfa7 0%,#d1ad6d 50%,#988154 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
html[data-theme="light"] .grad { background: linear-gradient(100deg,#9c7d3a,#4f5b36); -webkit-background-clip:text; background-clip:text; color:transparent; }
.eyebrow { color:var(--primary); font-weight: 700; font-size: 11px; letter-spacing: .19em; }
.eyebrow.live { color: var(--primary); }
.section-head .eyebrow::before { content: ""; width: 24px; height: 1px; background: currentColor; }
.lead { line-height: 1.85; }
.btn { border-radius: 8px; letter-spacing: .005em; }
.btn-primary { box-shadow: 0 11px 28px -15px rgb(217 184 121 / .38); }
.btn-primary:hover { filter:brightness(1.08); box-shadow: 0 13px 35px -14px rgb(217 184 121 / .46); }
.btn-ghost, .btn-outline { border-color: var(--border-strong); }
.input, .form, .card, .kpi, .auth-card, .admin-gate-card { backdrop-filter: none; }

.site-header { background: rgb(12 20 16 / .96); border-bottom-color: rgb(216 186 126 / .2); }
.site-header::before { content:""; display:block; width:100%; height: 3px; background: linear-gradient(90deg,#385542,#ddc181 44%,#8e784a 60%,#294c37); }
.site-header.is-scrolled { background: rgb(12 20 16 / .98); }
.site-header .brand-text strong { color:#f5e4c0; }
.site-header .brand-text small { color:#b6c3b0; }
.brand-mark { width: 52px; height: 52px; padding: 3px; border:0; background:transparent; border-radius:0; color:var(--primary); }
.brand-mark img { width:100%; height:100%; object-fit:contain; filter:drop-shadow(0 1px 6px rgb(218 175 91 / .2)); }
.brand-text strong { text-transform: uppercase; font-family:var(--font-display); font-size:1.55rem; font-weight:800; letter-spacing:.035em; line-height:1; }
.brand-text small { font-size:8.5px; font-weight:700; letter-spacing:.17em; margin-top:6px; }
.header-nav { gap:1px; }
.header-nav a { font-size:.77rem; padding:8px 9px; border-radius:6px; }
.header-nav a:hover { background:var(--primary-soft); color:var(--primary); }
.header-portal { border-radius: 8px; }
.header-cta { padding:10px 15px; }
.emergency-badge { color:#d5c293; background:rgb(217 184 121 / .08); border-color:var(--border); }
.emergency-badge .pulse-dot { background:#b8c48c; }
.mobile-menu { background:#111d17; }
.mobile-menu a { color:#ebebdf; }

.hero { padding-top:0; background: radial-gradient(ellipse 60% 70% at 67% 35%, rgb(137 100 44 / .12),transparent),linear-gradient(150deg,#101c15 0%,#0a140f 100%); }
.hero .grid-bg { mask-image:linear-gradient(to bottom,black,transparent 88%); background-size:88px 88px; opacity:.65; }
.hero-glow { background:radial-gradient(circle,rgb(205 170 103 / .1),transparent 65%); top:-150px; }
.hero-inner { grid-template-columns:1.04fr .96fr; gap:60px; min-height:690px; padding-top:94px; padding-bottom:100px; }
.hero-copy { position:relative; }
.hero-coordinate { position:relative; color:#829782; margin-bottom:22px; font-size:10px; letter-spacing:.15em; }
.hero-coordinate span { color:var(--primary); padding:0 5px; }
.hero h1 { font-size:clamp(4rem,5.5vw,6.8rem); line-height:.91; letter-spacing:.004em; font-weight:800; }
.hero h1 .hero-identity { display:block; color:#9ba995; font-size:.23em; font-weight:700; letter-spacing:.24em; line-height:1.7; margin-bottom:18px; }
.hero .lead { color:#b4bbab; max-width:610px; font-size:1rem; margin-top:27px; }
.hero .eyebrow { background:rgb(224 190 120 / .08); border:1px solid rgb(224 190 120 / .18); border-radius:3px; padding:8px 12px; margin-bottom:20px; font-size:9px; }
.hero .hero-actions { margin-top:34px; }
.hero .hero-stats { gap:0; margin-top:52px; border-top:1px solid rgb(215 184 118 / .2); padding-top:27px; }
.hero-stats .stat { min-width:145px; border-right:1px solid rgb(215 184 118 / .2); padding-right:23px; margin-right:23px; }
.hero-stats .stat:last-child { border-right:0; }
.hero-stats .stat dt { color:#e6d2a5; font-family:var(--font-display); font-size:2.65rem; }
.hero-stats .stat dd { color:#9caa9a; font-size:10px; letter-spacing:.1em; }
.hero-image { border:1px solid rgb(221 187 123 / .35); aspect-ratio: 4/4.15; border-radius: 5px; box-shadow: 0 45px 95px -30px rgb(0 0 0 / .64); }
.hero-image img { object-position: center; }
.hero-image-shade { background:linear-gradient(to bottom,transparent 48%,rgb(5 16 11 / .78) 100%); }
.hero-visual::before { content:""; position:absolute; width:92%; height:94%; top:-19px; right:-17px; border:1px solid rgb(224 190 120 / .28); pointer-events:none; }
.hero-visual::after { content:"BLAINE COUNTY // 01"; position:absolute; top:15px; left:-14px; writing-mode:vertical-rl; transform:rotate(180deg); color:#d7bd86; font:600 10px var(--font-mono); letter-spacing:.23em; background:#101b14; padding:10px 5px; }
.hero-badge { left:22px; bottom:25px; border-radius:4px; background:rgb(15 28 21 / .9); padding:14px 19px; }
.hero-badge strong { color:#ebd49f; font-size:1.03rem; }
.hero-badge-corner { border-radius:3px; color:#f1dfb7; background:rgb(17 33 24 / .86); }
.ticker { background:#17271e; border-color:rgb(226 189 124 / .24); }
.ticker-item { padding:16px 28px; color:#a7b6a4; }
.ticker-item b { color:#efcf91; }

.section-dark { background:#101d15; }
html[data-theme="light"] .section-dark { background:#1d2d21; }
.section-dark .pillar { background:rgb(26 44 33 / .8); border-color:rgb(230 196 122 / .18); }
.pillar-icon { border-radius:8px; background:rgb(226 190 116 / .12); border-color:rgb(226 190 116 / .25); color:#e0bd7e; }
.unit-card { border-radius:6px; min-height:210px; }
.unit-card::before { content:"DIVISION / BCSO"; position:absolute; top:24px; right:18px; color:var(--muted-fg); font:500 8px var(--font-mono); opacity:.6; letter-spacing:.09em; }
.unit-index { font-size:12px; font-weight:700; }
.unit-card h3 { margin-top:22px; }
.unit-card p { line-height:1.8; }
.split-media, .feature-card, .pillar, .team-card, .shift-card, .ann-card { border-radius:7px; }
.split-media { background:#19271e; }
.split-media img { aspect-ratio:4/3.4; }
.feature-metrics strong { font-size:1.9rem; letter-spacing:.03em; color:var(--primary); }
.media-chip { border-radius:3px; }
.team-top { background:repeating-linear-gradient(130deg,transparent,transparent 38px,rgb(216 186 126 / .045) 39px,rgb(216 186 126 / .045) 40px),linear-gradient(135deg,var(--surface-2),var(--surface)); }
.team-callsign { color:var(--primary); }
.filter-btn { border-radius:5px; }
.filters { gap:6px; }
.on-duty-panel, .duty-terminal, .duty-side { border-color:var(--border-strong); }
.duty-terminal .terminal-timer { color:var(--primary); }
.form.card { border:1px solid var(--border-strong); }
.section#basvuru { background:linear-gradient(160deg,var(--bg),var(--bg-soft)); }

.site-footer { background:#0c1710; border-top:1px solid rgb(224 190 120 / .23); margin-top:0; }
.footer-mark { font-family:var(--font-display); letter-spacing:.025em; opacity:.045; font-weight:800; }
.footer-brand .brand-text strong { color:#f1d7a8; }
.footer-callout { border-color:rgb(224 190 120 / .25); }

/* Auth, staff portal, and admin surfaces receive the same departmental skin. */
.auth-wrap, .admin-gate { background:radial-gradient(circle at 25% 15%,rgb(185 145 77 / .11),transparent 42%),linear-gradient(145deg,var(--bg),var(--bg-soft)); }
.auth-card, .admin-gate-card { border:1px solid var(--border-strong); box-shadow:0 30px 75px -35px rgb(0 0 0 / .75); }
.auth-title { font-family:var(--font-display); text-transform:uppercase; letter-spacing:.035em; font-size:2.8rem; }
.admin-gate-mark { background:var(--primary-soft); color:var(--primary); border-color:var(--border-strong); }
.dash-head { border-bottom:1px solid var(--border); padding-bottom:26px; }
.dash-head h1 { color:var(--fg-strong); }
.kpi.accent { border-color:var(--border-strong); }
.view-pad { background:radial-gradient(ellipse at top right,rgb(214 176 102 / .06),transparent 45%); }
.yeterlilik-wrap, .yeterlilik-management-wrap { background:transparent; }

@media (max-width:1400px) {
  .header-nav { display:none; }
  .menu-btn { display:inline-flex; }
  .mobile-menu:not([hidden]) { display:flex; }
  .hero h1 { font-size:clamp(3.7rem,6vw,6rem); }
}
@media (max-width:1080px) {
  .hero-inner { grid-template-columns:1fr; padding-top:58px; gap:38px; }
  .hero-visual { order:0; max-width:710px; }
  .hero-image { aspect-ratio:16/10; }
  .hero h1 { font-size:clamp(4rem,9vw,6.3rem); }
}
@media (max-width:860px) {
  .header-cta, .emergency-badge { display:none; }
  .site-header .brand-text strong { font-size:1.28rem; }
}
@media (max-width:620px) {
  :root { --header-h:70px; }
  .site-header .brand-mark { width:42px; height:42px; }
  .site-header .brand-text strong { font-size:1.1rem; }
  .site-header .brand-text small { display:block; font-size:7px; letter-spacing:.1em; }
  .header-portal { display:none; }
  .hero-inner { padding:45px 0 66px; }
  .hero h1 { font-size:clamp(3.65rem,12vw,5.6rem); }
  .hero h1 .hero-identity { font-size: .2em; }
  .hero-coordinate { font-size:8px; }
  .hero .lead { font-size:.91rem; }
  .hero .hero-stats { gap:15px; }
  .hero-stats .stat { min-width:90px; padding-right:9px; margin-right:0; }
  .hero-stats .stat dt { font-size:2.05rem; }
  .hero-stats .stat dd { font-size:8px; }
  .hero-visual::before { display:none; }
  .hero-visual::after { display:none; }
  .hero-image { aspect-ratio:4/3.6; }
  .hero-badge { left:12px; bottom:13px; padding:8px 12px; }
  .hero-badge-corner { top:12px; right:12px; font-size:9px; }
  .section { padding:76px 0; }
  h2 { font-size:clamp(2.55rem,11vw,4rem); }
  .footer-mark { font-size:6rem; }
}
@media (prefers-reduced-motion: reduce) { .ticker-track { animation:none; } }
