/* ==========================================================================
   Genjeez — Design System  (v2 — Trendy 2026)
   Theme: electric violet + magenta · gradients · blobs · bento
   ========================================================================== */

:root {
  /* Brand — single color theme */
  --primary: #A435F0;
  --primary-dark: #8B22D1;
  --primary-light: #BC65F4;
  --primary-50: #F5EAFF;
  --primary-100: #E5C8FF;
  --primary-500: #A435F0;
  --primary-700: #7C25B5;

  --accent: #A435F0;          /* aliased to primary (single color theme) */
  --accent-light: #A435F0;
  --accent-soft: #F5EAFF;

  --aux: #A435F0;             /* aliased to primary */
  --secondary: #A435F0;       /* aliased to primary */

  /* Gradient vars now resolve to solid primary (single color theme) */
  --gradient-1: #A435F0;
  --gradient-2: #A435F0;
  --gradient-3: #A435F0;
  --gradient-soft: #F5EAFF;

  /* Text */
  --text: #0F0A1F;             /* near-black w/ purple bias */
  --text-muted: #5C566B;
  --text-soft: #8E889E;

  /* Surfaces */
  --bg: #FFFFFF;
  --bg-soft: #FAFAFC;
  --bg-tinted: #F5EFFF;
  --border: #E8E4F0;
  --border-soft: #F0EDF5;

  /* Effects */
  --shadow-sm: 0 1px 2px rgba(15, 10, 31, 0.05);
  --shadow-md: 0 4px 14px rgba(164, 53, 240, 0.08), 0 1px 3px rgba(15, 10, 31, 0.05);
  --shadow-lg: 0 24px 60px rgba(164, 53, 240, 0.18);
  --shadow-glow: 0 12px 40px rgba(164, 53, 240, 0.32);
  --shadow-glow-pink: 0 12px 40px rgba(164, 53, 240, 0.32);

  /* Radii */
  --r-sm: 8px;
  --r: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 9999px;

  /* Spacing */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px;
  --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;

  /* Layout */
  --max-w: 1200px;
  --max-w-narrow: 880px;

  /* Motion */
  --t: 220ms cubic-bezier(.4, 0, .2, 1);
  --t-slow: 600ms cubic-bezier(.4, 0, .2, 1);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px; line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--primary); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--accent); }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }

/* Typography */
h1, h2, h3, h4, h5 {
  color: var(--text);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
}
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); letter-spacing: -0.04em; line-height: 1; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.375rem; line-height: 1.2; font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 700; }

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

.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s-2);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: var(--s-3);
  padding: 6px 14px;
  background: var(--primary-50);
  border-radius: var(--r-pill);
}
.eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gradient-1);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.4); }
}

.lede { font-size: 1.18rem; color: var(--text-muted); max-width: 60ch; line-height: 1.55; }

/* Layout */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--s-5); }
.container-narrow { max-width: var(--max-w-narrow); margin: 0 auto; padding: 0 var(--s-5); }
.section { padding: var(--s-9) 0; }
.section-tight { padding: var(--s-7) 0; }
.section-soft { background: var(--bg-soft); }
.grid { display: grid; gap: var(--s-5); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.flex { display: flex; gap: var(--s-3); }
.flex-between { display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); }
.flex-center { display: flex; align-items: center; gap: var(--s-3); }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ===== Background decorations (blobs, dots) ===== */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}
.blob-purple { background: var(--primary); }
.blob-pink { background: var(--accent); }
.blob-cyan { background: var(--aux); }

.dot-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(164, 53, 240, 0.18) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ===== Header / Nav ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(232, 228, 240, 0.6);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.brand {
  display: flex; align-items: center; gap: var(--s-2);
  font-weight: 800; font-size: 1.18rem; color: var(--text);
  letter-spacing: -0.02em;
}
.brand-mark {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.brand-mark img {
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
}
.nav-links { display: flex; gap: var(--s-5); align-items: center; }
.nav-links a {
  color: var(--text); font-weight: 500; font-size: 0.95rem;
  transition: color var(--t);
}
.nav-links a:hover { color: var(--primary); }
.nav-actions { display: flex; gap: var(--s-3); align-items: center; }

/* Nav dropdown (Insights → Blog / News) */
.nav-dropdown-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  font-family: inherit;
  transition: color var(--t);
}
.nav-dropdown-trigger:hover,
.nav-dropdown-wrap:hover .nav-dropdown-trigger,
.nav-dropdown-wrap:focus-within .nav-dropdown-trigger,
.nav-dropdown-trigger.active {
  color: var(--primary);
}
.nav-caret {
  width: 14px;
  height: 14px;
  transition: transform var(--t);
}
.nav-dropdown-wrap:hover .nav-caret,
.nav-dropdown-wrap:focus-within .nav-caret {
  transform: rotate(180deg);
}
.nav-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  min-width: 180px;
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--r);
  box-shadow: var(--shadow-lg);
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t), transform var(--t), visibility 0s linear var(--t);
  z-index: 60;
}
.nav-dropdown::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}
.nav-dropdown-wrap:hover .nav-dropdown,
.nav-dropdown-wrap:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  transition: opacity var(--t), transform var(--t), visibility 0s;
}
.nav-dropdown a {
  display: block;
  padding: 8px 14px;
  border-radius: var(--r-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: background var(--t), color var(--t);
}
.nav-dropdown a:hover {
  background: var(--primary-50);
  color: var(--primary);
}
.nav-dropdown a.active {
  background: var(--primary-50);
  color: var(--primary);
  font-weight: 600;
}

@media (max-width: 880px) {
  .nav-links { display: none; }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  padding: 12px 22px;
  font-weight: 600; font-size: 0.95rem;
  border-radius: var(--r-pill);
  transition: transform var(--t), box-shadow var(--t), background var(--t), color var(--t), opacity var(--t);
  white-space: nowrap;
  cursor: pointer;
  position: relative;
}
.btn-primary {
  background: var(--gradient-1);
  color: #fff;
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 18px 50px rgba(164, 53, 240, 0.45);
}
.btn-secondary {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  border-color: var(--primary); color: var(--primary);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent; color: var(--text); padding: 10px 18px;
}
.btn-ghost:hover { color: var(--primary); background: var(--bg-tinted); }
.btn-sm { padding: 8px 16px; font-size: 0.875rem; }
.btn-lg { padding: 16px 30px; font-size: 1.05rem; }

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: var(--s-9) 0 var(--s-7);
  overflow: hidden;
  text-align: center;
  isolation: isolate;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  overflow: hidden;
  background: var(--bg);
}
.hero-bg .blob { opacity: 0.45; }
.hero-bg .blob-1 {
  width: 480px; height: 480px;
  top: -100px; left: -120px;
  background: var(--primary);
}
.hero-bg .blob-2 {
  width: 420px; height: 420px;
  top: 50px; right: -100px;
  background: var(--accent);
}
.hero-bg .blob-3 {
  width: 360px; height: 360px;
  bottom: -100px; left: 30%;
  background: var(--aux);
  opacity: 0.3;
}
.hero h1 { margin-bottom: var(--s-4); max-width: 18ch; margin-left: auto; margin-right: auto; }
.hero .lede { margin: 0 auto var(--s-5); }
.hero-actions { display: flex; gap: var(--s-3); justify-content: center; margin-top: var(--s-5); flex-wrap: wrap; }

.hero-search {
  margin: var(--s-5) auto 0;
  max-width: 580px;
  display: flex;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 6px 6px 6px 22px;
  box-shadow: var(--shadow-lg);
  gap: var(--s-2);
}
.hero-search input {
  flex: 1;
  border: none; background: transparent; outline: none;
  font-size: 1rem;
  padding: 12px 8px;
}
.hero-search input::placeholder { color: var(--text-soft); }

.hero-stats {
  display: flex; gap: var(--s-7); justify-content: center;
  margin-top: var(--s-7);
  flex-wrap: wrap;
}
.hero-stat strong {
  display: block;
  background: var(--gradient-1);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 1.75rem; font-weight: 800;
}
.hero-stat span { font-size: 0.875rem; color: var(--text-muted); }

/* ===== Hero mockup (floating dashboard preview) ===== */
.hero-mockup-wrap {
  position: relative;
  margin-top: var(--s-8);
  padding: 0 var(--s-3);
  perspective: 1800px;
}
.hero-mockup {
  background: var(--bg);
  border-radius: var(--r-xl);
  border: 1px solid var(--border-soft);
  padding: var(--s-3);
  box-shadow: var(--shadow-lg), 0 50px 80px -20px rgba(164, 53, 240, 0.25);
  transform: rotateX(8deg);
  transform-origin: center top;
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
}
.mock-bar {
  display: flex; align-items: center; gap: var(--s-2);
  padding: var(--s-3) var(--s-3) var(--s-3) var(--s-4);
  border-bottom: 1px solid var(--border-soft);
}
.mock-dots { display: flex; gap: 6px; }
.mock-dots span {
  width: 11px; height: 11px; border-radius: 50%;
  background: #E8E4F0;
}
.mock-dots span:nth-child(1) { background: #FF6B6B; }
.mock-dots span:nth-child(2) { background: #FFD93D; }
.mock-dots span:nth-child(3) { background: #6BCB77; }
.mock-url {
  flex: 1;
  background: var(--bg-tinted);
  border-radius: var(--r-pill);
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 6px 14px;
  text-align: center;
  font-family: 'SF Mono', Menlo, Consolas, monospace;
}
.mock-content {
  padding: var(--s-5);
  background: var(--bg);
  border-bottom-left-radius: var(--r-lg);
  border-bottom-right-radius: var(--r-lg);
  text-align: left;
}
.mock-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3);
}
.mock-card {
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--r);
  padding: var(--s-4);
  display: flex; flex-direction: column; gap: var(--s-2);
}
.mock-card-head { display: flex; gap: 10px; align-items: center; }
.mock-logo {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--gradient-1);
  display: grid; place-items: center;
  color: #fff; font-weight: 700; font-size: 0.85rem;
  flex-shrink: 0;
}
.mock-logo.alt-1 { background: linear-gradient(135deg, #FF2DAA, #00C2FF); }
.mock-logo.alt-2 { background: linear-gradient(135deg, #00C2FF, #7F00FF); }
.mock-card strong { font-size: 0.9rem; display: block; color: var(--text); }
.mock-card span.tag-mini { font-size: 0.7rem; color: var(--text-muted); }
.mock-line {
  height: 6px; border-radius: 3px;
  background: var(--border-soft);
}
.mock-line.short { width: 60%; }
.mock-line.mid { width: 80%; }
.mock-pill {
  display: inline-block;
  font-size: 0.65rem; padding: 2px 8px;
  border-radius: var(--r-pill);
  background: var(--primary-50);
  color: var(--primary);
  font-weight: 600;
}

@media (max-width: 760px) {
  .mock-grid { grid-template-columns: 1fr; }
  .hero-mockup { transform: none; }
}

/* ===== Floating decorations around hero mockup ===== */
.float-deco {
  position: absolute;
  background: var(--bg);
  border-radius: var(--r);
  padding: 10px 14px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-soft);
  display: flex; align-items: center; gap: var(--s-2);
  font-size: 0.85rem; font-weight: 600;
  color: var(--text);
  z-index: 2;
  animation: float 6s ease-in-out infinite;
}
.float-deco strong { color: var(--primary); font-weight: 800; }
.float-deco .deco-ico {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--gradient-1);
  display: grid; place-items: center;
  color: #fff; font-size: 0.8rem; font-weight: 800;
  flex-shrink: 0;
}
.float-deco .deco-ico.alt-1 { background: linear-gradient(135deg, #FF2DAA, #00C2FF); }
.float-deco .deco-ico.alt-2 { background: linear-gradient(135deg, #00C2FF, #7F00FF); }
.float-deco .deco-ico.alt-3 { background: linear-gradient(135deg, #FFA940, #FF2DAA); }
.float-deco .deco-ico.alt-4 { background: linear-gradient(135deg, #4ADE80, #00C2FF); }

.float-1 { top: 8%;  left: -4%;   transform: rotate(-6deg); animation-delay: 0s; }
.float-2 { top: 22%; right: -2%;  transform: rotate(5deg);  animation-delay: 1.5s; }
.float-3 { bottom: 18%; left: 2%; transform: rotate(4deg);  animation-delay: 3s; }
.float-4 { bottom: 4%; right: 4%; transform: rotate(-5deg); animation-delay: 2s; }
.float-5 { top: 50%; left: -7%;   transform: rotate(-3deg); animation-delay: 4s; }

@media (max-width: 880px) {
  .float-deco { display: none; }
}

/* SVG sparkles */
.sparkle {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  animation: sparkle 3s ease-in-out infinite;
}
.sparkle-1 { top: 4%; left: 14%; animation-delay: 0s; }
.sparkle-2 { top: 12%; right: 18%; animation-delay: 1s; }
.sparkle-3 { bottom: 20%; left: 18%; animation-delay: 0.5s; }
.sparkle-4 { bottom: 30%; right: 12%; animation-delay: 1.5s; }
.sparkle-5 { top: 60%; right: 28%; animation-delay: 2s; }

@keyframes sparkle {
  0%, 100% { opacity: 0.3; transform: scale(0.8) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.1) rotate(180deg); }
}

/* ===== Realistic UI illustration (used in galleries / mockups) ===== */
.ui-illustration {
  width: 100%; height: 100%;
  background: var(--bg);
  border-radius: var(--r);
  position: relative;
  overflow: hidden;
  display: flex; flex-direction: column;
}
.ui-illustration::before {
  content: '';
  position: absolute;
  width: 60%; height: 60%;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  background: var(--gradient-1);
  top: -20%; right: -20%;
  z-index: 0;
}
.ui-illustration .ui-topbar {
  display: flex; align-items: center; gap: var(--s-2);
  padding: 8px 12px;
  border-bottom: 1px solid var(--border-soft);
  background: var(--bg);
  position: relative; z-index: 1;
}
.ui-illustration .ui-topbar .ui-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #E0DCEA;
}
.ui-illustration .ui-topbar .ui-search {
  flex: 1; height: 22px; border-radius: var(--r-pill);
  background: var(--bg-tinted);
}
.ui-illustration .ui-body {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 10px;
  padding: 12px;
  flex: 1;
  position: relative; z-index: 1;
}
.ui-illustration .ui-side {
  display: flex; flex-direction: column; gap: 6px;
}
.ui-illustration .ui-side .ui-nav-item {
  height: 18px; border-radius: 6px;
  background: var(--border-soft);
}
.ui-illustration .ui-side .ui-nav-item.active {
  background: var(--gradient-1); opacity: 0.8;
}
.ui-illustration .ui-main {
  display: grid; gap: 8px;
}
.ui-illustration .ui-row {
  display: flex; gap: 8px;
}
.ui-illustration .ui-card-mini {
  flex: 1; height: 56px;
  border-radius: 8px;
  background: var(--bg);
  border: 1px solid var(--border-soft);
  padding: 8px;
  display: flex; flex-direction: column; gap: 4px;
  box-shadow: var(--shadow-sm);
}
.ui-illustration .ui-card-mini .ui-bar {
  height: 6px; border-radius: 3px;
  background: var(--primary);
  width: 70%;
}
.ui-illustration .ui-card-mini .ui-bar.short {
  width: 40%; background: var(--border);
}
.ui-illustration .ui-stat {
  flex: 1; height: 56px;
  border-radius: 8px;
  background: var(--gradient-1);
  color: #fff;
  display: flex; flex-direction: column; justify-content: center;
  padding: 8px;
}
.ui-illustration .ui-stat span { font-size: 0.65rem; opacity: 0.8; }
.ui-illustration .ui-stat strong { font-size: 0.95rem; font-weight: 800; }
.ui-illustration .ui-chart {
  height: 60px;
  border-radius: 8px;
  background: var(--bg);
  border: 1px solid var(--border-soft);
  position: relative;
  overflow: hidden;
  padding: 8px;
}
.ui-illustration .ui-chart svg { width: 100%; height: 100%; }

/* ===== Logo strip ===== */
.logo-strip {
  padding: var(--s-6) 0;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  background: var(--bg-soft);
}
.logo-strip-label {
  text-align: center;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-soft);
  margin-bottom: var(--s-4);
}
.logo-row {
  display: flex; flex-wrap: wrap;
  justify-content: center; align-items: center;
  gap: var(--s-7);
}
.logo-row .logo-item {
  font-weight: 800; font-size: 1.1rem;
  color: var(--text-muted);
  opacity: 0.6;
  letter-spacing: -0.02em;
  transition: opacity var(--t);
}
.logo-row .logo-item:hover { opacity: 1; }
.logo-row .logo-item.alt-1 { font-family: 'Georgia', serif; font-style: italic; }
.logo-row .logo-item.alt-2 { font-family: 'SF Mono', monospace; font-weight: 600; }
.logo-row .logo-item.alt-3 { letter-spacing: 0.2em; font-weight: 600; }

/* ===== Cards ===== */
.card {
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
  position: relative;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(164, 53, 240, 0.25);
  box-shadow: var(--shadow-lg);
}

.product-card {
  display: flex; flex-direction: column;
  gap: var(--s-3);
}
.product-card-preview {
  margin: calc(var(--s-5) * -1) calc(var(--s-5) * -1) var(--s-2) calc(var(--s-5) * -1);
  height: 132px;
  background: var(--gradient-soft);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-soft);
}
.product-card-preview::before {
  content: '';
  position: absolute;
  width: 200px; height: 200px;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.55;
  background: var(--primary);
  top: -60px; left: 30%;
}
.product-card-preview::after {
  content: '';
  position: absolute;
  width: 180px; height: 180px;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.45;
  background: var(--accent);
  bottom: -60px; right: 20%;
}
.product-card-preview.gradient-1 { background: var(--gradient-soft); }
.product-card-preview.gradient-2 { background: var(--primary-50); }
.product-card-preview.gradient-2::before { background: var(--accent); }
.product-card-preview.gradient-2::after { background: var(--aux); }
.product-card-preview.gradient-3 { background: var(--primary-50); }
.product-card-preview.gradient-3::before { background: var(--aux); }
.product-card-preview.gradient-3::after { background: var(--primary); }
.product-card-preview.gradient-4 { background: var(--primary-50); }
.product-card-preview.gradient-4::before { background: #FFA940; }
.product-card-preview.gradient-4::after { background: var(--accent); }
.product-card-preview.gradient-5 { background: var(--primary-50); }
.product-card-preview.gradient-5::before { background: #4ADE80; }
.product-card-preview.gradient-5::after { background: var(--aux); }

.product-card-head { display: flex; gap: var(--s-3); align-items: flex-start; }
.product-logo {
  width: 52px; height: 52px;
  border-radius: var(--r);
  background: var(--gradient-1);
  display: grid; place-items: center;
  font-weight: 800; color: #fff; font-size: 1.1rem;
  flex-shrink: 0;
  box-shadow: var(--shadow-md);
}
.product-logo.alt-1 { background: linear-gradient(135deg, #FF2DAA, #00C2FF); }
.product-logo.alt-2 { background: linear-gradient(135deg, #00C2FF, #7F00FF); }
.product-logo.alt-3 { background: linear-gradient(135deg, #FFA940, #FF2DAA); }
.product-logo.alt-4 { background: linear-gradient(135deg, #4ADE80, #00C2FF); }
.product-logo.alt-5 { background: linear-gradient(135deg, #7F00FF, #FFA940); }
.product-card h3 { font-size: 1.125rem; color: var(--text); margin-bottom: 2px; }
.product-tagline { color: var(--text-muted); font-size: 0.9rem; }
.product-card p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.55; }
.product-meta {
  display: flex; gap: var(--s-3); align-items: center; flex-wrap: wrap;
  margin-top: auto; padding-top: var(--s-3);
  border-top: 1px solid var(--border-soft);
  font-size: 0.85rem;
  color: var(--text-muted);
}
.product-meta strong { color: var(--text); font-weight: 700; }

/* ===== Pills / tags ===== */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px;
  border-radius: var(--r-pill);
  font-size: 0.78rem; font-weight: 600;
  background: var(--primary-50); color: var(--primary);
}
.pill-success { background: #E5F8EC; color: #047857; }
.pill-paid { background: #FFF4D6; color: #92400E; }
.pill-free { background: var(--primary-50); color: var(--primary); }
.pill-error { background: #FEE2E2; color: #B91C1C; }
.pill-trend {
  background: var(--gradient-1);
  color: #fff;
}

/* ===== Category grid (now with SVG icons) ===== */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--s-3);
}
.cat-tile {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: var(--s-2);
  padding: var(--s-5);
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  transition: all var(--t);
  color: var(--text);
  position: relative;
  overflow: hidden;
}
.cat-tile::after {
  content: '';
  position: absolute;
  width: 120px; height: 120px;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0;
  background: var(--primary);
  top: -40px; right: -40px;
  transition: opacity var(--t);
}
.cat-tile:hover {
  border-color: rgba(164, 53, 240, 0.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.cat-tile:hover::after { opacity: 0.25; }
.cat-tile:hover .cat-icon { transform: scale(1.06) rotate(-4deg); }
.cat-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--gradient-1);
  display: grid; place-items: center;
  color: #fff;
  margin-bottom: var(--s-1);
  position: relative; z-index: 1;
  box-shadow: var(--shadow-md);
  transition: transform var(--t);
}
.cat-icon svg { width: 22px; height: 22px; stroke: #fff; }
.cat-icon.alt-1 { background: linear-gradient(135deg, #FF2DAA, #00C2FF); }
.cat-icon.alt-2 { background: linear-gradient(135deg, #00C2FF, #7F00FF); }
.cat-icon.alt-3 { background: linear-gradient(135deg, #FFA940, #FF2DAA); }
.cat-icon.alt-4 { background: linear-gradient(135deg, #4ADE80, #00C2FF); }
.cat-icon.alt-5 { background: linear-gradient(135deg, #7F00FF, #FFA940); }
.cat-name { font-weight: 700; font-size: 0.95rem; position: relative; z-index: 1; }
.cat-count { font-size: 0.78rem; color: var(--text-muted); position: relative; z-index: 1; }

/* ===== Section heading ===== */
.section-head {
  display: flex; justify-content: space-between; align-items: end;
  flex-wrap: wrap; gap: var(--s-3);
  margin-bottom: var(--s-6);
}
.section-head h2 { margin-bottom: var(--s-2); }
.section-head p { color: var(--text-muted); }
.section-head a { font-weight: 600; }

/* ===== Bento feature grid ===== */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 220px;
  gap: var(--s-4);
}
.bento-item {
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  position: relative;
  overflow: hidden;
  display: flex; flex-direction: column;
  justify-content: flex-end;
  transition: transform var(--t), box-shadow var(--t);
}
.bento-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.bento-item h3 { color: var(--text); margin-bottom: var(--s-2); position: relative; z-index: 1; font-size: 1.25rem; }
.bento-item p { color: var(--text-muted); font-size: 0.95rem; position: relative; z-index: 1; }
.bento-deco {
  position: absolute; pointer-events: none;
}
.bento-1 { grid-column: span 4; background: var(--primary-50); }
.bento-1 .bento-deco {
  width: 320px; height: 320px;
  top: -80px; right: -80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(164, 53, 240, 0.4) 0%, transparent 70%);
  filter: blur(20px);
}
.bento-2 { grid-column: span 2; background: var(--primary); color: #fff; }
.bento-2 h3, .bento-2 p { color: #fff; }
.bento-2 p { color: rgba(255,255,255,0.8); }
.bento-2 .bento-deco {
  width: 200px; height: 200px;
  bottom: -60px; left: -60px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(164, 53, 240, 0.5) 0%, transparent 70%);
}
.bento-3 { grid-column: span 2; background: var(--primary); color: #fff; }
.bento-3 h3, .bento-3 p { color: #fff; }
.bento-3 p { color: rgba(255,255,255,0.85); }
.bento-4 { grid-column: span 4; background: var(--primary-50); }
.bento-4 .bento-deco {
  width: 280px; height: 280px;
  top: -80px; right: -60px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(164, 53, 240, 0.4) 0%, transparent 70%);
  filter: blur(20px);
}

@media (max-width: 880px) {
  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .bento-1, .bento-2, .bento-3, .bento-4 { grid-column: span 2; }
}

/* ===== How it works ===== */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--s-5); }
.step { padding: 0; position: relative; overflow: hidden; }
.step-illus {
  height: 180px;
  position: relative;
  overflow: hidden;
}
.step-illus.bg-1 { background: var(--primary-50); }
.step-illus.bg-2 { background: var(--primary-50); }
.step-illus.bg-3 { background: var(--primary-50); }
.step-illus svg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
}
.step-content {
  padding: var(--s-5);
}
.step-num {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--gradient-1);
  color: #fff;
  display: grid; place-items: center;
  font-weight: 800; font-size: 1rem;
  margin-bottom: var(--s-3);
  box-shadow: var(--shadow-glow);
}
.step h3 { font-size: 1.18rem; margin-bottom: var(--s-2); }
.step p { color: var(--text-muted); }

/* ===== CTA banner ===== */
.cta-banner {
  background: var(--gradient-1);
  color: #fff;
  border-radius: var(--r-xl);
  padding: var(--s-8) var(--s-6);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.18), transparent 50%);
}
.cta-banner > * { position: relative; }
.cta-banner h2 { color: #fff; margin-bottom: var(--s-3); }
.cta-banner .lede,
.cta-banner p { color: rgba(255,255,255,0.9); max-width: 50ch; margin: 0 auto var(--s-5); }
.cta-banner .eyebrow {
  background: rgba(255,255,255,0.2);
  color: #fff;
}
.cta-banner .eyebrow::before { background: #fff; }
.cta-banner .btn-primary {
  background: #fff; color: var(--primary);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}
.cta-banner .btn-primary:hover { background: var(--bg-soft); color: var(--primary-dark); }

/* ===== Footer ===== */
.footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--border-soft);
  padding: var(--s-7) 0 var(--s-5);
  margin-top: var(--s-8);
}

/* Newsletter signup (sits above .footer-grid) */
.footer-newsletter {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-7);
  align-items: center;
  padding-bottom: var(--s-6);
  margin-bottom: var(--s-6);
  border-bottom: 1px solid var(--border-soft);
}
@media (max-width: 760px) {
  .footer-newsletter { grid-template-columns: 1fr; gap: var(--s-4); }
}
.footer-newsletter h4 {
  font-size: 1.5rem;
  margin-bottom: var(--s-2);
  color: var(--text);
}
.footer-newsletter > div:first-child > p {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 42ch;
  margin: 0;
}
.footer-newsletter form {
  display: flex;
  gap: 6px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 6px 6px 6px 20px;
  box-shadow: var(--shadow-sm);
  align-items: center;
  transition: border-color var(--t), box-shadow var(--t);
}
.footer-newsletter form:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(164, 53, 240, 0.12);
}
.footer-newsletter input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.95rem;
  padding: 10px 8px 10px 0;
  min-width: 0;
}
.footer-newsletter input::placeholder { color: var(--text-soft); }
.footer-newsletter .privacy-note {
  font-size: 0.78rem;
  color: var(--text-soft);
  margin: 8px 0 0;
}
.footer-newsletter .privacy-note a { color: var(--text-muted); text-decoration: underline; text-underline-offset: 2px; }
.footer-newsletter .privacy-note a:hover { color: var(--primary); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: var(--s-6);
}
.footer-col h5 {
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--text-muted); margin-bottom: var(--s-3); font-weight: 700;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: var(--s-2); }
.footer-col a { color: var(--text); font-size: 0.95rem; }
.footer-col a:hover { color: var(--primary); }
.footer p { color: var(--text-muted); font-size: 0.9rem; margin-top: var(--s-2); }
.footer-bottom {
  border-top: 1px solid var(--border-soft);
  margin-top: var(--s-6); padding-top: var(--s-4);
  display: flex; justify-content: space-between; flex-wrap: wrap;
  font-size: 0.85rem; color: var(--text-muted);
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ===== Filters / listing page ===== */
.listing-layout {
  display: grid; grid-template-columns: 260px 1fr;
  gap: var(--s-6);
}
@media (max-width: 880px) {
  .listing-layout { grid-template-columns: 1fr; }
}
.filters {
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  height: fit-content;
  position: sticky; top: 96px;
}
.filter-group { margin-bottom: var(--s-5); }
.filter-group:last-child { margin-bottom: 0; }
.filter-group h5 {
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-muted); font-weight: 700;
  margin-bottom: var(--s-3);
}
.filter-list { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.filter-list label {
  display: flex; align-items: center; gap: var(--s-2);
  padding: 6px 8px; border-radius: var(--r-sm);
  cursor: pointer; font-size: 0.93rem;
  transition: background var(--t);
}
.filter-list label:hover { background: var(--bg-soft); }
.filter-list input[type="checkbox"] { accent-color: var(--primary); }

.listing-toolbar {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: var(--s-5); gap: var(--s-3); flex-wrap: wrap;
}
.listing-toolbar select {
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--bg);
  font-size: 0.9rem;
}

/* ===== Forms ===== */
.form-card {
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  padding: var(--s-7);
  box-shadow: var(--shadow-md);
}
.form-section { margin-bottom: var(--s-7); }
.form-section:last-child { margin-bottom: 0; }
.form-section h3 {
  margin-bottom: var(--s-2);
  font-size: 1.25rem;
}
.form-section > p {
  color: var(--text-muted);
  margin-bottom: var(--s-4);
}
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--s-4); }
.field label {
  font-weight: 600; font-size: 0.9rem; color: var(--text);
}
.field label .req { color: var(--accent); }
.field .hint { font-size: 0.825rem; color: var(--text-muted); }
.field input:not([type="checkbox"]):not([type="radio"]),
.field textarea,
.field select {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--bg);
  font-size: 0.95rem;
  font-family: inherit;
  width: 100%;
  min-width: 0;
  transition: border-color var(--t), box-shadow var(--t);
}
.field input:not([type="checkbox"]):not([type="radio"]):focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(164, 53, 240, 0.12);
}

/* Checkbox row (terms / agreement) */
.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 400;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
  cursor: pointer;
}
.checkbox-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  flex-shrink: 0;
  accent-color: var(--primary);
  cursor: pointer;
}
.checkbox-row a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}
.checkbox-row a:hover { text-decoration: underline; }
.field textarea { resize: vertical; min-height: 120px; font-family: inherit; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
.field-row > .field { min-width: 0; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }

.tier-select { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
.tier-card {
  border: 2px solid var(--border);
  border-radius: var(--r);
  padding: var(--s-4);
  cursor: pointer;
  transition: border-color var(--t), background var(--t);
  position: relative;
}
.tier-card:has(input:checked) {
  border-color: var(--primary);
  background: var(--bg-tinted);
}
.tier-card input { display: none; }
.tier-card h4 { color: var(--text); margin-bottom: var(--s-1); }
.tier-card .price {
  font-size: 1.5rem; font-weight: 800;
  background: var(--gradient-1);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: var(--s-2);
}
.tier-card ul { list-style: none; font-size: 0.875rem; color: var(--text-muted); }
.tier-card ul li { padding: 2px 0; }
.tier-card ul li::before { content: "✓ "; color: var(--primary); font-weight: 700; }
@media (max-width: 600px) { .tier-select { grid-template-columns: 1fr; } }

/* ===== Product detail ===== */
.product-hero {
  display: grid; grid-template-columns: 1fr 320px;
  gap: var(--s-7); align-items: flex-start;
  padding: var(--s-7) 0;
}
@media (max-width: 880px) { .product-hero { grid-template-columns: 1fr; } }
.product-hero-head { display: flex; gap: var(--s-4); align-items: center; margin-bottom: var(--s-4); }
.product-hero-logo {
  width: 92px; height: 92px;
  border-radius: var(--r-lg);
  background: var(--gradient-1);
  display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: 2rem;
  box-shadow: var(--shadow-glow);
  position: relative;
  overflow: hidden;
}
.product-hero-logo::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.4), transparent 60%);
}
.product-hero h1 { font-size: 2.5rem; margin-bottom: 4px; }
.product-hero .lede { font-size: 1.05rem; }

.product-side {
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  box-shadow: var(--shadow-md);
}
.product-side h4 {
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-muted); font-weight: 700; margin-bottom: var(--s-3);
}
.product-side dl { display: grid; grid-template-columns: auto 1fr; gap: 10px var(--s-4); margin-bottom: var(--s-4); font-size: 0.9rem; }
.product-side dt { color: var(--text-muted); }
.product-side dd { color: var(--text); font-weight: 600; }
.product-side .btn { width: 100%; }

.feature-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-2) var(--s-4);
  padding: 0;
}
@media (max-width: 900px) { .feature-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .feature-list { grid-template-columns: 1fr; } }
.feature-list li {
  display: flex; gap: var(--s-3); align-items: flex-start;
  padding: var(--s-2) 0;
}
.feature-list li::before {
  content: '✓';
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--gradient-1);
  color: #fff;
  display: grid; place-items: center;
  font-size: 0.7rem; font-weight: 800;
  flex-shrink: 0;
  margin-top: 3px;
}

.gallery {
  display: grid; grid-template-columns: 2fr 1fr; gap: var(--s-3);
  margin: var(--s-5) 0;
}
.gallery-thumb {
  position: relative;
  background: var(--gradient-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--r);
  aspect-ratio: 16/9;
  display: grid; place-items: center;
  color: var(--text-muted);
  font-size: 0.9rem; font-weight: 600;
  overflow: hidden;
}
.gallery-thumb::before {
  content: '';
  position: absolute;
  width: 200px; height: 200px;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.6;
  background: var(--primary);
  top: -40px; left: 30%;
}
.gallery-thumb::after {
  content: '';
  position: absolute;
  width: 180px; height: 180px;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
  background: var(--accent);
  bottom: -40px; right: 20%;
}
.gallery-thumb span { position: relative; z-index: 1; background: rgba(255,255,255,0.6); padding: 6px 14px; border-radius: var(--r-pill); backdrop-filter: blur(6px); }
.gallery-thumb.small { aspect-ratio: 16/9; }
.gallery-thumb.small.alt-1 { background: var(--primary-50); }
.gallery-thumb.small.alt-1::before { background: var(--aux); }
.gallery-thumb.small.alt-1::after { background: var(--accent); }
.gallery-thumb.small.alt-2 { background: var(--primary-50); }
.gallery-thumb.small.alt-2::before { background: var(--accent); }
.gallery-thumb.small.alt-2::after { background: #FFA940; }
.gallery .col { display: grid; gap: var(--s-3); }

/* ===== Comparison ===== */
.compare-pickers { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3); margin-bottom: var(--s-6); }
@media (max-width: 760px) { .compare-pickers { grid-template-columns: 1fr; } }
.compare-picker {
  border: 2px dashed var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  text-align: center;
  background: var(--bg-soft);
  transition: border-color var(--t);
}
.compare-picker.filled {
  border-style: solid;
  background: var(--bg);
  border-color: var(--border-soft);
  text-align: left;
}
.compare-picker h4 { color: var(--text); margin-bottom: var(--s-1); }
.compare-picker .btn { width: 100%; }

.compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--bg);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.compare-table th, .compare-table td {
  padding: var(--s-4);
  text-align: left;
  border-bottom: 1px solid var(--border-soft);
  font-size: 0.95rem;
}
.compare-table thead th {
  background: var(--bg-tinted);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.compare-table tbody th {
  background: var(--bg-soft);
  color: var(--text-muted);
  font-weight: 500;
  width: 220px;
}
.compare-table tr:last-child td,
.compare-table tr:last-child th { border-bottom: none; }

/* ===== Reviews ===== */
.review { padding: var(--s-5) 0; border-bottom: 1px solid var(--border-soft); }
.review:last-child { border-bottom: none; }
.review-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: var(--s-2); flex-wrap: wrap; gap: var(--s-2); }
.review-author { display: flex; gap: var(--s-3); align-items: center; }
.review-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--gradient-1);
  color: #fff; display: grid; place-items: center;
  font-weight: 700; font-size: 0.95rem;
}
.review-avatar.alt-1 { background: linear-gradient(135deg, #FF2DAA, #00C2FF); }
.review-avatar.alt-2 { background: linear-gradient(135deg, #00C2FF, #7F00FF); }
.review-author strong { display: block; color: var(--text); font-size: 0.95rem; }
.review-author span { font-size: 0.825rem; color: var(--text-muted); }
.stars { color: #F59E0B; font-size: 0.95rem; letter-spacing: 1px; }

/* ===== Blog ===== */
.blog-card {
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform var(--t), box-shadow var(--t);
  display: flex; flex-direction: column;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.blog-cover {
  aspect-ratio: 16/9;
  background: var(--gradient-1);
  position: relative;
  overflow: hidden;
}
.blog-cover::before {
  content: '';
  position: absolute;
  width: 250px; height: 250px;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.7;
  background: var(--accent);
  top: -60px; right: -60px;
}
.blog-cover::after {
  content: '';
  position: absolute;
  width: 220px; height: 220px;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
  background: var(--aux);
  bottom: -60px; left: -60px;
}
.blog-body { padding: var(--s-5); flex: 1; display: flex; flex-direction: column; gap: var(--s-2); }
.blog-meta { font-size: 0.825rem; color: var(--text-muted); }
.blog-card h3 { font-size: 1.15rem; }
.blog-card p { color: var(--text-muted); font-size: 0.95rem; flex: 1; }

/* ===== Coming soon ===== */
.coming-soon {
  text-align: center;
  padding: var(--s-9) var(--s-5);
}
.coming-soon h1 { margin-bottom: var(--s-4); }
.coming-soon p { font-size: 1.125rem; color: var(--text-muted); max-width: 50ch; margin: 0 auto var(--s-5); }

/* ===== Misc ===== */
.divider { height: 1px; background: var(--border-soft); margin: var(--s-6) 0; }
.tag-row { display: flex; gap: var(--s-2); flex-wrap: wrap; }

/* ==========================================================================
   About / Contact / FAQ / Blog post / 404 / Legal pages
   ========================================================================== */

/* Section hero (used by about, contact, faq, legal, etc.) */
.page-hero {
  position: relative;
  padding: var(--s-9) 0 var(--s-7);
  overflow: hidden;
  text-align: center;
  background: var(--bg-tinted);
}
.page-hero::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.3;
  background: var(--primary);
  top: -200px; right: -100px;
  z-index: 0;
}
.page-hero > * { position: relative; z-index: 1; }
.page-hero h1 { max-width: 18ch; margin: 0 auto var(--s-4); }
.page-hero .lede { margin: 0 auto; }

/* About page */
.about-belief {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--s-5);
}
.belief-card {
  padding: var(--s-5);
  border-left: 3px solid var(--primary);
  background: var(--bg);
  border-radius: 0 var(--r) var(--r) 0;
}
.belief-card h3 { font-size: 1.15rem; margin-bottom: var(--s-2); }
.belief-card p { color: var(--text-muted); font-size: 0.95rem; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--s-5);
}
.team-card {
  text-align: center;
  padding: var(--s-5);
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  transition: transform var(--t), box-shadow var(--t);
}
.team-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.team-card-link { display: block; text-decoration: none; color: inherit; }
.team-card-link:hover { border-color: var(--primary); }
.team-avatar {
  width: 88px; height: 88px;
  border-radius: 50%;
  background: var(--primary);
  margin: 0 auto var(--s-3);
  display: grid; place-items: center;
  color: #fff; font-weight: 700; font-size: 1.5rem;
}
.team-card h4 { font-size: 1.05rem; margin-bottom: 4px; }
.team-card .role { color: var(--text-muted); font-size: 0.875rem; margin-bottom: var(--s-3); }
.team-card .bio { color: var(--text-muted); font-size: 0.875rem; line-height: 1.5; margin-bottom: var(--s-3); }
.team-card .socials { display: flex; gap: var(--s-2); justify-content: center; }
.team-card .socials a {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--text-muted);
  display: grid; place-items: center;
  transition: all var(--t);
}
.team-card .socials a:hover { background: var(--primary); color: #fff; }
.team-card .socials svg { width: 14px; height: 14px; }

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--s-7);
  align-items: flex-start;
}
@media (max-width: 880px) {
  .contact-grid { grid-template-columns: 1fr; }
}
.contact-info {
  display: grid; gap: var(--s-4);
}
.contact-info-card {
  padding: var(--s-5);
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  transition: border-color var(--t);
}
.contact-info-card:hover { border-color: rgba(164, 53, 240, 0.3); }
.contact-info-card .ico {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--primary-50);
  color: var(--primary);
  display: grid; place-items: center;
  margin-bottom: var(--s-3);
}
.contact-info-card .ico svg { width: 18px; height: 18px; }
.contact-info-card h4 { font-size: 1rem; margin-bottom: 4px; }
.contact-info-card p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: var(--s-2); }
.contact-info-card a { font-weight: 600; font-size: 0.9rem; }

/* FAQ page */
.faq-categories {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: var(--s-7);
  align-items: flex-start;
}
@media (max-width: 880px) {
  .faq-categories { grid-template-columns: 1fr; }
}
.faq-toc {
  position: sticky; top: 92px;
  display: flex; flex-direction: column; gap: 2px;
}
@media (max-width: 880px) {
  .faq-toc { position: static; flex-direction: row; flex-wrap: wrap; gap: var(--s-2); }
}
.faq-toc a {
  padding: 10px 14px;
  border-radius: var(--r);
  color: var(--text-muted);
  font-weight: 500; font-size: 0.93rem;
  transition: all var(--t);
}
.faq-toc a:hover { background: var(--bg-soft); color: var(--text); }
.faq-toc a.active { background: var(--primary-50); color: var(--primary); font-weight: 600; }
.faq-section { margin-bottom: var(--s-8); scroll-margin-top: 90px; }
.faq-section:last-child { margin-bottom: 0; }
.faq-section h2 { font-size: 1.5rem; margin-bottom: var(--s-4); }

/* Article (single blog post) */
.article-shell {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 var(--s-5);
}
.article-meta {
  display: flex; gap: var(--s-3); align-items: center;
  font-size: 0.875rem; color: var(--text-muted);
  flex-wrap: wrap;
  margin-bottom: var(--s-4);
}
.article-meta .pill { background: var(--primary-50); color: var(--primary); }
.article-meta .author-mini {
  display: flex; align-items: center; gap: var(--s-2);
}
.article-meta .author-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: grid; place-items: center;
  font-weight: 700; font-size: 0.7rem;
}
.article-header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: var(--s-4);
}
.article-cover {
  aspect-ratio: 16 / 8;
  background: var(--primary);
  border-radius: var(--r-lg);
  margin: var(--s-6) 0;
  position: relative;
  overflow: hidden;
}
.article-cover::before {
  content: '';
  position: absolute;
  width: 60%; height: 80%;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  background: var(--bg);
  top: 10%; left: 20%;
}

/* Real photo cover for news articles */
.article-news-cover {
  aspect-ratio: 16 / 8;
  border-radius: var(--r-lg);
  margin: var(--s-6) 0;
  overflow: hidden;
  border: 1px solid var(--border-soft);
}
.article-news-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.article-prose {
  font-size: 1.075rem;
  line-height: 1.75;
  color: var(--text);
}
.article-prose > * + * { margin-top: var(--s-4); }
.article-prose h2 {
  font-size: 1.6rem;
  margin-top: var(--s-7);
  margin-bottom: var(--s-3);
  scroll-margin-top: 90px;
}
.article-prose h3 {
  font-size: 1.25rem;
  margin-top: var(--s-5);
  margin-bottom: var(--s-2);
}
.article-prose p { color: var(--text); }
.article-prose a { font-weight: 500; text-decoration: underline; text-decoration-color: rgba(164, 53, 240, 0.4); text-underline-offset: 3px; }
.article-prose a:hover { text-decoration-color: var(--primary); }
.article-prose ul, .article-prose ol {
  padding-left: var(--s-5);
}
.article-prose li { margin-top: var(--s-2); }
.article-prose blockquote {
  border-left: 4px solid var(--primary);
  padding: var(--s-4) var(--s-5);
  font-size: 1.18rem;
  font-style: italic;
  color: var(--text);
  background: var(--primary-50);
  border-radius: 0 var(--r) var(--r) 0;
}
.article-prose code {
  background: var(--bg-tinted);
  color: var(--primary);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
  font-family: 'SF Mono', Menlo, Consolas, monospace;
}
.article-prose hr {
  border: none;
  border-top: 1px solid var(--border-soft);
  margin: var(--s-7) 0;
}

.article-share {
  display: flex; gap: var(--s-2); align-items: center;
  padding: var(--s-4) 0;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  margin: var(--s-7) 0;
}
.article-share .label {
  font-size: 0.875rem; color: var(--text-muted);
  margin-right: var(--s-2);
}
.article-share .share-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg);
  display: grid; place-items: center;
  color: var(--text-muted);
  transition: all var(--t);
}
.article-share .share-btn:hover { border-color: var(--primary); color: var(--primary); }
.article-share .share-btn svg { width: 16px; height: 16px; }

.author-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s-4);
  padding: var(--s-5);
  background: var(--bg-soft);
  border-radius: var(--r-lg);
  align-items: flex-start;
  margin-top: var(--s-5);
}
.author-card .author-avatar-lg {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: grid; place-items: center;
  font-weight: 700; font-size: 1.15rem;
}
.author-card h4 { font-size: 1.05rem; margin-bottom: 2px; }
.author-card .author-role { font-size: 0.85rem; color: var(--text-muted); margin-bottom: var(--s-2); }
.author-card p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.55; margin: 0; }

/* 404 page */
.not-found {
  min-height: calc(100vh - 76px);
  display: grid; place-items: center;
  padding: var(--s-7) var(--s-5);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.not-found::before, .not-found::after {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.2;
  background: var(--primary);
  z-index: 0;
}
.not-found::before { top: -150px; left: -100px; }
.not-found::after { bottom: -150px; right: -100px; }
.not-found-content { position: relative; z-index: 1; max-width: 540px; }
.not-found-num {
  font-size: clamp(8rem, 20vw, 12rem);
  font-weight: 900;
  line-height: 1;
  background: var(--primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.05em;
  margin-bottom: var(--s-3);
}
.not-found h1 { font-size: 2rem; margin-bottom: var(--s-3); }
.not-found p { color: var(--text-muted); font-size: 1.05rem; margin-bottom: var(--s-5); }
.not-found .quick-links {
  display: flex; gap: var(--s-3); justify-content: center; flex-wrap: wrap;
  margin-top: var(--s-5);
}

/* Legal page (Privacy + Terms) */
.legal-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: var(--s-7);
  align-items: flex-start;
}
@media (max-width: 880px) {
  .legal-shell { grid-template-columns: 1fr; }
}
.legal-toc {
  position: sticky; top: 92px;
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  padding: var(--s-4);
}
@media (max-width: 880px) {
  .legal-toc { position: static; }
}
.legal-toc h5 {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-muted); font-weight: 700;
  margin-bottom: var(--s-3);
}
.legal-toc ol { list-style: none; counter-reset: legal-counter; }
.legal-toc ol li { counter-increment: legal-counter; }
.legal-toc ol li a {
  display: block;
  padding: 6px 0;
  font-size: 0.875rem;
  color: var(--text);
  transition: color var(--t);
}
.legal-toc ol li a::before {
  content: counter(legal-counter) ". ";
  color: var(--text-muted);
  font-weight: 500;
}
.legal-toc ol li a:hover { color: var(--primary); }

.legal-content {
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  padding: var(--s-7);
}
.legal-content h2 {
  font-size: 1.5rem;
  margin-top: var(--s-7);
  margin-bottom: var(--s-3);
  padding-top: var(--s-4);
  border-top: 1px solid var(--border-soft);
  scroll-margin-top: 90px;
}
.legal-content h2:first-of-type { margin-top: 0; padding-top: 0; border-top: none; }
.legal-content h3 {
  font-size: 1.1rem;
  margin-top: var(--s-5);
  margin-bottom: var(--s-2);
}
.legal-content p { color: var(--text-muted); margin-bottom: var(--s-3); line-height: 1.7; }
.legal-content ul { padding-left: var(--s-5); margin: var(--s-3) 0; }
.legal-content ul li { color: var(--text-muted); margin-bottom: var(--s-2); }
.legal-content .updated {
  font-size: 0.875rem;
  color: var(--text-muted);
  padding: var(--s-3) var(--s-4);
  background: var(--bg-soft);
  border-radius: var(--r);
  margin-bottom: var(--s-5);
}

/* Animations */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.float-anim { animation: float 6s ease-in-out infinite; }

/* ==========================================================================
   "Built for the AI era" — Duotone + Grain section
   Implementation per design_handoff_ai_era_section README spec.
   Self-contained: uses literal hex values (not project tokens) because the
   handoff is a deliberate editorial / multi-color counter to the brand's
   single-color rule. Treat as scoped to .ai-era-* classes.
   ========================================================================== */

.ai-era-section {
  background: #FAFAFA;
  padding: 56px 0;
}
@media (max-width: 640px) {
  .ai-era-section { padding: 24px 0; }
}

.ai-era-header { margin-bottom: 36px; }

.ai-era-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #FAF5FF;
  color: #A855F7;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.ai-era-eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #A855F7;
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.25);
}

.ai-era-headline {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: #0A0A0A;
  margin: 0;
}
.ai-era-grad {
  background: linear-gradient(90deg, #C026D3 0%, #A855F7 60%, #7E22CE 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
@media (max-width: 640px) {
  .ai-era-headline { font-size: 38px; }
}

.ai-era-bento {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  grid-auto-rows: 260px;
  gap: 18px;
}
@media (max-width: 1023px) and (min-width: 641px) {
  .ai-era-bento { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .ai-era-bento {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }
}

.ai-era-card {
  border-radius: 24px;
  padding: 32px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.ai-era-card:hover { transform: translateY(-2px); }
@media (max-width: 640px) { .ai-era-card { padding: 28px; } }

/* Grain overlay (SVG fractal noise data URI) */
.ai-era-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.55 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: 0.18;
  mix-blend-mode: overlay;
  pointer-events: none;
  border-radius: inherit;
}

/* Edge highlight (per-card accent) */
.ai-era-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 24px;
  pointer-events: none;
}

/* Per-card values (from README per-card table) */
.ai-era-card.card-curated {
  background: linear-gradient(135deg, #1E1B4B, #4C1D95);
  color: #FFFFFF;
}
.ai-era-card.card-curated::after {
  box-shadow: inset 0 1px 0 rgba(167, 139, 250, 0.33), inset 0 0 0 1px rgba(255,255,255,0.06);
}
.ai-era-card.card-curated p { color: #C4B5FD; }
.card-curated .ai-era-icon-chip { background: #E9D5FF; }
.card-curated .ai-era-icon-chip svg { stroke: #1E1B4B; }

.ai-era-card.card-compare {
  background: linear-gradient(135deg, #FDF2F8, #FBCFE8);
  color: #500724;
}
.ai-era-card.card-compare::after {
  box-shadow: inset 0 1px 0 rgba(244, 114, 182, 0.33), inset 0 0 0 1px rgba(255,255,255,0.06);
}
.ai-era-card.card-compare p { color: #831843; }
.card-compare .ai-era-icon-chip { background: #DB2777; }
.card-compare .ai-era-icon-chip svg { stroke: #FFFFFF; }

.ai-era-card.card-reviews {
  background: linear-gradient(135deg, #FEF3C7, #FDE68A);
  color: #451A03;
}
.ai-era-card.card-reviews::after {
  box-shadow: inset 0 1px 0 rgba(251, 191, 36, 0.33), inset 0 0 0 1px rgba(255,255,255,0.06);
}
.ai-era-card.card-reviews p { color: #78350F; }
.card-reviews .ai-era-icon-chip { background: #B45309; }
.card-reviews .ai-era-icon-chip svg { stroke: #FFFFFF; }

.ai-era-card.card-match {
  background: linear-gradient(135deg, #0C1F3D, #0E2C5C);
  color: #FFFFFF;
}
.ai-era-card.card-match::after {
  box-shadow: inset 0 1px 0 rgba(96, 165, 250, 0.33), inset 0 0 0 1px rgba(255,255,255,0.06);
}
.ai-era-card.card-match p { color: #BFDBFE; }
.card-match .ai-era-icon-chip { background: #BAE6FD; }
.card-match .ai-era-icon-chip svg { stroke: #0C1F3D; }

/* Icon chip */
.ai-era-icon-chip {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.18);
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}
.ai-era-icon-chip svg {
  width: 24px; height: 24px;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Card title + body */
.ai-era-card h3 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0;
  position: relative;
  z-index: 1;
  color: inherit;
}
.ai-era-card p {
  font-size: 15px;
  line-height: 1.55;
  margin: 8px 0 0;
  position: relative;
  z-index: 1;
}
@media (max-width: 640px) {
  .ai-era-card h3 { font-size: 22px; }
}

/* ===== Auth pages (sign in / sign up) ===== */
.auth-shell {
  min-height: calc(100vh - 76px);
  display: grid; place-items: center;
  padding: var(--s-7) var(--s-5);
  position: relative;
  overflow: hidden;
}
.auth-shell::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.25;
  background: var(--primary);
  top: -150px; right: -100px;
  z-index: -1;
}
.auth-shell::after {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.18;
  background: var(--primary);
  bottom: -120px; left: -80px;
  z-index: -1;
}
.auth-card {
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-xl);
  padding: var(--s-7);
  max-width: 440px;
  width: 100%;
  box-shadow: var(--shadow-lg);
}
.auth-card h1 { font-size: 1.75rem; margin-bottom: var(--s-2); }
.auth-card .lede { font-size: 1rem; margin-bottom: var(--s-6); }
.auth-card .field { margin-bottom: var(--s-4); }
.auth-card .btn-primary { width: 100%; margin-top: var(--s-3); }
.auth-divider {
  display: flex; align-items: center; gap: var(--s-3);
  margin: var(--s-5) 0;
  color: var(--text-muted); font-size: 0.85rem;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.oauth-btn {
  display: flex; align-items: center; justify-content: center; gap: var(--s-2);
  padding: 12px 20px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: var(--bg);
  font-weight: 600; font-size: 0.95rem;
  width: 100%;
  margin-bottom: var(--s-3);
  transition: border-color var(--t), background var(--t);
}
.oauth-btn:hover {
  border-color: var(--primary);
  background: var(--bg-soft);
}
.oauth-btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.auth-card .terms-line {
  font-size: 0.825rem; color: var(--text-muted);
  margin-top: var(--s-3);
  text-align: center;
}
.auth-card .swap-link {
  text-align: center;
  margin-top: var(--s-5);
  padding-top: var(--s-5);
  border-top: 1px solid var(--border-soft);
  font-size: 0.95rem;
  color: var(--text-muted);
}
.auth-card .swap-link a { font-weight: 600; }

/* Inline error inside auth cards (sign-in / sign-up) */
.auth-error {
  background: #FEE2E2;
  color: #B91C1C;
  border: 1px solid #FCA5A5;
  border-radius: var(--r);
  padding: 12px 14px;
  margin: 0 0 var(--s-3);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
}
.auth-error[hidden] { display: none; }

/* ===== Session-aware nav (logged-in user menu) ===== */
.user-menu-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.user-menu-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 4px 12px 4px 4px;
  cursor: pointer;
  font-family: inherit;
  color: var(--text);
  transition: border-color var(--t), box-shadow var(--t);
}
.user-menu-trigger:hover,
.user-menu-wrap:hover .user-menu-trigger,
.user-menu-wrap:focus-within .user-menu-trigger {
  border-color: var(--primary);
}
.user-menu-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.user-menu-name {
  font-size: 0.875rem;
  font-weight: 600;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.user-menu-trigger .nav-caret {
  width: 12px;
  height: 12px;
  color: var(--text-muted);
  transition: transform var(--t);
}
.user-menu-wrap:hover .user-menu-trigger .nav-caret,
.user-menu-wrap:focus-within .user-menu-trigger .nav-caret {
  transform: rotate(180deg);
}

.user-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 200px;
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--r);
  box-shadow: var(--shadow-lg);
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity var(--t), transform var(--t), visibility 0s linear var(--t);
  z-index: 60;
}
.user-menu::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}
.user-menu-wrap:hover .user-menu,
.user-menu-wrap:focus-within .user-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity var(--t), transform var(--t), visibility 0s;
}
.user-menu a,
.user-menu button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 14px;
  border: 0;
  background: transparent;
  border-radius: var(--r-sm);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  transition: background var(--t), color var(--t);
}
.user-menu a:hover,
.user-menu button:hover {
  background: var(--primary-50);
  color: var(--primary);
}
.user-menu .user-menu-signout {
  border-top: 1px solid var(--border-soft);
  margin-top: 4px;
  padding-top: 12px;
}
.user-menu .user-menu-signout:hover {
  background: #FEE2E2;
  color: #B91C1C;
}

/* Profile inline edit form */
.profile-edit-form {
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  margin-top: var(--s-5);
  box-shadow: var(--shadow-sm);
}
.profile-edit-form h3 {
  margin: 0 0 var(--s-4);
  font-size: 1.05rem;
  font-weight: 700;
}
.profile-edit-form[hidden] { display: none; }

/* Avatar with image (replaces background+initials when avatar_url is set) */
.profile-avatar.has-image,
.avatar-preview.has-image,
.user-menu-avatar.has-image {
  background: transparent;
  padding: 0;
  overflow: hidden;
}
.profile-avatar img,
.avatar-preview img,
.user-menu-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}

/* Avatar upload row inside profile edit form */
.avatar-upload-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}
.avatar-preview {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1rem;
  overflow: hidden;
  flex-shrink: 0;
}

/* About tab content */
.about-card {
  padding: var(--s-6);
}
.about-card h3 {
  margin: 0 0 var(--s-3);
  font-size: 1.2rem;
  font-weight: 700;
}
.about-bio {
  color: var(--text);
  font-size: 0.975rem;
  line-height: 1.65;
  margin: 0 0 var(--s-5);
  white-space: pre-wrap;
}
.about-bio.about-bio-empty {
  color: var(--text-muted);
  font-style: italic;
}
.about-details {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-4) var(--s-5);
}
@media (max-width: 600px) {
  .about-details { grid-template-columns: 1fr; }
}
.about-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-top: 1px solid var(--border-soft);
  padding-top: var(--s-3);
}
.about-row dt {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}
.about-row dd {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 500;
  word-break: break-word;
}
.about-row dd a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}
.about-row dd a:hover { text-decoration: underline; }

/* Submitted Products list (profile.html Products tab) */
.my-products-list {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.my-product-card {
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  padding: var(--s-4) var(--s-5);
  display: block;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.my-product-card:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  border-color: rgba(164, 53, 240, 0.25);
}
.my-product-link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.my-product-actions {
  display: flex;
  justify-content: flex-end;
  gap: var(--s-2);
  margin-top: var(--s-3);
  padding-top: var(--s-3);
  border-top: 1px solid var(--border-soft);
}
.my-product-edit { text-decoration: none; }
.my-product-head {
  display: flex;
  align-items: center;
  gap: var(--s-3);
}
.my-product-head .product-logo {
  width: 44px;
  height: 44px;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.my-product-head .product-logo.has-image { background: transparent; padding: 0; overflow: hidden; }
.my-product-head .product-logo.has-image img {
  width: 100%; height: 100%; object-fit: cover; border-radius: inherit;
}
.my-product-info {
  flex: 1;
  min-width: 0;
}
.my-product-info strong {
  display: block;
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
}
.my-product-tagline {
  display: block;
  color: var(--text-muted);
  font-size: 0.825rem;
  margin-top: 2px;
}
.my-product-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: var(--s-3);
  padding-top: var(--s-3);
  border-top: 1px solid var(--border-soft);
  font-size: 0.825rem;
  flex-wrap: wrap;
}
.my-product-date {
  color: var(--text-muted);
  margin-left: auto;
}

/* Newsletter subscribe inline success / error states */
.newsletter-success {
  background: #DCFCE7;
  color: #15803D;
  border: 1px solid #86EFAC;
  border-radius: var(--r);
  padding: 12px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.4;
}
.newsletter-error {
  color: #B91C1C;
  background: #FEE2E2;
  border: 1px solid #FCA5A5;
  border-radius: var(--r-sm);
  padding: 8px 12px;
  font-size: 0.8rem;
  font-weight: 500;
  margin: 8px 0 0;
}

/* Verify-email banner (profile page, fixed-style top notice) */
.verify-banner {
  background: #FEF3C7;
  border: 1px solid #FCD34D;
  border-radius: var(--r);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  font-size: 0.9rem;
  color: #92400E;
  flex-wrap: wrap;
}
.verify-banner[hidden] { display: none; }
.verify-banner strong { color: #78350F; font-weight: 700; }

/* Review write-form rating picker (product page) */
.rating-picker {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
}
.rating-star {
  background: none;
  border: 0;
  padding: 4px;
  font-size: 1.6rem;
  line-height: 1;
  color: #E5E7EB;
  cursor: pointer;
  transition: color var(--t), transform var(--t);
}
.rating-star:hover,
.rating-star.hover,
.rating-star.selected {
  color: #F59E0B;
}
.rating-star:hover { transform: scale(1.1); }

.review-widget {
  background: var(--bg);
  border: 1px solid var(--border-soft);
}

/* ===== User profile page ===== */
.profile-header {
  background: var(--primary-50);
  padding: var(--s-7) 0 var(--s-6);
  position: relative;
  overflow: hidden;
}
.profile-header::before {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.4;
  background: var(--primary);
  top: -200px; right: -100px;
  z-index: 0;
}
.profile-head-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--s-5);
  align-items: center;
  position: relative; z-index: 1;
}
@media (max-width: 760px) {
  .profile-head-row { grid-template-columns: 1fr; text-align: center; }
}
.profile-avatar {
  width: 110px; height: 110px;
  border-radius: 50%;
  background: var(--primary);
  display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: 2.5rem;
  border: 4px solid var(--bg);
  box-shadow: var(--shadow-lg);
}
.profile-info h1 { font-size: 2rem; margin-bottom: 4px; }
.profile-info .role { color: var(--text-muted); font-size: 1rem; margin-bottom: var(--s-3); }
.profile-info .badges-row { display: flex; gap: var(--s-2); flex-wrap: wrap; }
@media (max-width: 760px) {
  .profile-info .badges-row { justify-content: center; }
}
.profile-actions { display: flex; flex-direction: column; gap: var(--s-2); align-items: end; }
@media (max-width: 760px) {
  .profile-actions { align-items: center; }
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-3);
  margin-top: var(--s-7);
}
@media (max-width: 760px) {
  .profile-stats { grid-template-columns: repeat(2, 1fr); }
}
.stat-card {
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--r);
  padding: var(--s-5);
  text-align: center;
  transition: transform var(--t);
  position: relative; z-index: 1;
}
.stat-card:hover { transform: translateY(-2px); }
.stat-card strong {
  display: block;
  font-size: 1.75rem; font-weight: 800;
  color: var(--primary);
  margin-bottom: 4px;
}
.stat-card span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.profile-tabs {
  display: flex; gap: var(--s-5);
  border-bottom: 1px solid var(--border-soft);
  margin-bottom: var(--s-6);
  overflow-x: auto;
}
.profile-tabs button {
  padding: var(--s-3) 0;
  border: none; background: none;
  font-size: 0.95rem; font-weight: 600;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  white-space: nowrap;
  transition: color var(--t), border-color var(--t);
}
.profile-tabs button.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}
.profile-tabs button:hover:not(.active) { color: var(--text); }

.badge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: var(--s-3);
}
.badge-tile {
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--r);
  padding: var(--s-4);
  text-align: center;
  transition: transform var(--t), border-color var(--t);
}
.badge-tile:hover {
  transform: translateY(-3px);
  border-color: rgba(164, 53, 240, 0.3);
}
.badge-tile.locked { opacity: 0.4; }
.badge-emoji { font-size: 2rem; margin-bottom: var(--s-2); }
.badge-tile strong { display: block; font-size: 0.9rem; color: var(--text); margin-bottom: 2px; }
.badge-tile span { font-size: 0.78rem; color: var(--text-muted); }

/* ===== Pricing page ===== */
.pricing-hero {
  text-align: center;
  padding: var(--s-9) var(--s-5) var(--s-7);
  position: relative;
  overflow: hidden;
}
.pricing-hero::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.2;
  background: var(--primary);
  top: -200px; left: 50%;
  transform: translateX(-50%);
  z-index: 0;
}
.pricing-hero > * { position: relative; z-index: 1; }
.pricing-toggle {
  display: inline-flex;
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  padding: 4px;
  border-radius: var(--r-pill);
  margin-top: var(--s-5);
  gap: 4px;
}
.pricing-toggle button {
  padding: 8px 18px;
  border-radius: var(--r-pill);
  font-size: 0.9rem; font-weight: 600;
  color: var(--text-muted);
  border: none; background: none; cursor: pointer;
  transition: all var(--t);
}
.pricing-toggle button.active {
  background: var(--primary);
  color: #fff;
}
.pricing-save-badge {
  display: inline-block;
  background: #E5F8EC; color: #047857;
  padding: 2px 8px; border-radius: var(--r-pill);
  font-size: 0.7rem; font-weight: 700;
  margin-left: 6px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
  margin: var(--s-7) 0;
}
@media (max-width: 880px) {
  .pricing-grid { grid-template-columns: 1fr; }
}
.pricing-card {
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  display: flex; flex-direction: column;
  position: relative;
  transition: transform var(--t), box-shadow var(--t);
}
.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.pricing-card.featured {
  border: 2px solid var(--primary);
  background: var(--bg);
  box-shadow: var(--shadow-lg);
  transform: scale(1.02);
}
.pricing-card.featured:hover { transform: scale(1.02) translateY(-4px); }
.pricing-card .tier-tag {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: var(--s-3);
}
.pricing-card.featured .badge-popular {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-size: 0.72rem; font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.pricing-card h3 { font-size: 1.5rem; margin-bottom: var(--s-3); }
.pricing-price {
  font-size: 2.75rem; font-weight: 800; color: var(--text);
  line-height: 1;
  margin-bottom: var(--s-2);
  letter-spacing: -0.03em;
}
.pricing-price .small { font-size: 1rem; color: var(--text-muted); font-weight: 500; }
.pricing-card .lede {
  font-size: 0.95rem;
  margin-bottom: var(--s-5);
  min-height: 3em;
}
.pricing-card .btn { width: 100%; margin-bottom: var(--s-5); }
.pricing-card ul {
  list-style: none;
  display: flex; flex-direction: column;
  gap: var(--s-3);
  font-size: 0.93rem;
  color: var(--text);
}
.pricing-card ul li {
  display: flex; gap: var(--s-2); align-items: flex-start;
}
.pricing-card ul li::before {
  content: '✓';
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: grid; place-items: center;
  font-size: 0.7rem; font-weight: 800;
  flex-shrink: 0;
  margin-top: 1px;
}
.pricing-card ul li.disabled {
  color: var(--text-soft);
  text-decoration: line-through;
}
.pricing-card ul li.disabled::before {
  background: var(--border);
  content: '×';
}

/* Comparison table on pricing page */
.pricing-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--bg);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border-soft);
}
.pricing-table th, .pricing-table td {
  padding: var(--s-4);
  text-align: center;
  border-bottom: 1px solid var(--border-soft);
  font-size: 0.93rem;
}
.pricing-table thead th {
  background: var(--bg-soft);
  color: var(--text);
  font-weight: 700;
}
.pricing-table thead th.featured-col {
  background: var(--primary-50);
  color: var(--primary);
}
.pricing-table tbody th {
  text-align: left;
  font-weight: 500;
  color: var(--text);
  background: var(--bg);
  width: 40%;
}
.pricing-table tr:last-child td,
.pricing-table tr:last-child th { border-bottom: none; }
.pricing-table .check { color: var(--primary); font-weight: 700; }
.pricing-table .dash { color: var(--text-soft); }

/* FAQ section */
.faq-list { display: grid; gap: 6px; }
details.faq-item {
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-sm);
  padding: 10px var(--s-3);
  transition: border-color var(--t);
}
details.faq-item[open] { border-color: rgba(164, 53, 240, 0.3); }
details.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.92rem;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  gap: var(--s-3);
  line-height: 1.35;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after {
  content: '+';
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--primary-50);
  color: var(--primary);
  display: grid; place-items: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
  transition: transform var(--t);
}
details.faq-item[open] summary::after {
  content: '−';
  background: var(--primary);
  color: #fff;
}
details.faq-item p {
  color: var(--text-muted);
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border-soft);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ===== Aloo icon (potato emoji) ===== */
.aloo-glyph {
  display: inline-block;
  vertical-align: -0.05em;
  flex-shrink: 0;
  font-size: 0.95em;
  line-height: 1;
}
.aloo-glyph::before {
  content: '🥔';
}

/* ===== Aloo indicator (used on product cards) ===== */
.aloo-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  font-size: 0.78rem; font-weight: 700;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(164, 53, 240, 0.2);
}
.aloo-badge::before {
  content: '🥔';
  font-size: 0.9em;
  line-height: 1;
}
.aloo-inline {
  display: inline-flex; align-items: center; gap: 4px;
  font-weight: 700;
  color: var(--primary);
}
.aloo-inline::before {
  content: '🥔';
  font-size: 0.95em;
  line-height: 1;
}

/* ===== Leaderboard ===== */
.leaderboard-tabs {
  display: flex; gap: var(--s-2);
  background: var(--bg-soft);
  padding: 6px;
  border-radius: var(--r-pill);
  margin-bottom: var(--s-5);
  width: fit-content;
}
.leaderboard-tabs button {
  padding: 8px 18px;
  border-radius: var(--r-pill);
  font-size: 0.9rem; font-weight: 600;
  color: var(--text-muted);
  transition: all var(--t);
}
.leaderboard-tabs button.active {
  background: var(--bg);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}
.leaderboard-tabs button:hover:not(.active) { color: var(--text); }

.leaderboard-controls {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: var(--s-3);
  margin-bottom: var(--s-6);
}
.leaderboard-controls .filter-pills { display: flex; gap: var(--s-2); flex-wrap: wrap; }
.leaderboard-controls .filter-pill {
  padding: 8px 16px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: var(--bg);
  font-size: 0.875rem; font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--t);
}
.leaderboard-controls .filter-pill.active,
.leaderboard-controls .filter-pill:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-50);
}

/* Podium */
.podium {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  gap: var(--s-4);
  align-items: end;
  margin-bottom: var(--s-7);
}
@media (max-width: 760px) {
  .podium { grid-template-columns: 1fr; align-items: stretch; }
}
.podium-card {
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.podium-card.rank-1 {
  background: var(--bg);
  border: 2px solid transparent;
  background-clip: padding-box;
  box-shadow: 0 20px 50px rgba(164, 53, 240, 0.18);
  transform: translateY(0);
}
.podium-card.rank-1::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: var(--r-lg);
  padding: 2px;
  background: var(--gradient-1);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.podium-rank {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  font-weight: 800; font-size: 1.05rem;
  margin-bottom: var(--s-3);
  position: relative;
}
.podium-rank.rank-1 { background: var(--gradient-1); color: #fff; box-shadow: var(--shadow-glow); }
.podium-rank.rank-2 { background: #A8A8B0; color: #fff; }
.podium-rank.rank-3 { background: #B87333; color: #fff; }
.podium-rank::before {
  position: absolute; top: -8px;
}
.podium-rank.rank-1::before { content: '👑'; font-size: 1.4rem; }
.podium-rank.rank-2::before { content: '🥈'; font-size: 1.2rem; }
.podium-rank.rank-3::before { content: '🥉'; font-size: 1.2rem; }

.podium-logo {
  width: 84px; height: 84px;
  border-radius: 18px;
  background: var(--gradient-1);
  margin: 0 auto var(--s-3);
  display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: 1.7rem;
  box-shadow: var(--shadow-md);
}
.podium-logo.alt-1 { background: linear-gradient(135deg, #FF2DAA, #00C2FF); }
.podium-logo.alt-2 { background: linear-gradient(135deg, #00C2FF, #7F00FF); }
.podium-card h3 { font-size: 1.18rem; margin-bottom: 4px; }
.podium-card .tagline { font-size: 0.85rem; color: var(--text-muted); margin-bottom: var(--s-3); }
.podium-aloos {
  font-size: 1.75rem; font-weight: 800;
  background: var(--gradient-1);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 4px;
}
.podium-card .change {
  font-size: 0.825rem;
  color: #047857;
  font-weight: 600;
}

/* Leaderboard list */
.leaderboard-list {
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.lb-row {
  display: grid;
  grid-template-columns: 60px 56px 1fr auto auto auto;
  gap: var(--s-4);
  align-items: center;
  padding: var(--s-4) var(--s-5);
  border-bottom: 1px solid var(--border-soft);
  transition: background var(--t);
}
.lb-row:last-child { border-bottom: none; }
.lb-row:hover { background: var(--bg-soft); }
.lb-rank {
  font-size: 1.05rem; font-weight: 800; color: var(--text-muted);
  text-align: center;
}
.lb-logo {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--gradient-1);
  display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: 0.95rem;
}
.lb-logo.alt-1 { background: linear-gradient(135deg, #FF2DAA, #00C2FF); }
.lb-logo.alt-2 { background: linear-gradient(135deg, #00C2FF, #7F00FF); }
.lb-logo.alt-3 { background: linear-gradient(135deg, #FFA940, #FF2DAA); }
.lb-logo.alt-4 { background: linear-gradient(135deg, #4ADE80, #00C2FF); }
.lb-logo.alt-5 { background: linear-gradient(135deg, #7F00FF, #FFA940); }
.lb-info strong { display: block; color: var(--text); font-size: 0.95rem; }
.lb-info span { font-size: 0.825rem; color: var(--text-muted); }
.lb-cat {
  font-size: 0.78rem; color: var(--text-muted);
  background: var(--bg-tinted);
  padding: 4px 10px; border-radius: var(--r-pill);
  font-weight: 600;
}
.lb-change {
  font-size: 0.875rem; font-weight: 700;
  color: #047857;
  display: inline-flex; align-items: center; gap: 4px;
}
.lb-change.down { color: #B91C1C; }
.lb-aloos {
  font-size: 1.05rem; font-weight: 800;
  background: var(--gradient-1);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  min-width: 80px; text-align: right;
}

@media (max-width: 760px) {
  .lb-row { grid-template-columns: 40px 44px 1fr auto; gap: var(--s-3); }
  .lb-cat, .lb-change { display: none; }
}

/* Tier badges */
.tier-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  font-size: 0.75rem; font-weight: 700;
  background: var(--bg-tinted); color: var(--primary);
}
.tier-badge.sprout { background: #E5F8EC; color: #047857; }
.tier-badge.spud { background: #DBEAFE; color: #1E40AF; }
.tier-badge.tater { background: #FEF3C7; color: #92400E; }
.tier-badge.russet { background: var(--primary-50); color: var(--primary); }
.tier-badge.hot-potato {
  background: linear-gradient(135deg, #DC2626, #F97316);
  color: #fff;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.35);
}

/* Tier showcase (explainer) */
.tier-showcase {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--s-3);
  margin-top: var(--s-5);
}
@media (max-width: 760px) { .tier-showcase { grid-template-columns: repeat(2, 1fr); } }
.tier-card-mini {
  text-align: center;
  padding: var(--s-4);
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--r);
  transition: transform var(--t), border-color var(--t);
}
.tier-card-mini:hover { transform: translateY(-3px); border-color: rgba(164, 53, 240, 0.3); }
.tier-emoji { font-size: 2rem; margin-bottom: var(--s-2); }
.tier-card-mini strong { display: block; color: var(--text); font-size: 0.9rem; margin-bottom: 2px; }
.tier-card-mini span { font-size: 0.78rem; color: var(--text-muted); }

/* Aloos explainer banner */
.aloo-explainer {
  background: var(--primary-50);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  display: grid; grid-template-columns: auto 1fr; gap: var(--s-5);
  align-items: center;
  margin-bottom: var(--s-6);
}
.aloo-explainer .aloo-icon {
  width: 80px; height: 80px;
  border-radius: 20px;
  background: var(--gradient-1);
  display: grid; place-items: center;
  color: #fff; font-size: 2.2rem;
  box-shadow: var(--shadow-glow);
}
.aloo-explainer h3 { margin-bottom: var(--s-2); }
.aloo-explainer p { color: var(--text-muted); }
@media (max-width: 600px) {
  .aloo-explainer { grid-template-columns: 1fr; text-align: center; }
}

/* ===== Prompt Feed ===== */
.prompt-controls {
  background: var(--bg);
  border-bottom: 1px solid var(--border-soft);
  padding: var(--s-5) 0;
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: saturate(140%) blur(8px);
  background: rgba(255, 255, 255, 0.92);
}
.prompt-search-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: var(--s-3);
  margin-bottom: var(--s-3);
}
.prompt-search {
  position: relative;
  display: flex; align-items: center;
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-pill);
  padding: 0 16px;
  transition: border-color var(--t), box-shadow var(--t);
}
.prompt-search:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(164, 53, 240, 0.15);
}
.prompt-search svg {
  width: 18px; height: 18px;
  color: var(--text-muted);
  flex-shrink: 0;
}
.prompt-search input {
  border: none;
  background: transparent;
  padding: 12px 0 12px 12px;
  width: 100%;
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  color: var(--text);
}
.prompt-search input::placeholder {
  color: var(--text-muted);
}
.prompt-select {
  padding: 10px 16px;
  border: 1px solid var(--border-soft);
  border-radius: var(--r-pill);
  background: var(--bg-soft);
  font-size: 0.9rem;
  font-family: inherit;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: border-color var(--t);
}
.prompt-select:hover { border-color: var(--primary); }

.prompt-sort {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.prompt-sort button {
  padding: 8px 14px;
  border: 1px solid var(--border-soft);
  border-radius: var(--r-pill);
  background: transparent;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: inherit;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--t);
}
.prompt-sort button:hover {
  background: var(--bg-soft);
  color: var(--text);
}
.prompt-sort button.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 4px 10px rgba(164, 53, 240, 0.25);
}

@media (max-width: 760px) {
  .prompt-search-row { grid-template-columns: 1fr; }
  .prompt-controls { position: static; }
}

/* Prompt feed grid */
.prompt-feed {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-5);
}
@media (max-width: 880px) {
  .prompt-feed { grid-template-columns: 1fr; }
}

/* Prompt card */
.prompt-card {
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  display: flex; flex-direction: column;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
  position: relative;
}
.prompt-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(164, 53, 240, 0.2);
}
.prompt-card-head {
  display: flex; gap: 6px; flex-wrap: wrap;
  margin-bottom: var(--s-3);
}
.prompt-tool {
  background: var(--primary-50);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.prompt-cat {
  background: var(--bg-tinted);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
}
.prompt-text {
  font-family: 'JetBrains Mono', 'SF Mono', Consolas, monospace;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--r);
  padding: var(--s-4);
  margin-bottom: var(--s-3);
  position: relative;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.prompt-text::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 32px;
  background: linear-gradient(to bottom, transparent, var(--bg-soft));
  pointer-events: none;
}
.prompt-readmore {
  display: inline-block;
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: var(--s-4);
  text-decoration: none;
}
.prompt-readmore:hover { text-decoration: underline; }

.prompt-card-foot {
  margin-top: auto;
  padding-top: var(--s-3);
  border-top: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  flex-wrap: wrap;
}
.prompt-author {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.8rem;
}
.prompt-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--gradient-1);
  display: grid; place-items: center;
  color: #fff; font-weight: 700; font-size: 0.7rem;
  flex-shrink: 0;
}
.prompt-avatar.alt-1 { background: linear-gradient(135deg, #FF2DAA, #00C2FF); }
.prompt-avatar.alt-2 { background: linear-gradient(135deg, #00C2FF, #7F00FF); }
.prompt-avatar.alt-3 { background: linear-gradient(135deg, #FFA940, #FF2DAA); }
.prompt-avatar.alt-4 { background: linear-gradient(135deg, #4ADE80, #00C2FF); }
.prompt-author-info {
  display: flex; flex-direction: column; gap: 2px;
}
.prompt-author-info strong {
  color: var(--text); font-size: 0.825rem;
}
.prompt-time {
  font-size: 0.75rem; color: var(--text-muted);
}
.prompt-actions {
  display: flex; gap: 4px;
  align-items: center;
}
.prompt-btn {
  border: 1px solid var(--border-soft);
  background: transparent;
  border-radius: var(--r-pill);
  padding: 6px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  font-family: inherit;
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 4px;
  transition: all var(--t);
}
.prompt-btn:hover {
  background: var(--bg-soft);
  color: var(--text);
  border-color: var(--text-muted);
}
.prompt-btn.aloo {
  color: var(--primary);
  border-color: var(--primary-50);
  background: var(--primary-50);
}
.prompt-btn.aloo:hover {
  background: var(--primary);
  color: #fff;
}
.prompt-btn svg { width: 14px; height: 14px; }

/* Featured/spotlight prompt */
.prompt-spotlight {
  background: linear-gradient(135deg, var(--primary-50), rgba(164, 53, 240, 0.04));
  border: 1px solid rgba(164, 53, 240, 0.25);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  margin-bottom: var(--s-6);
  position: relative;
  overflow: hidden;
}
.prompt-spotlight::before {
  content: '✨ Editor\'s pick';
  position: absolute;
  top: 16px; right: 16px;
  background: var(--primary);
  color: #fff;
  padding: 4px 12px;
  border-radius: var(--r-pill);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ===== Prompt Feed: 3-column layout ===== */
.prompt-layout {
  display: grid;
  grid-template-columns: 240px 1fr 300px;
  gap: var(--s-5);
  align-items: start;
}
.prompt-sidebar {
  position: sticky;
  top: var(--s-5);
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}
.prompt-sidebar-card {
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  padding: var(--s-4);
}
.prompt-sidebar-card h3 {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin: 0 0 var(--s-3);
}

/* Left sidebar: category list */
.cat-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cat-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  border-radius: var(--r);
  text-decoration: none;
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 500;
  transition: background var(--t), color var(--t);
}
.cat-list a:hover {
  background: var(--bg-soft);
}
.cat-list a.active {
  background: var(--primary-50);
  color: var(--primary);
  font-weight: 600;
}
.cat-count {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.cat-list a.active .cat-count { color: var(--primary); }
.cat-list-more {
  display: inline-block;
  margin-top: var(--s-3);
  padding-top: var(--s-3);
  border-top: 1px solid var(--border-soft);
  width: 100%;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}
.cat-list-more:hover { text-decoration: underline; }

/* Center: composer */
.prompt-composer {
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  padding: var(--s-4);
  margin-bottom: var(--s-4);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--t), box-shadow var(--t);
}
.prompt-composer:hover {
  border-color: rgba(164, 53, 240, 0.3);
  box-shadow: var(--shadow-md);
}
.composer-row {
  display: flex;
  gap: 12px;
  align-items: center;
}
.composer-row .prompt-avatar {
  width: 36px;
  height: 36px;
  font-size: 0.72rem;
}
.composer-trigger {
  flex: 1;
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-pill);
  padding: 12px 18px;
  font-size: 0.95rem;
  color: var(--text-muted);
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  transition: border-color var(--t), color var(--t);
}
.composer-trigger:hover {
  border-color: var(--primary);
  color: var(--text);
}
.composer-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  margin-top: var(--s-3);
  padding-top: var(--s-3);
  border-top: 1px solid var(--border-soft);
  flex-wrap: wrap;
}
.composer-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Search + sort within feed column */
.feed-controls {
  margin-bottom: var(--s-4);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.feed-controls .prompt-search {
  width: 100%;
}
.feed-controls .prompt-sort {
  flex-wrap: wrap;
}

/* Stack feed in single column inside layout */
.prompt-feed-stack {
  grid-template-columns: 1fr !important;
}

/* Card meta row (avatar + name on top of card) */
.prompt-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: var(--s-3);
}
.prompt-card-meta .prompt-avatar {
  width: 32px;
  height: 32px;
  font-size: 0.72rem;
}
.prompt-card-meta .prompt-author-info strong {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Prompt title */
.prompt-title {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0 0 var(--s-3);
}
.prompt-title a {
  color: inherit;
  text-decoration: none;
  transition: color var(--t);
}
.prompt-title a:hover { color: var(--primary); }

/* Compatible AI tools */
.prompt-compat {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
  margin: var(--s-3) 0;
  padding-top: var(--s-3);
  border-top: 1px dashed var(--border-soft);
}
.compat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-right: 4px;
}
.compat-tool {
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-pill);
  padding: 3px 10px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text);
}

/* Stats group inside footer */
.prompt-stats {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}
.copies-stat {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-left: 2px;
}

/* Right sidebar: trending list */
.trending-list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: trending;
}
.trending-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 0;
  padding-left: 28px;
  border-bottom: 1px solid var(--border-soft);
  position: relative;
  counter-increment: trending;
}
.trending-list li:first-child { padding-top: 4px; }
.trending-list li:last-child { border-bottom: none; padding-bottom: 0; }
.trending-list li::before {
  content: counter(trending);
  position: absolute;
  left: 0;
  top: 12px;
  font-weight: 800;
  font-size: 1rem;
  color: var(--primary);
  width: 22px;
  font-variant-numeric: tabular-nums;
}
.trending-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  line-height: 1.35;
  transition: color var(--t);
}
.trending-title:hover { color: var(--primary); }
.trending-meta {
  font-size: 0.72rem;
  color: var(--text-muted);
}
.trending-aloos {
  color: var(--primary);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-variant-numeric: tabular-nums;
}

/* Right sidebar: top contributors */
.contrib-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.contrib-list li {
  display: flex;
  gap: 10px;
  align-items: center;
}
.contrib-list .prompt-avatar {
  width: 36px;
  height: 36px;
  font-size: 0.72rem;
}
.contrib-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.contrib-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  transition: color var(--t);
}
.contrib-name:hover { color: var(--primary); }
.contrib-tier {
  font-size: 0.72rem;
  color: var(--text-muted);
}
.contrib-aloos {
  font-size: 0.78rem;
  color: var(--primary);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

/* Responsive: collapse sidebars */
@media (max-width: 1180px) {
  .prompt-layout {
    grid-template-columns: 220px 1fr;
  }
  .prompt-sidebar-right {
    grid-column: 1 / -1;
    grid-row: 2;
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .prompt-sidebar-right .prompt-sidebar-card {
    flex: 1 1 280px;
  }
}
@media (max-width: 760px) {
  .prompt-layout {
    grid-template-columns: 1fr;
  }
  .prompt-sidebar-left {
    position: static;
  }
  .prompt-sidebar-right {
    grid-column: auto;
    grid-row: auto;
    flex-direction: column;
  }
  .cat-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
  }
  .cat-list a {
    padding: 6px 12px;
    border: 1px solid var(--border-soft);
    border-radius: var(--r-pill);
  }
  .cat-list a .cat-count { display: none; }
}

/* ===== Single Prompt Detail Page ===== */
.prompt-detail-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--s-7);
}
@media (max-width: 980px) { .prompt-detail-grid { grid-template-columns: 1fr; } }

.prompt-full {
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  padding: var(--s-6);
}
.prompt-full-meta {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: var(--s-4);
}
.prompt-full-text {
  font-family: 'JetBrains Mono', 'SF Mono', Consolas, monospace;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--r);
  padding: var(--s-5);
  white-space: pre-wrap;
  margin-bottom: var(--s-5);
  position: relative;
}
.prompt-full-text .copy-btn {
  position: absolute;
  top: 12px; right: 12px;
}
.prompt-full-actions {
  display: flex; gap: var(--s-2); flex-wrap: wrap;
  padding-top: var(--s-4);
  border-top: 1px solid var(--border-soft);
}

.prompt-side-card {
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--r);
  padding: var(--s-5);
  margin-bottom: var(--s-4);
}
.prompt-side-card h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: var(--s-3);
}

/* Top prompts on product page */
.product-prompts {
  margin-top: var(--s-6);
}
.product-prompts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-3);
  margin-top: var(--s-4);
}
@media (max-width: 760px) { .product-prompts-grid { grid-template-columns: 1fr; } }
.product-prompt-mini {
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--r);
  padding: var(--s-4);
  transition: border-color var(--t), transform var(--t);
  text-decoration: none;
  display: block;
  color: inherit;
}
.product-prompt-mini:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}
.product-prompt-mini .pp-cat {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--primary);
  margin-bottom: var(--s-2);
}
.product-prompt-mini .pp-text {
  font-size: 0.825rem;
  line-height: 1.5;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: var(--s-2);
}
.product-prompt-mini .pp-foot {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
}

/* ===== News page ===== */

/* Filter bar: pills + region select side by side */
.news-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  flex-wrap: wrap;
}
.news-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.news-pill {
  padding: 8px 14px;
  border: 1px solid var(--border-soft);
  border-radius: var(--r-pill);
  background: transparent;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: inherit;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--t);
}
.news-pill:hover {
  background: var(--bg-soft);
  color: var(--text);
}
.news-pill.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 4px 10px rgba(164, 53, 240, 0.25);
}

/* Region (geo) filter — modern pill-style selector */
.region-selector {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 9px 14px 9px 14px;
  cursor: pointer;
  transition: border-color var(--t), box-shadow var(--t), background var(--t), transform var(--t);
}
.region-selector:hover {
  border-color: var(--primary);
  background: var(--bg);
  box-shadow: 0 6px 16px rgba(164, 53, 240, 0.12);
  transform: translateY(-1px);
}
.region-selector:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(164, 53, 240, 0.14);
  transform: translateY(-1px);
}
.region-selector-icon {
  width: 16px;
  height: 16px;
  color: var(--primary);
  flex-shrink: 0;
}
.region-selector-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--text);
  cursor: pointer;
  outline: none;
  text-overflow: ellipsis;
}
.region-selector-select::-ms-expand { display: none; }
.region-selector-chevron {
  width: 14px;
  height: 14px;
  color: var(--text-muted);
  pointer-events: none;
  flex-shrink: 0;
  transition: color var(--t), transform var(--t);
}
.region-selector:hover .region-selector-chevron,
.region-selector:focus-within .region-selector-chevron {
  color: var(--primary);
}

/* Shared meta row: category + region tag + date */
.news-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: var(--s-3);
}
.news-meta-sep { color: var(--border); }
.news-source { font-weight: 600; color: var(--text); }
.news-date { font-variant-numeric: tabular-nums; }

.news-region-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  font-size: 0.72rem;
  font-weight: 600;
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  color: var(--text-muted);
}
.news-region-tag::before {
  content: '';
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--primary);
  display: inline-block;
}

/* Category pill — colors per current category set */
.news-cat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: var(--bg-tinted);
  color: var(--text);
}
.news-cat.marketing      { background: #FCE7F3; color: #9D174D; }
.news-cat.finance        { background: #FEF3C7; color: #92400E; }
.news-cat.acquisition    { background: #D1FAE5; color: #065F46; }
.news-cat.technology     { background: #DBEAFE; color: #1E40AF; }
.news-cat.manufacturing  { background: #FFE4E6; color: #9F1239; }
.news-cat.telecomm       { background: #E0E7FF; color: #3730A3; }
.news-cat.retail         { background: #F3E8FF; color: #6B21A8; }

/* ===== Vertical news feed ===== */
.news-feed {
  display: flex;
  flex-direction: column;
}
.news-item {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: var(--s-6);
  padding: var(--s-6) 0;
  border-bottom: 1px solid var(--border-soft);
  text-decoration: none;
  color: inherit;
  align-items: center;
  transition: background var(--t);
}
.news-item:first-child { padding-top: var(--s-3); }
.news-item:last-child { border-bottom: none; }
.news-item:hover {
  background: var(--bg-soft);
}
.news-item:hover .news-item-title {
  color: var(--primary);
}

.news-item-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--bg-tinted);
  border: 1px solid var(--border-soft);
}
.news-item-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--t-slow);
}
.news-item:hover .news-item-image-wrap img {
  transform: scale(1.05);
}

.news-item-body {
  display: flex;
  flex-direction: column;
}
.news-item-title {
  font-size: 1.4rem;
  line-height: 1.28;
  letter-spacing: -0.015em;
  margin: 0 0 var(--s-3);
  font-weight: 700;
  color: var(--text);
  transition: color var(--t);
}
.news-item-body p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 var(--s-3);
}
.news-item-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.825rem;
  color: var(--text-muted);
  margin-top: auto;
}
.news-author strong {
  color: var(--text);
  font-weight: 600;
}

@media (max-width: 760px) {
  .news-filter-bar { flex-direction: column; align-items: stretch; }
  .news-region { align-self: flex-start; }
  .news-item {
    grid-template-columns: 1fr;
    gap: var(--s-3);
    padding: var(--s-5) 0;
    align-items: stretch;
  }
  .news-item-title { font-size: 1.15rem; }
}

/* =====================================================
   ADMIN DASHBOARD
   ===================================================== */

body.admin-body { background: var(--bg-soft); }

.admin-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}

/* ---- Sidebar ---- */
.admin-sidebar {
  background: var(--bg);
  border-right: 1px solid var(--border-soft);
  padding: var(--s-4) var(--s-3);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.admin-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px var(--s-3) var(--s-4);
  border-bottom: 1px solid var(--border-soft);
  margin-bottom: var(--s-4);
  text-decoration: none;
  color: var(--text);
}
.admin-brand .brand-mark { width: 32px; height: 32px; }
.admin-brand strong {
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -0.02em;
}
.admin-brand-tag {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 5px;
  background: var(--primary-50);
  color: var(--primary);
  font-size: 0.62rem;
  font-weight: 800;
  margin-left: auto;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.admin-nav-section {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-soft);
  padding: var(--s-3) var(--s-3) var(--s-1);
}
.admin-nav { display: flex; flex-direction: column; gap: 1px; }
.admin-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--r);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: background var(--t), color var(--t);
}
.admin-nav a:hover { background: var(--bg-soft); }
.admin-nav a.active {
  background: var(--primary-50);
  color: var(--primary);
  font-weight: 600;
}
.admin-nav a svg { width: 16px; height: 16px; flex-shrink: 0; }
.admin-nav-badge {
  margin-left: auto;
  background: var(--primary);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  min-width: 20px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.admin-sidebar-foot {
  margin-top: auto;
  padding: var(--s-3);
  border-top: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  gap: 10px;
}
.admin-sidebar-foot .author-avatar { width: 32px; height: 32px; font-size: 0.7rem; }
.admin-sidebar-user { display: flex; flex-direction: column; gap: 1px; font-size: 0.78rem; flex: 1; min-width: 0; }
.admin-sidebar-user strong { color: var(--text); font-weight: 600; }
.admin-sidebar-user span { color: var(--text-muted); font-size: 0.72rem; }

/* ---- Main ---- */
.admin-main {
  padding: var(--s-5) var(--s-6);
  background: var(--bg-soft);
  min-height: 100vh;
}
.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding: var(--s-3) var(--s-4);
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  margin-bottom: var(--s-5);
}
.admin-search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-pill);
  padding: 8px 16px;
  max-width: 480px;
}
.admin-search:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(164, 53, 240, 0.12); }
.admin-search svg { width: 16px; height: 16px; color: var(--text-muted); }
.admin-search input {
  border: 0; background: transparent; outline: none;
  flex: 1; font-family: inherit; font-size: 0.9rem; color: var(--text);
}
.admin-topbar-actions { display: flex; align-items: center; gap: var(--s-3); }
.admin-icon-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-soft);
  background: var(--bg);
  display: grid; place-items: center;
  cursor: pointer;
  position: relative;
  transition: all var(--t);
}
.admin-icon-btn:hover { border-color: var(--primary); background: var(--bg-soft); }
.admin-icon-btn svg { width: 16px; height: 16px; color: var(--text-muted); }
.admin-icon-btn .dot {
  position: absolute;
  top: 6px; right: 6px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid var(--bg);
}

/* ---- Page header ---- */
.admin-page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--s-4);
  margin-bottom: var(--s-5);
  flex-wrap: wrap;
}
.admin-page-head h1 {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
}
.admin-page-head p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 4px 0 0;
}

/* ---- KPI cards ---- */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-4);
  margin-bottom: var(--s-5);
}
@media (max-width: 1100px) { .kpi-grid { grid-template-columns: repeat(2, 1fr); } }
.kpi-card {
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  padding: var(--s-4);
}
.kpi-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}
.kpi-value {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.kpi-delta {
  font-size: 0.78rem;
  font-weight: 600;
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.kpi-delta.up { color: #15803D; }
.kpi-delta.down { color: #B91C1C; }
.kpi-delta.flat { color: var(--text-muted); }

/* ---- Cards & sections ---- */
.admin-card {
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  margin-bottom: var(--s-5);
}
.admin-card.flush { padding: 0; overflow: hidden; }
.admin-card.flush .admin-card-head { padding: var(--s-4) var(--s-5); border-bottom: 1px solid var(--border-soft); margin-bottom: 0; }
.admin-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-3);
  margin-bottom: var(--s-4);
}
.admin-card-head h2 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
}
.admin-card-head .head-meta { font-size: 0.85rem; color: var(--text-muted); }
.admin-card-head a { font-size: 0.85rem; font-weight: 600; color: var(--primary); text-decoration: none; }
.admin-card-head a:hover { text-decoration: underline; }

/* Two-col grid for dashboard */
.admin-grid-2 {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--s-5);
}
@media (max-width: 1100px) { .admin-grid-2 { grid-template-columns: 1fr; } }

/* ---- Tables ---- */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.admin-table thead th {
  text-align: left;
  font-weight: 600;
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 12px 16px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border-soft);
}
.admin-table tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-soft);
  vertical-align: middle;
  color: var(--text);
}
.admin-table tbody tr:last-child td { border-bottom: 0; }
.admin-table tbody tr:hover { background: var(--bg-soft); }
.admin-table .col-actions { text-align: right; white-space: nowrap; }
.admin-table .col-narrow { width: 1%; white-space: nowrap; }
.admin-table .checkbox-col { width: 1%; }
.admin-table input[type="checkbox"] {
  width: 16px; height: 16px;
  accent-color: var(--primary);
  cursor: pointer;
}

/* ---- Status badges ---- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.badge::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  display: inline-block;
}
.badge-published, .badge-active, .badge-approved, .badge-verified, .badge-paid { background: #DCFCE7; color: #15803D; }
.badge-published::before, .badge-active::before, .badge-approved::before, .badge-verified::before, .badge-paid::before { background: #16A34A; }
.badge-draft, .badge-inactive { background: #F1F5F9; color: #475569; }
.badge-draft::before, .badge-inactive::before { background: #64748B; }
.badge-pending, .badge-review, .badge-unverified, .badge-scheduled { background: #FEF3C7; color: #92400E; }
.badge-pending::before, .badge-review::before, .badge-unverified::before, .badge-scheduled::before { background: #D97706; }
.badge-rejected, .badge-suspended, .badge-failed, .badge-flagged { background: #FEE2E2; color: #B91C1C; }
.badge-rejected::before, .badge-suspended::before, .badge-failed::before, .badge-flagged::before { background: #DC2626; }
.badge-featured { background: #F3E8FF; color: #6B21A8; }
.badge-featured::before { background: #A435F0; }
.badge-free { background: #DBEAFE; color: #1E40AF; }
.badge-free::before { background: #3B82F6; }

/* ---- Action buttons ---- */
.icon-action {
  background: transparent;
  border: 1px solid transparent;
  width: 32px; height: 32px;
  border-radius: 8px;
  display: inline-grid; place-items: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: all var(--t);
  margin-left: 2px;
}
.icon-action svg { width: 14px; height: 14px; }
.icon-action:hover {
  background: var(--bg-soft);
  color: var(--primary);
  border-color: var(--border-soft);
}
.icon-action.success:hover { color: #15803D; }
.icon-action.danger:hover { color: #DC2626; }

/* ---- Filter row ---- */
.admin-filter-row {
  display: flex;
  gap: var(--s-3);
  margin-bottom: var(--s-4);
  align-items: center;
  flex-wrap: wrap;
}
.admin-filter-row .admin-search { max-width: none; flex: 1; min-width: 240px; }
.admin-select {
  padding: 9px 14px;
  border: 1px solid var(--border-soft);
  border-radius: var(--r-pill);
  background: var(--bg);
  font-size: 0.85rem;
  font-weight: 600;
  font-family: inherit;
  color: var(--text);
  cursor: pointer;
}

/* ---- Tabs ---- */
.admin-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border-soft);
  margin-bottom: var(--s-4);
}
.admin-tab {
  background: transparent;
  border: 0;
  padding: 11px 18px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color var(--t), border-color var(--t);
}
.admin-tab:hover { color: var(--text); }
.admin-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}
.admin-tab .count {
  display: inline-block;
  background: var(--bg-soft);
  border-radius: 10px;
  padding: 1px 8px;
  font-size: 0.72rem;
  margin-left: 6px;
  font-variant-numeric: tabular-nums;
}
.admin-tab.active .count { background: var(--primary-50); color: var(--primary); }

/* ---- Activity feed ---- */
.activity-feed { display: flex; flex-direction: column; }
.activity-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-soft);
  font-size: 0.875rem;
}
.activity-item:last-child { border-bottom: 0; padding-bottom: 0; }
.activity-icon {
  width: 32px; height: 32px;
  background: var(--primary-50);
  color: var(--primary);
  border-radius: 50%;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.activity-icon svg { width: 14px; height: 14px; }
.activity-content { flex: 1; }
.activity-content strong { color: var(--text); font-weight: 600; }
.activity-time { color: var(--text-muted); font-size: 0.75rem; margin-top: 2px; display: block; }

/* ---- User cell ---- */
.cell-user { display: flex; align-items: center; gap: 10px; }
.cell-user .author-avatar { width: 32px; height: 32px; font-size: 0.72rem; }
.cell-user-info { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.cell-user-name { font-weight: 600; color: var(--text); }
.cell-user-email { font-size: 0.78rem; color: var(--text-muted); }

/* ---- Quick actions on dashboard ---- */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-3);
}
@media (max-width: 1100px) { .quick-actions { grid-template-columns: repeat(2, 1fr); } }
.quick-action {
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  padding: var(--s-4);
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all var(--t);
}
.quick-action:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(164, 53, 240, 0.25);
}
.quick-action-icon {
  width: 40px; height: 40px;
  background: var(--primary-50);
  color: var(--primary);
  border-radius: 10px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.quick-action-icon svg { width: 18px; height: 18px; }
.quick-action-text strong { display: block; font-weight: 700; font-size: 0.95rem; color: var(--text); }
.quick-action-text span { font-size: 0.78rem; color: var(--text-muted); }

/* ---- Moderation card ---- */
.mod-card {
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  padding: var(--s-4);
  margin-bottom: var(--s-3);
}
.mod-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: var(--s-3);
  flex-wrap: wrap;
}
.mod-card-meta { font-size: 0.78rem; color: var(--text-muted); }
.mod-card-body {
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--r);
  padding: var(--s-3);
  margin-bottom: var(--s-3);
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text);
}
.mod-card-body.code {
  font-family: 'JetBrains Mono', 'SF Mono', Consolas, monospace;
  font-size: 0.825rem;
}
.mod-card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ---- Pagination ---- */
.admin-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s-3) var(--s-5);
  font-size: 0.85rem;
  color: var(--text-muted);
}
.admin-pagination button {
  padding: 6px 12px;
  border: 1px solid var(--border-soft);
  border-radius: var(--r-sm);
  background: var(--bg);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: all var(--t);
}
.admin-pagination button:hover { border-color: var(--primary); color: var(--primary); }
.admin-pagination button:disabled { opacity: 0.5; cursor: not-allowed; }

/* Mobile */
@media (max-width: 880px) {
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--border-soft); }
  .admin-main { padding: var(--s-3); }
  .kpi-grid { grid-template-columns: 1fr; }
  .admin-card { padding: var(--s-3); }
  .admin-card.flush .admin-card-head { padding: var(--s-3); }
  .admin-table { font-size: 0.78rem; }
  .admin-table thead th, .admin-table tbody td { padding: 10px; }
  .quick-actions { grid-template-columns: 1fr; }
}

/* ---------- Cookie consent banner ---------- */
.gj-consent {
  position: fixed;
  left: var(--s-4);
  right: var(--s-4);
  bottom: var(--s-4);
  max-width: 900px;
  margin: 0 auto;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: 0 18px 48px rgba(30, 12, 60, 0.18);
  padding: var(--s-4) var(--s-5);
  z-index: 9999;
}
.gj-consent-inner {
  display: flex;
  gap: var(--s-5);
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.gj-consent-text { flex: 1; min-width: 260px; }
.gj-consent-text strong { display: block; margin-bottom: var(--s-1); font-size: 0.98rem; }
.gj-consent-text p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.5; margin: 0; }
.gj-consent-text a { color: inherit; text-decoration: underline; }
.gj-consent-actions {
  display: flex;
  gap: var(--s-2);
  flex-shrink: 0;
}
.gj-consent-actions .btn { min-width: 96px; }
@media (max-width: 640px) {
  .gj-consent { padding: var(--s-3) var(--s-4); }
  .gj-consent-actions { width: 100%; }
  .gj-consent-actions .btn { flex: 1; }
}

/* ---------- Product page: share buttons ---------- */
.product-share {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-2);
  margin-bottom: var(--s-2);
}
.product-share .share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 var(--s-2);
  height: 38px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  transition: border-color 120ms ease, background 120ms ease, transform 120ms ease;
}
.product-share .share-btn:hover {
  border-color: var(--primary);
  background: var(--bg-tinted);
  color: var(--primary);
}
.product-share .share-btn:active { transform: translateY(1px); }
.product-share .share-btn svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  opacity: 0.85;
}
.product-share .share-btn:hover svg { opacity: 1; }
.product-share .share-label {
  display: inline-block;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* ---------- Product page: extra content sections ---------- */

/* Free trial / open-source pills in tag-row */
.pill-trial {
  background: #DCFCE7;
  color: #166534;
  border-color: #BBF7D0;
}
.pill-oss {
  background: #FEF3C7;
  color: #92400E;
  border-color: #FDE68A;
  text-decoration: none;
}
.pill-oss[href]:hover { background: #FDE68A; }

/* "Best for" — soft pills, larger than tags */
.bestfor-pills {
  display: flex;
  gap: var(--s-2);
  flex-wrap: wrap;
}
.bestfor-pill {
  display: inline-block;
  background: var(--bg-tinted);
  color: var(--text);
  padding: 8px 14px;
  border-radius: var(--r-pill);
  font-size: 0.9rem;
  font-weight: 500;
}

/* Pros & Cons two-column grid */
.proscons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-4);
}
.proscons-col {
  border: 1px solid var(--border-soft);
  border-radius: var(--r);
  padding: var(--s-4);
}
.proscons-pros {
  background: linear-gradient(180deg, #F0FDF4 0%, var(--bg) 70%);
  border-color: #BBF7D0;
}
.proscons-cons {
  background: linear-gradient(180deg, #FEF2F2 0%, var(--bg) 70%);
  border-color: #FECACA;
}
.proscons-list {
  margin: 0;
  padding-left: 20px;
  color: var(--text);
  line-height: 1.7;
}
.proscons-list li { margin-bottom: var(--s-2); }
.proscons-count {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  background: rgba(0,0,0,0.06);
  border-radius: var(--r-pill);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  vertical-align: middle;
}

/* Submit form: repeating sections (team makers + FAQs) */
.maker-slot,
.faq-slot {
  padding: var(--s-3);
  border: 1px dashed var(--border);
  border-radius: var(--r-sm);
  background: var(--bg-soft);
  margin-bottom: var(--s-3);
}
.maker-slot:last-child,
.faq-slot:last-child { margin-bottom: 0; }
.maker-slot .field,
.faq-slot .field { margin-bottom: var(--s-2); }
.maker-slot .field:last-child,
.faq-slot .field:last-child { margin-bottom: 0; }
.faq-slot .field label { font-weight: 600; font-size: 0.88rem; }

/* URL + Upload combo field (submit form) */
.upload-field {
  display: flex;
  gap: var(--s-2);
  align-items: stretch;
}
.upload-field input[type="url"] { flex: 1; min-width: 0; }
.upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 var(--s-3);
  height: 42px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--bg);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: border-color 120ms ease, background 120ms ease, color 120ms ease;
}
.upload-btn:hover {
  border-color: var(--primary);
  background: var(--bg-tinted);
  color: var(--primary);
}
.upload-status {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 6px;
}
.upload-status.ok  { color: #166534; }
.upload-status.err { color: #B91C1C; }
.proscons-pros h3 { color: #166534; }
.proscons-cons h3 { color: #991B1B; }
@media (max-width: 640px) {
  .proscons-grid { grid-template-columns: 1fr; }
}

/* Tags — clickable, link to /listings?tag=X */
.tag-pills {
  display: flex;
  gap: var(--s-2);
  flex-wrap: wrap;
}
.tag-pill {
  display: inline-block;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: var(--r-pill);
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 120ms ease, color 120ms ease;
}
.tag-pill:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* FAQ — collapsible details. Answer container styling for the .faq-answer
   wrapper used in product.html (the rest is handled above). */
.faq-item > .faq-answer {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border-soft);
}

/* Integrations — pills like tags but with subtle border, no link styling */
.integration-pills {
  display: flex;
  gap: var(--s-2);
  flex-wrap: wrap;
}
.integration-pill {
  display: inline-block;
  background: var(--bg-tinted);
  color: var(--text);
  padding: 6px 14px;
  border-radius: var(--r-pill);
  font-size: 0.85rem;
  font-weight: 500;
}

/* Team — card grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--s-3);
}
.team-card {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
  border: 1px solid var(--border-soft);
  border-radius: var(--r);
  background: var(--bg);
}
.team-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-tinted);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.team-avatar img { width: 100%; height: 100%; object-fit: cover; }
.team-initials {
  font-weight: 700;
  color: var(--primary);
  font-size: 0.92rem;
}
.team-meta { min-width: 0; }
.team-name {
  font-weight: 600;
  color: var(--text);
  font-size: 0.92rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.team-role {
  color: var(--text-muted);
  font-size: 0.78rem;
  margin-top: 2px;
}

/* Save product button — sidebar */
.btn-save {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-save svg { transition: fill 120ms ease; fill: none; }
.btn-save.is-saved {
  background: var(--bg-tinted);
  color: var(--primary);
  border-color: var(--primary);
}
.btn-save.is-saved svg { fill: var(--primary); stroke: var(--primary); }

/* Per-review share button */
.review-actions {
  display: flex;
  gap: var(--s-3);
  margin-top: var(--s-3);
}
.review-share {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text-muted);
  font: inherit;
  font-size: 0.78rem;
  cursor: pointer;
  transition: border-color 120ms ease, color 120ms ease;
}
.review-share:hover { border-color: var(--primary); color: var(--primary); }
.review-share svg { opacity: 0.75; }

/* Submit landing page: "why list" benefit grid */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-4);
}
.why-card {
  padding: var(--s-4);
  border: 1px solid var(--border-soft);
  border-radius: var(--r);
  background: var(--bg);
}
.why-card h3 { font-size: 1rem; margin: 0 0 var(--s-2); color: var(--text); }
.why-card p  { color: var(--text-muted); margin: 0; line-height: 1.55; font-size: 0.92rem; }
.why-card code {
  background: var(--bg-tinted);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.85em;
  color: var(--primary);
}
@media (max-width: 640px) {
  .why-grid { grid-template-columns: 1fr; }
}

/* Submit landing page: numbered "how it works" list */
.how-list {
  counter-reset: how;
  list-style: none;
  padding: 0;
  margin: 0;
}
.how-list li {
  counter-increment: how;
  position: relative;
  padding: var(--s-3) var(--s-4) var(--s-3) calc(var(--s-7) + 4px);
  margin-bottom: var(--s-2);
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--r);
  color: var(--text-muted);
  line-height: 1.5;
}
.how-list li::before {
  content: counter(how);
  position: absolute;
  left: var(--s-3);
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.9rem;
}
.how-list strong { color: var(--text); }

/* Listings page: active URL-driven filter chips (tag etc.) */
.listings-active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-bottom: var(--s-3);
}
.active-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px 6px 14px;
  background: var(--bg-tinted);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  font-size: 0.85rem;
  color: var(--text);
}
.active-filter-label { color: var(--text-muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; font-weight: 600; }
.active-filter-chip strong { color: var(--primary); font-weight: 700; }
.active-filter-clear {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1;
  padding: 0 4px;
  border-radius: 50%;
  transition: color 120ms ease, background 120ms ease;
}
.active-filter-clear:hover { color: var(--primary); background: rgba(0,0,0,0.05); }

/* Tag picker (submit form) */
.tag-picker {
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--bg);
  overflow: hidden;
  /* Opt the whole picker out of Chrome auto dark mode — keeps the pill
     borders/backgrounds visible on Android where the rest of the page
     may be auto-inverted. */
  color-scheme: light;
}
.tag-picker-selected {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-soft);
  min-height: 44px;
  align-items: center;
}
.tag-picker-empty-state {
  color: var(--text-muted);
  font-size: 0.85rem;
}
.tag-picker-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 6px 4px 10px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--r-pill);
  font-size: 0.82rem;
  font-weight: 600;
}
.tag-picker-chip-x {
  background: rgba(255,255,255,0.25);
  border: none;
  color: #fff;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.tag-picker-chip-x:hover { background: rgba(255,255,255,0.45); }
.tag-picker-search {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--border-soft);
  padding: 10px 12px;
  font: inherit;
  font-size: 0.9rem;
  background: var(--bg-soft);
  outline: none;
}
.tag-picker-search:focus { background: var(--bg); }
.tag-picker-options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 12px;
  max-height: 220px;
  overflow-y: auto;
  /* Tell Chrome's auto dark mode to leave this region's bg alone */
  color-scheme: light;
}
.tag-picker-option {
  /* Force inline-block + native style suppression so Android Chrome stops
     rendering these as plain buttons with no visual chrome. */
  display: inline-block;
  -webkit-appearance: none;
  appearance: none;
  padding: 6px 12px;
  /* Hex literals survive Chrome auto-dark-mode inversion better than
     CSS variables tied to a light theme that gets inverted. */
  background-color: #F5EFFF;
  border: 1px solid #D9C8F2;
  border-radius: 999px;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  color: #0F0A1F;
  cursor: pointer;
  /* Fallback for gap on older browsers (Android WebView pre-84) */
  margin: 0;
  transition: border-color 120ms ease, background-color 120ms ease, color 120ms ease;
}
.tag-picker-option:hover { border-color: #A435F0; color: #A435F0; }
.tag-picker-option.selected {
  background-color: #A435F0;
  color: #ffffff;
  border-color: #A435F0;
}
.tag-picker-option.selected:hover { background-color: #A435F0; color: #ffffff; opacity: 0.9; }
.tag-picker-empty {
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 8px;
}

/* Claim this product (seed product banner) */
.claim-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding: var(--s-3) var(--s-4);
  background: linear-gradient(135deg, var(--bg-tinted), var(--bg-soft));
  border: 1px solid var(--border);
  border-radius: var(--r);
  margin-bottom: var(--s-4);
}
.claim-banner-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.claim-banner-text strong { font-size: 0.95rem; color: var(--text); }
.claim-banner-text span { color: var(--text-muted); font-size: 0.82rem; }
.claim-banner .btn { flex-shrink: 0; white-space: nowrap; }
@media (max-width: 640px) {
  .claim-banner { flex-direction: column; align-items: stretch; }
  .claim-banner .btn { width: 100%; }
}
.claim-form-wrap {
  padding: var(--s-5);
  margin-bottom: var(--s-5);
}
