/* ============================================================
   MD DEVELOPMENT — PREMIUM DARK STUDIO
   Design system v2 · sober / professional / cyan
   ============================================================ */

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

:root {
  /* Surfaces */
  --bg-primary: #07090f;
  --bg-secondary: #0c0f17;
  --bg-card: #10141e;
  --bg-elevated: #161b27;
  --bg-input: #0a0d14;

  /* Lines */
  --border: rgba(255, 255, 255, 0.07);
  --border-hover: rgba(255, 255, 255, 0.15);
  --border-strong: rgba(255, 255, 255, 0.22);

  /* Text */
  --text-primary: #f3f6fb;
  --text-secondary: #9aa6bb;
  --text-muted: #5c6678;

  /* Accent (cyan-blue) */
  --accent: #0ea5e9;
  --accent-light: #38bdf8;
  --accent-dark: #0284c7;
  --accent-soft: rgba(14, 165, 233, 0.12);
  --accent-gradient: linear-gradient(135deg, #5bc7ff 0%, #0ea5e9 55%, #0284c7 100%);

  /* Legacy aliases (kept for older rules) */
  --accent-glow: rgba(14, 165, 233, 0.10);
  --accent-glow-strong: rgba(14, 165, 233, 0.16);
  --cyan: #06b6d4;
  --danger: #f43f5e;
  --success: #34d399;

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.38);
  --shadow-lg: 0 28px 70px rgba(0, 0, 0, 0.55);

  /* Type */
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;

  --maxw: 1200px;
  --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

/* Textured backdrop: subtle dot grid + accent aura */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image: radial-gradient(circle at center, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 34px 34px;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 45% at 50% -8%, rgba(14, 165, 233, 0.10) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 100% 0%, rgba(6, 182, 212, 0.05) 0%, transparent 55%);
}

a { text-decoration: none; color: inherit; }

::selection { background: rgba(14, 165, 233, 0.28); color: #fff; }

/* Scrollbar */
* { scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.14) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  border: 2px solid var(--bg-secondary);
}
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.22); }

a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

@keyframes page-fade-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.store-wrapper, .pkg-page { animation: page-fade-in 0.5s cubic-bezier(0.4, 0, 0.2, 1); }

@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
@keyframes spin { to { transform: rotate(360deg); } }

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

/* ============================================================
   REUSABLE UTILITIES
   ============================================================ */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }

/* Eyebrow / kicker label */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-light);
}
.eyebrow::before { content: ''; width: 22px; height: 1px; background: var(--accent); }

/* Section header (eyebrow + title + sub) */
.section-head { margin-bottom: 28px; }
.section-head h2 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-top: 12px;
  line-height: 1.15;
}
.section-head p {
  color: var(--text-secondary);
  margin-top: 8px;
  max-width: 580px;
  font-size: 0.9rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 26px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-ghost { background: var(--bg-card); color: var(--text-secondary); border-color: var(--border); }
.btn-ghost:hover { color: var(--text-primary); border-color: var(--border-hover); background: var(--bg-elevated); }

/* ============================================================
   ANNOUNCEMENT
   ============================================================ */
.announcement {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  padding: 11px 24px;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 9, 15, 0.72);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--border);
}

.navbar-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}

.navbar-logo {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  object-fit: contain;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 3px;
}

.navbar-brand-icon {
  width: 38px; height: 38px;
  background: var(--accent-gradient);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; font-weight: 700; color: #fff;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 4px;
}

.navbar-links a,
.navbar-links li a {
  padding: 9px 18px !important;
  font-size: 0.84rem !important;
  font-weight: 600 !important;
  color: #d6deec !important;
  border-radius: var(--radius-pill) !important;
  transition: all var(--transition) !important;
  background: transparent !important;
  text-decoration: none !important;
}
.navbar-links a:hover, .navbar-links li a:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.07) !important;
}
.navbar-links a.active, .navbar-links li a.active {
  color: #fff !important;
  background: var(--accent) !important;
}

.navbar-cart {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}
.navbar-cart:hover { border-color: var(--border-hover); color: var(--text-primary); background: var(--bg-elevated); }
.navbar-cart svg { width: 17px; height: 17px; }

.navbar-cart-badge {
  position: absolute;
  top: -6px; right: -6px;
  min-width: 19px; height: 19px;
  background: var(--accent);
  color: #fff;
  font-size: 0.65rem; font-weight: 700;
  border-radius: var(--radius-pill);
  display: flex; align-items: center; justify-content: center;
  padding: 0 5px;
  border: 2px solid var(--bg-primary);
}

/* Mobile hamburger */
.navbar-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px; height: 42px;
  padding: 0 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
}
.navbar-toggle:hover { border-color: var(--border-hover); }
.navbar-toggle span { display: block; height: 2px; width: 100%; background: var(--text-primary); border-radius: 2px; transition: all var(--transition); }
.navbar-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar-toggle.open span:nth-child(2) { opacity: 0; }
.navbar-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   STORE WRAPPER
   ============================================================ */
.store-wrapper { max-width: var(--maxw); margin: 0 auto; padding: 56px 32px 90px; }

/* ============================================================
   HERO (category header)
   ============================================================ */
.hero {
  position: relative;
  text-align: center;
  margin-bottom: 48px;
  padding: 60px 32px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(ellipse 60% 70% at 50% 0%, rgba(14, 165, 233, 0.08) 0%, transparent 65%),
    var(--bg-secondary);
  border: 1px solid var(--border);
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 50%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-light), transparent);
}
.hero h1 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
  letter-spacing: -0.03em;
  line-height: 1.08;
  position: relative;
}
.hero-description {
  max-width: 580px; margin: 0 auto;
  font-size: 0.95rem; line-height: 1.7;
  color: var(--text-secondary); position: relative;
}
.hero-stats { display: flex; justify-content: center; gap: 48px; margin-top: 32px; position: relative; }
.hero-stat { text-align: center; }
.hero-stat-value { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--accent-light); letter-spacing: -0.02em; }
.hero-stat-label { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 6px; font-weight: 500; }

/* ============================================================
   STORE LAYOUT
   ============================================================ */
.store-layout { display: grid; grid-template-columns: 1fr 330px; gap: 40px; align-items: start; }

/* Legacy section title */
.section-title { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.section-title h2 { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; color: var(--text-primary); letter-spacing: -0.02em; }
.section-title-line { flex: 1; height: 1px; background: var(--border); }
.section-title-count { font-size: 0.72rem; font-weight: 600; color: var(--text-muted); background: var(--bg-card); border: 1px solid var(--border); padding: 4px 10px; border-radius: var(--radius-pill); }

/* ============================================================
   PRODUCT GRID + CARD
   ============================================================ */
.products-grid, .store-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 22px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
}
/* accent top line on hover */
.product-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--accent-gradient);
  opacity: 0;
  transition: opacity var(--transition);
  z-index: 2;
}
.product-card:hover::before { opacity: 1; }
.product-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}
.product-card:hover .product-card-image,
.product-card:hover .product-card-placeholder { transform: scale(1.04); }

.product-card-image-wrapper { overflow: hidden; position: relative; }
.product-card-image {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  background: var(--bg-primary); transition: transform 0.5s ease; display: block;
}
.product-card-placeholder {
  width: 100%; aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--bg-elevated), var(--bg-card));
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); opacity: 0.5; transition: transform 0.5s ease;
}

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

.product-card-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent-light);
  background: var(--accent-soft);
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
}

.product-card-name {
  font-family: var(--font-display);
  font-size: 1rem; font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px; line-height: 1.3; letter-spacing: -0.01em;
}
.product-card-description {
  font-size: 0.8rem; color: var(--text-muted); line-height: 1.6;
  margin-bottom: 16px; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 16px; border-top: 1px solid var(--border);
}
.product-price { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; color: var(--text-primary); letter-spacing: -0.02em; }
.product-price-original { display: block; font-size: 0.72rem; color: var(--text-muted); text-decoration: line-through; font-weight: 400; margin-top: 2px; }

.product-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 18px;
  background: var(--accent); color: #fff;
  font-size: 0.8rem; font-weight: 600;
  border: none; border-radius: var(--radius-sm);
  cursor: pointer; transition: all var(--transition);
  text-decoration: none;
}
.product-btn:hover { background: var(--accent-dark); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.product-btn svg { width: 14px; height: 14px; }

/* ============================================================
   PACKAGE ACTIONS (Add to Basket) — Tebex hooks
   ============================================================ */
.product-actions .add,
.product-actions .subscribe,
.product-actions a[href*="add"] {
  display: flex !important; align-items: center !important; justify-content: center !important;
  gap: 8px !important; width: 100% !important;
  padding: 15px 24px !important;
  background: var(--accent) !important; color: #fff !important;
  font-family: var(--font-display) !important;
  font-size: 0.88rem !important; font-weight: 600 !important;
  border: none !important; border-radius: var(--radius-sm) !important;
  cursor: pointer !important; transition: all var(--transition) !important;
  text-decoration: none !important; letter-spacing: 0.02em !important;
  text-transform: uppercase !important; box-shadow: var(--shadow-sm) !important;
}
.product-actions .add:hover,
.product-actions .subscribe:hover,
.product-actions a[href*="add"]:hover {
  background: var(--accent-dark) !important; box-shadow: var(--shadow-md) !important; transform: translateY(-2px) !important;
}

.product-actions .gift {
  display: flex !important; align-items: center !important; justify-content: center !important;
  gap: 8px !important; width: 100% !important; padding: 12px 24px !important;
  background: transparent !important; color: var(--text-secondary) !important;
  font-size: 0.82rem !important; font-weight: 600 !important;
  border: 1px solid var(--border) !important; border-radius: var(--radius-sm) !important;
  cursor: pointer !important; transition: all var(--transition) !important;
  text-decoration: none !important; margin-top: 8px !important;
}
.product-actions .gift:hover { border-color: var(--border-hover) !important; color: var(--text-primary) !important; }

.product-actions .quantity-field { display: flex !important; align-items: center !important; gap: 8px !important; width: 100% !important; margin-bottom: 8px !important; }
.product-actions .quantity-field button {
  width: 42px !important; height: 42px !important;
  background: var(--bg-input) !important; border: 1px solid var(--border) !important;
  border-radius: var(--radius-sm) !important; color: var(--text-primary) !important;
  font-size: 1.1rem !important; cursor: pointer !important; transition: all var(--transition) !important;
}
.product-actions .quantity-field button:hover { border-color: var(--border-hover) !important; background: var(--bg-elevated) !important; }
.product-actions .quantity-field input {
  flex: 1 !important; text-align: center !important;
  background: var(--bg-input) !important; border: 1px solid var(--border) !important;
  border-radius: var(--radius-sm) !important; color: var(--text-primary) !important;
  font-size: 1rem !important; font-weight: 600 !important; padding: 8px !important; height: 42px !important;
}

.product-actions .open-basket-cta {
  display: block !important; width: 100% !important; padding: 12px 24px !important;
  background: var(--success) !important; color: #052e1e !important;
  font-size: 0.85rem !important; font-weight: 700 !important;
  border: none !important; border-radius: var(--radius-sm) !important;
  cursor: pointer !important; transition: all var(--transition) !important;
  text-align: center !important; text-decoration: none !important; margin-top: 8px !important;
}
.product-actions .open-basket-cta:hover { background: #2cc489 !important; transform: translateY(-1px) !important; }

/* ============================================================
   BADGES / EMPTY
   ============================================================ */
.badge-sale {
  position: absolute; top: 12px; left: 12px;
  background: var(--danger); color: #fff;
  font-size: 0.68rem; font-weight: 700;
  padding: 4px 10px; border-radius: var(--radius-sm);
  letter-spacing: 0.03em; text-transform: uppercase; z-index: 3;
}
.no-products {
  text-align: center; padding: 80px 24px;
  color: var(--text-muted); font-size: 0.95rem;
  background: var(--bg-card); border: 1px dashed var(--border); border-radius: var(--radius-lg);
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 110px; }
.sidebar-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px; position: relative; overflow: hidden;
}
.sidebar-title { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; }
.sidebar-title-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: pulse-dot 2s ease-in-out infinite; }
.sidebar-title h3 { font-family: var(--font-display); font-size: 0.75rem; font-weight: 700; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.1em; }

.recent-buyers-list { display: flex; flex-direction: column; }
.buyer-row { display: flex; align-items: center; gap: 12px; padding: 10px 8px; border-radius: var(--radius-sm); transition: all var(--transition); margin: 0 -8px; }
.buyer-row:hover { background: rgba(255, 255, 255, 0.03); }
.buyer-row + .buyer-row { border-top: 1px solid rgba(255, 255, 255, 0.04); }
.buyer-rank { width: 22px; height: 22px; font-size: 0.65rem; font-weight: 700; color: var(--text-muted); text-align: center; line-height: 22px; flex-shrink: 0; background: rgba(255, 255, 255, 0.04); border-radius: 6px; }
.buyer-row:first-child .buyer-rank { background: var(--accent-soft); color: var(--accent-light); }
.buyer-avatar { width: 34px; height: 34px; border-radius: 8px; flex-shrink: 0; image-rendering: pixelated; border: 1px solid var(--border); }
.buyer-info { flex: 1; min-width: 0; }
.buyer-name { font-size: 0.78rem; font-weight: 600; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.buyer-package { font-size: 0.68rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.buyer-price { font-family: var(--font-display); font-size: 0.74rem; font-weight: 700; color: var(--accent-light); flex-shrink: 0; }

.discord-card { background: linear-gradient(150deg, rgba(88, 101, 242, 0.10), rgba(88, 101, 242, 0.02)); border-color: rgba(88, 101, 242, 0.18); }
.discord-card .sidebar-title-dot { background: #5865f2; }
.discord-info { font-size: 0.8rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 16px; }
.discord-online { display: flex; align-items: center; gap: 6px; font-size: 0.72rem; color: var(--success); font-weight: 500; margin-bottom: 16px; }
.discord-online-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); animation: pulse-dot 2s ease-in-out infinite; }
.discord-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 12px; background: #5865f2; color: #fff;
  font-family: var(--font-display); font-size: 0.82rem; font-weight: 600;
  border: none; border-radius: var(--radius-sm); cursor: pointer; transition: all var(--transition);
}
.discord-btn:hover { background: #4752c4; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.discord-btn svg { width: 16px; height: 16px; }

.trust-list { display: flex; flex-direction: column; gap: 12px; }
.trust-item { display: flex; align-items: center; gap: 10px; font-size: 0.78rem; color: var(--text-secondary); }
.trust-icon {
  width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft); border: 1px solid var(--border); border-radius: 9px;
  color: var(--accent-light); flex-shrink: 0;
}
.trust-icon svg { width: 16px; height: 16px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { margin-top: auto; border-top: 1px solid var(--border); padding: 48px 32px 32px; background: var(--bg-secondary); }
.footer-inner { max-width: var(--maxw); margin: 0 auto; }
.footer-top { display: flex; align-items: center; justify-content: space-between; padding-bottom: 28px; border-bottom: 1px solid var(--border); margin-bottom: 24px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; color: var(--text-primary); }
.footer-brand-icon { width: 32px; height: 32px; background: var(--accent-gradient); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 0.7rem; font-weight: 700; color: #fff; }
.footer-social { display: flex; gap: 8px; list-style: none; }
.footer-social a { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border); border-radius: 9px; color: var(--text-muted); transition: all var(--transition); }
.footer-social a:hover { color: var(--accent-light); border-color: var(--border-hover); background: rgba(255, 255, 255, 0.07); }
.footer-social svg { width: 16px; height: 16px; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; }
.footer-text { font-size: 0.78rem; color: var(--text-muted); }
.footer-links { display: flex; gap: 24px; list-style: none; }
.footer-links a { font-size: 0.78rem; color: var(--text-muted); transition: color var(--transition); }
.footer-links a:hover { color: var(--text-secondary); }

/* ============================================================
   HIDE DUPLICATE BASKET CONTROLS
   ============================================================ */
.product-actions .open-basket-cta[hidden],
.product-actions .quantity-field[hidden] { display: none !important; }

/* ============================================================
   POPUPS (Login, Basket, Product) — Tebex hooks
   ============================================================ */
.popup { position: fixed !important; inset: 0 !important; z-index: 9999 !important; background: rgba(0, 0, 0, 0.72) !important; backdrop-filter: blur(8px) !important; }
.popup-scroll-cont { width: 100% !important; height: 100% !important; overflow-y: auto !important; display: flex !important; align-items: flex-start !important; justify-content: center !important; padding: 40px 20px !important; }
.popup-content {
  background: var(--bg-card) !important; border: 1px solid var(--border-hover) !important;
  border-radius: var(--radius-lg) !important; padding: 32px !important;
  max-width: 480px !important; width: 100% !important; position: relative !important;
  color: var(--text-primary) !important; margin-top: 60px !important; box-shadow: var(--shadow-lg) !important;
}
.popup-content h2 { font-family: var(--font-display) !important; color: var(--text-primary) !important; font-size: 1.3rem !important; font-weight: 700 !important; margin-bottom: 20px !important; }
.popup-close { position: absolute !important; top: 16px !important; right: 16px !important; background: var(--bg-secondary) !important; border: 1px solid var(--border) !important; color: var(--text-secondary) !important; padding: 6px 14px !important; border-radius: var(--radius-sm) !important; font-size: 0.78rem !important; font-weight: 500 !important; cursor: pointer !important; transition: all var(--transition) !important; }
.popup-close:hover { border-color: var(--border-hover) !important; color: var(--text-primary) !important; }
.popup[hidden] { display: none !important; }
.popup-loading .popup-content::after { content: '' !important; display: block !important; width: 32px !important; height: 32px !important; margin: 20px auto !important; border: 3px solid var(--border) !important; border-top-color: var(--accent) !important; border-radius: 50% !important; animation: spin 0.6s linear infinite !important; }

.login-popup .popup-content { max-width: 420px !important; }
.login-popup .popup-content input,
.login-popup .popup-content .form-control { width: 100% !important; padding: 12px 16px !important; background: var(--bg-input) !important; border: 1px solid var(--border) !important; border-radius: var(--radius-sm) !important; color: var(--text-primary) !important; font-size: 0.88rem !important; margin-bottom: 12px !important; outline: none !important; }
.login-popup .popup-content input:focus,
.login-popup .popup-content .form-control:focus { border-color: var(--accent) !important; }
.login-popup .popup-content .btn-primary,
.login-popup .popup-content button[type="submit"] { width: 100% !important; padding: 14px !important; background: var(--accent) !important; color: #fff !important; border: none !important; border-radius: var(--radius-sm) !important; font-size: 0.88rem !important; font-weight: 700 !important; cursor: pointer !important; transition: all var(--transition) !important; text-transform: uppercase !important; }
.login-popup .popup-content .btn-primary:hover,
.login-popup .popup-content button[type="submit"]:hover { background: var(--accent-dark) !important; box-shadow: var(--shadow-md) !important; }

.basket-popup .popup-content { max-width: 520px !important; }
.basket-popup .basket-item { display: flex !important; align-items: center !important; gap: 12px !important; padding: 16px 0 !important; border-bottom: 1px solid var(--border) !important; }
.basket-popup .basket-item img { width: 48px !important; height: 48px !important; border-radius: 8px !important; object-fit: cover !important; }
.basket-popup .basket-checkout .checkout { width: 100% !important; padding: 14px !important; background: var(--success) !important; color: #052e1e !important; border: none !important; border-radius: var(--radius-sm) !important; font-size: 0.88rem !important; font-weight: 700 !important; cursor: pointer !important; text-transform: uppercase !important; margin-top: 16px !important; }
.basket-popup .basket-checkout .checkout:hover { background: #2cc489 !important; }
.store-product-popup .popup-content { max-width: 700px !important; }
html.no-scroll { overflow: hidden !important; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .store-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
}

@media (max-width: 768px) {
  .container { padding: 0 16px; }
  .navbar-toggle { display: flex; }
  .navbar-links {
    position: absolute; top: 70px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 6px;
    padding: 12px; margin: 0 12px; border-radius: var(--radius-md);
    background: rgba(10, 13, 20, 0.97);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    border: 1px solid var(--border); box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  }
  .navbar-links.open { opacity: 1; visibility: visible; transform: translateY(0); }
  .navbar-links a, .navbar-links li a { display: block !important; text-align: center !important; padding: 12px 20px !important; font-size: 0.88rem !important; border-radius: var(--radius-sm) !important; }

  .navbar-inner { padding: 0 16px; }
  .store-wrapper { padding: 36px 16px 64px; }
  .hero { padding: 44px 20px; margin-bottom: 36px; }
  .hero h1 { font-size: 1.85rem; }
  .hero-stats { gap: 28px; flex-wrap: wrap; }
  .section-head h2 { font-size: 1.4rem; }
  .products-grid, .store-products-grid { grid-template-columns: 1fr; gap: 16px; }
  .product-card-footer { flex-direction: column; gap: 12px; align-items: stretch; }
  .product-btn { justify-content: center; }
  .announcement { font-size: 0.72rem; padding: 9px 16px; }
  .footer-top, .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
}
