/* ============================================================
   site.css — CompareMax
   Aesthetic: dark purple (inspired by wope.com)
   Inter font · Frosted glass cards · Glowing buttons
============================================================ */

/* ---- 1. TOKENS ---- */
:root {
  --bg:            #0a0118;
  --bg-surface:    rgba(255,255,255,0.03);
  --bg-surface-2:  rgba(255,255,255,0.015);
  --purple:        #713dff;
  --purple-light:  #9f7aff;
  --purple-dim:    rgba(113,61,255,0.15);
  --purple-border: rgba(186,179,255,0.12);
  --text:          #ffffff;
  --text-muted:    #9b96b0;
  --text-xs:       rgba(255,255,255,0.30);
  --border:        rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.14);

  --premium:  #f59e0b;
  --value:    #22c55e;
  --above:    #a855f7;
  --suggest:  #ef4444;

  --r-sm:  6px;  --r-md: 12px;  --r-lg: 16px;  --r-xl: 24px;  --r-full: 9999px;

  --sh-card:  0 0 0 1px var(--purple-border), 0 8px 32px rgba(0,0,0,0.4);
  --sh-hover: 0 0 0 1px rgba(186,179,255,0.22), 0 16px 48px rgba(0,0,0,0.5), 0 0 40px rgba(113,61,255,0.08);
  --sh-glow:  0 0 60px rgba(113,61,255,0.35), 0 4px 20px rgba(113,61,255,0.2);
  --sh-glow-h:0 0 80px rgba(113,61,255,0.55), 0 8px 32px rgba(113,61,255,0.3);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: var(--font); border: none; background: none; }
ul, ol { list-style: none; }

/* ---- 3. NAVIGATION ---- */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.nav-auth {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-btn-ghost {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  transition: all .15s;
}
.nav-btn-ghost:hover { border-color: var(--purple-border); color: var(--text); }

.nav-btn-primary {
  padding: 8px 18px;
  border-radius: var(--r-full);
  background: var(--purple);
  color: white;
  font-size: 13px;
  font-weight: 700;
  border: none;
  box-shadow: 0 0 16px rgba(113,61,255,0.3);
  transition: all .15s;
}
.nav-btn-primary:hover { box-shadow: 0 0 24px rgba(113,61,255,0.5); transform: translateY(-1px); }

/* User button (when logged in) */
.nav-user-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 6px;
  border: 1px solid var(--purple-border);
  border-radius: var(--r-full);
  background: rgba(113,61,255,0.08);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  transition: all .15s;
  cursor: pointer;
}
.nav-user-btn:hover { background: rgba(113,61,255,0.14); }
.nav-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: white;
  flex-shrink: 0;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,1,24,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-logo-icon { font-size: 20px; }
.nav-logo-text {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.4px;
  background: linear-gradient(135deg, #fff 0%, var(--purple-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-badge {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ---- 4. HERO ---- */
.hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 100px 32px 80px;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hero-glow--top {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(113,61,255,0.18) 0%, transparent 70%);
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
}
.hero-glow--left {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(168,85,247,0.08) 0%, transparent 70%);
  top: 0;
  left: -100px;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border: 1px solid var(--purple-border);
  border-radius: var(--r-full);
  background: rgba(113,61,255,0.08);
  font-size: 13px;
  font-weight: 500;
  color: var(--purple-light);
  letter-spacing: 0.1px;
  margin-bottom: 32px;
}

.hero-title {
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 900;
  letter-spacing: -2px;
  line-height: 1.08;
  color: #fff;
  margin-bottom: 24px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--purple-light) 0%, #c084fc 50%, #e879f9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 48px;
  font-weight: 400;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}
.hero-stat { text-align: center; }
.hero-stat-num {
  display: block;
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -1px;
  background: linear-gradient(135deg, #fff 0%, var(--purple-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-stat-label { font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.hero-stat-divider { width: 1px; height: 40px; background: var(--border); }

/* ---- 5. APP SECTION ---- */
.app-section {
  padding: 40px 0 80px;
  position: relative;
}

/* Halo central derrière l'outil */
.app-section::before {
  content: '';
  position: absolute;
  width: 900px; height: 600px;
  background: radial-gradient(ellipse at center, rgba(113,61,255,0.12) 0%, transparent 70%);
  top: 0; left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 0;
}

.app-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 1;
}

/* Encart visuel qui entoure tout l'outil */
.app-tool-card {
  border: 1px solid rgba(113,61,255,0.3);
  border-radius: 28px;
  background: rgba(113,61,255,0.04);
  box-shadow:
    0 0 0 1px rgba(113,61,255,0.08),
    0 0 80px rgba(113,61,255,0.10),
    inset 0 1px 0 rgba(255,255,255,0.05);
  overflow: visible;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* En-tête de l'outil */
.app-tool-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 32px 0;
}

.app-tool-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--purple-light);
  letter-spacing: 0.3px;
}

.app-tool-label-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34,197,94,0.7);
  animation: pulse-dot 2s ease-in-out infinite;
}

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

.app-tool-tagline {
  font-size: 12px;
  color: var(--text-muted);
}

/* Corps de l'outil */
.app-tool-body {
  padding: 24px 32px 32px;
}

/* ---- 6. CATEGORY SELECTOR (2 niveaux) ---- */
.category-selector {
  padding: 0 0 24px;
}

.category-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 14px;
}

/* Niveau 1 : grandes familles */
.cat-level1 {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cat1-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  background: var(--bg-surface);
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.2px;
  transition: all .2s;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.cat1-btn:hover {
  border-color: var(--purple-border);
  color: var(--text);
  background: rgba(113,61,255,0.06);
}
.cat1-btn.active {
  border-color: var(--purple);
  background: rgba(113,61,255,0.12);
  color: white;
  box-shadow: 0 0 28px rgba(113,61,255,0.2);
}
.cat1-emoji { font-size: 22px; }

/* Niveau 2 : produits */
.cat-level2 {
  display: none;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  gap: 10px;
  flex-wrap: wrap;
}
.cat-level2[style*=""] {
  display: flex;
}

.category-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  background: var(--bg-surface);
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.1px;
  transition: all .2s;
  position: relative;
}
.category-btn:hover:not(.disabled) {
  border-color: var(--purple-border);
  color: var(--text);
  background: rgba(113,61,255,0.08);
}
.category-btn.active {
  background: var(--purple);
  border-color: var(--purple);
  color: white;
  box-shadow: 0 0 24px rgba(113,61,255,0.35);
}
.category-btn.disabled { opacity: 0.4; cursor: not-allowed; }
.cat-icon { font-size: 16px; }

.soon-badge {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  background: var(--purple-dim);
  color: var(--purple-light);
  border: 1px solid var(--purple-border);
  padding: 2px 6px;
  border-radius: var(--r-full);
}

/* ---- 7. FILTERS PANEL ---- */
.filters-panel {
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(113,61,255,0.15);
  border-radius: 20px;
  padding: 28px;
  margin-bottom: 0;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.filters-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.4px;
  margin-bottom: 28px;
  color: var(--text);
}

.filter-group {
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.filter-group:last-of-type { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.filter-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: 0.1px;
}

.filter-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

/* Quick budget buttons */
.quick-budgets {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.quick-btn {
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg-surface-2);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  transition: all .15s;
  line-height: 1.3;
}
.quick-btn small { font-weight: 400; color: var(--text-xs); }
.quick-btn:hover {
  border-color: var(--purple-border);
  color: var(--text);
  background: rgba(113,61,255,0.06);
}
.quick-btn.active {
  border-color: var(--purple);
  color: var(--purple-light);
  background: rgba(113,61,255,0.12);
}

/* Price display */
.price-range-display {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.price-range-value {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.8px;
  color: var(--text);
}
.price-range-sep { color: var(--text-muted); font-size: 16px; }

/* Dual range slider */
.dual-range-wrapper {
  position: relative;
  height: 28px;
  display: flex;
  align-items: center;
}

#rangeTrackFill, #wRangeTrackFill {
  position: absolute;
  height: 4px;
  background: var(--purple);
  border-radius: 2px;
  pointer-events: none;
  z-index: 1;
  box-shadow: 0 0 8px rgba(113,61,255,0.5);
}

.range-input {
  position: absolute;
  width: 100%;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  pointer-events: none;
  outline: none;
}
.range-input::-webkit-slider-runnable-track {
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
}
.range-input--min { z-index: 2; }
.range-input--max { z-index: 3; }
.range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  margin-top: -8px;
  border-radius: 50%;
  background: var(--purple-light);
  border: 3px solid var(--bg);
  box-shadow: 0 0 12px rgba(113,61,255,0.5);
  pointer-events: all;
  cursor: pointer;
  z-index: 4;
}
.range-input::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--purple-light);
  border: 3px solid var(--bg);
  box-shadow: 0 0 12px rgba(113,61,255,0.5);
  pointer-events: all;
  cursor: pointer;
}

/* Size selects */
.size-inputs-row {
  display: flex;
  align-items: flex-end;
  gap: 12px;
}
.size-field { flex: 1; }
.field-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.size-field select {
  width: 100%;
  padding: 10px 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  outline: none;
  transition: border-color .15s;
  -webkit-appearance: none;
}
.size-field select:focus { border-color: var(--purple); box-shadow: 0 0 0 2px rgba(113,61,255,0.2); }
.size-field select option { background: #1a0a35; color: var(--text); }
.range-separator-text {
  font-size: 14px;
  color: var(--text-muted);
  padding-bottom: 8px;
  flex-shrink: 0;
}

/* Compare button */
.compare-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 18px 32px;
  margin-top: 28px;
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-light) 100%);
  color: white;
  border-radius: var(--r-full);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.2px;
  box-shadow: var(--sh-glow);
  transition: box-shadow .2s ease, transform .15s ease;
}
.compare-btn:hover {
  box-shadow: var(--sh-glow-h);
  transform: translateY(-2px);
}
.compare-btn:active { transform: translateY(0); box-shadow: var(--sh-glow); }

/* ---- 8. TOGGLE GROUPS (washing filters) ---- */
.toggle-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.toggle-btn {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  background: var(--bg-surface-2);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  transition: all .15s;
}
.toggle-btn:hover { border-color: var(--purple-border); color: var(--text); }
.toggle-btn.active { border-color: var(--purple); color: var(--purple-light); background: rgba(113,61,255,0.12); }

/* Color group */
.color-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.color-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg-surface-2);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  transition: all .15s;
}
.color-btn:hover { border-color: var(--purple-border); color: var(--text); }
.color-btn.active { border-color: var(--purple); color: var(--purple-light); background: rgba(113,61,255,0.1); }

.color-swatch {
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.15);
  flex-shrink: 0;
}
.color-swatch--all   { background: linear-gradient(135deg, #6b7280 50%, #d1d5db 50%); }
.color-swatch--white { background: #f9fafb; border-color: rgba(255,255,255,0.3); }
.color-swatch--black { background: #111827; border-color: rgba(255,255,255,0.2); }
.color-swatch--other { background: linear-gradient(135deg, #c4b5fd, #93c5fd, #6ee7b7); border: none; }

/* Capacity slider */
.capacity-row { margin: 4px 0 6px; }
.capacity-value { font-size: 14px; font-weight: 700; color: var(--purple-light); }
.capacity-slider-wrap { padding: 4px 0 2px; }
.capacity-slider {
  width: 100%;
  -webkit-appearance: none;
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,0.1);
  outline: none;
  cursor: pointer;
}
.capacity-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--purple-light);
  border: 3px solid var(--bg);
  box-shadow: 0 0 10px rgba(113,61,255,0.5);
  cursor: pointer;
}
.capacity-labels {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--text-xs);
  margin-top: 6px;
}

/* ---- 9. BRAND SCROLLER ---- */
.brand-scroller-section {
  background: rgba(255,255,255,0.02);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  overflow: hidden;
  margin: 32px 0;
}
.scroller-outer {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}
.scroller-track {
  display: flex;
  gap: 0;
  white-space: nowrap;
  width: max-content;
}
.scroller-track--ltr { animation: marquee-ltr 40s linear infinite; }
.scroller-track--rtl { animation: marquee-rtl 40s linear infinite; }

.scroller-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 28px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.45);
  transition: color .2s;
}
.scroller-item:hover { color: rgba(255,255,255,0.75); }

.scroller-logo {
  width: 20px; height: 20px;
  border-radius: 5px;
  background: rgba(255,255,255,0.08);
  padding: 2px;
  object-fit: contain;
}

@keyframes marquee-ltr {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes marquee-rtl {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}

/* ---- 10. LOADING ---- */
.loading-state {
  text-align: center;
  padding: 60px 24px;
}
.loading-spinner {
  width: 40px; height: 40px;
  border: 3px solid rgba(113,61,255,0.2);
  border-top-color: var(--purple-light);
  border-radius: 50%;
  animation: spin .8s linear infinite;
  margin: 0 auto 20px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-state p { font-weight: 600; font-size: 15px; color: var(--text); }
.loading-sub { font-size: 13px !important; font-weight: 400 !important; color: var(--text-muted) !important; margin-top: 4px; }

/* ---- 11. NO RESULTS ---- */
.no-results-msg { text-align: center; padding: 64px 24px 48px; display: flex; flex-direction: column; align-items: center; }
.no-results-illustration { width: 80px; height: 80px; margin-bottom: 24px; opacity: 0.9; }
.no-results-illustration svg { width: 100%; height: 100%; }
.no-results-msg h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.no-results-msg > p { color: var(--text-muted); font-size: 14px; margin-bottom: 24px; }
.no-results-tips { list-style: none; padding: 0; margin: 0 0 28px; display: flex; flex-direction: column; gap: 10px; text-align: left; max-width: 380px; }
.no-results-tips li { display: flex; align-items: flex-start; gap: 12px; background: rgba(113,61,255,0.06); border: 1px solid var(--border); border-radius: var(--r-md); padding: 12px 14px; font-size: 13px; color: var(--text-muted); line-height: 1.5; }
.no-results-tip-icon { font-size: 16px; flex-shrink: 0; margin-top: 1px; }
.no-results-reset-btn { background: var(--purple); color: #fff; border: none; border-radius: var(--r-md); padding: 12px 28px; font-size: 14px; font-weight: 600; cursor: pointer; transition: opacity .2s; }
.no-results-reset-btn:hover { opacity: .85; }

/* ---- 12. RESULTS SECTIONS ---- */
.results-section {
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}
.results-section:last-child { border-bottom: none; }

.section-header { margin-bottom: 24px; }
.section-header-top { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.section-medal { font-size: 24px; }
.results-section h2 { font-size: 22px; font-weight: 800; letter-spacing: -0.5px; }
.section-subtitle { font-size: 13px; color: var(--text-muted); margin-top: 2px; }

.suggestions-section { background: rgba(245,158,11,0.04); border: 1px solid rgba(245,158,11,0.15); border-radius: var(--r-xl); padding: 32px; margin-bottom: 24px; }
.suggestions-header h2 { color: #f59e0b; }

.premium-section h2 { color: var(--premium); }
.value-section   h2 { color: var(--value); }
.above-section   h2 { color: var(--above); }

/* ---- 13. CARD GRID ---- */
.tv-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  align-items: stretch;
}

/* ---- 14. CARDS ---- */
.tv-card-wrapper {
  position: relative;
  padding-top: 14px;
}

.card-top-badge {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  background: var(--purple);
  color: white;
  padding: 3px 14px;
  border-radius: var(--r-full);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  white-space: nowrap;
  z-index: 2;
  box-shadow: 0 0 16px rgba(113,61,255,0.5);
}

.tv-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 18px 16px 16px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--sh-card);
  transition: box-shadow .25s, transform .2s, border-color .2s;
  height: 100%;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.tv-card:hover { box-shadow: var(--sh-hover); transform: translateY(-3px); border-color: var(--purple-border); }
.tv-card--rank-1 { border: 1.5px solid rgba(113,61,255,0.45); box-shadow: 0 0 0 1px rgba(113,61,255,0.15), 0 8px 40px rgba(0,0,0,0.5); }

/* Card header */
.card-header { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.card-rank-emoji { font-size: 18px; line-height: 1; }

/* Tech badges */
.tech-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--r-full);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}
.badge-oled     { background: rgba(139,92,246,0.2); color: #c4b5fd; border: 1px solid rgba(139,92,246,0.3); }
.badge-miniled  { background: rgba(59,130,246,0.15); color: #93c5fd; border: 1px solid rgba(59,130,246,0.25); }
.badge-qled     { background: rgba(245,158,11,0.15); color: #fcd34d; border: 1px solid rgba(245,158,11,0.25); }
.badge-qned     { background: rgba(251,191,36,0.12); color: #fde68a; border: 1px solid rgba(251,191,36,0.2); }
.badge-led      { background: rgba(255,255,255,0.06); color: var(--text-muted); border: 1px solid var(--border); }

/* Washing machine badges */
.badge-washer      { background: rgba(59,130,246,0.15); color: #93c5fd; border: 1px solid rgba(59,130,246,0.25); }
.badge-washer-dryer{ background: rgba(139,92,246,0.15); color: #c4b5fd; border: 1px solid rgba(139,92,246,0.25); }
.badge-builtin     { background: rgba(245,158,11,0.12); color: #fcd34d; border: 1px solid rgba(245,158,11,0.2); }
.badge-freestanding{ background: rgba(34,197,94,0.12); color: #86efac; border: 1px solid rgba(34,197,94,0.2); }

/* Energy badge */
.energy-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px; height: 20px;
  padding: 0 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 800;
  color: white;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}
.energy-A { background: #00a550; }
.energy-B { background: #50b848; }
.energy-C { background: #bfd730; color: #1a1a1a; }
.energy-D { background: #fff200; color: #1a1a1a; }
.energy-E { background: #ffb612; color: #1a1a1a; }
.energy-F { background: #f37021; }
.energy-G { background: #ee1c25; }

.promo-pill {
  margin-left: auto;
  background: rgba(239,68,68,0.15);
  color: #fca5a5;
  border: 1px solid rgba(239,68,68,0.25);
  font-size: 9px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--r-full);
}

.card-name {
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 3px;
  line-height: 1.3;
  letter-spacing: -0.2px;
}
.card-sub { font-size: 11px; color: var(--text-muted); margin-bottom: 14px; line-height: 1.4; }

/* Price */
.card-price-block { margin-bottom: 16px; }
.card-price-original { font-size: 11px; color: var(--text-xs); text-decoration: line-through; display: block; margin-bottom: 2px; }
.card-price-main { font-size: 30px; font-weight: 900; color: var(--text); letter-spacing: -1.2px; line-height: 1; }
.card-price-suffix { font-size: 14px; font-weight: 500; color: var(--text-muted); }
.card-promo-end { display: block; font-size: 10px; font-weight: 600; color: #fca5a5; margin-top: 4px; }

/* ---- APPLIANCE CARDS (cafetière, fer, aspirateur, etc.) ---- */

/* Header layout */
.card-rank { font-size: 20px; flex-shrink: 0; line-height: 1; }
.card-title-block { flex: 1; min-width: 0; }
.card-title { font-size: 15px; font-weight: 800; color: var(--text); margin-bottom: 8px; line-height: 1.3; }

/* Feature badges (type de grain, lait, etc.) */
.card-badges { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 2px; }
.card-badge {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 11px; color: var(--text-muted);
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  border-radius: var(--r-full); padding: 2px 8px;
}

/* Price block inside card-header (appliances) */
.card-header .card-price-block { margin-left: auto; margin-bottom: 0; text-align: right; flex-shrink: 0; }
.card-promo-tag {
  display: block; margin-bottom: 4px;
  background: rgba(239,68,68,0.15); color: #fca5a5;
  border: 1px solid rgba(239,68,68,0.25);
  font-size: 10px; font-weight: 700; padding: 2px 8px;
  border-radius: var(--r-full);
}
.card-price { display: block; font-size: 22px; font-weight: 900; color: var(--text); letter-spacing: -0.5px; line-height: 1.1; }
.card-original-price { display: block; font-size: 11px; color: var(--text-muted); text-decoration: line-through; margin-top: 2px; }

/* Specs list */
.card-specs { margin: 14px 0 12px; display: flex; flex-direction: column; gap: 0; }
.spec-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 5px 0; border-bottom: 1px solid rgba(255,255,255,0.04);
}
.spec-item:last-child { border-bottom: none; }
.spec-label { font-size: 12px; color: var(--text-muted); }
.spec-value { font-size: 12px; font-weight: 600; color: var(--text); }

/* Retailers links */
.card-retailers { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); }
.retailers-label { display: block; font-size: 11px; color: var(--text-muted); margin-bottom: 8px; }
.retailers-links { display: flex; flex-wrap: wrap; gap: 6px; }
.retailer-link {
  display: inline-block; padding: 5px 12px;
  border-radius: var(--r-full);
  background: rgba(113,61,255,0.1); border: 1px solid rgba(113,61,255,0.25);
  color: var(--purple-light); font-size: 12px; font-weight: 600;
  text-decoration: none; transition: all .15s;
}
.retailer-link:hover { background: rgba(113,61,255,0.22); border-color: rgba(113,61,255,0.45); color: #fff; }

/* Features list */
.card-features { margin-bottom: 14px; display: flex; flex-direction: column; gap: 6px; }
.card-features li { display: flex; align-items: flex-start; gap: 7px; font-size: 12px; color: var(--text-muted); }

.feat-icon {
  width: 17px; height: 17px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 1px;
}
.feat-icon--good { background: rgba(34,197,94,0.2); color: #22c55e; }
.feat-icon--ok   { background: rgba(245,158,11,0.2); color: #f59e0b; }
.feat-icon--weak { background: rgba(239,68,68,0.15); color: #ef4444; }

.feat-text strong { color: var(--text); font-weight: 600; font-size: 12px; }
.feat-text span   { color: var(--text-muted); }

/* Comparison block */
.card-comparison {
  margin: 10px 0;
  padding: 10px 12px;
  background: rgba(168,85,247,0.06);
  border: 1px solid rgba(168,85,247,0.2);
  border-radius: 10px;
}
.comp-header {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--above);
  margin-bottom: 7px;
}
.comp-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 6px;
  padding: 5px 0;
  border-bottom: 1px solid rgba(168,85,247,0.1);
}
.comp-row:last-child { border-bottom: none; padding-bottom: 0; }
.comp-label {
  color: var(--text);
  font-size: 11px;
  font-weight: 500;
  flex: 1; min-width: 0;
  line-height: 1.35;
}
.comp-label em { color: var(--text-muted); font-style: normal; font-size: 10px; display: block; margin-top: 1px; }
.comp-values { display: flex; gap: 4px; flex-shrink: 0; align-items: center; margin-top: 2px; }
.comp-extra-price { background: rgba(239,68,68,0.12); color: #fca5a5; padding: 2px 5px; border-radius: 4px; font-weight: 700; font-size: 10px; }
.comp-extra-score { padding: 2px 5px; border-radius: 4px; font-weight: 700; font-size: 10px; }
.comp-better { background: rgba(34,197,94,0.15); color: #4ade80; }
.comp-worse  { background: rgba(107,114,128,0.15); color: #9ca3af; }
.comp-equal  { background: rgba(107,114,128,0.1); color: #6b7280; }

/* Score bar */
.card-score-block { margin-top: auto; padding-top: 14px; }
.card-score-label { display: flex; justify-content: space-between; align-items: baseline; font-size: 11px; color: var(--text-muted); margin-bottom: 6px; }
.card-score-label strong { color: var(--text); font-size: 12px; font-weight: 700; }
.card-score-track { height: 5px; background: rgba(255,255,255,0.08); border-radius: 3px; overflow: hidden; }
.card-score-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--purple) 0%, var(--purple-light) 100%);
  border-radius: 3px;
  width: 0;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 8px rgba(113,61,255,0.4);
}

/* CTA button */
.card-cta {
  display: block;
  margin-top: 14px;
  padding: 11px 16px;
  background: rgba(113,61,255,0.1);
  border: 1px solid rgba(113,61,255,0.25);
  border-radius: var(--r-md);
  color: var(--purple-light);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  transition: all .15s;
}
.card-cta:hover { background: rgba(113,61,255,0.2); border-color: rgba(113,61,255,0.4); color: white; }

/* Other offers */
.card-other-offers { margin-top: 8px; }
.card-other-offers summary {
  font-size: 11px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px 0;
  list-style: none;
}
.card-other-offers summary::-webkit-details-marker { display: none; }
.card-other-offers summary:hover { color: var(--text); }
.other-offers-list { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }

.retailer-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: var(--r-sm);
  font-size: 12px;
  font-weight: 600;
  transition: opacity .15s;
}
.retailer-btn:hover { opacity: 0.85; }
.retailer-name { flex: 1; }
.retailer-price { font-weight: 700; }

/* ---- 15. SUGGESTIONS ---- */
.suggestions-list { display: flex; flex-direction: column; gap: 12px; }
.suggestion-card {
  display: flex;
  gap: 14px;
  padding: 16px;
  background: rgba(245,158,11,0.06);
  border: 1px solid rgba(245,158,11,0.15);
  border-radius: var(--r-md);
}
.suggestion-icon { font-size: 22px; flex-shrink: 0; }
.suggestion-content h4 { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.suggestion-reasons { font-size: 13px; color: var(--text-muted); margin-bottom: 8px; }
.suggestion-content ul { padding-left: 16px; }
.suggestion-content li { font-size: 12px; color: var(--text-muted); list-style: disc; margin-bottom: 3px; }

/* ---- 16. AFFILIATE SECTION ---- */
.affiliate-section {
  margin-top: 40px;
  border-top: 1px solid var(--border);
  padding-top: 24px;
}
.affiliate-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 12px 0;
  list-style: none;
  font-weight: 500;
}
.affiliate-summary::-webkit-details-marker { display: none; }
.affiliate-summary:hover { color: var(--text); }
.summary-arrow { transition: transform .2s; }
details[open] .summary-arrow { transform: rotate(180deg); }
.affiliate-content { padding: 16px 0; font-size: 13px; color: var(--text-muted); line-height: 1.7; }

/* ---- 17. TOAST ---- */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(20,10,40,0.95);
  border: 1px solid var(--purple-border);
  color: var(--text);
  padding: 12px 24px;
  border-radius: var(--r-full);
  font-size: 14px;
  font-weight: 600;
  opacity: 0;
  transition: opacity .25s, transform .25s;
  z-index: 9999;
  backdrop-filter: blur(20px);
  box-shadow: 0 0 24px rgba(113,61,255,0.2);
  pointer-events: none;
}
.toast--visible { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---- 18. VOIR AUSSI (cocon sémantique) ---- */
.voir-aussi {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 28px;
  margin: 40px 0 0;
}
.voir-aussi-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.voir-aussi-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.voir-aussi-link {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--purple-light);
  text-decoration: none;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: border-color .2s, background .2s;
}
.voir-aussi-link:hover {
  border-color: var(--purple-border);
  background: var(--purple-dim);
  color: #fff;
}
.voir-aussi-link span:first-child { font-size: 18px; flex-shrink: 0; }

/* ---- 19. FOOTER ---- */
.site-footer {
  background: rgba(255,255,255,0.02);
  border-top: 1px solid var(--border);
  padding: 48px 32px;
  text-align: center;
}
.footer-inner { max-width: 600px; margin: 0 auto; }
.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--text-muted);
}
.footer-legal { font-size: 12px; color: var(--text-muted); line-height: 1.7; margin-bottom: 12px; }
.footer-copy { font-size: 12px; color: var(--text-xs); }

/* ---- 19. SHARED SECTION LAYOUT ---- */
.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--purple-light);
  border: 1px solid var(--purple-border);
  background: rgba(113,61,255,0.08);
  padding: 4px 12px;
  border-radius: var(--r-full);
  margin-bottom: 20px;
}

.section-heading {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 900;
  letter-spacing: -1px;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.1;
}

.section-sub {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 56px;
  max-width: 560px;
}

/* ---- 20. QUICK ACCESS ---- */
.quick-access-section {
  padding: 100px 0;
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.quick-access-section::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(113,61,255,0.06) 0%, transparent 70%);
  top: -100px; right: -100px;
  pointer-events: none;
}

.qa-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.qa-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--bg-surface);
  text-decoration: none;
  transition: transform .25s ease, border-color .25s, box-shadow .25s;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
}
.qa-card:hover {
  transform: translateY(-6px);
  border-color: var(--purple-border);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 40px rgba(113,61,255,0.06);
}

.qa-card-img {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
}
.qa-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
  filter: brightness(0.75) saturate(0.8);
}
.qa-card:hover .qa-card-img img { transform: scale(1.06); filter: brightness(0.85) saturate(0.9); }

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

.qa-card-emoji {
  font-size: 24px;
  margin-bottom: 10px;
  display: block;
}

.qa-card-body h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.3px;
  margin-bottom: 8px;
}

.qa-card-body p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 16px;
}

.qa-card-cta {
  font-size: 13px;
  font-weight: 700;
  color: var(--purple-light);
  display: flex;
  align-items: center;
  gap: 4px;
}
.qa-card.qa-card--vacuum .qa-card-cta,
.qa-card.qa-card--coffee .qa-card-cta,
.qa-card.qa-card--fridge .qa-card-cta,
.qa-card.qa-card--speaker .qa-card-cta {
  color: var(--text-muted);
}

/* Accents de couleur par type */
.qa-card--tv     { --card-accent: #a78bfa; }
.qa-card--washing{ --card-accent: #38bdf8; }
.qa-card--vacuum { --card-accent: #fb923c; }
.qa-card--coffee { --card-accent: #d97706; }
.qa-card--fridge { --card-accent: #60a5fa; }
.qa-card--speaker{ --card-accent: #34d399; }

.qa-card:hover .qa-card-body h3 { color: var(--card-accent, var(--purple-light)); }

/* ---- 21. HOW IT WORKS ---- */
.how-section {
  padding: 100px 0;
  background: rgba(255,255,255,0.015);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.how-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  position: relative;
}

.how-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 16px;
}

.how-step-num {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(113,61,255,0.12);
  border: 1.5px solid var(--purple-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 900;
  color: var(--purple-light);
  margin-bottom: 20px;
  flex-shrink: 0;
  box-shadow: 0 0 24px rgba(113,61,255,0.15);
}

.how-step-body h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -0.2px;
}
.how-step-body p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
}

.how-connector {
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, var(--purple-border), transparent);
  margin-top: 26px;
  flex-shrink: 0;
}

/* ---- 22. TRUST BANNER ---- */
.trust-section {
  padding: 80px 0;
  border-bottom: 1px solid var(--border);
}

.trust-grid {
  display: flex;
  align-items: flex-start;
  gap: 0;
  flex-wrap: wrap;
}

.trust-item {
  flex: 1;
  min-width: 200px;
  display: flex;
  gap: 16px;
  padding: 0 32px;
}
.trust-item:first-child { padding-left: 0; }
.trust-item:last-child  { padding-right: 0; }

.trust-icon {
  font-size: 28px;
  flex-shrink: 0;
  margin-top: 2px;
}
.trust-item strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.trust-item p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}
.trust-divider {
  width: 1px;
  background: var(--border);
  align-self: stretch;
  margin: 0 8px;
}

/* ---- 23. FAQ ---- */
.faq-section {
  padding: 100px 0;
}

.faq-inner {
  max-width: 760px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--bg-surface);
  overflow: hidden;
  transition: border-color .2s;
}
.faq-item[open] { border-color: var(--purple-border); }

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  gap: 16px;
  user-select: none;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question:hover { color: var(--purple-light); }

.faq-arrow {
  font-size: 18px;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform .25s;
}
.faq-item[open] .faq-arrow { transform: rotate(180deg); color: var(--purple-light); }

.faq-answer {
  padding: 0 22px 20px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.75;
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-top: 0;
}

/* ---- 24. AFFILIATE FULL SECTION ---- */
.affiliate-section-full {
  padding: 0 0 40px;
  border-bottom: 1px solid var(--border);
}

/* ---- 25. FOOTER GRID ---- */
.site-footer {
  background: rgba(255,255,255,0.02);
  border-top: 1px solid var(--border);
  padding: 64px 32px 0;
}
.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
}
.footer-tagline { font-size: 13px; color: var(--text-muted); line-height: 1.65; }
.footer-col-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  transition: color .15s;
  text-decoration: none;
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 0 28px;
}
.footer-bottom p { font-size: 12px; color: var(--text-xs); }

/* ---- 26. MODALS ---- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.open { display: flex; }

.modal-box {
  background: #130825;
  border: 1px solid var(--purple-border);
  border-radius: 20px;
  padding: 40px;
  width: 100%;
  max-width: 440px;
  position: relative;
  box-shadow: 0 0 80px rgba(113,61,255,0.2), 0 40px 80px rgba(0,0,0,0.6);
  animation: modalIn .25s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.92) translateY(12px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .15s;
}
.modal-close:hover { background: rgba(255,255,255,0.12); color: var(--text); }

/* Auth content */
.auth-logo { font-size: 32px; margin-bottom: 12px; }
.auth-title { font-size: 22px; font-weight: 800; letter-spacing: -0.5px; margin-bottom: 8px; }
.auth-sub { font-size: 14px; color: var(--text-muted); line-height: 1.6; margin-bottom: 28px; }

.auth-tabs {
  display: flex;
  gap: 4px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  padding: 4px;
  margin-bottom: 28px;
}
.auth-tab {
  flex: 1;
  padding: 9px;
  border-radius: var(--r-full);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: none;
  transition: all .15s;
  cursor: pointer;
}
.auth-tab.active { background: var(--purple); color: white; box-shadow: 0 0 16px rgba(113,61,255,0.35); }

.auth-form { display: flex; flex-direction: column; gap: 16px; }

.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.field-hint { font-weight: 400; color: var(--text-muted); }

.form-field input,
.form-field select,
.form-field textarea {
  padding: 11px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  outline: none;
  transition: border-color .15s;
  width: 100%;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(113,61,255,0.15); }
.form-field input::placeholder,
.form-field textarea::placeholder { color: rgba(255,255,255,0.2); }
.form-field select option { background: #1a0a35; }
.form-field textarea { resize: vertical; min-height: 100px; }

.auth-submit {
  padding: 14px;
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-light) 100%);
  color: white;
  border: none;
  border-radius: var(--r-full);
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 0 24px rgba(113,61,255,0.35);
  transition: all .15s;
  margin-top: 4px;
  cursor: pointer;
}
.auth-submit:hover { box-shadow: 0 0 36px rgba(113,61,255,0.55); transform: translateY(-1px); }

.auth-error {
  font-size: 13px;
  color: #fca5a5;
  font-weight: 500;
  min-height: 18px;
}

.auth-link {
  display: block;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 14px;
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--font);
  transition: color .15s;
}
.auth-link:hover { color: var(--purple-light); }

/* Verify step */
.verify-icon { font-size: 48px; margin-bottom: 16px; text-align: center; }
.verify-code-demo {
  background: rgba(113,61,255,0.08);
  border: 1px solid var(--purple-border);
  border-radius: var(--r-md);
  padding: 10px 16px;
  font-size: 13px;
  color: var(--purple-light);
  margin-bottom: 20px;
  text-align: center;
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* Success step */
.success-icon { font-size: 48px; text-align: center; margin-bottom: 16px; }

/* Contact success */
.contact-success { text-align: center; padding: 20px 0; }
.contact-success h3 { font-size: 20px; font-weight: 700; margin: 12px 0 8px; }
.contact-success p { font-size: 14px; color: var(--text-muted); }

/* ---- 27. ACCOUNT DROPDOWN ---- */
.account-dropdown {
  position: fixed;
  top: 68px;
  right: 32px;
  background: #130825;
  border: 1px solid var(--purple-border);
  border-radius: 16px;
  padding: 8px;
  min-width: 260px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 40px rgba(113,61,255,0.1);
  z-index: 500;
  animation: modalIn .2s ease;
}
.account-dropdown-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
}
.account-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  color: white;
  flex-shrink: 0;
}
.account-name { font-size: 14px; font-weight: 700; color: var(--text); }
.account-email { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.account-dropdown-divider { height: 1px; background: var(--border); margin: 4px 0; }
.account-dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 11px 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  background: transparent;
  border: none;
  font-family: var(--font);
  cursor: pointer;
  transition: all .15s;
  text-align: left;
}
.account-dropdown-item:hover { background: rgba(255,255,255,0.05); color: var(--text); }
.account-dropdown-item--danger:hover { background: rgba(239,68,68,0.08); color: #fca5a5; }
.account-badge {
  background: rgba(113,61,255,0.2);
  color: var(--purple-light);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--r-full);
  min-width: 20px;
  text-align: center;
}

/* ---- 28. RESPONSIVE ---- */
@media (max-width: 1024px) {
  .qa-grid { grid-template-columns: repeat(2, 1fr); }
  .how-steps { flex-direction: column; align-items: flex-start; gap: 24px; }
  .how-step { flex-direction: row; text-align: left; align-items: flex-start; padding: 0; }
  .how-step-num { margin-bottom: 0; margin-right: 20px; }
  .how-connector { display: none; }
  .trust-grid { flex-direction: column; gap: 28px; }
  .trust-divider { display: none; }
  .trust-item { padding: 0 !important; }
}

@media (max-width: 768px) {
  .nav-inner { padding: 14px 20px; }
  .hero { padding: 60px 20px 50px; }
  .hero-title { font-size: 36px; letter-spacing: -1px; }
  .hero-sub { font-size: 15px; }
  .hero-stats { gap: 20px; }
  .hero-stat-divider { display: none; }
  .app-inner { padding: 0 20px; }
  .filters-panel { padding: 20px; }
  .size-inputs-row { flex-direction: column; }
  .range-separator-text { display: none; }
  .tv-list { grid-template-columns: 1fr; }
  .hero-sub br { display: none; }
  .section-container { padding: 0 20px; }
  .quick-access-section,
  .how-section,
  .trust-section,
  .faq-section { padding: 60px 0; }
  .qa-grid { grid-template-columns: 1fr; }
  .qa-card-img { height: 160px; }
  .section-sub { margin-bottom: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .modal-box { padding: 28px 20px; }
  .nav-badge { display: none; }
  .account-dropdown { right: 16px; }
  .cookie-banner-inner { flex-direction: column; gap: 20px; }
  .cookie-banner-actions { width: 100%; justify-content: stretch; }
  .cookie-btn-refuse, .cookie-btn-accept { width: 100%; text-align: center; }
}

/* ---- COOKIE BANNER ---- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 9000;
  background: rgba(13,6,32,0.97);
  border-top: 1px solid var(--purple-border);
  backdrop-filter: blur(20px);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.4);
}
.cookie-banner-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px 32px;
  max-width: 900px;
  margin: 0 auto;
}
.cookie-banner-text { width: 100%; }
.cookie-banner-title { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.cookie-banner-sub { font-size: 13px; color: var(--text-muted); line-height: 1.6; }
.cookie-banner-sub a { color: var(--purple-light); border-bottom: 1px solid rgba(159,122,255,0.3); }
.cookie-banner-actions { display: flex; flex-direction: row; gap: 10px; }

.cookie-btn-refuse {
  padding: 10px 20px;
  border-radius: var(--r-full);
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}
.cookie-btn-refuse:hover { border-color: var(--text-muted); color: var(--text); }

.cookie-btn-accept {
  padding: 10px 20px;
  border-radius: var(--r-full);
  border: none;
  background: var(--purple);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(113,61,255,0.4);
  transition: all .2s;
  white-space: nowrap;
}
.cookie-btn-accept:hover { background: var(--purple-light); box-shadow: 0 0 28px rgba(113,61,255,0.6); }

/* ---- COOKIE PREFERENCES (modal) ---- */
.cookie-pref-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.cookie-pref-row:last-of-type { border-bottom: none; }
.cookie-pref-info { flex: 1; }
.cookie-pref-name { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.cookie-pref-desc { font-size: 13px; color: var(--text-muted); line-height: 1.5; }
.cookie-toggle--forced { font-size: 12px; color: var(--value); font-weight: 600; white-space: nowrap; }

/* Toggle switch */
.cookie-toggle-switch { position: relative; display: inline-block; width: 44px; height: 24px; flex-shrink: 0; }
.cookie-toggle-switch input { opacity: 0; width: 0; height: 0; }
.cookie-toggle-track {
  position: absolute; inset: 0;
  background: var(--border-strong);
  border-radius: 9999px;
  cursor: pointer;
  transition: background .25s;
}
.cookie-toggle-track::after {
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  top: 3px; left: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform .25s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.4);
}
.cookie-toggle-switch input:checked + .cookie-toggle-track { background: var(--purple); }
.cookie-toggle-switch input:checked + .cookie-toggle-track::after { transform: translateX(20px); }
