/* ─── Premium Shop - Gaming Marketplace Redesign ──────────────────────── */

.discord-widget {
  width: 100%;
  max-width: 420px;
  background: #2f3136;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}
.discord-widget-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  background: #34373c;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.discord-widget-header > .fa-discord { font-size: 1.6rem; color: #5865f2; }
.discord-widget-title { display: flex; flex-direction: column; line-height: 1.2; }
.discord-widget-title strong { color: #f2f3f5; font-size: 0.95rem; }
.discord-widget-title small { color: #b9bbbe; font-size: 0.78rem; display: inline-flex; align-items: center; gap: 0.35rem; }
.online-dot { width: 8px; height: 8px; border-radius: 50%; background: #23a55a; display: inline-block; }
.discord-widget-members {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1rem;
  min-height: 96px;
  align-items: center;
}
.discord-widget-members .member { position: relative; display: inline-block; }
.discord-widget-members .member img { border-radius: 50%; display: block; }
.discord-widget-members .member::after {
  content: '';
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 3px solid #2f3136;
  background: #80848e;
}
.discord-widget-members .member.status-online::after { background: #23a55a; }
.discord-widget-members .member.status-idle::after { background: #f0b232; }
.discord-widget-members .member.status-dnd::after { background: #f23f43; }
.discord-widget-members .member-noavatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--bg-tertiary); color: var(--text-muted);
  display: inline-flex; align-items: center; justify-content: center;
}
.discord-widget .btn { margin: 0 1rem 1rem; width: calc(100% - 2rem) !important; }

/* ─── Product description formatter ──*/
.desc-section {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--purple-light);
  margin: 1.25rem 0 0.4rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--border-color);
  letter-spacing: 0.02em;
}
.wo-sub {
  font-weight: 700;
  color: var(--text-light);
  margin: 0.85rem 0 0.15rem;
  font-size: 0.95rem;
}
.wo-line { margin: 0.15rem 0; color: var(--text-secondary); }
.wo-list { margin: 0.35rem 0 0.85rem; padding-left: 1.1rem; color: var(--text-secondary); }
.wo-list li { margin: 0.2rem 0; }
.wo-link { margin: 0.3rem 0; }
.wo-link a {
  color: var(--blue-light);
  word-break: break-all;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.wo-link a:hover { color: #fff; }

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* ── Core Colors ── */
  --bg-deep: #07080c;
  --bg-primary: #0b0d14;
  --bg-secondary: #11131f;
  --bg-tertiary: #181b2a;
  --bg-card: #1a1d2e;
  --bg-card-hover: #202438;
  --bg-elevated: #242840;
  --bg-glass: rgba(26, 29, 46, 0.6);

  /* ── Accent Colors ── */
  --purple: #7c3aed;
  --purple-light: #a78bfa;
  --purple-dark: #5b21b6;
  --purple-glow: rgba(124, 58, 237, 0.3);
  --blue: #3b82f6;
  --blue-light: #60a5fa;
  --blue-dark: #1d4ed8;
  --blue-glow: rgba(59, 130, 246, 0.3);
  --cyan: #06b6d4;
  --green: #10b981;
  --green-dark: #059669;
  --yellow: #f59e0b;
  --red: #ef4444;
  --red-dark: #dc2626;
  --pink: #ec4899;

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

  /* ── Borders ── */
  --border-color: rgba(148, 163, 184, 0.1);
  --border-active: rgba(124, 58, 237, 0.4);

  /* ── Gradients ── */
  --gradient-primary: linear-gradient(135deg, #7c3aed, #3b82f6);
  --gradient-accent: linear-gradient(135deg, #7c3aed, #ec4899);
  --gradient-warm: linear-gradient(135deg, #f59e0b, #ef4444);
  --gradient-cool: linear-gradient(135deg, #3b82f6, #06b6d4);
  --gradient-glow: linear-gradient(135deg, rgba(124, 58, 237, 0.3), rgba(59, 130, 246, 0.3));

  /* ── Shadows ── */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
  --shadow-glow-purple: 0 0 30px rgba(124, 58, 237, 0.15);
  --shadow-glow-blue: 0 0 30px rgba(59, 130, 246, 0.15);

  /* ── Layout ── */
  --sidebar-width: 260px;
  --navbar-height: 64px;
  --container-max: 1320px;

  /* ── Radius ── */
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* ── Transitions ── */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ─── Base ──────────────────────────────────────────────────────────── */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-primary);
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(124, 58, 237, 0.03) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(59, 130, 246, 0.03) 0%, transparent 50%);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ─── Scrollbar ─────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(148, 163, 184, 0.2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(148, 163, 184, 0.4); }

::selection { background: var(--purple); color: #fff; }

/* ─── Typography ────────────────────────────────────────────────────── */
.text-gradient { background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.text-gradient-accent { background: var(--gradient-accent); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.text-gradient-warm { background: var(--gradient-warm); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.text-gradient-cool { background: var(--gradient-cool); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

h1, h2, h3, h4, h5, h6 { letter-spacing: -0.03em; font-weight: 700; }

.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 { letter-spacing: -0.04em; }

a { color: var(--blue-light); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--purple-light); }

/* ─── Glassmorphism ─────────────────────────────────────────────────── */
.glass {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.glass-strong {
  background: rgba(26, 29, 46, 0.8);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ─── Cards ─────────────────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
  color: var(--text-primary);
  overflow: hidden;
}
.card:hover {
  border-color: var(--border-active);
  box-shadow: var(--shadow-glow-purple);
}
.card-header {
  background: transparent;
  border-bottom: 1px solid var(--border-color);
  padding: 1.25rem 1.5rem;
}
.card-body { padding: 1.5rem; }
.card-footer {
  background: transparent;
  border-top: 1px solid var(--border-color);
  padding: 1rem 1.5rem;
}
.card-glass {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.card-glass:hover {
  background: rgba(26, 29, 46, 0.8);
  border-color: var(--border-active);
}

/* ─── Buttons ────────────────────────────────────────────────────────── */
.btn {
  border-radius: var(--radius-sm);
  font-weight: 600;
  padding: 0.625rem 1.5rem;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  font-size: 0.9rem;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
  opacity: 0;
  transition: opacity var(--transition-base);
}
.btn:hover::after { opacity: 1; }
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--gradient-primary);
  border: none;
  color: #fff;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--gradient-primary);
  box-shadow: 0 4px 25px var(--purple-glow);
  color: #fff;
  transform: translateY(-1px);
}
.btn-secondary {
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}
.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-active);
  color: var(--text-primary);
}
.btn-outline-light {
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
}
.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--text-primary);
}
.btn-ghost {
  background: transparent;
  border: none;
  color: var(--text-secondary);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.05); color: var(--text-primary); }
.btn-glow {
  box-shadow: 0 0 20px var(--purple-glow);
}
.btn-glow:hover {
  box-shadow: 0 0 35px var(--purple-glow);
}
.btn-sm { padding: 0.4rem 1rem; font-size: 0.825rem; }
.btn-lg { padding: 0.875rem 2rem; font-size: 1rem; }
.btn-xl { padding: 1rem 2.5rem; font-size: 1.1rem; }
.btn-icon { width: 40px; height: 40px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); }

.btn-success { background: var(--green); border: none; }
.btn-success:hover { background: var(--green-dark); box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3); }
.btn-danger { background: var(--red); border: none; }
.btn-danger:hover { background: var(--red-dark); box-shadow: 0 4px 20px rgba(239, 68, 68, 0.3); }
.btn-warning { background: var(--yellow); border: none; color: #000; }
.btn-warning:hover { background: #d97706; color: #000; }
.btn-info { background: var(--cyan); border: none; color: #000; }
.btn-info:hover { background: #0891b2; color: #000; }

/* ─── Navbar ────────────────────────────────────────────────────────── */
.navbar {
  background: rgba(11, 13, 20, 0.85);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border-bottom: 1px solid var(--border-color);
  padding: 0;
  min-height: var(--navbar-height);
  transition: all var(--transition-base);
}
.navbar.scrolled { box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3); }
.navbar-brand {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-light);
}
.navbar-brand .brand-varlin { color: var(--text-light); }
.navbar-brand .brand-pro { color: #167ac6; margin-left: 0.15rem; }
.navbar-brand .brand-icon { width: 36px; height: 36px; background: var(--gradient-primary); border-radius: var(--radius-sm); display: inline-flex; align-items: center; justify-content: center; -webkit-text-fill-color: #fff; margin-right: 0.5rem; font-size: 1.1rem; }
.nav-link {
  color: var(--text-secondary) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  position: relative;
}
.nav-link:hover, .nav-link.active {
  color: var(--text-primary) !important;
  background: rgba(255, 255, 255, 0.04);
}
.navbar .dropdown-menu {
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem;
}
.navbar .dropdown-item {
  color: var(--text-secondary);
  border-radius: var(--radius-xs);
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}
.navbar .dropdown-item:hover {
  background: rgba(124, 58, 237, 0.1);
  color: var(--text-primary);
}
.navbar .dropdown-divider { border-color: var(--border-color); }

/* Navbar dropdown opens on hover so the Products link stays clickable */
@media (min-width: 992px) {
  .navbar .nav-item.dropdown:hover > .dropdown-menu {
    display: block;
  }
  .navbar .nav-item.dropdown:hover > .nav-link.dropdown-toggle::after {
    border-top-color: var(--purple-light);
  }
}
.navbar .nav-item.dropdown .dropdown-toggle[data-bs-toggle="dropdown"] {
  cursor: pointer;
}
.navbar .dropdown-menu .dropdown-item:active {
  background: rgba(124, 58, 237, 0.15);
  color: var(--text-primary);
}

/* Categories dropdown: compact 2-column grid */
@media (min-width: 992px) {
  .navbar .dropdown-menu-categories {
    min-width: 380px;
    padding: 0.5rem;
  }
  .navbar .dropdown-menu-categories li:not(:has(hr)) {
    display: inline-block;
    width: 50%;
    vertical-align: top;
  }
  .navbar .dropdown-menu-categories li:has(hr),
  .navbar .dropdown-menu-categories li:last-child {
    display: block;
    width: 100%;
  }
}

.navbar-toggler { border: none; padding: 0; }
.navbar-toggler:focus { box-shadow: none; }
.navbar-toggler .navbar-toggler-icon { filter: invert(1); }

/* ─── Hero Section ──────────────────────────────────────────────────── */
.hero-section {
  min-height: 70vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(124, 58, 237, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 60%, rgba(59, 130, 246, 0.06) 0%, transparent 50%);
  animation: heroPulse 8s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes heroPulse {
  0% { transform: translate(0, 0) scale(1); opacity: 0.6; }
  100% { transform: translate(-1%, -1%) scale(1.02); opacity: 1; }
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  color: var(--purple-light);
  margin-bottom: 1.5rem;
  backdrop-filter: blur(10px);
}
.hero-title { line-height: 1.05; margin-bottom: 1rem; }
.hero-subtitle { font-size: 1.15rem; color: var(--text-secondary); max-width: 540px; line-height: 1.7; }

/* ─── Product Cards ─────────────────────────────────────────────────── */
.product-card {
  transition: all var(--transition-base);
  cursor: pointer;
}
.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(124, 58, 237, 0.15);
}
.product-card .card-img-top {
  height: 200px;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.product-card:hover .card-img-top { transform: scale(1.08); }
.product-card .card-body { padding: 1.25rem; }
.product-card .product-price {
  font-size: 1.25rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.product-card .badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35em 0.9em;
  border-radius: var(--radius-full);
}
.product-card .discount-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--gradient-warm);
  border: none;
  z-index: 2;
}

/* ─── Forms ─────────────────────────────────────────────────────────── */
.form-control, .form-select {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}
.form-control:focus, .form-select:focus {
  background: var(--bg-card);
  border-color: var(--purple);
  color: var(--text-primary);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}
.form-control::placeholder { color: var(--text-muted); }
.form-control-lg { padding: 0.875rem 1.25rem; font-size: 1rem; }
.form-label { font-weight: 500; font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 0.4rem; text-transform: uppercase; letter-spacing: 0.04em; }
.form-text { color: var(--text-muted); font-size: 0.8rem; }
.form-check-input {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
}
.form-check-input:checked {
  background-color: var(--purple);
  border-color: var(--purple);
}
.form-check-input:focus { box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.2); }
.input-group-text {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
}
textarea.form-control {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
}

/* ─── Tables ────────────────────────────────────────────────────────── */
.table { color: var(--text-primary); margin-bottom: 0; }
.table thead th {
  border-bottom: 2px solid var(--border-color);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 1rem 0.75rem;
}
.table td {
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
  padding: 0.875rem 0.75rem;
}
.table > :not(caption) > * > * { background: transparent; }
.table-hover tbody tr { transition: background var(--transition-fast); }
.table-hover tbody tr:hover { background: rgba(124, 58, 237, 0.04) !important; }
.table-striped tbody tr:nth-of-type(odd) { background: rgba(255, 255, 255, 0.015); }

/* ─── Badges ────────────────────────────────────────────────────────── */
.badge {
  font-weight: 500;
  padding: 0.3em 0.8em;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
}
.badge.bg-primary { background: var(--purple) !important; }
.badge.bg-success { background: var(--green) !important; }
.badge.bg-danger { background: var(--red) !important; }
.badge.bg-warning { background: var(--yellow) !important; color: #000; }
.badge.bg-info { background: var(--cyan) !important; color: #000; }
.badge.bg-secondary { background: var(--text-muted) !important; }

/* ─── Alerts ────────────────────────────────────────────────────────── */
.alert {
  border: none;
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
}
.alert-success { background: rgba(16, 185, 129, 0.1); color: var(--green); border-left: 4px solid var(--green); }
.alert-danger { background: rgba(239, 68, 68, 0.1); color: var(--red); border-left: 4px solid var(--red); }
.alert-warning { background: rgba(245, 158, 11, 0.1); color: var(--yellow); border-left: 4px solid var(--yellow); }
.alert-info { background: rgba(6, 182, 212, 0.1); color: var(--cyan); border-left: 4px solid var(--cyan); }
.alert-dismissible .btn-close { filter: invert(1) brightness(0.6); }

/* ─── Dropdown ──────────────────────────────────────────────────────── */
.dropdown-menu {
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}
.dropdown-item {
  color: var(--text-secondary);
  border-radius: var(--radius-xs);
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  transition: all var(--transition-fast);
}
.dropdown-item:hover {
  background: rgba(124, 58, 237, 0.1);
  color: var(--text-primary);
}

/* ─── Modal ─────────────────────────────────────────────────────────── */
.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}
.modal-header {
  border-bottom: 1px solid var(--border-color);
  padding: 1.25rem 1.5rem;
}
.modal-body { padding: 1.5rem; }
.modal-footer {
  border-top: 1px solid var(--border-color);
  padding: 1rem 1.5rem;
}
.modal-header .btn-close { filter: invert(1) brightness(0.6); }

/* ─── Admin Sidebar ─────────────────────────────────────────────────── */
.sidebar {
  background: var(--bg-secondary);
  min-height: 100vh;
  border-right: 1px solid var(--border-color);
  position: sticky;
  top: 0;
}
.sidebar-header {
  padding: 1.5rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
}
.sidebar .nav-link {
  color: var(--text-muted);
  padding: 0.75rem 1.25rem;
  border-left: 3px solid transparent;
  border-radius: 0;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: all var(--transition-fast);
}
.sidebar .nav-link:hover {
  color: var(--text-primary);
  background: rgba(124, 58, 237, 0.05);
  border-left-color: var(--purple);
}
.sidebar .nav-link.active {
  color: var(--text-primary);
  background: rgba(124, 58, 237, 0.1);
  border-left-color: var(--purple);
  font-weight: 600;
}
.sidebar .nav-link i { width: 20px; text-align: center; font-size: 1rem; }
.sidebar hr { margin: 0.75rem 1.25rem; border-color: var(--border-color); opacity: 0.5; }
.sidebar .sidebar-section-title {
  padding: 1rem 1.25rem 0.5rem;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 600;
}

/* ─── Pagination ────────────────────────────────────────────────────── */
.pagination {
  --bs-pagination-bg: var(--bg-card);
  --bs-pagination-border-color: var(--border-color);
  --bs-pagination-color: var(--text-primary);
  --bs-pagination-hover-bg: var(--bg-card-hover);
  --bs-pagination-hover-color: var(--text-primary);
  --bs-pagination-active-bg: var(--gradient-primary);
  --bs-pagination-active-border-color: var(--purple);
  --bs-pagination-focus-box-shadow: 0 0 0 2px var(--purple-glow);
}
.page-link { border-radius: var(--radius-sm) !important; margin: 0 2px; }

/* ─── Stats Cards ───────────────────────────────────────────────────── */
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: all var(--transition-base);
}
.stat-card:hover {
  border-color: var(--border-active);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow-purple);
}
.stat-card .stat-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}
.stat-card .stat-number {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.stat-card .stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* ─── Breadcrumb ────────────────────────────────────────────────────── */
.breadcrumb { background: transparent; padding: 0; }
.breadcrumb-item + .breadcrumb-item::before { color: var(--text-muted); }
.breadcrumb-item a { color: var(--text-muted); }
.breadcrumb-item a:hover { color: var(--purple-light); }
.breadcrumb-item.active { color: var(--text-primary); font-weight: 600; }

/* ─── List Group ────────────────────────────────────────────────────── */
.list-group { border-radius: var(--radius-md); overflow: hidden; }
.list-group-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 1rem 1.25rem;
}
.list-group-item:hover { background: var(--bg-card-hover); }
.list-group-item-action { transition: all var(--transition-fast); }
.list-group-item-action:hover { background: var(--bg-card-hover); color: var(--text-primary); }

/* ─── Nav Tabs ──────────────────────────────────────────────────────── */
.nav-tabs {
  border-bottom: 1px solid var(--border-color);
}
.nav-tabs .nav-link {
  color: var(--text-muted);
  border: none;
  border-bottom: 2px solid transparent;
  padding: 0.75rem 1.25rem;
  font-weight: 500;
  transition: all var(--transition-fast);
}
.nav-tabs .nav-link:hover {
  color: var(--text-primary);
  border-bottom-color: rgba(124, 58, 237, 0.3);
}
.nav-tabs .nav-link.active {
  color: var(--purple-light);
  border-bottom-color: var(--purple);
  background: transparent;
}

/* ─── Progress ──────────────────────────────────────────────────────── */
.progress {
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  height: 8px;
}
.progress-bar {
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
}

/* ─── Timeline ──────────────────────────────────────────────────────── */
.timeline { position: relative; padding: 0; margin: 0; list-style: none; }
.timeline::before {
  content: ''; position: absolute; left: 11px; top: 0; bottom: 0;
  width: 2px; background: var(--border-color);
}
.timeline-item { position: relative; padding: 0 0 1.5rem 36px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-marker {
  position: absolute; left: 0; top: 4px;
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 3px solid var(--bg-card);
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
}
.timeline-marker.completed { background: var(--green); box-shadow: 0 0 10px rgba(16, 185, 129, 0.3); }
.timeline-marker.active { background: var(--purple); box-shadow: 0 0 10px var(--purple-glow); }
.timeline-marker.pending { background: var(--bg-tertiary); border: 2px solid var(--border-color); }
.timeline-content { padding: 0; }
.timeline-content strong { display: block; margin-bottom: 0.2rem; }
.timeline-content small { color: var(--text-muted); }

/* ─── Category Cards ────────────────────────────────────────────────── */
.category-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
  cursor: pointer;
}
.category-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-active);
  box-shadow: var(--shadow-glow-purple);
}
.category-card .cat-icon {
  width: 64px; height: 64px;
  border-radius: var(--radius-lg);
  background: rgba(124, 58, 237, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 1rem;
  transition: all var(--transition-base);
}
.category-card:hover .cat-icon {
  background: var(--gradient-primary);
  transform: scale(1.1);
}
.category-card:hover .cat-icon i { color: #fff; }

/* ─── Order Summary ─────────────────────────────────────────────────── */
.order-summary-item {
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
  border: 1px solid var(--border-color);
}

/* ─── Placeholder / Loading Skeleton ────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-card-hover) 50%, var(--bg-tertiary) 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
}
@keyframes skeletonShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skeleton-text { height: 14px; margin-bottom: 8px; width: 80%; }
.skeleton-text-sm { height: 10px; width: 60%; margin-bottom: 6px; }
.skeleton-title { height: 24px; width: 60%; margin-bottom: 12px; }
.skeleton-avatar { width: 48px; height: 48px; border-radius: 50%; }
.skeleton-thumb { width: 100%; height: 200px; border-radius: var(--radius-md); }

/* ─── Animations ────────────────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 10px var(--purple-glow); }
  50% { box-shadow: 0 0 30px var(--purple-glow); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.animate-fade-in { animation: fadeIn 0.5s ease forwards; }
.animate-fade-in-up { animation: fadeInUp 0.5s ease forwards; }
.animate-scale-in { animation: scaleIn 0.3s ease forwards; }
.animate-slide-in-right { animation: slideInRight 0.4s ease forwards; }
.animate-float { animation: float 6s ease-in-out infinite; }
.animate-pulse-glow { animation: pulseGlow 2s ease-in-out infinite; }

.stagger-1 { animation-delay: 0.05s; }
.stagger-2 { animation-delay: 0.1s; }
.stagger-3 { animation-delay: 0.15s; }
.stagger-4 { animation-delay: 0.2s; }
.stagger-5 { animation-delay: 0.25s; }
.stagger-6 { animation-delay: 0.3s; }

/* ─── Utilities ─────────────────────────────────────────────────────── */
.cursor-pointer { cursor: pointer; }
.text-truncate-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.text-truncate-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.border-left-primary { border-left: 4px solid var(--purple); }
.border-left-success { border-left: 4px solid var(--green); }
.border-left-info { border-left: 4px solid var(--cyan); }
.border-left-warning { border-left: 4px solid var(--yellow); }
.border-left-danger { border-left: 4px solid var(--red); }

.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 1rem; }
.gap-4 { gap: 1.5rem; }
.gap-5 { gap: 2rem; }

/* ─── Cart Badge ────────────────────────────────────────────────────── */
.cart-badge {
  font-size: 0.55rem;
  padding: 0.2em 0.5em;
}

/* ─── Product Image Placeholder ─────────────────────────────────────── */
.product-img-placeholder {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-tertiary);
  color: var(--text-muted);
  font-size: 3rem;
}

/* ─── Category Icon Circle ──────────────────────────────────────────── */
.category-icon-circle {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(124, 58, 237, 0.1);
  font-size: 1.3rem;
}

/* ─── Gallery ───────────────────────────────────────────────────────── */
.gallery-thumb {
  cursor: pointer;
  transition: all var(--transition-fast);
  opacity: 0.6;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.gallery-thumb:hover, .gallery-thumb.active { opacity: 1; }

/* ─── Share Buttons ─────────────────────────────────────────────────── */
.share-btn { transition: all var(--transition-base); }
.share-btn:hover { transform: translateY(-2px); }
.share-btn.facebook:hover { background: #1877f2 !important; border-color: #1877f2 !important; color: #fff !important; }
.share-btn.twitter:hover { background: #1da1f2 !important; border-color: #1da1f2 !important; color: #fff !important; }
.share-btn.line:hover { background: #06c755 !important; border-color: #06c755 !important; color: #fff !important; }

/* ─── Image Preview ─────────────────────────────────────────────────── */
.img-thumbnail {
  background: var(--bg-tertiary);
  border-color: var(--border-color);
  border-radius: var(--radius-sm);
}

/* ─── Quantity Input ────────────────────────────────────────────────── */
.qty-input {
  max-width: 60px;
  text-align: center;
  -moz-appearance: textfield;
}
.qty-input::-webkit-inner-spin-button,
.qty-input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

/* ─── Spinner Overlay ───────────────────────────────────────────────── */
.spinner-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 8, 12, 0.7);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.spinner-overlay.show { display: flex; }

/* ─── Responsive ────────────────────────────────────────────────────── */
@media (max-width: 1199.98px) {
  .sidebar { position: fixed; z-index: 1040; width: var(--sidebar-width); left: calc(var(--sidebar-width) * -1); transition: left var(--transition-base); }
  .sidebar.show { left: 0; }
  .sidebar-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 1039; display: none; backdrop-filter: blur(4px); }
  .sidebar-overlay.show { display: block; }
}

@media (max-width: 991.98px) {
  .hero-section { min-height: 55vh; }
  .hero-title { font-size: 2.75rem !important; }
  .product-card .card-img-top { height: 160px; }
  .navbar .nav-link { padding: 0.5rem 0 !important; }
}

@media (max-width: 767.98px) {
  .hero-section { min-height: 45vh; }
  .hero-title { font-size: 2.25rem !important; }
  .hero-subtitle { font-size: 1rem; }
  .product-card .card-img-top { height: 140px; }
  .stat-card .stat-number { font-size: 1.35rem; }
  .sidebar { width: 100%; left: -100%; }
}

@media (max-width: 575.98px) {
  .hero-section { min-height: 40vh; text-align: center; }
  .hero-title { font-size: 1.75rem !important; }
  .hero-subtitle { margin: 0 auto 1.5rem; }
  .container { padding-left: 1rem; padding-right: 1rem; }
}

/* ─── Checkout: Payment Method ──────────────────────────────────────── */
.payment-method-card {
  cursor: pointer;
  transition: all var(--transition-base);
  border: 2px solid transparent;
}
.payment-method-card:hover { border-color: var(--border-active); }
.payment-method-card.selected { border-color: var(--purple); background: rgba(124, 58, 237, 0.05); }

/* ─── Footer ────────────────────────────────────────────────────────── */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 3rem 0 1.5rem;
}
.footer h6 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); margin-bottom: 1rem; }
.footer a { color: var(--text-secondary); font-size: 0.9rem; transition: color var(--transition-fast); }
.footer a:hover { color: var(--purple-light); }
.footer .social-link {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--transition-base);
}
.footer .social-link:hover {
  background: var(--gradient-primary);
  color: #fff;
  transform: translateY(-3px);
}

/* ─── Home: Recent Orders Marquee ────────────────────────────────── */
.order-marquee {
  overflow: hidden;
  display: flex;
  flex-direction: row;
  position: relative;
  width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.order-marquee-row {
  flex: 0 0 auto;
  min-width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  animation: order-marquee-scroll 40s linear infinite;
}
.order-marquee-item {
  flex: 0 0 auto;
  padding: 0.5rem;
}
.order-marquee-item-inner {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  background: var(--bg-secondary);
  transition: all var(--transition-base);
  white-space: nowrap;
}
a.order-marquee-item-inner:hover {
  border-color: var(--border-active);
  background: var(--bg-tertiary);
  transform: translateY(-2px);
}
.order-marquee-name {
  font-weight: 600;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.order-marquee-time {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
@keyframes order-marquee-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}
@media (prefers-reduced-motion: reduce) {
  .order-marquee-row { animation: none; }
}
