:root {
  --ink-950:     #050507;
  --ink-900:     #0b0b0f;
  --ink-800:     #111116;
  --ink-700:     #181820;
  --ferrari:     #D6001C;
  --ferrari-dim: rgba(214,0,28,0.12);
  --ferrari-glow:rgba(214,0,28,0.28);
  --ok:          #4ade80;
  --warn:        #fbbf24;
  --err:         #ef4444;
  --line:        rgba(255,255,255,0.05);
  --line-strong: rgba(255,255,255,0.10);
  --text-hi:     #f8fafc;
  --text-mid:    #94a3b8;
  --text-low:    #64748b;
}

html { scroll-behavior: smooth; background: #050507 !important; }
body {
  overflow-x: hidden;
  background: #050507 !important;
  color: #f8fafc !important;
}

/* Yuksek kontrast cipari — soluk slate tonlarini ezer */
.text-slate-50,
.text-slate-100,
.text-slate-200  { color: #f8fafc !important; }
.text-slate-300,
.text-slate-400  { color: #cbd5e1 !important; }
.text-slate-500  { color: #94a3b8 !important; }
.text-slate-600,
.text-slate-700  { color: #64748b !important; }

/* Ferrari accent — her zaman keskin parlasin */
.text-aurora-cyan,
.text-ferrari    { color: #D6001C !important; }
.bg-aurora-cyan  { background-color: #D6001C !important; }

/* Ana icerigin preloader yokken gorunmesini garantile */
header, section, footer { position: relative; z-index: 1; }
.aurora-bg { z-index: -1 !important; }

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--ink-950); }
::-webkit-scrollbar-thumb { background: var(--ferrari); border-radius: 3px; }

#preloader {
  position: fixed !important;
  inset: 0 !important;
  z-index: 99999 !important;
  background: #050507 !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.85s cubic-bezier(.4,0,.2,1), visibility 0.85s linear;
}
#preloader.fade-out {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.preloader__inner {
  width: min(500px, 88vw);
}

.preloader__brand {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 2.75rem;
}
.preloader__brand-prefix { color: var(--ferrari); }
.preloader__brand-name   { color: #f5f5f5; }

.preloader__terminal {
  min-height: 190px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  line-height: 2;
  border-left: 1px solid rgba(214,0,28,0.35);
  padding-left: 1.25rem;
  margin-bottom: 2rem;
  position: relative;
}

.preloader__line {
  display: block;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.28s ease, transform 0.28s ease;
  color: #3f3f46;
  white-space: pre;
}
.preloader__line.visible {
  opacity: 1;
  transform: none;
}
.preloader__line--cmd  { color: #52525b; }
.preloader__line--ok   { color: #71717a; }
.preloader__line--done { color: #a1a1aa; font-weight: 500; }
.preloader__line--ready {
  color: #f5f5f5;
  font-weight: 600;
  letter-spacing: 0.05em;
}
.preloader__line strong { color: var(--ferrari); }

.preloader__cursor {
  display: inline-block;
  width: 7px; height: 13px;
  background: var(--ferrari);
  vertical-align: middle;
  margin-left: 3px;
  animation: blink 0.85s step-start infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.preloader__bar-track {
  height: 1px;
  background: rgba(255,255,255,0.06);
  border-radius: 1px;
  overflow: hidden;
}
.preloader__bar-fill {
  height: 100%;
  width: 0%;
  background: var(--ferrari);
  border-radius: 1px;
  transition: width 0.15s linear;
  box-shadow: 0 0 10px var(--ferrari-glow);
}
.preloader__meta {
  display: flex;
  justify-content: space-between;
  margin-top: 0.6rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  color: #3f3f46;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ─── Preloader: real-functional row (text + live status badge) ─── */
.preloader__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.32s cubic-bezier(.4,0,.2,1), transform 0.32s cubic-bezier(.4,0,.2,1);
  padding: 1px 0;
}
.preloader__row.visible {
  opacity: 1;
  transform: none;
}
.preloader__row-text {
  color: #71717a;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  line-height: 1.7;
  flex: 1;
  min-width: 0;
}
.preloader__row-text .tag-cmd {
  color: var(--ferrari);
  margin-right: 0.45rem;
  font-weight: 600;
}
.preloader__status-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.18em;
  padding: 2px 7px;
  border-radius: 2px;
  text-transform: uppercase;
  font-weight: 700;
  border: 1px solid;
  flex-shrink: 0;
  transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}
.status-pending {
  color: #52525b;
  border-color: rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.02);
  animation: pendingPulse 1.4s ease-in-out infinite;
}
.status-ok {
  color: var(--ok);
  border-color: rgba(74,222,128,0.4);
  background: rgba(74,222,128,0.08);
  box-shadow: 0 0 12px rgba(74,222,128,0.22);
}
.status-warn {
  color: var(--warn);
  border-color: rgba(251,191,36,0.4);
  background: rgba(251,191,36,0.08);
}
.status-err {
  color: var(--err);
  border-color: rgba(239,68,68,0.45);
  background: rgba(239,68,68,0.1);
  box-shadow: 0 0 14px rgba(239,68,68,0.3);
}
.status-success {
  color: var(--ferrari);
  border-color: rgba(214,0,28,0.5);
  background: rgba(214,0,28,0.12);
  box-shadow: 0 0 16px var(--ferrari-glow);
}
@keyframes pendingPulse {
  0%, 100% { opacity: 0.55; }
  50%      { opacity: 1; }
}

#preloader.error .preloader__bar-fill {
  background: var(--err);
  box-shadow: 0 0 14px rgba(239,68,68,0.45);
}
#preloader.error .preloader__brand-prefix { color: var(--err); }

.aurora-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.aurora-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse at 50% 0%, black 15%, transparent 65%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, black 15%, transparent 65%);
}

.aurora-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 35% at 50% -5%, rgba(214,0,28,0.05) 0%, transparent 100%);
  pointer-events: none;
}

.text-gradient {
  background: linear-gradient(130deg, #ffffff 0%, #a1a1aa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.text-gradient-soft {
  background: linear-gradient(120deg, #d4d4d4 0%, #71717a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.text-ferrari { color: var(--ferrari); }

.section-label {
  display: inline-flex;
  align-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ferrari);
  margin-bottom: 12px;
  opacity: 0.85;
}

.nav-link {
  position: relative;
  transition: color 0.35s ease;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 1px;
  background: var(--ferrari);
  transition: width 0.4s cubic-bezier(.4,0,.2,1);
}
.nav-link:hover,
.nav-link.active { color: #f1f5f9; }
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 3px;
  font-weight: 600; font-size: 0.875rem;
  letter-spacing: 0.02em;
  color: #ffffff;
  background: var(--ferrari);
  border: 1px solid transparent;
  position: relative; overflow: hidden;
  transition:
    transform 0.45s cubic-bezier(.2,.8,.2,1),
    box-shadow 0.45s ease,
    background 0.3s ease;
}
.btn-primary::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.16) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.65s ease;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--ferrari-glow), 0 0 0 1px rgba(214,0,28,0.5);
  background: #e8001f;
}
.btn-primary:hover::before { transform: translateX(100%); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 3px;
  font-weight: 500; font-size: 0.875rem;
  color: #71717a;
  border: 1px solid var(--line-strong);
  background: transparent;
  transition:
    border-color 0.35s ease,
    color 0.35s ease,
    transform 0.4s cubic-bezier(.2,.8,.2,1),
    box-shadow 0.4s ease;
}
.btn-ghost:hover {
  border-color: rgba(255,255,255,0.18);
  color: #d4d4d8;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.45);
}

.glass-card {
  position: relative;
  padding: 2rem;
  border-radius: 4px;
  background: linear-gradient(165deg, #0d0d12 0%, #08080b 100%);
  border: 1px solid var(--line);
  backdrop-filter: blur(12px);
  transition: border-color 0.5s ease;
}
.glass-card:hover { border-color: rgba(255,255,255,0.08); }

.id-card {
  position: relative;
  padding: 1.5rem;
  border-radius: 4px;
  background: linear-gradient(165deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border: 1px solid var(--line-strong);
  overflow: hidden;
  transition:
    transform 0.65s cubic-bezier(.2,.8,.2,1),
    box-shadow 0.65s ease;
}
.id-card:hover {
  transform: translateY(-6px) rotateX(1.5deg);
  box-shadow:
    0 26px 68px rgba(0,0,0,0.65),
    0 0 0 1px rgba(214,0,28,0.32),
    0 0 28px rgba(214,0,28,0.18);
}
.id-card__shine {
  position: absolute; inset: -1px;
  z-index: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, transparent 40%, rgba(214,0,28,0.09) 50%, transparent 60%);
  background-size: 200% 200%;
  animation: shine 8s linear infinite;
  pointer-events: none;
}
.id-card > *:not(.id-card__shine) {
  position: relative;
  z-index: 1;
}
@keyframes shine {
  0%   { background-position: -100% -100%; }
  100% { background-position: 200%  200%; }
}

.exp-card {
  position: relative;
  padding: 1.75rem;
  border-radius: 4px;
  background: linear-gradient(165deg, rgba(255,255,255,0.02), rgba(255,255,255,0.008));
  border: 1px solid var(--line);
  overflow: hidden;
  transition:
    transform 0.6s cubic-bezier(.2,.8,.2,1),
    border-color 0.5s ease,
    box-shadow 0.5s ease;
}
.exp-card:hover {
  transform: translateY(-5px);
  border-color: rgba(214,0,28,0.35);
  box-shadow:
    0 20px 56px rgba(0,0,0,0.5),
    0 0 0 1px rgba(214,0,28,0.22),
    0 0 26px rgba(214,0,28,0.14);
}
.exp-card__glow {
  position: absolute;
  top: -80px; right: -80px;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(214,0,28,0.13), transparent 70%);
  filter: blur(24px);
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}
.exp-card__glow--violet {
  background: radial-gradient(circle, rgba(214,0,28,0.08), transparent 70%);
}
.exp-card:hover .exp-card__glow { opacity: 1; }

.chip {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  font-size: 10px;
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border-radius: 2px;
  border: 1px solid;
}
.chip--cyan,
.chip--violet,
.chip--amber  { color: #71717a;       background: rgba(255,255,255,0.03); border-color: rgba(255,255,255,0.08); }
.chip--fuchsia { color: var(--ferrari); background: var(--ferrari-dim);     border-color: rgba(214,0,28,0.28); }

.tag {
  display: inline-block;
  padding: 0.35rem 0.7rem;
  border-radius: 2px;
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  color: #52525b;
  background: rgba(255,255,255,0.018);
  border: 1px solid rgba(255,255,255,0.055);
  transition:
    border-color 0.35s ease,
    color 0.35s ease,
    transform 0.35s cubic-bezier(.2,.8,.2,1);
}
.tag:hover {
  border-color: rgba(214,0,28,0.35);
  color: #a1a1aa;
  transform: translateY(-1px);
}

.skill-card {
  position: relative;
  padding: 1.5rem;
  border-radius: 4px;
  background: linear-gradient(165deg, #0d0d12 0%, #08080b 100%);
  border: 1px solid var(--line);
  transition:
    transform 0.55s cubic-bezier(.2,.8,.2,1),
    border-color 0.5s ease,
    box-shadow 0.5s ease;
}
.skill-card:hover {
  transform: translateY(-5px);
  border-color: rgba(214,0,28,0.32);
  box-shadow:
    0 18px 52px rgba(0,0,0,0.5),
    0 0 0 1px rgba(214,0,28,0.22),
    0 0 26px rgba(214,0,28,0.14);
}
.skill-icon {
  width: 2.5rem; height: 2.5rem;
  border-radius: 3px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ferrari-dim);
  border: 1px solid rgba(214,0,28,0.22);
  color: var(--ferrari);
}

.cert-card {
  position: relative;
  padding: 1.5rem;
  border-radius: 4px;
  background: linear-gradient(165deg, #0d0d12 0%, #08080b 100%);
  border: 1px solid var(--line);
  display: flex; flex-direction: column;
  transition:
    transform 0.55s cubic-bezier(.2,.8,.2,1),
    border-color 0.5s ease,
    box-shadow 0.5s ease;
  cursor: pointer;
  overflow: hidden;
}
.cert-card::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(500px circle at var(--mx,50%) var(--my,50%), rgba(214,0,28,0.07), transparent 40%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.cert-card:hover {
  transform: translateY(-5px);
  border-color: rgba(214,0,28,0.32);
  box-shadow:
    0 18px 52px rgba(0,0,0,0.5),
    0 0 0 1px rgba(214,0,28,0.22),
    0 0 26px rgba(214,0,28,0.14);
}
.cert-card:hover::before { opacity: 1; }
.cert-card__icon {
  width: 2.75rem; height: 2.75rem;
  border-radius: 3px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.125rem;
}
.cert-card.is-hidden { display: none; }

.filter-btn {
  padding: 0.4rem 1rem;
  border-radius: 2px;
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.08em;
  color: #3f3f46;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.06);
  transition: all 0.3s ease;
  cursor: pointer;
}
.filter-btn:hover { color: #71717a; border-color: rgba(255,255,255,0.14); }
.filter-btn.is-active {
  color: #ffffff;
  background: var(--ferrari);
  border-color: var(--ferrari);
  box-shadow: 0 4px 18px var(--ferrari-glow);
}

.field-label {
  display: block;
  font-size: 10px;
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #3f3f46;
  margin-bottom: 8px;
}
.input {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 3px;
  background: rgba(255,255,255,0.016);
  border: 1px solid rgba(255,255,255,0.07);
  color: #e2e8f0;
  font-size: 0.875rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.input::placeholder { color: #27272a; }
.input:focus {
  outline: none;
  border-color: var(--ferrari);
  box-shadow: 0 0 0 3px var(--ferrari-dim);
  background: rgba(255,255,255,0.024);
}
.input:invalid:not(:placeholder-shown) {
  border-color: rgba(214,0,28,0.3);
}

.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}

.alert-success {
  border-color: rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.03);
  color: #a1a1aa;
}
.alert-error {
  border-color: rgba(214,0,28,0.3);
  background: rgba(214,0,28,0.06);
  color: #fca5a5;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.modal.is-open { display: flex; }
.modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(5,5,6,0.88);
  backdrop-filter: blur(12px);
  animation: fadeIn 0.3s ease-out;
}
.modal__panel {
  position: relative;
  max-width: 32rem;
  width: 100%;
  padding: 2rem;
  border-radius: 4px;
  background: linear-gradient(165deg, rgba(18,18,20,0.98), rgba(10,10,12,0.98));
  border: 1px solid rgba(255,255,255,0.09);
  box-shadow:
    0 48px 96px -24px rgba(0,0,0,0.85),
    0 0 0 1px rgba(214,0,28,0.1);
  animation: modalIn 0.42s cubic-bezier(.2,.8,.2,1);
}
.modal__close {
  position: absolute; top: 1rem; right: 1rem;
  width: 2rem; height: 2rem;
  border-radius: 2px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  color: #3f3f46;
  display: inline-flex; align-items: center; justify-content: center;
  transition: color 0.25s, border-color 0.25s, background 0.25s;
}
.modal__close:hover {
  color: var(--ferrari);
  border-color: rgba(214,0,28,0.35);
  background: var(--ferrari-dim);
}

@keyframes fadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(24px) scale(0.97); } to { opacity: 1; transform: none; } }

.info-link {
  display: inline-flex; align-items: center; gap: 0.75rem;
  color: #3f3f46;
  transition: color 0.3s ease;
}
.info-link:hover { color: #71717a; }

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.85s cubic-bezier(.4,0,.2,1), transform 0.85s cubic-bezier(.4,0,.2,1);
}
.reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  #preloader { display: none !important; }
}

/* ════════════════════════════════════════════════════════════════════
   GLOBAL COLOR OVERRIDES — Tailwind utility'lerini ezme garantisi
   Sirayla en sonda ki ozgullukleri esit olsa bile sonradan gelen
   !important daima kazanir.
   ════════════════════════════════════════════════════════════════════ */

/* Mat siyah ana zemin */
html, body            { background-color: #050507 !important; }
.bg-ink-950           { background-color: #050507 !important; }
.bg-ink-900           { background-color: #0b0b0f !important; }
.bg-ink-800           { background-color: #111116 !important; }
.bg-ink-700           { background-color: #181820 !important; }

/* Antrasit kart zemini */
.glass-card,
.skill-card,
.cert-card,
.exp-card             { background: linear-gradient(165deg, #0d0d12 0%, #0b0b0f 100%) !important; }
.id-card              { background: linear-gradient(165deg, #131319 0%, #0b0b0f 100%) !important; }
.modal__panel         { background: linear-gradient(165deg, #131319 0%, #0b0b0f 100%) !important; }

/* Ferrari Kırmızısı — asla solmasin */
.btn-primary          { background-color: #D6001C !important; color: #ffffff !important; }
.btn-primary:hover    { background-color: #e8001f !important; }
.filter-btn.is-active { background-color: #D6001C !important; color: #ffffff !important; border-color: #D6001C !important; }
.section-label,
.text-ferrari,
.text-aurora-cyan     { color: #D6001C !important; }
.bg-aurora-cyan,
.bg-ferrari           { background-color: #D6001C !important; }
.preloader__brand-prefix,
.preloader__row-text .tag-cmd,
.preloader__line strong,
.status-success       { color: #D6001C !important; }
.preloader__bar-fill  { background-color: #D6001C !important; }
::-webkit-scrollbar-thumb { background-color: #D6001C !important; }

/* Yuksek kontrast metin — soluk slate tonlari yok */
body                  { color: #f8fafc !important; }
h1, h2, h3, h4        { color: #f8fafc !important; }
.preloader__brand-name,
.preloader__line--ready { color: #f8fafc !important; }

/* Preloader zorunlu gorunurluk */
#preloader            { background-color: #050507 !important; z-index: 99999 !important; }

/* ════════════════════════════════════════════════════════════════════
   WAR ROOM — Otonom Aktif Savunma Paneli
   ════════════════════════════════════════════════════════════════════ */
.warroom {
  position: fixed !important;
  bottom: 20px; right: 20px;
  width: min(380px, calc(100vw - 40px));
  z-index: 9000 !important;
  background: linear-gradient(165deg, #0d0d12 0%, #08080b 100%) !important;
  border: 1px solid rgba(214,0,28,0.22) !important;
  border-radius: 4px !important;
  font-family: 'JetBrains Mono', ui-monospace, 'Consolas', monospace !important;
  color: #f8fafc !important;
  box-shadow: 0 18px 52px rgba(0,0,0,0.55), 0 0 0 1px rgba(214,0,28,0.12), 0 0 24px rgba(214,0,28,0.08);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s cubic-bezier(.2,.8,.2,1), transform 0.6s cubic-bezier(.2,.8,.2,1),
              box-shadow 0.6s ease, border-color 0.6s ease;
  pointer-events: auto;
}
.warroom.show { opacity: 1; transform: none; }
.warroom__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.warroom__title {
  display: flex; align-items: center; gap: 8px;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #f8fafc !important;
  font-weight: 600;
}
.warroom__alarm {
  width: 8px; height: 8px; border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px rgba(74,222,128,0.6);
  transition: background 0.4s ease, box-shadow 0.4s ease;
}
.warroom__state {
  font-size: 9px;
  letter-spacing: 0.18em;
  color: #4ade80 !important;
  font-weight: 700;
}

/* Minimize/expand butonu */
.warroom__toggle {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.08);
  color: #71717a;
  width: 22px; height: 22px;
  border-radius: 2px;
  cursor: pointer;
  font-size: 13px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 10px;
  padding: 0;
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.warroom__toggle:hover {
  color: #D6001C;
  border-color: rgba(214,0,28,0.4);
  background: rgba(214,0,28,0.08);
}
.warroom__toggle-icon { display: inline-block; transform: translateY(-1px); }

/* Collapsed: sadece baslik bari */
.warroom.collapsed {
  width: auto;
  min-width: 260px;
}
.warroom.collapsed .warroom__metrics,
.warroom.collapsed .warroom__log {
  display: none !important;
}
.warroom.collapsed .warroom__head {
  border-bottom: 0;
}
.warroom__metrics {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(255,255,255,0.04);
}
.warroom__metric {
  background: #0a0a0d;
  padding: 10px 14px;
}
.warroom__metric-label {
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #64748b !important;
  margin-bottom: 4px;
}
.warroom__metric-value {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #f8fafc !important;
  font-variant-numeric: tabular-nums;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}
.warroom__log {
  height: 130px;
  overflow-y: auto;
  padding: 8px 14px;
  font-size: 10px;
  line-height: 1.7;
  color: #94a3b8;
}
.warroom__log::-webkit-scrollbar { width: 3px; }
.warroom__log::-webkit-scrollbar-thumb { background: rgba(214,0,28,0.5); }
.warroom__log-line {
  padding: 1px 0;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.warroom__log-line.show { opacity: 1; transform: none; }
.warroom__log-line em {
  color: #D6001C !important;
  font-style: normal;
  font-weight: 700;
  margin-right: 6px;
}
.warroom__log-line--ok { color: #4ade80; }
.warroom__log-line--warn { color: #fbbf24; }
.warroom__log-line--alert { color: #ef4444; font-weight: 600; }
.warroom__log-line--info { color: #94a3b8; }

/* PANIC MODE — Aktif savunma tetiklendiginde */
.warroom.panic {
  border-color: rgba(214,0,28,0.7) !important;
  box-shadow: 0 24px 64px rgba(0,0,0,0.7),
              0 0 0 1px rgba(214,0,28,0.5),
              0 0 36px rgba(214,0,28,0.35) !important;
  animation: warroomPanicPulse 1.6s ease-in-out infinite;
}
.warroom.panic .warroom__alarm {
  background: #D6001C;
  box-shadow: 0 0 14px rgba(214,0,28,0.85), 0 0 28px rgba(214,0,28,0.4);
  animation: alarmBlink 0.6s ease-in-out infinite;
}
.warroom.panic .warroom__state { color: #D6001C !important; }
.warroom.panic .warroom__metric-value {
  color: #D6001C !important;
  text-shadow: 0 0 12px rgba(214,0,28,0.55);
}
@keyframes warroomPanicPulse {
  0%, 100% { box-shadow: 0 24px 64px rgba(0,0,0,0.7), 0 0 0 1px rgba(214,0,28,0.5), 0 0 36px rgba(214,0,28,0.35); }
  50%      { box-shadow: 0 24px 64px rgba(0,0,0,0.7), 0 0 0 1px rgba(214,0,28,0.8), 0 0 52px rgba(214,0,28,0.55); }
}
@keyframes alarmBlink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.35; }
}

/* DDoS Panic — ana site arkada solar, War Room sahnede */
body.ddos-panic-mode > header,
body.ddos-panic-mode > section,
body.ddos-panic-mode > footer {
  opacity: 0.03 !important;
  pointer-events: none !important;
  filter: blur(2px) saturate(0.4) !important;
  transition:
    opacity 1.2s cubic-bezier(.2,.8,.2,1),
    filter 1.2s cubic-bezier(.2,.8,.2,1) !important;
}
body.ddos-panic-mode .warroom {
  opacity: 1 !important;
  transform: none !important;
}

/* Cyber Vignette — 4 koseden nabız atan Ferrari Red halka */
#ddos-panic-overlay {
  position: fixed !important;
  inset: 0 !important;
  z-index: 8500 !important;
  pointer-events: none !important;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.9s cubic-bezier(.2,.8,.2,1), visibility 0.9s linear;
  background:
    radial-gradient(circle at 0% 0%,     rgba(214,0,28,0.20) 0%, transparent 28%),
    radial-gradient(circle at 100% 0%,   rgba(214,0,28,0.20) 0%, transparent 28%),
    radial-gradient(circle at 0% 100%,   rgba(214,0,28,0.20) 0%, transparent 28%),
    radial-gradient(circle at 100% 100%, rgba(214,0,28,0.20) 0%, transparent 28%),
    radial-gradient(ellipse at 50% 50%,  transparent 55%, rgba(214,0,28,0.10) 100%);
}
body.ddos-panic-mode #ddos-panic-overlay {
  opacity: 1;
  visibility: visible;
  animation: cornerPulse 1.8s ease-in-out infinite;
}
@keyframes cornerPulse {
  0%, 100% { opacity: 0.55; filter: blur(0px); }
  50%      { opacity: 1;    filter: blur(2px); }
}

/* Panik anında War Room metinleri Ferrari Red parlamalı, keskin beyaz */
body.ddos-panic-mode .warroom__title,
body.ddos-panic-mode .warroom__metric-label {
  color: #f8fafc !important;
  text-shadow: 0 0 8px rgba(255,255,255,0.4);
}
body.ddos-panic-mode .warroom__metric-value {
  text-shadow: 0 0 14px rgba(214,0,28,0.7), 0 0 28px rgba(214,0,28,0.4) !important;
  animation: metricPulse 1s ease-in-out infinite;
}
@keyframes metricPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.03); }
}
.warroom__state {
  text-shadow: 0 0 6px rgba(74,222,128,0.5);
}
.warroom.panic .warroom__state {
  text-shadow: 0 0 10px rgba(214,0,28,0.7), 0 0 20px rgba(214,0,28,0.4) !important;
}

