/* ==========================================================================
   TechHub - HIGH-CRAFT AI SAAS & DIGITAL MARKETPLACE UI
   Inspired by Linear, Vercel, Raycast & Stripe • Precision Light & Dark Mode
   ========================================================================== */

:root,
[data-theme="light"] {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-soft: rgba(37, 99, 235, 0.1);
  --gold: #0ea5e9;
  --gold-deep: #0284c7;
  --ink: #0f172a;
  --violet: #4f46e5;
  --cyan: #0891b2;
  --pink: #db2777;
  --accent: #e11d48;
  --success: #059669;
  --warning: #d97706;
  --danger: #dc2626;
  --dark: #0f172a;

  --gradient-ai: linear-gradient(135deg, #2563eb 0%, #4f46e5 55%, #0ea5e9 100%);
  --gradient-btn: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
  --gradient-warm: linear-gradient(180deg, #e11d48 0%, #be123c 100%);

  --bg-body: #f4f7fb;
  --bg-surface: rgba(255, 255, 255, 0.92);
  --bg-card: #ffffff;
  --bg-subtle: #eff4fa;
  --bg-input: #ffffff;

  --text-main: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;

  --border-color: #e2e8f0;
  --border-glow: rgba(37, 99, 235, 0.35);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.04), 0 4px 12px -2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 10px -2px rgba(15, 23, 42, 0.05), 0 12px 28px -4px rgba(37, 99, 235, 0.07);
  --shadow-hover: 0 14px 30px -6px rgba(37, 99, 235, 0.14), 0 4px 10px -2px rgba(15, 23, 42, 0.06);
}

[data-theme="dark"] {
  --primary: #3b82f6;
  --primary-hover: #60a5fa;
  --primary-soft: rgba(59, 130, 246, 0.16);
  --gold: #38bdf8;
  --gold-deep: #0284c7;
  --ink: #0f172a;
  --violet: #6366f1;
  --cyan: #38bdf8;
  --dark: #f8fafc;

  --gradient-ai: linear-gradient(135deg, #2563eb 0%, #4f46e5 55%, #0ea5e9 100%);
  --gradient-btn: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);

  --bg-body: #0b1120;
  --bg-surface: rgba(15, 23, 42, 0.9);
  --bg-card: #111827;
  --bg-subtle: #1e293b;
  --bg-input: #0f172a;

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

  --border-color: rgba(148, 163, 184, 0.16);
  --border-glow: rgba(59, 130, 246, 0.42);

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4), 0 6px 16px rgba(0, 0, 0, 0.28);
  --shadow-md: 0 8px 28px rgba(0, 0, 0, 0.45);
  --shadow-hover: 0 16px 36px -6px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(59, 130, 246, 0.32);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Be Vietnam Pro', 'Segoe UI', sans-serif;
  background-color: var(--bg-body);
  color: var(--text-main);
  font-size: 14px;
  line-height: 1.55;
  letter-spacing: -0.008em;
  padding-bottom: 70px;
  position: relative;
  overflow-x: hidden;
  transition: background-color 0.25s ease, color 0.25s ease;
}

@media (min-width: 769px) {
  body {
    padding-bottom: 0;
  }
}

/* ============================================
   SUBTLE ARCHITECTURAL AMBIENT LIGHTING
   ============================================ */
.ai-ambient-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
  background-image: radial-gradient(rgba(28, 20, 12, 0.045) 1px, transparent 1px);
  background-size: 24px 24px;
}

[data-theme="dark"] .ai-ambient-bg {
  background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
}

.ai-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.14;
}

[data-theme="dark"] .ai-blob {
  opacity: 0.12;
}

.ai-blob-1 {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, #e3a008 0%, transparent 70%);
  top: -180px;
  left: -120px;
}

.ai-blob-2 {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, #9a3412 0%, transparent 70%);
  top: 220px;
  right: -140px;
}

.ai-blob-3 {
  width: 540px;
  height: 540px;
  background: radial-gradient(circle, #3f6212 0%, transparent 70%);
  bottom: -200px;
  left: 25%;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.22s ease;
}

ul {
  list-style: none;
}

.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ============================================
   1. PROMO BAR - THANH CHẠY CHỮ AI
   ============================================ */
.promo-bar {
  width: 100%;
  background: #14110e;
  border-bottom: 1px solid rgba(245, 196, 81, 0.28);
  padding: 7px 0;
  position: relative;
  z-index: 1035;
  color: #e2e8f0;
}

.promo-bar-content {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
  flex-wrap: nowrap;
  overflow: hidden;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 16px;
}

.promo-fixed {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  white-space: nowrap;
}

.promo-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f5c451;
  box-shadow: 0 0 10px #f5c451;
  display: inline-block;
}

.promo-time {
  font-weight: 600;
  color: #f8fafc;
  font-size: 13px;
}

.promo-links {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-left: 6px;
}

.promo-link {
  color: #f5c451;
  font-size: 12.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.promo-link:hover {
  color: #fff6d8;
}

.promo-scroll {
  flex: 1;
  overflow: hidden;
  position: relative;
  min-width: 0;
  display: flex;
  align-items: center;
}

.promo-marquee {
  display: inline-block;
  white-space: nowrap;
  padding-left: 100%;
  animation: marquee 22s linear infinite;
  font-weight: 600;
  color: #f8d48a;
  font-size: 13px;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

@media (max-width: 768px) {
  .promo-links {
    display: none;
  }
}

/* ============================================
   2. HEADER MODERN AI GLASSMORPHISM
   ============================================ */
.header-modern {
  background: linear-gradient(135deg, rgba(10, 14, 28, 0.95) 0%, rgba(28, 25, 68, 0.95) 55%, rgba(13, 27, 48, 0.95) 100%);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 13px 0;
  position: sticky;
  top: 0;
  z-index: 1030;
  border-bottom: 1px solid rgba(129, 140, 248, 0.28);
  box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.45);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.header-logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}

.logo-badge {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: var(--gradient-ai);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #fff;
  box-shadow: 0 0 22px rgba(99, 102, 241, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.logo-text-wrap {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-size: 18.5px;
  font-weight: 800;
  letter-spacing: -0.3px;
  line-height: 1.15;
  color: #f6f1e8;
  background: none;
  -webkit-text-fill-color: #f6f1e8;
}

.ai-version-pill {
  background: #f5c451;
  color: #1c1408;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  letter-spacing: 0.5px;
}

.logo-subtitle {
  font-size: 11px;
  color: #d6c4a1;
  font-weight: 600;
  letter-spacing: 0.4px;
}

/* AI Search Box */
.header-search-section {
  flex: 1;
  max-width: 480px;
  position: relative;
}

.header-search-form {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  padding: 4px 5px 4px 16px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  transition: all 0.25s ease;
}

.header-search-form:focus-within {
  background: rgba(15, 23, 42, 0.9);
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.22), 0 0 20px rgba(99, 102, 241, 0.3);
}

.search-ai-icon {
  color: #38bdf8;
  font-size: 14px;
  margin-right: 10px;
}

.header-search-input {
  flex: 1;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 13.5px;
  color: #ffffff;
  background: transparent;
  padding: 6px 0;
}

.header-search-input::placeholder {
  color: #94a3b8;
}

.search-kbd-badge {
  font-size: 10.5px;
  font-weight: 700;
  color: #a5b4fc;
  background: rgba(99, 102, 241, 0.2);
  border: 1px solid rgba(129, 140, 248, 0.3);
  padding: 2px 8px;
  border-radius: 999px;
  margin-right: 6px;
  white-space: nowrap;
}

.header-search-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: var(--gradient-ai);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13.5px;
  transition: transform 0.2s;
}

.header-search-btn:hover {
  transform: scale(1.06);
}

.header-user-cart {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-btn-pill {
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #f8fafc;
  padding: 7px 14px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  transition: all 0.22s ease;
  white-space: nowrap;
}

.header-btn-pill:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(56, 189, 248, 0.5);
  transform: translateY(-1px);
}

.header-btn-pill.btn-wallet-highlight {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 55%, #db2777 100%);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4);
}

.header-btn-pill.btn-admin-highlight {
  background: linear-gradient(135deg, #059669 0%, #0d9488 100%);
  border-color: rgba(255, 255, 255, 0.3);
}

.header-balance-chip {
  background: rgba(0, 0, 0, 0.3);
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #fde047;
}

.cart-count-badge {
  background: linear-gradient(135deg, #f43f5e, #e11d48);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 1px 7px;
  border-radius: 999px;
}

.header-theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fde047;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  transition: all 0.2s;
}

.header-theme-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(15deg);
}

/* ============================================
   3. NAVBAR MODERN (PC)
   ============================================ */
.navbar-modern {
  background: var(--bg-surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.navbar-modern-list {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px;
  padding: 7px 0;
}

.navbar-modern-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}

.navbar-modern-link i {
  color: var(--primary);
  font-size: 14px;
}

.navbar-modern-link:hover,
.navbar-modern-link.active {
  background: rgba(99, 102, 241, 0.12);
  color: var(--primary);
}

.navbar-modern-link.nav-zalo-pill {
  background: rgba(6, 182, 212, 0.12);
  color: #0891b2;
}

[data-theme="dark"] .navbar-modern-link.nav-zalo-pill {
  color: #22d3ee;
}

@media (max-width: 991px) {
  .navbar-modern {
    display: none;
  }
  .hide-mobile-text,
  .search-kbd-badge {
    display: none;
  }
}

/* ============================================
   4. HOME NOTICE & MAIN LAYOUT
   ============================================ */
.main-section {
  padding: 20px 0 44px;
}

.notice-home-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 11px 16px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.notice-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text-secondary);
}

.notice-badge {
  background: var(--gradient-ai);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.coupon-quick-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.coupon-pill {
  background: rgba(244, 63, 94, 0.08);
  border: 1px dashed rgba(244, 63, 94, 0.55);
  color: #f43f5e;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s;
}

.coupon-pill:hover {
  background: #f43f5e;
  color: #fff;
  border-style: solid;
}

/* Layout Grid: Sidebar 280px + Main 1fr */
.shop-layout-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 22px;
  align-items: start;
}

@media (max-width: 991px) {
  .shop-layout-grid {
    grid-template-columns: 1fr;
  }
  .category-sidebar-desktop {
    display: none;
  }
}

/* Left Category Sidebar */
.category-sidebar-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

.category-sidebar-header {
  background: linear-gradient(135deg, #1e1b4b 0%, #4338ca 55%, #0891b2 100%);
  color: #fff;
  padding: 15px 18px;
}

.category-sidebar-title {
  font-size: 14.5px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 9px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin: 0;
}

.category-sidebar-list {
  padding: 10px;
}

.category-sidebar-item + .category-sidebar-item {
  margin-top: 4px;
}

.category-sidebar-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 13.8px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}

.category-sidebar-link-left {
  display: flex;
  align-items: center;
  gap: 11px;
}

.category-sidebar-icon {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.category-sidebar-link:hover,
.category-sidebar-link.active {
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.14) 0%, rgba(6, 182, 212, 0.06) 100%);
  color: var(--primary);
  transform: translateX(3px);
}

.category-count-pill {
  background: var(--bg-subtle);
  color: var(--primary);
  font-size: 11.5px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
}

/* Vertical Sidebar Promo Card */
.sidebar-promo-banner {
  margin-top: 18px;
  background: linear-gradient(160deg, #090d1e 0%, #1e1b4b 50%, #311042 100%);
  border: 1px solid rgba(129, 140, 248, 0.3);
  border-radius: var(--radius-lg);
  padding: 22px 18px;
  color: #fff;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.sidebar-glow-orb {
  position: absolute;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.45) 0%, transparent 70%);
  top: -40px;
  right: -40px;
  border-radius: 50%;
}

.sidebar-promo-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #67e8f9;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.sidebar-promo-banner h4 {
  font-size: 17px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 8px;
}

.sidebar-promo-banner p {
  font-size: 13px;
  color: #cbd5e1;
  margin-bottom: 14px;
}

.sidebar-promo-features li {
  font-size: 12.5px;
  margin-bottom: 7px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #e2e8f0;
}

.sidebar-promo-features li i {
  color: #22d3ee;
}

.sidebar-promo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 12px;
  padding: 10px;
  border-radius: 11px;
  background: var(--gradient-ai);
  color: #ffffff;
  font-weight: 700;
  font-size: 13.5px;
  box-shadow: 0 6px 18px rgba(99, 102, 241, 0.4);
}

.sidebar-promo-btn:hover {
  transform: translateY(-2px);
}

/* ============================================
   5. HOME BENTO BANNERS (SLIDER + SIDE + BOTTOM)
   ============================================ */
.home-banner-section {
  margin-bottom: 24px;
}

.banner-top-grid {
  display: grid;
  grid-template-columns: 1.9fr 1fr;
  gap: 14px;
}

@media (max-width: 768px) {
  .banner-top-grid {
    grid-template-columns: 1fr;
  }
}

.hero-slider-wrapper {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  min-height: 295px;
  border: 1px solid rgba(129, 140, 248, 0.3);
}

.hero-bg-indigo {
  background: radial-gradient(circle at 85% 20%, rgba(6, 182, 212, 0.45) 0%, transparent 45%),
              linear-gradient(135deg, #090d1f 0%, #1e1b4b 45%, #4338ca 100%);
}

.hero-bg-violet {
  background: radial-gradient(circle at 85% 20%, rgba(236, 72, 153, 0.45) 0%, transparent 45%),
              linear-gradient(135deg, #130924 0%, #3b0764 48%, #6d28d9 100%);
}

.hero-bg-cyan {
  background: radial-gradient(circle at 85% 20%, rgba(99, 102, 241, 0.45) 0%, transparent 45%),
              linear-gradient(135deg, #061826 0%, #0f3f5c 50%, #0d9488 100%);
}

.hero-mesh-overlay {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.45;
  pointer-events: none;
}

.hero-slide {
  display: none;
  width: 100%;
  height: 100%;
  min-height: 295px;
  padding: 32px 34px 44px;
  color: #fff;
  position: relative;
  flex-direction: column;
  justify-content: center;
}

.hero-slide.active {
  display: flex;
  animation: fadeIn 0.4s ease;
}

.hero-slide-content {
  position: relative;
  z-index: 2;
}

@keyframes fadeIn {
  from { opacity: 0.45; }
  to { opacity: 1; }
}

.hero-slide-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #67e8f9;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  width: fit-content;
  margin-bottom: 12px;
}

.hero-slide h2 {
  font-size: 25px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 10px;
  max-width: 520px;
  letter-spacing: -0.3px;
}

.hero-slide p {
  font-size: 14px;
  color: #cbd5e1;
  max-width: 490px;
  margin-bottom: 14px;
}

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

.hero-model-chips span {
  font-size: 12px;
  font-weight: 600;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 4px 10px;
  border-radius: 999px;
  color: #e2e8f0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.hero-model-chips span i {
  color: #38bdf8;
}

.hero-slide-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #ffffff 0%, #e0e7ff 100%);
  color: #312e81;
  font-weight: 800;
  padding: 10px 22px;
  border-radius: 999px;
  width: fit-content;
  cursor: pointer;
  border: none;
  font-family: inherit;
  font-size: 13.5px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  transition: all 0.2s;
}

.hero-slide-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(99, 102, 241, 0.4);
}

.slider-dots {
  position: absolute;
  bottom: 14px;
  left: 34px;
  display: flex;
  gap: 7px;
  z-index: 5;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  border: none;
  cursor: pointer;
  transition: all 0.25s;
}

.slider-dot.active {
  width: 26px;
  background: #38bdf8;
}

/* Bento Mini Cards */
.side-banners-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mini-promo-card {
  flex: 1;
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(255, 255, 255, 0.16);
  transition: all 0.25s ease;
}

.mini-promo-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.bento-card-purple {
  background: linear-gradient(135deg, #2e1065 0%, #6d28d9 60%, #db2777 100%);
}

.bento-card-cyan {
  background: linear-gradient(135deg, #0f172a 0%, #1d4ed8 55%, #06b6d4 100%);
}

.bento-card-indigo {
  background: linear-gradient(135deg, #1e1b4b 0%, #4338ca 55%, #6366f1 100%);
}

.bento-card-emerald {
  background: linear-gradient(135deg, #064e3b 0%, #059669 55%, #0d9488 100%);
}

.mini-card-icon {
  position: absolute;
  right: 16px;
  top: 16px;
  font-size: 32px;
  opacity: 0.2;
}

.mini-promo-card h4 {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 4px;
  letter-spacing: -0.2px;
}

.mini-promo-card p {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 8px;
}

.mini-promo-card .mini-tag {
  font-size: 11px;
  font-weight: 800;
  color: #67e8f9;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.mini-action-link {
  font-size: 12px;
  font-weight: 700;
  color: #fde047;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.banner-bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 14px;
}

@media (max-width: 576px) {
  .banner-bottom-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   6. CATEGORY FILTER PILLS
   ============================================ */
.filter-bar-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.custom-button-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
}

.btn-category-home {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--bg-card);
  color: var(--text-secondary);
  font-family: inherit;
  font-weight: 700;
  font-size: 13.5px;
  border: 1px solid var(--border-color);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 0.22s ease;
}

.btn-category-home img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.btn-category-home:hover,
.btn-category-home.active {
  background: var(--gradient-ai);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 8px 20px -4px rgba(99, 102, 241, 0.45);
  transform: translateY(-1px);
}

/* ============================================
   7. PRODUCT SECTIONS & AI PRODUCT CARDS
   ============================================ */
.category-section-block {
  margin-bottom: 36px;
}

.home-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--border-color);
}

.home-heading h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18.5px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.3px;
}

.home-heading h3 img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.section-icon-badge {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--gradient-ai);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

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

@media (min-width: 768px) and (max-width: 1199px) {
  .product-grid-modern {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
}

@media (min-width: 1200px) {
  .product-grid-modern {
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
  }
}

.product-card-modern {
  position: relative;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--border-color);
}

.product-card-modern:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-5px);
  border-color: var(--border-glow);
}

.product-card-modern.product-disable {
  opacity: 0.72;
}

.product-card-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #0f172a;
  overflow: hidden;
  cursor: pointer;
}

.product-card-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.product-card-modern:hover .product-card-image-wrapper img {
  transform: scale(1.07);
}

.product-card-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  z-index: 2;
  pointer-events: none;
}

.product-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
  color: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  letter-spacing: 0.3px;
}

.badge-discount {
  background: linear-gradient(135deg, #f43f5e, #e11d48);
}

.badge-pro {
  background: linear-gradient(135deg, #6366f1, #a855f7);
}

.badge-delivery-mode {
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #67e8f9;
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
}

.out-of-stock-ribbon {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(245, 158, 11, 0.94);
  color: #fff;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 4px 0;
  z-index: 3;
}

.product-card-content {
  padding: 15px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.38;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 41px;
  cursor: pointer;
}

.product-card-name:hover {
  color: var(--primary);
}

.product-card-duration {
  font-size: 12.5px;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 11px;
  min-height: 38px;
}

.product-card-stock-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 12px;
  background: var(--bg-subtle);
  padding: 6px 10px;
  border-radius: 9px;
  margin-bottom: 12px;
}

.label-text.feat {
  color: var(--primary);
  font-weight: 600;
}

.label-text.order {
  color: var(--success);
  font-weight: 600;
}

.product-card-price-wrapper {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px dashed var(--border-color);
}

.product-card-price-current {
  font-size: 17px;
  font-weight: 800;
  background: linear-gradient(90deg, #e11d48 0%, #db2777 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.15;
}

[data-theme="dark"] .product-card-price-current {
  background: linear-gradient(90deg, #fb7185 0%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.product-card-price-original {
  font-size: 11.5px;
  color: var(--text-muted);
  text-decoration: line-through;
}

.product-card-buy-btn {
  background: var(--gradient-btn);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 8px 13px;
  font-family: inherit;
  font-size: 12.8px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.22s ease;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.28);
}

.product-card-buy-btn:hover:not(:disabled) {
  background: var(--gradient-ai);
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 6px 16px rgba(99, 102, 241, 0.42);
}

.product-card-buy-btn:disabled {
  background: var(--bg-subtle);
  color: var(--text-muted);
  box-shadow: none;
  cursor: not-allowed;
}

/* ============================================
   8. RECENT ORDERS & DEPOSITS (2 COLUMNS)
   ============================================ */
.recent-activity-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 30px;
}

@media (max-width: 991px) {
  .recent-activity-grid {
    grid-template-columns: 1fr;
  }
}

.activity-box {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

.live-status-pill {
  font-size: 12px;
  color: var(--success);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

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

.activity-scroll-list {
  height: 340px;
  overflow-y: auto;
  padding-right: 6px;
}

.activity-scroll-list::-webkit-scrollbar {
  width: 5px;
}

.activity-scroll-list::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.4);
  border-radius: 999px;
}

.feature-card {
  background: var(--bg-subtle);
  border-radius: 11px;
  padding: 10px 14px;
  margin-bottom: 8px;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13.5px;
  transition: transform 0.2s;
}

.feature-card:hover {
  transform: translateX(3px);
  border-color: var(--border-glow);
}

.time-badge {
  background: var(--gradient-btn);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
}

/* ============================================
   9. FLOATING RIGHT MENU & ZALO BUTTON
   ============================================ */
#top-menu-right {
  position: fixed;
  right: 0;
  top: 230px;
  z-index: 99;
  width: 46px;
}

#top-menu-right li {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 6px;
}

#top-menu-right li a {
  background: var(--bg-card);
  border-radius: 12px 0 0 12px;
  box-shadow: var(--shadow-md);
  display: inline-flex;
  align-items: center;
  color: var(--text-main);
  font-size: 13px;
  font-weight: 700;
  width: 46px;
  height: 44px;
  overflow: hidden;
  white-space: nowrap;
  cursor: pointer;
  transition: width 0.25s ease, background 0.2s;
  border: 1px solid var(--border-color);
}

#top-menu-right li a:hover {
  width: 210px;
  background: var(--gradient-ai);
  color: #fff;
  border-color: transparent;
}

#top-menu-right li a .menu-icon-wrap {
  width: 46px;
  height: 44px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 16px;
}

#top-menu-right li a:hover .menu-icon-wrap {
  color: #fff;
}

/* Old floating Zalo button is folded into #supportWidget. */
#linkzalo { display: none !important; }

/* Zalo Floating Button */
.fcta-zalo-vi-tri-nut {
  position: fixed;
  bottom: 72px;
  right: 20px;
  z-index: 999;
}

.fcta-zalo-nen-nut {
  width: 52px;
  height: 52px;
  text-align: center;
  color: #fff;
  background: var(--gradient-ai);
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(99, 102, 241, 0.5);
}

.fcta-zalo-nen-nut::before,
.fcta-zalo-nen-nut::after {
  content: "";
  position: absolute;
  border: 1px solid #6366f1;
  background: rgba(99, 102, 241, 0.32);
  z-index: -1;
  left: -15px;
  right: -15px;
  top: -15px;
  bottom: -15px;
  border-radius: 50%;
  animation: zoomPulse 2s linear infinite;
}

.fcta-zalo-nen-nut::after {
  animation-delay: 0.5s;
}

@keyframes zoomPulse {
  0% { transform: scale(0.5); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: scale(1.1); opacity: 0; }
}

.fcta-zalo-mess {
  position: fixed;
  bottom: 79px;
  right: 60px;
  z-index: 998;
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  padding: 6px 22px 6px 14px;
  color: var(--primary);
  border-radius: 50px 0 0 50px;
  font-weight: 800;
  font-size: 13px;
  box-shadow: var(--shadow-md);
}

/* ============================================
   10. MODALS, SUBVIEWS & TABLES
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 10, 20, 0.72);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow-y: auto;
}

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

.modal-box {
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 680px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  animation: modalPop 0.25s ease;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
}

.modal-box.modal-sm {
  max-width: 480px;
}

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

.modal-header {
  background: linear-gradient(135deg, #1e1b4b 0%, #4f46e5 55%, #0891b2 100%);
  color: #fff;
  padding: 16px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h4 {
  font-size: 16.5px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.modal-close-btn {
  background: rgba(255, 255, 255, 0.18);
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-body {
  padding: 22px;
  overflow-y: auto;
}

.modal-footer {
  padding: 14px 22px;
  background: var(--bg-subtle);
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

/* Forms & Buttons */
.form-group {
  margin-bottom: 14px;
}

.form-label {
  display: block;
  font-weight: 700;
  font-size: 13.5px;
  margin-bottom: 6px;
  color: var(--text-main);
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-input);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  border-radius: 11px;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: all 0.2s;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.18);
}

.btn {
  padding: 10px 18px;
  border-radius: 11px;
  font-family: inherit;
  font-size: 13.8px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.22s;
}

.btn-primary {
  background: var(--gradient-btn);
  color: #fff;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
}

.btn-primary:hover {
  background: var(--gradient-ai);
  transform: translateY(-1px);
}

.btn-success {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
}

.btn-danger {
  background: linear-gradient(135deg, #f43f5e, #e11d48);
  color: #fff;
}

.btn-outline {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
}

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

/* Subviews */
.subview-container {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 26px;
  box-shadow: var(--shadow-md);
  margin-bottom: 30px;
}

.subview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 16px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--border-color);
}

.subview-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-main);
}

.subview-subtitle {
  color: var(--text-muted);
  font-size: 13.5px;
  margin-top: 3px;
}

.policy-card {
  background: var(--bg-subtle);
  padding: 22px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
}

.policy-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.14);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 12px;
}

.policy-card h3 {
  font-size: 16.5px;
  font-weight: 800;
  margin-bottom: 10px;
}

.policy-card p {
  margin-bottom: 8px;
  font-size: 13.8px;
  color: var(--text-secondary);
}

/* Tables */
.table-responsive {
  overflow-x: auto;
}

.modern-table {
  width: 100%;
  border-collapse: collapse;
}

.modern-table th,
.modern-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
  font-size: 13.5px;
}

.modern-table th {
  background: var(--bg-subtle);
  font-weight: 800;
  color: var(--text-main);
  text-transform: uppercase;
  font-size: 12px;
}

.cred-box {
  background: #090d1a;
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38bdf8;
  font-family: 'JetBrains Mono', 'Consolas', monospace;
  font-size: 12.5px;
  padding: 8px 12px;
  border-radius: 9px;
  margin: 4px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  word-break: break-all;
}

/* Admin Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

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

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #fff;
}

/* Toast Notification & Live Popup */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast-item {
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  border-left: 5px solid var(--success);
  padding: 12px 18px;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 290px;
  animation: slideInRight 0.3s ease;
}

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

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

.live-order-popup {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 990;
  background: var(--bg-card);
  border-radius: 14px;
  padding: 11px 16px;
  box-shadow: var(--shadow-hover);
  border: 1px solid var(--border-glow);
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 340px;
  transition: all 0.4s ease;
  transform: translateY(150%);
  opacity: 0;
}

.live-order-popup.show {
  transform: translateY(0);
  opacity: 1;
}

.live-popup-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2563eb 0%, #4f46e5 55%, #0ea5e9 100%);
  border: 1px solid rgba(255, 255, 255, 0.42);
  box-shadow: 0 6px 14px -4px rgba(37, 99, 235, 0.4);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}

/* Footer & Mobile Bottom Menu */
.footer-part {
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
  padding: 44px 0 24px;
  margin-top: 44px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  margin-bottom: 24px;
}

.footer-title {
  font-size: 16.5px;
  font-weight: 800;
  margin-bottom: 14px;
  color: var(--text-main);
}

.footer-contact li,
.footer-links li {
  margin-bottom: 9px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 13.8px;
}

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

.footer-bottom {
  text-align: center;
  padding-top: 18px;
  border-top: 1px solid var(--border-color);
  font-size: 13.5px;
  color: var(--text-muted);
}

.mobile-menu {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-surface);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-color);
  display: none;
  justify-content: space-around;
  padding: 8px 0;
  z-index: 1020;
}

.mobile-menu-btn {
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
}

.mobile-menu-btn.active,
.mobile-menu-btn:hover {
  color: var(--primary);
}

.mobile-menu-btn i {
  font-size: 17px;
}

@media (max-width: 768px) {
  .mobile-menu {
    display: flex;
  }
}

/* ============================================
   11. SAAS ADMIN DASHBOARD LAYOUT (CLEAN & ORGANIZED)
   ============================================ */
body.admin-mode-active .promo-bar,
body.admin-mode-active .navbar-modern,
body.admin-mode-active #top-menu-right,
body.admin-mode-active #linkzalo,
body.admin-mode-active .footer-part {
  display: none !important;
}

body.admin-mode-active .main-section {
  padding-top: 18px;
  padding-bottom: 40px;
}

.admin-shell {
  display: grid;
  grid-template-columns: 265px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  min-height: calc(100vh - 110px);
}

@media (max-width: 991px) {
  .admin-shell {
    grid-template-columns: 1fr;
  }
}

/* Admin Sidebar */
.admin-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 18px 14px;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 86px;
}

.admin-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 6px 10px 16px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 14px;
}

.admin-sidebar-brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--gradient-ai);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}

.admin-nav-group-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--text-muted);
  padding: 10px 12px 6px;
}

.admin-nav-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 8px;
}

.admin-nav-btn {
  width: 100%;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 11px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.admin-nav-btn-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-nav-btn-left i {
  width: 20px;
  text-align: center;
  font-size: 15px;
  color: var(--primary);
  transition: color 0.2s;
}

.admin-nav-btn:hover {
  background: var(--bg-subtle);
  color: var(--primary);
}

.admin-nav-btn.active {
  background: var(--gradient-ai);
  color: #ffffff;
  box-shadow: 0 6px 16px -3px rgba(99, 102, 241, 0.42);
}

.admin-nav-btn.active .admin-nav-btn-left i {
  color: #ffffff;
}

.admin-nav-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--bg-subtle);
  color: var(--text-secondary);
}

.admin-nav-btn.active .admin-nav-badge {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

/* Admin Main Workspace */
.admin-main {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.admin-topbar {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 18px 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.admin-topbar-title {
  font-size: 19px;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.admin-topbar-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin: 4px 0 0;
}

.admin-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
}

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

.admin-card-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

/* Segmented Sub-tabs */
.admin-subtabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  background: var(--bg-subtle);
  padding: 5px;
  border-radius: 13px;
  border: 1px solid var(--border-color);
  margin-bottom: 18px;
}

.admin-subtab-btn {
  background: transparent;
  border: none;
  border-radius: 9px;
  padding: 8px 15px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all 0.2s;
}

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

.admin-subtab-btn.active {
  background: var(--bg-card);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

/* Compact KPI Grid */
.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

@media (max-width: 1100px) {
  .admin-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .admin-kpi-grid {
    grid-template-columns: 1fr;
  }
}

.admin-kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 15px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, border-color 0.2s;
}

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

.admin-kpi-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #fff;
  flex-shrink: 0;
}

.admin-kpi-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}

.admin-kpi-value {
  font-size: 19px;
  font-weight: 900;
  color: var(--text-main);
  line-height: 1.25;
  margin-top: 2px;
}

.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

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

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

@media (max-width: 768px) {
  .admin-form-grid-2,
  .admin-form-grid-3 {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================================
   VIETQR PAYMENT MODAL & STATUS
   ========================================================================== */
.pay-order-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  margin-bottom: 14px;
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
}
.pay-countdown {
  font-weight: 900;
  font-size: 18px;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
  background: rgba(244, 63, 94, 0.08);
  padding: 6px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.pay-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 18px;
  align-items: center;
}
.pay-qr-wrap {
  text-align: center;
}
.pay-qr-wrap img {
  width: 100%;
  border-radius: var(--radius-md);
  background: #fff;
  padding: 8px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-hover);
}
.pay-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border-color);
  font-size: 14px;
}
.pay-row-label {
  color: var(--text-muted);
}
.pay-row-value {
  display: flex;
  align-items: center;
  gap: 6px;
  text-align: right;
  word-break: break-all;
}
.pay-copy-btn {
  padding: 3px 8px !important;
  font-size: 12px !important;
}
.pay-warning {
  margin-top: 10px;
  font-size: 12.5px;
  color: #92400e;
  background: #fffbeb;
  border: 1px solid #fde68a;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
}
.pay-status {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: rgba(6, 182, 212, 0.08);
  border: 1px dashed var(--cyan);
  color: #0e7490;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.55;
}
.pay-status-error {
  background: rgba(239, 68, 68, 0.08);
  border-color: var(--danger);
  color: #b91c1c;
}
[data-theme="dark"] .pay-status { color: #67e8f9; }
[data-theme="dark"] .pay-status-error { color: #fca5a5; }
[data-theme="dark"] .pay-warning { background: rgba(245, 158, 11, 0.1); border-color: rgba(245, 158, 11, 0.4); color: #fcd34d; }
@media (max-width: 640px) {
  .pay-grid { grid-template-columns: 1fr; }
  .pay-qr-wrap img { max-width: 240px; }
}
/* ==========================================================================
   STEP 3: PRODUCT DETAIL PAGE, ORDER LOOKUP, ADMIN RESET REQUESTS
   ========================================================================== */
.pd-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 18px;
}
.pd-breadcrumb a { color: var(--primary); font-weight: 600; text-decoration: none; }
.pd-breadcrumb a:hover { text-decoration: underline; }
.pd-breadcrumb strong { color: var(--dark, inherit); }

.pd-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 22px;
  box-shadow: var(--shadow-sm);
  animation: pdFadeIn 0.35s ease;
}
@keyframes pdFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.pd-media {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-subtle, #f1f5f9);
  aspect-ratio: 4 / 3;
}
.pd-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.pd-media:hover img { transform: scale(1.04); }
.pd-discount {
  position: absolute;
  top: 14px;
  left: 14px;
  background: linear-gradient(135deg, #f43f5e, #e11d48);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(225, 29, 72, 0.35);
}
.pd-info { display: flex; flex-direction: column; gap: 12px; }
.pd-info .product-badge { align-self: flex-start; }
.pd-title { font-size: 26px; font-weight: 800; line-height: 1.25; margin: 0; }
.pd-short { color: var(--text-muted); font-size: 15px; line-height: 1.6; margin: 0; }
.pd-price-row { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.pd-price {
  font-size: 32px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.pd-price-old { font-size: 17px; color: var(--text-muted); text-decoration: line-through; }
.pd-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  font-size: 14px;
}
.pd-meta > div {
  background: var(--bg-subtle, #f8fafc);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 10px 12px;
}
.pd-meta i { color: var(--primary); margin-right: 4px; }
.pd-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.pd-buy-btn { flex: 1; min-width: 200px; padding: 14px 22px; font-size: 16px; }
.pd-description, .pd-related {
  margin-top: 22px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.pd-description h3, .pd-related h3 { font-size: 18px; font-weight: 800; margin: 0 0 14px; }
.pd-description h3 i, .pd-related h3 i { color: var(--primary); }
.pd-description-body { line-height: 1.75; font-size: 15px; }
.pd-description-body ul { padding-left: 20px; }
.pd-description-body li { margin-bottom: 8px; }

.order-lookup-card {
  background: var(--bg-card);
  border: 1px dashed var(--primary);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 18px;
}
.order-lookup-title { font-weight: 800; margin-bottom: 10px; }
.order-lookup-title i { color: var(--primary); }
.order-lookup-fields { display: grid; grid-template-columns: 1fr 1.3fr auto; gap: 10px; }

.admin-reset-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 16px;
}
.admin-reset-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.admin-reset-count {
  display: inline-block;
  min-width: 22px;
  padding: 1px 7px;
  margin-left: 6px;
  border-radius: 999px;
  background: #e11d48;
  color: #fff;
  font-size: 12px;
  text-align: center;
}
.admin-reset-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--border-color);
  margin-top: 10px;
}

@media (max-width: 768px) {
  .pd-layout { grid-template-columns: 1fr; padding: 14px; gap: 16px; }
  .pd-title { font-size: 21px; }
  .pd-price { font-size: 26px; }
  .pd-meta { grid-template-columns: 1fr; }
  .order-lookup-fields { grid-template-columns: 1fr; }
}

/* ==========================================================================
   STEP 4: UI/UX POLISH, ACCESSIBILITY & MOBILE RESPONSIVE
   ========================================================================== */
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: -60px;
  left: 12px;
  z-index: 4000;
  background: var(--gradient-btn);
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 12px; }

/* Keyboard focus ring (mouse clicks stay clean) */
:focus { outline: none; }
:focus-visible {
  outline: 3px solid rgba(99, 102, 241, 0.55);
  outline-offset: 2px;
  border-radius: 8px;
}

/* Clickable elements built with <a onclick> */
a[onclick], [onclick] { cursor: pointer; }

::selection { background: rgba(99, 102, 241, 0.25); }

/* Thin themed scrollbars */
* { scrollbar-width: thin; scrollbar-color: rgba(99, 102, 241, 0.35) transparent; }
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-thumb { background: rgba(99, 102, 241, 0.35); border-radius: 999px; }
*::-webkit-scrollbar-track { background: transparent; }

/* Lock page scroll behind open modals */
body.modal-open { overflow: hidden; }

/* Buttons: consistent press + disabled feedback */
.btn:active:not(:disabled) { transform: translateY(0) scale(0.98); }
.btn:disabled,
.product-card-buy-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none;
}
.btn-success:hover:not(:disabled) { filter: brightness(1.06); transform: translateY(-1px); box-shadow: 0 8px 18px rgba(16, 185, 129, 0.3); }
.btn-danger:hover:not(:disabled) { filter: brightness(1.06); transform: translateY(-1px); }
.modal-close-btn { transition: background 0.2s, transform 0.2s; }
.modal-close-btn:hover { background: rgba(255, 255, 255, 0.32); transform: rotate(90deg); }

/* Product cards: smoother hover lift */
.product-card-modern { transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease; }
.product-card-modern:not(.product-disable):hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--border-glow);
}
.product-card-image-wrapper img { transition: transform 0.45s ease; }
.product-card-modern:hover .product-card-image-wrapper img { transform: scale(1.05); }
.product-card-name { cursor: pointer; transition: color 0.2s; }
.product-card-name:hover { color: var(--primary); }

/* Views fade in when switching */
#view-home, #view-orders, #view-deposit, #view-affiliate, #view-blogs, #view-policy, #view-product {
  animation: viewFadeIn 0.3s ease;
}
@keyframes viewFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

/* Skeleton loading cards */
.skeleton-card {
  height: 300px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  background: linear-gradient(100deg, var(--bg-subtle) 30%, var(--bg-card) 50%, var(--bg-subtle) 70%);
  background-size: 300% 100%;
  animation: skeletonShimmer 1.3s ease-in-out infinite;
}
@keyframes skeletonShimmer {
  from { background-position: 100% 0; }
  to { background-position: 0 0; }
}

/* Back to top */
.back-to-top {
  position: fixed;
  right: 26px;
  bottom: 140px;
  z-index: 997;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border-glow);
  background: var(--bg-card);
  color: var(--primary);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.25s ease;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--gradient-ai); color: #fff; border-color: transparent; }
body.admin-mode-active .back-to-top { display: none; }

/* Dark theme fixes for hard-coded light inline backgrounds */
[data-theme="dark"] .modal-body [style*="background:#f8fafc"],
[data-theme="dark"] .modal-body [style*="background:#fff;"] {
  background: var(--bg-subtle) !important;
  border-color: var(--border-color) !important;
  color: var(--text-main);
}
[data-theme="dark"] .modal-body [style*="background:#f0fdf4"] {
  background: rgba(16, 185, 129, 0.08) !important;
  border-color: rgba(16, 185, 129, 0.35) !important;
}
[data-theme="dark"] .modal-body [style*="color:#065f46"],
[data-theme="dark"] .modal-body [style*="color:#047857"] { color: #6ee7b7 !important; }
[data-theme="dark"] .toast-item [style*="color:#334155"] { color: var(--text-secondary) !important; }

/* Tablet */
@media (max-width: 991px) {
  #top-menu-right { display: none; }
}

/* Mobile */
@media (max-width: 768px) {
  .container { padding-left: 12px; padding-right: 12px; }

  /* Bottom-sheet modals */
  .modal-overlay { align-items: flex-end; padding: 0; }
  .modal-box,
  .modal-box.modal-sm {
    max-width: 100% !important;
    border-radius: 20px 20px 0 0;
    max-height: 94vh;
    animation: sheetUp 0.28s ease;
  }
  @keyframes sheetUp {
    from { transform: translateY(40px); opacity: 0; }
    to { transform: none; opacity: 1; }
  }
  .modal-header { padding: 14px 16px; }
  .modal-header h4 { font-size: 15px; }
  .modal-body { padding: 16px; padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
  .modal-footer { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); flex-wrap: wrap; }
  .modal-footer .btn { flex: 1; }

  /* Quick-buy modal header block: smaller thumbnail */
  #buyModalBody > div:first-child { grid-template-columns: 88px 1fr !important; gap: 12px !important; }
  #buyModalBody > div:first-child img { width: 88px !important; height: 88px !important; object-fit: cover; }
  #buyModalBody [style*="justify-content:space-between;flex-wrap:wrap"] > .btn { width: 100%; }

  /* Toasts span the top on phones */
  .toast-container { top: 10px; left: 10px; right: 10px; }
  .toast-item { min-width: 0; width: 100%; }

  /* Subviews */
  .subview-container { padding: 16px; border-radius: 18px; }
  .subview-title { font-size: 17px; }
  .subview-header .btn { width: 100%; }

  /* Floating elements sit above the bottom menu */
  .mobile-menu { padding-bottom: calc(8px + env(safe-area-inset-bottom)); }
  .mobile-menu-btn { flex: 1; padding: 2px 0; transition: color 0.2s, transform 0.2s; }
  .mobile-menu-btn.active i { transform: translateY(-2px); }
  .live-order-popup { left: 10px; right: 10px; bottom: 84px; max-width: none; }
  .fcta-zalo-vi-tri-nut { bottom: 92px; right: 14px; }
  .fcta-zalo-nen-nut { width: 46px; height: 46px; }
  .fcta-zalo-mess { display: none; }
  .back-to-top { right: 18px; bottom: 156px; width: 38px; height: 38px; }

  /* Orders table -> stacked cards */
  .orders-table thead { display: none; }
  .orders-table, .orders-table tbody, .orders-table tr, .orders-table td { display: block; width: 100%; }
  .orders-table tr {
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 8px 12px;
    margin-bottom: 12px;
  }
  .orders-table td {
    border-bottom: 1px dashed var(--border-color);
    padding: 8px 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    text-align: right;
  }
  .orders-table td:last-child { border-bottom: none; }
  .orders-table td::before {
    content: attr(data-label);
    font-weight: 700;
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    text-align: left;
    flex-shrink: 0;
  }
  .orders-table td.orders-cred-cell { display: block; text-align: left; }
  .orders-table td.orders-cred-cell::before { display: block; margin-bottom: 6px; }

  /* Generic tables scroll smoothly */
  .table-responsive { -webkit-overflow-scrolling: touch; margin: 0 -4px; }

  .skeleton-card { height: 240px; }
  .pd-buy-btn { min-width: 0; width: 100%; }
  .pd-actions .btn { flex: 1 1 100%; }
}

@media (max-width: 380px) {
  .product-grid-modern { gap: 10px; }
  .mobile-menu-btn span { font-size: 10px; }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   ADMIN ANALYTICS CHARTS, TOP SELLERS, CSV & BACKUP / AUDIT LOGS
   ========================================================================== */
.admin-chart-bars {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
  align-items: end;
  height: 210px;
  padding: 24px 10px 8px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: 14px;
}

.admin-chart-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  gap: 6px;
}

.admin-chart-val {
  font-size: 11px;
  font-weight: 800;
  color: var(--primary);
  white-space: nowrap;
}

.admin-chart-bar-wrap {
  width: 100%;
  max-width: 52px;
  height: 130px;
  background: rgba(99, 102, 241, 0.08);
  border-radius: 8px;
  display: flex;
  align-items: flex-end;
  gap: 3px;
  overflow: hidden;
  padding: 3px;
}

.admin-chart-bar-fill {
  flex: 1;
  border-radius: 5px;
  background: linear-gradient(180deg, #6366f1 0%, #8b5cf6 100%);
  transition: height 0.35s ease;
  min-height: 6px;
}

.admin-chart-bar-fill.deposit {
  background: linear-gradient(180deg, #10b981 0%, #059669 100%);
}

.admin-chart-date {
  font-size: 12px;
  font-weight: 700;
  color: var(--dark);
}

.admin-chart-sub {
  font-size: 10.5px;
  color: var(--text-muted);
}

.admin-top-prod-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  margin-bottom: 8px;
}

.admin-rank-badge {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 900;
  background: rgba(99, 102, 241, 0.14);
  color: var(--primary);
  flex-shrink: 0;
}

.admin-rank-badge.rank-1 {
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  color: #fff;
}

.admin-rank-badge.rank-2 {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
}

.admin-rank-badge.rank-3 {
  background: linear-gradient(135deg, #06b6d4, #2563eb);
  color: #fff;
}

/* ==========================================================================
   STEP 5: HIGH-CRAFT MODERN UI OVERHAUL (ANTI-VIBECODE ARCHITECTURE)
   Linear / Vercel / Raycast / Stripe Aesthetic for Storefront & Admin CMS
   ========================================================================== */

/* 1. Editorial Typography & Tabular Numerals */
h1, h2, h3, h4, .pd-title, .subview-title, .admin-topbar-title h2 {
  letter-spacing: -0.025em;
}

.product-card-price-current,
.product-card-price-original,
.pd-price,
.pd-price-old,
.admin-kpi-val,
.admin-chart-val,
.balance-pill,
.count-badge,
.category-count-pill,
.admin-nav-badge,
.tabular-nums {
  font-variant-numeric: tabular-nums;
}

/* 2. Refined Top Marquee Bar (Sleek Dark Carbon Strip instead of Loud Rainbow) */
.promo-marquee-bar {
  background: #090d16;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 7px 0;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.85);
}

.marquee-badge {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #f8fafc;
  font-weight: 600;
  padding: 2px 10px;
}

.marquee-badge .pulse-dot {
  background: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.7);
}

/* 3. Precision Glass Header & Command Search Bar */
.header-top {
  background: var(--bg-surface);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
}

.header-main-row {
  padding: 12px 0;
  gap: 20px;
}

.logo-badge {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: #0f172a;
  color: #fff;
  font-size: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 4px 12px rgba(15, 23, 42, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .logo-badge {
  background: linear-gradient(180deg, #6366f1 0%, #4f46e5 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 4px 14px rgba(79, 70, 229, 0.35);
}

.logo-badge::after {
  display: none;
}

.brand-title {
  font-size: 17.5px;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: none;
  -webkit-text-fill-color: currentColor;
  color: var(--text-main);
}

.ai-pill-tag {
  background: var(--primary-soft);
  color: var(--primary);
  border: 1px solid rgba(79, 70, 229, 0.2);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  letter-spacing: 0.04em;
}

.brand-sub {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.header-form {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  height: 40px;
  padding: 0 6px 0 14px;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.03);
}

.header-form:focus-within {
  background: var(--bg-card);
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

.header-form input {
  font-size: 13.5px;
}

.header-form button {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: var(--text-main);
  color: var(--bg-card);
  font-size: 12.5px;
}

.header-form button:hover {
  background: var(--primary);
  color: #fff;
  transform: none;
}

/* Header Action Buttons */
.theme-toggle-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.theme-toggle-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-soft);
  transform: none;
}

.header-widget {
  padding: 7px 13px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 13px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.header-widget:hover {
  border-color: rgba(79, 70, 229, 0.35);
  background: var(--bg-subtle);
  transform: translateY(-1px);
}

.header-widget-primary {
  background: #0f172a;
  color: #ffffff !important;
  border: 1px solid #0f172a;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 2px 6px rgba(15, 23, 42, 0.12);
}

[data-theme="dark"] .header-widget-primary {
  background: var(--primary);
  border-color: rgba(255, 255, 255, 0.12);
}

.header-widget-primary:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff !important;
}

.count-badge {
  background: var(--primary-soft);
  color: var(--primary);
  padding: 1px 7px;
  font-size: 11.5px;
  font-weight: 700;
}

.balance-pill {
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
  font-weight: 700;
}

[data-theme="light"] .header-widget-primary .balance-pill {
  background: rgba(16, 185, 129, 0.22);
  color: #6ee7b7;
}

/* Navigation Bar */
.navbar-part {
  border-top: 1px solid var(--border-color);
}

.navbar-list {
  padding: 6px 0;
  gap: 4px;
}

.navbar-item a {
  padding: 6px 12px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  color: var(--text-secondary);
}

.navbar-item a:hover {
  color: var(--text-main);
  background: var(--bg-subtle);
}

.navbar-item a.active {
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 700;
  box-shadow: none;
}

/* 4. Refined Notice Bar & Coupon Pills */
.notice-banner {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 10px 14px;
  margin: 14px 0 18px;
  box-shadow: var(--shadow-sm);
}

.notice-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 14px;
}

.coupon-pill {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 4px 10px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
}

.coupon-pill i {
  color: var(--primary);
}

.coupon-pill:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.coupon-pill:hover i {
  color: #fff;
}

/* 5. Left Category Sidebar & Architectural Promo Card */
.category-sidebar {
  border-radius: 14px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.category-sidebar-header {
  background: var(--bg-card);
  color: var(--text-main);
  border-bottom: 1px solid var(--border-color);
  padding: 13px 16px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.category-sidebar-header i {
  color: var(--primary);
}

.category-sidebar-list {
  padding: 6px;
}

.category-sidebar-link {
  padding: 9px 11px;
  border-radius: 9px;
  font-weight: 600;
  font-size: 13.5px;
}

.category-sidebar-link.active {
  background: var(--primary-soft);
  border-color: rgba(79, 70, 229, 0.18);
  color: var(--primary);
  font-weight: 700;
}

.category-count-pill {
  font-size: 11px;
  padding: 1px 7px;
  background: var(--bg-subtle);
  color: var(--text-muted);
}

.category-sidebar-link.active .category-count-pill {
  background: var(--primary);
  color: #fff;
}

.sidebar-promo-banner {
  background: #0c101d;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 20px 18px;
  box-shadow: var(--shadow-md);
}

.sidebar-promo-tag {
  background: rgba(99, 102, 241, 0.16);
  border: 1px solid rgba(99, 102, 241, 0.35);
  color: #a5b4fc;
  font-size: 10.5px;
}

.sidebar-promo-btn {
  background: #ffffff;
  color: #0f172a !important;
  border-radius: 9px;
  font-weight: 700;
  font-size: 13px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.sidebar-promo-btn:hover {
  background: #f1f5f9;
  transform: translateY(-1px);
}

/* 6. Hero Bento Slider & Side Cards (Refined Architectural Dark Surfaces) */
.hero-slider-card {
  border-radius: 16px;
  min-height: 290px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-bg-indigo {
  background: radial-gradient(120% 100% at 100% 0%, rgba(99, 102, 241, 0.32) 0%, transparent 55%),
              linear-gradient(160deg, #090d16 0%, #111827 60%, #1e1b4b 100%);
}

.hero-bg-violet {
  background: radial-gradient(120% 100% at 100% 0%, rgba(139, 92, 246, 0.32) 0%, transparent 55%),
              linear-gradient(160deg, #090d16 0%, #131124 60%, #2e1065 100%);
}

.hero-bg-cyan {
  background: radial-gradient(120% 100% at 100% 0%, rgba(14, 165, 233, 0.28) 0%, transparent 55%),
              linear-gradient(160deg, #090d16 0%, #0f172a 60%, #0c4a6e 100%);
}

.hero-slide {
  padding: 30px 32px;
}

.hero-slide-badge {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #e2e8f0;
}

.hero-slide h2 {
  font-size: 25px;
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}

.hero-slide p {
  font-size: 13.5px;
  color: #94a3b8;
  margin-bottom: 16px;
}

.hero-model-chips span {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  font-weight: 600;
  font-size: 11.5px;
}

.hero-model-chips span i {
  color: #818cf8;
}

.hero-slide-cta {
  padding: 10px 20px;
  border-radius: 10px;
  background: #ffffff;
  color: #0f172a;
  font-weight: 700;
  font-size: 13px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.hero-slide-cta:hover {
  background: #f8fafc;
  transform: translateY(-1px);
}

.mini-promo-card {
  border-radius: 14px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), var(--shadow-sm);
}

.bento-card-purple {
  background: radial-gradient(circle at 100% 0%, rgba(124, 58, 237, 0.28), transparent 60%), #0f1423;
}

.bento-card-cyan {
  background: radial-gradient(circle at 100% 0%, rgba(6, 182, 212, 0.25), transparent 60%), #0f172a;
}

.bento-card-indigo {
  background: radial-gradient(circle at 100% 0%, rgba(79, 70, 229, 0.25), transparent 60%), #111827;
}

.bento-card-emerald {
  background: radial-gradient(circle at 100% 0%, rgba(16, 185, 129, 0.24), transparent 60%), #0d1917;
}

.mini-promo-card .mini-tag {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  font-size: 10px;
  letter-spacing: 0.04em;
}

.mini-promo-card h4 {
  font-size: 14.5px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.mini-promo-card p {
  font-size: 12px;
  color: #94a3b8;
}

/* 7. Category Filter Pills & Section Headings */
.btn-category-home {
  padding: 8px 14px;
  border-radius: 9px;
  font-weight: 600;
  font-size: 13px;
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.btn-category-home:hover {
  border-color: var(--primary);
  color: var(--text-main);
  transform: none;
}

.btn-category-home.active {
  background: #0f172a;
  color: #fff;
  border-color: #0f172a;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.15);
}

[data-theme="dark"] .btn-category-home.active {
  background: var(--primary);
  border-color: var(--primary);
}

.home-heading {
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.home-heading::before {
  width: 3px;
  background: var(--primary);
}

.section-icon-badge {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 13.5px;
  box-shadow: none;
}

.home-heading h3 {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* 8. High-Craft Product Cards (.product-card-modern) */
.product-grid-modern {
  gap: 16px;
}

.product-card-modern {
  border-radius: 14px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, border-color 0.2s ease;
}

.product-card-modern:not(.product-disable):hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(79, 70, 229, 0.28);
}

.product-card-image-wrapper {
  height: 156px;
  border-bottom: 1px solid var(--border-color);
}

.product-badge {
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.badge-discount {
  background: #e11d48;
  color: #fff;
  box-shadow: 0 2px 6px rgba(225, 29, 72, 0.25);
}

.badge-pro {
  background: #4f46e5;
  color: #fff;
  box-shadow: 0 2px 6px rgba(79, 70, 229, 0.25);
}

.badge-delivery-mode {
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(8px);
  color: #f8fafc;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.product-card-content {
  padding: 14px 15px 15px;
}

.product-card-name {
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.015em;
  margin-bottom: 5px;
}

.product-card-duration {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.product-card-stock-info {
  padding-top: 9px;
  margin-bottom: 12px;
  border-top: 1px solid var(--border-color);
  font-size: 11.5px;
}

.product-card-stock-info .label-text {
  font-weight: 500;
  color: var(--text-muted);
}

.product-card-stock-info .label-text strong {
  color: var(--text-main);
  font-weight: 700;
}

.product-card-stock-info .label-text.feat i {
  color: var(--success);
}

.product-card-stock-info .label-text.order i {
  color: var(--primary);
}

.product-card-price-current {
  font-size: 17.5px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.product-card-price-original {
  font-size: 11.5px;
  color: var(--text-muted);
}

.product-card-buy-btn {
  padding: 8px 14px;
  border-radius: 9px;
  background: #0f172a;
  color: #ffffff;
  font-weight: 700;
  font-size: 12.5px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
  transition: all 0.18s ease;
}

[data-theme="dark"] .product-card-buy-btn {
  background: var(--primary);
  color: #ffffff;
}

.product-card-buy-btn:hover:not(:disabled) {
  background: var(--primary);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}

/* 9. Buttons & Form Controls */
.btn {
  padding: 8px 14px;
  border-radius: 9px;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: -0.005em;
  transition: all 0.18s ease;
}

.btn-primary {
  background: #0f172a;
  color: #fff;
  border: 1px solid #0f172a;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 1px 2px rgba(15, 23, 42, 0.08);
}

[data-theme="dark"] .btn-primary {
  background: var(--primary);
  border-color: rgba(255, 255, 255, 0.1);
}

.btn-primary:hover:not(:disabled) {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.24);
}

.btn-success {
  background: #059669;
  color: #fff;
  border: 1px solid #047857;
}

.btn-danger {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

[data-theme="dark"] .btn-danger {
  background: rgba(239, 68, 68, 0.14);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.25);
}

.btn-danger:hover:not(:disabled) {
  background: #dc2626;
  color: #fff;
  border-color: #dc2626;
}

.btn-outline {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.02);
}

.btn-outline:hover:not(:disabled) {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-soft);
}

.form-control {
  border-radius: 9px;
  padding: 9px 12px;
  font-size: 13.5px;
  border: 1px solid var(--border-color);
  background: var(--bg-input);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.02);
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

/* 10. Clean Architectural Modals (No Loud Gradient Headers) */
.modal-box {
  border-radius: 16px;
  border: 1px solid var(--border-color);
  box-shadow: 0 24px 48px -12px rgba(15, 23, 42, 0.22);
}

.modal-header {
  background: var(--bg-card) !important;
  color: var(--text-main) !important;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
}

.modal-header h4 {
  font-size: 15.5px;
  font-weight: 800;
  color: var(--text-main);
}

.modal-header h4 i {
  color: var(--primary);
}

.modal-close-btn {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--bg-subtle);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
}

.modal-close-btn:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
  border-color: rgba(239, 68, 68, 0.2);
  transform: none;
}

/* 11. Admin Portal Overhaul (Linear / Stripe SaaS Workspace) */
.admin-shell {
  grid-template-columns: 248px 1fr;
  gap: 20px;
}

.admin-sidebar {
  border-radius: 14px;
  padding: 14px 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.admin-sidebar-brand {
  padding: 10px 12px;
  margin-bottom: 14px;
  border-radius: 10px;
  background: var(--bg-subtle);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.admin-sidebar-brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #0f172a;
  color: #fff;
  font-size: 15px;
}

[data-theme="dark"] .admin-sidebar-brand-icon {
  background: var(--primary);
}

.admin-sidebar-brand h3 {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text-main);
}

.admin-sidebar-brand span {
  font-size: 11px;
  color: var(--text-muted);
  opacity: 1;
}

.admin-nav-group-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0 10px;
  margin-bottom: 4px;
}

.admin-nav-btn {
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.admin-nav-btn:hover {
  background: var(--bg-subtle);
  color: var(--text-main);
}

.admin-nav-btn.active {
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 700;
  box-shadow: none;
}

.admin-nav-btn.active .admin-nav-btn-left i {
  color: var(--primary);
}

.admin-nav-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 6px;
  background: var(--bg-subtle);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
}

.admin-nav-btn.active .admin-nav-badge {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* Admin KPI Cards */
.admin-kpi-card {
  border-radius: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.admin-kpi-card:hover {
  border-color: var(--primary);
  transform: translateY(-1px);
}

.admin-kpi-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  font-size: 16px;
  background: var(--primary-soft) !important;
  color: var(--primary) !important;
  border: 1px solid rgba(79, 70, 229, 0.15);
}

.admin-kpi-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
}

.admin-kpi-val {
  font-size: 17.5px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* Admin Topbar, Subtabs, Cards & Tables */
.admin-topbar {
  border-radius: 12px;
  padding: 14px 18px;
  box-shadow: var(--shadow-sm);
}

.admin-topbar-title h2 {
  font-size: 17px;
  font-weight: 800;
}

.admin-subtabs {
  background: var(--bg-subtle);
  padding: 4px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  display: inline-flex;
  gap: 4px;
}

.admin-subtab-btn {
  padding: 6px 13px;
  border-radius: 7px;
  font-size: 12.5px;
  font-weight: 600;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
}

.admin-subtab-btn:hover {
  color: var(--text-main);
  background: transparent;
}

.admin-subtab-btn.active {
  background: var(--bg-card);
  color: var(--text-main);
  font-weight: 700;
  border-color: var(--border-color);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.admin-card {
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}

.modern-table th {
  background: var(--bg-subtle);
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
}

.modern-table td {
  padding: 11px 14px;
  font-size: 13px;
  border-bottom: 1px solid var(--border-color);
}

.modern-table tr:hover td {
  background: rgba(79, 70, 229, 0.025);
}

/* Semantic Status Pills & Badges (Dark & Light Mode Safe) */
.status-pill,
.badge-soft-success,
.badge-soft-warning,
.badge-soft-danger,
.badge-soft-info,
.badge-soft-neutral,
.badge-vip-diamond,
.badge-vip-gold {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
}

.badge-soft-success {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.22);
}
[data-theme="dark"] .badge-soft-success { color: #34d399; }

.badge-soft-warning {
  background: rgba(245, 158, 11, 0.12);
  color: #d97706;
  border: 1px solid rgba(245, 158, 11, 0.24);
}
[data-theme="dark"] .badge-soft-warning { color: #fbbf24; }

.badge-soft-danger {
  background: rgba(239, 68, 68, 0.12);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.22);
}
[data-theme="dark"] .badge-soft-danger { color: #f87171; }

.badge-soft-info {
  background: rgba(79, 70, 229, 0.1);
  color: var(--primary);
  border: 1px solid rgba(79, 70, 229, 0.2);
}

.badge-soft-neutral {
  background: var(--bg-subtle);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
}

.badge-vip-diamond {
  background: rgba(99, 102, 241, 0.14);
  color: var(--primary);
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.badge-vip-gold {
  background: rgba(245, 158, 11, 0.14);
  color: #d97706;
  border: 1px solid rgba(245, 158, 11, 0.3);
}
[data-theme="dark"] .badge-vip-gold { color: #fbbf24; }

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}
.status-dot.online { background: #10b981; box-shadow: 0 0 6px rgba(16, 185, 129, 0.5); }
.status-dot.warning { background: #f59e0b; }
.status-dot.danger { background: #ef4444; }
.status-dot.primary { background: var(--primary); }

/* 12. Modern Storefront Header Overrides (.header-modern) */
.header-modern {
  background: rgba(11, 15, 25, 0.94);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  padding: 11px 0;
}

.header-search-form {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 3px 5px 3px 14px;
}

.header-search-form:focus-within {
  background: rgba(15, 23, 42, 0.95);
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.22);
}

.header-search-btn {
  border-radius: 8px;
  width: 32px;
  height: 32px;
  background: var(--primary);
}

.header-btn-pill {
  border-radius: 10px;
  padding: 7px 13px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-weight: 600;
  font-size: 13px;
}

.header-btn-pill:hover {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.24);
}

.header-btn-pill.btn-wallet-highlight {
  background: var(--primary);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 2px 10px rgba(79, 70, 229, 0.35);
}

.header-btn-pill.btn-admin-highlight {
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
}

.header-btn-pill.btn-admin-highlight:hover {
  background: #059669;
  color: #fff;
}

.header-balance-chip {
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
  font-variant-numeric: tabular-nums;
}

/* 13. Strict Storefront Isolation: Never show product edit/add buttons on User Storefront */
#view-home .home-heading button,
#view-home .product-card-actions .btn-outline,
#view-product .product-card-actions .btn-outline {
  display: none !important;
}

/* ==========================================================================
   14. LICENSEGO-INSPIRED STOREFRONT CARDS & PRODUCT DETAIL PAGE
   ========================================================================== */
.product-card-modern.lg-card {
  border-radius: 16px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.product-card-modern.lg-card:hover {
  border-color: var(--primary);
  box-shadow: 0 12px 28px -8px rgba(15, 23, 42, 0.14);
  transform: translateY(-3px);
}

.lg-card .product-card-image-wrapper {
  aspect-ratio: 16 / 10;
  background: var(--bg-subtle);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.lg-card .product-card-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.lg-card:hover .product-card-image-wrapper img {
  transform: scale(1.05);
}

.lg-card-badge-top {
  position: absolute;
  top: 9px;
  left: 9px;
  background: rgba(10, 14, 23, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 8.5px;
  border-radius: 7px;
  max-width: 78%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  z-index: 2;
}

.lg-card-content {
  padding: 13px 14px 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.lg-card-title {
  font-size: 14.5px;
  font-weight: 800;
  line-height: 1.36;
  color: var(--text-main);
  margin: 0 0 7px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 39px;
  cursor: pointer;
  transition: color 0.18s ease;
}

.lg-card-title:hover {
  color: var(--primary);
}

.lg-card-pill-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.lg-card-duration-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8.5px;
  border-radius: 6px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.3;
}

.lg-card-duration-pill i {
  font-size: 11px;
  color: var(--primary);
}

.lg-card-delivery-sub {
  font-size: 11.8px;
  color: var(--text-muted);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 8px;
}

.lg-card-notes {
  list-style: none;
  padding: 8px 10px;
  margin: 0 0 10px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 4.5px;
}

.lg-card-notes li {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 11.8px;
  line-height: 1.38;
  color: var(--text-secondary);
}

.lg-card-notes li i {
  color: var(--primary);
  font-size: 11px;
  margin-top: 2.5px;
  flex-shrink: 0;
}

.lg-card-notes li span {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.lg-card-price-row {
  margin-top: auto;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 4px;
}

.lg-card-price-val {
  font-size: 16.5px;
  font-weight: 800;
  color: var(--text-main);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.lg-card-price-old {
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: line-through;
  font-variant-numeric: tabular-nums;
}

.lg-card-save-pct {
  display: inline-flex;
  align-items: center;
  padding: 1.5px 6px;
  border-radius: 5px;
  background: rgba(16, 185, 129, 0.14);
  color: #059669;
  font-size: 11px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

[data-theme="dark"] .lg-card-save-pct {
  color: #34d399;
}

.lg-card-meta-sub {
  font-size: 11.2px;
  color: var(--text-muted);
  margin-top: 2px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.lg-card-btn-row {
  display: grid;
  grid-template-columns: 1fr 38px 1.15fr;
  gap: 6px;
}

.lg-card-btn-cart {
  height: 36px;
  width: 38px;
  border-radius: 9px;
  border: 1px solid rgba(79, 70, 229, 0.35);
  background: rgba(79, 70, 229, 0.08);
  color: var(--primary);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s ease;
}

.lg-card-btn-cart:hover:not(:disabled) {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 4px 10px rgba(79, 70, 229, 0.25);
}

/* Maintenance mode */
body.maintenance-lock { overflow: hidden; }
body.has-maintenance-banner { padding-top: 48px; }

.maintenance-screen {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1600;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  overflow: auto;
  background:
    radial-gradient(900px 420px at 12% -10%, rgba(79, 70, 229, 0.38), transparent 55%),
    radial-gradient(680px 360px at 100% 110%, rgba(8, 145, 178, 0.28), transparent 50%),
    #0f172a;
}
.maintenance-screen.is-open { display: flex; }

.maintenance-admin-banner {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1700;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 16px;
  background: #fef3c7;
  color: #78350f;
  border-bottom: 1px solid #f59e0b;
  font-size: 13.5px;
  font-weight: 700;
}
.maintenance-admin-banner.is-open { display: flex; }
.maintenance-admin-banner-actions { display: flex; gap: 8px; flex-shrink: 0; }
.maintenance-admin-banner button {
  border: 1px solid #d97706;
  background: #fff;
  color: #92400e;
  border-radius: 999px;
  padding: 5px 12px;
  font: inherit;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
}
.maintenance-admin-banner button.is-danger {
  background: #b45309;
  color: #fff;
  border-color: #b45309;
}

.mnt-card {
  width: min(560px, 100%);
  background: #fff;
  color: #0f172a;
  border-radius: 22px;
  padding: 28px 24px 22px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.mnt-preview-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin: -8px 0 14px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #fef3c7;
  color: #92400e;
  font-size: 12.5px;
  font-weight: 800;
}
.mnt-preview-bar button {
  border: 0;
  background: #92400e;
  color: #fff;
  border-radius: 999px;
  padding: 4px 10px;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.mnt-icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  background: #fff7ed;
  color: #d97706;
  font-size: 26px;
}
.mnt-card h1 {
  margin: 0 0 8px;
  font-size: 26px;
  line-height: 1.25;
  font-weight: 900;
}
.mnt-message {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.6;
  color: #334155;
  white-space: pre-wrap;
}
.mnt-until { margin: 0 0 14px; font-size: 14px; color: #92400e; }
.mnt-actions, .mnt-lookup { display: flex; flex-wrap: wrap; gap: 8px; }
.mnt-lookup {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #e2e8f0;
  display: grid;
  gap: 8px;
}
.mnt-lookup-title { font-size: 13px; font-weight: 800; color: #0f172a; }
.mnt-input {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  font-size: 14px;
}
.mnt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #0f172a;
  padding: 9px 14px;
  font: inherit;
  font-size: 13.5px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}
.mnt-btn-solid { background: #4f46e5; border-color: #4f46e5; color: #fff; }
.mnt-muted { margin: 0; color: #64748b; font-size: 12.5px; }
.mnt-orders { display: grid; gap: 8px; margin-top: 14px; }
.mnt-order {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}
.mnt-order-side { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }

@media (max-width: 640px) {
  .maintenance-admin-banner { flex-wrap: wrap; }
  .mnt-card h1 { font-size: 22px; }
  .mnt-order { flex-direction: column; align-items: flex-start; }
}

.lg-card-btn-cart:disabled {
  background: var(--bg-subtle);
  border-color: var(--border-color);
  color: var(--text-muted);
  cursor: not-allowed;
}

.lg-card-btn-detail {
  height: 36px;
  border-radius: 9px;
  border: 1px solid var(--border-color);
  background: var(--bg-subtle);
  color: var(--text-main);
  font-family: inherit;
  font-size: 12.2px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all 0.18s ease;
}

.lg-card-btn-detail:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(79, 70, 229, 0.06);
}

.lg-card-btn-buy {
  height: 36px;
  border-radius: 9px;
  border: 1px solid var(--primary);
  background: var(--primary);
  color: #ffffff;
  font-family: inherit;
  font-size: 12.4px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all 0.18s ease;
}

.lg-card-btn-buy:hover:not(:disabled) {
  filter: brightness(1.08);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.lg-card-btn-buy:disabled {
  background: var(--bg-subtle);
  border-color: var(--border-color);
  color: var(--text-muted);
  cursor: not-allowed;
}

/* ==========================================================================
   LICENSEGO PRODUCT DETAIL PAGE (2-COLUMN + 5 TABS + STICKY BUY BOX)
   ========================================================================== */
.lg-pd-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 375px;
  gap: 20px;
  align-items: start;
}

.lg-pd-left {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.lg-pd-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 22px;
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
}

.lg-pd-hero-top {
  display: flex;
  align-items: center;
  gap: 22px;
}

.lg-pd-artwork {
  width: 156px;
  aspect-ratio: 16 / 11;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: var(--bg-subtle);
  flex-shrink: 0;
  box-shadow: 0 8px 22px -6px rgba(15, 23, 42, 0.18);
}

.lg-pd-artwork img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lg-pd-hero-meta {
  flex: 1;
  min-width: 0;
}

.lg-pd-kicker {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  margin: 0 0 5px;
}

.lg-pd-h1 {
  font-size: 27px;
  font-weight: 800;
  line-height: 1.22;
  color: var(--text-main);
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.lg-pd-tagline {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-secondary);
  margin: 0;
}

.lg-pd-status-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 13px;
}

.lg-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 4px 11px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
}

.lg-status-pill.green {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

[data-theme="dark"] .lg-status-pill.green {
  color: #34d399;
}

.lg-status-pill.red {
  background: rgba(239, 68, 68, 0.12);
  color: #dc2626;
}

.lg-status-pill.muted {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-main);
}

.lg-pd-included-wrap {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.lg-pd-section-subtitle {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main);
  margin: 0 0 11px;
}

.lg-pd-notes-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
}

.lg-pd-notes-grid li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--text-main);
  font-weight: 500;
}

.lg-pd-notes-grid li i {
  color: var(--primary);
  margin-top: 3px;
  flex-shrink: 0;
}

.lg-pd-quick-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border-color);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  overflow: hidden;
  margin: 0;
}

.lg-pd-quick-specs > div {
  background: var(--bg-card);
  padding: 12px 15px;
}

.lg-pd-quick-specs dt {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 3px;
}

.lg-pd-quick-specs dd {
  margin: 0;
  font-size: 14.2px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.4;
}

/* 5-Tab Bar */
.lg-pd-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.lg-pd-tabs::-webkit-scrollbar {
  display: none;
}

.lg-pd-tab-btn {
  height: 40px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 13.8px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all 0.18s ease;
}

.lg-pd-tab-btn:hover {
  border-color: var(--primary);
  color: var(--text-main);
}

.lg-pd-tab-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}

/* Tab Content Sections */
.lg-pd-panel-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.lg-pd-overview-text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0 0 18px;
}

.lg-pd-highlights-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 26px;
  margin-top: 12px;
}

.lg-pd-highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.lg-pd-highlight-item i {
  color: var(--primary);
  font-size: 15px;
  margin-top: 3px;
  flex-shrink: 0;
}

.lg-pd-highlight-item h4 {
  font-size: 14.3px;
  font-weight: 800;
  color: var(--text-main);
  margin: 0 0 3px;
  line-height: 1.35;
}

.lg-pd-highlight-item p {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0;
}

/* Spec Table */
.lg-pd-spec-table-wrap {
  border: 1px solid var(--border-color);
  border-radius: 14px;
  overflow: hidden;
}

.lg-pd-spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.lg-pd-spec-table tr {
  border-bottom: 1px solid var(--border-color);
}

.lg-pd-spec-table tr:last-child {
  border-bottom: none;
}

.lg-pd-spec-table tr:nth-child(even) {
  background: var(--bg-subtle);
}

.lg-pd-spec-table th {
  text-align: left;
  padding: 11px 16px;
  font-weight: 700;
  color: var(--text-main);
  width: 32%;
  vertical-align: top;
}

.lg-pd-spec-table td {
  padding: 11px 16px;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* Delivery Compare Box */
.lg-delivery-box {
  border: 1px solid var(--border-color);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 16px;
}

.lg-delivery-box-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-subtle);
}

.lg-delivery-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(37, 99, 235, 0.12);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.lg-delivery-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  padding: 16px;
  align-items: stretch;
}

.lg-delivery-opt-card {
  border: 1px solid var(--border-color);
  border-radius: 11px;
  padding: 13px 14px;
  background: var(--bg-card);
}

.lg-delivery-opt-card h4 {
  font-size: 13.8px;
  font-weight: 800;
  color: var(--primary);
  margin: 0 0 5px;
}

.lg-delivery-opt-card p {
  font-size: 13.3px;
  line-height: 1.55;
  color: var(--text-secondary);
  margin: 0;
}

.lg-delivery-or {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-muted);
}

.lg-delivery-or::before,
.lg-delivery-or::after {
  content: '';
  width: 1px;
  flex: 1;
  background: var(--border-color);
}

/* FAQ Accordion */
.lg-faq-list {
  border: 1px solid var(--border-color);
  border-radius: 14px;
  overflow: hidden;
}

.lg-faq-item {
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-card);
}

.lg-faq-item:last-child {
  border-bottom: none;
}

.lg-faq-item summary {
  padding: 13px 16px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  transition: background 0.15s ease;
}

.lg-faq-item summary::-webkit-details-marker {
  display: none;
}

.lg-faq-item summary:hover {
  background: var(--bg-subtle);
}

.lg-faq-item summary i {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
  transition: transform 0.2s ease, color 0.2s ease;
}

.lg-faq-item[open] summary i {
  transform: rotate(90deg);
  color: var(--primary);
}

.lg-faq-item .lg-faq-answer {
  padding: 0 16px 14px 38px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-secondary);
}

/* Right Sticky Buy Box (#hop-mua) */
.lg-buy-box {
  position: sticky;
  top: 84px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.lg-buy-head {
  padding: 15px 18px;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border-color);
}

.lg-buy-kicker {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 3px;
}

.lg-buy-kicker strong {
  color: var(--text-main);
}

.lg-buy-price {
  font-size: 26px;
  font-weight: 900;
  color: var(--text-main);
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
  margin: 0;
}

.lg-buy-subprice {
  font-size: 12.5px;
  color: var(--text-muted);
  margin: 4px 0 0;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.lg-buy-body {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.lg-buy-label {
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin: 0 0 8px;
}

.lg-plan-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.lg-plan-option {
  position: relative;
  border: 1.5px solid var(--border-color);
  border-radius: 11px;
  background: var(--bg-card);
  padding: 9px 26px 9px 11px;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 3px;
  transition: all 0.16s ease;
  font-family: inherit;
}

.lg-plan-option:hover {
  border-color: var(--primary);
}

.lg-plan-option.active {
  border-color: var(--primary);
  background: rgba(79, 70, 229, 0.06);
  box-shadow: 0 0 0 1px var(--primary);
}

.lg-plan-check {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 9.5px;
  display: none;
  align-items: center;
  justify-content: center;
}

.lg-plan-option.active .lg-plan-check {
  display: inline-flex;
}

.lg-plan-title {
  font-size: 12.8px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.25;
}

.lg-plan-price {
  font-size: 12.3px;
  font-weight: 700;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

.lg-plan-option.active .lg-plan-price {
  color: var(--primary);
}

@media (max-width: 991px) {
  .lg-pd-grid {
    grid-template-columns: 1fr;
  }
  .lg-buy-box {
    position: static;
  }
}

@media (max-width: 640px) {
  .lg-pd-hero-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .lg-pd-artwork {
    width: 128px;
  }
  .lg-pd-h1 {
    font-size: 22px;
  }
  .lg-pd-notes-grid,
  .lg-pd-quick-specs,
  .lg-pd-highlights-grid,
  .lg-delivery-grid {
    grid-template-columns: 1fr;
  }
  .lg-delivery-or {
    flex-direction: row;
  }
  .lg-delivery-or::before,
  .lg-delivery-or::after {
    height: 1px;
    width: auto;
  }
}

/* ==========================================================================
   SHOPPING CART VIEW & LANGUAGE TOGGLE BUTTON
   ========================================================================== */
.header-lang-toggle {
  height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #f8fafc;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 800;
  font-family: inherit;
  letter-spacing: 0.04em;
  transition: all 0.22s ease;
  flex-shrink: 0;
}

.header-lang-toggle:hover {
  background: rgba(6, 182, 212, 0.25);
  border-color: #22d3ee;
  color: #22d3ee;
  transform: translateY(-1px);
}

.btn-cart-highlight {
  border-color: rgba(6, 182, 212, 0.45) !important;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.18), rgba(79, 70, 229, 0.22)) !important;
}

.btn-cart-highlight:hover {
  border-color: #22d3ee !important;
  box-shadow: 0 0 16px rgba(6, 182, 212, 0.35);
}

.cart-layout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 22px;
  align-items: start;
}

.cart-items-card,
.cart-summary-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
}

.cart-summary-card {
  position: sticky;
  top: 84px;
}

.cart-item-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-color);
}

.cart-item-row:first-child {
  padding-top: 4px;
}

.cart-item-row:last-child {
  border-bottom: none;
  padding-bottom: 4px;
}

.cart-item-thumb {
  width: 96px;
  aspect-ratio: 16 / 11;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: var(--bg-subtle);
  cursor: pointer;
}

.cart-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cart-item-title {
  font-size: 15.5px;
  font-weight: 800;
  color: var(--text-main);
  margin: 0 0 5px;
  cursor: pointer;
  line-height: 1.35;
}

.cart-item-title:hover {
  color: var(--primary);
}

.cart-qty-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-subtle);
}

.cart-qty-btn {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: var(--text-main);
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.cart-qty-btn:hover {
  background: rgba(79, 70, 229, 0.12);
  color: var(--primary);
}

.cart-qty-input {
  width: 42px;
  height: 32px;
  border: none;
  border-left: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-main);
  text-align: center;
  font-weight: 800;
  font-size: 13.5px;
  font-family: inherit;
}

.cart-empty-state {
  text-align: center;
  padding: 52px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 22px;
  box-shadow: var(--shadow-sm);
}

@media (max-width: 991px) {
  .cart-layout-grid {
    grid-template-columns: 1fr;
  }
  .cart-summary-card {
    position: static;
  }
}

@media (max-width: 640px) {
  .cart-item-row {
    grid-template-columns: 78px minmax(0, 1fr);
  }
  .cart-item-actions {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 8px;
  }
}

/* Live CSKH chat */
.support-widget {
  position: fixed;
  right: 20px;
  bottom: 72px;
  z-index: 1680;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
body.admin-mode-active .support-widget { display: none !important; }
.support-launcher {
  position: relative;
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #4f46e5, #0891b2);
  color: #fff;
  box-shadow: 0 10px 24px rgba(79, 70, 229, 0.35);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.support-launcher::after {
  content: "";
  position: absolute;
  inset: -10px;
  border: 1px solid rgba(99, 102, 241, 0.55);
  border-radius: 50%;
  z-index: -1;
  animation: zoomPulse 2s linear infinite;
}
.support-launcher-label {
  position: absolute;
  right: 64px;
  background: var(--bg-card);
  color: var(--primary);
  border: 1px solid var(--border-glow);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: var(--shadow-md);
}
.support-dot {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #e11d48;
  border: 2px solid #fff;
}
.support-panel {
  width: min(380px, calc(100vw - 24px));
  height: min(520px, calc(100vh - 220px));
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.28);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.support-panel[hidden] { display: none !important; }
.support-chooser {
  width: min(280px, calc(100vw - 24px));
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.28);
  overflow: hidden;
}
.support-chooser[hidden] { display: none !important; }
.support-choice {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 0;
  border-bottom: 1px solid var(--border-color);
  background: transparent;
  color: inherit;
  text-decoration: none;
  text-align: left;
  font: inherit;
  cursor: pointer;
}
.support-choice:last-child { border-bottom: 0; }
.support-choice:hover { background: rgba(79, 70, 229, 0.06); }
.support-choice i {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(79, 70, 229, 0.12);
  color: var(--primary);
  flex-shrink: 0;
}
.support-choice strong { display: block; font-size: 14px; }
.support-choice small { display: block; margin-top: 2px; color: var(--text-muted); font-size: 12px; }
.support-choice .support-dot { top: 14px; right: 12px; }
.support-head-actions { display: flex; align-items: center; gap: 4px; }
.support-head-zalo {
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  padding: 4px 8px;
  white-space: nowrap;
}
.support-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  background: linear-gradient(135deg, #4f46e5, #0891b2);
  color: #fff;
}
.support-head strong { display: block; font-size: 15px; }
.support-head p { margin: 2px 0 0; font-size: 12px; opacity: 0.9; }
.support-close {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  width: 32px;
  height: 32px;
}
.support-messages {
  flex: 1;
  overflow: auto;
  padding: 12px;
  background: var(--bg-subtle);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.support-bubble {
  max-width: 86%;
  padding: 8px 10px;
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}
.support-bubble.is-customer {
  margin-left: auto;
  background: #4f46e5;
  color: #fff;
  border-bottom-right-radius: 4px;
}
.support-bubble.is-shop {
  margin-right: auto;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  border-bottom-left-radius: 4px;
}
.support-bubble time {
  display: block;
  margin-top: 4px;
  font-size: 10.5px;
  opacity: 0.75;
}
.support-empty {
  margin: auto;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.5;
}
.support-start, .support-form { padding: 8px 10px 0; display: grid; gap: 6px; }
.support-form { padding-bottom: 10px; grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
.support-label { font-size: 11.5px; font-weight: 800; color: var(--text-muted); }
.support-input {
  width: 100%;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-main);
  border-radius: 10px;
  padding: 8px 10px;
  font: inherit;
  font-size: 13.5px;
  resize: none;
}
.support-send {
  border: 0;
  border-radius: 10px;
  background: #4f46e5;
  color: #fff;
  font: inherit;
  font-weight: 800;
  font-size: 13px;
  padding: 9px 12px;
  cursor: pointer;
  height: 40px;
}
.support-quick { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 10px 0; }
.support-chip {
  border: 1px solid var(--border-color);
  background: var(--bg-subtle);
  color: var(--text-main);
  border-radius: 999px;
  padding: 4px 8px;
  font: inherit;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
}
.support-admin {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 14px;
  min-height: 560px;
}
.support-admin-list, .support-admin-main {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  min-height: 520px;
  display: flex;
  flex-direction: column;
}
.support-admin-list { overflow: auto; max-height: 70vh; }
.support-admin-item {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  border-bottom: 1px solid var(--border-color);
  background: transparent;
  color: inherit;
  padding: 12px 14px;
  cursor: pointer;
  font: inherit;
}
.support-admin-item.is-active { background: rgba(79, 70, 229, 0.08); }
.support-admin-item strong { display: block; font-size: 13.5px; }
.support-admin-item span { display: block; color: var(--text-muted); font-size: 12px; margin-top: 3px; }
.support-admin-thread { flex: 1; overflow: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; max-height: 48vh; background: var(--bg-subtle); }
.support-admin-reply { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 12px; border-top: 1px solid var(--border-color); }
@media (max-width: 860px) {
  .support-admin { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .support-widget { right: 14px; bottom: 92px; }
  .support-launcher { width: 48px; height: 48px; font-size: 18px; }
  .support-launcher-label { display: none; }
  .support-panel { height: min(68vh, 520px); }
}

/* Mực & Nghệ — storefront identity. Later duplicate rules above stay indigo unless overridden here. */
::selection {
  background: #f5c451;
  color: #1c1408;
}

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

.header-modern {
  background: #16110c;
  border-bottom: 2px solid #f5c451;
  box-shadow: 0 12px 28px -18px rgba(28, 20, 12, 0.7);
}

.logo-badge,
[data-theme="dark"] .logo-badge {
  background: #1c140c;
  color: #f5c451;
  border: 1px solid rgba(245, 196, 81, 0.72);
  box-shadow: 0 6px 16px rgba(28, 20, 12, 0.28);
}

.logo-mark {
  display: block;
}

.search-ai-icon {
  color: #f5c451;
}

.search-kbd-badge {
  color: #f5c451;
  background: rgba(245, 196, 81, 0.14);
  border-color: rgba(245, 196, 81, 0.4);
}

.header-search-form:focus-within {
  border-color: #f5c451;
  box-shadow: 0 0 0 3px rgba(245, 196, 81, 0.22);
}

.header-search-btn,
.header-btn-pill.btn-wallet-highlight {
  background: #f5c451;
  color: #1c1408;
  border-color: #e3a008;
  box-shadow: 0 2px 10px rgba(227, 160, 8, 0.32);
}

.header-search-btn:hover,
.header-btn-pill.btn-wallet-highlight:hover {
  background: #f8d48a;
  color: #1c1408;
}

.header-balance-chip {
  background: rgba(28, 20, 8, 0.16);
  color: #1c1408;
}

.navbar-modern-link:hover:not(.nav-zalo-pill),
.navbar-modern-link.active:not(.nav-zalo-pill) {
  background: #1c140c;
  color: #f5c451;
}

.navbar-modern-link:hover:not(.nav-zalo-pill) i,
.navbar-modern-link.active:not(.nav-zalo-pill) i {
  color: #f5c451;
}

[data-theme="dark"] .navbar-modern-link:hover:not(.nav-zalo-pill),
[data-theme="dark"] .navbar-modern-link.active:not(.nav-zalo-pill) {
  background: rgba(245, 196, 81, 0.14);
  color: #f5c451;
}

.navbar-modern-link.nav-zalo-pill,
[data-theme="dark"] .navbar-modern-link.nav-zalo-pill {
  background: rgba(0, 104, 255, 0.1);
  color: #0068ff;
}

.navbar-modern-link.nav-zalo-pill i,
[data-theme="dark"] .navbar-modern-link.nav-zalo-pill i {
  color: #0068ff;
}

[data-theme="dark"] .navbar-modern-link.nav-zalo-pill,
[data-theme="dark"] .navbar-modern-link.nav-zalo-pill i {
  color: #7cb3ff;
}

.category-sidebar-link.active {
  border-color: rgba(154, 52, 18, 0.28);
}

.sidebar-promo-banner {
  background:
    radial-gradient(140px 90px at 100% 0%, rgba(245, 196, 81, 0.3), transparent 70%),
    #1c140c;
  border: 1px solid rgba(245, 196, 81, 0.28);
}

.sidebar-glow-orb {
  background: radial-gradient(circle, rgba(245, 196, 81, 0.45) 0%, transparent 70%);
}

.sidebar-promo-tag {
  background: rgba(245, 196, 81, 0.14);
  border-color: rgba(245, 196, 81, 0.45);
  color: #f5c451;
}

.sidebar-promo-features li i {
  color: #f5c451;
}

.sidebar-promo-btn,
.sidebar-promo-btn:hover {
  background: #f5c451;
  color: #1c1408 !important;
}

.sidebar-promo-btn:hover {
  background: #f8d48a;
}

.hero-bg-indigo {
  background:
    radial-gradient(90% 80% at 100% 0%, rgba(245, 196, 81, 0.4) 0%, transparent 52%),
    linear-gradient(155deg, #1c140c 0%, #3a2414 58%, #9a3412 100%);
}

.hero-bg-violet {
  background:
    radial-gradient(90% 80% at 100% 0%, rgba(134, 239, 172, 0.3) 0%, transparent 50%),
    linear-gradient(155deg, #0c1612 0%, #143026 58%, #1f4d38 100%);
}

.hero-bg-cyan {
  background:
    radial-gradient(90% 80% at 100% 0%, rgba(251, 146, 60, 0.34) 0%, transparent 52%),
    linear-gradient(155deg, #10141c 0%, #1b2433 55%, #3f2a22 100%);
}

.hero-model-chips span i {
  color: #f5c451;
}

.hero-slide-cta,
.hero-slide-cta:hover {
  background: #f5c451;
  color: #1c1408;
  box-shadow: 0 6px 16px rgba(227, 160, 8, 0.28);
}

.slider-dot.active {
  background: #f5c451;
}

.bento-card-purple {
  background: radial-gradient(circle at 100% 0%, rgba(245, 196, 81, 0.34), transparent 58%), #1c140c;
}

.bento-card-cyan {
  background: radial-gradient(circle at 100% 0%, rgba(52, 211, 153, 0.3), transparent 58%), #10211a;
}

.bento-card-indigo {
  background: radial-gradient(circle at 100% 0%, rgba(251, 146, 60, 0.32), transparent 58%), #17130f;
}

.bento-card-emerald {
  background: radial-gradient(circle at 100% 0%, rgba(245, 196, 81, 0.22), transparent 58%), #14241c;
}

.btn-category-home.active {
  background: #1c140c;
  color: #f6f1e8;
  border-color: #1c140c;
}

.product-card-modern:not(.product-disable):hover,
.product-card-modern.lg-card:hover {
  border-color: rgba(227, 160, 8, 0.55);
}

.badge-pro {
  background: #1c140c;
  color: #f5c451;
  box-shadow: none;
}

.product-card-price-current,
.lg-card-price-val,
.lg-buy-price,
.pd-price {
  background: none;
  background-clip: border-box;
  -webkit-background-clip: border-box;
  -webkit-text-fill-color: #9a3412;
  color: #9a3412;
}

.product-card-buy-btn,
.btn-primary,
.lg-card-btn-buy {
  background: #1c140c;
  color: #f6f1e8;
  border-color: #1c140c;
  box-shadow: none;
}

.product-card-buy-btn:hover:not(:disabled),
.btn-primary:hover:not(:disabled),
.lg-card-btn-buy:hover:not(:disabled) {
  background: #f5c451;
  color: #1c1408;
  border-color: #e3a008;
  box-shadow: 0 6px 16px rgba(227, 160, 8, 0.28);
  filter: none;
}

.lg-card-btn-cart {
  border-color: rgba(154, 52, 18, 0.35);
  background: rgba(154, 52, 18, 0.08);
}

.lg-card-btn-cart:hover:not(:disabled) {
  background: #1c140c;
  color: #f6f1e8;
  border-color: #1c140c;
  box-shadow: none;
}

.lg-card-btn-detail:hover {
  background: rgba(154, 52, 18, 0.08);
}

.lg-buy-box {
  border-top: 3px solid #f5c451;
}

.lg-plan-option.active {
  background: rgba(154, 52, 18, 0.08);
}

.lg-pd-tab-btn.active {
  box-shadow: none;
}

[data-theme="dark"] .product-card-price-current,
[data-theme="dark"] .lg-card-price-val,
[data-theme="dark"] .lg-buy-price,
[data-theme="dark"] .pd-price {
  -webkit-text-fill-color: #f5c451;
  color: #f5c451;
}

[data-theme="dark"] .btn-category-home.active,
[data-theme="dark"] .product-card-buy-btn,
[data-theme="dark"] .btn-primary,
[data-theme="dark"] .lg-card-btn-buy,
[data-theme="dark"] .lg-pd-tab-btn.active,
[data-theme="dark"] .lg-plan-check,
[data-theme="dark"] .category-sidebar-link.active .category-count-pill,
[data-theme="dark"] .admin-nav-btn.active .admin-nav-badge {
  background: #f5c451;
  color: #1c1408;
  border-color: #e3a008;
}

[data-theme="dark"] .product-card-buy-btn:hover:not(:disabled),
[data-theme="dark"] .btn-primary:hover:not(:disabled),
[data-theme="dark"] .lg-card-btn-buy:hover:not(:disabled),
[data-theme="dark"] .lg-card-btn-cart:hover:not(:disabled) {
  background: #f8d48a;
  color: #1c1408;
  border-color: #f5c451;
}

[data-theme="dark"] .lg-card-btn-cart {
  border-color: rgba(245, 196, 81, 0.4);
  background: rgba(245, 196, 81, 0.1);
  color: #f5c451;
}

[data-theme="dark"] .lg-card-btn-detail:hover,
[data-theme="dark"] .lg-plan-option.active {
  background: rgba(245, 196, 81, 0.1);
}

.footer-part {
  background: #1c140c;
  color: #f6f1e8;
  border-top: 2px solid #f5c451;
}

.footer-part .logo-badge {
  background: #f5c451;
  border-color: #e3a008;
}

.logo-mark.logo-wolf-mark {
  width: 28px;
  height: 28px;
}

.footer-part .logo-mark path {
  stroke: none;
}

.footer-brand-name {
  display: block;
  font-size: 18px;
  font-weight: 800;
  color: #f6f1e8;
}

.footer-brand-kicker,
.footer-part .footer-title {
  color: #f5c451;
}

.footer-brand-kicker {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 700;
}

.footer-desc,
.footer-part .footer-contact li,
.footer-part .footer-links li,
.footer-part .footer-contact a,
.footer-part .footer-links a {
  color: #e7d7c3;
}

.footer-desc {
  font-size: 14px;
  line-height: 1.6;
}

.footer-part .footer-links a:hover,
.footer-part .footer-contact a:hover {
  color: #f5c451;
}

.footer-part .footer-bottom {
  color: #b7a48a;
  border-top-color: rgba(245, 196, 81, 0.22);
}

.support-launcher {
  background: #1c140c;
  color: #f5c451;
  border: 1px solid #f5c451;
  box-shadow: 0 10px 24px rgba(28, 20, 12, 0.35);
}

.support-launcher::after {
  border-color: rgba(245, 196, 81, 0.7);
}

.support-launcher-label {
  color: #1c140c;
  border-color: rgba(227, 160, 8, 0.45);
}

[data-theme="dark"] .support-launcher-label {
  color: #f5c451;
  background: #1a1612;
}

.footer-part i {
  color: #f5c451;
}

.support-head {
  background: #1c140c;
  color: #f6f1e8;
  border-bottom: 2px solid #f5c451;
}

.support-choice:hover,
.support-admin-item.is-active,
.cart-qty-btn:hover {
  background: rgba(154, 52, 18, 0.08);
  color: var(--primary);
}

.support-choice i {
  background: rgba(245, 196, 81, 0.18);
  color: #9a3412;
}

[data-theme="dark"] .support-choice i {
  color: #f5c451;
}

.support-bubble.is-customer,
.support-send {
  background: #1c140c;
  color: #f6f1e8;
}

.support-send {
  background: #f5c451;
  color: #1c1408;
}

.maintenance-screen {
  background:
    radial-gradient(900px 420px at 12% -10%, rgba(245, 196, 81, 0.28), transparent 55%),
    radial-gradient(680px 360px at 100% 110%, rgba(154, 52, 18, 0.38), transparent 50%),
    #1c140c;
}

.mnt-btn-solid {
  background: #1c140c;
  border-color: #1c140c;
  color: #f6f1e8;
}

.admin-chart-bar-wrap {
  background: rgba(154, 52, 18, 0.08);
}

.admin-chart-bar-fill {
  background: linear-gradient(180deg, #f5c451 0%, #9a3412 100%);
}

.badge-vip-diamond {
  background: rgba(227, 160, 8, 0.16);
  border-color: rgba(227, 160, 8, 0.4);
}

.cred-box {
  background: #1c140c;
  border-color: rgba(245, 196, 81, 0.4);
  color: #f5c451;
}

/* Layout and motion: full-width stage, promise rail, staggered catalog. */
@keyframes cardRise {
  from { opacity: 0; translate: 0 16px; }
  to { opacity: 1; translate: 0 0; }
}

@keyframes heroCopy {
  from { opacity: 0; translate: 0 12px; }
  to { opacity: 1; translate: 0 0; }
}

@keyframes meshDrift {
  from { transform: scale(1.08); }
  to { transform: scale(1) translate3d(-1.5%, -1%, 0); }
}

@keyframes slideMeter {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.55); }
  70% { box-shadow: 0 0 0 7px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.home-promise-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.home-promise-rail li {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 12px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  animation: cardRise 0.55s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.home-promise-rail li:nth-child(2) { animation-delay: 0.06s; }
.home-promise-rail li:nth-child(3) { animation-delay: 0.12s; }
.home-promise-rail li:nth-child(4) { animation-delay: 0.18s; }

.home-promise-rail i {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #1c140c;
  color: #f5c451;
}

.home-promise-rail strong,
.home-promise-rail small {
  display: block;
}

.home-promise-rail strong {
  font-size: 13px;
  line-height: 1.3;
}

.home-promise-rail small {
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 11.5px;
  line-height: 1.35;
}

@media (min-width: 992px) {
  .shop-layout-grid {
    grid-template-columns: 252px minmax(0, 1fr);
    gap: 26px;
  }

  .category-sidebar-desktop {
    position: sticky;
    top: 78px;
    max-height: calc(100vh - 94px);
    overflow: auto;
    padding-right: 2px;
  }

  .home-banner-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 22px;
  }

  .banner-top-grid,
  #sideBannersCol,
  #bottomBannersGrid {
    display: contents;
  }

  .hero-slider-wrapper {
    grid-column: 1 / -1;
    min-height: 320px;
  }

  .filter-bar-wrapper {
    position: sticky;
    top: 72px;
    z-index: 20;
    margin-bottom: 16px;
    padding: 8px 0;
    background: color-mix(in srgb, var(--bg-body) 90%, transparent);
    backdrop-filter: blur(12px);
  }
}

.category-sidebar-link {
  position: relative;
}

.category-sidebar-link.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 99px;
  background: #f5c451;
}

.hero-slider-wrapper {
  border-color: rgba(245, 196, 81, 0.28);
}

.hero-slide {
  overflow: hidden;
}

.hero-slide::after {
  content: "S";
  position: absolute;
  right: 3%;
  bottom: -28px;
  z-index: 1;
  font-size: 188px;
  font-weight: 800;
  line-height: 0.8;
  letter-spacing: -0.08em;
  color: rgba(245, 196, 81, 0.14);
  pointer-events: none;
}

.hero-mesh-overlay {
  z-index: 0;
}

.hero-slide.active .hero-mesh-overlay {
  animation: meshDrift 7s ease-out both;
}

.hero-slide-content {
  z-index: 2;
  max-width: 680px;
}

.hero-slide.active {
  animation: heroFade 0.35s ease;
}

@keyframes heroFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.hero-slide.active .hero-slide-badge,
.hero-slide.active h2,
.hero-slide.active p,
.hero-slide.active .hero-model-chips,
.hero-slide.active .hero-slide-cta {
  animation: heroCopy 0.55s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-slide.active h2 { animation-delay: 0.06s; }
.hero-slide.active p { animation-delay: 0.12s; }
.hero-slide.active .hero-model-chips { animation-delay: 0.18s; }
.hero-slide.active .hero-slide-cta { animation-delay: 0.24s; }

.slider-dot.active {
  position: relative;
  overflow: hidden;
  width: 36px;
  background: rgba(255, 255, 255, 0.28);
}

.slider-dot.active::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 100%;
  background: #f5c451;
  transform-origin: left center;
  animation: slideMeter 4.5s linear;
}

.mini-promo-card {
  min-height: 148px;
  animation: cardRise 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

#sideBannersCol .mini-promo-card:nth-child(2),
#bottomBannersGrid .mini-promo-card:nth-child(1) { animation-delay: 0.08s; }
#bottomBannersGrid .mini-promo-card:nth-child(2) { animation-delay: 0.14s; }

.mini-action-link i {
  transition: translate 0.2s ease;
}

.mini-promo-card:hover .mini-action-link i {
  translate: 4px 0;
}

.home-heading {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border-color);
  border-radius: 0;
  box-shadow: none;
  padding: 0 0 10px;
  position: relative;
}

.home-heading::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 64px;
  height: 2px;
  background: #f5c451;
}

@media (min-width: 992px) {
  .product-grid-modern {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.product-grid-modern > .product-card-modern {
  animation: cardRise 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.product-grid-modern > .product-card-modern:nth-child(2) { animation-delay: 0.04s; }
.product-grid-modern > .product-card-modern:nth-child(3) { animation-delay: 0.08s; }
.product-grid-modern > .product-card-modern:nth-child(4) { animation-delay: 0.12s; }
.product-grid-modern > .product-card-modern:nth-child(5) { animation-delay: 0.16s; }
.product-grid-modern > .product-card-modern:nth-child(6) { animation-delay: 0.2s; }
.product-grid-modern > .product-card-modern:nth-child(n + 7) { animation-delay: 0.24s; }

.product-card-modern.lg-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 38%, rgba(245, 196, 81, 0.2) 50%, transparent 62%);
  transform: translateX(-130%);
}

.product-card-modern.lg-card:hover::before {
  transform: translateX(130%);
  transition: transform 0.75s ease;
}

.recent-activity-grid {
  grid-template-columns: 1fr 1fr;
  gap: 0 18px;
  margin-top: 28px;
  padding: 16px 16px 6px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  background:
    linear-gradient(180deg, rgba(245, 196, 81, 0.16), transparent 92px),
    var(--bg-card);
  box-shadow: var(--shadow-sm);
}

.activity-stage-head {
  grid-column: 1 / -1;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}

.activity-stage-head h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
}

.activity-stage-head p {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
}

.activity-box {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 12px 2px 8px;
}

.pulse-dot {
  animation: livePulse 1.8s ease-out infinite;
}

@media (max-width: 991px) {
  .home-promise-rail {
    grid-template-columns: 1fr 1fr;
  }

  .recent-activity-grid {
    grid-template-columns: 1fr;
  }

  .activity-stage-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .custom-button-list {
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    padding-bottom: 6px;
  }

  .btn-category-home {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }
}

@media (max-width: 640px) {
  .home-promise-rail {
    grid-template-columns: 1fr;
  }

  .hero-slide::after {
    display: none;
  }

  .hero-slide {
    padding: 24px 18px 46px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-promise-rail li,
  .mini-promo-card,
  .hero-slide.active,
  .hero-slide.active .hero-slide-badge,
  .hero-slide.active h2,
  .hero-slide.active p,
  .hero-slide.active .hero-model-chips,
  .hero-slide.active .hero-slide-cta,
  .hero-slide.active .hero-mesh-overlay,
  .slider-dot.active::after,
  .product-grid-modern > .product-card-modern,
  .pulse-dot {
    animation: none;
  }
}

/* ==========================================================================
   EDITORIAL ATELIER & PRECISION RESPONSIVE SYSTEM (1440px DESKTOP / 390px MOBILE)
   Eliminates generic template artifacts, unifies Ink & Gold surfaces, and
   optimizes layout geometry for 1440px widescreen and 390px mobile viewports.
   ========================================================================== */

html,
body {
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* 1. Remove legacy floating template clutter (#top-menu-right & duplicate #linkzalo)
      #supportWidget already provides both Live Web Chat and direct Zalo access */
#top-menu-right,
#linkzalo {
  display: none !important;
}

/* Hide decorative neon blobs so warm paper / carbon background stays architectural */
.ai-ambient-bg {
  opacity: 0.32;
  pointer-events: none;
}

/* 2. Unified Editorial Color & Surface Overrides (Zero leftover Indigo/Cyan/Pink) */
.category-sidebar-card {
  border-radius: 18px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.category-sidebar-header {
  background:
    radial-gradient(160px 80px at 100% 0%, rgba(245, 196, 81, 0.24), transparent 70%),
    #16110c;
  padding: 15px 18px;
  border-bottom: 1px solid rgba(245, 196, 81, 0.35);
}

.category-sidebar-title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #f6f1e8;
  display: flex;
  align-items: center;
  gap: 9px;
}

.category-sidebar-title i {
  color: #f5c451;
  font-size: 15px;
}

.category-sidebar-list {
  padding: 8px;
}

.category-sidebar-link {
  padding: 10px 12px;
  border-radius: 11px;
  font-size: 13.5px;
  font-weight: 650;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.category-sidebar-link.active {
  background: rgba(245, 196, 81, 0.15);
  color: var(--text-main);
  border-color: rgba(227, 160, 8, 0.42);
  font-weight: 800;
}

.category-sidebar-link.active .category-count-pill {
  background: #16110c;
  color: #f5c451;
}

/* Header buttons & badges unified in Ink & Sovereign Gold */
.header-btn-pill.btn-cart-highlight {
  background: rgba(245, 196, 81, 0.1);
  border-color: rgba(245, 196, 81, 0.36);
  color: #f6f1e8;
}

.header-btn-pill.btn-cart-highlight:hover,
.header-lang-toggle:hover {
  background: rgba(245, 196, 81, 0.2);
  border-color: #f5c451;
  color: #f5c451;
  box-shadow: 0 4px 14px rgba(245, 196, 81, 0.18);
}

.cart-count-badge {
  background: #f5c451;
  color: #16110c;
  font-weight: 900;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.ai-version-pill {
  background: rgba(245, 196, 81, 0.16);
  color: #f5c451;
  border: 1px solid rgba(245, 196, 81, 0.45);
  box-shadow: none;
  letter-spacing: 0.06em;
}

/* Notice & Coupon chips unified */
.notice-home-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-left: 3px solid #f5c451;
  border-radius: 14px;
  padding: 11px 16px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-xs);
}

.notice-badge {
  background: #16110c;
  color: #f5c451;
  border-radius: 7px;
  padding: 4px 10px;
  font-size: 11.5px;
  letter-spacing: 0.03em;
  box-shadow: none;
}

.coupon-pill,
.coupon-chip-mini {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(245, 196, 81, 0.14);
  color: #9a3412;
  border: 1px dashed rgba(180, 83, 9, 0.45);
  padding: 3px 9px;
  border-radius: 7px;
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.16s ease;
}

.coupon-pill:hover,
.coupon-chip-mini:hover {
  background: #f5c451;
  color: #16110c;
  border-style: solid;
  border-color: #e3a008;
  transform: translateY(-1px);
}

[data-theme="dark"] .coupon-pill,
[data-theme="dark"] .coupon-chip-mini {
  background: rgba(245, 196, 81, 0.12);
  color: #f5c451;
  border-color: rgba(245, 196, 81, 0.4);
}

[data-theme="dark"] .coupon-pill:hover,
[data-theme="dark"] .coupon-chip-mini:hover {
  background: #f5c451;
  color: #16110c;
}

/* Section heading & icon badge */
.home-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--border-color);
}

.home-heading h3 {
  font-size: 17.5px;
  font-weight: 800;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-icon-badge {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: #16110c;
  color: #f5c451;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  box-shadow: 0 3px 8px rgba(28, 20, 12, 0.16);
}

[data-theme="dark"] .section-icon-badge {
  background: rgba(245, 196, 81, 0.14);
  border: 1px solid rgba(245, 196, 81, 0.32);
  color: #f5c451;
}

/* 3. Editorial Product Card Refinement (.product-card-modern.lg-card) */
.product-card-modern.lg-card {
  border-radius: 16px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  box-shadow: 0 2px 6px rgba(24, 18, 10, 0.04);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s ease, border-color 0.22s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card-modern.lg-card:hover {
  transform: translateY(-3px);
  border-color: rgba(227, 160, 8, 0.55);
  box-shadow: 0 14px 28px -12px rgba(24, 18, 10, 0.16);
}

.lg-card-media {
  aspect-ratio: 16 / 10;
  border-bottom: 1px solid var(--border-color);
  background: #120e0a;
}

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

.lg-card-title {
  font-size: 14.5px;
  font-weight: 800;
  line-height: 1.38;
  letter-spacing: -0.01em;
  min-height: 2.76em;
  margin: 0;
}

.lg-card-notes {
  margin: 2px 0 4px;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--bg-subtle);
  border: 1px solid color-mix(in srgb, var(--border-color) 70%, transparent);
  gap: 5px;
}

.lg-card-notes li {
  font-size: 12px;
  line-height: 1.38;
  color: var(--text-secondary);
}

.lg-card-notes li i {
  color: var(--primary);
}

.lg-card-price-row {
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px dashed var(--border-color);
}

.lg-card-price-val {
  font-size: 18.5px;
  font-weight: 900;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.lg-card-actions {
  display: grid;
  grid-template-columns: 1fr 38px 1.18fr;
  gap: 6px;
  margin-top: 6px;
}

.lg-card-btn-detail,
.lg-card-btn-cart,
.lg-card-btn-buy {
  height: 36px;
  border-radius: 9px;
  font-size: 12.2px;
  font-weight: 800;
}

/* Store Pulse / Recent Activity Ledger */
.feature-card {
  background: var(--bg-subtle);
  border: 1px solid color-mix(in srgb, var(--border-color) 80%, transparent);
  border-radius: 11px;
  padding: 9px 12px;
  margin-bottom: 7px;
  font-size: 12.8px;
  transition: border-color 0.16s ease, background 0.16s ease;
}

.feature-card:hover {
  border-color: rgba(227, 160, 8, 0.45);
  background: var(--bg-card);
}

.time-badge {
  background: rgba(28, 20, 12, 0.07);
  color: var(--text-secondary);
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 700;
}

[data-theme="dark"] .time-badge {
  background: rgba(245, 196, 81, 0.12);
  color: #f5c451;
}

/* 4. Quick Buy Modal (.qb-*) Editorial & Responsive Styling */
.qb-hero-grid {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  gap: 16px;
  margin-bottom: 16px;
  align-items: center;
}

.qb-hero-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: #120e0a;
}

.qb-warranty-pill {
  font-size: 11.5px;
  background: rgba(5, 150, 105, 0.12);
  color: var(--success);
  padding: 3px 9px;
  border-radius: 6px;
  font-weight: 700;
}

.qb-product-title {
  font-size: 17.5px;
  font-weight: 800;
  margin: 0 0 6px;
  line-height: 1.32;
  color: var(--text-main);
}

.qb-price-now {
  font-size: 21px;
  font-weight: 900;
  color: var(--danger);
  font-variant-numeric: tabular-nums;
}

[data-theme="dark"] .qb-price-now {
  color: #f5c451;
}

.qb-stock-tag {
  font-size: 12.5px;
  color: var(--text-secondary);
  font-weight: 700;
}

.qb-notes-box {
  background: var(--bg-subtle);
  padding: 12px 15px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  margin-bottom: 16px;
}

.qb-notes-title {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
}

.qb-notes-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 14px;
}

.qb-notes-grid li {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--text-secondary);
}

.qb-notes-grid li i {
  color: var(--primary);
  margin-top: 3px;
  font-size: 11px;
  flex-shrink: 0;
}

.qb-controls-grid {
  display: grid;
  grid-template-columns: minmax(140px, 0.85fr) minmax(0, 1.35fr);
  gap: 14px;
  margin-bottom: 16px;
}

.qb-pay-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.qb-channel-notice {
  border-radius: 12px;
  padding: 13px 15px;
  margin-bottom: 14px;
  font-size: 13px;
  line-height: 1.5;
  border: 1px solid var(--border-color);
  background: var(--bg-subtle);
}

.qb-channel-notice-head {
  font-weight: 800;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.qb-channel-notice-body {
  margin-bottom: 10px;
}

.qb-channel-usdt {
  background: rgba(245, 196, 81, 0.12);
  border-color: rgba(227, 160, 8, 0.45);
  color: var(--text-main);
}

.qb-channel-usdt .qb-channel-notice-head {
  color: #b45309;
}

[data-theme="dark"] .qb-channel-usdt .qb-channel-notice-head {
  color: #f5c451;
}

.qb-channel-qr {
  background: rgba(5, 150, 105, 0.08);
  border-color: rgba(5, 150, 105, 0.3);
  color: var(--text-main);
}

.qb-channel-qr .qb-channel-notice-head {
  color: var(--success);
}

.qb-channel-wallet {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-subtle);
  border-color: var(--border-color);
  color: var(--text-secondary);
}

.qb-channel-wallet > i {
  font-size: 20px;
  color: var(--primary);
  flex-shrink: 0;
}

.qb-summary-bar {
  background: #16110c;
  color: #f6f1e8;
  border: 1px solid rgba(245, 196, 81, 0.35);
  padding: 14px 18px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.qb-summary-sub {
  font-size: 12.5px;
  color: #cbbba6;
}

.qb-summary-main {
  font-size: 19px;
  font-weight: 900;
  color: #f5c451;
  font-variant-numeric: tabular-nums;
}

.qb-summary-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.qb-btn-addcart {
  background: rgba(255, 255, 255, 0.08);
  color: #f6f1e8;
  border-color: rgba(245, 196, 81, 0.35);
  padding: 11px 15px;
}

.qb-btn-addcart:hover {
  background: rgba(245, 196, 81, 0.18);
  color: #f5c451;
  border-color: #f5c451;
}

.qb-btn-submit {
  background: #f5c451;
  color: #16110c;
  border-color: #e3a008;
  padding: 11px 18px;
  font-size: 14.5px;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(227, 160, 8, 0.28);
}

.qb-btn-submit:hover {
  background: #f8d48a;
  color: #16110c;
}

/* 5. Desktop 1440px Editorial Bento & Balanced Stage */
@media (min-width: 1200px) {
  .container {
    max-width: 1360px;
    padding-left: 28px;
    padding-right: 28px;
  }

  .shop-layout-grid {
    grid-template-columns: 266px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
  }

  /* Restore true asymmetric Editorial Bento on wide desktop instead of flat 2-col */
  .home-banner-section {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 24px;
  }

  .banner-top-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.62fr) minmax(290px, 1fr);
    gap: 14px;
    align-items: stretch;
  }

  #sideBannersCol {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  #sideBannersCol .mini-promo-card {
    flex: 1;
    min-height: 158px;
  }

  #bottomBannersGrid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .hero-slider-wrapper {
    grid-column: auto;
    min-height: 332px;
  }

  .product-grid-modern {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }
}

/* 6. LicenseGo Mobile Architecture (Optimized for <= 768px / 390px iPhone viewport) */

/* Default Desktop Visibility for Mobile-Only LicenseGo Elements */
.lg-mobile-catalog-btn,
.lg-catalog-sheet-overlay,
.lg-sec-accent-bar,
.lg-sec-title-short,
.lg-see-all-btn,
.lg-card-from-label,
.lg-card-plan-sub {
  display: none;
}

.home-heading-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lg-sec-count-pill {
  font-size: 12.5px;
  color: var(--text-muted);
  font-weight: 700;
  background: var(--bg-subtle);
  padding: 4px 10px;
  border-radius: 999px;
}

.lg-card-price-block {
  margin-top: auto;
}

/* Prevent any grid/flex child from blowing out the viewport width */
.shop-layout-grid,
.shop-main-col,
.home-banner-section,
.banner-top-grid,
#sideBannersCol,
#bottomBannersGrid,
.filter-bar-wrapper,
.custom-button-list,
.category-section-block,
.home-heading,
.product-grid-modern,
.product-card-modern {
  min-width: 0;
  max-width: 100%;
}

.lg-card .product-card-image-wrapper {
  height: auto !important;
  aspect-ratio: 16 / 10;
}

@media (max-width: 991px) {
  .shop-layout-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

/* ==========================================================================
   LICENSEGO-DIGITAL.COM MOBILE LAYOUT + UNIFIED DESKTOP EDITORIAL PALETTE
   (Mực & Nghệ: Ink #16110c, Warm Alabaster #f6f1e8, Ivory #fffdf8, Gold #f5c451, Terracotta #9a3412)
   ========================================================================== */
@media (max-width: 768px) {
  .ai-ambient-bg,
  .promo-bar,
  .notice-home-card,
  .home-promise-rail,
  .home-banner-section,
  .filter-bar-wrapper,
  #liveOrderPopup {
    display: none !important;
  }

  .main-section {
    padding: 14px 0 78px;
  }

  .container {
    padding-left: 14px;
    padding-right: 14px;
    width: 100%;
    max-width: 100%;
  }

  /* 1. Sticky 2-Row Header — Unified with Desktop Ink (#16110c) & Sovereign Gold (#f5c451) */
  .header-modern,
  [data-theme="dark"] .header-modern {
    background: #16110c;
    border-bottom: 2px solid #f5c451;
    box-shadow: 0 10px 24px -14px rgba(28, 20, 12, 0.65);
    padding: 10px 0 11px;
  }

  .header-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 8px;
  }

  .header-logo-section {
    flex: 1 1 auto;
    min-width: 0;
  }

  .header-logo-link {
    gap: 9px;
    min-width: 0;
  }

  .logo-badge,
  [data-theme="dark"] .logo-badge {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: #1c140c;
    border: 1px solid rgba(245, 196, 81, 0.72);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.28);
    flex-shrink: 0;
  }

  .logo-mark {
    width: 20px;
    height: 20px;
  }

  .logo-mark .logo-bolt-path {
    fill: #ffffff !important;
    stroke: #ffffff !important;
  }

  .logo-mark .logo-spark-path {
    fill: #fde047 !important;
    stroke: none !important;
  }

  .logo-text-wrap {
    min-width: 0;
  }

  .logo-title,
  [data-theme="dark"] .logo-title {
    font-size: 15.5px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #f6f1e8;
    -webkit-text-fill-color: #f6f1e8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .ai-version-pill,
  .logo-subtitle {
    display: none !important;
  }

  /* Header Row 1 Right: Locale Pill [🌐 VN · VND · VI] + Theme Toggle in Ink & Gold */
  .header-user-cart {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .header-user-cart > .btn-wallet-highlight,
  #headerCartBtn,
  .header-user-cart > button[onclick*="orders"],
  #headerAuthBtn {
    display: none !important;
  }

  .header-lang-toggle,
  [data-theme="dark"] .header-lang-toggle {
    height: 35px;
    padding: 0 11px;
    border-radius: 10px;
    background: rgba(245, 196, 81, 0.12);
    border: 1px solid rgba(245, 196, 81, 0.38);
    color: #f6f1e8;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: none;
  }

  .header-lang-toggle i {
    color: #f5c451;
    font-size: 13px;
  }

  .header-lang-toggle:hover {
    background: rgba(245, 196, 81, 0.22);
    border-color: #f5c451;
    color: #f5c451;
    box-shadow: none;
  }

  .header-theme-toggle,
  .theme-toggle-btn,
  [data-theme="dark"] .header-theme-toggle {
    width: 35px;
    height: 35px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(245, 196, 81, 0.32);
    color: #f5c451;
    font-size: 13.5px;
  }

  /* Header Row 2: [☰ Danh mục / Catalog] + [🔍 Tìm kiếm sản phẩm...] */
  .header-search-section {
    order: 3;
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .lg-mobile-catalog-btn,
  [data-theme="dark"] .lg-mobile-catalog-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 39px;
    padding: 0 13px;
    border-radius: 10px;
    background: #f5c451;
    border: 1px solid #e3a008;
    color: #1c1408;
    font-family: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    flex-shrink: 0;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(227, 160, 8, 0.25);
  }

  .lg-mobile-catalog-btn i,
  [data-theme="dark"] .lg-mobile-catalog-btn i {
    font-size: 13.5px;
    color: #1c1408;
  }

  .header-search-form,
  [data-theme="dark"] .header-search-form {
    flex: 1;
    min-width: 0;
    height: 39px;
    padding: 0 12px;
    border-radius: 10px;
    background: rgba(255, 253, 248, 0.1);
    border: 1px solid rgba(245, 196, 81, 0.32);
    box-shadow: none;
  }

  .header-search-form:focus-within {
    background: rgba(28, 20, 12, 0.95);
    border-color: #f5c451;
    box-shadow: 0 0 0 3px rgba(245, 196, 81, 0.2);
  }

  .search-ai-icon {
    color: #f5c451;
    font-size: 13.5px;
    margin-right: 8px;
  }

  .header-search-input,
  [data-theme="dark"] .header-search-input {
    color: #f6f1e8;
    font-size: 13px;
    min-width: 0;
  }

  .header-search-input::placeholder {
    color: #cbbba6;
  }

  .header-search-btn {
    display: none;
  }

  /* 2. Mobile Catalog Drawer Sheet (#mobileCatalogSheet) */
  .lg-catalog-sheet-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2100;
    background: rgba(22, 17, 12, 0.6);
    backdrop-filter: blur(4px);
    align-items: flex-end;
    justify-content: center;
  }

  .lg-catalog-sheet-overlay.open {
    display: flex;
  }

  .lg-catalog-sheet-panel {
    width: 100%;
    max-height: 82vh;
    background: var(--bg-card);
    border-radius: 20px 20px 0 0;
    border-top: 2px solid #f5c451;
    box-shadow: 0 -12px 32px rgba(28, 20, 12, 0.28);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: cardRise 0.22s ease-out;
  }

  .lg-catalog-sheet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: #16110c;
    color: #f6f1e8;
    border-bottom: 1px solid rgba(245, 196, 81, 0.3);
    font-size: 15px;
  }

  .lg-catalog-sheet-head i {
    color: #f5c451;
    margin-right: 6px;
  }

  .lg-catalog-sheet-close {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 1px solid rgba(245, 196, 81, 0.35);
    background: rgba(245, 196, 81, 0.12);
    color: #f5c451;
    cursor: pointer;
  }

  .lg-catalog-sheet-body {
    padding: 10px 14px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .lg-catalog-item {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 11px 14px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-main);
    font-family: inherit;
    font-size: 13.8px;
    font-weight: 650;
    cursor: pointer;
    text-align: left;
  }

  .lg-catalog-item.active {
    border-color: rgba(227, 160, 8, 0.55);
    background: rgba(245, 196, 81, 0.16);
    color: var(--text-main);
    font-weight: 800;
  }

  .lg-catalog-item-left {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .lg-catalog-item-left i {
    width: 20px;
    text-align: center;
    color: var(--primary);
  }

  .lg-catalog-item-count {
    font-size: 11.5px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--bg-subtle);
    color: var(--text-secondary);
  }

  .lg-catalog-item.active .lg-catalog-item-count {
    background: #16110c;
    color: #f5c451;
  }

  .lg-catalog-sheet-foot {
    padding: 12px 14px 18px;
    border-top: 1px solid var(--border-color);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    background: var(--bg-subtle);
  }

  .lg-catalog-quick-btn {
    height: 38px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-main);
    font-family: inherit;
    font-size: 12.2px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
  }

  .lg-catalog-quick-btn i {
    color: var(--primary);
  }

  /* 3. Section Header: [| Security & VPN] ... [Xem tất cả ->] in Mực & Nghệ */
  .category-section-block {
    margin-bottom: 24px;
  }

  .home-heading {
    padding: 0;
    margin-bottom: 12px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  .home-heading::before {
    display: none;
  }

  .home-heading h3 {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0;
  }

  .section-icon-badge,
  .lg-sec-title-full,
  .lg-sec-count-pill {
    display: none !important;
  }

  .lg-sec-accent-bar {
    display: inline-block;
    width: 5px;
    height: 22px;
    border-radius: 99px;
    background: linear-gradient(180deg, #f5c451 0%, #9a3412 100%);
    flex-shrink: 0;
  }

  .lg-sec-title-short {
    display: block;
    font-size: 17.5px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .lg-see-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding: 0 12px;
    border-radius: 10px;
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .lg-see-all-btn:active,
  .lg-see-all-btn:hover {
    background: #16110c;
    color: #f5c451;
    border-color: #16110c;
  }

  .lg-see-all-btn i {
    font-size: 11px;
    color: var(--primary);
  }

  .lg-see-all-btn:hover i {
    color: #f5c451;
  }

  /* 4. Product Rows: Clean 2-Column Vertical Grid on Mobile for Maximum Discoverability */
  .product-grid-modern.is-carousel-row,
  .product-grid-modern.is-grid-view {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-auto-flow: row !important;
    gap: 12px 10px !important;
    overflow-x: visible !important;
    padding: 0 !important;
  }

  .product-grid-modern.is-carousel-row::-webkit-scrollbar {
    display: none;
  }

  .product-grid-modern.is-carousel-row > .prod-item {
    scroll-snap-align: none;
    min-width: 0;
  }

  /* 5. Clean LicenseGo Product Card on Mobile — Unified with Ivory (#fffdf8) & Terracotta/Gold */
  .product-card-modern.lg-card {
    border-radius: 14px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    height: 100%;
  }

  .product-card-modern.lg-card:hover {
    transform: none;
    border-color: rgba(227, 160, 8, 0.55);
  }

  .lg-card .product-card-image-wrapper {
    aspect-ratio: 1 / 0.92 !important;
    height: auto !important;
    border-bottom: 1px solid var(--border-color);
    background: #120e0a;
  }

  /* Hide desktop card details on mobile so cards match LicenseGo's clean scannable cards */
  .lg-card-badge-top,
  .lg-card-delivery-sub,
  .lg-card-notes,
  .lg-card-meta-sub,
  .lg-card-btn-row,
  .lg-card-price-old {
    display: none !important;
  }

  .lg-card-content {
    padding: 10px 11px 12px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 6px;
  }

  .lg-card-title {
    font-size: 13.5px;
    font-weight: 750;
    line-height: 1.3;
    color: var(--text-main);
    margin: 0;
    min-height: 2.6em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .lg-card-pill-row {
    margin: 0;
  }

  .lg-card-duration-pill {
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 2.5px 8px;
    font-size: 11px;
    font-weight: 650;
    color: var(--text-secondary);
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .lg-card-duration-pill i {
    color: var(--primary);
    font-size: 10.5px;
  }

  .lg-card-price-block {
    margin-top: auto;
    padding-top: 2px;
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .lg-card-from-label {
    display: block;
    font-size: 10.8px;
    color: var(--text-muted);
    line-height: 1.15;
  }

  .lg-card-price-row {
    margin: 0;
    padding: 0;
    border: none;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
  }

  .lg-card-price-val {
    font-size: 15.5px !important;
    font-weight: 850 !important;
    color: #9a3412 !important;
    -webkit-text-fill-color: #9a3412 !important;
    letter-spacing: -0.02em;
  }

  [data-theme="dark"] .lg-card-price-val {
    color: #f5c451 !important;
    -webkit-text-fill-color: #f5c451 !important;
  }

  .lg-card-save-pct {
    background: rgba(5, 150, 105, 0.14);
    color: var(--success);
    border-radius: 5px;
    padding: 1.5px 6px;
    font-size: 10.8px;
    font-weight: 750;
  }

  .lg-card-plan-sub {
    display: block;
    font-size: 10.8px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 1px;
  }

  /* 6. LicenseGo 4-Tab Bottom Navigation Bar & Rounded-Square Chat Button in Mực & Nghệ */
  .mobile-menu {
    display: flex;
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -4px 16px rgba(28, 20, 12, 0.06);
    padding: 6px 0 8px;
    z-index: 1040;
  }

  [data-theme="dark"] .mobile-menu {
    background: #16110c;
    border-top-color: rgba(245, 196, 81, 0.22);
  }

  .mobile-menu-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    font-size: 11px;
    font-weight: 650;
    color: var(--text-muted);
  }

  .mobile-nav-icon-pill {
    position: relative;
    width: 44px;
    height: 28px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.18s ease, color 0.18s ease;
  }

  .mobile-nav-icon-pill i {
    font-size: 16px;
  }

  .mobile-menu-btn.active,
  .mobile-menu-btn:hover {
    color: var(--primary);
    font-weight: 800;
  }

  .mobile-menu-btn.active .mobile-nav-icon-pill {
    background: rgba(245, 196, 81, 0.25);
    color: var(--primary);
  }

  [data-theme="dark"] .mobile-menu-btn.active .mobile-nav-icon-pill {
    background: rgba(245, 196, 81, 0.16);
    color: #f5c451;
  }

  .mobile-cart-dot {
    position: absolute;
    top: -2px;
    right: 2px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: #f5c451;
    color: #16110c;
    font-size: 10px;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* Ink & Sovereign Gold Rounded-Square Chat Launcher (bottom-right) */
  .support-widget {
    right: 14px;
    bottom: 68px;
  }

  .support-launcher {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: #1c140c;
    color: #f5c451;
    border: 1.5px solid #f5c451;
    box-shadow: 0 8px 22px rgba(28, 20, 12, 0.38);
    font-size: 20px;
  }

  .support-launcher::after {
    display: none;
  }

  .back-to-top {
    display: none !important;
  }

  /* Quick Buy Modal responsive on mobile */
  .qb-hero-grid {
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 12px;
  }

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

  .qb-price-now {
    font-size: 18px;
  }

  .qb-notes-grid,
  .qb-controls-grid,
  .qb-pay-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .qb-summary-bar {
    padding: 12px 14px;
    flex-direction: column;
    align-items: stretch;
  }

  .qb-summary-actions {
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    width: 100%;
  }

  .qb-summary-actions .btn {
    justify-content: center;
    padding: 10px 12px;
    font-size: 13px;
  }
}

/* ==========================================================================
   LICENSEGO HOMEPAGE SHOWCASE SECTIONS (DESKTOP + MOBILE UNIFIED PALETTE)
   1. Hero Showcase + Auto-Scrolling Poster Marquee (#lgHomeHeroShowcase)
   2. Category Showcase: 4x2 Bento Cards (Desktop) & 4x2 Emblem Grid (Mobile)
   3. 4-Pillar Trust & Payment Methods Card (#lgHomeTrustCard)
   4. Member Account & Wallet CTA Banner (#lgHomeAccountBanner)
   5. Interactive Searchable FAQ Accordion (#homeFaqSection)
   ========================================================================== */

.shop-main-col {
  min-width: 0;
  max-width: 100%;
}

.filter-bar-wrapper {
  display: none !important;
}

/* 1. Hero Showcase & Auto-Scrolling Product Marquee */
.lg-home-hero-showcase {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--border-color);
  background:
    radial-gradient(circle at 12% 18%, rgba(245, 196, 81, 0.14), transparent 46%),
    radial-gradient(circle at 88% 22%, rgba(154, 52, 18, 0.12), transparent 48%),
    var(--bg-card);
  box-shadow: var(--shadow-md);
  padding: 24px 26px 22px;
  margin-bottom: 22px;
}

.lg-hero-top-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.lg-hero-text-col {
  min-width: 0;
  flex: 1;
}

.lg-hero-headline {
  margin: 0;
  font-size: clamp(20px, 2.3vw, 29px);
  font-weight: 850;
  line-height: 1.22;
  letter-spacing: -0.025em;
  color: var(--text-main);
}

.lg-hero-highlight {
  background: linear-gradient(135deg, #b45309 0%, #9a3412 55%, #d97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="dark"] .lg-hero-highlight {
  background: linear-gradient(135deg, #f5c451 0%, #fbbf24 55%, #f97316 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lg-hero-subtext {
  margin: 8px 0 0;
  font-size: 13.8px;
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 740px;
}

.lg-hero-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.lg-hero-pause-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: var(--bg-subtle);
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  transition: var(--transition);
}

.lg-hero-pause-btn:hover {
  border-color: #f5c451;
  background: rgba(245, 196, 81, 0.2);
  color: var(--primary);
}

.lg-hero-explore-btn {
  height: 42px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid #16110c;
  background: #16110c;
  color: #f5c451;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 6px 16px rgba(22, 17, 12, 0.18);
}

[data-theme="dark"] .lg-hero-explore-btn {
  background: #f5c451;
  border-color: #e3a008;
  color: #16110c;
}

.lg-hero-explore-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

.lg-hero-marquee-viewport {
  margin: 18px -26px -4px;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
}

.lg-hero-marquee-track {
  display: flex;
  width: max-content;
  gap: 14px;
  padding: 6px 14px 10px;
  animation: lgMarqueeScroll 46s linear infinite;
}

.lg-hero-marquee-viewport:hover .lg-hero-marquee-track,
.lg-hero-marquee-viewport.is-paused .lg-hero-marquee-track {
  animation-play-state: paused;
}

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

.lg-marquee-card {
  width: 184px;
  aspect-ratio: 2 / 2.82;
  flex-shrink: 0;
  border: none;
  padding: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: transform 0.25s ease;
}

.lg-marquee-card:hover {
  transform: translateY(-4px);
}

.lg-marquee-poster {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: #16110c;
  border: 1px solid rgba(245, 196, 81, 0.26);
  box-shadow: 0 10px 24px -10px rgba(22, 17, 12, 0.45);
}

.lg-marquee-card:hover .lg-marquee-poster {
  border-color: #f5c451;
}

.lg-marquee-poster img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.lg-marquee-card:hover .lg-marquee-poster img {
  transform: scale(1.06);
}

.lg-marquee-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(16, 12, 8, 0.98) 28%,
    rgba(16, 12, 8, 0.8) 58%,
    rgba(16, 12, 8, 0.12) 100%
  );
  pointer-events: none;
}

.lg-marquee-price-pill {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  padding: 4px 9px;
  border-radius: 9px;
  background: rgba(22, 17, 12, 0.84);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(245, 196, 81, 0.45);
  color: #fffdf8;
}

.lg-marquee-price-pill small {
  font-size: 10.5px;
  font-weight: 600;
  color: rgba(246, 241, 232, 0.75);
}

.lg-marquee-price-pill strong {
  font-size: 13.5px;
  font-weight: 850;
  color: #f5c451;
}

.lg-marquee-caption {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  padding: 12px 13px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.lg-marquee-cat-tag {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #f5c451;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lg-marquee-prod-title {
  font-size: 14.5px;
  font-weight: 800;
  line-height: 1.24;
  color: #fffdf8;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.lg-marquee-meta-row {
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 650;
  color: rgba(246, 241, 232, 0.9);
}

.lg-marquee-meta-row i {
  font-size: 11px;
  color: #f5c451;
}

.lg-marquee-delivery-sub {
  font-size: 11px;
  color: rgba(246, 241, 232, 0.65);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 2. Category Showcase (Desktop 4x2 Bento Cards & Mobile 4x2 Emblem Grid) */
.lg-home-cat-showcase {
  margin-bottom: 24px;
}

.lg-cat-mobile-grid {
  display: none;
}

.lg-cat-desktop-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.lg-cat-bento-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  height: 138px;
  border-radius: 18px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  padding: 15px 16px;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
  box-shadow: var(--shadow-sm);
}

.lg-cat-bento-card:hover,
.lg-cat-bento-card.active {
  border-color: var(--cat-color, #d97706);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.lg-cat-bento-glow {
  position: absolute;
  right: -36px;
  bottom: -48px;
  width: 65%;
  aspect-ratio: 1 / 1;
  border-radius: 20px;
  opacity: 0.13;
  filter: blur(26px);
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.lg-cat-bento-card:hover .lg-cat-bento-glow {
  opacity: 0.24;
}

.lg-cat-bento-info {
  position: relative;
  z-index: 1;
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.lg-cat-bento-bar {
  display: block;
  width: 28px;
  height: 4px;
  border-radius: 99px;
  margin-bottom: 9px;
}

.lg-cat-bento-title {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-main);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.lg-cat-bento-count {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 3px;
}

.lg-cat-bento-from {
  margin-top: auto;
  font-size: 12px;
  color: var(--text-secondary);
  white-space: nowrap;
}

.lg-cat-bento-from strong {
  font-weight: 800;
  color: var(--primary);
}

.lg-cat-bento-emblem-wrap {
  position: relative;
  z-index: 1;
  width: 68px;
  height: 68px;
  align-self: center;
  flex-shrink: 0;
}

.lg-cat-emblem-back {
  position: absolute;
  inset: 0;
  border-radius: 18%;
  transform: rotate(-13deg) translate(-10%, 6%);
  opacity: 0.32;
}

.lg-cat-emblem {
  position: absolute;
  inset: 0;
  border-radius: 18%;
  background: var(--cat-bg);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 12px 24px -10px var(--cat-color, rgba(22, 17, 12, 0.45)), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 25px;
  transform: rotate(7deg);
  transition: transform 0.35s ease;
}

.lg-cat-bento-card:hover .lg-cat-emblem {
  transform: rotate(0deg) scale(1.06);
}

.lg-cat-emblem.is-flat {
  position: relative;
  width: 56px;
  height: 56px;
  transform: none;
  font-size: 22px;
}

/* 3. 4-Pillar Trust & Payment Methods Card (#lgHomeTrustCard) */
.lg-home-trust-card {
  margin-top: 28px;
  border-radius: 22px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.lg-trust-pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.lg-trust-pillar-item {
  padding: 20px 18px;
  display: flex;
  align-items: flex-start;
  gap: 13px;
  border-right: 1px solid var(--border-color);
}

.lg-trust-pillar-item:last-child {
  border-right: none;
}

.lg-trust-pillar-icon {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: rgba(245, 196, 81, 0.18);
  border: 1px solid rgba(227, 160, 8, 0.35);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-size: 17px;
  flex-shrink: 0;
}

.lg-trust-pillar-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.lg-trust-pillar-text strong {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.25;
}

.lg-trust-pillar-text span {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--text-secondary);
}

.lg-trust-pay-footer {
  padding: 13px 20px;
  border-top: 1px solid var(--border-color);
  background: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.lg-trust-pay-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.lg-trust-pay-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.lg-pay-chip {
  height: 30px;
  padding: 0 11px;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.lg-pay-chip i {
  color: var(--primary);
}

/* 4. Member Account & Wallet CTA Banner (#lgHomeAccountBanner) */
.lg-home-account-cta {
  position: relative;
  overflow: hidden;
  margin-top: 18px;
  border-radius: 22px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  padding: 22px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: var(--shadow-sm);
}

.lg-account-cta-bar {
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, #f5c451 0%, #9a3412 100%);
}

.lg-account-cta-copy {
  min-width: 0;
  flex: 1;
}

.lg-account-cta-copy h3 {
  margin: 0;
  font-size: 19px;
  font-weight: 850;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.lg-account-cta-copy p {
  margin: 6px 0 0;
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.lg-account-cta-btns {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* 5. Interactive Searchable FAQ Section (#homeFaqSection) */
.lg-home-faq-section {
  margin-top: 32px;
  margin-bottom: 10px;
  border-radius: 24px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  padding: 28px 28px;
  box-shadow: var(--shadow-sm);
}

.lg-faq-layout {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 32px;
  align-items: start;
}

.lg-faq-intro-col {
  position: sticky;
  top: 90px;
}

.lg-faq-heading {
  margin: 0;
  font-size: 22px;
  font-weight: 850;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.lg-faq-sub {
  margin: 8px 0 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-secondary);
}

.lg-faq-search-box {
  position: relative;
  margin-top: 16px;
}

.lg-faq-search-box i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 14px;
}

.lg-faq-search-box input {
  width: 100%;
  height: 42px;
  padding: 0 14px 0 38px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: var(--bg-subtle);
  color: var(--text-main);
  font-family: inherit;
  font-size: 13.5px;
  outline: none;
  transition: var(--transition);
}

.lg-faq-search-box input:focus {
  border-color: var(--primary);
  background: var(--bg-card);
  box-shadow: 0 0 0 3px rgba(245, 196, 81, 0.22);
}

.lg-faq-accordion-col {
  border-top: 1px solid var(--border-color);
}

.lg-faq-item {
  border-bottom: 1px solid var(--border-color);
}

.lg-faq-trigger {
  width: 100%;
  padding: 15px 4px;
  border: none;
  background: transparent;
  color: var(--text-main);
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 750;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  cursor: pointer;
}

.lg-faq-trigger:hover {
  color: var(--primary);
}

.lg-faq-plus-icon {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--bg-subtle);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
  transition: var(--transition);
}

.lg-faq-item.open .lg-faq-plus-icon {
  background: #16110c;
  color: #f5c451;
}

.lg-faq-body {
  padding: 0 28px 16px 4px;
}

.lg-faq-body p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.lg-faq-empty {
  padding: 24px 12px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13.5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

/* Mobile Responsive Overrides for the Homepage Sections (<= 768px) */
@media (max-width: 768px) {
  .lg-home-hero-showcase {
    padding: 16px 15px 14px;
    border-radius: 20px;
    margin-bottom: 18px;
  }

  .lg-hero-headline {
    font-size: 18.5px;
    line-height: 1.24;
  }

  .lg-hero-subtext,
  .lg-hero-explore-label,
  .lg-marquee-delivery-sub {
    display: none;
  }

  .lg-hero-pause-btn,
  .lg-hero-explore-btn {
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: 10px;
  }

  .lg-hero-marquee-viewport {
    margin: 14px -15px -2px;
  }

  .lg-hero-marquee-track {
    gap: 10px;
    padding: 4px 10px 8px;
  }

  .lg-marquee-card {
    width: 132px;
  }

  .lg-marquee-price-pill {
    top: 7px;
    left: 7px;
    padding: 3px 7px;
  }

  .lg-marquee-price-pill small {
    font-size: 9.5px;
  }

  .lg-marquee-price-pill strong {
    font-size: 11.8px;
  }

  .lg-marquee-caption {
    padding: 9px 9px;
  }

  .lg-marquee-cat-tag {
    font-size: 9px;
  }

  .lg-marquee-prod-title {
    font-size: 12.2px;
  }

  .lg-marquee-meta-row {
    font-size: 10.2px;
  }

  /* 4x2 Category Emblem Grid on Mobile (Exact LicenseGo Mobile Structure) */
  .lg-cat-desktop-grid {
    display: none;
  }

  .lg-cat-mobile-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px 8px;
  }

  .lg-cat-mobile-tile {
    border: none;
    background: transparent;
    padding: 2px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
    font-family: inherit;
    cursor: pointer;
    color: var(--text-main);
  }

  .lg-cat-mobile-tile:active {
    transform: scale(0.95);
  }

  .lg-cat-mobile-label {
    width: 100%;
    font-size: 11.2px;
    font-weight: 700;
    line-height: 1.22;
    color: var(--text-main);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* Trust & Payment Card on Mobile */
  .lg-trust-pillars-grid {
    grid-template-columns: 1fr;
  }

  .lg-trust-pillar-item {
    padding: 15px 16px;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }

  .lg-trust-pillar-item:last-child {
    border-bottom: none;
  }

  .lg-trust-pay-footer {
    padding: 12px 16px;
    flex-direction: column;
    align-items: flex-start;
  }

  /* Member Account CTA on Mobile */
  .lg-home-account-cta {
    padding: 18px 18px;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .lg-account-cta-copy h3 {
    font-size: 16.5px;
  }

  .lg-account-cta-btns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .lg-account-cta-btns .btn {
    justify-content: center;
    padding: 10px 10px;
    font-size: 12.8px;
  }

  /* FAQ Section on Mobile */
  .lg-home-faq-section {
    padding: 20px 16px;
    border-radius: 20px;
    margin-top: 22px;
  }

  .lg-faq-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .lg-faq-intro-col {
    position: static;
  }

  .lg-faq-heading {
    font-size: 19px;
  }

  .lg-faq-trigger {
    font-size: 13.8px;
    padding: 13px 2px;
  }

  .lg-faq-body {
    padding: 0 8px 14px 2px;
  }
}

/* ==========================================================================
   BRIGHT, AIRY & MODERN TECH-COMMERCE PALETTE (UNIFIED DESKTOP + MOBILE)
   Replaces heavy dark/black banners & ink surfaces with luminous Daylight
   Glass, Royal Blue (#2563eb), Indigo (#4f46e5), Sky Cyan (#0ea5e9) & Pastel Aurora
   ========================================================================== */

::selection {
  background: rgba(37, 99, 235, 0.18);
  color: #1e3a8a;
}

/* Hide legacy duplicate top slider so #lgHomeHeroShowcase is the clean primary hero */
.home-banner-section {
  display: none !important;
}

/* 1. Bright Promo Bar & Frosted White Glass Header (Desktop + Mobile) */
.promo-bar {
  background: linear-gradient(90deg, #2563eb 0%, #4f46e5 52%, #0284c7 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.promo-live-dot {
  background: #34d399;
  box-shadow: 0 0 10px #34d399;
}

.promo-time,
.promo-marquee {
  color: #ffffff;
}

.promo-link {
  color: #e0f2fe;
}

.promo-link:hover {
  color: #ffffff;
}

.header-modern {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 4px 20px -4px rgba(15, 23, 42, 0.06);
}

[data-theme="dark"] .header-modern {
  background: rgba(15, 23, 42, 0.92);
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.45);
}

.logo-badge {
  background: linear-gradient(135deg, #2563eb 0%, #4f46e5 55%, #0ea5e9 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 6px 16px -4px rgba(37, 99, 235, 0.42);
}

[data-theme="dark"] .logo-badge {
  background: linear-gradient(135deg, #2563eb 0%, #4f46e5 55%, #0ea5e9 100%);
  border-color: rgba(255, 255, 255, 0.28);
}

.logo-mark .logo-bolt-path {
  fill: #ffffff !important;
  stroke: #ffffff !important;
}

.logo-mark .logo-spark-path {
  fill: #fde047 !important;
  stroke: none !important;
}

.logo-title {
  color: #0f172a;
  -webkit-text-fill-color: #0f172a;
}

[data-theme="dark"] .logo-title {
  color: #f8fafc;
  -webkit-text-fill-color: #f8fafc;
}

.logo-subtitle {
  color: #64748b;
}

[data-theme="dark"] .logo-subtitle {
  color: #94a3b8;
}

.ai-version-pill {
  background: rgba(37, 99, 235, 0.1);
  color: #2563eb;
  border: 1px solid rgba(37, 99, 235, 0.25);
}

[data-theme="dark"] .ai-version-pill {
  background: rgba(59, 130, 246, 0.18);
  color: #60a5fa;
  border-color: rgba(59, 130, 246, 0.35);
}

/* Search Box in Header */
.header-search-form {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.03);
}

[data-theme="dark"] .header-search-form {
  background: rgba(30, 41, 59, 0.85);
  border-color: rgba(148, 163, 184, 0.24);
}

.header-search-form:focus-within {
  background: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16);
}

[data-theme="dark"] .header-search-form:focus-within {
  background: #0f172a;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.22);
}

.search-ai-icon {
  color: #2563eb;
}

[data-theme="dark"] .search-ai-icon {
  color: #60a5fa;
}

.header-search-input {
  color: #0f172a;
}

[data-theme="dark"] .header-search-input {
  color: #f8fafc;
}

.header-search-input::placeholder {
  color: #64748b;
}

.search-kbd-badge {
  color: #2563eb;
  background: rgba(37, 99, 235, 0.1);
  border-color: rgba(37, 99, 235, 0.24);
}

.header-search-btn {
  background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.28);
}

.header-search-btn:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #4338ca 100%);
  color: #ffffff;
}

/* Header Action Pills */
.header-btn-pill,
.header-lang-toggle {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #1e293b;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

[data-theme="dark"] .header-btn-pill,
[data-theme="dark"] .header-lang-toggle {
  background: rgba(30, 41, 59, 0.85);
  border-color: rgba(148, 163, 184, 0.24);
  color: #f8fafc;
}

.header-btn-pill:hover,
.header-lang-toggle:hover,
.header-btn-pill.btn-cart-highlight:hover {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #2563eb;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}

[data-theme="dark"] .header-btn-pill:hover,
[data-theme="dark"] .header-lang-toggle:hover {
  background: rgba(59, 130, 246, 0.18);
  border-color: #60a5fa;
  color: #60a5fa;
}

.header-btn-pill.btn-cart-highlight {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}

[data-theme="dark"] .header-btn-pill.btn-cart-highlight {
  background: rgba(59, 130, 246, 0.14);
  border-color: rgba(59, 130, 246, 0.35);
  color: #93c5fd;
}

.header-btn-pill.btn-wallet-highlight {
  background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
  border-color: #1d4ed8;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.header-btn-pill.btn-wallet-highlight:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #4338ca 100%);
  color: #ffffff;
}

.header-balance-chip {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.cart-count-badge {
  background: #2563eb;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
}

.header-theme-toggle,
.theme-toggle-btn {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #2563eb;
}

[data-theme="dark"] .header-theme-toggle,
[data-theme="dark"] .theme-toggle-btn {
  background: rgba(30, 41, 59, 0.85);
  border-color: rgba(148, 163, 184, 0.24);
  color: #fbbf24;
}

/* Navbar Modern Links */
.navbar-modern-link:hover:not(.nav-zalo-pill),
.navbar-modern-link.active:not(.nav-zalo-pill) {
  background: rgba(37, 99, 235, 0.1);
  color: #2563eb;
}

.navbar-modern-link:hover:not(.nav-zalo-pill) i,
.navbar-modern-link.active:not(.nav-zalo-pill) i {
  color: #2563eb;
}

[data-theme="dark"] .navbar-modern-link:hover:not(.nav-zalo-pill),
[data-theme="dark"] .navbar-modern-link.active:not(.nav-zalo-pill) {
  background: rgba(59, 130, 246, 0.16);
  color: #60a5fa;
}

[data-theme="dark"] .navbar-modern-link:hover:not(.nav-zalo-pill) i,
[data-theme="dark"] .navbar-modern-link.active:not(.nav-zalo-pill) i {
  color: #60a5fa;
}

/* Notice Card & Promises */
.notice-home-card {
  border-left: 4px solid #2563eb;
  background: #ffffff;
}

[data-theme="dark"] .notice-home-card {
  background: var(--bg-card);
  border-left-color: #3b82f6;
}

.notice-badge {
  background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
  color: #ffffff;
}

.coupon-pill,
.coupon-chip-mini {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px dashed #93c5fd;
}

.coupon-pill:hover,
.coupon-chip-mini:hover {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
}

.home-promise-rail i {
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
}

[data-theme="dark"] .home-promise-rail i {
  background: rgba(59, 130, 246, 0.16);
  color: #60a5fa;
  border-color: rgba(59, 130, 246, 0.3);
}

/* 2. Left Category Sidebar & Bright Aurora Sidebar Promo Banner */
.category-sidebar-header {
  background: linear-gradient(135deg, #eff6ff 0%, #e0e7ff 100%);
  border-bottom: 1px solid #dbeafe;
  padding: 15px 18px;
}

[data-theme="dark"] .category-sidebar-header {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.2) 0%, rgba(79, 70, 229, 0.2) 100%);
  border-bottom-color: rgba(59, 130, 246, 0.25);
}

.category-sidebar-title {
  color: #1e3a8a;
}

[data-theme="dark"] .category-sidebar-title {
  color: #f8fafc;
}

.category-sidebar-title i {
  color: #2563eb;
}

[data-theme="dark"] .category-sidebar-title i {
  color: #60a5fa;
}

.category-sidebar-link.active {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #bfdbfe;
  font-weight: 800;
}

[data-theme="dark"] .category-sidebar-link.active {
  background: rgba(59, 130, 246, 0.16);
  color: #60a5fa;
  border-color: rgba(59, 130, 246, 0.35);
}

.category-sidebar-link.active::before {
  background: #2563eb;
}

.category-sidebar-link.active .category-count-pill {
  background: #2563eb;
  color: #ffffff;
}

/* Vertical Sidebar Promo Banner — Bright Daylight Aurora instead of Black! */
.sidebar-promo-banner {
  background:
    radial-gradient(180px 120px at 100% 0%, rgba(56, 189, 248, 0.25), transparent 70%),
    linear-gradient(165deg, #eff6ff 0%, #e0e7ff 55%, #f0f9ff 100%);
  border: 1px solid #bfdbfe;
  color: #0f172a;
  box-shadow: 0 8px 24px -8px rgba(37, 99, 235, 0.12);
}

[data-theme="dark"] .sidebar-promo-banner {
  background:
    radial-gradient(180px 120px at 100% 0%, rgba(56, 189, 248, 0.2), transparent 70%),
    linear-gradient(165deg, #1e293b 0%, #0f172a 100%);
  border-color: rgba(59, 130, 246, 0.3);
  color: #f8fafc;
}

.sidebar-glow-orb {
  background: radial-gradient(circle, rgba(59, 130, 246, 0.25) 0%, transparent 70%);
}

.sidebar-promo-tag {
  background: #ffffff;
  border: 1px solid #93c5fd;
  color: #2563eb;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.08);
}

[data-theme="dark"] .sidebar-promo-tag {
  background: rgba(59, 130, 246, 0.16);
  border-color: rgba(59, 130, 246, 0.4);
  color: #60a5fa;
}

.sidebar-promo-banner h4 {
  color: #0f172a;
}

[data-theme="dark"] .sidebar-promo-banner h4 {
  color: #f8fafc;
}

.sidebar-promo-banner p {
  color: #334155;
}

[data-theme="dark"] .sidebar-promo-banner p {
  color: #cbd5e1;
}

.sidebar-promo-features li {
  color: #1e293b;
}

[data-theme="dark"] .sidebar-promo-features li {
  color: #e2e8f0;
}

.sidebar-promo-features li i {
  color: #059669;
}

.sidebar-promo-btn,
.sidebar-promo-btn:hover {
  background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
  color: #ffffff !important;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.25);
}

/* 3. Bright Hero Marquee Showcase (#lgHomeHeroShowcase & .lg-marquee-card) */
.lg-home-hero-showcase {
  background:
    radial-gradient(circle at 10% 15%, rgba(56, 189, 248, 0.16), transparent 45%),
    radial-gradient(circle at 90% 20%, rgba(99, 102, 241, 0.14), transparent 48%),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid #dbeafe;
  box-shadow: 0 8px 28px -8px rgba(37, 99, 235, 0.08);
}

[data-theme="dark"] .lg-home-hero-showcase {
  background:
    radial-gradient(circle at 10% 15%, rgba(56, 189, 248, 0.14), transparent 45%),
    radial-gradient(circle at 90% 20%, rgba(99, 102, 241, 0.14), transparent 48%),
    var(--bg-card);
  border-color: var(--border-color);
}

.lg-hero-highlight {
  background: linear-gradient(135deg, #2563eb 0%, #4f46e5 55%, #0ea5e9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="dark"] .lg-hero-highlight {
  background: linear-gradient(135deg, #60a5fa 0%, #818cf8 55%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lg-hero-pause-btn {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #334155;
}

.lg-hero-pause-btn:hover {
  background: #eff6ff;
  border-color: #60a5fa;
  color: #2563eb;
}

.lg-hero-explore-btn,
[data-theme="dark"] .lg-hero-explore-btn {
  background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
  border-color: #1d4ed8;
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.25);
}

/* Bright Daylight Marquee Cards — Clear Image Top + Crisp White Caption Bottom (No Black Shade!) */
.lg-marquee-poster {
  background: #ffffff;
  border: 1px solid #dbeafe;
  box-shadow: 0 6px 18px -6px rgba(15, 23, 42, 0.1);
  display: flex;
  flex-direction: column;
}

[data-theme="dark"] .lg-marquee-poster {
  background: #1e293b;
  border-color: rgba(148, 163, 184, 0.22);
}

.lg-marquee-card:hover .lg-marquee-poster {
  border-color: #3b82f6;
  box-shadow: 0 12px 24px -6px rgba(37, 99, 235, 0.2);
}

.lg-marquee-poster img {
  position: relative;
  width: 100%;
  height: 56%;
  object-fit: cover;
  flex-shrink: 0;
}

.lg-marquee-shade {
  display: none !important;
}

.lg-marquee-price-pill {
  top: 8px;
  left: 8px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border: 1px solid #bfdbfe;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.12);
  color: #0f172a;
}

[data-theme="dark"] .lg-marquee-price-pill {
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(59, 130, 246, 0.4);
  color: #f8fafc;
}

.lg-marquee-price-pill small {
  color: #64748b;
}

[data-theme="dark"] .lg-marquee-price-pill small {
  color: #94a3b8;
}

.lg-marquee-price-pill strong {
  color: #2563eb;
}

[data-theme="dark"] .lg-marquee-price-pill strong {
  color: #60a5fa;
}

.lg-marquee-caption {
  position: relative;
  inset: auto;
  flex: 1;
  padding: 10px 12px;
  background: #ffffff;
  border-top: 1px solid #eff6ff;
  justify-content: space-between;
}

[data-theme="dark"] .lg-marquee-caption {
  background: #1e293b;
  border-top-color: rgba(148, 163, 184, 0.14);
}

.lg-marquee-cat-tag {
  color: #2563eb;
}

[data-theme="dark"] .lg-marquee-cat-tag {
  color: #60a5fa;
}

.lg-marquee-prod-title {
  color: #0f172a;
}

[data-theme="dark"] .lg-marquee-prod-title {
  color: #f8fafc;
}

.lg-marquee-meta-row {
  color: #475569;
}

[data-theme="dark"] .lg-marquee-meta-row {
  color: #cbd5e1;
}

.lg-marquee-meta-row i {
  color: #2563eb;
}

[data-theme="dark"] .lg-marquee-meta-row i {
  color: #60a5fa;
}

.lg-marquee-delivery-sub {
  color: #64748b;
}

[data-theme="dark"] .lg-marquee-delivery-sub {
  color: #94a3b8;
}

/* 4. Product Cards, Section Headers, Prices & Buttons in Bright Modern Blue */
.home-heading::before {
  background: linear-gradient(90deg, #2563eb 0%, #0ea5e9 100%);
}

.section-icon-badge {
  background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.22);
}

.lg-sec-accent-bar {
  background: linear-gradient(180deg, #2563eb 0%, #0ea5e9 100%);
}

.lg-see-all-btn:hover,
.lg-see-all-btn:active {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
}

.lg-see-all-btn:hover i {
  color: #ffffff;
}

.product-card-modern:not(.product-disable):hover,
.product-card-modern.lg-card:hover {
  border-color: #93c5fd;
  box-shadow: 0 14px 28px -10px rgba(37, 99, 235, 0.14);
}

.product-card-modern.lg-card::before {
  background: linear-gradient(110deg, transparent 38%, rgba(59, 130, 246, 0.12) 50%, transparent 62%);
}

.lg-card .product-card-image-wrapper,
.lg-card-media,
.qb-hero-thumb {
  background: #f1f5f9;
}

.badge-pro {
  background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
  color: #ffffff;
}

.product-card-price-current,
.lg-card-price-val,
.lg-buy-price,
.pd-price {
  color: #2563eb !important;
  -webkit-text-fill-color: #2563eb !important;
}

[data-theme="dark"] .product-card-price-current,
[data-theme="dark"] .lg-card-price-val,
[data-theme="dark"] .lg-buy-price,
[data-theme="dark"] .pd-price {
  color: #60a5fa !important;
  -webkit-text-fill-color: #60a5fa !important;
}

.product-card-buy-btn,
.btn-primary,
.lg-card-btn-buy {
  background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
  color: #ffffff;
  border-color: #1d4ed8;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.product-card-buy-btn:hover:not(:disabled),
.btn-primary:hover:not(:disabled),
.lg-card-btn-buy:hover:not(:disabled) {
  background: linear-gradient(135deg, #1d4ed8 0%, #4338ca 100%);
  color: #ffffff;
  border-color: #1e40af;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
}

.lg-card-btn-cart {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #2563eb;
}

.lg-card-btn-cart:hover:not(:disabled) {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
}

.lg-card-btn-detail:hover {
  background: #eff6ff;
  color: #2563eb;
  border-color: #93c5fd;
}

/* Trust Card, Account CTA, FAQ & Recent Activity in Bright Blue */
.lg-trust-pillar-icon {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #2563eb;
}

[data-theme="dark"] .lg-trust-pillar-icon {
  background: rgba(59, 130, 246, 0.16);
  border-color: rgba(59, 130, 246, 0.32);
  color: #60a5fa;
}

.lg-account-cta-bar {
  background: linear-gradient(180deg, #2563eb 0%, #0ea5e9 100%);
}

.lg-faq-item.open .lg-faq-plus-icon {
  background: #2563eb;
  color: #ffffff;
}

.recent-activity-grid {
  background:
    linear-gradient(180deg, rgba(37, 99, 235, 0.06), transparent 92px),
    var(--bg-card);
}

/* Bright Clean Footer & Support Widget */
.footer-part {
  background: #ffffff;
  color: #334155;
  border-top: 2px solid #2563eb;
}

[data-theme="dark"] .footer-part {
  background: #0f172a;
  color: #cbd5e1;
  border-top-color: #3b82f6;
}

.footer-part .logo-badge {
  background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
  border-color: #1d4ed8;
}

.footer-part .logo-mark .logo-bolt-path {
  fill: #ffffff !important;
  stroke: #ffffff !important;
}

.logo-mark .logo-spark-path {
  fill: #fde047 !important;
  stroke: none !important;
}

.footer-brand-name {
  color: #0f172a;
}

[data-theme="dark"] .footer-brand-name {
  color: #f8fafc;
}

.footer-brand-kicker,
.footer-part .footer-title,
.footer-part i {
  color: #2563eb;
}

[data-theme="dark"] .footer-brand-kicker,
[data-theme="dark"] .footer-part .footer-title,
[data-theme="dark"] .footer-part i {
  color: #60a5fa;
}

.footer-desc,
.footer-part .footer-contact li,
.footer-part .footer-links li,
.footer-part .footer-contact a,
.footer-part .footer-links a {
  color: #475569;
}

[data-theme="dark"] .footer-desc,
[data-theme="dark"] .footer-part .footer-contact li,
[data-theme="dark"] .footer-part .footer-links li,
[data-theme="dark"] .footer-part .footer-contact a,
[data-theme="dark"] .footer-part .footer-links a {
  color: #cbd5e1;
}

.footer-part .footer-links a:hover,
.footer-part .footer-contact a:hover {
  color: #2563eb;
}

.footer-part .footer-bottom {
  color: #64748b;
  border-top-color: #e2e8f0;
}

[data-theme="dark"] .footer-part .footer-bottom {
  color: #94a3b8;
  border-top-color: rgba(148, 163, 184, 0.16);
}

.support-launcher {
  background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.35);
}

.support-head {
  background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
  color: #ffffff;
  border-bottom: none;
}

.support-send {
  background: #2563eb;
  color: #ffffff;
}

.qb-summary-bar {
  background: #eff6ff;
  color: #0f172a;
  border: 1px solid #bfdbfe;
}

[data-theme="dark"] .qb-summary-bar {
  background: #1e293b;
  color: #f8fafc;
  border-color: rgba(59, 130, 246, 0.35);
}

.qb-summary-sub {
  color: #475569;
}

[data-theme="dark"] .qb-summary-sub {
  color: #94a3b8;
}

.qb-summary-main {
  color: #2563eb;
}

[data-theme="dark"] .qb-summary-main {
  color: #60a5fa;
}

.qb-btn-submit {
  background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
  color: #ffffff;
  border-color: #1d4ed8;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.28);
}

.qb-btn-submit:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #4338ca 100%);
  color: #ffffff;
}

.qb-btn-addcart {
  background: #ffffff;
  color: #1e293b;
  border-color: #cbd5e1;
}

[data-theme="dark"] .qb-btn-addcart {
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
  border-color: rgba(148, 163, 184, 0.3);
}

/* 5. Mobile Unified Bright Header, Catalog Button & Drawer (<= 768px) */
@media (max-width: 768px) {
  .header-modern {
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 4px 16px -4px rgba(15, 23, 42, 0.06);
  }

  [data-theme="dark"] .header-modern {
    background: rgba(15, 23, 42, 0.95);
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  }

  .logo-badge,
  [data-theme="dark"] .logo-badge {
    background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
    border-color: rgba(255, 255, 255, 0.4);
  }

  .logo-title {
    color: #0f172a;
    -webkit-text-fill-color: #0f172a;
  }

  [data-theme="dark"] .logo-title {
    color: #f8fafc;
    -webkit-text-fill-color: #f8fafc;
  }

  .header-lang-toggle {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #0f172a;
  }

  .header-lang-toggle i {
    color: #2563eb;
  }

  [data-theme="dark"] .header-lang-toggle {
    background: rgba(30, 41, 59, 0.9);
    border-color: rgba(148, 163, 184, 0.25);
    color: #f8fafc;
  }

  [data-theme="dark"] .header-lang-toggle i {
    color: #60a5fa;
  }

  .header-theme-toggle,
  .theme-toggle-btn {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #2563eb;
  }

  [data-theme="dark"] .header-theme-toggle,
  [data-theme="dark"] .theme-toggle-btn {
    background: rgba(30, 41, 59, 0.9);
    border-color: rgba(148, 163, 184, 0.25);
    color: #fbbf24;
  }

  .lg-mobile-catalog-btn,
  [data-theme="dark"] .lg-mobile-catalog-btn {
    background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
    border-color: #1d4ed8;
    color: #ffffff;
    box-shadow: 0 3px 10px rgba(37, 99, 235, 0.25);
  }

  .lg-mobile-catalog-btn i,
  [data-theme="dark"] .lg-mobile-catalog-btn i {
    color: #ffffff;
  }

  .header-search-form {
    background: #f1f5f9;
    border-color: #cbd5e1;
  }

  [data-theme="dark"] .header-search-form {
    background: rgba(30, 41, 59, 0.9);
    border-color: rgba(148, 163, 184, 0.26);
  }

  .header-search-input {
    color: #0f172a;
  }

  [data-theme="dark"] .header-search-input {
    color: #f8fafc;
  }

  .header-search-input::placeholder {
    color: #64748b;
  }

  .lg-catalog-sheet-panel {
    border-top: 2px solid #2563eb;
  }

  .lg-catalog-sheet-head {
    background: linear-gradient(135deg, #eff6ff 0%, #e0e7ff 100%);
    color: #0f172a;
    border-bottom: 1px solid #dbeafe;
  }

  [data-theme="dark"] .lg-catalog-sheet-head {
    background: #0f172a;
    color: #f8fafc;
    border-bottom-color: rgba(148, 163, 184, 0.2);
  }

  .lg-catalog-sheet-head i {
    color: #2563eb;
  }

  .lg-catalog-sheet-close {
    background: #ffffff;
    border-color: #bfdbfe;
    color: #2563eb;
  }

  .lg-catalog-item.active {
    background: #eff6ff;
    border-color: #93c5fd;
    color: #1d4ed8;
  }

  .lg-catalog-item.active .lg-catalog-item-count {
    background: #2563eb;
    color: #ffffff;
  }

  .mobile-menu-btn.active .mobile-nav-icon-pill {
    background: rgba(37, 99, 235, 0.14);
    color: #2563eb;
  }

  .mobile-cart-dot {
    background: #2563eb;
    color: #ffffff;
  }

  .support-launcher {
    background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.5);
  }

  /* Keep Mobile Header Row 1 strictly on one line without truncating brand title */
  .header-logo-section {
    flex: 1 1 0%;
    min-width: 0;
    overflow: hidden;
  }

  .logo-badge,
  [data-theme="dark"] .logo-badge {
    width: 32px;
    height: 32px;
    border-radius: 9px;
  }

  .logo-mark {
    width: 18px;
    height: 18px;
  }

  .logo-mark .logo-bolt-path {
    fill: #ffffff !important;
    stroke: #ffffff !important;
  }

  .logo-mark .logo-spark-path {
    fill: #fde047 !important;
    stroke: none !important;
  }

  .logo-title,
  [data-theme="dark"] .logo-title {
    font-size: 13.8px;
    font-weight: 800;
    letter-spacing: -0.025em;
  }

  .header-user-cart {
    gap: 5px;
  }

  .header-lang-toggle,
  [data-theme="dark"] .header-lang-toggle {
    height: 32px;
    padding: 0 8px;
    font-size: 11px;
    gap: 4px;
    border-radius: 9px;
  }

  .header-lang-toggle i {
    font-size: 12px;
  }

  .header-theme-toggle,
  .theme-toggle-btn,
  [data-theme="dark"] .header-theme-toggle,
  #headerAdminBtn {
    width: 32px;
    height: 32px;
    padding: 0 !important;
    border-radius: 9px;
    justify-content: center;
    flex-shrink: 0;
    font-size: 13px;
  }
}

/* ==========================================================================
   6. TOP-PRIORITY CHECKOUT & PAYMENT LAYOUT (#view-product & #modal_buy)
   Displays Payment, Plan Selection & Checkout Controls FIRST at the very top,
   followed below by Product Description, Specifications & Other Information.
   Strictly prevents horizontal overflow on 390px mobile viewports.
   ========================================================================== */
#view-product,
#productDetailContent {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.pd-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.pd-breadcrumb-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 13px;
  min-width: 0;
  flex: 1 1 200px;
}

.pd-breadcrumb-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
}

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

.pd-breadcrumb-links strong {
  color: var(--text-main);
  font-weight: 700;
  word-break: break-word;
}

.pd-back-btn {
  padding: 6px 12px;
  font-size: 12.5px;
  border-radius: 10px;
  flex-shrink: 0;
  height: auto;
  min-height: 34px;
}

.lg-pd-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.lg-buy-box,
.lg-pd-left,
.lg-pd-card,
.lg-pd-tabs {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.lg-buy-box {
  position: relative;
  top: auto;
  border-top: 3px solid #2563eb;
  border-radius: 20px;
  background: var(--bg-card);
  box-shadow: 0 10px 30px -10px rgba(37, 99, 235, 0.12);
  overflow: hidden;
}

[data-theme="dark"] .lg-buy-box {
  border-top-color: #3b82f6;
}

.lg-buy-head {
  padding: 18px 22px;
  background: linear-gradient(135deg, #f8fbff 0%, #eff6ff 100%);
  border-bottom: 1px solid #dbeafe;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

[data-theme="dark"] .lg-buy-head {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.95) 100%);
  border-bottom-color: rgba(148, 163, 184, 0.18);
}

.lg-buy-prod-identity {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1 1 320px;
  min-width: 0;
}

.lg-buy-prod-thumb {
  width: 104px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  background: #f1f5f9;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.lg-buy-prod-meta {
  min-width: 0;
  flex: 1;
}

.lg-buy-prod-kicker {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #2563eb;
  margin-bottom: 3px;
}

[data-theme="dark"] .lg-buy-prod-kicker {
  color: #60a5fa;
}

.lg-buy-prod-title {
  font-size: 19px;
  font-weight: 850;
  line-height: 1.28;
  color: var(--text-main);
  margin: 0 0 8px;
  letter-spacing: -0.02em;
  word-break: break-word;
}

.lg-buy-prod-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.lg-buy-prod-badges .lg-status-pill {
  min-height: 25px;
  padding: 3px 9px;
  font-size: 11.5px;
  white-space: normal;
  line-height: 1.3;
}

.lg-buy-price-strip {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  text-align: right;
}

.lg-buy-scroll-desc-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #bfdbfe;
  color: #2563eb;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
}

.lg-buy-scroll-desc-btn:hover {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
}

[data-theme="dark"] .lg-buy-scroll-desc-btn {
  background: rgba(30, 41, 59, 0.9);
  border-color: rgba(59, 130, 246, 0.35);
  color: #60a5fa;
}

.lg-buy-body.lg-buy-body-split {
  padding: 20px 22px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 22px;
  align-items: start;
  width: 100%;
  box-sizing: border-box;
}

.lg-buy-col-plan,
.lg-buy-col-pay {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.lg-buy-col-pay {
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
}

.lg-pd-pay-methods {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.lg-buy-qty-coupon-grid {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.lg-buy-upgrade-input-wrap,
.lg-pd-contact-box {
  padding: 11px 13px;
  border-radius: 12px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
}

[data-theme="dark"] .lg-buy-upgrade-input-wrap,
[data-theme="dark"] .lg-pd-contact-box {
  background: rgba(30, 41, 59, 0.85);
  border-color: rgba(59, 130, 246, 0.3);
}

.lg-plan-option.active {
  border-color: #2563eb;
  background: rgba(37, 99, 235, 0.06);
  box-shadow: 0 0 0 1px #2563eb;
}

/* Action buttons inside #hop-mua — clean sizing, no text clipping */
.lg-pd-action-group {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 2px;
  width: 100%;
}

.lg-pd-btn-confirm {
  width: 100%;
  min-height: 48px;
  height: auto;
  padding: 11px 14px;
  font-size: 14.5px;
  font-weight: 800;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  line-height: 1.3;
  text-align: center;
}

.lg-pd-action-subrow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 42px;
  gap: 8px;
  width: 100%;
}

.lg-pd-btn-sub {
  min-height: 42px;
  height: auto;
  padding: 8px 10px;
  border-radius: 11px;
  font-size: 12.8px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
  line-height: 1.2;
  text-decoration: none;
  min-width: 0;
}

.lg-pd-btn-copy {
  width: 42px;
  min-height: 42px;
  height: auto;
  padding: 0;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.lg-pd-warranty-foot {
  padding-top: 10px;
  border-top: 1px dashed var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-muted);
}

/* Product Description Card (#the-gioi-thieu) below Payment Box */
.lg-pd-desc-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.lg-pd-desc-title {
  font-size: 20px;
  font-weight: 850;
  line-height: 1.3;
  color: var(--text-main);
  margin: 0;
  letter-spacing: -0.02em;
  word-break: break-word;
}

.lg-pd-status-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 6px;
}

.lg-pd-status-pills .lg-status-pill {
  white-space: normal;
  height: auto;
  line-height: 1.35;
  padding: 4px 10px;
}

/* Quick Buy Modal (#modal_buy) — Payment prioritized on top, Description below */
.qb-hero-compact {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.qb-priority-payment-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.qb-notes-below {
  margin-top: 16px;
  margin-bottom: 0;
}

@media (max-width: 991px) {
  .lg-buy-body.lg-buy-body-split {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    padding: 16px;
  }

  .lg-buy-head {
    padding: 15px 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .lg-buy-prod-identity {
    flex: 1 1 auto;
  }

  .lg-buy-price-strip {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    padding-top: 12px;
    border-top: 1px dashed #cbd5e1;
  }

  [data-theme="dark"] .lg-buy-price-strip {
    border-top-color: rgba(148, 163, 184, 0.2);
  }
}

@media (max-width: 768px) {
  /* Remove double card-in-card wrapper padding on mobile Product Detail view */
  #view-product .subview-container {
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
  }

  .pd-breadcrumb {
    margin-bottom: 12px;
    gap: 8px;
  }

  .pd-breadcrumb-links {
    font-size: 12px;
  }

  .pd-back-btn {
    padding: 5px 10px;
    font-size: 12px;
    min-height: 32px;
  }

  .lg-pd-grid {
    gap: 16px;
  }

  .lg-buy-box,
  .lg-pd-card {
    border-radius: 16px;
  }

  .lg-pd-card {
    padding: 15px 14px;
  }

  .lg-pd-desc-title {
    font-size: 17px;
  }

  .lg-pd-included-wrap {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .lg-pd-notes-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .lg-pd-quick-specs {
    padding: 12px;
  }

  .lg-pd-tabs {
    padding: 5px;
    gap: 4px;
    border-radius: 13px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .lg-pd-tab-btn {
    padding: 8px 12px;
    font-size: 12.5px;
  }
}

@media (max-width: 640px) {
  .lg-buy-head {
    padding: 14px;
  }

  .lg-buy-prod-Identity,
  .lg-buy-prod-identity {
    align-items: flex-start;
    gap: 12px;
  }

  .lg-buy-prod-thumb {
    width: 78px;
    border-radius: 10px;
  }

  .lg-buy-prod-title {
    font-size: 16px;
    margin-bottom: 5px;
  }

  .lg-buy-price-strip {
    flex-wrap: wrap;
    gap: 8px;
  }

  .lg-buy-scroll-desc-btn {
    font-size: 11.5px;
    padding: 5px 10px;
  }

  .lg-buy-body.lg-buy-body-split {
    padding: 14px;
    gap: 14px;
  }

  .lg-buy-qty-coupon-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .lg-buy-col-pay {
    padding: 13px;
    border-radius: 14px;
  }

  .lg-pd-action-subrow {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 40px;
    gap: 6px;
  }

  .lg-pd-btn-sub {
    font-size: 12px;
    padding: 8px 6px;
    min-height: 40px;
    gap: 5px;
  }

  .lg-pd-btn-copy {
    width: 40px;
    min-height: 40px;
  }
}

/* ==========================================================================
   7. LICENSEGO SPLIT-PANEL LOGIN / REGISTER / ACCOUNT EXPERIENCE (#modal_auth)
   Matches https://licensego-digital.com/login layout & proportions
   ========================================================================== */
#modal_auth.lg-auth-overlay {
  padding: 0;
  background: var(--bg-body);
  backdrop-filter: none;
  align-items: stretch;
  justify-content: stretch;
  overflow-y: auto;
  z-index: 2400;
}

[data-theme="dark"] #modal_auth.lg-auth-overlay {
  background: var(--bg-body);
}

.lg-auth-shell {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-body);
  color: var(--text-main);
  box-sizing: border-box;
}

[data-theme="dark"] .lg-auth-shell {
  background: var(--bg-body);
}

/* Top Header Bar (Logo left + "← Trang chủ" button right) */
.lg-auth-topbar {
  height: 60px;
  padding: 0 clamp(16px, 5vw, 72px);
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 10;
}

[data-theme="dark"] .lg-auth-topbar {
  background: var(--bg-card);
  border-bottom-color: var(--border-color);
}

.lg-auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-main);
  min-width: 0;
}

.lg-auth-brand .logo-badge {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--gradient-ai);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 4px 10px var(--border-glow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.lg-auth-brand-name {
  font-size: 16.5px;
  font-weight: 850;
  letter-spacing: -0.02em;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lg-auth-back-home {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 14px;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  transition: all 0.18s ease;
  flex-shrink: 0;
}

.lg-auth-back-home:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--bg-subtle);
}

[data-theme="dark"] .lg-auth-back-home {
  background: var(--bg-card);
  border-color: var(--border-color);
  color: var(--text-secondary);
}

[data-theme="dark"] .lg-auth-back-home:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--bg-subtle);
}

/* Main Split Stage */
.lg-auth-stage {
  flex: 1;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px clamp(16px, 2.5vw, 32px) 28px;
  display: grid;
  grid-template-columns: minmax(0, 1.24fr) minmax(360px, 0.76fr);
  gap: clamp(24px, 3.5vw, 48px);
  align-items: center;
  box-sizing: border-box;
}

/* Left Column: Soft Rounded Showcase Panel */
.lg-auth-showcase {
  background: linear-gradient(155deg, #eff6ff 0%, #e0e7ff 52%, #f0f9ff 100%);
  border: 1px solid #dbeafe;
  border-radius: 26px;
  padding: 32px 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  overflow: hidden;
  min-width: 0;
  box-shadow: 0 12px 32px -14px rgba(37, 99, 235, 0.12);
}

[data-theme="dark"] .lg-auth-showcase {
  background: linear-gradient(155deg, rgba(30, 41, 59, 0.85) 0%, rgba(15, 23, 42, 0.95) 100%);
  border-color: rgba(59, 130, 246, 0.22);
}

.lg-auth-showcase-heading {
  font-size: clamp(26px, 2.5vw, 34px);
  font-weight: 850;
  line-height: 1.18;
  letter-spacing: -0.03em;
  color: #0f172a;
  margin: 0;
}

[data-theme="dark"] .lg-auth-showcase-heading {
  color: #f8fafc;
}

/* 2-Row Poster Wall with Dual-Direction Infinite Marquee Animation */
@keyframes authMarqueeLeft {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

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

.lg-auth-poster-wall {
  position: relative;
  margin: 0 -28px;
  padding: 4px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 7%, #000 93%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 7%, #000 93%, transparent 100%);
}

.lg-auth-poster-row {
  width: 100%;
  overflow: hidden;
  display: flex;
}

.lg-auth-poster-track {
  display: flex;
  align-items: stretch;
  gap: 12px;
  width: max-content;
  padding: 4px 6px;
  will-change: transform;
}

.lg-auth-poster-row.row-top .lg-auth-poster-track {
  animation: authMarqueeLeft 34s linear infinite;
}

.lg-auth-poster-row.row-bottom .lg-auth-poster-track {
  animation: authMarqueeRight 38s linear infinite;
}

.lg-auth-poster-row:hover .lg-auth-poster-track {
  animation-play-state: paused;
}

.lg-auth-poster-card {
  position: relative;
  flex: 0 0 124px;
  width: 124px;
  aspect-ratio: 10 / 13.8;
  border-radius: 14px;
  overflow: hidden;
  background: #0f172a;
  border: 1px solid rgba(15, 23, 42, 0.14);
  box-shadow: 0 8px 18px -6px rgba(15, 23, 42, 0.26);
  cursor: pointer;
  transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.26s ease, border-color 0.26s ease;
  user-select: none;
}

.lg-auth-poster-card:hover {
  transform: translateY(-5px) scale(1.035);
  border-color: rgba(96, 165, 250, 0.75);
  box-shadow: 0 16px 28px -6px rgba(37, 99, 235, 0.36);
  z-index: 3;
}

.lg-auth-poster-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.lg-auth-poster-card:hover img {
  transform: scale(1.07);
}

.lg-auth-poster-price {
  position: absolute;
  top: 7px;
  left: 7px;
  z-index: 2;
  padding: 2.5px 7px;
  border-radius: 7px;
  background: rgba(15, 23, 42, 0.84);
  backdrop-filter: blur(4px);
  color: #e2e8f0;
  font-size: 9.8px;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
}

.lg-auth-poster-price strong {
  color: #ffffff;
  font-weight: 800;
}

.lg-auth-poster-shade {
  position: absolute;
  inset: auto 0 0 0;
  padding: 26px 8px 8px;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0) 0%, rgba(2, 6, 23, 0.86) 46%, rgba(2, 6, 23, 0.96) 100%);
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: #ffffff;
}

.lg-auth-poster-cat {
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #60a5fa;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lg-auth-poster-name {
  font-size: 11px;
  font-weight: 800;
  line-height: 1.22;
  color: #ffffff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.lg-auth-poster-sub {
  font-size: 9.2px;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}

/* Bottom 2x2 Perks Grid */
.lg-auth-perks-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
  margin-top: 2px;
}

.lg-auth-perk-card {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 11px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

[data-theme="dark"] .lg-auth-perk-card {
  background: rgba(15, 23, 42, 0.78);
  border-color: rgba(148, 163, 184, 0.16);
}

.lg-auth-perk-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

[data-theme="dark"] .lg-auth-perk-icon {
  background: var(--primary-soft);
  color: var(--primary);
}

.lg-auth-perk-text {
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.38;
  color: #1e293b;
}

[data-theme="dark"] .lg-auth-perk-text {
  color: #e2e8f0;
}

/* Right Column: Elevated Form Card */
.lg-auth-form-col {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
}

.lg-auth-card {
  width: 100%;
  max-width: 420px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 22px;
  padding: 30px 28px 26px;
  box-shadow: 0 20px 48px -16px rgba(15, 23, 42, 0.12);
  box-sizing: border-box;
}

[data-theme="dark"] .lg-auth-card {
  background: #1e293b;
  border-color: rgba(148, 163, 184, 0.2);
  box-shadow: 0 20px 48px -16px rgba(0, 0, 0, 0.5);
}

.lg-auth-accent-bar {
  display: block;
  width: 28px;
  height: 4px;
  border-radius: 999px;
  background: var(--gradient-btn);
  margin-bottom: 14px;
}

.lg-auth-title {
  font-size: 24px;
  font-weight: 850;
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin: 0 0 6px;
}

.lg-auth-subtitle {
  font-size: 13.2px;
  color: var(--text-muted);
  margin: 0 0 22px;
  line-height: 1.45;
}

.lg-auth-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.lg-auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lg-auth-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.lg-auth-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
}

.lg-auth-forgot-link {
  font-size: 12.2px;
  font-weight: 650;
  color: var(--primary);
  text-decoration: none;
}

.lg-auth-forgot-link:hover {
  text-decoration: underline;
}

[data-theme="dark"] .lg-auth-forgot-link {
  color: var(--primary);
}

.lg-auth-input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border-radius: 11px;
  border: 1.5px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-main);
  font-family: inherit;
  font-size: 13.8px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  box-sizing: border-box;
}

.lg-auth-input::placeholder {
  color: var(--text-muted);
}

.lg-auth-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

[data-theme="dark"] .lg-auth-input {
  background: var(--bg-card);
  border-color: var(--border-color);
  color: var(--text-main);
}

[data-theme="dark"] .lg-auth-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

.lg-auth-hint {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.35;
}

.lg-auth-pwd-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.lg-auth-pwd-wrap .lg-auth-input {
  padding-right: 58px;
}

.lg-auth-pwd-toggle {
  position: absolute;
  right: 10px;
  height: 28px;
  padding: 0 8px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 12.2px;
  font-weight: 700;
  cursor: pointer;
  border-radius: 6px;
  transition: color 0.16s ease, background 0.16s ease;
}

.lg-auth-pwd-toggle:hover {
  color: var(--primary);
  background: var(--primary-soft);
}

[data-theme="dark"] .lg-auth-pwd-toggle {
  color: var(--text-muted);
}

[data-theme="dark"] .lg-auth-pwd-toggle:hover {
  color: var(--primary);
}

.lg-auth-submit-btn {
  width: 100%;
  height: 45px;
  margin-top: 4px;
  border: none;
  border-radius: 11px;
  background: var(--gradient-btn);
  color: #ffffff;
  font-family: inherit;
  font-size: 14.2px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 20px -6px var(--border-glow);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.lg-auth-submit-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 12px 24px -6px var(--border-glow);
}

.lg-auth-divider {
  height: 1px;
  background: var(--border-color);
  margin: 20px 0 16px;
}

[data-theme="dark"] .lg-auth-divider {
  background: var(--border-color);
}

.lg-auth-switch-foot {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-wrap: wrap;
}

.lg-auth-switch-foot a {
  color: var(--primary);
  font-weight: 800;
  text-decoration: none;
}

.lg-auth-switch-foot a:hover {
  text-decoration: underline;
}

[data-theme="dark"] .lg-auth-switch-foot a {
  color: var(--primary);
}

/* Responsive Login Panel for Tablet & Mobile (<= 991px) */
@media (max-width: 991px) {
  .lg-auth-stage {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    padding: 18px 14px 88px;
  }

  /* Prioritize Form Card on top on mobile, followed by Perks & Showcase below */
  .lg-auth-form-col {
    order: 1;
  }

  .lg-auth-showcase {
    order: 2;
    padding: 20px 16px;
    border-radius: 20px;
    gap: 16px;
  }

  .lg-auth-card {
    max-width: 100%;
    padding: 22px 18px;
    border-radius: 18px;
  }

  .lg-auth-poster-wall {
    margin: 0 -16px;
    padding: 4px 0;
  }

  .lg-auth-poster-track {
    gap: 10px;
  }

  .lg-auth-poster-card {
    flex: 0 0 112px;
    width: 112px;
  }

  .lg-auth-perks-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 9px;
  }
}

/* ==========================================================================
   8. DEDICATED ACCOUNT MANAGEMENT PANEL (#authAccountStage)
   Displays a separate, full-featured Account Center when logged in
   ========================================================================== */
.lg-account-stage {
  flex: 1;
  width: 100%;
  box-sizing: border-box;
  padding: 24px clamp(16px, 3vw, 40px) 48px;
}

.lg-acc-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* 1. Top Member Identity Banner */
.lg-acc-hero {
  background: linear-gradient(135deg, #ffffff 0%, #eff6ff 60%, #e0e7ff 100%);
  border: 1px solid #bfdbfe;
  border-radius: 22px;
  padding: 22px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  box-shadow: 0 10px 28px -12px rgba(37, 99, 235, 0.14);
}

[data-theme="dark"] .lg-acc-hero {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.92) 0%, rgba(15, 23, 42, 0.96) 100%);
  border-color: rgba(59, 130, 246, 0.28);
}

.lg-acc-user-id {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.lg-acc-avatar {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
  color: #ffffff;
  font-size: 20px;
  font-weight: 850;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 8px 18px -4px rgba(37, 99, 235, 0.4);
}

.lg-acc-user-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lg-acc-user-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.lg-acc-user-title-row h2 {
  font-size: 21px;
  font-weight: 850;
  margin: 0;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.lg-acc-role-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3.5px 10px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(37, 99, 235, 0.24);
  color: #1d4ed8;
  font-size: 11.8px;
  font-weight: 750;
}

.lg-acc-role-badge.is-admin {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.32);
  color: #047857;
}

[data-theme="dark"] .lg-acc-role-badge {
  background: rgba(59, 130, 246, 0.18);
  color: #93c5fd;
}

[data-theme="dark"] .lg-acc-role-badge.is-admin {
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
}

.lg-acc-user-sub {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-muted);
}

.lg-acc-user-sub span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.lg-acc-user-sub i {
  color: #2563eb;
}

.lg-acc-hero-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}

.lg-acc-hero-actions .btn {
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 750;
}

/* 2. 4 KPI Summary Cards */
.lg-acc-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.lg-acc-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.03);
}

.lg-acc-stat-card.is-highlight {
  border-color: #93c5fd;
  background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
}

[data-theme="dark"] .lg-acc-stat-card.is-highlight {
  background: rgba(30, 41, 59, 0.9);
  border-color: rgba(59, 130, 246, 0.35);
}

.lg-acc-stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(37, 99, 235, 0.12);
  color: #2563eb;
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.lg-acc-stat-icon.is-indigo {
  background: rgba(79, 70, 229, 0.12);
  color: #4f46e5;
}

.lg-acc-stat-icon.is-emerald {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
}

.lg-acc-stat-icon.is-amber {
  background: rgba(245, 158, 11, 0.14);
  color: #d97706;
}

.lg-acc-stat-label {
  display: block;
  font-size: 12px;
  font-weight: 650;
  color: var(--text-muted);
  margin-bottom: 3px;
}

.lg-acc-stat-val {
  display: block;
  font-size: 18px;
  font-weight: 850;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.lg-acc-stat-val code {
  font-size: 15px;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(37, 99, 235, 0.08);
  color: #2563eb;
}

/* 3. 2-Column Account Workspace */
.lg-acc-workspace {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.lg-acc-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.lg-acc-nav-btn {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 12px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  text-align: left;
  transition: all 0.18s ease;
}

.lg-acc-nav-btn i {
  width: 18px;
  text-align: center;
  font-size: 14px;
}

.lg-acc-nav-btn:hover {
  background: var(--bg-subtle);
  color: var(--text-main);
}

.lg-acc-nav-btn.active {
  background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
  color: #ffffff;
  box-shadow: 0 6px 16px -4px rgba(37, 99, 235, 0.35);
}

.lg-acc-content {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.lg-acc-panel-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 22px 24px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03);
}

.lg-acc-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-color);
}

.lg-acc-panel-head h4 {
  font-size: 17px;
  font-weight: 850;
  margin: 0 0 4px;
  color: var(--text-main);
}

.lg-acc-panel-head p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

.lg-acc-form-max {
  max-width: 520px;
}

.lg-acc-orders-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lg-acc-order-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 16px;
  border-radius: 13px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
}

.lg-acc-order-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.lg-acc-order-top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.lg-acc-order-code {
  font-size: 12px;
  font-weight: 700;
  color: #2563eb;
}

.lg-acc-status-pill {
  font-size: 11px;
  font-weight: 750;
  padding: 2px 8px;
  border-radius: 999px;
}

.lg-acc-status-pill.is-paid {
  background: rgba(16, 185, 129, 0.14);
  color: #059669;
}

.lg-acc-status-pill.is-wait {
  background: rgba(245, 158, 11, 0.16);
  color: #d97706;
}

.lg-acc-status-pill.is-cancel {
  background: rgba(239, 68, 68, 0.14);
  color: #dc2626;
}

.lg-acc-order-name {
  font-size: 14px;
  font-weight: 750;
  color: var(--text-main);
}

.lg-acc-order-meta {
  font-size: 12.5px;
  color: var(--text-muted);
}

.lg-acc-order-btn {
  padding: 6px 12px;
  font-size: 12.5px;
  border-radius: 9px;
  flex-shrink: 0;
}

.lg-acc-empty {
  text-align: center;
  padding: 28px 16px;
  color: var(--text-muted);
}

.lg-acc-empty i {
  font-size: 32px;
  color: #60a5fa;
  margin-bottom: 10px;
}

.lg-acc-empty p {
  font-size: 13.5px;
  margin: 0 0 14px;
}

.lg-acc-ref-banner {
  background: linear-gradient(135deg, #eff6ff 0%, #e0e7ff 100%);
  border-color: #bfdbfe;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

[data-theme="dark"] .lg-acc-ref-banner {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.95) 100%);
  border-color: rgba(59, 130, 246, 0.3);
}

.lg-acc-ref-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  color: #2563eb;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.lg-acc-ref-banner h4 {
  font-size: 16.5px;
  font-weight: 850;
  margin: 0 0 4px;
  color: var(--text-main);
}

.lg-acc-ref-banner p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

.lg-acc-ref-box {
  display: flex;
  gap: 10px;
  align-items: center;
}

.lg-acc-ref-box .btn {
  height: 44px;
  padding: 0 16px;
  border-radius: 11px;
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 991px) {
  .lg-acc-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lg-acc-workspace {
    grid-template-columns: minmax(0, 1fr);
  }

  .lg-acc-sidebar {
    flex-direction: row;
    overflow-x: auto;
    padding: 6px;
    gap: 6px;
  }

  .lg-acc-nav-btn {
    width: auto;
    white-space: nowrap;
    min-height: 38px;
    padding: 8px 12px;
    font-size: 12.8px;
  }
}

@media (max-width: 640px) {
  .lg-account-stage {
    padding: 16px 14px 88px;
  }

  .lg-acc-hero {
    padding: 16px;
    border-radius: 18px;
  }

  .lg-acc-stats-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .lg-acc-panel-card {
    padding: 16px;
    border-radius: 16px;
  }

  .lg-acc-ref-box {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ==========================================================================
   9. MOBILE ADMIN PANEL RESPONSIVE LAYOUT FIX (<= 991px & <= 640px)
   Fixes .admin-shell 2-column overflow on mobile, converts .admin-sidebar into
   a compact horizontal navigation strip, and ensures all Admin cards, KPIs,
   forms, and tables fit cleanly within 390px viewports.
   ========================================================================== */
@media (max-width: 991px) {
  #view-admin,
  #adminDashboardContent,
  .admin-shell,
  .admin-main,
  #adminTabBody {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .admin-shell {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 14px !important;
    min-height: auto;
  }

  .admin-sidebar {
    position: relative !important;
    top: auto !important;
    width: 100%;
    max-width: 100%;
    padding: 12px !important;
    border-radius: 16px !important;
    box-sizing: border-box;
    overflow: hidden;
  }

  .admin-sidebar-brand {
    margin-bottom: 10px !important;
    padding: 8px 11px !important;
  }

  .admin-nav-group-label {
    display: none !important;
  }

  /* Display all Admin module buttons in a clean 2-column compact grid on mobile */
  .admin-sidebar {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .admin-nav-group {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin: 0 !important;
  }

  .admin-nav-btn {
    width: 100%;
    min-height: 38px;
    padding: 7px 9px !important;
    border-radius: 10px !important;
    font-size: 12px !important;
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    gap: 6px !important;
    min-width: 0;
  }

  .admin-nav-btn-left {
    gap: 6px !important;
    min-width: 0;
    overflow: hidden;
  }

  .admin-nav-btn-left i {
    width: 15px !important;
    font-size: 13px !important;
    flex-shrink: 0;
  }

  .admin-nav-btn.active {
    background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%) !important;
    color: #ffffff !important;
    border-color: #1d4ed8 !important;
  }

  .admin-nav-btn.active .admin-nav-btn-left i {
    color: #ffffff !important;
  }

  .admin-nav-btn.active .admin-nav-badge {
    background: rgba(255, 255, 255, 0.22) !important;
    color: #ffffff !important;
    border-color: transparent !important;
  }

  .admin-nav-badge {
    font-size: 10px !important;
    padding: 1px 6px !important;
    flex-shrink: 0;
    white-space: nowrap;
  }

  .admin-sidebar-footer {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 8px !important;
    margin-top: 4px !important;
    padding-top: 8px !important;
  }

  .admin-sidebar-footer .btn {
    font-size: 11.8px !important;
    padding: 7px 8px !important;
    min-height: 36px;
    white-space: nowrap;
  }

  /* Compact 2x2 KPI Strip on Mobile */
  .admin-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .admin-kpi-card {
    padding: 12px !important;
    gap: 10px !important;
    border-radius: 13px !important;
    min-width: 0;
  }

  .admin-kpi-icon {
    width: 36px !important;
    height: 36px !important;
    border-radius: 9px !important;
    font-size: 14px !important;
  }

  .admin-kpi-label {
    font-size: 11px !important;
  }

  .admin-kpi-val,
  .admin-kpi-value {
    font-size: 14.5px !important;
    word-break: break-word;
  }

  /* Admin Topbar & Cards */
  .admin-topbar {
    padding: 14px 15px !important;
    border-radius: 14px !important;
    flex-direction: column;
    align-items: stretch !important;
    gap: 12px !important;
  }

  .admin-topbar-title h2 {
    font-size: 15.5px !important;
  }

  .admin-card {
    padding: 14px !important;
    border-radius: 14px !important;
    max-width: 100%;
    overflow-x: auto;
    box-sizing: border-box;
  }

  .admin-subtabs {
    display: flex !important;
    overflow-x: auto;
    max-width: 100%;
    flex-wrap: nowrap !important;
    scrollbar-width: none;
  }

  .admin-subtabs::-webkit-scrollbar {
    display: none;
  }

  .admin-subtab-btn {
    white-space: nowrap;
    flex-shrink: 0;
  }

  /* Collapse inline multi-column form grids inside #adminTabBody on mobile */
  #adminTabBody [style*="grid-template-columns:1fr 1fr"],
  #adminTabBody [style*="grid-template-columns: 1fr 1fr"],
  #adminTabBody [style*="grid-template-columns:repeat(2"],
  #adminTabBody [style*="grid-template-columns: repeat(2"],
  #adminTabBody [style*="grid-template-columns:repeat(3"],
  #adminTabBody [style*="grid-template-columns: repeat(3"],
  #adminTabBody [style*="grid-template-columns:2fr 1fr"],
  #adminTabBody [style*="grid-template-columns: 2fr 1fr"],
  #adminTabBody [style*="grid-template-columns:1.2fr 1fr"] {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

@media (max-width: 480px) {
  /* Ensure full brand name fits on Mobile Header Row 1 alongside Admin + VN·Tiếng Việt + Theme */
  .header-modern .container {
    padding-left: 10px;
    padding-right: 10px;
  }

  .logo-badge,
  [data-theme="dark"] .logo-badge {
    width: 28px;
    height: 28px;
    border-radius: 8px;
  }

  .logo-mark,
  .logo-mark.logo-wolf-mark {
    width: 22px;
    height: 22px;
  }

  .header-logo-link {
    gap: 6px;
  }

  .logo-title,
  [data-theme="dark"] .logo-title {
    font-size: 12.8px;
    letter-spacing: -0.03em;
  }

  .header-user-cart {
    gap: 4px;
  }

  .header-lang-toggle,
  [data-theme="dark"] .header-lang-toggle {
    height: 30px;
    padding: 0 7px;
    font-size: 10.5px;
    gap: 3.5px;
    border-radius: 8px;
  }

  .header-lang-toggle i {
    font-size: 11px;
  }

  .header-theme-toggle,
  .theme-toggle-btn,
  [data-theme="dark"] .header-theme-toggle,
  #headerAdminBtn {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    font-size: 12px;
  }

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

/* ==========================================================================
   10. LIVECHAT WIDGET CLEAN LAYOUT & BUBBLE REFINEMENT (#supportWidget)
   Fixes [hidden] override on #supportStart, removes template indentation in
   message bubbles, and creates a balanced, modern chat window & composer bar.
   ========================================================================== */
.support-panel {
  width: min(376px, calc(100vw - 24px));
  height: min(510px, calc(100vh - 150px));
  border-radius: 20px;
  border: 1px solid #dbeafe;
  box-shadow: 0 22px 48px -12px rgba(15, 23, 42, 0.24);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #ffffff;
}

[data-theme="dark"] .support-panel {
  background: #0f172a;
  border-color: rgba(148, 163, 184, 0.22);
}

.support-head {
  padding: 13px 15px;
  background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
  border-bottom: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-shrink: 0;
}

.support-head-info {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.support-head-avatar {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.32);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.support-head strong {
  font-size: 14.5px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
}

.support-head p {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.9);
  margin: 2px 0 0;
  display: flex;
  align-items: center;
  gap: 5px;
}

.support-online-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 2px rgba(52, 211, 153, 0.35);
  display: inline-block;
  flex-shrink: 0;
}

.support-head-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.support-head-zalo {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.38);
  color: #ffffff;
  font-size: 11.8px;
  font-weight: 750;
  text-decoration: none;
  transition: background 0.18s ease;
}

.support-head-zalo:hover {
  background: rgba(255, 255, 255, 0.28);
  color: #ffffff;
}

.support-close {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  transition: background 0.18s ease;
}

.support-close:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Message Thread Area */
.support-messages {
  flex: 1 1 0%;
  min-height: 0;
  overflow-y: auto;
  padding: 14px;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

[data-theme="dark"] .support-messages {
  background: #0b1120;
}

/* Chat Bubbles — Clean Author Header + Pre-Wrap Text Only */
.support-bubble {
  max-width: 86%;
  padding: 10px 13px;
  border-radius: 15px;
  font-size: 13.3px;
  line-height: 1.48;
  white-space: normal !important;
  word-break: break-word;
  display: flex;
  flex-direction: column;
  gap: 5px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.support-bubble.is-shop {
  margin-right: auto;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #0f172a;
  border-bottom-left-radius: 5px;
}

[data-theme="dark"] .support-bubble.is-shop {
  background: #1e293b;
  border-color: rgba(148, 163, 184, 0.2);
  color: #f8fafc;
}

.support-bubble.is-customer {
  margin-left: auto;
  background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%) !important;
  color: #ffffff !important;
  border: none;
  border-bottom-right-radius: 5px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.22);
}

.support-bubble-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 11px;
}

.support-bubble-author {
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #2563eb;
}

[data-theme="dark"] .support-bubble.is-shop .support-bubble-author {
  color: #60a5fa;
}

.support-bubble.is-customer .support-bubble-author {
  color: rgba(255, 255, 255, 0.92);
}

.support-bubble-time {
  font-size: 10.5px;
  opacity: 0.72;
  margin: 0 !important;
  white-space: nowrap;
}

.support-bubble-text {
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.48;
}

.support-empty {
  margin: auto;
  max-width: 260px;
  text-align: center;
  color: #64748b;
  font-size: 12.8px;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 10px;
}

.support-empty i {
  font-size: 28px;
  color: #60a5fa;
}

.support-empty.is-closed-note {
  margin: 4px auto;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.14);
  font-size: 11.5px;
}

/* Unified Bottom Composer Area */
.support-composer-wrap {
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}

[data-theme="dark"] .support-composer-wrap {
  background: #0f172a;
  border-top-color: rgba(148, 163, 184, 0.18);
}

/* Strictly honor [hidden] on #supportStart so it disappears when logged in or chatting */
.support-start[hidden] {
  display: none !important;
}

.support-start {
  padding: 0 !important;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.support-input-compact {
  height: 34px;
  padding: 0 10px !important;
  font-size: 12.2px !important;
  border-radius: 9px !important;
  background: #f8fafc !important;
  border: 1px solid #cbd5e1 !important;
}

[data-theme="dark"] .support-input-compact {
  background: #1e293b !important;
  border-color: rgba(148, 163, 184, 0.25) !important;
}

.support-quick {
  padding: 0 !important;
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  flex-wrap: nowrap;
  scrollbar-width: none;
}

.support-quick::-webkit-scrollbar {
  display: none;
}

.support-chip {
  padding: 4.5px 10px;
  border-radius: 999px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.16s ease;
}

.support-chip:hover {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
}

[data-theme="dark"] .support-chip {
  background: rgba(30, 41, 59, 0.9);
  border-color: rgba(59, 130, 246, 0.3);
  color: #93c5fd;
}

.support-form {
  padding: 0 !important;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.support-textarea {
  height: 40px;
  min-height: 40px;
  max-height: 84px;
  padding: 9px 12px !important;
  border-radius: 11px !important;
  border: 1.5px solid #cbd5e1 !important;
  background: #f8fafc !important;
  font-size: 13px !important;
  line-height: 1.38;
  box-sizing: border-box;
}

.support-textarea:focus {
  outline: none;
  border-color: #2563eb !important;
  background: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

[data-theme="dark"] .support-textarea {
  background: #1e293b !important;
  border-color: rgba(148, 163, 184, 0.28) !important;
  color: #f8fafc !important;
}

.support-send {
  height: 40px;
  padding: 0 14px;
  border-radius: 11px;
  background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%) !important;
  color: #ffffff !important;
  font-size: 13px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.28);
  transition: transform 0.16s ease, filter 0.16s ease;
}

.support-send:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

/* ============================================================
   DUAL CURRENCY PRICE BADGE (VND + USD $ EQUIVALENT)
   ============================================================ */
.lg-card-price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}

.lg-card-price-usd {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
  color: #047857;
  background: rgba(16, 185, 129, 0.11);
  border: 1px solid rgba(16, 185, 129, 0.28);
  white-space: nowrap;
}

[data-theme="dark"] .lg-card-price-usd {
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.16);
  border-color: rgba(52, 211, 153, 0.34);
}

.lg-buy-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.lg-buy-price-usd {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
  color: #047857;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  white-space: nowrap;
}

[data-theme="dark"] .lg-buy-price-usd {
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.18);
  border-color: rgba(52, 211, 153, 0.36);
}

.lg-plan-price {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  flex-wrap: wrap;
}

.lg-plan-price-usd {
  font-size: 11px;
  font-weight: 700;
  color: #059669;
  font-variant-numeric: tabular-nums;
}

[data-theme="dark"] .lg-plan-price-usd {
  color: #34d399;
}

.lg-auth-poster-price em {
  font-style: normal;
  font-weight: 800;
  color: #6ee7b7;
}

@media (max-width: 640px) {
  .lg-card-price-usd {
    font-size: 10.5px;
    padding: 1.5px 6px;
  }

  .lg-buy-price-usd {
    font-size: 12px;
    padding: 2px 7.5px;
  }
}

/* ============================================================
   ADMIN CUSTOMER IP BADGE & QUICK FILTER PILL
   ============================================================ */
.badge-ip-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  font-weight: 700;
  color: #1e40af;
  background: rgba(37, 99, 235, 0.09);
  border: 1px solid rgba(37, 99, 235, 0.25);
  cursor: pointer;
  transition: all 0.16s ease;
  white-space: nowrap;
}

.badge-ip-pill:hover {
  background: rgba(37, 99, 235, 0.16);
  border-color: rgba(37, 99, 235, 0.45);
  transform: translateY(-1px);
}

[data-theme="dark"] .badge-ip-pill {
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.16);
  border-color: rgba(96, 165, 250, 0.34);
}

.badge-ip-filter-btn {
  display: inline-flex;
  align-items: center;
  padding: 2.5px 7px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.badge-ip-filter-btn:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: rgba(37, 99, 235, 0.06);
}

/* ============================================
   CUSTOM OUT-OF-STOCK RIBBON STYLES & ADMIN STOCK TOGGLE
   ============================================ */
.out-of-stock-ribbon.style-amber {
  background: rgba(245, 158, 11, 0.94);
}
.out-of-stock-ribbon.style-red {
  background: linear-gradient(90deg, rgba(225, 29, 72, 0.95), rgba(190, 18, 60, 0.95));
}
.out-of-stock-ribbon.style-slate {
  background: rgba(15, 23, 42, 0.9);
}
.out-of-stock-ribbon.style-indigo {
  background: linear-gradient(90deg, rgba(79, 70, 229, 0.95), rgba(124, 58, 237, 0.95));
}

.adm-stock-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.16s ease;
  white-space: nowrap;
}

.adm-stock-toggle-btn.is-in {
  color: #047857;
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.35);
}

.adm-stock-toggle-btn.is-in:hover {
  background: rgba(16, 185, 129, 0.22);
  transform: translateY(-1px);
}

.adm-stock-toggle-btn.is-out {
  color: #b45309;
  background: rgba(245, 158, 11, 0.16);
  border-color: rgba(245, 158, 11, 0.45);
}

.adm-stock-toggle-btn.is-out:hover {
  background: rgba(245, 158, 11, 0.28);
  transform: translateY(-1px);
}

/* ============================================
   LICENSEGO PRODUCT ARTWORK FRAMING (800x500 / 16:10)
   ============================================ */
.product-card-modern .product-card-image-wrapper {
  aspect-ratio: 16 / 10;
  background: #f1f5f9;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.product-card-modern .product-card-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card-modern:not(.product-disable):hover .product-card-image-wrapper img {
  transform: scale(1.04);
}

.qb-hero-thumb {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

/* ============================================
   COUPON POPUP MODAL (NEW MEMBER & VOUCHER HUB)
   ============================================ */
.coupon-popup-box {
  max-width: 560px;
  border-radius: 20px;
  overflow: hidden;
}

.coupon-popup-header {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-bottom: 1px solid #bfdbfe;
}

.coupon-popup-header h4 {
  color: #1e3a8a;
  display: flex;
  align-items: center;
  gap: 9px;
}

.coupon-popup-header h4 i {
  color: #2563eb;
}

.coupon-popup-welcome-banner {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 14px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border: 1px solid #6ee7b7;
  margin-bottom: 16px;
}

.coupon-popup-welcome-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #10b981;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  flex-shrink: 0;
  box-shadow: 0 6px 14px rgba(16, 185, 129, 0.25);
}

.coupon-popup-welcome-text strong {
  display: block;
  font-size: 15px;
  font-weight: 800;
  color: #065f46;
  margin-bottom: 4px;
}

.coupon-popup-welcome-text p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #047857;
}

.coupon-popup-subbanner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  font-size: 13px;
  color: #475569;
  margin-bottom: 14px;
}

.coupon-popup-subbanner i {
  color: #2563eb;
  font-size: 15px;
  flex-shrink: 0;
}

.coupon-voucher-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.coupon-voucher-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 118px;
  align-items: stretch;
  background: #ffffff;
  border: 1.5px solid #dbeafe;
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

.coupon-voucher-card:hover {
  transform: translateY(-2px);
  border-color: #60a5fa;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.10);
}

.coupon-voucher-left {
  background: linear-gradient(155deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 8px;
  border-right: 2px dashed rgba(255, 255, 255, 0.45);
  text-align: center;
}

.coupon-voucher-amount {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.coupon-voucher-unit {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.88;
  margin-top: 3px;
}

.coupon-voucher-mid {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-width: 0;
}

.coupon-voucher-toprow {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.coupon-voucher-code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13.5px;
  font-weight: 800;
  color: #1d4ed8;
  background: #eff6ff;
  border: 1px dashed #93c5fd;
  padding: 2px 9px;
  border-radius: 6px;
}

.coupon-voucher-remain {
  font-size: 11px;
  font-weight: 700;
  color: #059669;
  background: #ecfdf5;
  padding: 2px 7px;
  border-radius: 999px;
}

.coupon-voucher-desc {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.4;
}

.coupon-voucher-cond {
  font-size: 11.5px;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 5px;
}

.coupon-voucher-cond i {
  color: #2563eb;
}

.coupon-voucher-right {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  border-left: 1px solid #f1f5f9;
  background: #f8fafc;
}

.coupon-btn-use {
  border: none;
  border-radius: 8px;
  background: #2563eb;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: background 0.16s ease, transform 0.16s ease;
}

.coupon-btn-use:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

.coupon-btn-copy {
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  color: #334155;
  font-size: 11.5px;
  font-weight: 700;
  padding: 6px 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all 0.16s ease;
}

.coupon-btn-copy:hover {
  border-color: #2563eb;
  color: #2563eb;
  background: #eff6ff;
}

.coupon-btn-copy.is-copied {
  border-color: #10b981;
  background: #ecfdf5;
  color: #059669;
}

[data-theme="dark"] .coupon-popup-header {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.22) 0%, rgba(30, 58, 138, 0.28) 100%);
  border-bottom-color: rgba(96, 165, 250, 0.25);
}

[data-theme="dark"] .coupon-popup-header h4 {
  color: #eff6ff;
}

[data-theme="dark"] .coupon-popup-welcome-banner {
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(52, 211, 153, 0.35);
}

[data-theme="dark"] .coupon-popup-welcome-text strong {
  color: #6ee7b7;
}

[data-theme="dark"] .coupon-popup-welcome-text p {
  color: #a7f3d0;
}

[data-theme="dark"] .coupon-popup-subbanner {
  background: rgba(30, 41, 59, 0.7);
  border-color: rgba(148, 163, 184, 0.2);
  color: #cbd5e1;
}

[data-theme="dark"] .coupon-voucher-card {
  background: #1e293b;
  border-color: rgba(96, 165, 250, 0.28);
}

[data-theme="dark"] .coupon-voucher-desc {
  color: #f8fafc;
}

[data-theme="dark"] .coupon-voucher-cond {
  color: #94a3b8;
}

[data-theme="dark"] .coupon-voucher-right {
  background: rgba(15, 23, 42, 0.5);
  border-left-color: rgba(148, 163, 184, 0.15);
}

[data-theme="dark"] .coupon-btn-copy {
  background: #0f172a;
  border-color: rgba(148, 163, 184, 0.3);
  color: #e2e8f0;
}

@media (max-width: 575px) {
  .coupon-voucher-card {
    grid-template-columns: 76px minmax(0, 1fr);
  }
  .coupon-voucher-right {
    grid-column: 1 / -1;
    flex-direction: row;
    border-left: none;
    border-top: 1px solid #f1f5f9;
    padding: 8px 12px;
  }
  .coupon-btn-use,
  .coupon-btn-copy {
    flex: 1;
  }
}

/* ============================================
   REALTIME AI & TECH BLOG ENGINE STYLES
   ============================================ */
.blog-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.14);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.38);
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}

.blog-live-dot,
.blog-rt-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.65);
  animation: blogPulseDot 1.8s infinite;
}

@keyframes blogPulseDot {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.65); }
  70% { box-shadow: 0 0 0 7px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.blog-realtime-toolbar {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 12px 16px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}

.blog-rt-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px dashed var(--border-color);
  font-size: 12.5px;
  color: var(--text-muted);
}

.blog-rt-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.blog-rt-sources {
  color: var(--primary);
  font-weight: 600;
}

.blog-rt-count {
  font-weight: 800;
  color: var(--text-main);
  background: var(--bg-subtle);
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
}

.blog-rt-filter-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.blog-rt-pill {
  border: 1px solid var(--border-color);
  background: var(--bg-subtle);
  color: var(--text-main);
  font-size: 12.5px;
  font-weight: 700;
  padding: 6px 13px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.16s ease;
}

.blog-rt-pill:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.blog-rt-pill.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.22);
}

.blog-realtime-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
}

.blog-rt-card {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog-card-live-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(15, 23, 42, 0.82);
  color: #34d399;
  font-size: 10.5px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}

.blog-rt-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-rt-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.blog-rt-source-tag {
  font-weight: 700;
  color: var(--primary);
  background: rgba(37, 99, 235, 0.08);
  padding: 2px 8px;
  border-radius: 6px;
}

.blog-rt-card-title {
  font-size: 16.5px;
  line-height: 1.42;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-rt-card-excerpt {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 14px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-rt-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border-color);
}

.blog-rt-btn-read,
.blog-rt-btn-ext,
.blog-rt-btn-prod {
  padding: 7px 12px;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
}

.blog-reader-hero {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: #0f172a;
  margin-bottom: 14px;
}

.blog-reader-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-reader-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.blog-reader-title {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.38;
  margin: 0 0 14px;
  color: var(--text-main);
}

.blog-reader-content {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--text-main);
  background: var(--bg-subtle);
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  margin-bottom: 16px;
}

.blog-reader-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* ==========================================================================
   Mobile 2-Column Vertical Product Grid & Category View-All Action
   ========================================================================== */
.lg-cat-viewmore-row {
  margin-top: 14px;
  text-align: center;
  display: flex;
  justify-content: center;
}

.btn-cat-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 440px;
  padding: 11px 20px;
  background: #eff6ff;
  border: 1.5px solid #93c5fd;
  border-radius: 12px;
  color: #1d4ed8;
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.08);
  font-family: inherit;
}

[data-theme="dark"] .btn-cat-more {
  background: rgba(37, 99, 235, 0.14);
  border-color: rgba(59, 130, 246, 0.4);
  color: #60a5fa;
}

.btn-cat-more:hover,
.btn-cat-more:active {
  background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
  border-color: #1d4ed8;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.25);
}

.btn-cat-more i {
  transition: transform 0.2s ease;
}

.btn-cat-more:hover i {
  transform: translateX(3px);
}

@media (max-width: 991px) {
  body:not(.admin-mode-active) .navbar-modern {
    display: block !important;
    background: var(--bg-card, #ffffff);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 10px -4px rgba(15, 23, 42, 0.06);
  }

  .navbar-modern .container {
    padding-left: 10px;
    padding-right: 10px;
  }

  .navbar-modern-list {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    justify-content: flex-start !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 8px 2px !important;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .navbar-modern-list::-webkit-scrollbar {
    display: none;
  }

  .navbar-modern-list > li {
    flex-shrink: 0;
  }

  .navbar-modern-link {
    padding: 6px 12px !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
    border: 1px solid var(--border-color);
    background: var(--bg-subtle, #f8fafc);
    border-radius: 999px;
  }

  .navbar-modern-link.active:not(.nav-zalo-pill) {
    background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%) !important;
    color: #ffffff !important;
    border-color: #1d4ed8 !important;
  }

  .navbar-modern-link.active:not(.nav-zalo-pill) i {
    color: #ffffff !important;
  }
}

@media (max-width: 768px) {
  .lg-catalog-sheet-foot {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .lg-catalog-quick-btn {
    font-size: 12.2px !important;
    padding: 0 10px !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .product-grid-modern,
  .product-grid-modern.is-carousel-row,
  .product-grid-modern.is-grid-view {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-auto-flow: row !important;
    grid-auto-columns: unset !important;
    gap: 10px 9px !important;
    overflow-x: visible !important;
    padding: 0 !important;
  }

  .product-grid-modern > .prod-item,
  .product-grid-modern.is-carousel-row > .prod-item {
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
  }
}







