:root {
  --bg-main: #060b18;
  --bg-card: rgba(13, 23, 53, 0.78);
  --bg-card-hover: rgba(18, 32, 74, 0.85);
  --border-card: rgba(0, 240, 255, 0.14);
  --border-card-bright: rgba(0, 240, 255, 0.45);
  --cyan: #00f0ff;
  --cyan-glow: 0 0 16px rgba(0, 240, 255, 0.4);
  --cyan-glow-lg: 0 0 30px rgba(0, 240, 255, 0.55);
  --emerald: #00e676;
  --amber: #ff9100;
  --red: #ff3366;
  --purple: #b5179e;
  --text-main: #f0f6fc;
  --text-muted: #8b9bb4;
  --text-dim: #52637f;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
}

.module-source-notice.unavailable {
  padding: 10px 14px;
  border: 1px solid rgba(245, 158, 11, 0.45);
  border-radius: 10px;
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.08);
  font-size: 13px;
  font-weight: 700;
}

.module-source-notice.simulation {
  padding: 10px 14px;
  border: 1px solid rgba(168, 85, 247, 0.6);
  border-radius: 10px;
  color: #fde68a;
  background: linear-gradient(90deg, rgba(168, 85, 247, 0.18), rgba(245, 158, 11, 0.12));
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-main);
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(0, 180, 216, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(114, 9, 183, 0.06) 0%, transparent 45%);
  color: var(--text-main);
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  user-select: none;
}

/* APP SHELL GRID */
.app-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

/* SIDEBAR */
.sidebar {
  background: rgba(8, 14, 34, 0.95);
  backdrop-filter: blur(20px);
  border-right: 1px solid var(--border-card);
  display: flex;
  flex-direction: column;
  padding: 18px 14px 14px 14px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 240, 255, 0.2) transparent;
}
.sidebar::-webkit-scrollbar {
  display: block;
  width: 4px;
}
.sidebar::-webkit-scrollbar-track {
  background: transparent;
}
.sidebar::-webkit-scrollbar-thumb {
  background: rgba(0, 240, 255, 0.2);
  border-radius: 4px;
}
.sidebar::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 240, 255, 0.4);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  cursor: pointer;
  padding: 0 4px;
}
.brand-avatar-ring {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  padding: 2px;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  box-shadow: var(--cyan-glow);
  display: flex;
  align-items: center;
  justify-content: center;
}
.brand-avatar-img,
.brand-avatar-video {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

/* Android WebView may paint its native play glyph for a frame even with
   controls disabled. Keep the media element as a decoder only and present
   its frames on a canvas surface, where browser media chrome cannot appear. */
.bilge-avatar-canvas-host {
  position: relative;
  overflow: hidden;
}
.bilge-avatar-source-video {
  position: absolute !important;
  inset: 0;
  visibility: hidden !important;
  pointer-events: none !important;
}
.bilge-avatar-canvas {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: #020714;
  pointer-events: none;
}
.brand-avatar-video {
  background: #020714;
  pointer-events: none;
}

/* Android WebView must not flash its native play overlay while the muted
   avatar starts, loops, or changes state. The surrounding avatar surface
   remains the single interaction target. */
.hero-video,
.incident-video,
.bilge-scope-video {
  pointer-events: none;
  background: #020714;
}

.brand-avatar-video::-webkit-media-controls,
.hero-video::-webkit-media-controls,
.incident-video::-webkit-media-controls,
.bilge-scope-video::-webkit-media-controls,
.brand-avatar-video::-webkit-media-controls-start-playback-button,
.hero-video::-webkit-media-controls-start-playback-button,
.incident-video::-webkit-media-controls-start-playback-button,
.bilge-scope-video::-webkit-media-controls-start-playback-button,
.brand-avatar-video::-webkit-media-controls-overlay-play-button,
.hero-video::-webkit-media-controls-overlay-play-button,
.incident-video::-webkit-media-controls-overlay-play-button,
.bilge-scope-video::-webkit-media-controls-overlay-play-button {
  display: none !important;
  -webkit-appearance: none;
  opacity: 0 !important;
}
.brand-name {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #fff;
  display: block;
}
.brand-motto {
  font-size: 10.5px;
  color: var(--cyan);
  font-weight: 500;
  letter-spacing: 0.5px;
  display: block;
}

/* NAV ITEMS & CATEGORIES */
.nav-menu {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.nav-category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px 4px 10px;
  margin-top: 8px;
}
.nav-category-title {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.1px;
  color: rgba(0, 240, 255, 0.75);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  text-align: left;
}
.nav-item:hover {
  background: rgba(0, 240, 255, 0.06);
  color: var(--text-main);
}
.nav-item.active {
  background: rgba(0, 240, 255, 0.12);
  border: 1px solid var(--border-card-bright);
  color: var(--cyan);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}
.nav-icon {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
}
.nav-badge {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
}
.nav-badge.alert { background: var(--red); color: #fff; }
.nav-badge.warning { background: var(--amber); color: #000; }
.nav-badge.danger { background: var(--red); color: #fff; }
.nav-badge.success {
  background: rgba(0, 230, 118, 0.15);
  color: var(--emerald);
  border: 1px solid rgba(0, 230, 118, 0.35);
}

/* ACTIVE ALERT INDICATOR SYSTEM */
@keyframes badgePulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 51, 102, 0.7);
  }
  50% {
    transform: scale(1.08);
    box-shadow: 0 0 10px 3px rgba(255, 51, 102, 0.45);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 51, 102, 0);
  }
}
@keyframes badgePulseAmber {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 145, 0, 0.7);
  }
  50% {
    transform: scale(1.08);
    box-shadow: 0 0 10px 3px rgba(255, 145, 0, 0.45);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 145, 0, 0);
  }
}
.pulse-badge {
  animation: badgePulse 2s infinite ease-in-out;
}
.pulse-badge.warning {
  animation: badgePulseAmber 2s infinite ease-in-out;
}

/* COLLAPSIBLE ACCORDION (BAS-AÇ DİĞER MODÜLLER) */
.nav-collapsible-wrapper {
  display: flex;
  flex-direction: column;
  margin-top: 10px;
}
.nav-collapsible-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  user-select: none;
}
.nav-collapsible-trigger:hover {
  background: rgba(0, 240, 255, 0.06);
  border-color: rgba(0, 240, 255, 0.25);
  color: var(--text-main);
}
.nav-collapsible-trigger.active-sub {
  border-color: rgba(0, 240, 255, 0.4);
  background: rgba(0, 240, 255, 0.08);
  color: var(--cyan);
}
.collapsible-trigger-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.collapsible-trigger-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-counter-pill {
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-dim);
}
.collapse-arrow {
  width: 15px;
  height: 15px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--text-dim);
}
.nav-collapsible-trigger[aria-expanded="true"] .collapse-arrow {
  transform: rotate(180deg);
  color: var(--cyan);
}
.nav-collapsible-content {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-left: 8px;
  margin-top: 6px;
  border-left: 2px solid rgba(0, 240, 255, 0.15);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease;
}
.nav-collapsible-content.expanded {
  max-height: 900px;
  opacity: 1;
  pointer-events: auto;
}
.nav-item-sub {
  padding: 8px 10px;
  font-size: 13px;
  border-radius: var(--radius-sm);
}
.nav-item-sub .nav-icon {
  width: 17px;
  height: 17px;
  opacity: 0.85;
}

.sidebar-footer {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.sidebar-quote {
  font-size: 11px;
  font-style: italic;
  color: var(--text-dim);
  line-height: 1.5;
}
.sidebar-signature {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: var(--cyan);
  margin-top: 4px;
}

/* MAIN STAGE */
.main-stage {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
  padding: 18px 28px 12px 28px;
  background: transparent;
}

/* TOP HEADER */
.top-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.greeting-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.highlight-cyan {
  color: var(--cyan);
  text-shadow: 0 0 12px rgba(0, 240, 255, 0.4);
}
.greeting-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}
.header-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(0, 240, 255, 0.05);
  border: 1px solid rgba(0, 240, 255, 0.16);
  border-radius: 20px;
  padding: 3px 10px;
  margin-top: 4px;
}
.header-status-text {
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
  letter-spacing: 0.1px;
}

.header-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}
.live-clock-badge {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  padding: 7px 14px;
  border-radius: var(--radius-md);
  font-size: 12.5px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
}
.clock-time {
  font-weight: 700;
  color: var(--cyan);
}

.header-icon-btn {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  color: var(--text-muted);
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.header-icon-btn:hover {
  background: rgba(0, 240, 255, 0.12);
  border-color: rgba(0, 240, 255, 0.4);
  color: var(--cyan);
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.25);
}
.header-icon-svg {
  width: 19px;
  height: 19px;
}
.header-badge-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  min-width: 17px;
  height: 17px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
  border: 2px solid #060b18;
}

.header-settings-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.25);
  color: var(--cyan);
  padding: 8px 14px;
  border-radius: var(--radius-md);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}
.header-settings-btn:hover {
  background: rgba(0, 240, 255, 0.18);
  border-color: var(--cyan);
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.35);
  transform: translateY(-1px);
}
.settings-btn-label {
  font-weight: 700;
}

.theme-toggle-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  color: var(--text-muted);
  padding: 8px;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.user-profile-pill {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  padding: 5px 12px 5px 6px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.user-profile-pill:hover {
  border-color: rgba(0, 240, 255, 0.4);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.2);
}
.avatar-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1d4ed8, #0284c7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}
.user-name {
  font-size: 12px;
  font-weight: 700;
  display: block;
}
.user-role {
  font-size: 10px;
  color: var(--text-muted);
  display: block;
}
.dropdown-chevron {
  width: 14px;
  height: 14px;
  color: var(--text-muted);
}

/* STATE SIMULATION BAR */
.state-sim-bar {
  background: rgba(10, 18, 42, 0.7);
  border: 1px dashed rgba(0, 240, 255, 0.25);
  border-radius: var(--radius-sm);
  padding: 6px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  overflow-x: auto;
  font-size: 12px;
}
.sim-label {
  font-weight: 700;
  color: var(--cyan);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 8px var(--emerald);
  animation: pulse 1.5s infinite;
}
@keyframes pulse {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}
.sim-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.15s ease;
}
.sim-btn:hover { background: rgba(0, 240, 255, 0.2); border-color: var(--cyan); }
.sim-warning { color: var(--amber); border-color: rgba(255, 145, 0, 0.4); }
.sim-critical { color: var(--red); border-color: rgba(255, 51, 102, 0.4); }
.sim-emergency { background: rgba(255, 51, 102, 0.2); color: #fff; border-color: var(--red); font-weight: 800; }
.sim-success { color: var(--emerald); border-color: rgba(0, 230, 118, 0.4); }

/* MODULE CONTAINER */
.module-container {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border-card) transparent;
  padding-right: 4px;
}

/* ============================================================ */
/* DASHBOARD LAYOUT & COMPONENTS (Hero Avatar & Widgets)        */
/* ============================================================ */
.dash-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 16px;
  height: 100%;
}

/* HERO AVATAR CONTAINER */
.hero-avatar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-y: auto;
  overflow-x: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  min-width: 0;
}
.hero-top-row {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 20px;
  align-items: center;
}
.hero-video-wrapper {
  width: min(360px, 100%);
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 26px;
  overflow: hidden;
  position: relative;
  box-shadow: var(--cyan-glow-lg);
  border: 2px solid var(--cyan);
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-assistant-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

/*
 * Android tablets commonly expose a viewport around 1100 CSS pixels even
 * when the physical panel is 2560 pixels wide. At that width the two-column
 * dashboard remains useful, but the avatar and assistant cannot safely share
 * the narrower left card. Stack those two elements inside the card so neither
 * the conversation nor its composer can slide underneath the sidebar.
 */
@media (min-width: 900px) and (max-width: 1350px) {
  .hero-top-row {
    grid-template-columns: minmax(0, 1fr);
    justify-items: stretch;
    align-items: start;
    gap: 12px;
  }

  .hero-video-wrapper {
    width: min(300px, 100%);
    height: auto;
    aspect-ratio: 16 / 9;
    justify-self: center;
  }

  .hero-assistant-box {
    width: 100%;
    gap: 8px;
  }
}
.hero-identity-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.voice-state-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid rgba(0, 230, 118, 0.35);
  color: var(--emerald);
  background: rgba(0, 230, 118, 0.08);
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}
.voice-state-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}
.voice-state-badge[data-state="listening"] { color: var(--cyan); border-color: rgba(0,240,255,.45); background: rgba(0,240,255,.1); }
.voice-state-badge[data-state="thinking"] { color: var(--amber); border-color: rgba(255,145,0,.45); background: rgba(255,145,0,.1); }
.voice-state-badge[data-state="speaking"] { color: #b68cff; border-color: rgba(182,140,255,.45); background: rgba(182,140,255,.1); }
.voice-state-badge[data-state="error"] { color: var(--red); border-color: rgba(255,51,102,.45); background: rgba(255,51,102,.1); }
[data-bilge-voice-button].is-active { filter: drop-shadow(0 0 10px rgba(0,240,255,.8)); }
.hero-badge-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--cyan);
}
.hero-speech-bubble {
  background: rgba(9, 17, 43, 0.9);
  border: 1px solid var(--border-card-bright);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  position: relative;
}
.hero-speech-bubble::before {
  content: '';
  position: absolute;
  left: -8px;
  top: 20px;
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-right: 8px solid var(--border-card-bright);
}

.quick-action-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip-btn {
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.25);
  color: var(--cyan);
  font-size: 12px;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.chip-btn:hover {
  background: var(--cyan);
  color: #000;
  box-shadow: var(--cyan-glow);
}

.hero-input-bar {
  display: flex;
  align-items: center;
  background: rgba(8, 14, 34, 0.95);
  border: 1px solid var(--border-card-bright);
  border-radius: 30px;
  padding: 6px 14px;
  margin-top: 8px;
  gap: 10px;
}
.hero-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 14px;
}
.input-action-btn {
  background: transparent;
  border: none;
  color: var(--cyan);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tablet-attachment-shell { position: relative; display: flex; }
.tablet-attachment-menu {
  position: absolute;
  left: 0;
  bottom: calc(100% + 12px);
  z-index: 40;
  display: grid;
  grid-template-columns: repeat(2, minmax(110px, 1fr));
  gap: 7px;
  min-width: 250px;
  padding: 10px;
  border: 1px solid var(--border-card-bright);
  border-radius: 14px;
  background: rgba(5, 12, 30, .98);
  box-shadow: 0 18px 44px rgba(0,0,0,.55);
}
.tablet-attachment-menu[hidden] { display: none; }
.tablet-attachment-menu button {
  border: 1px solid rgba(0,240,255,.22);
  border-radius: 10px;
  padding: 10px;
  color: var(--cyan);
  background: rgba(0,240,255,.07);
  cursor: pointer;
  text-align: left;
}
.tablet-attachment-status {
  color: var(--cyan);
  font-size: 11px;
  padding: 0 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* MORNING BRIEFING AUDIO PLAYER */
.briefing-card {
  margin-top: 16px;
  background: rgba(10, 19, 48, 0.85);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 16px;
}
.briefing-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.briefing-title-group h3 {
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.briefing-title-group p {
  font-size: 12px;
  color: var(--text-muted);
}
.play-all-btn {
  background: linear-gradient(135deg, #0284c7, var(--cyan));
  color: #000;
  font-weight: 700;
  font-size: 12px;
  border: none;
  border-radius: 20px;
  padding: 6px 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}
.briefing-tracks {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.track-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.03);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s ease;
}
.track-row:hover { background: rgba(0, 240, 255, 0.08); }
.track-num {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  color: var(--cyan);
  margin-right: 12px;
}
.track-duration {
  color: var(--text-dim);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
}

/* RIGHT WIDGET STACK */
.right-widgets {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.widget-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 8px 12px;
}
.widget-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.widget-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.widget-link {
  font-size: 11px;
  color: var(--cyan);
  cursor: pointer;
  text-decoration: none;
}

/* WEATHER GRID */
.weather-cities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.city-weather-cell {
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
  padding: 6px 8px;
  text-align: center;
}
.city-name { font-size: 11px; color: var(--text-muted); font-weight: 600; }
.city-temp { font-size: 17px; font-weight: 800; color: #fff; margin: 2px 0; }
.city-desc { font-size: 10px; color: var(--cyan); }

/* CRYPTO WIDGET */
.crypto-mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 6px;
}
.crypto-cell {
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
}
.crypto-cell-val { font-size: 15px; font-weight: 800; margin-top: 2px; }
.crypto-alert-strip {
  background: rgba(255, 145, 0, 0.1);
  border: 1px solid rgba(255, 145, 0, 0.3);
  color: var(--amber);
  font-size: 10px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* SERVER OVERVIEW GAUGES */
.server-gauges-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  text-align: center;
}
.gauge-item {
  background: rgba(255, 255, 255, 0.03);
  padding: 10px;
  border-radius: var(--radius-sm);
}
.gauge-pct {
  font-size: 18px;
  font-weight: 800;
  color: var(--emerald);
  margin: 4px 0;
}
.gauge-label { font-size: 10px; color: var(--text-muted); }

/* FOOTER STRIP */
.bottom-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: rgba(8, 14, 34, 0.9);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 10px;
}
.status-dot-green {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald);
  margin-right: 6px;
}
.strip-sep { margin: 0 8px; opacity: 0.4; }
.ota-tag {
  color: var(--cyan);
  cursor: pointer;
  font-weight: 600;
}

/* ============================================================ */
/* UNIFIED DAYNEX METRIC & KPI DESIGN CULTURE                  */
/* ============================================================ */
.daynex-kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}
.daynex-kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  text-align: center;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.daynex-kpi-card:hover {
  border-color: var(--border-card-bright);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 240, 255, 0.12);
}
.daynex-kpi-card .kpi-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.daynex-kpi-card .kpi-value {
  font-size: 23px;
  font-weight: 800;
  color: #fff;
  margin: 2px 0;
  font-family: 'JetBrains Mono', 'Plus Jakarta Sans', monospace;
  letter-spacing: -0.5px;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.daynex-kpi-card .kpi-sub {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 1200px) {
  .daynex-kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 800px) {
  .daynex-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ============================================================ */
/* UNIFIED DAYNEX SUBNAV PILLS                                  */
/* ============================================================ */
.mon-subnav {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}
.mon-subnav::-webkit-scrollbar { display: none; }
.mon-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-card);
  color: var(--text-muted);
  padding: 7px 15px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.mon-pill:hover {
  background: rgba(0, 240, 255, 0.1);
  color: var(--cyan);
  border-color: rgba(0, 240, 255, 0.3);
}
.mon-pill.active {
  background: var(--cyan);
  color: #030816;
  border-color: var(--cyan);
  font-weight: 800;
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.35);
}

.table-glass {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-top: 8px;
}
.table-glass th {
  text-align: left;
  padding: 10px 12px;
  color: var(--text-dim);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border-card);
}
.table-glass td {
  padding: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.status-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
}
.status-online { background: rgba(0, 230, 118, 0.15); color: var(--emerald); }
.status-warning { background: rgba(255, 145, 0, 0.15); color: var(--amber); }

/* COMPASS & TOOLS */
.compass-dial {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 2px solid var(--cyan);
  box-shadow: var(--cyan-glow);
  margin: 16px auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.compass-needle {
  width: 4px;
  height: 120px;
  background: linear-gradient(to bottom, var(--cyan) 50%, var(--red) 50%);
  border-radius: 2px;
  transform: rotate(315deg);
  transition: transform 0.5s ease;
}

/* ============================================================ */
/* EXTENDED COCKPIT MODULE STYLES                                */
/* ============================================================ */

/* NOTIFICATION CENTER */
.filter-pills-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.filter-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-card);
  border-radius: 20px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.filter-pill.active {
  background: var(--cyan);
  color: #000;
  font-weight: 700;
  border-color: var(--cyan);
  box-shadow: var(--cyan-glow);
}
.pill-count {
  background: rgba(0, 0, 0, 0.25);
  padding: 1px 6px;
  border-radius: 10px;
  font-size: 10px;
}
.filter-pill.active .pill-count {
  background: #000;
  color: #fff;
}

/* FLYOUT DETAIL PANEL */
.flyout-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.flyout-title {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
}

/* CRYPTO & PORTFOLIO */
.binance-banner {
  background: linear-gradient(90deg, rgba(240, 185, 11, 0.12) 0%, rgba(13, 23, 53, 0.78) 100%);
  border: 1px solid rgba(240, 185, 11, 0.35);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.binance-logo-text {
  font-weight: 800;
  color: #f0b90b;
  font-size: 16px;
  letter-spacing: 1px;
}

/* DONUT CHART (CSS Conic Gradient) */
.donut-circle {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  position: relative;
}
.donut-inner {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
}

/* BRAND CARDS GRID */
.brand-card-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.brand-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.brand-card:hover {
  border-color: var(--border-card-bright);
}
.brand-header-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-avatar-box {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #fff;
  font-size: 14px;
}

/* TOGGLE SWITCH */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(255,255,255,0.1);
  transition: .3s;
  border-radius: 24px;
  border: 1px solid var(--border-card);
}
.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}
input:checked + .slider {
  background-color: var(--cyan);
}
input:checked + .slider:before {
  transform: translateX(20px);
}

/* VOICE WAVE ANIMATION */
.voice-wave {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 16px;
}
.voice-bar {
  width: 3px;
  height: 100%;
  background: var(--cyan);
  border-radius: 2px;
  animation: wave 1s ease-in-out infinite alternate;
}
.voice-bar:nth-child(2) { animation-delay: 0.2s; height: 60%; }
.voice-bar:nth-child(3) { animation-delay: 0.4s; height: 80%; }
.voice-bar:nth-child(4) { animation-delay: 0.1s; height: 40%; }
@keyframes wave {
  0% { transform: scaleY(0.3); }
  100% { transform: scaleY(1); }
}

/* ============================================================ */
/* DAYNEX & WOYNEX ENTERPRISE MONITOR STYLES                   */
/* ============================================================ */
.mon-subnav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.mon-subnav::-webkit-scrollbar { display: none; }
.mon-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-card);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.mon-pill:hover {
  background: rgba(0, 240, 255, 0.1);
  color: var(--cyan);
  border-color: rgba(0, 240, 255, 0.3);
}
.mon-pill.active {
  background: var(--cyan);
  color: #030816;
  border-color: var(--cyan);
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.4);
}

.mon-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  background: rgba(6, 11, 24, 0.85);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 12px 16px;
}
.mon-filter-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.mon-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.15s;
}
.mon-chip.active {
  background: rgba(0, 240, 255, 0.15);
  color: var(--cyan);
  border-color: var(--cyan);
}
.mon-search-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-card);
  border-radius: 20px;
  padding: 6px 14px;
  color: #fff;
  font-size: 12px;
  outline: none;
  min-width: 180px;
  transition: border-color 0.2s;
}
.mon-search-box:focus {
  border-color: var(--cyan);
}

/* TARGET CARD & GRID */
.mon-targets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 14px;
}
.mon-target-card {
  background: rgba(8, 15, 38, 0.8);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}
.mon-target-card:hover {
  border-color: rgba(0, 240, 255, 0.35);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  transform: translateY(-2px);
}
.mon-target-card.status-down-card {
  border-color: rgba(255, 51, 102, 0.6);
  background: rgba(255, 51, 102, 0.05);
}
.target-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.target-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}
.target-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.target-name {
  font-weight: 800;
  font-size: 14px;
  color: #fff;
  letter-spacing: -0.2px;
}
.target-host {
  font-size: 11px;
  color: var(--text-dim);
  font-family: 'JetBrains Mono', monospace;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 170px;
}
.target-status-pill {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.target-status-up {
  background: rgba(0, 230, 118, 0.15);
  color: var(--emerald);
  border: 1px solid rgba(0, 230, 118, 0.3);
}
.target-status-down {
  background: rgba(255, 51, 102, 0.2);
  color: var(--red);
  border: 1px solid rgba(255, 51, 102, 0.4);
  animation: pulseLive 1.5s infinite;
}

/* 24-HOUR SPARKBAR */
.sparkbar-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sparkbar-label-row {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 600;
}
.sparkbar-container {
  display: flex;
  gap: 2.5px;
  height: 14px;
  align-items: flex-end;
  background: rgba(255, 255, 255, 0.02);
  padding: 2px 3px;
  border-radius: 4px;
}
.sparkbar {
  flex: 1;
  height: 100%;
  border-radius: 2px;
  transition: all 0.2s;
}
.sparkbar.up {
  background: var(--emerald);
}
.sparkbar.down {
  background: var(--red);
  box-shadow: 0 0 6px var(--red);
}
.sparkbar.empty {
  background: rgba(255, 255, 255, 0.08);
}

.target-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  color: var(--text-muted);
  padding-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.target-latency {
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  color: var(--cyan);
}
.target-actions-row {
  display: flex;
  gap: 6px;
  align-items: center;
}
.btn-icon-mon {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.15s;
}
.btn-icon-mon:hover {
  background: var(--cyan);
  color: #030816;
  border-color: var(--cyan);
}
.btn-icon-danger:hover {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}

/* MODAL STYLES */
.bilge-modal-backdrop {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(3, 8, 22, 0.85);
  backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.bilge-modal-card {
  background: #09112b;
  border: 1px solid var(--border-card-bright);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 600px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-height: 90vh;
}
.bilge-modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-card);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.bilge-modal-title {
  font-weight: 800;
  font-size: 16px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}
.bilge-modal-body {
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.bilge-modal-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border-card);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.form-input-mon {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: #fff;
  font-size: 13px;
  outline: none;
  font-family: inherit;
}
.form-input-mon:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}
.form-label-mon {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 4px;
  display: block;
}

/* ============================================================ */
/* LIVE STREAM & ORBITAL TOPOLOGY (CANLI AKIŞ)                 */
/* ============================================================ */

.apk-download-header-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.22), rgba(0, 240, 255, 0.25));
  border: 1px solid var(--emerald);
  border-radius: 20px;
  padding: 8px 15px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.35);
  transition: all 0.25s ease;
  letter-spacing: 0.5px;
  text-decoration: none;
}
.apk-download-header-btn:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.6);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.38), rgba(0, 240, 255, 0.45));
  color: #fff;
}
.nav-item-apk {
  background: rgba(16, 185, 129, 0.08) !important;
  border: 1px solid rgba(16, 185, 129, 0.25) !important;
  color: var(--emerald) !important;
  font-weight: 700 !important;
}
.nav-item-apk:hover {
  background: rgba(16, 185, 129, 0.18) !important;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.3) !important;
}

.live-stream-header-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.18), rgba(0, 150, 255, 0.28));
  border: 1px solid var(--cyan);
  border-radius: 20px;
  padding: 8px 16px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.35);
  transition: all 0.25s ease;
  letter-spacing: 0.5px;
}
.live-stream-header-btn:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.55);
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.3), rgba(0, 180, 255, 0.45));
}
.live-pulse-beacon {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 10px var(--emerald), 0 0 20px var(--emerald);
  animation: beaconPulse 1.4s ease-in-out infinite;
}
@keyframes beaconPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(1.4); }
}

.nav-item-live {
  background: rgba(0, 240, 255, 0.08) !important;
  border: 1px solid rgba(0, 240, 255, 0.25) !important;
  color: var(--cyan) !important;
  font-weight: 700 !important;
}
.nav-item-live:hover {
  background: rgba(0, 240, 255, 0.16) !important;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.25);
}


/* FULLSCREEN LIVE WATCH OVERLAY (SCREENSAVER / LIVE MONITOR) */
.live-watch-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #020612;
  background-image: 
    radial-gradient(circle at 50% 50%, rgba(0, 180, 255, 0.14) 0%, transparent 68%),
    radial-gradient(circle at 80% 25%, rgba(16, 185, 129, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 20% 75%, rgba(139, 92, 246, 0.08) 0%, transparent 50%);
  z-index: 1000;
  display: none;
  flex-direction: column;
  overflow: hidden;
  user-select: none;
}
.live-watch-overlay.active {
  display: flex;
  animation: fadeIn 0.4s ease-out;
}

/* LIVE HUD HEADER & BUTTONS */
.live-hud-header {
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(0, 240, 255, 0.16);
  background: rgba(4, 9, 22, 0.92);
  backdrop-filter: blur(16px);
  z-index: 25;
}

.live-hud-btn {
  background: rgba(0, 240, 255, 0.06);
  border: 1px solid rgba(0, 240, 255, 0.22);
  border-radius: 12px;
  color: #e2e8f0;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  user-select: none;
  outline: none;
}
.live-hud-btn:hover {
  background: rgba(0, 240, 255, 0.16);
  border-color: var(--cyan);
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.25);
  color: #fff;
}
.live-hud-btn:active {
  transform: scale(0.97);
}

.live-hud-btn-primary {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.22), rgba(0, 119, 255, 0.35));
  border: 1px solid var(--cyan);
  border-radius: 12px;
  color: #fff;
  padding: 8px 18px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.28);
  transition: all 0.2s ease;
  user-select: none;
  outline: none;
}
.live-hud-btn-primary:hover {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.38), rgba(0, 119, 255, 0.5));
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.5);
  transform: translateY(-1px);
}
.live-hud-btn-primary:active {
  transform: scale(0.97);
}

/* LIVE SCOPE COCKPIT GRID (3-WING TACTICAL STAGE) */
.topology-stage {
  position: relative;
  width: 100%;
  flex: 1;
  min-height: 580px;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  overflow: hidden;
  padding: 12px 20px;
  gap: 16px;
  box-sizing: border-box;
}

/* WINGS (LEFT & RIGHT TACTICAL DATA SCOPES) */
.scope-wing {
  width: 330px;
  max-width: 360px;
  background: rgba(6, 14, 32, 0.82);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 240, 255, 0.22);
  border-radius: 18px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6), inset 0 0 15px rgba(0, 240, 255, 0.04);
  z-index: 15;
  overflow: hidden;
}
.scope-wing-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(0, 240, 255, 0.16);
}
.scope-wing-title {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.scope-targets-scroll {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-right: 4px;
}
.scope-targets-scroll::-webkit-scrollbar {
  width: 4px;
}
.scope-targets-scroll::-webkit-scrollbar-thumb {
  background: rgba(0, 240, 255, 0.3);
  border-radius: 4px;
}

/* TARGET TELEMETRY CARD */
.scope-target-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.2s ease;
}
.scope-target-card:hover {
  background: rgba(0, 240, 255, 0.09);
  border-color: rgba(0, 240, 255, 0.4);
  transform: translateX(3px);
}
.scope-target-card.focused {
  background: rgba(0, 240, 255, 0.16);
  border-color: var(--cyan);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.35);
  transform: translateX(4px);
}
.scope-target-card.offline {
  background: rgba(255, 51, 102, 0.14);
  border-color: var(--red);
  box-shadow: 0 0 15px rgba(255, 51, 102, 0.35);
  animation: pulseOffline 1.2s infinite;
}
@keyframes pulseOffline {
  0%, 100% { border-color: var(--red); }
  50% { border-color: rgba(255, 51, 102, 0.2); }
}

.scope-target-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}
.scope-target-name {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
.scope-target-host {
  font-size: 10px;
  color: var(--text-dim);
  font-family: 'JetBrains Mono', monospace;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
.scope-target-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.scope-target-latency {
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  color: var(--cyan);
}
.scope-ping-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 8px var(--emerald);
}
.scope-ping-indicator.down {
  background: var(--red);
  box-shadow: 0 0 8px var(--red);
}

/* CENTER TACTICAL STAGE (BİLGE HOLOGRAPHIC PORTAL) */
.scope-center-stage {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* ORBITAL BACKGROUND ELEMENTS */
.orbital-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(0, 240, 255, 0.16);
  pointer-events: none;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.orbital-ring.ring-inner { width: 370px; height: 370px; border-color: rgba(0, 240, 255, 0.25); }
.orbital-ring.ring-middle { width: 560px; height: 560px; border-color: rgba(0, 240, 255, 0.14); }
.orbital-ring.ring-outer { width: 780px; height: 780px; border-color: rgba(0, 240, 255, 0.08); }

.radar-blade {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 560px;
  height: 560px;
  margin-left: -280px;
  margin-top: -280px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(0, 240, 255, 0.24) 0deg, rgba(0, 240, 255, 0.03) 55deg, transparent 85deg);
  animation: radarSpin 5s linear infinite;
  pointer-events: none;
}
@keyframes radarSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* BİLGE VIDEO HOLOGRAPHIC PORTAL */
.bilge-scope-portal {
  position: relative;
  width: 270px;
  height: 270px;
  border-radius: 50%;
  background: radial-gradient(circle, #081630 0%, #030a17 85%);
  border: 2px solid var(--cyan);
  box-shadow: 0 0 50px rgba(0, 240, 255, 0.4), inset 0 0 30px rgba(0, 240, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 10;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.bilge-scope-portal:hover {
  transform: scale(1.04);
  box-shadow: 0 0 65px rgba(0, 240, 255, 0.65), inset 0 0 40px rgba(0, 240, 255, 0.4);
}
.bilge-scope-portal.portal-warning {
  border-color: var(--amber);
  box-shadow: 0 0 50px rgba(255, 170, 0, 0.5), inset 0 0 30px rgba(255, 170, 0, 0.3);
}
.bilge-scope-portal.portal-critical {
  border-color: var(--red);
  box-shadow: 0 0 60px rgba(255, 51, 102, 0.7), inset 0 0 30px rgba(255, 51, 102, 0.4);
  animation: pulsePortalAlert 1.5s infinite;
}
.bilge-scope-portal.portal-success {
  border-color: var(--emerald);
  box-shadow: 0 0 55px rgba(0, 230, 118, 0.55), inset 0 0 30px rgba(0, 230, 118, 0.3);
}
@keyframes pulsePortalAlert {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.bilge-scope-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  pointer-events: none;
  background: transparent;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* PORTAL HUD TICK OVERLAY */
.scope-hud-ticks {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px dashed rgba(0, 240, 255, 0.35);
  pointer-events: none;
  animation: rotateHudTicks 30s linear infinite;
}
@keyframes rotateHudTicks {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* PORTAL TOP & BOTTOM BADGES */
.scope-portal-badge-top {
  position: absolute;
  top: 18px;
  background: rgba(3, 10, 24, 0.85);
  border: 1px solid rgba(0, 240, 255, 0.35);
  border-radius: 14px;
  padding: 4px 14px;
  font-size: 11px;
  font-weight: 800;
  color: var(--cyan);
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  z-index: 12;
  text-transform: uppercase;
}

.scope-portal-badge-bottom {
  position: absolute;
  bottom: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: rgba(3, 10, 24, 0.9);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 16px;
  padding: 8px 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  z-index: 12;
  max-width: 480px;
  text-align: center;
}
.scope-focus-title {
  font-size: 11px;
  font-weight: 800;
  color: var(--cyan);
  letter-spacing: 0.5px;
}
.scope-speech-text {
  font-size: 12px;
  color: #fff;
  font-weight: 600;
  line-height: 1.4;
}

/* OSCILLOSCOPE & BOTTOM TELEMETRY */
.scope-bottom-telemetry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 20px;
  border-top: 1px solid rgba(0, 240, 255, 0.14);
  background: rgba(4, 9, 20, 0.92);
  backdrop-filter: blur(12px);
  z-index: 25;
}
.oscilloscope-canvas {
  width: 140px;
  height: 28px;
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: 6px;
  background: rgba(0, 20, 40, 0.6);
}

/* ============================================================ */
/* BİLGE MOOD STATES & HOUSTON ANOMALY PORTAL                   */
/* ============================================================ */
.mood-badge-nominal {
  background: rgba(0, 230, 118, 0.14) !important;
  border: 1px solid var(--emerald) !important;
  color: #a7f3d0 !important;
  box-shadow: 0 0 15px rgba(0, 230, 118, 0.35) !important;
}

.mood-badge-houston {
  background: rgba(255, 30, 80, 0.22) !important;
  border: 1px solid #ff1e50 !important;
  color: #ffb4c5 !important;
  box-shadow: 0 0 25px rgba(255, 30, 80, 0.7) !important;
  animation: pulseHoustonBadge 1.2s infinite ease-in-out !important;
}

@keyframes pulseHoustonBadge {
  0%, 100% { transform: scale(1); box-shadow: 0 0 18px rgba(255, 30, 80, 0.5); }
  50% { transform: scale(1.05); box-shadow: 0 0 32px rgba(255, 30, 80, 0.9); }
}

.bilge-scope-portal.portal-nominal {
  border-color: #00e676 !important;
  box-shadow: 0 0 60px rgba(0, 230, 118, 0.45), inset 0 0 35px rgba(0, 230, 118, 0.25) !important;
}

.bilge-scope-portal.portal-houston-alert {
  border-color: #ff1e50 !important;
  box-shadow: 0 0 85px rgba(255, 30, 80, 0.8), inset 0 0 45px rgba(255, 30, 80, 0.5) !important;
  animation: pulsePortalHouston 1.2s infinite ease-in-out !important;
}

@keyframes pulsePortalHouston {
  0%, 100% { transform: scale(1); border-color: #ff1e50; }
  50% { transform: scale(1.06); border-color: #ff6b8b; }
}

.scope-center-stage.houston-alert .radar-blade {
  background: conic-gradient(from 0deg, rgba(255, 30, 80, 0.35) 0deg, rgba(255, 30, 80, 0.05) 60deg, transparent 90deg) !important;
  animation-duration: 2.5s !important;
}

.scope-center-stage.houston-alert .orbital-ring {
  border-color: rgba(255, 30, 80, 0.35) !important;
}

/* ============================================================ */
/* TOP VIEW SELECTOR TABS                                       */
/* ============================================================ */
.live-view-tabs {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(3, 10, 24, 0.7);
  padding: 3px;
  border-radius: 12px;
  border: 1px solid rgba(0, 240, 255, 0.18);
}

.live-view-tab {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}
.live-view-tab:hover {
  color: #fff;
  background: rgba(0, 240, 255, 0.08);
}
.live-view-tab.active {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.25), rgba(0, 119, 255, 0.35));
  color: #00f0ff;
  border: 1px solid rgba(0, 240, 255, 0.4);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.25);
}

/* ============================================================ */
/* REPORTS VIEW & AGENT INCIDENT DISPATCH CENTER               */
/* ============================================================ */
.reports-stage-container {
  flex: 1;
  padding: 12px 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: calc(100vh - 110px);
}

.reports-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 14px;
}

.report-card-detailed {
  background: rgba(7, 15, 35, 0.8);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: 14px;
  padding: 14px 16px;
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.2s ease;
}
.report-card-detailed:hover {
  border-color: var(--cyan);
  box-shadow: 0 4px 20px rgba(0, 240, 255, 0.15);
  transform: translateY(-2px);
}
.report-card-detailed.is-down {
  border-color: #ff1e50;
  box-shadow: 0 0 18px rgba(255, 30, 80, 0.3);
  background: rgba(35, 8, 18, 0.85);
}

.report-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.report-card-name {
  font-size: 14px;
  font-weight: 800;
  color: #fff;
}
.report-card-host {
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-dim);
}

.report-metrics-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  background: rgba(3, 10, 24, 0.6);
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.report-metric-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.report-metric-label {
  font-size: 9px;
  color: var(--text-dim);
  text-transform: uppercase;
  font-family: 'JetBrains Mono', monospace;
}
.report-metric-value {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}

/* INCIDENT ALERT BANNER */
.incident-alert-banner {
  background: linear-gradient(135deg, rgba(255, 30, 80, 0.18), rgba(120, 10, 30, 0.35));
  border: 1px solid #ff1e50;
  border-radius: 14px;
  padding: 16px 20px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  box-shadow: 0 0 25px rgba(255, 30, 80, 0.3);
  animation: pulseHoustonBanner 2s infinite ease-in-out;
}
@keyframes pulseHoustonBanner {
  0%, 100% { box-shadow: 0 0 20px rgba(255, 30, 80, 0.25); }
  50% { box-shadow: 0 0 35px rgba(255, 30, 80, 0.5); }
}

/* AGENTS FLEET GRID */
.agents-fleet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.agent-fleet-card {
  background: rgba(7, 16, 38, 0.8);
  border: 1px solid rgba(0, 240, 255, 0.22);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s ease;
}
.agent-fleet-card.on-duty {
  border-color: #ff1e50;
  background: rgba(45, 10, 22, 0.9);
  box-shadow: 0 0 18px rgba(255, 30, 80, 0.35);
}

.agent-avatar-box {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.agent-fleet-card.on-duty .agent-avatar-box {
  background: rgba(255, 30, 80, 0.2);
  border-color: #ff1e50;
}

/* 3-TIER BACKUP PIPELINE TABLE */
.pipeline-table {
  width: 100%;
  border-collapse: collapse;
}
.pipeline-table th {
  text-align: left;
  padding: 6px 12px;
  color: var(--text-dim);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border-card);
}
.pipeline-table td {
  padding: 6px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* ============================================================================
   CENTRAL ADMIN & INTEGRATION PANEL STYLES
   ============================================================================ */
.admin-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 10px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.integration-audit-banner {
  background: linear-gradient(135deg, rgba(8, 22, 54, 0.95), rgba(4, 12, 30, 0.98));
  border: 1px solid rgba(0, 240, 255, 0.28);
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
  flex-shrink: 0;
}
.audit-banner-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.audit-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}
.audit-pulse-icon {
  font-size: 18px;
  animation: pulseNeon 1.5s infinite alternate;
}
.audit-title {
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}
.audit-sub {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.3;
}
.audit-score-badge {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: 8px;
  padding: 4px 10px;
  white-space: nowrap;
}
.audit-score-num {
  font-size: 13px;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  color: var(--emerald);
}
.audit-score-label {
  font-size: 9.5px;
  font-weight: 600;
  color: var(--cyan);
}
.audit-chips-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}
.audit-chip {
  min-width: 0;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 6px 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 3px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.audit-chip:hover {
  transform: translateY(-2px);
  border-color: var(--cyan);
  background: rgba(0, 240, 255, 0.08);
}
.audit-chip.emerald {
  border-color: rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.04);
}
.audit-chip.amber {
  border-color: rgba(245, 158, 11, 0.38);
  background: rgba(245, 158, 11, 0.05);
}

.audit-chip.real {
  border-color: rgba(0, 230, 118, 0.36);
}

.audit-chip.simulation {
  border-color: rgba(168, 85, 247, 0.55);
}

.audit-chip.unavailable {
  border-color: rgba(255, 145, 0, 0.38);
}

.audit-chip.real .audit-chip-badge { color: var(--emerald); }
.audit-chip.simulation .audit-chip-badge { color: #c084fc; }
.audit-chip.unavailable .audit-chip-badge { color: var(--amber); }
.audit-chip-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}
.audit-chip-name {
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.audit-chip-badge {
  font-size: 8px;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 4px;
  white-space: nowrap;
}
.audit-chip.emerald .audit-chip-badge {
  background: rgba(16, 185, 129, 0.2);
  color: var(--emerald);
  border: 1px solid rgba(16, 185, 129, 0.4);
}
.audit-chip.amber .audit-chip-badge {
  background: rgba(245, 158, 11, 0.2);
  color: var(--amber);
  border: 1px solid rgba(245, 158, 11, 0.4);
}
.audit-chip-desc {
  font-size: 8.5px;
  color: var(--text-dim);
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.admin-subnav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  flex-shrink: 0;
  scrollbar-width: none;
}
.admin-subnav::-webkit-scrollbar {
  display: none;
}

.admin-tab-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(10, 20, 45, 0.7);
  border: 1px solid rgba(0, 240, 255, 0.18);
  color: var(--text-muted);
  padding: 6px 11px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.admin-tab-btn:hover {
  background: rgba(0, 240, 255, 0.08);
  color: #fff;
  border-color: rgba(0, 240, 255, 0.4);
}
.admin-tab-btn.active {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.2), rgba(14, 165, 233, 0.3));
  border-color: var(--cyan);
  color: #fff;
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.3);
}

.admin-content-card {
  background: rgba(7, 16, 38, 0.85);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: 14px;
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.admin-tab-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
  width: 100%;
  box-sizing: border-box;
}

.admin-form-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.admin-diag-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: rgba(3, 8, 20, 0.6);
  border: 1px solid rgba(0, 240, 255, 0.15);
  border-radius: 12px;
  padding: 14px 16px;
  min-width: 0;
}

.admin-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.admin-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.admin-title {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.admin-subtitle {
  font-size: 12px;
  color: var(--text-muted);
}

.admin-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.admin-badge.ok {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: var(--emerald);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}
.admin-badge.warn {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.2);
}
.admin-badge.err {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: var(--red);
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.2);
}

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 18px;
}
.admin-form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.admin-form-group.col-span-2 {
  grid-column: span 2;
}

.admin-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.admin-input, .admin-select, .admin-textarea {
  background: rgba(4, 10, 24, 0.85);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: 8px;
  padding: 8px 12px;
  color: #fff;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.admin-input:focus, .admin-select:focus, .admin-textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.35);
}
.admin-input.mono, .admin-textarea.mono {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
}

.admin-checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 9px 12px;
  border-radius: 8px;
  cursor: pointer;
}
.admin-checkbox-row span {
  font-size: 12px;
  color: #e2e8f0;
}

.admin-actions-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 6px;
}

.admin-btn-save {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  border: 1px solid var(--cyan);
  color: #fff;
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}
.admin-btn-save:hover {
  background: linear-gradient(135deg, #0369a1, #0284c7);
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.4);
}

.admin-btn-test {
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.5);
  color: var(--emerald);
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}
.admin-btn-test:hover {
  background: rgba(16, 185, 129, 0.3);
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.4);
}

.admin-test-console {
  background: #020612;
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: 10px;
  padding: 12px 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: #a5f3fc;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-all;
  max-height: 140px;
  overflow-y: auto;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.7);
}
.admin-test-console .console-time {
  color: var(--text-dim);
}
.admin-test-console .console-ok {
  color: var(--emerald);
  font-weight: 700;
}
.admin-test-console .console-err {
  color: var(--red);
  font-weight: 700;
}

.admin-stat-chips-row {
  display: flex;
  gap: 10px;
}
.admin-stat-chip {
  background: rgba(0, 240, 255, 0.07);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: 8px;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}
.admin-stat-chip-num {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
}
.admin-stat-chip-label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* ============================================================ */
/* SOUND MODE TOGGLE IN TOP HEADER                              */
/* ============================================================ */
.sound-mode-toggle-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: 20px;
  padding: 5px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}
.sound-mode-toggle-btn:hover {
  background: rgba(0, 240, 255, 0.15);
  border-color: var(--cyan);
  transform: translateY(-1px);
}
.sound-mode-toggle-btn.mode-speech {
  border-color: var(--emerald);
  color: var(--emerald);
  background: rgba(16, 185, 129, 0.1);
}
.sound-mode-toggle-btn.mode-beep {
  border-color: var(--amber);
  color: var(--amber);
  background: rgba(245, 158, 11, 0.1);
}
.sound-mode-toggle-btn.mode-mute {
  border-color: var(--text-dim);
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.03);
}

/* ============================================================ */
/* CRITICAL INCIDENT & EMERGENCY HUD MODAL                      */
/* ============================================================ */
.incident-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 24, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: incidentFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.incident-modal-overlay.active {
  display: flex;
}
@keyframes incidentFadeIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.incident-modal-card {
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.98), rgba(8, 12, 28, 0.98));
  border: 2px solid rgba(255, 51, 102, 0.6);
  border-radius: 20px;
  width: 100%;
  max-width: 920px;
  box-shadow: 0 0 60px rgba(255, 51, 102, 0.3), 0 20px 50px rgba(0, 0, 0, 0.8);
  overflow: hidden;
  position: relative;
}
.incident-banner {
  background: linear-gradient(90deg, rgba(255, 51, 102, 0.25), rgba(245, 158, 11, 0.2), rgba(255, 51, 102, 0.25));
  border-bottom: 1px solid rgba(255, 51, 102, 0.4);
  padding: 10px 20px;
}
.incident-badge-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.incident-type-tag {
  background: var(--red);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 6px;
  letter-spacing: 0.5px;
  animation: pulseTag 1.5s infinite;
}
@keyframes pulseTag {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.04); opacity: 0.85; }
  100% { transform: scale(1); opacity: 1; }
}
.incident-time-tag {
  font-size: 11px;
  color: var(--text-dim);
  font-family: 'JetBrains Mono', monospace;
}
.incident-sound-pill {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
}

.incident-body-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  padding: 24px;
  align-items: center;
}
.incident-avatar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.incident-video-ring {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--red);
  box-shadow: 0 0 35px rgba(255, 51, 102, 0.5);
  position: relative;
  background: #000;
}
.incident-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.incident-avatar-badge {
  font-size: 10px;
  font-weight: 800;
  color: var(--red);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.incident-info-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.incident-title {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}
.incident-target-badge {
  font-size: 12px;
  font-weight: 700;
  color: var(--cyan);
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: 6px;
  padding: 4px 10px;
  display: inline-block;
  align-self: flex-start;
}
.incident-desc-box {
  background: rgba(255, 255, 255, 0.03);
  border-left: 3px solid var(--red);
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}
.incident-telemetry-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.inc-tel-cell {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 8px 10px;
}
.inc-tel-label {
  font-size: 9px;
  color: var(--text-dim);
  text-transform: uppercase;
  font-weight: 700;
  display: block;
}
.inc-tel-val {
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
  margin-top: 2px;
  display: block;
}
.inc-tel-val.red { color: var(--red); }
.inc-tel-val.cyan { color: var(--cyan); }

/* ACTIONS GRID */
.incident-actions-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 10px;
  margin-top: 6px;
}
.inc-act-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 10px 12px;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s ease;
  text-align: left;
}
.inc-act-btn .btn-icon {
  font-size: 18px;
  flex-shrink: 0;
}
.inc-act-btn .btn-text-wrap {
  display: flex;
  flex-direction: column;
}
.inc-act-btn .btn-primary-text {
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}
.inc-act-btn .btn-sub-text {
  font-size: 9px;
  color: var(--text-muted);
  margin-top: 2px;
}
.inc-act-btn.btn-remediate {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.25), rgba(16, 185, 129, 0.3));
  border-color: var(--emerald);
}
.inc-act-btn.btn-remediate:hover {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.4), rgba(16, 185, 129, 0.5));
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
}
.inc-act-btn.btn-snooze:hover {
  background: rgba(245, 158, 11, 0.2);
  border-color: var(--amber);
}
.inc-act-btn.btn-mute:hover {
  background: rgba(255, 255, 255, 0.15);
}
.inc-act-btn.btn-ack:hover {
  background: rgba(0, 240, 255, 0.2);
  border-color: var(--cyan);
}

/* ============================================================ */
/* BİLGE MEMORY & LEARNING HUB                                  */
/* ============================================================ */
.memory-teach-card {
  background: linear-gradient(145deg, rgba(10, 18, 42, 0.8), rgba(6, 11, 24, 0.8));
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
}
.memory-teach-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}
.memory-teach-grid .full-span {
  grid-column: span 2;
}
.memory-teach-input, .memory-teach-select, .memory-teach-textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-card);
  border-radius: 8px;
  padding: 8px 12px;
  color: #fff;
  font-size: 12px;
  font-family: inherit;
}
.memory-teach-textarea {
  min-height: 70px;
  resize: vertical;
}
.memory-teach-btn {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.25), rgba(16, 185, 129, 0.35));
  border: 1px solid var(--emerald);
  border-radius: 8px;
  padding: 8px 18px;
  color: #fff;
  font-weight: 800;
  font-size: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}
.memory-teach-btn:hover {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.4), rgba(16, 185, 129, 0.5));
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
}

.memory-items-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.memory-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-card);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  transition: border-color 0.2s ease;
}
.memory-card:hover {
  border-color: rgba(0, 240, 255, 0.35);
}
.memory-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}
.memory-card-title {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
}
.memory-card-cat {
  font-size: 10px;
  font-weight: 700;
  color: var(--cyan);
  background: rgba(0, 240, 255, 0.08);
  padding: 2px 7px;
  border-radius: 4px;
  white-space: nowrap;
}
.memory-card-content {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  background: rgba(0, 0, 0, 0.2);
  padding: 8px 10px;
  border-radius: 6px;
  border-left: 2px solid var(--cyan);
}
.memory-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
}
.memory-verified-stamp {
  font-size: 10px;
  font-weight: 700;
  color: var(--emerald);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}
.memory-verified-stamp.unverified {
  color: var(--amber);
}
.memory-actions {
  display: flex;
  gap: 6px;
}
.memory-act-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  padding: 3px 8px;
  font-size: 11px;
  color: var(--text-dim);
  cursor: pointer;
}
.memory-act-btn:hover {
  color: #fff;
  border-color: var(--cyan);
}
.memory-act-btn.delete:hover {
  border-color: var(--red);
  color: var(--red);
}

/* ========================================================================== */
/* RESPONSIVE MULTI-DEVICE & FORM-FACTOR SYSTEM                               */
/* Supports:                                                                  */
/* - Galaxy Tab S10 Ultra (14.6" Tablet, >=900dp): Executive Dual-Pane        */
/* - Galaxy Z Fold 6 Unfolded (7.6" Inner, 600-899dp): 2-Column Fold Desk    */
/* - Galaxy Z Fold 6 Folded / Phone (<600dp): Mobile Stream & Bottom Nav     */
/* ========================================================================== */

/* MOBILE BOTTOM NAVIGATION BAR */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: rgba(6, 11, 24, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-card);
  z-index: 1000;
  justify-content: space-around;
  align-items: center;
  padding: 0 8px;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.5);
}
.m-nav-item {
  background: transparent;
  border: none;
  color: #94a3b8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  flex: 1;
  padding: 6px 0;
  transition: all 0.2s ease;
}
.m-nav-item:hover, .m-nav-item.active {
  color: var(--cyan);
}
.m-nav-icon {
  width: 20px;
  height: 20px;
}
.m-nav-item.active .m-nav-icon {
  filter: drop-shadow(0 0 6px rgba(0, 240, 255, 0.6));
}
.m-nav-voice {
  position: relative;
  top: -10px;
  flex: 1.1;
}
.m-voice-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00f0ff, #0077ff);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 16px rgba(0, 240, 255, 0.45);
  border: 2px solid rgba(255, 255, 255, 0.9);
  transition: transform 0.2s ease;
}
.m-nav-voice:active .m-voice-circle {
  transform: scale(0.92);
}

/* 1. GALAXY Z FOLD 6 (UNFOLDED) / MID-SIZE SCREENS (600px - 899px) */
@media (min-width: 600px) and (max-width: 899px), body.form-fold-unfolded {
  .app-layout {
    grid-template-columns: 68px 1fr !important;
  }
  .sidebar {
    padding: 16px 8px !important;
    align-items: center !important;
  }
  .sidebar-brand {
    justify-content: center !important;
    margin-bottom: 20px !important;
  }
  .sidebar-brand .brand-text {
    display: none !important;
  }
  .brand-avatar-ring {
    width: 44px !important;
    height: 44px !important;
  }
  .nav-category-header {
    display: none !important;
  }
  .nav-item {
    justify-content: center !important;
    padding: 12px 0 !important;
    position: relative !important;
  }
  .nav-item span:not(.nav-badge) {
    display: none !important;
  }
  .nav-item .nav-badge {
    position: absolute !important;
    top: 4px !important;
    right: 8px !important;
    font-size: 8px !important;
    padding: 1px 4px !important;
  }
  .nav-collapsible-trigger {
    justify-content: center !important;
    padding: 12px 0 !important;
  }
  .collapsible-trigger-left span,
  .collapsible-trigger-right,
  .nav-counter-pill {
    display: none !important;
  }
  .nav-collapsible-content {
    padding-left: 0 !important;
    border-left: none !important;
  }
  .sidebar-footer {
    display: none !important;
  }
  /* The compact rail is useful at a glance, but its hamburger must expose a
     readable navigation menu.  Keep it as an overlay so opening the menu does
     not squeeze or reload the active Fold workspace. */
  body.form-fold-unfolded.fold-sidebar-expanded .sidebar {
    position: fixed !important;
    inset: 0 auto 0 0 !important;
    width: min(310px, 82vw) !important;
    z-index: 1200 !important;
    align-items: stretch !important;
    padding: 16px 14px !important;
    background: rgba(4, 14, 31, .98) !important;
    border-right: 1px solid rgba(0, 240, 255, .34) !important;
    box-shadow: 18px 0 44px rgba(0, 0, 0, .52) !important;
  }
  body.form-fold-unfolded.fold-sidebar-expanded .sidebar-brand {
    justify-content: flex-start !important;
  }
  body.form-fold-unfolded.fold-sidebar-expanded .sidebar-brand .brand-text,
  body.form-fold-unfolded.fold-sidebar-expanded .nav-category-header,
  body.form-fold-unfolded.fold-sidebar-expanded .nav-item span:not(.nav-badge),
  body.form-fold-unfolded.fold-sidebar-expanded .collapsible-trigger-left span,
  body.form-fold-unfolded.fold-sidebar-expanded .collapsible-trigger-right,
  body.form-fold-unfolded.fold-sidebar-expanded .nav-counter-pill {
    display: flex !important;
  }
  body.form-fold-unfolded.fold-sidebar-expanded .nav-item,
  body.form-fold-unfolded.fold-sidebar-expanded .nav-collapsible-trigger {
    justify-content: flex-start !important;
    padding: 10px 12px !important;
    gap: 10px !important;
  }
  body.form-fold-unfolded.fold-sidebar-expanded .nav-item .nav-badge {
    position: static !important;
    margin-left: auto !important;
  }
  body.form-fold-unfolded.fold-sidebar-expanded .nav-collapsible-trigger {
    justify-content: space-between !important;
  }
  body.form-fold-unfolded.fold-sidebar-expanded .nav-collapsible-content {
    padding-left: 10px !important;
    border-left: 1px solid rgba(0, 240, 255, .18) !important;
  }
  .top-header {
    padding: 14px 18px !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
  }
  .greeting-title {
    font-size: 18px !important;
  }
  .apk-download-header-btn span, .live-stream-header-btn .live-btn-text {
    display: none !important;
  }
  .dash-grid {
    grid-template-columns: minmax(280px, 1.12fr) minmax(220px, .88fr) !important;
    gap: 12px !important;
    height: auto !important;
    align-items: start !important;
  }
  .hero-avatar-card {
    padding: 14px !important;
    min-width: 0 !important;
    overflow: visible !important;
  }
  .hero-top-row {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 12px !important;
    align-items: start !important;
  }
  .hero-video-wrapper {
    width: min(220px, 72%) !important;
    height: auto !important;
    aspect-ratio: 16 / 9 !important;
    border-radius: 22px !important;
    max-width: 100% !important;
    justify-self: center !important;
    transition:width .28s ease, box-shadow .28s ease !important;
  }
  body[data-voice-state="listening"] .hero-video-wrapper,
  body[data-voice-state="speaking"] .hero-video-wrapper {
    width:100% !important;
    box-shadow:0 0 34px rgba(0,240,255,.34) !important;
  }
  .right-widgets { min-width:0 !important; max-height:calc(100dvh - 150px); overflow:auto; padding-right:2px; }
  .hero-badge-title {
    font-size: 11px !important;
  }
  .hero-speech-bubble {
    font-size: 13px !important;
    line-height: 1.45 !important;
    padding: 10px 13px !important;
    min-height: 48px !important;
  }
  .quick-action-chips {
    gap: 6px !important;
  }
  .chip-btn {
    font-size: 10px !important;
    padding: 4px 8px !important;
  }
  .weather-cities-grid {
    grid-template-columns: 1fr 1fr !important;
  }
  .stat-grid, .service-summary-card {
    grid-template-columns: 1fr 1fr !important;
  }
  .briefing-card {
    margin-top: 12px !important;
  }

  /* Fold-open module density: this is a small tablet canvas, not a desktop.
     Keep controls touchable while prioritising useful information above fold. */
  .main-stage {
    padding: 10px 14px 8px !important;
  }
  .top-header {
    margin-bottom: 8px !important;
    padding: 4px 8px !important;
  }
  .module-container {
    padding-right: 2px !important;
  }
  .module-container > div {
    gap: 8px !important;
  }
  .mon-subnav {
    gap: 5px !important;
    margin-bottom: 4px !important;
    padding: 2px 0 5px !important;
    scroll-snap-type: x proximity;
  }
  .mon-pill {
    min-height: 34px !important;
    padding: 6px 10px !important;
    font-size: 10px !important;
    border-radius: 12px !important;
    scroll-snap-align: start;
  }
  .daynex-kpi-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 6px !important;
    margin-bottom: 6px !important;
  }
  .daynex-kpi-card {
    min-height: 72px !important;
    padding: 7px 5px !important;
    border-radius: 9px !important;
  }
  .daynex-kpi-card .kpi-label {
    font-size: 7.5px !important;
    letter-spacing: .15px !important;
  }
  .daynex-kpi-card .kpi-value {
    font-size: 16px !important;
    margin: 2px 0 !important;
  }
  .daynex-kpi-card .kpi-sub {
    font-size: 7.5px !important;
  }
  .mon-toolbar {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 6px !important;
    padding: 7px 8px !important;
  }
  .mon-filter-chips {
    gap: 4px !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
  }
  .mon-chip {
    flex: 0 0 auto;
    padding: 5px 8px !important;
    font-size: 8px !important;
  }
  .mon-toolbar > div:last-child {
    gap: 4px !important;
  }
  .mon-search-box {
    min-width: 110px !important;
    width: 126px !important;
    padding: 6px 9px !important;
    font-size: 9px !important;
  }
  .mon-toolbar .btn {
    min-height: 32px !important;
    padding: 5px 7px !important;
    font-size: 0 !important;
  }
  .mon-toolbar .btn::first-letter {
    font-size: 14px !important;
  }
  .mon-targets-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 7px !important;
  }
  .mon-target-card {
    padding: 9px !important;
    gap: 7px !important;
    border-radius: 10px !important;
  }
  .target-icon-box {
    width: 28px !important;
    height: 28px !important;
    font-size: 14px !important;
  }
  .target-title-wrap { gap: 6px !important; min-width: 0 !important; }
  .target-name { font-size: 11px !important; }
  .target-host { font-size: 8px !important; max-width: 125px !important; }
  .target-status-pill { padding: 3px 6px !important; font-size: 8px !important; }
  .target-actions-row { gap: 3px !important; }
  .btn-icon-mon { width: 28px !important; height: 28px !important; font-size: 12px !important; }

  /* Shared module primitives used by notifications, approvals, energy,
     projects and settings. Avoid desktop-sized whitespace on the Fold. */
  .module-container .content-card,
  .module-container .settings-card,
  .module-container .approval-card,
  .module-container .notification-card,
  .module-container .energy-card {
    padding: 10px !important;
    border-radius: 10px !important;
  }
  .module-container h1 { font-size: 20px !important; }
  .module-container h2 { font-size: 16px !important; }
  .module-container h3 { font-size: 13px !important; }
}

/* 2. GALAXY Z FOLD 6 (FOLDED COVER) & MOBILE PHONES (< 600px) */
@media (max-width: 599px), body.form-mobile {
  .app-layout {
    display: flex !important;
    flex-direction: column !important;
    height: 100vh !important;
    width: 100vw !important;
    overflow: hidden !important;
  }
  .sidebar {
    display: none !important;
  }
  .main-stage {
    padding: 10px 10px calc(84px + env(safe-area-inset-bottom, 0px)) 10px !important;
    overflow-y: auto !important;
    height: 100% !important;
  }
  .mobile-bottom-nav {
    display: flex !important;
    height: calc(64px + env(safe-area-inset-bottom, 0px)) !important;
    padding-bottom: env(safe-area-inset-bottom, 0px) !important;
  }
  .top-header {
    padding: 8px 6px !important;
    margin-bottom: 10px !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
  }
  .greeting-title {
    font-size: 15px !important;
    white-space: nowrap !important;
  }
  .header-status-pill, .greeting-sub {
    display: none !important;
  }
  .header-meta {
    gap: 6px !important;
  }
  .clock-date, .clock-divider {
    display: none !important;
  }
  .live-clock-badge {
    padding: 5px 8px !important;
    font-size: 11px !important;
  }
  .live-stream-header-btn .live-btn-text, .settings-btn-label {
    display: none !important;
  }
  .live-stream-header-btn {
    padding: 6px 8px !important;
    font-size: 12px !important;
  }
  .header-icon-btn {
    width: 34px !important;
    height: 34px !important;
  }
  .header-settings-btn {
    padding: 6px 8px !important;
    width: 34px !important;
    height: 34px !important;
    justify-content: center !important;
  }
  .user-profile-pill {
    display: none !important;
  }
  .dash-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
  }
  .hero-top-row {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
  }
  .hero-video-wrapper {
    width: min(92vw, 360px) !important;
    height: auto !important;
    aspect-ratio: 16 / 9 !important;
    border-radius: 20px !important;
    margin: 0 auto 10px auto !important;
  }
  .hero-input-bar {
    width: 100% !important;
  }
  .quick-action-chips {
    justify-content: center !important;
    flex-wrap: wrap !important;
  }
  .weather-cities-grid {
    grid-template-columns: 1fr 1fr !important;
  }
  .bottom-strip {
    display: none !important;
  }
  .table-glass {
    font-size: 11px !important;
  }

  /* MOBILE ENERGY SCENE OPTIMIZATION */
  .energy-scene {
    padding: 12px 6px !important;
  }
  .energy-scene-heading {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
  }
  .energy-scene h2 {
    font-size: 15px !important;
  }
  .energy-map {
    height: 290px !important;
    margin: 6px 0 !important;
  }
  .energy-point {
    width: 96px !important;
    padding: 6px 4px !important;
    border-radius: 10px !important;
  }
  .energy-point span {
    font-size: 8px !important;
  }
  .energy-point strong {
    font-size: 15px !important;
  }
  .energy-point em {
    font-size: 8px !important;
    max-width: 86px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .energy-point svg {
    width: 24px !important;
    height: 20px !important;
  }
  .point-solar { left: 1% !important; top: 1% !important; }
  .point-load { right: 1% !important; top: 1% !important; }
  .point-grid { left: 1% !important; bottom: 3% !important; }
  .point-battery { right: 1% !important; bottom: 3% !important; }
  .energy-core {
    width: 90px !important;
    transform: translate(-50%, -50%) scale(0.82) !important;
  }
  .energy-core small {
    display: none !important;
  }
  .energy-scene-footer {
    flex-direction: column !important;
    gap: 4px !important;
    font-size: 10px !important;
    text-align: center !important;
  }
  .server-gauges-row {
    grid-template-columns: 1fr 1fr !important;
  }
}

/* ============================================================
   BILGE AUTO UPDATE NOTICE BAR & DYNAMIC AVATAR HUD
   ============================================================ */
.bilge-update-notice-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999999;
  background: linear-gradient(90deg, #091226 0%, #172554 50%, #064e3b 100%);
  border-bottom: 1px solid var(--cyan);
  box-shadow: 0 4px 25px rgba(0, 240, 255, 0.4);
  padding: 8px 16px;
  animation: slideDownNotice 0.35s ease-out;
}
@keyframes slideDownNotice {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}
.update-notice-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 1400px;
  margin: 0 auto;
}
.update-notice-icon {
  font-size: 20px;
  animation: pulseRocket 1.6s infinite ease-in-out;
}
@keyframes pulseRocket {
  0%, 100% { transform: scale(1) translateY(0); }
  50% { transform: scale(1.18) translateY(-2px); }
}
.update-notice-text {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.update-notice-text strong {
  font-size: 13px;
  color: var(--cyan);
  letter-spacing: 0.3px;
}
.update-notice-text span {
  font-size: 11px;
  color: #94a3b8;
}
.update-notice-btn {
  background: linear-gradient(135deg, #10b981 0%, #00f0ff 100%);
  color: #030816 !important;
  font-size: 11px;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.3);
}
.update-notice-btn:hover {
  filter: brightness(1.15);
}
.scope-action-indicator-dots .action-dot {
  transition: all 0.3s ease;
}
.scope-action-indicator-dots .action-dot.active {
  transform: scale(1.4);
  box-shadow: 0 0 8px var(--cyan);
}
/* ============================================================================
   MEDIA CONTROLS & PLAY BUTTON GLYPH SUPPRESSION
   Completely removes default Android WebView / Chromium video play overlays
   ============================================================================ */
video::-webkit-media-controls,
video::-webkit-media-controls-enclosure,
video::-webkit-media-controls-panel,
video::-webkit-media-controls-play-button,
video::-webkit-media-controls-start-playback-button,
video::-webkit-media-controls-overlay-play-button,
video::-webkit-media-controls-timeline,
video::-webkit-media-controls-current-time-display,
video::-webkit-media-controls-time-remaining-display,
video::-webkit-media-controls-mute-button,
video::-webkit-media-controls-toggle-closed-captions-button,
video::-webkit-media-controls-volume-slider {
  display: none !important;
  -webkit-appearance: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
}

video {
  outline: none !important;
  -webkit-tap-highlight-color: transparent !important;
}

/* ============================================================================
   MARKA GÖZCÜSÜ (TRADEMARK SENTINEL) STYLES
   ============================================================================ */
.tm-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: fadeIn 0.3s ease;
}

.tm-hero-card {
  background: linear-gradient(135deg, rgba(16, 26, 60, 0.8) 0%, rgba(8, 14, 32, 0.9) 100%);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: var(--radius-lg);
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.tm-agent-badge {
  display: flex;
  align-items: center;
  gap: 14px;
}

.tm-agent-icon {
  font-size: 32px;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.3);
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
}

.tm-agent-title {
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.tm-agent-status-pill {
  font-size: 11px;
  font-weight: 600;
  color: var(--emerald);
  background: rgba(0, 230, 118, 0.12);
  border: 1px solid rgba(0, 230, 118, 0.3);
  padding: 2px 8px;
  border-radius: 12px;
}

.tm-agent-sub {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 3px;
}

.tm-hero-actions {
  display: flex;
  gap: 10px;
}

.tm-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.tm-stat-card {
  text-align: center;
  padding: 14px 10px !important;
}

.tm-stat-val {
  font-size: 22px;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  margin: 4px 0 2px;
}

.tm-stat-sub {
  font-size: 11px;
  color: var(--text-muted);
}

.tm-tabs-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.tm-tabs {
  display: flex;
  gap: 8px;
  background: rgba(10, 18, 42, 0.6);
  padding: 4px;
  border-radius: 12px;
  border: 1px solid var(--border-card);
}

.tm-tab-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.tm-tab-btn:hover {
  color: #fff;
}

.tm-tab-btn.active {
  background: rgba(0, 240, 255, 0.15);
  color: var(--cyan);
  border: 1px solid rgba(0, 240, 255, 0.3);
}

.tm-tab-badge {
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 10px;
  font-weight: 800;
}

.tm-tab-badge.danger {
  background: var(--red);
  color: #fff;
}

.tm-filters-row {
  display: flex;
  gap: 10px;
}

.tm-filter-select {
  background: rgba(10, 18, 42, 0.8);
  border: 1px solid var(--border-card);
  color: #fff;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 8px;
  outline: none;
}

.tm-filter-select:focus {
  border-color: var(--cyan);
}

.tm-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.tm-card:hover {
  border-color: rgba(0, 240, 255, 0.35);
  transform: translateY(-1px);
}

.tm-card.critical {
  border-left: 4px solid var(--red);
  background: linear-gradient(90deg, rgba(255, 51, 102, 0.06) 0%, var(--bg-card) 20%);
}

.tm-card.high {
  border-left: 4px solid var(--amber);
  background: linear-gradient(90deg, rgba(255, 145, 0, 0.05) 0%, var(--bg-card) 20%);
}

.tm-card.medium {
  border-left: 4px solid #facc15;
}

.tm-card.low {
  border-left: 4px solid #64748b;
}

.tm-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.tm-mark-name {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.5px;
}

.tm-mark-appno {
  font-size: 11px;
  color: var(--cyan);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  margin-top: 2px;
}

.tm-header-badges {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tm-risk-pill {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 6px;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.5px;
}

.tm-risk-pill.critical {
  background: rgba(255, 51, 102, 0.2);
  color: var(--red);
  border: 1px solid var(--red);
  box-shadow: 0 0 10px rgba(255, 51, 102, 0.3);
}

.tm-risk-pill.high {
  background: rgba(255, 145, 0, 0.2);
  color: var(--amber);
  border: 1px solid var(--amber);
}

.tm-risk-pill.medium {
  background: rgba(250, 204, 21, 0.15);
  color: #facc15;
  border: 1px solid #facc15;
}

.tm-risk-pill.low {
  background: rgba(100, 116, 139, 0.2);
  color: #94a3b8;
  border: 1px solid #64748b;
}

.tm-status-pill {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
}

.tm-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  background: rgba(3, 8, 22, 0.4);
  padding: 12px;
  border-radius: 8px;
  font-size: 12px;
}

.tm-detail-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.tm-detail-value {
  color: #e2e8f0;
  font-weight: 500;
}

.tm-classes-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.tm-class-tag {
  background: rgba(0, 240, 255, 0.12);
  color: var(--cyan);
  border: 1px solid rgba(0, 240, 255, 0.3);
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
}

.tm-class-tag.conflicting {
  background: rgba(255, 51, 102, 0.18);
  color: var(--red);
  border-color: rgba(255, 51, 102, 0.4);
}

.tm-countdown-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.badge-critical {
  background: rgba(255, 51, 102, 0.2);
  color: var(--red);
  border: 1px solid var(--red);
  animation: pulseRed 1.8s infinite;
}

.badge-warning {
  background: rgba(255, 145, 0, 0.2);
  color: var(--amber);
  border: 1px solid var(--amber);
}

.badge-normal {
  background: rgba(0, 230, 118, 0.15);
  color: var(--emerald);
  border: 1px solid var(--emerald);
}

.badge-expired {
  background: rgba(100, 116, 139, 0.2);
  color: #94a3b8;
  border: 1px solid #475569;
}

.badge-unknown {
  background: rgba(148, 163, 184, 0.15);
  color: #cbd5e1;
  border: 1px dashed #64748b;
}

.tm-reason-box {
  background: rgba(15, 23, 42, 0.6);
  border-left: 3px solid var(--cyan);
  padding: 8px 12px;
  border-radius: 0 6px 6px 0;
  font-size: 11.5px;
  color: #cbd5e1;
  line-height: 1.5;
}

.tm-card-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 4px;
}

.tm-btn-objection {
  background: linear-gradient(135deg, rgba(255, 51, 102, 0.2) 0%, rgba(255, 51, 102, 0.35) 100%);
  border: 1px solid var(--red);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.tm-btn-objection:hover {
  background: var(--red);
  box-shadow: 0 0 15px rgba(255, 51, 102, 0.4);
}

.tm-petition-preview {
  background: #020617;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  color: #e2e8f0;
  line-height: 1.6;
  white-space: pre-wrap;
  max-height: 450px;
  overflow-y: auto;
}

.tm-portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

.tm-portfolio-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  transition: all 0.2s ease;
}

.tm-portfolio-card:hover {
  border-color: var(--cyan);
}

@keyframes pulseRed {
  0% { box-shadow: 0 0 0 0 rgba(255, 51, 102, 0.4); }
  70% { box-shadow: 0 0 0 8px rgba(255, 51, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 51, 102, 0); }
}

/* ============================================================================
   BACKLOG & PIPELINE WORKFLOW STYLES (YAZILIMDAKİ EKSİKLER)
   ============================================================================ */
.backlog-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.backlog-card[data-status="MISSING"]:hover {
  border-color: rgba(239, 68, 68, 0.6) !important;
}
.backlog-card[data-status="LIVE"]:hover {
  border-color: rgba(16, 185, 129, 0.7) !important;
}
.backlog-card[data-status="PARTIAL"]:hover {
  border-color: rgba(0, 240, 255, 0.7) !important;
}





/* ============================================================================
   ATAKÖY GÜNEŞ & AKÜ ENERJİ ANİMASYONLU HARİTA (DAYNEX ENERGY VIZ)
   ============================================================================ */

.energy-scene {
  color: #edf2fa;
  background: radial-gradient(ellipse at 45% 48%, rgba(20, 38, 70, 0.75), rgba(11, 23, 44, 0.9) 63%, rgba(6, 12, 24, 0.98));
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  min-width: 0;
  border: 1px solid var(--border-card);
  margin-bottom: 4px;
}
.energy-scene:before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(#cedaef14 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
}
.energy-scene-heading {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px 0;
  z-index: 2;
}
.energy-scene-heading .eyebrow {
  color: var(--cyan);
  letter-spacing: 1.2px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}
.energy-scene h2 {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
  margin: 2px 0 0 0;
  letter-spacing: -0.3px;
  color: #ffffff;
}
.motion-toggle {
  color: #bac2d2;
  font-size: 10.5px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 5px;
}
.motion-toggle:hover {
  background: rgba(0, 240, 255, 0.12);
  border-color: rgba(0, 240, 255, 0.35);
  color: #00f0ff;
}
.energy-map {
  height: 250px;
  position: relative;
  margin: 4px 10px;
}
.energy-traces {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.energy-track {
  fill: none;
  stroke: rgba(131, 147, 178, 0.2);
  stroke-width: 2;
}
.energy-track.active {
  stroke: rgba(0, 240, 255, 0.4);
  stroke-width: 2.4;
}
.energy-light {
  fill: none;
  stroke: #00f0ff;
  stroke-width: 3.2;
  stroke-linecap: round;
}
.energy-light.ambient {
  stroke-dasharray: 2 17;
  opacity: 0.25;
  animation: ambient-breathe 4s ease-in-out infinite;
}
.energy-light.directed {
  stroke-dasharray: 4 16;
  animation: energy-travel 1.4s linear infinite;
  filter: drop-shadow(0 0 7px #00f0ff);
}
.energy-light.reverse {
  animation-direction: reverse;
}
.energy-packet {
  fill: #e0f9ff;
  filter: drop-shadow(0 0 7px #00f0ff);
  offset-distance: 0%;
  animation: energy-packet-travel 2.2s linear infinite;
}
.energy-arrow path {
  fill: none;
  stroke: #00f0ff;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.core-ring {
  fill: #0c1a32;
  stroke: rgba(0, 240, 255, 0.35);
  stroke-width: 1.6;
}
.core-ring.outer {
  fill: none;
  stroke: rgba(0, 240, 255, 0.25);
  stroke-dasharray: 3 9;
  animation: core-turn 25s linear infinite;
  transform-origin: 320px 125px;
}
.energy-halo {
  animation: ambient-breathe 4s ease-in-out infinite;
}
.energy-core {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 104px;
  color: #00f0ff;
  gap: 2px;
  pointer-events: none;
  z-index: 3;
}
.energy-core svg {
  width: 30px;
  height: 30px;
  filter: drop-shadow(0 0 10px rgba(0, 240, 255, 0.7));
  animation: core-glow 2.5s ease-in-out infinite;
}
.energy-core strong {
  font-size: 11px;
  color: #fff;
  font-weight: 800;
  text-shadow: 0 2px 4px rgba(0,0,0,0.6);
  letter-spacing: -0.2px;
}
.energy-core small {
  font-size: 9.5px;
  color: #8da2c0;
  font-weight: 600;
}
.energy-point {
  position: absolute;
  width: 126px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: linear-gradient(145deg, rgba(16, 28, 50, 0.95), rgba(9, 16, 30, 0.98));
  border: 1px solid var(--border-card);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: #dce4f4;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  z-index: 3;
}
.energy-point:hover {
  border-color: var(--cyan);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 24px rgba(0, 240, 255, 0.25);
}
.energy-point span {
  font-size: 9.5px;
  color: #aeb6c6;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.energy-point strong {
  font-size: 18px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.5px;
  font-family: 'JetBrains Mono', monospace;
}
.energy-point strong small {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
  color: #adb6c8;
}
.energy-point em {
  font-style: normal;
  font-size: 9.5px;
  color: #8fa0be;
  white-space: nowrap;
}
.point-solar { left: 2.5%; top: 6%; }
.point-solar strong { color: #f59e0b; }
.point-solar .solar-graphic { width: 38px; height: 28px; fill: none; stroke: #f59e0b; stroke-width: 1.5; }
.solar-rays { stroke: #fbbf24; transform-origin: 47px 11px; animation: sun-turn 18s linear infinite; }
.panel-frame { stroke: #f59e0b; fill: rgba(245, 158, 11, 0.12); }

.point-load { right: 2.5%; top: 6%; }
.point-load strong { color: #38bdf8; }
.point-load .home-graphic { width: 38px; height: 28px; fill: none; stroke: #38bdf8; stroke-width: 1.5; }
.house-window { fill: #2c4263; stroke: none; }
.house-window.lit { fill: #fde047; animation: home-glow 3s ease-in-out infinite; }

.point-grid { left: 2.5%; bottom: 6%; }
.point-grid strong { color: #a78bfa; font-size: 17px; }
.point-grid svg.grid-icon { width: 24px; height: 24px; color: #a78bfa; margin-bottom: 2px; }

.point-battery { right: 2.5%; bottom: 6%; }
.point-battery strong { color: #10b981; }
.point-battery .battery-graphic { width: 38px; height: 24px; fill: none; stroke: #10b981; stroke-width: 1.5; }
.battery-level { fill: #10b981; stroke: none; }
.point-battery.is-charging .battery-level { animation: charge-glow 2s ease-in-out infinite; }
.point-battery.is-discharging .battery-level { animation: charge-glow 3s ease-in-out infinite; }

.energy-scene-footer {
  position: relative;
  padding: 8px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 10.5px;
  color: #8fa0be;
  z-index: 2;
}
.energy-scene-footer i {
  display: inline-block;
  background: #10b981;
  border-radius: 50%;
  width: 7px;
  height: 7px;
  margin-right: 5px;
  box-shadow: 0 0 8px #10b981;
  animation: pulseGreen 2s infinite;
}

@keyframes ambient-breathe { 0%,100% { opacity:.22; } 50% { opacity:.75; } }
@keyframes energy-travel { to { stroke-dashoffset: -34; } }
@keyframes energy-packet-travel { to { offset-distance: 100%; } }
@keyframes core-turn { to { transform: rotate(360deg); } }
@keyframes sun-turn { to { transform: rotate(360deg); } }
@keyframes core-glow { 0%,100% { filter: drop-shadow(0 0 6px rgba(0,240,255,0.4)); } 50% { filter: drop-shadow(0 0 16px rgba(0,240,255,0.9)); } }
@keyframes charge-glow { 0%,100% { opacity: .55; } 50% { opacity: 1; filter: drop-shadow(0 0 8px #10b981); } }
@keyframes home-glow { 0%,100% { opacity: .7; } 50% { opacity: 1; filter: drop-shadow(0 0 10px #fde047); } }
@keyframes pulseGreen { 0% { box-shadow: 0 0 0 0 rgba(16,185,129,0.7); } 70% { box-shadow: 0 0 0 8px rgba(16,185,129,0); } 100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); } }
.motion-paused *, .motion-paused *:before { animation-play-state: paused !important; }

/* AI Prompt Chips */
.ai-energy-prompt-chip {
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.25);
  color: #00f0ff;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}
.ai-energy-prompt-chip:hover {
  background: rgba(0, 240, 255, 0.2);
  border-color: #00f0ff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 240, 255, 0.2);
}

@media (max-width: 900px) {
  .energy-map { height: 310px; }
  .energy-point { width: 110px; padding: 8px 6px; }
  .energy-point strong { font-size: 19px; }
  .point-solar, .point-grid { left: 2%; }
  .point-load, .point-battery { right: 2%; }
}

/* ============================================================================
   ADVANCED CYBERNETIC ENERGY VISUALS & ANIMATIONS (V3.0 LUXURY FLOW)
   ============================================================================ */

.energy-scene {
  background: radial-gradient(ellipse at 50% 50%, #152642, #0a1426 65%, #050a14) !important;
  border: 1px solid rgba(0, 240, 255, 0.35) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), inset 0 0 30px rgba(0, 240, 255, 0.05) !important;
}

.energy-map {
  height: 250px !important;
  position: relative;
  margin: 4px 10px;
}

/* Multi-layer Laser & Particle Tracks */
.energy-track-glow {
  fill: none;
  stroke-width: 6;
  opacity: 0.15;
  filter: blur(3px);
}

.energy-light.directed {
  stroke-dasharray: 6 18 !important;
  animation: energy-travel 1.1s linear infinite !important;
}

.energy-packet-glow {
  filter: drop-shadow(0 0 10px currentColor);
}

/* Rotating Solar Corona */
.solar-rays {
  animation: sun-turn 14s linear infinite !important;
}

.solar-corona {
  animation: solar-flare 3s ease-in-out infinite;
  transform-origin: 47px 11px;
}

@keyframes solar-flare {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.75; transform: scale(1.15); filter: drop-shadow(0 0 12px #fbbf24); }
}

/* Inverter Dual Counter-Rotating Rings */
.core-ring {
  fill: #081224 !important;
  stroke: rgba(0, 240, 255, 0.45) !important;
}
.core-ring.outer {
  stroke-dasharray: 4 10 !important;
  animation: core-turn 20s linear infinite !important;
  transform-origin: 320px 125px !important;
}
.core-ring.middle {
  fill: none;
  stroke: rgba(0, 240, 255, 0.3);
  stroke-dasharray: 2 6;
  animation: core-turn-reverse 26s linear infinite;
  transform-origin: 320px 125px !important;
}

@keyframes core-turn-reverse {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

/* Central Reactor Core Glow */
.energy-core {
  width: 124px !important;
}
.energy-core svg {
  animation: core-plasma-pulse 2.2s ease-in-out infinite !important;
}

@keyframes core-plasma-pulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.6)); }
  50% { transform: scale(1.12); filter: drop-shadow(0 0 22px rgba(0, 240, 255, 1)) drop-shadow(0 0 35px #00f0ff); }
}

/* Battery Charging Emerald Aura */
.point-battery.is-charging {
  border-color: #10b981 !important;
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.45), inset 0 0 15px rgba(16, 185, 129, 0.2) !important;
  animation: battery-charge-breathe 2.4s ease-in-out infinite;
}

@keyframes battery-charge-breathe {
  0%, 100% { transform: translateY(0); filter: drop-shadow(0 0 4px rgba(16,185,129,0.3)); }
  50% { transform: translateY(-2px); filter: drop-shadow(0 0 16px rgba(16,185,129,0.7)); }
}

/* Solar Golden Aura */
.point-solar.is-producing {
  border-color: #f59e0b !important;
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.45), inset 0 0 15px rgba(245, 158, 11, 0.18) !important;
}

/* Floating SVG Wattage Badges */
.svg-flow-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 800;
  border-radius: 6px;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.8));
  user-select: none;
}

/* Scenario Simulation Chips */
.scenario-selector {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0,0,0,0.3);
  padding: 3px 6px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.08);
}
.scenario-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}
.scenario-pill:hover {
  background: rgba(0, 240, 255, 0.15);
  color: #fff;
  border-color: rgba(0, 240, 255, 0.4);
}
.scenario-pill.active {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.25), rgba(0, 150, 255, 0.35));
  border-color: #00f0ff;
  color: #00f0ff;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.4);
}

/* ============================================================================
   INVERTER PARAMETERS & HARDWARE CONFIG STYLES (DAYNEX ENERGY SPECS)
   ============================================================================ */

.param-suite-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 10px;
}

.param-device-selector {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.param-dev-tab-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(10, 18, 36, 0.85);
  border: 1px solid rgba(0, 240, 255, 0.25);
  color: #cbd5e1;
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
}

.param-dev-tab-btn:hover {
  background: rgba(0, 240, 255, 0.12);
  border-color: rgba(0, 240, 255, 0.5);
  color: #fff;
  transform: translateY(-2px);
}

.param-dev-tab-btn.active {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.2), rgba(6, 11, 24, 0.95));
  border-color: #00f0ff;
  color: #00f0ff;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.35);
}

.param-filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  background: rgba(6, 11, 24, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px 14px;
}

.param-cat-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.param-cat-btn:hover {
  background: rgba(0, 240, 255, 0.1);
  color: #fff;
  border-color: rgba(0, 240, 255, 0.3);
}

.param-cat-btn.active {
  background: var(--cyan);
  color: #000;
  border-color: var(--cyan);
  font-weight: 800;
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.4);
}

.param-search-input {
  background: #090e1c;
  border: 1px solid rgba(0, 240, 255, 0.25);
  color: #fff;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 11px;
  min-width: 200px;
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s;
}

.param-search-input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

.param-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 14px;
}

.param-item-card {
  background: linear-gradient(145deg, rgba(14, 22, 42, 0.85), rgba(7, 12, 24, 0.95));
  border: 1px solid rgba(0, 240, 255, 0.16);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.param-item-card:hover {
  border-color: rgba(0, 240, 255, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 240, 255, 0.12);
}

.param-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.param-card-title {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
}

.param-card-code {
  font-size: 10px;
  color: var(--text-dim);
  font-family: 'JetBrains Mono', monospace;
  margin-top: 2px;
}

.param-val-badge {
  background: rgba(0, 240, 255, 0.12);
  border: 1px solid rgba(0, 240, 255, 0.35);
  color: #00f0ff;
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  text-align: right;
  white-space: nowrap;
}

.param-val-badge.success {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.4);
  color: #10b981;
}

.param-val-badge.warning {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.4);
  color: #f59e0b;
}

.param-card-desc {
  font-size: 11px;
  color: #94a3b8;
  line-height: 1.5;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 6px;
  padding: 8px 10px;
  border-left: 2px solid rgba(0, 240, 255, 0.3);
}

.param-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  color: var(--text-dim);
  margin-top: auto;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ========================================================================== */
/* LIVE VERSION & INSTANT CACHE PURGE SYSTEM (ANTI-DEAD-DATA ENGINE)          */
/* ========================================================================== */

.bilge-update-banner {
  display: none !important;
}

@keyframes slideDownUpdate {
  from {
    transform: translateY(-80px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.update-banner-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.update-banner-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.25), rgba(16, 185, 129, 0.25));
  border: 1px solid var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
  animation: pulseGlowUpdate 2s infinite ease-in-out;
}

@keyframes pulseGlowUpdate {
  0%, 100% { box-shadow: 0 0 15px rgba(0, 240, 255, 0.3); }
  50% { box-shadow: 0 0 25px rgba(0, 240, 255, 0.6); }
}

.update-banner-title {
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.update-badge-pill {
  background: var(--cyan);
  color: #000;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

.update-banner-desc {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
  line-height: 1.4;
}

.update-banner-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.update-action-btn {
  background: linear-gradient(90deg, #10b981, #00f0ff);
  color: #020617;
  font-weight: 800;
  font-size: 12px;
  padding: 8px 16px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.update-action-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 28px rgba(0, 240, 255, 0.6);
}

.update-dismiss-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all 0.2s;
}

.update-dismiss-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

/* TOP HEADER PURGE CACHE BUTTON */
.purge-cache-header-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.25);
  color: #00f0ff;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.purge-cache-header-btn:hover {
  background: rgba(0, 240, 255, 0.18);
  border-color: rgba(0, 240, 255, 0.5);
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.25);
}

/* FULLSCREEN UPDATE HUD OVERLAY */
.bilge-update-hud {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(2, 6, 23, 0.94);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  animation: fadeIn 0.2s ease;
}

.hud-ring-spinner {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  border: 3px solid rgba(0, 240, 255, 0.15);
  border-top-color: #00f0ff;
  border-right-color: #10b981;
  animation: hudSpin 0.8s linear infinite;
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.4);
}

@keyframes hudSpin {
  to { transform: rotate(360deg); }
}

.hud-step-text {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.3px;
  text-align: center;
}

.hud-sub-text {
  font-size: 12px;
  color: var(--text-dim);
  font-family: 'JetBrains Mono', monospace;
  text-align: center;
}

/* ============================================================
   EXECUTIVE SETTINGS DRAWER & SYSTEM CONTROL CENTER
   ============================================================ */
.settings-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 99990;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.settings-drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.tablet-notification-policy-dialog {
  display: none;
  position: fixed;
  z-index: 100000;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(440px, calc(100vw - 28px));
  box-sizing: border-box;
  padding: 18px;
  border: 1px solid rgba(0, 240, 255, 0.32);
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(180deg, rgba(10, 18, 36, 0.99), rgba(6, 11, 24, 0.99));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.82), 0 0 30px rgba(0, 240, 255, 0.12);
}

.tablet-notification-policy-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.tablet-notification-policy-title {
  color: #fff;
  font-size: 17px;
  font-weight: 800;
}

.executive-settings-drawer {
  position: fixed;
  top: 0;
  right: -460px;
  width: 440px;
  max-width: 92vw;
  height: 100vh;
  background: linear-gradient(180deg, rgba(10, 18, 36, 0.98) 0%, rgba(6, 11, 24, 0.99) 100%);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  border-left: 1px solid rgba(0, 240, 255, 0.28);
  box-shadow: -15px 0 50px rgba(0, 0, 0, 0.8), inset 1px 0 0 rgba(255, 255, 255, 0.05);
  z-index: 99995;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.executive-settings-drawer.open {
  transform: translateX(-460px);
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 240, 255, 0.03);
}
.drawer-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}
.drawer-icon {
  font-size: 24px;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: 10px;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.drawer-title {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.3px;
  margin: 0;
}
.drawer-subtitle {
  font-size: 11px;
  color: var(--text-muted);
  margin: 2px 0 0 0;
}
.drawer-close-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  transition: all 0.2s;
}
.drawer-close-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
  color: #ef4444;
}

.drawer-body {
  padding: 18px 22px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.drawer-section {
  display: flex;
  flex-direction: column;
}
.drawer-section-title {
  font-size: 10.5px;
  font-weight: 800;
  color: var(--cyan);
  letter-spacing: 0.8px;
  margin-bottom: 8px;
  text-transform: uppercase;
}

/* Sound mode pills in drawer */
.drawer-sound-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.drawer-sound-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.2s;
}
.drawer-sound-btn:hover {
  background: rgba(0, 240, 255, 0.06);
  border-color: rgba(0, 240, 255, 0.3);
  color: #fff;
}
.drawer-sound-btn.active {
  background: rgba(0, 240, 255, 0.14);
  border-color: var(--cyan);
  color: #fff;
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.25);
}
.sound-opt-icon {
  font-size: 18px;
}
.sound-opt-label {
  font-size: 12px;
  font-weight: 700;
}
.sound-opt-sub {
  font-size: 9.5px;
  color: var(--text-dim);
}

.drawer-card-box {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px;
}
.drawer-box-text {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0 0 10px 0;
}
.drawer-action-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}
.drawer-action-btn.btn-purge {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.15), rgba(16, 185, 129, 0.15));
  border: 1px solid rgba(0, 240, 255, 0.35);
  color: #00f0ff;
}
.drawer-action-btn.btn-purge:hover {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.28), rgba(16, 185, 129, 0.28));
  border-color: #00f0ff;
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.35);
}
.drawer-action-btn.btn-primary {
  background: linear-gradient(135deg, #00f0ff, #0284c7);
  color: #000;
  font-weight: 800;
}
.drawer-action-btn.btn-primary:hover {
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.4);
}
.drawer-action-btn.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
}
.drawer-action-btn.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.drawer-action-btn.btn-full-settings {
  background: transparent;
  border: 1px dashed rgba(0, 240, 255, 0.35);
  color: var(--cyan);
}
.drawer-action-btn.btn-full-settings:hover {
  background: rgba(0, 240, 255, 0.1);
  border-style: solid;
}

/* ============================================================
   MOBILE "DAHA FAZLA / MENÜ" SHEET (< 600px)
   ============================================================ */
.mobile-more-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 99990;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.mobile-more-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-more-sheet {
  position: fixed;
  bottom: -100%;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, #0e172a 0%, #060b18 100%);
  border-top: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 20px 20px 0 0;
  padding: 12px 16px 36px 16px;
  z-index: 99992;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.85);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-more-sheet.open {
  transform: translateY(-100%);
}
.more-sheet-handle {
  width: 44px;
  height: 4px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 4px;
  margin: 0 auto 12px auto;
}
.more-sheet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.sheet-close-btn {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #94a3b8;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
}
.more-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.more-grid-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  color: #e2e8f0;
  cursor: pointer;
  transition: all 0.2s;
}
.more-grid-item:active {
  transform: scale(0.95);
  background: rgba(0, 240, 255, 0.1);
  border-color: rgba(0, 240, 255, 0.4);
}
.more-item-icon {
  font-size: 22px;
}
.more-item-label {
  font-size: 11px;
  font-weight: 700;
}

/* ============================================================================
   BİLGE LIVE TASK PROGRESS BAR (%0 -> %100) & FUNCTIONAL CONVERSATION FEED
   ============================================================================ */
.bilge-task-progress-box {
  background: linear-gradient(135deg, rgba(6, 18, 36, 0.96), rgba(11, 27, 52, 0.94));
  border: 1px solid rgba(0, 240, 255, 0.42);
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 8px;
  box-shadow: 0 8px 24px rgba(0, 240, 255, 0.14);
  transition: all 0.25s ease;
}

.bilge-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.bilge-progress-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #e2e8f0;
}

.bilge-progress-spinner {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(0, 240, 255, 0.3);
  border-top-color: var(--cyan);
  animation: bilgeSpin 0.8s linear infinite;
  display: inline-block;
}

@keyframes bilgeSpin {
  to { transform: rotate(360deg); }
}

.bilge-progress-pct {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 800;
  color: var(--cyan);
  background: rgba(0, 240, 255, 0.14);
  border: 1px solid rgba(0, 240, 255, 0.35);
  padding: 2px 8px;
  border-radius: 999px;
}

.bilge-progress-track {
  width: 100%;
  height: 8px;
  background: rgba(15, 23, 42, 0.9);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.bilge-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #00f0ff 0%, #10b981 100%);
  border-radius: 999px;
  transition: width 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.6);
}

.bilge-progress-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 7px;
}

.bilge-step-pill {
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.bilge-step-pill.done {
  background: rgba(16, 185, 129, 0.15);
  color: #6ee7b7;
  border-color: rgba(16, 185, 129, 0.38);
}

.bilge-step-pill.active {
  background: rgba(0, 240, 255, 0.16);
  color: #67e8f9;
  border-color: rgba(0, 240, 255, 0.42);
}

.bilge-conversation-feed {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(4, 10, 22, 0.72);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: 12px;
  padding: 10px;
  max-height: 250px;
  overflow-y: auto;
}

.bilge-conversation-feed.expanded {
  max-height: 460px;
}

.bilge-feed-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 11px;
  color: var(--text-muted);
}

.bilge-feed-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.bilge-feed-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #cbd5e1;
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 10.5px;
  font-weight: 700;
  cursor: pointer;
}

.bilge-feed-btn:hover {
  border-color: var(--cyan);
  color: #fff;
}

.bilge-msg-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bilge-msg-card {
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 12.5px;
  line-height: 1.45;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 23, 42, 0.78);
}

.bilge-msg-card.role-user {
  background: rgba(0, 240, 255, 0.08);
  border-color: rgba(0, 240, 255, 0.28);
  align-self: flex-end;
  width: 94%;
}

.bilge-msg-card.role-assistant {
  background: rgba(16, 185, 129, 0.07);
  border-color: rgba(16, 185, 129, 0.28);
  align-self: flex-start;
  width: 98%;
}

.bilge-msg-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  font-size: 10.5px;
  color: #94a3b8;
  font-weight: 700;
}

.bilge-msg-text {
  color: #f8fafc;
  word-break: break-word;
}

.bilge-msg-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 7px;
}

.bilge-action-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(0, 240, 255, 0.14);
  color: #67e8f9;
  border: 1px solid rgba(0, 240, 255, 0.36);
  cursor: pointer;
}

.bilge-action-badge:hover {
  background: rgba(0, 240, 255, 0.25);
}

.bilge-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.bilge-media-card {
  background: rgba(2, 6, 23, 0.85);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 10px;
  overflow: hidden;
  padding: 6px;
}

.bilge-media-card img,
.bilge-media-card video {
  width: 100%;
  max-height: 210px;
  object-fit: contain;
  border-radius: 7px;
  background: #020617;
  display: block;
  cursor: pointer;
}

.bilge-media-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  padding: 5px 4px 2px 4px;
  font-size: 11px;
  color: #cbd5e1;
  font-weight: 600;
}

/* ============================================================================
   BİRLEŞİK YAZMA MODU (TABLET, WEB VE TELEFONLARDA BİREBİR AYNI AKIŞ)
   ============================================================================ */
.yazma-modu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99985;
  background: radial-gradient(500px 300px at 50% 10%, rgba(0, 217, 255, 0.14), transparent 70%), #050914;
  flex-direction: column;
  padding: 16px 24px 20px;
  gap: 12px;
  overflow: hidden;
  box-sizing: border-box;
}
.yazma-modu-overlay.open {
  display: flex;
}
body.yazma-modu-active .top-header,
body.yazma-modu-active .bottom-nav,
body.yazma-modu-active .main-stage {
  visibility: hidden;
  pointer-events: none;
}
.yazma-modu-overlay .ctop {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(125, 211, 252, 0.18);
  max-width: 920px;
  width: 100%;
  margin: 0 auto;
}
.yazma-modu-overlay .cava {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--cyan);
  box-shadow: 0 0 18px rgba(0, 217, 255, 0.35);
  flex: none;
  cursor: pointer;
  background: #000;
}
.yazma-modu-overlay .cava video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  display: block;
}
.yazma-modu-overlay .ctitle {
  flex: 1;
  min-width: 0;
}
.yazma-modu-overlay .ctitle b {
  display: block;
  font-size: 15px;
  color: #f4f8ff;
}
.yazma-modu-overlay .ctitle span {
  font-size: 12px;
  color: #8ea5c8;
}
.yazma-modu-overlay .cclose {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  border: 1px solid rgba(125, 211, 252, 0.18);
  background: rgba(255, 255, 255, 0.05);
  color: #f4f8ff;
  font-size: 18px;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.yazma-modu-overlay .thread {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 4px 2px;
  max-width: 920px;
  width: 100%;
  margin: 0 auto;
}
.yazma-modu-overlay .bub {
  max-width: 88%;
  padding: 12px 15px;
  border-radius: 18px;
  font-size: 15px;
  line-height: 1.42;
  word-wrap: break-word;
}
.yazma-modu-overlay .bub.u {
  align-self: flex-end;
  background: linear-gradient(135deg, rgba(0, 217, 255, 0.24), rgba(0, 217, 255, 0.1));
  border: 1px solid rgba(0, 217, 255, 0.42);
  border-bottom-right-radius: 5px;
  color: #f4f8ff;
  font-weight: 600;
}
.yazma-modu-overlay .bub.b {
  align-self: flex-start;
  background: rgba(9, 17, 36, 0.9);
  border: 1px solid rgba(125, 211, 252, 0.22);
  border-bottom-left-radius: 5px;
  color: #f4f8ff;
}
.yazma-modu-overlay .bub.b b {
  display: block;
  font-size: 13px;
  color: #00d9ff;
  margin-bottom: 3px;
}
.yazma-modu-overlay .bub.b p {
  margin: 0;
  color: #dbeafe;
  font-size: 14px;
}
.yazma-modu-overlay .ans {
  align-self: flex-start;
  width: 100%;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.yazma-modu-overlay .ans .c {
  border-radius: 18px;
  background: rgba(9, 17, 36, 0.86);
  border: 1px solid rgba(125, 211, 252, 0.18);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}
.yazma-modu-overlay .ans .c.alarm {
  border-color: rgba(255, 51, 102, 0.55);
  background: linear-gradient(135deg, rgba(255, 51, 102, 0.18), rgba(9, 17, 36, 0.92));
}
.yazma-modu-overlay .ans .c.warn {
  border-color: rgba(255, 176, 32, 0.5);
  background: linear-gradient(135deg, rgba(255, 176, 32, 0.15), rgba(9, 17, 36, 0.9));
}
.yazma-modu-overlay .ans .ch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.yazma-modu-overlay .ans .cn {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #8ea5c8;
  text-transform: uppercase;
  margin-right: auto;
}
.yazma-modu-overlay .ans .ch small {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: #8ea5c8;
}
.yazma-modu-overlay .ans .big {
  font-size: 21px;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: #f4f8ff;
}
.yazma-modu-overlay .ans .sub {
  font-size: 11px;
  color: #8ea5c8;
  font-weight: 600;
}
.yazma-modu-overlay .ans .sub.up { color: #00e676; }
.yazma-modu-overlay .ans .sub.down { color: #ff3366; }
.yazma-modu-overlay .ans .sub.amber { color: #ffb020; }
.yazma-modu-overlay .bbar {
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
  padding: 2px;
  border: 1px solid rgba(255, 255, 255, 0.09);
}
.yazma-modu-overlay .bfill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #00e676, #00d9ff);
}
.yazma-modu-overlay .sug {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
  max-width: 920px;
  width: 100%;
  margin: 0 auto;
}
.yazma-modu-overlay .sug button {
  flex: none;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(125, 211, 252, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: #dbeafe;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.yazma-modu-overlay .compose {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px;
  border-radius: 18px;
  background: rgba(8, 15, 32, 0.92);
  border: 1px solid rgba(125, 211, 252, 0.18);
  max-width: 920px;
  width: 100%;
  margin: 0 auto;
}
.yazma-modu-overlay .compose input {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #f4f8ff;
  font: inherit;
  font-size: 14px;
  padding: 0 8px;
}
.yazma-modu-overlay .ib {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  border: 1px solid rgba(125, 211, 252, 0.18);
  background: rgba(255, 255, 255, 0.05);
  color: #f4f8ff;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex: none;
  font-size: 16px;
}
.yazma-modu-overlay .ib.mic {
  border-color: rgba(0, 217, 255, 0.45);
  background: radial-gradient(circle, rgba(0, 217, 255, 0.28), rgba(0, 217, 255, 0.07));
  color: #00d9ff;
}
.yazma-modu-overlay .ib.send {
  border-color: rgba(0, 230, 118, 0.45);
  background: rgba(0, 230, 118, 0.16);
  color: #00e676;
  font-weight: 900;
}




/* Shared buttons: modules use these classes everywhere and they had no definition. */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:0 16px;border-radius:12px;border:1px solid rgba(0,240,255,.28);background:rgba(13,23,53,.78);color:var(--text-main);font:600 14px 'Plus Jakarta Sans',system-ui,sans-serif;cursor:pointer;white-space:nowrap}
.btn:hover{background:var(--bg-card-hover);border-color:var(--border-card-bright)}
.btn:disabled{opacity:.5;cursor:not-allowed}
.btn-primary{background:#00d9ff;border-color:#00d9ff;color:#04131c}
.btn-primary:hover{background:#33e4ff;border-color:#33e4ff}
.btn-sm{min-height:38px;padding:0 12px;font-size:13px;border-radius:10px}

body.energy-motion-paused .energy-scene *{animation-play-state:paused!important}
