:root {
  --bg-base: #050505;
  --bg-surface: rgba(20, 20, 25, 0.6);
  --accent-cyan: #00f0ff;
  --accent-purple: #7000ff;
  --accent-red: #ff003c;
  --text-primary: #e2e8f0;
  --text-muted: #94a3b8;
  --border-glass: rgba(255, 255, 255, 0.1);
  --radius-sm: 4px;
  --radius-md: 8px;
}

* { box-sizing: border-box; }

body { 
  margin: 0; 
  padding: 0 1rem 2rem 1rem; 
  background-color: var(--bg-base); 
  color: var(--text-primary); 
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
}

/* GPU Offloading for Background */
body::before {
  content: '';
  position: fixed;
  top: 0; 
  left: 0; 
  width: 100vw; 
  height: 100vh;
  background-image: linear-gradient(135deg, #000000 0%, #050505 48%, #3c008d 100%);
  z-index: -1;
  pointer-events: none;
  will-change: transform; 
}

h1, h2, h3, h4, h5, h6 { font-family: 'Space Grotesk', sans-serif; margin-top: 0; font-weight: 700; }
h2 { font-size: 1.8rem; color: #fff; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 1.5rem; }

.container { max-width: 900px; margin: 0 auto; }
.hidden { display: none !important; }
.text-center { text-align: center; }

/* Navigation */
.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 1.5rem auto 3rem auto;
  max-width: 900px;
  padding: 1rem 2rem !important;
}

.brand {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  gap: 10px;
}

.nav-btn {
  width: auto;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

.nav-btn.active {
  background: rgba(0, 240, 255, 0.1);
  color: var(--accent-cyan);
  border: 1px solid var(--accent-cyan);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

/* Glassmorphism Panels */
.glass-panel {
  background: var(--bg-surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  margin-bottom: 2rem;
}

/* Buttons */
button {
  width: 100%; padding: 1rem;
  background: var(--text-primary); color: var(--bg-base);
  border: 1px solid transparent; border-radius: var(--radius-sm);
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1rem;
  text-transform: uppercase; letter-spacing: 1.5px;
  cursor: pointer; 
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

button:hover { 
  background: #fff; 
  color: var(--bg-base);
  transform: translateY(-2px); 
  box-shadow: 0 4px 20px rgba(112, 0, 255, 0.4); 
}

button.secondary {
  background: transparent; border: 1px solid var(--border-glass); color: var(--text-primary);
}

button.secondary:hover { 
  border-color: var(--accent-purple); 
  background: rgba(112, 0, 255, 0.1); 
  box-shadow: 0 0 15px rgba(112, 0, 255, 0.2); 
}

/* Typography Grids & Badges */
.terminal-text { font-family: 'JetBrains Mono', monospace; font-size: 0.85rem; color: var(--accent-cyan); }

.feature-grid { 
  display: grid; 
  grid-template-columns: 1fr; 
  gap: 1rem; 
}
@media(min-width: 768px) { 
  .feature-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); } 
}

.badge {
  display: inline-block; padding: 0.25rem 0.5rem; border-radius: 4px;
  font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; text-transform: uppercase;
  border: 1px solid var(--border-glass);
}
.badge.active { border-color: var(--accent-cyan); color: var(--accent-cyan); background: rgba(0,240,255,0.1); }

/* Footer & Legal Layout */
.global-footer {
  margin: 4rem auto 0 auto;
  max-width: 900px;
  padding: 2rem;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  border-bottom: none;
  background: rgba(10, 10, 12, 0.8);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 1.5rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--accent-cyan);
}

.footer-bottom {
  text-align: center;
}

.legal-text p {
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.legal-text strong {
  color: var(--text-primary);
}

/* Enhanced Modal Styling */
#registration-modal > .glass-panel {
  width: 90%;
  max-width: 550px; 
  padding: 3rem; 
  border-color: var(--accent-cyan);
  background: rgba(10, 10, 15, 0.75); 
  backdrop-filter: blur(15px); 
  -webkit-backdrop-filter: blur(15px);
  position: relative;
  box-shadow: 0 10px 40px rgba(0, 240, 255, 0.2); 
}

/* Modal Header Typography */
#registration-modal h3 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: #fff;
  letter-spacing: 1px;
}

#registration-modal .modal-sub-header {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: var(--accent-cyan);
  margin-bottom: 3rem; 
  letter-spacing: 0.5px;
}

/* Close Button Styling */
#registration-modal .modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: auto;
  padding: 8px 12px;
  background: transparent;
  color: var(--text-muted);
  font-family: 'Space Grotesk', sans-serif; 
  font-weight: bold;
  font-size: 1.3rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  z-index: 1010; 
}

#registration-modal .modal-close-btn:hover {
  border-color: rgba(112, 0, 255, 0.3); 
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 0 15px rgba(112, 0, 255, 0.4); 
}

/* Form Spacing & Layout */
#seat-request-form {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

#seat-request-form .form-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Input Fields & Textarea Styling */
#seat-request-form label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  display: block;
}

#seat-request-form input,
#seat-request-form textarea {
  width: 100%;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.08); 
  border: 1px solid rgba(255, 255, 255, 0.25); 
  border-radius: var(--radius-sm);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  line-height: 1.5;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

#seat-request-form input:hover,
#seat-request-form textarea:hover {
  border-color: rgba(0, 240, 255, 0.2);
}

#seat-request-form input:focus,
#seat-request-form textarea:focus {
  outline: none;
  border-color: var(--accent-cyan);
  background: rgba(255, 255, 255, 0.1); 
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.2); 
}

#seat-request-form .form-intent-wrapper {
  position: relative;
}

/* Submit Button Override */
#reg-submit-btn,
#registration-success-container button {
  width: auto;
  max-width: none;
  display: inline-block;
  padding: 1.25rem 2.5rem;
  background: rgba(0, 240, 255, 0.08); 
  border: 1px solid rgba(0, 240, 255, 0.3); 
  color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.1);
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

#reg-submit-btn:hover,
#registration-success-container button:hover {
  background: rgba(0, 240, 255, 0.15); 
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.3); 
}

#registration-success-container button {
  margin-top: 2rem;
  width: auto;
  padding: 1rem 2rem;
}

#registration-success-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-top: 1.5rem; 
}

#registration-success-container h3 {
  color: var(--accent-cyan);
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  letter-spacing: 1px;
}

#registration-success-container p {
  color: var(--text-primary);
  font-size: 1.1rem;
  line-height: 1.8;
  max-width: 400px; 
  text-align: center;
}

/* Vertical Timeline */
.timeline {
  position: relative;
  margin-top: 2rem;
  padding-left: 20px;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 26px; 
  width: 2px;
  background: var(--border-glass);
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
  padding: 2rem;
  margin-left: 2rem;
}

.timeline-marker {
  position: absolute;
  top: 2rem;
  left: -2.75rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  z-index: 10;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.cyan-marker {
  background: var(--accent-cyan);
  box-shadow: 0 0 15px var(--accent-cyan);
}

.purple-marker {
  background: var(--accent-purple);
  box-shadow: 0 0 15px var(--accent-purple);
}

.timeline-content p {
  margin-top: 0;
}

/* UI Transitions */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.view-section {
  animation: fadeIn 0.2s ease-out forwards;
}

/* Mobile Adjustments */
.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 1.8rem;
  padding: 0;
  width: auto;
}

.mobile-toggle:hover {
  background: transparent;
  box-shadow: none;
  color: var(--accent-cyan);
  transform: none;
}

@media (max-width: 768px) {
  .top-nav {
    flex-wrap: wrap;
    padding: 1rem 1.5rem !important;
  }
  
  .brand img {
    height: 60px !important; 
  }
  
  .mobile-toggle {
    display: block;
  }
  
  .nav-links {
    display: none; 
    width: 100%;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-glass);
    animation: fadeIn 0.2s ease-out forwards;
  }
  
  .nav-links.open {
    display: flex; 
  }
  
  .nav-btn {
    width: 100%;
  }
}

/* --- DUOTONE ENGINE (REVISED) --- */

.image-wrapper {
  position: relative;
  background-color: var(--bg-base);
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: crosshair; 
}

/* 1. The New Default (Your old hover state) */
.image-wrapper img {
  display: block;
  width: 100%;
  filter: grayscale(70%) contrast(1.1) brightness(1);
  transition: filter 0.4s ease-in-out;
}

.image-wrapper::after {
  content: '';
  position: absolute;
  top: 0; 
  left: 0; 
  width: 100%; 
  height: 100%;
  pointer-events: none; 
  mix-blend-mode: screen; 
  opacity: 0.5; /* Locks in the permanent tint */
  transition: opacity 0.4s ease-in-out;
}

/* Color Definitions */
.duotone-cyan::after { background-color: rgba(0, 240, 255, 0.35); }
.duotone-purple::after { background-color: rgba(112, 0, 255, 0.45); }

/* 2. The New Hover Reveal */
.image-wrapper:hover img { 
  /* Drops the grayscale and adds a slight brightness pop */
  filter: grayscale(0%) contrast(1.1) brightness(1.15); 
}

.image-wrapper:hover::after { 
  /* Fades the tint slightly to let the natural colors breathe */
  opacity: 0.2; 
}

/* Grayscale Engine */
.grayscale-portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(100%) contrast(1.15) brightness(0.9);
  transition: filter 0.3s ease;
}

.grayscale-portrait:hover {
  filter: grayscale(80%) contrast(1.1) brightness(1.1);
}

/* --- SMOOTH AVATAR BORDERS --- */

.smooth-avatar {
  /* This completely overrides any inline HTML borders you currently have */
  border: none !important; 
  border-radius: 50%; 
  
  /* Forces the browser to render a clean edge */
  outline: 1px solid transparent;
  transform: translateZ(0);
}

/* The Box-Shadow Rings */
.avatar-cyan { box-shadow: 0 0 0 1.5px var(--accent-cyan), 0 0 10px rgba(0, 240, 255, 0.15); }
.avatar-purple { box-shadow: 0 0 0 1.5px var(--accent-purple), 0 0 10px rgba(112, 0, 255, 0.15); }
.avatar-neutral { box-shadow: 0 0 0 1.5px var(--border-glass), 0 0 10px rgba(255, 255, 255, 0.05); }

/* --- PREMIER UI ADDITIONS --- */

/* Select Dropdown Styling */
#seat-request-form select {
  width: 100%;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.08); 
  border: 1px solid rgba(255, 255, 255, 0.25); 
  border-radius: var(--radius-sm);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%2394a3b8%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem top 50%;
  background-size: 0.65rem auto;
}

#seat-request-form select:focus {
  outline: none;
  border-color: var(--accent-cyan);
  background-color: rgba(255, 255, 255, 0.1); 
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.2); 
}

#seat-request-form select option {
  background-color: var(--bg-base);
  color: #fff;
}

/* Isolated Premium Price Badge */
.price-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1rem;
  color: #fff;
  background: rgba(112, 0, 255, 0.3);
  border: 1px solid var(--accent-purple);
  padding: 0.4rem 1rem;
  border-radius: 4px;
  box-shadow: 0 0 15px rgba(112, 0, 255, 0.25);
  letter-spacing: 1px;
}

/* Rerouting Cyber Spinner */
.cyber-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(0, 240, 255, 0.1);
  border-radius: 50%;
  border-top-color: var(--accent-cyan);
  margin: 0 auto;
  animation: spin 1s ease-in-out infinite;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}