/**
 * UNCLE LESTER — Hacker-Style E-Commerce Template
 * CSS Design System v2.0
 *
 * Table of Contents:
 *  1.  Custom Properties (Design Tokens)
 *  2.  Reset & Base
 *  3.  Typography
 *  4.  Scrollbar
 *  5.  Layout Utilities
 *  6.  Navbar
 *  7.  Hero Section
 *  8.  Buttons
 *  9.  Cards
 * 10.  Forms
 * 11.  Tables
 * 12.  Badges & Tags
 * 13.  Breadcrumbs
 * 14.  Pagination
 * 15.  Sidebar / Filter Panel
 * 16.  Product Listing
 * 17.  Product Detail
 * 18.  Cart
 * 19.  Checkout
 * 20.  Auth Pages
 * 21.  Profile & Dashboard
 * 22.  Order History
 * 23.  About Page
 * 24.  Contact Page
 * 25.  Toast Notifications
 * 26.  Loading States
 * 27.  Animations & Effects
 * 28.  Footer
 * 29.  Accessibility
 * 30.  Responsive Overrides
 */

/* ============================================================
   1. CUSTOM PROPERTIES — Design Tokens
   ============================================================ */
:root {
  /* --- Color Palette --- */
  --clr-primary:        #00ff41;  /* Matrix green */
  --clr-primary-dim:    #00cc33;
  --clr-primary-dark:   #008f11;
  --clr-primary-muted:  #004d1a;
  --clr-accent:         #ff003c;  /* Cyber red */
  --clr-accent-blue:    #00d4ff;  /* Cyan */
  --clr-accent-yellow:  #ffe600;  /* Warning amber */

  /* Background scale */
  --clr-bg:        #030805;
  --clr-bg-alt:    #060e06;
  --clr-surface-1: #0a1a0a;
  --clr-surface-2: #0f220f;
  --clr-surface-3: #162816;

  /* Text scale */
  --clr-text-1:    #00ff41;
  --clr-text-2:    #7fff7f;
  --clr-text-3:    #3d8f3d;
  --clr-text-muted:#254d25;

  /* Borders */
  --clr-border:       #1a3a1a;
  --clr-border-glow:  rgba(0, 255, 65, 0.35);
  --clr-border-focus: rgba(0, 255, 65, 0.7);

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #00ff41 0%, #008f11 100%);
  --gradient-dark:    linear-gradient(180deg, #030805 0%, #060e06 100%);
  --gradient-card:    linear-gradient(145deg, #0a1a0a, #0f220f);

  /* Glow shadows */
  --glow-sm:     0 0 8px  rgba(0, 255, 65, 0.4);
  --glow-md:     0 0 16px rgba(0, 255, 65, 0.5);
  --glow-lg:     0 0 32px rgba(0, 255, 65, 0.6);
  --glow-accent: 0 0 16px rgba(255, 0, 60, 0.5);
  --glow-blue:   0 0 16px rgba(0, 212, 255, 0.5);

  /* Typography */
  --font-mono: 'JetBrains Mono', 'Space Mono', 'Courier New', monospace;

  /* Spacing (8-pt grid) */
  --sp-1: 0.25rem;  /* 4px  */
  --sp-2: 0.5rem;   /* 8px  */
  --sp-3: 0.75rem;  /* 12px */
  --sp-4: 1rem;     /* 16px */
  --sp-5: 1.5rem;   /* 24px */
  --sp-6: 2rem;     /* 32px */
  --sp-7: 3rem;     /* 48px */
  --sp-8: 4rem;     /* 64px */

  /* Border radius */
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 6px;

  /* Transitions */
  --t-fast: 150ms ease;
  --t-base: 250ms ease;
  --t-slow: 400ms ease;

  /* Layout */
  --navbar-h: 72px;

  /* Z-index stack */
  --z-dropdown: 100;
  --z-sticky:   200;
  --z-overlay:  300;
  --z-modal:    400;
  --z-toast:    500;
  --z-scanline: 9999;
}

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

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

body {
  font-family: var(--font-mono);
  background-color: var(--clr-bg);
  color: var(--clr-text-1);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  /* Subtle CRT grid */
  background-image:
    linear-gradient(rgba(0, 255, 65, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 65, 0.025) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* CRT scanlines overlay — purely decorative */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.055) 2px,
    rgba(0, 0, 0, 0.055) 4px
  );
  pointer-events: none;
  z-index: var(--z-scanline);
}

:focus-visible {
  outline: 2px solid var(--clr-primary);
  outline-offset: 3px;
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--clr-primary);
  text-decoration: none;
  transition: color var(--t-fast);
}

a:hover {
  color: var(--clr-text-2);
  text-shadow: var(--glow-sm);
}

::selection {
  background: var(--clr-primary);
  color: var(--clr-bg);
}

/* ============================================================
   3. TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-mono);
  color: var(--clr-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.2;
}

h1 { font-size: clamp(1.8rem, 4vw, 3rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.2rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }

/* Section heading with comment prefix + underline */
.section-title {
  position: relative;
  display: inline-block;
  padding-bottom: var(--sp-3);
  margin-bottom: var(--sp-6);
}

.section-title::before {
  content: '// ';
  color: var(--clr-primary-dark);
  font-size: 0.75em;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gradient-primary);
  box-shadow: var(--glow-sm);
}

/* Terminal-style inline labels */
.lbl-sys  { color: var(--clr-text-3); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; }
.lbl-err  { color: var(--clr-accent); }
.lbl-info { color: var(--clr-accent-blue); }
.lbl-warn { color: var(--clr-accent-yellow); }

code, kbd {
  font-family: var(--font-mono);
  background: var(--clr-surface-2);
  border: 1px solid var(--clr-border);
  padding: 0.1em 0.4em;
  border-radius: var(--radius-sm);
  font-size: 0.9em;
  color: var(--clr-primary);
}

/* ============================================================
   4. SCROLLBAR
   ============================================================ */
::-webkit-scrollbar              { width: 6px; height: 6px; }
::-webkit-scrollbar-track        { background: var(--clr-bg-alt); }
::-webkit-scrollbar-thumb        { background: var(--clr-primary-dark); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover  { background: var(--clr-primary); }

/* ============================================================
   5. LAYOUT UTILITIES
   ============================================================ */
.pt-navbar { padding-top: var(--navbar-h); }

.section-gap    { padding-block: var(--sp-8); }
.section-gap-sm { padding-block: var(--sp-6); }

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

/* Glow divider */
.divider {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--clr-primary-dark), transparent);
  margin-block: var(--sp-6);
}

/* ============================================================
   6. NAVBAR
   ============================================================ */
.navbar {
  background: rgba(3, 8, 5, 0.94) !important;
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  border-bottom: 1px solid var(--clr-border);
  height: var(--navbar-h);
  transition: border-color var(--t-base), box-shadow var(--t-base);
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: var(--z-sticky);
}

.navbar.scrolled {
  border-bottom-color: var(--clr-primary-dark);
  box-shadow: 0 4px 24px rgba(0, 255, 65, 0.08);
}

/* Brand */
.navbar-brand {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--clr-primary) !important;
  letter-spacing: 0.12em;
  text-shadow: var(--glow-md);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.brand-cursor {
  display: inline-block;
  width: 10px;
  height: 1.1em;
  background: var(--clr-primary);
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
  margin-left: 2px;
}

/* Nav links */
.navbar-nav .nav-link {
  font-family: var(--font-mono);
  color: var(--clr-text-3) !important;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding-inline: var(--sp-3) !important;
  position: relative;
  transition: color var(--t-fast), text-shadow var(--t-fast);
}

.navbar-nav .nav-link::before { content: '['; color: transparent; transition: color var(--t-fast); }
.navbar-nav .nav-link::after  { content: ']'; color: transparent; transition: color var(--t-fast); }

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--clr-primary) !important;
  text-shadow: var(--glow-sm);
}

.navbar-nav .nav-link:hover::before,
.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::before,
.navbar-nav .nav-link.active::after {
  color: var(--clr-primary-dark);
}

/* Cart icon */
.cart-badge-wrap { position: relative; display: inline-flex; align-items: center; }

.cart-count {
  position: absolute;
  top: -6px; right: -8px;
  background: var(--clr-accent);
  color: #fff;
  font-size: 0.58rem;
  font-weight: 700;
  min-width: 16px; height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  box-shadow: var(--glow-accent);
}

/* Auth links area */
#auth-links { display: flex; align-items: center; gap: var(--sp-2); }

/* Mobile toggler */
.navbar-toggler {
  border: 1px solid var(--clr-primary-dark);
  padding: var(--sp-1) var(--sp-2);
  color: var(--clr-primary);
}
.navbar-toggler:focus { box-shadow: var(--glow-sm); }
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%2300ff41' stroke-linecap='square' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ============================================================
   7. HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

#matrix-canvas {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  z-index: 0;
}

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

.hero-subtitle {
  color: var(--clr-text-3);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: var(--sp-4);
}

.hero-subtitle::before { content: '> '; color: var(--clr-primary); }

.hero-title {
  font-size: clamp(2rem, 6vw, 5rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-shadow: var(--glow-lg);
  line-height: 1.05;
  margin-bottom: var(--sp-5);
}

.hero-title .accent-blue { color: var(--clr-accent-blue); text-shadow: var(--glow-blue); }

.hero-desc {
  color: var(--clr-text-3);
  font-size: 0.88rem;
  max-width: 520px;
  margin-bottom: var(--sp-6);
  line-height: 1.85;
}

/* Terminal status block */
.terminal-block {
  background: var(--clr-surface-1);
  border: 1px solid var(--clr-border);
  border-left: 3px solid var(--clr-primary);
  padding: var(--sp-3) var(--sp-4);
  font-size: 0.7rem;
  color: var(--clr-text-3);
  letter-spacing: 0.06em;
  margin-bottom: var(--sp-5);
}

.terminal-block .t-ok   { color: var(--clr-primary); }
.terminal-block .t-ip   { color: var(--clr-accent-blue); }
.terminal-block .t-warn { color: var(--clr-accent-yellow); }

/* Promo banner */
.promo-card {
  background: var(--gradient-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  height: 260px;
  display: flex;
  align-items: flex-end;
  transition: transform var(--t-base), border-color var(--t-base), box-shadow var(--t-base);
}

.promo-card img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.42;
  transition: opacity var(--t-slow);
}

.promo-card:hover { transform: translateY(-4px); border-color: var(--clr-primary-dark); box-shadow: var(--glow-md); }
.promo-card:hover img { opacity: 0.58; }

.promo-body {
  position: relative;
  z-index: 1;
  padding: var(--sp-4);
  background: linear-gradient(0deg, rgba(3,8,5,0.95) 0%, transparent 100%);
  width: 100%;
}

.promo-tag {
  display: inline-block;
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 2px 8px;
  border: 1px solid var(--clr-primary);
  color: var(--clr-primary);
  margin-bottom: var(--sp-2);
}

/* Brand scroller */
.brand-scroller {
  overflow: hidden;
  padding-block: var(--sp-4);
  border-top: 1px solid var(--clr-border);
  border-bottom: 1px solid var(--clr-border);
  background: var(--clr-surface-1);
}

.brand-track {
  display: flex;
  gap: var(--sp-7);
  width: max-content;
  animation: scroll-brands 30s linear infinite;
}

.brand-track:hover { animation-play-state: paused; }

.brand-item {
  color: var(--clr-text-muted);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color var(--t-fast);
  user-select: none;
}

.brand-item:hover { color: var(--clr-primary); }

/* Category cards */
.category-card {
  background: var(--gradient-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  text-align: center;
  display: block;
  transition: transform var(--t-base), border-color var(--t-base), box-shadow var(--t-base);
}

.category-card:hover {
  transform: translateY(-6px);
  border-color: var(--clr-primary);
  box-shadow: var(--glow-md);
  text-decoration: none;
}

.category-card .cat-icon {
  font-size: 2.2rem;
  color: var(--clr-primary);
  text-shadow: var(--glow-md);
  display: block;
  margin-bottom: var(--sp-3);
}

.category-card .cat-title {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-text-2);
  margin-bottom: var(--sp-1);
}

.category-card .cat-count {
  font-size: 0.62rem;
  color: var(--clr-text-3);
}

/* ============================================================
   8. BUTTONS
   ============================================================ */
.btn {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  padding: 0.5rem 1.2rem;
  transition: all var(--t-base);
  cursor: pointer;
  position: relative;
}

/* Bracket decoration */
.btn::before { content: '['; margin-right: 4px; }
.btn::after  { content: ']'; margin-left: 4px; }

/* Primary */
.btn-primary, .btn-hack {
  background: transparent;
  border: 1px solid var(--clr-primary);
  color: var(--clr-primary);
}
.btn-primary:hover, .btn-hack:hover {
  background: var(--clr-primary);
  color: var(--clr-bg);
  box-shadow: var(--glow-md);
}

/* Danger */
.btn-danger {
  background: transparent;
  border: 1px solid var(--clr-accent);
  color: var(--clr-accent);
}
.btn-danger:hover {
  background: var(--clr-accent);
  color: #fff;
  box-shadow: var(--glow-accent);
}

/* Outline */
.btn-outline-primary {
  background: transparent;
  border: 1px solid var(--clr-primary-dark);
  color: var(--clr-text-3);
}
.btn-outline-primary:hover {
  border-color: var(--clr-primary);
  color: var(--clr-primary);
  background: var(--clr-surface-2);
}

/* Secondary */
.btn-secondary {
  background: var(--clr-surface-2);
  border: 1px solid var(--clr-border);
  color: var(--clr-text-2);
}
.btn-secondary:hover {
  border-color: var(--clr-primary-dark);
  color: var(--clr-primary);
}

/* Icon-only (strip brackets) */
.btn-icon::before, .btn-icon::after { content: ''; margin: 0; }

/* Sizes */
.btn-sm { font-size: 0.66rem; padding: 0.28rem 0.75rem; }
.btn-lg { font-size: 0.86rem; padding: 0.65rem 1.6rem; }

/* ============================================================
   9. CARDS
   ============================================================ */
/* Product Card */
.product-card {
  background: var(--gradient-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform var(--t-base), border-color var(--t-base), box-shadow var(--t-base);
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: var(--clr-primary-dark);
  box-shadow: var(--glow-md);
}

.product-card-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--clr-surface-2);
}

.product-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow), filter var(--t-slow);
}

.product-card:hover .product-card-img img {
  transform: scale(1.06);
  filter: brightness(1.1) saturate(1.15);
}

/* Hover overlay actions */
.card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(3, 8, 5, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  opacity: 0;
  transition: opacity var(--t-base);
}

.product-card:hover .card-overlay { opacity: 1; }

/* Corner badge */
.card-badge {
  position: absolute;
  top: var(--sp-2); left: var(--sp-2);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 2px 8px;
  z-index: 1;
}

.card-badge.badge-new    { background: var(--clr-primary); color: var(--clr-bg); }
.card-badge.badge-sale   { background: var(--clr-accent); color: #fff; }
.card-badge.badge-hot    { background: #ff6600; color: #fff; }
.card-badge.badge-dlc    { background: var(--clr-accent-blue); color: var(--clr-bg); }

/* Card body */
.product-card-body {
  padding: var(--sp-4);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-uid { font-size: 0.58rem; color: var(--clr-text-muted); letter-spacing: 0.15em; margin-bottom: var(--sp-1); }

.product-title {
  font-size: 0.88rem;
  color: var(--clr-text-2);
  letter-spacing: 0.04em;
  line-height: 1.3;
  margin-bottom: var(--sp-2);
  flex: 1;
}

.product-genre {
  font-size: 0.62rem;
  color: var(--clr-text-3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--sp-3);
}

.product-rating {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-3);
}

.stars { color: var(--clr-accent-yellow); font-size: 0.78rem; letter-spacing: -1px; }
.rating-count { font-size: 0.62rem; color: var(--clr-text-3); }

.product-price {
  display: flex;
  align-items: baseline;
  gap: var(--sp-2);
  margin-bottom: var(--sp-3);
}

.price-current  { font-size: 1.2rem; color: var(--clr-primary); font-weight: 700; text-shadow: var(--glow-sm); }
.price-original { font-size: 0.78rem; color: var(--clr-text-muted); text-decoration: line-through; }
.price-discount { font-size: 0.62rem; color: var(--clr-accent); }

.product-card-footer {
  padding: var(--sp-3) var(--sp-4);
  border-top: 1px solid var(--clr-border);
  display: flex;
  gap: var(--sp-2);
  align-items: center;
}

/* Info/stat card */
.info-card {
  background: var(--gradient-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  transition: border-color var(--t-base);
}

.info-card:hover { border-color: var(--clr-primary-dark); }
.info-card .ic-value { font-size: 1.8rem; color: var(--clr-primary); font-weight: 700; line-height: 1; margin-bottom: var(--sp-1); }
.info-card .ic-label { font-size: 0.68rem; color: var(--clr-text-3); letter-spacing: 0.1em; text-transform: uppercase; }
.info-card .ic-icon  { font-size: 1.6rem; color: var(--clr-primary); margin-bottom: var(--sp-3); }

/* ============================================================
   10. FORMS
   ============================================================ */
.form-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-text-3);
  margin-bottom: var(--sp-1);
}

.form-label::before { content: '> '; color: var(--clr-primary-dark); }

.form-control, .form-select {
  background: var(--clr-surface-1);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-sm);
  color: var(--clr-text-1);
  font-family: var(--font-mono);
  font-size: 0.84rem;
  padding: 0.54rem 0.9rem;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}

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

.form-control:focus, .form-select:focus {
  background: var(--clr-surface-2);
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 3px rgba(0, 255, 65, 0.12);
  color: var(--clr-text-1);
  outline: none;
}

.form-select { cursor: pointer; }
.form-select option { background: var(--clr-surface-2); color: var(--clr-text-1); }

textarea.form-control { resize: vertical; min-height: 100px; }

/* Checkbox/Radio */
.form-check-input {
  background-color: var(--clr-surface-2);
  border: 1px solid var(--clr-primary-dark);
  border-radius: 2px;
  cursor: pointer;
}

.form-check-input:checked {
  background-color: var(--clr-primary);
  border-color: var(--clr-primary);
}

.form-check-input:focus {
  box-shadow: 0 0 0 3px rgba(0, 255, 65, 0.15);
  border-color: var(--clr-primary);
}

.form-check-label {
  font-size: 0.78rem;
  color: var(--clr-text-3);
  cursor: pointer;
}

/* Validation */
.form-control.is-valid    { border-color: var(--clr-primary); }
.form-control.is-invalid  { border-color: var(--clr-accent); }
.valid-feedback   { color: var(--clr-primary); font-size: 0.68rem; margin-top: var(--sp-1); }
.invalid-feedback { color: var(--clr-accent); font-size: 0.68rem; margin-top: var(--sp-1); }

/* Search field */
.search-wrap { position: relative; }
.search-wrap .search-icon {
  position: absolute;
  left: var(--sp-3);
  top: 50%;
  transform: translateY(-50%);
  color: var(--clr-text-3);
  font-size: 0.82rem;
  pointer-events: none;
}
.search-wrap .form-control { padding-left: 2.2rem; }

/* Range slider */
.form-range { -webkit-appearance: none; width: 100%; height: 4px; background: var(--clr-border); border-radius: 2px; outline: none; }
.form-range::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 2px; background: var(--clr-primary); cursor: pointer; box-shadow: var(--glow-sm); }

/* ============================================================
   11. TABLES
   ============================================================ */
.hack-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }

.hack-table thead th {
  background: var(--clr-surface-2);
  color: var(--clr-text-3);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--clr-border);
  white-space: nowrap;
}

.hack-table tbody td {
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--clr-border);
  color: var(--clr-text-2);
  vertical-align: middle;
}

.hack-table tbody tr:hover td { background: var(--clr-surface-1); }
.hack-table tbody tr:last-child td { border-bottom: none; }

/* ============================================================
   12. BADGES & TAGS
   ============================================================ */
.hack-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid;
  border-radius: 2px;
  white-space: nowrap;
}

.hack-badge-success { color: var(--clr-primary);       border-color: var(--clr-primary-dark);  background: rgba(0,255,65,0.06); }
.hack-badge-danger  { color: var(--clr-accent);        border-color: var(--clr-accent);        background: rgba(255,0,60,0.06); }
.hack-badge-info    { color: var(--clr-accent-blue);   border-color: var(--clr-accent-blue);   background: rgba(0,212,255,0.06); }
.hack-badge-warn    { color: var(--clr-accent-yellow); border-color: var(--clr-accent-yellow); background: rgba(255,230,0,0.06); }
.hack-badge-muted   { color: var(--clr-text-3);        border-color: var(--clr-border);        background: transparent; }

/* Status indicator dot */
.status-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.status-dot.online  { background: var(--clr-primary); box-shadow: 0 0 6px var(--clr-primary); }
.status-dot.offline { background: var(--clr-accent); }
.status-dot.pending { background: var(--clr-accent-yellow); }

/* ============================================================
   13. BREADCRUMBS
   ============================================================ */
.breadcrumb {
  background: transparent;
  padding: 0;
  margin: 0;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
}

.breadcrumb-item a { color: var(--clr-text-3); }
.breadcrumb-item a:hover { color: var(--clr-primary); }
.breadcrumb-item.active { color: var(--clr-text-2); }
.breadcrumb-item + .breadcrumb-item::before { content: '/'; color: var(--clr-primary-dark); }

/* ============================================================
   14. PAGINATION
   ============================================================ */
.pagination { gap: var(--sp-1); }

.page-link {
  background: var(--clr-surface-1);
  border: 1px solid var(--clr-border) !important;
  color: var(--clr-text-3);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  border-radius: var(--radius-sm) !important;
  transition: all var(--t-fast);
  padding: 0.38rem 0.7rem;
}

.page-link:hover { background: var(--clr-surface-2); border-color: var(--clr-primary) !important; color: var(--clr-primary); }

.page-item.active .page-link {
  background: var(--clr-primary);
  border-color: var(--clr-primary) !important;
  color: var(--clr-bg);
  box-shadow: var(--glow-sm);
}

.page-item.disabled .page-link { color: var(--clr-text-muted); }

/* ============================================================
   15. SIDEBAR / FILTER PANEL
   ============================================================ */
.filter-panel {
  background: var(--gradient-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  position: sticky;
  top: calc(var(--navbar-h) + var(--sp-4));
}

.filter-panel-title {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clr-text-3);
  padding-bottom: var(--sp-3);
  margin-bottom: var(--sp-4);
  border-bottom: 1px solid var(--clr-border);
}

.filter-section { margin-bottom: var(--sp-5); }

.filter-section-title {
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clr-primary);
  margin-bottom: var(--sp-3);
}

/* ============================================================
   16. PRODUCT LISTING
   ============================================================ */
.products-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-bottom: var(--sp-5);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--clr-border);
}

.products-count { font-size: 0.72rem; color: var(--clr-text-3); letter-spacing: 0.08em; }
.products-count span { color: var(--clr-primary); }

.view-toggle .btn { padding: 0.32rem 0.55rem; }
.view-toggle .btn::before, .view-toggle .btn::after { content: ''; margin: 0; }

/* List-view item */
.product-list-item {
  background: var(--gradient-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-4);
  display: flex;
  gap: var(--sp-4);
  align-items: flex-start;
  transition: border-color var(--t-base), box-shadow var(--t-base);
  margin-bottom: var(--sp-3);
}

.product-list-item:hover { border-color: var(--clr-primary-dark); box-shadow: var(--glow-sm); }

.product-list-item .pli-img {
  width: 160px;
  min-width: 160px;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--clr-border);
}

.product-list-item .pli-body { flex: 1; }
.product-list-item .pli-actions { display: flex; flex-direction: column; gap: var(--sp-2); align-items: flex-end; }

/* Active filter tag */
.filter-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 3px 10px;
  background: var(--clr-surface-2);
  border: 1px solid var(--clr-primary-dark);
  border-radius: 2px;
  font-size: 0.62rem;
  color: var(--clr-text-2);
  letter-spacing: 0.08em;
}

.filter-tag .remove-tag {
  color: var(--clr-text-3);
  cursor: pointer;
  transition: color var(--t-fast);
  background: none;
  border: none;
  padding: 0;
  font-size: 0.75rem;
  line-height: 1;
}

.filter-tag .remove-tag:hover { color: var(--clr-accent); }

/* ============================================================
   17. PRODUCT DETAIL
   ============================================================ */
.product-gallery-main {
  background: var(--clr-surface-1);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/9;
}

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

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-2);
  margin-top: var(--sp-3);
}

.gallery-thumb {
  aspect-ratio: 4/3;
  object-fit: cover;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  opacity: 0.55;
  transition: opacity var(--t-fast), border-color var(--t-fast);
}

.gallery-thumb:hover, .gallery-thumb.active { opacity: 1; border-color: var(--clr-primary); }

/* Info panel */
.product-info-panel {
  background: var(--gradient-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
}

.product-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--clr-border);
  margin-top: var(--sp-4);
}

.meta-key {
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-text-3);
  margin-bottom: var(--sp-1);
}

.meta-val { font-size: 0.8rem; color: var(--clr-text-2); }

/* Platform selector */
.platform-btn {
  background: var(--clr-surface-1);
  border: 1px solid var(--clr-border);
  color: var(--clr-text-3);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.32rem 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--t-fast);
}

.platform-btn::before, .platform-btn::after { content: ''; margin: 0; }
.platform-btn.active, .platform-btn:hover { border-color: var(--clr-primary); color: var(--clr-primary); }

/* Qty control */
.qty-control {
  display: inline-flex;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.qty-btn {
  background: var(--clr-surface-1);
  border: none;
  color: var(--clr-primary);
  width: 36px; height: 38px;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--t-fast);
}

.qty-btn:hover { background: var(--clr-surface-2); }

.qty-input {
  background: var(--clr-surface-2);
  border: none;
  border-left: 1px solid var(--clr-border);
  border-right: 1px solid var(--clr-border);
  color: var(--clr-text-1);
  font-family: var(--font-mono);
  font-size: 0.84rem;
  text-align: center;
  width: 52px;
  outline: none;
}

/* Tabs */
.hack-tabs .nav-link {
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--clr-border);
  color: var(--clr-text-3);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: var(--sp-2) var(--sp-4);
  border-radius: 0;
  transition: color var(--t-fast), border-color var(--t-fast);
}

.hack-tabs .nav-link::before, .hack-tabs .nav-link::after { content: ''; margin: 0; }
.hack-tabs .nav-link:hover { color: var(--clr-text-2); }

.hack-tabs .nav-link.active {
  background: transparent;
  border-bottom-color: var(--clr-primary);
  color: var(--clr-primary);
}

.tab-content > .tab-pane { padding-top: var(--sp-5); }

/* ============================================================
   18. CART
   ============================================================ */
.cart-table-wrap {
  background: var(--gradient-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.cart-product-thumb {
  width: 72px; height: 48px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--clr-border);
}

.cart-summary-panel {
  background: var(--gradient-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  position: sticky;
  top: calc(var(--navbar-h) + var(--sp-4));
}

.sum-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: var(--sp-2);
  font-size: 0.82rem;
  color: var(--clr-text-3);
  border-bottom: 1px solid var(--clr-border);
}

.sum-row:last-of-type { border-bottom: none; }

.sum-row.total {
  color: var(--clr-primary);
  font-size: 1.1rem;
  font-weight: 700;
  padding-top: var(--sp-3);
}

.sum-row.total .sum-val { text-shadow: var(--glow-sm); }

.cart-empty {
  text-align: center;
  padding: var(--sp-8) var(--sp-4);
  color: var(--clr-text-3);
}

.cart-empty i { font-size: 3rem; display: block; margin-bottom: var(--sp-4); color: var(--clr-text-muted); }

/* ============================================================
   19. CHECKOUT
   ============================================================ */
.checkout-section {
  background: var(--gradient-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  margin-bottom: var(--sp-4);
}

.checkout-section-header {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-5);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--clr-border);
}

.checkout-step-num {
  width: 28px; height: 28px;
  background: var(--clr-primary);
  color: var(--clr-bg);
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.checkout-section-title {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-text-2);
  margin: 0;
}

.payment-option {
  background: var(--clr-surface-1);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: var(--sp-3) var(--sp-4);
  cursor: pointer;
  transition: border-color var(--t-fast);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-2);
}

.payment-option:hover { border-color: var(--clr-primary-dark); }
.payment-option.selected { border-color: var(--clr-primary); background: var(--clr-surface-2); }
.payment-option input[type="radio"] { accent-color: var(--clr-primary); }
.payment-option-label { font-size: 0.8rem; color: var(--clr-text-2); cursor: pointer; flex: 1; }

/* ============================================================
   20. AUTH PAGES
   ============================================================ */
.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-4);
  position: relative;
}

.auth-card {
  background: var(--gradient-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-7) var(--sp-6);
  width: 100%;
  max-width: 440px;
  position: relative;
  z-index: 1;
}

/* Pixel corner accents */
.auth-card::before { content: ''; position: absolute; top: -1px; left: -1px; width: 18px; height: 18px; border-top: 2px solid var(--clr-primary); border-left: 2px solid var(--clr-primary); }
.auth-card::after  { content: ''; position: absolute; bottom: -1px; right: -1px; width: 18px; height: 18px; border-bottom: 2px solid var(--clr-primary); border-right: 2px solid var(--clr-primary); }

.auth-logo { text-align: center; margin-bottom: var(--sp-6); }
.auth-logo .logo-text { font-size: 1.4rem; font-weight: 700; letter-spacing: 0.14em; text-shadow: var(--glow-md); }

.auth-title {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clr-text-3);
  text-align: center;
  margin-bottom: var(--sp-5);
}

.auth-title::before { content: '// '; color: var(--clr-primary-dark); }

.auth-divider {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-block: var(--sp-4);
  font-size: 0.62rem;
  color: var(--clr-text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--clr-border); }

.btn-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  width: 100%;
  background: var(--clr-surface-1);
  border: 1px solid var(--clr-border);
  color: var(--clr-text-2);
  font-size: 0.76rem;
}

.btn-social::before, .btn-social::after { content: ''; margin: 0; }
.btn-social:hover { border-color: var(--clr-primary-dark); color: var(--clr-primary); background: var(--clr-surface-2); }

/* ============================================================
   21. PROFILE & DASHBOARD
   ============================================================ */
.profile-sidebar {
  background: var(--gradient-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  position: sticky;
  top: calc(var(--navbar-h) + var(--sp-4));
}

.profile-avatar-wrap {
  text-align: center;
  margin-bottom: var(--sp-5);
  padding-bottom: var(--sp-5);
  border-bottom: 1px solid var(--clr-border);
}

.profile-avatar {
  width: 88px; height: 88px;
  border-radius: 50%;
  border: 2px solid var(--clr-primary);
  box-shadow: var(--glow-md);
  margin: 0 auto var(--sp-3);
  object-fit: cover;
}

.profile-name { font-size: 0.95rem; color: var(--clr-text-2); letter-spacing: 0.06em; margin-bottom: var(--sp-1); }
.profile-email { font-size: 0.68rem; color: var(--clr-text-3); }

.profile-nav { list-style: none; }
.profile-nav li { margin-bottom: var(--sp-1); }

.profile-nav a {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-2) var(--sp-3);
  color: var(--clr-text-3);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  border-left: 2px solid transparent;
  transition: color var(--t-fast), background var(--t-fast), border-color var(--t-fast);
}

.profile-nav a i { width: 16px; text-align: center; }

.profile-nav a:hover, .profile-nav a.active {
  color: var(--clr-primary);
  background: var(--clr-surface-2);
  border-left-color: var(--clr-primary);
  text-decoration: none;
}

.profile-content {
  background: var(--gradient-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
}

.profile-content-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-5);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--clr-border);
}

/* ============================================================
   22. ORDER HISTORY
   ============================================================ */
.order-card {
  background: var(--gradient-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--sp-4);
  transition: border-color var(--t-base);
}

.order-card:hover { border-color: var(--clr-primary-dark); }

.order-card-header {
  background: var(--clr-surface-2);
  padding: var(--sp-3) var(--sp-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-2);
  border-bottom: 1px solid var(--clr-border);
}

.order-id   { font-size: 0.72rem; letter-spacing: 0.12em; color: var(--clr-primary); }
.order-date { font-size: 0.66rem; color: var(--clr-text-3); }

.order-items-list { padding: var(--sp-4); }

.order-item-row {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding-block: var(--sp-2);
  border-bottom: 1px solid var(--clr-border);
}

.order-item-row:last-child { border-bottom: none; }

.order-item-thumb {
  width: 52px; height: 36px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--clr-border);
}

.order-item-name { flex: 1; font-size: 0.8rem; color: var(--clr-text-2); }

.order-card-footer {
  padding: var(--sp-3) var(--sp-4);
  border-top: 1px solid var(--clr-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.order-total-label { font-size: 0.68rem; color: var(--clr-text-3); letter-spacing: 0.08em; text-transform: uppercase; }
.order-total-val   { font-size: 1rem; color: var(--clr-primary); font-weight: 700; }

/* ============================================================
   23. ABOUT PAGE
   ============================================================ */
.about-image-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.about-image-wrap img { width: 100%; filter: brightness(0.7) saturate(0.5); }

.about-image-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid var(--clr-primary-dark);
  border-radius: var(--radius-lg);
  pointer-events: none;
}

.stat-block {
  text-align: center;
  padding: var(--sp-5);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  background: var(--gradient-card);
  transition: border-color var(--t-base), box-shadow var(--t-base);
}

.stat-block:hover { border-color: var(--clr-primary-dark); box-shadow: var(--glow-sm); }

.stat-number { font-size: 2.2rem; font-weight: 700; color: var(--clr-primary); text-shadow: var(--glow-md); line-height: 1; margin-bottom: var(--sp-1); }
.stat-label  { font-size: 0.66rem; color: var(--clr-text-3); letter-spacing: 0.14em; text-transform: uppercase; }

/* ============================================================
   24. CONTACT PAGE
   ============================================================ */
.contact-card {
  background: var(--gradient-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  text-align: center;
  transition: border-color var(--t-base), box-shadow var(--t-base);
}

.contact-card:hover { border-color: var(--clr-primary-dark); box-shadow: var(--glow-sm); }
.contact-card .cc-icon { font-size: 1.8rem; color: var(--clr-primary); text-shadow: var(--glow-md); display: block; margin-bottom: var(--sp-3); }
.contact-card .cc-title { font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--clr-text-3); margin-bottom: var(--sp-2); }
.contact-card .cc-value { font-size: 0.84rem; color: var(--clr-text-2); }

/* Map embed with hacker tint */
.map-embed {
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  filter: grayscale(1) invert(1) hue-rotate(140deg) brightness(0.72);
}

/* ============================================================
   25. TOAST NOTIFICATIONS
   ============================================================ */
#toast-container {
  position: fixed;
  bottom: var(--sp-5);
  right: var(--sp-5);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  max-width: 320px;
}

.hack-toast {
  background: var(--clr-surface-1);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: var(--sp-3) var(--sp-4);
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  animation: slideInRight 0.3s ease, fadeOut 0.4s ease 3.6s forwards;
  position: relative;
  overflow: hidden;
}

.hack-toast.toast-success { border-left: 3px solid var(--clr-primary); }
.hack-toast.toast-error   { border-left: 3px solid var(--clr-accent); }
.hack-toast.toast-info    { border-left: 3px solid var(--clr-accent-blue); }

.toast-icon { font-size: 0.88rem; margin-top: 2px; flex-shrink: 0; }
.toast-success .toast-icon { color: var(--clr-primary); }
.toast-error   .toast-icon { color: var(--clr-accent); }
.toast-info    .toast-icon { color: var(--clr-accent-blue); }

.toast-body .toast-prefix { font-size: 0.58rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--clr-text-3); display: block; margin-bottom: 2px; }
.toast-body .toast-msg    { font-size: 0.78rem; color: var(--clr-text-2); }

.toast-progress {
  position: absolute;
  bottom: 0; left: 0;
  height: 2px;
  background: var(--clr-primary);
  animation: progressBar 4s linear forwards;
}

.toast-error .toast-progress { background: var(--clr-accent); }
.toast-info  .toast-progress { background: var(--clr-accent-blue); }

.toast-close {
  background: none;
  border: none;
  color: var(--clr-text-3);
  cursor: pointer;
  font-size: 0.78rem;
  padding: 0;
  margin-left: auto;
  line-height: 1;
  flex-shrink: 0;
  transition: color var(--t-fast);
}

.toast-close::before, .toast-close::after { content: ''; margin: 0; }
.toast-close:hover { color: var(--clr-primary); }

/* ============================================================
   26. LOADING STATES
   ============================================================ */
.skeleton {
  background: linear-gradient(
    90deg,
    var(--clr-surface-1) 25%,
    var(--clr-surface-2) 50%,
    var(--clr-surface-1) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-md);
}

.spinner-hack {
  width: 36px; height: 36px;
  border: 2px solid var(--clr-border);
  border-top-color: var(--clr-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  box-shadow: var(--glow-sm);
}

.cursor-blink {
  display: inline-block;
  width: 8px; height: 1em;
  background: var(--clr-primary);
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
  margin-left: 2px;
}

/* ============================================================
   27. ANIMATIONS & EFFECTS
   ============================================================ */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

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

@keyframes shimmer {
  to { background-position: -200% 0; }
}

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

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

@keyframes fadeOut {
  from { opacity: 1; }
  to   { opacity: 0; pointer-events: none; }
}

@keyframes progressBar {
  from { width: 100%; }
  to   { width: 0%; }
}

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

/* Glitch text effect */
.text-glitch {
  position: relative;
  display: inline-block;
}

.text-glitch::before,
.text-glitch::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  color: var(--clr-primary);
  pointer-events: none;
}

.text-glitch:hover::before {
  color: var(--clr-accent);
  left: 2px;
  clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
  animation: glitch-clip 0.35s steps(1) infinite;
}

.text-glitch:hover::after {
  color: var(--clr-accent-blue);
  left: -2px;
  clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
  animation: glitch-clip 0.35s steps(1) 0.08s infinite;
}

@keyframes glitch-clip {
  0%   { opacity: 1; transform: translate(-2px, 1px); }
  25%  { opacity: 0; }
  50%  { opacity: 1; transform: translate(2px, -1px); }
  75%  { opacity: 0; }
  100% { opacity: 1; transform: translate(0); }
}

/* Scan sweep on hover */
.scan-effect {
  position: relative;
  overflow: hidden;
}

.scan-effect::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--clr-primary), transparent);
  opacity: 0;
}

.scan-effect:hover::after {
  animation: scanSweep 0.55s ease forwards;
}

@keyframes scanSweep {
  from { top: -5%; opacity: 0.9; }
  to   { top: 110%; opacity: 0; }
}

/* ============================================================
   28. FOOTER
   ============================================================ */
.site-footer {
  background: var(--clr-surface-1);
  border-top: 1px solid var(--clr-border);
  padding-top: var(--sp-7);
}

.footer-brand .brand-desc {
  font-size: 0.76rem;
  color: var(--clr-text-3);
  line-height: 1.85;
  margin-top: var(--sp-3);
  max-width: 280px;
}

.footer-title {
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clr-text-3);
  margin-bottom: var(--sp-4);
  padding-bottom: var(--sp-2);
  border-bottom: 1px solid var(--clr-border);
}

.footer-links { list-style: none; }
.footer-links li { margin-bottom: var(--sp-2); }

.footer-links a {
  font-size: 0.78rem;
  color: var(--clr-text-3);
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  transition: color var(--t-fast), padding-left var(--t-fast);
}

.footer-links a::before { content: '>'; color: var(--clr-primary-dark); transition: color var(--t-fast); }

.footer-links a:hover {
  color: var(--clr-primary);
  padding-left: var(--sp-2);
  text-decoration: none;
}

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

/* Newsletter */
.newsletter-form { display: flex; gap: var(--sp-2); }
.newsletter-form .form-control { flex: 1; font-size: 0.78rem; }

/* Social icons */
.social-links { display: flex; gap: var(--sp-3); margin-top: var(--sp-4); }

.social-link {
  width: 34px; height: 34px;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-text-3);
  font-size: 0.84rem;
  transition: color var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast);
}

.social-link:hover { color: var(--clr-primary); border-color: var(--clr-primary); box-shadow: var(--glow-sm); }

.footer-bottom {
  margin-top: var(--sp-6);
  padding-block: var(--sp-4);
  border-top: 1px solid var(--clr-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-3);
  font-size: 0.66rem;
  color: var(--clr-text-muted);
  letter-spacing: 0.06em;
}

.footer-bottom a { color: var(--clr-text-3); }
.footer-bottom a:hover { color: var(--clr-primary); }

/* ============================================================
   29. ACCESSIBILITY
   ============================================================ */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--sp-4);
  background: var(--clr-primary);
  color: var(--clr-bg);
  padding: var(--sp-2) var(--sp-4);
  font-size: 0.76rem;
  font-weight: 700;
  z-index: calc(var(--z-scanline) + 1);
  transition: top var(--t-fast);
}

.skip-link:focus { top: var(--sp-2); color: var(--clr-bg); }

/* Reduce motion — respect OS preference */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  body::before   { display: none; }   /* Disable scanlines */
  .brand-track   { animation: none; } /* Disable scroll */
  #matrix-canvas { display: none; }  /* Disable matrix */
}

/* ============================================================
   30. RESPONSIVE OVERRIDES
   ============================================================ */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: rgba(3, 8, 5, 0.97);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg);
    padding: var(--sp-4);
    margin-top: var(--sp-2);
  }

  .filter-panel,
  .cart-summary-panel,
  .profile-sidebar { position: static; }

  .profile-sidebar { margin-bottom: var(--sp-4); }
}

@media (max-width: 767.98px) {
  :root { --navbar-h: 64px; }

  .section-gap    { padding-block: var(--sp-6); }
  .section-gap-sm { padding-block: var(--sp-5); }

  .product-list-item { flex-direction: column; }

  .product-list-item .pli-img {
    width: 100%;
    min-width: 0;
    aspect-ratio: 16/9;
  }

  .product-list-item .pli-actions { flex-direction: row; }

  .checkout-section { padding: var(--sp-4); }
  .auth-card { padding: var(--sp-5) var(--sp-4); }

  #toast-container {
    left: var(--sp-3);
    right: var(--sp-3);
    max-width: none;
    bottom: var(--sp-3);
  }

  .gallery-thumbs { grid-template-columns: repeat(3, 1fr); }
  .newsletter-form { flex-direction: column; }
}

@media (max-width: 575.98px) {
  .promo-card  { height: 200px; }
  .stat-number { font-size: 1.8rem; }
  .product-meta-grid { grid-template-columns: 1fr; }
}

/* High-contrast mode */
@media (prefers-contrast: high) {
  :root {
    --clr-text-3: #5ab85a;
    --clr-border: #2d5a2d;
  }
}
