/* ==========================================================================
   MERZE MOVIES (مەرزە موڤیز) - CINEMATIC DESIGN SYSTEM
   Full Kurdish Sorani (RTL), Glassmorphism, Dark/Light Themes, VIP Gold Accents
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700;800;900&family=Outfit:wght@400;600;700;800&display=swap');

:root {
  /* Color Palette - Dark Cinematic (Default) */
  --bg-main: #07080e;
  --bg-surface: #0e101b;
  --bg-surface-elevated: #151829;
  --bg-glass: rgba(14, 16, 27, 0.75);
  --bg-glass-card: rgba(21, 24, 41, 0.65);
  --bg-glass-input: rgba(10, 11, 20, 0.6);

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-inverse: #07080e;

  --accent-purple: #8b5cf6;
  --accent-purple-glow: rgba(139, 92, 246, 0.35);
  --accent-blue: #3b82f6;
  --accent-blue-glow: rgba(59, 130, 246, 0.3);
  --accent-pink: #ec4899;

  /* VIP Gold Accents */
  --vip-gold: #f59e0b;
  --vip-gold-light: #fbbf24;
  --vip-gold-dark: #b45309;
  --vip-gold-glow: rgba(245, 158, 11, 0.4);
  --vip-gradient: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);

  /* UI Accents */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(139, 92, 246, 0.5);
  --danger: #ef4444;
  --success: #10b981;
  --warning: #f59e0b;

  /* Shadows & Glass */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 25px var(--accent-purple-glow);
  --shadow-vip: 0 0 30px var(--vip-gold-glow);

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

  --font-kurdish: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-brand: 'Outfit', var(--font-kurdish);
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Mode Overrides */
[data-theme="light"] {
  --bg-main: #f1f5f9;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #f8fafc;
  --bg-glass: rgba(255, 255, 255, 0.85);
  --bg-glass-card: rgba(255, 255, 255, 0.9);
  --bg-glass-input: rgba(241, 245, 249, 0.8);

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-inverse: #ffffff;

  --border-subtle: rgba(0, 0, 0, 0.08);
  --border-focus: rgba(139, 92, 246, 0.6);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.12);
}

/* Base Resets */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-family: var(--font-kurdish);
  font-size: 16px;
  direction: rtl;
  text-align: right;
  scroll-behavior: smooth;
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.6;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: radial-gradient(circle at 50% 0%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
              radial-gradient(circle at 10% 30%, rgba(59, 130, 246, 0.05) 0%, transparent 40%),
              var(--bg-main);
  background-attachment: fixed;
  overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-surface-elevated);
  border-radius: var(--radius-full);
  border: 2px solid var(--bg-main);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-purple);
}

/* Links & Buttons */
a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  border: none;
  outline: none;
  background: none;
}

button {
  cursor: pointer;
  user-select: none;
}

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 2rem;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition-normal);
}

.nav-container {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* Brand Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  position: relative;
  text-decoration: none;
}

.logo-symbol {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #8b5cf6, #3b82f6, #ec4899);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.45);
  position: relative;
  overflow: hidden;
}

.logo-symbol::after {
  content: '';
  position: absolute;
  inset: 1px;
  background: var(--bg-surface);
  border-radius: 11px;
  z-index: 1;
}

.logo-symbol svg {
  position: relative;
  z-index: 2;
  width: 24px;
  height: 24px;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-brand);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 50%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 10px rgba(139, 92, 246, 0.3);
}

[data-theme="light"] .brand-name {
  background: linear-gradient(135deg, #0f172a 0%, #475569 50%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-subtitle {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--accent-purple);
  margin-top: -3px;
  letter-spacing: 0.5px;
}

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
}

.nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-secondary);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  position: relative;
  transition: var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
  background: rgba(139, 92, 246, 0.1);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  right: 20%;
  left: 20%;
  height: 2px;
  background: var(--accent-purple);
  border-radius: 2px;
  box-shadow: 0 0 8px var(--accent-purple);
}

.nav-link.vip-link {
  color: var(--vip-gold);
  font-weight: 700;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.nav-link.vip-link:hover {
  background: rgba(245, 158, 11, 0.2);
  box-shadow: 0 0 15px var(--vip-gold-glow);
}

/* Nav Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Search Bar (Nav) */
.nav-search {
  position: relative;
  width: 240px;
  transition: var(--transition-normal);
}

.nav-search input {
  width: 100%;
  background: var(--bg-glass-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 0.5rem 2.2rem 0.5rem 1rem;
  font-size: 0.88rem;
  color: var(--text-primary);
  transition: var(--transition-fast);
}

.nav-search input:focus {
  border-color: var(--border-focus);
  background: var(--bg-surface-elevated);
  box-shadow: 0 0 15px var(--accent-purple-glow);
  width: 280px;
}

.nav-search svg {
  position: absolute;
  top: 50%;
  right: 0.75rem;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  width: 16px;
  height: 16px;
}

/* Live Search Results Popup */
.search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 340px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  max-height: 380px;
  overflow-y: auto;
  z-index: 150;
  display: none;
}

.search-dropdown.show {
  display: block;
}

.search-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: var(--transition-fast);
}

.search-dropdown-item:hover {
  background: var(--bg-surface-elevated);
}

.search-dropdown-thumb {
  width: 40px;
  height: 55px;
  border-radius: 6px;
  object-fit: cover;
}

/* Theme Toggle Button */
.theme-toggle-btn, .mobile-toggle-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-glass-input);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.theme-toggle-btn:hover, .mobile-toggle-btn:hover {
  color: var(--text-primary);
  background: var(--bg-surface-elevated);
  border-color: var(--accent-purple);
}

.mobile-toggle-btn {
  display: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.92rem;
  transition: var(--transition-fast);
  text-align: center;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.55);
  transform: translateY(-1px);
}

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

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--text-secondary);
}

.btn-vip {
  background: var(--vip-gradient);
  color: #0b0c15;
  font-weight: 700;
  box-shadow: 0 4px 15px var(--vip-gold-glow);
}

.btn-vip:hover {
  box-shadow: 0 6px 25px rgba(245, 158, 11, 0.65);
  transform: translateY(-1px);
}

.btn-danger {
  background: var(--danger);
  color: #fff;
}

.btn-danger:hover {
  background: #dc2626;
}

.btn-sm {
  padding: 0.35rem 0.85rem;
  font-size: 0.82rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 0.85rem 2rem;
  font-size: 1.05rem;
  border-radius: var(--radius-lg);
}

/* User Menu Pill */
.user-menu-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 0.75rem 0.35rem 0.45rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-fast);
}

.user-menu-btn:hover {
  border-color: var(--accent-purple);
}

.user-avatar-sm {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--accent-purple);
  border: 1.5px solid var(--accent-purple);
}

.user-name-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  margin-bottom: 2.5rem;
  overflow: hidden;
}

.hero-backdrop-container {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-backdrop-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  filter: brightness(0.65) contrast(1.1);
  transition: transform 10s ease;
}

.hero-section:hover .hero-backdrop-img {
  transform: scale(1.03);
}

.hero-gradient-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, 
              var(--bg-main) 0%, 
              rgba(7, 8, 14, 0.85) 40%, 
              rgba(7, 8, 14, 0.3) 70%, 
              transparent 100%),
              linear-gradient(0deg, 
              var(--bg-main) 0%, 
              transparent 45%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 4rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.hero-badges {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.badge {
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.badge-vip {
  background: var(--vip-gradient);
  color: #0b0c15;
  box-shadow: 0 0 12px var(--vip-gold-glow);
}

.badge-free {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-rating {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-genre {
  background: rgba(139, 92, 246, 0.15);
  color: #a78bfa;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1.2;
  max-width: 700px;
  letter-spacing: -1px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.hero-description {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #cbd5e1;
  max-width: 620px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.75rem;
}

/* ==========================================================================
   CONTENT CONTAINERS & SECTIONS
   ========================================================================== */
.main-container {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 0 2rem 4rem;
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-indicator {
  width: 4px;
  height: 24px;
  background: linear-gradient(180deg, var(--accent-purple), var(--accent-blue));
  border-radius: var(--radius-full);
}

.section-title-wrap.vip-section .section-indicator {
  background: var(--vip-gradient);
}

.section-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
}

.section-count {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Movie Carousel / Grid */
.movies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 1.5rem;
}

.movies-row {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  padding: 0.5rem 0.25rem 1rem;
  scroll-snap-type: x mandatory;
}

.movies-row::-webkit-scrollbar {
  height: 6px;
}

/* Movie Card */
.movie-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  flex: 0 0 195px;
  scroll-snap-align: start;
}

.movie-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--border-focus);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.6), 0 0 20px var(--accent-purple-glow);
  z-index: 5;
}

.movie-card.vip-card:hover {
  border-color: var(--vip-gold);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.6), 0 0 20px var(--vip-gold-glow);
}

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

.poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.movie-card:hover .poster-img {
  transform: scale(1.08);
}

.poster-badges {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  z-index: 3;
}

.card-play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(7, 8, 14, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition-fast);
  backdrop-filter: blur(2px);
}

.play-icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px var(--accent-purple);
  transform: scale(0.8);
  transition: var(--transition-fast);
}

.play-icon-circle svg {
  width: 22px;
  height: 22px;
  fill: #ffffff;
}

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

.movie-card:hover .play-icon-circle {
  transform: scale(1);
}

.card-info {
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  background: var(--bg-surface);
  flex-grow: 1;
}

.card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.card-rating {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--vip-gold);
  font-weight: 700;
}

/* ==========================================================================
   SEARCH & FILTERS VIEW
   ========================================================================== */
.search-view-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.search-header-bar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  background: var(--bg-surface);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(16px);
}

.search-main-input {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-glass-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.75rem 1.25rem;
  transition: var(--transition-fast);
}

.search-main-input:focus-within {
  border-color: var(--border-focus);
  box-shadow: 0 0 20px var(--accent-purple-glow);
}

.search-main-input input {
  width: 100%;
  font-size: 1.05rem;
  color: var(--text-primary);
}

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

.filter-select {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.5rem 1rem;
  color: var(--text-primary);
  font-size: 0.88rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.filter-select:hover, .filter-select:focus {
  border-color: var(--accent-purple);
}

/* ==========================================================================
   VIP PRICING & PAYMENT PAGE
   ========================================================================== */
.vip-page-wrap {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.vip-hero-banner {
  text-align: center;
  padding: 3.5rem 2rem;
  background: radial-gradient(circle at center, rgba(245, 158, 11, 0.15) 0%, transparent 70%),
              var(--bg-surface);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-vip);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.vip-badge-lg {
  padding: 0.5rem 1.5rem;
  border-radius: var(--radius-full);
  background: var(--vip-gradient);
  color: #0b0c15;
  font-size: 1.1rem;
  font-weight: 800;
  box-shadow: 0 4px 20px var(--vip-gold-glow);
}

.vip-hero-title {
  font-size: 2.5rem;
  font-weight: 900;
  color: #ffffff;
}

.vip-hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
}

/* Pricing Grid */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 2rem;
  align-items: stretch;
}

.plan-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
  transition: var(--transition-normal);
}

.plan-card.vip-plan {
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.08) 0%, var(--bg-surface) 100%);
  border: 2px solid var(--vip-gold);
  box-shadow: 0 10px 30px var(--vip-gold-glow);
}

.plan-card.vip-plan::before {
  content: 'پێشنیازکراو';
  position: absolute;
  top: -14px;
  right: 2rem;
  background: var(--vip-gradient);
  color: #0b0c15;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.25rem 0.85rem;
  border-radius: var(--radius-full);
}

.plan-header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.plan-name {
  font-size: 1.5rem;
  font-weight: 800;
}

.plan-price {
  font-size: 2.2rem;
  font-weight: 900;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.plan-period {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: normal;
}

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  flex-grow: 1;
}

.plan-feature-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.plan-feature-item svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

.plan-feature-item.active {
  color: var(--text-primary);
  font-weight: 600;
}

.plan-feature-item.active svg {
  color: var(--success);
}

.plan-feature-item.vip-active svg {
  color: var(--vip-gold);
}

/* Payment Form Card */
.payment-flow-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

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

.qi-brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.qi-logo-img {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: #ffcc00;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: #000;
  font-size: 1.1rem;
}

.qr-code-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem;
  background: #ffffff;
  border-radius: var(--radius-md);
  max-width: 240px;
  margin: 0 auto;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.qr-img {
  width: 200px;
  height: 200px;
  object-fit: contain;
}

.payment-instructions-text {
  background: var(--bg-glass-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

/* ==========================================================================
   VIDEO PLAYER & STREAMING VIEW
   ========================================================================== */
.player-page-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.player-main-card {
  background: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  aspect-ratio: 16 / 9;
  max-height: 78vh;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-subtle);
}

.video-element {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #000;
}

/* Player Custom Controls Overlay */
.player-controls-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
  padding: 1.5rem 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 10;
}

.player-main-card:hover .player-controls-overlay,
.player-main-card.paused .player-controls-overlay {
  opacity: 1;
}

.progress-bar-container {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  cursor: pointer;
  position: relative;
  transition: height 0.15s ease;
}

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

.progress-bar-fill {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, var(--accent-purple), var(--accent-blue));
  border-radius: var(--radius-full);
}

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

.controls-group {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.player-btn {
  color: #ffffff;
  padding: 0.35rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.player-btn:hover {
  color: var(--accent-purple);
  transform: scale(1.15);
}

.time-display {
  font-size: 0.85rem;
  font-family: var(--font-brand);
  color: #cbd5e1;
  direction: ltr;
}

.quality-badge-select {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 0.2rem 0.6rem;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

/* Limit Block Overlay */
.player-limit-overlay {
  position: absolute;
  inset: 0;
  background: rgba(7, 8, 14, 0.95);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  padding: 2rem;
  text-align: center;
  z-index: 20;
}

.limit-warning-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.15);
  border: 2px solid var(--vip-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--vip-gold);
  box-shadow: 0 0 25px var(--vip-gold-glow);
}

/* ==========================================================================
   MOVIE DETAILS MODAL / PAGE
   ========================================================================== */
.details-backdrop-hero {
  position: relative;
  min-height: 450px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
}

.details-backdrop-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4) contrast(1.1);
}

.details-overlay-grad {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, var(--bg-surface) 0%, rgba(14, 16, 27, 0.6) 60%, transparent 100%);
}

.details-hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 2rem;
  align-items: flex-end;
  width: 100%;
}

.details-poster-box {
  flex-shrink: 0;
  width: 200px;
  aspect-ratio: 2 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--border-subtle);
}

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

.details-info-box {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex-grow: 1;
}

.details-cast-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 1rem;
}

.cast-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  padding: 0.75rem;
  background: var(--bg-surface-elevated);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.cast-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-surface);
}

/* Reviews Section */
.reviews-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.review-form-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.rating-stars-input {
  display: flex;
  gap: 0.4rem;
  direction: ltr;
}

.star-btn {
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.5rem;
  transition: var(--transition-fast);
}

.star-btn.active, .star-btn:hover {
  color: var(--vip-gold);
  transform: scale(1.15);
}

.review-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* ==========================================================================
   SERIES & EPISODES VIEW
   ========================================================================== */
.season-tabs {
  display: flex;
  gap: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.75rem;
  overflow-x: auto;
}

.season-tab-btn {
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-weight: 700;
  transition: var(--transition-fast);
}

.season-tab-btn.active {
  background: var(--accent-purple);
  color: #fff;
  border-color: var(--accent-purple);
  box-shadow: 0 0 15px var(--accent-purple-glow);
}

.episodes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.episode-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
}

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

.episode-thumb-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--bg-surface-elevated);
}

.episode-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.episode-info {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

/* ==========================================================================
   ADMIN DASHBOARD
   ========================================================================== */
.admin-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
}

.stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  position: relative;
  overflow: hidden;
}

.stat-card.vip-stat {
  border-color: rgba(245, 158, 11, 0.35);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.05) 0%, var(--bg-surface) 100%);
}

.stat-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  background: rgba(139, 92, 246, 0.15);
  color: var(--accent-purple);
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-card.vip-stat .stat-icon {
  background: rgba(245, 158, 11, 0.15);
  color: var(--vip-gold);
}

.stat-data {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  font-family: var(--font-brand);
}

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

.admin-nav-tabs {
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.5rem;
  overflow-x: auto;
}

.admin-tab-btn {
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-fast);
}

.admin-tab-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.admin-tab-btn.active {
  background: var(--accent-purple);
  color: #fff;
  box-shadow: 0 0 15px var(--accent-purple-glow);
}

/* Data Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: right;
}

.data-table th {
  padding: 1rem;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text-secondary);
  background: var(--bg-surface-elevated);
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.data-table td {
  padding: 0.85rem 1rem;
  font-size: 0.88rem;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
}

.data-table tr:last-child td {
  border-bottom: none;
}

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

/* Forms */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

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

.form-input, .form-textarea, .form-select {
  background: var(--bg-glass-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.65rem 1rem;
  color: var(--text-primary);
  font-size: 0.92rem;
  transition: var(--transition-fast);
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--border-focus);
  background: var(--bg-surface-elevated);
  box-shadow: 0 0 15px var(--accent-purple-glow);
}

.form-textarea {
  resize: vertical;
  min-height: 90px;
}

/* ==========================================================================
   MODALS, TOASTS & NOTIFICATIONS
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  transform: scale(0.95);
  transition: transform 0.25s ease;
}

.modal-overlay.active .modal-card {
  transform: scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 800;
}

.modal-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

/* Toast Container */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 999;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: var(--shadow-md);
  font-size: 0.9rem;
  font-weight: 600;
  animation: toastSlideIn 0.3s ease;
  max-width: 380px;
}

.toast.toast-success {
  border-color: var(--success);
  color: #a7f3d0;
}

.toast.toast-error {
  border-color: var(--danger);
  color: #fca5a5;
}

.toast.toast-vip {
  border-color: var(--vip-gold);
  color: #fde68a;
  box-shadow: 0 0 20px var(--vip-gold-glow);
}

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

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  margin-top: auto;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: 3.5rem 2rem 2rem;
}

.footer-container {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 2.5rem;
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 340px;
}

.footer-col-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

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

.footer-link {
  font-size: 0.88rem;
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.footer-link:hover {
  color: var(--accent-purple);
  padding-right: 4px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.5rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 1rem;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.social-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.social-icon-btn:hover {
  color: #fff;
  background: var(--accent-purple);
  border-color: var(--accent-purple);
}

/* ==========================================================================
   MODAL & TOAST NOTIFICATIONS (Cinematic Glassmorphism)
   ========================================================================== */
.modal-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(3, 5, 12, 0.88) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  z-index: 99999 !important;
  display: none;
  align-items: center !important;
  justify-content: center !important;
  padding: 1.5rem !important;
  opacity: 0;
  transition: opacity 0.25s ease !important;
}

.modal-overlay.active {
  display: flex !important;
  opacity: 1 !important;
}

.modal-card {
  background: var(--bg-surface) !important;
  border: 1px solid var(--border-subtle) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.9), 0 0 35px rgba(139, 92, 246, 0.25) !important;
  width: 100% !important;
  max-width: 720px !important;
  max-height: 90vh !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  position: relative !important;
  animation: modalPopAnim 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

@keyframes modalPopAnim {
  0% {
    transform: scale(0.92) translateY(25px);
    opacity: 0;
  }
  100% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.modal-header {
  padding: 1.25rem 1.75rem !important;
  border-bottom: 1px solid var(--border-subtle) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  background: var(--bg-surface-elevated) !important;
}

.modal-title {
  font-size: 1.25rem !important;
  font-weight: 800 !important;
  color: var(--text-primary) !important;
}

.modal-body {
  padding: 1.75rem !important;
  overflow-y: auto !important;
  flex: 1 !important;
}

.modal-footer {
  padding: 1.25rem 1.75rem !important;
  border-top: 1px solid var(--border-subtle) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 0.75rem !important;
  background: var(--bg-surface-elevated) !important;
}

/* Toast Container & Notification Cards */
.toast-container {
  position: fixed !important;
  bottom: 2rem !important;
  left: 2rem !important;
  z-index: 999999 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.75rem !important;
  pointer-events: none !important;
}

.toast {
  pointer-events: auto !important;
  min-width: 280px !important;
  max-width: 440px !important;
  padding: 0.9rem 1.25rem !important;
  border-radius: var(--radius-md) !important;
  font-size: 0.92rem !important;
  font-weight: 600 !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6) !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.75rem !important;
  direction: rtl !important;
  text-align: right !important;
  animation: toastSlideAnim 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

@keyframes toastSlideAnim {
  0% {
    transform: translateY(30px) scale(0.95);
    opacity: 0;
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.toast-info {
  background: #1e293b !important;
  border: 1px solid rgba(59, 130, 246, 0.5) !important;
  color: #93c5fd !important;
}

.toast-success {
  background: #064e3b !important;
  border: 1px solid rgba(16, 185, 129, 0.5) !important;
  color: #6ee7b7 !important;
}

.toast-error {
  background: #7f1d1d !important;
  border: 1px solid rgba(239, 68, 68, 0.5) !important;
  color: #fca5a5 !important;
}

.toast-vip {
  background: linear-gradient(135deg, #78350f, #451a03) !important;
  border: 1px solid rgba(245, 158, 11, 0.7) !important;
  color: #fde68a !important;
  box-shadow: 0 10px 30px rgba(245, 158, 11, 0.3) !important;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 2.5rem;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .mobile-toggle-btn {
    display: flex;
  }
  .nav-search {
    display: none;
  }
  .hero-section {
    min-height: 65vh;
  }
  .hero-title {
    font-size: 1.85rem;
  }
  .details-hero-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .details-info-box {
    align-items: center;
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
  .movies-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
  }
  .movie-card {
    flex: 0 0 160px;
  }
}
