/* ============================================================
   malifilled0.2 - Premium Video Marketplace Styles
   Responsive across Mobile, Tablet, Laptop, and Desktop
   ============================================================ */

:root {
  --bg-primary: #090d16;
  --bg-secondary: #0f172a;
  --bg-card: rgba(30, 41, 59, 0.7);
  --bg-card-hover: rgba(51, 65, 85, 0.85);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-focus: #6366f1;
  
  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --primary-glow: rgba(99, 102, 241, 0.35);
  
  --secondary: #ec4899;
  --secondary-glow: rgba(236, 72, 153, 0.35);
  
  --accent-green: #10b981;
  --accent-cyan: #06b6d4;
  --danger: #ef4444;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 25px var(--primary-glow);
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(99, 102, 241, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 85% 65%, rgba(236, 72, 153, 0.09) 0%, transparent 45%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 1.75rem);
}

/* ============================================================
   Navigation Header
   ============================================================ */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(9, 13, 22, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  padding: clamp(0.7rem, 2vw, 1rem) 0;
  transition: var(--transition);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: #fff;
  font-weight: 800;
  font-size: clamp(1.15rem, 3vw, 1.4rem);
  letter-spacing: -0.5px;
}

.logo-badge {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: clamp(0.72rem, 1.8vw, 0.82rem);
  font-weight: 700;
  color: #fff;
  box-shadow: var(--shadow-glow);
}

.brand-title span {
  color: var(--primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 2vw, 1.25rem);
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: clamp(0.85rem, 2vw, 0.95rem);
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  white-space: nowrap;
}

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

/* ============================================================
   Hero Section
   ============================================================ */
.hero-section {
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2rem, 5vw, 3.5rem);
  text-align: center;
  position: relative;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  transition: background-image 0.4s ease-in-out;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #a5b4fc;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: clamp(0.75rem, 2vw, 0.85rem);
  font-weight: 600;
  margin-bottom: 1.25rem;
  max-width: 95%;
  text-align: left;
}

.hero-pill .pulse-dot {
  width: 8px;
  height: 8px;
  min-width: 8px;
  background-color: var(--accent-green);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-green);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.hero-title {
  font-size: clamp(1.9rem, 6vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -1.2px;
  line-height: 1.18;
  margin-bottom: 1rem;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, #a5b4fc 0%, #ffffff 40%, #f472b6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  color: var(--text-muted);
  font-size: clamp(0.95rem, 2.5vw, 1.15rem);
  max-width: 640px;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
}

/* ============================================================
   Controls Bar (Search, Filter, Sort)
   ============================================================ */
.controls-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  margin: 1.5rem 0 2rem;
  background: var(--bg-card);
  padding: clamp(0.75rem, 2vw, 1.15rem);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.search-wrapper {
  position: relative;
  flex: 1;
  min-width: min(100%, 260px);
}

.search-wrapper input {
  width: 100%;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem 0.75rem 2.4rem;
  color: #fff;
  font-size: 16px; /* Prevents auto-zoom on iOS */
  outline: none;
  min-height: 44px;
  transition: var(--transition);
}

.search-wrapper input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.search-icon {
  position: absolute;
  left: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  pointer-events: none;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.filter-group select {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.9rem;
  color: var(--text-main);
  font-size: 16px; /* Prevents auto-zoom on iOS */
  outline: none;
  cursor: pointer;
  min-height: 44px;
  transition: var(--transition);
}

.filter-group select:focus {
  border-color: var(--primary);
}

/* ============================================================
   Product Catalog Grid
   ============================================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 310px), 1fr));
  gap: clamp(1rem, 2.5vw, 1.75rem);
  margin-bottom: 4rem;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.6), 0 0 20px rgba(99, 102, 241, 0.15);
}

/* Image Container */
.card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0f172a;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover .card-media img {
  transform: scale(1.05);
}

.media-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.25);
  transition: var(--transition);
}

.play-badge-icon {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: var(--transition);
}

.product-card:hover .play-badge-icon {
  background: var(--primary);
  border-color: var(--primary);
  transform: scale(1.1);
}

/* Discount Badge */
.discount-tag {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  font-weight: 700;
  font-size: 0.76rem;
  padding: 0.28rem 0.6rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
  letter-spacing: 0.5px;
}

.category-tag {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.22rem 0.55rem;
  border-radius: var(--radius-sm);
}

.duration-tag {
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
  background: rgba(0, 0, 0, 0.75);
  color: #cbd5e1;
  font-size: 0.7rem;
  padding: 0.18rem 0.45rem;
  border-radius: 4px;
  font-weight: 500;
}

/* Card Body */
.card-content {
  padding: clamp(1rem, 2.5vw, 1.35rem);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-title {
  font-size: clamp(1.05rem, 2.5vw, 1.2rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
  line-height: 1.35;
}

.card-description {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.5;
  margin-bottom: 1.1rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Pricing Section */
.card-pricing {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-color);
}

.price-discounted {
  font-size: clamp(1.4rem, 3.5vw, 1.65rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
}

.price-original {
  font-size: clamp(0.95rem, 2.2vw, 1.05rem);
  color: var(--text-dim);
  text-decoration: line-through;
  font-weight: 500;
}

.price-savings {
  margin-left: auto;
  font-size: 0.8rem;
  color: var(--accent-green);
  font-weight: 600;
}

/* Card Actions */
.card-actions {
  display: flex;
  gap: 0.55rem;
}

.btn-buy {
  flex: 1;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  border: none;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  text-decoration: none;
  min-height: 44px; /* Touch target */
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-buy:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.45);
}

.btn-quick-view {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  transition: var(--transition);
}

.btn-quick-view:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* Empty State */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 1.5rem;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px dashed var(--border-color);
}

.empty-state h3 {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
  color: #fff;
}

.empty-state p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* ============================================================
   Admin Dashboard Styles
   ============================================================ */
.admin-header-area {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: clamp(1.5rem, 4vw, 2.5rem) 0 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.admin-header-area h1 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.5px;
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 1.15rem;
  margin-bottom: 2.25rem;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.stat-icon.purple { background: rgba(99, 102, 241, 0.15); color: #818cf8; }
.stat-icon.pink { background: rgba(236, 72, 153, 0.15); color: #f472b6; }
.stat-icon.green { background: rgba(16, 185, 129, 0.15); color: #34d399; }

.stat-info h4 {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.stat-info .stat-number {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 800;
  color: #fff;
}

/* Admin Card / Form */
.admin-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: clamp(1.2rem, 3vw, 2rem);
  margin-bottom: 2.5rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.admin-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
  flex-wrap: wrap;
  gap: 0.5rem;
}

.admin-card-header h2 {
  font-size: clamp(1.15rem, 2.5vw, 1.35rem);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Form Styles */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

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

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 0.88rem;
  font-weight: 600;
  color: #cbd5e1;
}

.form-group label .required {
  color: var(--secondary);
}

.form-group input,
.form-group textarea,
.form-group select {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  color: #fff;
  font-size: 16px; /* Prevents auto-zoom on iOS */
  font-family: inherit;
  outline: none;
  min-height: 44px;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

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

/* Drag and Drop Upload Zone */
.dropzone {
  border: 2px dashed rgba(99, 102, 241, 0.4);
  border-radius: var(--radius-md);
  padding: clamp(1.2rem, 3vw, 1.75rem) 1rem;
  text-align: center;
  background: rgba(99, 102, 241, 0.04);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.dropzone:hover,
.dropzone.dragover {
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.1);
}

.dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.dropzone-icon {
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.dropzone-text {
  font-size: 0.92rem;
  color: var(--text-muted);
}

.dropzone-text strong {
  color: #fff;
}

.dropzone-hint {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 0.25rem;
}

/* Image Preview Container */
.image-preview-container {
  margin-top: 0.75rem;
  position: relative;
  display: inline-block;
  max-width: 240px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.image-preview-container img {
  width: 100%;
  height: auto;
  display: block;
}

.btn-remove-preview {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(239, 68, 68, 0.9);
  color: #fff;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-weight: bold;
}

/* Admin Table */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.admin-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  text-align: left;
}

.admin-table th {
  background: rgba(15, 23, 42, 0.95);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}

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

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

.table-thumb {
  width: 56px;
  height: 35px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid var(--border-color);
  flex-shrink: 0;
}

.table-product-cell {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.table-product-title {
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
}

.table-product-cat {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.table-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.btn-table-action {
  padding: 0.4rem 0.7rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 34px;
  transition: var(--transition);
}

.btn-table-action:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.btn-table-action.delete:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.4);
  color: #f87171;
}

.btn-table-action.test-link {
  color: var(--accent-cyan);
  border-color: rgba(6, 182, 212, 0.3);
}

.btn-table-action.test-link:hover {
  background: rgba(6, 182, 212, 0.15);
}

/* ============================================================
   Buttons & General Components
   ============================================================ */
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  border: none;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.35);
  text-decoration: none;
}

.btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.8rem 1.4rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  text-decoration: none;
}

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

/* ============================================================
   Modals
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.75rem, 2vw, 1.5rem);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

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

.modal-card {
  background: #111827;
  border: 1px solid var(--border-color);
  border-radius: clamp(12px, 2.5vw, 20px);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  transform: translateY(20px);
  transition: transform 0.25s ease;
}

.modal-overlay.active .modal-card {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(1rem, 2.5vw, 1.4rem) clamp(1.2rem, 3vw, 1.75rem);
  border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
  font-size: clamp(1.1rem, 2.5vw, 1.25rem);
  font-weight: 700;
  color: #fff;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.25rem;
  min-width: 32px;
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.modal-close:hover {
  color: #fff;
}

.modal-body {
  padding: clamp(1rem, 3vw, 1.75rem);
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: clamp(1rem, 2.5vw, 1.25rem) clamp(1.2rem, 3vw, 1.75rem);
  border-top: 1px solid var(--border-color);
  flex-wrap: wrap;
}

/* ============================================================
   Age Verification Modal (18+)
   ============================================================ */
.age-modal-overlay {
  z-index: 99999;
  background: rgba(5, 8, 15, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.age-modal-card {
  max-width: 440px;
  text-align: center;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(17, 24, 39, 0.98);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.9), 0 0 35px rgba(99, 102, 241, 0.2);
}

.age-badge-circle {
  width: 68px;
  height: 68px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.2), rgba(99, 102, 241, 0.2));
  border: 2px solid var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 25px rgba(236, 72, 153, 0.35);
}

.age-badge-circle span {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
}

.age-modal-title {
  font-size: clamp(1.35rem, 3vw, 1.6rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.75rem;
}

.age-modal-text {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.age-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.age-btn-yes {
  width: 100%;
  justify-content: center;
  font-size: 1rem;
  padding: 0.85rem 1.5rem;
}

.age-btn-no {
  width: 100%;
  justify-content: center;
  color: var(--text-muted);
}

.age-btn-no:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
  color: #f87171;
}

.age-modal-note {
  font-size: 0.75rem;
  color: var(--text-dim);
  line-height: 1.4;
}

/* ============================================================
   Toast Notifications
   ============================================================ */
#toast-container {
  position: fixed;
  bottom: clamp(1rem, 3vw, 2rem);
  right: clamp(1rem, 3vw, 2rem);
  left: auto;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: min(90vw, 380px);
  pointer-events: none;
}

.toast {
  background: #1e293b;
  border: 1px solid var(--border-color);
  color: #fff;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  pointer-events: auto;
  animation: slideIn 0.3s ease forwards;
}

.toast.success { border-left: 4px solid var(--accent-green); }
.toast.error { border-left: 4px solid var(--danger); }
.toast.info { border-left: 4px solid var(--primary); }

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ============================================================
   Footer
   ============================================================ */
footer.site-footer {
  margin-top: auto;
  background: rgba(9, 13, 22, 0.95);
  border-top: 1px solid var(--border-color);
  padding: clamp(2rem, 4vw, 3rem) 0;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.9rem;
}

.footer-brand {
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

/* ============================================================
   Comprehensive Media Queries (Every Device Size)
   ============================================================ */

/* Tablets & Small Laptops (<= 1024px) */
@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  }
}

/* Phablets & Tablets Portrait (<= 768px) */
@media (max-width: 768px) {
  .controls-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .search-wrapper {
    width: 100%;
  }

  .filter-group {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
  }

  .filter-group select {
    width: 100%;
  }

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

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

  .admin-header-area a.btn-primary {
    width: 100%;
  }

  .modal-card {
    max-height: 94vh;
  }
}

/* Standard Mobile Phones (<= 480px) */
@media (max-width: 480px) {
  .nav-wrap {
    gap: 0.5rem;
  }

  .brand-logo {
    font-size: 1.15rem;
  }

  .nav-links a {
    padding: 0.35rem 0.5rem;
    font-size: 0.85rem;
  }

  .hero-section {
    padding-top: 2rem;
  }

  .hero-pill {
    font-size: 0.78rem;
    padding: 0.3rem 0.75rem;
  }

  .filter-group {
    grid-template-columns: 1fr;
  }

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

  .card-pricing {
    flex-direction: row;
    align-items: baseline;
  }

  .price-discounted {
    font-size: 1.45rem;
  }

  .modal-footer {
    flex-direction: column-reverse;
  }

  .modal-footer .btn-secondary,
  .modal-footer .btn-buy,
  .modal-footer .btn-primary {
    width: 100%;
    justify-content: center;
  }

  #toast-container {
    right: 1rem;
    left: 1rem;
    bottom: 1rem;
    max-width: calc(100vw - 2rem);
  }
}

/* Small / Compact Mobile Phones (<= 360px) */
@media (max-width: 360px) {
  .brand-logo {
    font-size: 1.05rem;
  }

  .hero-title {
    font-size: 1.65rem;
  }

  .card-actions {
    flex-direction: column;
  }

  .btn-quick-view {
    width: 100%;
  }
}
