@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;450;500;550;600;700&display=swap');

/* ==========================================================================
   CỬA HÀNG SỐ - MODERN DIGITAL STORE THEME
   Inspired by modern digital software stores (Shopviet247 style)
   Clean, Responsive, Light/Dark Modes, Zero External Dependencies
   ========================================================================== */

:root {
  /* Color Palette - Light Mode (Monochrome Luxury) */
  --bg-body: #f8fafc;
  --bg-surface: #ffffff;
  --bg-elevated: #f4f4f5;
  --bg-card: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.9);

  --text-primary: #09090b;
  --text-secondary: #52525b;
  --text-muted: #71717a;
  --text-inverse: #ffffff;

  --border-light: #e4e4e7;
  --border-subtle: #f4f4f5;
  --border-focus: #09090b;

  /* Accent Colors - Black & White / Metallic Silver */
  --primary: #09090b;
  --primary-hover: #27272a;
  --primary-subtle: #f4f4f5;
  --primary-gradient: linear-gradient(135deg, #18181b 0%, #09090b 100%);

  --accent-cyan: #09090b;
  --accent-rose: #ef4444;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;

  --badge-green-bg: #ecfdf5;
  --badge-green-text: #059669;
  --badge-hot-bg: #fef2f2;
  --badge-hot-text: #dc2626;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  --shadow-glow: 0 0 25px rgba(0, 0, 0, 0.08);

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Transitions */
  --transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Dark Mode Variables (Matching Login Theme - Deep Obsidian & Pure White) */
html.dark {
  --bg-body: #09090b;
  --bg-surface: #121215;
  --bg-elevated: #18181c;
  --bg-card: #121215;
  --bg-glass: rgba(18, 18, 21, 0.88);

  --text-primary: #ffffff;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --text-inverse: #09090b;

  --border-light: #27272a;
  --border-subtle: #1a1a1f;
  --border-focus: #ffffff;

  --primary: #ffffff;
  --primary-hover: #e4e4e7;
  --primary-subtle: rgba(255, 255, 255, 0.08);
  --primary-gradient: linear-gradient(135deg, #ffffff 0%, #f4f4f5 100%);

  --badge-green-bg: rgba(16, 185, 129, 0.15);
  --badge-green-text: #34d399;
  --badge-hot-bg: rgba(239, 68, 68, 0.15);
  --badge-hot-text: #f87171;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 10px 20px -3px rgba(0, 0, 0, 0.7);
  --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.8);
  --shadow-glow: 0 0 30px rgba(255, 255, 255, 0.08);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-body);
  color: var(--text-primary);
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: -0.01em;
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

button, input {
  font-family: inherit;
}

/* Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================================
   HEADER / NAVBAR
   ========================================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-logo {
  height: 42px;
  width: auto;
  display: block;
  color: var(--text-primary);
}

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

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

.nav-link:hover, .nav-link.active {
  color: var(--primary);
  background-color: var(--primary-subtle);
}

.nav-link.active {
  font-weight: 600;
}

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

/* Icon Buttons */
.btn-icon {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: var(--bg-surface);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.btn-icon:hover {
  background: var(--bg-elevated);
  border-color: var(--primary);
  color: var(--primary);
}

.badge-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--accent-rose);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  box-shadow: 0 2px 4px rgba(244, 63, 94, 0.4);
}

/* Primary Action Button - Luxury Monochrome */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: var(--text-inverse);
  font-size: 14px;
  font-weight: 700;
  border: 1px solid var(--border-light);
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  opacity: 0.92;
  transform: translateY(-1px);
  background: var(--primary-hover);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--border-light);
  cursor: pointer;
  transition: var(--transition);
}

.btn-secondary:hover {
  background: var(--border-light);
}

.mobile-toggle {
  display: none;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  padding: 40px 0 20px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  align-items: center;
}

.hero-content {
  background: var(--bg-card);
  padding: 40px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: var(--primary-subtle);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 rgba(16, 185, 129, 0.6);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-title {
  font-size: 38px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.8px;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.hero-title .gradient-text {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 28px;
}

/* Search Bar */
.search-box {
  display: flex;
  align-items: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 6px 6px 6px 16px;
  gap: 12px;
  transition: var(--transition);
}

.search-box:focus-within {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(161, 161, 170, 0.2);
  background: var(--bg-surface);
}

.search-box svg {
  color: var(--text-muted);
  flex-shrink: 0;
}

.search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 15px;
  color: var(--text-primary);
}

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

/* Quick Tags */
.quick-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.tag-chip {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.tag-chip:hover, .tag-chip.active {
  background: var(--primary);
  color: var(--text-inverse);
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

/* Hero Banner Right */
.hero-banner-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
}

.hero-banner-wrapper:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.hero-banner-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
}

/* ==========================================================================
   TRUST BADGES / FEATURES GRID
   ========================================================================== */
.features-section {
  padding: 20px 0 40px;
}

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

.feature-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-card);
  padding: 18px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.feature-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--primary-subtle);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.feature-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.35;
}

/* ==========================================================================
   CATEGORY TABS BAR
   ========================================================================== */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.section-count {
  font-size: 13px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: var(--bg-elevated);
  color: var(--text-muted);
}

.category-slider {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 32px;
  scrollbar-width: thin;
}

.category-slider::-webkit-scrollbar {
  height: 4px;
}

.category-slider::-webkit-scrollbar-thumb {
  background: var(--border-light);
  border-radius: 4px;
}

.category-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.category-pill:hover {
  background: var(--bg-elevated);
  border-color: var(--border-focus);
}

.category-pill.active {
  background: var(--text-primary);
  color: var(--text-inverse);
  border-color: var(--text-primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.category-pill .pill-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  background: var(--primary-subtle);
  color: var(--primary);
}

.category-pill.active .pill-badge {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

/* ==========================================================================
   PRODUCT GRID & CARDS
   ========================================================================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 50px;
}

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

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

.product-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #0d1117;
  overflow: hidden;
  cursor: pointer;
}

.product-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.product-badge-float {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  backdrop-filter: blur(8px);
}

.product-badge-float.hot {
  background: rgba(244, 63, 94, 0.9);
  color: #fff;
}

.product-badge-float.deal {
  background: rgba(16, 185, 129, 0.9);
  color: #fff;
}

.product-badge-float.popular {
  background: rgba(24, 24, 27, 0.92);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.product-category-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 42px;
  cursor: pointer;
}

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

.product-stock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--badge-green-text);
  background: var(--badge-green-bg);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  width: fit-content;
  margin-bottom: 14px;
}

.product-stock.out {
  color: var(--badge-hot-text);
  background: var(--badge-hot-bg);
}

.product-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.price-wrap {
  display: flex;
  flex-direction: column;
}

.price-original {
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: line-through;
  line-height: 1;
  margin-bottom: 4px;
}

.price-current {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.product-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-buy-now {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: var(--text-primary);
  color: var(--text-inverse);
  font-size: 13px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-buy-now:hover {
  background: var(--primary);
  color: #fff;
}

.btn-add-cart {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.btn-add-cart:hover {
  background: var(--primary-subtle);
  color: var(--primary);
  border-color: var(--primary);
}

/* ==========================================================================
   VPS CLOUD SECTION
   ========================================================================== */
.vps-section {
  padding: 30px 0 50px;
}

.vps-header-box {
  background: var(--bg-card);
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.vps-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  padding: 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.vps-card.popular {
  border-color: var(--border-focus);
  box-shadow: var(--shadow-md);
}

.vps-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.vps-badge-popular {
  position: absolute;
  top: -12px;
  right: 20px;
  background: var(--primary);
  color: var(--text-inverse);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.vps-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.vps-price-box {
  margin: 12px 0 20px;
}

.vps-price {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-primary);
}

.vps-period {
  font-size: 13px;
  color: var(--text-muted);
}

.vps-discount {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--badge-green-text);
  background: var(--badge-green-bg);
  padding: 2px 8px;
  border-radius: 4px;
  margin-top: 4px;
}

.vps-specs-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
  flex: 1;
}

.vps-spec-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}

.vps-spec-item svg {
  color: var(--accent-emerald);
  flex-shrink: 0;
}

/* ==========================================================================
   SHOPPING CART DRAWER
   ========================================================================== */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.cart-overlay.active {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: 100%;
  max-width: 420px;
  height: 100%;
  background: var(--bg-surface);
  z-index: 201;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-drawer.active {
  right: 0;
}

.cart-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-title {
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-body {
  padding: 20px 24px;
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart-empty {
  margin: auto;
  text-align: center;
  color: var(--text-muted);
}

.cart-empty svg {
  width: 64px;
  height: 64px;
  margin-bottom: 12px;
  opacity: 0.5;
}

.cart-item {
  display: flex;
  gap: 14px;
  padding: 12px;
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  align-items: center;
}

.cart-item-thumb {
  width: 60px;
  height: 50px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: #0f172a;
}

.cart-item-info {
  flex: 1;
  min-width: 0;
}

.cart-item-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  margin-top: 2px;
}

.cart-qty-ctrl {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 2px;
}

.qty-btn {
  width: 24px;
  height: 24px;
  border: none;
  background: transparent;
  color: var(--text-primary);
  cursor: pointer;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-val {
  font-size: 12px;
  font-weight: 600;
  min-width: 20px;
  text-align: center;
}

.cart-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border-light);
  background: var(--bg-surface);
}

.cart-subtotal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  font-size: 15px;
  font-weight: 600;
}

.cart-total-amount {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
}

/* ==========================================================================
   CHECKOUT / VIETQR MODAL
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: modalIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalIn {
  from { transform: scale(0.95) translateY(10px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 18px;
  font-weight: 700;
}

.modal-body {
  padding: 24px;
}

.qr-box {
  background: #ffffff;
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px solid #e2e8f0;
  text-align: center;
  margin-bottom: 20px;
  color: #0f172a;
}

.qr-image {
  width: 220px;
  height: 220px;
  margin: 0 auto 12px;
  display: block;
  border-radius: 8px;
}

.bank-detail-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  font-size: 13px;
}

.bank-detail-label {
  color: var(--text-muted);
}

.bank-detail-val {
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-copy {
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--primary-subtle);
  color: var(--primary);
  border: none;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

/* ==========================================================================
   TOAST NOTIFICATION
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 400;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-lg);
  pointer-events: auto;
  animation: toastIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  font-size: 14px;
  font-weight: 500;
}

.toast.success {
  border-left: 4px solid var(--accent-emerald);
}

.toast.info {
  border-left: 4px solid var(--primary);
}

@keyframes toastIn {
  from { transform: translateX(50px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border-light);
  padding: 60px 0 30px;
  margin-top: 60px;
}

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

.footer-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 16px 0 20px;
}

.footer-heading {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 18px;
}

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

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

.footer-links a:hover {
  color: var(--primary);
  transform: translateX(4px);
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .vps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Mobile Drawer & Overlay */
.mobile-only {
  display: none;
}

.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 199;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 290px;
  max-width: 85vw;
  background: var(--bg-surface);
  border-left: 1px solid var(--border-light);
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.25);
  z-index: 200;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  padding: 20px;
}

.mobile-nav-drawer.open {
  transform: translateX(0);
}

.mobile-nav-overlay.active {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 16px;
}

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

.mobile-nav-links a {
  display: block;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14.5px;
  color: var(--text-primary);
  background: var(--bg-elevated);
  transition: var(--transition);
}

.mobile-nav-links a:hover {
  background: var(--border-light);
  color: var(--text-primary);
}

@media (max-width: 768px) {
  .mobile-only {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
  }
  .nav-menu {
    display: none;
  }
  .hero-content {
    padding: 20px 16px;
  }
  .hero-title {
    font-size: 24px;
    line-height: 1.3;
  }
  .hero-subtitle {
    font-size: 14px;
  }
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .product-card {
    padding: 14px;
  }
  .product-title {
    font-size: 14px;
  }
  .product-price {
    font-size: 16px;
  }
  .vps-grid {
    grid-template-columns: 1fr;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

/* Pagination Global Styles */
.pagination-wrap {
  transition: var(--transition);
}

.pg-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: var(--bg-surface);
  color: var(--text-primary);
  font-size: 13.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
}

.pg-btn:hover:not(:disabled) {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--bg-elevated);
}

.pg-btn.active {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: var(--text-inverse) !important;
  box-shadow: var(--shadow-sm);
}

.pg-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Top Header Actions Unified Layout (Desktop & Mobile) */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.user-avatar-tag {
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: var(--transition);
  padding: 0 10px;
  gap: 8px;
  max-width: 140px;
  overflow: hidden;
  white-space: nowrap;
  box-sizing: border-box;
}

.user-name-tag {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 85px;
  display: inline-block;
  line-height: 1;
}

.user-avatar-circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #2563eb;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.admin-portal-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #fff;
  height: 38px;
  box-sizing: border-box;
  transition: var(--transition);
}

.admin-portal-tag:hover {
  opacity: 0.92;
  color: #fff;
}

/* User logged-in state on mobile hides hamburger drawer toggle */
body.user-logged-in #mobileMenuToggle {
  display: none !important;
}

@media (max-width: 768px) {
  .header-actions {
    gap: 6px !important;
  }
  .header-user-box {
    gap: 6px !important;
  }
  .user-avatar-tag {
    width: 36px !important;
    height: 36px !important;
    padding: 0 !important;
  }
  .user-avatar-tag span {
    display: none !important;
  }
  .admin-portal-tag {
    width: 36px !important;
    height: 36px !important;
    padding: 0 !important;
  }
  .admin-portal-tag span {
    display: none !important;
  }
  .header-actions .btn-icon {
    width: 36px !important;
    height: 36px !important;
  }
}

@media (max-width: 480px) {
  .header-inner {
    height: 60px;
    gap: 8px;
  }
  .brand-logo {
    height: 32px;
  }
  #headerLoginBtn span {
    display: none;
  }
  #headerLoginBtn {
    padding: 8px 10px;
  }
  .products-grid {
    grid-template-columns: 1fr;
  }
  .category-pill-btn {
    padding: 8px 14px;
    font-size: 13px;
  }
}

