/* ==========================================================================
   SEC 2026 // DOOMSDAY PROTOCOL DESIGN SYSTEM
   Organized by VES-Ecell & Meraki Pre-Incubation Centre
   ========================================================================== */

:root {
  /* Doomsday Protocol Palette */
  --doom-black: #050706;
  --doom-black-2: #0a0d0c;
  --doom-panel: #0d1210;
  --doom-panel-2: #111815;
  --doom-green: #173d2b;
  --doom-green-bright: #1f7a4d;
  --doom-emerald: #20c878;
  --doom-glow: #36ff91;
  --doom-silver: #b8c2bd;
  --doom-metal: #59645f;
  --doom-white: #f2f5f3;
  --doom-muted: #8b9690;
  --doom-warning: #d59b43;

  /* Typography */
  --doom-font-display: 'Space Grotesk', -apple-system, sans-serif;
  --doom-font-body: 'Outfit', -apple-system, sans-serif;
  --doom-font-mono: 'IBM Plex Mono', 'Space Mono', 'Consolas', monospace;

  /* Borders & Glows */
  --doom-border: rgba(32, 200, 120, 0.22);
  --doom-border-hover: rgba(54, 255, 145, 0.55);
  --doom-border-metal: rgba(184, 194, 189, 0.2);
  --doom-glow-soft: 0 0 25px rgba(32, 200, 120, 0.22);
  --doom-glow-strong: 0 0 40px rgba(54, 255, 145, 0.45);
  --doom-glow-text: 0 0 20px rgba(54, 255, 145, 0.6);
}

/* ==========================================================================
   Base Background & Multi-Layer System
   ========================================================================== */
html {
  scroll-padding-top: 76px;
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

body.sec-doomsday-body {
  margin: 0;
  padding: 0;
  background-color: #060913 !important;
  color: var(--doom-white);
  font-family: var(--doom-font-body);
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  position: relative;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Multi-layer Background Canvas */
.doom-bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  pointer-events: none;
  background: 
    radial-gradient(ellipse at 50% 0%, rgba(32, 200, 120, 0.12) 0%, transparent 60%),
    radial-gradient(circle at 10% 40%, rgba(23, 61, 43, 0.35) 0%, transparent 50%),
    radial-gradient(circle at 90% 60%, rgba(32, 200, 120, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 50% 100%, rgba(23, 61, 43, 0.4) 0%, transparent 60%),
    var(--doom-black);
}

/* Grid & Scanline Texture */
.doom-bg-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  background-image: 
    linear-gradient(rgba(32, 200, 120, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(32, 200, 120, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: center center;
  transform: translateZ(0);
}

.doom-bg-scanlines {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.15) 0px,
    rgba(0, 0, 0, 0.15) 1px,
    transparent 1px,
    transparent 2px
  );
  opacity: 0.7;
  transform: translateZ(0);
}

/* ==========================================================================
   Cinematic Boot Sequence // DOOMSDAY PROTOCOL ACTIVATION
   ========================================================================== */
#secBootScreen,
.doom-boot-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #040705;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
  box-sizing: border-box;
  font-family: var(--doom-font-mono);
  overflow: hidden;
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.7s ease, transform 0.7s ease;
}

#secBootScreen.dissolving {
  opacity: 0;
  transform: scale(1.03);
  filter: blur(4px);
  pointer-events: none;
}

#secBootScreen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  display: none !important;
}

/* Background Grid & Scanlines for Boot Screen */
.doom-boot-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(32, 200, 120, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(32, 200, 120, 0.05) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
  z-index: 1;
}

.doom-boot-scanlines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.2) 0px,
    rgba(0, 0, 0, 0.2) 1px,
    transparent 1px,
    transparent 2px
  );
  opacity: 0.8;
  pointer-events: none;
  z-index: 2;
}

/* Expanding Green Energy Shockwave on Activation */
.doom-boot-shockwave {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 4px solid var(--doom-glow);
  background: radial-gradient(circle, rgba(54, 255, 145, 0.5) 0%, rgba(32, 200, 120, 0.2) 40%, transparent 70%);
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  pointer-events: none;
  z-index: 3;
  transition: transform 0.85s cubic-bezier(0.1, 0.9, 0.2, 1), opacity 0.85s ease;
}

.doom-boot-shockwave.active {
  transform: translate(-50%, -50%) scale(35);
  opacity: 1;
}

/* Terminal Console Box */
.boot-terminal-box {
  width: 100%;
  max-width: 660px;
  background: linear-gradient(180deg, rgba(14, 21, 18, 0.98) 0%, rgba(7, 11, 9, 0.99) 100%);
  border: 1.5px solid var(--doom-emerald);
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.95), 0 0 30px rgba(32, 200, 120, 0.25), inset 0 0 20px rgba(32, 200, 120, 0.08);
  border-radius: 6px;
  padding: 2rem 2.2rem;
  position: relative;
  z-index: 4;
  box-sizing: border-box;
  transition: transform 0.4s ease, filter 0.4s ease, border-color 0.4s ease;
}

.boot-terminal-box.exit-surge {
  border-color: var(--doom-glow);
  box-shadow: 0 0 80px rgba(54, 255, 145, 0.7), inset 0 0 30px rgba(54, 255, 145, 0.3);
  transform: scale(1.02);
}

/* Corner Tech Accents */
.boot-corner-accent {
  position: absolute;
  width: 8px;
  height: 8px;
  pointer-events: none;
}
.boot-corner-accent.tl { top: -2px; left: -2px; border-top: 2px solid var(--doom-glow); border-left: 2px solid var(--doom-glow); }
.boot-corner-accent.tr { top: -2px; right: -2px; border-top: 2px solid var(--doom-glow); border-right: 2px solid var(--doom-glow); }
.boot-corner-accent.bl { bottom: -2px; left: -2px; border-bottom: 2px solid var(--doom-glow); border-left: 2px solid var(--doom-glow); }
.boot-corner-accent.br { bottom: -2px; right: -2px; border-bottom: 2px solid var(--doom-glow); border-right: 2px solid var(--doom-glow); }

.boot-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(32, 200, 120, 0.3);
  padding-bottom: 0.85rem;
  margin-bottom: 1.25rem;
}

.boot-header-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--doom-emerald);
}

.boot-header-dots {
  display: flex;
  gap: 6px;
}

.boot-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--doom-green-bright);
}

.boot-dot.active {
  background: var(--doom-glow);
  box-shadow: 0 0 8px var(--doom-glow);
  animation: doomPulseGlow 1.6s infinite ease-in-out;
}

.boot-console-logs {
  font-size: 0.88rem;
  line-height: 1.85;
  color: var(--doom-silver);
  min-height: 200px;
  max-height: 240px;
  overflow-y: auto;
  padding-right: 4px;
}

.boot-log-line {
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.boot-log-line.visible {
  opacity: 1;
  transform: translateY(0);
}

.boot-status-ok {
  color: var(--doom-glow);
  font-weight: 700;
  letter-spacing: 0.05em;
}

.boot-progress-wrap {
  margin-top: 1.4rem;
  background: rgba(23, 61, 43, 0.4);
  height: 5px;
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid rgba(32, 200, 120, 0.2);
}

.boot-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--doom-green-bright) 0%, var(--doom-glow) 100%);
  box-shadow: 0 0 12px var(--doom-glow);
  transition: width 0.25s ease;
}

.boot-status-readout {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  color: var(--doom-muted);
  margin-top: 0.75rem;
  letter-spacing: 0.06em;
}

.boot-readout-lbl {
  color: var(--doom-emerald);
  font-weight: 700;
}

.boot-readout-val {
  color: var(--doom-silver);
}

/* Actions Section */
.boot-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 1.6rem;
}

/* [ ENTER THE PROTOCOL ] Primary Activation Button */
.btn-boot-enter {
  position: relative;
  background: linear-gradient(135deg, rgba(23, 61, 43, 0.6) 0%, rgba(13, 26, 20, 0.8) 100%);
  color: var(--doom-muted);
  font-family: var(--doom-font-mono);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  padding: 0.85rem 2.2rem;
  border: 1.5px solid rgba(32, 200, 120, 0.3);
  cursor: not-allowed;
  border-radius: 4px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  max-width: 360px;
  overflow: hidden;
  box-sizing: border-box;
}

/* When diagnostics reach 100% and button is ready for user click */
.btn-boot-enter.ready {
  background: linear-gradient(135deg, var(--doom-green-bright) 0%, var(--doom-emerald) 100%);
  color: #020704 !important;
  border-color: var(--doom-glow);
  cursor: pointer;
  box-shadow: 0 0 25px rgba(32, 200, 120, 0.5), inset 0 0 10px rgba(255, 255, 255, 0.2);
  animation: bootBtnReadyPulse 2s infinite ease-in-out;
}

@keyframes bootBtnReadyPulse {
  0%, 100% {
    box-shadow: 0 0 25px rgba(32, 200, 120, 0.5), 0 0 10px rgba(54, 255, 145, 0.3);
    transform: translateY(0);
  }
  50% {
    box-shadow: 0 0 40px rgba(54, 255, 145, 0.8), 0 0 20px rgba(32, 200, 120, 0.5);
    transform: translateY(-2px);
  }
}

.btn-boot-enter.ready:hover {
  background: var(--doom-glow);
  color: #000000 !important;
  box-shadow: 0 0 45px rgba(54, 255, 145, 0.95);
  transform: translateY(-3px) scale(1.02);
}

.btn-boot-enter.activating {
  background: var(--doom-glow) !important;
  color: #000000 !important;
  box-shadow: 0 0 60px rgba(54, 255, 145, 1);
  transform: scale(0.98);
}

.boot-btn-content {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  position: relative;
  z-index: 2;
  white-space: nowrap !important;
}

.boot-bolt-icon {
  font-size: 1em;
  transition: transform 0.2s ease;
}

.btn-boot-enter.ready:hover .boot-bolt-icon {
  transform: scale(1.2);
}

.boot-btn-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.4) 50%,
    transparent 70%
  );
  transform: rotate(35deg) translateY(-100%);
  transition: transform 0.6s ease;
  pointer-events: none;
}

.btn-boot-enter.ready:hover .boot-btn-glow {
  transform: rotate(35deg) translateY(100%);
}

/* Surge flash on navbar conduit after entrance */
.doom-navbar-conduit.surge-flash {
  box-shadow: 0 0 35px var(--doom-glow), 0 0 60px var(--doom-emerald) !important;
  height: 3px !important;
  transition: all 0.5s ease;
}

/* Hero activation animation */
.sec-hero-grid.hero-activated {
  animation: heroEntranceFade 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes heroEntranceFade {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   Top System Status Bar & Smart Sticky Header Wrapper
   ========================================================================== */
.sec-sticky-header-wrapper {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sec-top-status-bar {
  background: var(--doom-black-2);
  border-bottom: 1px solid rgba(32, 200, 120, 0.18);
  font-family: var(--doom-font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  padding: 0.5rem 0;
  position: relative;
  z-index: 100;
  max-height: 50px;
  opacity: 1;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease, padding 0.3s ease, border-color 0.25s ease;
}

.sec-sticky-header-wrapper.is-scrolled .sec-top-status-bar {
  max-height: 0;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
  margin: 0;
  overflow: hidden;
  pointer-events: none;
  border-bottom-color: transparent;
}

.sec-status-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.sec-status-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--doom-silver);
}

.status-beacon {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--doom-glow);
  font-weight: 700;
}

.beacon-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--doom-glow);
  box-shadow: 0 0 8px var(--doom-glow);
  animation: beaconFlash 1.6s infinite ease-in-out;
}

@keyframes beaconFlash {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.8); }
}

.sec-status-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.sec-status-right a {
  color: var(--doom-silver);
  text-decoration: none;
  transition: color 0.2s ease;
}

.sec-status-right a:hover {
  color: var(--doom-glow);
}

.hub-link-tag {
  color: var(--doom-emerald) !important;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
}

/* ==========================================================================
   DOCTOR DOOM // LATVERIAN COMMAND CENTER NAVIGATION BAR
   ========================================================================== */
:root {
  --doom-nav-height: 84px;
}

.doom-navbar,
.sec-command-nav {
  position: relative;
  top: auto;
  left: auto;
  width: 100%;
  height: var(--doom-nav-height);
  min-height: var(--doom-nav-height);
  max-height: var(--doom-nav-height);
  z-index: 1000;
  box-sizing: border-box;
  background: linear-gradient(180deg, rgba(14, 20, 17, 0.98) 0%, rgba(8, 12, 10, 0.99) 100%);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-top: 1px solid rgba(184, 194, 189, 0.15);
  border-bottom: 1px solid rgba(32, 200, 120, 0.35);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 25px rgba(32, 200, 120, 0.08);
  transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1), min-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.sec-sticky-header-wrapper.is-scrolled .doom-navbar,
.doom-navbar.scrolled,
.sec-command-nav.scrolled {
  height: 58px;
  min-height: 58px;
  max-height: 58px;
  background: rgba(6, 10, 16, 0.95);
  border-bottom-color: rgba(54, 255, 145, 0.45);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.9), 0 0 18px rgba(32, 200, 120, 0.16);
}

.sec-sticky-header-wrapper.is-scrolled .doom-brand-shield {
  width: 34px;
  height: 34px;
  border-radius: 6px;
}

.sec-sticky-header-wrapper.is-scrolled .doom-brand-img {
  width: 26px;
  height: 26px;
}

.sec-sticky-header-wrapper.is-scrolled .doom-brand-title {
  font-size: 1.05rem;
}

.sec-sticky-header-wrapper.is-scrolled .doom-brand-sub {
  font-size: 0.6rem;
}

.sec-sticky-header-wrapper.is-scrolled .doom-nav-menu {
  gap: clamp(4px, 0.75vw, 12px);
}

.sec-sticky-header-wrapper.is-scrolled .doom-nav-link {
  height: 34px;
  font-size: 0.74rem;
  padding: 0 0.55rem;
}

.sec-sticky-header-wrapper.is-scrolled .doom-btn-protocol {
  height: 36px;
  padding: 0 clamp(0.7rem, 1vw, 1.1rem);
  font-size: 0.75rem;
}

.sec-sticky-header-wrapper.is-scrolled .doom-crest-bezel {
  width: 34px;
  height: 34px;
}

.sec-sticky-header-wrapper.is-scrolled .doom-crest-img {
  width: 26px;
  height: 26px;
}

/* Three-Zone Balanced Flex Container */
.doom-nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  width: 100%;
  max-width: 1520px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 2vw, 2.5rem);
  box-sizing: border-box;
  position: relative;
}

/* --------------------------------------------------------------------------
   ZONE 1: LEFT BRAND COMMAND SHIELD
   -------------------------------------------------------------------------- */
.doom-nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  height: 100%;
  text-decoration: none;
  flex-shrink: 0;
  white-space: nowrap !important;
}

.doom-brand-shield {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: linear-gradient(135deg, #173d2b 0%, #0d1a13 100%);
  border: 1.5px solid var(--doom-emerald);
  box-shadow: 0 0 14px rgba(32, 200, 120, 0.35), inset 0 0 8px rgba(32, 200, 120, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.doom-nav-brand:hover .doom-brand-shield {
  transform: scale(1.05);
  border-color: var(--doom-glow);
  box-shadow: 0 0 25px rgba(54, 255, 145, 0.6), inset 0 0 12px rgba(54, 255, 145, 0.3);
}

.doom-brand-img {
  width: 36px;
  height: 36px;
  border-radius: 5px;
  object-fit: cover;
  display: block;
}

.doom-shield-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(54, 255, 145, 0.25) 0%, transparent 65%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.doom-nav-brand:hover .doom-shield-glow {
  opacity: 1;
}

.doom-brand-meta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  line-height: 1;
}

.doom-brand-title {
  font-family: var(--doom-font-display);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  white-space: nowrap !important;
}

.doom-brand-sub {
  font-family: var(--doom-font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--doom-emerald);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap !important;
}

.doom-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--doom-glow);
  box-shadow: 0 0 8px var(--doom-glow);
  display: inline-block;
  animation: doomPulseGlow 1.8s infinite ease-in-out;
}

@keyframes doomPulseGlow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.85); }
}

/* --------------------------------------------------------------------------
   ZONE 2: CENTER COMMAND NAVIGATION MENU
   -------------------------------------------------------------------------- */
.doom-nav-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: clamp(6px, 1.1vw, 18px);
  list-style: none;
  margin: 0;
  padding: 0;
  flex-shrink: 1;
}

.doom-nav-item {
  display: flex;
  align-items: center;
  height: 100%;
  position: relative;
  margin: 0;
  padding: 0;
}

.doom-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  height: 40px;
  padding: 0 clamp(0.45rem, 0.75vw, 0.85rem);
  font-family: var(--doom-font-mono);
  font-size: clamp(0.72rem, 0.8vw, 0.8rem);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--doom-silver);
  text-decoration: none;
  white-space: nowrap !important;
  line-height: 1;
  vertical-align: middle;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  position: relative;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  box-sizing: border-box;
}

.doom-nav-link span {
  white-space: nowrap !important;
  line-height: 1;
  display: inline-block;
  vertical-align: middle;
}

.doom-nav-icon {
  font-size: 0.88em;
  color: var(--doom-emerald);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, color 0.2s ease;
}

.doom-nav-link:hover {
  color: #ffffff;
  background: rgba(32, 200, 120, 0.08);
  border-color: rgba(32, 200, 120, 0.3);
  box-shadow: 0 0 14px rgba(32, 200, 120, 0.2);
}

.doom-nav-link:hover .doom-nav-icon {
  color: var(--doom-glow);
  transform: translateY(-1px);
}

/* Active State with Bottom Conduit Indicator */
.doom-nav-link.active {
  color: #ffffff;
  background: rgba(32, 200, 120, 0.12);
  border-color: rgba(54, 255, 145, 0.45);
  box-shadow: 0 0 16px rgba(32, 200, 120, 0.25);
  font-weight: 700;
}

.doom-nav-link.active .doom-nav-icon {
  color: var(--doom-glow);
}

.doom-nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -22px;
  left: 8%;
  width: 84%;
  height: 3px;
  background: var(--doom-glow);
  box-shadow: 0 0 10px var(--doom-glow), 0 0 20px var(--doom-emerald);
  border-radius: 3px 3px 0 0;
  z-index: 2;
}

/* Register link integrated into menu */
.doom-link-register {
  color: var(--doom-glow) !important;
  background: rgba(32, 200, 120, 0.06);
  border-color: rgba(32, 200, 120, 0.25);
}

.doom-link-register:hover {
  background: rgba(32, 200, 120, 0.16);
  border-color: var(--doom-glow);
  box-shadow: 0 0 18px rgba(54, 255, 145, 0.4);
}

.doom-status-led {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--doom-glow);
  box-shadow: 0 0 8px var(--doom-glow);
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  animation: doomPulseGlow 1.5s infinite ease-in-out;
}

/* Tactical Dropdown Menu for Explore */
.doom-has-dropdown {
  position: relative;
}

.doom-dropdown-arrow {
  font-size: 0.65em;
  margin-left: 0.2rem;
  transition: transform 0.25s ease;
  color: var(--doom-emerald);
}

.doom-has-dropdown:hover .doom-dropdown-arrow,
.doom-has-dropdown.open .doom-dropdown-arrow {
  transform: rotate(180deg);
  color: var(--doom-glow);
}

.doom-dropdown-panel {
  position: absolute;
  top: calc(100% - 8px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: linear-gradient(180deg, rgba(13, 20, 16, 0.98) 0%, rgba(7, 10, 8, 0.99) 100%);
  border: 1px solid var(--doom-emerald);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.9), 0 0 25px rgba(32, 200, 120, 0.25);
  border-radius: 6px;
  padding: 0.75rem 0.5rem;
  min-width: 250px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1050;
  backdrop-filter: blur(20px);
}

.doom-has-dropdown:hover .doom-dropdown-panel,
.doom-has-dropdown.open .doom-dropdown-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.doom-dropdown-header {
  font-family: var(--doom-font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--doom-emerald);
  letter-spacing: 0.1em;
  padding: 0.35rem 0.75rem 0.6rem 0.75rem;
  border-bottom: 1px solid rgba(32, 200, 120, 0.2);
  margin-bottom: 0.4rem;
  white-space: nowrap !important;
}

.doom-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 4px;
  text-decoration: none;
  color: var(--doom-silver);
  font-family: var(--doom-font-body);
  font-size: 0.84rem;
  font-weight: 500;
  transition: all 0.2s ease;
  white-space: nowrap !important;
}

.doom-item-prefix {
  color: var(--doom-emerald);
  width: 18px;
  text-align: center;
  font-size: 0.9em;
}

.doom-item-label {
  flex-grow: 1;
  color: #e5ece8;
  white-space: nowrap !important;
}

.doom-item-tag {
  font-family: var(--doom-font-mono);
  font-size: 0.62rem;
  color: var(--doom-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 6px;
  border-radius: 2px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  white-space: nowrap !important;
}

.doom-dropdown-item:hover {
  background: rgba(32, 200, 120, 0.14);
  color: #ffffff;
  transform: translateX(4px);
}

.doom-dropdown-item:hover .doom-item-prefix {
  color: var(--doom-glow);
}

.doom-dropdown-item:hover .doom-item-tag {
  color: var(--doom-glow);
  border-color: var(--doom-emerald);
  background: rgba(32, 200, 120, 0.2);
}

/* Dropdown Corner Tech Accents */
.doom-panel-corner {
  position: absolute;
  width: 6px;
  height: 6px;
  border-color: var(--doom-glow);
  pointer-events: none;
}
.doom-panel-corner.tl { top: -1px; left: -1px; border-top: 2px solid var(--doom-glow); border-left: 2px solid var(--doom-glow); }
.doom-panel-corner.tr { top: -1px; right: -1px; border-top: 2px solid var(--doom-glow); border-right: 2px solid var(--doom-glow); }
.doom-panel-corner.bl { bottom: -1px; left: -1px; border-bottom: 2px solid var(--doom-glow); border-left: 2px solid var(--doom-glow); }
.doom-panel-corner.br { bottom: -1px; right: -1px; border-bottom: 2px solid var(--doom-glow); border-right: 2px solid var(--doom-glow); }

/* --------------------------------------------------------------------------
   ZONE 3: RIGHT COMMAND ACTIONS
   -------------------------------------------------------------------------- */
.doom-nav-actions {
  display: flex;
  align-items: center;
  gap: clamp(0.65rem, 1vw, 1.25rem);
  height: 100%;
  flex-shrink: 0;
  white-space: nowrap !important;
}

/* Vivek College Crest Bezel */
.doom-crest-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  position: relative;
}

.doom-crest-bezel {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--doom-border-metal);
  background: rgba(255, 255, 255, 0.05);
  padding: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.doom-crest-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.doom-crest-link:hover .doom-crest-bezel {
  transform: scale(1.08);
  border-color: var(--doom-glow);
  box-shadow: 0 0 18px rgba(54, 255, 145, 0.45);
}

/* Primary CTA: Doctor Doom Armored Chamfered Button */
.doom-btn-protocol {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 clamp(0.9rem, 1.2vw, 1.35rem);
  background: linear-gradient(135deg, #10b981 0%, #059669 60%, #047857 100%);
  color: #020704 !important;
  text-decoration: none;
  font-family: var(--doom-font-mono);
  font-size: clamp(0.74rem, 0.8vw, 0.8rem);
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap !important;
  line-height: 1;
  clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
  border: 1px solid var(--doom-glow);
  box-shadow: 0 0 20px rgba(32, 200, 120, 0.4);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  cursor: pointer;
}

.doom-btn-content {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 2;
  position: relative;
  white-space: nowrap !important;
}

.doom-btn-icon {
  font-size: 0.9em;
}

.doom-btn-protocol:hover {
  background: var(--doom-glow);
  color: #000000 !important;
  box-shadow: 0 0 35px rgba(54, 255, 145, 0.85);
  transform: translateY(-1px);
}

.doom-btn-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.4) 50%,
    transparent 70%
  );
  transform: rotate(35deg) translateY(-100%);
  transition: transform 0.6s ease;
  pointer-events: none;
}

.doom-btn-protocol:hover .doom-btn-glow {
  transform: rotate(35deg) translateY(100%);
}

/* Mobile Tactical Toggle (Armor Hamburger) */
.doom-mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: rgba(13, 20, 16, 0.9);
  border: 1.5px solid var(--doom-emerald);
  border-radius: 4px;
  cursor: pointer;
  padding: 0;
  box-shadow: 0 0 12px rgba(32, 200, 120, 0.25);
  transition: all 0.2s ease;
}

.doom-mobile-toggle:hover {
  border-color: var(--doom-glow);
  box-shadow: 0 0 18px rgba(54, 255, 145, 0.5);
  background: rgba(32, 200, 120, 0.15);
}

.doom-mobile-toggle .doom-bar {
  width: 20px;
  height: 2px;
  background: var(--doom-glow);
  border-radius: 1px;
  transition: all 0.25s ease;
}

.doom-mobile-toggle.open .doom-bar.b1 {
  transform: translateY(7px) rotate(45deg);
}
.doom-mobile-toggle.open .doom-bar.b2 {
  opacity: 0;
}
.doom-mobile-toggle.open .doom-bar.b3 {
  transform: translateY(-7px) rotate(-45deg);
}

/* Active Energy Conduit along navbar bottom */
.doom-navbar-conduit {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(32, 200, 120, 0.25) 15%,
    var(--doom-glow) 50%,
    rgba(32, 200, 120, 0.25) 85%,
    transparent 100%
  );
  box-shadow: 0 0 12px var(--doom-glow);
  pointer-events: none;
  opacity: 0.9;
}

/* --------------------------------------------------------------------------
   TACTICAL HUD MOBILE DRAWER
   -------------------------------------------------------------------------- */
.doom-mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99999;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: visibility 0.3s ease, opacity 0.3s ease;
}

.doom-mobile-drawer.open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.doom-drawer-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
}

.doom-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 380px;
  height: 100%;
  background: linear-gradient(180deg, #090e0c 0%, #050807 100%);
  border-left: 1px solid var(--doom-emerald);
  box-shadow: -15px 0 40px rgba(0, 0, 0, 0.9), 0 0 30px rgba(32, 200, 120, 0.2);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  box-sizing: border-box;
  padding: 1.5rem;
}

.doom-mobile-drawer.open .doom-drawer-panel {
  transform: translateX(0);
}

.doom-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(32, 200, 120, 0.25);
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}

.doom-drawer-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--doom-font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--doom-emerald);
  letter-spacing: 0.08em;
}

.doom-drawer-close {
  width: 36px;
  height: 36px;
  background: rgba(32, 200, 120, 0.1);
  border: 1px solid var(--doom-border);
  border-radius: 4px;
  color: var(--doom-silver);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.doom-drawer-close:hover {
  color: var(--doom-glow);
  border-color: var(--doom-glow);
  background: rgba(32, 200, 120, 0.2);
}

.doom-drawer-telemetry {
  display: flex;
  justify-content: space-between;
  font-family: var(--doom-font-mono);
  font-size: 0.68rem;
  color: var(--doom-muted);
  background: rgba(0, 0, 0, 0.4);
  padding: 0.5rem 0.75rem;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 1.25rem;
}

.doom-drawer-menu {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-grow: 1;
}

.doom-drawer-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 1rem;
  background: rgba(13, 20, 16, 0.6);
  border: 1px solid rgba(32, 200, 120, 0.15);
  border-radius: 4px;
  color: var(--doom-silver);
  text-decoration: none;
  font-family: var(--doom-font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: all 0.2s ease;
}

.doom-drawer-link i {
  color: var(--doom-emerald);
  width: 18px;
  text-align: center;
}

.doom-drawer-link:hover,
.doom-drawer-link.active {
  background: rgba(32, 200, 120, 0.15);
  border-color: var(--doom-glow);
  color: #ffffff;
  transform: translateX(4px);
}

.doom-drawer-link.highlight {
  color: var(--doom-glow);
  border-color: var(--doom-emerald);
  background: rgba(32, 200, 120, 0.1);
}

.doom-drawer-separator {
  font-family: var(--doom-font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--doom-emerald);
  letter-spacing: 0.1em;
  margin: 0.75rem 0 0.25rem 0.25rem;
}

.doom-drawer-footer {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(32, 200, 120, 0.2);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.doom-drawer-cta {
  width: 100%;
  height: 46px;
  font-size: 0.84rem;
  box-sizing: border-box;
}

.doom-drawer-accred {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.72rem;
  color: var(--doom-muted);
}

.doom-drawer-accred img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

/* Responsive Rules for Nav */
@media (max-width: 1240px) {
  .doom-nav-menu {
    gap: 6px;
  }
  .doom-nav-link {
    padding: 0 0.45rem;
    font-size: 0.73rem;
  }
  .doom-btn-protocol {
    padding: 0 0.85rem;
    font-size: 0.73rem;
  }
}

@media (max-width: 1140px) {
  .doom-nav-menu {
    display: none !important;
  }
  .doom-mobile-toggle {
    display: flex;
  }
  .doom-crest-link {
    display: none;
  }
}

@media (max-width: 600px) {
  .doom-brand-sub {
    display: none;
  }
  .doom-btn-protocol {
    display: none;
  }
}

.sec-college-crest {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--doom-border-metal);
  padding: 2px;
  background: rgba(255, 255, 255, 0.05);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.sec-college-crest:hover {
  transform: scale(1.08);
  border-color: var(--doom-glow);
}

.btn-doom-cta {
  background: linear-gradient(135deg, var(--doom-green-bright) 0%, var(--doom-emerald) 100%);
  color: #020704 !important;
  font-family: var(--doom-font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  padding: 0.65rem 1.25rem;
  border-radius: 3px;
  text-decoration: none;
  border: 1px solid var(--doom-glow);
  box-shadow: 0 0 20px rgba(32, 200, 120, 0.35);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-transform: uppercase;
}

.btn-doom-cta:hover {
  background: var(--doom-glow);
  color: #000000 !important;
  box-shadow: 0 0 35px rgba(54, 255, 145, 0.7);
  transform: translateY(-2px);
}

.btn-doom-outline {
  background: rgba(17, 24, 21, 0.6);
  color: var(--doom-silver) !important;
  font-family: var(--doom-font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 0.65rem 1.25rem;
  border-radius: 3px;
  text-decoration: none;
  border: 1px solid var(--doom-border-metal);
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-transform: uppercase;
}

.btn-doom-outline:hover {
  color: var(--doom-white) !important;
  border-color: var(--doom-emerald);
  background: rgba(23, 61, 43, 0.4);
  box-shadow: 0 0 15px rgba(32, 200, 120, 0.25);
  transform: translateY(-2px);
}

/* ==========================================================================
   Hero Command Section
   ========================================================================== */
.sec-hero-command {
  padding: 4.5rem 0 5rem 0;
  position: relative;
  overflow: hidden;
}

.sec-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 3.5rem;
}

.sec-transmission-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(23, 61, 43, 0.4);
  border: 1px solid var(--doom-border);
  padding: 0.35rem 0.85rem;
  border-radius: 2px;
  font-family: var(--doom-font-mono);
  font-size: 0.75rem;
  color: var(--doom-emerald);
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
}

.sec-hero-title {
  font-family: var(--doom-font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 0 1rem 0;
  color: var(--doom-white);
  text-transform: uppercase;
}

.text-doom-glow {
  background: linear-gradient(135deg, #ffffff 0%, var(--doom-glow) 50%, var(--doom-emerald) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 30px rgba(54, 255, 145, 0.4);
}

.sec-protocol-status-tag {
  font-family: var(--doom-font-mono);
  font-size: 0.9rem;
  color: var(--doom-glow);
  letter-spacing: 0.1em;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sec-hero-tagline {
  font-family: var(--doom-font-mono);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--doom-emerald);
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.sec-hero-description {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--doom-silver);
  max-width: 580px;
  margin-bottom: 2rem;
}

.sec-hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.sec-telemetry-strip {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-family: var(--doom-font-mono);
  font-size: 0.75rem;
  color: var(--doom-muted);
  border-top: 1px solid rgba(32, 200, 120, 0.15);
  padding-top: 1.25rem;
  flex-wrap: wrap;
}

.sec-telemetry-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.sec-telemetry-item strong {
  color: var(--doom-silver);
}

/* ==========================================================================
   Abstract Command Reactor Core Visual (100% Original Sci-Fi HUD)
   ========================================================================== */
.sec-reactor-visual-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.sec-reactor-core {
  width: 380px;
  height: 380px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.reactor-ring {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.reactor-ring-outer {
  width: 100%;
  height: 100%;
  border: 1px dashed rgba(32, 200, 120, 0.35);
  animation: rotateCw 36s linear infinite;
}

.reactor-ring-middle {
  width: 82%;
  height: 82%;
  border: 1px solid rgba(184, 194, 189, 0.2);
  border-top: 2px solid var(--doom-glow);
  border-bottom: 2px solid var(--doom-emerald);
  animation: rotateCcw 24s linear infinite;
}

.reactor-ring-inner {
  width: 62%;
  height: 62%;
  border: 1px dashed rgba(54, 255, 145, 0.4);
  animation: rotateCw 18s linear infinite;
}

.reactor-center-orb {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--doom-glow) 0%, var(--doom-green-bright) 50%, rgba(5, 7, 6, 0.95) 100%);
  box-shadow: 0 0 60px rgba(54, 255, 145, 0.6), inset 0 0 20px rgba(255, 255, 255, 0.6);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 2;
  border: 1px solid var(--doom-white);
  animation: pulseCore 3s infinite alternate ease-in-out;
}

.reactor-center-orb i {
  font-size: 1.8rem;
  color: var(--doom-black);
}

.reactor-center-orb span {
  font-family: var(--doom-font-mono);
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--doom-black);
  letter-spacing: 0.08em;
  margin-top: 0.2rem;
}

/* Floating Technical Reticles */
.reactor-reticle {
  position: absolute;
  font-family: var(--doom-font-mono);
  font-size: 0.68rem;
  color: var(--doom-emerald);
  background: rgba(13, 18, 16, 0.85);
  border: 1px solid rgba(32, 200, 120, 0.3);
  padding: 0.25rem 0.6rem;
  border-radius: 2px;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.reticle-top { top: -10px; }
.reticle-right { right: -25px; }
.reticle-bottom { bottom: -10px; }
.reticle-left { left: -25px; }

@keyframes rotateCw {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

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

@keyframes pulseCore {
  0% { transform: scale(0.96); box-shadow: 0 0 40px rgba(32, 200, 120, 0.4); }
  100% { transform: scale(1.04); box-shadow: 0 0 75px rgba(54, 255, 145, 0.8); }
}

/* ==========================================================================
   Mission Status Grid (Quick Highlights)
   ========================================================================== */
.sec-mission-status-section {
  padding: 3rem 0;
  position: relative;
}

.sec-section-header-tag {
  font-family: var(--doom-font-mono);
  font-size: 0.78rem;
  color: var(--doom-emerald);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sec-section-heading {
  font-family: var(--doom-font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  letter-spacing: -0.02em;
  color: var(--doom-white);
  margin: 0 0 0.5rem 0;
  text-transform: uppercase;
}

.sec-section-sub {
  font-size: 0.95rem;
  color: var(--doom-muted);
  margin: 0 0 2rem 0;
  max-width: 650px;
}

.sec-status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.sec-status-panel {
  background: var(--doom-panel);
  border: 1px solid var(--doom-border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  padding: 1.75rem 1.5rem;
  border-radius: 4px;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.sec-status-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--doom-emerald), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sec-status-panel:hover {
  border-color: var(--doom-glow);
  transform: translateY(-4px);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.8), var(--doom-glow-soft);
}

.sec-status-panel:hover::before {
  opacity: 1;
}

.status-panel-id {
  font-family: var(--doom-font-mono);
  font-size: 0.72rem;
  color: var(--doom-emerald);
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.status-panel-metric {
  font-family: var(--doom-font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--doom-white);
  line-height: 1.1;
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
}

.status-panel-label {
  font-size: 0.85rem;
  color: var(--doom-muted);
}

/* ==========================================================================
   Four Domains Section (SEC Tracks)
   ========================================================================== */
.sec-domains-section {
  padding: 5rem 0;
  position: relative;
}

.sec-domains-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.75rem;
}

.sec-domain-card {
  background: rgba(13, 18, 16, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--doom-border);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
  border-radius: 4px;
  padding: 2rem 1.75rem;
  position: relative;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.sec-domain-card:hover {
  border-color: var(--doom-border-hover);
  transform: translateY(-6px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.8), var(--doom-glow-soft);
}

.domain-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.domain-code-badge {
  font-family: var(--doom-font-mono);
  font-size: 0.75rem;
  color: var(--doom-emerald);
  letter-spacing: 0.08em;
  background: rgba(23, 61, 43, 0.45);
  border: 1px solid rgba(32, 200, 120, 0.3);
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
}

.domain-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 4px;
  background: rgba(32, 200, 120, 0.12);
  border: 1px solid rgba(32, 200, 120, 0.25);
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--doom-glow);
  font-size: 1.25rem;
}

.domain-title {
  font-family: var(--doom-font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--doom-white);
  margin: 0 0 0.75rem 0;
  letter-spacing: -0.01em;
}

.domain-desc {
  font-size: 0.92rem;
  color: var(--doom-silver);
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

.domain-access-btn {
  font-family: var(--doom-font-mono);
  font-size: 0.78rem;
  color: var(--doom-emerald);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  transition: all 0.2s ease;
}

.domain-access-btn:hover {
  color: var(--doom-glow);
  transform: translateX(3px);
}

/* ==========================================================================
   The 8-Stage Doomsday Protocol Timeline
   ========================================================================== */
.sec-protocol-section {
  padding: 5rem 0;
  position: relative;
}

.protocol-timeline-wrap {
  position: relative;
  max-width: 960px;
  margin: 3rem auto 0 auto;
}

/* Center Energy Line */
.protocol-energy-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: rgba(32, 200, 120, 0.2);
  transform: translateX(-50%);
  z-index: 1;
}

.protocol-energy-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: -2px;
  width: 6px;
  height: 40%;
  background: linear-gradient(180deg, transparent, var(--doom-glow), transparent);
  box-shadow: 0 0 15px var(--doom-glow);
  animation: energyTravel 4s infinite linear;
}

@keyframes energyTravel {
  0% { top: -20%; opacity: 0; }
  50% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

.protocol-stages-list {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  position: relative;
  z-index: 2;
}

.protocol-stage-item {
  display: grid;
  grid-template-columns: 1fr 60px 1fr;
  align-items: center;
}

.protocol-stage-item.odd .stage-card-wrap {
  grid-column: 1;
  text-align: right;
}

.protocol-stage-item.odd .stage-node-wrap {
  grid-column: 2;
}

.protocol-stage-item.odd .stage-empty-wrap {
  grid-column: 3;
}

.protocol-stage-item.even .stage-empty-wrap {
  grid-column: 1;
}

.protocol-stage-item.even .stage-node-wrap {
  grid-column: 2;
}

.protocol-stage-item.even .stage-card-wrap {
  grid-column: 3;
  text-align: left;
}

.stage-node-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}

.stage-node-ring {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--doom-black);
  border: 2px solid var(--doom-border-metal);
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: var(--doom-font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--doom-silver);
  transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
}

.protocol-stage-item.active .stage-node-ring {
  border-color: var(--doom-glow);
  color: var(--doom-glow);
  box-shadow: 0 0 20px rgba(54, 255, 145, 0.6);
  background: rgba(23, 61, 43, 0.8);
}

.stage-card {
  background: var(--doom-panel);
  border: 1px solid var(--doom-border);
  border-radius: 4px;
  padding: 1.5rem 1.75rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  transition: all 0.3s ease;
  position: relative;
}

.stage-card:hover,
.protocol-stage-item.active .stage-card {
  border-color: var(--doom-glow);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8), var(--doom-glow-soft);
}

.stage-meta-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--doom-font-mono);
  font-size: 0.75rem;
  margin-bottom: 0.5rem;
}

.protocol-stage-item.odd .stage-meta-bar {
  justify-content: flex-end;
}

.stage-number-tag {
  color: var(--doom-emerald);
  font-weight: 700;
}

.stage-status-badge {
  background: rgba(23, 61, 43, 0.5);
  border: 1px solid rgba(32, 200, 120, 0.3);
  padding: 0.15rem 0.5rem;
  border-radius: 2px;
  font-size: 0.68rem;
  color: var(--doom-glow);
  text-transform: uppercase;
}

.stage-title {
  font-family: var(--doom-font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--doom-white);
  margin: 0 0 0.4rem 0;
}

.stage-date {
  font-family: var(--doom-font-mono);
  font-size: 0.82rem;
  color: var(--doom-glow);
  margin-bottom: 0.6rem;
}

.stage-desc {
  font-size: 0.88rem;
  color: var(--doom-silver);
  line-height: 1.6;
  margin: 0;
}

/* ==========================================================================
   Secure Command Registration Terminal
   ========================================================================== */
.sec-registration-section {
  padding: 5rem 0;
  position: relative;
}

.sec-terminal-container {
  max-width: 820px;
  margin: 0 auto;
  background: var(--doom-panel);
  border: 1px solid var(--doom-border);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85), var(--doom-glow-soft);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.terminal-top-bar {
  background: var(--doom-black-2);
  border-bottom: 1px solid rgba(32, 200, 120, 0.2);
  padding: 0.85rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--doom-font-mono);
  font-size: 0.78rem;
  color: var(--doom-emerald);
  letter-spacing: 0.08em;
}

.terminal-title-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.terminal-body {
  padding: 2.25rem 2rem;
}

.terminal-form-group {
  margin-bottom: 1.4rem;
}

.terminal-form-label {
  display: block;
  font-family: var(--doom-font-mono);
  font-size: 0.78rem;
  color: var(--doom-silver);
  letter-spacing: 0.05em;
  margin-bottom: 0.45rem;
  text-transform: uppercase;
}

.terminal-input,
.terminal-select,
.terminal-textarea {
  width: 100%;
  background: rgba(10, 13, 12, 0.85);
  border: 1px solid rgba(32, 200, 120, 0.25);
  border-radius: 3px;
  padding: 0.8rem 1rem;
  color: var(--doom-white);
  font-family: var(--doom-font-body);
  font-size: 0.95rem;
  box-sizing: border-box;
  transition: all 0.25s ease;
  outline: none;
}

.terminal-input:focus,
.terminal-select:focus,
.terminal-textarea:focus {
  border-color: var(--doom-glow);
  box-shadow: 0 0 15px rgba(54, 255, 145, 0.35);
  background: rgba(17, 24, 21, 0.95);
}

.terminal-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.btn-terminal-submit {
  width: 100%;
  background: linear-gradient(135deg, var(--doom-green-bright) 0%, var(--doom-emerald) 100%);
  color: #020704;
  font-family: var(--doom-font-mono);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 1.1rem;
  border: 1px solid var(--doom-glow);
  border-radius: 3px;
  cursor: pointer;
  text-transform: uppercase;
  transition: all 0.25s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.65rem;
  box-shadow: 0 0 25px rgba(32, 200, 120, 0.4);
}

.btn-terminal-submit:hover {
  background: var(--doom-glow);
  box-shadow: 0 0 45px rgba(54, 255, 145, 0.8);
  transform: translateY(-2px);
}

/* ==========================================================================
   Doomsday Clearance Pass Output Container
   ========================================================================== */
#secPassContainer {
  margin-top: 2.5rem;
}

.doom-clearance-pass {
  background: var(--doom-panel-2);
  border: 2px solid var(--doom-emerald);
  box-shadow: 0 0 40px rgba(32, 200, 120, 0.35);
  border-radius: 4px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.pass-top-classified {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px dashed rgba(32, 200, 120, 0.3);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

/* ==========================================================================
   SEC Intelligence Core Floating Widget (AI / System Assistant)
   ========================================================================== */
.sec-intel-core-trigger {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  background: rgba(13, 18, 16, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--doom-emerald);
  box-shadow: 0 0 25px rgba(32, 200, 120, 0.4);
  padding: 0.65rem 1.1rem;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sec-intel-core-trigger:hover {
  border-color: var(--doom-glow);
  box-shadow: 0 0 35px rgba(54, 255, 145, 0.7);
  transform: translateY(-3px);
}

.intel-orb-pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--doom-glow);
  box-shadow: 0 0 10px var(--doom-glow);
  animation: beaconFlash 1.4s infinite ease-in-out;
}

.intel-label {
  font-family: var(--doom-font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--doom-white);
  letter-spacing: 0.05em;
}

.intel-status {
  font-family: var(--doom-font-mono);
  font-size: 0.65rem;
  background: rgba(32, 200, 120, 0.2);
  color: var(--doom-glow);
  padding: 0.15rem 0.45rem;
  border-radius: 2px;
  font-weight: 800;
}

/* Modal Popup Console */
.sec-intel-modal {
  position: fixed;
  bottom: 80px;
  right: 24px;
  width: 380px;
  max-width: calc(100vw - 48px);
  background: rgba(10, 13, 12, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--doom-emerald);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), var(--doom-glow-soft);
  border-radius: 4px;
  z-index: 10000;
  display: none;
  flex-direction: column;
  overflow: hidden;
  animation: intelSlideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.sec-intel-modal.open {
  display: flex;
}

@keyframes intelSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.intel-modal-header {
  background: var(--doom-black-2);
  border-bottom: 1px solid rgba(32, 200, 120, 0.25);
  padding: 0.85rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--doom-font-mono);
  font-size: 0.8rem;
  color: var(--doom-glow);
}

.intel-close-btn {
  background: transparent;
  border: none;
  color: var(--doom-muted);
  cursor: pointer;
  font-size: 1rem;
}

.intel-close-btn:hover {
  color: var(--doom-white);
}

.intel-modal-body {
  padding: 1.25rem;
  max-height: 420px;
  overflow-y: auto;
  font-size: 0.88rem;
  line-height: 1.6;
}

.intel-quick-queries {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}

.intel-query-chip {
  background: rgba(23, 61, 43, 0.35);
  border: 1px solid rgba(32, 200, 120, 0.25);
  color: var(--doom-silver);
  font-family: var(--doom-font-mono);
  font-size: 0.78rem;
  padding: 0.45rem 0.85rem;
  border-radius: 2px;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
}

.intel-query-chip:hover {
  background: rgba(32, 200, 120, 0.15);
  border-color: var(--doom-glow);
  color: var(--doom-white);
}

.intel-response-output {
  margin-top: 1.25rem;
  background: rgba(5, 7, 6, 0.8);
  border-left: 2px solid var(--doom-glow);
  padding: 0.85rem 1rem;
  font-family: var(--doom-font-body);
  color: var(--doom-white);
  border-radius: 0 4px 4px 0;
  font-size: 0.88rem;
  line-height: 1.6;
}

/* ==========================================================================
   Footer & Command Strip
   ========================================================================== */
.sec-command-footer {
  background: var(--doom-black-2);
  border-top: 1px solid var(--doom-border);
  padding: 3rem 0 2rem 0;
  font-size: 0.88rem;
  color: var(--doom-muted);
  position: relative;
}

.sec-footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.sec-footer-links {
  display: flex;
  gap: 1.5rem;
  font-family: var(--doom-font-mono);
  font-size: 0.8rem;
}

.sec-footer-links a {
  color: var(--doom-silver);
  text-decoration: none;
  transition: color 0.2s ease;
}

.sec-footer-links a:hover {
  color: var(--doom-glow);
}

/* ==========================================================================
   Responsive Queries & Reduced Motion
   ========================================================================== */
@media (max-width: 992px) {
  .sec-hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .sec-hero-description {
    margin: 0 auto 2rem auto;
  }
  .sec-hero-actions {
    justify-content: center;
  }
  .sec-telemetry-strip {
    justify-content: center;
  }
  .protocol-energy-line {
    left: 20px;
  }
  .protocol-stage-item {
    grid-template-columns: 40px 1fr;
    gap: 1rem;
  }
  .protocol-stage-item.odd .stage-card-wrap,
  .protocol-stage-item.even .stage-card-wrap {
    grid-column: 2;
    text-align: left;
  }
  .protocol-stage-item.odd .stage-node-wrap,
  .protocol-stage-item.even .stage-node-wrap {
    grid-column: 1;
  }
  .protocol-stage-item.odd .stage-meta-bar {
    justify-content: flex-start;
  }
  .protocol-stage-item .stage-empty-wrap {
    display: none;
  }
  .sec-nav-links {
    display: none;
  }
}

@media (max-width: 640px) {
  .terminal-grid-2col {
    grid-template-columns: 1fr;
  }
  .sec-status-left {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
  .sec-reactor-core {
    width: 290px;
    height: 290px;
  }
}

/* ==========================================================================
   ABOUT SEC SECTION (DOOMSDAY THEME)
   ========================================================================== */
.sec-about-section {
  padding: 5rem 0;
  position: relative;
  z-index: 2;
}

.sec-about-card {
  background: linear-gradient(145deg, rgba(13, 27, 42, 0.88), rgba(6, 12, 24, 0.95));
  border: 1px solid rgba(244, 196, 48, 0.35);
  box-shadow: 0 0 30px rgba(244, 196, 48, 0.12), inset 0 0 20px rgba(32, 200, 120, 0.05);
  border-radius: 8px;
  padding: 3rem;
  position: relative;
  backdrop-filter: blur(12px);
}

.sec-about-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, #f4c430, var(--doom-emerald), transparent);
}

.sec-about-text {
  font-size: 1.25rem;
  line-height: 1.85;
  color: #e2e8f0;
  font-family: var(--doom-font-body);
  font-weight: 400;
  margin-bottom: 2rem;
  position: relative;
}

.sec-about-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  border-top: 1px solid rgba(244, 196, 48, 0.2);
  padding-top: 2rem;
}

.sec-about-highlight-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.sec-about-highlight-icon {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  background: rgba(244, 196, 48, 0.12);
  border: 1px solid rgba(244, 196, 48, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #f4c430;
  flex-shrink: 0;
}

.sec-about-highlight-content h4 {
  margin: 0;
  font-size: 0.95rem;
  color: #ffffff;
  font-family: var(--doom-font-display);
}

.sec-about-highlight-content p {
  margin: 0.2rem 0 0 0;
  font-size: 0.8rem;
  color: var(--doom-muted);
}

/* ==========================================================================
   THREE OFFICIAL STAGES SECTION
   ========================================================================== */
.sec-official-stages-section {
  padding: 5rem 0;
  position: relative;
  z-index: 2;
}

.sec-stage-block {
  margin-bottom: 4.5rem;
  background: linear-gradient(160deg, rgba(10, 16, 26, 0.85), rgba(5, 8, 15, 0.95));
  border: 1px solid rgba(32, 200, 120, 0.25);
  border-radius: 8px;
  padding: 2.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}

.sec-stage-block.stage-3-finale {
  border-color: rgba(244, 196, 48, 0.45);
  box-shadow: 0 0 35px rgba(244, 196, 48, 0.15), 0 10px 30px rgba(0, 0, 0, 0.6);
}

.sec-stage-header-strip {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 1.5rem;
}

.sec-stage-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--doom-font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  padding: 0.35rem 0.85rem;
  border-radius: 4px;
  background: rgba(32, 200, 120, 0.12);
  border: 1px solid rgba(32, 200, 120, 0.4);
  color: var(--doom-glow);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.stage-3-finale .sec-stage-badge {
  background: rgba(244, 196, 48, 0.15);
  border-color: rgba(244, 196, 48, 0.6);
  color: #f4c430;
}

.sec-stage-title {
  font-family: var(--doom-font-display);
  font-size: 2.1rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0.25rem 0;
  letter-spacing: 0.02em;
}

.sec-stage-subtitle {
  font-family: var(--doom-font-body);
  font-size: 1rem;
  color: var(--doom-silver);
  margin: 0;
}

.sec-stage-tasks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.sec-task-card {
  background: rgba(14, 22, 36, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  position: relative;
}

.sec-task-card:hover {
  border-color: rgba(244, 196, 48, 0.5);
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.sec-task-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.sec-task-tag {
  font-family: var(--doom-font-mono);
  font-size: 0.72rem;
  color: var(--doom-glow);
  letter-spacing: 0.08em;
  font-weight: 600;
}

.sec-task-marks-badge {
  font-family: var(--doom-font-mono);
  font-size: 0.72rem;
  background: rgba(244, 196, 48, 0.12);
  border: 1px solid rgba(244, 196, 48, 0.3);
  color: #f4c430;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  font-weight: 700;
}

.sec-task-title {
  font-family: var(--doom-font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 0.5rem 0;
}

.sec-task-subtitle {
  font-size: 0.9rem;
  color: #cbd5e1;
  font-weight: 500;
  margin-bottom: 1rem;
}

.sec-task-overview {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--doom-muted);
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.sec-task-expand-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.65rem 1rem;
  background: rgba(244, 196, 48, 0.08);
  border: 1px solid rgba(244, 196, 48, 0.3);
  color: #f4c430;
  font-family: var(--doom-font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.sec-task-expand-btn:hover {
  background: rgba(244, 196, 48, 0.2);
  border-color: #f4c430;
  color: #ffffff;
}

/* Expandable Task Details Accordion/Drawer */
.sec-task-details-content {
  display: none;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.12);
  font-size: 0.82rem;
  color: #cbd5e1;
}

.sec-task-details-content.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

.sec-detail-subheading {
  font-family: var(--doom-font-mono);
  font-size: 0.75rem;
  color: var(--doom-glow);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0.9rem 0 0.4rem 0;
  font-weight: 700;
}

.sec-detail-list {
  margin: 0 0 0.75rem 1.2rem;
  padding: 0;
  color: var(--doom-muted);
  line-height: 1.6;
}

.sec-detail-list li {
  margin-bottom: 0.3rem;
}

/* Judging Criteria Micro-Table */
.sec-judging-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.75rem 0;
  font-size: 0.78rem;
}

.sec-judging-table th {
  background: rgba(13, 27, 42, 0.9);
  color: #f4c430;
  text-align: left;
  padding: 0.45rem 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-family: var(--doom-font-mono);
  font-weight: 600;
}

.sec-judging-table td {
  padding: 0.45rem 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
}

.sec-judging-table tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.02);
}

.sec-judging-table tr.total-row td {
  font-weight: 700;
  color: var(--doom-glow);
  border-top: 1px solid var(--doom-glow);
}

/* ==========================================================================
   4-STEP TEAM REGISTRATION WIZARD & GATEWAY CONSOLE (DOOMSDAY PROTOCOL)
   ========================================================================== */

/* Registration Section Outer Container */
.sec-registration-section {
  padding: 5.5rem 0;
  position: relative;
  z-index: 2;
}

.sec-reg-header-wrap {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3rem auto;
}

.sec-reg-heading-sub {
  font-family: var(--doom-font-mono);
  font-size: 0.95rem;
  color: var(--doom-emerald);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 0.5rem;
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   REGISTRATION GATEWAY LAUNCH COMMAND CONSOLE
   -------------------------------------------------------------------------- */
.sec-gateway-launch-card {
  position: relative;
  background: linear-gradient(165deg, rgba(14, 23, 20, 0.96) 0%, rgba(8, 14, 12, 0.98) 100%);
  border: 1.5px solid rgba(32, 200, 120, 0.35);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85), 0 0 35px rgba(32, 200, 120, 0.15), inset 0 0 30px rgba(32, 200, 120, 0.04);
  border-radius: 10px;
  padding: 0;
  max-width: 1020px;
  margin: 0 auto;
  overflow: hidden;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.sec-gateway-launch-card:hover {
  border-color: rgba(54, 255, 145, 0.55);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.9), 0 0 50px rgba(32, 200, 120, 0.25), inset 0 0 35px rgba(32, 200, 120, 0.07);
}

/* Tactical Corner Accents */
.sec-card-corner {
  position: absolute;
  width: 10px;
  height: 10px;
  pointer-events: none;
  z-index: 5;
}
.sec-card-corner.tl { top: -1px; left: -1px; border-top: 2px solid var(--doom-glow); border-left: 2px solid var(--doom-glow); }
.sec-card-corner.tr { top: -1px; right: -1px; border-top: 2px solid var(--doom-glow); border-right: 2px solid var(--doom-glow); }
.sec-card-corner.bl { bottom: -1px; left: -1px; border-bottom: 2px solid var(--doom-glow); border-left: 2px solid var(--doom-glow); }
.sec-card-corner.br { bottom: -1px; right: -1px; border-bottom: 2px solid var(--doom-glow); border-right: 2px solid var(--doom-glow); }

/* Gateway Topbar */
.sec-gateway-topbar {
  background: rgba(6, 11, 9, 0.92);
  border-bottom: 1px solid rgba(32, 200, 120, 0.25);
  padding: 0.75rem 1.6rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--doom-font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--doom-silver);
}

.sec-gateway-topbar-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.sec-gateway-sysid {
  color: var(--doom-glow);
  font-weight: 700;
}

.sec-gateway-topbar-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.sec-gateway-status-pill {
  background: rgba(32, 200, 120, 0.15);
  border: 1px solid rgba(32, 200, 120, 0.4);
  color: var(--doom-glow);
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  font-weight: 700;
  font-size: 0.65rem;
}

/* Gateway 2-Column Body */
.sec-gateway-body-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  padding: 2.5rem 2.25rem;
  align-items: center;
}

.sec-gateway-badge-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.sec-gateway-badge {
  font-family: var(--doom-font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: 4px;
  background: rgba(32, 200, 120, 0.12);
  border: 1px solid rgba(32, 200, 120, 0.35);
  color: var(--doom-glow);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.sec-gateway-badge.fee {
  background: rgba(244, 196, 48, 0.14);
  border-color: rgba(244, 196, 48, 0.45);
  color: #f4c430;
}

.sec-gateway-title {
  font-family: var(--doom-font-display);
  font-size: 1.85rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 1rem 0;
  letter-spacing: 0.02em;
  line-height: 1.25;
}

.sec-gateway-desc {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--doom-silver);
  margin: 0 0 1.75rem 0;
}

.sec-gateway-desc strong {
  color: #ffffff;
}

/* Mission Checklist */
.sec-gateway-checklist {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.sec-gateway-check-item {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-left: 3px solid var(--doom-emerald);
  padding: 0.65rem 0.9rem;
  border-radius: 0 4px 4px 0;
  transition: all 0.2s ease;
}

.sec-gateway-check-item:hover {
  background: rgba(32, 200, 120, 0.05);
  border-color: rgba(32, 200, 120, 0.25);
  transform: translateX(3px);
}

.sec-gateway-check-item i {
  color: var(--doom-glow);
  font-size: 1.05rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.sec-gateway-check-item strong {
  display: block;
  font-size: 0.86rem;
  color: #ffffff;
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.sec-gateway-check-item span {
  display: block;
  font-size: 0.76rem;
  color: var(--doom-muted);
}

/* Gateway Right Column Action Module */
.sec-gateway-action-box {
  background: rgba(6, 12, 10, 0.7);
  border: 1px solid rgba(32, 200, 120, 0.25);
  border-radius: 8px;
  padding: 2rem 1.75rem;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(32, 200, 120, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Glowing Orbital Ring Visual */
.sec-gateway-orb-container {
  position: relative;
  width: 90px;
  height: 90px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sec-gateway-orb-ring {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.sec-gateway-orb-ring.outer {
  width: 86px;
  height: 86px;
  border: 1.5px dashed rgba(32, 200, 120, 0.5);
  animation: doomSpinClockwise 18s linear infinite;
}

.sec-gateway-orb-ring.middle {
  width: 70px;
  height: 70px;
  border: 1px solid rgba(54, 255, 145, 0.35);
  animation: doomSpinCounter 12s linear infinite;
}

.sec-gateway-orb-center {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(32, 200, 120, 0.35) 0%, rgba(6, 12, 10, 0.9) 75%);
  border: 2px solid var(--doom-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--doom-glow);
  font-size: 1.4rem;
  box-shadow: 0 0 25px rgba(54, 255, 145, 0.6), inset 0 0 10px rgba(54, 255, 145, 0.4);
}

@keyframes doomSpinClockwise {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

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

/* Step Preview Chips */
.sec-gateway-step-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  font-family: var(--doom-font-mono);
  font-size: 0.68rem;
}

.sec-gateway-step-preview .step-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--doom-silver);
  padding: 0.2rem 0.45rem;
  border-radius: 3px;
  letter-spacing: 0.04em;
}

.sec-gateway-step-preview .step-arrow {
  color: var(--doom-glow);
  font-size: 0.72rem;
}

/* Primary Huge Launch Button */
.sec-gateway-btn-huge {
  position: relative;
  width: 100%;
  font-family: var(--doom-font-mono);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  background: linear-gradient(135deg, var(--doom-green-bright) 0%, var(--doom-emerald) 60%, var(--doom-glow) 100%);
  color: #020704 !important;
  border: 1px solid var(--doom-glow);
  border-radius: 5px;
  padding: 1.15rem 1.8rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  box-shadow: 0 0 30px rgba(32, 200, 120, 0.5), inset 0 0 15px rgba(255, 255, 255, 0.3);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  text-transform: uppercase;
}

.sec-gateway-btn-huge .btn-shine {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 35%,
    rgba(255, 255, 255, 0.45) 50%,
    transparent 65%
  );
  transform: rotate(35deg) translateY(-100%);
  transition: transform 0.6s ease;
  pointer-events: none;
}

.sec-gateway-btn-huge:hover {
  background: var(--doom-glow);
  box-shadow: 0 0 50px rgba(54, 255, 145, 0.9), 0 0 20px rgba(255, 255, 255, 0.4);
  transform: translateY(-2px) scale(1.02);
  color: #000000 !important;
}

.sec-gateway-btn-huge:hover .btn-shine {
  transform: rotate(35deg) translateY(100%);
}

.sec-gateway-btn-huge:active {
  transform: translateY(0) scale(0.99);
}

.sec-gateway-action-footnote {
  margin-top: 1rem;
  font-family: var(--doom-font-mono);
  font-size: 0.68rem;
  color: var(--doom-emerald);
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Gateway Footer Telemetry Bar */
.sec-gateway-footer {
  background: rgba(6, 11, 9, 0.94);
  border-top: 1px solid rgba(32, 200, 120, 0.18);
  padding: 0.85rem 1.6rem;
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.sec-telemetry-tag {
  font-family: var(--doom-font-mono);
  font-size: 0.72rem;
  color: var(--doom-muted);
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.sec-telemetry-tag i {
  color: var(--doom-emerald);
}

/* --------------------------------------------------------------------------
   REGISTRATION POPUP MODAL (HIGH-TECH CYBER HUD FRAME)
   -------------------------------------------------------------------------- */
.sec-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  background: rgba(3, 7, 5, 0.92);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(0.6rem, 2vw, 1.5rem);
  box-sizing: border-box;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.sec-modal-overlay.active {
  display: flex;
  animation: secModalFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes secModalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.sec-modal-dialog {
  background: linear-gradient(175deg, rgba(14, 22, 19, 0.98) 0%, rgba(7, 12, 10, 0.99) 100%);
  border: 1.5px solid rgba(32, 200, 120, 0.45);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.95), 0 0 50px rgba(32, 200, 120, 0.22), inset 0 0 30px rgba(32, 200, 120, 0.06);
  border-radius: 8px;
  width: 100%;
  max-width: 860px;
  max-height: calc(100vh - 2rem);
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  position: relative;
  padding: clamp(1.2rem, 2.5vw, 1.8rem);
  box-sizing: border-box;
}

/* Custom Scrollbar for Modal Dialog */
.sec-modal-dialog::-webkit-scrollbar {
  width: 6px;
}
.sec-modal-dialog::-webkit-scrollbar-track {
  background: rgba(6, 11, 9, 0.8);
  border-radius: 3px;
}
.sec-modal-dialog::-webkit-scrollbar-thumb {
  background: rgba(32, 200, 120, 0.4);
  border-radius: 3px;
}
.sec-modal-dialog::-webkit-scrollbar-thumb:hover {
  background: var(--doom-glow);
}

.sec-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.85rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--doom-silver);
  font-size: 1.25rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
}

.sec-modal-close:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: #ef4444;
  color: #ffffff;
  transform: rotate(90deg) scale(1.1);
}

/* Terminal Topbar */
.sec-form-topbar {
  background: rgba(6, 11, 9, 0.85);
  border-bottom: 1px solid rgba(32, 200, 120, 0.25);
  padding: 0.75rem 1.4rem;
  margin: -1.2rem -1.8rem 1.4rem -1.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--doom-font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--doom-glow);
  text-transform: uppercase;
  border-radius: 7px 7px 0 0;
}

.sec-topbar-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.sec-topbar-title {
  color: #ffffff;
  font-weight: 700;
}

.sec-topbar-freq {
  color: var(--doom-muted);
  font-size: 0.65rem;
  border-left: 1px solid rgba(255, 255, 255, 0.15);
  padding-left: 0.65rem;
}

.sec-form-topbar-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--doom-emerald);
  font-weight: 700;
  font-size: 0.68rem;
}

/* --------------------------------------------------------------------------
   WIZARD PROGRESS TRACKER
   -------------------------------------------------------------------------- */
.sec-wizard-progress-track {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  margin-bottom: 1.6rem;
  padding: 0 1rem;
}

.sec-wizard-progress-track::before {
  content: '';
  position: absolute;
  top: 17px;
  left: 2.5rem;
  right: 2.5rem;
  height: 2px;
  background: rgba(255, 255, 255, 0.12);
  z-index: 1;
}

.sec-step-indicator {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: default;
}

.sec-step-dot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #080d0b;
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--doom-font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--doom-muted);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
}

.sec-step-name {
  font-family: var(--doom-font-mono);
  font-size: 0.72rem;
  color: var(--doom-muted);
  letter-spacing: 0.08em;
  margin-top: 0.45rem;
  font-weight: 600;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

/* Active Step */
.sec-step-indicator.active .sec-step-dot {
  background: rgba(32, 200, 120, 0.2);
  border-color: var(--doom-glow);
  color: #ffffff;
  box-shadow: 0 0 20px rgba(54, 255, 145, 0.5), inset 0 0 8px rgba(54, 255, 145, 0.3);
  transform: scale(1.12);
}

.sec-step-indicator.active .sec-step-name {
  color: var(--doom-glow);
  font-weight: 700;
}

/* Completed Step */
.sec-step-indicator.completed .sec-step-dot {
  background: var(--doom-emerald);
  border-color: var(--doom-glow);
  color: #040806;
  font-weight: 800;
  box-shadow: 0 0 14px rgba(32, 200, 120, 0.45);
}

.sec-step-indicator.completed .sec-step-name {
  color: var(--doom-emerald);
}

/* Step Panels */
.sec-step-panel {
  display: none;
}

.sec-step-panel.active {
  display: block;
  animation: panelSlideFade 0.25s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes panelSlideFade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Panel Header Compact */
.sec-panel-header-compact {
  margin-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.75rem;
}

.sec-panel-phase-badge {
  font-family: var(--doom-font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--doom-emerald);
  background: rgba(32, 200, 120, 0.1);
  border: 1px solid rgba(32, 200, 120, 0.3);
  padding: 0.18rem 0.5rem;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
}

.sec-panel-title {
  font-family: var(--doom-font-display);
  font-size: 1.2rem;
  color: #ffffff;
  margin: 0 0 0.3rem 0;
  font-weight: 700;
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sec-panel-title i {
  color: var(--doom-glow);
  font-size: 1.05rem;
}

.sec-panel-sub {
  font-size: 0.84rem;
  color: var(--doom-silver);
  margin-bottom: 0;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   FORM CONTROLS & INPUTS (HIGH-CONTRAST TACTICAL STYLING)
   -------------------------------------------------------------------------- */
.sec-form-group {
  margin-bottom: 1.05rem;
}

.sec-form-label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--doom-font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--doom-glow);
  text-transform: uppercase;
  margin-bottom: 0.45rem;
  font-weight: 600;
}

.sec-form-label i {
  color: var(--doom-emerald);
  font-size: 0.85rem;
}

.sec-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.45rem;
}

.sec-label-row .sec-form-label {
  margin-bottom: 0;
}

.sec-same-whatsapp-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.72rem;
  color: var(--doom-silver);
  cursor: pointer;
  font-family: var(--doom-font-mono);
  user-select: none;
}

.sec-same-whatsapp-label input[type="checkbox"] {
  accent-color: var(--doom-emerald);
  width: 14px;
  height: 14px;
  cursor: pointer;
}

.sec-input,
.sec-select,
.sec-textarea {
  width: 100%;
  height: 42px;
  background: rgba(6, 12, 10, 0.88);
  border: 1px solid rgba(32, 200, 120, 0.28);
  color: #ffffff;
  padding: 0.6rem 0.95rem;
  border-radius: 4px;
  font-family: var(--doom-font-body);
  font-size: 0.88rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-sizing: border-box;
}

.sec-input:focus,
.sec-select:focus,
.sec-textarea:focus {
  outline: none;
  border-color: var(--doom-glow);
  background: rgba(12, 24, 18, 0.95);
  box-shadow: 0 0 0 2px rgba(32, 200, 120, 0.2), 0 0 16px rgba(54, 255, 145, 0.25);
}

.sec-input::placeholder {
  color: rgba(184, 194, 189, 0.5);
  font-size: 0.82rem;
}

.sec-select {
  cursor: pointer;
}

.sec-select option {
  background: #08120e;
  color: #ffffff;
  padding: 0.5rem;
}

.sec-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem 1.25rem;
}

/* --------------------------------------------------------------------------
   STEP 2: MEMBER CARDS & DYNAMIC MANAGER
   -------------------------------------------------------------------------- */
.sec-member-card {
  background: linear-gradient(145deg, rgba(12, 20, 16, 0.85) 0%, rgba(7, 13, 10, 0.9) 100%);
  border: 1px solid rgba(32, 200, 120, 0.22);
  border-radius: 6px;
  padding: 0.85rem 1.05rem;
  margin-bottom: 0.75rem;
  position: relative;
  transition: all 0.2s ease;
}

.sec-member-card:hover {
  border-color: rgba(32, 200, 120, 0.4);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.sec-member-card.compulsory {
  border-left: 3.5px solid var(--doom-emerald);
}

.sec-member-card[data-member-id="1"] {
  border-left: 3.5px solid #f4c430;
  background: linear-gradient(145deg, rgba(20, 26, 18, 0.92) 0%, rgba(9, 15, 11, 0.96) 100%);
}

.sec-member-card.optional {
  border-left: 3.5px solid var(--doom-silver);
}

.sec-member-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.65rem;
}

.sec-badge-leader {
  font-family: var(--doom-font-mono);
  font-size: 0.68rem;
  background: rgba(244, 196, 48, 0.16);
  border: 1px solid rgba(244, 196, 48, 0.5);
  color: #f4c430;
  padding: 0.22rem 0.65rem;
  border-radius: 3px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  letter-spacing: 0.06em;
}

.sec-badge-compulsory {
  font-family: var(--doom-font-mono);
  font-size: 0.68rem;
  background: rgba(32, 200, 120, 0.14);
  border: 1px solid rgba(32, 200, 120, 0.4);
  color: var(--doom-glow);
  padding: 0.22rem 0.65rem;
  border-radius: 3px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.sec-badge-optional {
  font-family: var(--doom-font-mono);
  font-size: 0.68rem;
  background: rgba(184, 194, 189, 0.12);
  border: 1px solid rgba(184, 194, 189, 0.3);
  color: var(--doom-silver);
  padding: 0.22rem 0.65rem;
  border-radius: 3px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.sec-btn-remove-member {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
  padding: 0.25rem 0.65rem;
  border-radius: 3px;
  font-family: var(--doom-font-mono);
  font-size: 0.68rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s ease;
}

.sec-btn-remove-member:hover {
  background: rgba(239, 68, 68, 0.3);
  color: #ffffff;
  border-color: #ef4444;
}

.sec-member-fields-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1.35fr;
  gap: 0.75rem;
  align-items: end;
}

.sec-member-fields-grid .sec-form-group {
  margin-bottom: 0;
}

/* Compact File Upload Dropzone */
.sec-member-file-input {
  display: none;
}

.sec-file-upload-box {
  display: block;
  width: 100%;
  height: 42px;
  box-sizing: border-box;
  background: rgba(4, 9, 7, 0.85);
  border: 1px dashed rgba(32, 200, 120, 0.35);
  border-radius: 4px;
  padding: 0 0.75rem;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.sec-file-upload-box:hover,
.sec-file-upload-box.drag-over {
  border-color: var(--doom-glow);
  background: rgba(32, 200, 120, 0.08);
  box-shadow: 0 0 14px rgba(32, 200, 120, 0.2);
}

.sec-file-display {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
}

.sec-file-dropzone-compact {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  height: 100%;
  color: var(--doom-silver);
  font-size: 0.75rem;
  font-family: var(--doom-font-mono);
}

.sec-file-dropzone-compact i {
  color: var(--doom-glow);
  font-size: 0.95rem;
}

.sec-file-dropzone-compact small {
  color: var(--doom-muted);
  font-size: 0.65rem;
  margin-left: auto;
}

.sec-file-active-compact {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  height: 100%;
}

.sec-file-thumb-compact {
  width: 26px;
  height: 26px;
  object-fit: cover;
  border-radius: 3px;
  border: 1px solid rgba(54, 255, 145, 0.4);
  flex-shrink: 0;
}

.sec-file-icon-pdf-compact {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: #f87171;
  flex-shrink: 0;
}

.sec-file-meta-compact {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.sec-file-meta-compact .sec-file-name {
  font-size: 0.75rem;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sec-file-meta-compact .sec-file-badge {
  font-size: 0.65rem;
  color: var(--doom-glow);
  font-family: var(--doom-font-mono);
  flex-shrink: 0;
}

.sec-btn-replace-file {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 0.22rem 0.5rem;
  border-radius: 3px;
  font-family: var(--doom-font-mono);
  font-size: 0.66rem;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.sec-btn-replace-file:hover {
  background: var(--doom-glow);
  color: #000000;
  border-color: var(--doom-glow);
}

/* Members Action Bar */
.sec-members-action-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin: 1rem 0 1.25rem 0;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sec-team-counter-badge {
  font-family: var(--doom-font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: #f4c430;
  background: rgba(244, 196, 48, 0.12);
  border: 1px solid rgba(244, 196, 48, 0.35);
  padding: 0.4rem 0.85rem;
  border-radius: 4px;
  letter-spacing: 0.06em;
}

.sec-btn-add-member {
  background: linear-gradient(135deg, rgba(32, 200, 120, 0.2), rgba(32, 200, 120, 0.08));
  border: 1px solid var(--doom-emerald);
  color: var(--doom-glow);
  font-family: var(--doom-font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.5rem 1.15rem;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: all 0.2s ease;
  letter-spacing: 0.05em;
}

.sec-btn-add-member:hover:not(:disabled) {
  background: var(--doom-emerald);
  color: #060913;
  box-shadow: 0 0 16px rgba(32, 200, 120, 0.45);
}

.sec-btn-add-member.disabled,
.sec-btn-add-member:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  border-color: var(--doom-muted);
  color: var(--doom-muted);
}

.sec-team-limit-alert {
  background: rgba(213, 155, 67, 0.15);
  border: 1px solid rgba(213, 155, 67, 0.5);
  color: #fcd34d;
  padding: 0.65rem 1rem;
  border-radius: 4px;
  font-size: 0.8rem;
  margin-bottom: 1rem;
  display: none;
  font-family: var(--doom-font-mono);
}

/* --------------------------------------------------------------------------
   STEP 3: SEC REGISTRATION PAYMENT
   -------------------------------------------------------------------------- */
.sec-payment-layout {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 1.5rem;
  align-items: start;
}

.sec-qr-card {
  background: rgba(7, 13, 10, 0.9);
  border: 1.5px solid rgba(244, 196, 48, 0.4);
  border-radius: 8px;
  padding: 1.15rem 1rem;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 20px rgba(244, 196, 48, 0.12);
}

.sec-fee-banner {
  font-family: var(--doom-font-display);
  font-size: 1.55rem;
  font-weight: 800;
  color: #f4c430;
  margin-bottom: 0.35rem;
  letter-spacing: 0.02em;
}

.sec-fee-sub {
  font-size: 0.78rem;
  color: var(--doom-silver);
  font-weight: 500;
}

.sec-upi-badge {
  display: inline-block;
  font-family: var(--doom-font-mono);
  font-size: 0.74rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 0.3rem 0.65rem;
  border-radius: 4px;
  margin-bottom: 0.65rem;
  word-break: break-all;
}

.sec-qr-image-wrapper {
  position: relative;
  display: inline-block;
  cursor: pointer;
  margin: 0.35rem 0;
  border: 3px solid #ffffff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(244, 196, 48, 0.25);
  transition: all 0.25s ease;
}

.sec-qr-image-wrapper:hover {
  transform: scale(1.03);
  border-color: #f4c430;
  box-shadow: 0 0 30px rgba(244, 196, 48, 0.5);
}

.sec-payment-qr-img {
  width: 160px;
  height: 175px;
  object-fit: cover;
  display: block;
}

.sec-qr-enlarge-hint {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.82);
  color: #ffffff;
  font-size: 0.68rem;
  padding: 0.3rem 0;
  font-family: var(--doom-font-mono);
  letter-spacing: 0.05em;
}

.sec-qr-subtext {
  font-size: 0.72rem;
  color: var(--doom-silver);
  margin-top: 0.55rem;
  font-family: var(--doom-font-mono);
}

/* QR Code Modal Lightbox (Hidden by default, shown only when enlarged) */
.sec-qr-lightbox-modal {
  display: none !important;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 999999;
  align-items: center;
  justify-content: center;
}

.sec-qr-lightbox-modal.active {
  display: flex !important;
}

.sec-qr-lightbox-content {
  background: #090e18;
  border: 2px solid #f4c430;
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  max-width: 90vw;
  max-height: 90vh;
  position: relative;
  box-shadow: 0 0 50px rgba(244, 196, 48, 0.4);
}

.sec-qr-lightbox-content img {
  max-width: 320px;
  width: 100%;
  height: auto;
  border: 4px solid #ffffff;
  border-radius: 6px;
}

.sec-qr-lightbox-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.5rem;
  cursor: pointer;
}

.sec-payment-form-card {
  display: flex;
  flex-direction: column;
}

.sec-payment-instruction-box {
  background: rgba(244, 196, 48, 0.08);
  border: 1px solid rgba(244, 196, 48, 0.3);
  border-left: 3.5px solid #f4c430;
  padding: 0.85rem 1rem;
  border-radius: 0 5px 5px 0;
  margin-bottom: 1.25rem;
  font-size: 0.85rem;
  line-height: 1.55;
  color: #e2e8f0;
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.sec-payment-instruction-box i {
  margin-top: 0.2rem;
  font-size: 1rem;
  flex-shrink: 0;
}

/* Payment Dropzone (Generous Height) */
#secPaymentUploadBox {
  height: 72px;
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sec-file-dropzone-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  color: var(--doom-silver);
  font-family: var(--doom-font-mono);
  font-size: 0.76rem;
}

.sec-file-dropzone-empty i {
  color: var(--doom-glow);
  font-size: 1.2rem;
}

.sec-file-dropzone-empty small {
  color: var(--doom-muted);
  font-size: 0.65rem;
}

.sec-file-active-pill {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(32, 200, 120, 0.08);
  border: 1px solid rgba(32, 200, 120, 0.3);
  padding: 0.5rem 0.85rem;
  border-radius: 5px;
}

.sec-file-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.sec-file-meta .sec-file-name {
  font-size: 0.82rem;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sec-file-meta .sec-file-badge {
  font-size: 0.7rem;
  color: var(--doom-glow);
  font-family: var(--doom-font-mono);
}

.sec-payment-screenshot-preview {
  max-width: 75px;
  max-height: 60px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid rgba(54, 255, 145, 0.4);
}

/* --------------------------------------------------------------------------
   STEP 4: REVIEW AND SUBMIT
   -------------------------------------------------------------------------- */
.sec-review-card {
  background: rgba(7, 13, 10, 0.88);
  border: 1px solid rgba(32, 200, 120, 0.25);
  border-radius: 6px;
  padding: 0.95rem 1.25rem;
  margin-bottom: 0.85rem;
}

.sec-review-header {
  font-family: var(--doom-font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--doom-glow);
  margin-bottom: 0.65rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.45rem;
  text-transform: uppercase;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.sec-review-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem 1.5rem;
}

.sec-review-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.3rem 0;
  font-size: 0.84rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.sec-review-label {
  color: var(--doom-muted);
  font-size: 0.8rem;
}

.sec-review-val {
  color: #ffffff;
  font-weight: 600;
}

.sec-review-val.highlight-gold {
  color: #f4c430;
}

.sec-review-val.highlight-cyan {
  color: var(--doom-glow);
}

.sec-review-member-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.84rem;
}

.sec-review-member-row:last-child {
  border-bottom: none;
}

.sec-review-member-info {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.sec-course-tag {
  color: var(--doom-silver);
  font-size: 0.78rem;
}

.sec-review-doc-status {
  font-family: var(--doom-font-mono);
  font-size: 0.74rem;
  color: var(--doom-emerald);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* --------------------------------------------------------------------------
   WIZARD ACTION BUTTONS
   -------------------------------------------------------------------------- */
.sec-step-actions-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.4rem;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  gap: 1rem;
}

.btn-wizard-prev {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--doom-silver);
  height: 42px;
  padding: 0 1.35rem;
  font-family: var(--doom-font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  letter-spacing: 0.04em;
}

.btn-wizard-prev:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-wizard-next {
  background: linear-gradient(135deg, var(--doom-green-bright) 0%, var(--doom-emerald) 100%);
  border: 1px solid var(--doom-glow);
  color: #020704 !important;
  height: 42px;
  padding: 0 1.6rem;
  font-family: var(--doom-font-mono);
  font-size: 0.84rem;
  font-weight: 700;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  box-shadow: 0 0 18px rgba(32, 200, 120, 0.35);
  transition: all 0.2s ease;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.btn-wizard-next:hover {
  background: var(--doom-glow);
  box-shadow: 0 0 30px rgba(54, 255, 145, 0.7);
  transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   REGISTRATION SUBMITTED SUCCESSFULLY (CONFIRMATION PASS)
   -------------------------------------------------------------------------- */
.sec-success-card {
  background: linear-gradient(160deg, rgba(13, 27, 20, 0.98), rgba(6, 12, 10, 0.99));
  border: 2px solid var(--doom-emerald);
  box-shadow: 0 0 60px rgba(32, 200, 120, 0.3);
  border-radius: 8px;
  padding: 2.5rem 2rem;
  max-width: 780px;
  margin: 0 auto;
  position: relative;
}

.sec-success-header {
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 1.75rem;
  margin-bottom: 1.75rem;
}

.sec-success-icon-wrap {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(32, 200, 120, 0.15);
  border: 2px solid var(--doom-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  color: var(--doom-glow);
  margin: 0 auto 1.25rem auto;
  box-shadow: 0 0 25px rgba(54, 255, 145, 0.45);
}

.sec-success-title {
  font-family: var(--doom-font-display);
  font-size: 1.65rem;
  color: #ffffff;
  font-weight: 800;
  margin: 0 0 0.85rem 0;
  letter-spacing: 0.03em;
}

.sec-success-badge-id {
  display: inline-block;
  font-family: var(--doom-font-mono);
  font-size: 1.15rem;
  color: #f4c430;
  background: rgba(244, 196, 48, 0.14);
  border: 1px solid rgba(244, 196, 48, 0.5);
  padding: 0.45rem 1.4rem;
  border-radius: 4px;
  box-shadow: 0 0 20px rgba(244, 196, 48, 0.2);
}

.sec-success-official-msg {
  font-size: 0.95rem;
  line-height: 1.65;
  color: #e2e8f0;
  text-align: center;
  margin-bottom: 1.75rem;
  font-style: italic;
  padding: 1.15rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.sec-success-details-table {
  margin-bottom: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  overflow: hidden;
}

.sec-success-row {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.88rem;
}

.sec-success-row:last-child {
  border-bottom: none;
}

.sec-success-row span {
  color: var(--doom-muted);
}

.sec-success-row strong {
  color: #ffffff;
}

.sec-status-pending {
  font-family: var(--doom-font-mono);
  font-size: 0.78rem;
  background: rgba(213, 155, 67, 0.2);
  border: 1px solid rgba(213, 155, 67, 0.5);
  color: #fcd34d;
  padding: 0.25rem 0.65rem;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
}

.sec-success-actions {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}

.sec-success-footer {
  text-align: center;
  font-size: 0.76rem;
  color: var(--doom-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.25rem;
  font-family: var(--doom-font-mono);
}

/* --------------------------------------------------------------------------
   RESPONSIVE QUERIES (MOBILE, TABLET, DESKTOP)
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
  .sec-gateway-body-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem 1.5rem;
  }
  .sec-gateway-action-box {
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
  }
  .sec-payment-layout {
    grid-template-columns: 1fr;
  }
  .sec-qr-card {
    max-width: 280px;
    margin: 0 auto 1.5rem auto;
  }
}

@media (max-width: 768px) {
  .sec-gateway-title {
    font-size: 1.5rem;
  }
  .sec-grid-2col {
    grid-template-columns: 1fr;
  }
  .sec-member-fields-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .sec-review-grid {
    grid-template-columns: 1fr;
  }
  .sec-wizard-progress-track {
    padding: 0;
  }
  .sec-wizard-progress-track::before {
    left: 1.5rem;
    right: 1.5rem;
  }
  .sec-step-dot {
    width: 30px;
    height: 30px;
    font-size: 0.72rem;
  }
  .sec-step-name {
    font-size: 0.64rem;
  }
}

@media (max-width: 640px) {
  .sec-registration-section {
    padding: 4rem 0;
  }
  .sec-modal-overlay {
    padding: 0.4rem;
  }
  .sec-modal-dialog {
    padding: 1.1rem 0.85rem;
    max-height: calc(100dvh - 0.8rem);
  }
  .sec-form-topbar {
    margin: -1.1rem -0.85rem 1.15rem -0.85rem;
    padding: 0.65rem 0.85rem;
  }
  .sec-topbar-freq {
    display: none;
  }
  .sec-gateway-launch-card {
    border-radius: 6px;
  }
  .sec-gateway-topbar-right {
    gap: 0.65rem;
  }
  .sec-gateway-footer {
    flex-direction: column;
    gap: 0.5rem;
  }
  .sec-step-actions-bar {
    flex-direction: column-reverse;
    gap: 0.75rem;
  }
  .btn-wizard-prev,
  .btn-wizard-next {
    width: 100%;
    justify-content: center;
  }
  .sec-success-card {
    padding: 1.5rem 1rem;
  }
  .sec-success-title {
    font-size: 1.35rem;
  }
}





@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;
  }
}

/* =============================================================================
   SEC 2026 – TASK-WISE DOCUMENT SUBMISSION UI  |  sub_v1
   ============================================================================= */

/* ── SEC ID Verify Bar ─────────────────────────────────────────────────────── */
.sec-id-verify-bar-wrap {
  position: sticky;
  top: 72px;
  z-index: 90;
  margin-bottom: 2rem;
}

#secIdVerifyBar {
  background: rgba(10, 20, 15, 0.97);
  border: 1px solid rgba(32, 200, 120, 0.35);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 24px rgba(0,0,0,0.5), 0 0 0 1px rgba(32,200,120,0.1) inset;
}

.sec-verify-form {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.sec-verify-label {
  font-family: var(--doom-font-mono);
  font-size: 0.72rem;
  color: var(--doom-emerald);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.sec-verify-label i { margin-right: 0.4rem; }

.sec-verify-input {
  flex: 1;
  min-width: 150px;
  max-width: 220px;
  height: 38px;
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(32,200,120,0.4);
  border-radius: 5px;
  color: #fff;
  font-family: var(--doom-font-mono);
  font-size: 0.88rem;
  padding: 0 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  outline: none;
  transition: border-color 0.2s;
}
.sec-verify-input:focus { border-color: var(--doom-glow); box-shadow: 0 0 0 2px rgba(32,200,120,0.15); }
.sec-verify-input::placeholder { color: rgba(255,255,255,0.3); text-transform: none; }

#secIdVerifyBtn {
  height: 38px;
  padding: 0 1.2rem;
  background: linear-gradient(135deg, #20c878, #16a060);
  border: none;
  border-radius: 5px;
  color: #000;
  font-family: var(--doom-font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.1s;
  white-space: nowrap;
}
#secIdVerifyBtn:hover { opacity: 0.88; }
#secIdVerifyBtn:disabled { opacity: 0.5; cursor: not-allowed; }

#secIdVerifyMsg {
  width: 100%;
  font-family: var(--doom-font-mono);
  font-size: 0.75rem;
  margin-top: 0.4rem;
  min-height: 1rem;
}

/* ── Verified Badge ────────────────────────────────────────────────────────── */
.sec-verified-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.sec-verified-icon {
  color: var(--doom-glow);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.sec-verified-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  flex: 1;
}

.sec-verified-label {
  font-family: var(--doom-font-mono);
  font-size: 0.65rem;
  color: var(--doom-glow);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: rgba(32,200,120,0.12);
  border: 1px solid rgba(32,200,120,0.3);
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
}

.sec-verified-id {
  font-family: var(--doom-font-mono);
  font-size: 0.85rem;
  color: #f4c430;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.sec-verified-sep { color: rgba(255,255,255,0.25); }

.sec-verified-team, .sec-verified-college {
  font-family: var(--doom-font-mono);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.8);
}

.sec-verify-reset-btn {
  margin-left: auto;
  height: 32px;
  padding: 0 0.9rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 4px;
  color: rgba(255,255,255,0.6);
  font-family: var(--doom-font-mono);
  font-size: 0.72rem;
  cursor: pointer;
  transition: all 0.2s;
}
.sec-verify-reset-btn:hover { border-color: rgba(255,255,255,0.3); color: #fff; }

/* ── Task Upload Zone ──────────────────────────────────────────────────────── */
.sec-task-upload-zone {
  margin-top: 1.1rem;
  border-top: 1px solid rgba(32,200,120,0.18);
  padding-top: 0.9rem;
  transition: opacity 0.3s;
}

.sec-upload-locked {
  opacity: 0.42;
  pointer-events: none;
  user-select: none;
}

.sec-upload-locked::before {
  /* handled by lock icon in HTML */
}

.sec-sub-heading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--doom-font-mono);
  font-size: 0.7rem;
  color: var(--doom-emerald);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.65rem;
}
.sec-sub-heading i { font-size: 0.75rem; }

.sec-sub-lock-hint {
  font-family: var(--doom-font-mono);
  font-size: 0.68rem;
  color: rgba(255,255,255,0.3);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.sec-sub-row {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  flex-wrap: wrap;
}

/* File picker label (custom button) */
.sec-sub-file-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  height: 36px;
  padding: 0 0.9rem;
  background: rgba(32,200,120,0.08);
  border: 1px solid rgba(32,200,120,0.35);
  border-radius: 4px;
  color: var(--doom-glow);
  font-family: var(--doom-font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.sec-sub-file-btn:hover { background: rgba(32,200,120,0.16); border-color: rgba(32,200,120,0.6); }

.sec-sub-file-label {
  font-family: var(--doom-font-mono);
  font-size: 0.74rem;
  color: rgba(255,255,255,0.55);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sec-sub-submit-btn {
  height: 36px;
  padding: 0 1.1rem;
  background: linear-gradient(135deg, #f4c430, #c9a000);
  border: none;
  border-radius: 4px;
  color: #000;
  font-family: var(--doom-font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.1s;
  white-space: nowrap;
  flex-shrink: 0;
}
.sec-sub-submit-btn:hover { opacity: 0.88; }
.sec-sub-submit-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.sec-sub-btn-done {
  background: linear-gradient(135deg, #20c878, #16a060) !important;
  cursor: default !important;
}

/* Progress bar */
.sec-sub-progress-wrap {
  display: none;
  margin-top: 0.55rem;
  height: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  overflow: hidden;
}
.sec-sub-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #20c878, #f4c430);
  border-radius: 2px;
  transition: width 0.3s ease;
}

/* Status messages */
.sec-sub-status {
  font-family: var(--doom-font-mono);
  font-size: 0.72rem;
  margin-top: 0.4rem;
  min-height: 1rem;
  line-height: 1.5;
}
.sec-sub-status-error   { color: #ff6b6b; }
.sec-sub-status-success { color: var(--doom-glow); }
.sec-sub-status-info    { color: rgba(255,255,255,0.5); }
.sec-sub-status a, .sec-sub-drive-link {
  color: #f4c430;
  text-decoration: none;
}
.sec-sub-status a:hover, .sec-sub-drive-link:hover { text-decoration: underline; }

/* Done banner */
.sec-sub-done-banner {
  margin-top: 0.6rem;
  padding: 0.4rem 0.75rem;
  background: rgba(32,200,120,0.1);
  border: 1px solid rgba(32,200,120,0.3);
  border-radius: 4px;
  font-family: var(--doom-font-mono);
  font-size: 0.72rem;
  color: var(--doom-glow);
}
.sec-sub-done-banner i { margin-right: 0.35rem; }

/* ── Status message colours (verify bar) ─────────────────────────────────── */
.sec-sub-status-error, #secIdVerifyMsg.sec-sub-status-error   { color: #ff6b6b; }
.sec-sub-status-success, #secIdVerifyMsg.sec-sub-status-success { color: var(--doom-glow); }
.sec-sub-status-info, #secIdVerifyMsg.sec-sub-status-info     { color: rgba(255,255,255,0.5); }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .sec-verify-form { flex-direction: column; align-items: flex-start; }
  .sec-verify-input { max-width: 100%; width: 100%; }
  #secIdVerifyBtn { width: 100%; justify-content: center; }
  .sec-verified-info { gap: 0.3rem; }
  .sec-sub-row { flex-direction: column; align-items: flex-start; }
  .sec-sub-file-label { max-width: 100%; }
  .sec-sub-submit-btn { width: 100%; text-align: center; }
}

/* =============================================================================
   SEC 2026 – PER-TASK SEC ID INPUT ROW  |  sub_v2
   ============================================================================= */

.sec-sub-id-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 0.65rem;
}

.sec-sub-id-label {
  font-family: var(--doom-font-mono);
  font-size: 0.68rem;
  color: var(--doom-emerald);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
  flex-shrink: 0;
}
.sec-sub-id-label i { margin-right: 0.3rem; }

.sec-sub-id-input {
  height: 34px;
  min-width: 140px;
  max-width: 180px;
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(32,200,120,0.4);
  border-radius: 4px;
  color: #fff;
  font-family: var(--doom-font-mono);
  font-size: 0.82rem;
  padding: 0 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.sec-sub-id-input:focus {
  border-color: var(--doom-glow);
  box-shadow: 0 0 0 2px rgba(32,200,120,0.15);
}
.sec-sub-id-input::placeholder {
  color: rgba(255,255,255,0.3);
  text-transform: none;
}
.sec-sub-id-input:disabled { opacity: 0.5; }

.sec-sub-id-status {
  font-family: var(--doom-font-mono);
  font-size: 0.7rem;
  color: rgba(255,255,255,0.5);
  flex: 1;
}

@media (max-width: 540px) {
  .sec-sub-id-row { flex-direction: column; align-items: flex-start; }
  .sec-sub-id-input { max-width: 100%; width: 100%; }
}
