/* ============================================================
   CLAUDEMARKETPLACE.VN — DESIGN SYSTEM
   Global CSS: Variables, Reset, Typography, Layout, Animations
   ============================================================ */

/* ─── CSS CUSTOM PROPERTIES (DESIGN TOKENS) ─────────────────── */
:root {
  /* Colors */
  --color-bg-primary:     #0a0f1e;
  --color-bg-secondary:   #0d1428;
  --color-bg-tertiary:    #111827;
  --color-bg-card:        rgba(255, 255, 255, 0.04);
  --color-bg-card-hover:  rgba(255, 255, 255, 0.07);
  --color-border:         rgba(255, 255, 255, 0.08);
  --color-border-hover:   rgba(37, 99, 235, 0.4);

  --color-primary:        #2563eb;
  --color-primary-light:  #3b82f6;
  --color-primary-dark:   #1d4ed8;
  --color-accent:         #06b6d4;
  --color-accent-light:   #22d3ee;
  --color-success:        #10b981;
  --color-warning:        #f59e0b;
  --color-danger:         #ef4444;

  --color-text-primary:   #f1f5f9;
  --color-text-secondary: #94a3b8;
  --color-text-muted:     #64748b;
  --color-text-inverse:   #0a0f1e;

  /* Gradients */
  --gradient-primary:     linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
  --gradient-hero:        linear-gradient(135deg, #0a0f1e 0%, #0d1a3a 50%, #0a1628 100%);
  --gradient-card:        linear-gradient(135deg, rgba(37,99,235,0.1) 0%, rgba(6,182,212,0.05) 100%);
  --gradient-text:        linear-gradient(135deg, #60a5fa 0%, #06b6d4 100%);
  --gradient-badge-live:  linear-gradient(135deg, #10b981, #059669);
  --gradient-badge-pre:   linear-gradient(135deg, #f59e0b, #d97706);

  /* Shadows */
  --shadow-sm:            0 1px 3px rgba(0,0,0,0.4);
  --shadow-md:            0 4px 16px rgba(0,0,0,0.5);
  --shadow-lg:            0 8px 32px rgba(0,0,0,0.6);
  --shadow-glow-primary:  0 0 24px rgba(37, 99, 235, 0.35);
  --shadow-glow-accent:   0 0 24px rgba(6, 182, 212, 0.35);
  --shadow-card-hover:    0 12px 40px rgba(0,0,0,0.6), 0 0 0 1px rgba(37,99,235,0.3);

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

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

  /* Typography */
  --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:  'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;

  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;
  --text-6xl:  3.75rem;
  --text-7xl:  4.5rem;

  --font-normal:   400;
  --font-medium:   500;
  --font-semibold: 600;
  --font-bold:     700;
  --font-extrabold:800;

  --leading-tight:  1.2;
  --leading-snug:   1.375;
  --leading-normal: 1.5;
  --leading-relaxed:1.65;

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

  /* Z-index scale */
  --z-below:    -1;
  --z-base:      0;
  --z-raised:   10;
  --z-dropdown: 100;
  --z-sticky:   200;
  --z-overlay:  300;
  --z-modal:    400;
  --z-toast:    500;

  /* Layout */
  --container-max:  1280px;
  --container-wide: 1440px;
  --nav-height:     72px;
}

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

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

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-text-primary);
  background-color: var(--color-bg-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* ─── TYPOGRAPHY ─────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-bold);
  line-height: var(--leading-tight);
  color: var(--color-text-primary);
}

h1 { font-size: clamp(var(--text-3xl), 5vw, var(--text-6xl)); }
h2 { font-size: clamp(var(--text-2xl), 3.5vw, var(--text-4xl)); }
h3 { font-size: clamp(var(--text-xl), 2.5vw, var(--text-3xl)); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

p { color: var(--color-text-secondary); }

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

.text-primary   { color: var(--color-text-primary) !important; }
.text-secondary { color: var(--color-text-secondary) !important; }
.text-muted     { color: var(--color-text-muted) !important; }
.text-accent    { color: var(--color-accent) !important; }
.text-blue      { color: var(--color-primary-light) !important; }
.text-success   { color: var(--color-success) !important; }
.text-warning   { color: var(--color-warning) !important; }

/* ─── LAYOUT ─────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.container--wide {
  max-width: var(--container-wide);
}

.section {
  padding: var(--space-24) 0;
}

.section--sm { padding: var(--space-16) 0; }
.section--lg { padding: var(--space-24) 0 calc(var(--space-24) * 1.5); }

.section-header {
  text-align: center;
  margin-bottom: var(--space-16);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-4);
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
}

.section-title {
  font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl));
  font-weight: var(--font-extrabold);
  line-height: var(--leading-tight);
  margin-bottom: var(--space-4);
}

.section-desc {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: var(--leading-relaxed);
}

/* Grid utilities */
.grid { display: grid; }
.grid-2 { grid-template-columns: repeat(2, 1fr); gap: var(--space-6); }
.grid-3 { grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.grid-4 { grid-template-columns: repeat(4, 1fr); gap: var(--space-6); }

.flex        { display: flex; }
.flex-col    { flex-direction: column; }
.items-center{ align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: var(--space-2); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }

/* ─── GLASSMORPHISM CARD ─────────────────────────────────────── */
.glass-card {
  background: var(--color-bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: background var(--transition-base),
              border-color var(--transition-base),
              box-shadow var(--transition-base),
              transform var(--transition-base);
}

.glass-card:hover {
  background: var(--color-bg-card-hover);
  border-color: var(--color-border-hover);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}

/* ─── BUTTONS ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  white-space: nowrap;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--transition-fast);
  background: rgba(255,255,255,0.1);
}
.btn:hover::after { opacity: 1; }

.btn--primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}
.btn--primary:hover {
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.6);
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  color: var(--color-text-primary);
  border: 1px solid var(--color-border);
}
.btn--outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary-light);
  background: rgba(37,99,235,0.08);
}

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

.btn--sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
  border-radius: var(--radius-sm);
}

.btn--lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
  border-radius: var(--radius-lg);
}

.btn--icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--radius-md);
}

/* ─── BADGES ─────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  border-radius: var(--radius-full);
  letter-spacing: 0.02em;
}

.badge--live {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge--live::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  animation: pulse-dot 1.5s infinite;
}

.badge--preorder {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
  animation: pulse-border 2s infinite;
}

.badge--preorder::before {
  content: '◎';
  font-size: 8px;
}

.badge--hot {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.badge--new {
  background: rgba(37, 99, 235, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(37, 99, 235, 0.25);
}

.badge--category {
  background: rgba(6, 182, 212, 0.1);
  color: var(--color-accent-light);
  border: 1px solid rgba(6, 182, 212, 0.2);
}

/* ─── NAVIGATION ─────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: var(--z-sticky);
  transition: background var(--transition-base), box-shadow var(--transition-base);
}

.nav--scrolled {
  background: rgba(10, 15, 30, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--color-border);
}

.nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-weight: var(--font-extrabold);
  font-size: var(--text-lg);
  flex-shrink: 0;
}

.nav__logo-icon {
  width: 36px;
  height: 36px;
  background: var(--gradient-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-lg);
}

.nav__logo-text span {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  flex: 1;
  justify-content: center;
}

.nav__link {
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--color-text-secondary);
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background var(--transition-fast);
  position: relative;
}

.nav__link:hover,
.nav__link.active {
  color: var(--color-text-primary);
  background: var(--color-bg-card);
}

.nav__link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
  cursor: pointer;
}

.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text-primary);
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
}

/* ─── HERO SECTION ───────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--nav-height);
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: var(--z-below);
}

.hero__gradient {
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(37,99,235,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,99,235,0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: grid-drift 20s linear infinite;
}

.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
}

.hero__orb--1 {
  width: 600px;
  height: 600px;
  background: var(--color-primary);
  top: -200px;
  right: -100px;
  animation: orb-float 8s ease-in-out infinite;
}

.hero__orb--2 {
  width: 400px;
  height: 400px;
  background: var(--color-accent);
  bottom: -100px;
  left: -100px;
  animation: orb-float 10s ease-in-out infinite reverse;
}

.hero__orb--3 {
  width: 300px;
  height: 300px;
  background: #7c3aed;
  top: 50%;
  left: 40%;
  animation: orb-float 12s ease-in-out infinite;
}

.hero__particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero__content {
  position: relative;
  z-index: var(--z-raised);
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: rgba(37,99,235,0.12);
  border: 1px solid rgba(37,99,235,0.25);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  color: var(--color-accent-light);
  margin-bottom: var(--space-6);
  animation: fade-up 0.6s ease both;
}

.hero__title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: var(--font-extrabold);
  line-height: 1.1;
  margin-bottom: var(--space-6);
  animation: fade-up 0.6s ease 0.1s both;
}

.hero__subtitle {
  font-size: clamp(var(--text-base), 2vw, var(--text-xl));
  color: var(--color-text-secondary);
  max-width: 640px;
  margin: 0 auto var(--space-10);
  line-height: var(--leading-relaxed);
  animation: fade-up 0.6s ease 0.2s both;
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  animation: fade-up 0.6s ease 0.3s both;
}

.hero__stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  margin-top: var(--space-16);
  padding-top: var(--space-10);
  border-top: 1px solid var(--color-border);
  animation: fade-up 0.6s ease 0.4s both;
  flex-wrap: wrap;
}

.hero__stat-value {
  font-size: var(--text-3xl);
  font-weight: var(--font-extrabold);
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.hero__stat-label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-1);
}

/* ─── AGENT CARD ─────────────────────────────────────────────── */
.agent-card {
  display: flex;
  flex-direction: column;
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.agent-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--transition-base);
}

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

.agent-card:hover::before { opacity: 1; }

.agent-card--preorder {
  opacity: 0.85;
}

.agent-card--preorder::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(245,158,11,0.2);
  pointer-events: none;
}

.agent-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: var(--space-4);
}

.agent-card__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--gradient-card);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.agent-card__status { flex-shrink: 0; }

.agent-card__name {
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-2);
  line-height: var(--leading-snug);
}

.agent-card__dept {
  font-size: var(--text-xs);
  color: var(--color-accent);
  font-weight: var(--font-medium);
  margin-bottom: var(--space-3);
}

.agent-card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
  flex: 1;
  margin-bottom: var(--space-4);
}

.agent-card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-3) 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--space-4);
}

.agent-card__meta-item {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.agent-card__rating { color: var(--color-warning); }

.agent-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.agent-card__price {
  font-size: var(--text-xl);
  font-weight: var(--font-extrabold);
  color: var(--color-text-primary);
}

.agent-card__price span {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-weight: var(--font-normal);
}

/* ─── NEWS CARD ──────────────────────────────────────────────── */
.news-card {
  display: flex;
  flex-direction: column;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
}

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

.news-card__thumbnail {
  aspect-ratio: 16/9;
  background: var(--gradient-card);
  overflow: hidden;
  position: relative;
}

.news-card__thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.news-card__thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  background: linear-gradient(135deg, rgba(37,99,235,0.15) 0%, rgba(6,182,212,0.08) 100%);
}

.news-card__body { padding: var(--space-5); flex: 1; display: flex; flex-direction: column; }

.news-card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.news-card__date {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.news-card__read-time {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.news-card__title {
  font-size: var(--text-base);
  font-weight: var(--font-bold);
  color: var(--color-text-primary);
  line-height: var(--leading-snug);
  margin-bottom: var(--space-3);
  transition: color var(--transition-fast);
  flex: 1;
}

.news-card:hover .news-card__title { color: var(--color-accent-light); }

.news-card__excerpt {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card__footer {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
}

.news-card__author {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.news-card__author-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: var(--font-bold);
  color: white;
  flex-shrink: 0;
}

/* ─── CATEGORY SIDEBAR ───────────────────────────────────────── */
.category-sidebar {
  position: sticky;
  top: calc(var(--nav-height) + var(--space-6));
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.category-sidebar__title {
  padding: var(--space-4) var(--space-5);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid var(--color-border);
}

.category-sidebar__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-5);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  border-left: 2px solid transparent;
}

.category-sidebar__item:hover {
  background: var(--color-bg-card-hover);
  color: var(--color-text-primary);
}

.category-sidebar__item.active {
  border-left-color: var(--color-primary);
  background: rgba(37,99,235,0.08);
  color: var(--color-primary-light);
}

.category-sidebar__count {
  font-size: var(--text-xs);
  background: rgba(255,255,255,0.06);
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

/* ─── FILTER BAR ─────────────────────────────────────────────── */
.filter-bar {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  flex-wrap: wrap;
}

.filter-bar__search {
  flex: 1;
  min-width: 240px;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-4);
}

.filter-bar__search input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--color-text-primary);
  font-size: var(--text-sm);
}

.filter-bar__search input::placeholder { color: var(--color-text-muted); }

.filter-select {
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-4);
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  outline: none;
  cursor: pointer;
  transition: border-color var(--transition-fast);
}

.filter-select:hover,
.filter-select:focus { border-color: var(--color-primary); }

/* ─── TABS ───────────────────────────────────────────────────── */
.tabs {
  display: flex;
  gap: var(--space-1);
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-1);
}

.tab {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--color-text-muted);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

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

.tab.active {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 2px 8px rgba(37,99,235,0.4);
}

/* ─── BREADCRUMB ─────────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  flex-wrap: wrap;
}

.breadcrumb__item a:hover { color: var(--color-accent-light); }

.breadcrumb__sep { color: var(--color-text-muted); opacity: 0.4; }

.breadcrumb__current { color: var(--color-text-secondary); }

/* ─── RATING STARS ───────────────────────────────────────────── */
.rating {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.rating__stars { color: var(--color-warning); letter-spacing: 1px; }

.rating__value {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--color-text-primary);
}

.rating__count {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* ─── SKELETON LOADER ─────────────────────────────────────────── */
.skeleton {
  background: linear-gradient(
    90deg,
    var(--color-bg-card) 25%,
    rgba(255,255,255,0.06) 50%,
    var(--color-bg-card) 75%
  );
  background-size: 200% 100%;
  animation: skeleton-wave 1.5s infinite;
  border-radius: var(--radius-sm);
}

/* ─── FORM ELEMENTS ──────────────────────────────────────────── */
.form-group { margin-bottom: var(--space-5); }

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-2);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text-primary);
  font-size: var(--text-sm);
  font-family: var(--font-sans);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}

.form-input::placeholder,
.form-textarea::placeholder { color: var(--color-text-muted); }

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

/* ─── SITE FOOTER (new design) ───────────────────────────────── */
.site-footer {
  position: relative;
  background: #070c1a;
  border-top: 1px solid rgba(255,255,255,0.07);
  overflow: hidden;
}

/* subtle radial glow behind footer */
.site-footer::before {
  content: '';
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 300px;
  background: radial-gradient(ellipse at center, rgba(37,99,235,0.08) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Newsletter band ─────────────────────────────────────────── */
.sf-newsletter {
  background: linear-gradient(135deg, rgba(37,99,235,0.12) 0%, rgba(6,182,212,0.08) 100%);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  padding: 2rem 0;
}

.sf-newsletter__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.sf-newsletter__copy {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.sf-newsletter__copy strong {
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  color: var(--color-text-primary);
}

.sf-newsletter__copy span {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.sf-newsletter__form {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.sf-newsletter__form input {
  width: 260px;
  padding: 0.6rem 1rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: var(--color-text-primary);
  outline: none;
  transition: border-color var(--transition-fast);
}

.sf-newsletter__form input::placeholder { color: var(--color-text-muted); }
.sf-newsletter__form input:focus { border-color: var(--color-primary); }

.sf-newsletter__form button {
  padding: 0.6rem 1.25rem;
  background: var(--gradient-primary);
  border: none;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.sf-newsletter__form button:hover { opacity: 0.9; transform: translateY(-1px); }

/* ── Main grid ───────────────────────────────────────────────── */
.sf-grid {
  display: grid;
  grid-template-columns: 1.9fr 1fr 1fr 1fr;
  gap: 3rem;
  padding: 3.5rem 0 2.5rem;
}

/* ── Brand column ────────────────────────────────────────────── */
.sf-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  margin-bottom: 1rem;
}

.sf-logo__icon {
  width: 34px;
  height: 34px;
  background: var(--gradient-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.sf-logo__text {
  font-size: 1.05rem;
  font-weight: var(--font-bold);
  color: var(--color-text-primary);
  letter-spacing: -0.01em;
}

.sf-logo__text span { color: var(--color-primary); }

.sf-tagline {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
  margin-bottom: 1.25rem;
  max-width: 290px;
}

.sf-contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.sf-contact-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.sf-contact-item svg { flex-shrink: 0; opacity: 0.6; }
.sf-contact-item:hover { color: var(--color-accent-light); }

.sf-social {
  display: flex;
  gap: 0.5rem;
}

.sf-social__item {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: all var(--transition-base);
}

.sf-social__item:hover {
  background: rgba(37,99,235,0.2);
  border-color: rgba(37,99,235,0.5);
  color: #93c5fd;
  transform: translateY(-2px);
}

/* ── Nav columns ─────────────────────────────────────────────── */
.sf-col__title {
  font-size: 0.65rem;
  font-weight: var(--font-semibold);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.sf-col nav {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.sf-col__link {
  font-size: var(--text-sm);
  color: rgba(148,163,184,0.8);
  text-decoration: none;
  transition: color var(--transition-fast), transform var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.sf-col__link:hover {
  color: var(--color-text-primary);
  transform: translateX(3px);
}

/* ── Trust badges ────────────────────────────────────────────── */
.sf-badges {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  padding: 1.25rem 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.sf-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: var(--font-medium);
  color: rgba(148,163,184,0.7);
  padding: 0.3rem 0.75rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-full);
}

.sf-badge svg { opacity: 0.7; flex-shrink: 0; }

/* ── Bottom bar ──────────────────────────────────────────────── */
.sf-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  gap: 1rem;
  flex-wrap: wrap;
}

.sf-bottom__left {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: var(--text-xs);
  color: rgba(100,116,139,0.8);
}

.sf-bottom__sep { opacity: 0.4; }

.sf-bottom__right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.sf-bottom__link {
  font-size: var(--text-xs);
  color: rgba(100,116,139,0.8);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.sf-bottom__link:hover { color: var(--color-text-secondary); }

/* ── Legacy .footer alias (keeps print styles etc working) ───── */
.footer { /* alias - pages using old class still render */ }

/* ── Responsive footer ───────────────────────────────────────── */
@media (max-width: 1024px) {
  .sf-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .sf-brand { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .sf-tagline { max-width: 100%; }
}

@media (max-width: 768px) {
  .sf-newsletter__inner { flex-direction: column; align-items: flex-start; }
  .sf-newsletter__form { width: 100%; }
  .sf-newsletter__form input { flex: 1; width: auto; }
  .sf-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .sf-brand { grid-column: 1 / -1; display: block; }
  .sf-bottom { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .sf-badges { gap: 0.75rem; }
}

@media (max-width: 480px) {
  .sf-grid { grid-template-columns: 1fr; }
  .sf-badges { flex-direction: column; align-items: flex-start; }
}

/* ─── SCROLL TO TOP ──────────────────────────────────────────── */
.scroll-top {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  width: 44px;
  height: 44px;
  background: var(--gradient-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: var(--z-toast);
  box-shadow: var(--shadow-glow-primary);
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--transition-base);
  pointer-events: none;
}

.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.scroll-top:hover { transform: translateY(-3px); }

/* ─── TOAST NOTIFICATION ─────────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: var(--space-6);
  left: 50%;
  transform: translateX(-50%);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  pointer-events: none;
}

.toast {
  padding: var(--space-3) var(--space-5);
  background: var(--color-bg-tertiary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  color: var(--color-text-primary);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  animation: toast-in 0.3s ease;
  pointer-events: auto;
}

/* ─── UTILITY CLASSES ────────────────────────────────────────── */
.hidden        { display: none !important; }
.sr-only       { position: absolute; width: 1px; height: 1px; clip: rect(0,0,0,0); overflow: hidden; }
.w-full        { width: 100%; }
.h-full        { height: 100%; }
.relative      { position: relative; }
.overflow-hidden { overflow: hidden; }
.cursor-pointer { cursor: pointer; }

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

.pt-6  { padding-top: var(--space-6); }
.pb-6  { padding-bottom: var(--space-6); }

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

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

/* ─── KEYFRAME ANIMATIONS ────────────────────────────────────── */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes slide-in-right {
  from { opacity: 0; transform: translateX(24px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes orb-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(30px, -40px) scale(1.05); }
  66%       { transform: translate(-20px, 20px) scale(0.95); }
}

@keyframes grid-drift {
  0%   { transform: translate(0, 0); }
  100% { transform: translate(60px, 60px); }
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(0.8); }
}

@keyframes pulse-border {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245,158,11,0); }
  50%       { box-shadow: 0 0 0 4px rgba(245,158,11,0.1); }
}

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

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

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

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

/* ─── SCROLL REVEAL (JS class hooks) ────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal--delay-1 { transition-delay: 0.1s; }
.reveal--delay-2 { transition-delay: 0.2s; }
.reveal--delay-3 { transition-delay: 0.3s; }
.reveal--delay-4 { transition-delay: 0.4s; }

/* ─── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --nav-height: 64px; }

  .nav__links   { display: none; }
  .nav__hamburger { display: flex; }

  .grid-2,
  .grid-3,
  .grid-4 { grid-template-columns: 1fr; }

  .hero__title { font-size: clamp(2rem, 8vw, 3rem); }
  .hero__stats { gap: var(--space-6); }

  .filter-bar { flex-direction: column; align-items: stretch; }
  .filter-bar__search { min-width: unset; }

  .section { padding: var(--space-16) 0; }
}

@media (max-width: 480px) {
  .container { padding: 0 var(--space-4); }
  .btn--lg { padding: var(--space-3) var(--space-6); }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
}

/* ─── PRINT STYLES ───────────────────────────────────────────── */
@media print {
  .nav, .footer, .site-footer, .scroll-top { display: none; }
  body { background: white; color: black; }
}
