@import url('https://fonts.googleapis.com/css2?family=Syncopate:wght@400;700&family=Space+Mono:ital,wght@0,400;0,700;1,400&family=Inter:wght@300;400;500;600;700;800&family=Unbounded:wght@300;500;700;900&family=Chakra+Petch:wght@400;600;700&family=Outfit:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,600;0,700;1,600&family=Syne:wght@700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;700&display=swap');

:root {
  --deep-void: #050505;
  --panel-bg: #0a0a0a;
  --panel-elevated: #0f0f0f;
  --neon-green: #10B981;
  --neon-emerald: #10B981;
  --neon-purple: #A855F7;
  --neon-gold: #FBBF24;
  --neon-blue: #3B82F6;
  --neon-cyan: #06B6D4;
  --neon-red: #EF4444;
  --neon-orange: #F97316;
  --neon-pink: #EC4899;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background-color: var(--deep-void);
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

::selection {
  background: var(--neon-green);
  color: #000000;
}

/* ==========================================
   TYPOGRAPHY SYSTEM (FROM PUBLIC_HTML)
   ========================================== */
.font-sync { font-family: 'Syncopate', sans-serif !important; }
.font-mono { font-family: 'Space Mono', monospace !important; }
.font-unbounded { font-family: 'Unbounded', sans-serif !important; }
.font-chakra { font-family: 'Chakra Petch', sans-serif !important; }
.font-outfit { font-family: 'Outfit', sans-serif !important; }
.font-playfair { font-family: 'Playfair Display', serif !important; }
.font-syne { font-family: 'Syne', sans-serif !important; }
.font-jakarta { font-family: 'Plus Jakarta Sans', sans-serif !important; }
.font-code { font-family: 'JetBrains Mono', monospace !important; }

/* ==========================================
   ATMOSPHERIC NOISE & GRID BACKGROUNDS
   ========================================== */
.noise-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0MDAiIGhlaWdodD0iNDAwIj48ZmlsdGVyIGlkPSJub2lzZSI+PHBmZVR1cmJ1bGVuY2UgdHlwZT0iZnJhY3RhbE5vaXNlIiBiYXNlRnJlcXVlbmN5PSIwLjY1IiBudW1PY3RhdmVzPSIzIiBzdGl0Y2hUaWxlcz0ic3RpdGNoIi8+PC9maWx0ZXI+PHJlY3Qgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgZmlsdGVyPSJ1cmwoI25vaXNlKSIgb3BhY2l0eT0iMC4wNSIvPjwvc3ZnPg==');
  pointer-events: none;
  z-index: 50;
  opacity: 0.4;
}

.grid-bg {
  background-size: 40px 40px;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
}

/* ==========================================
   TOP TACTICAL HUD BAR & MODULE DRAWER
   ========================================== */
.tactical-hud {
  position: sticky;
  top: 0;
  z-index: 45;
  background: rgba(5, 5, 5, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hud-pill {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #9CA3AF;
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.25s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.hud-pill:hover, .hud-pill.active {
  color: #10B981;
  border-color: rgba(16, 185, 129, 0.45);
  background: rgba(16, 185, 129, 0.1);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.15);
}

/* ==========================================
   COMMAND CARDS (INDEX.HTML HUB)
   ========================================== */
.command-card {
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  padding: 2rem;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 260px;
  text-decoration: none;
  color: white;
}

.command-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.8);
}

.command-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.05), transparent);
  transform: skewX(-25deg);
  transition: 0.5s;
  pointer-events: none;
}

.command-card:hover::after {
  left: 150%;
}

/* ACCENT BORDERS & HOVER GLOWS */
.accent-green { border-top: 4px solid #10B981; }
.accent-green:hover { border-color: #10B981; box-shadow: 0 0 30px rgba(16, 185, 129, 0.18); }

.accent-purple { border-top: 4px solid #A855F7; }
.accent-purple:hover { border-color: #A855F7; box-shadow: 0 0 30px rgba(168, 85, 247, 0.18); }

.accent-gold { border-top: 4px solid #FBBF24; }
.accent-gold:hover { border-color: #FBBF24; box-shadow: 0 0 30px rgba(251, 191, 36, 0.18); }

.accent-blue { border-top: 4px solid #3B82F6; }
.accent-blue:hover { border-color: #3B82F6; box-shadow: 0 0 30px rgba(59, 130, 246, 0.18); }

.accent-red { border-top: 4px solid #EF4444; }
.accent-red:hover { border-color: #EF4444; box-shadow: 0 0 30px rgba(239, 68, 68, 0.18); }

.accent-orange { border-top: 4px solid #F97316; }
.accent-orange:hover { border-color: #F97316; box-shadow: 0 0 30px rgba(249, 115, 22, 0.18); }

.accent-pink { border-top: 4px solid #EC4899; }
.accent-pink:hover { border-color: #EC4899; box-shadow: 0 0 30px rgba(236, 72, 153, 0.18); }

.accent-cyan { border-top: 4px solid #06B6D4; }
.accent-cyan:hover { border-color: #06B6D4; box-shadow: 0 0 30px rgba(6, 182, 212, 0.18); }

.icon-box {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* ==========================================
   FUNNEL BLUEPRINT (TAPERED POLYGON LAYERS)
   ========================================== */
.funnel-stage-wrapper {
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
  transition: transform 0.3s ease;
  margin-bottom: 1rem;
}

.funnel-stage-wrapper:hover {
  transform: scale(1.02);
  z-index: 20;
}

.funnel-layer {
  background: #0f0f0f;
  padding: 2rem 1.5rem;
  text-align: center;
  clip-path: polygon(0 0, 100% 0, 95% 100%, 5% 100%);
  cursor: pointer;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  position: relative;
  margin: 0 auto;
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .funnel-layer {
    clip-path: polygon(0 0, 100% 0, 98% 100%, 2% 100%);
    width: 100% !important;
    padding: 1.5rem 1rem;
  }
}

.fl-blue { background: linear-gradient(180deg, rgba(59, 130, 246, 0.18) 0%, rgba(10, 10, 10, 0.95) 100%); border-top: 3px solid #3B82F6; }
.fl-purple { background: linear-gradient(180deg, rgba(168, 85, 247, 0.18) 0%, rgba(10, 10, 10, 0.95) 100%); border-top: 3px solid #A855F7; }
.fl-gold { background: linear-gradient(180deg, rgba(251, 191, 36, 0.18) 0%, rgba(10, 10, 10, 0.95) 100%); border-top: 3px solid #FBBF24; }
.fl-orange { background: linear-gradient(180deg, rgba(249, 115, 22, 0.18) 0%, rgba(10, 10, 10, 0.95) 100%); border-top: 3px solid #F97316; }
.fl-emerald { background: linear-gradient(180deg, rgba(16, 185, 129, 0.22) 0%, rgba(10, 10, 10, 0.95) 100%); border-top: 3px solid #10B981; }
.fl-cyan { background: linear-gradient(180deg, rgba(6, 182, 212, 0.22) 0%, rgba(10, 10, 10, 0.95) 100%); border-top: 3px solid #06B6D4; }

.down-arrow {
  text-align: center;
  color: #444;
  font-size: 1.2rem;
  margin: -5px 0 8px 0;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-5px); }
  60% { transform: translateY(-3px); }
}

/* ==========================================
   AD WARFARE & GLITCH EFFECTS
   ========================================== */
.war-card {
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.war-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.7);
}

.border-orange { border-top: 4px solid var(--neon-orange); }
.border-emerald { border-top: 4px solid var(--neon-emerald); }
.border-blue { border-top: 4px solid var(--neon-blue); }
.border-purple { border-top: 4px solid var(--neon-purple); }
.border-gold { border-top: 4px solid var(--neon-gold); }
.border-red { border-top: 4px solid var(--neon-red); }

.flow-line {
  position: relative;
  padding-left: 2rem;
  border-left: 2px dashed rgba(255, 255, 255, 0.15);
}

.flow-dot {
  position: absolute;
  left: -6px;
  top: 1.5rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--neon-emerald);
  box-shadow: 0 0 12px var(--neon-emerald);
}

.glitch {
  position: relative;
  display: inline-block;
}

.glitch::before, .glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.glitch::before {
  left: 2px;
  text-shadow: -1px 0 #ff00c1;
  clip: rect(44px, 450px, 56px, 0);
  animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch::after {
  left: -2px;
  text-shadow: -1px 0 #00fff9;
  clip: rect(44px, 450px, 56px, 0);
  animation: glitch-anim2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
  0% { clip: rect(12px, 9999px, 5px, 0); }
  25% { clip: rect(38px, 9999px, 82px, 0); }
  50% { clip: rect(24px, 9999px, 46px, 0); }
  75% { clip: rect(62px, 9999px, 90px, 0); }
  100% { clip: rect(89px, 9999px, 98px, 0); }
}

@keyframes glitch-anim2 {
  0% { clip: rect(65px, 9999px, 100px, 0); }
  25% { clip: rect(18px, 9999px, 40px, 0); }
  50% { clip: rect(52px, 9999px, 74px, 0); }
  75% { clip: rect(10px, 9999px, 28px, 0); }
  100% { clip: rect(2px, 9999px, 85px, 0); }
}

/* ==========================================
   FINANCIAL LEDGER & PAYMENT STATUS
   ========================================== */
.ledger-card {
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.ledger-card:hover {
  border-color: rgba(16, 185, 129, 0.35);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.scan-line {
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--neon-green), transparent);
  position: absolute;
  top: 0;
  left: 0;
  animation: scan 4s infinite linear;
  opacity: 0.6;
  pointer-events: none;
}

@keyframes scan {
  0% { top: 0%; }
  100% { top: 100%; }
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 4px;
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.status-paid { background: rgba(16, 185, 129, 0.12); color: #10B981; border: 1px solid rgba(16, 185, 129, 0.35); }
.status-pending { background: rgba(251, 191, 36, 0.12); color: #FBBF24; border: 1px solid rgba(251, 191, 36, 0.35); }
.status-locked { background: rgba(255, 255, 255, 0.05); color: #9CA3AF; border: 1px solid rgba(255, 255, 255, 0.12); }
.status-alert { background: rgba(239, 68, 68, 0.12); color: #EF4444; border: 1px solid rgba(239, 68, 68, 0.35); }
.status-blue { background: rgba(59, 130, 246, 0.12); color: #60A5FA; border: 1px solid rgba(59, 130, 246, 0.35); }
.status-purple { background: rgba(168, 85, 247, 0.12); color: #C084FC; border: 1px solid rgba(168, 85, 247, 0.35); }

/* ==========================================
   MOSAIC BENTO GRID (CONTRACT & DELIVERABLES)
   ========================================== */
.mosaic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  grid-auto-rows: minmax(210px, auto);
  gap: 1.25rem;
}

@media (min-width: 1024px) {
  .span-wide { grid-column: span 2; }
  .span-tall { grid-row: span 2; }
  .span-big { grid-column: span 2; grid-row: span 2; }
}

.bento-card {
  background: #0f0f0f;
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.75rem;
  border-radius: 1rem;
  cursor: pointer;
}

.bento-card:hover {
  transform: translateY(-5px) scale(1.01);
  z-index: 20;
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
}

/* ==========================================
   PRODUCT LAB & CURRICULUM ACCORDIONS
   ========================================== */
.lab-card {
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.lab-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6);
}

.tier-yellow { border-top: 4px solid #FACC15; }
.tier-emerald { border-top: 4px solid #10B981; }
.tier-purple { border-top: 4px solid #A855F7; }
.tier-blue { border-top: 4px solid #3B82F6; }
.tier-red { border-top: 4px solid #EF4444; }

.tier-yellow:hover { border-color: #FACC15; box-shadow: 0 0 30px rgba(250, 204, 21, 0.2); }
.tier-emerald:hover { border-color: #10B981; box-shadow: 0 0 30px rgba(16, 185, 129, 0.2); }
.tier-purple:hover { border-color: #A855F7; box-shadow: 0 0 30px rgba(168, 85, 247, 0.2); }
.tier-blue:hover { border-color: #3B82F6; box-shadow: 0 0 30px rgba(59, 130, 246, 0.2); }
.tier-red:hover { border-color: #EF4444; box-shadow: 0 0 30px rgba(239, 68, 68, 0.2); }

.protocol-card {
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.day-module {
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 0.75rem;
  overflow: hidden;
  margin-bottom: 0.75rem;
  transition: all 0.3s ease;
}

.day-module:hover {
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateX(4px);
}

.day-header {
  padding: 1.1rem 1.25rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.day-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: #050505;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.day-module.active .day-content {
  max-height: 600px;
}

.day-module.active .chevron {
  transform: rotate(180deg);
}

.phase-1-border { border-left: 4px solid var(--neon-red); }
.phase-2-border { border-left: 4px solid var(--neon-blue); }
.phase-3-border { border-left: 4px solid var(--neon-emerald); }
.phase-4-border { border-left: 4px solid var(--neon-purple); }
.phase-icu-border { border-left: 4px solid var(--neon-orange); background: rgba(249, 115, 22, 0.04); }

/* ==========================================
   TERMINAL & FEATURE CARDS (NEURAL RANKER)
   ========================================== */
.feature-card {
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--neon-green);
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.12);
}

.terminal {
  background: #0f0f0f;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  font-family: 'JetBrains Mono', 'Space Mono', monospace;
  font-size: 12px;
  color: #d1d5db;
  overflow: hidden;
}

.terminal-header {
  background: #171717;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 7px;
  border-bottom: 1px solid #2a2a2a;
}

.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.terminal-body {
  padding: 18px;
  line-height: 1.65;
}

/* ==========================================
   NICHE MATRIX & WINNER GLOW CARDS
   ========================================== */
.glass-card {
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 16px;
}

.winner-glow {
  box-shadow: 0 0 40px rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.45);
}

.row-hover {
  transition: background-color 0.2s ease;
}

.row-hover:hover {
  background-color: rgba(16, 185, 129, 0.12);
  cursor: pointer;
}

/* ==========================================
   ROADMAP & EXECUTIVE CARDS (OUTFIT/PLAYFAIR)
   ========================================== */
.week-card {
  background: #0b0e14;
  border-radius: 16px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.week-card:hover {
  transform: translateY(-5px);
  border-color: #10B981;
  box-shadow: 0 15px 35px rgba(16, 185, 129, 0.14);
}

.week-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #10B981, #3B82F6);
  opacity: 0;
  transition: opacity 0.3s;
}

.week-card:hover::after {
  opacity: 1;
}

.clinic-card {
  background: linear-gradient(145deg, rgba(18, 18, 24, 0.95), rgba(10, 15, 28, 0.75));
  border: 1px solid rgba(168, 85, 247, 0.22);
  border-radius: 16px;
  padding: 26px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.clinic-card:hover {
  transform: translateY(-5px);
  border-color: #A855F7;
  box-shadow: 0 12px 32px rgba(168, 85, 247, 0.18);
}

/* ==========================================
   TACTICAL TABLES (PUBLIC_HTML STYLE)
   ========================================== */
.tactical-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 6px;
  font-family: 'Space Mono', monospace;
  font-size: 12px;
}

.tactical-table th {
  text-align: left;
  color: #6B7280;
  padding: 10px 16px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.tactical-table td {
  background: rgba(255, 255, 255, 0.025);
  padding: 14px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #E5E7EB;
  vertical-align: top;
}

.tactical-table tr td:first-child {
  border-left: 1px solid rgba(255, 255, 255, 0.05);
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
}

.tactical-table tr td:last-child {
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
}

.tactical-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.05);
}

/* ==========================================
   SCRIPT CARDS (CONTENT WAR ROOM)
   ========================================== */
.script-card {
  background: #0c0c0c;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 24px;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.script-card:hover {
  transform: translateY(-3px);
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.85);
}

.script-card.selected {
  border-color: #10B981;
  background: rgba(16, 185, 129, 0.06);
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.15);
}

/* ==========================================
   FORM INPUTS & INTERACTIVE CONTROLS
   ========================================== */
.tactical-input {
  background: #050505;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  padding: 10px 14px;
  border-radius: 8px;
  width: 100%;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.tactical-input:focus {
  border-color: var(--neon-green);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
}

/* ==========================================
   TOAST NOTIFICATION
   ========================================== */
.tactical-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: #10B981;
  color: #000000;
  padding: 12px 24px;
  border-radius: 9999px;
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.5);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 10px;
}

.tactical-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ==========================================
   V3 CLINICAL & GOVERNANCE STATUS SYSTEM
   ========================================== */
.status-proposed { background: rgba(59, 130, 246, 0.14); color: #60A5FA; border: 1px solid rgba(59, 130, 246, 0.4); }
.status-inprogress { background: rgba(251, 191, 36, 0.14); color: #FBBF24; border: 1px solid rgba(251, 191, 36, 0.4); }
.status-blocked { background: rgba(239, 68, 68, 0.14); color: #F87171; border: 1px solid rgba(239, 68, 68, 0.4); }
.status-verified { background: rgba(16, 185, 129, 0.14); color: #34D399; border: 1px solid rgba(16, 185, 129, 0.4); }
.status-demo { background: rgba(168, 85, 247, 0.16); color: #C084FC; border: 1px solid rgba(168, 85, 247, 0.45); }

/* ==========================================
   V3 INTERACTIVE TABS & CLINICAL WORKFLOWS
   ========================================== */
.portal-tab {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: #9CA3AF;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.portal-tab:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.07);
}

.portal-tab.active {
  background: rgba(16, 185, 129, 0.16);
  color: #10B981;
  border-color: #10B981;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
}

.workflow-step-card {
  background: #0b0e14;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  padding: 18px;
  position: relative;
  transition: all 0.25s ease;
}

.workflow-step-card:hover {
  border-color: rgba(16, 185, 129, 0.45);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.65);
}

.connector-pulse {
  width: 2px;
  height: 24px;
  margin: 0 auto;
  background: linear-gradient(180deg, #10B981, #3B82F6);
}

/* ==========================================
   ACCESSIBILITY & REDUCED MOTION
   ========================================== */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid #10B981 !important;
  outline-offset: 2px !important;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .scan-line, .glitch::before, .glitch::after {
    display: none !important;
  }
}

/* ==========================================
   SCROLLBAR
   ========================================== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #0a0a0a; }
::-webkit-scrollbar-thumb { background: #333; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--neon-green); }

/* ==========================================
   PRINT-FRIENDLY ADVOCATE & CLINICAL REVIEW
   ========================================== */
@media print {
  .no-print, .tactical-hud, .noise-bg, #moduleDrawer, #tacticalModal, #toast {
    display: none !important;
  }
  html, body {
    background: #ffffff !important;
    color: #000000 !important;
    font-size: 11pt !important;
  }
  * {
    color: #000000 !important;
    background: transparent !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
  .command-card, .ledger-card, .war-card, .bento-card, .clinic-card, .week-card, .feature-card, .protocol-card, .lab-card, .workflow-step-card {
    border: 1px solid #333333 !important;
    break-inside: avoid;
    page-break-inside: avoid;
    margin-bottom: 12px !important;
    padding: 14px !important;
  }
  .tactical-table {
    border-collapse: collapse !important;
    width: 100% !important;
  }
  .tactical-table th, .tactical-table td {
    border: 1px solid #444444 !important;
    padding: 8px 10px !important;
    color: #000000 !important;
  }
  .day-content {
    max-height: none !important;
    overflow: visible !important;
    display: block !important;
  }
  .status-badge {
    border: 1px solid #000000 !important;
    padding: 2px 6px !important;
  }
}

