/* --------------------------------------------------------------------------
   VICKYSTORE - CLEAN SOLID DESIGN SYSTEM (NO GRADIENTS)
   Built for high speed, zero bloatware, and professional look.
   -------------------------------------------------------------------------- */

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

:root {
  /* Solid Color Palette (STRICTLY NO GRADIENTS) */
  --bg-dark: #0f172a;
  --bg-surface: #1e293b;
  --bg-surface-hover: #26334d;
  --bg-input: #0b1120;

  --border-color: #334155;
  --border-color-hover: #475569;

  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --whatsapp: #10b981;
  --whatsapp-hover: #059669;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-sub: #cbd5e1;

  --badge-blue: #1e40af;
  --badge-green: #065f46;
  --badge-amber: #92400e;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

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

/* Layout Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navigation Bar */
.navbar {
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 14px 0;
}

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

.brand-logo {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.02em;
}

.brand-badge {
  background-color: var(--primary);
  color: #ffffff;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-weight: 700;
}

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

.nav-link {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: var(--text-main);
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
}

.btn-whatsapp {
  background-color: var(--whatsapp);
  color: #ffffff;
}

.btn-whatsapp:hover {
  background-color: var(--whatsapp-hover);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--border-color);
  color: var(--text-main);
}

.btn-outline:hover {
  background-color: var(--bg-surface-hover);
  border-color: var(--border-color-hover);
}

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

.btn-block {
  width: 100%;
}

/* Hero Section */
.hero {
  padding: 60px 0 40px;
  background-color: var(--bg-dark);
  border-bottom: 1px solid var(--border-color);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 40px;
  align-items: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #1e3a8a;
  color: #93c5fd;
  border: 1px solid #1d4ed8;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.text-accent {
  color: #60a5fa;
}

.hero-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 28px;
}

.trust-badges {
  display: flex;
  gap: 20px;
  margin-top: 24px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-sub);
  font-weight: 600;
}

.trust-icon {
  color: var(--whatsapp);
}

/* Quick Search & Filter Section */
.catalog-header {
  padding: 40px 0 20px;
}

.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.search-box {
  position: relative;
  flex: 1;
  min-width: 260px;
}

.search-input {
  width: 100%;
  padding: 12px 16px 12px 42px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 0.95rem;
}

.search-input:focus {
  outline: none;
  border-color: var(--primary);
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1.1rem;
}

.category-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.cat-tab {
  padding: 8px 16px;
  border-radius: var(--radius-md);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: var(--transition);
}

.cat-tab:hover, .cat-tab.active {
  background-color: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

/* Product Cards Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
  margin-bottom: 60px;
}

.product-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
}

.product-card:hover {
  border-color: var(--border-color-hover);
  transform: translateY(-2px);
}

.product-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
}

.product-icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: #ffffff;
}

.product-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
}

.badge-success { background-color: #065f46; color: #a7f3d0; }
.badge-primary { background-color: #1e40af; color: #bfdbfe; }
.badge-warning { background-color: #78350f; color: #fde68a; }
.badge-accent  { background-color: #4c1d95; color: #ddd6fe; }

.product-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-main);
}

.product-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  min-height: 40px;
}

.feature-list {
  list-style: none;
  margin-bottom: 20px;
  border-top: 1px solid var(--border-color);
  padding-top: 12px;
}

.feature-item {
  font-size: 0.825rem;
  color: var(--text-sub);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.feature-item i {
  color: var(--whatsapp);
}

.variant-selector {
  margin-bottom: 16px;
}

.variant-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 6px;
  display: block;
}

.variant-select {
  width: 100%;
  padding: 10px 12px;
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 0.9rem;
  font-weight: 600;
}

.price-box {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 16px;
}

.price-main {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--whatsapp);
}

.price-original {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

/* Auth Cards & Forms */
.auth-container {
  max-width: 420px;
  margin: 60px auto;
  padding: 32px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
}

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

.auth-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.auth-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
}

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

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-sub);
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 0.95rem;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
}

.alert {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.alert-danger {
  background-color: #7f1d1d;
  border: 1px solid #991b1b;
  color: #fecaca;
}

.alert-success {
  background-color: #064e3b;
  border: 1px solid #065f46;
  color: #a7f3d0;
}

/* Footer */
.footer {
  background-color: #090d16;
  border-top: 1px solid var(--border-color);
  padding: 40px 0 24px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

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

.footer-brand {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 10px;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
  font-size: 0.8rem;
}

/* Responsive Media Queries (Mobile & Tablet) */
.admin-form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  align-items: end;
}

.admin-main-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 32px;
  align-items: start;
}

/* FAQ Modal Floating Compact Styling */
.faq-modal-card {
  background: var(--bg-surface) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 16px !important;
  width: 90vw !important;
  max-width: 500px !important;
  max-height: 70vh !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  box-shadow: 0 25px 60px rgba(0,0,0,0.7) !important;
  margin: auto !important;
}

.faq-tab-btn {
  padding: 8px 12px !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 8px !important;
  color: var(--text-muted) !important;
  font-weight: 700 !important;
  font-size: 0.78rem !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  transition: all 0.2s ease !important;
}

.faq-tab-btn.active {
  background: rgba(59, 130, 246, 0.15) !important;
  border-color: #3b82f6 !important;
  color: #60a5fa !important;
}

.faq-acc-item {
  border: 1px solid var(--border-color) !important;
  border-radius: var(--radius-md) !important;
  background: var(--bg-input) !important;
  overflow: hidden !important;
  margin-bottom: 8px !important;
  transition: border-color 0.2s ease !important;
}

.faq-acc-item:hover {
  border-color: rgba(59, 130, 246, 0.4) !important;
}

@media (max-width: 992px) {
  .admin-main-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
}

/* Mobile Navigation Drawer & Hamburger Toggle */
.mobile-menu-toggle {
  display: none;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-size: 1.35rem;
  padding: 6px 12px;
  border-radius: var(--radius-md);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.mobile-nav-drawer {
  display: none;
  flex-direction: column;
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 12px;
  margin-top: 10px;
  gap: 6px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.mobile-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.03);
}

.mobile-nav-item:hover {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
}

@media (max-width: 768px) {
  /* Container Padding */
  .container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  /* Show Hamburger Menu Toggle, Hide Desktop Horizontal Links */
  .mobile-menu-toggle {
    display: flex !important;
  }

  .desktop-nav-links,
  .nav-auth-desktop {
    display: none !important;
  }

  /* Hero Section Mobile */
  .hero {
    padding: 20px 0 16px !important;
  }

  .hero-grid {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }

  .hero-title {
    font-size: 1.45rem !important;
    line-height: 1.3 !important;
  }

  .hero-desc {
    font-size: 0.85rem !important;
    line-height: 1.45 !important;
  }

  .trust-badges {
    flex-direction: column !important;
    gap: 8px !important;
  }

  .trust-item {
    font-size: 0.78rem !important;
  }

  /* Catalog Filter & Tabs Mobile */
  .filter-bar {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
  }

  .category-tabs {
    display: flex !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    -webkit-overflow-scrolling: touch !important;
    padding-bottom: 6px !important;
    gap: 8px !important;
    width: 100% !important;
    scrollbar-width: none !important;
  }

  .category-tabs::-webkit-scrollbar {
    display: none !important;
  }

  .cat-tab {
    flex-shrink: 0 !important;
    padding: 6px 14px !important;
    font-size: 0.8rem !important;
  }

  .search-box {
    width: 100% !important;
  }

  /* Products Grid Mobile - Full Clean Compact Cards */
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    gap: 16px !important;
  }

  .product-card {
    padding: 16px !important;
    border-radius: 14px !important;
  }

  /* Compact Floating FAQ Modal for Mobile */
  .faq-modal-card {
    width: 88vw !important;
    max-width: 390px !important;
    max-height: 65vh !important;
    border-radius: 14px !important;
    padding: 0 !important;
  }

  .faq-tab-btn {
    padding: 8px 10px !important;
    font-size: 0.75rem !important;
  }

  .faq-acc-item button {
    padding: 10px 12px !important;
    font-size: 0.8rem !important;
  }

  /* Footer Mobile */
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  /* Admin CMS Form Stacking on Mobile */
  .admin-form-row {
    grid-template-columns: 1fr !important;
  }

  /* Touch Scroll Tables */
  .touch-table-wrapper {
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    margin-bottom: 12px !important;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.3rem !important;
  }

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

/* Modal Overlays & Popups */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 480px;
  padding: 28px;
  position: relative;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
  animation: modalFadeIn 0.25s ease-out;
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
}

.modal-close-btn:hover {
  color: var(--text-main);
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* Announcement Running Text Bar (Fitur 4) */
.announcement-bar {
  background: linear-gradient(90deg, #1e3a8a 0%, #1d4ed8 50%, #2563eb 100%);
  color: #ffffff;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 700;
  overflow: hidden;
  position: relative;
  white-space: nowrap;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
}

.announcement-ticker-box {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.announcement-tag {
  background-color: #f59e0b;
  color: #000000;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 800;
  flex-shrink: 0;
}

.announcement-scroll {
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
}

.announcement-scroll-text {
  display: inline-block;
  padding-left: 100%;
  animation: scrollTicker 22s linear infinite;
  color: #f8fafc;
}

.announcement-scroll-text:hover {
  animation-play-state: paused;
}

@keyframes scrollTicker {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-100%, 0, 0); }
}

/* ==========================================================================
   VICKYSTORE ENHANCEMENTS — 6 SKILLS COMBINED
   Skills: ui_ux_pro_max, antigravity-design-expert, glassmorphism,
           card-based-design, dark-mode, enhance_ui
   ========================================================================== */

/* --- 1. CATALOG: Product Card Glassmorphism & Antigravity Float --- */
.product-card {
  background: linear-gradient(145deg, rgba(15, 22, 41, 0.95) 0%, rgba(13, 17, 23, 0.92) 100%) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(99, 102, 241, 0.18) !important;
  border-radius: 18px !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
  transition: transform 0.3s ease-out, box-shadow 0.3s ease-out, border-color 0.3s !important;
  will-change: transform;
}

.product-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 16px 40px rgba(99, 102, 241, 0.2), 0 4px 16px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(99, 102, 241, 0.4) !important;
}

/* --- 2. CATALOG: Staggered Entrance Animation --- */
@keyframes cardFloatIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.product-card {
  animation: cardFloatIn 0.4s ease-out both;
}

.product-card:nth-child(1)  { animation-delay: 0.04s; }
.product-card:nth-child(2)  { animation-delay: 0.08s; }
.product-card:nth-child(3)  { animation-delay: 0.12s; }
.product-card:nth-child(4)  { animation-delay: 0.16s; }
.product-card:nth-child(5)  { animation-delay: 0.20s; }
.product-card:nth-child(6)  { animation-delay: 0.24s; }
.product-card:nth-child(7)  { animation-delay: 0.28s; }
.product-card:nth-child(8)  { animation-delay: 0.32s; }
.product-card:nth-child(9)  { animation-delay: 0.36s; }
.product-card:nth-child(10) { animation-delay: 0.40s; }
.product-card:nth-child(11) { animation-delay: 0.44s; }
.product-card:nth-child(12) { animation-delay: 0.48s; }

@media (prefers-reduced-motion: reduce) {
  .product-card { animation: none !important; will-change: auto !important; }
}

/* --- 3. CATALOG: Filter Tab Pill Style --- */
.cat-tab {
  border-radius: 20px !important;
  font-weight: 700 !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.cat-tab.active {
  background: linear-gradient(135deg, #6366F1, #818CF8) !important;
  border-color: transparent !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4) !important;
}

.cat-tab:not(.active):hover {
  background: rgba(99, 102, 241, 0.12) !important;
  color: #a5b4fc !important;
  border-color: rgba(99, 102, 241, 0.25) !important;
}

/* --- 4. CATALOG: Mobile Grid Optimization --- */
@media (max-width: 640px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }

  .product-card {
    padding: 14px !important;
    border-radius: 14px !important;
  }

  .product-title {
    font-size: 0.88rem !important;
    line-height: 1.25 !important;
  }

  .product-desc {
    font-size: 0.78rem !important;
    margin-bottom: 10px !important;
    min-height: unset !important;
  }

  .price-main {
    font-size: 1.05rem !important;
  }

  .feature-list {
    display: none !important; /* Hide list on small screens for clean grid */
  }
}

@media (max-width: 380px) {
  .products-grid {
    grid-template-columns: 1fr !important;
  }
}

/* --- 5. AUTH PAGES: Glassmorphism Card & Ambient Background Glow --- */
body:has(.auth-container)::before {
  content: '';
  position: fixed;
  top: -180px;
  left: 50%;
  transform: translateX(-50%);
  width: 550px;
  height: 550px;
  background: radial-gradient(ellipse, rgba(99, 102, 241, 0.18) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.auth-container {
  background: linear-gradient(145deg, rgba(15, 22, 41, 0.95), rgba(13, 17, 23, 0.92)) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(99, 102, 241, 0.22) !important;
  border-radius: 22px !important;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
  position: relative;
  z-index: 1;
}

.auth-title {
  background: linear-gradient(135deg, #f1f5f9 0%, #a5b4fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800 !important;
}

.form-control:focus {
  border-color: rgba(99, 102, 241, 0.6) !important;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15) !important;
}

.alert-danger {
  background: rgba(127, 29, 29, 0.5) !important;
  border: 1px solid rgba(239, 68, 68, 0.3) !important;
  backdrop-filter: blur(8px) !important;
  border-radius: 10px !important;
}

.alert-success {
  background: rgba(6, 78, 59, 0.5) !important;
  border: 1px solid rgba(16, 185, 129, 0.3) !important;
  backdrop-filter: blur(8px) !important;
  border-radius: 10px !important;
}

/* --- 6. ADMIN CMS: Glassmorphism & Custom Pill Tabs --- */
.admin-page-header {
  background: linear-gradient(145deg, rgba(15, 22, 41, 0.95), rgba(13, 17, 23, 0.92)) !important;
  border: 1px solid rgba(99, 102, 241, 0.2) !important;
  border-radius: 18px !important;
  padding: 20px 24px !important;
  margin-bottom: 24px !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}

.admin-nav-tabs {
  display: flex !important;
  gap: 8px !important;
  margin-bottom: 24px !important;
  border-bottom: 1px solid rgba(99, 102, 241, 0.15) !important;
  padding-bottom: 12px !important;
  overflow-x: auto !important;
  scrollbar-width: none !important;
}
.admin-nav-tabs::-webkit-scrollbar { display: none !important; }

.admin-tab-btn {
  flex-shrink: 0 !important;
  padding: 8px 18px !important;
  border-radius: 20px !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  border: 1px solid rgba(99, 102, 241, 0.2) !important;
  background: rgba(99, 102, 241, 0.06) !important;
  color: #94a3b8 !important;
  text-decoration: none !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.admin-tab-btn.active,
.admin-tab-btn:hover {
  background: linear-gradient(135deg, #6366F1, #818CF8) !important;
  border-color: transparent !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35) !important;
}

.admin-card {
  background: linear-gradient(145deg, rgba(15, 22, 41, 0.95), rgba(13, 17, 23, 0.9)) !important;
  border: 1px solid rgba(99, 102, 241, 0.18) !important;
  border-radius: 18px !important;
  padding: 24px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
  margin-bottom: 24px !important;
}

.admin-table tbody tr {
  transition: background 0.15s ease !important;
}
.admin-table tbody tr:hover {
  background: rgba(99, 102, 241, 0.06) !important;
}

/* ==========================================================================
   MOBILE-FIRST OVERFLOW & CONTAINMENT GUARDRAILS
   Skills: mobile-design, baseline-ui, design-taste-frontend, ui_ux_pro_max
   ========================================================================== */

/* --- 1. GLOBAL MOBILE VIEWPORT GUARDRAIL --- */
html, body {
  max-width: 100vw !important;
  overflow-x: hidden !important;
  width: 100% !important;
  position: relative !important;
  box-sizing: border-box !important;
}

/* Isolasi Ticker Announcement Running Text agar tidak melebarkan layar */
.announcement-bar {
  max-width: 100vw !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

.announcement-scroll {
  max-width: 100% !important;
  overflow: hidden !important;
}

/* --- 2. PRODUCT CARD OVERFLOW CONTAINMENT & MOBILE FLEX FIX --- */
.product-card {
  min-width: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

.product-top {
  min-width: 0 !important;
  max-width: 100% !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
}

.product-title {
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.product-desc {
  word-break: break-word !important;
}

.variant-selector {
  min-width: 0 !important;
  max-width: 100% !important;
}

.variant-select {
  max-width: 100% !important;
  box-sizing: border-box !important;
  text-overflow: ellipsis !important;
  overflow: hidden !important;
}

.price-box {
  min-width: 0 !important;
  flex-wrap: wrap !important;
}

@media (max-width: 640px) {
  .product-icon-box {
    width: 40px !important;
    height: 40px !important;
    font-size: 1.3rem !important;
    border-radius: 8px !important;
    flex-shrink: 0 !important;
  }

  .product-top {
    align-items: center !important;
  }
  
  .product-badge {
    font-size: 0.68rem !important;
    padding: 3px 6px !important;
  }
}

/* --- 3. RESPONSIVE GRID UTILITY CLASSES --- */
.responsive-flow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

@media (max-width: 640px) {
  .responsive-flow-grid,
  .testimonial-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .container {
    padding-left: 14px !important;
    padding-right: 14px !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
  }
}

/* ==========================================================================
   MASTER RESPONSIVE FORM STACKING & TOUCH TABLE SCROLLBAR UTILITIES
   ========================================================================== */

/* --- 1. RESPONSIVE FORM GRID UTILITIES --- */
.form-grid-2col {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 12px !important;
}

.form-grid-2col-main {
  display: grid !important;
  grid-template-columns: 2fr 1fr !important;
  gap: 12px !important;
}

@media (max-width: 640px) {
  .form-grid-2col,
  .form-grid-2col-main {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
}

/* --- 2. ADMIN CARD & TABLE SCROLLBAR INDICATOR --- */
.admin-card,
.admin-main-grid,
.admin-main-grid > div {
  min-width: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.touch-table-wrapper {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
  display: block !important;
  min-width: 0 !important;
  margin-bottom: 12px !important;
  border-radius: var(--radius-md) !important;
  scrollbar-width: thin !important;
  scrollbar-color: rgba(99, 102, 241, 0.5) rgba(15, 23, 42, 0.6) !important;
}

.touch-table-wrapper::-webkit-scrollbar {
  height: 6px !important;
}
.touch-table-wrapper::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.6) !important;
  border-radius: 4px !important;
}
.touch-table-wrapper::-webkit-scrollbar-thumb {
  background: rgba(99, 102, 241, 0.5) !important;
  border-radius: 4px !important;
}
.touch-table-wrapper::-webkit-scrollbar-thumb:hover {
  background: rgba(99, 102, 241, 0.8) !important;
}

/* --- 3. ADMIN ACTION BUTTONS RESPONSIVE FLEX --- */
.admin-action-btns {
  display: flex !important;
  gap: 4px !important;
  justify-content: flex-end !important;
  align-items: center !important;
  white-space: nowrap !important;
}

@media (max-width: 768px) {
  .admin-action-btns {
    flex-wrap: wrap !important;
    justify-content: flex-end !important;
  }
  .admin-action-btns .btn {
    padding: 4px 8px !important;
    font-size: 0.75rem !important;
  }
}




