/* =========================================================
   ZeroAC — Demo Panel (TruffAC demo layout · blue brand)
   ========================================================= */
:root {
  --brand-300: #8ab8ff;
  --brand-400: #5f97ff;
  --brand-500: #4f8cff;
  --brand-600: #2f6bff;
  --brand-700: #2453d6;
  --brand: #4f8cff;
  --brand-glow: rgba(79, 140, 255, 0.45);
  --card-border: rgba(255, 255, 255, 0.07);
  --bg-base: #07070a;
  --bg-surface: #0f0f15;
  --bg-card: #0d0d12;
  /* main-content offset: sidebar (220/60) + 12 inset + 12 gap */
  --sb-open: 244px;
  --sb-closed: 84px;
}

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

html { scroll-behavior: smooth; overflow-y: scroll; }

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background-color: var(--bg-base);
  color: #fff;
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.font-display { font-family: 'Sora', sans-serif; }
.font-mono { font-family: 'JetBrains Mono', monospace; }

.brand { color: var(--brand-500); }

/* ── Ambient backdrop: dot grid + soft blue glow ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px) 0 0 / 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 55% 0%, #000 10%, transparent 70%);
  mask-image: radial-gradient(ellipse 70% 60% at 55% 0%, #000 10%, transparent 70%);
}
body::after {
  content: '';
  position: fixed;
  left: 55%;
  top: -260px;
  width: 1000px;
  max-width: 100vw;
  height: 500px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: rgba(79, 140, 255, 0.12);
  filter: blur(130px);
  z-index: -1;
  pointer-events: none;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.08); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(79, 140, 255, 0.4); }
.custom-scrollbar::-webkit-scrollbar { width: 4px; }
.custom-scrollbar::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.1); border-radius: 10px; }

/* ── Floating sidebar ── */
.cyber-sidebar {
  position: fixed !important;
  top: 12px !important;
  bottom: 12px !important;
  left: 12px !important;
  width: 220px;
  z-index: 50;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: linear-gradient(180deg, #101017 0%, #0a0a0f 100%);
  box-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: width;
  transform: translateZ(0);
  backface-visibility: hidden;
}
.cyber-sidebar.collapsed { width: 60px; }

/* Logo header */
.sb-head {
  height: 60px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}
.sb-brand { display: flex; align-items: center; gap: 10px; min-width: 0; text-decoration: none; }
.sb-mark {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 30% 20%, rgba(79, 140, 255, 0.35), rgba(79, 140, 255, 0.08));
  border: 1px solid rgba(79, 140, 255, 0.45);
  box-shadow: 0 0 26px -4px rgba(79, 140, 255, 0.5);
}
.sb-mark img { width: 20px; height: 20px; object-fit: contain; }
.sb-name {
  font-family: 'Sora', sans-serif;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #fff;
  white-space: nowrap;
}
.sb-icon-btn {
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 9px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s, background 0.15s;
}
.sb-icon-btn:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.sb-icon-btn svg { width: 16px; height: 16px; }

/* Collapsed expand button */
.sb-expand {
  display: none;
  margin: 12px auto 0;
  padding: 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.sb-expand:hover { color: #fff; border-color: rgba(79, 140, 255, 0.5); background: rgba(79, 140, 255, 0.12); }
.collapsed .sb-expand { display: block; }

/* Server pill */
.sb-server {
  padding: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}
.server-pill {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0.6rem 0.8rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  cursor: default;
  transition: background 0.2s, border-color 0.2s;
}
.server-pill:hover { background: rgba(255, 255, 255, 0.06); border-color: rgba(79, 140, 255, 0.35); }
.server-pill .lbl { display: flex; align-items: center; gap: 8px; min-width: 0; }
.server-pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-500);
  box-shadow: 0 0 8px var(--brand-glow);
  flex-shrink: 0;
  animation: pulseDot 1.6s ease-in-out infinite;
}
.server-pill .server-name {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.85); }
}

/* Nav */
.sb-nav {
  flex: 1;
  padding: 8px;
  overflow-y: auto;
  scrollbar-width: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sb-nav::-webkit-scrollbar { display: none; }
.collapsed .sb-nav { padding-left: 6px; padding-right: 6px; }

.sec {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 10px 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
  user-select: none;
  white-space: nowrap;
}
.sec::after { content: ''; flex: 1; height: 1px; background: rgba(255, 255, 255, 0.06); }
.collapsed .sec { display: none; }

.nav-flat {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 5px 10px 5px 5px;
  border-radius: 13px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  position: relative;
  margin: 3px 4px;
  white-space: nowrap;
  transition: color 0.18s, background 0.18s, border-color 0.18s;
}
.nav-flat:hover { color: #fff; background: rgba(255, 255, 255, 0.04); }
.nav-flat:active { transform: scale(0.985); }
.nav-flat.active {
  color: #fff !important;
  background: linear-gradient(90deg, rgba(79, 140, 255, 0.14) 0%, rgba(79, 140, 255, 0.02) 100%) !important;
  border: 1px solid rgba(79, 140, 255, 0.28) !important;
  font-weight: 600;
}
.nav-flat .icon {
  box-sizing: content-box;
  width: 16px;
  height: 16px;
  padding: 7px;
  flex-shrink: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.18s, border-color 0.18s, background 0.18s;
}
.nav-flat:hover .icon { color: var(--brand-400); border-color: rgba(79, 140, 255, 0.3); }
.nav-flat.active .icon {
  color: #fff !important;
  background: linear-gradient(180deg, #5f97ff 0%, #4f8cff 55%, #2f6bff 100%);
  border-color: transparent;
  box-shadow: 0 6px 18px -6px rgba(79, 140, 255, 0.6);
}
.nav-live {
  margin-left: auto;
  margin-right: 1px;
  position: relative;
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}
.nav-live .ping {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--brand-500);
  box-shadow: 0 0 8px var(--brand-glow);
}
.nav-live::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(79, 140, 255, 0.6);
  animation: livePing 1.6s cubic-bezier(0, 0, 0.2, 1) infinite;
}
@keyframes livePing {
  0% { transform: scale(1); opacity: 0.7; }
  80%, 100% { transform: scale(2.6); opacity: 0; }
}
.collapsed .nav-flat { padding: 4px; margin: 3px 0; justify-content: center; gap: 0; }
.collapsed .nav-flat .label { display: none; }
.collapsed .nav-live { display: none; }

/* Platform switcher */
.sb-plat { padding: 10px; flex-shrink: 0; }
.plat {
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}
.plat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 9px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
}
.plat-live { display: inline-flex; align-items: center; gap: 6px; color: #34d399; }
.plat-live i { width: 6px; height: 6px; border-radius: 50%; background: #34d399; box-shadow: 0 0 8px #34d399; }
.plat-seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.plat-opt {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 4px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
}
.plat-opt svg { width: 14px; height: 14px; flex-shrink: 0; }
.plat-opt:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.plat-opt.on {
  color: #fff;
  font-weight: 700;
  background: linear-gradient(180deg, #5f97ff 0%, #4f8cff 55%, #2f6bff 100%);
  box-shadow: 0 8px 20px -8px rgba(79, 140, 255, 0.6);
}
.collapsed .sb-plat { padding: 8px 6px; }
.collapsed .plat-head, .collapsed .plat-seg { display: none; }
.collapsed .sb-plat .plat { padding: 8px; display: flex; justify-content: center; }
.collapsed .plat-opt { padding: 8px 7px; }
.collapsed .plat-opt span { display: none; }

/* User card */
.sb-user {
  padding: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}
.cyber-user-card {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.6rem 0.7rem;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}
.cyber-user-card:hover { background: rgba(255, 255, 255, 0.05); border-color: rgba(79, 140, 255, 0.35); }
.uc-avatar {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
  overflow: hidden;
}
.uc-avatar img { width: 100%; height: 100%; object-fit: contain; }
.uc-info { flex: 1; min-width: 0; text-align: left; }
.uc-info .name { font-size: 12px; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.uc-info .status { display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.uc-info .status i { width: 6px; height: 6px; border-radius: 50%; background: #34d399; box-shadow: 0 0 5px rgba(52, 211, 153, 0.6); }
.uc-info .status span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  color: #34d399;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.uc-exit {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}
.uc-exit:hover { color: #fff; background: rgba(255, 255, 255, 0.06); border-color: rgba(79, 140, 255, 0.4); }
.uc-exit svg { width: 14px; height: 14px; }
.collapsed .sb-head { justify-content: center; }
.collapsed .sb-mark { width: 36px; }
.collapsed .sb-name { display: none; }
.collapsed #sb-collapse { display: none; }
.collapsed .sb-server { display: none; }
.collapsed .uc-info, .collapsed .uc-exit { display: none; }
.collapsed .cyber-user-card { justify-content: center; }

/* ── Mobile menu button ── */
.mobile-menu {
  display: none;
  position: fixed;
  z-index: 70;
  left: 14px;
  bottom: 14px;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(79, 140, 255, 0.4);
  background: rgba(16, 16, 23, 0.92);
  backdrop-filter: blur(12px);
  color: var(--brand-400);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.8);
}
.mobile-menu svg { width: 20px; height: 20px; }

/* ── Main content ── */
.main-content {
  position: fixed;
  top: 0;
  left: var(--sb-open);
  right: 0;
  bottom: 0;
  overflow-y: auto;
  overflow-x: hidden;
  transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.main-content.sidebar-closed { left: var(--sb-closed); }

.page {
  max-width: 1600px;
  margin: 0 auto;
  padding: 20px 24px 48px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.page > * { animation: pageIn 0.22s cubic-bezier(0.4, 0, 0.2, 1) both; }
@keyframes pageIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Cards ── */
.cyber-card {
  background: radial-gradient(130% 90% at 0% 0%, rgba(255, 255, 255, 0.035) 0%, transparent 60%), var(--bg-card);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 24px 28px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.35s, transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.35s;
}
.cyber-card:hover {
  border-color: rgba(79, 140, 255, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 16px 36px -12px rgba(0, 0, 0, 0.7), 0 0 24px -6px rgba(79, 140, 255, 0.15);
}
.cyber-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(79, 140, 255, 0.5), transparent);
  opacity: 0;
  transition: opacity 0.35s;
}
.cyber-card:hover::before { opacity: 1; }

.card-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(79, 140, 255, 0.18), rgba(79, 140, 255, 0.04));
  border: 1px solid rgba(79, 140, 255, 0.24);
  color: var(--brand-400);
  flex-shrink: 0;
}
.card-icon-badge svg { width: 20px; height: 20px; }

.card-head { display: flex; align-items: center; gap: 14px; }
.card-title { font-family: 'Sora', sans-serif; font-size: 18px; font-weight: 700; color: #fff; letter-spacing: -0.01em; margin: 0; }
.card-sub { font-size: 12px; color: rgba(255, 255, 255, 0.4); margin-top: 2px; }

/* ── Hero ── */
.hero-wrap {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(79, 140, 255, 0.22);
  background: #09090d;
  box-shadow: 0 24px 70px -20px rgba(0, 0, 0, 0.8), 0 0 40px -10px rgba(79, 140, 255, 0.12);
}
.hero-top {
  position: relative;
  padding: 40px 40px 36px;
  background:
    radial-gradient(ellipse 900px 500px at 100% -10%, rgba(79, 140, 255, 0.28), transparent 60%),
    radial-gradient(ellipse 500px 400px at -5% 120%, rgba(79, 140, 255, 0.10), transparent 65%),
    linear-gradient(135deg, #131217 0%, #09090d 70%);
  overflow: hidden;
}
.hero-shield-wm {
  position: absolute;
  right: -50px;
  top: 50%;
  transform: translateY(-50%);
  width: 320px;
  height: 320px;
  background: url('../assets/img/favicon.svg') center/contain no-repeat;
  opacity: 0.05;
  filter: grayscale(1) brightness(3);
  pointer-events: none;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-400);
  background: rgba(79, 140, 255, 0.08);
  border: 1px solid rgba(79, 140, 255, 0.22);
  padding: 6px 14px;
  border-radius: 999px;
}
.hero-eyebrow svg { width: 14px; height: 14px; }
.hero-eyebrow .demo-tag {
  font-size: 9px;
  color: #fff;
  background: var(--brand-500);
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: 0.1em;
}
.hero-title {
  font-family: 'Sora', sans-serif;
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 12px 0 0;
}
.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(79, 140, 255, 0.14);
  border: 1px solid rgba(79, 140, 255, 0.32);
  color: var(--brand-400);
}
.live-pill .pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-500);
  box-shadow: 0 0 8px var(--brand-glow);
  animation: pulseDot 1.4s ease-in-out infinite;
}
.hero-sub { color: rgba(255, 255, 255, 0.5); font-size: 14px; line-height: 1.6; max-width: 560px; margin: 8px 0 0; }

.hero-row { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 24px; }
@media (min-width: 1024px) { .hero-row { flex-direction: row; align-items: center; justify-content: space-between; } }

.hero-user-chip {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  border-radius: 20px;
  flex-shrink: 0;
  align-self: flex-start;
  transition: border-color 0.25s, background 0.25s;
}
@media (min-width: 1024px) { .hero-user-chip { align-self: auto; } }
.hero-user-chip:hover { border-color: rgba(79, 140, 255, 0.3); background: rgba(255, 255, 255, 0.05); }
.huc-avatar { position: relative; flex-shrink: 0; }
.huc-avatar img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(79, 140, 255, 0.3);
  object-fit: contain;
  box-shadow: 0 0 12px rgba(79, 140, 255, 0.25);
  background: #0d0d12;
}
.huc-avatar .dc-badge {
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 16px;
  height: 16px;
  background: #5865f2;
  border-radius: 50%;
  border: 2px solid #09090d;
  display: flex;
  align-items: center;
  justify-content: center;
}
.huc-avatar .dc-badge svg { width: 8px; height: 8px; fill: #fff; }
.huc-name { font-size: 14px; font-weight: 700; color: #fff; white-space: nowrap; max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
.huc-handle { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: rgba(255, 255, 255, 0.4); white-space: nowrap; }
.huc-state { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-500); box-shadow: 0 0 10px var(--brand-glow); flex-shrink: 0; margin-left: 4px; }

/* KPI strip */
.hero-kpis {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(255, 255, 255, 0.015);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.hero-kpi { padding: 24px 28px; border-right: 1px solid rgba(255, 255, 255, 0.06); transition: background 0.25s; }
.hero-kpi:last-child { border-right: none; }
.hero-kpi:hover { background: rgba(79, 140, 255, 0.04); }
.hero-kpi-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}
.hero-kpi-value {
  font-family: 'Sora', sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  margin-top: 6px;
  line-height: 1.1;
}
.hero-kpi-value .unit { font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, 0.4); margin-left: 6px; }
.hero-kpi-foot {
  font-size: 11px;
  font-weight: 600;
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.hero-kpi-foot svg { width: 14px; height: 14px; }
.text-red { color: #f87171; }
.text-emerald { color: #34d399; }

@media (max-width: 960px) {
  .hero-kpis { grid-template-columns: repeat(2, 1fr); }
  .hero-kpi:nth-child(2n) { border-right: none; }
  .hero-kpi:nth-child(1), .hero-kpi:nth-child(2) { border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
  .hero-top { padding: 28px 24px 28px; }
}
@media (max-width: 520px) {
  .hero-kpi { padding: 18px 14px; }
  .hero-kpi-value { font-size: 26px; }
}

/* ── Mini utilities ── */
.flex-sb { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.min-w-0 { min-width: 0; }
.text-brand-400 { color: var(--brand-400); }
.text-brand-300 { color: var(--brand-300); }

/* ── Grid helpers ── */
.grid { display: grid; gap: 24px; }
.grid-12 { grid-template-columns: 1fr; }
.span-2 { grid-column: span 1; }
@media (min-width: 1024px) {
  .grid-12 { grid-template-columns: repeat(12, 1fr); }
  .c-7 { grid-column: span 7; }
  .c-5 { grid-column: span 5; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .span-2 { grid-column: span 2; }
}

/* ── Chart header pills ── */
.pill-mono {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 9px;
  background: rgba(79, 140, 255, 0.1);
  border: 1px solid rgba(79, 140, 255, 0.2);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  color: var(--brand-400);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.pill-mono .pulse { width: 6px; height: 6px; border-radius: 50%; background: var(--brand-500); animation: pulseDot 1.4s infinite; }
.pill-red {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.25);
  color: #f87171;
}
.pill-red .pulse { background: #ef4444; }

.chart-box { width: 100%; height: 280px; margin-top: 8px; }
.donut-wrap { position: relative; width: 100%; height: 210px; margin: 16px 0; display: flex; align-items: center; justify-content: center; }
.donut-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.donut-center b { font-family: 'Sora', sans-serif; font-size: 24px; font-weight: 700; color: #fff; }
.donut-center span { font-size: 10px; color: rgba(255, 255, 255, 0.35); font-family: 'JetBrains Mono', monospace; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 600; }

/* Vector list */
.vector-list { margin-top: auto; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; max-height: 140px; padding-right: 4px; }
.vector-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: border-color 0.2s;
}
.vector-item:hover { border-color: rgba(79, 140, 255, 0.2); }
.vdot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.vlabel { font-size: 12px; font-weight: 500; color: rgba(255, 255, 255, 0.7); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vcount {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  color: var(--brand-300);
  background: rgba(79, 140, 255, 0.1);
  border: 1px solid rgba(79, 140, 255, 0.2);
  padding: 2px 8px;
  border-radius: 6px;
}

/* ── Ban feed ── */
.feed { display: flex; flex-direction: column; gap: 10px; }
.ban-feed-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 14px 16px;
  transition: all 0.25s;
}
.ban-feed-item:hover { background: rgba(79, 140, 255, 0.035); border-color: rgba(79, 140, 255, 0.22); transform: translateX(3px); }
.ban-feed-item.enter { animation: feedIn 0.5s cubic-bezier(0.2, 0.7, 0.2, 1); }
@keyframes feedIn {
  0% { opacity: 0; transform: translateY(-10px) scale(0.985); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.bf-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.bf-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #f87171;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.bf-icon svg { width: 16px; height: 16px; }
.bf-who { display: flex; align-items: center; gap: 8px; min-width: 0; }
.bf-name { font-size: 14px; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bf-badge {
  padding: 2px 8px;
  border-radius: 5px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 170px;
}
.bf-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  white-space: nowrap;
}
.bf-go {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, background 0.2s;
}
.bf-go:hover { color: var(--brand-400); background: rgba(255, 255, 255, 0.05); }
.bf-go svg { width: 16px; height: 16px; }
.feed-more { text-align: center; padding-top: 6px; }
.link-mono {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  color: var(--brand-400);
  text-decoration: none;
  transition: color 0.2s;
}
.link-mono:hover { color: var(--brand-300); }
.link-mono svg { width: 14px; height: 14px; }
.card-head-right { margin-left: auto; display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

/* ── Quick links ── */
.quick-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 640px) and (max-width: 1023px) { .quick-grid { grid-template-columns: repeat(2, 1fr); } }
.quick-link-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  background: radial-gradient(120% 80% at 0% 0%, rgba(255, 255, 255, 0.03) 0%, transparent 60%), #0d0d12;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  text-decoration: none;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.quick-link-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--qc, var(--brand-500)), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.quick-link-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--qc, rgba(79, 140, 255, 0.3));
  transform: translateY(-3px);
  box-shadow: 0 16px 30px -14px var(--qc-glow, rgba(79, 140, 255, 0.25));
}
.quick-link-card:hover::before { opacity: 1; }
.qicon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
  transition: all 0.3s;
}
.qicon svg { width: 20px; height: 20px; }
.quick-link-card:hover .qicon {
  background: var(--qc-bg, rgba(79, 140, 255, 0.18));
  color: var(--qc, var(--brand-500));
  border-color: var(--qc, var(--brand-500));
  transform: scale(1.08);
}
.qinfo { min-width: 0; flex: 1; }
.qinfo h4 { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: #fff; margin: 0; transition: color 0.2s; }
.qinfo p { font-size: 11px; color: rgba(255, 255, 255, 0.4); margin: 3px 0 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qrec {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #f87171;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  padding: 1px 6px;
  border-radius: 4px;
}
.qrec .pulse { width: 5px; height: 5px; border-radius: 50%; background: #ef4444; animation: pulseDot 1.4s infinite; }
.qarrow { margin-left: auto; flex-shrink: 0; color: rgba(255, 255, 255, 0.2); transition: all 0.2s; }
.quick-link-card:hover .qarrow { transform: translateX(3px); }
.qarrow svg { width: 16px; height: 16px; }

/* ── Notify toast ── */
#notify-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.notify-item {
  padding: 12px 20px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  backdrop-filter: blur(12px);
  animation: notifyIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) both;
  max-width: 340px;
}
.notify-success { background: rgba(34, 197, 94, 0.15); border: 1px solid rgba(34, 197, 94, 0.3); }
.notify-info { background: rgba(79, 140, 255, 0.15); border: 1px solid rgba(79, 140, 255, 0.3); }
.notify-error { background: rgba(239, 68, 68, 0.15); border: 1px solid rgba(239, 68, 68, 0.3); }
@keyframes notifyIn {
  from { opacity: 0; transform: translateX(2rem); }
  to { opacity: 1; transform: translateX(0); }
}

/* ── Switching overlay ── */
.switching {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
}
.switching.show { display: flex; }
.sw-inner {
  padding: 24px;
  border-radius: 22px;
  border: 1px solid rgba(79, 140, 255, 0.25);
  background: linear-gradient(180deg, #101017 0%, #0a0a0f 100%);
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.9);
}
.spin { position: relative; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; }
.spin svg { width: 32px; height: 32px; color: var(--brand-500); animation: rotate 1s linear infinite; }
.spin svg circle.dim { opacity: 0.25; }
.spin svg path.acc { opacity: 0.75; }
.spin::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(79, 140, 255, 0.3);
  animation: ping 1.6s cubic-bezier(0, 0, 0.2, 1) infinite;
}
@keyframes rotate { to { transform: rotate(360deg); } }
@keyframes ping {
  0% { transform: scale(1); opacity: 1; }
  80%, 100% { transform: scale(1.7); opacity: 0; }
}
.sw-inner b { display: block; font-family: 'Sora', sans-serif; font-size: 14px; font-weight: 700; letter-spacing: 0.08em; color: #fff; }
.sw-inner span { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--brand-400); text-transform: uppercase; letter-spacing: 0.14em; display: block; margin-top: 2px; }

/* ── Demo watermark ── */
.demo-wm {
  position: fixed;
  right: 14px;
  bottom: 12px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(13, 13, 18, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}
.demo-wm i { width: 6px; height: 6px; border-radius: 50%; background: var(--brand-500); box-shadow: 0 0 8px var(--brand-glow); }

/* ── View (alt modül) topbar ── */
.view-topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 2px 0 4px;
}
.vt-title { font-family: 'Sora', sans-serif; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; color: #fff; margin: 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.vt-sub { font-size: 13px; color: rgba(255, 255, 255, 0.4); margin-top: 2px; }
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.back-btn:hover { color: #fff; background: rgba(255, 255, 255, 0.06); border-color: rgba(79, 140, 255, 0.35); }
.back-btn svg { width: 14px; height: 14px; }

/* ── Tablolar ── */
.tablewrap { overflow-x: auto; border-radius: 16px; border: 1px solid rgba(255, 255, 255, 0.06); background: rgba(255, 255, 255, 0.012); }
.ptable { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 640px; }
.ptable th {
  text-align: left;
  padding: 11px 14px;
  color: rgba(255, 255, 255, 0.4);
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  white-space: nowrap;
}
.ptable td { padding: 12px 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); color: rgba(255, 255, 255, 0.75); white-space: nowrap; }
.ptable tbody tr:last-child td { border-bottom: none; }
.ptable tbody tr:hover td { background: rgba(255, 255, 255, 0.02); }
.num { font-family: 'JetBrains Mono', monospace; color: rgba(255, 255, 255, 0.55); }
.mono { font-family: 'JetBrains Mono', monospace; }
.name-cell { display: flex; align-items: center; gap: 10px; min-width: 0; }
.name-cell .av {
  width: 30px; height: 30px; border-radius: 9px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(79, 140, 255, 0.18), rgba(79, 140, 255, 0.04));
  border: 1px solid rgba(79, 140, 255, 0.24); color: var(--brand-400);
}
.name-cell .av svg { width: 15px; height: 15px; }
.name-cell b { font-weight: 700; color: #fff; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px;
  border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.chip::before { content: ''; width: 5px; height: 5px; border-radius: 50%; }
.chip-ok { color: #34d399; background: rgba(16, 185, 129, 0.1); border: 1px solid rgba(16, 185, 129, 0.25); }
.chip-ok::before { background: #34d399; box-shadow: 0 0 6px rgba(52, 211, 153, 0.7); }
.chip-bad { color: #f87171; background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.25); }
.chip-bad::before { background: #ef4444; box-shadow: 0 0 6px rgba(239, 68, 68, 0.7); }
.chip-warn { color: #fbbf24; background: rgba(245, 158, 11, 0.1); border: 1px solid rgba(245, 158, 11, 0.25); }
.chip-warn::before { background: #f59e0b; }
.chip-info { color: var(--brand-300); background: rgba(79, 140, 255, 0.1); border: 1px solid rgba(79, 140, 255, 0.25); }
.chip-info::before { background: var(--brand-500); box-shadow: 0 0 6px var(--brand-glow); }

.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: all 0.18s;
}
.action-btn:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.action-btn.danger { color: #fca5a5; background: rgba(239, 68, 68, 0.08); border-color: rgba(239, 68, 68, 0.2); }
.action-btn.danger:hover { color: #fff; background: rgba(239, 68, 68, 0.18); border-color: rgba(239, 68, 68, 0.35); }
.action-btn.primary { color: #fff; background: var(--brand-500); border-color: var(--brand-500); }
.action-btn.primary:hover { background: var(--brand-600); }
.action-btn svg { width: 13px; height: 13px; }

/* ── Girdiler ── */
.demo-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 12px 14px;
  color: #fff;
  font-size: 14px;
  transition: border-color 0.2s, background 0.2s;
}
.demo-input::placeholder { color: rgba(255, 255, 255, 0.3); }
.demo-input:focus { outline: none; border-color: var(--brand-500); background: rgba(255, 255, 255, 0.05); }
select.demo-input {
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23ffffff80' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 15px;
  padding-right: 40px;
}
select.demo-input option { background: #14141b; color: #fff; }
.search-row { display: flex; gap: 10px; flex-wrap: wrap; }
.search-row .demo-input { flex: 1; min-width: 220px; }

/* ── Anahtar (toggle) ── */
.switch { position: relative; display: inline-block; width: 44px; height: 24px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .track {
  position: absolute; inset: 0;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  transition: background 0.2s, border-color 0.2s;
}
.switch .thumb {
  position: absolute; left: 2px; top: 2px;
  width: 18px; height: 18px;
  background: #fff; border-radius: 50%;
  transition: transform 0.2s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.switch input:checked ~ .track { background: var(--brand-500); border-color: var(--brand-500); }
.switch input:checked ~ .thumb { transform: translateX(20px); }

/* ── Konsol ── */
.console {
  background: #050508;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  line-height: 1.7;
  padding: 16px;
  height: 420px;
  overflow-y: auto;
}
.console .ln { color: rgba(255, 255, 255, 0.72); padding: 2px 0; white-space: pre-wrap; word-break: break-word; }
.console .ln .t { color: rgba(255, 255, 255, 0.3); }
.console .ln.ok { color: #34d399; }
.console .ln.warn { color: #fbbf24; }
.console .ln.err { color: #f87171; }
.console .ln.prompt { color: var(--brand-400); }
.console-input { display: flex; gap: 10px; margin-top: 12px; }
.console-input .demo-input { font-family: 'JetBrains Mono', monospace; font-size: 13px; }
.console-input .action-btn { padding: 0 18px; }

/* ── Canlı İzleme ── */
.tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.live-tile { border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 18px; overflow: hidden; background: #0d0d12; transition: border-color 0.25s, transform 0.25s; }
.live-tile:hover { border-color: rgba(239, 68, 68, 0.35); transform: translateY(-2px); }
.tile-screen {
  position: relative;
  aspect-ratio: 16 / 10;
  background:
    radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px) 0 0 / 14px 14px,
    linear-gradient(135deg, #14141b 0%, #0a0a10 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.tile-screen::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.55));
}
.tile-screen .cam {
  position: relative; z-index: 2;
  width: 52px; height: 52px; border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(13, 13, 18, 0.6);
  backdrop-filter: blur(6px);
  color: rgba(255, 255, 255, 0.5);
  display: flex; align-items: center; justify-content: center;
}
.tile-screen .cam svg { width: 22px; height: 22px; }
.tile-screen .rec-badge {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  display: inline-flex; align-items: center; gap: 5px;
  font-family: 'JetBrains Mono', monospace; font-size: 9px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: #f87171; background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(239, 68, 68, 0.3);
  padding: 3px 8px; border-radius: 999px; backdrop-filter: blur(6px);
}
.tile-screen .rec-badge i { width: 5px; height: 5px; border-radius: 50%; background: #ef4444; box-shadow: 0 0 6px rgba(239, 68, 68, 0.9); animation: pulseDot 1.2s infinite; }
.tile-screen .id-tag {
  position: absolute; bottom: 10px; right: 10px; z-index: 2;
  font-family: 'JetBrains Mono', monospace; font-size: 10px; color: rgba(255, 255, 255, 0.6);
  background: rgba(13, 13, 18, 0.7); border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 3px 9px; border-radius: 8px; backdrop-filter: blur(4px);
}
.tile-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 13px; }
.tile-foot b { font-size: 13px; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile-foot .pts { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--brand-300); }

/* ── Yapılandırma modülleri ── */
.mod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.module-card {
  padding: 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: border-color 0.25s, background 0.25s;
}
.module-card:hover { border-color: rgba(79, 140, 255, 0.25); background: rgba(255, 255, 255, 0.03); }
.module-card .mod-body { flex: 1; min-width: 0; }
.module-card .mod-name { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; color: #fff; }
.module-card .mod-desc { font-size: 11.5px; color: rgba(255, 255, 255, 0.4); margin-top: 3px; }
.sev { display: inline-flex; gap: 3px; margin-left: auto; }
.sev i { width: 6px; height: 6px; border-radius: 2px; background: rgba(255, 255, 255, 0.14); }
.sev i.hot { background: #ef4444; box-shadow: 0 0 5px rgba(239, 68, 68, 0.6); }
.sens-row { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.sens-row input[type="range"] { flex: 1; accent-color: var(--brand-500); }
.sens-row span { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--brand-300); min-width: 30px; text-align: right; }

/* ── Sorgulama / detay ── */
.lookup-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.meta-item { padding: 14px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, 0.07); background: rgba(255, 255, 255, 0.02); }
.meta-item .k { font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.4); font-family: 'JetBrains Mono', monospace; }
.meta-item .v { font-size: 13.5px; font-weight: 600; color: #fff; margin-top: 4px; word-break: break-all; font-family: 'JetBrains Mono', monospace; font-size: 12px; }
.reason-list { display: flex; flex-direction: column; gap: 8px; }

/* ── Belgeler / kod ── */
.doc-code {
  background: #050508;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.75);
  overflow-x: auto;
  white-space: pre;
}
.doc-step { display: flex; gap: 14px; align-items: flex-start; }
.doc-step .n {
  width: 30px; height: 30px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: 'JetBrains Mono', monospace; font-size: 13px; font-weight: 700;
  background: linear-gradient(180deg, #5f97ff 0%, #2f6bff 100%); color: #fff;
  box-shadow: 0 6px 16px -6px rgba(79, 140, 255, 0.6);
}
.doc-step h4 { margin: 0 0 4px; font-size: 15px; font-weight: 700; color: #fff; }
.doc-step p { margin: 0; font-size: 13px; color: rgba(255, 255, 255, 0.5); line-height: 1.55; }

/* ── Tarayıcı ── */
.scan-item { padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.06); background: rgba(255, 255, 255, 0.02); display: flex; align-items: center; gap: 12px; }
.scan-item .f { flex: 1; min-width: 0; }
.scan-item .f b { display: block; font-size: 12.5px; font-weight: 600; color: rgba(255, 255, 255, 0.85); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scan-item .f span { font-size: 10.5px; color: rgba(255, 255, 255, 0.35); font-family: 'JetBrains Mono', monospace; }
.progress { flex: 1; height: 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); overflow: hidden; min-width: 80px; }
.progress .bar { height: 100%; width: 0%; border-radius: 999px; background: linear-gradient(90deg, #5f97ff, #2f6bff); transition: width 0.3s; box-shadow: 0 0 8px rgba(79, 140, 255, 0.5); }
.scan-pct { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--brand-300); min-width: 36px; text-align: right; }

/* ── İndir / kart ── */
.dl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.dl-card {
  padding: 24px; border-radius: 20px; border: 1px solid rgba(255, 255, 255, 0.07);
  background: radial-gradient(130% 90% at 0% 0%, rgba(79, 140, 255, 0.08) 0%, transparent 60%), #0d0d12;
  display: flex; flex-direction: column; gap: 12px;
}
.dl-card .dl-ico {
  width: 52px; height: 52px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(79, 140, 255, 0.2), rgba(79, 140, 255, 0.05));
  border: 1px solid rgba(79, 140, 255, 0.28); color: var(--brand-400);
}
.dl-card .dl-ico svg { width: 24px; height: 24px; }
.dl-card h4 { margin: 0; font-size: 15px; font-weight: 700; color: #fff; }
.dl-card p { margin: 0; font-size: 12.5px; color: rgba(255, 255, 255, 0.45); line-height: 1.55; }
.dl-card .meta-line { display: flex; gap: 10px; flex-wrap: wrap; }
.dl-card .meta-line span { font-family: 'JetBrains Mono', monospace; font-size: 10.5px; color: rgba(255, 255, 255, 0.4); }
/* ── Responsive ── */
@media (max-width: 767px) {
  .cyber-sidebar { display: none; }
  .cyber-sidebar.mobile-open {
    display: flex;
    width: 280px;
    top: 12px !important;
    left: 12px !important;
    bottom: auto !important;
    max-height: calc(100vh - 24px);
    border-radius: 22px;
  }
  .cyber-sidebar.mobile-open.collapsed { width: 280px; }
  .cyber-sidebar.mobile-open .sb-name { display: block; }
  .cyber-sidebar.mobile-open .sb-mark { width: 36px; }
  .cyber-sidebar.mobile-open #sb-collapse { display: flex; }
  .cyber-sidebar.mobile-open .sb-server,
  .cyber-sidebar.mobile-open .uc-info,
  .cyber-sidebar.mobile-open .uc-exit { display: block; }
  .cyber-sidebar.mobile-open .sec { display: flex; }
  .cyber-sidebar.mobile-open .plat-head { display: flex; }
  .cyber-sidebar.mobile-open .plat-seg { display: grid; }
  .cyber-sidebar.mobile-open .nav-flat { padding: 5px 10px 5px 5px; margin: 3px 4px; justify-content: flex-start; gap: 0.7rem; }
  .cyber-sidebar.mobile-open .nav-flat .label { display: block; }
  .cyber-sidebar.mobile-open .sb-expand { display: none !important; }
  .cyber-sidebar.mobile-open .cyber-user-card { justify-content: flex-start; }
  .mobile-menu { display: flex; }
  .main-content, .main-content.sidebar-closed { left: 0; }
  .page { padding: 16px 14px 64px; }
}