/* ═══════════════════════════════════════════════════════════════════════════
   style.css — AGENT LABS Design System
   Modernist Cyber-Cyan theme · Universal City Background · Aceternity 3D Cards
   Fonts: Chakra Petch (Headings/Block Display) + Space Grotesk / Inter
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── 1. Fonts & Design Tokens ──────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:ital,wght@0,500;0,600;0,700;0,800;0,900;1,700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  /* Colors - Electric Neon Cyan / Deep Cyber Metallic */
  --bg-base:        #04070b;
  --bg-surface:     rgba(8, 14, 22, 0.88);
  --bg-card:        rgba(10, 18, 28, 0.85);
  --bg-card-hover:  rgba(14, 25, 38, 0.95);
  --bg-elevated:    #0f1c2b;
  --border:         rgba(0, 212, 255, 0.16);
  --border-hover:   rgba(0, 212, 255, 0.65);

  --accent:         #00d4ff;     /* Vivid Electric Cyan */
  --accent-light:   #67e8f9;     /* Light Metallic Cyan */
  --accent-dim:     #0284c7;     /* Deep Cyan */
  --accent-glow:    rgba(0, 212, 255, 0.3);
  --accent-text:    #38bdf8;

  --text-primary:   #ffffff;
  --text-secondary: #94a3b8;
  --text-muted:     #64748b;

  --success:        #10b981;
  --danger:         #f43f5e;
  --tag-bg:         rgba(0, 212, 255, 0.08);

  /* Typography */
  --font-display: 'Chakra Petch', -apple-system, sans-serif;
  --font-sans:    'Space Grotesk', -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  /* Spacing */
  --radius-sm:  8px;
  --radius-md:  12px;
  --radius-lg:  18px;
  --radius-xl:  24px;

  /* Elevation */
  --shadow-card:    0 12px 36px rgba(0,0,0,0.7);
  --shadow-glow:    0 0 35px rgba(0, 212, 255, 0.22);

  /* Nav */
  --nav-h:      72px;
}

/* ── 2. Reset & Universal Background ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  background-color: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Universal Fixed City Cyber Background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(to bottom, rgba(4, 7, 11, 0.85) 0%, rgba(4, 7, 11, 0.7) 40%, rgba(4, 7, 11, 0.95) 100%),
    url('../assets/images/site_bg.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  z-index: -2;
  pointer-events: none;
}

/* Cyber ambient overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: 
    radial-gradient(circle 800px at 80% 20%, rgba(0, 212, 255, 0.12) 0%, transparent 70%),
    radial-gradient(circle 600px at 10% 80%, rgba(2, 132, 199, 0.1) 0%, transparent 60%);
  z-index: -1;
  pointer-events: none;
}

img { display: block; max-width: 100%; height: auto; }
a   { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul, ol { list-style: none; }

h1, h2, h3, h4, .brand-text, .btn-primary, .btn-secondary, .card-title, .stat-value {
  font-family: var(--font-display);
  letter-spacing: -0.01em;
}

.container { width: 100%; max-width: 1320px; margin-inline: auto; padding-inline: 24px; }
.hidden { display: none !important; }

/* ── 3. Navbar ─────────────────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  background: rgba(4, 7, 11, 0.82);
  backdrop-filter: blur(16px) saturate(200%);
  -webkit-backdrop-filter: blur(16px) saturate(200%);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.35rem;
  font-weight: 900;
  text-transform: uppercase;
  flex-shrink: 0;
}
.nav-logo-img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(0, 212, 255, 0.5));
  transition: transform 0.3s ease;
}
.nav-logo:hover .nav-logo-img { transform: scale(1.08) rotate(-3deg); }

.nav-logo .brand-agent { color: #fff; font-weight: 800; }
.nav-logo .brand-labs {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 900;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-link {
  font-family: var(--font-display);
  padding: 8px 20px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all 0.25s ease;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.nav-link:hover {
  color: #fff;
  background: rgba(0, 212, 255, 0.1);
}
.nav-link.active {
  color: #fff;
  background: rgba(0, 212, 255, 0.15);
  border: 1px solid rgba(0, 212, 255, 0.35);
  box-shadow: 0 0 16px rgba(0, 212, 255, 0.2);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.nav-discord-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 22px;
  background: linear-gradient(135deg, rgba(88, 101, 242, 0.95), rgba(88, 101, 242, 0.8));
  color: #ffffff;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  font-family: var(--font-display);
  text-transform: uppercase;
  box-shadow: 0 4px 18px rgba(88, 101, 242, 0.35);
  transition: all 0.25s ease;
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.nav-discord-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(88, 101, 242, 0.55);
}
.nav-discord-btn svg { width: 18px; height: 18px; fill: #ffffff; }

.cart-trigger {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  color: var(--text-primary);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  transition: all 0.25s ease;
}
.cart-trigger:hover {
  background: rgba(0, 212, 255, 0.12);
  border-color: var(--accent);
  box-shadow: 0 0 16px var(--accent-glow);
}
.cart-trigger svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; }

#cart-badge {
  position: absolute;
  top: -4px; right: -4px;
  background: var(--accent);
  color: #04070b;
  font-size: 0.72rem;
  font-weight: 900;
  font-family: var(--font-display);
  width: 20px; height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  border: 2px solid var(--bg-base);
  box-shadow: 0 0 12px var(--accent-glow);
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
}
.mobile-menu-btn span { width: 22px; height: 2px; background: #fff; border-radius: 2px; }

.mobile-nav {
  display: none;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  z-index: 999;
  padding: 20px 24px;
  flex-direction: column;
  gap: 10px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a { padding: 12px 16px; border-radius: var(--radius-sm); color: var(--text-secondary); font-weight: 700; font-family: var(--font-display); }
.mobile-nav a:hover { background: rgba(0, 212, 255, 0.1); color: #fff; }

/* ── 4. Hero Section ───────────────────────────────────────────────────────── */
.hero {
  min-height: calc(100vh - 40px);
  padding-top: calc(var(--nav-h) + 40px);
  padding-bottom: 70px;
  display: flex;
  align-items: center;
  position: relative;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

/* Open Source Highlight Badge */
.hero-opensource-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.35);
  border-radius: 999px;
  padding: 8px 20px 8px 12px;
  font-size: 0.85rem;
  font-weight: 700;
  font-family: var(--font-display);
  letter-spacing: 0.05em;
  color: var(--accent-light);
  margin-bottom: 24px;
  box-shadow: 0 0 24px rgba(0, 212, 255, 0.18);
  text-transform: uppercase;
}
.hero-opensource-pill .pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: pulse-dot 1.8s infinite ease-in-out;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.75); }
}

.hero-title {
  font-size: clamp(3rem, 6vw, 4.8rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.hero-title .gradient-text {
  background: linear-gradient(135deg, #ffffff 25%, var(--accent-light) 75%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}
.hero-title .cyan-glow {
  color: var(--accent);
  text-shadow: 0 0 35px rgba(0, 212, 255, 0.6);
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 580px;
  margin-bottom: 38px;
  line-height: 1.7;
}

.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 46px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 34px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dim) 100%);
  color: #04070b;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  box-shadow: 0 6px 28px rgba(0, 212, 255, 0.4);
  transition: all 0.25s ease;
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 36px rgba(0, 212, 255, 0.65);
  background: linear-gradient(135deg, #38bdf8 0%, var(--accent) 100%);
}
.btn-primary svg { width: 18px; height: 18px; stroke: #04070b; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  background: rgba(255,255,255,0.04);
  color: #ffffff;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 1px solid var(--border);
  transition: all 0.25s ease;
}
.btn-secondary:hover {
  background: rgba(0, 212, 255, 0.12);
  border-color: var(--accent);
  color: var(--accent-light);
}

/* Open Source Announcement Banner Card */
.open-source-banner-box {
  background: rgba(10, 18, 28, 0.75);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 212, 255, 0.25);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin-bottom: 40px;
  max-width: 620px;
  display: flex;
  align-items: center;
  gap: 18px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
}
.os-icon {
  font-size: 2rem;
  color: var(--accent);
  flex-shrink: 0;
}
.os-title {
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.os-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-top: 3px;
}

/* Stats */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(8, 14, 22, 0.75);
  backdrop-filter: blur(14px);
  overflow: hidden;
  max-width: 600px;
}
.stat-item {
  padding: 16px 18px;
  border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }
.stat-value {
  display: block;
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--accent);
}
.stat-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 3px;
}

/* ── 5. ACETERNITY-STYLE 3D TILT PRODUCT CARDS ─────────────────────────────── */
#store-section {
  padding: 90px 0 110px;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 20px;
}
.section-title {
  font-size: clamp(2.2rem, 4vw, 2.8rem);
  font-weight: 900;
  text-transform: uppercase;
}
.section-title .accent {
  color: var(--accent);
  text-shadow: 0 0 25px rgba(0, 212, 255, 0.4);
}
.section-subtitle {
  font-size: 0.98rem;
  color: var(--text-secondary);
  margin-top: 8px;
}

.browse-all-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 800;
  font-family: var(--font-display);
  text-transform: uppercase;
  color: var(--accent-light);
  padding: 3px 49px;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.25);
  border-radius: 999px;
  transition: all 0.25s ease;
}
.browse-all-link:hover {
  background: var(--accent);
  color: #04070b;
  box-shadow: 0 0 20px var(--accent-glow);
}

/* 3D Grid & Container */
#store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 30px;
  perspective: 1000px;
}

/* The 3D Card Item (Aceternity UI Card Effect) */


.product-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out, border-color 0.25s ease, box-shadow 0.25s ease;
  box-shadow: var(--shadow-card);
}

.tilt-card-container:hover .product-card {
  border-color: var(--border-hover);
  box-shadow: 0 20px 50px rgba(0,0,0,0.8), 0 0 30px var(--accent-glow);
}

/* 3D Floating elements inside card */
.card-image-wrap {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #060b11;
  transform: translateZ(25px);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.tilt-card-container:hover .card-image {
  transform: scale(1.06);
}

.card-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 18, 28, 0.95) 0%, rgba(10, 18, 28, 0.2) 60%, transparent 100%);
  pointer-events: none;
}

.card-badge {
  position: absolute;
  top: 12px; left: 12px;
  font-size: 0.68rem;
  font-weight: 900;
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 6px;
  text-transform: uppercase;
  z-index: 5;
  transform: translateZ(40px);
  background: linear-gradient(135deg, #0284c7 0%, var(--accent) 100%);
  color: #04070b;
  box-shadow: 0 4px 14px rgba(0,0,0,0.6);
}

.badge-open-source {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 14px 18px 4px;
  transform: translateZ(20px);
}
.tag {
  background: var(--tag-bg);
  border: 1px solid var(--border);
  color: var(--accent-light);
  font-size: 0.68rem;
  font-weight: 800;
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}
.tag-multi {
  background: rgba(0, 212, 255, 0.15);
  border-color: rgba(0, 212, 255, 0.4);
  color: #fff;
}

.card-body {
  padding: 12px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transform: translateZ(30px);
}
.card-title {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.3;
  color: #ffffff;
  text-transform: uppercase;
  transition: color 0.2s ease;
}
.tilt-card-container:hover .card-title {
  color: var(--accent-light);
}

.card-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px 16px;
  border-top: 1px solid var(--border);
  margin-top: auto;
  transform: translateZ(35px);
  background: rgba(0,0,0,0.2);
}

.card-price-wrap { display: flex; align-items: baseline; gap: 8px; }
.price          { font-size: 1.25rem; font-weight: 900; font-family: var(--font-display); color: #fff; }
.price-original { font-size: 0.88rem; color: var(--text-muted); text-decoration: line-through; }

.card-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: var(--accent);
  color: #04070b;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 900;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: all 0.25s ease;
}
.card-btn:hover:not(:disabled) {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 18px var(--accent-glow);
}

/* ── 6. Skeletons ──────────────────────────────────────────────────────────── */
@keyframes shimmer {
  0%   { background-position: -700px 0; }
  100% { background-position:  700px 0; }
}
.skeleton {
  background: linear-gradient(90deg, var(--bg-elevated) 25%, rgba(0, 212, 255, 0.08) 50%, var(--bg-elevated) 75%);
  background-size: 700px 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--radius-sm);
}
.skeleton-card { min-height: 380px; }
.skeleton-img  { height: 190px; border-radius: 0; width: 100%; }
.skeleton-line { height: 14px; margin-bottom: 8px; }

/* ── 7. Cart Drawer ────────────────────────────────────────────────────────── */
#drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  z-index: 1100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(6px);
}
#drawer-overlay.show { opacity: 1; pointer-events: auto; }

#cart-drawer {
  position: fixed;
  top: 0; right: 0;
  width: 100%;
  max-width: 440px;
  height: 100vh;
  background: var(--bg-surface);
  border-left: 1px solid var(--border);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s ease;
  box-shadow: -16px 0 60px rgba(0,0,0,0.8);
}
#cart-drawer.open { transform: translateX(0); }

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  border-bottom: 1px solid var(--border);
}
.drawer-header h2 { font-size: 1.2rem; font-weight: 900; text-transform: uppercase; color: #fff; }

.drawer-close-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
}
.drawer-close-btn:hover { background: rgba(255,255,255,0.08); color: #fff; }

#cart-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px;
  border-bottom: 1px solid var(--border);
}
.spinner {
  width: 22px; height: 22px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.drawer-items {
  flex: 1;
  overflow-y: auto;
  padding: 18px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.drawer-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.95rem;
  padding: 40px 0;
}
.drawer-empty svg { width: 44px; height: 44px; stroke: var(--text-muted); opacity: 0.4; }

.drawer-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.drawer-item-img {
  width: 60px; height: 60px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg-elevated);
}
.drawer-item-info { flex: 1; min-width: 0; }
.drawer-item-name { font-size: 0.9rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.drawer-item-meta { font-size: 0.8rem; color: var(--text-muted); margin-top: 2px; display: block; }
.drawer-item-price { font-size: 1rem; font-weight: 900; font-family: var(--font-display); color: var(--accent); }
.drawer-remove-btn { color: var(--text-muted); padding: 4px; transition: color 0.2s; }
.drawer-remove-btn:hover { color: var(--danger); }

.drawer-footer {
  padding: 22px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: rgba(0,0,0,0.25);
}
.drawer-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.drawer-total-label { color: var(--text-secondary); font-size: 1rem; font-weight: 700; text-transform: uppercase; }
.drawer-total-value { font-size: 1.35rem; font-weight: 900; font-family: var(--font-display); color: #fff; }

.checkout-btn {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dim) 100%);
  color: #04070b;
  border-radius: var(--radius-md);
  font-size: 1.05rem;
  font-weight: 900;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-align: center;
  transition: all 0.25s ease;
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.4);
}
.checkout-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(0, 212, 255, 0.65);
}

/* ── 8. Toast Notifications ────────────────────────────────────────────────── */
#toast-container {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast {
  padding: 12px 20px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  box-shadow: var(--shadow-card);
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.3s ease;
  pointer-events: auto;
  max-width: 340px;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast-success { border-left: 4px solid var(--accent); }
.toast-error   { border-left: 4px solid var(--danger); }

/* ── 9. Footer ─────────────────────────────────────────────────────────────── */
.footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: 70px 0 32px;
}

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

.footer-brand-name {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.35rem;
  font-weight: 900;
  margin-bottom: 14px;
}
.footer-logo-img { width: 34px; height: 34px; object-fit: contain; }
.footer-brand-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 22px;
  max-width: 320px;
}

.footer-social { display: flex; gap: 10px; }
.social-icon {
  width: 38px; height: 38px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all 0.25s ease;
}
.social-icon:hover {
  border-color: var(--accent);
  color: var(--accent-light);
  background: rgba(0, 212, 255, 0.1);
}
.social-icon svg { width: 18px; height: 18px; fill: currentColor; }

.footer-col-title {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 18px;
}
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a { font-size: 0.9rem; color: var(--text-secondary); transition: color 0.2s; }
.footer-links a:hover { color: var(--accent-light); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

/* ── 10. Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --nav-h: 66px; }
  .nav-links { display: none; }
  .mobile-menu-btn { display: flex; }
  .hero-title { font-size: 2.8rem; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(1), .stat-item:nth-child(2) { border-bottom: 1px solid var(--border); }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  #cart-drawer { max-width: 100%; }
}

@media (max-width: 520px) {
  #store-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
}


/* ── Cart Drawer Enhanced Styles ─────────────────────────────────────────── */
.drawer-user-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.25);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}
.user-pill-tag {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--accent-light);
  letter-spacing: 0.08em;
}
.user-pill-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
}

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

/* ── 11. Legal & Policy Pages (Terms of Service, Refund Policy) ───────────── */
.legal-main {
  min-height: 100vh;
  padding-top: calc(var(--nav-h) + 40px);
  padding-bottom: 80px;
}

.legal-container {
  width: 100%;
  max-width: 880px;
  margin-inline: auto;
  padding-inline: 24px;
}

.legal-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 24px;
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: all 0.25s ease;
}

.legal-back-btn:hover {
  color: var(--accent-light);
  border-color: var(--accent);
  background: rgba(0, 212, 255, 0.1);
  transform: translateX(-3px);
}

.legal-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 56px 48px;
  box-shadow: var(--shadow-card), var(--shadow-glow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  position: relative;
  overflow: hidden;
}

.legal-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.legal-header {
  margin-bottom: 38px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.legal-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--accent-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.legal-title {
  font-family: var(--font-display);
  font-size: 2.35rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
  line-height: 1.2;
}

.legal-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.legal-content {
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.85;
}

.legal-section {
  margin-bottom: 34px;
}

.legal-section:last-child {
  margin-bottom: 0;
}

.legal-section-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.01em;
}

.legal-section-title span.sec-num {
  color: var(--accent);
  font-weight: 900;
}

.legal-content p {
  margin-bottom: 16px;
}

.legal-content p:last-child {
  margin-bottom: 0;
}

.legal-content strong {
  color: #ffffff;
  font-weight: 700;
}

.legal-content a {
  color: var(--accent-light);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.legal-content a:hover {
  color: var(--accent);
}

.legal-callout {
  margin: 22px 0;
  padding: 18px 22px;
  background: rgba(0, 212, 255, 0.06);
  border: 1px solid rgba(0, 212, 255, 0.25);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  color: #e2e8f0;
  font-size: 0.95rem;
  line-height: 1.7;
}

.legal-callout-warning {
  background: rgba(244, 63, 94, 0.08);
  border: 1px solid rgba(244, 63, 94, 0.3);
  border-left: 4px solid var(--danger);
  color: #fecdd3;
}

@media (max-width: 768px) {
  .legal-card {
    padding: 36px 22px;
  }
  .legal-title {
    font-size: 1.85rem;
  }
}
