@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

@property --color-accent {
  syntax: '<color>';
  inherits: true;
  initial-value: #d4af37;
}

@property --color-accent-glow {
  syntax: '<color>';
  inherits: true;
  initial-value: rgba(212, 175, 55, 0.15);
}

@property --border-active {
  syntax: '<color>';
  inherits: true;
  initial-value: rgba(212, 175, 55, 0.35);
}

:root {
  /* Premium Dark Palette */
  --bg-deep-space: #020306;
  --bg-card: rgba(8, 12, 24, 0.45);
  --bg-panel: rgba(4, 6, 12, 0.85);
  --border-glass: rgba(255, 255, 255, 0.05);
  --border-active: rgba(212, 175, 55, 0.35);
  
  /* Eras Colors (Refined High-Couture Neon/Metallics) */
  --color-gold: #d4af37;
  --color-gold-glow: rgba(212, 175, 55, 0.15);
  
  --color-cyan: #3b82f6; /* Premium Sapphire Blue */
  --color-cyan-glow: rgba(59, 130, 246, 0.2);
  
  --color-emerald: #10b981; /* Emerald/Mint Green */
  --color-emerald-glow: rgba(16, 185, 129, 0.18);
  
  /* Active Accent */
  --color-accent: var(--color-gold);
  --color-accent-glow: var(--color-gold-glow);
  
  /* Text colors */
  --text-primary: #f8fafc;
  --text-muted: #94a3b8;
  --text-dark: #020306;
  
  /* Fonts */
  --font-title: 'Outfit', sans-serif;
  --font-mono: 'Space Grotesk', sans-serif;
  --font-body: 'Outfit', sans-serif;
  
  /* Transitions */
  --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-color: --color-accent 0.8s ease, --color-accent-glow 0.8s ease;
  
  /* Smooth interpolation transition for properties */
  transition: --color-accent 0.8s ease, --color-accent-glow 0.8s ease, --border-active 0.8s ease;
}

body {
  background-color: var(--bg-deep-space);
  color: var(--text-primary);
  font-family: var(--font-body);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Background Particle Canvas */
#bg-particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  pointer-events: none;
  background-color: var(--bg-deep-space);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-deep-space);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-accent);
}

/* --- Layout Grid (Split Screen) --- */
.app-container {
  display: flex;
  min-height: 100vh;
  width: 100vw;
  position: relative;
  padding-top: 70px; /* Accounts for fixed main header */
}

/* --- Sound Toggle Button (Luxury Style) --- */
.sound-toggle-btn {
  position: fixed;
  top: 25px;
  right: 25px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  padding: 8px 18px;
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: var(--transition-smooth);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}
.sound-toggle-btn:hover {
  border-color: var(--color-accent);
  color: var(--text-primary);
  box-shadow: 0 0 15px var(--color-accent-glow);
}
.sound-toggle-btn .sound-icon {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

/* --- Left Dashboard (Luxury HUD) --- */
.dashboard-panel {
  width: 350px;
  background: var(--bg-panel);
  border-right: 1px solid var(--border-glass);
  padding: 40px 25px;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 70px);
  position: fixed;
  left: 0;
  top: 70px;
  z-index: 10;
  overflow-y: auto;
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
}

/* Profile Card */
.char-profile {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  padding-bottom: 20px;
}
.char-avatar-container {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.5s ease;
}
.char-avatar-svg {
  width: 30px;
  height: 30px;
  fill: var(--text-muted);
  transition: fill 0.5s ease;
}
.char-info h3 {
  font-family: var(--font-title);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.3px;
  color: var(--text-primary);
}
.char-info p {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}
.level-badge {
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-accent);
  padding: 1px 6px;
  border-radius: 3px;
  margin-left: 5px;
  font-weight: 500;
  transition: color 0.5s ease;
}

/* Stats Progress */
.stats-container {
  margin-bottom: 30px;
}
.stats-header {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 15px;
  letter-spacing: 1px;
  opacity: 0.7;
}
.stat-row {
  margin-bottom: 15px;
}
.stat-label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
  font-family: var(--font-mono);
}
.stat-bar-bg {
  height: 4px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 2px;
  overflow: hidden;
}
.stat-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--color-accent);
  box-shadow: 0 0 10px var(--color-accent-glow);
  border-radius: 2px;
  transition: width 1s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.8s ease;
}

/* Timeline Navigation List */
.timeline-nav {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 5px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  opacity: 0.25;
  transition: var(--transition-smooth);
  padding: 3px 0;
}
.nav-item.active {
  opacity: 1;
}
.nav-item.unlocked {
  opacity: 0.65;
}
.nav-item:hover {
  opacity: 1;
}
.nav-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #334155;
  transition: var(--transition-smooth);
  position: relative;
}
.nav-item.active .nav-dot {
  background: var(--color-accent);
  box-shadow: 0 0 12px var(--color-accent);
  transform: scale(1.4);
}
.nav-item.unlocked .nav-dot {
  background: var(--color-accent);
}
.nav-label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

/* Elegant System Console Logs */
.console-logs {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--border-glass);
  padding: 12px 18px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-muted);
  height: 90px;
  overflow-y: hidden;
  margin-top: 20px;
  line-height: 1.5;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.8);
}
#log-lines div {
  margin-bottom: 4px;
  border-left: 2px solid var(--color-accent);
  padding-left: 6px;
  transition: border-color 0.8s ease;
}

/* --- Right Scroll Container (Main Content) --- */
.main-scroll-content {
  flex-grow: 1;
  margin-left: 350px;
  padding: 0;
  width: calc(100% - 350px);
}

/* Hero Section */
.hero-section {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 60px;
  position: relative;
  text-align: center;
  background: radial-gradient(circle at center, rgba(139, 92, 246, 0.03) 0%, transparent 70%);
}
.hero-title {
  font-family: var(--font-title);
  font-size: clamp(38px, 7vw, 80px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -2px;
  line-height: 0.95;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #ffffff 40%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-subtitle {
  font-family: var(--font-mono);
  font-size: clamp(10px, 2.5vw, 13px);
  color: var(--color-gold);
  text-shadow: 0 0 10px var(--color-gold-glow);
  text-transform: uppercase;
  letter-spacing: 5px;
  margin-bottom: 40px;
}
.hero-desc {
  max-width: 600px;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 50px;
}
.start-btn {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--color-gold);
  font-family: var(--font-title);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 16px 45px;
  border-radius: 100px;
  cursor: pointer;
  box-shadow: 0 0 20px var(--color-gold-glow);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}
.start-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.2), transparent);
  transition: left 0.6s ease;
}
.start-btn:hover::before {
  left: 100%;
}
.start-btn:hover {
  transform: translateY(-2px);
  background: var(--color-gold);
  color: var(--text-dark);
  box-shadow: 0 0 30px var(--color-gold);
}

/* Milestone Stages Layout */
.milestone-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 50px;
  position: relative;
  perspective: 1200px;
}

/* 3D Entry Reveal Animations */
.reveal-element {
  opacity: 0;
  transform: translateY(20px);
  transition: transform 0.85s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
  max-width: 800px;
}
.reveal-element.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Premium Glassmorphic Cards */
.milestone-card {
  background: linear-gradient(135deg, rgba(8, 12, 24, 0.45) 0%, rgba(4, 6, 12, 0.65) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: 24px;
  width: 100%;
  padding: 45px;
  position: relative;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.05);
}
.milestone-card:hover {
  border-color: var(--border-active);
  box-shadow: 0 0 35px var(--color-accent-glow), inset 0 1px 1px rgba(255, 255, 255, 0.08);
  transform: translateY(-4px);
}

.milestone-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.milestone-year {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-accent);
  text-shadow: 0 0 10px var(--color-accent-glow);
  letter-spacing: 1.5px;
  transition: color 0.8s ease;
}
.milestone-idx {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  padding: 3px 10px;
  border-radius: 4px;
}
.milestone-title {
  font-family: var(--font-title);
  font-size: 30px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.5px;
  margin-top: 5px;
}
.milestone-body {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.8;
}

/* Info-Widget / Infographic Containers */
.game-box {
  margin-top: 15px;
  background: rgba(1, 2, 4, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  padding: 25px;
  position: relative;
  overflow: hidden;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.4);
}
.game-desc {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 20px;
}
.game-btn {
  background: transparent;
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 10px 24px;
  border-radius: 50px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  transition: var(--transition-smooth);
  margin-top: 15px;
  font-weight: 600;
  z-index: 2;
}
.game-btn:hover {
  background: var(--color-accent);
  color: var(--text-dark);
  box-shadow: 0 0 20px var(--color-accent-glow);
}

/* Achievement Badge (Sleek Executive Notification) */
.achievement-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(212, 175, 55, 0.03);
  border: 1px solid rgba(212, 175, 55, 0.12);
  padding: 10px 20px;
  border-radius: 100px;
  margin-top: 15px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-gold);
  width: fit-content;
  align-self: flex-start;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.achievement-badge.unlocked {
  opacity: 1;
  transform: translateY(0);
}
.achievement-badge-icon {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* --- ADVANCED EXECUTIVE WIDGETS STYLES --- */

/* Marco 1: Constelação de Linhagem */
.lineage-nodes-svg {
  width: 100%;
  max-width: 400px;
  height: 160px;
}
.lineage-node-circle {
  fill: var(--bg-deep-space);
  stroke: var(--color-gold);
  stroke-width: 2;
  cursor: grab;
  transition: r 0.3s ease, fill 0.3s ease;
}
.lineage-node-circle:active {
  cursor: grabbing;
}
.lineage-line {
  stroke: rgba(212, 175, 55, 0.2);
  stroke-width: 1.5;
  stroke-dasharray: 4 4;
}

/* Marco 2: Pulso Vital ECG */
.pulse-svg {
  width: 100%;
  max-width: 500px;
  height: 120px;
}
.pulse-line {
  fill: none;
  stroke: var(--color-gold);
  stroke-width: 2;
  stroke-linecap: round;
  filter: drop-shadow(0 0 6px var(--color-gold));
  transition: stroke 0.8s ease;
  stroke-dasharray: 200 400;
  animation: pulse-flow 2.5s linear infinite;
}
@keyframes pulse-flow {
  0% {
    stroke-dashoffset: 600;
  }
  100% {
    stroke-dashoffset: 0;
  }
}
.pulse-marker {
  fill: var(--color-gold);
  cursor: pointer;
  transition: r 0.3s ease, fill 0.8s ease;
}
.pulse-marker:hover {
  r: 8px;
}
.vital-telemetry-text {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-gold);
  margin-top: 15px;
  min-height: 20px;
  transition: color 0.8s ease, opacity 0.2s ease;
}
/* Beating Heart Animation for Marco 7 */
.beating-heart {
  animation: heart-beat var(--heart-beat-speed, 1.5s) infinite ease-in-out;
}
@keyframes heart-beat {
  0%, 100% {
    transform: translate(216px, 71px) scale(0.75);
  }
  15% {
    transform: translate(216px, 71px) scale(0.95);
  }
  30% {
    transform: translate(216px, 71px) scale(0.8);
  }
  45% {
    transform: translate(216px, 71px) scale(1.02);
  }
}

/* Marco 3: Bicicleta Velocidade */
.vector-wheel-svg {
  width: 120px;
  height: 120px;
  cursor: pointer;
  transition: transform 0.1s linear;
}
.vector-line {
  stroke: var(--color-gold);
  stroke-width: 1.5;
}
.vector-text {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

/* Marco 4: Nuvem de Sinergia */
.synergy-tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  max-width: 500px;
  margin-top: 10px;
}
.synergy-tag {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  padding: 8px 18px;
  border-radius: 50px;
  font-family: var(--font-mono);
  font-size: 11px;
  cursor: pointer;
  transition: var(--transition-smooth);
}
.synergy-tag.active {
  background: rgba(212, 175, 55, 0.1);
  border-color: var(--color-gold);
  color: var(--color-gold);
  box-shadow: 0 0 15px var(--color-gold-glow);
}
.synergy-tag:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Marco 5: Radar Vocacional */
.radar-chart-svg {
  width: 100%;
  max-width: 320px;
  height: 260px;
}
.radar-grid-poly {
  fill: none;
  stroke: rgba(255, 255, 255, 0.05);
  stroke-width: 1;
}
.radar-axis-line {
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 1;
}
.radar-area-poly {
  fill: rgba(0, 229, 255, 0.15);
  stroke: var(--color-cyan);
  stroke-width: 2;
  transition: all 0.5s ease;
}
.radar-vertex-handle {
  fill: var(--color-cyan);
  stroke: #fff;
  stroke-width: 1.5;
  cursor: pointer;
  transition: r 0.3s ease;
}
.radar-vertex-handle:hover {
  r: 6px;
}
.radar-axis-label {
  fill: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 9px;
  text-anchor: middle;
}

/* Marco 6: Faculdade de Direito */
.dossier-explorer-container {
  display: flex;
  gap: 15px;
  width: 100%;
  max-width: 580px;
  min-height: 220px;
}
.dossier-card {
  flex: 1;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 20px;
  cursor: pointer;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  transition: var(--transition-smooth);
  text-align: center;
}
.dossier-card.active {
  flex: 2.2;
  background: rgba(59, 130, 246, 0.03);
  border-color: var(--color-cyan);
  box-shadow: 0 0 20px var(--color-cyan-glow);
  text-align: left;
  align-items: flex-start;
}
.dossier-icon {
  width: 32px;
  height: 32px;
  fill: var(--text-muted);
  margin-bottom: 15px;
  transition: fill 0.3s ease;
}
.dossier-card.active .dossier-icon {
  fill: var(--color-cyan);
}
.dossier-card h4 {
  font-family: var(--font-mono);
  font-size: 13px;
  margin-bottom: 10px;
  text-transform: uppercase;
  color: var(--text-primary);
}
.dossier-card.active h4 {
  color: var(--color-cyan);
}
.dossier-content {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.5s ease, max-height 0.5s ease;
}
.dossier-card.active .dossier-content {
  opacity: 1;
  max-height: 200px;
  margin-top: 10px;
}

/* Marco 7: Ressonância Órbita */
.double-orbit-svg {
  width: 100%;
  max-width: 450px;
  height: 160px;
}
.orbit-ring {
  fill: none;
  stroke: rgba(59, 130, 246, 0.1);
  stroke-width: 1;
}
.orbit-glow-ring {
  fill: none;
  stroke: var(--color-cyan);
  stroke-width: 1;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.double-orbit-svg.resonating .orbit-glow-ring {
  opacity: 0.45;
  animation: pulse-ring 2s infinite ease-in-out;
}
@keyframes pulse-ring {
  0% { stroke-width: 1; }
  50% { stroke-width: 2.5; filter: drop-shadow(0 0 4px var(--color-cyan)); }
  100% { stroke-width: 1; }
}
.luxury-slider-container {
  width: 100%;
  max-width: 320px;
  margin-top: 20px;
}
.luxury-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  outline: none;
  border-radius: 2px;
}
.luxury-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-cyan);
  cursor: pointer;
  border: 2.5px solid var(--bg-deep-space);
  box-shadow: 0 0 10px var(--color-cyan-glow);
  transition: transform 0.2s ease;
}
.luxury-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

/* Marco 8: Juventude MDB Node Map */
.network-svg {
  width: 100%;
  max-width: 480px;
  height: 160px;
}
.network-node {
  fill: var(--bg-deep-space);
  stroke: rgba(16, 185, 129, 0.2);
  stroke-width: 2;
  cursor: pointer;
  transition: var(--transition-smooth);
}
.network-node.active {
  stroke: var(--color-emerald);
  fill: var(--color-emerald);
  filter: drop-shadow(0 0 8px var(--color-emerald));
}
.network-link {
  stroke: rgba(16, 185, 129, 0.06);
  stroke-width: 1.5;
  transition: stroke 0.5s ease, stroke-width 0.5s ease;
}
.network-link.active {
  stroke: var(--color-emerald);
  stroke-width: 2.5;
}

/* Marco 9: Defensoria DPDF RPG */
.diagnostic-console-container {
  width: 100%;
  max-width: 580px;
  background: rgba(2, 3, 6, 0.6);
  border: 1px solid var(--border-glass);
  border-radius: 14px;
  overflow: hidden;
  text-align: left;
}
.console-header-bar {
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border-glass);
  padding: 10px 18px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
}
.console-indicator {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-emerald);
  margin-right: 5px;
}
.console-body-section {
  padding: 20px;
  font-family: var(--font-mono);
}
.case-details-box {
  background: rgba(0, 0, 0, 0.3);
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 15px;
  border-left: 2px solid var(--color-emerald);
}
.console-options-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.console-opt-btn {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  padding: 12px 18px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  cursor: pointer;
  text-align: left;
  transition: var(--transition-smooth);
}
.console-opt-btn:hover {
  background: rgba(16, 185, 129, 0.03);
  border-color: var(--color-emerald);
  box-shadow: 0 0 15px var(--color-emerald-glow);
  transform: translateX(3px);
}

/* Marco 10: Advocacia Gráfico */
.cases-chart-svg {
  width: 100%;
  max-width: 520px;
  height: 160px;
}
.chart-grid-line {
  stroke: rgba(255, 255, 255, 0.04);
  stroke-width: 1;
}
.chart-line-path {
  fill: none;
  stroke: var(--color-emerald);
  stroke-width: 2.5;
  filter: drop-shadow(0 0 6px var(--color-emerald-glow));
}
.chart-bar {
  fill: rgba(16, 185, 129, 0.1);
  stroke: rgba(16, 185, 129, 0.3);
  stroke-width: 1;
  transition: fill 0.3s, stroke 0.3s;
  cursor: pointer;
}
.chart-bar:hover {
  fill: rgba(16, 185, 129, 0.3);
  stroke: var(--color-emerald);
}
.chart-marker-point {
  fill: var(--color-emerald);
  stroke: #fff;
  stroke-width: 1.5;
  r: 4px;
  cursor: pointer;
  transition: r 0.2s ease;
}
.chart-marker-point:hover {
  r: 6px;
}
.chart-axis-text {
  fill: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 9px;
}

/* Marco 12: Holding Ecossistema */
.holding-hub-svg {
  width: 100%;
  max-width: 480px;
  height: 160px;
}
.hub-core {
  fill: var(--bg-deep-space);
  stroke: var(--color-emerald);
  stroke-width: 2.5;
  filter: drop-shadow(0 0 10px var(--color-emerald-glow));
  transition: fill 0.3s ease;
}
.hub-node {
  fill: var(--bg-deep-space);
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 1.5;
  cursor: pointer;
  transition: var(--transition-smooth);
}
.hub-node.active {
  stroke: var(--color-emerald);
  fill: rgba(16, 185, 129, 0.08);
  filter: drop-shadow(0 0 8px var(--color-emerald-glow));
}
.hub-link-line {
  stroke: rgba(255, 255, 255, 0.05);
  stroke-width: 1.5;
  stroke-dasharray: 4 4;
  transition: stroke 0.5s ease, stroke-width 0.5s ease;
}
.hub-link-line.active {
  stroke: var(--color-emerald);
  stroke-width: 2;
  stroke-dasharray: none;
}
.hub-label {
  fill: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 9px;
  text-anchor: middle;
  transition: fill 0.3s ease;
}
.hub-node.active + text, .hub-node.active + g + text {
  fill: var(--text-primary);
  font-weight: 500;
}

/* --- Chatbot RPG Contact (Fale Comigo) --- */
.chatbot-container {
  width: 100%;
  max-width: 650px;
  background: rgba(4, 6, 12, 0.5);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  height: 380px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(25px);
}
.chatbot-messages {
  flex-grow: 1;
  padding: 25px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.chat-bubble {
  max-width: 75%;
  padding: 12px 18px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.6;
  opacity: 0;
  transform: translateY(10px);
  animation: message-appear 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes message-appear {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.chat-bubble.bot {
  background: rgba(255, 255, 255, 0.02);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
}
.chat-bubble.user {
  background: var(--color-accent);
  color: var(--text-dark);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
  font-weight: 600;
  transition: background-color 0.8s ease;
}
.chatbot-options {
  padding: 20px;
  border-top: 1px solid var(--border-glass);
  background: rgba(2, 3, 6, 0.4);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.chat-option-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 11px;
  font-family: var(--font-mono);
  cursor: pointer;
  transition: var(--transition-smooth);
}
.chat-option-btn:hover {
  border-color: var(--color-accent);
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

/* --- Responsive Adaptations (Mobile-first Collapse) --- */
@media (max-width: 900px) {
  .app-container {
    flex-direction: column;
  }
  
  /* Left Panel collapses to a Sticky HUD bar on Mobile */
  .dashboard-panel {
    width: 100vw;
    height: auto;
    max-height: 180px;
    position: relative;
    top: 0; /* Reset desktop fixed top */
    border-right: none;
    border-bottom: 1px solid var(--border-glass);
    padding: 20px 25px;
    overflow-y: hidden;
  }
  
  .char-profile {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
  }
  .char-avatar-container {
    width: 48px;
    height: 48px;
  }
  
  .stats-container, .timeline-nav, .console-logs {
    display: none; /* Hide detailed panels on mobile to save vertical space */
  }
  
  /* Main content scrolls normally */
  .main-scroll-content {
    margin-left: 0;
    width: 100%;
  }
  
  .milestone-section {
    padding: 60px 20px;
  }
  .milestone-card {
    padding: 30px 20px;
    gap: 15px;
  }
  .milestone-title {
    font-size: 24px;
  }
  
  .dossier-explorer-container {
    flex-direction: column;
    min-height: auto;
  }
  .dossier-card.active {
    flex: auto;
  }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-delay: -1ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    background-attachment: initial !important;
    scroll-behavior: auto !important;
    transition-duration: 0s !important;
    transition-delay: 0s !important;
  }
}

/* --- Mode Visibility & Switching Logic --- */
.mode-view, .welcome-overlay {
  display: none !important;
}

body.show-portal #welcome-portal {
  display: flex !important;
}
body.show-portal .main-header {
  display: none !important;
}

body.mode-institutional #view-institutional {
  display: block !important;
}
body.mode-interactive #view-app-container {
  display: flex !important;
}
body.mode-biography #view-biography {
  display: block !important;
}
body.mode-card #view-card {
  display: flex !important;
}
body.mode-card .main-header {
  display: none !important;
}

/* --- Welcome Portal Overlay --- */
.welcome-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at center, #060913 0%, #020306 100%);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}
.portal-card {
  width: 100%;
  max-width: 820px;
  background: rgba(8, 12, 24, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  padding: 50px 40px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  animation: portal-fadein 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes portal-fadein {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
.portal-title {
  font-family: var(--font-title);
  font-size: 36px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: 12px;
}
.portal-highlight {
  color: var(--color-gold);
  background: linear-gradient(135deg, var(--color-gold) 30%, #fef08a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}
.portal-subtitle {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 40px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.portal-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
}
.portal-opt-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 18px;
  padding: 35px 25px;
  text-decoration: none;
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}
.portal-opt-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(212, 175, 55, 0.3);
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(212, 175, 55, 0.06);
}
.portal-opt-card:hover:nth-child(2) {
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 10px 25px rgba(59, 130, 246, 0.08);
}
.portal-opt-card:hover:nth-child(3) {
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.08);
}
.opt-icon-wrapper {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--color-gold);
  transition: var(--transition-smooth);
}
.portal-opt-card:nth-child(2) .opt-icon-wrapper {
  color: var(--color-cyan);
}
.portal-opt-card:nth-child(3) .opt-icon-wrapper {
  color: var(--color-emerald);
}
.portal-opt-card:hover .opt-icon-wrapper {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.06);
}
.opt-icon {
  width: 28px;
  height: 28px;
}
.portal-opt-card h3 {
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
}
.portal-opt-card p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted);
}
.opt-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(212, 175, 55, 0.1);
  color: var(--color-gold);
  border: 1px solid rgba(212, 175, 55, 0.2);
}
.opt-badge.tech {
  background: rgba(59, 130, 246, 0.1);
  color: var(--color-cyan);
  border: 1px solid rgba(59, 130, 246, 0.2);
}
.opt-badge.bio {
  background: rgba(16, 185, 129, 0.1);
  color: var(--color-emerald);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

/* --- Persistent Switcher Header --- */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 70px;
  background: rgba(4, 6, 12, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
.header-logo .logo-text {
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text-primary);
  background: linear-gradient(135deg, #fff 40%, var(--text-muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.header-nav {
  display: flex;
  gap: 30px;
}
.nav-switch-link {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  padding: 6px 12px;
  border-radius: 6px;
  transition: var(--transition-smooth);
  border: 1px solid transparent;
}
.nav-switch-link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.02);
}
.nav-switch-link.active {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.08);
}
.nav-switch-link.active[data-mode="institutional"] {
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.1);
  background: rgba(212, 175, 55, 0.03);
  border-color: rgba(212, 175, 55, 0.2);
}
.nav-switch-link.active[data-mode="interactive"] {
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.1);
  background: rgba(59, 130, 246, 0.03);
  border-color: rgba(59, 130, 246, 0.2);
}
.nav-switch-link.active[data-mode="biography"] {
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.1);
  background: rgba(16, 185, 129, 0.03);
  border-color: rgba(16, 185, 129, 0.2);
}
.sound-toggle-header-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-smooth);
}
.sound-toggle-header-btn:hover {
  border-color: var(--color-gold);
  color: var(--text-primary);
}
.sound-icon-header {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

/* --- Digital Bio Card (#view-card) --- */
#view-card {
  width: 100vw;
  min-height: 100vh;
  background: radial-gradient(circle at center, #060913 0%, #020306 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}
.card-container {
  width: 100%;
  max-width: 440px;
  background: rgba(8, 12, 24, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  padding: 40px 25px;
  text-align: center;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.card-avatar-wrapper {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 2px solid var(--color-gold);
  padding: 3px;
  margin: 0 auto 20px auto;
  box-shadow: 0 0 15px var(--color-gold-glow);
}
.card-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #0b0f19;
}
.card-name {
  font-family: var(--font-title);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.card-subtitle {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-gold);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
}
.card-bio-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 30px;
  padding: 0 10px;
}
.card-links-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 30px;
}
.card-link-item {
  width: 100%;
  padding: 15px 20px;
  border-radius: 12px;
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: var(--transition-smooth);
  border: 1px solid var(--border-glass);
}
.card-link-icon {
  width: 18px;
  height: 18px;
}
.card-link-item.wpp-link {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.2);
  color: #10b981;
}
.card-link-item.wpp-link:hover {
  background: #10b981;
  color: #020306;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
}
.card-link-item.inst-link {
  background: rgba(212, 175, 55, 0.08);
  border-color: rgba(212, 175, 55, 0.2);
  color: var(--color-gold);
}
.card-link-item.inst-link:hover {
  background: var(--color-gold);
  color: #020306;
  box-shadow: 0 0 15px var(--color-gold-glow);
}
.card-link-item.email-link {
  background: rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.2);
  color: #3b82f6;
}
.card-link-item.email-link:hover {
  background: #3b82f6;
  color: #fff;
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
}
.card-link-item.ig-link {
  background: rgba(236, 72, 153, 0.08);
  border-color: rgba(236, 72, 153, 0.2);
  color: #ec4899;
}
.card-link-item.ig-link:hover {
  background: #ec4899;
  color: #fff;
  box-shadow: 0 0 15px rgba(236, 72, 153, 0.3);
}
.card-link-item.in-link {
  background: rgba(14, 118, 168, 0.08);
  border-color: rgba(14, 118, 168, 0.2);
  color: #0e76a8;
}
.card-link-item.in-link:hover {
  background: #0e76a8;
  color: #fff;
  box-shadow: 0 0 15px rgba(14, 118, 168, 0.3);
}
.card-footer-info {
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  padding-top: 25px;
}
.card-address {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 12px;
}
.card-copyright {
  font-family: var(--font-mono);
  font-size: 9px;
  color: rgba(255, 255, 255, 0.2);
}

/* --- Editorial Biography (#view-biography) --- */
.bio-editorial-container {
  width: 100vw;
  padding: 120px 20px 80px 20px;
  background-color: #020306;
}
.bio-editorial-wrapper {
  max-width: 800px;
  margin: 0 auto;
}
.bio-editorial-header {
  text-align: center;
  margin-bottom: 70px;
}
.bio-editorial-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-gold);
  text-transform: uppercase;
  letter-spacing: 2px;
  display: inline-block;
  margin-bottom: 15px;
}
.bio-editorial-title {
  font-family: var(--font-title);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 15px;
}
.bio-editorial-lead {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.6;
}
.bio-editorial-timeline {
  position: relative;
  padding-left: 45px;
}
.bio-editorial-timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 10px;
  bottom: 10px;
  width: 1px;
  background: linear-gradient(to bottom, var(--color-gold) 0%, rgba(255,255,255,0.05) 100%);
}
.bio-editorial-item {
  position: relative;
  margin-bottom: 50px;
}
.bio-editorial-item::before {
  content: '';
  position: absolute;
  left: -45px;
  top: 8px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #020306;
  border: 2px solid var(--color-gold);
  transform: translateX(-4px);
  box-shadow: 0 0 10px var(--color-gold-glow);
}
.bio-editorial-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 8px;
}
.bio-editorial-year {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-gold);
}
.bio-editorial-number {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
}
.bio-editorial-content h2 {
  font-family: var(--font-title);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}
.bio-editorial-content p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-muted);
}

/* --- Institutional Mode (#view-institutional) --- */
#view-institutional {
  width: 100vw;
  padding-top: 70px;
  background: #020306;
}
.inst-hero {
  padding: 100px 40px;
  position: relative;
  border-bottom: 1px solid var(--border-glass);
}
.inst-hero-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 60px;
}
.inst-hero-content {
  flex: 1;
}
.inst-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-gold);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 15px;
  display: inline-block;
}
.inst-title {
  font-family: var(--font-title);
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.15;
  margin-bottom: 20px;
}
.inst-subtitle {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 25px;
  line-height: 1.5;
}
.inst-description {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 35px;
}
.inst-hero-actions {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.inst-btn-primary {
  background: var(--color-gold);
  color: var(--text-dark);
  padding: 14px 30px;
  border-radius: 8px;
  font-family: var(--font-title);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 0 20px var(--color-gold-glow);
  transition: var(--transition-smooth);
}
.inst-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px var(--color-gold);
}
.inst-btn-secondary {
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.02);
  padding: 14px 30px;
  border-radius: 8px;
  font-family: var(--font-title);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition-smooth);
}
.inst-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--text-primary);
}
.inst-hero-image-wrapper {
  width: 320px;
  height: 320px;
  border-radius: 20px;
  border: 1px solid var(--border-glass);
  padding: 10px;
  background: rgba(255, 255, 255, 0.01);
  display: flex;
  align-items: center;
  justify-content: center;
}
.inst-hero-img {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  object-fit: cover;
  background: #0b0f19;
}

.inst-specialties {
  padding: 100px 40px;
  border-bottom: 1px solid var(--border-glass);
}
.inst-section-container {
  max-width: 1100px;
  margin: 0 auto;
}
.inst-section-title {
  font-family: var(--font-title);
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 50px;
  position: relative;
  display: inline-block;
}
.inst-section-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 50px;
  height: 2px;
  background: var(--color-gold);
}
.inst-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}
.inst-card {
  background: rgba(8, 12, 24, 0.45);
  border: 1px solid var(--border-glass);
  border-radius: 18px;
  padding: 35px;
  transition: var(--transition-smooth);
}
.inst-card:hover {
  border-color: rgba(212, 175, 55, 0.2);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(212, 175, 55, 0.03);
}
.inst-card-icon {
  width: 45px;
  height: 45px;
  color: var(--color-gold);
  margin-bottom: 20px;
}
.inst-card-icon svg {
  width: 100%;
  height: 100%;
}
.inst-card h3 {
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
}
.inst-card p {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--text-muted);
}

.inst-bio-section {
  padding: 100px 40px;
  background: rgba(8, 12, 24, 0.2);
  border-bottom: 1px solid var(--border-glass);
}
.inst-bio-layout {
  display: flex;
  align-items: center;
  gap: 80px;
}
.inst-bio-content {
  flex: 1.3;
}
.inst-bio-content p {
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.inst-bio-stats {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 25px;
}
.inst-stat-box {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 20px 25px;
  text-align: center;
}
.inst-stat-number {
  display: block;
  font-family: var(--font-title);
  font-size: 28px;
  font-weight: 800;
  color: var(--color-gold);
  margin-bottom: 4px;
}
.inst-stat-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.inst-contact-section {
  padding: 100px 40px;
}
.inst-contact-layout {
  display: flex;
  gap: 60px;
  align-items: flex-start;
}
.inst-contact-info {
  flex: 1;
}
.inst-contact-info p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 35px;
}
.inst-contact-links {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.inst-contact-item {
  font-size: 13.5px;
  line-height: 1.6;
}
.inst-contact-item strong {
  display: block;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.inst-contact-item span {
  color: var(--text-muted);
}
.inst-contact-form-wrapper {
  flex: 1.2;
  background: rgba(8, 12, 24, 0.45);
  border: 1px solid var(--border-glass);
  border-radius: 18px;
  padding: 35px;
}
.inst-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.inst-form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.inst-form-group label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.inst-form-group input, .inst-form-group textarea {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-glass);
  padding: 12px 16px;
  border-radius: 8px;
  color: #fff;
  font-family: var(--font-title);
  font-size: 13px;
  outline: none;
  transition: var(--transition-smooth);
}
.inst-form-group input:focus, .inst-form-group textarea:focus {
  border-color: var(--color-gold);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.05);
}
.inst-submit-btn {
  background: var(--color-gold);
  color: var(--text-dark);
  border: none;
  padding: 15px;
  border-radius: 8px;
  font-family: var(--font-title);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 0 15px var(--color-gold-glow);
  transition: var(--transition-smooth);
}
.inst-submit-btn:hover {
  box-shadow: 0 0 25px var(--color-gold);
  transform: translateY(-1px);
}

/* --- Switcher Responsive Adaptations --- */
@media (max-width: 900px) {
  .welcome-options {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .portal-options {
    grid-template-columns: 1fr;
  }
  .portal-card {
    padding: 35px 20px;
  }
  .portal-title {
    font-size: 26px;
  }
  
  .main-header {
    padding: 0 20px;
  }
  .header-logo {
    display: none; /* Hide logo to save space on mobile switcher */
  }
  .header-nav {
    gap: 10px;
    width: 100%;
    justify-content: space-around;
  }
  .nav-switch-link {
    font-size: 10px;
    padding: 6px 10px;
  }
  .sound-toggle-header-btn {
    display: none; /* Hide sound toggle in top header on mobile */
  }
  
  .inst-hero {
    padding: 60px 20px;
  }
  .inst-hero-container {
    flex-direction: column;
    gap: 40px;
    text-align: center;
  }
  .inst-hero-image-wrapper {
    width: 240px;
    height: 240px;
  }
  .inst-hero-actions {
    justify-content: center;
  }
  
  .inst-specialties, .inst-bio-section, .inst-contact-section {
    padding: 60px 20px;
  }
  .inst-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .inst-bio-layout, .inst-contact-layout {
    flex-direction: column;
    gap: 40px;
  }
  .inst-bio-stats {
    width: 100%;
  }
  
  .bio-editorial-timeline {
    padding-left: 25px;
  }
  .bio-editorial-timeline::before {
    left: 8px;
  }
  .bio-editorial-item::before {
    left: -25px;
    transform: translateX(-4px);
  }
}
