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

:root {
  --bg-primary: #111217;
  --bg-secondary: #0c0d12;
  --bg-card: rgba(26, 27, 35, 0.65);
  --border-glow: rgba(139, 92, 246, 0.25);
  --color-primary: #8b5cf6; /* Electric Purple */
  --color-secondary: #06b6d4; /* Cyan */
  --color-accent: #10b981; /* Emerald Green */
  --color-error: #ef4444;
  --color-text: #f3f4f6;
  --color-muted: #9ca3af;
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-primary);
  color: var(--color-text);
  font-family: var(--font-body);
  overflow-x: hidden;
  line-height: 1.5;
  position: relative;
  min-height: 100vh;
}

/* Floating Glow ambient backdrops */
@keyframes floatGlows {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(4%, 3%) scale(1.15); }
  100% { transform: translate(0, 0) scale(1); }
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 15% 25%, rgba(139, 92, 246, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 75%, rgba(6, 182, 212, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.02) 0%, transparent 60%);
  z-index: -2;
  pointer-events: none;
  animation: floatGlows 22s ease-in-out infinite;
}

/* Digital grid overlay */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.012) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: -1;
  pointer-events: none;
  opacity: 0.8;
}

/* Light mode overrides for mesh/grid background */
body.light-theme::before {
  background: 
    radial-gradient(circle at 15% 25%, rgba(139, 92, 246, 0.04) 0%, transparent 45%),
    radial-gradient(circle at 85% 75%, rgba(6, 182, 212, 0.04) 0%, transparent 45%);
}

body.light-theme::after {
  background-image: 
    linear-gradient(rgba(0, 0, 0, 0.01) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.01) 1px, transparent 1px);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}
::-webkit-scrollbar-thumb {
  background: var(--color-primary);
  border-radius: 3px;
}

/* Glassmorphism General Container */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid var(--border-glow);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  border-radius: 16px;
  padding: 24px;
}

/* Top Navigation Bar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  background: rgba(12, 13, 18, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 40px;
}

.nav-brand {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
}

.nav-brand:hover {
  opacity: 0.95;
}

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

.nav-links a {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: color 0.2s;
  cursor: pointer;
}

.nav-links a:hover {
  color: var(--color-primary);
}

.cart-icon-wrapper {
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.cart-icon-wrapper svg {
  width: 24px;
  height: 24px;
  stroke: var(--color-text);
  fill: none;
  stroke-width: 2;
  transition: stroke 0.2s;
}

.cart-icon-wrapper:hover svg {
  stroke: var(--color-primary);
}

.cart-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px var(--color-primary);
}

/* Button UI */
.btn {
  font-family: var(--font-heading);
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: #fff;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.6);
}

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

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.6);
}

/* Core Container Layout */
.main-container {
  margin-top: 100px;
  padding: 0 40px 40px;
  min-height: calc(100vh - 100px);
}

.hero-section {
  padding: 60px 0;
  text-align: center;
  background: radial-gradient(circle at center, rgba(139, 92, 246, 0.15) 0%, transparent 60%);
}

.hero-title {
  font-size: 52px;
  font-weight: 800;
  margin-bottom: 15px;
  background: linear-gradient(90deg, #ffffff, var(--color-primary), var(--color-secondary), #ffffff);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: textShimmer 6s linear infinite;
  letter-spacing: -0.03em;
}

@keyframes textShimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.hero-subtitle {
  font-size: 18px;
  color: var(--color-muted);
  max-width: 600px;
  margin: 0 auto 30px;
}

/* Category grid filter */
.filter-tabs {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
}

.filter-tab {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--color-text);
  padding: 8px 18px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 500;
}

.filter-tab.active, .filter-tab:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

/* Content cards catalog (Hard Uniform Height Grid Layout) */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 30px;
  margin-top: 20px;
}

.content-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  flex-direction: column;
  height: 400px; /* Locked hard uniform height */
}

.content-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--color-primary);
  box-shadow: 
    0 15px 30px rgba(0, 0, 0, 0.4),
    0 0 20px rgba(139, 92, 246, 0.35);
}

/* Premium card light-beam sweep shimmer */
.content-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.12), transparent);
  transform: skewX(-25deg);
  pointer-events: none;
  transition: 0.8s ease;
  z-index: 5;
}

.content-card:hover::after {
  left: 150%;
}

.card-poster {
  position: relative;
  width: 100%;
  height: 260px; /* Locked height ratio for posters */
  background: #1a1b23;
  overflow: hidden;
}

.card-poster img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

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

.card-quality-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(12, 13, 18, 0.85);
  color: var(--color-secondary);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid rgba(6, 182, 212, 0.3);
  text-transform: uppercase;
}

.card-type-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--color-primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  box-shadow: 0 0 8px rgba(139, 92, 246, 0.5);
}

.card-info {
  padding: 15px;
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Ensures contents align uniformly */
  flex-grow: 1;
  height: calc(400px - 260px); /* Height remaining for info */
}

.card-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis; /* Strictly clamps long text */
  color: var(--color-text);
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto; /* Aligns pricing and add buttons uniformly at the bottom */
}

.card-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-secondary);
}

/* Sliding Cart Drawer Panel */
.cart-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  z-index: 1001;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.cart-drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: -450px;
  width: 450px;
  height: 100%;
  background: #0f1015;
  border-left: 1px solid var(--border-glow);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
  z-index: 1002;
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.cart-drawer.open {
  right: 0;
}

.cart-header {
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-title-text {
  font-size: 20px;
  font-weight: 700;
}

.close-cart {
  background: transparent;
  border: none;
  cursor: pointer;
}

.close-cart svg {
  width: 24px;
  height: 24px;
  stroke: var(--color-text);
  fill: none;
  stroke-width: 2;
}

.cart-items {
  flex-grow: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cart-item {
  display: flex;
  gap: 15px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 10px;
  position: relative;
}

.cart-item__thumbnail {
  width: 60px;
  height: 90px;
  border-radius: 6px;
  object-fit: cover;
  background: #1a1b23;
}

.cart-item__details {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.cart-item__title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 5px;
  padding-right: 20px;
}

.cart-item__type {
  font-size: 11px;
  color: var(--color-muted);
  text-transform: uppercase;
  margin-bottom: 5px;
}

.cart-item__price {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-secondary);
}

.cart-item__price .old-price {
  font-size: 13px;
  text-decoration: line-through;
  color: var(--color-muted);
  margin-right: 5px;
}

.cart-item__remove {
  position: absolute;
  top: 10px;
  right: 10px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.cart-item__remove svg {
  width: 16px;
  height: 16px;
  stroke: var(--color-muted);
  fill: none;
  stroke-width: 2;
}

.cart-item__remove:hover svg {
  stroke: var(--color-error);
}

/* Cloud toggle options inside cart list */
.cart-item__options {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.cloud-toggle-label {
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  color: var(--color-muted);
}

.cloud-toggle-input {
  display: none;
}

.cloud-toggle-custom {
  width: 16px;
  height: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
}

.cloud-toggle-input:checked + .cloud-toggle-custom {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.cloud-toggle-input:checked + .cloud-toggle-custom::after {
  content: '✓';
  color: #fff;
  font-size: 10px;
  font-weight: bold;
}

/* Seasons select for TV series inside cart drawer */
.cart-item__seasons {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  padding: 2px 6px;
  color: var(--color-text);
  font-size: 11px;
}

.cart-footer {
  padding: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: #0f1015;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
}

.cart-total-val {
  color: var(--color-secondary);
}

.cart-total-val.discounted {
  color: var(--color-accent);
}

.cart-total-val .struck {
  font-size: 14px;
  text-decoration: line-through;
  color: var(--color-muted);
  margin-right: 5px;
}

.cart-checkout-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

/* Coupon code input section */
.coupon-section {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.coupon-input {
  flex-grow: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 12px;
  border-radius: 6px;
  color: #fff;
  font-size: 13px;
  text-transform: uppercase;
}

.coupon-msg {
  font-size: 12px;
  margin-bottom: 10px;
}

.coupon-msg.success {
  color: var(--color-accent);
}

.coupon-msg.error {
  color: var(--color-error);
}

/* Premium Glassmorphic Login & Register Page UI */
.auth-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 120px);
  padding: 20px;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: rgba(26, 27, 35, 0.65);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid var(--border-glow);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
  border-radius: 16px;
  padding: 40px;
}

.auth-title {
  font-size: 28px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 30px;
  background: linear-gradient(135deg, #fff 30%, var(--color-muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.auth-tabs {
  display: flex;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 25px;
}

.auth-tab {
  flex: 1;
  text-align: center;
  padding: 12px;
  cursor: pointer;
  font-weight: 600;
  font-family: var(--font-heading);
  color: var(--color-muted);
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.auth-tab.active {
  color: var(--color-primary);
  border-color: var(--color-primary);
}

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

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--color-muted);
}

.form-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(139, 92, 246, 0.2);
  padding: 12px 16px;
  border-radius: 8px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 14px;
  transition: all 0.3s;
}

.form-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.3);
  background: rgba(255, 255, 255, 0.06);
}

/* Custom Select Option Styles (Fixes Windows/Chrome White Option Dropdown Bug) */
select.form-input option,
select.dropdown-input option,
.form-input option {
  background-color: #14151b !important;
  color: #f3f4f6 !important;
}

body.light-theme select.form-input option,
body.light-theme select.dropdown-input option,
body.light-theme .form-input option {
  background-color: #ffffff !important;
  color: #0f172a !important;
}


.auth-error {
  color: var(--color-error);
  font-size: 13px;
  margin-bottom: 15px;
  text-align: center;
}

/* User Profile Dashboard & Order Ledger */
.dashboard-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 30px;
  margin-top: 20px;
}

.profile-card {
  height: fit-content;
}

.profile-avatar {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  margin: 0 auto 20px;
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.4);
}

.profile-name {
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 5px;
}

.profile-email {
  font-size: 14px;
  color: var(--color-muted);
  text-align: center;
  margin-bottom: 20px;
}

.profile-stat {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 14px;
}

/* Order History Card Ledger */
.ledger-header {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
}

.ledger-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ledger-card {
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: border-color 0.2s;
}

.ledger-card:hover {
  border-color: var(--border-glow);
}

.ledger-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.ledger-num {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--color-secondary);
}

.ledger-date {
  font-size: 13px;
  color: var(--color-muted);
}

.ledger-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.ledger-item:last-of-type {
  border-bottom: none;
}

.ledger-item-title {
  font-weight: 500;
}

.ledger-item-meta {
  font-size: 12px;
  color: var(--color-muted);
}

.badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

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

.badge-delivered {
  background: rgba(16, 185, 129, 0.15);
  color: var(--color-accent);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-rejected {
  background: rgba(239, 68, 68, 0.15);
  color: var(--color-error);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* TV Series Selection Dialog Modal Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow-y: auto;
  padding: 20px;
}

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

.modal-content {
  width: 100%;
  max-width: 500px;
  background: #14151b;
  border: 1px solid var(--border-glow);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  border-radius: 16px;
  padding: 30px;
  position: relative;
  transform: translateY(-20px);
  transition: transform 0.3s;
  margin: auto;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.modal-close svg {
  width: 20px;
  height: 20px;
  stroke: var(--color-muted);
  fill: none;
  stroke-width: 2;
}

.modal-poster {
  width: 120px;
  height: 180px;
  border-radius: 8px;
  object-fit: cover;
  margin: 0 auto 20px;
  display: block;
}

.modal-title {
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 10px;
}

.modal-desc {
  font-size: 14px;
  color: var(--color-muted);
  text-align: center;
  margin-bottom: 25px;
  line-height: 1.6;
}

/* Payment Overlay Modal */
.payment-modal {
  max-width: 480px;
}

.payment-qr-container {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.payment-qr {
  width: 180px;
  height: 180px;
  border-radius: 8px;
  border: 4px solid #fff;
}

.payment-upi-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 10px 15px;
  margin-bottom: 20px;
}

.payment-upi-text {
  font-size: 14px;
  font-weight: 500;
}

/* File Upload drag area */
.file-upload-area {
  border: 2px dashed rgba(139, 92, 246, 0.3);
  background: rgba(139, 92, 246, 0.02);
  border-radius: 8px;
  padding: 25px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 20px;
}

.file-upload-area:hover, .file-upload-area.drag-over {
  border-color: var(--color-primary);
  background: rgba(139, 92, 246, 0.06);
}

.file-upload-icon {
  font-size: 32px;
  margin-bottom: 10px;
}

.file-upload-text {
  font-size: 13px;
  font-weight: 500;
}

.file-upload-subtext {
  font-size: 11px;
  color: var(--color-muted);
  margin-top: 5px;
}

.file-preview {
  margin-top: 10px;
  font-size: 13px;
  color: var(--color-accent);
  word-break: break-all;
}

/* Toast Notification systems */
.toast-container {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: rgba(20, 21, 28, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 4px solid var(--color-primary);
  border-radius: 6px;
  padding: 15px 25px;
  color: #fff;
  font-weight: 500;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transform: translateX(120%);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.show {
  transform: translateX(0);
}

.toast-success {
  border-left-color: var(--color-accent);
}

.toast-error {
  border-left-color: var(--color-error);
}

/* Utility visibility classes */
.hidden {
  display: none !important;
}

/* Responsive grid changes */
@media (max-width: 900px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 500px) {
  .navbar {
    padding: 0 20px;
  }
  .main-container {
    padding: 0 20px 20px;
  }
  .cart-drawer {
    width: 100%;
    right: -100%;
  }
}

/* ─── PROFILE AVATAR & GLASSMORPHISM DROPDOWN ────────────────────────────────── */
.profile-container {
  position: relative;
  display: flex;
  align-items: center;
}

.profile-avatar-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid var(--color-primary);
  background: var(--bg-secondary);
  cursor: pointer;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.2);
}

.profile-avatar-circle:hover {
  border-color: var(--color-secondary);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.4);
  transform: scale(1.05);
}

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

.profile-avatar-placeholder {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  color: var(--color-text);
  text-transform: uppercase;
}

.profile-dropdown {
  position: absolute;
  top: 130%;
  right: 0;
  width: 320px;
  max-height: 500px;
  overflow-y: auto;
  background: rgba(18, 19, 26, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 9999;
}

.profile-dropdown.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown-user-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 15px;
  margin-bottom: 15px;
  text-align: center;
}

.dropdown-user-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 2px;
}

.dropdown-user-email {
  font-size: 13px;
  color: var(--color-muted);
}

.dropdown-section {
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 15px;
}

.dropdown-section:last-of-type {
  border-bottom: none;
  margin-bottom: 15px;
}

.dropdown-section-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-secondary);
  margin-bottom: 10px;
  font-weight: 700;
}

.dropdown-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 6px;
  padding: 8px 12px;
  color: var(--color-text);
  font-size: 13px;
  margin-bottom: 8px;
  transition: border-color 0.2s;
}

.dropdown-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 8px rgba(139, 92, 246, 0.3);
}

.dropdown-ledger {
  max-height: 180px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 5px;
}

.dropdown-ledger-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dropdown-ledger-header {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 600;
  color: var(--color-muted);
}

.dropdown-ledger-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text);
}

.dropdown-ledger-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  margin-top: 4px;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 6px;
}

/* ─── LIGHT MODE THEME OVERRIDES ────────────────────────────────────────────── */
body.light-theme {
  --bg-primary: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-card: rgba(255, 255, 255, 0.8);
  --border-glow: rgba(139, 92, 246, 0.15);
  --color-text: #0f172a;
  --color-muted: #64748b;
}

body.light-theme .navbar {
  background: rgba(255, 255, 255, 0.8);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

body.light-theme .navbar a {
  color: #0f172a;
}

body.light-theme .navbar a:hover {
  color: var(--color-primary);
}

body.light-theme .cart-icon-wrapper svg {
  stroke: #0f172a;
}

body.light-theme .cart-icon-wrapper:hover svg {
  stroke: var(--color-primary);
}

body.light-theme .cart-drawer {
  background: #ffffff;
  border-left: 1px solid rgba(0, 0, 0, 0.08);
}

body.light-theme .cart-footer {
  background: #f8fafc;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

body.light-theme .modal-content {
  background: #ffffff;
}

body.light-theme .profile-dropdown {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

body.light-theme .dropdown-user-name {
  color: #0f172a;
}

body.light-theme .form-input {
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(139, 92, 246, 0.2);
  color: #0f172a;
}

body.light-theme .form-input:focus {
  background: rgba(0, 0, 0, 0.04);
}

body.light-theme .btn-secondary {
  background: rgba(0, 0, 0, 0.03);
  color: #0f172a;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-theme .btn-secondary:hover {
  background: rgba(0, 0, 0, 0.06);
}

body.light-theme .cart-item {
  background: rgba(0, 0, 0, 0.01);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

body.light-theme .coupon-input {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #0f172a;
}

body.light-theme .dropdown-ledger-card {
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

body.light-theme .dropdown-input {
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(139, 92, 246, 0.2);
  color: #0f172a;
}

body.light-theme .order-table td, body.light-theme .order-table th {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

body.light-theme .hero-title {
  background: linear-gradient(135deg, #0f172a 30%, #475569 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.light-theme .card-title {
  color: #0f172a;
}

body.light-theme .close-cart svg {
  stroke: #0f172a;
}

body.light-theme .modal-close svg {
  stroke: #0f172a;
}

body.light-theme .payment-qr {
  border: 4px solid #f1f5f9;
}

body.light-theme .payment-upi-row {
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

/* ─── MICRO-ANIMATIONS & PREMIUM EFFECTS ───────────────────────────────────── */
.btn, .content-card, .cart-item, .modal-content, .profile-dropdown, .form-input {
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

/* Interactive Add Movie Cart Pulse */
@keyframes cartPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); box-shadow: 0 0 15px var(--color-primary); }
  100% { transform: scale(1); }
}

.cart-icon-wrapper.pulse svg {
  animation: cartPulse 0.4s ease;
}

/* Modal Open Animation */
.modal-overlay.open .modal-content {
  transform: translateY(0);
}

/* Light Theme Switcher Spin */
@keyframes spinTheme {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

#themeToggleBtn:hover {
  animation: spinTheme 1.2s ease-in-out;
}