/* ============================================================
   MAIN CSS - DESIGN SYSTEM
   VMaxShop MMO Resources Platform
   ============================================================ */

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

/* ============================================================
   CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   ============================================================ */
:root {
  /* Brand Colors */
  --brand-primary: #6366f1;
  --brand-primary-dark: #4f46e5;
  --brand-primary-light: #818cf8;
  --brand-secondary: #06b6d4;
  --brand-accent: #f59e0b;
  --brand-success: #10b981;
  --brand-warning: #f59e0b;
  --brand-danger: #ef4444;
  --brand-info: #3b82f6;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #06b6d4 100%);
  --gradient-secondary: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
  --gradient-warm: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
  --gradient-cool: linear-gradient(135deg, #06b6d4 0%, #6366f1 100%);
  --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);

  /* Dark Mode (default) */
  --bg-primary: #0a0a0f;
  --bg-secondary: #111118;
  --bg-tertiary: #1a1a2e;
  --bg-card: #16213e;
  --bg-card-hover: #1e2a4a;
  --bg-glass: rgba(255, 255, 255, 0.04);
  --bg-glass-hover: rgba(255, 255, 255, 0.08);
  --bg-input: rgba(255, 255, 255, 0.06);

  /* Text */
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-inverse: #0a0a0f;

  /* Borders */
  --border-color: rgba(255, 255, 255, 0.08);
  --border-color-hover: rgba(255, 255, 255, 0.15);
  --border-glass: rgba(255, 255, 255, 0.12);
  --border-primary: rgba(99, 102, 241, 0.3);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 24px 72px rgba(0, 0, 0, 0.6);
  --shadow-primary: 0 8px 32px rgba(99, 102, 241, 0.25);
  --shadow-success: 0 8px 32px rgba(16, 185, 129, 0.25);
  --shadow-danger: 0 8px 32px rgba(239, 68, 68, 0.25);
  --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.15);

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;

  /* Typography */
  --font-sans: 'Inter', 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-display: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;

  /* Transitions */
  --transition-fast: all 0.15s ease;
  --transition-base: all 0.25s ease;
  --transition-slow: all 0.4s ease;
  --transition-bounce: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Z-index */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-toast: 1070;
  --z-top: 9999;

  /* Header heights */
  --top-header-height: 40px;
  --header-height: 72px;
  --navbar-height: 56px;
  --total-header: calc(var(--top-header-height) + var(--header-height) + var(--navbar-height));
}

/* Light mode variables */
[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-tertiary: #e2e8f0;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;
  --bg-glass: rgba(0, 0, 0, 0.03);
  --bg-glass-hover: rgba(0, 0, 0, 0.06);
  --bg-input: rgba(0, 0, 0, 0.04);

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --text-inverse: #f8fafc;

  --border-color: rgba(0, 0, 0, 0.08);
  --border-color-hover: rgba(0, 0, 0, 0.15);
  --border-glass: rgba(0, 0, 0, 0.1);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 24px 72px rgba(0, 0, 0, 0.12);
}

/* ============================================================
   BASE RESET & TYPOGRAPHY
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: rgba(99, 102, 241, 0.3);
  color: var(--text-primary);
}

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb {
  background: var(--brand-primary);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover { background: var(--brand-primary-dark); }

a { color: inherit; text-decoration: none; transition: var(--transition-fast); }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: var(--font-sans); }

/* ============================================================
   TOP HEADER
   ============================================================ */
.top-header {
  height: var(--top-header-height);
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  font-size: 12px;
  color: var(--text-secondary);
  overflow: hidden;
}

.top-header .container-fluid {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: 0 var(--space-6);
}

.top-header-left {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  overflow: hidden;
}

.top-header-marquee {
  display: flex;
  gap: var(--space-8);
  white-space: nowrap;
  animation: marquee 30s linear infinite;
}

.top-header-marquee:hover { animation-play-state: paused; }

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

.top-header-notice {
  color: var(--brand-accent);
  font-weight: 500;
}

.top-header-notice i { margin-right: 4px; }

.top-header-right {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  flex-shrink: 0;
}

.top-header-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 12px;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.top-header-link:hover {
  color: var(--text-primary);
  background: var(--bg-glass);
}

.top-header-separator {
  width: 1px;
  height: 14px;
  background: var(--border-color);
}

/* Currency/Language Dropdown */
.th-dropdown {
  position: relative;
}

.th-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: var(--space-2);
  min-width: 140px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: var(--transition-base);
  z-index: var(--z-dropdown);
}

.th-dropdown:hover .th-dropdown-menu,
.th-dropdown.active .th-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.th-dropdown-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: var(--text-secondary);
  transition: var(--transition-fast);
  cursor: pointer;
}

.th-dropdown-item:hover,
.th-dropdown-item.active {
  background: var(--bg-glass);
  color: var(--text-primary);
}

/* ============================================================
   MAIN HEADER
   ============================================================ */
.site-header {
  height: var(--header-height);
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: var(--z-fixed);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: var(--transition-base);
}

.site-header.scrolled {
  background: rgba(17, 17, 24, 0.95);
  box-shadow: var(--shadow-md);
}

[data-theme="light"] .site-header.scrolled {
  background: rgba(255, 255, 255, 0.95);
}

.site-header .container-fluid {
  height: 100%;
  display: flex;
  align-items: center;
  gap: var(--space-5);
  padding: 0 var(--space-6);
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  flex-shrink: 0;
}

.site-logo-icon {
  width: 40px;
  height: 40px;
  background: var(--gradient-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  font-weight: 800;
  box-shadow: var(--shadow-primary);
  transition: var(--transition-bounce);
}

.site-logo:hover .site-logo-icon {
  transform: scale(1.1) rotate(-5deg);
}

.site-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.site-logo-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}

.site-logo-tagline {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Search Bar */
.header-search {
  flex: 1;
  max-width: 500px;
  position: relative;
}

.header-search-form {
  display: flex;
  align-items: center;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 0 var(--space-4);
  height: 44px;
  transition: var(--transition-base);
  overflow: hidden;
}

.header-search-form:focus-within {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
  background: var(--bg-glass-hover);
}

.header-search-icon {
  color: var(--text-muted);
  font-size: 14px;
  flex-shrink: 0;
}

.header-search-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  padding: 0 var(--space-3);
  color: var(--text-primary);
  font-size: 14px;
  width: 100%;
}

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

.header-search-btn {
  background: var(--gradient-primary);
  border: none;
  color: white;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  transition: var(--transition-base);
  flex-shrink: 0;
}

.header-search-btn:hover { opacity: 0.9; transform: scale(1.02); }

/* Search Dropdown */
.header-search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  max-height: 400px;
  overflow-y: auto;
  z-index: var(--z-dropdown);
  display: none;
  padding: var(--space-2);
}

.header-search-results.show { display: block; }

.search-result-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
  cursor: pointer;
}

.search-result-item:hover { background: var(--bg-glass); }

.search-result-img {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.search-result-info { flex: 1; min-width: 0; }

.search-result-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-category {
  font-size: 11px;
  color: var(--text-muted);
}

.search-result-price {
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-primary);
  flex-shrink: 0;
}

.search-result-no-data {
  text-align: center;
  padding: var(--space-6);
  color: var(--text-muted);
  font-size: 13px;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
}

.header-action-btn {
  position: relative;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  transition: var(--transition-base);
  cursor: pointer;
  text-decoration: none;
}

.header-action-btn:hover {
  color: var(--text-primary);
  background: var(--bg-glass-hover);
  border-color: var(--border-color-hover);
  transform: translateY(-1px);
}

.header-action-btn .badge-count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  background: var(--brand-danger);
  color: white;
  font-size: 10px;
  font-weight: 700;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-secondary);
  animation: pulse-badge 2s infinite;
}

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

/* User Menu */
.header-user {
  position: relative;
}

.header-user-btn {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  transition: var(--transition-base);
  cursor: pointer;
  height: 44px;
}

.header-user-btn:hover {
  background: var(--bg-glass-hover);
  border-color: var(--border-color-hover);
}

.header-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 2px solid var(--brand-primary);
}

.header-user-avatar-placeholder {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}

.header-user-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}

.header-user-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-user-balance {
  font-size: 11px;
  color: var(--brand-success);
  font-weight: 500;
}

.header-user-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 240px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px) scale(0.95);
  transition: var(--transition-base);
  z-index: var(--z-dropdown);
  overflow: hidden;
}

.header-user:hover .header-user-dropdown,
.header-user.active .header-user-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.header-user-dropdown-header {
  padding: var(--space-4);
  background: var(--gradient-secondary);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.header-user-dropdown-avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  border: 2px solid rgba(255,255,255,0.2);
  object-fit: cover;
}

.header-user-dropdown-name {
  font-weight: 700;
  font-size: 14px;
  color: white;
}

.header-user-dropdown-rank {
  font-size: 11px;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.header-user-dropdown-balance {
  font-size: 16px;
  font-weight: 700;
  color: var(--brand-accent);
}

.header-user-dropdown-body { padding: var(--space-2); }

.header-user-dropdown-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 10px var(--space-3);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 14px;
  transition: var(--transition-fast);
  cursor: pointer;
}

.header-user-dropdown-item:hover {
  background: var(--bg-glass);
  color: var(--text-primary);
  padding-left: 18px;
}

.header-user-dropdown-item i {
  width: 20px;
  text-align: center;
  color: var(--text-muted);
}

.header-user-dropdown-item:hover i { color: var(--brand-primary); }

.header-user-dropdown-divider {
  height: 1px;
  background: var(--border-color);
  margin: var(--space-2) 0;
}

.header-user-dropdown-item.danger { color: var(--brand-danger); }
.header-user-dropdown-item.danger i { color: var(--brand-danger); }
.header-user-dropdown-item.danger:hover { background: rgba(239, 68, 68, 0.08); }

/* Auth Buttons (not logged in) */
.header-auth-btns {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

/* Notification Dropdown */
.notification-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 360px;
  max-height: 480px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px) scale(0.95);
  transition: var(--transition-base);
  z-index: var(--z-dropdown);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.header-action-btn.notif-wrapper:hover .notification-dropdown,
.notif-wrapper.active .notification-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.notif-wrapper { position: relative; }

.notification-header {
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.notification-header-title {
  font-weight: 700;
  font-size: 15px;
}

.notification-mark-all {
  font-size: 12px;
  color: var(--brand-primary);
  cursor: pointer;
  font-weight: 500;
}

.notification-mark-all:hover { text-decoration: underline; }

.notification-list {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-2);
}

.notification-item {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-3);
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
  cursor: pointer;
  position: relative;
}

.notification-item:hover { background: var(--bg-glass); }

.notification-item.unread { background: rgba(99, 102, 241, 0.06); }
.notification-item.unread::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-primary);
}

.notification-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.notification-icon.type-success { background: rgba(16,185,129,0.15); color: var(--brand-success); }
.notification-icon.type-info { background: rgba(99,102,241,0.15); color: var(--brand-primary); }
.notification-icon.type-warning { background: rgba(245,158,11,0.15); color: var(--brand-warning); }
.notification-icon.type-error { background: rgba(239,68,68,0.15); color: var(--brand-danger); }

.notification-content { flex: 1; min-width: 0; }

.notification-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.notification-msg {
  font-size: 12px;
  color: var(--text-secondary);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.notification-time {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

.notification-footer {
  padding: var(--space-3);
  border-top: 1px solid var(--border-color);
  text-align: center;
  flex-shrink: 0;
}

.notification-footer a {
  font-size: 13px;
  color: var(--brand-primary);
  font-weight: 500;
}

/* ============================================================
   MEGA MENU NAVBAR
   ============================================================ */
.site-navbar {
  height: var(--navbar-height);
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: var(--header-height);
  z-index: var(--z-sticky);
}

.site-navbar .container-fluid {
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 var(--space-6);
  gap: var(--space-1);
}

.nav-item-wrapper {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.nav-link-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: var(--transition-fast);
  cursor: pointer;
  height: 40px;
}

.nav-link-btn:hover,
.nav-link-btn.active {
  color: var(--text-primary);
  background: var(--bg-glass);
}

.nav-link-btn.active { color: var(--brand-primary); }

.nav-link-btn i.chevron {
  font-size: 10px;
  transition: transform 0.2s ease;
}

.nav-item-wrapper:hover .nav-link-btn i.chevron,
.nav-item-wrapper.active .nav-link-btn i.chevron {
  transform: rotate(180deg);
}

/* Mega Menu */
.mega-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-10px) scale(0.97);
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
  padding: var(--space-5);
  width: max-content;
  max-width: 700px;
  min-width: 500px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-base);
  z-index: var(--z-dropdown);
}

.nav-item-wrapper:hover .mega-menu,
.nav-item-wrapper.active .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0) scale(1);
}

/* Ensure rightmost menus don't overflow */
.nav-item-wrapper:last-child .mega-menu,
.nav-item-wrapper:nth-last-child(-n+3) .mega-menu {
  left: auto;
  right: 0;
  transform: translateY(-10px) scale(0.97);
}

.nav-item-wrapper:last-child:hover .mega-menu,
.nav-item-wrapper:nth-last-child(-n+3):hover .mega-menu {
  transform: translateY(0) scale(1);
}

.mega-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--border-color);
}

.mega-menu-title {
  font-weight: 700;
  font-size: 14px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.mega-menu-view-all {
  font-size: 12px;
  color: var(--brand-primary);
  font-weight: 500;
}

.mega-menu-view-all:hover { text-decoration: underline; }

.mega-menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2);
}

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

.mega-menu-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.mega-menu-section-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 4px 8px;
  margin-bottom: 2px;
}

.mega-menu-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 8px 10px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.mega-menu-item:hover {
  background: rgba(99, 102, 241, 0.08);
  color: var(--brand-primary);
  transform: translateX(3px);
}

.mega-menu-item-icon {
  font-size: 14px;
  width: 20px;
  text-align: center;
}

.mega-menu-item-badge {
  margin-left: auto;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  font-weight: 700;
  letter-spacing: 0.3px;
}

.badge-hot {
  background: rgba(239, 68, 68, 0.15);
  color: var(--brand-danger);
}

.badge-new {
  background: rgba(16, 185, 129, 0.15);
  color: var(--brand-success);
}

.badge-sale {
  background: rgba(245, 158, 11, 0.15);
  color: var(--brand-warning);
}

/* Mobile Menu Toggle */
.navbar-mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition-fast);
}

.navbar-mobile-toggle:hover { background: var(--bg-glass-hover); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  transition: var(--transition-base);
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.1);
  opacity: 0;
  transition: opacity 0.15s;
}

.btn:hover::before { opacity: 1; }
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
  box-shadow: 0 12px 40px rgba(99, 102, 241, 0.35);
  transform: translateY(-1px);
  color: white;
}

.btn-secondary {
  background: var(--bg-glass);
  color: var(--text-primary);
  border-color: var(--border-color);
}

.btn-secondary:hover {
  background: var(--bg-glass-hover);
  border-color: var(--border-color-hover);
  color: var(--text-primary);
}

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

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

.btn-success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  box-shadow: var(--shadow-success);
}

.btn-success:hover { transform: translateY(-1px); color: white; }

.btn-danger {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  box-shadow: var(--shadow-danger);
}

.btn-danger:hover { transform: translateY(-1px); color: white; }

.btn-warning {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
}

.btn-warning:hover { transform: translateY(-1px); color: white; }

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: transparent;
}

.btn-ghost:hover { background: var(--bg-glass); color: var(--text-primary); }

.btn-sm { padding: 7px 14px; font-size: 13px; border-radius: var(--radius-sm); }
.btn-lg { padding: 14px 28px; font-size: 16px; border-radius: var(--radius-lg); }
.btn-xl { padding: 16px 36px; font-size: 18px; border-radius: var(--radius-xl); }
.btn-icon { width: 40px; height: 40px; padding: 0; }
.btn-icon.btn-sm { width: 32px; height: 32px; }
.btn-icon.btn-lg { width: 48px; height: 48px; }
.btn-block { width: 100%; }

/* Loading state */
.btn.loading {
  pointer-events: none;
  opacity: 0.8;
}

.btn.loading::after {
  content: '';
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-left: 6px;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: var(--transition-base);
}

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

.card-glass {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
}

/* Product Card */
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: var(--transition-base);
  position: relative;
  display: flex;
  flex-direction: column;
}

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

.product-card-image {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--bg-tertiary);
}

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

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

.product-card-badges {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.product-card-actions {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  opacity: 0;
  transform: translateX(8px);
  transition: var(--transition-base);
}

.product-card:hover .product-card-actions {
  opacity: 1;
  transform: translateX(0);
}

.product-card-action-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: var(--transition-fast);
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.product-card-action-btn:hover {
  background: var(--brand-primary);
  color: white;
  border-color: var(--brand-primary);
}

.product-card-action-btn.wishlisted {
  background: var(--brand-danger);
  color: white;
  border-color: var(--brand-danger);
}

/* Stock indicator */
.product-card-stock {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(0,0,0,0.3);
}

.product-card-stock-bar {
  height: 100%;
  background: var(--gradient-primary);
  transition: width 0.5s ease;
}

.product-card-body {
  padding: var(--space-4);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card-category {
  font-size: 11px;
  font-weight: 600;
  color: var(--brand-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--space-2);
}

.product-card-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
  flex: 1;
}

.product-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: var(--space-3);
}

.product-card-rating {
  display: flex;
  align-items: center;
  gap: 3px;
  color: var(--brand-accent);
}

.product-card-rating span { color: var(--text-muted); }
.product-card-sold { color: var(--text-muted); }

.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}

.product-card-price {
  display: flex;
  flex-direction: column;
}

.product-card-price-current {
  font-size: 18px;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

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

.product-card-buy-btn {
  padding: 8px 16px;
  border-radius: var(--radius-md);
  background: var(--gradient-primary);
  color: white;
  font-size: 12px;
  font-weight: 700;
  transition: var(--transition-base);
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.product-card-buy-btn:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-primary);
}

/* Category Card */
.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-6) var(--space-4);
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  transition: var(--transition-bounce);
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  min-height: 140px;
  position: relative;
  overflow: hidden;
}

.category-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.category-card:hover {
  border-color: var(--brand-primary);
  transform: translateY(-6px) scale(1.02);
  box-shadow: var(--shadow-primary);
}

.category-card:hover::before { opacity: 0.05; }

.category-card-icon {
  font-size: 32px;
  margin-bottom: var(--space-3);
  display: block;
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
}

.category-card:hover .category-card-icon { transform: scale(1.2) rotate(-5deg); }

.category-card-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  position: relative;
  z-index: 1;
  margin-bottom: 4px;
}

.category-card-desc {
  font-size: 11px;
  color: var(--text-muted);
  position: relative;
  z-index: 1;
  margin-bottom: var(--space-2);
}

.category-card-price {
  font-size: 12px;
  font-weight: 600;
  color: var(--brand-primary);
  position: relative;
  z-index: 1;
}

/* ============================================================
   BADGES
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.badge-primary { background: rgba(99,102,241,0.15); color: var(--brand-primary); }
.badge-success { background: rgba(16,185,129,0.15); color: var(--brand-success); }
.badge-danger { background: rgba(239,68,68,0.15); color: var(--brand-danger); }
.badge-warning { background: rgba(245,158,11,0.15); color: var(--brand-warning); }
.badge-info { background: rgba(59,130,246,0.15); color: var(--brand-info); }
.badge-secondary { background: var(--bg-glass); color: var(--text-secondary); }

.badge-hot {
  background: linear-gradient(135deg, #ef4444, #f97316);
  color: white;
  animation: pulse-badge 2s infinite;
}

.badge-new {
  background: linear-gradient(135deg, #10b981, #06b6d4);
  color: white;
}

.badge-sale {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: white;
}

/* ============================================================
   FORMS
   ============================================================ */
.form-group { margin-bottom: var(--space-5); }

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
  letter-spacing: 0.2px;
}

.form-control {
  width: 100%;
  padding: 11px var(--space-4);
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 14px;
  transition: var(--transition-base);
  outline: none;
  appearance: none;
}

.form-control:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
  background: var(--bg-glass-hover);
}

.form-control::placeholder { color: var(--text-muted); }

.form-control.is-invalid { border-color: var(--brand-danger); }
.form-control.is-valid { border-color: var(--brand-success); }

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}

.input-group {
  display: flex;
  align-items: stretch;
  gap: 0;
}

.input-group .form-control {
  flex: 1;
  border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.input-group .btn {
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  flex-shrink: 0;
}

.input-group-text {
  display: flex;
  align-items: center;
  padding: 0 var(--space-4);
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-right: none;
  border-radius: var(--radius-md) 0 0 var(--radius-md);
  color: var(--text-muted);
  font-size: 14px;
}

.form-check {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  cursor: pointer;
}

.form-check-input {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1.5px solid var(--border-color);
  background: var(--bg-input);
  cursor: pointer;
  accent-color: var(--brand-primary);
  flex-shrink: 0;
}

.form-check-label {
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
}

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

.form-error {
  font-size: 12px;
  color: var(--brand-danger);
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section {
  padding: var(--space-16) 0;
}

.section-sm { padding: var(--space-12) 0; }
.section-lg { padding: 80px 0; }

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: var(--space-8);
  gap: var(--space-4);
}

.section-title-group {}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 4px 12px;
  background: rgba(99, 102, 241, 0.1);
  border-radius: var(--radius-full);
  border: 1px solid rgba(99, 102, 241, 0.2);
  color: var(--brand-primary);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: var(--space-3);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  margin-top: var(--space-2);
}

.section-view-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--brand-primary);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.section-view-all:hover { gap: 10px; }

/* ============================================================
   HERO SLIDER
   ============================================================ */
.hero-slider {
  position: relative;
  overflow: hidden;
  border-radius: 0 0 var(--radius-2xl) var(--radius-2xl);
}

.hero-slide {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  transition: transform 6s ease;
}

.swiper-slide-active .hero-slide-bg { transform: scale(1); }

.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10,10,15,0.85) 0%, rgba(10,10,15,0.4) 60%, transparent 100%);
}

.hero-slide-content {
  position: relative;
  z-index: 1;
  padding: var(--space-16) var(--space-16);
  max-width: 600px;
}

.hero-slide-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px 14px;
  background: rgba(99, 102, 241, 0.2);
  border: 1px solid rgba(99, 102, 241, 0.4);
  border-radius: var(--radius-full);
  color: var(--brand-primary-light);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: var(--space-4);
  backdrop-filter: blur(10px);
}

.hero-slide-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 900;
  color: white;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: var(--space-4);
}

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

.hero-slide-desc {
  font-size: 16px;
  color: rgba(255,255,255,0.7);
  margin-bottom: var(--space-8);
  line-height: 1.7;
}

.hero-slide-actions { display: flex; gap: var(--space-4); align-items: center; flex-wrap: wrap; }

.hero-slide-stats {
  display: flex;
  gap: var(--space-8);
  margin-top: var(--space-10);
}

.hero-stat {}

.hero-stat-value {
  font-size: 28px;
  font-weight: 800;
  color: white;
  line-height: 1;
}

.hero-stat-label {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Swiper customization */
.swiper-pagination-bullet {
  background: rgba(255,255,255,0.4) !important;
  opacity: 1 !important;
  width: 8px !important;
  height: 8px !important;
  transition: var(--transition-base) !important;
}

.swiper-pagination-bullet-active {
  background: white !important;
  width: 24px !important;
  border-radius: 4px !important;
}

.hero-slider .swiper-button-next,
.hero-slider .swiper-button-prev {
  width: 44px !important;
  height: 44px !important;
  background: rgba(255,255,255,0.1) !important;
  backdrop-filter: blur(10px) !important;
  border-radius: var(--radius-full) !important;
  border: 1px solid rgba(255,255,255,0.2) !important;
  transition: var(--transition-base) !important;
}

.hero-slider .swiper-button-next:hover,
.hero-slider .swiper-button-prev:hover {
  background: rgba(255,255,255,0.2) !important;
}

.hero-slider .swiper-button-next::after,
.hero-slider .swiper-button-prev::after {
  font-size: 14px !important;
  color: white !important;
  font-weight: 900 !important;
}

/* ============================================================
   FLASH SALE SECTION
   ============================================================ */
.flash-sale-section {
  background: linear-gradient(135deg, rgba(239,68,68,0.08) 0%, rgba(245,158,11,0.08) 100%);
  border: 1px solid rgba(239,68,68,0.15);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  margin: 0 0 var(--space-8) 0;
}

.flash-sale-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-6);
  flex-wrap: wrap;
  gap: var(--space-4);
}

.flash-sale-title {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.flash-sale-icon {
  font-size: 28px;
  animation: flash 1s ease-in-out infinite;
}

@keyframes flash {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.1); }
}

.flash-sale-label {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 900;
  background: var(--gradient-warm);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}

.flash-sale-countdown {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.countdown-value {
  min-width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid rgba(239,68,68,0.3);
  border-radius: var(--radius-md);
  font-size: 20px;
  font-weight: 800;
  color: var(--brand-danger);
  font-variant-numeric: tabular-nums;
}

.countdown-label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 4px;
}

.countdown-separator {
  font-size: 20px;
  font-weight: 800;
  color: var(--brand-danger);
  margin-bottom: 12px;
}

/* ============================================================
   STATS CARDS
   ============================================================ */
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  position: relative;
  overflow: hidden;
  transition: var(--transition-base);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
}

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

.stat-card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.stat-card-icon.primary { background: rgba(99,102,241,0.15); color: var(--brand-primary); }
.stat-card-icon.success { background: rgba(16,185,129,0.15); color: var(--brand-success); }
.stat-card-icon.warning { background: rgba(245,158,11,0.15); color: var(--brand-warning); }
.stat-card-icon.danger { background: rgba(239,68,68,0.15); color: var(--brand-danger); }
.stat-card-icon.info { background: rgba(59,130,246,0.15); color: var(--brand-info); }

.stat-card-body { flex: 1; min-width: 0; }

.stat-card-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--space-1);
}

.stat-card-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 4px;
  font-variant-numeric: tabular-nums;
}

.stat-card-change {
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.stat-card-change.up { color: var(--brand-success); }
.stat-card-change.down { color: var(--brand-danger); }

/* ============================================================
   TABLES
   ============================================================ */
.table-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

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

.data-table th {
  background: var(--bg-secondary);
  padding: 14px var(--space-5);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  border-bottom: 1px solid var(--border-color);
  text-align: left;
}

.data-table td {
  padding: 14px var(--space-5);
  font-size: 14px;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}

.data-table tr:last-child td { border-bottom: none; }

.data-table tbody tr { transition: var(--transition-fast); }
.data-table tbody tr:hover { background: var(--bg-glass); }

/* ============================================================
   TABS
   ============================================================ */
.tabs {
  display: flex;
  gap: 4px;
  background: var(--bg-secondary);
  border-radius: var(--radius-xl);
  padding: 4px;
  width: fit-content;
}

.tab-btn {
  padding: 8px 20px;
  border-radius: var(--radius-lg);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  background: none;
  border: none;
  cursor: pointer;
  transition: var(--transition-base);
  white-space: nowrap;
}

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

.tab-content { display: none; }
.tab-content.active { display: block; }

/* ============================================================
   SKELETON LOADING
   ============================================================ */
.skeleton {
  background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--bg-tertiary) 50%, var(--bg-secondary) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.4s ease-in-out infinite;
  border-radius: var(--radius-md);
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-text { height: 14px; margin-bottom: 8px; }
.skeleton-text:last-child { width: 60%; }
.skeleton-title { height: 24px; margin-bottom: 12px; }
.skeleton-image { height: 200px; }
.skeleton-btn { height: 40px; width: 120px; }

/* ============================================================
   TOAST NOTIFICATIONS
   ============================================================ */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  min-width: 300px;
  max-width: 400px;
  pointer-events: all;
  animation: toast-in 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.toast::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
}

.toast.success::before { background: var(--brand-success); }
.toast.error::before { background: var(--brand-danger); }
.toast.warning::before { background: var(--brand-warning); }
.toast.info::before { background: var(--brand-info); }

@keyframes toast-in {
  from { transform: translateX(100px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.toast.hiding {
  animation: toast-out 0.25s ease forwards;
}

@keyframes toast-out {
  to { transform: translateX(120px); opacity: 0; height: 0; padding: 0; margin: 0; }
}

.toast-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.toast.success .toast-icon { background: rgba(16,185,129,0.15); color: var(--brand-success); }
.toast.error .toast-icon { background: rgba(239,68,68,0.15); color: var(--brand-danger); }
.toast.warning .toast-icon { background: rgba(245,158,11,0.15); color: var(--brand-warning); }
.toast.info .toast-icon { background: rgba(59,130,246,0.15); color: var(--brand-info); }

.toast-body { flex: 1; min-width: 0; }

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

.toast-message {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.toast-close {
  color: var(--text-muted);
  cursor: pointer;
  font-size: 14px;
  flex-shrink: 0;
  padding: 2px;
  transition: color 0.15s;
}

.toast-close:hover { color: var(--text-primary); }

.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: currentColor;
  animation: toast-progress linear forwards;
}

@keyframes toast-progress {
  from { width: 100%; }
  to { width: 0%; }
}

/* ============================================================
   LOADING OVERLAY
   ============================================================ */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(8px);
  z-index: var(--z-top);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: var(--space-4);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-base);
}

.loading-overlay.show { opacity: 1; visibility: visible; }

.loading-spinner {
  width: 56px;
  height: 56px;
  border: 3px solid rgba(99, 102, 241, 0.2);
  border-top-color: var(--brand-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.loading-text {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  width: 44px;
  height: 44px;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 16px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition-base);
  z-index: var(--z-fixed);
  box-shadow: var(--shadow-primary);
  border: none;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(99,102,241,0.4); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: var(--space-16) 0 0;
  margin-top: var(--space-16);
}

.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
  gap: var(--space-10);
  padding-bottom: var(--space-10);
  border-bottom: 1px solid var(--border-color);
}

.footer-brand {}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.footer-logo-icon {
  width: 40px;
  height: 40px;
  background: var(--gradient-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  font-weight: 800;
}

.footer-logo-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-5);
}

.footer-social {
  display: flex;
  gap: var(--space-2);
}

.footer-social-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  transition: var(--transition-base);
}

.footer-social-btn:hover {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: white;
  transform: translateY(-2px);
}

.footer-col {}

.footer-col-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-primary);
  margin-bottom: var(--space-5);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-links a {
  font-size: 14px;
  color: var(--text-muted);
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

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

.footer-newsletter {}

.footer-newsletter-form {
  display: flex;
  gap: 0;
  margin-top: var(--space-3);
}

.footer-newsletter-input {
  flex: 1;
  padding: 11px var(--space-4);
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-right: none;
  border-radius: var(--radius-md) 0 0 var(--radius-md);
  color: var(--text-primary);
  font-size: 13px;
  outline: none;
}

.footer-newsletter-input:focus { border-color: var(--brand-primary); }

.footer-newsletter-btn {
  padding: 11px var(--space-5);
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-base);
}

.footer-newsletter-btn:hover { opacity: 0.9; }

.footer-payment-methods {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-top: var(--space-4);
}

.footer-payment-badge {
  padding: 6px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 4px;
}

.footer-bottom {
  padding: var(--space-5) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}

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

.footer-bottom-links {
  display: flex;
  gap: var(--space-5);
}

.footer-bottom-links a {
  font-size: 13px;
  color: var(--text-muted);
  transition: var(--transition-fast);
}

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

/* ============================================================
   CONTAINER
   ============================================================ */
.container-fluid {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

/* ============================================================
   GRID SYSTEM
   ============================================================ */
.grid {
  display: grid;
  gap: var(--space-6);
}

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

.col-span-2 { grid-column: span 2; }
.col-span-3 { grid-column: span 3; }

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.text-primary { color: var(--text-primary) !important; }
.text-secondary { color: var(--text-secondary) !important; }
.text-muted { color: var(--text-muted) !important; }
.text-brand { color: var(--brand-primary) !important; }
.text-success { color: var(--brand-success) !important; }
.text-danger { color: var(--brand-danger) !important; }
.text-warning { color: var(--brand-warning) !important; }
.text-info { color: var(--brand-info) !important; }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.fw-normal { font-weight: 400; }
.fw-medium { font-weight: 500; }
.fw-semibold { font-weight: 600; }
.fw-bold { font-weight: 700; }
.fw-black { font-weight: 900; }

.fs-xs { font-size: 11px; }
.fs-sm { font-size: 13px; }
.fs-md { font-size: 15px; }
.fs-lg { font-size: 18px; }
.fs-xl { font-size: 24px; }

.d-flex { display: flex; }
.d-block { display: block; }
.d-inline { display: inline; }
.d-inline-flex { display: inline-flex; }
.d-none { display: none !important; }
.d-grid { display: grid; }

.align-items-center { align-items: center; }
.align-items-start { align-items: flex-start; }
.align-items-end { align-items: flex-end; }
.justify-content-center { justify-content: center; }
.justify-content-between { justify-content: space-between; }
.justify-content-end { justify-content: flex-end; }
.flex-wrap { flex-wrap: wrap; }
.flex-col { flex-direction: column; }
.flex-1 { flex: 1; }
.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-5 { gap: var(--space-5); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: var(--space-1); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-5 { margin-bottom: var(--space-5); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }

.p-4 { padding: var(--space-4); }
.p-5 { padding: var(--space-5); }
.p-6 { padding: var(--space-6); }
.p-8 { padding: var(--space-8); }

.rounded { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-2xl { border-radius: var(--radius-2xl); }
.rounded-full { border-radius: var(--radius-full); }

.w-100 { width: 100%; }
.h-100 { height: 100%; }
.overflow-hidden { overflow: hidden; }
.position-relative { position: relative; }
.position-absolute { position: absolute; }

.opacity-0 { opacity: 0; }
.opacity-50 { opacity: 0.5; }
.opacity-100 { opacity: 1; }

/* Gradient text */
.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Glass effect */
.glass {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
}

/* Divider */
.divider {
  height: 1px;
  background: var(--border-color);
  margin: var(--space-6) 0;
}

/* Alert boxes */
.alert {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-lg);
  font-size: 14px;
  border: 1px solid;
}

.alert-success { background: rgba(16,185,129,0.08); border-color: rgba(16,185,129,0.2); color: var(--brand-success); }
.alert-danger { background: rgba(239,68,68,0.08); border-color: rgba(239,68,68,0.2); color: var(--brand-danger); }
.alert-warning { background: rgba(245,158,11,0.08); border-color: rgba(245,158,11,0.2); color: var(--brand-warning); }
.alert-info { background: rgba(99,102,241,0.08); border-color: rgba(99,102,241,0.2); color: var(--brand-primary); }

/* Empty state */
.empty-state {
  text-align: center;
  padding: var(--space-16) var(--space-8);
}

.empty-state-icon {
  font-size: 64px;
  margin-bottom: var(--space-4);
  opacity: 0.4;
}

.empty-state-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.empty-state-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: var(--space-6);
}

/* Dark Mode Toggle */
.theme-toggle {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  transition: var(--transition-base);
}

.theme-toggle:hover {
  background: var(--bg-glass-hover);
  color: var(--text-primary);
}

/* ============================================================
   REVIEW STARS
   ============================================================ */
.star-rating {
  display: flex;
  gap: 2px;
}

.star-rating .star {
  font-size: 14px;
  color: var(--brand-accent);
}

.star-rating .star.empty { color: var(--border-color); }

/* ============================================================
   PRODUCT DETAIL
   ============================================================ */
.product-detail-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-10);
  align-items: start;
}

.product-gallery {}

.product-gallery-main {
  aspect-ratio: 1;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  position: relative;
  margin-bottom: var(--space-3);
}

.product-gallery-main-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: var(--space-6);
  transition: transform 0.3s ease;
  cursor: zoom-in;
}

.product-gallery-main-img:hover { transform: scale(1.05); }

.product-gallery-thumbs {
  display: flex;
  gap: var(--space-2);
  overflow-x: auto;
}

.product-gallery-thumb {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-md);
  border: 2px solid var(--border-color);
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0;
  transition: var(--transition-fast);
}

.product-gallery-thumb.active,
.product-gallery-thumb:hover { border-color: var(--brand-primary); }

.product-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

.product-info {}

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

.product-info-name {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: var(--space-4);
}

.product-info-meta {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  margin-bottom: var(--space-5);
  flex-wrap: wrap;
}

.product-info-meta-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 13px;
  color: var(--text-muted);
}

.product-info-price-block {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  margin-bottom: var(--space-5);
}

.product-info-price {
  font-size: 36px;
  font-weight: 900;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.product-info-original-price {
  font-size: 18px;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-left: var(--space-2);
}

.product-info-stock {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: var(--space-3);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.product-info-stock.in-stock { color: var(--brand-success); }
.product-info-stock.low-stock { color: var(--brand-warning); }
.product-info-stock.out-of-stock { color: var(--brand-danger); }

.product-options-block { margin-bottom: var(--space-5); }

.product-option-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
}

.product-option-items {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.product-option-item {
  padding: 8px 16px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-color);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-fast);
  background: var(--bg-input);
}

.product-option-item:hover,
.product-option-item.selected {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
  background: rgba(99,102,241,0.08);
}

.product-qty-block {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.product-qty-label { font-size: 13px; font-weight: 600; color: var(--text-secondary); }

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

.qty-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 16px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.qty-btn:hover { background: var(--bg-glass); color: var(--text-primary); }

.qty-input {
  width: 60px;
  height: 36px;
  border: none;
  border-left: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  background: none;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  outline: none;
}

.voucher-input-block {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}

.product-actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

/* ============================================================
   ACCOUNT SIDEBAR
   ============================================================ */
.account-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: sticky;
  top: calc(var(--total-header) + var(--space-5));
}

.account-sidebar-user {
  background: var(--gradient-secondary);
  padding: var(--space-6);
  text-align: center;
}

.account-sidebar-avatar {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-full);
  border: 3px solid rgba(255,255,255,0.2);
  margin: 0 auto var(--space-3);
  object-fit: cover;
}

.account-sidebar-avatar-placeholder {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-full);
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 24px;
  margin: 0 auto var(--space-3);
}

.account-sidebar-name {
  font-weight: 700;
  font-size: 16px;
  color: white;
  margin-bottom: 4px;
}

.account-sidebar-rank {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.account-sidebar-balance {
  font-size: 20px;
  font-weight: 800;
  color: var(--brand-accent);
  margin-top: var(--space-2);
}

.account-sidebar-nav { padding: var(--space-2); }

.account-nav-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 11px var(--space-3);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition-fast);
  cursor: pointer;
}

.account-nav-item:hover,
.account-nav-item.active {
  background: rgba(99,102,241,0.08);
  color: var(--brand-primary);
  padding-left: 20px;
}

.account-nav-item i {
  width: 20px;
  text-align: center;
  font-size: 15px;
}

.account-nav-badge {
  margin-left: auto;
  background: var(--brand-danger);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--radius-full);
}

.account-nav-divider {
  height: 1px;
  background: var(--border-color);
  margin: var(--space-2) var(--space-3);
}

/* ============================================================
   DEPOSIT METHODS
   ============================================================ */
.deposit-method-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: var(--space-3);
}

.deposit-method-card {
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  cursor: pointer;
  transition: var(--transition-base);
  background: var(--bg-card);
}

.deposit-method-card:hover {
  border-color: var(--brand-primary);
  background: rgba(99,102,241,0.04);
  transform: translateY(-2px);
}

.deposit-method-card.selected {
  border-color: var(--brand-primary);
  background: rgba(99,102,241,0.08);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}

.deposit-method-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  object-fit: contain;
}

.deposit-method-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

/* ============================================================
   CART
   ============================================================ */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: var(--space-8);
  align-items: start;
}

.cart-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-5);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-fast);
}

.cart-item:hover { background: var(--bg-glass); }

.cart-item-img {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-md);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg-tertiary);
}

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

.cart-item-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-option {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: var(--space-3);
}

.cart-item-actions { display: flex; align-items: center; gap: var(--space-3); }

.cart-item-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
}

.cart-summary {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  position: sticky;
  top: calc(var(--total-header) + var(--space-5));
}

.cart-summary-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: var(--space-5);
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-3) 0;
  font-size: 14px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-color);
}

.cart-summary-row:last-of-type { border: none; }

.cart-summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-4) 0;
  border-top: 2px solid var(--border-color);
  margin-top: var(--space-2);
}

.cart-summary-total-label {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.cart-summary-total-amount {
  font-size: 24px;
  font-weight: 900;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================================
   ADMIN STYLES (included here for compactness)
   ============================================================ */
.admin-wrapper {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: 260px;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border-color);
  flex-shrink: 0;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  overflow-y: auto;
  z-index: var(--z-fixed);
  transition: var(--transition-base);
}

.admin-sidebar::-webkit-scrollbar { width: 4px; }

.admin-sidebar-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-5) var(--space-5);
  border-bottom: 1px solid var(--border-color);
}

.admin-sidebar-logo-icon {
  width: 36px;
  height: 36px;
  background: var(--gradient-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 16px;
}

.admin-sidebar-logo-text {
  font-weight: 700;
  font-size: 16px;
  color: var(--text-primary);
}

.admin-nav { padding: var(--space-3); }

.admin-nav-section-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  padding: var(--space-3) var(--space-2);
  margin-top: var(--space-2);
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 10px var(--space-3);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition-fast);
  cursor: pointer;
  margin-bottom: 2px;
}

.admin-nav-item:hover {
  background: var(--bg-glass);
  color: var(--text-primary);
}

.admin-nav-item.active {
  background: rgba(99,102,241,0.12);
  color: var(--brand-primary);
}

.admin-nav-item i { width: 20px; text-align: center; }

.admin-nav-badge {
  margin-left: auto;
  background: var(--brand-danger);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--radius-full);
}

.admin-main {
  margin-left: 260px;
  flex: 1;
  min-width: 0;
}

.admin-topbar {
  height: 64px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  padding: 0 var(--space-6);
  gap: var(--space-4);
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
}

.admin-topbar-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  flex: 1;
}

.admin-content { padding: var(--space-6); }

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

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

.modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.9) translateY(20px);
  transition: var(--transition-base);
}

.modal-overlay.show .modal-box { transform: scale(1) translateY(0); }

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

.modal-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.modal-close:hover { background: var(--bg-glass-hover); color: var(--text-primary); }

.modal-body { padding: var(--space-6); }
.modal-footer {
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: var(--space-3);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
.fade-in {
  animation: fadeIn 0.4s ease forwards;
}

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

.slide-up {
  animation: slideUp 0.4s ease forwards;
}

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

.bounce-in {
  animation: bounceIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes bounceIn {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

/* Shimmer animation for highlights */
.shimmer {
  position: relative;
  overflow: hidden;
}

.shimmer::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  to { left: 200%; }
}

/* Floating animation */
.float {
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Pulse animation */
.pulse {
  animation: pulseSlow 2s ease-in-out infinite;
}

@keyframes pulseSlow {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* ============================================================
   PRODUCT FILTER SIDEBAR
   ============================================================ */
.filter-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  position: sticky;
  top: calc(var(--total-header) + var(--space-5));
}

.filter-group { margin-bottom: var(--space-6); }

.filter-group-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.filter-clear {
  font-size: 11px;
  color: var(--brand-primary);
  font-weight: 500;
  cursor: pointer;
}

.price-range {
  display: flex;
  gap: var(--space-2);
  align-items: center;
}

.price-range .form-control { text-align: center; }
.price-range-separator { color: var(--text-muted); flex-shrink: 0; }

/* ============================================================
   ORDER DETAIL DATA
   ============================================================ */
.order-data-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.order-data-header {
  padding: var(--space-3) var(--space-4);
  background: var(--bg-glass);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.order-data-content {
  padding: var(--space-4);
  font-family: 'Courier New', monospace;
  font-size: 13px;
  color: var(--brand-success);
  line-height: 1.8;
  max-height: 300px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-all;
}

/* ============================================================
   API DOCS
   ============================================================ */
.api-endpoint {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--space-4);
}

.api-endpoint-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  cursor: pointer;
  transition: var(--transition-fast);
}

.api-endpoint-header:hover { background: var(--bg-glass); }

.api-method {
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 800;
  font-family: monospace;
  letter-spacing: 0.5px;
}

.api-method.get { background: rgba(16,185,129,0.15); color: var(--brand-success); }
.api-method.post { background: rgba(99,102,241,0.15); color: var(--brand-primary); }
.api-method.put { background: rgba(245,158,11,0.15); color: var(--brand-warning); }
.api-method.delete { background: rgba(239,68,68,0.15); color: var(--brand-danger); }

.api-endpoint-path {
  font-family: monospace;
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 600;
}

.api-endpoint-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-left: auto;
}

.api-endpoint-body {
  border-top: 1px solid var(--border-color);
  padding: var(--space-5);
  display: none;
}

.api-endpoint-body.show { display: block; }

.code-block {
  background: #0d1117;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  font-family: 'Courier New', monospace;
  font-size: 13px;
  color: #c9d1d9;
  overflow-x: auto;
  position: relative;
}

.code-block-copy {
  position: absolute;
  top: var(--space-2);
  right: var(--space-2);
  padding: 4px 8px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-sm);
  color: rgba(255,255,255,0.6);
  font-size: 11px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.code-block-copy:hover { background: rgba(255,255,255,0.15); color: white; }

/* ============================================================
   AFFILIATE
   ============================================================ */
.affiliate-link-box {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-3) var(--space-4);
}

.affiliate-link-url {
  flex: 1;
  font-size: 14px;
  color: var(--brand-primary);
  font-family: monospace;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.affiliate-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}

/* ============================================================
   REVIEW SECTION
   ============================================================ */
.review-summary {
  display: flex;
  gap: var(--space-8);
  align-items: center;
  background: var(--bg-glass);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  margin-bottom: var(--space-6);
}

.review-avg {
  text-align: center;
  flex-shrink: 0;
}

.review-avg-value {
  font-size: 64px;
  font-weight: 900;
  line-height: 1;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.review-avg-label { font-size: 13px; color: var(--text-muted); }

.review-bars { flex: 1; }

.review-bar-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-2);
}

.review-bar-label { font-size: 12px; color: var(--text-muted); white-space: nowrap; }

.review-bar-track {
  flex: 1;
  height: 6px;
  background: var(--border-color);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.review-bar-fill {
  height: 100%;
  background: var(--brand-accent);
  border-radius: var(--radius-full);
  transition: width 1s ease;
}

.review-bar-count { font-size: 12px; color: var(--text-muted); white-space: nowrap; }

.review-item {
  padding: var(--space-5) 0;
  border-bottom: 1px solid var(--border-color);
}

.review-item:last-child { border: none; }

.review-item-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: var(--space-3);
}

.review-item-user {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.review-item-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 16px;
}

.review-item-name { font-size: 14px; font-weight: 600; }
.review-item-date { font-size: 12px; color: var(--text-muted); }
.review-item-content { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }

/* ============================================================
   MOBILE NAVIGATION DRAWER
   ============================================================ */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 1050;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.mobile-nav-overlay.active,
.mobile-nav-overlay.show {
  display: block;
  opacity: 1;
}

.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 300px;
  max-width: 85vw;
  height: 100dvh;
  background: var(--bg-card, #1e293b);
  border-right: 1px solid var(--border-color, rgba(255,255,255,0.08));
  z-index: 1060;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
  scrollbar-width: thin;
}
.mobile-nav.open {
  transform: translateX(0);
}

.mobile-nav-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-glass, rgba(255,255,255,0.06));
  border: 1px solid var(--border-color, rgba(255,255,255,0.1));
  color: var(--text-primary, #e2e8f0);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s;
}
.mobile-nav-close:hover { background: var(--bg-glass-hover, rgba(255,255,255,0.12)); }

.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  color: var(--text-primary, #e2e8f0);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-md, 10px);
  margin: 2px 8px;
  transition: background 0.2s;
  cursor: pointer;
}
.mobile-nav-link:hover,
.mobile-nav-link.active {
  background: var(--bg-glass, rgba(255,255,255,0.06));
  color: var(--brand-primary, #6366f1);
}

.mobile-nav-submenu {
  display: none;
  padding: 4px 8px 8px 32px;
}
.mobile-nav-submenu.open { display: block; }
.mobile-nav-submenu a {
  display: block;
  padding: 9px 12px;
  color: var(--text-secondary, #94a3b8);
  text-decoration: none;
  font-size: 13px;
  border-radius: var(--radius-sm, 6px);
  transition: background 0.2s, color 0.2s;
}
.mobile-nav-submenu a:hover {
  background: var(--bg-glass, rgba(255,255,255,0.06));
  color: var(--brand-primary, #6366f1);
}

/* ============================================================
   HERO SLIDER — image background fix
   ============================================================ */
.hero-slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  transform: scale(1.05);
  transition: transform 6s ease;
}
.swiper-slide-active .hero-slide-bg { transform: scale(1); }

.hero-slide {
  position: relative;
  min-height: 540px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.35) 60%, transparent 100%);
  z-index: 1;
}

.hero-slide-content {
  position: relative;
  z-index: 2;
  padding: 60px 40px;
  max-width: 600px;
}

/* Fallback gradient when no image */
.hero-slide:not([data-bg]) .hero-slide-bg,
.hero-slide[data-bg=""] .hero-slide-bg {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4338ca 100%) !important;
}

/* ============================================================
   RESPONSIVE OVERRIDES
   ============================================================ */
@media (max-width: 991px) {
  .navbar-mobile-toggle { display: flex !important; }
  .site-navbar .container-fluid { display: none !important; }

  /* Show mobile toggle in header */
  .header-actions .navbar-mobile-toggle { display: flex; }
}

@media (max-width: 768px) {
  .hero-slide { min-height: 400px; }
  .hero-slide-content { padding: 40px 24px; }
  .hero-slide-title { font-size: 28px !important; }
}

/* ============================================================
   PRODUCT CARD — fix missing styles
   ============================================================ */
.product-card {
  background: var(--bg-card, #1e293b);
  border: 1px solid var(--border-color, rgba(255,255,255,0.08));
  border-radius: var(--radius-xl, 16px);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.product-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: var(--bg-secondary, #0f172a);
}
.product-card-img-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--bg-secondary, #0f172a), var(--bg-card, #1e293b));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}
.product-card-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.product-card-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-primary, #e2e8f0);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card-price {
  font-weight: 700;
  font-size: 18px;
  color: var(--brand-primary, #6366f1);
}
.product-card-price-old {
  font-size: 13px;
  color: var(--text-muted, #64748b);
  text-decoration: line-through;
}
.product-card-footer {
  padding: 0 16px 16px;
  margin-top: auto;
}
.product-card-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 2;
}

/* ============================================================
   FLASH SALE COUNTDOWN
   ============================================================ */
.flash-sale-section { padding: var(--space-16) 0; }
.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--bg-glass, rgba(255,255,255,0.06));
  border: 1px solid var(--border-color, rgba(255,255,255,0.08));
  border-radius: var(--radius-md, 10px);
  padding: 8px 12px;
  min-width: 52px;
}
.countdown-item span:first-child {
  font-size: 22px;
  font-weight: 800;
  color: var(--brand-primary, #6366f1);
  line-height: 1;
}
.countdown-item span:last-child {
  font-size: 10px;
  color: var(--text-muted, #64748b);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ============================================================
   PREMIUM AUTH PAGES DESIGN (SaaS / Glassmorphism)
   ============================================================ */
.auth-card {
  width: 100%;
  max-width: 450px;
  padding: 40px 32px;
  background: var(--bg-glass, rgba(30, 41, 59, 0.45)) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 24px !important;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.1) !important;
  z-index: 10;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.auth-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.15) !important;
}

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

.auth-title {
  font-size: 26px !important;
  font-weight: 800 !important;
  color: var(--text-primary, #ffffff) !important;
  text-align: center;
  margin-bottom: 8px !important;
  font-family: 'Plus Jakarta Sans', sans-serif;
  letter-spacing: -0.02em;
}

.auth-subtitle {
  font-size: 14px !important;
  color: var(--text-muted, #94a3b8) !important;
  text-align: center;
  margin-bottom: 32px !important;
}

/* Style Inputs inside Auth Form */
.auth-card .form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary, #cbd5e1);
  margin-bottom: 8px;
  display: block;
}

.auth-card .input-group {
  background: rgba(15, 23, 42, 0.6) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 12px !important;
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
}

.auth-card .input-group:focus-within {
  border-color: var(--brand-primary, #6366f1) !important;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2) !important;
  background: rgba(15, 23, 42, 0.8) !important;
}

.auth-card .input-group-text {
  background: none !important;
  border: none !important;
  color: var(--text-muted, #64748b) !important;
  padding: 12px 16px;
  font-size: 14px;
}

.auth-card .form-control {
  background: none !important;
  border: none !important;
  color: var(--text-primary, #ffffff) !important;
  padding: 12px 16px 12px 0 !important;
  font-size: 14px;
  box-shadow: none !important;
  outline: none !important;
  width: 100%;
}

.auth-card .form-control::placeholder {
  color: var(--text-muted, #475569) !important;
}

/* Custom theme toggle link in auth footers */
.auth-theme-btn {
  background: none !important;
  border: none !important;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-muted, #64748b);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 6px;
  transition: color 0.2s, background-color 0.2s;
}

.auth-theme-btn:hover {
  color: var(--text-primary, #ffffff);
  background: var(--bg-glass, rgba(255, 255, 255, 0.05));
}

