/* ===========================
   WatchParty Design System
   Modern Streaming Platform
   ========================= */

:root {
  /* Core Colors */
  --primary: #E50914;
  --primary-light: #FF3D47;
  --primary-dark: #B20710;
  --primary-glow: rgba(229, 9, 20, 0.4);
  --accent: #00A8E1;
  --accent-light: #33BFEE;

  /* Backgrounds */
  --bg-primary: #0D0D0D;
  --bg-secondary: #141414;
  --bg-tertiary: #1A1A1A;
  --bg-card: #181818;
  --bg-elevated: #222222;

  /* Text */
  --text-primary: #FFFFFF;
  --text-secondary: #B3B3B3;
  --text-muted: #808080;
  --text-dim: #4D4D4D;

  /* Glass */
  --glass: rgba(13, 13, 13, 0.92);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-hover: rgba(255, 255, 255, 0.15);

  /* Feedback */
  --success: #46D369;
  --warning: #F5C518;
  --danger: #E50914;
  --info: #00A8E1;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 30px var(--primary-glow);
  --shadow-btn: 0 4px 15px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.1);

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition: all 0.35s var(--ease-out);
  --transition-fast: all 0.2s var(--ease-out);
  --transition-slow: all 0.6s var(--ease-out);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Figtree', 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--primary);
  color: white;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-light);
}

img {
  max-width: 100%;
  height: auto;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--text-dim); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

/* ===== HEADER / NAV ===== */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 64px;
  display: flex;
  align-items: center;
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  transition: var(--transition);
}

header.scrolled {
  background: rgba(13, 13, 13, 0.98);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Logo */
.logo-text {
  display: flex;
  align-items: center;
}

.brand {
  font-family: 'DM Sans', sans-serif;
  font-weight: 900;
  font-size: 1.8rem;
  letter-spacing: -1px;
  color: var(--primary); /* Red */
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: transform 0.3s var(--ease-bounce);
}

.brand span {
  color: #FFFFFF; /* White */
}

.brand:hover {
  transform: scale(1.02);
  color: var(--primary);
}

.logo-img {
  height: 48px;
  width: auto;

  /* Transform gold to a vibrant red/silver look */
  filter: grayscale(1) brightness(0.8) sepia(1) hue-rotate(-50deg) saturate(10) drop-shadow(0 0 8px rgba(229, 9, 20, 0.4));
  transition: transform 0.3s var(--ease-bounce);
}

.brand:hover .logo-img {
  transform: rotate(-5deg) scale(1.1);
  filter: grayscale(1) brightness(1) sepia(1) hue-rotate(-50deg) saturate(12) drop-shadow(0 0 12px rgba(229, 9, 20, 0.6));
}


/* Navigation Links */
.primary-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.primary-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  transition: var(--transition);
}

.primary-nav a:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

.primary-nav a.active {
  color: var(--text-primary);
  font-weight: 600;
}

.nav-separator {
  width: 1px;
  height: 20px;
  background: var(--glass-border);
}

/* Utility Nav */
.utility-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  cursor: pointer;
  padding: 10px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.icon-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--glass-border-hover);
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

/* User Profile in Nav */
.user-profile {
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar-circle {
  width: 32px;
  height: 32px;
  background: var(--bg-elevated);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.user-greeting {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.88rem;
}

.admin-link {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 6px;
  transition: var(--transition);
}

.admin-link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

.logout-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-family: inherit;
  padding: 6px 14px;
  border-radius: 8px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.logout-link:hover {
  color: #fff;
  background: rgba(229, 9, 20, 0.85); /* Netflix/Prime dynamic red */
  border-color: rgba(229, 9, 20, 0.5);
  box-shadow: 0 4px 12px rgba(229, 9, 20, 0.3);
  transform: translateY(-1px);
}

.logout-link:active {
  transform: translateY(1px);
}

/* Mobile Nav */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 8px;
}

.btn-prime-cta {
  background: var(--primary);
  color: white;
  border: none;
  padding: 8px 20px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
}

.btn-prime-cta:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px var(--primary-glow);
  color: white;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  font-family: inherit;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--primary-glow);
  color: white;
}

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

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--glass-border-hover);
  color: white;
}

.btn-danger {
  background: #ff4b2b;
  color: white;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1.05rem;
}

/* ===== PREMIUM FILE INPUTS ===== */
input[type="file"] {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 8px;
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: var(--transition);
  cursor: pointer;
  width: 100%;
}

input[type="file"]:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--glass-border-hover);
}

input[type="file"]::file-selector-button {
  background: linear-gradient(135deg, var(--primary) 0%, #B20710 100%);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  margin-right: 15px;
  box-shadow: 0 4px 12px rgba(229, 9, 20, 0.2);
}

input[type="file"]::file-selector-button:hover {
  filter: brightness(1.2);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px var(--primary-glow);
}

input[type="file"]::file-selector-button:active {
  transform: translateY(0) scale(0.96);
}

.btn-lg {
  padding: 18px 36px;
  font-size: 1.05rem;
  border-radius: 14px;
}

.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.95);
  color: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 100%;
  padding: 14px 24px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 700;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-google:hover {
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
  color: #000;
}

/* ===== MAIN CONTENT ===== */
main {
  padding: 0;
  margin-top: 64px;
}

/* ===== CARDS ===== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 24px;
  transition: var(--transition);
}

.card-interactive:hover {
  border-color: var(--glass-border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* ===== FORMS ===== */
form label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-secondary);
}

input, select, textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-tertiary);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: var(--text-primary);
  margin-bottom: 16px;
  font-size: 0.95rem;
  font-family: inherit;
  transition: var(--transition);
}

input::placeholder, textarea::placeholder {
  color: var(--text-dim);
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--bg-elevated);
  box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.1);
}

textarea {
  resize: vertical;
  min-height: 100px;
}

/* ===== FLASH MESSAGES ===== */
.flash-messages {
  position: fixed;
  top: 80px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 400px;
}

.flash-item {
  background: var(--bg-elevated);
  border: 1px solid var(--glass-border);
  border-left: 3px solid var(--primary);
  padding: 14px 18px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-primary);
  box-shadow: var(--shadow-md);
  animation: slideInRight 0.4s var(--ease-out);
}

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

/* ===== SECTION TITLES ===== */
.section-title {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 32px;
  color: var(--text-primary);
  letter-spacing: -0.03em;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-top: -20px;
  margin-bottom: 40px;
}

/* ===== AUTH PAGES (Login/Signup) ===== */
.auth-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: var(--bg-primary);
}

.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 40px 36px;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-lg);
}

.auth-card h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 8px;
  text-align: center;
  color: var(--text-primary);
}

.auth-card .auth-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 28px;
  font-size: 0.9rem;
}

.auth-card form {
  display: flex;
  flex-direction: column;
}

.auth-card p {
  text-align: center;
  margin-top: 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.auth-card a {
  color: var(--primary);
  font-weight: 600;
}

.auth-card a:hover {
  color: var(--primary-light);
}

.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 24px 0;
  color: var(--text-dim);
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--glass-border);
}

.auth-divider span {
  padding: 0 16px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* OTP Input Styles */
.otp-section {
  background: var(--bg-tertiary);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 16px;
  animation: fadeIn 0.3s var(--ease-out);
}

.otp-input-group {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 16px 0;
}

.otp-input-group input {
  width: 48px;
  height: 52px;
  text-align: center;
  font-size: 1.3rem;
  font-weight: 700;
  padding: 0;
  margin: 0;
  border-radius: 8px;
  background: var(--bg-primary);
  border: 2px solid var(--glass-border);
  color: var(--text-primary);
}

.otp-input-group input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.15);
}

.email-input-group {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.btn-send-otp {
  background: var(--accent);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
  margin-bottom: 16px;
}

.btn-send-otp:hover {
  background: var(--accent-light);
}

.btn-send-otp:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.otp-status {
  font-size: 0.82rem;
  text-align: center;
  padding: 4px 0;
}

.otp-status.success { color: var(--success); }
.otp-status.error { color: var(--danger); }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== LANDING PAGE ===== */
.landing-hero {
  position: relative;
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.landing-hero .container {
  margin-left: 0;
  max-width: 1400px;
  padding-left: 60px;
}


.landing-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(229, 9, 20, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(0, 168, 225, 0.05) 0%, transparent 50%);
  z-index: 0;
}

.landing-hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.landing-hero h1 {
  font-size: 4rem;
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 20px;
  letter-spacing: -0.04em;
}

.landing-hero h1 .highlight {
  color: var(--primary);
}

.landing-hero p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
  max-width: 520px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-visual {
  position: absolute;
  right: -60px;
  top: 50%;
  transform: translateY(-50%);
  width: 45%;
  height: 80%;
  z-index: 1;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mask-image: linear-gradient(to right, transparent 0%, black 30%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 30%);
  filter: brightness(0.35) saturate(0.7);
  border-radius: 16px;
}

/* Features */
.features-section {
  padding: 100px 0;
  background: var(--bg-secondary);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 32px 28px;
  transition: var(--transition-slow);
}

.feature-card:hover {
  border-color: var(--glass-border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  background: rgba(229, 9, 20, 0.1);
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* How It Works */
.how-it-works {
  padding: 100px 0;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 20px;
}

.step-card {
  text-align: center;
  padding: 32px 24px;
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  font-size: 1.2rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.step-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.step-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Landing Testimonials */
.testimonials-section {
  padding: 100px 0;
  background: var(--bg-secondary);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 28px;
  transition: var(--transition);
}

.testimonial-card:hover {
  border-color: var(--glass-border-hover);
  transform: translateY(-3px);
}

.testimonial-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 16px;
  color: var(--warning);
  font-size: 0.95rem;
}

.testimonial-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-movie-tag {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--glass-border);
}

.testimonial-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.testimonial-avatar span {
  font-size: 0.8rem;
  font-weight: 700;
  color: white;
}

.testimonial-info h4 {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.testimonial-info span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Stats Banner */
.stats-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  padding: 60px 24px;
  background: var(--bg-tertiary);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}

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

.stat-item .stat-number {
  display: block;
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1.2;
}

.stat-item .stat-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-top: 4px;
}

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

/* CTA Section */
.cta-section {
  padding: 100px 0;
  text-align: center;
}

.cta-section h2 {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}

.cta-section p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== DASHBOARD (LOGGED IN HOME) ===== */
.dashboard-hero {
  padding: 40px 0 20px;
}

.dashboard-hero h1 {
  font-size: 2rem;
  font-weight: 800;
}

.dashboard-hero h1 span {
  color: var(--primary);
}

.hero-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 20px 0 40px;
}

.hero-content {
  flex: 1;
}

.hero-visuals {
  flex: 0.6;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-visuals-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-collage {
  width: 100%;
  height: 300px;
  object-fit: cover;
  mask-image: linear-gradient(to right, transparent, black 40%);
  -webkit-mask-image: linear-gradient(to right, transparent, black 40%);
  filter: brightness(0.3) saturate(0.7);
  border-radius: 12px;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}

.hero h1 span {
  display: block;
  color: var(--primary);
}

.hero p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin-bottom: 28px;
}

/* ===== ROOM GRID ===== */
.room-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.room-card-premium {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 24px;
  position: relative;
  transition: var(--transition);
  overflow: hidden;
}

.room-card-premium::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--primary);
}

.room-card-premium:hover {
  border-color: var(--glass-border-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.private-badge {
  font-size: 0.75rem;
  background: rgba(245, 197, 24, 0.1);
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid rgba(245, 197, 24, 0.2);
}

/* ===== MOVIES LIBRARY ===== */
.movies-library {
  padding: 40px 0;
  margin-top: 64px;
}

.movie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.movie-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: var(--glass-border-hover);
  box-shadow: var(--shadow-lg);
}

.poster-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 2/3;
  overflow: hidden;
  background: var(--bg-tertiary);
}

.poster-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s var(--ease-out);
}

.poster-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s var(--ease-out);
}

.movie-card:hover .poster-overlay {
  opacity: 1;
}

.movie-card:hover .poster-wrapper img {
  transform: scale(1.08);
  filter: blur(2px);
}

.movie-info {
  padding: 16px;
}

.movie-info h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.movie-rating-display {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

.stars-display .star {
  color: var(--text-dim);
  font-size: 0.85rem;
}

.stars-display .star.filled {
  color: var(--warning);
}

.rating-text {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 40px;
  background: var(--bg-tertiary);
  border-radius: 16px;
  border: 1px dashed var(--glass-border);
}

.empty-state p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

/* ===== VIDEO PLAYER / ROOM ===== */
.room-container {
  display: flex;
  gap: 20px;
  margin-top: 24px;
}

.video-section {
  flex: 3.5;
}

.video-wrapper {
  position: relative;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow-lg);
}

.video-wrapper .video-js {
  width: 100%;
  height: auto;
  min-height: 280px;
}

.video-wrapper .video-js .vjs-tech {
  object-fit: contain;
}

.video-wrapper .video-js .vjs-poster {
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #000;
}

.chat-section {
  flex: 1.5;
  height: calc(100vh - 200px);
  background: var(--bg-card);
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
}

/* Video.js Theme */
.vjs-theme-prime {
  font-family: 'Figtree', sans-serif !important;
  border-radius: 12px;
  overflow: hidden;
}

.video-js.vjs-theme-prime .vjs-control-bar {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent) !important;
  height: 4em !important;
}

.video-js.vjs-theme-prime .vjs-play-progress,
.video-js.vjs-theme-prime .vjs-volume-level {
  background-color: var(--primary) !important;
}

.video-js.vjs-theme-prime .vjs-big-play-button {
  background-color: rgba(229, 9, 20, 0.2) !important;
  border: 2px solid var(--primary) !important;
  border-radius: 50% !important;
  width: 72px !important;
  height: 72px !important;
  line-height: 68px !important;
  backdrop-filter: blur(8px) !important;
  transition: var(--transition) !important;
  top: 50% !important;
  left: 50% !important;
  margin: -36px 0 0 -36px !important;
}

.video-js.vjs-theme-prime:hover .vjs-big-play-button {
  background-color: var(--primary) !important;
  transform: scale(1.1) !important;
  box-shadow: var(--shadow-glow) !important;
}

.video-js.vjs-theme-prime .vjs-slider {
  background-color: rgba(255, 255, 255, 0.1) !important;
}

/* ===== DANMAKU & REACTIONS ===== */
.danmaku-container, .reaction-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 10;
  overflow: hidden;
}

.danmaku-item {
  position: absolute;
  white-space: nowrap;
  font-weight: 700;
  font-size: 1.3rem;
  color: white;
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
  pointer-events: none;
  left: 100%;
  animation: danmakuFlow 10s linear forwards;
}

@keyframes danmakuFlow {
  from { left: 100%; }
  to { left: -100%; }
}

.reaction-burst {
  position: absolute;
  bottom: 20px;
  font-size: 2.2rem;
  pointer-events: none;
  animation: floatingReaction 2s ease-out forwards;
  opacity: 0;
}

@keyframes floatingReaction {
  0% { transform: translateY(0) scale(0.5); opacity: 0; }
  20% { opacity: 1; transform: translateY(-20px) scale(1.2); }
  100% { transform: translateY(-120px) scale(1); opacity: 0; }
}

/* Video Controls Overlay */
.video-controls-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 100;
  opacity: 0;
  transition: opacity 0.3s var(--ease-out);
  pointer-events: none;
}

.video-wrapper:hover .video-controls-overlay {
  opacity: 1;
  pointer-events: auto;
}

.remote-actions {
  display: flex;
  gap: 10px;
  background: rgba(20, 20, 20, 0.85);
  backdrop-filter: blur(16px);
  padding: 10px 20px;
  border-radius: 48px;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-lg);
  align-items: center;
}

.remote-btn {
  background: transparent;
  border: none;
  color: white;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.remote-btn:hover {
  background: var(--primary);
  transform: scale(1.1);
}

.remote-divider {
  width: 1px;
  height: 20px;
  background: var(--glass-border);
  margin: 0 4px;
}

#remotePlay svg { fill: var(--success); }
#remoteStop svg { fill: var(--danger); }

/* Interaction Bar */
.interaction-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  margin-top: 16px;
}

.reactions {
  display: flex;
  gap: 8px;
}

.emoji-btn {
  background: var(--bg-tertiary);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition);
}

.emoji-btn:hover {
  background: var(--primary);
  transform: scale(1.15);
  border-color: var(--primary);
}

.subtitle-toggle-btn {
  font-size: 0.7rem !important;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text-primary);
}

/* Playback Warning */
.playback-warning {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1000;
  width: 90%;
  max-width: 480px;
  background: var(--bg-card);
  border: 2px solid var(--danger);
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  backdrop-filter: blur(16px);
  animation: fadeIn 0.4s var(--ease-out);
}

.playback-warning h4 {
  color: var(--danger);
  font-size: 1.2rem;
  margin-bottom: 12px;
  font-weight: 700;
}

.playback-warning p, .playback-warning li {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
}

.room-sync-toast {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 950;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.2px;
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.room-sync-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== CHAT ===== */
.chat-box {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chat-message {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.88rem;
  line-height: 1.4;
  word-wrap: break-word;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.chat-message-sent {
  align-self: flex-end;
  background: var(--primary);
  color: white;
  border-bottom-right-radius: 4px;
}

.chat-message-sent .chat-username {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.72rem;
  font-weight: 600;
  text-align: right;
}

.chat-message-received {
  align-self: flex-start;
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border-bottom-left-radius: 4px;
}

.chat-message-received .chat-username {
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 600;
}

.chat-text { font-size: 0.88rem; }

.chat-message-status {
  align-self: center;
  max-width: 100%;
  background: transparent;
  text-align: center;
  font-size: 0.78rem;
  padding: 4px 10px;
  color: var(--text-muted);
}

.chat-controls {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--glass-border);
}

.chat-controls input {
  flex: 1;
  margin-bottom: 0;
}

/* Active Users Panel */
.active-users-panel {
  border-bottom: 1px solid var(--glass-border);
  background: rgba(0, 0, 0, 0.2);
}

.active-users-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  cursor: pointer;
  transition: background 0.3s;
}

.active-users-header:hover {
  background: rgba(255, 255, 255, 0.03);
}

.active-users-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.active-users-title h3 {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.active-dot {
  width: 7px;
  height: 7px;
  background: var(--success);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px var(--success);
  animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 5px var(--success); opacity: 1; }
  50% { box-shadow: 0 0 12px var(--success); opacity: 0.8; }
}

.active-count {
  background: rgba(70, 211, 105, 0.12);
  color: var(--success);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  border: 1px solid rgba(70, 211, 105, 0.25);
}

.chevron-icon {
  color: var(--text-muted);
  transition: transform 0.3s;
}

.active-users-list {
  max-height: 180px;
  overflow-y: auto;
  padding: 0 10px 10px;
  transition: all 0.4s var(--ease-out);
}

.active-users-list.collapsed {
  max-height: 0;
  opacity: 0;
  padding: 0 10px;
  overflow: hidden;
}

.active-user-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 8px;
  transition: background 0.3s;
  animation: userSlideIn 0.3s var(--ease-out);
}

@keyframes userSlideIn {
  from { opacity: 0; transform: translateX(-8px); }
  to { opacity: 1; transform: translateX(0); }
}

.active-user-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.active-user-item.is-you {
  background: rgba(229, 9, 20, 0.06);
  border: 1px solid rgba(229, 9, 20, 0.1);
}

.user-avatar-sm {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
}

.user-name-label {
  flex: 1;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.active-user-item.is-you .user-name-label {
  color: var(--primary);
}

.user-online-dot {
  width: 5px;
  height: 5px;
  background: var(--success);
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 5px var(--success);
}

/* Typing Indicator */
.typing-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-style: italic;
}

.typing-dots {
  display: flex;
  gap: 3px;
}

.typing-dots span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--primary);
  animation: typingBounce 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

/* ===== PROFILE ===== */
.profile-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 32px 0;
}

.profile-header-card {
  overflow: hidden;
}

.profile-cover {
  height: 100px;
  background: linear-gradient(135deg, var(--primary-dark), var(--bg-tertiary));
}

.profile-main {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 0 28px 28px;
  margin-top: -40px;
  position: relative;
  z-index: 1;
}

.profile-avatar-large {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid var(--bg-card);
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  flex-shrink: 0;
  overflow: hidden;
}

.profile-avatar-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-info {
  flex: 1;
  padding-top: 44px;
}

.profile-info h1 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.profile-email {
  color: var(--text-muted);
  font-size: 0.82rem;
  margin-bottom: 6px;
}

.profile-bio {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 12px;
}

.profile-stats {
  display: flex;
  gap: 24px;
  margin-top: 12px;
}

.profile-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-val {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary);
}

.stat-lbl {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Theme Selector */
.theme-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.theme-option {
  background: var(--bg-tertiary);
  border: 2px solid var(--glass-border);
  border-radius: 10px;
  padding: 14px 10px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
  color: var(--text-primary);
}

.theme-option:hover {
  border-color: var(--primary);
  background: rgba(229, 9, 20, 0.06);
  transform: translateY(-2px);
}

.theme-option.active {
  border-color: var(--primary);
  background: rgba(229, 9, 20, 0.1);
}

.theme-icon { font-size: 1.4rem; }
.theme-name { font-size: 0.72rem; font-weight: 600; }

.theme-active-badge {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  background: var(--primary);
  color: white;
  padding: 2px 8px;
  border-radius: 8px;
}

/* Watch History */
.history-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.history-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 8px;
  transition: background 0.3s;
}

.history-item:hover {
  background: rgba(255, 255, 255, 0.03);
}

.history-poster {
  width: 36px;
  height: 50px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-tertiary);
}

.history-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.history-poster-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.history-title {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
}

.history-date {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Reviews */
.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.review-item {
  padding: 14px;
  background: var(--bg-tertiary);
  border-radius: 10px;
  border: 1px solid var(--glass-border);
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.review-movie { font-weight: 600; font-size: 0.92rem; }
.review-stars { font-size: 0.88rem; }
.review-text { color: var(--text-secondary); font-size: 0.85rem; line-height: 1.5; margin-bottom: 6px; }
.review-date { font-size: 0.72rem; color: var(--text-dim); }

/* Star Ratings */
.star-rating-input {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 16px 0;
}

.star-input {
  font-size: 2rem;
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.2s;
}

.star-input:hover,
.star-input.selected {
  color: var(--warning);
  transform: scale(1.15);
}

/* Rating Modal */
.rating-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s var(--ease-out);
}

.rating-modal-content {
  width: 90%;
  max-width: 400px;
  position: relative;
  padding: 28px;
  text-align: center;
}

.rating-modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
  transition: color 0.3s;
}

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

/* ===== SCHEDULED PARTIES ===== */
.scheduled-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  max-width: 1000px;
  margin: 0 auto;
}

.scheduled-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
}

.scheduled-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 3px;
  background: var(--primary);
}

.scheduled-info h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.countdown-badge {
  background: rgba(229, 9, 20, 0.08);
  color: var(--primary);
  padding: 6px 14px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.78rem;
  border: 1px solid rgba(229, 9, 20, 0.15);
  white-space: nowrap;
}

/* ===== CONTACT & FAQ ===== */
.contact-hero {
  position: relative;
  padding: 100px 0 60px;
  text-align: center;
  overflow: hidden;
}

.contact-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(229, 9, 20, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 20%, rgba(0, 168, 225, 0.04) 0%, transparent 50%);
}

.contact-hero-content {
  position: relative;
  z-index: 2;
}



.contact-badge {
  display: inline-block;
  background: rgba(229, 9, 20, 0.08);
  border: 1px solid rgba(229, 9, 20, 0.2);
  color: var(--primary);
  padding: 6px 20px;
  border-radius: 40px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.contact-hero h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}

.contact-hero h1 span {
  color: var(--primary);
}

.contact-hero p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
}

.contact-section {
  padding: 60px 0 80px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: start;
}

.contact-form-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 36px;
}

.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-form .form-group {
  margin-bottom: 4px;
}

.contact-submit-btn {
  width: 100%;
  margin-top: 8px;
}

.contact-info-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-info-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 24px;
  transition: var(--transition);
}

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

.contact-info-icon {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.contact-info-card h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.contact-info-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.contact-response-time {
  display: block;
  margin-top: 8px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.social-links {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: var(--transition);
  text-decoration: none;
}

.social-link:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-2px);
}

/* FAQ */
.faq-section {
  padding: 60px 0 80px;
  background: var(--bg-secondary);
}

.faq-grid {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  overflow: hidden;
  transition: var(--transition);
}

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

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
}

.faq-question:hover {
  background: rgba(255, 255, 255, 0.02);
}

.faq-toggle {
  font-size: 1.2rem;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform 0.3s;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-out);
}

.faq-answer p {
  padding: 0 22px 18px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ===== ADMIN ===== */
.admin-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

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

.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.admin-kpi-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.admin-kpi-label {
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.admin-kpi-value {
  color: var(--text-primary);
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.2;
}

.admin-kpi-card small {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.admin-upload-card {
  background: rgba(0, 0, 0, 0.3);
}

.admin-stat-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--bg-tertiary);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 8px 18px;
  min-width: 80px;
}

.admin-stat-badge .stat-number {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary);
}

.admin-stat-badge .stat-label {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  margin-top: 2px;
}

.admin-stat-live {
  background: rgba(70, 211, 105, 0.06);
  border-color: rgba(70, 211, 105, 0.15);
}

.admin-stat-live .stat-number {
  color: var(--success);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.admin-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.admin-table thead tr {
  border-bottom: 2px solid var(--glass-border);
}

.admin-table th {
  padding: 10px 14px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  text-align: left;
}

.admin-table td {
  padding: 12px 14px;
  font-size: 0.88rem;
  vertical-align: middle;
}

.admin-file-meta {
  color: var(--text-muted);
  font-size: 0.76rem;
  margin-top: 3px;
}

.admin-poster-shell {
  width: 50px;
  aspect-ratio: 2 / 3;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.05), transparent 70%);
}

.admin-poster-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.admin-poster-thumb.is-fallback {
  opacity: 0.45;
}

.admin-table tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  transition: background 0.3s;
}

.admin-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.user-row-blocked {
  opacity: 0.5;
}

.admin-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  background: var(--bg-tertiary);
  color: var(--primary);
  border: 1px solid var(--glass-border);
  flex-shrink: 0;
}

.tag-google {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 0.55rem;
  font-weight: 700;
  background: rgba(66, 133, 244, 0.1);
  color: #4285F4;
  border: 1px solid rgba(66, 133, 244, 0.2);
  margin-left: 6px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 16px;
  font-size: 0.75rem;
  font-weight: 600;
}

.status-live {
  background: rgba(70, 211, 105, 0.08);
  color: var(--success);
  border: 1px solid rgba(70, 211, 105, 0.2);
}

.status-blocked {
  background: rgba(229, 9, 20, 0.08);
  color: var(--danger);
  border: 1px solid rgba(229, 9, 20, 0.2);
}

.status-offline {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  border: 1px solid var(--glass-border);
}

.status-dot-green { width: 6px; height: 6px; border-radius: 50%; background: var(--success); box-shadow: 0 0 6px var(--success); animation: pulseDot 2s infinite; }
.status-dot-red { width: 6px; height: 6px; border-radius: 50%; background: var(--danger); }
.status-dot-grey { width: 6px; height: 6px; border-radius: 50%; background: var(--text-dim); }

.watching-info { display: flex; align-items: center; gap: 8px; }
.watching-movie-icon { font-size: 1.2rem; }
.watching-movie-title { display: block; font-weight: 600; font-size: 0.82rem; color: var(--primary-light); }
.watching-room-code { display: block; font-size: 0.7rem; color: var(--text-muted); font-weight: 500; }

.btn-admin {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-block {
  background: rgba(229, 9, 20, 0.08);
  color: var(--danger);
  border: 1px solid rgba(229, 9, 20, 0.2);
}

.btn-block:hover {
  background: var(--danger);
  color: white;
  transform: translateY(-1px);
}

.btn-unblock {
  background: rgba(70, 211, 105, 0.08);
  color: var(--success);
  border: 1px solid rgba(70, 211, 105, 0.2);
}

.btn-unblock:hover {
  background: var(--success);
  color: white;
  transform: translateY(-1px);
}

/* Contact Messages */
.contact-messages-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Smart thumbnail fit for odd aspect ratio images */
img[data-smart-thumb] {
  object-fit: cover;
  object-position: center;
}

img[data-smart-thumb].smart-thumb-contain {
  object-fit: contain;
  background:
    radial-gradient(circle at 50% 10%, rgba(255, 255, 255, 0.08) 0%, transparent 45%),
    rgba(0, 0, 0, 0.45);
}

.contact-msg-card {
  background: var(--bg-tertiary);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 20px;
  transition: var(--transition);
}

.contact-msg-unread {
  border-left: 3px solid var(--danger);
}

.contact-msg-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.contact-msg-body {
  margin-bottom: 12px;
}

.contact-msg-body p {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.9rem;
}

.contact-msg-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* ===== SEARCH ===== */
.search-wrap {
  position: sticky;
  top: 64px;
  width: 100%;
  padding: 16px 0;
  background: var(--glass);
  backdrop-filter: blur(16px);
  z-index: 99;
  border-bottom: 1px solid var(--glass-border);
  animation: slideDown 0.3s var(--ease-out);
}

@keyframes slideDown {
  from { transform: translateY(-20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.search-input-group {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  background: var(--bg-tertiary);
  border: 1px solid var(--glass-border);
  border-radius: 40px;
  transition: var(--transition);
}

.search-input-group:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.1);
}

.search-icon {
  margin-left: 16px;
  color: var(--text-muted);
}

#globalSearchInput {
  background: transparent;
  border: none;
  padding: 14px 12px;
  font-size: 1rem;
  color: var(--text-primary);
  width: 100%;
  outline: none;
  margin: 0;
}

.close-search-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 8px 14px;
  transition: var(--transition);
}

.close-search-btn:hover {
  color: var(--text-primary);
}

/* ===== FOOTER ===== */
footer {
  padding: 48px 0;
  border-top: 1px solid var(--glass-border);
  background: var(--bg-secondary);
  text-align: center;
}

footer p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ===== THEME VARIANTS ===== */
body.theme-dark { /* Default */ }

body.theme-gold {
  --primary: #D4AF37;
  --primary-light: #E8C84A;
  --primary-dark: #8B6508;
  --primary-glow: rgba(212, 175, 55, 0.4);
}

body.theme-neon {
  --primary: #A855F7;
  --primary-light: #C084FC;
  --primary-dark: #7C3AED;
  --primary-glow: rgba(168, 85, 247, 0.4);
  --bg-primary: #0A0014;
  --bg-secondary: #0F001E;
  --bg-card: #120020;
}

body.theme-ocean {
  --primary: #0EA5E9;
  --primary-light: #38BDF8;
  --primary-dark: #0284C7;
  --primary-glow: rgba(14, 165, 233, 0.4);
  --bg-primary: #00101A;
  --bg-secondary: #001320;
  --bg-card: #001525;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .landing-hero h1 { font-size: 3rem; }

  .hero-visual {
    width: 40%;
  }

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

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

  .stats-banner {
    gap: 30px;
    flex-wrap: wrap;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  .primary-nav {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .nav-separator {
    display: none;
  }

  .landing-hero {
    min-height: auto;
    padding: 60px 0;
  }

  .landing-hero h1 {
    font-size: 2.2rem;
  }

  .hero-visual {
    display: none;
  }

  .hero-wrapper {
    flex-direction: column;
    text-align: center;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero p {
    margin: 0 auto 24px;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-visuals {
    display: none;
  }

  .room-container {
    flex-direction: column;
  }

  .chat-section {
    height: 400px;
  }

  .movie-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
  }

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

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

  .stats-banner {
    flex-direction: column;
    gap: 20px;
  }

  .stat-divider {
    width: 40px;
    height: 1px;
  }

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

  .profile-main {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .profile-info {
    padding-top: 16px;
  }

  .profile-stats {
    justify-content: center;
  }

  .auth-card {
    padding: 32px 24px;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .admin-header-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-kpi-grid {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }
}

@media (max-width: 480px) {
  .landing-hero h1 { font-size: 1.8rem; }
  .brand { font-size: 1.2rem; gap: 8px; }
  .logo-img { height: 28px; }

  .btn-lg {
    padding: 14px 24px;
    font-size: 0.95rem;
  }

  .otp-input-group input {
    width: 40px;
    height: 44px;
    font-size: 1.1rem;
  }
}

/* ===== ANIMATIONS ===== */
.fade-in {
  animation: fadeIn 0.5s var(--ease-out);
}

.slide-up {
  animation: slideUp 0.6s var(--ease-out);
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s var(--ease-out);
}

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

/* No results state */
.no-results-msg {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
  font-size: 1rem;
}

.form-group {
  margin-bottom: 4px;
}
