/* ============================================================
   CineStream Design System — CSS Custom Properties & Utilities
   Based on CineStream UI Kit: Dark Cinematic + Glassmorphism
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700;800;900&family=Inter:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200&display=swap');

/* ── Color Tokens ── */
:root {
  --c-background: #0e0e0e;
  --c-surface: #131313;
  --c-surface-dim: #131313;
  --c-surface-low: #1c1b1b;
  --c-surface-container: #201f1f;
  --c-surface-high: #2a2a2a;
  --c-surface-highest: #353534;
  --c-surface-bright: #3a3939;

  --c-primary: #ffb4aa;
  --c-primary-container: #e50914;
  --c-on-primary: #690003;
  --c-on-primary-container: #fff7f6;
  --c-inverse-primary: #c0000c;

  --c-secondary: #a6e6ff;
  --c-secondary-container: #14d1ff;
  --c-on-secondary: #003543;
  --c-on-secondary-container: #00566b;

  --c-tertiary: #c8c6c5;
  --c-tertiary-container: #737272;

  --c-on-surface: #e5e2e1;
  --c-on-surface-variant: #e9bcb6;

  --c-outline: #af8782;
  --c-outline-variant: #5e3f3b;

  --c-error: #ffb4ab;
  --c-error-container: #93000a;

  /* Glow colors */
  --glow-red: rgba(229, 9, 20, 0.35);
  --glow-blue: rgba(20, 209, 255, 0.25);
  --glow-red-soft: rgba(229, 9, 20, 0.15);
  --glow-blue-soft: rgba(20, 209, 255, 0.12);

  /* Spacing */
  --space-unit: 8px;
  --space-margin-desktop: 64px;
  --space-margin-mobile: 20px;
  --space-gutter-desktop: 24px;
  --space-gutter-mobile: 16px;
  --space-container-max: 1440px;

  /* Radii */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 16px;
  --r-2xl: 24px;
  --r-full: 9999px;

  /* Transitions */
  --t-fast: 150ms ease;
  --t-normal: 280ms cubic-bezier(0.4, 0, 0.2, 1);
  --t-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Z-index layers */
  --z-base: 0;
  --z-content: 10;
  --z-nav: 50;
  --z-modal: 100;
  --z-toast: 200;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--c-background);
  color: var(--c-on-surface);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  min-height: 100vh;
}

img {
  display: block;
  max-width: 100%;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

input, textarea, select {
  font-family: inherit;
}

/* ── Typography Scale ── */
.text-display-lg {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.text-display-md {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.text-headline-lg {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  line-height: 1.25;
}

.text-headline-md {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(20px, 2.5vw, 24px);
  font-weight: 700;
  line-height: 1.33;
}

.text-headline-sm {
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
}

.text-body-lg {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
}

.text-body-md {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}

.text-body-sm {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
}

.text-label-lg {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.text-label-md {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.04em;
}

.text-label-sm {
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ── Color Utilities ── */
.text-primary { color: var(--c-primary); }
.text-primary-container { color: var(--c-primary-container); }
.text-secondary { color: var(--c-secondary); }
.text-secondary-container { color: var(--c-secondary-container); }
.text-on-surface { color: var(--c-on-surface); }
.text-on-surface-variant { color: var(--c-on-surface-variant); }
.text-muted { color: rgba(229, 226, 225, 0.5); }
.text-error { color: var(--c-error); }

.bg-primary-container { background-color: var(--c-primary-container); }
.bg-secondary-container { background-color: var(--c-secondary-container); }
.bg-surface { background-color: var(--c-surface); }
.bg-surface-container { background-color: var(--c-surface-container); }

/* ── Glass Morphism ── */
.glass {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-dark {
  background: rgba(20, 19, 19, 0.6);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.glass-card {
  background: rgba(42, 42, 42, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--r-xl);
  transition: box-shadow var(--t-normal), transform var(--t-normal), border-color var(--t-normal);
}

.glass-card:hover {
  border-color: rgba(20, 209, 255, 0.25);
  box-shadow: 0 0 40px rgba(20, 209, 255, 0.08);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 12px 28px;
  border-radius: var(--r-sm);
  transition: all var(--t-normal);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  cursor: pointer;
  border: none;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--c-primary-container);
  color: #ffffff;
  box-shadow: 0 4px 24px var(--glow-red);
}

.btn-primary:hover {
  filter: brightness(1.12);
  box-shadow: 0 6px 32px var(--glow-red);
  transform: translateY(-1px);
}

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

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--c-on-surface);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.btn-secondary-outline {
  background: transparent;
  color: var(--c-secondary-container);
  border: 1.5px solid var(--c-secondary-container);
}

.btn-secondary-outline:hover {
  background: rgba(20, 209, 255, 0.1);
  box-shadow: 0 0 20px var(--glow-blue);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 12px;
}

.btn-lg {
  padding: 16px 40px;
  font-size: 16px;
}

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--c-on-surface);
}

.btn-icon:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* ── Inputs ── */
.input-field {
  width: 100%;
  background: rgba(30, 29, 29, 0.8);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r-sm);
  color: var(--c-on-surface);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  padding: 14px 16px;
  outline: none;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  -webkit-appearance: none;
}

.input-field::placeholder {
  color: rgba(229, 226, 225, 0.35);
}

.input-field:focus {
  border-color: var(--c-secondary-container);
  box-shadow: 0 0 0 3px rgba(20, 209, 255, 0.12), 0 0 20px rgba(20, 209, 255, 0.08);
}

.input-field.error {
  border-color: var(--c-error);
  box-shadow: 0 0 0 3px rgba(255, 180, 171, 0.15);
}

.input-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(229, 226, 225, 0.5);
  margin-bottom: 6px;
}

/* ── Cards ── */
.poster-card {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.07);
  cursor: pointer;
  transition: transform var(--t-normal), border-color var(--t-normal), box-shadow var(--t-normal);
  aspect-ratio: 2/3;
}

.poster-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}

.poster-card:hover {
  transform: scale(1.05) translateY(-4px);
  border-color: rgba(20, 209, 255, 0.4);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(20, 209, 255, 0.15);
}

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

.poster-card .card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0) 55%);
  opacity: 0;
  transition: opacity var(--t-normal);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 14px;
}

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

.video-card {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.07);
  cursor: pointer;
  transition: transform var(--t-normal), box-shadow var(--t-normal);
  aspect-ratio: 16/9;
}

.video-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  transition: opacity var(--t-normal), transform var(--t-slow);
}

.video-card:hover {
  transform: scale(1.03);
  box-shadow: 0 20px 60px rgba(0,0,0,0.7);
}

.video-card:hover img {
  opacity: 1;
  transform: scale(1.05);
}

/* ── Progress Bar ── */
.progress-bar {
  height: 3px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--r-full);
  overflow: hidden;
}

.progress-bar .progress-fill {
  height: 100%;
  background: var(--c-secondary-container);
  border-radius: var(--r-full);
  transition: width var(--t-normal);
}

/* ── Badge / Pill ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--r-full);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.badge-red {
  background: rgba(229, 9, 20, 0.2);
  color: #ff6b6b;
  border: 1px solid rgba(229, 9, 20, 0.4);
}

.badge-blue {
  background: rgba(20, 209, 255, 0.12);
  color: var(--c-secondary-container);
  border: 1px solid rgba(20, 209, 255, 0.25);
}

.badge-gold {
  background: rgba(255, 200, 50, 0.12);
  color: #ffc832;
  border: 1px solid rgba(255, 200, 50, 0.3);
}

.badge-green {
  background: rgba(50, 220, 120, 0.12);
  color: #32dc78;
  border: 1px solid rgba(50, 220, 120, 0.3);
}

.genre-chip {
  display: inline-block;
  padding: 5px 14px;
  border-radius: var(--r-full);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  font-size: 12px;
  font-weight: 500;
  color: var(--c-on-surface-variant);
  transition: all var(--t-fast);
  cursor: pointer;
  white-space: nowrap;
}

.genre-chip:hover,
.genre-chip.active {
  background: rgba(20, 209, 255, 0.12);
  border-color: rgba(20, 209, 255, 0.4);
  color: var(--c-secondary-container);
}

/* ── Navbar ── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-margin-desktop);
  z-index: var(--z-nav);
  background: rgba(13, 13, 13, 0.75);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background var(--t-normal);
}

.navbar.scrolled {
  background: rgba(13, 13, 13, 0.95);
}

.navbar-logo {
  font-family: 'Montserrat', sans-serif;
  font-size: 28px;
  font-weight: 900;
  color: var(--c-primary-container);
  letter-spacing: -0.03em;
  cursor: pointer;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.navbar-nav a {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: rgba(229, 226, 225, 0.65);
  transition: color var(--t-fast);
  position: relative;
}

.navbar-nav a:hover,
.navbar-nav a.active {
  color: var(--c-on-surface);
}

.navbar-nav a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--c-primary-container);
  border-radius: var(--r-full);
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--r-full);
  padding: 8px 16px;
  transition: all var(--t-normal);
}

.search-bar:focus-within {
  border-color: rgba(20, 209, 255, 0.4);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 0 20px rgba(20, 209, 255, 0.1);
}

.search-bar input {
  background: none;
  border: none;
  outline: none;
  color: var(--c-on-surface);
  font-size: 14px;
  width: 160px;
}

.search-bar input::placeholder {
  color: rgba(229, 226, 225, 0.35);
}

.avatar-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--r-full);
  overflow: hidden;
  border: 2px solid rgba(229, 9, 20, 0.6);
  cursor: pointer;
  transition: transform var(--t-fast), border-color var(--t-fast);
}

.avatar-btn:hover {
  transform: scale(1.08);
  border-color: var(--c-primary-container);
}

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

/* ── Mobile Bottom Nav ── */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  z-index: var(--z-nav);
  background: rgba(13, 13, 13, 0.9);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  align-items: center;
  justify-content: space-around;
  padding: 0 8px;
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  border-radius: var(--r-md);
  color: rgba(229, 226, 225, 0.5);
  transition: color var(--t-fast), background var(--t-fast);
  cursor: pointer;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.mobile-nav-item.active,
.mobile-nav-item:hover {
  color: var(--c-primary-container);
}

.mobile-nav-item .material-symbols-outlined {
  font-size: 22px;
}

/* ── Hero Section ── */
.hero {
  position: relative;
  width: 100%;
  height: 90vh;
  min-height: 580px;
  max-height: 900px;
  overflow: hidden;
}

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

.hero-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    0deg,
    var(--c-background) 0%,
    rgba(14, 14, 14, 0.75) 40%,
    rgba(14, 14, 14, 0.2) 100%
  );
}

.hero-gradient-side {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    var(--c-background) 0%,
    rgba(14, 14, 14, 0.7) 50%,
    transparent 100%
  );
}

.hero-content {
  position: relative;
  z-index: 10;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 var(--space-margin-desktop) 80px;
  max-width: var(--space-container-max);
  margin: 0 auto;
}

/* ── Content Sections ── */
.section {
  padding: 40px var(--space-margin-desktop);
  max-width: var(--space-container-max);
  margin: 0 auto;
}

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

.section-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--c-on-surface);
}

.section-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--c-secondary-container);
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: color var(--t-fast);
}

.section-link:hover {
  color: var(--c-secondary);
  text-decoration: underline;
}

/* ── Scroll Row ── */
.scroll-row {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 12px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.scroll-row::-webkit-scrollbar {
  display: none;
}

/* ── Grid Layouts ── */
.poster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}

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

/* ── Subscription Plans ── */
.plan-card {
  position: relative;
  background: var(--c-surface-container);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--r-xl);
  padding: 32px;
  transition: all var(--t-normal);
  overflow: hidden;
}

.plan-card:hover {
  border-color: rgba(20, 209, 255, 0.3);
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(20,209,255,0.1);
}

.plan-card.featured {
  border-color: var(--c-primary-container);
  background: linear-gradient(145deg, #1e1414, #201f1f);
}

.plan-card.featured::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  height: 3px;
  background: linear-gradient(90deg, var(--c-primary-container), #ff6b6b);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
}

.plan-card.featured:hover {
  border-color: rgba(229, 9, 20, 0.6);
  box-shadow: 0 24px 60px rgba(0,0,0,0.5), 0 0 40px rgba(229,9,20,0.12);
}

/* ── Footer ── */
.footer {
  background: var(--c-surface);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 48px var(--space-margin-desktop) 80px;
}

/* ── Material Symbols ── */
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  user-select: none;
}

.icon-fill { font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24; }

/* ── Toast Notifications ── */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  background: var(--c-surface-high);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r-md);
  padding: 14px 20px;
  min-width: 280px;
  max-width: 360px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  pointer-events: all;
  animation: toast-in 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.toast.toast-success { border-left: 3px solid #32dc78; }
.toast.toast-error { border-left: 3px solid var(--c-error); }
.toast.toast-info { border-left: 3px solid var(--c-secondary-container); }

@keyframes toast-in {
  from { opacity: 0; transform: translateX(60px) scale(0.95); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}

/* ── Modal ── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fade-in 0.25s ease;
}

.modal {
  background: var(--c-surface-high);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r-xl);
  padding: 32px;
  max-width: 480px;
  width: 100%;
  position: relative;
  animation: modal-in 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modal-in {
  from { opacity: 0; transform: scale(0.9) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* ── Page Transitions ── */
.page-container {
  animation: page-in 0.35s ease;
}

@keyframes page-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Loader ── */
.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--c-primary-container);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.page-loader {
  position: fixed;
  inset: 0;
  background: var(--c-background);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity var(--t-slow);
}

.page-loader.hidden {
  opacity: 0;
  pointer-events: none;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--c-surface);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* ── Divider ── */
.divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  margin: 24px 0;
}

/* ── Skeleton Loading ── */
.skeleton {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.04) 25%,
    rgba(255, 255, 255, 0.08) 50%,
    rgba(255, 255, 255, 0.04) 75%
  );
  background-size: 200% 100%;
  animation: skeleton-pulse 1.8s ease-in-out infinite;
  border-radius: var(--r-md);
}

@keyframes skeleton-pulse {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Rating Stars ── */
.star-rating {
  display: flex;
  align-items: center;
  gap: 2px;
  color: #ffc832;
  font-size: 14px;
}

/* ── Auth Page Specific ── */
.auth-backdrop {
  position: fixed;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.3) saturate(0.8);
  z-index: 0;
}

.auth-overlay {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, rgba(14,14,14,0.9) 0%, rgba(14,14,14,0.6) 100%);
  z-index: 1;
}

.auth-card {
  position: relative;
  z-index: 10;
  background: rgba(25, 24, 24, 0.85);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r-xl);
  padding: 40px;
  width: 100%;
  max-width: 440px;
}

/* ── Tab Switcher ── */
.tabs {
  display: flex;
  gap: 0;
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--r-sm);
  padding: 4px;
  margin-bottom: 28px;
}

.tab-btn {
  flex: 1;
  padding: 10px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(229, 226, 225, 0.5);
  border-radius: 4px;
  transition: all var(--t-fast);
  letter-spacing: 0.03em;
}

.tab-btn.active {
  background: var(--c-primary-container);
  color: #ffffff;
  box-shadow: 0 2px 12px rgba(229, 9, 20, 0.4);
}

/* ── Google Auth Button ── */
.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 13px 24px;
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--r-sm);
  color: var(--c-on-surface);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--t-normal);
}

.btn-google:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

/* ── Gift Code Input ── */
.gift-code-input {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.gift-code-input .input-field {
  flex: 1;
  font-family: 'Montserrat', monospace;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-align: center;
}

/* ── Neon Glow Effects ── */
.glow-red {
  box-shadow: 0 0 30px var(--glow-red), 0 0 60px var(--glow-red-soft);
}

.glow-blue {
  box-shadow: 0 0 30px var(--glow-blue), 0 0 60px var(--glow-blue-soft);
}

/* ── Vertical Centering ── */
.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Truncation ── */
.line-clamp-1 { -webkit-line-clamp: 1; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-2 { -webkit-line-clamp: 2; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-3 { -webkit-line-clamp: 3; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
