:root {
  /* Arka Planlar (Siber Gece Yarısı Laciverti ve Taktiksel Slate Siyahı) */
  --bg: #030712;             /* Derin siber lacivert, ana arka plan */
  --bg-soft: #080f25;        /* Yumuşatılmış taktiksel lacivert */
  --panel: rgba(15, 23, 42, 0.45);   /* Buzlu siber panel rengi */
  --panel-2: rgba(30, 41, 59, 0.6);  /* Yoğun buzlu panel rengi */

  /* Yazı ve Metin Renkleri (Gümüş, Kar Beyazı ve Slate Grisi) */
  --ink: #f8fafc;            /* Parlak siber beyaz (ana metinler) */
  --muted: #94a3b8;          /* Gümüş gri (yardımcı metinler) */
  --dim: #64748b;            /* Taktiksel slate grisi (silik metinler) */

  /* SASP Mavi Tonları (Eski Gold Değişkenleri üzerinden Dinamik Dönüşüm) */
  --gold: #3b82f6;           /* SASP Asil Polis Mavisi (vurgular ve butonlar için) */
  --gold-bright: #60a5fa;    /* SASP Devriye Mavisi (parlak mavi, hover durumları) */
  --gold-deep: #1d4ed8;      /* SASP Komuta Laciverti (koyu mavi, aktif basılı butonlar) */

  /* Çizgi ve Sınır Renkleri (Mavi Işıma ve Beyaz Yumuşatma) */
  --line: rgba(59, 130, 246, 0.16);       /* Devriye mavisi tonunda siber ışıma çizgisi */
  --soft-line: rgba(255, 255, 255, 0.05); /* İnce siber bölücü çizgi */

  /* Durum ve Uyarı Renkleri (Aktif/Pasif/Tehlike) */
  --green: #10b981;          /* Aktif devriye yeşili */
  --red: #ef4444;            /* IAD disiplin ve tehlike kırmızı tonu */
  --radius: 12px;            /* Modern yumuşatılmış köşeler */
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.5); /* Derin siber panel gölgesi */
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 78% 8%, rgba(59, 130, 246, 0.12), transparent 28rem),
    linear-gradient(180deg, #030712 0%, #080f25 54%, #030712 100%);
  font-family: Inter, Segoe UI, Roboto, Arial, sans-serif;
  letter-spacing: -0.01em;
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; border: none; outline: none; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(18px, 5vw, 86px);
  background: rgba(3, 7, 18, 0.7);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(24px) saturate(120%);
}
.brand-wordmark { width: 286px; height: auto; object-fit: contain; }
.site-nav { display: flex; align-items: center; gap: 22px; color: var(--muted); font-weight: 700; transition: color 0.2s ease; }
.site-nav a { white-space: nowrap; transition: color 0.2s ease; }
.site-nav a:hover { color: var(--gold-bright); }
.nav-discord { color: #818cf8 !important; }

/* Yenilenmiş SASP Taktiksel Buton Tasarımları */
.nav-cta, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: linear-gradient(180deg, var(--gold-bright), var(--gold-deep));
  color: #fff;
  font-weight: 800;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.25);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-cta:hover, .button:not(.secondary):not(.danger):hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.4);
  filter: brightness(1.08);
}
.button.secondary {
  background: rgba(15, 23, 42, 0.45);
  color: var(--gold-bright);
  border: 1px solid rgba(59, 130, 246, 0.3);
  box-shadow: none;
  backdrop-filter: blur(8px);
}
.button.secondary:hover {
  background: rgba(59, 130, 246, 0.08);
  border-color: var(--gold-bright);
  color: #fff;
}
.button.danger {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.35);
  box-shadow: none;
}
.button.danger:hover {
  background: rgba(239, 68, 68, 0.18);
  border-color: #ef4444;
  color: #fff;
}
.button.compact { min-height: 38px; padding: 0 14px; font-size: 13px; border-radius: calc(var(--radius) - 2px); }
.button.full { width: 100%; margin-top: 12px; }
.button.is-clicked {
  border-color: rgba(16, 185, 129, 0.5);
  color: #bfffe7;
  background: rgba(16, 185, 129, 0.15);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.1);
}
.mobile-menu, .sidebar-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.7);
  color: var(--gold-bright);
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.hero-section {
  min-height: calc(100vh - 78px);
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, .72fr);
  align-items: center;
  gap: 40px;
  padding: clamp(42px, 8vw, 104px) clamp(18px, 7vw, 130px);
}
.hero-section.cinematic {
  min-height: min(860px, calc(100vh - 78px));
  background:
    linear-gradient(90deg, rgba(3, 7, 18, 0.96) 0%, rgba(3, 7, 18, 0.75) 48%, rgba(3, 7, 18, 0.9) 100%),
    radial-gradient(circle at 60% 42%, rgba(59, 130, 246, 0.12), transparent 34rem),
    linear-gradient(135deg, #030712, #0b1528 58%, #030712);
}
.hero-section.cinematic::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, transparent 0 32%, rgba(59, 130, 246, 0.05) 33%, transparent 42%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.015) 0 1px, transparent 1px 88px);
  opacity: .7;
  pointer-events: none;
}
#justiceScene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: .72;
}
.hero-copy, .hero-asset { position: relative; z-index: 2; }
.eyebrow, .section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold-bright);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-shadow: 0 2px 10px rgba(59, 130, 246, 0.3);
}
.hero-copy h1 {
  font-size: clamp(48px, 8vw, 112px);
  line-height: .92;
  margin: 18px 0;
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.hero-lead {
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.65;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }
.hero-asset {
  min-height: 480px;
  perspective: 1000px;
  display: grid;
  place-items: center;
}
.hero-asset.small { min-height: 180px; }
.badge-3d {
  width: min(420px, 82vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  transform-style: preserve-3d;
  transform: rotateX(58deg) rotateZ(-18deg);
  animation: badgeFloat 7s ease-in-out infinite;
  filter: drop-shadow(0 40px 60px rgba(0, 0, 0, 0.6));
}
.hero-asset.small .badge-3d { width: 180px; }
.badge-3d::before {
  content: "";
  position: absolute;
  inset: 3%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.3), transparent 68%);
  transform: translateZ(-36px);
}
.badge-3d img {
  width: 100%;
  border-radius: 50%;
  transform: translateZ(44px);
  border: 1px solid rgba(59, 130, 246, 0.28);
}
@keyframes badgeFloat {
  0%, 100% { transform: rotateX(58deg) rotateZ(-18deg) translateY(0); }
  50% { transform: rotateX(52deg) rotateZ(-12deg) translateY(-18px); }
}
.glass-stat {
  position: absolute;
  padding: 18px 22px;
  min-width: 144px;
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.5);
  border-radius: var(--radius);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}
.glass-stat strong { display: block; font-size: 30px; color: var(--gold-bright); text-shadow: 0 0 15px rgba(59, 130, 246, 0.4); }
.glass-stat span { color: var(--muted); font-weight: 700; font-size: 13px; }
.stat-a { left: 4%; top: 18%; }
.stat-b { right: 1%; bottom: 16%; }
.hero-preview-strip {
  position: absolute;
  left: clamp(18px, 7vw, 130px);
  right: clamp(18px, 7vw, 130px);
  bottom: 22px;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.hero-preview-strip div {
  min-height: 76px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(16px);
}
.hero-preview-strip b { display: block; color: var(--gold-bright); }
.hero-preview-strip span { display: block; color: var(--muted); margin-top: 5px; font-size: 13px; font-weight: 700; }

.content-band {
  padding: clamp(54px, 7vw, 104px) clamp(18px, 7vw, 130px);
  border-top: 1px solid var(--soft-line);
}
.content-band.dark {
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.45), rgba(3, 7, 18, 0.95)),
    radial-gradient(circle at 20% 10%, rgba(59, 130, 246, 0.08), transparent 26rem);
}
.mission-grid, .apply-layout, .section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 36px;
  align-items: center;
}
.about-band {
  background:
    radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.08), transparent 28rem),
    linear-gradient(180deg, rgba(3, 7, 18, 0.96), rgba(15, 23, 42, 0.95));
}
.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 480px);
  gap: 40px;
  align-items: center;
}
.about-layout h2 {
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1;
  margin: 12px 0;
  font-weight: 800;
}
.about-layout p {
  color: var(--muted);
  line-height: 1.8;
  font-size: 18px;
  max-width: 780px;
}
.about-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(15, 23, 42, 0.7), rgba(3, 7, 18, 0.95)),
    radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.12), transparent 20rem);
  box-shadow: var(--shadow);
}
.about-card img {
  width: 100%;
  max-height: 170px;
  object-fit: contain;
}
.about-list {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}
.about-list span {
  padding: 12px;
  border: 1px solid var(--soft-line);
  border-radius: var(--radius);
  color: var(--muted);
  background: rgba(3, 7, 18, 0.4);
  font-weight: 700;
}
.mission-grid h2, .section-heading h2, .apply-layout h2 {
  margin: 12px 0 0;
  font-size: clamp(32px, 4vw, 58px);
  line-height: 1;
  font-weight: 800;
}
.mission-grid p, .apply-layout p {
  color: var(--muted);
  line-height: 1.75;
  max-width: 760px;
  font-size: 18px;
}
.metric-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  min-width: 520px;
  background: rgba(15, 23, 42, 0.3);
}
.metric-row div { padding: 22px; border-right: 1px solid var(--soft-line); }
.metric-row div:last-child { border-right: 0; }
.metric-row b { display: block; color: var(--gold-bright); font-size: 28px; text-shadow: 0 0 10px rgba(59, 130, 246, 0.3); }
.metric-row span { color: var(--muted); font-weight: 700; }
.division-grid, .process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 32px;
}
.gallery-hint {
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 12px;
}
.gallery-slider {
  position: relative;
  overflow: hidden;
  margin-top: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #030712;
  box-shadow: var(--shadow);
}
.gallery-slider::before,
.gallery-slider::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 110px;
  z-index: 2;
  pointer-events: none;
}
.gallery-slider::before { left: 0; background: linear-gradient(90deg, #030712, transparent); }
.gallery-slider::after { right: 0; background: linear-gradient(270deg, #030712, transparent); }
.gallery-track {
  display: flex;
  gap: 16px;
  width: max-content;
  padding: 18px;
  animation: gallerySlide 38s linear infinite;
}
.gallery-slider:hover .gallery-track { animation-play-state: paused; }
.gallery-card {
  width: min(520px, 82vw);
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
  flex: 0 0 auto;
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: var(--radius);
  background: #0b1528;
  padding: 0;
  text-align: left;
  box-shadow: 0 18px 42px rgba(0,0,0,.5);
}
.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.96) contrast(1.04);
  transition: transform .45s ease;
}
.gallery-card:hover img { transform: scale(1.05); }
.gallery-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(3, 7, 18, 0.85));
}
.gallery-card span {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 1;
  color: #fff;
}
.gallery-card b { display: block; color: var(--gold-bright); font-size: 20px; }
.gallery-card small { display: block; color: #cbd5e1; margin-top: 5px; line-height: 1.4; }
@keyframes gallerySlide {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - 8px)); }
}
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 34px;
  background: rgba(0, 0, 0, .9);
  backdrop-filter: blur(14px);
}
.lightbox.hidden { display: none; }
.lightbox img {
  max-width: min(1320px, 94vw);
  max-height: 82vh;
  border-radius: var(--radius);
  border: 1px solid rgba(59, 130, 246, 0.35);
  box-shadow: 0 40px 100px rgba(0,0,0,.7);
  object-fit: contain;
}
.lightbox-close {
  position: fixed;
  top: 18px;
  right: 18px;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.9);
  color: var(--gold-bright);
  font-size: 28px;
  display: grid;
  place-items: center;
}
#lightboxCaption {
  position: fixed;
  left: 34px;
  bottom: 24px;
  right: 34px;
  color: #fff;
  text-align: center;
}
#lightboxCaption b { color: var(--gold-bright); margin-right: 10px; }
#lightboxCaption span { color: var(--muted); }

/* Siber Cam Kartlar (SASP Frosted Panels) */
.division-card, .process-card, .panel-card {
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.5), rgba(3, 7, 18, 0.7));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.division-card:hover, .process-card:hover {
  transform: translateY(-3px);
  border-color: rgba(59, 130, 246, 0.44);
  box-shadow: 0 12px 40px rgba(59, 130, 246, 0.1);
}
.division-card, .process-card { padding: 24px; min-height: 258px; }
.division-card h3, .process-card h3 { margin: 18px 0 10px; font-size: 22px; font-weight: 800; }
.division-card p, .process-card p { color: var(--muted); line-height: 1.65; margin: 0; }
.card-top { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.division-status { color: var(--green); }
.division-status.restricted { color: var(--gold-bright); }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip-row.centered { justify-content: center; }
.chip-row span {
  border: 1px solid rgba(59, 130, 246, 0.28);
  background: rgba(59, 130, 246, 0.08);
  color: #dbeafe;
  border-radius: 7px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
}
.process-card span {
  color: var(--gold-bright);
  font-size: 34px;
  font-weight: 900;
  text-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}
.apply-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.site-footer {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px clamp(18px, 7vw, 130px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: #030712;
}
.site-footer img { width: 190px; }

/* SASP Panel Arayüzü */
.portal-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
}
.portal-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
  background: linear-gradient(180deg, #0b1326, #060b18);
  border-right: 1px solid var(--line);
  padding: 18px;
  z-index: 30;
}
.panel-brand {
  display: block;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--soft-line);
}
.panel-brand img { width: 230px; max-height: 94px; object-fit: contain; object-position: left center; }
.system-pill {
  margin: 18px 0;
  color: #10b981;
  font-size: 12px;
  font-weight: 900;
}
.system-pill span {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 12px currentColor;
}
.panel-nav { display: grid; gap: 6px; }
.nav-group {
  display: block;
  margin: 16px 10px 6px;
  color: var(--dim);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.panel-nav button {
  min-height: 48px;
  padding: 0 14px;
  text-align: left;
  color: #cbd5e1;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  transition: all 0.2s ease;
}
.panel-nav button:hover { border-color: var(--line); background: rgba(59, 130, 246, 0.06); color: #fff; }
.panel-nav button.active {
  color: #fff;
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.15), rgba(59, 130, 246, 0.02));
  border-color: rgba(59, 130, 246, 0.35);
  box-shadow: inset 3px 0 0 var(--gold);
}
.session-card {
  margin-top: 28px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(3, 7, 18, 0.5);
  backdrop-filter: blur(8px);
}
.session-card strong, .session-card small { display: block; }
.session-card small { color: var(--muted); margin-top: 5px; }
.portal-main { min-width: 0; }
.portal-topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 24px;
  background: rgba(3, 7, 18, 0.7);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.portal-topbar span { margin-left: 14px; color: var(--muted); font-weight: 700; }
.topbar-logo { width: 190px; max-height: 46px; object-fit: contain; opacity: .92; }
.portal-view { display: none; padding: 22px; }
.portal-view.active { display: block; }
.panel-card { padding: 22px; }
.panel-card h1, .panel-card h2, .panel-card h3 { margin-top: 0; font-weight: 800; }

.dashboard-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  overflow: hidden;
  min-height: 230px;
  border-top: 3px solid var(--gold);
}
.dashboard-hero h1 { font-size: clamp(34px, 5vw, 62px); margin: 10px 0; font-weight: 900; }
.dashboard-hero p { color: var(--muted); font-weight: 700; }
.fixed-panel-mark {
  width: min(440px, 38vw);
  min-height: 150px;
  display: grid;
  place-items: center;
  padding: 18px;
  border: 1px solid rgba(59, 130, 246, 0.14);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.04), transparent),
    radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.16), transparent 62%);
}
.fixed-panel-mark img {
  width: 100%;
  max-height: 130px;
  object-fit: contain;
  filter: drop-shadow(0 18px 30px rgba(0,0,0,.6));
}

/* Taktiksel Metrikler */
.ops-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0;
}
.ops-metrics div,
.ops-metrics button {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.6), rgba(3, 7, 18, 0.8));
  box-shadow: var(--shadow);
  text-align: left;
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.ops-metrics button:hover {
  transform: translateY(-2px);
  border-color: rgba(59, 130, 246, 0.45);
  background: linear-gradient(145deg, rgba(25, 35, 55, 0.7), rgba(10, 15, 26, 0.9));
}
.ops-metrics span, .ops-metrics em { display: block; color: var(--muted); font-style: normal; font-size: 11px; font-weight: 900; text-transform: uppercase; }
.ops-metrics b { display: block; color: var(--gold-bright); font-size: 30px; margin: 8px 0 4px; text-shadow: 0 0 10px rgba(59, 130, 246, 0.3); }
.portal-grid { display: grid; gap: 18px; margin-top: 18px; }
.portal-grid.three { grid-template-columns: 1fr 1fr .86fr; }
.duty-list { display: grid; gap: 12px; margin: 18px 0; }
.duty-list span {
  display: flex;
  justify-content: space-between;
  padding: 12px;
  border: 1px solid var(--soft-line);
  border-radius: var(--radius);
  color: var(--muted);
  background: rgba(3, 7, 18, 0.3);
}
.duty-card {
  overflow: hidden;
}
.card-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.card-title-row small {
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
}
.activity-card {
  display: grid;
  grid-template-columns: 1fr minmax(120px, 160px);
  gap: 12px;
  align-items: center;
  margin: 16px 0;
  padding: 14px;
  border-radius: var(--radius);
  border: 1px solid rgba(59, 130, 246, 0.2);
  background: linear-gradient(145deg, rgba(59, 130, 246, 0.1), rgba(3, 7, 18, 0.8));
}
.activity-card.bad {
  border-color: rgba(239, 68, 68, 0.3);
  background: linear-gradient(145deg, rgba(239, 68, 68, 0.1), rgba(3, 7, 18, 0.8));
}
.activity-card span,
.duty-timer-display span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}
.activity-card strong {
  display: block;
  margin: 5px 0;
  color: #fff;
  font-size: 18px;
}
.activity-card select {
  width: 100%;
  min-height: 42px;
  border-radius: calc(var(--radius) - 2px);
  border: 1px solid var(--line);
  background: rgba(3, 7, 18, 0.9);
  color: #fff;
  font-weight: 800;
  padding: 0 10px;
}
.activity-card code {
  min-height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) - 2px);
  background: rgba(3, 7, 18, 0.9);
  color: var(--gold-bright);
  font-weight: 800;
  white-space: normal;
  text-align: center;
}
.activity-valid { color: var(--green); font-weight: 900; }
.activity-invalid { color: #f87171; font-weight: 900; }
.duty-timer-display {
  margin-bottom: 14px;
  padding: 16px;
  border: 1px solid var(--soft-line);
  border-radius: var(--radius);
  background: radial-gradient(circle at 20% 0%, rgba(59, 130, 246, 0.15), transparent 35%), rgba(3, 7, 18, 0.7);
}
.duty-timer-display b {
  display: block;
  color: var(--gold-bright);
  font-size: 34px;
  line-height: 1;
  margin-top: 8px;
}
.duty-records {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--soft-line);
}
.duty-records > strong {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}
.duty-records span {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 10px;
  padding: 10px;
  border: 1px solid var(--soft-line);
  border-radius: calc(var(--radius) - 2px);
  background: rgba(3, 7, 18, 0.4);
}
.duty-records span b { color: var(--gold-bright); }
.duty-records span small { color: var(--muted); font-weight: 700; }
.duty-records span em {
  grid-column: 1 / -1;
  color: var(--dim);
  font-size: 11px;
  font-style: normal;
}
.duty-records p {
  margin: 0;
  color: var(--dim);
  font-weight: 700;
}
.dual-actions, .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.notice {
  padding: 14px;
  border: 1px solid var(--soft-line);
  border-radius: var(--radius);
  background: rgba(3, 7, 18, 0.5);
  margin-bottom: 12px;
}
.notice small { color: var(--dim); font-weight: 700; }
.notice b { display: block; margin: 6px 0; }
.notice p { color: var(--muted); margin: 0; line-height: 1.5; }
.empty-state {
  min-height: 118px;
  display: grid;
  place-items: center;
  color: var(--dim);
  border: 1px dashed rgba(59, 130, 246, 0.2);
  border-radius: var(--radius);
  background: rgba(3, 7, 18, 0.3);
  font-weight: 800;
}
.danger-card { border-color: rgba(239, 68, 68, 0.3); }
.person-card {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 13px;
  border: 1px solid var(--soft-line);
  border-radius: var(--radius);
  background: rgba(3, 7, 18, 0.4);
  margin-bottom: 10px;
}
.person-card small { display: block; color: var(--muted); margin-top: 3px; }
.person-card em { font-style: normal; color: var(--dim); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.person-card em.online { color: var(--green); }
.mini-avatar {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.2), #0b111d 70%);
  color: var(--gold-bright);
  font-weight: 900;
}
.mini-avatar.large { width: 120px; height: 120px; margin: 0 auto 16px; font-size: 34px; }
.photo-avatar {
  overflow: hidden;
}
.photo-avatar img,
.org-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.profile-layout, .unit-layout, .document-layout, .admin-layout {
  display: grid;
  gap: 18px;
}
.profile-layout { grid-template-columns: 360px 1fr; }
.profile-card { text-align: center; }
.profile-brand-mark {
  width: 220px;
  max-height: 96px;
  object-fit: contain;
  margin: 0 auto 12px;
  opacity: .95;
}
.profile-facts {
  display: grid;
  gap: 8px;
  margin: 16px 0;
  text-align: left;
}
.profile-facts div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--soft-line);
  border-radius: var(--radius);
  background: rgba(3, 7, 18, 0.4);
}
.profile-facts dt { color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.profile-facts dd { margin: 0; text-align: right; font-weight: 800; }
.profile-tabs, .admin-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}
.admin-tabs { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.profile-tabs button, .admin-tabs button {
  min-height: 42px;
  border: 1px solid var(--soft-line);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.5);
  color: var(--muted);
  font-weight: 800;
  transition: all 0.2s ease;
}
.profile-tabs button:hover, .admin-tabs button:hover {
  border-color: rgba(59, 130, 246, 0.3);
  color: #fff;
}
.profile-tabs button.active, .admin-tabs button.active {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold-deep));
  color: #fff;
  border-color: rgba(255, 255, 255, 0.15);
}
.timeline { display: grid; gap: 14px; }
.timeline div {
  border-left: 3px solid var(--gold);
  padding: 14px;
  background: rgba(3, 7, 18, 0.4);
  border-radius: var(--radius);
}
.timeline b, .timeline span { display: block; }
.timeline span { color: var(--muted); margin-top: 6px; }
.unit-layout { grid-template-columns: 330px 1fr; }
.unit-sidebar { display: grid; gap: 10px; align-self: start; }
.unit-sidebar button {
  border: 1px solid var(--soft-line);
  border-radius: var(--radius);
  background: rgba(3, 7, 18, 0.4);
  color: var(--ink);
  text-align: left;
  padding: 14px;
}
.unit-sidebar button.active { border-color: var(--gold); background: rgba(59, 130, 246, 0.1); }
.unit-sidebar span { display: block; color: var(--muted); margin-top: 4px; }
.person-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.document-layout { grid-template-columns: 380px minmax(0, 1fr); align-items: start; }
.document-form { position: sticky; top: 82px; max-height: calc(100vh - 104px); overflow: auto; }

/* Taktiksel Giriş Alanları (Futuristic Form Inputs) */
label {
  display: block;
  color: #93c5fd;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  margin: 14px 0 8px;
  letter-spacing: 0.05em;
}
input, select, textarea {
  width: 100%;
  margin-top: 8px;
  color: #fff;
  background: rgba(3, 7, 18, 0.6);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: var(--radius);
  padding: 12px 13px;
  outline: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
textarea { min-height: 150px; resize: vertical; }
input:focus, select:focus, textarea:focus { 
  border-color: var(--gold-bright); 
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.25); 
  background: rgba(3, 7, 18, 0.85);
}

.document-preview {
  min-height: calc(100vh - 104px);
  overflow: auto;
  display: grid;
  place-items: start center;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(3, 7, 18, 0.5);
  backdrop-filter: blur(8px);
}
.paper {
  width: 720px;
  min-height: 940px;
  padding: 68px;
  background: #fff;
  color: #111;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
  position: relative;
  font-family: Arial, sans-serif;
}
.paper.secret::after {
  content: "SECRET";
  position: absolute;
  left: 104px;
  top: 300px;
  transform: rotate(-45deg);
  padding: 26px;
  border: 7px solid rgba(239, 68, 68, 0.15);
  color: rgba(239, 68, 68, 0.15);
  font-size: 104px;
  font-weight: 900;
}
.paper header {
  display: grid;
  grid-template-columns: 72px 1fr 118px;
  gap: 18px;
  align-items: center;
  border-bottom: 2px solid #111;
  padding-bottom: 18px;
}
.paper header img { width: 64px; }
.paper header h2 { margin: 0; text-align: center; font-size: 20px; text-transform: uppercase; }
.paper header em { display: block; text-align: center; margin-top: 10px; font-size: 12px; }
.paper header aside { border: 1px solid #111; padding: 12px; text-align: center; font-size: 12px; font-weight: 800; }
.paper h3 { text-align: center; text-decoration: underline; text-transform: uppercase; }
.paper p { display: grid; grid-template-columns: 128px 1fr; gap: 12px; }
.paper p span { border-bottom: 1px dotted #888; }
.paper h4 { margin-top: 28px; text-decoration: underline; font-size: 13px; }
.paper main { text-align: center; margin-top: 26px; }
.paper footer { position: absolute; bottom: 90px; left: 68px; font-size: 12px; font-weight: 800; color: #374151; }
.admin-layout { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
.admin-layout.single { grid-template-columns: 1fr; }
table { width: 100%; border-collapse: collapse; }
td { padding: 13px; border-bottom: 1px solid var(--soft-line); color: var(--muted); }
td:first-child, td:nth-child(2) { color: var(--ink); font-weight: 800; }

.form-page {
  max-width: 820px;
  margin: 24px auto;
}
.form-page p { color: var(--muted); line-height: 1.7; }
.rules-box {
  border-left: 4px solid var(--gold);
  background: rgba(59, 130, 246, 0.08);
  padding: 16px;
  border-radius: var(--radius);
  margin: 18px 0;
}
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, .75);
  backdrop-filter: blur(12px);
}
.modal.hidden { display: none; }
.modal-card {
  width: min(460px, 100%);
  position: relative;
  padding: 28px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  background: #0b1326;
  box-shadow: var(--shadow);
}
.modal-logo { width: 240px; margin-bottom: 18px; }
.modal-card p { color: var(--muted); line-height: 1.6; }
.modal-close {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  color: var(--gold-bright);
  display: grid;
  place-items: center;
}

@media (max-width: 1280px) {
  .division-grid, .process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portal-grid.three, .admin-layout { grid-template-columns: 1fr; }
  .person-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .document-layout { grid-template-columns: 1fr; }
  .document-form { position: static; max-height: none; }
  .ops-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 920px) {
  .site-header { height: auto; min-height: 74px; align-items: flex-start; padding-top: 14px; padding-bottom: 14px; }
  .brand-wordmark { width: 190px; }
  .mobile-menu, .sidebar-toggle { display: inline-grid; place-items: center; }
  .site-nav {
    display: none;
    position: absolute;
    left: 14px;
    right: 14px;
    top: 74px;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 14px;
    background: #0b1326;
    border: 1px solid var(--line);
    border-radius: var(--radius);
  }
  .site-nav.open { display: flex; }
  .hero-section { grid-template-columns: 1fr; min-height: auto; }
  .hero-asset { min-height: 360px; }
  .hero-preview-strip { position: relative; left: auto; right: auto; bottom: auto; grid-template-columns: 1fr; margin-top: 16px; }
  .mission-grid, .apply-layout, .section-heading, .about-layout { grid-template-columns: 1fr; align-items: start; }
  .metric-row { min-width: 0; grid-template-columns: 1fr; }
  .metric-row div { border-right: 0; border-bottom: 1px solid var(--soft-line); }
  .metric-row div:last-child { border-bottom: 0; }
  .portal-shell { grid-template-columns: 1fr; }
  .portal-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: min(310px, 86vw);
    transform: translateX(-105%);
    transition: transform .22s ease;
  }
  .portal-sidebar.open { transform: translateX(0); }
  .portal-topbar { padding: 0 14px; }
  .portal-topbar div span { display: none; }
  .topbar-logo { display: none; }
  .profile-layout, .unit-layout { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .content-band, .portal-view { padding: 16px; }
  .division-grid, .process-grid, .person-grid, .dual-actions, .form-row { grid-template-columns: 1fr; }
  .hero-copy h1 { font-size: 44px; }
  .hero-actions, .apply-actions { flex-direction: column; }
  .button { width: 100%; }
  .site-footer { flex-direction: column; align-items: flex-start; }
  .paper { width: 680px; }
  .document-preview { justify-content: start; }
  .ops-metrics, .profile-tabs, .admin-tabs { grid-template-columns: 1fr; }
  .dashboard-hero { grid-template-columns: 1fr; }
  .fixed-panel-mark { width: 100%; }
  .gallery-slider::before, .gallery-slider::after { width: 42px; }
  .lightbox { padding: 14px; }
  #lightboxCaption { position: static; margin-top: 14px; }
}

/* Siber SASP Panel Refresh */
.panel-page {
  background:
    radial-gradient(circle at 18% 8%, rgba(59, 130, 246, 0.1), transparent 26rem),
    radial-gradient(circle at 82% 12%, rgba(59, 130, 246, 0.08), transparent 28rem),
    linear-gradient(180deg, #030712, #0b1326 46%, #030712);
}
.panel-page .portal-shell {
  grid-template-columns: 84px minmax(0, 1fr);
}
.icon-sidebar {
  width: 84px;
  padding: 14px 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: width .24s cubic-bezier(0.4, 0, 0.2, 1), box-shadow .24s ease, background .24s ease;
  border-right: 1px solid rgba(59, 130, 246, 0.18);
  background: rgba(11, 19, 38, 0.85);
  backdrop-filter: blur(24px);
}
.icon-sidebar:hover,
.icon-sidebar.open {
  width: 292px;
  box-shadow: 30px 0 70px rgba(0, 0, 0, 0.5);
  background: rgba(11, 19, 38, 0.98);
}
.icon-sidebar .panel-brand {
  height: 78px;
  display: flex;
  align-items: center;
  border-bottom: 0;
  padding: 0;
  margin-bottom: 10px;
}
.icon-sidebar .panel-brand img {
  width: 220px;
  max-width: none;
  opacity: 0;
  transform: translateX(-12px);
  transition: opacity .18s ease, transform .18s ease;
}
.icon-sidebar:not(:hover):not(.open) .panel-brand::before {
  content: "";
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  border-radius: 16px;
  background: url("../img/sasp-seal.png") center / cover no-repeat;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}
.icon-sidebar:hover .panel-brand img,
.icon-sidebar.open .panel-brand img {
  opacity: 1;
  transform: translateX(0);
}
.icon-sidebar .system-pill {
  height: 34px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 16px;
  white-space: nowrap;
}
.icon-sidebar .system-pill b {
  opacity: 0;
  transition: opacity .18s ease;
}
.icon-sidebar:hover .system-pill b,
.icon-sidebar.open .system-pill b {
  opacity: 1;
}
.panel-page .panel-nav {
  gap: 8px;
}
.icon-sidebar .nav-group {
  width: 256px;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity .18s ease, transform .18s ease;
}
.icon-sidebar:hover .nav-group,
.icon-sidebar.open .nav-group {
  opacity: 1;
  transform: translateX(0);
}
.panel-page .panel-nav button {
  position: relative;
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 14px;
  overflow: hidden;
  border-radius: 18px;
  color: #cbd5e1;
  background: transparent;
}
.panel-page .panel-nav button b {
  opacity: 0;
  transform: translateX(-8px);
  white-space: nowrap;
  transition: opacity .18s ease, transform .18s ease;
}
.icon-sidebar:hover .panel-nav button b,
.icon-sidebar.open .panel-nav button b {
  opacity: 1;
  transform: translateX(0);
}
.nav-svg {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  display: inline-grid;
  place-items: center;
  color: var(--gold-bright);
}
.nav-svg svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.panel-page .panel-nav button.active {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.22), rgba(255, 255, 255, 0.035));
  border-color: rgba(59, 130, 246, 0.38);
  box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.18), 0 14px 34px rgba(0, 0, 0, 0.3);
}
.icon-sidebar .session-card {
  width: 256px;
  margin-top: auto;
  margin-bottom: 6px;
  opacity: 0;
  transform: translateX(-8px);
  pointer-events: none;
  border-radius: 20px;
  transition: opacity .18s ease, transform .18s ease;
}
.icon-sidebar:hover .session-card,
.icon-sidebar.open .session-card {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}
.panel-page .portal-topbar {
  height: 72px;
  border-bottom: 1px solid rgba(59, 130, 246, 0.14);
  background: rgba(3, 7, 18, 0.72);
}
.panel-page .portal-view {
  padding: 24px clamp(18px, 2.4vw, 34px);
}
.panel-page .panel-card,
.panel-page .notice,
.panel-page .unit-sidebar button,
.panel-page input,
.panel-page select,
.panel-page textarea {
  border-radius: 20px;
}
.panel-page .soft-card,
.panel-page .panel-card {
  background:
    linear-gradient(145deg, rgba(15, 23, 42, 0.75), rgba(3, 7, 18, 0.92)),
    radial-gradient(circle at 85% 0%, rgba(59, 130, 246, 0.07), transparent 18rem);
  border-color: rgba(59, 130, 246, 0.16);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.32);
}
.panel-page .dashboard-hero {
  border-top: 0;
  border-radius: 24px;
}
.government-command {
  display: grid;
  gap: 18px;
}
.command-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 360px);
  gap: 24px;
  align-items: center;
  min-height: 248px;
  overflow: hidden;
  border-radius: 24px;
}
.command-hero h1 {
  margin: 10px 0;
  font-size: clamp(38px, 5vw, 72px);
  line-height: .95;
  text-transform: uppercase;
}
.command-hero p {
  max-width: 820px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}
.identity-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.identity-strip span {
  padding: 10px 14px;
  border: 1px solid rgba(59, 130, 246, 0.24);
  border-radius: 999px;
  background: rgba(3, 7, 18, 0.6);
  color: var(--gold-bright);
  font-size: 12px;
  font-weight: 800;
}
.command-mark {
  min-height: 190px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 18px;
  border: 1px solid rgba(59, 130, 246, 0.18);
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 10%, rgba(59, 130, 246, 0.14), transparent 62%),
    rgba(3, 7, 18, 0.58);
}
.command-mark img {
  width: min(260px, 100%);
  max-height: 110px;
  object-fit: contain;
  margin-bottom: 12px;
}
.command-mark strong,
.command-mark span {
  display: block;
}
.command-mark strong { color: #fff; font-size: 18px; font-weight: 800; }
.command-mark span { color: var(--muted); font-weight: 800; margin-top: 4px; }
.system-overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 18px;
  align-items: stretch;
}
.flow-lane {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}
.flow-step {
  min-height: 172px;
  padding: 16px;
  text-align: left;
  border: 1px solid rgba(59, 130, 246, 0.18);
  border-radius: 18px;
  color: var(--ink);
  background: linear-gradient(145deg, rgba(3, 7, 18, 0.74), rgba(15, 23, 42, 0.6));
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.flow-step:hover,
.quick-action-card:hover {
  transform: translateY(-3px);
  border-color: rgba(59, 130, 246, 0.44);
  background: linear-gradient(145deg, rgba(25, 35, 55, 0.8), rgba(10, 15, 26, 0.94));
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.1);
}
.flow-step span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(59, 130, 246, 0.34);
  border-radius: 999px;
  color: var(--gold-bright);
  font-weight: 900;
}
.flow-step strong {
  display: block;
  margin: 12px 0 8px;
  font-size: 16px;
  font-weight: 800;
}
.flow-step p {
  min-height: 58px;
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
  font-size: 13px;
}
.flow-step em {
  display: block;
  margin-top: 12px;
  color: var(--gold-bright);
  font-style: normal;
  font-weight: 900;
  font-size: 12px;
}
.operation-summary {
  display: grid;
  align-content: start;
  gap: 12px;
}
.summary-line {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid var(--soft-line);
  border-radius: 16px;
  background: rgba(3, 7, 18, 0.52);
}
.summary-line span,
.summary-line em {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  font-style: normal;
  text-transform: uppercase;
}
.summary-line b { color: #fff; }
.quick-action-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}
.quick-action-card {
  min-height: 158px;
  padding: 16px;
  text-align: left;
  border: 1px solid rgba(59, 130, 246, 0.16);
  border-radius: 18px;
  color: var(--ink);
  background: rgba(15, 23, 42, 0.78);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.quick-action-card .nav-svg {
  width: 28px;
  height: 28px;
  color: var(--gold-bright);
}
.quick-action-card strong {
  display: block;
  margin: 14px 0 8px;
  font-weight: 800;
}
.quick-action-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
  font-size: 13px;
}
.command-grid {
  grid-template-columns: minmax(320px, .85fr) minmax(0, 1fr) minmax(280px, .9fr);
}
.panel-page .button {
  border-radius: 16px;
}
.ops-metrics button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--ink);
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.88), rgba(3, 7, 18, 0.94));
  box-shadow: var(--shadow);
  transition: transform .18s ease, border-color .18s ease;
}
.ops-metrics button:hover {
  transform: translateY(-3px);
  border-color: rgba(59, 130, 246, 0.46);
}
.ops-metrics button span,
.ops-metrics button em {
  display: block;
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.ops-metrics button b {
  display: block;
  color: var(--gold-bright);
  font-size: 30px;
  margin: 8px 0 4px;
}
.queue-layout,
.form-editor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
  gap: 18px;
  align-items: start;
}
.queue-center {
  display: grid;
  gap: 18px;
}
.queue-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
}
.queue-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.queue-board .queue-row {
  min-height: 180px;
  display: grid;
  align-content: start;
}
.queue-board .queue-row button {
  align-self: end;
  margin-top: 12px;
}
.workflow-modal-card {
  width: min(760px, calc(100vw - 28px));
  max-height: min(860px, calc(100vh - 34px));
  overflow: auto;
}
.modal-heading {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 18px;
}
.modal-heading h2 {
  margin: 0 0 6px;
  font-weight: 800;
}
.modal-heading p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}
.modal-form {
  display: grid;
  gap: 12px;
}
.modal-form label,
.form-modal-preview label {
  display: grid;
  gap: 7px;
  color: var(--gold-bright);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}
.form-modal-preview {
  padding: 14px;
  border: 1px dashed rgba(59, 130, 246, 0.22);
  border-radius: 18px;
  background: rgba(3, 7, 18, 0.42);
}
.personnel-admin-grid,
.rank-admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
  gap: 18px;
  align-items: start;
}
.mini-org-preview {
  display: grid;
  gap: 10px;
}
.mini-org-preview div {
  padding: 13px;
  border: 1px solid var(--soft-line);
  border-radius: 16px;
  background: rgba(3, 7, 18, 0.52);
}
.mini-org-preview b,
.mini-org-preview span {
  display: block;
}
.mini-org-preview span {
  margin-top: 7px;
  color: var(--muted);
  line-height: 1.5;
}
.rank-list {
  display: grid;
  gap: 10px;
}
.rank-row {
  display: grid;
  grid-template-columns: 38px minmax(160px, 1fr) minmax(84px, auto) auto auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--soft-line);
  border-radius: 16px;
  background: rgba(3, 7, 18, 0.55);
}
.rank-row > span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.14);
  color: var(--gold-bright);
  font-weight: 900;
}
.rank-row em {
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
}
.muted-copy {
  color: var(--muted);
  line-height: 1.7;
}
.queue-row {
  position: relative;
}
.detail-stack {
  display: grid;
  gap: 10px;
  margin: 16px 0;
}
.detail-stack span {
  padding: 12px;
  border: 1px solid var(--soft-line);
  border-radius: 14px;
  background: rgba(3, 7, 18, 0.56);
  color: var(--muted);
}
.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}
.segmented button {
  min-height: 42px;
  border: 1px solid var(--soft-line);
  border-radius: 16px;
  background: #0b111d;
  color: var(--muted);
  font-weight: 800;
  transition: all 0.2s ease;
}
.segmented button.active {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold-deep));
  color: #fff;
  border-color: rgba(255, 255, 255, 0.15);
}
.form-preview-card {
  padding: 18px;
  border: 1px solid var(--soft-line);
  border-radius: 20px;
  background: rgba(3, 7, 18, 0.62);
}

/* SASP Chatbot Siber Entegrasyonu */
.chatbot-launch {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(59, 130, 246, 0.48);
  border-radius: 50%;
  color: #fff;
  background: radial-gradient(circle at 35% 20%, rgba(255,255,255,0.2), transparent 26%), linear-gradient(145deg, var(--gold-bright), var(--gold-deep));
  box-shadow: 0 24px 56px rgba(0,0,0,.38), 0 0 42px rgba(59, 130, 246, 0.3);
  cursor: pointer;
  overflow: visible;
}
.lawbot-mini { width: 74px; height: 74px; display: block; }
.lawbot-avatar { width: 48px; height: 48px; flex: 0 0 48px; display: block; }
.lawbot-mini svg,
.lawbot-avatar svg,
.chatbot-message-avatar svg { width: 100%; height: 100%; }
.bot-head { fill: var(--gold-bright); stroke: #030712; stroke-width: 4; }
.bot-face { fill: #0b1326; stroke: #f1f5f9; stroke-width: 3; }
.bot-eye { fill: var(--gold-bright); }
.bot-smile,
.bot-arm { fill: none; stroke: var(--gold-bright); stroke-width: 4; stroke-linecap: round; }
.bot-robe { fill: #030712; stroke: var(--gold); stroke-width: 3; }
.bot-shirt { fill: #fff; stroke: var(--gold); stroke-width: 2; }
.bot-gavel-hat { fill: #0b1326; stroke: var(--gold-bright); stroke-width: 3; }
.bot-speech {
  position: absolute;
  right: 72px;
  bottom: 60px;
  min-width: 86px;
  padding: 9px 12px;
  border-radius: 16px 16px 4px 16px;
  background: var(--gold-bright);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 16px 30px rgba(0,0,0,.28);
  animation: speechFloat 2.2s ease-in-out infinite;
}
@keyframes speechFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-7px) scale(1.04); }
}
.chatbot-panel {
  position: fixed;
  right: 24px;
  bottom: 96px;
  z-index: 91;
  width: min(410px, calc(100vw - 32px));
  max-height: min(680px, calc(100vh - 120px));
  display: grid;
  grid-template-rows: auto minmax(180px, 1fr) auto;
  overflow: hidden;
  border: 1px solid rgba(59, 130, 246, 0.26);
  border-radius: 24px;
  background: rgba(3, 7, 18, 0.94);
  backdrop-filter: blur(18px);
  box-shadow: 0 32px 90px rgba(0,0,0,.48);
}
.chatbot-panel.hidden {
  display: none;
}
.chatbot-panel header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--soft-line);
}
.chatbot-panel header span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}
.chatbot-panel header > div {
  flex: 1;
}
.chatbot-panel header button {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
  color: var(--gold-bright);
  font-size: 22px;
  display: grid;
  place-items: center;
}
.chatbot-body {
  padding: 16px;
  overflow: auto;
  display: grid;
  gap: 10px;
  align-content: start;
}
.chat-message {
  max-width: 92%;
  line-height: 1.5;
  font-size: 14px;
  display: flex;
  align-items: flex-end;
  gap: 9px;
}
.chat-message .chat-bubble {
  padding: 12px 14px;
  border-radius: 18px;
  animation: bubbleTalk .24s ease both;
}
.chat-message.bot {
  justify-self: start;
}
.chat-message.bot .chat-bubble {
  background: rgba(255,255,255,.05);
  color: #eef2f7;
  border: 1px solid rgba(59, 130, 246, 0.2);
}
.chat-message.user {
  justify-self: end;
}
.chat-message.user .chat-bubble {
  background: rgba(59, 130, 246, 0.15);
  color: var(--gold-bright);
  border: 1px solid rgba(59, 130, 246, 0.3);
}
.chatbot-message-avatar {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
}
@keyframes bubbleTalk {
  from { opacity: .4; transform: translateY(6px) scale(.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.chatbot-actions {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-top: 1px solid var(--soft-line);
}
.chatbot-actions button {
  min-height: 40px;
  border: 1px solid rgba(59, 130, 246, 0.24);
  border-radius: 14px;
  background: rgba(59, 130, 246, 0.08);
  color: var(--gold-bright);
  font-weight: 800;
}

/* SASP Hiyerarşi Şeması (Connector Lines & Tree Visuals) */
.org-shell {
  overflow: hidden;
}
.compact-heading img {
  width: min(260px, 40vw);
  object-fit: contain;
}
.org-tree,
.public-org-tree {
  display: grid;
  gap: 24px;
  margin-top: 24px;
}
.org-level {
  position: relative;
  display: grid;
  gap: 16px;
  justify-items: center;
}
.org-level::before {
  content: "";
  width: 2px;
  height: 24px;
  background: linear-gradient(var(--gold-bright), transparent);
  opacity: calc(1 - min(var(--level), 1) * .15);
}
.org-level:first-child::before {
  display: none;
}
.org-level h2,
.org-level h3 {
  margin: 0;
  padding: 8px 16px;
  border: 1px solid rgba(59, 130, 246, 0.24);
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.08);
  color: var(--gold-bright);
  font-size: 14px;
  text-transform: uppercase;
  font-weight: 800;
}
.org-row {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}
.org-node {
  position: relative;
  width: min(230px, 100%);
  min-height: 260px;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 8px;
  padding: 18px;
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 22px;
  background: linear-gradient(155deg, rgba(15, 23, 42, 0.88), rgba(3, 7, 18, 0.96));
  box-shadow: 0 18px 50px rgba(0,0,0,.28);
  text-align: center;
}
.org-node::before {
  content: "";
  position: absolute;
  top: -17px;
  width: 1px;
  height: 16px;
  background: rgba(59, 130, 246, 0.28);
}
.org-photo {
  width: 96px;
  height: 96px;
  overflow: hidden;
  border: 2px solid rgba(59, 130, 246, 0.48);
  border-radius: 50%;
  background: #0b111d;
  box-shadow: 0 12px 30px rgba(0,0,0,.34);
}
.org-node strong {
  color: var(--text);
  font-size: 17px;
  font-weight: 800;
}
.org-node span {
  color: var(--gold-bright);
  font-weight: 800;
}
.org-node small {
  color: var(--muted);
  font-weight: 700;
}
.org-node em {
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  color: var(--green);
  font-style: normal;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}
.org-node.offline em {
  background: rgba(148, 163, 184, 0.12);
  color: var(--muted);
}
.settings-layout {
  display: grid;
  grid-template-columns: minmax(300px, .9fr) 1.1fr;
  gap: 18px;
}
.discord-details-grid {
  display: grid;
  grid-template-columns: minmax(320px, .9fr) 1.1fr;
  gap: 18px;
}
.discord-details-grid table {
  width: 100%;
}
.discord-details-grid td {
  vertical-align: middle;
}
.staff-add-form {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}
.connection-panel {
  margin: 18px 0;
  padding: 16px;
  border: 1px solid rgba(59, 130, 246, 0.18);
  border-radius: 18px;
  background: rgba(3, 7, 18, 0.5);
}
.connection-panel h2 {
  margin-top: 0;
}
.bridge-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}
.bridge-grid div {
  padding: 14px;
  border: 1px solid var(--soft-line);
  border-radius: 16px;
  background: rgba(3, 7, 18, 0.62);
}
.bridge-grid span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}
.bridge-grid b {
  display: block;
  margin-top: 5px;
  color: var(--gold-bright);
}
.leaderboard {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}
.leaderboard div {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 13px;
  border: 1px solid var(--soft-line);
  border-radius: 16px;
  background: rgba(3, 7, 18, 0.62);
}
.leaderboard div > b {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.16);
  color: var(--gold-bright);
}
.leaderboard span {
  color: #fff;
  font-weight: 800;
}
.leaderboard strong {
  color: var(--gold-bright);
}
.leaderboard em {
  grid-column: 2 / -1;
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
}
.admin-ai-grid {
  display: grid;
  gap: 18px;
}
.ai-advisor {
  display: flex;
  align-items: center;
  gap: 16px;
  border-color: rgba(59, 130, 246, 0.34);
}
.alert-card {
  text-align: center;
}
.alert-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.16);
  color: var(--gold-bright);
  font-weight: 900;
  font-size: 22px;
}
.alert-card.danger .alert-mark {
  background: rgba(239, 68, 68, 0.14);
  color: #ff6b6b;
}

@media print {
  body.print-document * {
    visibility: hidden !important;
  }
  body.print-document .document-preview,
  body.print-document .document-preview * {
    visibility: visible !important;
  }
  body.print-document .document-preview {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    background: #fff !important;
    padding: 0 !important;
    overflow: visible !important;
  }
  body.print-document .paper {
    width: 210mm;
    min-height: 297mm;
    box-shadow: none !important;
    border: 0 !important;
  }
}

@media (max-width: 920px) {
  .panel-page .portal-shell {
    grid-template-columns: 1fr;
  }
  .icon-sidebar {
    width: min(310px, 86vw);
  }
  .icon-sidebar .panel-brand img,
  .icon-sidebar .system-pill b,
  .icon-sidebar .panel-nav button b,
  .icon-sidebar .nav-group,
  .icon-sidebar .session-card {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
  .icon-sidebar:not(:hover):not(.open) .panel-brand::before {
    display: none;
  }
  .queue-layout,
  .queue-header,
  .queue-board,
  .form-editor-grid,
  .personnel-admin-grid,
  .rank-admin-grid,
  .settings-layout,
  .discord-details-grid,
  .bridge-grid {
    grid-template-columns: 1fr;
  }
  .rank-row {
    grid-template-columns: 34px 1fr;
  }
  .rank-row em,
  .rank-row button {
    grid-column: 2;
  }
  .bot-speech {
    display: none;
  }
}
@media (max-width: 1180px) {
  .command-hero,
  .system-overview,
  .command-grid {
    grid-template-columns: 1fr;
  }
  .flow-lane {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .quick-action-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 680px) {
  .flow-lane,
  .quick-action-grid,
  .clean-metrics {
    grid-template-columns: 1fr;
  }
  .command-hero {
    min-height: 0;
  }
  .command-hero h1 {
    font-size: 36px;
  }
  .identity-strip span {
    width: 100%;
  }
}

.dashboard-shortcuts button { cursor: pointer; }
.highlight-announcement strong { display: block; color: var(--gold); margin: 10px 0; font-size: 1.05rem; }
.announcement-modal-list { display: grid; gap: 12px; }
.big-notice { border-left: 3px solid var(--gold); padding: 16px; }
.warning-notice { border-color: rgba(245, 191, 70, 0.35); background: rgba(245, 191, 70, 0.08); }
.inline-admin-input { display: grid; gap: 8px; width: 100%; margin: 14px 0; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; }
.inline-admin-input input,
.panel-card select { min-height: 38px; border: 1px solid rgba(59, 130, 246, 0.22); background: rgba(3, 7, 18, 0.72); color: #fff; border-radius: 8px; padding: 0 12px; }
.media-row { display: grid; grid-template-columns: 76px 1fr auto; gap: 12px; align-items: center; }
.media-row img { width: 76px; height: 50px; object-fit: cover; border-radius: 8px; }
.ribbon-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-top: 16px; }
.ribbon-card { border: 1px solid rgba(59, 130, 246, 0.22); background: rgba(255, 255, 255, 0.035); border-radius: 10px; padding: 12px; }
.ribbon-card img { width: 58px; height: 58px; object-fit: contain; display: block; margin-bottom: 8px; }
.ribbon-card b { color: var(--gold); display: block; }
.ribbon-card p { color: var(--muted); margin: 6px 0 0; font-size: .86rem; }
.profile-photo-trigger { border: 0; cursor: pointer; padding: 0; color: inherit; }
.report-admin-grid,
.payroll-admin-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr); gap: 18px; }
.payroll-admin-grid .wide-card { grid-column: 1 / -1; }
.payroll-summary .bridge-grid b { color: var(--gold); }
.simple-welcome { min-height: 180px; }
.dashboard-action-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.document-search-card { grid-column: 1 / -1; }
.document-search-card input { min-height: 42px; border: 1px solid rgba(59, 130, 246, 0.24); background: rgba(3, 7, 18, 0.78); color: #fff; border-radius: 8px; padding: 0 14px; min-width: min(360px, 100%); }
.document-registry-list { display: grid; gap: 10px; margin-top: 14px; }
@media (max-width: 980px) {
  .report-admin-grid,
  .payroll-admin-grid { grid-template-columns: 1fr; }
  .dashboard-action-row { grid-template-columns: 1fr; }
}