/* ==============================================================
   SEHWARENT - MASTER GAMING DESIGN SYSTEM & STYLESHEET
   Aesthetics: Deep Navy, Midnight Blue, Electric Cyan, Neon Accents
   Compatible with all devices: 360px, 390px, 768px, 1024px, 1440px+
   ============================================================== */

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

/* --- CSS Variables & Design Tokens --- */
:root {
  --bg-main: #060a12;
  --bg-surface: #0b1220;
  --bg-card: #0f182c;
  --bg-card-hover: #14203a;
  --border-color: #1a2947;
  --border-focus: #00d2ff;
  
  --primary: #0066ff;
  --primary-hover: #0052cc;
  --primary-glow: rgba(0, 102, 255, 0.45);
  
  --cyan: #00d2ff;
  --cyan-glow: rgba(0, 210, 255, 0.4);
  
  --accent-purple: #7e22ce;
  --accent-red: #ff2d55;
  --accent-yellow: #facc15;
  --accent-green: #10b981;
  --accent-orange: #f59e0b;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 25px rgba(0, 102, 255, 0.35);
  --shadow-cyan: 0 0 20px rgba(0, 210, 255, 0.3);
  
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
  background-image: 
    radial-gradient(circle at 15% 10%, rgba(0, 102, 255, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 60%, rgba(0, 210, 255, 0.06) 0%, transparent 45%);
  background-attachment: fixed;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

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

input, button, select, textarea {
  font-family: inherit;
  font-size: inherit;
  max-width: 100%;
  box-sizing: border-box;
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}

.main-content {
  flex: 1 0 auto;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

/* --- Navbar (Desktop & Mobile) --- */
.site-navbar {
  background: rgba(11, 18, 32, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 14px 0;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 20px;
  letter-spacing: 1px;
}

.brand-logo img {
  height: 40px;
  width: auto;
}

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

.nav-link {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: #ffffff;
  background: rgba(0, 102, 255, 0.15);
}

.nav-link.active {
  color: var(--cyan);
  border-bottom: 2px solid var(--cyan);
}

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

.mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

/* Mobile Nav Drawer */
.mobile-nav-panel {
  display: none;
  background: #0b1220;
  border-bottom: 1px solid var(--border-color);
  padding: 18px 20px;
}

.mobile-nav-panel.open {
  display: block;
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mobile-nav-list .nav-link {
  padding: 10px 14px;
  font-size: 15px;
  border-radius: var(--radius-sm);
}

.mobile-nav-actions {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  text-align: center;
  white-space: nowrap;
}

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

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

.btn-pill {
  border-radius: var(--radius-full);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #0099ff 100%);
  color: #ffffff;
  box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0052cc 0%, #0077ff 100%);
  box-shadow: 0 6px 20px rgba(0, 102, 255, 0.6);
  transform: translateY(-1px);
}

.btn-cyan {
  background: linear-gradient(135deg, #0088ff 0%, var(--cyan) 100%);
  color: #050b17;
  font-weight: 800;
  box-shadow: 0 4px 15px var(--cyan-glow);
}

.btn-cyan:hover {
  background: linear-gradient(135deg, #0066ff 0%, #00b4d8 100%);
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-booking {
  background: linear-gradient(135deg, #0055ff 0%, #0088ff 50%, #00d2ff 100%);
  color: #ffffff;
  padding: 12px 32px;
  font-size: 16px;
  letter-spacing: 1.5px;
  border-radius: var(--radius-full);
  box-shadow: 0 6px 25px rgba(0, 102, 255, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-booking:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 30px rgba(0, 210, 255, 0.6);
}

.btn-outline {
  background: transparent;
  border-color: var(--primary);
  color: var(--cyan);
}

.btn-outline:hover {
  background: rgba(0, 102, 255, 0.15);
  border-color: var(--cyan);
  color: #ffffff;
}

.btn-dark {
  background: #111a2d;
  border-color: var(--border-color);
  color: var(--text-main);
}

.btn-dark:hover {
  background: #19263f;
  border-color: #2a3e66;
}

.btn-success {
  background: var(--accent-green);
  color: #ffffff;
}

.btn-danger {
  background: var(--accent-red);
  color: #ffffff;
}

.btn-block {
  width: 100%;
}

/* --- Badges & Labels --- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.badge-terlaris {
  background: #0070f3;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 112, 243, 0.5);
}

.badge-baru {
  background: #00d2ff;
  color: #060a12;
  box-shadow: 0 2px 8px rgba(0, 210, 255, 0.4);
}

.badge-diskon {
  background: #ff2d55;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(255, 45, 85, 0.4);
}

.badge-stok {
  background: #f59e0b;
  color: #060a12;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}

.badge-wajib {
  background: #ffd60a;
  color: #000814;
}

/* Dynamic Category Badges for Product Cards */
.badge-cat-kecil {
  background: linear-gradient(135deg, #0070f3, #00d2ff);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 112, 243, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.badge-cat-sedang {
  background: linear-gradient(135deg, #0284c7, #38bdf8);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(2, 132, 199, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.badge-cat-sultan {
  background: linear-gradient(135deg, #d97706, #fbbf24);
  color: #0b1120;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.35);
  font-weight: 900;
}

.badge-cat-turnamen {
  background: linear-gradient(135deg, #7c3aed, #ec4899);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(124, 58, 237, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.badge-cat-default {
  background: linear-gradient(135deg, #0070f3, #00d2ff);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 112, 243, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

/* Status Badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
}

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

.status-verifying {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.status-active {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-completed {
  background: rgba(148, 163, 184, 0.15);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.status-cancelled {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* --- Hero Banner Section --- */
.hero-section {
  padding: 24px 0 20px;
}

.hero-banner-card {
  position: relative;
  background: #0a1326;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-glow);
}

.hero-banner-img {
  width: 100%;
  height: auto;
  display: block;
}

/* --- Promo Cards Section --- */
.promo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 24px;
}

.promo-card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.promo-card:hover {
  transform: translateY(-3px);
}

.promo-purple {
  background: linear-gradient(135deg, #3b0764 0%, #6b21a8 50%, #7e22ce 100%);
}

.promo-cyan {
  background: linear-gradient(135deg, #0369a1 0%, #0284c7 50%, #00b4d8 100%);
}

.promo-whatsapp {
  background: linear-gradient(135deg, #064e3b 0%, #065f46 45%, #059669 80%, #10b981 100%);
  border: 1px solid rgba(37, 211, 102, 0.4);
  box-shadow: 0 8px 30px rgba(16, 185, 129, 0.25);
}

.promo-whatsapp:hover {
  border-color: #25D366;
  box-shadow: 0 12px 35px rgba(37, 211, 102, 0.4);
  transform: translateY(-3px);
}

.promo-content {
  z-index: 2;
  max-width: 65%;
}

.promo-badge {
  display: inline-block;
  padding: 4px 10px;
  background: #ffd60a;
  color: #090e17;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 11px;
  border-radius: var(--radius-full);
  margin-bottom: 10px;
}

.promo-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 24px;
  color: #ffffff;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

.promo-desc {
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  line-height: 1.4;
}

.promo-icon-box {
  width: 90px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.promo-icon-box img {
  max-width: 100%;
  max-height: 100%;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.4));
}

/* --- Section Headers --- */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: 40px;
  margin-bottom: 24px;
}

.section-title-wrap h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 24px;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.section-title-wrap p {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 4px;
}

.section-link {
  color: var(--cyan);
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.section-link:hover {
  color: #ffffff;
  transform: translateX(3px);
}

/* --- 4 Category Grid & Cards --- */
.category-showcase-section {
  margin-top: 40px;
}

.category-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.category-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  position: relative;
  text-decoration: none;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: var(--cyan);
  box-shadow: 0 10px 25px rgba(0, 210, 255, 0.25);
}

.category-card.category-featured {
  border-color: rgba(0, 210, 255, 0.6);
  box-shadow: 0 0 25px rgba(0, 102, 255, 0.35);
}

.category-img-wrap {
  width: 100%;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  position: relative;
  background: #09101d;
}

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

.category-card:hover .category-img-wrap img {
  transform: scale(1.06);
}

.category-discount-ribbon {
  position: absolute;
  top: 8px;
  right: 8px;
  background: linear-gradient(135deg, #f97316 0%, #ef4444 100%);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 9999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  z-index: 3;
  letter-spacing: 0.3px;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.category-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(6, 10, 18, 0.8) 100%);
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 8px 10px;
}

.btn-cat-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: #00d2ff;
  color: #040812 !important;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 900;
  padding: 3px 9px;
  border-radius: 9999px;
  box-shadow: 0 2px 8px rgba(0, 210, 255, 0.45);
  transition: var(--transition);
}

.category-card:hover .btn-cat-action {
  background: #38bdf8;
  transform: translateX(2px);
}

.category-info {
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.category-badge-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.category-stock-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 9999px;
  white-space: nowrap;
}

.category-stock-badge.in-stock {
  background: rgba(0, 210, 255, 0.1);
  color: #38bdf8;
  border: 1px solid rgba(0, 210, 255, 0.25);
}

.category-stock-badge.in-stock .stock-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00d2ff;
  box-shadow: 0 0 6px #00d2ff;
  display: inline-block;
}

.category-stock-badge.empty-stock {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-dim);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.category-stock-badge.empty-stock .stock-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #64748b;
  display: inline-block;
}

.category-discount-pill {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(220, 38, 38, 0.3));
  border: 1px solid rgba(239, 68, 68, 0.45);
  color: #fca5a5;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 9999px;
  white-space: nowrap;
  letter-spacing: 0.3px;
}

.category-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 18px;
  color: #ffffff;
  line-height: 1.2;
}

.category-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* WhatsApp Booking Button Styling */
.btn-whatsapp {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #ffffff !important;
  font-weight: 800;
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.4);
  letter-spacing: 0.5px;
  border: none;
}

.btn-whatsapp:hover {
  background: linear-gradient(135deg, #20ba5a 0%, #075e54 100%);
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
  transform: translateY(-2px);
  color: #ffffff !important;
}

.account-id-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 210, 255, 0.12);
  border: 1px solid rgba(0, 210, 255, 0.35);
  color: var(--cyan);
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  font-family: monospace;
  font-size: 13px;
  font-weight: 700;
}

/* --- Product Cards Grid --- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.product-card:hover {
  background: var(--bg-card-hover);
  border-color: #2b4573;
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 102, 255, 0.25);
}

.product-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: radial-gradient(circle at center, #0f1c36 0%, #060b15 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-thumb-wrap img {
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.3s ease;
}

.product-card:hover .product-thumb-wrap img {
  transform: scale(1.03);
}

.product-badge-float {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
}

.product-discount-float {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 9999px;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.2);
  letter-spacing: 0.5px;
}

.category-discount-ribbon {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 4;
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 9999px;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.3);
  letter-spacing: 0.5px;
  animation: pulse-discount 2s infinite ease-in-out;
}

@keyframes pulse-discount {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

.product-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  color: #ffffff;
  line-height: 1.3;
}

.product-subtitle {
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 600;
  margin-top: 2px;
}

.product-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 10px 0 12px;
}

.rating-box {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  color: #fbbf24;
}

.rating-box .star-icon {
  font-size: 14px;
}

.rating-box .review-count {
  color: var(--text-dim);
  font-weight: 500;
}

.product-price-box {
  margin-top: auto;
  margin-bottom: 14px;
}

.product-price-box.has-discount .price-strikethrough-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
  flex-wrap: wrap;
}

.original-price {
  font-size: 12px;
  color: var(--text-dim);
  text-decoration: line-through;
}

.badge-discount-tag {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 800;
  color: #ffffff;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  padding: 1px 6px;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.35);
}

.product-price {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 17px;
  color: #ffffff;
}

.product-price.discounted {
  color: #00d2ff;
}

.product-price span {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.product-stock {
  font-size: 11px;
  color: var(--cyan);
  font-weight: 600;
  margin-top: 2px;
}

.product-stock.out-of-stock {
  color: var(--accent-red);
}

/* --- Quick Category Filter Pills --- */
.category-filter-pills {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 22px;
  scrollbar-width: none;
}

.category-filter-pills::-webkit-scrollbar {
  display: none;
}

.category-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.25s ease;
}

.category-pill-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--cyan);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 210, 255, 0.25);
}

.category-pill-btn.active {
  background: linear-gradient(135deg, #0070f3, #00d2ff);
  border-color: #00d2ff;
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(0, 112, 243, 0.45);
}

.cat-pill-discount {
  background: rgba(239, 68, 68, 0.25);
  color: #fca5a5;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 9999px;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

/* --- Catalog Filter Bar --- */
.filter-bar {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.search-box {
  position: relative;
  flex: 1 1 300px;
}

.search-box input {
  width: 100%;
  background: #090f1d;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px 16px 10px 40px;
  color: #ffffff;
  outline: none;
  transition: var(--transition);
}

.search-box input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 10px rgba(0, 210, 255, 0.25);
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
}

.filter-selects {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-select {
  background: #090f1d;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  color: var(--text-main);
  outline: none;
  cursor: pointer;
  transition: var(--transition);
}

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

/* --- FAQ Accordion --- */
.faq-section {
  padding: 30px 0 60px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover {
  border-color: #2a3e66;
}

.faq-item.active {
  border-color: var(--primary);
  box-shadow: 0 4px 15px rgba(0, 102, 255, 0.15);
}

.faq-header {
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: #ffffff;
}

.faq-header:hover {
  color: var(--cyan);
}

.faq-icon {
  font-size: 14px;
  transition: transform 0.3s ease;
  color: var(--cyan);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-body {
  padding: 0 24px 20px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
  display: none;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.faq-item.active .faq-body {
  display: block;
}

/* --- Cara Sewa Steps Section --- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 30px 0;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  position: relative;
  transition: var(--transition);
}

.step-card:hover {
  border-color: var(--cyan);
  transform: translateY(-4px);
  box-shadow: var(--shadow-cyan);
}

.step-number {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 28px;
  background: var(--primary);
  color: #ffffff;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 13px;
  border: 2px solid #060a12;
}

.step-icon-wrap {
  width: 60px;
  height: 60px;
  background: rgba(0, 102, 255, 0.12);
  border: 1px solid rgba(0, 102, 255, 0.3);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 24px;
  color: var(--cyan);
}

.step-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  color: #ffffff;
  margin-bottom: 8px;
}

.step-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* --- Forms & Inputs --- */
.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
}

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

.form-label {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  color: #e2e8f0;
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  background: #080f1d;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  color: #ffffff;
  outline: none;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 12px rgba(0, 210, 255, 0.25);
}

.form-text {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 6px;
}

/* --- Alerts & Flash Messages --- */
.alert {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 14px;
  margin-bottom: 20px;
  border: 1px solid transparent;
}

.alert-success {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.3);
  color: #34d399;
}

.alert-danger {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.3);
  color: #f87171;
}

.alert-warning {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.3);
  color: #fbbf24;
}

.alert-info {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.3);
  color: #38bdf8;
}

.alert-icon {
  font-size: 18px;
  font-weight: bold;
}

.alert-text {
  flex: 1;
}

.alert-close {
  background: transparent;
  border: none;
  color: inherit;
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
  opacity: 0.7;
}

.alert-close:hover {
  opacity: 1;
}

/* --- Tables Responsive Wrapper --- */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  text-align: left;
}

.data-table th {
  background: #09101e;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-weight: 700;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}

.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  vertical-align: middle;
}

.data-table tbody tr:hover {
  background: rgba(0, 102, 255, 0.04);
}

/* --- Admin Layout --- */
.admin-layout {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: 260px;
  background: #080e1b;
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  transition: var(--transition);
}

.admin-sidebar-header {
  padding: 24px 20px;
  border-bottom: 1px solid var(--border-color);
}

.admin-nav {
  padding: 20px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  list-style: none;
  flex: 1;
}

.admin-nav-item a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  transition: var(--transition);
}

.admin-nav-item a:hover, .admin-nav-item.active a {
  background: rgba(0, 102, 255, 0.15);
  color: #ffffff;
}

.admin-nav-item.active a {
  color: var(--cyan);
  border-left: 3px solid var(--cyan);
}

.admin-body {
  flex: 1;
  background: #050810;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.admin-topbar {
  background: #080e1b;
  border-bottom: 1px solid var(--border-color);
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-content {
  padding: 28px;
  flex: 1;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.stat-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.stat-info h3 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 26px;
  color: #ffffff;
  line-height: 1.1;
}

.stat-info p {
  color: var(--text-muted);
  font-size: 13px;
  margin-top: 2px;
}

/* ==============================================================
   ADMIN PANEL QUICK ACTIONS & PRACTICAL CARDS
   ============================================================== */

/* --- Admin Quick Action Tiles --- */
.admin-quick-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.quick-action-btn {
  background: #0b1220;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.quick-action-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 210, 255, 0.4);
  background: #0f182c;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.quick-action-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

/* --- Admin Visual Category Cards Grid --- */
.admin-cat-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.admin-cat-card {
  background: #0b1220;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.admin-cat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 210, 255, 0.35);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.admin-cat-card.card-inactive {
  opacity: 0.65;
  border-style: dashed;
}

.admin-cat-card-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #060a13;
  overflow: hidden;
}

.admin-cat-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-cat-rank-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0, 102, 255, 0.85);
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.admin-cat-discount-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: linear-gradient(135deg, #f97316, #ef4444);
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 9999px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.admin-cat-card-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
}

.admin-cat-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  color: #ffffff;
  margin: 0;
}

.admin-cat-desc {
  font-size: 11px;
  color: var(--text-dim);
  line-height: 1.4;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.admin-cat-card-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* --- Admin Mobile Cards List (Products & Orders) --- */
.admin-mobile-products-cards,
.admin-mobile-orders-cards {
  display: none;
}

.admin-mobile-card {
  background: #0b1220;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow-sm);
}

/* Ensure containers never clip tables */
.table-responsive {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  display: block;
}

.form-card {
  min-width: 0;
  max-width: 100%;
}

/* --- Footer --- */
.site-footer {
  background: #03060c;
  border-top: 1px solid var(--border-color);
  position: relative;
  margin-top: 60px;
}

.footer-wave-wrap {
  width: 100%;
  line-height: 0;
  position: absolute;
  top: -60px;
  left: 0;
  z-index: 1;
  pointer-events: none;
}

.footer-main {
  padding: 60px 0 30px;
  position: relative;
  z-index: 2;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
  margin: 14px 0 20px;
  max-width: 440px;
}

.cs-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-cs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  border: 1px solid transparent;
}

.btn-cs-wa {
  background: #128c7e;
  color: #ffffff;
}

.btn-cs-wa:hover {
  background: #075e54;
}

.btn-cs-tg {
  background: #0088cc;
  color: #ffffff;
}

.btn-cs-tg:hover {
  background: #0077b5;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  color: #ffffff;
  margin-bottom: 18px;
  letter-spacing: 0.5px;
}

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

.footer-links a {
  color: var(--text-muted);
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--cyan);
  padding-left: 4px;
}

.footer-bottom {
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--text-dim);
  font-size: 13px;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 14px;
}

.social-icon {
  width: 34px;
  height: 34px;
  background: #0e172a;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 15px;
  transition: var(--transition);
}

.social-icon:hover {
  color: var(--cyan);
  border-color: var(--cyan);
  background: rgba(0, 210, 255, 0.1);
}

/* --- Pagination --- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 36px;
}

.page-item {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
}

.page-item:hover, .page-item.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 2px 10px var(--primary-glow);
}

/* --- Feature Badges Grid --- */
.feature-badges-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 18px;
  width: 100%;
}

.feature-badge-item {
  background: rgba(11, 18, 32, 0.85);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.feature-badge-item span:last-child {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --- Poster Showcase Card & Grid --- */
.poster-showcase-card {
  background: linear-gradient(135deg, #091326 0%, #0d1e3d 50%, #080f1d 100%);
  border: 1px solid #1e355b;
  border-radius: var(--radius-lg);
  padding: 32px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  margin-top: 40px;
  width: 100%;
  box-sizing: border-box;
}

.poster-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

/* --- Admin Responsive Helpers --- */
.admin-sidebar-toggle, .admin-sidebar-close {
  display: none;
}

.admin-backdrop {
  display: none;
}

.admin-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.admin-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
}

.admin-grid-order-edit {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 28px;
  align-items: start;
}

.admin-grid-category {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 28px;
  align-items: start;
}

/* ==============================================================
   RESPONSIVE MEDIA QUERIES (Mobile-First Polish)
   Checked at 360px, 390px, 768px, 1024px, 1440px
   ============================================================== */

@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .category-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 900px) {
  .feature-badges-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-menu, .nav-actions .btn-login-desktop {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }

  .promo-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .feature-badges-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .poster-showcase-card {
    grid-template-columns: 1fr;
    padding: 20px;
    gap: 20px;
    margin-top: 24px;
    text-align: center;
  }

  .poster-showcase-card img {
    max-height: 250px !important;
    margin: 0 auto;
  }

  .poster-features-grid {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  /* Admin Mobile Layout & Off-Canvas Drawer */
  .admin-layout {
    flex-direction: column;
    position: relative;
    width: 100%;
    overflow-x: hidden;
  }

  .admin-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    max-width: 85vw;
    height: 100vh;
    z-index: 2000;
    background: #080e1b;
    box-shadow: 4px 0 25px rgba(0, 0, 0, 0.85);
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    display: flex;
    border-right: 1px solid var(--border-color);
  }

  .admin-sidebar.open {
    transform: translateX(0);
  }

  .admin-sidebar-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(0, 102, 255, 0.15);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: #ffffff;
    font-size: 18px;
    cursor: pointer;
  }

  .admin-sidebar-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-muted);
    font-size: 16px;
    cursor: pointer;
  }

  .admin-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .admin-backdrop.open {
    opacity: 1;
    pointer-events: auto;
  }

  .admin-topbar {
    padding: 12px 16px;
    gap: 12px;
    flex-wrap: wrap;
  }

  .admin-topbar-user .admin-user-greeting {
    display: none;
  }

  .admin-content {
    padding: 16px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: visible;
  }

  .admin-grid-2, .admin-grid-3, .admin-grid-order-edit, .admin-grid-category {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .admin-cat-cards-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }

  .admin-quick-actions {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  .admin-desktop-products-table,
  .admin-desktop-orders-table {
    display: none !important;
  }

  .admin-mobile-products-cards,
  .admin-mobile-orders-cards {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
  }
}

@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: 1fr;
  }

  /* 4 KATEGORI BERANDA: 2 KOLOM KIRI-KANAN SESUAI GAMBAR 1 */
  .category-grid-4 {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  .category-card {
    border-radius: 12px !important;
  }

  .category-card .category-info {
    padding: 10px !important;
  }

  .category-card .category-name {
    font-size: 14px !important;
  }

  .category-card .category-desc {
    font-size: 11px !important;
    line-height: 1.4 !important;
    margin-top: 4px !important;
  }

  .category-badge-wrap {
    gap: 4px !important;
    margin-bottom: 4px !important;
  }

  .category-stock-badge {
    font-size: 9px !important;
    padding: 2px 5px !important;
  }

  .category-discount-pill {
    font-size: 9px !important;
    padding: 1px 6px !important;
  }

  /* PROMO CARDS: 2 KOLOM KIRI-KANAN SESUAI GAMBAR 1 */
  .promo-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }

  .promo-card {
    padding: 12px 14px !important;
    gap: 8px !important;
    border-radius: 12px !important;
  }

  .promo-title {
    font-size: 13px !important;
    letter-spacing: 0.5px !important;
  }

  .promo-desc {
    font-size: 10px !important;
    line-height: 1.3 !important;
  }

  .promo-icon-box {
    width: 32px !important;
    height: 32px !important;
    flex-shrink: 0;
  }

  .promo-icon-box img {
    width: 20px !important;
    height: 20px !important;
  }

  .promo-badge {
    font-size: 8px !important;
    padding: 2px 6px !important;
    margin-bottom: 4px !important;
  }

  /* ADMIN HP OPTIMIZATION */
  .admin-cat-cards-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .admin-quick-actions {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  .stat-card {
    padding: 14px !important;
    gap: 10px !important;
  }

  .stat-icon {
    width: 40px !important;
    height: 40px !important;
    font-size: 18px !important;
  }

  .stat-info h3 {
    font-size: 18px !important;
  }

  .stat-info p {
    font-size: 11px !important;
  }

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

  .feature-badges-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }

  .feature-badge-item {
    padding: 8px 10px !important;
    font-size: 11px !important;
  }

  .form-card {
    padding: 16px;
  }

  .filter-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-selects {
    flex-direction: column;
    width: 100%;
  }

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

/* ==============================================================
   MULTI-PHOTO PRODUCT GALLERY & LIGHTBOX
   ============================================================== */

.product-gallery-main {
  position: relative;
  background: radial-gradient(circle at center, #0f1c36 0%, #060b15 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  cursor: zoom-in;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-gallery-main img {
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain !important;
  display: block;
  transition: opacity 0.2s ease;
}

.btn-gallery-zoom {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 6;
  background: rgba(8, 14, 27, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.btn-gallery-zoom:hover {
  background: var(--cyan);
  color: #050810;
  border-color: var(--cyan);
  box-shadow: 0 0 12px rgba(0, 210, 255, 0.4);
}

.gallery-counter-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(5, 8, 16, 0.85);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(0, 210, 255, 0.35);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  z-index: 5;
}

.product-gallery-thumbnails {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
  scrollbar-color: var(--cyan) #0e172a;
}

.product-gallery-thumbnails::-webkit-scrollbar {
  height: 5px;
}

.product-gallery-thumbnails::-webkit-scrollbar-track {
  background: #0e172a;
  border-radius: 4px;
}

.product-gallery-thumbnails::-webkit-scrollbar-thumb {
  background: var(--cyan);
  border-radius: 4px;
}

.gallery-thumb {
  width: 88px;
  height: 52px;
  aspect-ratio: 16 / 9;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid var(--border-color);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0.65;
  background: #060b14;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-thumb img {
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.gallery-thumb:hover {
  opacity: 1;
  border-color: rgba(0, 210, 255, 0.6);
  transform: translateY(-2px);
}

.gallery-thumb.active {
  opacity: 1;
  border-color: var(--cyan);
  box-shadow: 0 0 10px rgba(0, 210, 255, 0.45);
  transform: translateY(-2px);
}

/* Lightbox Modal */
.photo-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(3, 6, 12, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.photo-lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  user-select: none;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 28px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 28px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  line-height: 1;
  z-index: 10;
}

.lightbox-close:hover {
  background: var(--accent-red);
  border-color: var(--accent-red);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 36px;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
  z-index: 10;
}

.lightbox-nav:hover {
  background: var(--cyan);
  color: #050810;
  border-color: var(--cyan);
}

.lightbox-prev {
  left: -60px;
}

.lightbox-next {
  right: -60px;
}

.lightbox-caption {
  margin-top: 16px;
  color: #94a3b8;
  font-size: 13px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.5px;
  text-align: center;
}

@media (max-width: 768px) {
  .lightbox-prev {
    left: 10px;
  }
  .lightbox-next {
    right: 10px;
  }
  .lightbox-close {
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    font-size: 22px;
  }
}

/* ==============================================================
   PRODUCT DETAIL PAGE REFINED LAYOUT & GAMING AESTHETICS
   ============================================================== */
.product-detail-layout {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 36px;
  align-items: start;
  margin-top: 10px;
}

.detail-gallery-column {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.detail-info-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Header & Badges Card */
.detail-header-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.detail-badges-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.detail-product-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 28px;
  color: #ffffff;
  line-height: 1.25;
  margin: 0 0 6px 0;
  letter-spacing: 0.5px;
}

.detail-product-subtitle {
  font-size: 15px;
  color: var(--cyan);
  font-weight: 700;
  margin-bottom: 14px;
}

.detail-meta-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
}

.stock-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 800;
  font-family: var(--font-display);
  letter-spacing: 0.5px;
}

.stock-pill.stock-available {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.stock-pill.stock-empty {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

/* Pricing Card */
.detail-price-card {
  background: linear-gradient(135deg, rgba(8, 25, 58, 0.9), rgba(12, 19, 36, 0.95));
  border: 1px solid rgba(0, 112, 243, 0.4);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  box-shadow: 0 4px 25px rgba(0, 112, 243, 0.2);
}

.detail-price-card.has-discount {
  border-color: rgba(239, 68, 68, 0.5);
  box-shadow: 0 4px 25px rgba(239, 68, 68, 0.2);
}

.detail-price-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.detail-price-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.detail-price-main {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}

.detail-price-val {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 34px;
  color: #00d2ff;
  line-height: 1.1;
  text-shadow: 0 2px 10px rgba(0, 210, 255, 0.3);
}

.detail-price-unit {
  font-size: 15px;
  color: var(--text-muted);
  font-weight: 700;
}

.detail-price-original {
  font-size: 17px;
  color: var(--text-dim);
  text-decoration: line-through;
}

.detail-saving-callout {
  font-size: 12px;
  color: #10b981;
  font-weight: 700;
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.1);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

/* Specifications Card */
.detail-specs-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
}

.detail-specs-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  color: #ffffff;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.detail-specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.spec-chip {
  background: #090f1e;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  transition: var(--transition);
}

.spec-chip:hover {
  border-color: rgba(0, 210, 255, 0.35);
  background: #0d1629;
}

.spec-chip-label {
  font-size: 11px;
  color: var(--text-dim);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.spec-chip-val {
  font-size: 13px;
  color: #e2e8f0;
  font-weight: 700;
}

/* Trust Badges Card on Left Column */
.detail-trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.detail-trust-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 8px;
  text-align: center;
  transition: var(--transition);
}

.detail-trust-item:hover {
  border-color: var(--cyan);
  transform: translateY(-2px);
}

/* Media Queries */
@media (max-width: 900px) {
  .product-detail-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .detail-gallery-column {
    position: static;
  }
  .detail-specs-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Official WhatsApp Channel Button in Footer --- */
.btn-cs-wa-channel {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(37, 211, 102, 0.5) !important;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  transition: var(--transition);
}

.btn-cs-wa-channel:hover {
  background: linear-gradient(135deg, #20ba5a 0%, #075e54 100%) !important;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
  transform: translateY(-2px);
  color: #ffffff !important;
}

/* --- 3-Duration Pricing Grid & Cards (Sesuai Gambar 1) --- */
.pricing-duration-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.pricing-tier-card {
  background: #0d1527;
  border: 1.5px solid #1e2c4a;
  border-radius: 10px;
  padding: 12px 14px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  position: relative;
}

.pricing-tier-card:hover {
  border-color: rgba(0, 210, 255, 0.5) !important;
  transform: translateY(-2px);
}

.pricing-tier-card.active {
  background: #0c1830 !important;
  border-color: #00d2ff !important;
  box-shadow: 0 4px 20px rgba(0, 210, 255, 0.25) !important;
}

.pricing-tier-card.active .tier-price {
  color: #00d2ff !important;
}

/* ==============================================================
   BULLETPROOF UI/UX, TEXT WRAPPING & MOBILE-FIRST ERGONOMICS
   ============================================================== */

/* 1. Global Safe Text Wrapping & Anti-Overflow */
body, main, section, div, p, span, a, h1, h2, h3, h4, h5, h6,
table, th, td, label, button, .badge, .status-badge, .spec-chip-val {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.product-title, 
.product-code, 
.category-name, 
.category-desc, 
.admin-cat-name, 
.admin-cat-desc, 
.hero-banner-card,
.spec-chip-val,
.promo-title,
.promo-desc,
.data-table td {
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}

/* 2. Container & Viewport Containment */
html, body {
  max-width: 100vw;
  overflow-x: clip;
}

@supports not (overflow-x: clip) {
  html, body {
    overflow-x: hidden;
  }
}

.container, .admin-container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}

/* 3. Button Ergonomics & Touch Targets (Min 44px on Mobile) */
.btn, .btn-primary, .btn-secondary, .btn-outline, .btn-dark, .btn-danger, .btn-whatsapp, .btn-cs {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-weight: 700;
  white-space: normal;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
  box-sizing: border-box;
}

.btn-sm {
  min-height: 38px;
  padding: 6px 12px;
  font-size: 13px;
}

.btn-block {
  width: 100% !important;
  display: flex !important;
}

/* 4. Table Responsive Scroll with Smooth Momentum */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 16px;
  border-radius: var(--radius-md);
}

.table-responsive::-webkit-scrollbar {
  height: 6px;
}

.table-responsive::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
  background: var(--cyan);
}

/* 5. Mobile Layout Refinements (<= 640px) */
@media (max-width: 640px) {
  .container, .admin-container {
    padding-left: 12px;
    padding-right: 12px;
  }

  /* Grid 2-Kolom Rapi di Layar HP (Sesuai Gambar 1) */
  .category-grid-4 {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  .product-card {
    padding: 10px !important;
  }

  .product-title {
    font-size: 13px !important;
    line-height: 1.35 !important;
  }

  .product-price {
    font-size: 15px !important;
  }

  /* 3 Pilihan Durasi di HP: 2 di atas, 1 di bawah */
  .pricing-duration-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }

  .pricing-tier-card {
    padding: 10px 8px !important;
  }

  .pricing-tier-card .tier-price {
    font-size: 15px !important;
  }

  /* Admin Category Cards on Mobile */
  .admin-cat-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .admin-cat-card-actions {
    display: flex;
    gap: 8px;
    align-items: center;
  }

  /* Feature Badges under Hero */
  .feature-badges-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }

  .feature-badge-item {
    padding: 10px !important;
    font-size: 12px !important;
  }
}

/* 6. Extra Small Screens (<= 380px) */
@media (max-width: 380px) {
  .pricing-duration-grid {
    grid-template-columns: 1fr !important;
  }
}


