*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red: #d81f1f;
  --red-bright: #e83535;
  --bg-dark: #0a0a0a;
  --bg-light: #ffffff;
  --text-dark: #111;
  --text-light: #f0f0f0;
  --muted: #888;
  --border: #e0e0e0;
}

body {
  font-family: 'Manrope', sans-serif;
  background: var(--bg-light);
  color: var(--text-dark);
  overflow-x: hidden;
}

/* ============================================================
   SHARED NAV (light mode)
   ============================================================ */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 68px;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.logo {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: #111;
  text-decoration: none;
  cursor: pointer;
}
.logo span { color: var(--red); }
.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-links a {
  color: #555;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s;
}
.nav-links a:hover { color: #111; }
.nav-links a.active-link { color: #111; font-weight: 700; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.btn-icon {
  background: none; border: none; cursor: pointer; color: #555;
  font-size: 18px; width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
}
.btn-icon:hover { background: #f0f0f0; }
.btn-outline {
  background: transparent;
  border: 1.5px solid var(--red);
  color: var(--red);
  padding: 9px 20px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
}
.btn-outline:hover { background: var(--red); color: #fff; }
.btn-solid {
  background: var(--red);
  border: none;
  color: #fff;
  padding: 9px 24px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
  text-decoration: none;
}
.btn-solid:hover { background: var(--red-bright); }

/* ============================================================
   HOME PAGE — always dark, new design
   ============================================================ */
#home {
  background: #0a0a0a;
  min-height: 100vh;
}

/* Home nav — transparent, layout only; colors handled per theme */
#home nav {
  background: transparent;
  border-bottom: none;
  height: 72px;
}

.hero {
  display: flex;
  align-items: center;
  min-height: calc(100vh - 72px);
  padding: 0 48px;
  position: relative;
  overflow: hidden;
}

.bg-glow-left {
  position: absolute;
  left: -200px; top: 50%;
  transform: translateY(-50%);
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(180,20,20,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.bg-glow-right {
  position: absolute;
  right: -100px; top: 30%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(180,10,10,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  flex: 0 0 55%;
  z-index: 2;
  animation: fadeInLeft 0.8s ease both;
}
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

.hero-title {
  font-size: clamp(48px, 6vw, 82px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -2px;
  color: #111;
  margin-bottom: 28px;
}

.hero-subtitle {
  font-size: 16px;
  color: #555;
  line-height: 1.7;
  max-width: 420px;
  margin-bottom: 44px;
  font-weight: 400;
}

.hero-cta { display: flex; gap: 16px; align-items: center; }

.btn-cta-primary {
  background: var(--red);
  border: none;
  color: #fff;
  padding: 16px 32px;
  border-radius: 100px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  display: inline-flex; align-items: center;
  transition: background 0.2s, transform 0.15s;
}
.btn-cta-primary:hover { background: var(--red-bright); transform: scale(1.03); }

.btn-cta-secondary {
  background: transparent;
  border: 1.5px solid #aaa;
  color: #333;
  padding: 16px 32px;
  border-radius: 100px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  display: inline-flex; align-items: center;
  transition: border-color 0.2s, color 0.2s;
}
.btn-cta-secondary:hover { border-color: #555; color: #000; }

.hero-visual {
  flex: 0 0 45%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  animation: fadeInRight 0.9s ease 0.1s both;
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

.logo-3d-wrapper {
  position: relative;
  width: 460px;
  height: 460px;
}
.logo-3d-wrapper::before {
  content: '';
  position: absolute;
  inset: -20px -60px -20px -20px;
  background: linear-gradient(135deg, #1a0a0a 0%, #120808 40%, #0d0303 100%);
  border-radius: 16px;
  z-index: -1;
}

.logo-3d-cube {
  width: 320px;
  height: 320px;
  margin: 70px auto 0;
  position: relative;
  animation: floatCube 4s ease-in-out infinite;
}
@keyframes floatCube {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-14px) rotate(-2deg); }
}

.cube-face {
  width: 100%;
  height: 100%;
  border-radius: 48px;
  background: linear-gradient(135deg, #1e0b0b 0%, #2a0e0e 50%, #1a0808 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow:
    0 0 80px rgba(220,20,20,0.35),
    0 0 40px rgba(220,20,20,0.2),
    inset 0 1px 0 rgba(255,255,255,0.05),
    0 40px 80px rgba(0,0,0,0.8);
  border: 1px solid rgba(200,30,30,0.2);
  overflow: hidden;
}
.cube-face::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 25%, rgba(255,60,60,0.15) 0%, transparent 60%);
  border-radius: inherit;
}
.cube-face::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 50%;
  background: linear-gradient(to bottom, rgba(255,255,255,0.04), transparent);
  border-radius: 48px 48px 0 0;
}

.cube-letter {
  font-size: 180px;
  font-weight: 900;
  color: transparent;
  background: radial-gradient(ellipse at 40% 35%, #ff8080 0%, #e02020 40%, #a00000 100%);
  -webkit-background-clip: text;
  background-clip: text;
  line-height: 1;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0 30px rgba(220,30,30,0.9)) drop-shadow(0 0 60px rgba(220,30,30,0.5));
}

.cube-glow {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 4px;
  background: var(--red);
  filter: blur(12px);
  opacity: 0.7;
  animation: glowPulse 4s ease-in-out infinite;
}
@keyframes glowPulse {
  0%, 100% { opacity: 0.5; width: 160px; }
  50% { opacity: 0.9; width: 220px; }
}

.arrow-indicator {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 60px;
  background: linear-gradient(to bottom, var(--red), transparent);
}

.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.4;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #888;
}
.scroll-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  animation: bounceDot 1.5s ease-in-out infinite;
}
@keyframes bounceDot {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(6px); opacity: 0.3; }
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s cubic-bezier(0.22,1,0.36,1), transform 0.6s cubic-bezier(0.22,1,0.36,1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-32px);
  transition: opacity 0.6s cubic-bezier(0.22,1,0.36,1), transform 0.6s cubic-bezier(0.22,1,0.36,1);
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right {
  opacity: 0;
  transform: translateX(32px);
  transition: opacity 0.6s cubic-bezier(0.22,1,0.36,1), transform 0.6s cubic-bezier(0.22,1,0.36,1);
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }
.reveal-delay-5 { transition-delay: 0.40s; }
.reveal-delay-6 { transition-delay: 0.48s; }

/* ============================================================
   HERO PARTICLES
   ============================================================ */
.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}
.particle {
  position: absolute;
  border-radius: 50%;
  background: var(--red);
  opacity: 0;
  animation: particleDrift linear infinite;
}
@keyframes particleDrift {
  0%   { opacity: 0; transform: translateY(0) scale(0.5); }
  10%  { opacity: 0.5; }
  90%  { opacity: 0.2; }
  100% { opacity: 0; transform: translateY(-120px) scale(1.2); }
}

/* ============================================================
   NAV LINK UNDERLINE SLIDE
   ============================================================ */
.nav-links a {
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 2px;
  background: var(--red);
  border-radius: 2px;
  transition: width 0.25s cubic-bezier(0.22,1,0.36,1);
}
.nav-links a:hover::after,
.nav-links a.active-link::after { width: 100%; }

/* ============================================================
   FEATURE CARD ENHANCEMENTS
   ============================================================ */
.feature-card {
  padding: 32px;
  border-radius: 16px;
  border: 1.5px solid #e0e0e0;
  background: #fff;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}
.feature-card:hover {
  border-color: rgba(220,30,30,0.4);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5), 0 0 0 1px rgba(220,30,30,0.08);
  transform: translateY(-6px);
}
.feature-icon {
  width: 32px;
  height: 32px;
  margin-bottom: 16px;
  color: var(--red);
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1), color 0.2s;
}
.feature-card:hover .feature-icon {
  transform: scale(1.22) rotate(-8deg);
  color: #ff4444;
}

/* ============================================================
   PLAN CARD HOVER LIFT
   ============================================================ */
.plan {
  padding: 36px 32px;
  transition: transform 0.25s cubic-bezier(0.22,1,0.36,1), box-shadow 0.25s;
}
.plan:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.25);
}
.plan.featured:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

/* ============================================================
   DOWNLOAD BUTTON PULSE
   ============================================================ */
.btn-download-win {
  background: var(--red);
  border: none;
  color: #fff;
  padding: 16px 32px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  animation: downloadPulse 3s ease-in-out infinite;
}
.btn-download-win:hover {
  background: var(--red-bright);
  transform: scale(1.05);
  box-shadow: 0 0 28px rgba(220,30,30,0.5);
  animation: none;
}
@keyframes downloadPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(220,30,30,0.4); }
  50% { box-shadow: 0 0 0 10px rgba(220,30,30,0); }
}

/* ============================================================
   HERO TITLE WORD REVEAL
   ============================================================ */
.hero-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  animation: wordReveal 0.6s cubic-bezier(0.22,1,0.36,1) forwards;
}
@keyframes wordReveal {
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   SECTION HEADERS FADE
   ============================================================ */
.features-section h2,
.pricing-header h2,
.download-section h2 {
  transition: opacity 0.6s, transform 0.6s;
}

/* glow blob parallax (driven by JS) */
.bg-glow-left, .bg-glow-right {
  transition: transform 0.1s linear;
}

   ============================================================ */
#pricing { background: #fff; min-height: 100vh; }

.pricing-section {
  padding: 80px 48px 0;
  background: inherit;
}

.pricing-header {
  text-align: center;
  padding: 0 0 60px;
}
.pricing-header h1,
.pricing-header h2 {
  font-size: 40px;
  font-weight: 800;
  color: #111;
  margin-bottom: 12px;
}
.pricing-header p { color: #777; font-size: 16px; }

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 48px 80px;
  align-items: start;
}

.plan.featured {
  background: linear-gradient(160deg, #e8e8e8 0%, #c0c0c0 60%, #a8a8a8 100%);
  border-radius: 20px;
  border: 1.5px solid rgba(220,30,30,0.3);
  position: relative;
  margin-top: -16px;
  padding-top: 52px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.12);
}

.popular-badge {
  position: absolute;
  top: 20px; right: 20px;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 5px 12px;
  border-radius: 100px;
}

.plan-name {
  font-size: 22px;
  font-weight: 800;
  color: #111;
  margin-bottom: 6px;
}
.plan-desc {
  font-size: 14px;
  color: #888;
  margin-bottom: 24px;
}
.plan-price {
  display: flex;
  align-items: baseline;
  gap: 2px;
  margin-bottom: 28px;
}
.plan-price .amount {
  font-size: 52px;
  font-weight: 900;
  color: #111;
  line-height: 1;
}
.plan-price .period {
  font-size: 16px;
  color: #999;
  font-weight: 500;
}
.plan-features { list-style: none; margin-bottom: 36px; }
.plan-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #333;
  padding: 7px 0;
}
.plan-features li.muted { color: #aaa; }
.plan-features li::before {
  content: '✓';
  color: var(--red);
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}
.plan-features li.muted::before { color: #ccc; }

.btn-plan {
  display: block;
  width: 100%;
  padding: 14px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
}
.btn-plan-outline {
  background: transparent;
  border: 1.5px solid #bbb;
  color: #333;
}
.btn-plan-outline:hover { border-color: #666; }
.btn-plan-filled {
  background: var(--red);
  border: none;
  color: #fff;
}
.btn-plan-filled:hover { background: var(--red-bright); }

/* ============================================================
   DOWNLOAD SECTION
   ============================================================ */
.download-section {
  background: linear-gradient(to bottom, #fff 0%, #f0f0f0 40%, #1a0808 100%);
  padding: 100px 48px;
  text-align: center;
}
.download-section h2 {
  font-size: 40px;
  font-weight: 800;
  color: #111;
  margin-bottom: 16px;
}
.download-section p {
  color: #666;
  font-size: 16px;
  margin-bottom: 40px;
}
.download-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-download-win {
  background: var(--red);
  border: none;
  color: #fff;
  padding: 16px 32px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
  transition: background 0.2s;
}
.btn-download-mac {
  background: transparent;
  border: 1.5px solid #bbb;
  color: #333;
  padding: 16px 32px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
  transition: border-color 0.2s;
}
.btn-download-mac:hover { border-color: #666; }
.download-version { font-size: 12px; color: #aaa; margin-top: 20px; }

/* ============================================================
   REGISTER PAGE — always dark, separated
   ============================================================ */
#register {
  background: #0a0a0a !important;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}
.register-card {
  background: #141414;
  border-radius: 20px;
  padding: 48px 48px 52px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.8);
  border: 1px solid #222;
}
.register-logo {
  text-align: center;
  font-size: 20px;
  font-weight: 900;
  color: #f0f0f0;
  margin-bottom: 28px;
  letter-spacing: -0.5px;
  text-decoration: none;
  display: block;
}
.register-logo span { color: var(--red); }
.register-card h1 {
  font-size: 28px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 8px;
  color: #f0f0f0;
}
.register-card .subtitle {
  text-align: center;
  color: #666;
  font-size: 14px;
  margin-bottom: 36px;
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #888;
  margin-bottom: 8px;
}
.form-group input {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid #2a2a2a;
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  color: #f0f0f0;
  background: #1a1a1a;
  transition: border-color 0.2s;
  outline: none;
}
.form-group input:focus { border-color: var(--red); }
.form-group input::placeholder { color: #555; }
.btn-register {
  width: 100%;
  padding: 16px;
  background: var(--red);
  border: none;
  color: #fff;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.2s;
}
.btn-register:hover { background: var(--red-bright); }
.register-footer {
  text-align: center;
  font-size: 13px;
  color: #666;
  margin-top: 20px;
}
.register-footer a { color: var(--red); text-decoration: none; font-weight: 600; cursor: pointer; }

/* ============================================================
   LOGIN PAGE — always dark (mirrors register)
   ============================================================ */
#login {
  background: #0a0a0a !important;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

/* ============================================================
   WATCH ROOM PAGE — always dark, separated
   ============================================================ */
#room {
  background: #0d0d0d;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.room-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 52px;
  background: #0d0d0d;
  flex-shrink: 0;
}
.room-logo { font-size: 18px; font-weight: 900; color: #fff; text-decoration: none; }
.room-logo span { color: var(--red); }
.room-nav-left { display: flex; align-items: center; gap: 16px; }
.room-nav-back { color: #555; font-size: 13px; font-weight: 600; text-decoration: none; transition: color 0.2s; }
.room-nav-back:hover { color: #aaa; }
.btn-watching {
  background: #222;
  border: 1px solid #333;
  color: #ccc;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}

.room-body {
  display: flex;
  flex: 1;
  overflow: hidden;
}

.video-panel {
  flex: 1;
  background: #000;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.video-bg {
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(ellipse at 30% 60%, rgba(100,80,200,0.3) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 30%, rgba(80,120,200,0.2) 0%, transparent 50%),
    linear-gradient(135deg, #1a1560 0%, #2d1a6e 25%, #1e2870 50%, #0d1540 75%, #050a20 100%);
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

.video-scene {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.scene-window {
  position: absolute;
  right: 15%;
  top: 5%;
  width: 35%;
  height: 65%;
  background: linear-gradient(180deg, #0a0a2e 0%, #1a1a5e 30%, #252580 60%, #1a1560 100%);
  border-radius: 4px;
  overflow: hidden;
}
.scene-window::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 80%, rgba(60,60,180,0.4) 0%, transparent 60%);
}
.city-lights {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 50%;
  background: 
    repeating-linear-gradient(90deg, transparent 0px, transparent 8px, rgba(255,220,100,0.3) 8px, rgba(255,220,100,0.3) 10px),
    linear-gradient(to top, rgba(30,30,100,0.8), transparent);
}
.snow { position: absolute; inset: 0; }
.snow span {
  position: absolute;
  width: 2px; height: 2px;
  background: rgba(255,255,255,0.7);
  border-radius: 50%;
  animation: snowFall 3s linear infinite;
}
@keyframes snowFall {
  to { transform: translateY(100px); opacity: 0; }
}

.lamp-glow {
  position: absolute;
  left: 8%;
  top: 20%;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(255,180,80,0.6) 0%, rgba(255,140,40,0.2) 40%, transparent 70%);
  border-radius: 50%;
}

.character {
  position: absolute;
  bottom: 0;
  left: 25%;
  width: 45%;
  height: 85%;
  background: linear-gradient(160deg, #2d4a3a 10%, #1e3328 30%, #4a2520 60%);
  border-radius: 60% 60% 0 0;
  overflow: hidden;
}
.character::after {
  content: '';
  position: absolute;
  top: 10%;
  left: 20%;
  width: 60%;
  height: 50%;
  background: radial-gradient(ellipse, #5a2020 30%, #3a1515 70%);
  border-radius: 50%;
}

.headphones {
  position: absolute;
  top: 8%;
  left: 22%;
  width: 56%;
  height: 20%;
  border: 5px solid #1a1a1a;
  border-radius: 50%;
  border-bottom: none;
}

.now-playing {
  position: absolute;
  top: 16px;
  left: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.np-icon {
  width: 36px;
  height: 36px;
  background: var(--red);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 900;
  color: #fff;
}
.np-text { color: #fff; }
.np-label { font-size: 10px; opacity: 0.6; text-transform: uppercase; letter-spacing: 1px; }
.np-title { font-size: 13px; font-weight: 700; }
.np-subtitle { font-size: 12px; opacity: 0.7; }

.video-controls {
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
  padding: 24px 16px 12px;
}
.progress-bar {
  height: 3px;
  background: rgba(255,255,255,0.2);
  border-radius: 2px;
  margin-bottom: 10px;
  position: relative;
}
.progress-fill {
  height: 100%;
  width: 55%;
  background: var(--red);
  border-radius: 2px;
}
.progress-fill::after {
  content: '';
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  width: 10px; height: 10px;
  background: #fff;
  border-radius: 50%;
}
.controls-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ctrl-btn {
  background: none; border: none; cursor: pointer;
  color: rgba(255,255,255,0.8); font-size: 16px;
  display: flex; align-items: center; justify-content: center;
}
.live-badge {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  display: flex; align-items: center; gap: 4px;
}
.live-dot { width: 6px; height: 6px; background: var(--red); border-radius: 50%; }
.ctrl-spacer { flex: 1; }
.platform-badge {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
}
.ctrl-btn-fs { font-size: 14px; }

.user-avatar-float {
  position: absolute;
  bottom: 56px;
  right: 16px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff6b6b, #ee5a24);
  border: 2px solid #fff;
}

.chat-panel {
  width: 300px;
  background: #111;
  display: flex;
  flex-direction: column;
  border-left: 1px solid #222;
  flex-shrink: 0;
}

.chat-user-bar {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #1e1e1e;
}
.user-dot-wrap {
  position: relative;
  display: inline-flex;
}
.user-dot {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #cc2222, #880000);
  overflow: hidden;
  font-size: 14px; font-weight: 800; color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.online-dot {
  width: 9px; height: 9px;
  background: #22cc55;
  border-radius: 50%;
  position: absolute;
  bottom: -1px; right: -1px;
  border: 2px solid #111;
  z-index: 2;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 8px 16px;
  display: flex;
  flex-direction: column;
  color: #555;
  font-size: 13px;
}
.chat-messages:empty::before {
  content: '';
  display: none;
}

.chat-input-area {
  padding: 12px 16px;
  border-top: 1px solid #1e1e1e;
}
.chat-input-row {
  display: flex;
  align-items: center;
  background: #1e1e1e;
  border-radius: 10px;
  padding: 10px 12px;
  gap: 8px;
  margin-bottom: 10px;
}
.chat-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: #aaa;
  font-size: 13px;
  font-family: inherit;
}
.chat-input::placeholder { color: #555; }
.send-btn {
  background: var(--red);
  border: none;
  border-radius: 6px;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: #fff;
  font-size: 12px;
}

.chat-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.user-avatar-sm {
  width: 32px; height: 32px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  background: #333;
  flex-shrink: 0;
}
.ctrl-spacer2 { flex: 1; }
.icon-btn {
  background: var(--red);
  border: none; border-radius: 50%;
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: #fff; font-size: 14px;
}

.btn-invite {
  width: 100%;
  padding: 14px;
  background: var(--red);
  border: none;
  color: #fff;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  margin-bottom: 8px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: background 0.2s;
}
.btn-invite:hover { background: var(--red-bright); }

.btn-leave {
  width: 100%;
  padding: 10px;
  background: none;
  border: none;
  color: var(--red);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  margin-bottom: 10px;
}

.yt-input-row {
  display: flex;
  align-items: center;
  background: #1e1e1e;
  border-radius: 10px;
  padding: 10px 12px;
  gap: 8px;
}
.yt-logo { color: var(--red); font-size: 18px; font-weight: 900; }
.yt-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: #555;
  font-size: 13px;
  font-family: inherit;
}
.btn-go {
  background: var(--red);
  border: none;
  border-radius: 6px;
  padding: 6px 14px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}

/* ============================================================
   404 PAGE — always dark, separated
   ============================================================ */
#notfound {
  background: #0a0a0a;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 40px;
}
.apple-logo {
  font-size: 60px;
  color: #888;
  margin-bottom: 20px;
  filter: grayscale(1);
}
.error-code {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}
.error-4-blue {
  font-size: 120px;
  font-weight: 900;
  color: #f0f0f0;
  background: none;
  padding: 0 4px;
  line-height: 1.1;
  border-radius: 4px;
}
.error-04-red {
  font-size: 120px;
  font-weight: 900;
  color: var(--red);
  line-height: 1.1;
  padding: 0 8px;
}
.error-title {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
}
.error-desc {
  color: #777;
  font-size: 15px;
  line-height: 1.7;
  max-width: 440px;
  margin: 0 auto 36px;
}
.btn-home {
  background: var(--red);
  border: none;
  color: #fff;
  padding: 16px 32px;
  border-radius: 100px;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
  transition: background 0.2s;
}
.btn-home:hover { background: var(--red-bright); }

/* ============================================================
   FEATURES SECTION
   ============================================================ */
.features-section {
  background: #f5f5f5;
  padding: 100px 80px;
}
.features-section h2 {
  font-size: 40px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 16px;
  color: #111;
}
.features-section .sub {
  text-align: center;
  color: #777;
  margin-bottom: 64px;
  font-size: 16px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1000px;
  margin: 0 auto;
}
.feature-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; color: #111; }
.feature-card p { font-size: 14px; color: #666; line-height: 1.7; }

/* ============================================================
   DARK MODE OVERRIDES
   ============================================================ */

/* Sun/Moon icon visibility */
html.dark .icon-sun  { display: flex; align-items: center; }
html.dark .icon-moon { display: none; }
html:not(.dark) .icon-sun  { display: none; }
html:not(.dark) .icon-moon { display: flex; align-items: center; }

/* Smooth transitions */
body, nav, #pricing, .plan, .plan.featured {
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

/* Body */
html.dark body { background: #0f0f0f; color: #e0e0e0; }

/* Nav */
html.dark nav { background: #111; border-bottom-color: #1e1e1e; }
html.dark .logo { color: #f0f0f0; }
html.dark .nav-links a { color: #888; }
html.dark .nav-links a:hover { color: #f0f0f0; }
html.dark .nav-links a.active-link { color: #f0f0f0; }
html.dark .btn-icon { color: #888; }
html.dark .btn-icon:hover { background: #222; }

/* Pricing */
html.dark #pricing { background: #0f0f0f; }
html.dark .pricing-header h1,
html.dark .pricing-header h2 { color: #f0f0f0; }
html.dark .pricing-header p { color: #888; }
html.dark .plan-name { color: #f0f0f0; }
html.dark .plan-desc { color: #666; }
html.dark .plan-price .amount { color: #f0f0f0; }
html.dark .plan-price .period { color: #666; }
html.dark .plan-features li { color: #bbb; }
html.dark .plan-features li.muted { color: #555; }
html.dark .plan-features li.muted::before { color: #444; }
html.dark .plan.featured { background: linear-gradient(160deg, #1c1c1c 0%, #161616 60%, #111 100%); border-color: rgba(220,30,30,0.35); }
html.dark .btn-plan-outline { border-color: #444; color: #bbb; }
html.dark .btn-plan-outline:hover { border-color: #888; color: #fff; }

/* Download */
html.dark .download-section { background: linear-gradient(to bottom, #0f0f0f 0%, #111 40%, #1a0808 100%) !important; }
html.dark .download-section h2 { color: #f0f0f0; }
html.dark .download-section p { color: #888; }
html.dark .btn-download-mac { border-color: #444; color: #ccc; }
html.dark .btn-download-mac:hover { border-color: #888; }
html.dark .download-version { color: #555; }

/* Register / Room / 404 / Login are always dark — no overrides needed */

/* Home page dark mode */
html.dark #home { background: #0a0a0a; }
html.dark #home nav .logo { color: #fff; }
html.dark #home nav .nav-links a { color: #ccc; }
html.dark #home nav .nav-links a:hover { color: #fff; }
html.dark #home nav .btn-icon { color: #aaa; }
html.dark #home nav .btn-icon:hover { background: rgba(255,255,255,0.08); }
html.dark .hero-title { color: #fff; }
html.dark .hero-subtitle { color: #aaa; }
html.dark .btn-cta-secondary { border-color: #444; color: #e0e0e0; }
html.dark .btn-cta-secondary:hover { border-color: #888; color: #fff; }
html.dark .features-section { background: #111; }
html.dark .features-section h2 { color: #f0f0f0; }
html.dark .feature-card { border-color: #222; background: #161616; }
html.dark .feature-card h3 { color: #f0f0f0; }
html.dark .feature-card p { color: #888; }
html.dark #home footer { background: #0a0a0a !important; color: #555; }

/* ============================================================
   NAV AVATAR (logged-in state)
   ============================================================ */
.nav-avatar-btn {
  text-decoration: none;
  display: flex;
  align-items: center;
}
.nav-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  cursor: pointer;
  border: 2px solid rgba(255,255,255,0.15);
  transition: border-color 0.2s, transform 0.15s;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
}
.nav-avatar:hover { border-color: rgba(255,255,255,0.4); transform: scale(1.08); }

/* ============================================================
   PROFILE PAGE — always dark
   ============================================================ */
#profile-page {
  background: #0a0a0a;
  min-height: 100vh;
  color: #f0f0f0;
}

.profile-banner {
  width: 100%;
  height: 180px;
  position: relative;
  transition: background 0.4s;
}

.profile-header {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
}

.profile-avatar-wrap {
  position: relative;
  display: inline-block;
  margin-top: -52px;
  margin-bottom: 12px;
}

.profile-avatar-lg {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  font-weight: 900;
  color: #fff;
  border: 4px solid #0a0a0a;
  position: relative;
  cursor: pointer;
  transition: filter 0.2s;
  background-size: cover;
  background-position: center;
}
.profile-avatar-lg:hover { filter: brightness(1.1); }
.profile-avatar-edit-badge {
  position: absolute;
  bottom: 2px; right: 2px;
  width: 26px; height: 26px;
  background: #111;
  border: 2px solid #222;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #888;
  cursor: pointer;
  z-index: 2;
  transition: background 0.15s, color 0.15s;
}
.profile-avatar-edit-badge:hover { background: #1e1e1e; color: #ccc; }

.profile-display-name {
  font-size: 24px;
  font-weight: 900;
  color: #f0f0f0;
  margin-bottom: 4px;
}
.profile-username-tag {
  font-size: 13px;
  color: #555;
  margin-bottom: 8px;
}
.profile-bio-preview {
  font-size: 14px;
  color: #888;
  margin-bottom: 20px;
  max-width: 400px;
}

/* Profile tabs */
.profile-tabs {
  display: flex;
  gap: 2px;
  border-bottom: 1px solid #1e1e1e;
  margin-bottom: 32px;
}
.profile-tab-btn {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: #555;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  padding: 10px 20px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  margin-bottom: -1px;
}
.profile-tab-btn.active { color: #f0f0f0; border-bottom-color: var(--red); }
.profile-tab-btn:hover:not(.active) { color: #aaa; }

.profile-tab-panel { display: none; }
.profile-tab-panel.active { display: block; }

/* Profile body */
.profile-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 32px 60px;
}

/* Form sections */
.pf-section {
  background: #111;
  border: 1px solid #1e1e1e;
  border-radius: 16px;
  padding: 28px 28px 24px;
  margin-bottom: 20px;
}
.pf-section-title {
  font-size: 13px;
  font-weight: 700;
  color: #555;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.pf-row { margin-bottom: 18px; }
.pf-row label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #666;
  margin-bottom: 8px;
  letter-spacing: 0.3px;
}
.pf-input {
  width: 100%;
  padding: 12px 14px;
  background: #161616;
  border: 1.5px solid #222;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  color: #f0f0f0;
  outline: none;
  transition: border-color 0.2s;
}
.pf-input:focus { border-color: var(--red); }
.pf-input::placeholder { color: #444; }
.pf-textarea {
  width: 100%;
  padding: 12px 14px;
  background: #161616;
  border: 1.5px solid #222;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  color: #f0f0f0;
  outline: none;
  resize: vertical;
  min-height: 80px;
  transition: border-color 0.2s;
}
.pf-textarea:focus { border-color: var(--red); }
.pf-textarea::placeholder { color: #444; }
.pf-hint { font-size: 11px; color: #444; margin-top: 5px; }

/* Avatar preset swatches */
.avatar-presets {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.avatar-swatch {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid transparent;
  transition: border-color 0.15s, transform 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
}
.avatar-swatch:hover { transform: scale(1.12); }
.avatar-swatch.selected { border-color: #fff; }

/* Save button */
.btn-pf-save {
  background: var(--red);
  border: none;
  color: #fff;
  padding: 13px 28px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-pf-save:hover { background: var(--red-bright); }
.pf-save-feedback {
  font-size: 12px;
  color: #22cc55;
  margin-left: 12px;
  opacity: 0;
  transition: opacity 0.3s;
}
.pf-save-feedback.show { opacity: 1; }

/* Danger zone */
.btn-danger {
  background: transparent;
  border: 1.5px solid #5a0f0f;
  color: #cc3333;
  padding: 11px 24px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-danger:hover { background: rgba(200,30,30,0.1); border-color: #cc3333; }

/* Stats badges */
.pf-stats {
  display: flex;
  gap: 24px;
  margin-bottom: 16px;
}
.pf-stat { text-align: center; }
.pf-stat-num {
  font-size: 22px;
  font-weight: 900;
  color: #f0f0f0;
}
.pf-stat-label { font-size: 11px; color: #555; text-transform: uppercase; letter-spacing: 0.5px; }

/* Auth error/success inline */
.auth-msg {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 13px;
  margin-bottom: 16px;
  display: none;
}
.auth-msg.error { background: rgba(180,20,20,0.15); border: 1px solid rgba(220,30,30,0.3); color: #ff8080; display: block; }
.auth-msg.success { background: rgba(20,180,70,0.12); border: 1px solid rgba(30,220,80,0.25); color: #5dff91; display: block; }

/* ── Language Switcher ─────────────────────────────────── */
.lang-switcher {
  position: relative;
  display: inline-flex;
}
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: 1.5px solid #ddd;
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 700;
  font-family: inherit;
  color: #555;
  cursor: pointer;
  transition: all 0.2s;
}
.lang-toggle:hover { border-color: var(--red); color: var(--red); }
.lang-toggle svg { flex-shrink: 0; }
.lang-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 6px;
  min-width: 150px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all 0.2s;
  z-index: 1000;
}
.lang-switcher.open .lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.lang-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: none;
  background: none;
  width: 100%;
  font-size: 13px;
  font-family: inherit;
  color: #333;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.15s;
}
.lang-option:hover { background: #f5f5f5; }
.lang-option.active { color: var(--red); font-weight: 700; }
.lang-option .lang-check {
  margin-left: auto;
  opacity: 0;
  font-size: 12px;
  color: var(--red);
}
.lang-option.active .lang-check { opacity: 1; }

/* Dark mode */
html.dark .lang-toggle { border-color: #333; color: #888; }
html.dark .lang-toggle:hover { border-color: var(--red); color: var(--red); }
html.dark .lang-dropdown {
  background: #151515;
  border-color: #222;
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
}
html.dark .lang-option { color: #ccc; }
html.dark .lang-option:hover { background: #1e1e1e; }
html.dark .lang-option.active { color: var(--red); }

/* Dark mode override inside #home nav */
#home nav .lang-toggle { border-color: #444; color: #aaa; }
#home nav .lang-toggle:hover { border-color: var(--red); color: var(--red); }

/* Floating lang switcher for minimal pages */
.lang-switcher-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
}
.lang-switcher-float .lang-dropdown {
  top: auto;
  bottom: calc(100% + 6px);
  transform: translateY(6px);
}
.lang-switcher-float.open .lang-dropdown {
  transform: translateY(0);
}

@keyframes chatIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   HAMBURGER / MOBILE MENU
   ============================================================ */
.btn-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  transition: background 0.2s;
  flex-shrink: 0;
}
.btn-hamburger:hover { background: rgba(255,255,255,0.08); }
.btn-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #ccc;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.btn-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.btn-hamburger.open span:nth-child(2) { opacity: 0; }
.btn-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Light mode hamburger */
html:not(.dark) #pricing .btn-hamburger span { background: #555; }
html:not(.dark) .btn-hamburger span { background: #555; }

.mobile-menu {
  display: none;
  flex-direction: column;
  background: #0d0d0d;
  border-bottom: 1px solid #1e1e1e;
  padding: 0;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s cubic-bezier(0.22,1,0.36,1), padding 0.3s;
}
.mobile-menu.open {
  max-height: 500px;
  padding: 12px 0 20px;
}
.mobile-menu a,
.mobile-menu button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 13px 24px;
  font-size: 16px;
  font-weight: 600;
  color: #ccc;
  text-decoration: none;
  background: none;
  border: none;
  font-family: inherit;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}
.mobile-menu a:hover,
.mobile-menu button:hover { color: #fff; background: rgba(255,255,255,0.04); }
.mobile-menu .mobile-menu-sep {
  height: 1px;
  background: #1e1e1e;
  margin: 8px 24px;
}
.mobile-menu .mobile-menu-ctas {
  display: flex;
  gap: 10px;
  padding: 4px 24px 0;
  flex-wrap: wrap;
}
.mobile-menu .btn-outline,
.mobile-menu .btn-solid {
  flex: 1;
  text-align: center;
  min-width: 120px;
}

/* Light-mode mobile menu */
html:not(.dark) #pricing + .mobile-menu { background: #fff; border-bottom-color: #e0e0e0; }
html:not(.dark) .mobile-menu { background: #fff; border-bottom-color: #e0e0e0; }
html:not(.dark) .mobile-menu a,
html:not(.dark) .mobile-menu button { color: #333; }
html:not(.dark) .mobile-menu a:hover,
html:not(.dark) .mobile-menu button:hover { color: #111; background: #f5f5f5; }
html:not(.dark) .mobile-menu .mobile-menu-sep { background: #e0e0e0; }

/* Home page is always dark — keep its mobile menu dark too */
#home .mobile-menu {
  background: #0d0d0d !important;
  border-bottom-color: #1e1e1e !important;
}
#home .mobile-menu a,
#home .mobile-menu button { color: #ccc !important; }
#home .mobile-menu a:hover,
#home .mobile-menu button:hover { color: #fff !important; background: rgba(255,255,255,0.04) !important; }
#home .mobile-menu .mobile-menu-sep { background: #1e1e1e !important; }

/* ============================================================
   RESPONSIVE — TABLET  (≤ 960px)
   ============================================================ */
@media (max-width: 960px) {
  nav { padding: 0 24px; }
  .hero { padding: 0 24px; min-height: auto; padding-top: 60px; padding-bottom: 60px; }
  .features-section { padding: 80px 32px; }
  .pricing-section { padding: 60px 24px 0; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 440px; padding: 0 0 60px; gap: 20px; }
  .plan.featured { margin-top: 0; }
  .download-section { padding: 80px 32px; }
}

/* ============================================================
   RESPONSIVE — MOBILE (≤ 768px)
   ============================================================ */
@media (max-width: 768px) {

  /* ----- NAV ----- */
  .btn-hamburger { display: flex; }
  .nav-links { display: none !important; }
  .nav-actions .btn-outline,
  .nav-actions .btn-solid { display: none; }
  nav { padding: 0 16px; height: 60px; }
  #home nav { height: 60px; }

  /* ----- MOBILE MENU visible ----- */
  .mobile-menu { display: flex; }

  /* ----- HERO ----- */
  .hero {
    flex-direction: column;
    padding: 48px 20px 60px;
    min-height: auto;
    text-align: center;
    align-items: center;
  }
  .hero-content { flex: none; width: 100%; }
  .hero-subtitle { max-width: 100%; margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; flex-wrap: wrap; }
  .btn-cta-primary,
  .btn-cta-secondary { padding: 14px 24px; font-size: 15px; }

  .hero-visual { display: none; }
  .bg-glow-left, .bg-glow-right { display: none; }

  .hero-title { font-size: clamp(36px, 10vw, 56px); letter-spacing: -1px; }

  .scroll-hint { display: none; }

  /* ----- FEATURES ----- */
  .features-section { padding: 60px 20px; }
  .features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .features-section h2 { font-size: 28px; }
  .feature-card { padding: 24px; }

  /* ----- PRICING ----- */
  .pricing-section { padding: 48px 16px 0; }
  .pricing-header h1,
  .pricing-header h2 { font-size: 28px; }
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
    padding: 0 0 48px;
    gap: 16px;
  }
  .plan { padding: 28px 24px; }
  .plan.featured { margin-top: 0; padding-top: 44px; }
  .plan-price .amount { font-size: 40px; }

  /* ----- DOWNLOAD ----- */
  .download-section { padding: 60px 20px; }
  .download-section h2 { font-size: 28px; }
  .download-btns { flex-direction: column; align-items: center; }
  .btn-download-win,
  .btn-download-mac { width: 100%; max-width: 320px; justify-content: center; }

  /* ----- 404 ----- */
  .error-4-blue, .error-04-red { font-size: 72px; }
  .error-title { font-size: 20px; }

  /* ----- PROFILE ----- */
  .profile-header { padding: 0 16px; }
  .profile-body { padding: 0 16px 48px; }
  .pf-section { padding: 20px 18px; }
  .profile-tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .profile-tab-btn { white-space: nowrap; padding: 10px 14px; font-size: 13px; }
  .profile-banner { height: 120px; }
  .profile-avatar-lg { width: 80px; height: 80px; font-size: 32px; }
  .profile-avatar-wrap { margin-top: -40px; }
  .profile-display-name { font-size: 20px; }
  .pf-stats { gap: 16px; }

  /* ----- ROOM ----- */
  #room { height: 100dvh; }
  .room-body { flex-direction: column; }
  .video-panel { flex: none; height: 55vw; min-height: 220px; max-height: 50vh; }
  .chat-panel {
    width: 100%;
    height: auto;
    flex: 1;
    border-left: none;
    border-top: 1px solid #222;
    min-height: 0;
  }

  /* ----- LANG SWITCHER (nav) ----- */
  .nav-actions .lang-switcher { display: none; }

  /* ----- GENERAL ----- */
  .btn-plan { padding: 12px; }
  .register-card { padding: 32px 24px 36px; }
}

/* ============================================================
   RESPONSIVE — SMALL MOBILE (≤ 480px)
   ============================================================ */
@media (max-width: 480px) {
  .hero-title { font-size: clamp(30px, 9vw, 42px); }
  .hero-cta { flex-direction: column; align-items: stretch; gap: 12px; }
  .btn-cta-primary,
  .btn-cta-secondary { text-align: center; justify-content: center; }

  .features-grid { grid-template-columns: 1fr; }

  .error-4-blue, .error-04-red { font-size: 56px; }

  .pricing-grid { gap: 14px; }

  /* Room: make video taller on very small screens if needed */
  .video-panel { min-height: 200px; }

  .logo { font-size: 17px; }

  .register-card { padding: 28px 18px 32px; }
}

/* ============================================================
   FEATURES 2-col on medium screens
   ============================================================ */
@media (min-width: 481px) and (max-width: 768px) {
  .features-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
}

/* ============================================================
   GLOBAL PARTICLE CANVAS
   ============================================================ */
#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

