/* ============================================================
   LEO CORP — Minimalist Luxury × Tech-Noir Design System
   Canonical Reference: LEO_CORP_Unified_Master_Specification.md
   ============================================================ */

:root {
  /* Matte Black & Midnight Navy Foundations */
  --leo-matte-black: #08090C;
  --leo-pitch: #040507;
  --leo-dark: #0D1017;
  --leo-navy: #0B111E;
  --leo-navy-elevated: #0F172A;
  --leo-surface: #141B2D;
  --leo-surface-hover: #1A233A;

  /* Metallic Gold Palette (Luxury Accent) */
  --leo-gold: #D4AF37;
  --leo-gold-bright: #F3E5AB;
  --leo-gold-dark: #AA820A;
  --leo-gold-subtle: rgba(212, 175, 55, 0.12);
  --leo-gold-glow: rgba(212, 175, 55, 0.28);
  --leo-gold-border: rgba(212, 175, 55, 0.25);

  /* Crimson Accent (Selective Accent) */
  --leo-crimson: #E11D48;
  --leo-crimson-glow: rgba(225, 29, 72, 0.25);

  /* Status Colors */
  --status-active: #10B981;
  --status-active-glow: rgba(16, 185, 129, 0.2);
  --status-coming: #D4AF37;
  --status-coming-glow: rgba(212, 175, 55, 0.2);
  --status-archived: #64748B;

  /* Typography Colors */
  --leo-text-pure: #FFFFFF;
  --leo-text-primary: #F8FAFC;
  --leo-text-secondary: #94A3B8;
  --leo-text-muted: #64748B;
  --leo-text-gold: #E5C365;

  /* Glass & Borders */
  --leo-glass: rgba(15, 23, 42, 0.65);
  --leo-border-subtle: rgba(255, 255, 255, 0.08);
  --leo-border-light: rgba(255, 255, 255, 0.14);
}

/* Luxury Google Fonts Preload */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* Typography Utilities */
.font-luxury {
  font-family: 'Cinzel', serif;
  letter-spacing: 0.04em;
}

.font-tech {
  font-family: 'Space Grotesk', sans-serif;
}

.font-body {
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.gold-gradient-text {
  background: linear-gradient(135deg, #FFF6D5 0%, #D4AF37 50%, #AA820A 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.gold-glow {
  text-shadow: 0 0 24px rgba(212, 175, 55, 0.35);
}

/* Luxury Brand Badge */
.luxury-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border: 1px solid var(--leo-gold-border);
  background: var(--leo-gold-subtle);
  color: var(--leo-text-gold);
}

/* Status Badges */
.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.badge-status.badge-active {
  background: rgba(16, 185, 129, 0.15);
  color: #34D399;
  border: 1px solid rgba(16, 185, 129, 0.35);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.15);
}

.badge-status.badge-active::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34D399;
  animation: pulseActive 2s infinite;
}

.badge-status.badge-coming-soon {
  background: rgba(212, 175, 55, 0.15);
  color: #F3E5AB;
  border: 1px solid rgba(212, 175, 55, 0.35);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.12);
}

.badge-status.badge-coming-soon::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #D4AF37;
}

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

/* Corporate Evolution Bar */
.evolution-banner {
  background: linear-gradient(90deg, rgba(8, 13, 28, 0.95), rgba(15, 23, 42, 0.95));
  border-bottom: 1px solid var(--leo-border-subtle);
  padding: 8px 20px;
  font-size: 0.78rem;
  color: var(--leo-text-secondary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
}

.evolution-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.evolution-arrow {
  color: var(--leo-gold);
  font-weight: bold;
}

/* LEO CORP Brand Header Logo */
.leo-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.leo-crest-icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: url('../images/leo-corp-logo.png') center/contain no-repeat;
  border-radius: 50%;
  color: transparent !important;
  font-size: 0 !important;
  line-height: 0 !important;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.35);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.leo-crest-icon:hover {
  transform: scale(1.08) rotate(3deg);
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.55);
}

img.leo-crest-icon,
.leo-crest-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 50%;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.35);
  display: block;
}

.leo-title-wrap {
  display: flex;
  flex-direction: column;
}

.leo-main-title {
  font-family: 'Cinzel', serif;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--leo-text-pure);
  line-height: 1.1;
}

.leo-sub-title {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  color: var(--leo-gold);
  text-transform: uppercase;
  font-weight: 600;
}

/* Premium Luxury Buttons */
.btn-leo-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  background: linear-gradient(135deg, #D4AF37 0%, #AA820A 100%);
  color: #08090C;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 8px;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 24px rgba(212, 175, 55, 0.25);
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-leo-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(212, 175, 55, 0.4);
  background: linear-gradient(135deg, #E5C365 0%, #D4AF37 100%);
}

.btn-leo-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  background: rgba(15, 23, 42, 0.6);
  color: var(--leo-text-primary);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  border-radius: 8px;
  text-decoration: none;
  border: 1px solid var(--leo-border-light);
  backdrop-filter: blur(12px);
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-leo-secondary:hover {
  background: rgba(30, 41, 59, 0.8);
  border-color: var(--leo-gold-border);
  color: var(--leo-gold-bright);
  transform: translateY(-2px);
}

.btn-leo-outline-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  background: transparent;
  color: var(--leo-gold);
  border: 1px solid var(--leo-gold-border);
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
}

.btn-leo-outline-gold:hover {
  background: var(--leo-gold-subtle);
  border-color: var(--leo-gold);
  color: #FFFFFF;
}

/* Venture Grid & Cards */
.venture-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 28px;
  margin-top: 36px;
}

.venture-card {
  background: linear-gradient(165deg, rgba(17, 24, 39, 0.75) 0%, rgba(10, 15, 29, 0.95) 100%);
  border: 1px solid var(--leo-border-subtle);
  border-radius: 16px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.venture-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: transparent;
  transition: all 0.35s ease;
}

.venture-card.is-active::before {
  background: linear-gradient(90deg, #10B981, #00E5FF);
}

.venture-card.is-coming-soon::before {
  background: linear-gradient(90deg, #D4AF37, #AA820A);
}

.venture-card:hover {
  transform: translateY(-5px);
  border-color: var(--leo-border-light);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.venture-card.is-active:hover {
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 16px 40px rgba(16, 185, 129, 0.12);
}

.venture-card.is-coming-soon:hover {
  border-color: rgba(212, 175, 55, 0.4);
  box-shadow: 0 16px 40px rgba(212, 175, 55, 0.12);
}

.venture-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.venture-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.venture-sector {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--leo-text-secondary);
  font-weight: 600;
  margin-bottom: 6px;
}

.venture-name {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--leo-text-pure);
  margin-bottom: 12px;
  line-height: 1.25;
}

.venture-desc {
  font-size: 0.9rem;
  color: var(--leo-text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.venture-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid var(--leo-border-subtle);
  padding-top: 16px;
}

.venture-features li {
  font-size: 0.82rem;
  color: var(--leo-text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.venture-features li::before {
  content: '▸';
  color: var(--leo-gold);
}

.venture-card-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 18px;
  border-top: 1px solid var(--leo-border-subtle);
}

/* Hierarchy Tree Visualizer */
.hierarchy-tree {
  background: rgba(10, 15, 29, 0.6);
  border: 1px solid var(--leo-border-subtle);
  border-radius: 20px;
  padding: 40px;
  margin: 40px 0;
  backdrop-filter: blur(16px);
}

.tree-root {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.tree-node-parent {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(15, 23, 42, 0.9));
  border: 2px solid var(--leo-gold);
  border-radius: 12px;
  padding: 18px 36px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(212, 175, 55, 0.2);
  z-index: 2;
}

.tree-line-v {
  width: 2px;
  height: 36px;
  background: var(--leo-border-light);
  margin: 0 auto;
}

.tree-branches {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  width: 100%;
  margin-top: 16px;
  position: relative;
}

.tree-branch-item {
  background: rgba(20, 27, 45, 0.7);
  border: 1px solid var(--leo-border-subtle);
  border-radius: 10px;
  padding: 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
}

.tree-branch-item.is-active-branch {
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.08);
}

.tree-branch-item:hover {
  transform: translateY(-3px);
  border-color: var(--leo-gold-border);
}

/* Employee Access & Attendance Portal Styles */
.attendance-container {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

.attendance-hero-card {
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.85) 0%, rgba(8, 12, 22, 0.95) 100%);
  border: 1px solid var(--leo-border-light);
  border-radius: 20px;
  padding: 36px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  margin-bottom: 32px;
}

.attendance-punch-clock {
  background: rgba(8, 11, 20, 0.9);
  border: 1px solid var(--leo-gold-border);
  border-radius: 16px;
  padding: 28px;
  text-align: center;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.5);
}

.punch-status-indicator {
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--leo-text-secondary);
  margin-bottom: 8px;
}

.punch-time-display {
  font-family: 'Space Grotesk', monospace;
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--leo-text-pure);
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.attendance-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.attendance-stat-box {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--leo-border-subtle);
  border-radius: 14px;
  padding: 22px;
  display: flex;
  flex-direction: column;
}

.attendance-stat-val {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--leo-text-pure);
  margin-top: 4px;
  font-family: 'Space Grotesk', sans-serif;
}

.attendance-stat-label {
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--leo-text-secondary);
}

/* Attendance Table */
.attendance-table-wrap {
  overflow-x: auto;
  border-radius: 14px;
  border: 1px solid var(--leo-border-subtle);
  background: rgba(11, 17, 30, 0.7);
}

.attendance-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
}

.attendance-table th {
  padding: 16px 20px;
  background: rgba(15, 23, 42, 0.8);
  color: var(--leo-text-gold);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--leo-border-light);
}

.attendance-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--leo-border-subtle);
  color: var(--leo-text-primary);
}

.attendance-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* Privacy Guarantee Notice Box */
.privacy-guarantee-box {
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 12px;
  padding: 18px 24px;
  margin-top: 28px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.privacy-guarantee-icon {
  color: #10B981;
  font-size: 1.3rem;
  margin-top: 2px;
}

/* Modal Windows (Waitlist & Correction) */
.leo-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(4, 5, 7, 0.85);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.leo-modal-backdrop.is-open {
  display: flex;
  animation: modalFadeIn 0.25s ease;
}

.leo-modal-content {
  background: linear-gradient(160deg, #101626 0%, #080C16 100%);
  border: 1px solid var(--leo-gold-border);
  border-radius: 18px;
  width: 100%;
  max-width: 520px;
  padding: 36px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.7);
  position: relative;
}

.leo-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: var(--leo-text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

.leo-modal-close:hover {
  color: #FFFFFF;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

/* Discreet Employee Footer Link */
.discreet-employee-link {
  font-size: 0.74rem;
  color: var(--leo-text-muted);
  text-decoration: none;
  letter-spacing: 0.05em;
  opacity: 0.65;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.discreet-employee-link:hover {
  opacity: 1;
  color: var(--leo-gold);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .venture-grid {
    grid-template-columns: 1fr;
  }
  .tree-branches {
    grid-template-columns: 1fr;
  }
  .attendance-hero-card {
    padding: 24px;
  }
  .punch-time-display {
    font-size: 2.2rem;
  }
}

/* ============================================================
   DYNAMIC & INTERACTIVE SYSTEMS ENGINE (TECH-NOIR LUXURY)
   ============================================================ */

/* ---------- 3D Tilt & Magnetic Dynamic Spotlight Physics ---------- */
.card,
.paper-card,
.codex-card,
.biblio-card,
.founder-stat-card,
.venture-card,
.leo-glass-card,
.timeline-item {
  position: relative;
  will-change: transform;
  transform-style: preserve-3d;
  transition: transform 0.15s cubic-bezier(0.2, 0, 0.2, 1), border-color 0.25s ease, box-shadow 0.25s ease;
}

.card::before,
.paper-card::before,
.codex-card::before,
.biblio-card::before,
.founder-stat-card::before,
.venture-card::before,
.leo-glass-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: radial-gradient(420px circle at var(--mouse-x, -999px) var(--mouse-y, -999px), rgba(212, 175, 55, 0.14), transparent 45%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  z-index: 2;
}

.card:hover::before,
.paper-card:hover::before,
.codex-card:hover::before,
.biblio-card:hover::before,
.founder-stat-card:hover::before,
.venture-card:hover::before,
.leo-glass-card:hover::before {
  opacity: 1;
}

/* Subtle magnetic button physics */
.btn {
  position: relative;
  transition: transform 0.2s cubic-bezier(0.2, 0, 0.2, 1), box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

/* ---------- Global Floating HUD Dock (Bottom Right) ---------- */
.leo-floating-hud {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9998;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(8, 12, 22, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 9999px;
  padding: 6px 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.65), 0 0 20px rgba(212, 175, 55, 0.15);
  transition: transform 0.3s cubic-bezier(0.2, 0, 0.2, 1), opacity 0.3s ease, border-color 0.3s ease;
}

.leo-floating-hud:hover {
  border-color: rgba(212, 175, 55, 0.5);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.75), 0 0 28px rgba(212, 175, 55, 0.25);
}

.hud-btn {
  background: transparent;
  border: none;
  color: var(--leo-text-secondary);
  padding: 6px 10px;
  border-radius: 9999px;
  font-size: 0.76rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.hud-btn:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.08);
}

.hud-btn-gold {
  color: var(--leo-text-gold);
  border: 1px solid rgba(212, 175, 55, 0.25);
  background: rgba(212, 175, 55, 0.08);
}

.hud-btn-gold:hover {
  color: #FFF6D5;
  background: rgba(212, 175, 55, 0.2);
  border-color: var(--leo-gold);
}

.hud-kbd {
  font-size: 0.65rem;
  padding: 2px 5px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  color: var(--leo-text-gold);
  font-family: 'JetBrains Mono', monospace;
}

/* Sound Wave Equalizer Bars */
.sound-wave-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
}

.sound-bar {
  width: 2px;
  height: 4px;
  background: var(--leo-gold);
  border-radius: 1px;
  transition: height 0.2s ease;
}

.sound-active .sound-bar:nth-child(1) {
  animation: soundBarPulse 0.6s infinite ease-in-out alternate;
}
.sound-active .sound-bar:nth-child(2) {
  animation: soundBarPulse 0.45s infinite ease-in-out 0.15s alternate;
}
.sound-active .sound-bar:nth-child(3) {
  animation: soundBarPulse 0.7s infinite ease-in-out 0.3s alternate;
}

@keyframes soundBarPulse {
  0% { height: 3px; }
  100% { height: 12px; }
}

/* ---------- Global Command Palette (⌘K Spotlight) ---------- */
.leo-cmd-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 6, 12, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 10000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 90px 20px 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.leo-cmd-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.leo-cmd-palette {
  width: 100%;
  max-width: 660px;
  background: linear-gradient(175deg, #0F172A 0%, #080D1A 100%);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 16px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.85), 0 0 40px rgba(212, 175, 55, 0.15);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: translateY(-20px) scale(0.97);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.leo-cmd-overlay.active .leo-cmd-palette {
  transform: translateY(0) scale(1);
}

.leo-cmd-header {
  display: flex;
  align-items: center;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  gap: 14px;
}

.leo-cmd-search-icon {
  color: var(--leo-gold);
  font-size: 1.25rem;
  display: flex;
  align-items: center;
}

.leo-cmd-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  color: #FFFFFF;
}

.leo-cmd-input::placeholder {
  color: var(--leo-text-muted);
}

.leo-cmd-esc-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--leo-text-secondary);
}

.leo-cmd-body {
  max-height: 420px;
  overflow-y: auto;
  padding: 12px 10px;
  scrollbar-width: thin;
  scrollbar-color: rgba(212, 175, 55, 0.3) transparent;
}

.leo-cmd-group-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--leo-text-muted);
  padding: 10px 14px 6px;
}

.leo-cmd-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  color: var(--leo-text-primary);
  text-decoration: none;
  transition: all 0.15s ease;
}

.leo-cmd-item:hover,
.leo-cmd-item.active {
  background: rgba(212, 175, 55, 0.12);
  color: #FFFFFF;
}

.leo-cmd-item-icon {
  font-size: 1.15rem;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--leo-gold);
}

.leo-cmd-item-text {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.leo-cmd-item-name {
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.leo-cmd-item-desc {
  font-size: 0.75rem;
  color: var(--leo-text-muted);
}

.leo-cmd-item-badge {
  font-size: 0.65rem;
  padding: 2px 8px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--leo-text-secondary);
  font-family: 'Space Grotesk', sans-serif;
}

.leo-cmd-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.72rem;
  color: var(--leo-text-muted);
  background: rgba(0, 0, 0, 0.25);
}

.leo-cmd-footer-keys {
  display: flex;
  align-items: center;
  gap: 12px;
}

.leo-cmd-footer-keys span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ---------- Interactive Terminal Engine (founder.html) ---------- */
.terminal-window {
  background: #060911;
  border: 1px solid rgba(0, 229, 255, 0.3);
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 229, 255, 0.1);
  overflow: hidden;
  font-family: 'JetBrains Mono', monospace;
  position: relative;
}

.terminal-header {
  background: #0B1120;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot-red { background: #FF5F56; }
.dot-yellow { background: #FFBD2E; }
.dot-green { background: #27C93F; }

.terminal-title {
  font-size: 0.74rem;
  color: var(--leo-text-secondary);
  letter-spacing: 0.06em;
}

.terminal-body {
  padding: 20px;
  min-height: 280px;
  max-height: 440px;
  overflow-y: auto;
  font-size: 0.84rem;
  line-height: 1.6;
  color: #A5F3FC;
  background: linear-gradient(180deg, rgba(6, 9, 17, 0.98) 0%, rgba(3, 5, 10, 0.98) 100%);
  position: relative;
}

.terminal-body::before {
  content: " ";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%);
  background-size: 100% 4px;
  pointer-events: none;
  opacity: 0.3;
}

.terminal-line {
  margin-bottom: 6px;
  word-break: break-word;
}

.terminal-line-prompt {
  color: var(--leo-gold);
  font-weight: 600;
}

.terminal-line-output {
  color: #E2E8F0;
  padding-left: 14px;
  border-left: 2px solid rgba(0, 229, 255, 0.2);
  margin: 4px 0 10px;
}

.terminal-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.terminal-prompt-label {
  color: var(--leo-gold);
  font-weight: 700;
  font-size: 0.85rem;
  white-space: nowrap;
}

.terminal-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #FFFFFF;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  caret-color: var(--cyan);
}

.terminal-quick-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 12px 16px;
  background: #080D1A;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.terminal-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--leo-text-secondary);
  font-size: 0.72rem;
  padding: 3px 10px;
  border-radius: 9999px;
  cursor: pointer;
  font-family: 'JetBrains Mono', monospace;
  transition: all 0.15s ease;
}

.terminal-chip:hover {
  background: rgba(0, 229, 255, 0.15);
  border-color: var(--cyan);
  color: #FFFFFF;
}

/* ---------- Cryptographic Attestation Console (compliance.html) ---------- */
.attestation-console {
  background: linear-gradient(165deg, #0C1220 0%, #070A12 100%);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), 0 0 35px rgba(212, 175, 55, 0.1);
  position: relative;
  overflow: hidden;
}

.attestation-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.attestation-tab {
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  font-size: 0.82rem;
  color: var(--leo-text-secondary);
  cursor: pointer;
  font-family: 'Space Grotesk', sans-serif;
  transition: all 0.2s ease;
}

.attestation-tab.active,
.attestation-tab:hover {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--leo-gold);
  color: #FFFFFF;
}

.attestation-metric-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.attestation-metric-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 16px;
}

.attestation-metric-label {
  font-size: 0.72rem;
  color: var(--leo-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.attestation-metric-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.95rem;
  color: var(--leo-gold);
  font-weight: 600;
  word-break: break-all;
}

.hash-stream-box {
  background: #04060B;
  border: 1px solid rgba(0, 229, 255, 0.25);
  border-radius: 8px;
  padding: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: #38BDF8;
  max-height: 130px;
  overflow-y: auto;
  line-height: 1.6;
  margin-bottom: 20px;
  box-shadow: inset 0 2px 10px rgba(0,0,0,0.8);
}

.verified-stamp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid var(--emerald);
  border-radius: 9999px;
  color: var(--emerald);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* ============================================================
   ADVANCED 3D SPATIAL & INTERACTIVE ARCHITECTURE ENGINE
   ============================================================ */

/* ---------- Card Internal 3D Layer Pop-Out (Parallax Z-Depth) ---------- */
.card,
.paper-card,
.codex-card,
.biblio-card,
.founder-stat-card,
.venture-card,
.leo-glass-card {
  perspective: 1200px;
}

.card > *,
.paper-card > *,
.codex-card > *,
.biblio-card > *,
.founder-stat-card > *,
.venture-card > *,
.leo-glass-card > * {
  transform-style: preserve-3d;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.card:hover .card-icon,
.paper-card:hover .card-icon,
.venture-card:hover .venture-sector,
.founder-stat-card:hover .founder-stat-number {
  transform: translateZ(36px);
}

.card:hover h2,
.card:hover h3,
.paper-card:hover h3,
.venture-card:hover .venture-name,
.codex-card:hover h3 {
  transform: translateZ(24px);
}

.card:hover p,
.venture-card:hover .venture-desc,
.founder-stat-card:hover .founder-stat-desc {
  transform: translateZ(14px);
}

.card:hover .btn,
.venture-card:hover .btn,
.paper-card:hover .btn,
.biblio-card:hover button {
  transform: translateZ(32px);
}

/* ---------- 3D Holographic Quantum Core Observatory (.hologram-3d-stage) ---------- */
.hologram-3d-stage {
  position: relative;
  min-height: 620px;
  background: radial-gradient(circle at 50% 50%, #0F1728 0%, #060912 65%, #030408 100%);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 24px;
  box-shadow: 0 35px 110px rgba(0, 0, 0, 0.9), 0 0 70px rgba(212, 175, 55, 0.15), inset 0 0 60px rgba(0, 0, 0, 0.8);
  overflow: hidden;
  user-select: none;
  touch-action: none;
}

/* Cinematic Corner Reticles */
.hud-corner {
  position: absolute;
  width: 22px;
  height: 22px;
  border-color: var(--leo-gold);
  border-style: solid;
  pointer-events: none;
  z-index: 12;
  opacity: 0.75;
}
.hud-corner-tl { top: 16px; left: 16px; border-width: 2px 0 0 2px; }
.hud-corner-tr { top: 16px; right: 16px; border-width: 2px 2px 0 0; }
.hud-corner-bl { bottom: 16px; left: 16px; border-width: 0 0 2px 2px; }
.hud-corner-br { bottom: 16px; right: 16px; border-width: 0 2px 2px 0; }

.hologram-3d-header {
  position: absolute;
  top: 24px;
  left: 32px;
  right: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 15;
  pointer-events: none;
  flex-wrap: wrap;
  gap: 12px;
}

.hologram-3d-header > * {
  pointer-events: auto;
}

.hologram-canvas {
  width: 100%;
  height: 620px;
  display: block;
  cursor: grab;
}

.hologram-canvas:active {
  cursor: grabbing;
}

/* Dual Side Rails for Deep Architectural Detail */
.hologram-side-rail-left {
  position: absolute;
  left: 28px;
  top: 90px;
  width: 220px;
  z-index: 14;
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hologram-side-rail-right {
  position: absolute;
  right: 28px;
  top: 90px;
  width: 220px;
  z-index: 14;
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hologram-rail-card {
  background: rgba(8, 13, 24, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 14px;
  font-family: 'Space Grotesk', sans-serif;
  transition: all 0.25s ease;
}

.hologram-rail-card:hover {
  border-color: rgba(212, 175, 55, 0.4);
  background: rgba(12, 18, 34, 0.9);
  transform: translateX(3px);
}

.hologram-layer-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  font-size: 0.75rem;
  color: var(--leo-text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.hologram-layer-toggle.active {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--leo-gold);
  color: #FFF;
}

.hologram-controls-bar {
  position: absolute;
  bottom: 24px;
  left: 32px;
  right: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  z-index: 15;
  pointer-events: none;
}

.hologram-controls-bar > * {
  pointer-events: auto;
}

.hologram-btn-group {
  display: inline-flex;
  gap: 4px;
  background: rgba(6, 10, 18, 0.88);
  backdrop-filter: blur(16px);
  padding: 5px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.hologram-btn {
  background: transparent;
  border: none;
  color: var(--leo-text-secondary);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hologram-btn.active,
.hologram-btn:hover {
  background: rgba(212, 175, 55, 0.25);
  color: #FFFFFF;
  border: 1px solid rgba(212, 175, 55, 0.45);
}

.hologram-telemetry-hud {
  background: rgba(6, 10, 18, 0.88);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 229, 255, 0.3);
  border-radius: 12px;
  padding: 10px 18px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.74rem;
  color: #A5F3FC;
  display: flex;
  align-items: center;
  gap: 18px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

/* 3D Horizon Grid Lines */
.cyber-3d-grid-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 200px;
  background: linear-gradient(to bottom, transparent, rgba(0, 229, 255, 0.08)),
              repeating-linear-gradient(90deg, rgba(0, 229, 255, 0.05) 0px, rgba(0, 229, 255, 0.05) 1px, transparent 1px, transparent 48px),
              repeating-linear-gradient(0deg, rgba(0, 229, 255, 0.05) 0px, rgba(0, 229, 255, 0.05) 1px, transparent 1px, transparent 48px);
  transform: perspective(350px) rotateX(65deg);
  transform-origin: bottom center;
  pointer-events: none;
}

/* Target Crosshair Center Overlay */
.hologram-target-crosshair {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 180px;
  height: 180px;
  border: 1px dashed rgba(212, 175, 55, 0.18);
  border-radius: 50%;
  pointer-events: none;
  animation: targetRotate 20s linear infinite;
}

@keyframes targetRotate {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ---------- 3D Sovereign Cryptographic Cube (.cube-3d-scene) ---------- */
.cube-3d-scene {
  width: 100%;
  height: 560px;
  perspective: 1400px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  user-select: none;
  overflow: visible;
}

/* 3D Orbital Rings Surrounding the Cube */
.cube-orbital-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.35);
  pointer-events: none;
  transform-style: preserve-3d;
}

.cube-orbital-ring-1 {
  width: 520px;
  height: 520px;
  border-style: dashed;
  animation: orbitRingSpin1 24s linear infinite;
}

.cube-orbital-ring-2 {
  width: 460px;
  height: 460px;
  border: 1px solid rgba(0, 229, 255, 0.25);
  animation: orbitRingSpin2 18s linear infinite reverse;
}

@keyframes orbitRingSpin1 {
  0% { transform: rotateX(65deg) rotateY(15deg) rotateZ(0deg); }
  100% { transform: rotateX(65deg) rotateY(15deg) rotateZ(360deg); }
}

@keyframes orbitRingSpin2 {
  0% { transform: rotateX(-45deg) rotateY(35deg) rotateZ(0deg); }
  100% { transform: rotateX(-45deg) rotateY(35deg) rotateZ(360deg); }
}

.cube-3d-viewport {
  width: 340px;
  height: 340px;
  position: relative;
  transform-style: preserve-3d;
  cursor: grab;
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.cube-3d-viewport:active {
  cursor: grabbing;
}

.cube-3d-face {
  position: absolute;
  width: 340px;
  height: 340px;
  background: linear-gradient(145deg, rgba(16, 24, 42, 0.96) 0%, rgba(7, 11, 20, 0.98) 100%);
  border: 2px solid rgba(212, 175, 55, 0.4);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 30px;
  box-shadow: inset 0 0 50px rgba(212, 175, 55, 0.12), 0 15px 50px rgba(0, 0, 0, 0.75);
  backface-visibility: visible;
  cursor: pointer;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.cube-3d-face:hover {
  border-color: var(--leo-gold);
  background: linear-gradient(145deg, rgba(24, 36, 62, 0.98) 0%, rgba(10, 16, 28, 0.98) 100%);
  box-shadow: inset 0 0 60px rgba(212, 175, 55, 0.28), 0 20px 60px rgba(212, 175, 55, 0.35);
}

/* 3D Cube Face Transforms (Size: 340px => Z: 170px) */
.face-front  { transform: rotateY(0deg) translateZ(170px); }
.face-back   { transform: rotateY(180deg) translateZ(170px); }
.face-right  { transform: rotateY(90deg) translateZ(170px); }
.face-left   { transform: rotateY(-90deg) translateZ(170px); }
.face-top    { transform: rotateX(90deg) translateZ(170px); }
.face-bottom { transform: rotateX(-90deg) translateZ(170px); }

.cube-face-badge {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--leo-gold);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cube-face-title {
  font-family: 'Cinzel', serif;
  font-size: 1.35rem;
  color: #FFFFFF;
  margin: 12px 0 8px;
  line-height: 1.3;
}

.cube-face-desc {
  font-size: 0.85rem;
  color: var(--leo-text-secondary);
  line-height: 1.6;
}

.cube-face-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.76rem;
  color: var(--cyan);
}

/* 3D Cube Quick Face Selectors */
.cube-selectors-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.cube-face-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--leo-text-secondary);
  padding: 8px 18px;
  border-radius: 9999px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cube-face-btn.active,
.cube-face-btn:hover {
  background: rgba(212, 175, 55, 0.22);
  border-color: var(--leo-gold);
  color: #FFFFFF;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.25);
}

/* Dynamic Holographic Radar in Founder Avatar */
.founder-avatar-icon {
  position: relative;
}
.founder-avatar-icon::after {
  content: '';
  position: absolute;
  inset: -6px;
  border: 2px dashed rgba(212, 175, 55, 0.5);
  border-radius: 50%;
  animation: radarSpin 12s linear infinite;
}
@keyframes radarSpin {
  to { transform: rotate(360deg); }
}

@media (max-width: 992px) {
  .hologram-side-rail-left,
  .hologram-side-rail-right {
    display: none;
  }
  .hologram-3d-stage {
    min-height: 480px;
  }
  .hologram-canvas {
    height: 480px;
  }
  .cube-3d-scene {
    height: 440px;
  }
  .cube-3d-viewport {
    width: 270px;
    height: 270px;
  }
  .cube-3d-face {
    width: 270px;
    height: 270px;
    padding: 20px;
  }
  .face-front  { transform: rotateY(0deg) translateZ(135px); }
  .face-back   { transform: rotateY(180deg) translateZ(135px); }
  .face-right  { transform: rotateY(90deg) translateZ(135px); }
  .face-left   { transform: rotateY(-90deg) translateZ(135px); }
  .face-top    { transform: rotateX(90deg) translateZ(135px); }
  .face-bottom { transform: rotateX(-90deg) translateZ(135px); }
}



