/* =========================================================================
   RIVERSIDE PD - CINEMATIC STYLE
   Koyu sinematik tema: #050505 zemin, dev büyük harfli başlıklar,
   mavi-kırmızı "siren" geçişi, gölge yerine beyaz/10 kenarlık + bulanıklık.
   Font: Inter Tight (Aspekta Google Fonts'ta olmadığı için en yakın muadil).
   ========================================================================= */

:root {
  --bg: #050505;
  --bg-2: #0a0a0a;
  --surface: #111111;
  --surface-2: #181818;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);
  --input-border: rgba(255, 255, 255, 0.34);
  --text: #ffffff;
  --text-2: #b3b3b3;
  --muted: #999999;
  --heading: #ffffff;
  --link: #93c5fd;
  --siren: linear-gradient(90deg, #1d4ed8, #dc2626);
  --siren-hover: linear-gradient(90deg, #2563eb, #ef4444);
  --blue: #1d4ed8;
  --red: #ef4444;
  --glow: #1d4ed8;
  --career-bg: #030914;
  --calc-bg: #0b1730;
  --ok: #4ade80;
  --alert: #f87171;

  --font: "Inter Tight", "Inter", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --r: 14px;
  --r-sm: 8px;
  --r-xl: 32px;
  --wrap: 90rem;
  --gutter: clamp(16px, 3vw, 32px);
  --nav-h: 80px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --blur: blur(8px);

  /* z-index ölçeği */
  --z-menu: 50;
  --z-nav: 60;
  --z-modal: 80;
  --z-toast: 90;
  --z-skip: 100;

  color-scheme: dark;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: #dc2626; color: #fff; }

:focus-visible { outline: 3px solid #fbbf24; outline-offset: 3px; border-radius: var(--r-sm); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

main { padding-top: var(--nav-h); }
body[data-page="home"] main { padding-top: 0; }
main:focus { outline: none; }

/* ---------------- Tipografi ---------------- */
h1, h2, h3, h4 {
  font-family: var(--font);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin: 0;
  color: var(--heading);
}
h1 { font-size: clamp(2.8rem, 8vw, 7rem); }
h2 { font-size: clamp(2.2rem, 6vw, 5rem); }
h3 { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.15; }
p { margin: 0; }
.lead { color: var(--text-2); font-size: 1.125rem; font-weight: 300; max-width: 60ch; line-height: 1.65; }
.muted { color: var(--muted); }
.accent { color: var(--link); }
.mono { font-family: var(--font-mono); }

/* Geniş aralıklı ikincil etiket (prompt: weight 700, tracking 0.2em) */
.label {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted);
}
.kicker { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--link); }

.section { padding: clamp(72px, 10vw, 140px) 0; }
.section-head { display: grid; gap: 20px; margin-bottom: clamp(36px, 5vw, 64px); }
.mega { font-size: clamp(2.8rem, 9vw, 9rem); letter-spacing: -0.035em; line-height: 1; padding-top: 0.1em; }

/* ---------------- Butonlar ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 50px; padding: 0 24px; border-radius: 999px;
  border: 1px solid transparent; background: transparent;
  font-weight: 700; font-size: 0.95rem; letter-spacing: 0.01em;
  white-space: nowrap; cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s, border-color 0.2s, color 0.2s;
}
.btn i { font-size: 1.15em; }
.btn:hover { transform: scale(1.02); }
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--siren); color: #fff; }
.btn-primary:hover { background: var(--siren-hover); }
.btn-ghost { border-color: var(--line-strong); color: #fff; background: rgba(255, 255, 255, 0.04); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.5); }
.btn-light { background: #fff; color: #111; }
.btn-dark { background: #111; color: #fff; }
.btn-sm { height: 40px; padding: 0 18px; font-size: 0.88rem; }
.btn-icon { width: 40px; padding: 0; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; }

.link-arrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase; color: #fff; transition: gap 0.2s var(--ease), color 0.2s; }
.link-arrow:hover { gap: 16px; color: var(--link); }

/* ---------------- İçeriğe atla ---------------- */
.skip-link { position: fixed; left: 16px; top: -60px; z-index: var(--z-skip); padding: 10px 16px; border-radius: 999px; background: #fff; color: #111; font-weight: 700; transition: top 0.2s var(--ease); }
.skip-link:focus { top: 12px; }

/* ---------------- Sabit navigasyon (mix-blend-difference) ---------------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: var(--z-nav);
  padding: 0 2rem; height: var(--nav-h);
  display: flex; align-items: center; gap: 24px;
}
/* Kaydırınca içerik menünün altında karışmasın: zemine doğru kaybolan koyu katman */
.nav::before { content: ""; position: absolute; inset: 0 0 -24px 0; z-index: -1; pointer-events: none; background: linear-gradient(180deg, rgba(5, 5, 5, 0.92) 0%, rgba(5, 5, 5, 0.7) 60%, rgba(5, 5, 5, 0) 100%); }
/* Fark modu yalnızca metin/ikon katmanlarına uygulanır; açılır menü paneli etkilenmez */
.nav .brand-text, .nav .nav-link, .nav .nav-plain, .nav .nav-toggle { mix-blend-mode: difference; color: #fff; }
.nav .brand { color: #fff; }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand img { width: 44px; height: 44px; border-radius: 50%; }
.brand-text { display: grid; line-height: 1.1; }
.brand-text strong { font-size: 1.15rem; font-weight: 900; letter-spacing: 0.02em; text-transform: uppercase; }
.brand-text small { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.7; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--red); position: relative; flex-shrink: 0; }
.live-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--red); animation: ping 1.8s var(--ease) infinite; }
@keyframes ping { 75%, 100% { transform: scale(2.6); opacity: 0; } }

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0 auto; padding: 0; }
.nav-links > li { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border: 0; background: none; cursor: pointer;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  transition: opacity 0.2s;
}
.nav-link:hover { opacity: 0.7; }
.nav-link.is-active { box-shadow: inset 0 -2px 0 currentColor; border-radius: 0; }
.nav-link .ph-caret-down { font-size: 0.9em; transition: transform 0.25s var(--ease); }
.nav-link[aria-expanded="true"] .ph-caret-down { transform: rotate(180deg); }

.dropdown {
  position: absolute; top: calc(100% + 12px); left: 50%; transform: translate(-50%, -6px);
  min-width: 320px; padding: 8px;
  background: rgba(17, 17, 17, 0.92); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--line); border-radius: var(--r);
  opacity: 0; visibility: hidden; transition: opacity 0.18s, transform 0.22s var(--ease), visibility 0.18s;
  z-index: var(--z-menu);
}
.dropdown.is-open { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.dropdown a { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: center; padding: 10px; border-radius: var(--r-sm); transition: background 0.2s; }
.dropdown a:hover { background: rgba(255, 255, 255, 0.06); }
.dropdown a i { width: 36px; height: 36px; display: grid; place-items: center; border-radius: var(--r-sm); border: 1px solid var(--line); font-size: 1.1rem; }
.dropdown strong { display: block; font-size: 0.9rem; }
.dropdown small { display: block; font-size: 0.8rem; color: var(--muted); line-height: 1.35; }

.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-plain { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; transition: opacity 0.2s; }
.nav-plain:hover { opacity: 0.7; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid #fff; border-radius: 999px; background: none; cursor: pointer; place-items: center; font-size: 1.2rem; }

.mobile-menu {
  position: fixed; inset: 0; z-index: var(--z-menu);
  background: #050505; padding: calc(var(--nav-h) + 16px) var(--gutter) 40px; overflow-y: auto;
  opacity: 0; visibility: hidden; transition: opacity 0.25s, visibility 0.25s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu h4 { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.2em; color: var(--muted); margin: 26px 0 8px; }
.mobile-menu a { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); font-weight: 700; font-size: 1.1rem; text-transform: uppercase; letter-spacing: -0.01em; }
.mobile-menu a i { color: var(--link); font-size: 1.2rem; }
.mobile-menu .btn { width: 100%; margin-top: 12px; font-size: 0.95rem; }

@media (max-width: 1100px) {
  .nav-links, .nav-actions .hide-md { display: none; }
  .nav-toggle { display: grid; }
  .nav-actions { margin-left: auto; }
}
@media (max-width: 640px) {
  .nav { padding: 0 var(--gutter); }
  .brand-text small { display: none; }
}

/* ---------------- 3D Rolodex Hero ---------------- */
.hero {
  position: relative; min-height: min(100vh, 1100px); min-height: min(100dvh, 1100px); overflow: hidden;
  display: grid; place-items: center;
  perspective: 2000px;
  background: radial-gradient(60% 50% at 50% 45%, rgba(29, 78, 216, 0.16), transparent 70%), var(--bg);
}
.hero-bgtext {
  position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; user-select: none;
  font-size: min(12vw, 14rem); font-weight: 900; letter-spacing: -0.06em; line-height: 1; text-transform: uppercase;
  color: #fff; opacity: 0.12; white-space: nowrap;
}
@supports (animation-timeline: scroll()) {
  .hero-bgtext { animation: bgtext linear both; animation-timeline: scroll(root); animation-range: 0 60vh; }
  @keyframes bgtext { from { opacity: 0.12; } to { opacity: 0.3; } }
}
.cube-scene { --cube: min(50vh, 72vw, 560px); width: var(--cube); height: var(--cube); position: relative; z-index: 1; }
.cube { width: 100%; height: 100%; position: relative; transform-style: preserve-3d; animation: rolodex 18s linear infinite; }
.cube-scene:hover .cube, .cube-scene:focus-within .cube { animation-play-state: paused; }
@keyframes rolodex { from { transform: rotateX(0deg); } to { transform: rotateX(360deg); } }
.cube-face {
  position: absolute; inset: 0; overflow: hidden; border-radius: 4px;
  border: 1px solid var(--line); backface-visibility: hidden;
  display: grid; place-items: center; text-align: center;
  background: var(--img, none) center / cover no-repeat, linear-gradient(140deg, #0d1b3d, #050505 70%);
}
.cube-face::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 5, 5, 0.1), rgba(5, 5, 5, 0.7)); }
.cube-face > * { position: relative; }
.cube-face i { font-size: clamp(2.4rem, 6vh, 4rem); color: rgba(255, 255, 255, 0.85); margin-bottom: 14px; display: block; }
.cube-face span { font-size: clamp(1rem, 2.6vh, 1.5rem); font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; }
.cube-face small { display: block; margin-top: 6px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.cube-face:nth-child(1) { transform: rotateX(0deg) translateZ(calc(var(--cube) / 2)); }
.cube-face:nth-child(2) { transform: rotateX(-90deg) translateZ(calc(var(--cube) / 2)); }
.cube-face:nth-child(3) { transform: rotateX(-180deg) translateZ(calc(var(--cube) / 2)); }
.cube-face:nth-child(4) { transform: rotateX(90deg) translateZ(calc(var(--cube) / 2)); }

.hero-bottom {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 0 2rem 2rem; display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap;
}
.hero-bottom h1 { font-size: clamp(1.6rem, 3.2vw, 2.8rem); line-height: 1.02; letter-spacing: -0.02em; max-width: 16ch; }
.hero-bottom .lead { font-size: 1rem; margin-top: 12px; max-width: 42ch; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 720px) {
  .hero { display: flex; flex-direction: column; align-items: center; min-height: 0; padding-top: calc(var(--nav-h) + 72px); }
  .cube-scene { --cube: min(62vw, 340px); }
  .hero-bgtext { place-items: start center; padding-top: calc(var(--nav-h) + 72px + min(31vw, 170px) - 7vw); }
  .hero-bottom { position: relative; padding: 72px var(--gutter) 36px; width: 100%; }
}

/* ---------------- Hızlı erişim (brutalist kenarlıklı şerit) ---------------- */
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.quick-card { padding: 32px 28px; display: grid; gap: 12px; border-left: 1px solid var(--line); transition: background 0.25s; }
.quick-card:first-child { border-left: 0; }
.quick-card:hover { background: rgba(255, 255, 255, 0.03); }
.quick-card .q-top { display: flex; justify-content: space-between; align-items: center; }
.quick-card .q-top i { font-size: 1.5rem; }
.quick-card .q-top i:last-child { color: var(--muted); transition: transform 0.25s var(--ease), color 0.25s; }
.quick-card:hover .q-top i:last-child { transform: translate(3px, -3px); color: #fff; }
.quick-card h3 { font-size: 1.1rem; text-transform: uppercase; }
.quick-card p { color: var(--muted); font-size: 0.92rem; }
@media (max-width: 960px) {
  .quick-grid { grid-template-columns: 1fr 1fr; }
  .quick-card:nth-child(3) { border-left: 0; }
  .quick-card:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .quick-grid { grid-template-columns: 1fr; }
  .quick-card { border-left: 0; }
  .quick-card + .quick-card { border-top: 1px solid var(--line); }
}

/* ---------------- Operasyonlar grid ---------------- */
.ops-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.ops-featured { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--surface); margin-bottom: 20px; }
.window-bar { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted); }
.window-bar .rec { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 600; letter-spacing: 0.1em; }
.window-bar .rec::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--red); animation: blink 1.2s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0.2; } }
.window-bar .meta { margin-left: auto; }
.media { position: relative; overflow: hidden; background: linear-gradient(140deg, #0d1b3d, #050505 75%); display: grid; place-items: center; }
.media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: filter 0.6s var(--ease), transform 0.8s var(--ease); }
.media > i { font-size: 3rem; color: rgba(255, 255, 255, 0.25); }
a:hover .media img, .media:hover img { filter: grayscale(0); transform: scale(1.03); }
.ops-featured .media { aspect-ratio: 16 / 9; }
.ops-caption { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; }
.ops-caption h3 { font-size: 1.15rem; text-transform: uppercase; }
.ops-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.ops-item { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--surface); }
.ops-item .media { aspect-ratio: 4 / 3; }
@media (max-width: 720px) { .ops-grid { grid-template-columns: 1fr; } }

/* ---------------- Kariyer (fiyatlandırma uyarlaması) ---------------- */
.career { position: relative; overflow: hidden; background: var(--career-bg); }
.career::before {
  content: ""; position: absolute; left: 50%; top: 38%; width: 60vw; height: 60vw; max-width: 900px; max-height: 900px;
  transform: translate(-50%, -50%); border-radius: 50%; background: var(--glow); opacity: 0.32; filter: blur(100px); pointer-events: none;
}
.career .wrap { position: relative; }
.tier-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: center; }
.tier-card {
  padding: 36px 30px; border-radius: var(--r-xl); display: grid; gap: 18px;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
}
.tier-card .t-period { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.tier-card h3 { font-size: clamp(2rem, 3vw, 2.8rem); font-weight: 900; letter-spacing: -0.03em; line-height: 1.05; }
.tier-card .t-sub { color: var(--text-2); font-weight: 500; }
.tier-card p { color: var(--text-2); font-weight: 300; }
.tier-card ul { list-style: none; padding: 18px 0 0; margin: 0; display: grid; gap: 10px; border-top: 1px solid var(--line); }
.tier-card li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.95rem; }
.tier-card li i { color: var(--link); margin-top: 3px; }
.tier-card .btn { width: 100%; }
.tier-card--featured { background: #fff; color: #111; transform: scale(1.05); border-color: #fff; }
.tier-card--featured h3 { color: #111; }
.tier-card--featured .t-period, .tier-card--featured .t-sub, .tier-card--featured p { color: #444; }
.tier-card--featured ul { border-color: rgba(0, 0, 0, 0.12); }
.tier-card--featured li i { color: #1d4ed8; }
@media (max-width: 960px) {
  .tier-cards { grid-template-columns: 1fr; }
  .tier-card--featured { transform: none; }
}

/* Terfi tahmini (hesaplayıcı) */
.calc {
  margin-top: 56px; padding: clamp(28px, 4vw, 48px); border-radius: var(--r-xl);
  background: var(--calc-bg); border: 1px solid var(--line);
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center;
}
.calc h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 900; text-transform: uppercase; letter-spacing: -0.03em; }
.calc p { color: var(--text-2); font-weight: 300; margin-top: 10px; }
.calc-control { display: grid; gap: 16px; }
.calc-row { display: flex; justify-content: space-between; align-items: baseline; }
.calc-row label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.calc-row output { font-weight: 700; }
.calc-result { font-size: clamp(3rem, 7vw, 5.5rem); font-weight: 900; letter-spacing: -0.05em; line-height: 0.9; }
.calc-result small { font-size: 0.3em; letter-spacing: 0.2em; font-weight: 700; color: var(--muted); margin-left: 8px; }
.calc-note { font-size: 0.82rem; color: var(--muted); }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 999px; background: #374151; cursor: pointer; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.5); }
input[type="range"]::-moz-range-thumb { width: 24px; height: 24px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.5); }
input[type="range"]:focus-visible { outline-offset: 6px; }
@media (max-width: 860px) { .calc { grid-template-columns: 1fr; } }

/* ---------------- Duyurular (kalın kenarlıklı satırlar) ---------------- */
.news-rows { border-top: 2px solid #fff; }
.news-row { display: grid; grid-template-columns: 160px 1fr auto; gap: 32px; align-items: start; padding: 28px 0; border-bottom: 1px solid var(--line); transition: background 0.2s; }
.news-row:hover { background: rgba(255, 255, 255, 0.02); }
.news-row time { font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted); padding-top: 4px; }
.news-row h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); text-transform: uppercase; letter-spacing: -0.02em; }
.news-row p { color: var(--text-2); font-weight: 300; margin-top: 8px; max-width: 70ch; }
.tag { display: inline-block; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-2); white-space: nowrap; }
.news-meta { display: flex; gap: 10px; align-items: center; font-size: 0.82rem; color: var(--muted); }
@media (max-width: 720px) { .news-row { grid-template-columns: 1fr; gap: 10px; } }

/* ---------------- Alt sayfa başlığı ---------------- */
.page-hero { padding: clamp(48px, 7vw, 96px) 0 clamp(36px, 5vw, 56px); border-bottom: 1px solid var(--line); }
.page-hero .wrap { display: grid; gap: 18px; }
.page-hero h1 { font-size: clamp(2.8rem, 9vw, 8rem); letter-spacing: -0.035em; line-height: 1; padding-top: 0.12em; }
.crumbs { display: flex; gap: 10px; align-items: center; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.crumbs a:hover { color: #fff; }

/* ---------------- Araç çubuğu / arama ---------------- */
.toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 28px; }
.search { flex: 1 1 280px; position: relative; }
.search i { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search input[type="search"] { padding-left: 48px; border-radius: 999px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; color: var(--text-2); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; cursor: pointer; transition: all 0.2s; }
.chip:hover { color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.chip.is-active { background: #fff; border-color: #fff; color: #111; }

/* ---------------- Form öğeleri ---------------- */
.field { display: grid; gap: 8px; }
.field label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: #fff; }
.field label .req { color: var(--alert); }
.field .help { font-size: 0.82rem; color: var(--muted); }
.field .error { font-size: 0.82rem; color: var(--alert); font-weight: 600; display: none; }
.field.has-error .error { display: block; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--alert); }
input[type="text"], input[type="number"], input[type="password"], input[type="search"], input[type="email"], input[type="url"], select, textarea {
  width: 100%; height: 50px; padding: 0 16px;
  background: var(--bg-2); border: 1px solid var(--input-border); border-radius: var(--r-sm);
  color: #fff; transition: border-color 0.2s, background 0.2s;
}
textarea { height: auto; min-height: 130px; padding: 14px 16px; resize: vertical; line-height: 1.55; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 22px) 22px, calc(100% - 17px) 22px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
select option { background: #111; }
input::placeholder, textarea::placeholder { color: #8a8a8a; }
input:focus, select:focus, textarea:focus { outline: none; border-color: #fff; background: #0e0e0e; }
.field label.check, .check { display: flex; gap: 12px; align-items: flex-start; font-size: 0.95rem; color: var(--text-2); cursor: pointer; text-transform: none; letter-spacing: 0; font-weight: 400; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: #dc2626; flex-shrink: 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------------- Tablo (kadro) ---------------- */
.table-wrap { border: 1px solid var(--line); border-radius: var(--r); overflow-x: auto; background: var(--surface); }
table { width: 100%; border-collapse: collapse; min-width: 720px; }
th, td { text-align: left; padding: 16px 20px; font-size: 0.93rem; }
th { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); }
tbody tr + tr { border-top: 1px solid var(--line); }
tbody tr:hover { background: rgba(255, 255, 255, 0.025); }
td .who { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.avatar { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; font-weight: 900; font-size: 1.1rem; color: #fff; background: linear-gradient(140deg, #1d4ed8, #7f1d1d); overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
td .who .avatar { width: 36px; height: 36px; font-size: 0.78rem; }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--ok); }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status.is-izinli { color: var(--muted); }

/* ---------------- Boş durum ---------------- */
.empty { padding: 56px 24px; text-align: center; border: 1px dashed var(--line-strong); border-radius: var(--r); color: var(--muted); display: grid; gap: 10px; justify-items: center; }
.empty i { font-size: 2.2rem; color: #fff; }
.empty strong { color: #fff; font-size: 1.05rem; text-transform: uppercase; letter-spacing: 0.05em; }

/* ---------------- Rütbe merdiveni ---------------- */
.ladder { display: grid; gap: 56px; }
.tier h2 { font-size: clamp(1.8rem, 4vw, 3rem); display: flex; align-items: center; gap: 18px; margin-bottom: 20px; }
.tier h2::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.tier-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.rank-card { display: grid; grid-template-columns: 52px 1fr; gap: 18px; align-items: start; padding: 22px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); transition: border-color 0.2s; }
.rank-card:hover { border-color: var(--line-strong); }
.rank-card .num { font-size: 2rem; font-weight: 900; letter-spacing: -0.05em; line-height: 1; color: rgba(255, 255, 255, 0.25); }
.rank-card h3 { font-size: 1.05rem; text-transform: uppercase; }
.rank-card .ins { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--link); margin: 4px 0 10px; }
.rank-card p { font-size: 0.92rem; color: var(--text-2); font-weight: 300; }

/* ---------------- Kurallar ---------------- */
.rules-layout { display: grid; grid-template-columns: 260px 1fr; gap: 48px; align-items: start; }
.rules-nav { position: sticky; top: calc(var(--nav-h) + 24px); display: grid; gap: 4px; }
.rules-nav a { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid transparent; color: var(--text-2); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; transition: all 0.2s; }
.rules-nav a:hover { border-color: var(--line-strong); color: #fff; }
.rule-group { scroll-margin-top: calc(var(--nav-h) + 24px); margin-bottom: 56px; }
.rule-group h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.rule-group h2 i { font-size: 0.7em; color: var(--link); }
.rule-list { border-top: 2px solid #fff; }
.rule { display: grid; grid-template-columns: 90px 1fr auto; gap: 20px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.rule .n { font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted); }
.rule p { font-size: 1rem; font-weight: 300; }
.sanction { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--text-2); white-space: nowrap; }
.sanction.is-high { border-color: rgba(248, 113, 113, 0.5); color: #fca5a5; }
.sanction.is-mid { border-color: rgba(147, 197, 253, 0.5); color: var(--link); }
@media (max-width: 860px) {
  .rules-layout { grid-template-columns: 1fr; }
  .rules-nav { position: static; display: flex; overflow-x: auto; }
  .rules-nav a { white-space: nowrap; border-color: var(--line); }
  .rule { grid-template-columns: 1fr; gap: 8px; }
  .rule .sanction { justify-self: start; }
}

/* ---------------- Telsiz kodları ---------------- */
.codes { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.code { display: grid; grid-template-columns: 96px 1fr auto; gap: 14px; align-items: center; padding: 16px 18px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); text-align: left; cursor: pointer; transition: border-color 0.2s, transform 0.2s var(--ease); }
.code:hover { border-color: rgba(255, 255, 255, 0.4); transform: scale(1.02); }
.code b { font-weight: 900; font-size: 1.05rem; letter-spacing: -0.02em; }
.code span { font-size: 0.9rem; color: var(--text-2); font-weight: 300; }
.code i { color: var(--muted); }
.code.is-copied { border-color: var(--ok); }
.code.is-copied i { color: var(--ok); }

/* ---------------- Birim detay listesi ---------------- */
.div-list { display: grid; gap: 24px; }
.div-row { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--surface); scroll-margin-top: calc(var(--nav-h) + 24px); }
.div-row:nth-child(even) .div-img { order: 2; }
.div-img { min-height: 320px; position: relative; display: grid; place-items: center; background: var(--img, none) center / cover no-repeat, linear-gradient(140deg, #0d1b3d, #050505 75%); filter: grayscale(1); transition: filter 0.6s var(--ease); }
.div-row:hover .div-img { filter: grayscale(0); }
.div-img > i { font-size: 4rem; color: rgba(255, 255, 255, 0.3); }
.div-body { padding: clamp(24px, 3.5vw, 48px); display: grid; gap: 16px; align-content: center; }
.div-body h2 { font-size: clamp(2rem, 4vw, 3.4rem); }
.div-body .lead { font-size: 1.05rem; }
.div-en { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.div-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.div-facts small { display: block; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.div-facts strong { font-size: 0.98rem; }
.pill { display: inline-flex; align-items: center; gap: 8px; justify-self: start; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.is-open { color: var(--ok); border-color: rgba(74, 222, 128, 0.4); }
.pill.is-closed { color: var(--muted); }
@media (max-width: 860px) {
  .div-row { grid-template-columns: 1fr; }
  .div-row:nth-child(even) .div-img { order: 0; }
  .div-img { min-height: 220px; }
}

/* ---------------- Başvuru sekmeleri ---------------- */
.apply-layout { display: grid; grid-template-columns: 320px 1fr; gap: 32px; align-items: start; }
.tabs { display: grid; gap: 10px; position: sticky; top: calc(var(--nav-h) + 24px); }
.tab { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: center; text-align: left; padding: 16px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); cursor: pointer; transition: border-color 0.2s, background 0.2s; }
.tab i { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-strong); font-size: 1.2rem; }
.tab strong { display: block; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.tab small { display: block; font-size: 0.82rem; color: var(--muted); line-height: 1.35; margin-top: 2px; }
.tab:hover { border-color: var(--line-strong); }
.tab[aria-selected="true"] { background: #fff; border-color: #fff; color: #111; }
.tab[aria-selected="true"] small { color: #555; }
.tab[aria-selected="true"] i { background: var(--siren); border-color: transparent; color: #fff; }
.form-card { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); padding: clamp(24px, 3.5vw, 44px); }
.form-card h2 { font-size: clamp(2rem, 4vw, 3.2rem); margin-bottom: 14px; }
.form-card > p { color: var(--text-2); font-weight: 300; margin-bottom: 28px; }
.form-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: var(--r-sm); background: rgba(29, 78, 216, 0.12); border: 1px solid rgba(147, 197, 253, 0.25); font-size: 0.92rem; margin-bottom: 24px; }
.notice i { color: var(--link); font-size: 1.2rem; margin-top: 2px; }
.result { display: none; }
.result.is-shown { display: grid; gap: 16px; }
.result pre { margin: 0; padding: 18px; border-radius: var(--r-sm); background: var(--bg); border: 1px solid var(--line); font-family: var(--font-mono); font-size: 0.84rem; white-space: pre-wrap; color: var(--text-2); max-height: 360px; overflow: auto; }
@media (max-width: 900px) { .apply-layout { grid-template-columns: 1fr; } .tabs { position: static; grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .tabs { grid-template-columns: 1fr; } }

/* ---------------- Galeri ---------------- */
.masonry { columns: 3 300px; column-gap: 16px; }
.shot { break-inside: avoid; margin: 0 0 16px; display: block; width: 100%; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: var(--surface); cursor: zoom-in; }
.shot .shot-ph { width: 100%; background: linear-gradient(140deg, #0d1b3d, #050505 75%); display: grid; place-items: center; color: rgba(255, 255, 255, 0.25); font-size: 2.4rem; }
.shot img { width: 100%; height: auto; filter: grayscale(1); transition: filter 0.6s var(--ease), transform 0.8s var(--ease); }
.shot:hover img, .shot:focus-visible img { filter: grayscale(0); transform: scale(1.03); }
.shot figcaption { display: flex; justify-content: space-between; gap: 10px; padding: 14px 16px; font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.shot figcaption small { color: var(--muted); font-size: 0.68rem; letter-spacing: 0.2em; }
.lightbox { position: fixed; inset: 0; z-index: var(--z-modal); background: rgba(5, 5, 5, 0.95); backdrop-filter: var(--blur); display: none; place-items: center; padding: 24px; }
.lightbox.is-open { display: grid; }
.lightbox img { max-height: 82vh; width: auto; border-radius: var(--r); }
.lightbox p { text-align: center; margin-top: 16px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-2); }
.lightbox .close { position: absolute; top: 18px; right: 18px; }

/* ---------------- İletişim ---------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-card { padding: 32px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); display: grid; gap: 12px; align-content: start; }
.contact-card > i { font-size: 1.6rem; }
.contact-card h3 { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.2em; }
.contact-card .big { font-size: clamp(3rem, 7vw, 5.5rem); font-weight: 900; line-height: 0.9; letter-spacing: -0.05em; }
.contact-card--emergency { border-color: rgba(248, 113, 113, 0.35); background: linear-gradient(140deg, rgba(220, 38, 38, 0.14), var(--surface) 60%); }
.contact-card--emergency > i, .contact-card--emergency .big { color: #fca5a5; }
.contact-card--wide { grid-column: span 2; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
@media (max-width: 720px) { .contact-grid { grid-template-columns: 1fr; } .contact-card--wide { grid-column: span 1; } }

/* ---------------- Personel girişi ---------------- */
.login { min-height: calc(100dvh - var(--nav-h)); display: grid; grid-template-columns: 1fr 1fr; }
.login-visual { position: relative; overflow: hidden; padding: clamp(32px, 5vw, 64px); display: flex; flex-direction: column; justify-content: flex-end; gap: 16px; background: linear-gradient(180deg, rgba(5, 5, 5, 0.2), rgba(5, 5, 5, 0.95)), var(--img, none) center / cover no-repeat, var(--career-bg); border-right: 1px solid var(--line); }
.login-visual::before { content: ""; position: absolute; left: 30%; top: 30%; width: 70%; aspect-ratio: 1; border-radius: 50%; background: var(--glow); opacity: 0.35; filter: blur(100px); }
.login-visual > * { position: relative; }
.login-visual h2 { font-size: clamp(2.6rem, 6vw, 5rem); }
.login-visual img.logo-lg { width: 120px; height: 120px; margin-bottom: 8px; border-radius: 50%; }
.login-panel { display: grid; place-items: center; padding: clamp(32px, 5vw, 64px) var(--gutter); }
.login-box { width: 100%; max-width: 420px; display: grid; gap: 20px; }
.login-box h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.btn-discord { background: #5865f2; color: #fff; width: 100%; }
.btn-discord:hover { background: #4752c4; }
@media (max-width: 860px) { .login { grid-template-columns: 1fr; } .login-visual { min-height: 280px; border-right: 0; border-bottom: 1px solid var(--line); } }

/* ---------------- Dev editoryal footer ---------------- */
.footer { border-top: 1px solid var(--line); padding-top: 72px; overflow: hidden; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 56px; }
.footer-brand { display: grid; gap: 16px; align-content: start; }
.footer-brand p { color: var(--muted); font-size: 0.95rem; font-weight: 300; max-width: 38ch; }
.footer-motto { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--link); }
.socials { display: flex; gap: 8px; }
.socials a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-strong); transition: background 0.2s, color 0.2s; }
.socials a:hover { background: #fff; color: #111; }
.footer h4, .footer .footer-h { font-family: var(--font); line-height: 1.02; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.2em; color: var(--muted); margin-bottom: 18px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer ul a { font-size: 0.95rem; transition: color 0.2s; }
.footer ul a:hover { color: var(--link); }
.footer-emergency { display: grid; gap: 10px; align-content: start; }
.footer-emergency .num { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-radius: var(--r); border: 1px solid var(--line); font-size: 0.85rem; color: var(--text-2); }
.footer-emergency .num b { font-size: 1.6rem; font-weight: 900; color: #fff; letter-spacing: -0.03em; }
.footer-emergency .num.is-911 b { color: #fca5a5; }
.footer-giant {
  font-size: clamp(6rem, 30vw, 30rem); font-weight: 900; letter-spacing: -0.06em; line-height: 0.85; padding-top: 0.05em;
  text-transform: uppercase; white-space: nowrap; text-align: center;
  background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0.08) 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  user-select: none; overflow: hidden;
}
.footer-bottom { border-top: 1px solid var(--line); padding: 22px 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 0.8rem; color: var(--muted); }
.footer-bottom a:hover { color: #fff; }
@media (max-width: 960px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }

/* ---------------- Toast ---------------- */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: var(--z-toast); transform: translate(-50%, 20px); opacity: 0; padding: 14px 20px; border-radius: 999px; background: rgba(17, 17, 17, 0.92); backdrop-filter: var(--blur); border: 1px solid var(--line-strong); font-size: 0.9rem; font-weight: 600; display: flex; gap: 10px; align-items: center; transition: opacity 0.3s, transform 0.3s var(--ease); }
.toast.is-shown { opacity: 1; transform: translate(-50%, 0); }
.toast i { color: var(--ok); }
.toast.is-error i { color: var(--alert); }

/* ---------------- Yüklenirken iskelet ---------------- */
.skeleton { background: linear-gradient(90deg, #111 0%, #1b1b1b 50%, #111 100%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: var(--r); }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------------- Dokunmatik: en az 44px hedef ---------------- */
@media (pointer: coarse) {
  .btn-sm, .chip { height: 44px; }
  .btn-icon { width: 44px; height: 44px; }
  .dropdown a { min-height: 44px; }
}

/* ---------------- Kadro sayfası: kontroller ---------------- */
.rs-controls { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.rs-tabs { display: inline-flex; padding: 4px; border: 1px solid var(--line-strong); border-radius: 999px; gap: 2px; }
.rs-tabs [role="tab"] { height: 40px; padding: 0 18px; border: 0; border-radius: 999px; background: none; cursor: pointer; color: var(--text-2); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; transition: background 0.2s, color 0.2s; }
.rs-tabs [role="tab"]:hover { color: #fff; }
.rs-tabs [role="tab"][aria-selected="true"] { background: #fff; color: #111; }
.rs-actions { display: flex; gap: 10px; align-items: center; }
.rs-view { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 999px; padding: 3px; }
.rs-view button { width: 38px; height: 34px; border: 0; border-radius: 999px; background: none; color: var(--muted); cursor: pointer; display: grid; place-items: center; font-size: 1.1rem; transition: background 0.2s, color 0.2s; }
.rs-view button[aria-pressed="true"] { background: rgba(255, 255, 255, 0.12); color: #fff; }
.hc-btn.is-on { border-color: rgba(74, 222, 128, 0.5); color: var(--ok); }
.search .search-clear { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.08); color: #fff; cursor: pointer; display: grid; place-items: center; }
.search .search-clear:hover { background: rgba(255, 255, 255, 0.16); }
.rs-note { color: var(--muted); font-size: 0.9rem; margin-bottom: 16px; }
[hidden] { display: none !important; }

/* ---------------- Kadro kartları ---------------- */
.rs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.rs-card {
  position: relative; display: flex; flex-direction: column; text-align: left; padding: 0; cursor: pointer;
  border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--surface); color: inherit;
  transition: border-color 0.25s, transform 0.25s var(--ease);
}
.rs-card:hover { border-color: rgba(255, 255, 255, 0.35); transform: translateY(-3px); }
.rs-photo { display: block; aspect-ratio: 4 / 5; width: 100%; overflow: hidden; background: linear-gradient(140deg, #0d1b3d, #050505 75%); }
.rs-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: filter 0.5s var(--ease), transform 0.6s var(--ease); }
.rs-card:hover .rs-photo img, .rs-card:focus-visible .rs-photo img { filter: grayscale(0); transform: scale(1.04); }
.rs-photo--empty { display: grid; place-items: center; font-size: 2.6rem; font-weight: 900; letter-spacing: -0.04em; color: rgba(255, 255, 255, 0.28); }
.rs-photo--sm { width: 36px; height: 36px; aspect-ratio: 1; border-radius: 50%; flex-shrink: 0; font-size: 0.78rem; }
.rs-photo--sm.rs-photo--empty { color: #fff; background: linear-gradient(140deg, #1d4ed8, #7f1d1d); }
.rs-card-body { display: grid; gap: 4px; padding: 14px 16px 16px; }
.rs-rank { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--link); }
.rs-name { font-size: 1.05rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0; word-spacing: 0.08em; line-height: 1.15; }
.rs-meta { display: flex; justify-content: space-between; align-items: center; font-size: 0.82rem; color: var(--muted); margin-top: 4px; }
.rs-unit { font-size: 0.82rem; color: var(--text-2); }
.hc-tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 999px; font-size: 0.6rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: #fff; background: var(--siren); white-space: nowrap; }
.rs-card .hc-tag { position: absolute; top: 10px; left: 10px; }
td .who .hc-tag { margin-left: 4px; }
.rs-link { background: none; border: 0; padding: 0; color: #fff; font-weight: 700; cursor: pointer; text-align: left; }
.rs-link:hover { color: var(--link); text-decoration: underline; text-underline-offset: 4px; }

/* Büro grupları */
.rs-group + .rs-group { margin-top: 48px; }
.rs-group-head { display: flex; align-items: center; gap: 16px; padding-bottom: 16px; margin-bottom: 18px; border-bottom: 2px solid #fff; }
.rs-group-head h2 { font-size: clamp(1.4rem, 2.6vw, 2.1rem); line-height: 1.05; }
.rs-group-ico { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; font-size: 1.3rem; flex-shrink: 0; }
.rs-group-count { margin-left: auto; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }

/* ---------------- Personel dosyası (dialog) ---------------- */
.dossier {
  width: min(980px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); padding: 0; overflow: auto;
  border: 1px solid var(--line-strong); border-radius: var(--r-xl); background: #0b0b0b; color: var(--text);
}
.dossier--sm { width: min(480px, calc(100vw - 32px)); }
.dossier::backdrop { background: rgba(0, 0, 0, 0.72); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); }
.dossier-inner { display: grid; }
.dossier-head { display: flex; align-items: center; gap: 16px; padding: 22px 26px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: rgba(11, 11, 11, 0.94); backdrop-filter: var(--blur); z-index: 1; }
.dossier-head img { flex-shrink: 0; }
.dossier-head h2 { font-size: clamp(1.4rem, 3vw, 2.2rem); line-height: 1.05; letter-spacing: -0.01em; word-spacing: 0.12em; }
.dossier-head .status { margin-left: auto; }
.dossier-close { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); background: none; color: #fff; cursor: pointer; display: grid; place-items: center; font-size: 1.1rem; flex-shrink: 0; }
.dossier-close:hover { background: #fff; color: #111; }
.dossier-head .status + .dossier-close { margin-left: 8px; }
.dossier-head > div + .dossier-close { margin-left: auto; }
.dossier-body { display: grid; grid-template-columns: 280px 1fr; gap: 28px; padding: 26px; }
.dossier-profile { display: grid; gap: 14px; align-content: start; }
.dossier-photo { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: linear-gradient(140deg, #0d1b3d, #050505 75%); }
.dossier-photo img { width: 100%; height: 100%; object-fit: cover; }
.dossier-photo-empty { position: absolute; inset: 0; display: grid; place-items: center; font-size: 4rem; font-weight: 900; color: rgba(255, 255, 255, 0.25); }
.dossier-badge { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 14px; background: linear-gradient(90deg, rgba(29, 78, 216, 0.92), rgba(220, 38, 38, 0.92)); font-family: var(--font-mono); font-weight: 600; font-size: 0.9rem; letter-spacing: 0.08em; text-align: center; }
.dossier-upload { display: grid; gap: 8px; }
.dossier-upload .btn { width: 100%; cursor: pointer; }
.dossier-upload label.btn:focus-within { outline: 3px solid #fbbf24; outline-offset: 3px; }
.dossier-profile .help { font-size: 0.8rem; color: var(--muted); }
.dossier-main { display: grid; gap: 26px; align-content: start; min-width: 0; }
.dossier-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin: 0; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.dossier-facts div { background: #0b0b0b; padding: 14px 16px; }
.dossier-facts dt { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.dossier-facts dd { margin: 0; font-weight: 700; }
.dossier-sec h3 { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.2em; color: var(--muted); margin-bottom: 12px; }
.dossier-empty { color: var(--muted); font-size: 0.9rem; padding: 14px 16px; border: 1px dashed var(--line-strong); border-radius: var(--r-sm); }
.ribbons { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ribbons li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); background: color-mix(in srgb, var(--c) 12%, transparent); font-size: 0.85rem; font-weight: 600; }
.ribbons li i { color: var(--c); font-size: 1.05rem; }
.timeline-list { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line-strong); }
.timeline-list li { position: relative; display: grid; grid-template-columns: 110px 1fr auto; gap: 14px; align-items: baseline; padding: 10px 0 10px 18px; }
.timeline-list li::before { content: ""; position: absolute; left: -6px; top: 17px; width: 10px; height: 10px; border-radius: 50%; background: #fff; }
.timeline-list time { font-size: 0.8rem; color: var(--muted); }
.timeline-list span { font-size: 0.85rem; color: var(--text-2); }
.psb-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.psb-list li { display: grid; grid-template-columns: 110px 1fr auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
.psb-list time { font-size: 0.8rem; color: var(--muted); }
.psb-list li.has-btn { grid-template-columns: 110px 1fr auto auto; }
.psb-list li.is-past { opacity: 0.6; }
.p-results summary { cursor: pointer; }
.p-results[open] summary { margin-bottom: 12px; }
.hc-body { display: grid; gap: 18px; padding: 24px 26px 28px; }
.hc-body .btn { width: 100%; }
@media (max-width: 760px) {
  .dossier-body { grid-template-columns: 1fr; padding: 18px; }
  .dossier-profile { grid-template-columns: 140px 1fr; align-items: start; }
  .dossier-head { padding: 16px 18px; }
  .dossier-head img { display: none; }
  .timeline-list li, .psb-list li, .psb-list li.has-btn { grid-template-columns: 1fr; gap: 2px; }
  .rs-controls { flex-direction: column; align-items: stretch; }
  .rs-tabs { display: flex; }
  .rs-tabs [role="tab"] { flex: 1; padding: 0 8px; letter-spacing: 0.08em; }
  .rs-actions { justify-content: space-between; }
  .rs-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}
:root:not(.reduce-motion) .dossier[open] { animation: dossier-in 0.35s var(--ease); }
@keyframes dossier-in { from { opacity: 0; transform: translateY(16px) scale(0.98); } to { opacity: 1; transform: none; } }

/* ---------------- Giriş sayfası (Discord) ---------------- */
.login-points { list-style: none; margin: 4px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.login-points li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; font-size: 0.9rem; color: var(--text-2); }
.login-points i { color: var(--link); font-size: 1.15rem; margin-top: 2px; }
.notice--error { background: rgba(220, 38, 38, 0.12); border-color: rgba(248, 113, 113, 0.35); }
.notice--error i { color: var(--alert); }
.notice--warn { background: rgba(245, 158, 11, 0.1); border-color: rgba(245, 158, 11, 0.35); }
.notice--warn i { color: #fbbf24; }
.btn[aria-busy="true"] { opacity: 0.8; pointer-events: none; }

/* ---------------- Portal yerleşimi ---------------- */
.portal { padding: clamp(32px, 5vw, 56px) 0 clamp(64px, 8vw, 96px); }
.portal-wrap { display: grid; grid-template-columns: 280px 1fr; gap: 32px; align-items: start; }
.portal-side { position: sticky; top: calc(var(--nav-h) + 16px); display: grid; gap: 18px; padding: 20px; border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--surface); }
.portal-main { min-width: 0; display: grid; gap: 22px; align-content: start; }
.portal-main:focus { outline: none; }
.demo-flag { display: inline-flex; align-items: center; gap: 8px; justify-self: start; padding: 6px 12px; border-radius: 999px; background: rgba(245, 158, 11, 0.14); color: #fbbf24; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; }
.p-usercard { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.p-usercard strong { display: block; font-weight: 900; text-transform: uppercase; line-height: 1.15; word-spacing: 0.08em; }
.p-usercard .rs-rank, .p-usercard .mono { display: block; margin-top: 2px; font-size: 0.72rem; }
.p-usercard .hc-tag { grid-column: 1 / -1; justify-self: start; }
.p-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; display: grid; place-items: center; flex-shrink: 0; background: linear-gradient(140deg, #1d4ed8, #7f1d1d); color: #fff; font-weight: 900; font-size: 0.9rem; }
.p-avatar--lg { width: 56px; height: 56px; font-size: 1.05rem; }
.p-avatar--sm { width: 36px; height: 36px; font-size: 0.75rem; }
.p-nav { display: grid; gap: 4px; }
.p-nav [data-tab], .p-nav-link { display: flex; align-items: center; gap: 12px; height: 46px; padding: 0 14px; border: 0; border-radius: 999px; background: none; color: var(--text-2); cursor: pointer; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; text-align: left; transition: background 0.2s, color 0.2s; }
.p-nav [data-tab] i, .p-nav-link i { font-size: 1.2rem; }
.p-nav [data-tab]:hover, .p-nav-link:hover { color: #fff; background: rgba(255, 255, 255, 0.05); }
.p-nav [aria-current="page"] { background: #fff; color: #111; }
.p-side-foot { display: grid; gap: 8px; padding-top: 18px; border-top: 1px solid var(--line); }
.p-side-foot .btn { justify-content: flex-start; }

.p-head { display: grid; gap: 10px; }
.p-head h1 { font-size: clamp(2.2rem, 5vw, 4rem); letter-spacing: -0.03em; word-spacing: 0.06em; }

.live-shift { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-radius: var(--r); border: 1px solid rgba(74, 222, 128, 0.35); background: rgba(74, 222, 128, 0.07); font-weight: 600; }
.live-shift strong { margin-left: auto; font-family: var(--font-mono); font-size: 1.05rem; }
.live-shift.is-off { border-color: var(--line); background: var(--surface); color: var(--text-2); font-weight: 400; }
.live-shift.is-off i { color: var(--muted); font-size: 1.2rem; }
.live-shift { flex-wrap: wrap; }
.live-shift.is-off .btn { margin-left: auto; }
.live-shift + .notice { margin-top: 10px; }
.live-shift .live-dot, .board .live-dot, td .live-dot { background: var(--ok); display: inline-block; vertical-align: middle; }
.live-shift .live-dot::after, .board .live-dot::after, td .live-dot::after { background: var(--ok); }

.p-stats { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 14px; }
.p-stat { padding: 20px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); display: grid; gap: 8px; align-content: start; }
.p-stat strong { font-size: clamp(1.35rem, 2.2vw, 2rem); font-weight: 900; letter-spacing: -0.03em; line-height: 1.05; white-space: nowrap; }
.p-stat--alert { border-color: rgba(245, 158, 11, 0.4); }
.p-stat--alert strong { color: #fbbf24; }
.quota { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); overflow: hidden; margin-top: 6px; }
.quota-fill { height: 100%; border-radius: inherit; background: var(--siren); transition: width 0.6s var(--ease); }
.quota-fill.is-done { background: var(--ok); }
.quota-text { font-size: 0.85rem; color: var(--text-2); }
.quota-text i { color: var(--ok); vertical-align: middle; }

.p-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.p-card { padding: 22px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); display: grid; gap: 14px; align-content: start; min-width: 0; }
.p-card--full { grid-column: 1 / -1; }
.p-card-title { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.2em; color: var(--muted); line-height: 1.4; }
.p-report-cta { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.p-report-cta p { margin: 6px 0 0; }
.p-card .dossier-facts { grid-template-columns: repeat(2, 1fr); }
.p-card .dossier-facts div { background: var(--surface); }
.p-sub { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.2em; color: var(--muted); margin-top: 8px; }
.p-table { min-width: 560px; }
.p-table td small { display: block; font-size: 0.78rem; white-space: nowrap; }
.p-table td.mono, .p-table th { white-space: nowrap; }
.p-table td .who strong { white-space: nowrap; }
.p-table tr.is-pending { background: rgba(245, 158, 11, 0.05); }
.p-table td.is-low { color: #fbbf24; }
.row-actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: nowrap; }

.board { list-style: none; margin: 0; padding: 0; display: grid; }
.board li { display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.board li:first-child .board-n { background: var(--siren); color: #fff; border-color: transparent; }
.board-n { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; font-weight: 800; font-size: 0.82rem; }
.board-who strong { display: block; font-weight: 800; text-transform: uppercase; font-size: 0.92rem; word-spacing: 0.06em; }
.board-who small { color: var(--muted); font-size: 0.78rem; }
.board-ms { font-size: 0.9rem; white-space: nowrap; }

.portal-blocked { display: grid; gap: 18px; justify-items: start; padding: clamp(32px, 6vw, 72px) 0; max-width: 640px; }
.portal-blocked > i { font-size: 3rem; color: var(--link); }
.portal-blocked h1 { font-size: clamp(2rem, 5vw, 3.6rem); }
.portal-side[hidden] + .portal-main { grid-column: 1 / -1; }

/* Komuta diyalogları */
.dossier--md { width: min(640px, calc(100vw - 32px)); }
.dialog-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; padding-top: 8px; }
.dialog-actions [data-del] { margin-right: auto; color: var(--alert); border-color: rgba(248, 113, 113, 0.4); }
.form-err:empty { display: none; }
.form-err .notice { margin: 0; }
.medal-picker { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.medal-opt { display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: center; padding: 14px; border-radius: var(--r-sm); border: 1px solid var(--line-strong); background: none; color: var(--text); cursor: pointer; text-align: left; font-weight: 600; transition: border-color 0.2s, background 0.2s; }
.medal-opt > i:first-child { color: var(--c); font-size: 1.3rem; }
.medal-opt .medal-check { color: var(--ok); opacity: 0; transition: opacity 0.2s; }
.medal-opt[aria-pressed="true"] { border-color: color-mix(in srgb, var(--c) 60%, transparent); background: color-mix(in srgb, var(--c) 12%, transparent); }
.medal-opt[aria-pressed="true"] .medal-check { opacity: 1; }
.medal-opt:disabled { opacity: 0.6; }
.hc-body .timeline-list li { grid-template-columns: 110px 1fr auto; }

@media (max-width: 980px) {
  .portal-wrap { grid-template-columns: minmax(0, 1fr); }
  .portal-side { position: static; min-width: 0; }
  /* Sekmeler sığmazsa şerit kendi içinde kayar, sayfayı genişletmez */
  .p-nav { grid-auto-flow: column; grid-auto-columns: minmax(max-content, 1fr); overflow-x: auto; scrollbar-width: none; }
  .p-nav::-webkit-scrollbar { display: none; }
  .p-nav [data-tab], .p-nav-link { justify-content: center; letter-spacing: 0.08em; padding: 0 8px; }
  .p-stats { grid-template-columns: 1fr 1fr; }
  .p-stat--wide { grid-column: 1 / -1; }
  .p-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .medal-picker { grid-template-columns: 1fr; }
  .p-side-foot { grid-template-columns: 1fr 1fr; }
}

/* ---------------- Hareket ----------------
   Animasyonlar varsayılan olarak açıktır. Ziyaretçi footer'daki
   "Animasyonlar" düğmesiyle kapatabilir; o zaman <html> etiketine
   .reduce-motion sınıfı eklenir ve tüm hareket durur. */
@keyframes rise { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
@keyframes word-up { from { transform: translateY(135%); } to { transform: none; } }
@keyframes cube-in { from { opacity: 0; transform: translateY(40px) scale(0.85); } to { opacity: 1; transform: none; } }
@keyframes bg-in { from { opacity: 0; letter-spacing: 0.1em; } to { opacity: 0.12; letter-spacing: -0.06em; } }

:root:not(.reduce-motion) .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
:root:not(.reduce-motion) .reveal.is-in { opacity: 1; transform: none; }

/* Hero girişi: küp büyüyerek gelir, arka yazı açılır, başlık kelime kelime yükselir */
:root:not(.reduce-motion) .cube-scene { animation: cube-in 1.4s var(--ease) both; }
:root:not(.reduce-motion) .hero-bgtext { animation: bg-in 1.6s var(--ease) both; }
:root:not(.reduce-motion) .hero-bottom .kicker,
:root:not(.reduce-motion) .hero-bottom .lead,
:root:not(.reduce-motion) .hero-ctas { animation: rise 1s var(--ease) both; }
:root:not(.reduce-motion) .hero-bottom .kicker { animation-delay: 0.3s; }
:root:not(.reduce-motion) .hero-bottom .lead { animation-delay: 0.75s; }
:root:not(.reduce-motion) .hero-ctas { animation-delay: 0.9s; }

/* Kelime kelime açılan başlıklar (JS kelimeleri .w > span içine sarar) */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-top: 0.14em; margin-top: -0.14em; padding-bottom: 0.06em; }
.split .w > span { display: inline-block; }
:root:not(.reduce-motion) .split .w > span { transform: translateY(135%); }
:root:not(.reduce-motion) .split.is-in .w > span { animation: word-up 0.9s var(--ease) both; animation-delay: calc(var(--w, 0) * 70ms + var(--d, 0ms)); }
:root:not(.reduce-motion) .hero-bottom h1.split .w > span { animation: word-up 0.9s var(--ease) both; animation-delay: calc(var(--w, 0) * 80ms + 450ms); }

/* Kaydırmaya bağlı efektler (destekleyen tarayıcılarda) */
@supports (animation-timeline: view()) {
  @keyframes drift { from { transform: scale(1.12) translateY(-4%); } to { transform: scale(1.12) translateY(4%); } }
  @keyframes giant-up { from { transform: translateY(40%); opacity: 0; } to { transform: none; opacity: 1; } }
  @keyframes glow-pulse { from { opacity: 0.12; transform: translate(-50%, -50%) scale(0.8); } to { opacity: 0.38; transform: translate(-50%, -50%) scale(1); } }
  :root:not(.reduce-motion) .ops-featured .media > img,
  :root:not(.reduce-motion) .ops-item .media > img { animation: drift linear both; animation-timeline: view(); }
  :root:not(.reduce-motion) a:hover .media > img { animation-play-state: paused; }
  :root:not(.reduce-motion) .footer-giant { animation: giant-up linear both; animation-timeline: view(); animation-range: entry 0% cover 40%; }
  :root:not(.reduce-motion) .hero-bgtext { animation: bg-in 1.6s var(--ease) both, bgtext linear both; animation-timeline: auto, scroll(root); animation-range: normal, 0 60vh; }
  :root:not(.reduce-motion) .career::before { animation: glow-pulse linear both; animation-timeline: view(); animation-range: entry 0% cover 50%; }
}

/* Animasyonlar kapalıyken */
.reduce-motion *, .reduce-motion *::before, .reduce-motion *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
.reduce-motion .cube { transform: rotateX(-12deg); }
.reduce-motion .split .w > span { transform: none !important; }

.motion-toggle { display: inline-flex; align-items: center; gap: 8px; background: none; border: 1px solid var(--line-strong); border-radius: 999px; height: 36px; padding: 0 14px; color: var(--text-2); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; cursor: pointer; transition: border-color 0.2s, color 0.2s; }
.motion-toggle:hover { border-color: rgba(255, 255, 255, 0.5); color: #fff; }
@media (pointer: coarse) { .motion-toggle { height: 44px; } }

/* ---------------- Mesai istatistikleri (grafikler) ----------------
   Tek seri: #3987e5 (koyu yüzeyde doğrulandı, 3:1 üstü). Yoğunluk: tek tonlu 5 adım mavi. */
.viz { --viz-1: #3987e5; --plot-h: 180px; --axis-h: 22px; margin-top: 28px; }
.viz-h { font-size: 1.1rem; margin: 0 0 12px; }
.viz-bars { position: relative; display: flex; gap: 2px; padding-top: 20px; margin-top: 8px; }
.viz-col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; cursor: default; }
.viz-area { position: relative; width: 100%; height: var(--plot-h); display: flex; align-items: flex-end; justify-content: center; border-bottom: 1px solid var(--line); }
.viz-bar { display: block; width: 100%; max-width: 44px; min-height: 2px; background: var(--viz-1); border-radius: 4px 4px 0 0; transition: opacity .15s; }
.viz-bar.is-zero { background: var(--line-strong); }
.viz-col:hover .viz-bar { opacity: .8; }
.viz-x { height: var(--axis-h); line-height: var(--axis-h); font-size: .68rem; color: var(--muted); white-space: nowrap; }
.viz-val { position: absolute; left: 50%; transform: translateX(-50%); font-size: .72rem; color: var(--text); font-weight: 700; white-space: nowrap; }
.viz-reflayer { position: absolute; left: 0; right: 0; top: 20px; height: var(--plot-h); pointer-events: none; z-index: 1; }
.viz-ref { position: absolute; left: 0; right: 0; border-top: 1.5px dashed var(--muted); }
.viz-ref span { position: absolute; left: 0; top: -18px; font-size: .68rem; color: var(--text-2); background: var(--surface); padding: 0 4px; }
.viz-hbars { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.viz-hbars li { display: grid; grid-template-columns: minmax(0, 1.2fr) 2fr auto; gap: 10px; align-items: center; font-size: .86rem; }
.viz-hbars li.is-me .viz-hname { font-weight: 700; color: var(--text); }
.viz-hname { color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.viz-htrack { height: 12px; }
.viz-hbar { display: block; height: 100%; min-width: 2px; background: var(--viz-1); border-radius: 0 4px 4px 0; }
.viz-hval { color: var(--text-2); font-size: .8rem; }
.viz-heat { display: grid; grid-template-columns: 34px repeat(24, minmax(0, 1fr)); gap: 2px; margin-top: 10px; }
.viz-hh { font-size: .64rem; color: var(--muted); text-align: left; }
.viz-hd { font-size: .72rem; color: var(--text-2); align-self: center; }
.viz-cell { aspect-ratio: 1.6; min-height: 12px; border-radius: 3px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.viz-cell:hover { outline: 2px solid var(--text); outline-offset: 0; }
.viz-legend { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; margin-top: 10px; font-size: .74rem; color: var(--text-2); }
.viz-legend i { width: 18px; height: 10px; border-radius: 2px; display: inline-block; }
.viz-table { margin-top: 12px; font-size: .8rem; }
.viz-table summary { cursor: pointer; color: var(--muted); }
.viz-table .p-table { font-size: .78rem; }
.viz-tip { position: fixed; left: 0; top: 0; z-index: 100; pointer-events: none; background: #f5f5f5; color: #0b0b0b; font-size: .78rem; font-weight: 600; padding: 6px 9px; border-radius: 6px; box-shadow: 0 6px 20px rgba(0,0,0,.45); max-width: 260px; }
@media (max-width: 640px) {
  .viz { --plot-h: 140px; }
  .viz-heat { grid-template-columns: 28px repeat(24, minmax(0, 1fr)); gap: 1px; }
  .viz-hh { font-size: .56rem; }
  .viz-cell { aspect-ratio: 1; min-height: 8px; border-radius: 2px; }
}

/* ---------- Portal: duyurular, birimler, sınavlar, kota ---------- */
.nav-count { margin-left: auto; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--red); color: #fff; font-size: 0.72rem; letter-spacing: 0; display: grid; place-items: center; }
.ann-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ann { padding: 14px 16px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--bg-2); display: grid; gap: 8px; }
.ann.is-unread { border-color: rgba(147, 197, 253, 0.45); background: rgba(29, 78, 216, 0.08); }
.ann.is-important { border-left: 3px solid #fbbf24; }
.ann-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ann-head strong { font-weight: 800; }
.ann-head strong i { color: #fbbf24; vertical-align: -2px; }
.ann-head .row-actions { margin-left: auto; }
.ann p { margin: 0; color: var(--text-2); line-height: 1.6; overflow-wrap: anywhere; }
.unit-title { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.02em; }
.unit-title i { font-size: 1.3rem; color: var(--link); }
.seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 999px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: none; color: var(--text-2); padding: 7px 14px; border-radius: 999px; font: inherit; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; }
.seg button[aria-pressed="true"] { background: #fff; color: #111; }
.psb-list .is-low { color: #fbbf24; }
.exam-bar { position: sticky; top: calc(var(--nav-h) + 8px); z-index: 5; display: flex; justify-content: space-between; gap: 12px; padding: 12px 18px; border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(10, 10, 10, 0.92); backdrop-filter: blur(8px); font-weight: 600; margin: 8px 0 16px; }
.exam-bar .is-low { color: var(--alert); }
.exam-form { display: grid; gap: 14px; }
.exam-q { border: 1px solid var(--line); margin: 0; }
.exam-q legend { float: left; width: 100%; font-weight: 700; line-height: 1.5; margin-bottom: 6px; }
.exam-opt { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-sm); border: 1px solid var(--line); cursor: pointer; transition: border-color 0.2s, background 0.2s; }
.exam-opt:hover { border-color: var(--line-strong); }
.exam-opt:has(input:checked) { border-color: rgba(147, 197, 253, 0.6); background: rgba(29, 78, 216, 0.12); }
.exam-opt input { width: 18px; height: 18px; margin-top: 2px; accent-color: #3b82f6; flex-shrink: 0; }
.exam-result { justify-items: center; text-align: center; padding: 40px 22px; }
.exam-result > i { font-size: 3.5rem; }
.exam-result strong { font-size: 2rem; font-weight: 900; text-transform: uppercase; }
.exam-result.is-pass > i, .exam-result.is-pass strong { color: var(--ok); }
.exam-result.is-fail > i, .exam-result.is-fail strong { color: var(--alert); }
.exam-result .row-actions { justify-content: center; }
@media (max-width: 640px) {
  .ann-head .row-actions { margin-left: 0; }
  .row-actions { flex-wrap: wrap; justify-content: flex-start; }
}

/* ---------- Kadro: mesaide göstergesi ---------- */
.on-duty { display: inline-flex; align-items: center; gap: 6px; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--ok); }
.on-duty .live-dot, .on-duty .live-dot::after { background: var(--ok); }

/* ---------- Ana sayfa: canlı durum şeridi ---------- */
.live-stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.live-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.ls-item { padding: 26px 24px; display: grid; gap: 8px; border-left: 1px solid var(--line); }
.ls-item:first-child { border-left: 0; padding-left: 0; }
.ls-label { display: inline-flex; align-items: center; gap: 10px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.ls-item strong { font-size: clamp(1.8rem, 3.4vw, 2.8rem); font-weight: 900; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.ls-item--live .live-dot, .ls-item--live .live-dot::after { background: var(--ok); }
.ls-item--live strong { color: var(--ok); }
@media (max-width: 760px) {
  .live-stats-grid { grid-template-columns: 1fr 1fr; }
  .ls-item { padding: 20px 16px; }
  .ls-item:nth-child(odd) { border-left: 0; padding-left: 0; }
  .ls-item:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

/* ---------- Portal: bildirim zili, zaman çizelgesi, içerik düzenleyici ---------- */
.p-usercard { position: relative; }
.bell { position: absolute; top: 0; right: 0; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, 0.04); color: #fff; display: grid; place-items: center; cursor: pointer; font-size: 1.15rem; }
.bell:hover { background: rgba(255, 255, 255, 0.1); }
.bell-count { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--red); color: #fff; font-size: 0.68rem; font-weight: 800; display: grid; place-items: center; }
.notif-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.notif-list button { width: 100%; display: flex; gap: 12px; align-items: flex-start; text-align: left; padding: 12px 14px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--bg-2); color: var(--text); font: inherit; cursor: pointer; }
.notif-list button:hover { border-color: var(--line-strong); }
.notif-list li.is-unread button { border-color: rgba(147, 197, 253, 0.45); background: rgba(29, 78, 216, 0.1); }
.notif-list i { font-size: 1.25rem; color: var(--link); margin-top: 1px; flex-shrink: 0; }
.notif-list span { display: grid; gap: 3px; }
.notif-text { line-height: 1.45; overflow-wrap: anywhere; }
.tl { list-style: none; margin: 0; padding: 0; display: grid; }
.tl-item { display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 10px 0; position: relative; }
.tl-item:not(:last-child)::before { content: ""; position: absolute; left: 16px; top: 42px; bottom: -6px; width: 1px; background: var(--line); }
.tl-ico { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; color: var(--text-2); background: var(--bg-2); }
.tl-item.is-ok .tl-ico { color: var(--ok); border-color: rgba(74, 222, 128, 0.4); }
.tl-item.is-bad .tl-ico { color: var(--alert); border-color: rgba(248, 113, 113, 0.4); }
.tl-item strong { font-weight: 700; line-height: 1.4; }
.tl-item p { margin: 2px 0; font-size: 0.88rem; overflow-wrap: anywhere; }
.mini-weeks { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; height: 64px; align-items: end; }
.mini-weeks span { height: 100%; display: flex; align-items: flex-end; background: rgba(255, 255, 255, 0.04); border-radius: 4px; }
.mini-weeks i { display: block; width: 100%; border-radius: 4px; background: #3987e5; }
.mini-weeks i.is-done { background: var(--ok); }
.content-units input[type="text"] { width: 100%; min-width: 140px; padding: 8px 10px; border-radius: var(--r-sm); border: 1px solid var(--line-strong); background: var(--bg); color: var(--text); font: inherit; font-size: 0.88rem; }
.content-units input[type="checkbox"] { width: 18px; height: 18px; accent-color: #3b82f6; }
.p-usercard > div { padding-right: 44px; min-width: 0; }
/* Kadro: portalda kazanılan öne çıkan rozetler */
.rs-top { display: inline-flex; gap: .3rem; margin-top: .35rem; color: var(--heading); font-size: 1rem; vertical-align: middle; }
.who .rs-top { margin: 0 0 0 .4rem; }
.rs-top-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.rs-top-list li { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .6rem; border: 1px solid var(--line); border-radius: var(--r-sm); font-size: .85rem; }
.rs-top-list i { color: var(--heading); font-size: 1.05rem; }
