/* ==========================================================================
   OMNISYNC - BESPOKE MODERN DARK THEME
   Engineered architectural surfaces, disciplined contrast, high-precision UI
   ========================================================================== */

:root,
[data-theme="dark"],
body.shop-theme-dark {
  /* Dark Canvas & Card Foundations - High-End Velvet Obsidian Charcoal (Smooth, Rich, Dimensional, Not pitch-black) */
  --bg-page: #0b0d14;
  --bg-card: #131622;
  --bg-card-subtle: #181c2b;
  --bg-card-hover: #1e2235;
  --bg-glass-card: rgba(19, 22, 34, 0.85);
  --bg-glass-input: #10121d;
  --bg-glass-subtle: rgba(24, 28, 43, 0.7);
  --text-main: #f8fafc;
  --text-sub: #94a3b8;
  --text-muted: #64748b;
  
  /* Primary Sky Blue Accents (Default) */
  --primary-rose: #0ea5e9;
  --primary-rose-hover: #0284c7;
  --pink-light: rgba(14, 165, 233, 0.08);
  --pink-border: rgba(14, 165, 233, 0.25);
  
  /* Hairline Borders & Precise Elevation Shadows */
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-hover: rgba(14, 165, 233, 0.45);
  --glass-highlight: inset 0 1px 0 0 rgba(255, 255, 255, 0.06);
  --glass-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.4);
  --glass-shadow-hover: 0 12px 32px -4px rgba(0, 0, 0, 0.55);
  --theme-glow: rgba(14, 165, 233, 0.35);
  
  --font-family: 'Prompt', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radius-card: 14px;
  --radius-pill: 999px;
  --radius-btn: 9px;
}

/* Light Theme Variables - Modern Clean Crisp White & Zinc with Sky Blue Accent */
[data-theme="light"],
[data-theme="pink"],
body.shop-theme-pink,
html[data-theme="light"] body,
html[data-theme="pink"] body {
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-subtle: #f1f5f9;
  --bg-card-hover: #ffffff;
  --bg-glass-card: rgba(255, 255, 255, 0.94);
  --bg-glass-input: #ffffff;
  --bg-glass-subtle: #f8fafc;
  --text-main: #0f172a;
  --text-sub: #475569;
  --text-muted: #94a3b8;
  --primary-rose: #0284c7;
  --primary-rose-hover: #0369a1;
  --pink-light: rgba(2, 132, 199, 0.06);
  --pink-border: rgba(2, 132, 199, 0.2);
  --glass-border: rgba(0, 0, 0, 0.08);
  --glass-border-hover: rgba(2, 132, 199, 0.4);
  --glass-highlight: inset 0 1px 0 0 rgba(255, 255, 255, 1);
  --glass-shadow: 0 2px 10px -1px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
  --glass-shadow-hover: 0 10px 25px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
}

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

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

body {
  background-color: var(--bg-page);
  background-image: 
    radial-gradient(circle 1000px at 50% 0%, rgba(30, 37, 56, 0.45) 0%, transparent 70%),
    radial-gradient(circle 800px at 50% 100%, rgba(18, 22, 34, 0.35) 0%, transparent 60%);
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: var(--text-main);
  font-family: var(--font-family);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color .32s cubic-bezier(0.4, 0, 0.2, 1), color .32s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
}

body.shop-theme-pink,
[data-theme="light"] body,
[data-theme="pink"] body {
  background-color: var(--bg-page);
  background-image: 
    radial-gradient(circle 1000px at 50% 0%, rgba(14, 165, 233, 0.04) 0%, transparent 70%),
    radial-gradient(circle 900px at 50% 100%, rgba(241, 245, 249, 0.8) 0%, transparent 60%);
}

main,
.page-container,
.shop-page-wrapper,
.product-detail-section,
.history-page-section,
.topup-shell,
.admin-shell {
  flex: 1 0 auto;
}

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

button {
  font-family: inherit;
}

/* ==========================================================================
   Ultra-Modern Architectural Ambient Background (Bespoke Minimalist & Zero-Lag)
   Inspired by Linear, Vercel, and Raycast.
   Non-cluttered, pure GPU-composited, fluid responsive scaling.
   ========================================================================== */
.ambient-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  contain: strict;
}

/* 1. Top Horizon Ambient Accent Line - Hidden to prevent harsh line above navbar */
.ambient-horizon {
  display: none !important;
}

/* 2. Cinematic Architectural Spotlight (Hero focal light - Perfectly centered, 100% fluid) */
.ambient-spotlight {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 540px;
  background: radial-gradient(ellipse 70% 440px at 50% -60px, 
    rgba(14, 165, 233, 0.09) 0%, 
    rgba(14, 165, 233, 0.02) 45%, 
    transparent 72%
  );
  animation: ambientSpotlightBreath 14s ease-in-out infinite alternate;
  will-change: opacity, transform;
  pointer-events: none;
}

/* 3. Soft Ambient Aura Glow - Hidden to prevent tiny floating circle on zoom out */
.ambient-aura {
  display: none !important;
}

/* 4. Precision Architectural Micro-Grid - Hidden to eliminate artificial circular cutoffs */
.ambient-grid {
  display: none !important;
}

/* Smooth, Cinematic Ambient Keyframes (Pure Symmetrical Scale & Opacity) */
@keyframes ambientSpotlightBreath {
  0% {
    opacity: 0.85;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.02);
  }
  100% {
    opacity: 0.8;
    transform: scale(0.98);
  }
}

/* Light / Clean White Theme Adaptations */
body.shop-theme-pink .ambient-spotlight,
[data-theme="light"] body .ambient-spotlight {
  background: radial-gradient(ellipse 70% 380px at 50% -40px, 
    rgba(2, 132, 199, 0.05) 0%, 
    transparent 65%
  );
}

@media (prefers-reduced-motion: reduce) {
  .ambient-spotlight {
    animation: none !important;
  }
}

.ambient-dark-bg { display: none; }

/* Page Container */
.page-container {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px 80px;
  box-sizing: border-box;
}

/* ==========================================================================
   1. Floating Frosted Glass Top Navbar
   ========================================================================== */
.top-nav-wrap {
  position: sticky;
  top: 14px;
  z-index: 1000;
  width: 100%;
  max-width: 1180px;
  margin: 14px auto 24px;
  padding: 0 20px;
  box-sizing: border-box;
}

.top-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  height: 64px;
  padding: 0 22px;
  background: rgba(19, 22, 34, 0.82);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-pill);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.07), 0 8px 28px -4px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all .25s ease;
}

body.shop-theme-pink .top-nav-inner,
[data-theme="light"] body .top-nav-inner {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 18px -2px rgba(0, 0, 0, 0.06);
}

/* Brand */
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  cursor: pointer;
}

.nav-shop-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-brand-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text-main);
}

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2.2vw, 28px);
  margin: 0 auto;
}

.nav-item {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-sub);
  padding: 6px 2px;
  transition: color .18s ease;
}

.nav-item:hover {
  color: var(--primary-rose);
}

.nav-item.is-active {
  color: var(--primary-rose);
  font-weight: 700;
}

.nav-item.is-active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary-rose);
  border-radius: 999px;
}

/* Mobile Admin Link in drawer (Hidden on Desktop) */
.nav-item-admin {
  display: none !important;
}

/* Hide redundant guest profile button on desktop (CTA button is present) */
.guest-profile-wrap {
  display: none !important;
}

/* Right Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav-actions > *,
.nav-balance-pill,
.theme-toggle-btn,
.nav-login-cta-btn,
.nav-profile-btn,
.mobile-menu-toggle {
  -webkit-tap-highlight-color: transparent;
  outline: none;
  flex-shrink: 0;
}

.theme-toggle-btn:focus,
.nav-profile-btn:focus,
.mobile-menu-toggle:focus,
.nav-login-cta-btn:focus,
.nav-balance-pill:focus {
  outline: none !important;
}

.theme-toggle-btn:focus-visible,
.nav-profile-btn:focus-visible,
.mobile-menu-toggle:focus-visible,
.nav-login-cta-btn:focus-visible,
.nav-balance-pill:focus-visible {
  outline: 2px solid var(--primary-rose) !important;
  outline-offset: 1px;
}

/* Mobile Auth Link in drawer (Hidden on Desktop) */
.mobile-auth-link {
  display: none !important;
}

/* Balance Pill */
.nav-balance-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--pink-light);
  border: 1px solid var(--pink-border);
  border-radius: var(--radius-pill);
  padding: 5px 14px;
  cursor: pointer;
  box-shadow: var(--glass-highlight);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform .18s ease, box-shadow .18s ease;
}

.nav-balance-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(14, 165, 233, 0.35);
}

.balance-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  text-align: right;
}

.balance-label {
  font-size: 10.5px;
  color: var(--text-sub);
  font-weight: 500;
}

.balance-amount {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--primary-rose);
  text-shadow: 0 0 10px rgba(14, 165, 233, 0.35);
}

.balance-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Theme Toggle Button */
.theme-toggle-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: var(--bg-glass-subtle);
  color: var(--text-sub);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--glass-highlight);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all .18s ease;
}

.theme-toggle-btn:hover {
  color: var(--primary-rose);
  border-color: var(--primary-rose);
  transform: rotate(15deg);
}

body.shop-theme-dark .icon-moon,
[data-theme="dark"] body .icon-moon { display: none; }

body.shop-theme-dark .icon-sun,
[data-theme="dark"] body .icon-sun { display: block; }

body.shop-theme-pink .icon-moon,
[data-theme="light"] body .icon-moon,
[data-theme="pink"] body .icon-moon { display: block; }

body.shop-theme-pink .icon-sun,
[data-theme="light"] body .icon-sun,
[data-theme="pink"] body .icon-sun { display: none; }

/* Guest Quick Login Button */
.nav-login-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 15px;
  background: var(--bg-glass-subtle);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-pill);
  color: var(--text-main);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--glass-highlight);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all .2s ease;
  cursor: pointer;
}

.nav-login-cta-btn:hover {
  background: var(--pink-light);
  border-color: var(--primary-rose);
  color: var(--primary-rose);
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(14, 165, 233, 0.35);
}

/* User Avatar & Dropdown Wrap */
.nav-profile-wrap {
  position: relative;
}

.nav-profile-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: var(--bg-glass-subtle);
  color: var(--text-main);
  cursor: pointer;
  box-shadow: var(--glass-highlight);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all .2s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0;
}

.nav-profile-btn:hover,
.nav-profile-btn[aria-expanded="true"] {
  border-color: var(--primary-rose);
  box-shadow: 0 0 16px rgba(14, 165, 233, 0.35);
  transform: scale(1.05);
  color: var(--primary-rose);
}

.nav-profile-btn.is-logged-in {
  background: var(--primary-rose);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 16px rgba(14, 165, 233, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.nav-avatar-initial {
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.nav-online-dot {
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #10b981;
  border: 2px solid #0f1523;
  box-shadow: 0 0 8px #10b981;
}

body.shop-theme-pink .nav-online-dot {
  border-color: #ffffff;
}

/* Frosted Glass Profile Dropdown Card */
.nav-profile-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 280px;
  max-width: calc(100vw - 32px);
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 16px 40px -4px rgba(0, 0, 0, 0.75);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px) scale(0.98);
  transform-origin: top right;
  transition: opacity .18s cubic-bezier(0.16, 1, 0.3, 1), transform .18s cubic-bezier(0.16, 1, 0.3, 1), visibility .18s;
  z-index: 1050;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

body.shop-theme-pink .nav-profile-dropdown,
[data-theme="light"] body .nav-profile-dropdown {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 12px 32px -4px rgba(0, 0, 0, 0.12);
}

.nav-profile-dropdown.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.dropdown-user-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dropdown-user-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--primary-rose);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.35);
  flex-shrink: 0;
}

.dropdown-user-avatar.is-guest {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-sub);
  box-shadow: none;
  border: 1px solid var(--glass-border);
}

.dropdown-user-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  gap: 2px;
}

.dropdown-user-email {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dropdown-user-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: #10b981;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 6px #10b981;
}

.dropdown-user-badge.is-admin-badge {
  color: var(--primary-rose);
  font-weight: 700;
}

.dropdown-user-desc {
  font-size: 11.5px;
  color: var(--text-sub);
}

.dropdown-wallet-card {
  background: var(--pink-light);
  border: 1px solid var(--pink-border);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dropdown-wallet-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dropdown-wallet-label {
  font-size: 11.5px;
  color: var(--text-sub);
  font-weight: 500;
}

.dropdown-wallet-val {
  font-size: 17px;
  font-weight: 800;
  color: var(--primary-rose);
  text-shadow: 0 0 10px rgba(14, 165, 233, 0.35);
}

.dropdown-wallet-topup-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--primary-rose);
  border: none;
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.35);
  transition: transform .18s ease, filter .18s ease;
  font-family: inherit;
}

.dropdown-wallet-topup-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
}

.dropdown-divider {
  height: 1px;
  background: var(--glass-border);
  margin: 2px 0;
}

.dropdown-menu-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 12px;
  color: var(--text-main);
  text-decoration: none;
  transition: all .16s ease;
  cursor: pointer;
}

.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--primary-rose);
}

body.shop-theme-pink .dropdown-item:hover {
  background: var(--pink-light);
}

.dropdown-item-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  color: var(--text-sub);
  flex-shrink: 0;
  transition: all .16s ease;
}

.dropdown-item:hover .dropdown-item-icon {
  color: var(--primary-rose);
  border-color: var(--pink-border);
  background: var(--pink-light);
}

.dropdown-item-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  flex: 1;
}

.dropdown-item-text .item-title {
  font-size: 13.5px;
  font-weight: 600;
}

.dropdown-item-text .item-desc {
  display: none;
}

.dropdown-item-danger:hover {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
}

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

.dropdown-item-primary {
  background: var(--pink-light);
  border: 1px solid var(--pink-border);
}

.dropdown-item-primary:hover {
  background: rgba(14, 165, 233, 0.18);
}

/* Mobile Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 4px;
  position: relative;
}

.mobile-menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text-main);
  border-radius: 2px;
  transition: transform 0.26s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.2s ease,
              background-color 0.2s ease;
  transform-origin: center;
}

.mobile-menu-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
  background: var(--primary-rose);
}

.mobile-menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
  background: var(--primary-rose);
}

/* ==========================================================================
   2. Hero Section & Stats Row (Image 2)
   ========================================================================== */
.hero-section {
  margin-bottom: 24px;
}

.hero-banner-card {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 30px -4px rgba(0, 0, 0, 0.55);
  margin-bottom: 16px;
  border: 1px solid var(--glass-border);
  background: var(--bg-card);
  user-select: none;
  transition: height 0.38s cubic-bezier(0.25, 1, 0.5, 1);
  position: relative;
}

.hero-slider-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.hero-slider-track {
  display: flex;
  width: 100%;
  align-items: flex-start;
  transition: transform 0.55s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.hero-slide-item {
  flex: 0 0 100%;
  width: 100%;
  max-width: 100%;
  position: relative;
  box-sizing: border-box;
}

.hero-slide-link {
  display: block;
  width: 100%;
  text-decoration: none;
}

.hero-banner-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* Arrow Navigation Buttons */
.hero-slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(15, 20, 32, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.hero-slider-wrap:hover .hero-slider-nav {
  opacity: 1;
  pointer-events: auto;
}

.hero-slider-prev {
  left: 14px;
}

.hero-slider-next {
  right: 14px;
}

.hero-slider-nav:hover {
  background: var(--primary-rose);
  border-color: var(--primary-rose);
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 0 18px rgba(14, 165, 233, 0.45);
}

/* Pagination Dots */
.hero-slider-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  background: rgba(10, 14, 24, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 10;
}

.hero-slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-slider-dot.is-active {
  width: 24px;
  background: var(--primary-rose);
  box-shadow: 0 0 10px var(--primary-rose);
}

/* Stats Row - Modern Metrics Bar */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  transition: transform .18s ease, border-color .18s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.16);
}

body.shop-theme-pink .stat-card,
[data-theme="light"] body .stat-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.stat-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-icon-rose { background: var(--pink-light); color: var(--primary-rose); border: 1px solid var(--pink-border); }
.stat-icon-sky { background: rgba(56, 189, 248, 0.1); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.2); }
.stat-icon-emerald { background: rgba(16, 185, 129, 0.1); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.2); }
.stat-icon-amber { background: rgba(245, 158, 11, 0.1); color: #f59e0b; border: 1px solid rgba(245, 158, 11, 0.2); }

.stat-content {
  display: flex;
  flex-direction: column;
}

.stat-label {
  font-size: 12px;
  color: var(--text-sub);
  font-weight: 500;
  margin-bottom: 2px;
}

.stat-num {
  font-size: 21px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   3. Quick Action Feature Cards (Bespoke UI Cards)
   ========================================================================== */
.promo-actions-section {
  margin-bottom: 34px;
}

.promo-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.promo-action-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  transition: transform .2s ease, border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
  position: relative;
}

.promo-action-card:hover {
  transform: translateY(-3px);
  border-color: rgba(14, 165, 233, 0.4);
  background: var(--bg-card-hover);
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.5);
}

body.shop-theme-pink .promo-action-card,
[data-theme="light"] body .promo-action-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

body.shop-theme-pink .promo-action-card:hover,
[data-theme="light"] body .promo-action-card:hover {
  background: #ffffff;
  border-color: var(--primary-rose);
  box-shadow: 0 8px 20px -2px rgba(14, 165, 233, 0.12);
}

.promo-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.promo-icon-rose { background: var(--pink-light); color: var(--primary-rose); border: 1px solid var(--pink-border); }
.promo-icon-sky { background: rgba(56, 189, 248, 0.1); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.2); }
.promo-icon-emerald { background: rgba(16, 185, 129, 0.1); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.2); }
.promo-icon-amber { background: rgba(245, 158, 11, 0.1); color: #f59e0b; border: 1px solid rgba(245, 158, 11, 0.2); }

.promo-card-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.promo-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.promo-card-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
}

.promo-card-tag {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-sub);
  white-space: nowrap;
}

body.shop-theme-pink .promo-card-tag {
  background: rgba(0, 0, 0, 0.05);
}

.promo-card-desc {
  font-size: 12px;
  color: var(--text-sub);
  line-height: 1.45;
  margin: 0;
}

.promo-card-action {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary-rose);
  transition: gap .18s ease;
}

.promo-action-card:hover .promo-card-action {
  gap: 8px;
}

/* ==========================================================================
   4. Section "แอพพรีเมี่ยมยอดนิยม" (Popular Premium Apps - Image 3)
   ========================================================================== */
.popular-apps-section {
  margin-bottom: 40px;
}

.section-title-wrap {
  margin-bottom: 22px;
}

.section-badge-pink {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--primary-rose);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 4px;
}

.section-main-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

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

.popular-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-card);
  padding: 22px 16px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.popular-card:hover {
  transform: translateY(-3px);
  border-color: rgba(14, 165, 233, 0.4);
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.5);
}

body.shop-theme-pink .popular-card,
[data-theme="light"] body .popular-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}



.popular-icon-wrap {
  width: 68px;
  height: 68px;
  margin: 8px auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.popular-icon-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.popular-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.popular-desc {
  font-size: 12px;
  color: var(--text-sub);
  line-height: 1.45;
  min-height: 36px;
  margin-bottom: 16px;
}

.popular-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  width: 100%;
  padding: 9.5px 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-btn);
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  transition: opacity .18s ease, transform .18s ease;
}

.popular-btn:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

/* ==========================================================================
   5. Section "ร้านค้า" / Product Catalog
   ========================================================================== */
.store-catalog-section {
  margin-bottom: 60px;
}

/* Filter Pills Bar - Modern Segmented Dock */
.catalog-filters-bar {
  margin-bottom: 22px;
  background: rgba(19, 22, 34, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 6px 8px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 8px 30px -4px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body.shop-theme-pink .catalog-filters-bar,
[data-theme="light"] body .catalog-filters-bar {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 16px -2px rgba(0, 0, 0, 0.05);
}

.catalog-filters-scroll {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding: 2px 2px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

.catalog-filters-scroll::-webkit-scrollbar {
  display: none;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  color: #94a3b8;
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  transition: all .2s cubic-bezier(0.16, 1, 0.3, 1);
}

.filter-pill .pill-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  opacity: 0.75;
  color: #94a3b8;
  transition: opacity .2s ease, transform .2s ease, color .2s ease;
}

.filter-pill:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.filter-pill:hover .pill-icon {
  opacity: 1;
  color: #38bdf8;
  transform: scale(1.08);
}

.filter-pill.is-active {
  background: #0ea5e9;
  color: #ffffff;
  border-color: rgba(56, 189, 248, 0.5);
  font-weight: 600;
  transform: translateY(0);
  box-shadow: 0 4px 16px rgba(14, 165, 233, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.filter-pill.is-active .pill-icon {
  opacity: 1;
  color: #ffffff;
  transform: scale(1.04);
}

body.shop-theme-pink .filter-pill,
[data-theme="light"] body .filter-pill {
  background: rgba(0, 0, 0, 0.035);
  border-color: rgba(0, 0, 0, 0.07);
  color: #64748b;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

body.shop-theme-pink .filter-pill:hover,
[data-theme="light"] body .filter-pill:hover {
  background: rgba(0, 0, 0, 0.07);
  color: #0f172a;
  border-color: rgba(0, 0, 0, 0.14);
}

body.shop-theme-pink .filter-pill.is-active,
[data-theme="light"] body .filter-pill.is-active {
  background: #0ea5e9;
  border-color: #0ea5e9;
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(14, 165, 233, 0.35);
}

body.shop-theme-pink .filter-pill.is-active .pill-icon,
[data-theme="light"] body .filter-pill.is-active .pill-icon {
  color: #ffffff;
}

/* Skeleton Loading UI */
.skeleton-card {
  pointer-events: none;
  user-select: none;
}

.skeleton-box {
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}

.skeleton-icon-squircle {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  margin-bottom: 12px;
  background: rgba(255, 255, 255, 0.06);
}

.skeleton-title-bar {
  width: 72%;
  height: 16px;
  margin: 0 auto 12px;
  border-radius: 6px;
}

.skeleton-price-bar {
  width: 48%;
  height: 22px;
  margin: 0 auto 10px;
  border-radius: 6px;
}

.skeleton-stock-pill {
  width: 90px;
  height: 22px;
  border-radius: 999px;
  margin: 0 auto;
}

.skeleton-btn-bar {
  width: 100%;
  height: 40px;
  border-radius: 10px;
  margin-top: auto;
}

.skeleton-shimmer {
  position: relative;
  overflow: hidden;
}

.skeleton-shimmer::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  transform: translateX(-100%);
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.09) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  animation: skeletonWave 1.4s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

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

body.shop-theme-pink .skeleton-box,
[data-theme="light"] body .skeleton-box {
  background: rgba(0, 0, 0, 0.06);
}

body.shop-theme-pink .skeleton-shimmer::after,
[data-theme="light"] body .skeleton-shimmer::after {
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.08) 50%,
    rgba(0, 0, 0, 0) 100%
  );
}

@keyframes gridCardsFadeIn {
  0% {
    opacity: 0;
    transform: translateY(8px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.grid-cards-anim {
  animation: gridCardsFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Search & Sort Bar */
.catalog-search-sort-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  position: relative;
}

.catalog-search-wrap {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-btn);
  padding: 0 16px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: center center;
  will-change: transform, box-shadow;
}

.catalog-search-wrap:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
}

.catalog-search-wrap:focus-within {
  flex-grow: 1.45;
  transform: scale(1.03) translateY(-1px);
  z-index: 10;
  border-color: var(--primary-rose);
  background: #141923;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.28), 0 14px 34px -4px rgba(0, 0, 0, 0.65), 0 0 24px rgba(14, 165, 233, 0.22);
}

body.shop-theme-pink .catalog-search-wrap,
[data-theme="light"] body .catalog-search-wrap {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
}

body.shop-theme-pink .catalog-search-wrap:hover,
[data-theme="light"] body .catalog-search-wrap:hover {
  border-color: rgba(0, 0, 0, 0.16);
  background: #ffffff;
}

body.shop-theme-pink .catalog-search-wrap:focus-within,
[data-theme="light"] body .catalog-search-wrap:focus-within {
  background: #ffffff;
  border-color: var(--primary-rose);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.22), 0 14px 30px -4px rgba(0, 0, 0, 0.12), 0 0 16px rgba(14, 165, 233, 0.15);
}

.search-svg {
  color: var(--text-muted);
  flex-shrink: 0;
  margin-right: 10px;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease;
}

.catalog-search-wrap:focus-within .search-svg {
  color: var(--primary-rose);
  transform: scale(1.18);
}

.catalog-search-wrap input {
  width: 100%;
  padding: 12px 0;
  border: 0;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  color: var(--text-main);
  transition: font-size 0.2s ease;
}

.catalog-search-wrap:focus-within input {
  font-size: 14.5px;
}

.catalog-search-wrap input::placeholder {
  color: var(--text-muted);
  transition: opacity 0.2s ease;
}

.catalog-search-wrap:focus-within input::placeholder {
  opacity: 0.65;
}

.search-clear-btn {
  background: none;
  border: 0;
  font-size: 16px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 2px 6px;
  transition: transform 0.18s ease, color 0.18s ease;
}

.search-clear-btn:hover {
  color: var(--text-main);
  transform: scale(1.15);
}

.catalog-sort-wrap {
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.catalog-sort-wrap select {
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-btn);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  outline: none;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.catalog-sort-wrap select:hover {
  border-color: rgba(255, 255, 255, 0.16);
}

.catalog-sort-wrap select:focus {
  border-color: var(--primary-rose);
  box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.25);
}

@media (max-width: 640px) {
  .catalog-search-sort-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .catalog-search-wrap:focus-within {
    transform: none;
  }
}

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

.product-store-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-card);
  padding: 22px 16px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.product-store-card:hover {
  transform: translateY(-3px);
  border-color: rgba(14, 165, 233, 0.45);
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.5);
}

body.shop-theme-pink .product-store-card,
[data-theme="light"] body .product-store-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.store-card-icon-box {
  width: 72px;
  height: 72px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.store-card-icon-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.store-card-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 8px;
  line-height: 1.4;
  min-height: 40px;
}

.store-card-price {
  font-size: 21px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 4px;
  font-variant-numeric: tabular-nums;
}

body.shop-theme-pink .store-card-price,
[data-theme="light"] body .store-card-price {
  color: var(--text-main);
}

.store-card-stock {
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stock-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1px;
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.28);
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.08);
  transition: all .2s ease;
}

.stock-pill-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
  display: inline-block;
  flex-shrink: 0;
}

.stock-pill-badge.is-low {
  background: rgba(245, 158, 11, 0.14);
  color: #f59e0b;
  border-color: rgba(245, 158, 11, 0.32);
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.1);
}

.stock-pill-badge.is-low .stock-pill-dot {
  background: #f59e0b;
  box-shadow: 0 0 6px #f59e0b;
}

.stock-pill-badge.is-out {
  background: rgba(239, 68, 68, 0.14);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.3);
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.1);
}

.stock-pill-badge.is-out .stock-pill-dot {
  background: #ef4444;
  box-shadow: 0 0 6px #ef4444;
}

body.shop-theme-pink .stock-pill-badge {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  border-color: rgba(16, 185, 129, 0.24);
}

body.shop-theme-pink .stock-pill-badge.is-low {
  background: rgba(245, 158, 11, 0.12);
  color: #d97706;
  border-color: rgba(245, 158, 11, 0.24);
}

body.shop-theme-pink .stock-pill-badge.is-out {
  background: rgba(239, 68, 68, 0.12);
  color: #dc2626;
  border-color: rgba(239, 68, 68, 0.24);
}

.store-card-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  width: 100%;
  padding: 10px 0;
  background: var(--primary-rose);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-btn);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  transition: background-color .18s ease, transform .18s ease;
}

.store-card-btn:hover {
  background: var(--primary-rose-hover);
  transform: translateY(-1px);
}

/* Empty State */
.products-empty-state {
  text-align: center;
  padding: 60px 20px;
  background: var(--bg-glass-card);
  border: 1px dashed var(--pink-border);
  border-radius: var(--radius-card);
  margin-top: 20px;
  backdrop-filter: blur(20px);
}

.empty-icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--pink-light);
  color: var(--primary-rose);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.products-empty-state h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}

.products-empty-state p {
  font-size: 14px;
  color: var(--text-sub);
  margin-bottom: 18px;
}

.empty-btn-reset {
  padding: 9px 22px;
  background: var(--primary-rose);
  color: #fff;
  border: 0;
  border-radius: var(--radius-pill);
  font-weight: 600;
  cursor: pointer;
}

/* ==========================================================================
   6. Modals (Frosted Glassmorphism)
   ========================================================================== */
.custom-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(4, 6, 12, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.custom-modal-backdrop[hidden] {
  display: none !important;
}

.custom-modal-card {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: var(--bg-card);
  border-radius: 16px;
  padding: 26px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  border: 1px solid var(--glass-border);
  animation: modalPop .24s cubic-bezier(0.16, 1, 0.3, 1);
}

body.shop-theme-pink .custom-modal-card,
[data-theme="light"] body .custom-modal-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

@keyframes modalPop {
  0% { transform: scale(0.92); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.modal-close-x {
  position: absolute;
  top: 16px;
  right: 18px;
  background: none;
  border: 0;
  font-size: 26px;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  transition: color .18s ease;
}

.modal-close-x:hover {
  color: var(--primary-rose);
}

.modal-item-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--glass-border);
  margin-bottom: 20px;
}

.modal-thumb-wrap {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: var(--bg-glass-subtle);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.modal-thumb-img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
}

.modal-category-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--primary-rose);
  text-transform: uppercase;
  margin-bottom: 2px;
}

.modal-product-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.25;
}

.modal-warranty-text {
  font-size: 12px;
  color: var(--text-muted);
}

.modal-form-group {
  margin-bottom: 16px;
}

.modal-form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
}

.select-styled-wrap select,
.input-styled-wrap input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-btn);
  font-family: inherit;
  font-size: 13.5px;
  color: var(--text-main);
  background: var(--bg-glass-input);
  outline: none;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: border-color .18s ease, box-shadow .18s ease;
}

.select-styled-wrap select:focus,
.input-styled-wrap input:focus {
  border-color: var(--primary-rose);
  box-shadow: 0 0 0 3px var(--pink-border);
}

.input-styled-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.field-icon {
  position: absolute;
  left: 12px;
  color: var(--text-muted);
}

.input-styled-wrap input {
  padding-left: 38px;
}

.form-hint-text {
  display: block;
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 4px;
}

.modal-price-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--bg-glass-subtle);
  border: 1px solid var(--pink-border);
  border-radius: var(--radius-btn);
  margin-bottom: 18px;
}

.price-bar-label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-main);
}

.price-bar-value {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary-rose);
  text-shadow: 0 0 10px rgba(14, 165, 233, 0.4);
}

.modal-confirm-btn {
  width: 100%;
  padding: 12px 0;
  background: var(--primary-rose);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-btn);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(14, 165, 233, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: filter .18s ease, transform .18s ease;
}

.modal-confirm-btn:hover {
  filter: brightness(1.15);
  transform: translateY(-1px);
}

.modal-success-receipt {
  text-align: center;
  padding: 10px 0;
}

.receipt-check-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}

.receipt-heading {
  font-size: 20px;
  font-weight: 800;
  color: #10b981;
  margin-bottom: 4px;
}

.receipt-subtext {
  font-size: 13px;
  color: var(--text-sub);
  margin-bottom: 16px;
}

.receipt-info-card {
  background: var(--bg-glass-subtle);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-btn);
  padding: 14px;
  margin-bottom: 18px;
  text-align: left;
}

.receipt-item-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 5px 0;
}

.rk { color: var(--text-muted); }
.rv { color: var(--text-main); font-weight: 600; }
.rv-code {
  background: rgba(147, 51, 234, 0.25);
  color: #c084fc;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 12px;
}

.receipt-code-box {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 10px 12px;
  font-family: 'JetBrains Mono', Consolas, monospace;
  font-size: 12px;
  color: #f1f5f9;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-all;
  max-height: 160px;
  overflow-y: auto;
  margin: 6px 0 0;
  user-select: all;
  text-align: left;
}

body.shop-theme-pink .receipt-code-box,
[data-theme="light"] body .receipt-code-box,
[data-theme="pink"] body .receipt-code-box {
  background: #fdf2f8;
  border-color: #fbcfe8;
  color: #831843;
}

.receipt-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-main);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.receipt-copy-btn:hover {
  background: rgba(235, 16, 126, 0.15);
  border-color: var(--primary-rose);
  color: #fff;
}

.receipt-close-btn {
  width: 100%;
  padding: 11px 0;
  background: var(--primary-rose);
  color: #fff;
  border: 0;
  border-radius: var(--radius-btn);
  font-weight: 700;
  cursor: pointer;
}

/* Topup Specifics */
.topup-guide {
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 10px;
}

.topup-amount-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.amount-chip {
  flex: 1;
  min-width: 70px;
  padding: 8px 0;
  border: 1px solid var(--glass-border);
  background: var(--bg-glass-subtle);
  border-radius: var(--radius-btn);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  transition: all .18s ease;
}

.amount-chip:hover,
.amount-chip.is-selected {
  background: var(--primary-rose);
  color: #ffffff;
  border-color: var(--primary-rose);
  box-shadow: 0 0 14px rgba(14, 165, 233, 0.45);
}

.qr-preview-box {
  background: #ffffff;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-card);
  padding: 16px;
  text-align: center;
  margin-bottom: 18px;
}

.qr-img {
  width: 150px;
  height: 150px;
  margin: 0 auto 10px;
  display: block;
  border-radius: 8px;
}

.qr-hint {
  display: block;
  font-size: 11.5px;
  color: #475569;
}

/* Guide Modal Steps */
.guide-steps-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 22px;
}

.guide-step-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary-rose);
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-txt strong {
  display: block;
  font-size: 14px;
  color: var(--text-main);
}

.step-txt p {
  font-size: 12.5px;
  color: var(--text-sub);
}

/* Support Channels */
.support-channels-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.support-channel-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  background: var(--bg-glass-subtle);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-btn);
  transition: transform .18s ease, border-color .18s ease;
}

.support-channel-link:hover {
  transform: translateY(-2px);
  border-color: var(--primary-rose);
}

.channel-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.channel-info strong {
  display: block;
  font-size: 14px;
  color: var(--text-main);
}

.channel-info span {
  font-size: 12px;
  color: var(--text-sub);
}

/* Reviews Feed */
.reviews-feed {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
  max-height: 280px;
  overflow-y: auto;
}

.review-box {
  background: var(--bg-glass-subtle);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-btn);
  padding: 12px 14px;
}

.review-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
  font-size: 13px;
}

.review-stars {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: #facc15;
}

.review-box p {
  font-size: 12.5px;
  color: var(--text-sub);
  line-height: 1.4;
}

/* History */
.history-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.history-card {
  background: var(--bg-glass-subtle);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-btn);
  padding: 12px 14px;
}

.history-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.history-status-badge {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
}

.history-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.history-code {
  font-size: 11.5px;
  font-family: monospace;
  color: #c084fc;
  white-space: pre-wrap;
  word-break: break-all;
  line-height: 1.45;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  padding: 8px 10px;
  margin-top: 6px;
  user-select: all;
}

/* ==========================================================================
   7. Footer
   ========================================================================== */
.shop-footer {
  margin-top: auto;
  width: 100%;
  border-top: 1px solid var(--glass-border);
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 36px 20px;
}

body.shop-theme-pink .shop-footer,
[data-theme="light"] body .shop-footer {
  background: #ffffff;
  border-top-color: rgba(0, 0, 0, 0.08);
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-brand-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
  display: block;
  margin-bottom: 4px;
}

.footer-tagline {
  font-size: 13px;
  color: var(--text-sub);
}

.footer-api-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #34d399;
  background: rgba(16, 185, 129, 0.15);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 6px;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.footer-copy {
  font-size: 12px;
  color: var(--text-muted);
}

.text-pink {
  color: var(--primary-rose) !important;
}

/* ==========================================================================
   8. Auth Page Styles (auth.php) - Premium Frosted Glass Card
   ========================================================================== */
body.auth-page-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.auth-page-body .top-nav-wrap {
  width: 100%;
}

.auth-glass-container {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 20px 70px;
}

.auth-glass-card {
  width: 100%;
  max-width: 440px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 34px 28px;
  box-shadow: 0 16px 40px -8px rgba(0, 0, 0, 0.7);
  animation: modalPop .24s cubic-bezier(0.16, 1, 0.3, 1);
}

body.shop-theme-pink .auth-glass-card,
[data-theme="light"] body .auth-glass-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 8px 30px -4px rgba(0, 0, 0, 0.08);
}

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

.auth-glass-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary-rose);
  background: var(--pink-light);
  border: 1px solid var(--pink-border);
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.auth-glass-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary-rose);
  box-shadow: 0 0 8px var(--primary-rose);
}

.auth-glass-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 6px;
}

.auth-glass-sub {
  font-size: 13.5px;
  color: var(--text-sub);
  line-height: 1.45;
}

/* Modern Segmented Switcher with Smooth Slider Animation */
.glass-seg-wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg-glass-input);
  border: 1px solid var(--glass-border);
  border-radius: 9px;
  padding: 3px;
  margin-bottom: 22px;
  user-select: none;
  overflow: hidden;
}

body.shop-theme-pink .glass-seg-wrap,
[data-theme="light"] body .glass-seg-wrap,
[data-theme="pink"] body .glass-seg-wrap {
  background: #f1f5f9;
  border-color: rgba(0, 0, 0, 0.08);
}

/* Smooth Sliding Pill Indicator */
.glass-seg-slider {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 3px;
  width: calc(50% - 3px);
  background: var(--primary-rose);
  border-radius: 7px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25), 0 0 16px var(--theme-glow);
  transform: translateX(0);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
  pointer-events: none;
  z-index: 1;
}

.glass-seg-wrap.is-register .glass-seg-slider,
.glass-seg-wrap[data-active="register"] .glass-seg-slider {
  transform: translateX(100%);
}

.glass-seg-wrap.is-signin .glass-seg-slider,
.glass-seg-wrap[data-active="signin"] .glass-seg-slider {
  transform: translateX(0);
}

.glass-seg-btn {
  position: relative;
  z-index: 2;
  border: 0;
  background: transparent !important;
  padding: 8.5px 0;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-sub);
  cursor: pointer;
  border-radius: 7px;
  transition: color 0.22s ease;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.glass-seg-btn:hover {
  color: var(--text-main);
}

.glass-seg-btn.is-active {
  color: #ffffff !important;
  font-weight: 700;
  background: transparent !important;
  box-shadow: none !important;
}

/* Forms with smooth fade-in */
.glass-auth-form {
  display: none !important;
}

.glass-auth-form.is-visible:not([hidden]) {
  display: block !important;
  animation: authFormSlideIn 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes authFormSlideIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.glass-auth-form[hidden] {
  display: none !important;
}

.glass-form-group {
  margin-bottom: 16px;
}

.glass-form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
}

.glass-input-box {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg-glass-input);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-btn);
  box-shadow: var(--glass-highlight);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: border-color .18s ease, box-shadow .18s ease;
}

.glass-input-box:focus-within {
  border-color: var(--primary-rose);
  box-shadow: 0 0 0 3px var(--pink-border);
}

.glass-icon {
  position: absolute;
  left: 12px;
  color: var(--text-muted);
}

.glass-input-box input {
  width: 100%;
  padding: 11px 40px 11px 38px;
  border: 0;
  background: transparent;
  outline: none;
  font-family: inherit;
  font-size: 13.5px;
  color: var(--text-main);
}

.glass-input-box input::placeholder {
  color: var(--text-muted);
}

.glass-pw-toggle {
  position: absolute;
  right: 12px;
  background: none;
  border: 0;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
}

.glass-pw-toggle:hover {
  color: var(--primary-rose);
}

.glass-pw-toggle .eye-closed { display: none; }
.glass-pw-toggle.is-revealed .eye-open { display: none; }
.glass-pw-toggle.is-revealed .eye-closed { display: block; }

/* Password Strength Bar */
.pw-strength-bar-wrap {
  display: flex;
  gap: 5px;
  margin-top: 8px;
}

.pw-bar-seg {
  flex: 1;
  height: 3.5px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.08);
  transition: background-color .2s ease;
}

.pw-hint-msg {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 5px;
}

.glass-form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  font-size: 13px;
}

.glass-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text-sub);
  cursor: pointer;
}

.glass-link-btn, .glass-link-inline {
  background: none;
  border: 0;
  color: var(--primary-rose);
  font-weight: 600;
  cursor: pointer;
  font-size: 13px;
  transition: opacity .18s ease;
}

.glass-link-btn:hover, .glass-link-inline:hover {
  opacity: 0.85;
}

.glass-submit-btn {
  width: 100%;
  padding: 12.5px 0;
  background: var(--primary-rose);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-btn);
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(14, 165, 233, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: filter .18s ease, transform .18s ease, box-shadow .18s ease;
}

.glass-submit-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(14, 165, 233, 0.45);
}

.glass-switch-text {
  text-align: center;
  margin-top: 20px;
  font-size: 13px;
  color: var(--text-sub);
}

.auth-security-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--glass-border);
  font-size: 11px;
  color: var(--text-muted);
}

/* ==========================================================================
   9. Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .popular-grid,
  .products-grid-4col,
  .promo-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav-balance-pill .balance-label {
    display: none;
  }
}

@media (max-width: 860px) {
  /* Edge-to-Edge Non-Floating Navbar on Mobile/Tablet */
  .top-nav-wrap {
    top: 0;
    margin: 0 0 16px 0;
    padding: 0;
    max-width: 100%;
  }

  .top-nav-inner {
    height: 58px;
    padding: 0 16px;
    gap: 12px;
    border-radius: 0;
    border-top: none;
    border-left: none;
    border-right: none;
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  }

  body.shop-theme-pink .top-nav-inner,
  [data-theme="light"] body .top-nav-inner {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  }

  .nav-links {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(18, 23, 38, 0.98);
    border-left: none;
    border-right: none;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    border-radius: 0 0 18px 18px;
    padding: 14px 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    margin: 0;
    z-index: 1020;

    /* Dropdown Slide Animation */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-14px) scaleY(0.96);
    transform-origin: top center;
    transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  }

  body.shop-theme-pink .nav-links,
  [data-theme="light"] body .nav-links {
    background: rgba(255, 255, 255, 0.98);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
  }

  .nav-links.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scaleY(1);
  }

  /* Dropdown Item Entrance Animation & Touch Styling */
  .nav-links .nav-item {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 14.5px;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.24s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.24s cubic-bezier(0.16, 1, 0.3, 1),
                background 0.18s ease,
                color 0.18s ease;
  }

  .nav-links .nav-item:hover,
  .nav-links .nav-item:active {
    background: var(--pink-light);
  }

  .nav-links .nav-item.is-active::after {
    display: none;
  }

  .nav-links.is-open .nav-item {
    opacity: 1;
    transform: translateY(0);
  }

  .nav-links.is-open .nav-item:nth-child(1) { transition-delay: 0.04s; }
  .nav-links.is-open .nav-item:nth-child(2) { transition-delay: 0.07s; }
  .nav-links.is-open .nav-item:nth-child(3) { transition-delay: 0.10s; }
  .nav-links.is-open .nav-item:nth-child(4) { transition-delay: 0.13s; }
  .nav-links.is-open .nav-item:nth-child(5) { transition-delay: 0.16s; }
  .nav-links.is-open .nav-item:nth-child(6) { transition-delay: 0.19s; }

  .mobile-menu-toggle {
    display: flex;
  }

  /* Hide redundant guest profile button on mobile/tablets to prevent crowded navbar */
  .guest-profile-wrap {
    display: none !important;
  }

  .mobile-auth-link {
    display: flex !important;
  }

  .nav-item-admin {
    width: 100%;
    display: flex !important;
    align-items: center;
    gap: 8px;
    background: var(--pink-light);
    border: 1px solid var(--pink-border);
    border-radius: 12px;
    padding: 10px 14px !important;
    margin-top: 4px;
    color: var(--primary-rose) !important;
    font-size: 13.5px;
    font-weight: 700;
    box-shadow: 0 2px 10px rgba(14, 165, 233, 0.12);
  }

  .nav-item-admin svg {
    color: var(--primary-rose);
    flex-shrink: 0;
  }

  /* Hero Showcase Banner on Mobile */
  .hero-banner-card {
    border-radius: 14px;
    margin-bottom: 14px;
    box-shadow: 0 6px 20px -2px rgba(0, 0, 0, 0.45);
  }

  .hero-banner-image {
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  .hero-slider-nav {
    width: 32px;
    height: 32px;
    opacity: 0.85;
    pointer-events: auto;
  }

  .hero-slider-prev { left: 8px; }
  .hero-slider-next { right: 8px; }

  .hero-slider-dots {
    bottom: 8px;
    padding: 3px 8px;
    gap: 6px;
  }

  .hero-slider-dot {
    width: 6px;
    height: 6px;
  }

  .hero-slider-dot.is-active {
    width: 18px;
  }

  .popular-grid,
  .products-grid-4col,
  .promo-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .popular-card,
  .product-store-card {
    padding: 16px 12px 14px;
    min-width: 0;
    box-sizing: border-box;
  }

  .popular-icon-wrap,
  .store-card-icon-box {
    width: 60px;
    height: 60px;
  }

  .popular-title,
  .store-card-name {
    font-size: 13.5px;
    min-height: 38px;
  }

  .store-card-price {
    font-size: 18px;
  }

  .auth-glass-card {
    padding: 28px 20px;
  }
}

@media (max-width: 640px) {
  /* Container & Page */
  .page-container {
    padding: 0 12px 50px;
    width: 100%;
    box-sizing: border-box;
  }

  .shop-page-wrapper {
    padding-top: 4px;
    padding-bottom: 30px;
  }

  .shop-page-header {
    margin-bottom: 14px;
  }

  .shop-page-title {
    font-size: 21px;
    line-height: 1.25;
  }

  .breadcrumb-nav {
    font-size: 12px;
    gap: 6px;
    margin-bottom: 14px;
  }

  /* Compact Edge-to-Edge Navbar */
  .top-nav-wrap {
    top: 0;
    margin: 0 0 14px 0;
    padding: 0;
    width: 100%;
    box-sizing: border-box;
  }

  .top-nav-inner {
    height: 54px;
    padding: 0 14px;
    gap: 8px;
    border-radius: 0;
    border-top: none;
    border-left: none;
    border-right: none;
    border-bottom: 1px solid var(--glass-border);
  }

  .nav-brand {
    gap: 8px;
  }

  .nav-shop-icon svg {
    width: 26px;
    height: 26px;
  }

  .nav-brand-title {
    font-size: 15px;
  }

  .nav-links {
    top: 100%;
    left: 0;
    right: 0;
    padding: 14px;
    gap: 10px;
    border-radius: 0 0 16px 16px;
  }

  .nav-actions {
    gap: 8px;
  }

  .theme-toggle-btn {
    width: 32px;
    height: 32px;
  }

  .theme-toggle-btn:hover {
    transform: none;
  }

  .nav-profile-btn {
    width: 32px;
    height: 32px;
    font-size: 13px;
  }

  .mobile-menu-toggle {
    width: 32px;
    height: 32px;
    padding: 4px;
    gap: 4px;
  }

  .mobile-menu-toggle span {
    height: 2px;
  }

  .nav-login-cta-btn {
    padding: 5px 10px;
    font-size: 12px;
    gap: 4px;
  }

  .nav-login-cta-btn svg {
    width: 13px;
    height: 13px;
  }

  .nav-balance-pill {
    padding: 4px 10px;
    gap: 6px;
  }

  .balance-amount {
    font-size: 13px;
  }

  .balance-icon-btn svg {
    width: 15px;
    height: 15px;
  }

  .nav-profile-dropdown {
    min-width: 260px;
    max-width: calc(100vw - 20px);
    right: 0;
    padding: 14px;
  }

  /* Catalog Filters Dock */
  .catalog-filters-bar {
    margin-bottom: 14px;
    padding: 4px 6px;
    border-radius: 14px;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }

  .filter-pill {
    padding: 6px 12px;
    font-size: 12px;
    gap: 6px;
  }

  .filter-pill .pill-icon {
    width: 13px;
    height: 13px;
  }

  /* Search & Sort Bar */
  .catalog-search-sort-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin-bottom: 16px;
    width: 100%;
  }

  .catalog-search-wrap {
    width: 100%;
    box-sizing: border-box;
    padding: 0 12px;
  }

  .catalog-search-wrap:focus-within {
    transform: none;
  }

  .catalog-search-wrap input {
    font-size: 13.5px;
    padding: 10px 0;
  }

  .catalog-sort-wrap {
    width: 100%;
  }

  .catalog-sort-wrap select {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 14px;
    font-size: 13px;
  }

  /* Product Cards 2-Col Mobile Grid */
  .products-grid-4col,
  .popular-grid,
  .promo-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
  }

  .product-store-card,
  .popular-card {
    padding: 14px 10px 12px;
    min-width: 0;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    border-radius: 14px;
  }

  .store-card-icon-box,
  .popular-icon-wrap,
  .skeleton-icon-squircle {
    width: 54px;
    height: 54px;
    margin-bottom: 8px;
  }

  .store-card-icon-box img {
    border-radius: 11px;
  }

  .store-card-name,
  .popular-title {
    font-size: 12.5px;
    min-height: 34px;
    line-height: 1.35;
    margin-bottom: 4px;
    word-break: break-word;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .popular-desc {
    display: none;
  }

  .store-card-price {
    font-size: 16px;
    margin-bottom: 4px;
  }

  .store-card-stock {
    margin-bottom: 8px;
  }

  .stock-pill-badge {
    font-size: 10.5px;
    padding: 2px 7px;
    gap: 4px;
    white-space: nowrap;
  }

  .stock-pill-dot {
    width: 4px;
    height: 4px;
  }

  .store-card-btn,
  .popular-btn {
    padding: 8px 0;
    font-size: 12px;
    border-radius: 8px;
    width: 100%;
    min-width: 0;
  }

  /* Skeleton Loading Responsive */
  .skeleton-btn-bar {
    height: 32px;
  }

  .skeleton-title-bar {
    height: 14px;
    margin-bottom: 8px;
  }

  .skeleton-price-bar {
    height: 18px;
    margin-bottom: 8px;
  }

  .skeleton-stock-pill {
    height: 18px;
    width: 70px;
  }

  /* Stats Row on index.php */
  .stats-row {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 18px;
  }

  .stat-card {
    padding: 12px 14px;
    gap: 12px;
  }

  .stat-num {
    font-size: 20px;
  }

  /* Modals */
  .custom-modal-backdrop {
    padding: 12px;
  }

  .custom-modal-card {
    padding: 20px 16px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 14px;
  }

  .modal-item-header {
    gap: 12px;
    margin-bottom: 16px;
  }

  .modal-thumb-wrap {
    width: 48px;
    height: 48px;
  }

  .modal-product-title {
    font-size: 15px;
  }

  .modal-close-x {
    top: 12px;
    right: 14px;
    font-size: 22px;
  }

  /* Auth Card */
  .auth-glass-container {
    padding: 20px 12px 50px;
  }

  .auth-glass-card {
    padding: 24px 16px;
    border-radius: 14px;
  }

  .auth-glass-title {
    font-size: 20px;
  }

  .auth-glass-sub {
    font-size: 12.5px;
  }
}

@media (max-width: 480px) {
  .page-container {
    padding: 0 8px 40px;
  }

  .top-nav-wrap {
    padding: 0;
    margin: 0 0 12px 0;
    top: 0;
  }

  .top-nav-inner {
    height: 50px;
    padding: 0 12px;
    gap: 6px;
    border-radius: 0;
  }

  .nav-brand {
    gap: 6px;
  }

  .nav-shop-icon svg {
    width: 24px;
    height: 24px;
  }

  .nav-brand-title {
    font-size: 13.5px;
  }

  .nav-actions {
    gap: 7px;
  }

  .theme-toggle-btn {
    width: 30px;
    height: 30px;
  }

  .theme-toggle-btn:hover {
    transform: none;
  }

  .nav-profile-btn {
    width: 30px;
    height: 30px;
    font-size: 12px;
  }

  .mobile-menu-toggle {
    width: 30px;
    height: 30px;
    padding: 3px;
    gap: 4px;
  }

  .nav-login-cta-btn {
    padding: 5px 9px;
    font-size: 11.5px;
    gap: 4px;
  }

  .nav-balance-pill {
    padding: 3px 8px;
    gap: 4px;
  }

  .balance-amount {
    font-size: 11.5px;
  }

  /* Hero Showcase Banner on Mobile Phone */
  .hero-banner-card {
    border-radius: 12px;
    margin-bottom: 12px;
  }

  .hero-banner-image {
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  .hero-slider-nav {
    width: 28px;
    height: 28px;
  }

  .hero-slider-nav svg {
    width: 16px;
    height: 16px;
  }

  .hero-slider-prev { left: 6px; }
  .hero-slider-next { right: 6px; }

  .products-grid-4col,
  .popular-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .product-store-card,
  .popular-card {
    padding: 12px 7px 10px;
    border-radius: 12px;
  }

  .store-card-icon-box,
  .popular-icon-wrap,
  .skeleton-icon-squircle {
    width: 48px;
    height: 48px;
    margin-bottom: 6px;
  }

  .store-card-name,
  .popular-title {
    font-size: 11.5px;
    min-height: 30px;
    margin-bottom: 2px;
  }

  .store-card-price {
    font-size: 14.5px;
    margin-bottom: 3px;
  }

  .store-card-stock {
    margin-bottom: 6px;
  }

  .stock-pill-badge {
    font-size: 9.5px;
    padding: 2px 5px;
    gap: 3px;
    letter-spacing: 0;
  }

  .store-card-btn,
  .popular-btn {
    padding: 6px 0;
    font-size: 11px;
    border-radius: 6px;
  }
}

@media (max-width: 360px) {
  .products-grid-4col,
  .popular-grid {
    gap: 6px;
  }

  .product-store-card,
  .popular-card {
    padding: 10px 5px 8px;
  }

  .store-card-name,
  .popular-title {
    font-size: 11px;
  }

  .nav-brand-title {
    font-size: 12.5px;
  }

  .nav-login-cta-btn span {
    font-size: 10.5px;
  }
}

/* ==========================================================================
   10. Modern Glassmorphism Toast Notification System
   ========================================================================== */
.omni-toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
  max-width: 420px;
  width: calc(100% - 48px);
}

.omni-toast {
  position: relative;
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 15px 18px 16px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.7), 0 0 1px 1px rgba(255, 255, 255, 0.06);
  color: #f8fafc;
  font-family: var(--font-body);
  overflow: hidden;
  box-sizing: border-box;
  animation: omniToastSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.omni-toast.omni-toast--leaving {
  animation: omniToastSlideOut 0.24s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes omniToastSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes omniToastSlideOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(-16px) scale(0.93);
  }
}

/* Icon Styles with Ambient Glow */
.omni-toast__icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

/* Success Type */
.omni-toast--success {
  border-color: rgba(16, 185, 129, 0.36);
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.7), 0 0 28px -6px rgba(16, 185, 129, 0.32);
}
.omni-toast--success .omni-toast__icon {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.omni-toast--success .omni-toast__progress-bar {
  background: linear-gradient(90deg, #10b981, #34d399);
}

/* Error Type */
.omni-toast--error {
  border-color: rgba(244, 63, 94, 0.42);
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.7), 0 0 28px -6px rgba(244, 63, 94, 0.32);
}
.omni-toast--error .omni-toast__icon {
  background: rgba(244, 63, 94, 0.15);
  color: #fb7185;
  border: 1px solid rgba(244, 63, 94, 0.32);
}
.omni-toast--error .omni-toast__progress-bar {
  background: linear-gradient(90deg, #f43f5e, #fb7185);
}

/* Warning Type */
.omni-toast--warning {
  border-color: rgba(245, 158, 11, 0.38);
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.7), 0 0 28px -6px rgba(245, 158, 11, 0.28);
}
.omni-toast--warning .omni-toast__icon {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.32);
}
.omni-toast--warning .omni-toast__progress-bar {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

/* Info Type */
.omni-toast--info {
  border-color: rgba(56, 189, 248, 0.36);
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.7), 0 0 28px -6px rgba(56, 189, 248, 0.28);
}
.omni-toast--info .omni-toast__icon {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.32);
}
.omni-toast--info .omni-toast__progress-bar {
  background: linear-gradient(90deg, #0284c7, #38bdf8);
}

/* Content Elements */
.omni-toast__content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.omni-toast__title {
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
}

.omni-toast__message {
  font-size: 13px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.45;
  word-break: break-word;
}

.omni-toast__action {
  align-self: flex-start;
  margin-top: 6px;
  padding: 5px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.omni-toast__action:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}

.omni-toast__close {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: all 0.15s ease;
  margin-left: 2px;
}

.omni-toast__close:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

/* Subtle Progress Bar */
.omni-toast__progress {
  position: absolute;
  left: 0;
  bottom: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.omni-toast__progress-bar {
  height: 100%;
  width: 100%;
}

/* Light / Pink Theme Adaptive */
body.shop-theme-pink .omni-toast,
[data-theme="light"] body .omni-toast {
  background: rgba(255, 255, 255, 0.96);
  color: #0f172a;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 16px 36px -10px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.04);
}
body.shop-theme-pink .omni-toast__title,
[data-theme="light"] body .omni-toast__title {
  color: #0f172a;
}
body.shop-theme-pink .omni-toast__message,
[data-theme="light"] body .omni-toast__message {
  color: #475569;
}
body.shop-theme-pink .omni-toast__close,
[data-theme="light"] body .omni-toast__close {
  color: #94a3b8;
}
body.shop-theme-pink .omni-toast__close:hover,
[data-theme="light"] body .omni-toast__close:hover {
  color: #0f172a;
  background: rgba(0, 0, 0, 0.06);
}
body.shop-theme-pink .omni-toast__action,
[data-theme="light"] body .omni-toast__action {
  background: #0f172a;
  color: #ffffff;
  border: none;
}
body.shop-theme-pink .omni-toast__action:hover,
[data-theme="light"] body .omni-toast__action:hover {
  background: #1e293b;
}

/* Mobile Responsiveness */
@media (max-width: 640px) {
  .omni-toast-container {
    top: 16px;
    left: 16px;
    right: 16px;
    width: auto;
    max-width: none;
  }
}

/* ==========================================================================
   Home Page Explore Shop CTA & Features
   ========================================================================== */
.home-explore-section {
  margin-top: 36px;
  margin-bottom: 24px;
}

.home-explore-card {
  position: relative;
  background: linear-gradient(135deg, var(--pink-light) 0%, rgba(15, 23, 42, 0.6) 100%);
  border: 1px solid var(--pink-border);
  border-radius: 20px;
  padding: 32px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: 0 12px 36px -10px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
}

.home-explore-card::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, var(--pink-border) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.home-explore-info {
  max-width: 650px;
  z-index: 1;
}

.home-explore-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--primary-rose);
  background: var(--pink-light);
  border: 1px solid var(--pink-border);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
}

.home-explore-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-main);
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.home-explore-desc {
  font-size: 14px;
  color: var(--text-sub);
  margin: 0;
  line-height: 1.6;
}

.home-explore-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--primary-rose);
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 12px;
  box-shadow: 0 4px 20px var(--pink-border);
  transition: all .2s ease;
  white-space: nowrap;
  flex-shrink: 0;
  z-index: 1;
}

.home-explore-btn:hover {
  background: var(--primary-rose-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px var(--pink-border);
}

.home-features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.home-feature-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all .2s ease;
}

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

.home-feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.home-feature-icon.icon-rose { background: var(--pink-light); color: var(--primary-rose); }
.home-feature-icon.icon-sky { background: rgba(56, 189, 248, 0.12); color: #38bdf8; }
.home-feature-icon.icon-emerald { background: rgba(16, 185, 129, 0.12); color: #10b981; }
.home-feature-icon.icon-amber { background: rgba(245, 158, 11, 0.12); color: #f59e0b; }

.home-feature-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 3px;
}

.home-feature-desc {
  font-size: 12px;
  color: var(--text-sub);
  margin: 0;
}

body.shop-theme-pink .home-explore-card {
  background: linear-gradient(135deg, var(--pink-light) 0%, rgba(255, 255, 255, 0.9) 100%);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

@media (max-width: 900px) {
  .home-explore-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 20px;
  }
  .home-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .home-features-grid {
    grid-template-columns: 1fr;
  }
  .home-explore-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   Tawk.to Mobile Live Chat Bubble Sizing Enhancement
   ========================================================================== */
@media (max-width: 768px) {
  /* Enlarge the minimized bubble for touch accessibility */
  iframe[src*="tawk.to"]:not([style*="height: 100%"]):not([style*="height: 100vh"]),
  .widget-visible:not(.widget-maximized),
  #tawkchat-container:not(.widget-maximized) {
    transform: scale(1.28) !important;
    transform-origin: bottom right !important;
  }
}

/* ==========================================================================
   Catalog Pagination Component (Bespoke Clean Modern Style)
   ========================================================================== */
.catalog-pagination-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 40px;
  margin-bottom: 24px;
  gap: 14px;
  width: 100%;
}

.pagination-info-text {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: -0.01em;
  text-align: center;
}

.pagination-inner {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  max-width: 100%;
  overflow-x: auto;
}

.page-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-main);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
  white-space: nowrap;
}

.page-nav-btn:hover:not(:disabled) {
  background: var(--bg-card-subtle);
  border-color: var(--glass-border);
  color: var(--primary-rose);
  transform: translateY(-1px);
}

.page-nav-btn:active:not(:disabled) {
  transform: translateY(0);
}

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

.page-nav-btn svg {
  flex-shrink: 0;
  transition: transform 0.18s ease;
}

.page-nav-btn:hover:not(:disabled)#prevPageBtn svg {
  transform: translateX(-2px);
}

.page-nav-btn:hover:not(:disabled)#nextPageBtn svg {
  transform: translateX(2px);
}

.page-numbers-list {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.page-number-btn {
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-sub);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
}

.page-number-btn:hover:not(.is-active) {
  background: var(--bg-card-subtle);
  color: var(--text-main);
  border-color: var(--glass-border);
  transform: translateY(-1px);
}

.page-number-btn.is-active {
  background: var(--primary-rose);
  color: #ffffff;
  border-color: var(--primary-rose);
  box-shadow: 0 4px 14px var(--theme-glow);
  font-weight: 700;
  cursor: default;
}

.page-ellipsis {
  min-width: 28px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  user-select: none;
}

@media (max-width: 640px) {
  .catalog-pagination-wrap {
    margin-top: 28px;
    gap: 10px;
  }
  .pagination-inner {
    gap: 4px;
    padding: 5px 6px;
    border-radius: 12px;
  }
  .page-nav-btn {
    padding: 7px 10px;
    font-size: 12.5px;
  }
  .page-nav-btn .page-btn-text {
    display: none;
  }
  .page-number-btn {
    min-width: 34px;
    height: 34px;
    padding: 0 6px;
    font-size: 13px;
    border-radius: 8px;
  }
  .page-ellipsis {
    min-width: 22px;
    height: 34px;
  }
}

/* ==========================================================================
   Credential Cards & Easy Copy Helpers
   ========================================================================== */
.credential-cards-grid,
.order-quick-creds,
.receipt-quick-creds {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 10px 0;
}

.cred-item-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  padding: 8px 12px;
  transition: all 0.2s ease;
}

.cred-item-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(235, 16, 126, 0.35);
}

.cred-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.cred-label {
  font-size: 11px;
  color: var(--text-muted, #94a3b8);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.cred-value {
  font-family: 'JetBrains Mono', Consolas, monospace;
  font-size: 13.5px;
  font-weight: 700;
  color: #f8fafc;
  word-break: break-all;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  user-select: all;
  transition: all 0.15s ease;
}

.cred-value:hover {
  background: rgba(235, 16, 126, 0.15);
  color: #f472b6;
}

.copy-on-click {
  cursor: pointer;
}

.btn-cred-copy {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  background: rgba(235, 16, 126, 0.12);
  border: 1px solid rgba(235, 16, 126, 0.3);
  border-radius: 6px;
  color: #f472b6;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.btn-cred-copy:hover {
  background: var(--primary-rose, #eb107e);
  border-color: var(--primary-rose, #eb107e);
  color: #fff;
  transform: translateY(-1px);
}

.btn-highlight-copy {
  background: var(--primary-rose, #eb107e) !important;
  color: #fff !important;
  border-color: var(--primary-rose, #eb107e) !important;
}

.btn-highlight-copy:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

body.shop-theme-pink .cred-item-card,
[data-theme="light"] body .cred-item-card,
[data-theme="pink"] body .cred-item-card {
  background: #fdf2f8;
  border-color: #fbcfe8;
}

body.shop-theme-pink .cred-value,
[data-theme="light"] body .cred-value,
[data-theme="pink"] body .cred-value {
  color: #831843;
}

/* ==========================================================================
   Admin & Store Bank Selection Buttons
   ========================================================================== */
.admin-bank-select-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
  max-height: 280px;
  overflow-y: auto;
  padding: 10px;
  background: var(--bg-glass-input, rgba(255, 255, 255, 0.03));
  border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.1));
  border-radius: 14px;
}

.admin-bank-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  user-select: none;
}

.admin-bank-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(235, 16, 126, 0.35);
  transform: translateY(-1px);
}

.admin-bank-btn.is-selected {
  background: rgba(235, 16, 126, 0.15) !important;
  border-color: var(--primary-rose, #eb107e) !important;
  box-shadow: 0 0 14px rgba(235, 16, 126, 0.35) !important;
}

.admin-bank-logo {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  object-fit: contain;
  background: #fff;
  padding: 2px;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.admin-bank-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.2;
}

.admin-bank-sym {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-main, #fff);
}

.admin-bank-btn.is-selected .admin-bank-sym {
  color: var(--primary-rose, #eb107e);
}

.admin-bank-name {
  font-size: 10.5px;
  color: var(--text-muted, #94a3b8);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


