/* ==========================================================================
   WatchTogether - Sleek Black & Gray Charcoal Cinema Design System
   ========================================================================== */

:root {
  /* Black & Gray Color Palette */
  --bg-base: #09090b;
  --bg-surface: #121316;
  --bg-card: rgba(20, 21, 26, 0.75);
  --bg-card-hover: rgba(28, 30, 38, 0.9);
  --bg-glass-input: rgba(255, 255, 255, 0.03);

  /* Primary Titanium / Graphite Accents */
  --primary: #27272a;
  --primary-hover: #3f3f46;
  --primary-light: #e4e4e7;
  --primary-glow: rgba(255, 255, 255, 0.12);

  /* Cool Gray & Subtle Slate Highlights */
  --slate-accent: #38bdf8;
  --slate-glow: rgba(56, 189, 248, 0.25);
  --emerald: #10b981;
  --emerald-glow: rgba(16, 185, 129, 0.3);

  --text-main: #fafafa;
  --text-muted: #a1a1aa;
  --text-subtle: #71717a;

  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glass-hover: rgba(255, 255, 255, 0.18);
  --border-accent: rgba(255, 255, 255, 0.16);

  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --shadow-card: 0 16px 40px -8px rgba(0, 0, 0, 0.65), 0 0 1px 1px rgba(255, 255, 255, 0.07);
  --shadow-glow: 0 0 30px rgba(255, 255, 255, 0.08);

  --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  color-scheme: dark;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-base);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Ambient Floating Smoky Gray Glow Elements (Black & Gray Theme) */
.glow-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  animation: floatOrb 22s ease-in-out infinite alternate;
}

.orb-primary {
  width: 580px;
  height: 580px;
  background: radial-gradient(circle, rgba(63, 63, 70, 0.45) 0%, transparent 70%);
  top: -160px;
  left: 15%;
}

.orb-secondary {
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, rgba(39, 39, 42, 0.6) 0%, transparent 70%);
  top: 38%;
  right: -180px;
  animation-duration: 25s;
  animation-delay: -6s;
}

.orb-tertiary {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(50, 55, 65, 0.4) 0%, transparent 70%);
  bottom: 5%;
  left: -120px;
  animation-duration: 20s;
  animation-delay: -10s;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(35px, 25px) scale(1.05); }
  100% { transform: translate(-25px, -15px) scale(0.95); }
}

.grid-overlay {
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: center center;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(circle at 50% 30%, black 45%, transparent 85%);
  -webkit-mask-image: radial-gradient(circle at 50% 30%, black 45%, transparent 85%);
}

/* Glassmorphism Generic Card */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: border-color var(--transition-normal), transform var(--transition-normal), box-shadow var(--transition-normal);
}

.glass-card:hover {
  border-color: var(--border-glass-hover);
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

/* Chrome / Titanium Metallic Gradients for Black & Gray Aesthetics */
.gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, #e4e4e7 45%, #a1a1aa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-accent {
  background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-emerald { color: var(--emerald) !important; }
.text-cyan { color: var(--slate-accent) !important; }
.text-violet { color: #d4d4d8 !important; }

/* Buttons & Interactive Elements */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  transition: all var(--transition-normal);
  user-select: none;
  outline: none;
}

.btn:focus-visible {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35);
}

.btn-primary {
  background: linear-gradient(135deg, #27272a 0%, #18181b 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #3f3f46 0%, #27272a 100%);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7), 0 0 20px rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-glass-hover);
  transform: translateY(-2px);
}

.btn-block {
  width: 100%;
}

/* ==========================================================================
   Header & Navbar (Clean, No Logo Icon, Pure Typography)
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(9, 9, 11, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
  transition: background var(--transition-normal), border-color var(--transition-normal);
}

.nav-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 1.05rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
}

.version-tag {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  color: #e4e4e7;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color var(--transition-fast);
  position: relative;
}

.nav-link:hover {
  color: var(--text-main);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #ffffff, #a1a1aa);
  transition: width var(--transition-fast);
}

.nav-link:hover::after {
  width: 100%;
}

.btn-nav-download {
  padding: 0.55rem 1.15rem;
  font-size: 0.88rem;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #27272a 0%, #18181b 100%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.btn-nav-download:hover {
  background: linear-gradient(135deg, #3f3f46 0%, #27272a 100%);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}

.btn-icon {
  width: 16px;
  height: 16px;
}

.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 5px;
}

.mobile-menu-toggle .bar {
  width: 24px;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  z-index: 1;
  padding: 8.5rem 1.5rem 5rem;
  max-width: 1240px;
  margin: 0 auto;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 3.5rem;
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.8rem;
  font-weight: 600;
  color: #d4d4d8;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(10px);
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--emerald);
  box-shadow: 0 0 10px var(--emerald);
  animation: pulseDot 2s infinite;
}

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

.hero-title {
  font-size: clamp(2.4rem, 4.2vw, 3.8rem);
  line-height: 1.12;
  margin-bottom: 1.4rem;
  font-weight: 800;
}

.hero-description {
  font-size: 1.12rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 2.2rem;
  max-width: 580px;
}

.hero-description strong {
  color: var(--text-main);
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.1rem;
  margin-bottom: 2.5rem;
}

.btn-hero-download {
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-md);
}

.btn-primary-content {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  z-index: 2;
}

.download-arrow {
  width: 24px;
  height: 24px;
  transition: transform var(--transition-fast);
}

.btn-primary:hover .download-arrow {
  transform: translateY(2px);
}

.btn-text-block {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.btn-main-label {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.2;
}

.btn-sub-label {
  font-size: 0.72rem;
  font-weight: 500;
  opacity: 0.85;
  color: #a1a1aa;
}

.btn-hero-secondary {
  padding: 0.85rem 1.4rem;
  font-size: 0.98rem;
}

.play-icon {
  width: 18px;
  height: 18px;
  color: #e4e4e7;
}

.hero-perks {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.perk-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.perk-item strong {
  color: var(--text-main);
}

.perk-divider {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-subtle);
}

/* Hero Visual Showcase */
.hero-visual-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-card-glow {
  position: absolute;
  inset: -15px;
  background: radial-gradient(circle at 50% 50%, rgba(63, 63, 70, 0.4), rgba(24, 24, 27, 0.2), transparent 70%);
  filter: blur(40px);
  border-radius: var(--radius-xl);
  z-index: 0;
  opacity: 0.65;
}

.hero-image-card {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-xl);
  overflow: visible;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 1px 1px rgba(255, 255, 255, 0.08);
  background: #14151a;
}

/* Cinema Player & Movie Clips Carousel Header */
.hero-cinema-card {
  background: #101116;
  padding: 0.85rem;
  width: 100%;
}

.hero-movie-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.movie-tabs-wrapper {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.movie-tabs-wrapper::-webkit-scrollbar {
  display: none;
}

.movie-tab {
  background: rgba(255, 255, 255, 0.04);
  color: #a1a1aa;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
  user-select: none;
}

.movie-tab:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.movie-tab.active {
  background: #27272a;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.08);
}

.auto-cycle-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  color: #a1a1aa;
  background: rgba(255, 255, 255, 0.04);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  user-select: none;
  transition: all var(--transition-fast);
}

.auto-cycle-badge:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.auto-cycle-badge.active {
  color: var(--emerald);
  border-color: rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.06);
}

.cycle-spinner {
  display: inline-block;
  font-size: 0.85rem;
  animation: spinSlow 6s linear infinite;
}

@keyframes spinSlow {
  100% { transform: rotate(360deg); }
}

/* Video Viewport */
.hero-video-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8);
}

.hero-video-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.hero-video-tag {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Navigation Arrows on Viewport */
.hero-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(14, 15, 20, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  opacity: 0.7;
}

.hero-nav-arrow:hover {
  opacity: 1;
  background: rgba(39, 39, 42, 0.95);
  transform: translateY(-50%) scale(1.1);
  border-color: rgba(255, 255, 255, 0.4);
}

.arrow-prev { left: 12px; }
.arrow-next { right: 12px; }

/* Sound Toggle Pill */
.hero-sound-toggle {
  position: absolute;
  bottom: 12px;
  right: 12px;
  z-index: 10;
  background: rgba(14, 15, 20, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.74rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.hero-sound-toggle:hover {
  background: rgba(39, 39, 42, 0.95);
  border-color: rgba(255, 255, 255, 0.4);
  transform: scale(1.05);
}

.hero-floating-reactions {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 8;
}

/* Floating interactive badges */
.floating-badge {
  position: absolute;
  padding: 0.7rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 3;
  pointer-events: none;
}

.badge-top-left {
  top: -24px;
  left: -20px;
}

.badge-top-right {
  top: 15px;
  right: -25px;
}

.badge-bottom {
  bottom: -22px;
  left: 20%;
}

.pulse-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 12px var(--emerald);
  animation: pulseIndicator 1.8s infinite;
}

@keyframes pulseIndicator {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.6; }
}

.badge-info {
  display: flex;
  flex-direction: column;
}

.badge-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.badge-subtitle {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.user-avatars {
  display: flex;
  align-items: center;
}

.avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 800;
  border: 2px solid #14151a;
  color: #fff;
}

.avatar-1 { background: #3f3f46; z-index: 2; }
.avatar-2 { background: #52525b; margin-left: -8px; z-index: 1; }

.reaction-bubble {
  font-size: 1.15rem;
  animation: bounceEmoji 2s infinite alternate ease-in-out;
}

.reaction-bubble:nth-child(2) { animation-delay: 0.4s; }
.reaction-bubble:nth-child(3) { animation-delay: 0.8s; }

@keyframes bounceEmoji {
  0% { transform: translateY(0); }
  100% { transform: translateY(-4px); }
}

.animate-float-1 { animation: badgeFloat1 7s ease-in-out infinite alternate; }
.animate-float-2 { animation: badgeFloat2 8.5s ease-in-out infinite alternate; }
.animate-float-3 { animation: badgeFloat3 6.5s ease-in-out infinite alternate; }

@keyframes badgeFloat1 {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(-8px) rotate(-1deg); }
}
@keyframes badgeFloat2 {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(-10px) rotate(1deg); }
}
@keyframes badgeFloat3 {
  0% { transform: translateY(0); }
  100% { transform: translateY(-6px); }
}

/* ==========================================================================
   Section Common Layouts
   ========================================================================== */
.section {
  position: relative;
  z-index: 1;
  padding: 6rem 1.5rem;
}

.section-container {
  max-width: 1240px;
  margin: 0 auto;
}

.section-header {
  margin-bottom: 3.5rem;
}

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

.section-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.8rem;
  font-weight: 700;
  color: #e4e4e7;
  margin-bottom: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.section-title {
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ==========================================================================
   Simulator Section (Black & Gray Dark Cinema Theme)
   ========================================================================== */
.simulator-wrapper {
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(16, 17, 22, 0.88);
  box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.75), 0 0 30px rgba(255, 255, 255, 0.04);
}

/* ==========================================================================
   Simulator Section (Advanced Cinema & Split-Screen Sync Engine)
   ========================================================================== */
.simulator-wrapper {
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(16, 17, 22, 0.88);
  box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.75), 0 0 30px rgba(255, 255, 255, 0.04);
}

.simulator-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--border-glass);
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.top-bar-left, .top-bar-right {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.room-status-badge {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  transition: all var(--transition-fast);
}

.room-status-badge:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.room-status-badge strong {
  color: #fff;
  font-family: monospace;
  font-size: 1rem;
  letter-spacing: 0.05em;
}

.edit-room-hint {
  font-size: 0.75rem;
  color: var(--text-subtle);
}

.status-dot-live {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: var(--emerald);
  box-shadow: 0 0 10px var(--emerald);
  animation: pulseDot 2s infinite;
}

/* View Mode Switcher (Cinema vs Split-Screen) */
.view-mode-toggle {
  display: flex;
  align-items: center;
  gap: 3px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--border-glass);
  padding: 3px;
  border-radius: var(--radius-sm);
}

.btn-mode {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-mode:hover {
  color: #fff;
}

.btn-mode.active {
  background: #27272a;
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* Network Lag Drift Simulator Button */
.btn-drift-test {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fbbf24;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.38rem 0.85rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-drift-test:hover {
  background: rgba(245, 158, 11, 0.22);
  transform: translateY(-1px);
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.25);
}

.drift-bolt {
  font-size: 0.9rem;
  animation: flickerBolt 2s infinite;
}

@keyframes flickerBolt {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.9); }
}

.sync-ping-badge {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  color: var(--emerald);
  background: rgba(16, 185, 129, 0.08);
  padding: 0.38rem 0.85rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(16, 185, 129, 0.22);
}

.sync-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 8px var(--emerald);
}

/* Movie Scene Selector Bar */
.sim-scene-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 0.6rem 0.85rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.scene-bar-label {
  font-size: 0.8rem;
  color: var(--text-subtle);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.sim-scene-pills {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  overflow-x: auto;
  scrollbar-width: none;
  flex: 1;
}

.sim-scene-pills::-webkit-scrollbar {
  display: none;
}

.btn-scene-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  padding: 0.35rem 0.75rem;
  font-size: 0.76rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.btn-scene-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.btn-scene-pill.active {
  background: #27272a;
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.08);
}

/* Simulator Main Stage */
.simulator-stage {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 1.5rem;
}

/* Simulator Screen */
.sim-screen-container {
  display: flex;
  flex-direction: column;
  background: #0d0e12;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
  overflow: hidden;
}

/* Viewports Wrapper (Cinema vs Split-Screen) */
.sim-viewports-wrapper {
  position: relative;
  width: 100%;
}

.sim-viewports-wrapper.mode-cinema {
  display: block;
}

.sim-viewports-wrapper.mode-cinema .viewport-friend {
  display: none !important;
}

.sim-viewports-wrapper.mode-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  background: #090a0e;
  padding: 0.5rem;
}

.sim-viewport-box {
  position: relative;
  background: #050608;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.viewport-user-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.stream-quality-tag, .friend-ping-tag {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.friend-ping-tag {
  color: #38bdf8;
}

.sync-lockstep-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  z-index: 10;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: var(--emerald);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  backdrop-filter: blur(8px);
}

.user-chip {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  backdrop-filter: blur(8px);
}

.user-you {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.user-friend {
  background: rgba(56, 189, 248, 0.18);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.screen-time-display {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: monospace;
}

.sim-screen-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sim-media-frame, .sim-media-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  object-fit: cover;
  display: block;
}

.sim-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.sim-overlay-info {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  pointer-events: none;
}

.video-title-tag {
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Latency Spike Reconciler Alert */
.sim-drift-alert {
  position: absolute;
  top: 45px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 25;
  background: rgba(220, 38, 38, 0.92);
  backdrop-filter: blur(10px);
  color: #fff;
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(220, 38, 38, 0.5);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  animation: bounceAlert 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

@keyframes bounceAlert {
  0% { transform: translate(-50%, -15px); opacity: 0; }
  100% { transform: translate(-50%, 0); opacity: 1; }
}

.sim-drift-alert.alert-success {
  background: rgba(16, 185, 129, 0.95);
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.5);
}

.text-amber {
  color: #f59e0b !important;
}

/* Floating Reactions on Canvas */
.reactions-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 10;
}

.center-play-indicator {
  position: absolute;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity var(--transition-fast), transform var(--transition-fast);
  z-index: 6;
}

.center-play-indicator.show {
  opacity: 1;
  transform: scale(1);
}

.center-play-indicator svg {
  width: 28px;
  height: 28px;
}

/* Controls Bar */
.sim-controls {
  padding: 0.75rem 1rem 0.9rem;
  background: rgba(18, 19, 24, 0.96);
  border-top: 1px solid var(--border-glass);
}

.progress-bar-wrapper {
  position: relative;
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  cursor: pointer;
  margin-bottom: 0.85rem;
  transition: height var(--transition-fast);
}

.progress-bar-wrapper:hover {
  height: 9px;
}

.progress-bar-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 31%;
  background: linear-gradient(90deg, #d4d4d8, #ffffff);
  border-radius: var(--radius-full);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.progress-thumb {
  position: absolute;
  top: 50%;
  left: 31%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.progress-bar-wrapper:hover .progress-thumb {
  opacity: 1;
}

.controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.controls-left, .controls-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.hide {
  display: none !important;
}

.control-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: #fff;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: all var(--transition-fast);
  padding: 0;
  user-select: none;
}

.control-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
  transform: translateY(-1px);
}

.control-btn:active {
  transform: translateY(0);
}

.control-btn svg {
  display: block;
}

.control-btn .skip-svg {
  width: 22px;
  height: 22px;
  color: #e4e4e7;
}

.control-btn:hover .skip-svg {
  color: #fff;
}

.play-pause-btn {
  background: #27272a;
  border-color: rgba(255, 255, 255, 0.35);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
}

.play-pause-btn:hover {
  background: #3f3f46;
  border-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.06);
}

.play-pause-btn svg {
  width: 18px;
  height: 18px;
}

/* Speed Selector Chips */
.speed-selector {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.speed-label {
  font-size: 0.7rem;
  font-weight: 600;
  margin-right: 2px;
}

.btn-speed {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-speed:hover {
  color: #fff;
}

.btn-speed.active {
  background: #27272a;
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.controls-reactions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.btn-reaction {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  font-size: 1.15rem;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-fast), background var(--transition-fast);
}

.btn-reaction:hover {
  transform: scale(1.2);
  background: rgba(255, 255, 255, 0.15);
}

/* Simulator Sidebar */
.sim-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-glass);
}

.sidebar-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
}

.sidebar-badge {
  font-size: 0.7rem;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  color: #e4e4e7;
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-weight: 600;
}

.participant-cards {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.participant-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.8rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
}

.participant-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #3f3f46;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.75rem;
  color: #fff;
}

.friend-avatar {
  background: #0284c7;
}

.sarah-avatar {
  background: #d97706;
}

.participant-details {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.participant-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.tag-host {
  font-size: 0.62rem;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.tag-friend {
  font-size: 0.62rem;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
}

.participant-status {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.ping-tag {
  font-size: 0.68rem;
  font-family: monospace;
  color: var(--emerald);
  font-weight: 600;
}

/* Event Log Feed */
.sync-log-box {
  flex: 1;
  background: rgba(0, 0, 0, 0.4);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-glass);
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 140px;
  max-height: 180px;
  overflow-y: auto;
  font-size: 0.78rem;
}

.log-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  animation: fadeInLog 0.3s ease-out;
}

.log-time {
  color: var(--text-subtle);
  font-family: monospace;
  font-size: 0.7rem;
}

.log-text {
  color: var(--text-muted);
  line-height: 1.4;
}

.log-text strong {
  color: var(--text-main);
}

/* Interactive Chat Box */
.sim-chat-box {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  background: rgba(0, 0, 0, 0.3);
  padding: 0.6rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-glass);
}

.quick-chat-chips {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.quick-chat-chips::-webkit-scrollbar {
  display: none;
}

.btn-chat-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: #a1a1aa;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.btn-chat-chip:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.chat-input-form {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.chat-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.75rem;
  font-size: 0.78rem;
  color: #fff;
  outline: none;
  font-family: inherit;
  transition: border-color var(--transition-fast);
}

.chat-input:focus {
  border-color: rgba(255, 255, 255, 0.35);
}

.chat-send-btn {
  background: #27272a;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  border-radius: var(--radius-sm);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.chat-send-btn:hover {
  background: #3f3f46;
  transform: scale(1.05);
}

/* Network Health Metrics Card */
.sim-metrics-card {
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.5rem;
  text-align: center;
}

.metric-col {
  display: flex;
  flex-direction: column;
}

.metric-val {
  font-size: 0.85rem;
  font-weight: 800;
  font-family: monospace;
}

.metric-lbl {
  font-size: 0.62rem;
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.metric-divider {
  width: 1px;
  height: 24px;
  background: var(--border-glass);
}

/* ==========================================================================
   How It Works (3 Steps)
   ========================================================================== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  position: relative;
}

.step-card {
  padding: 2.2rem 1.8rem;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  overflow: hidden;
}

.step-number-glow {
  position: absolute;
  top: -15px;
  right: 15px;
  font-family: var(--font-heading);
  font-size: 5.5rem;
  font-weight: 900;
  line-height: 1;
  color: rgba(255, 255, 255, 0.02);
  pointer-events: none;
  user-select: none;
  transition: color var(--transition-normal);
}

.step-card:hover .step-number-glow {
  color: rgba(255, 255, 255, 0.06);
}

.step-icon-wrapper {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: #fff;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
  transition: transform var(--transition-normal);
}

.step-card:hover .step-icon-wrapper {
  transform: scale(1.1);
  background: #27272a;
  border-color: rgba(255, 255, 255, 0.35);
}

.step-icon-wrapper svg {
  width: 24px;
  height: 24px;
}

.step-card-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.step-card-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.step-card-desc code {
  background: rgba(255, 255, 255, 0.08);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.85em;
  color: #fff;
}

.step-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  margin-top: auto;
}

/* ==========================================================================
   Room Generator Tool
   ========================================================================== */
.room-gen-card {
  padding: 3rem;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
  background: linear-gradient(135deg, rgba(24, 25, 32, 0.9) 0%, rgba(14, 15, 18, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75), 0 0 35px rgba(255, 255, 255, 0.03);
}

.room-gen-title {
  font-size: clamp(1.8rem, 2.5vw, 2.2rem);
  margin-bottom: 0.8rem;
}

.room-gen-desc {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.8rem;
}

.room-code-display-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.4rem;
  flex-wrap: wrap;
}

.room-code-field {
  flex: 1;
  min-width: 200px;
  padding: 0.85rem 1.4rem;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-md);
  font-family: monospace;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #fff;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.6);
  text-align: center;
  user-select: all;
}

.btn-copy {
  padding: 0.85rem 1.4rem;
  background: #27272a;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.btn-copy:hover {
  background: #3f3f46;
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
}

.copy-icon {
  width: 18px;
  height: 18px;
}

.btn-refresh {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.btn-refresh:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  transform: rotate(45deg);
}

.btn-refresh svg {
  width: 20px;
  height: 20px;
}

.share-actions-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-share-wa, .btn-share-discord {
  padding: 0.65rem 1.15rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border-glass);
  transition: all var(--transition-fast);
}

.btn-share-wa {
  background: rgba(37, 211, 102, 0.1);
  border-color: rgba(37, 211, 102, 0.25);
  color: #25d366;
}

.btn-share-wa:hover {
  background: rgba(37, 211, 102, 0.2);
  transform: translateY(-2px);
}

.btn-share-discord {
  background: rgba(88, 101, 242, 0.1);
  border-color: rgba(88, 101, 242, 0.25);
  color: #818cf8;
}

.btn-share-discord:hover {
  background: rgba(88, 101, 242, 0.2);
  transform: translateY(-2px);
}

.room-gen-tip {
  padding: 1.8rem;
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-glass);
}

.tip-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #e4e4e7;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.room-gen-tip p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   Features Grid
   ========================================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.feature-card {
  padding: 2.2rem 1.8rem;
  transition: transform var(--transition-normal), border-color var(--transition-normal);
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.25);
}

.feature-icon-box {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
}

.feature-icon-box svg {
  width: 24px;
  height: 24px;
}

.icon-violet { background: rgba(255, 255, 255, 0.08); color: #fff; }
.icon-cyan { background: rgba(56, 189, 248, 0.12); color: #38bdf8; }
.icon-pink { background: rgba(255, 255, 255, 0.08); color: #e4e4e7; }
.icon-emerald { background: rgba(16, 185, 129, 0.12); color: #10b981; }
.icon-amber { background: rgba(245, 158, 11, 0.12); color: #f59e0b; }
.icon-blue { background: rgba(255, 255, 255, 0.08); color: #fff; }

.feature-title {
  font-size: 1.2rem;
  margin-bottom: 0.65rem;
}

.feature-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   Downloads Section
   ========================================================================== */
.downloads-grid {
  display: flex;
  justify-content: center;
  max-width: 600px;
  margin: 0 auto 3rem auto;
  width: 100%;
}

.downloads-grid .download-card {
  width: 100%;
}

.download-card {
  padding: 2.5rem;
  position: relative;
  display: flex;
  flex-direction: column;
}

.featured-download {
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75), 0 0 30px rgba(255, 255, 255, 0.04);
}

.featured-ribbon {
  position: absolute;
  top: 18px;
  right: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
}

.download-icon-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.os-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
}

.os-icon svg {
  width: 28px;
  height: 28px;
}

.download-title {
  font-size: 1.35rem;
  margin-bottom: 0.2rem;
}

.download-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.download-specs {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.spec-check {
  color: var(--emerald);
  font-weight: 800;
  margin-right: 0.5rem;
}

.download-specs strong {
  color: var(--text-main);
}

.btn-download-action {
  padding: 0.9rem;
  font-size: 1rem;
  margin-top: auto;
}

/* Custom Executable Dropzone (Developer / Owner upload tool) */
.developer-box {
  padding: 2rem;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.02);
}

.dev-box-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.dev-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  color: #e4e4e7;
}

.dev-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
}

.dev-box-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.dev-box-desc code {
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

.dropzone-container {
  border: 2px dashed rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  background: rgba(0, 0, 0, 0.3);
}

.dropzone-container.drag-over {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.hidden-file-input { display: none; }

.dropzone-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-muted);
}

.dropzone-inner svg {
  color: #e4e4e7;
}

.dropzone-text {
  font-size: 0.92rem;
}

.btn-link {
  background: none;
  border: none;
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  font-size: inherit;
}

.dropzone-status {
  font-size: 0.8rem;
  color: var(--emerald);
  font-family: monospace;
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.faq-accordion {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-fast);
}

.faq-item[open] {
  border-color: rgba(255, 255, 255, 0.2);
}

.faq-question {
  padding: 1.3rem 1.6rem;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
  list-style: none;
}

.faq-question::-webkit-details-marker { display: none; }

.faq-chevron {
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg);
  transition: transform var(--transition-fast);
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq-item[open] .faq-chevron {
  transform: rotate(-135deg);
  border-color: #fff;
}

.faq-answer {
  padding: 0 1.6rem 1.3rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ==========================================================================
   Modern Download Modal Dialog (<dialog closedby="any">)
   ========================================================================== */
.download-modal {
  position: fixed;
  margin: auto;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-xl);
  background: rgba(18, 19, 24, 0.96);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.85);
  max-width: 480px;
  width: 90%;
  color: var(--text-main);
  outline: none;
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.25s ease-out, transform 0.25s ease-out, overlay 0.25s allow-discrete, display 0.25s allow-discrete;
}

.download-modal[open] {
  opacity: 1;
  transform: scale(1);
}

@starting-style {
  .download-modal[open] {
    opacity: 0;
    transform: scale(0.92);
  }
}

.download-modal::backdrop {
  background-color: rgba(5, 5, 7, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  transition: opacity 0.25s ease-out, overlay 0.25s allow-discrete, display 0.25s allow-discrete;
}

.download-modal[open]::backdrop {
  opacity: 1;
}

@starting-style {
  .download-modal[open]::backdrop {
    opacity: 0;
  }
}

.modal-inner {
  padding: 2.2rem;
  text-align: center;
  position: relative;
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: none;
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.modal-icon-wrapper {
  position: relative;
  width: 64px;
  height: 64px;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-icon-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px dashed var(--emerald);
  animation: rotateRing 8s linear infinite;
}

@keyframes rotateRing {
  100% { transform: rotate(360deg); }
}

.modal-success-check {
  width: 32px;
  height: 32px;
  color: var(--emerald);
  animation: checkPop 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes checkPop {
  0% { transform: scale(0); opacity: 0; }
  80% { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}

.modal-title {
  font-size: 1.5rem;
  margin-bottom: 0.45rem;
}

.modal-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.modal-desc strong {
  color: #fff;
}

.download-progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 1.8rem;
}

.download-progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #52525b, var(--emerald));
  border-radius: var(--radius-full);
  animation: fillProgress 1.6s ease-out forwards;
}

@keyframes fillProgress {
  0% { width: 0%; }
  60% { width: 75%; }
  100% { width: 100%; }
}

.quick-launch-steps {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-align: left;
  background: rgba(0, 0, 0, 0.35);
  padding: 1.1rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.8rem;
  border: 1px solid var(--border-glass);
}

.launch-step {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
}

.step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #3f3f46;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-txt {
  color: var(--text-main);
}

/* ==========================================================================
   Toast Notifications
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  z-index: 1000;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  padding: 0.85rem 1.25rem;
  background: rgba(24, 25, 30, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  max-width: 360px;
}

@keyframes toastSlideIn {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

.toast-fade-out {
  animation: toastSlideOut 0.25s ease-in forwards;
}

@keyframes toastSlideOut {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(30px); }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border-glass);
  background: rgba(7, 7, 9, 0.9);
  padding: 4.5rem 1.5rem 2rem;
}

.footer-container {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.footer-brand-name {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 0.92rem;
  max-width: 360px;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.footer-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--emerald);
  background: rgba(16, 185, 129, 0.08);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-pulse-green {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 8px var(--emerald);
}

.footer-heading {
  font-size: 0.95rem;
  color: #fff;
  margin-bottom: 1.2rem;
  letter-spacing: 0.02em;
}

.footer-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color var(--transition-fast);
}

.footer-nav a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1.8rem;
}

.footer-bottom-container {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--text-subtle);
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta-group, .hero-perks {
    justify-content: center;
  }

  .simulator-stage {
    grid-template-columns: 1fr;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .room-gen-card {
    grid-template-columns: 1fr;
    padding: 2rem;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .downloads-grid {
    grid-template-columns: 1fr;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .floating-badge {
    display: none;
  }
}
