/* BizSolution Production CSS - Bulletproof Light & Dark Theme */

/* Light Theme as Primary Ground */
html {
  color-scheme: light;
  overflow-x: clip;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
}
html.dark {
  color-scheme: dark;
}

body {
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: #f8fafc !important;
  color: #0f172a !important;
  overflow-x: clip;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
  transition: background-color 0.25s ease, color 0.25s ease;
}

html.dark body {
  background-color: #080b11 !important;
  color: #f8fafc !important;
}

/* Background Grids */
.bg-grid-mesh {
  background-size: 32px 32px;
  background-image: 
    linear-gradient(to right, rgba(148, 163, 184, 0.12) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 163, 184, 0.12) 1px, transparent 1px);
}
html.dark .bg-grid-mesh {
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
}

/* Ambient Radial Glow */
.radial-glow-hero {
  position: absolute;
  width: min(600px, 95vw);
  max-width: 100%;
  height: min(600px, 95vw);
  background: radial-gradient(circle, rgba(14, 165, 233, 0.15) 0%, rgba(99, 102, 241, 0.08) 50%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
html.dark .radial-glow-hero {
  background: radial-gradient(circle, rgba(14, 165, 233, 0.18) 0%, rgba(99, 102, 241, 0.12) 50%, transparent 70%);
}

/* Card Surface - Light and Dark */
.bs-card {
  height: 100%;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 18px -2px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.03);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.bs-card:hover {
  border-color: #94a3b8;
  box-shadow: 0 14px 28px -4px rgba(14, 165, 233, 0.12), 0 2px 6px rgba(15, 23, 42, 0.04);
  transform: translateY(-2px);
}

html.dark .bs-card {
  background-color: rgba(15, 21, 35, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}
html.dark .bs-card:hover {
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: 0 20px 40px -10px rgba(14, 165, 233, 0.15);
}

/* Primary Button */
.btn-primary-gradient {
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 50%, #4f46e5 100%);
  box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.3);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-primary-gradient:hover {
  box-shadow: 0 6px 20px 0 rgba(37, 99, 235, 0.45);
  transform: translateY(-1px);
}

/* Brand Text Gradient */
.text-gradient-brand {
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 50%, #4f46e5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
html.dark .text-gradient-brand {
  background: linear-gradient(135deg, #38bdf8 0%, #60a5fa 50%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Animated Cursor */
.code-cursor {
  display: inline-block;
  width: 7px;
  height: 14px;
  background-color: #0284c7;
  vertical-align: middle;
  animation: blink 1s infinite;
}
html.dark .code-cursor {
  background-color: #38bdf8;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Pulse Animation */
.pulse-emerald {
  animation: pulse-emerald-glow 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-emerald-glow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.15); }
}

/* Clean Scrollbars & Utilities */
.no-scrollbar::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}
.no-scrollbar {
  -ms-overflow-style: none !important;
  scrollbar-width: none !important;
}

::-webkit-scrollbar {
  width: 5px;
  height: 0px;
}
::-webkit-scrollbar:horizontal {
  display: none !important;
  height: 0px !important;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}
html.dark ::-webkit-scrollbar-thumb {
  background: #334155;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Mobile Touch & iOS Viewport Safeguards */
html, body {
  -webkit-text-size-adjust: 100%;
}

button, a, input, select, textarea {
  touch-action: manipulation;
}

/* ============================================================ */
/* MilTech & Defense-Tech Custom Theming (Light & Dark Safe)    */
/* ============================================================ */
.btn-emerald-gradient {
  background: linear-gradient(135deg, #059669 0%, #10b981 50%, #047857 100%);
  color: #ffffff !important;
  box-shadow: 0 4px 14px 0 rgba(16, 185, 129, 0.35);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-emerald-gradient:hover {
  box-shadow: 0 6px 20px 0 rgba(16, 185, 129, 0.5);
  transform: translateY(-1px);
  color: #ffffff !important;
}

.btn-indigo-gradient {
  background: linear-gradient(135deg, #4338ca 0%, #6366f1 50%, #3730a3 100%);
  color: #ffffff !important;
  box-shadow: 0 4px 14px 0 rgba(99, 102, 241, 0.35);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-indigo-gradient:hover {
  box-shadow: 0 6px 20px 0 rgba(99, 102, 241, 0.5);
  transform: translateY(-1px);
  color: #ffffff !important;
}

.bg-emerald-surface {
  background-color: #ecfdf5;
}
html.dark .bg-emerald-surface {
  background-color: rgba(6, 78, 59, 0.35);
}

.border-emerald-subtle {
  border-color: #a7f3d0;
}
html.dark .border-emerald-subtle {
  border-color: rgba(16, 185, 129, 0.35);
}

.text-emerald-vivid {
  color: #047857;
}
html.dark .text-emerald-vivid {
  color: #34d399;
}

.bg-indigo-surface {
  background-color: #eef2ff;
}
html.dark .bg-indigo-surface {
  background-color: rgba(49, 46, 129, 0.35);
}

.border-indigo-subtle {
  border-color: #c7d2fe;
}
html.dark .border-indigo-subtle {
  border-color: rgba(99, 102, 241, 0.35);
}

.text-indigo-vivid {
  color: #4338ca;
}
html.dark .text-indigo-vivid {
  color: #818cf8;
}

/* Tactical & DefTech Badges (Clean, solid contrast in both themes) */
.badge-tactical {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.625rem;
  border-radius: 0.375rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  background-color: #f1f5f9;
  color: #1e293b;
  border: 1px solid #cbd5e1;
  transition: all 0.2s ease;
}
html.dark .badge-tactical {
  background-color: #1e293b !important;
  color: #f1f5f9 !important;
  border-color: #334155 !important;
}

.badge-subtle {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.625rem;
  border-radius: 0.375rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 500;
  background-color: #f8fafc;
  color: #475569;
  border: 1px solid #e2e8f0;
  transition: all 0.2s ease;
}
html.dark .badge-subtle {
  background-color: #0f172a !important;
  color: #94a3b8 !important;
  border-color: #1e293b !important;
}

.badge-logo-tech {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  background-color: #e2e8f0;
  color: #334155;
  border: 1px solid #cbd5e1;
}
html.dark .badge-logo-tech {
  background-color: #1e293b !important;
  color: #cbd5e1 !important;
  border-color: #334155 !important;
}

/* Tactical Terminal Window Frame */
.terminal-window {
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid #cbd5e1;
  box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.18), 0 2px 8px rgba(15, 23, 42, 0.08);
  background: #090d16;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
html.dark .terminal-window {
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}
.terminal-window:hover {
  transform: translateY(-2px);
  border-color: #94a3b8;
}
html.dark .terminal-window:hover {
  border-color: rgba(56, 189, 248, 0.4);
}

.terminal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.625rem 1rem;
  background: #111827;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6875rem;
  color: #94a3b8;
}

/* Responsive Grid Support */
@media (min-width: 640px) {
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .sm\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
}
@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
}
@media (min-width: 1024px) {
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
}

/* NDA Guaranteed Badge (Sleek dark emerald in dark mode, light mint in light mode) */
.badge-nda {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 0.375rem;
  background-color: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
  transition: all 0.2s ease;
}
html.dark .badge-nda {
  background-color: rgba(6, 78, 59, 0.35) !important;
  color: #34d399 !important;
  border: 1px solid rgba(52, 211, 153, 0.35) !important;
  box-shadow: 0 0 12px -2px rgba(16, 185, 129, 0.25);
}

/* Contacts page dark-mode section backgrounds */
.contacts-bg-hero {
  background: transparent;
}
.contacts-bg-channels {
  background-color: rgba(241, 245, 249, 0.75);
}
html.dark .contacts-bg-channels {
  background-color: rgba(11, 15, 24, 0.85) !important;
}

.contacts-bg-about {
  background-color: #ffffff;
}
html.dark .contacts-bg-about {
  background-color: rgba(8, 11, 17, 0.95) !important;
}

/* ============================================================ */
/* ARTICLE LAYOUT & CALLOUT STYLING (FIX OVERLAPS & CONTRAST)   */
/* ============================================================ */
.article-main-container {
  padding-top: 56px !important;
  padding-bottom: 96px !important;
}
@media (min-width: 640px) {
  .article-main-container {
    padding-top: 64px !important;
    padding-bottom: 112px !important;
  }
}

.article-content-flow > * + * {
  margin-top: 40px !important;
}

.article-cta-banner {
  margin-top: 56px !important;
}

/* Callout Cards Guaranteed Contrast (Light & Dark) */
.callout-box-emerald {
  background-color: #ecfdf5 !important;
  border: 1px solid #a7f3d0 !important;
  color: #065f46 !important;
  border-radius: 16px !important;
  padding: 20px !important;
}
.callout-box-emerald .callout-title {
  color: #065f46 !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  margin-bottom: 8px !important;
}
html.dark .callout-box-emerald {
  background-color: #081a14 !important;
  border-color: rgba(52, 211, 153, 0.3) !important;
  color: #e2e8f0 !important;
}
html.dark .callout-box-emerald .callout-title {
  color: #34d399 !important;
}

.callout-box-sky {
  background-color: #f0f9ff !important;
  border: 1px solid #bae6fd !important;
  color: #0369a1 !important;
  border-radius: 16px !important;
  padding: 20px !important;
}
.callout-box-sky .callout-title {
  color: #0369a1 !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  margin-bottom: 8px !important;
}
html.dark .callout-box-sky {
  background-color: #0a1829 !important;
  border-color: rgba(56, 189, 248, 0.3) !important;
  color: #e2e8f0 !important;
}
html.dark .callout-box-sky .callout-title {
  color: #38bdf8 !important;
}

.callout-box-slate {
  background-color: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  color: #1e293b !important;
  border-radius: 12px !important;
  padding: 16px !important;
}
html.dark .callout-box-slate {
  background-color: #0c101a !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: #e2e8f0 !important;
}

/* Global catch-all fallback for dark opacity backgrounds */
html.dark [class*="dark:bg-emerald-950"] {
  background-color: #081a14 !important;
}
html.dark [class*="dark:bg-sky-950"] {
  background-color: #0a1829 !important;
}
html.dark [class*="dark:bg-amber-950"] {
  background-color: #241405 !important;
}
html.dark [class*="dark:bg-indigo-950"] {
  background-color: #12142e !important;
}
html.dark [class*="dark:bg-slate-800"] {
  background-color: #0f1523 !important;
}
html.dark [class*="dark:border-emerald-800"],
html.dark [class*="dark:border-emerald-700"] {
  border-color: rgba(52, 211, 153, 0.3) !important;
}
html.dark [class*="dark:border-sky-800"],
html.dark [class*="dark:border-sky-700"] {
  border-color: rgba(56, 189, 248, 0.3) !important;
}
html.dark [class*="dark:border-amber-800"],
html.dark [class*="dark:border-amber-700"] {
  border-color: rgba(251, 191, 36, 0.3) !important;
}

/* ==========================================================================
   MilTech & Dual-Use Case Study HUD Interfaces (100% Vector Sharpness)
   ========================================================================== */

.tactical-hud {
  background: #080c16;
  border-top: 1px solid rgba(56, 189, 248, 0.2);
  width: 100%;
  min-height: 620px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
  color: #e2e8f0;
}

.hud-topbar {
  background: #0b1120;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.hud-title-box { display: flex; align-items: center; gap: 12px; }
.hud-badge-icon {
  width: 32px;
  height: 32px;
  background: #0284c7;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 0 16px rgba(14, 165, 233, 0.5);
  flex-shrink: 0;
}
.hud-main-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #38bdf8;
}
.hud-status-pills { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.hud-status-pills .pill, .netops-pills .pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 0.03em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.pill-emerald { background: rgba(16, 185, 129, 0.15) !important; color: #34d399 !important; border: 1px solid rgba(16, 185, 129, 0.4) !important; }
.pill-cyan { background: rgba(6, 182, 212, 0.15) !important; color: #22d3ee !important; border: 1px solid rgba(6, 182, 212, 0.4) !important; }
.pill-blue { background: rgba(59, 130, 246, 0.15) !important; color: #60a5fa !important; border: 1px solid rgba(59, 130, 246, 0.4) !important; }
.pill-amber { background: rgba(245, 158, 11, 0.15) !important; color: #fbbf24 !important; border: 1px solid rgba(245, 158, 11, 0.4) !important; }
.pill-purple { background: rgba(168, 85, 247, 0.15) !important; color: #c084fc !important; border: 1px solid rgba(168, 85, 247, 0.4) !important; }

.hud-workspace { display: flex; flex: 1; overflow: hidden; min-height: 560px; }
.hud-sidebar {
  width: 340px;
  flex-shrink: 0;
  background: #090e1b;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
}
.hud-section-header {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #94a3b8;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.hud-card {
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 14px;
}
.hud-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  padding: 5px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.hud-row:last-child { border-bottom: none; }
.hud-label { color: #94a3b8; font-weight: 500; }
.hud-val { font-family: 'JetBrains Mono', monospace; font-weight: 700; color: #f8fafc; }

.hud-btn-primary {
  background: #0284c7;
  color: white;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  padding: 10px;
  cursor: pointer;
  box-shadow: 0 0 16px rgba(2, 132, 199, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
}
.hud-btn-sec {
  background: #1e293b;
  color: #cbd5e1;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 9px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
}

.hud-main-view { flex: 1; display: flex; flex-direction: column; overflow: hidden; min-width: 0; }
.hud-map-area {
  flex: 1;
  position: relative;
  background: radial-gradient(circle at 55% 45%, #111a33 0%, #060913 85%);
  overflow: hidden;
  min-height: 360px;
}
.hud-grid-pattern {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(56, 189, 248, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.07) 1px, transparent 1px);
  background-size: 50px 50px;
}

.tactical-node {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 20;
}
.tactical-node-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid;
  position: relative;
  box-shadow: 0 8px 24px rgba(0,0,0,0.6);
}
.node-relay .tactical-node-icon { background: #064e3b; border-color: #10b981; color: #a7f3d0; }
.node-hq .tactical-node-icon { background: #0c4a6e; border-color: #0284c7; color: #bae6fd; }
.node-gcs .tactical-node-icon { background: #713f12; border-color: #f59e0b; color: #fef3c7; }

.node-badge-text {
  margin-top: 6px;
  background: rgba(11, 17, 32, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 3px 10px;
  border-radius: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  text-align: center;
}
.node-coord-sub { font-size: 9px; color: #94a3b8; font-weight: 500; margin-top: 1px; }

.hud-elevation-bar {
  height: 220px;
  background: #090e1b;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  z-index: 30;
}
.elevation-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.elevation-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 800;
  color: #38bdf8;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.elevation-chart-container {
  flex: 1;
  background: #060913;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

/* NetOps Console */
.netops-console {
  background: #080c16;
  border-top: 1px solid rgba(129, 140, 248, 0.25);
  width: 100%;
  min-height: 620px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
  color: #e2e8f0;
}
.netops-topbar {
  background: #0b1120;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.netops-title-box { display: flex; align-items: center; gap: 12px; }
.netops-icon {
  width: 32px;
  height: 32px;
  background: #6366f1;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 0 16px rgba(99, 102, 241, 0.5);
  flex-shrink: 0;
}
.netops-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #818cf8;
}
.netops-pills { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

.netops-workspace {
  display: grid;
  grid-template-columns: 280px 1fr 380px;
  flex: 1;
  overflow: hidden;
  min-height: 560px;
}
.fleet-panel {
  background: #090e1b;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
}
.group-item {
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.group-item.active {
  background: rgba(99, 102, 241, 0.12);
  border-color: #6366f1;
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.25);
}
.group-name { font-size: 12px; font-weight: 600; color: #f1f5f9; display: flex; align-items: center; gap: 8px; }
.group-count { font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 700; color: #34d399; }

.detail-panel {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
  background: #080c16;
}
.node-banner {
  background: linear-gradient(135deg, #0f172a, #131c35);
  border: 1px solid rgba(129, 140, 248, 0.3);
  border-radius: 10px;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}
.node-title-main { font-family: 'JetBrains Mono', monospace; font-size: 15px; font-weight: 800; color: #f8fafc; }
.node-meta-sub { font-size: 11px; color: #94a3b8; margin-top: 3px; }

.node-grid-2x2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.hud-box {
  background: #0d1424;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 14px;
}
.hud-box-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 800;
  color: #818cf8;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.param-row { display: flex; justify-content: space-between; align-items: center; font-size: 12px; padding: 5px 0; }
.param-label { color: #94a3b8; font-weight: 500; }
.param-value { font-family: 'JetBrains Mono', monospace; font-weight: 700; color: #f8fafc; }

.script-panel {
  background: #090e1b;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
}
.code-container {
  flex: 1;
  background: #060913;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  line-height: 1.6;
  color: #cbd5e1;
  overflow-y: auto;
  white-space: pre-wrap;
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.5);
}
.code-cmd { color: #34d399; font-weight: 700; }
.code-param { color: #38bdf8; }
.code-val { color: #f59e0b; }
.code-comment { color: #64748b; font-style: italic; }

.btn-deploy {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 800;
  border: none;
  border-radius: 8px;
  padding: 11px;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
}
.btn-print {
  background: #1e293b;
  color: #cbd5e1;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 9px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
}

/* ============================================================ */
/* Mobile Responsiveness & Overflow Protection (<= 1023px)      */
/* ============================================================ */

@media (max-width: 1023px) {
  /* Tactical HUD Mobile Stacking */
  .hud-workspace {
    flex-direction: column !important;
    min-height: auto !important;
    overflow: visible !important;
    height: auto !important;
  }
  .hud-sidebar {
    width: 100% !important;
    border-right: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    overflow: visible !important;
    max-height: none !important;
  }
  .hud-main-view {
    width: 100% !important;
    min-width: 0 !important;
    overflow: visible !important;
  }
  .hud-map-area {
    min-height: 380px !important;
    height: 400px !important;
    overflow: hidden !important;
  }
  .hud-elevation-bar {
    height: auto !important;
    min-height: 240px !important;
    padding: 12px 14px !important;
  }
  .hud-topbar, .netops-topbar {
    padding: 12px 14px !important;
  }
  .hud-main-title, .netops-title {
    font-size: 12px !important;
    word-break: break-word !important;
    line-height: 1.35 !important;
  }
  .elevation-title {
    font-size: 11px !important;
    word-break: break-word !important;
    line-height: 1.3 !important;
  }

  /* NetOps Orchestrator Mobile Stacking */
  .netops-console {
    min-height: auto !important;
    height: auto !important;
    overflow: visible !important;
  }
  .netops-workspace {
    display: flex !important;
    flex-direction: column !important;
    min-height: auto !important;
    height: auto !important;
    overflow: visible !important;
  }
  .fleet-panel {
    width: 100% !important;
    border-right: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    max-height: 260px !important;
    overflow-y: auto !important;
  }
  .detail-panel {
    width: 100% !important;
    padding: 14px !important;
    overflow: visible !important;
  }
  .script-panel {
    width: 100% !important;
    border-left: none !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    min-height: 280px !important;
    max-height: 380px !important;
  }
}

@media (max-width: 639px) {
  /* Tactical Map Nodes & Vector Badges on Small Screens */
  .node-badge-text {
    font-size: 9px !important;
    padding: 2px 6px !important;
    white-space: normal !important;
    max-width: 140px !important;
    line-height: 1.2 !important;
  }
  .tactical-node-icon {
    width: 36px !important;
    height: 36px !important;
  }
  .tactical-node-icon svg {
    width: 18px !important;
    height: 18px !important;
  }
  .hud-status-pills .pill, .netops-pills .pill {
    font-size: 10px !important;
    padding: 3px 8px !important;
  }
  .node-grid-2x2 {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  .node-banner {
    padding: 12px 14px !important;
  }
  .node-title-main {
    font-size: 13px !important;
  }
}

/* Bulletproof Global Viewport Lock to Prevent Horizontal Scroll Drift */
html, body {
  max-width: 100vw !important;
  overflow-x: hidden !important;
}

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

/* Ensure images, svgs, and cards never overflow their parents */
img, svg, canvas, video {
  max-width: 100%;
}

/* Direct, bulletproof section backgrounds (Dark Mode) */
html.dark #services,
html.dark #cases,
html.dark #tech,
html.dark #engagement,
html.dark #contact {
  background-color: #080b11 !important;
}

html.dark #inspector {
  background-color: #07090e !important;
}

html.dark .terminal-screen-bg {
  background-color: #0c1017 !important;
}

/* ============================================================ */
/* Segmented Tabs & Pricing Surfaces (Light & Dark)             */
/* ============================================================ */
.pricing-segmented-tabs {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 4px !important;
  padding: 4px !important;
  border-radius: 12px !important;
  background-color: #f1f5f9;
  border: 1px solid #e2e8f0;
  width: 100% !important;
}
html.dark .pricing-segmented-tabs {
  background-color: rgba(12, 16, 24, 0.95) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.pricing-tab-btn {
  flex: 1 1 0% !important;
  padding: 8px 4px !important;
  text-align: center !important;
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  border-radius: 8px !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  border: 1px solid transparent !important;
  color: #64748b;
  background: transparent;
}
html.dark .pricing-tab-btn {
  color: #94a3b8;
  background: transparent;
}
.pricing-tab-btn:hover {
  color: #0f172a;
}
html.dark .pricing-tab-btn:hover {
  color: #ffffff;
}

/* Active tab styles */
.pricing-tab-btn.active-sky {
  background-color: #ffffff !important;
  color: #0284c7 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}
html.dark .pricing-tab-btn.active-sky {
  background-color: rgba(14, 165, 233, 0.15) !important;
  color: #38bdf8 !important;
  border: 1px solid rgba(56, 189, 248, 0.4) !important;
  box-shadow: 0 0 12px rgba(14, 165, 233, 0.2) !important;
}

.pricing-tab-btn.active-indigo {
  background-color: #ffffff !important;
  color: #4f46e5 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}
html.dark .pricing-tab-btn.active-indigo {
  background-color: rgba(99, 102, 241, 0.2) !important;
  color: #818cf8 !important;
  border: 1px solid rgba(129, 140, 248, 0.4) !important;
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.25) !important;
}

.pricing-tab-btn.active-emerald {
  background-color: #ffffff !important;
  color: #059669 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}
html.dark .pricing-tab-btn.active-emerald {
  background-color: rgba(16, 185, 129, 0.15) !important;
  color: #34d399 !important;
  border: 1px solid rgba(52, 211, 153, 0.4) !important;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.2) !important;
}

.pricing-rate-card {
  padding: 16px !important;
  border-radius: 16px !important;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  transition: all 0.2s ease !important;
}
html.dark .pricing-rate-card {
  background-color: rgba(12, 16, 26, 0.8) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.pricing-launch-amount {
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 1.45rem !important; /* ~23px */
  line-height: 1.8rem !important;
  font-weight: 800 !important;
  white-space: nowrap !important;
  letter-spacing: -0.02em !important;
}
@media (min-width: 640px) {
  .pricing-launch-amount {
    font-size: 1.6rem !important; /* ~26px */
    line-height: 2rem !important;
  }
}

.pricing-sla-amount {
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 0.8125rem !important; /* 13px */
  line-height: 1.15rem !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
}

.sla-card-container {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
}
html.dark .sla-card-container {
  background-color: #0c1018 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.sla-reason-card {
  background-color: #f8fafc;
  border: 1px solid rgba(226, 232, 240, 0.8);
}
html.dark .sla-reason-card {
  background-color: rgba(18, 24, 38, 0.85) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
}

/* Articles List Card Guaranteed Dark Styling */
.article-grid-card {
  background-color: #ffffff;
  border-color: #e2e8f0;
}
html.dark .article-grid-card,
html.dark main article {
  background-color: #0c101a !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}
html.dark main article h2 a {
  color: #ffffff;
}
html.dark main article p {
  color: #cbd5e1;
}

html.dark table thead tr {
  background-color: rgba(30, 41, 59, 0.8) !important;
}


