/* =========================================================
   DODOSMSM DESIGN SYSTEM
   High-Key Pastel Aesthetic • Baby Blue & Warm Off-White
   Colors: Baby Blue (#38bdf8 / #7dd3fc), Muted Dusty Coral (#f27280),
   Warm Off-White (#f6f5f1 / #faf8f5), Slate Charcoal (#1e293b)
========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  /* Pastel Baby Blue & Brand Colors */
  --primary: #38bdf8; /* Vibrant Pastel Baby Blue */
  --primary-hover: #0284c7;
  --primary-light: #e0f2fe; /* Soft Baby Blue Tint */
  --primary-gradient: linear-gradient(135deg, #7dd3fc 0%, #38bdf8 100%);
  --baby-blue: #7dd3fc;
  --baby-blue-subtle: #f0f9ff;

  --accent: #f27280; /* Muted Dusty Coral */
  --accent-hover: #e05d6c;
  --accent-light: #fff1f2;
  --accent-gradient: linear-gradient(135deg, #f27280 0%, #fb7185 100%);

  --brand-gradient: linear-gradient(135deg, #38bdf8 0%, #f27280 100%);
  --brand-gradient-subtle: linear-gradient(135deg, rgba(56, 189, 248, 0.12) 0%, rgba(242, 114, 128, 0.12) 100%);

  /* Backgrounds & Surfaces (Warm Textured Off-White) */
  --bg: #f5f4f0; /* Warm Organic Off-White */
  --bg-subtle: #edece7;
  --bg-mesh: radial-gradient(at 10% 10%, rgba(56, 189, 248, 0.08) 0px, transparent 50%),
             radial-gradient(at 90% 90%, rgba(242, 114, 128, 0.06) 0px, transparent 50%),
             #f5f4f0;

  --surface: #faf9f6; /* Warm Off-White Card Surface */
  --surface-alt: #f0eee9;
  --surface-hover: #f3f1ec;
  --surface-glass: rgba(250, 249, 246, 0.88);

  /* Typography & Text */
  --text: #1e293b; /* Slate Charcoal */
  --text-heading: #0f172a;
  --text-dim: #64748b; /* Muted Slate Gray */
  --text-muted: #94a3b8;
  --text-inverse: #ffffff;

  /* Borders & Shadows */
  --border: rgba(148, 163, 184, 0.22);
  --border-subtle: rgba(148, 163, 184, 0.14);
  --border-focus: rgba(56, 189, 248, 0.5);

  --shadow-xs: 0 1px 3px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 12px 28px -6px rgba(15, 23, 42, 0.07), 0 6px 12px -4px rgba(15, 23, 42, 0.03);
  --shadow-lg: 0 20px 40px -12px rgba(15, 23, 42, 0.09), 0 10px 18px -6px rgba(15, 23, 42, 0.04);
  --shadow-pastel: 0 14px 30px rgba(56, 189, 248, 0.18);
  --shadow-coral: 0 14px 30px rgba(242, 114, 128, 0.18);

  /* Radii */
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  /* Transitions */
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  background-image: var(--bg-mesh);
  background-attachment: fixed;
  color: var(--text);
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.55;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: rgba(56, 189, 248, 0.45);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

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

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

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

/* Skeletons */
.skeleton {
  position: relative;
  overflow: hidden;
  background: #e7e5df !important;
  border-color: transparent !important;
}

.skeleton::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  animation: shimmer 1.6s infinite ease-in-out;
  z-index: 2;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* =========================================================
   NAVIGATION BAR
========================================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(246, 245, 241, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s var(--ease-smooth);
}

.nav-container {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 32px;
  gap: 24px;
}

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

/* Brand Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.6px;
  color: var(--text-heading);
  transition: transform 0.2s var(--ease-smooth);
}

.logo:hover {
  transform: translateY(-1px);
}

.logo-badge {
  background: var(--brand-gradient);
  color: white;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.3);
  letter-spacing: 0.5px;
}

.logo span.logo-text {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all 0.2s var(--ease-smooth);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-link:hover {
  color: var(--primary);
  background: var(--primary-light);
}

.nav-link.active {
  color: #0284c7;
  background: var(--primary-light);
  font-weight: 700;
}

/* Nav Right & Search */
.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  justify-content: flex-end;
}

.search-form {
  position: relative;
  width: 100%;
  max-width: 340px;
  flex-shrink: 1;
}

#auth-section {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  white-space: nowrap;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.search-icon {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  pointer-events: none;
  transition: color 0.2s var(--ease-smooth);
}

.search-input-wrapper input {
  width: 100%;
  padding: 10px 16px 10px 42px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  outline: none;
  box-shadow: var(--shadow-xs);
  transition: all 0.25s var(--ease-smooth);
}

.search-input-wrapper input::placeholder {
  color: var(--text-muted);
}

.search-input-wrapper input:focus {
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.18), var(--shadow-sm);
}

.search-input-wrapper input:focus ~ .search-icon {
  color: var(--primary);
}

/* Search Dropdown */
.search-results-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  z-index: 2000;
  display: none;
  box-shadow: var(--shadow-lg);
  max-height: 420px;
  overflow-y: auto;
  animation: slideDown 0.2s var(--ease-smooth);
}

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

.search-results-dropdown.visible {
  display: block;
}

.suggestion-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  cursor: pointer;
  transition: background 0.15s ease;
  color: var(--text);
  border-bottom: 1px solid var(--border-subtle);
}

.suggestion-item:hover {
  background: var(--primary-light);
}

.suggestion-item img {
  width: 38px;
  height: 56px;
  object-fit: cover;
  border-radius: var(--radius-xs);
  background: var(--bg-subtle);
  flex-shrink: 0;
}

.suggestion-info {
  flex: 1;
  min-width: 0;
}

.suggestion-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-heading);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.suggestion-meta {
  font-size: 12px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 6px;
}

.suggestion-type-badge {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(56, 189, 248, 0.18);
  color: #0284c7;
}

.search-btn-all {
  display: block;
  padding: 12px;
  text-align: center;
  background: var(--bg-subtle);
  color: #0284c7;
  font-weight: 700;
  font-size: 13px;
  transition: background 0.2s ease;
}

.search-btn-all:hover {
  background: var(--primary-light);
}

/* Auth Pill & Buttons */
.auth-btn-primary {
  background: var(--brand-gradient);
  color: #ffffff;
  padding: 9px 20px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 13.5px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.3);
  transition: all 0.25s var(--ease-smooth);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.auth-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(56, 189, 248, 0.4);
}

.auth-user-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 14px 5px 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 13.5px;
  color: var(--text-heading);
  box-shadow: var(--shadow-xs);
  transition: all 0.2s var(--ease-smooth);
  text-decoration: none;
}

.auth-user-pill:hover {
  border-color: var(--primary);
  background: var(--primary-light);
  transform: translateY(-1px);
}

.user-avatar-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand-gradient);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  box-shadow: 0 2px 8px rgba(56, 189, 248, 0.35);
}

.btn-extension-nav {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-heading);
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  box-shadow: var(--shadow-xs);
  transition: all 0.25s var(--ease-smooth);
  white-space: nowrap;
}

.btn-extension-nav svg {
  color: var(--primary);
  transition: transform 0.2s ease;
}

.btn-extension-nav:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: #0284c7;
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn-extension-nav:hover svg {
  transform: translateY(1px);
}

/* Mobile App Download Nav Button */
.btn-app-nav {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 15px;
  border-radius: var(--radius-full);
  background: var(--brand-gradient);
  color: #ffffff;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  box-shadow: 0 3px 12px rgba(56, 189, 248, 0.28);
  transition: all 0.25s var(--ease-smooth);
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-app-nav svg {
  color: #ffffff;
  transition: transform 0.2s ease;
}

.btn-app-nav:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(56, 189, 248, 0.42);
  color: #ffffff;
}

.btn-app-nav:hover svg {
  transform: scale(1.1);
}

/* App Download Banner (Home & Promotional) */
.app-download-banner {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #0f172a 100%);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: var(--radius-xl);
  padding: 40px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 10px 30px rgba(56, 189, 248, 0.12);
  margin-top: 10px;
}

.app-download-banner::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.app-download-banner::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: 20%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(242, 114, 128, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.app-download-content {
  max-width: 580px;
  z-index: 2;
}

.app-download-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #7dd3fc;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
}

.app-download-title {
  font-size: 28px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.app-download-title span {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.app-download-subtitle {
  font-size: 14.5px;
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 24px;
}

.app-download-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-app-download-large {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--brand-gradient);
  color: #ffffff;
  padding: 12px 26px;
  border-radius: var(--radius-full);
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.35);
  transition: all 0.25s var(--ease-smooth);
}

.btn-app-download-large:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 25px rgba(56, 189, 248, 0.45);
  color: #ffffff;
}

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

.btn-subtext {
  font-size: 11px;
  font-weight: 600;
  opacity: 0.9;
  line-height: 1.1;
}

.btn-maintext {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
}

.app-download-badge-art {
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-phone-mockup {
  width: 170px;
  height: 220px;
  background: linear-gradient(145deg, #1e293b, #0f172a);
  border: 3px solid rgba(255, 255, 255, 0.15);
  border-radius: 28px;
  padding: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(56, 189, 248, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-4deg);
  transition: transform 0.3s ease;
}

.app-phone-mockup:hover {
  transform: rotate(0deg) scale(1.05);
}

.phone-screen-inner {
  width: 100%;
  height: 100%;
  background: #090d16;
  border-radius: 18px;
  border: 1px solid rgba(56, 189, 248, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  text-align: center;
}

.mockup-logo-badge {
  background: var(--brand-gradient);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  font-size: 14px;
  font-weight: 800;
}

.mockup-logo-text {
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.mockup-chip {
  font-size: 10px;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  padding: 3px 8px;
  border-radius: var(--radius-full);
  margin-top: 4px;
}

@media (max-width: 768px) {
  .app-download-banner {
    flex-direction: column;
    padding: 28px 20px;
    text-align: center;
  }
  .app-download-content { max-width: 100%; }
  .app-download-actions { justify-content: center; }
  .app-phone-mockup { width: 140px; height: 180px; transform: none; }
}

.btn-signout-nav {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  color: var(--text-dim);
  padding: 7px 14px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 12.5px;
  cursor: pointer;
  transition: all 0.2s var(--ease-smooth);
}

.btn-signout-nav:hover {
  background: var(--accent-light);
  color: var(--accent);
  border-color: rgba(242, 114, 128, 0.3);
}

.btn-create-user-nav {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.15) 0%, rgba(14, 165, 233, 0.15) 100%);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #0284c7;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 12.5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s var(--ease-smooth);
}

.btn-create-user-nav:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.3);
  transform: translateY(-1px);
}

/* =========================================================
   CARDS & GRIDS
========================================================= */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 24px;
  padding: 20px 0 40px;
}

.card, .movie-card {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: all 0.35s var(--ease-smooth);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  text-decoration: none;
  color: var(--text);
}

.card:hover, .movie-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg), var(--shadow-pastel);
  border-color: rgba(56, 189, 248, 0.45);
}

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

.card-img-wrap img, .card img, .movie-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-smooth);
}

.card:hover img, .movie-card:hover img {
  transform: scale(1.06);
}

/* Card Floating Badges */
.card-badge-rating {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(250, 249, 246, 0.95);
  backdrop-filter: blur(8px);
  color: #b45309; /* Warm Amber */
  font-weight: 800;
  font-size: 11.5px;
  padding: 4px 8px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  z-index: 3;
}

.card-badge-type {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--brand-gradient);
  color: white;
  font-weight: 800;
  font-size: 10.5px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  z-index: 3;
  letter-spacing: 0.5px;
}

/* Card Hover Overlay */
.card-overlay, .movie-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.5) 45%, transparent 80%);
  opacity: 0;
  transition: opacity 0.3s var(--ease-smooth);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  z-index: 2;
  color: #ffffff;
}

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

.card-title, .movie-title {
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #ffffff;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  margin-top: 4px;
}

.play-btn {
  margin-top: 10px;
  border: none;
  background: var(--brand-gradient);
  color: white;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 12.5px;
  cursor: pointer;
  width: 100%;
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.3);
  transition: transform 0.2s ease, filter 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.play-btn:hover {
  transform: scale(1.02);
  filter: brightness(1.08);
}

/* =========================================================
   PAGINATION
========================================================= */
.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 40px 0 20px;
}

.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 700;
  font-size: 14px;
  box-shadow: var(--shadow-xs);
  transition: all 0.2s var(--ease-smooth);
  cursor: pointer;
  text-decoration: none;
}

.page-link:hover:not(.disabled) {
  border-color: var(--primary);
  color: #0284c7;
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.page-link.active {
  background: var(--brand-gradient);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 6px 16px rgba(56, 189, 248, 0.35);
  transform: translateY(-1px);
}

.page-link.disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

/* =========================================================
   GENERIC SECTION WRAPPER & HEADINGS
========================================================= */
.wrap {
  max-width: 1440px;
  margin: 0 auto;
  padding: 32px 32px 60px;
}

.section-header-modern {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 24px;
}

.section-title-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-title-pill {
  width: 6px;
  height: 24px;
  border-radius: var(--radius-full);
  background: var(--brand-gradient);
}

.section-title-text {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-heading);
  letter-spacing: -0.5px;
}

.section-subtitle {
  font-size: 14px;
  color: var(--text-dim);
  margin-top: 4px;
}

/* =========================================================
   EMPTY & ERROR STATES
========================================================= */
.empty-state {
  text-align: center;
  padding: 80px 24px;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius-xl);
  max-width: 620px;
  margin: 40px auto;
  box-shadow: var(--shadow-sm);
}

.empty-state-icon {
  font-size: 54px;
  margin-bottom: 16px;
  display: inline-block;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.empty-state-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 8px;
}

.empty-state-desc {
  font-size: 15px;
  color: var(--text-dim);
  max-width: 440px;
  margin: 0 auto 24px;
  line-height: 1.6;
}

/* =========================================================
   TOAST NOTIFICATION SYSTEM
========================================================= */
#toast-container {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.3s var(--ease-bounce);
  min-width: 280px;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.toast.success .toast-icon { background: rgba(52, 211, 153, 0.15); color: #059669; }
.toast.info .toast-icon { background: rgba(56, 189, 248, 0.15); color: #0284c7; }
.toast.error .toast-icon { background: rgba(242, 114, 128, 0.15); color: var(--accent); }

/* =========================================================
   AUTH MODAL (High-Key Warm Pastel Styling)
========================================================= */
#auth-modal,
#admin-create-user-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 999999;
  justify-content: center;
  align-items: center;
  padding: 20px;
  animation: fadeIn 0.25s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

#auth-modal.auth-modal-required {
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

#auth-modal.auth-modal-required .auth-modal-close {
  display: none !important;
}

.auth-modal-card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 440px;
  padding: 36px 32px;
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.25);
  border: 1px solid var(--border);
  position: relative;
  text-align: left;
  animation: scaleUp 0.3s var(--ease-bounce);
}

@keyframes scaleUp {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.auth-modal-header {
  text-align: center;
  margin-bottom: 28px;
}

.auth-modal-header h1 {
  font-size: 30px;
  font-weight: 800;
  margin-bottom: 6px;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px;
}

.auth-modal-header p {
  color: var(--text-dim);
  font-size: 14px;
}

/* Auth Tabs */
.auth-tabs {
  display: flex;
  background: var(--bg-subtle);
  padding: 4px;
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
  border: 1px solid var(--border-subtle);
}

.auth-tab {
  flex: 1;
  padding: 9px;
  border: none;
  background: transparent;
  color: var(--text-dim);
  font-weight: 700;
  font-size: 13.5px;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.2s var(--ease-smooth);
  text-align: center;
}

.auth-tab.active {
  background: var(--surface);
  color: var(--text-heading);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

/* Auth Form Fields */
.auth-form-group {
  margin-bottom: 16px;
}

.auth-form-group label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.auth-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  outline: none;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03);
  transition: all 0.2s var(--ease-smooth);
}

.auth-input:focus {
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25);
}

.auth-submit-btn {
  width: 100%;
  padding: 14px;
  border-radius: var(--radius-sm);
  border: none;
  background: var(--brand-gradient);
  color: #ffffff;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  box-shadow: var(--shadow-pastel);
  transition: all 0.25s var(--ease-smooth);
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.auth-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(56, 189, 248, 0.45);
}

.auth-error-banner {
  display: none;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--accent-light);
  color: var(--accent);
  border: 1px solid rgba(242, 114, 128, 0.3);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
}

.auth-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: var(--bg-subtle);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 16px;
  transition: all 0.2s ease;
}

.auth-modal-close:hover {
  background: var(--accent-light);
  color: var(--accent);
}

/* =========================================================
   GLOBAL MOBILE BOTTOM NAVIGATION
========================================================= */
.mobile-nav {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: min(420px, calc(100% - 32px));
  background: rgba(250, 249, 246, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 6px 12px;
  display: none;
  justify-content: space-around;
  align-items: center;
  z-index: 9999;
  box-shadow: var(--shadow-lg), 0 8px 25px rgba(56, 189, 248, 0.18);
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 10.5px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  flex: 1;
}

.mobile-nav-item svg {
  width: 20px;
  height: 20px;
  transition: transform 0.2s ease;
}

.mobile-nav-item.active {
  color: #0284c7;
}

.mobile-nav-item.active svg {
  transform: translateY(-2px);
}

/* =========================================================
   RESPONSIVE BREAKPOINTS
========================================================= */
@media (max-width: 1024px) {
  .nav-container { padding: 12px 20px; }
  .wrap { padding: 24px 20px 50px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 18px; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-nav { display: flex; }
  body { padding-bottom: 80px; }

  .nav-container {
    padding: 10px 16px;
  }

  .logo { font-size: 20px; }
  .logo-badge { font-size: 13px; padding: 3px 8px; }

  .btn-app-nav, .btn-extension-nav {
    padding: 7px 10px;
    font-size: 12px;
  }

  .search-form { max-width: none; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  
  .card-overlay, .movie-overlay {
    opacity: 1;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.88) 0%, transparent 60%);
    padding: 10px;
  }
}

@media (max-width: 540px) {
  .btn-app-nav span, .btn-extension-nav span {
    display: none;
  }
  .btn-app-nav, .btn-extension-nav {
    padding: 8px;
    border-radius: 50%;
  }
}

@media (max-width: 480px) {
  .grid { gap: 10px; }
  .card-title, .movie-title { font-size: 13px; }
}

/* =========================================================
   MOBILE APP GATE — EXCLUSIVE MOBILE DOWNLOAD SCREEN
   Desktop (> 820px): display: none !important;
   Mobile (<= 820px): Covers screen, hides all other content
========================================================= */
.mobile-app-gate {
  display: none !important;
}

@media (max-width: 820px) {
  /* Hide the rest of the website elements on phone */
  body > *:not(.mobile-app-gate):not(script):not(style) {
    display: none !important;
  }
  
  html, body {
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important;
    background: #0b0f19 !important;
    min-height: 100vh !important;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif !important;
  }

  .mobile-app-gate {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    min-height: 100dvh;
    width: 100%;
    padding: 36px 20px 48px;
    background: #0b0f19;
    position: relative;
    box-sizing: border-box;
    overflow-y: auto;
    color: #e2e8f0;
    text-align: center;
  }

  .mag-backdrop-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: 
      radial-gradient(circle at 20% 15%, rgba(56, 189, 248, 0.22) 0%, transparent 45%),
      radial-gradient(circle at 80% 85%, rgba(242, 114, 128, 0.2) 0%, transparent 50%),
      radial-gradient(circle at 50% 50%, rgba(129, 140, 248, 0.1) 0%, transparent 60%);
    z-index: 0;
  }

  .mag-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .mag-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.35);
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 700;
    color: #38bdf8;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.15);
  }

  .mag-badge-dot {
    width: 7px;
    height: 7px;
    background: #38bdf8;
    border-radius: 50%;
    box-shadow: 0 0 8px #38bdf8;
    animation: magPulse 2s infinite;
  }

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

  .mag-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
  }

  .mag-logo-icon {
    font-size: 32px;
    line-height: 1;
    filter: drop-shadow(0 4px 12px rgba(56, 189, 248, 0.4));
  }

  .mag-logo-text {
    font-size: 32px;
    font-weight: 900;
    letter-spacing: 2px;
    margin: 0;
    line-height: 1;
  }

  .brand-dodo {
    color: #38bdf8;
    text-shadow: 0 0 25px rgba(56, 189, 248, 0.5);
  }

  .brand-smsm {
    color: #f27280;
    text-shadow: 0 0 25px rgba(242, 114, 128, 0.5);
  }

  .mag-hero-card {
    width: 100%;
    background: rgba(17, 24, 39, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 24px 20px 20px;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5), 0 0 30px rgba(56, 189, 248, 0.12);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .mag-phone-mockup {
    width: 130px;
    height: 190px;
    background: linear-gradient(145deg, #1e293b, #0f172a);
    border-radius: 26px;
    border: 3px solid rgba(56, 189, 248, 0.4);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6), 0 0 25px rgba(56, 189, 248, 0.25);
    padding: 8px;
    display: flex;
    flex-direction: column;
    position: relative;
    animation: magFloat 4s ease-in-out infinite;
  }

  @keyframes magFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
  }

  .mag-phone-notch {
    width: 40px;
    height: 4px;
    background: #334155;
    border-radius: 4px;
    margin: 0 auto 6px;
  }

  .mag-phone-screen {
    flex: 1;
    background: #090d16;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, 0.05);
  }

  .mag-phone-screen .mph-play-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #38bdf8, #f27280);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    font-weight: bold;
    box-shadow: 0 4px 16px rgba(56, 189, 248, 0.5);
  }

  .mph-preview-label {
    font-size: 9px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

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

  .mag-title {
    font-size: 20px;
    font-weight: 800;
    line-height: 1.35;
    color: #f8fafc;
    margin: 0 0 8px;
  }

  .mag-title span, .mag-title-link {
    background: linear-gradient(135deg, #38bdf8, #f27280);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: underline;
    text-decoration-color: rgba(56, 189, 248, 0.4);
    text-underline-offset: 4px;
    display: inline-block;
  }

  .mag-subtitle {
    font-size: 13.5px;
    line-height: 1.55;
    color: #94a3b8;
    margin: 0;
  }

  .mag-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    width: 100%;
  }

  .mag-feat-item {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-align: left;
  }

  .mag-feat-icon {
    font-size: 16px;
    flex-shrink: 0;
  }

  .mag-feat-text {
    font-size: 12px;
    font-weight: 600;
    color: #cbd5e1;
    line-height: 1.25;
  }

  .mag-download-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 18px 20px;
    border-radius: 9999px;
    background: linear-gradient(135deg, #38bdf8 0%, #f27280 100%);
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 12px 35px rgba(56, 189, 248, 0.5), 0 4px 15px rgba(242, 114, 128, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
    margin-top: 6px;
    position: relative;
    overflow: hidden;
    animation: magBtnPulse 2.5s infinite;
  }

  @keyframes magBtnPulse {
    0%, 100% {
      box-shadow: 0 10px 30px rgba(56, 189, 248, 0.4), 0 0 0 0 rgba(56, 189, 248, 0.4);
    }
    50% {
      box-shadow: 0 15px 40px rgba(56, 189, 248, 0.65), 0 0 0 8px rgba(56, 189, 248, 0);
    }
  }

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

  .mag-btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    flex-shrink: 0;
    animation: magBounce 1.8s infinite;
  }

  @keyframes magBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(4px); }
  }

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

  .mag-btn-main {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #ffffff;
  }

  .mag-btn-sub {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  .mag-footer-meta {
    font-size: 11.5px;
    color: #64748b;
    font-weight: 500;
  }
}