/* ============================================================
   EMPYRION: REFORGED EDEN 2 — COSMIC THEME
   Deep space aesthetic with glassmorphism panels
   ============================================================ */

/* --- Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* --- CSS Variables --- */
:root {
  /* Core palette */
  --bg-deep: #030812;
  --bg-primary: #060d1a;
  --bg-card: rgba(10, 18, 40, 0.75);
  --bg-card-hover: rgba(15, 25, 55, 0.85);
  
  /* Accent colors */
  --cyan: #00e5ff;
  --cyan-dim: #009aaa;
  --violet: #a855f7;
  --violet-dim: #7c3aed;
  --rose: #f43f5e;
  --gold: #fbbf24;
  --emerald: #10b981;
  
  /* Text */
  --text-primary: #e8edf5;
  --text-secondary: #8899b3;
  --text-dim: #556680;
  
  /* Borders & effects */
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-accent: rgba(0, 229, 255, 0.2);
  --glass-blur: blur(16px);
  --shadow-glow-cyan: 0 0 30px rgba(0, 229, 255, 0.15);
  --shadow-glow-violet: 0 0 30px rgba(168, 85, 247, 0.15);
  
  /* Typography */
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  /* Spacing */
  --nav-height: 72px;
  --section-gap: 100px;
}

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

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--cyan-dim) var(--bg-deep);
}

body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* --- Starfield Canvas --- */
#starfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* Nebula gradient overlays */
body::before {
  content: '';
  position: fixed;
  top: -20%; left: -10%;
  width: 60vw; height: 60vw;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.06) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
  animation: nebula-drift 80s ease-in-out infinite alternate;
}

body::after {
  content: '';
  position: fixed;
  bottom: -30%; right: -15%;
  width: 70vw; height: 70vw;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.04) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
  animation: nebula-drift 100s ease-in-out infinite alternate-reverse;
}

@keyframes nebula-drift {
  from { transform: translate(0, 0) rotate(0deg); }
  to { transform: translate(40px, -30px) rotate(8deg); }
}

/* --- Layout --- */
.page-wrapper {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: rgba(3, 8, 18, 0.85);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 1000;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(3, 8, 18, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
}

.nav-brand img {
  width: 40px; height: 40px;
  border-radius: 8px;
}

.nav-brand-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
}

.nav-brand-text span {
  color: var(--cyan);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: 8px 14px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--cyan);
  background: rgba(0, 229, 255, 0.08);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Navbar status + reboot pills (injected by navigation.js) */
#nav-pills {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
  background: rgba(0, 229, 255, 0.06);
  border: 1px solid var(--border-subtle);
  padding: 6px 12px;
  border-radius: 100px;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.nav-pill:hover {
  border-color: var(--border-accent);
  color: var(--cyan);
}

.nav-pill-label {
  font-size: 0.6rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-dim);
}

#nav-status .nav-pill-label {
  color: var(--emerald);
}

#nav-reboot .nav-reboot-time {
  color: var(--cyan);
  letter-spacing: 1px;
}

@media (max-width: 900px) {
  .nav-pill {
    font-size: 0.68rem;
    padding: 5px 10px;
  }
}

@media (max-width: 480px) {
  .nav-pill {
    font-size: 0.6rem;
    padding: 4px 8px;
    gap: 6px;
  }
  .nav-pill .pulse-dot {
    width: 6px;
    height: 6px;
  }
  .nav-pill-label {
    display: none;
  }
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-height) + 40px) 24px 80px;
  position: relative;
}

.hero-content {
  max-width: 720px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--cyan);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-badge .dot {
  width: 6px; height: 6px;
  background: var(--emerald);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero h1 .gradient-text {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--violet) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 12px;
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--cyan) 0%, #00b8d4 100%);
  color: #030812;
  box-shadow: 0 4px 20px rgba(0, 229, 255, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 229, 255, 0.35);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  backdrop-filter: var(--glass-blur);
}

.btn-secondary:hover {
  border-color: var(--cyan);
  background: rgba(0, 229, 255, 0.08);
  transform: translateY(-2px);
}

.btn-discord {
  background: linear-gradient(135deg, #5865F2 0%, #4752C4 100%);
  color: white;
  box-shadow: 0 4px 20px rgba(88, 101, 242, 0.25);
}

.btn-discord:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(88, 101, 242, 0.35);
}

.btn-vote {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  box-shadow: 0 4px 20px rgba(239, 68, 68, 0.3);
}

.btn-vote:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(239, 68, 68, 0.4);
}

/* --- Section Styling --- */
.section {
  padding: var(--section-gap) 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--cyan);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.section-desc {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* --- Glass Cards --- */
.card {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 28px;
  transition: all 0.3s ease;
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-glow-cyan);
  transform: translateY(-4px);
}

/* --- Cards Grid --- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.card-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.card-icon.cyan { background: rgba(0, 229, 255, 0.12); color: var(--cyan); }
.card-icon.violet { background: rgba(168, 85, 247, 0.12); color: var(--violet); }
.card-icon.rose { background: rgba(244, 63, 94, 0.12); color: var(--rose); }
.card-icon.gold { background: rgba(251, 191, 36, 0.12); color: var(--gold); }
.card-icon.emerald { background: rgba(16, 185, 129, 0.12); color: var(--emerald); }

.card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.55;
  margin-bottom: 16px;
}

.card-link {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--cyan);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.card-link:hover {
  color: var(--violet);
  gap: 10px;
}

/* --- Info Panel (Server Stats, etc.) --- */
.info-panel {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  overflow: hidden;
}

.info-panel-header {
  padding: 20px 28px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.info-panel-header h3 {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--cyan);
}

.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--emerald);
}

.status-dot::before {
  content: '';
  width: 8px; height: 8px;
  background: var(--emerald);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

.info-panel-body {
  padding: 24px 28px;
}

/* --- Info Rows --- */
.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-subtle);
}

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

.info-label {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.info-value {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-primary);
  text-align: right;
}

.info-value.highlight {
  color: var(--cyan);
}

/* --- Code Blocks --- */
.code-block {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 16px 20px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.7;
  overflow-x: auto;
  color: var(--text-secondary);
}

.code-block .cmd {
  color: var(--cyan);
}

.code-block .comment {
  color: var(--text-dim);
  font-style: italic;
}

/* --- Timeline --- */
.timeline {
  position: relative;
  padding-left: 32px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 8px; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--cyan), var(--violet), transparent);
}

.timeline-item {
  position: relative;
  margin-bottom: 32px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -28px; top: 6px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.4);
}

.timeline-item.warning::before {
  background: var(--rose);
  box-shadow: 0 0 12px rgba(244, 63, 94, 0.4);
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--cyan);
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.timeline-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.timeline-desc {
  color: var(--text-secondary);
  font-size: 0.92rem;
}

/* --- Progress Bar --- */
.progress-container {
  margin-top: 16px;
}

.progress-bar-bg {
  height: 8px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  border-radius: 4px;
  transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.progress-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* --- Countdown --- */
.countdown {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 24px;
}

.countdown-unit {
  text-align: center;
  min-width: 70px;
}

.countdown-value {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--cyan);
  line-height: 1;
}

.countdown-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-dim);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 4px;
}

/* --- Compact card timers (quick-info cards on index) --- */
#section-quickinfo .countdown {
  gap: 8px;
  margin-top: 14px;
}

#section-quickinfo .countdown-unit {
  min-width: 0;
  flex: 1;
}

#section-quickinfo .countdown-value {
  font-size: 1.35rem;
}

#section-quickinfo .countdown-label {
  font-size: 0.58rem;
  letter-spacing: 1px;
}

.timer-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 12px 0 0;
}

.timer-label strong {
  color: var(--cyan);
  font-size: 0.85rem;
  letter-spacing: 1px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
  animation: pulse-dot 2s ease-in-out infinite;
  flex-shrink: 0;
}

.pulse-dot.rose {
  background: var(--rose);
  box-shadow: 0 0 8px rgba(244, 63, 94, 0.6);
}

.pulse-dot.offline {
  background: var(--rose);
  box-shadow: 0 0 8px rgba(244, 63, 94, 0.6);
}

.pulse-dot.pending {
  background: var(--gold);
  box-shadow: 0 0 8px rgba(251, 191, 36, 0.6);
}

#nav-status.is-off .nav-pill-label {
  color: var(--rose);
}

#nav-status.is-pending .nav-pill-label {
  color: var(--gold);
}

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

/* --- Back Link --- */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-secondary);
  text-decoration: none;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  transition: all 0.2s ease;
  margin-bottom: 32px;
}

.back-link:hover {
  color: var(--cyan);
  border-color: var(--cyan);
  background: rgba(0, 229, 255, 0.06);
}

/* --- Content Page Header --- */
.page-header {
  padding-top: calc(var(--nav-height) + 60px);
  padding-bottom: 40px;
  text-align: center;
}

.page-header h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  margin-bottom: 16px;
}

.page-header p {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* --- Content Panels --- */
.content-panel {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 24px;
}

.content-panel h2 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.content-panel h2::before {
  content: '';
  display: inline-block;
  width: 4px; height: 1em;
  background: linear-gradient(to bottom, var(--cyan), var(--violet));
  border-radius: 2px;
  margin-right: 12px;
  vertical-align: text-bottom;
}

.content-panel p {
  color: var(--text-secondary);
  margin-bottom: 12px;
  line-height: 1.65;
}

.content-panel ul {
  list-style: none;
  padding: 0;
}

.content-panel ul li {
  padding: 8px 0;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.content-panel ul li:last-child { border-bottom: none; }

.content-panel ul li::before {
  content: '›';
  color: var(--cyan);
  font-weight: bold;
  flex-shrink: 0;
}

/* --- Alert / Warning Boxes --- */
.alert {
  padding: 16px 20px;
  border-radius: 12px;
  margin: 16px 0;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.alert-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.alert-content {
  font-size: 0.9rem;
  line-height: 1.55;
}

.alert-warning {
  background: rgba(244, 63, 94, 0.08);
  border: 1px solid rgba(244, 63, 94, 0.2);
  color: #fca5a5;
}

.alert-info {
  background: rgba(0, 229, 255, 0.06);
  border: 1px solid rgba(0, 229, 255, 0.15);
  color: #a5f3fc;
}

.alert-success {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: #a7f3d0;
}

/* --- Footer --- */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 40px 24px;
  text-align: center;
}

.footer p {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
}

/* --- Scroll Reveal Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }


/* --- Modal / Dialog --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 8, 18, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 40px;
  max-width: 480px;
  width: 90%;
  text-align: center;
  transform: scale(0.9) translateY(20px);
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.modal-overlay.active .modal-box {
  transform: scale(1) translateY(0);
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.modal-subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 32px;
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 24px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 14px;
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
}

.modal-btn-primary {
  background: linear-gradient(135deg, var(--cyan) 0%, #00b8d4 100%);
  color: #030812;
  box-shadow: 0 4px 20px rgba(0, 229, 255, 0.2);
}

.modal-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 229, 255, 0.3);
}

.modal-btn-secondary {
  background: var(--bg-card-hover);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.modal-btn-secondary:hover {
  border-color: var(--cyan);
  background: rgba(0, 229, 255, 0.08);
  transform: translateY(-2px);
}

.modal-btn-vote {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  box-shadow: 0 4px 20px rgba(239, 68, 68, 0.25);
}

.modal-btn-vote:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(239, 68, 68, 0.35);
}

.modal-close {
  margin-top: 20px;
  background: none;
  border: none;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  cursor: pointer;
  padding: 8px 16px;
  transition: color 0.2s ease;
}

.modal-close:hover {
  color: var(--text-secondary);
}

/* --- Responsive modal --- */
@media (max-width: 768px) {
  .modal-box { padding: 28px; }
  .modal-title { font-size: 1.3rem; }
}

/* --- Responsive --- */
@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
    --section-gap: 60px;
  }
  
  .hero h1 { font-size: clamp(2rem, 8vw, 3rem); }
  
  .countdown { gap: 8px; }
  .countdown-unit { min-width: 55px; }
  .countdown-value { font-size: 1.5rem; }
  
  .cards-grid { grid-template-columns: 1fr; }
  
  .content-panel { padding: 24px; }
  
  .hero-actions { flex-direction: column; align-items: center; }
  .btn { width: 100%; max-width: 280px; justify-content: center; }
}


/* --- Dropdown Navigation --- */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-list {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: rgba(6, 11, 24, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 8px 0;
  list-style: none;
  z-index: 1001;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.nav-dropdown-list li a {
  display: block;
  padding: 10px 16px;
  font-size: 0.7rem;
  letter-spacing: 1px;
  color: var(--text-secondary);
  border-radius: 0;
  transition: all 0.2s ease;
}

.nav-dropdown-list li a:hover {
  background: rgba(0, 229, 255, 0.08);
  color: var(--cyan);
}

.nav-dropdown:hover .nav-dropdown-list {
  display: block;
}

/* Mobile nav: single 900px breakpoint, themed dropdown panel */
@media (max-width: 900px) {
  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-height);
    bottom: auto;
    left: 0;
    right: 0;
    width: auto;
    margin: 0;
    max-height: calc(100vh - var(--nav-height));
    overflow-y: auto;
    background: rgba(3, 8, 18, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: stretch;
    text-align: left;
    padding: 16px 20px 24px;
    gap: 6px;
    border-bottom: 1px solid var(--border-accent);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
    z-index: 999;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links > li { width: 100%; }

  .nav-links a {
    text-align: left;
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
    border-radius: 10px;
  }

  .nav-dropdown-list {
    display: block;
    position: static;
    background: rgba(0, 229, 255, 0.04);
    border: 1px solid var(--border-subtle);
    box-shadow: none;
    border-radius: 10px;
    padding: 6px;
    margin-top: 6px;
  }

  .nav-dropdown-list li a {
    padding: 10px 14px;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .info-panel-body { padding: 16px; }
  .countdown { flex-wrap: wrap; }
}

/* ============================================================
   ADDITIONAL CONTENT PAGE CLASSES
   ============================================================ */

/* --- Page Subtitle --- */
.page-subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-top: 8px;
}

/* --- Divider Between Sections --- */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-accent), transparent);
  margin: 48px auto;
  max-width: 600px;
}

/* --- Lore Box (used in what-is-re2.html) --- */
.lore-box {
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.04), rgba(168, 85, 247, 0.04));
  border-left: 3px solid var(--cyan);
  padding: 20px 24px;
  margin: 20px 0;
  border-radius: 0 12px 12px 0;
}

.lore-box p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 8px;
}

.lore-box p:last-child { margin-bottom: 0; }

/* --- Step List (used in beginners.html) --- */
.step-list {
  counter-reset: step;
  list-style: none;
  padding: 0;
}

.step-item {
  position: relative;
  padding-left: 64px;
  margin-bottom: 32px;
}

.step-item::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}

.step-item h3 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  margin-bottom: 8px;
  font-size: 1.1rem;
}

/* --- Tip Box (used in beginners.html) --- */
.tip-box {
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 10px;
  padding: 14px 18px;
  margin: 16px 0;
}

.tip-box strong { color: var(--emerald); }

/* --- Warning Box (used in beginners.html, building-guide.html) --- */
.warning-box {
  background: rgba(244, 63, 94, 0.06);
  border: 1px solid rgba(244, 63, 94, 0.2);
  border-radius: 10px;
  padding: 14px 18px;
  margin: 16px 0;
}

.warning-box strong { color: var(--rose); }

/* --- Resource Table (used in beginners.html) --- */
.resource-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
}

.resource-table th,
.resource-table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}

.resource-table th {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(0, 229, 255, 0.04);
}

.resource-table td {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.resource-table tr:hover td {
  background: rgba(0, 229, 255, 0.03);
}

/* --- Command List (used in what-is-re2.html) --- */
.command-list {
  list-style: none;
  padding: 0;
  margin-top: 16px;
}

.command-list li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.command-list li:last-child { border-bottom: none; }

.cmd-name {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--cyan);
  min-width: 140px;
  flex-shrink: 0;
}

.cmd-desc {
  line-height: 1.55;
}

/* --- Callout Boxes (used in building-guide.html) --- */
.callout {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 12px;
  margin: 20px 0;
}

.callout-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.callout-content p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
  margin: 0;
}

.callout-gold {
  background: rgba(251, 191, 36, 0.06);
  border: 1px solid rgba(251, 191, 36, 0.2);
}

.callout-info {
  background: rgba(0, 229, 255, 0.06);
  border: 1px solid rgba(0, 229, 255, 0.15);
}

/* --- Limit Table (used in building-guide.html) --- */
.limit-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
}

.limit-table th,
.limit-table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}

.limit-table th {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(0, 229, 255, 0.04);
}

.limit-table td {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* --- Building Guide Cards (used in building-guide.html) --- */
.armor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin: 20px 0;
}

.armor-card,
.cpu-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 20px;
  transition: all 0.3s ease;
}

.armor-card:hover,
.cpu-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-2px);
}

.tier {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 4px;
}

.name {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.55;
}

/* --- Thruster Grid (used in building-guide.html) --- */
.thruster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin: 20px 0;
}

.thruster-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 20px;
  transition: all 0.3s ease;
}

.thruster-item:hover {
  border-color: var(--border-accent);
  transform: translateY(-2px);
}

/* --- Exploration Guide Elements (used in exploration.html) --- */
.gate-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
  transition: all 0.3s ease;
}

.gate-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-2px);
}

.gate {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.map-hint {
  background: rgba(168, 85, 247, 0.06);
  border: 1px solid rgba(168, 85, 247, 0.15);
  border-radius: 10px;
  padding: 12px 16px;
  margin: 12px 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.beacon {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--cyan);
}

.wormhole {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--violet);
}

.danger-box {
  background: rgba(244, 63, 94, 0.06);
  border: 1px solid rgba(244, 63, 94, 0.2);
  border-radius: 10px;
  padding: 14px 18px;
  margin: 16px 0;
}

.danger-box strong { color: var(--rose); }

