/* ============================================================
   AICOMMSLIBRARY — Shared Design System
   ============================================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

/* ============================================================
   CSS Custom Properties
   ============================================================ */
:root {
  /* Brand colours */
  --ind900: #1E1B4B;
  --ind800: #2D2A6B;
  --ind600: #4F46E5;
  --ind500: #6366F1;
  --ind400: #818CF8;
  --ind100: #E0E7FF;
  --ind50:  #EEF2FF;

  --amb500: #F59E0B;
  --amb400: #FBBF24;
  --amb100: #FEF3C7;

  /* Slate neutrals */
  --slate900: #0F172A;
  --slate800: #1E293B;
  --slate700: #334155;
  --slate600: #475569;
  --slate500: #64748B;
  --slate400: #94A3B8;
  --slate300: #CBD5E1;
  --slate200: #E2E8F0;
  --slate100: #F1F5F9;
  --slate50:  #F8FAFC;
  --warm:     #FAFAF9;
  --white:    #FFFFFF;

  /* Semantic tokens */
  --text-primary:    var(--slate900);
  --text-secondary:  var(--slate600);
  --text-muted:      var(--slate400);
  --text-inverse:    var(--white);
  --bg-page:         var(--warm);
  --bg-card:         var(--white);
  --bg-subtle:       var(--slate50);
  --bg-navy:         var(--ind900);
  --border-light:    var(--slate200);
  --border-medium:   var(--slate300);

  /* Spacing scale (4px base) */
  --s1: 4px;   --s2: 8px;   --s3: 12px;  --s4: 16px;
  --s5: 20px;  --s6: 24px;  --s8: 32px;  --s10: 40px;
  --s12: 48px; --s14: 56px; --s16: 64px; --s20: 80px;
  --s24: 96px; --s32: 128px;

  /* Border radii */
  --r-sm:   6px;
  --r-md:   10px;
  --r-lg:   16px;
  --r-xl:   24px;
  --r-full: 9999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-sm: 0 1px 4px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.09);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --shadow-card: 0 2px 8px rgba(15,23,42,0.06), 0 0 1px rgba(15,23,42,0.08);

  /* Transitions */
  --ease: 180ms ease;
  --ease-lg: 260ms ease;

  /* Layout */
  --max-w: 1200px;
  --nav-h: 90px;
}

/* ============================================================
   Reset & Base
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  /* Leave room for the sticky nav when scrolling to anchor links
     (e.g. TOC items on the Privacy & Terms pages). */
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-primary);
  background: var(--bg-page);
  line-height: 1.65;
  min-height: 100vh;
}

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

img { max-width: 100%; display: block; }

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
}

ul, ol { list-style: none; }

/* ============================================================
   Typography
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: clamp(1.125rem, 2vw, 1.375rem); }
h4 { font-size: 1.125rem; }
h5 { font-size: 1rem; }

p { line-height: 1.7; }

.text-sm   { font-size: 0.875rem; }
.text-xs   { font-size: 0.75rem; }
.text-lg   { font-size: 1.125rem; }
.text-xl   { font-size: 1.25rem; }
.text-muted { color: var(--text-secondary); }
.text-navy  { color: var(--ind900); }
.text-indigo { color: var(--ind600); }
.text-amber  { color: var(--amb500); }
.font-mono  { font-family: 'JetBrains Mono', monospace; }
.font-heading { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }

/* ============================================================
   Layout Utilities
   ============================================================ */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--s6);
}

.container--narrow {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 var(--s6);
}

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s6); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s6); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s6); }
.grid-6 { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--s4); }

.flex   { display: flex; }
.flex-center { display: flex; align-items: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col { display: flex; flex-direction: column; }
.gap-1 { gap: var(--s1); } .gap-2 { gap: var(--s2); } .gap-3 { gap: var(--s3); }
.gap-4 { gap: var(--s4); } .gap-6 { gap: var(--s6); } .gap-8 { gap: var(--s8); }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ============================================================
   Navigation
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: var(--ind900);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
}

.nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--s6);
  position: relative;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--s3);
  text-decoration: none;
}

.nav__logo-mark {
  width: 36px;
  height: 36px;
  background: var(--ind600);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  font-size: 0.75rem;
  color: var(--white);
  letter-spacing: -0.03em;
  flex-shrink: 0;
}

.nav__logo-text {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--white);
  line-height: 1;
}

.nav__logo-sub {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 0.6875rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: block;
  margin-top: 2px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--s8);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav__link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  transition: color var(--ease);
  text-decoration: none;
}

.nav__link:hover,
.nav__link.active {
  color: var(--white);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--s3);
}

/* Signed-in user button in nav */
.nav__user-btn {
  display: flex;
  align-items: center;
  gap: var(--s2);
  padding: var(--s1) var(--s3) var(--s1) var(--s1);
  border-radius: var(--r-full);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  text-decoration: none;
  transition: background var(--ease);
  cursor: pointer;
}
.nav__user-btn:hover { background: rgba(255,255,255,0.18); }

.nav__avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ind500);
  color: var(--white);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav__user-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1;
  border-radius: var(--r-full);
  padding: var(--s3) var(--s6);
  transition: all var(--ease);
  cursor: pointer;
  border: none;
  text-decoration: none;
  white-space: nowrap;
}

.btn--primary {
  background: var(--ind600);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(79,70,229,0.3);
}

.btn--primary:hover {
  background: var(--ind500);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(79,70,229,0.4);
}

.btn--amber {
  background: var(--amb500);
  color: var(--slate900);
  box-shadow: 0 2px 8px rgba(245,158,11,0.3);
  animation: amber-pulse 2.5s ease-in-out infinite;
}

.btn--amber:hover {
  background: var(--amb400);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(245,158,11,0.4);
}

.btn--ghost {
  background: rgba(255,255,255,0.1);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.2);
}

.btn--ghost:hover {
  background: rgba(255,255,255,0.18);
}

.btn--outline {
  background: transparent;
  color: var(--ind600);
  border: 1.5px solid var(--ind600);
}

.btn--outline:hover {
  background: var(--ind50);
}

.btn--sm {
  font-size: 0.8125rem;
  padding: var(--s2) var(--s4);
}

.btn--lg {
  font-size: 1.0625rem;
  padding: var(--s4) var(--s8);
}

.btn--icon {
  padding: var(--s2);
  border-radius: var(--r-sm);
}

/* ============================================================
   Hero Section
   ============================================================ */
.hero {
  background: linear-gradient(135deg, var(--ind900) 0%, var(--ind800) 50%, #2a1f6b 100%);
  padding: var(--s16) 0 var(--s14);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(99,102,241,0.2) 0%, transparent 70%);
  pointer-events: none;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  background: rgba(99,102,241,0.2);
  border: 1px solid rgba(99,102,241,0.35);
  border-radius: var(--r-full);
  padding: var(--s1) var(--s4);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ind400);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: var(--s6);
}

.hero__title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  color: var(--white);
  line-height: 1.15;
  margin-bottom: var(--s6);
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.hero__title em {
  font-style: normal;
  color: var(--amb500);
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: rgba(255,255,255,0.72);
  max-width: 560px;
  margin: 0 auto var(--s10);
  line-height: 1.6;
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s4);
  flex-wrap: wrap;
  margin-bottom: var(--s12);
}

.hero__stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s5);
  flex-wrap: nowrap;
}

.hero__stat {
  text-align: center;
}

.hero__stat-num {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--white);
  line-height: 1;
}

.hero__stat-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.55);
  margin-top: 4px;
  white-space: nowrap;
}

.hero__divider {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,0.15);
}

/* ============================================================
   Search Bar
   ============================================================ */
.search-bar {
  position: relative;
  max-width: 600px;
  margin: 0 auto var(--s8);
}

.search-bar__input {
  width: 100%;
  padding: var(--s4) var(--s14) var(--s4) var(--s14);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  background: rgba(255,255,255,0.1);
  border: 1.5px solid rgba(255,255,255,0.2);
  border-radius: var(--r-full);
  color: var(--white);
  outline: none;
  transition: all var(--ease);
  backdrop-filter: blur(8px);
}

.search-bar__input::placeholder { color: rgba(255,255,255,0.45); }

.search-bar__input:focus {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.4);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.25);
}

.search-bar--light .search-bar__input {
  background: var(--white);
  border-color: var(--border-light);
  color: var(--text-primary);
}

.search-bar--light .search-bar__input::placeholder { color: var(--slate400); }

.search-bar--light .search-bar__input:focus {
  border-color: var(--ind600);
  box-shadow: 0 0 0 3px rgba(79,70,229,0.12);
}

.search-bar__icon {
  position: absolute;
  left: var(--s5);
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,0.5);
  pointer-events: none;
}

.search-bar--light .search-bar__icon { color: var(--slate400); }

.search-bar__clear {
  position: absolute;
  right: var(--s4);
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  border: none;
  border-radius: var(--r-full);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  transition: all var(--ease);
  font-size: 1rem;
  display: none;
}

.search-bar__clear.visible { display: flex; }
.search-bar__clear:hover { background: rgba(255,255,255,0.25); }

.search-bar--light .search-bar__clear {
  background: var(--slate200);
  color: var(--slate600);
}
.search-bar--light .search-bar__clear:hover { background: var(--slate300); }

/* ============================================================
   Category Cards (Homepage Grid)
   ============================================================ */
.section { padding: var(--s16) 0; }
.section--light { background: var(--white); }
.section--subtle { background: var(--slate50); }
.section--navy { background: var(--ind900); }

.section__header {
  text-align: center;
  margin-bottom: var(--s12);
}

.section__eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ind600);
  margin-bottom: var(--s3);
}

.section__title { margin-bottom: var(--s4); }

.section__subtitle {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
}

.cat-card {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: var(--s6);
  border: 1.5px solid var(--border-light);
  cursor: pointer;
  transition: all var(--ease-lg);
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  text-decoration: none;
  color: inherit;
}

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

.cat-card__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.cat-card__name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 1.0625rem;
}

.cat-card__desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
  flex: 1;
}

.cat-card__count {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ind600);
  background: var(--ind50);
  border: 1px solid var(--ind100);
  border-radius: var(--r-full);
  padding: 2px 10px;
  width: fit-content;
}

/* ============================================================
   Prompt Cards
   ============================================================ */
.prompt-card {
  background: var(--white);
  border-radius: var(--r-lg);
  border: 1.5px solid var(--border-light);
  padding: var(--s5) var(--s6);
  transition: all var(--ease-lg);
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  position: relative;
}

.prompt-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--ind400);
}

.prompt-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s3);
}

.prompt-card__badges {
  display: flex;
  gap: var(--s2);
  flex-wrap: wrap;
  flex: 1;
}

.prompt-card__title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.3;
  color: var(--text-primary);
}

.prompt-card__desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.55;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.prompt-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--s2);
  border-top: 1px solid var(--border-light);
}

.prompt-card__meta {
  display: flex;
  align-items: center;
  gap: var(--s4);
}

.prompt-card__meta-item {
  display: flex;
  align-items: center;
  gap: var(--s1);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.prompt-card__arrow {
  color: var(--ind600);
  transition: transform var(--ease);
  font-size: 1rem;
}

.prompt-card:hover .prompt-card__arrow { transform: translateX(4px); }

/* Editors' Pick ribbon */
.prompt-card__pick {
  position: absolute;
  top: -1px;
  right: var(--s6);
  background: var(--amb500);
  color: var(--slate900);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: var(--s1) var(--s2);
  border-radius: 0 0 var(--r-sm) var(--r-sm);
}

/* ============================================================
   Badges / Pills
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  padding: 4px 10px;
  border-radius: var(--r-full);
}

.badge--difficulty-beginner { background: #DCFCE7; color: #166534; }
.badge--difficulty-intermediate { background: #FEF9C3; color: #854D0E; }
.badge--difficulty-advanced { background: #FEE2E2; color: #991B1B; }

.badge--cat {
  background: var(--ind50);
  color: var(--ind600);
  border: 1px solid var(--ind100);
}

.badge--subcat {
  background: var(--slate100);
  color: var(--slate700);
}

.badge--new {
  background: var(--amb100);
  color: #92400E;
}

/* ============================================================
   Filter / Pill Row
   ============================================================ */
.filter-row {
  display: flex;
  align-items: center;
  gap: var(--s2);
  flex-wrap: wrap;
  padding: var(--s4) 0;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  padding: var(--s2) var(--s4);
  border-radius: var(--r-full);
  font-size: 0.875rem;
  font-weight: 500;
  border: 1.5px solid var(--border-medium);
  background: var(--white);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--ease);
  white-space: nowrap;
}

.filter-pill:hover {
  border-color: var(--ind600);
  color: var(--ind600);
}

.filter-pill.active {
  background: var(--ind600);
  border-color: var(--ind600);
  color: var(--white);
}

.filter-pill__icon { font-size: 1rem; }

/* ============================================================
   Library Layout (sidebar + grid)
   ============================================================ */
.library-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: var(--s8);
  align-items: start;
}

.sidebar {
  background: var(--white);
  border-radius: var(--r-lg);
  border: 1.5px solid var(--border-light);
  overflow: hidden;
  position: sticky;
  /* 90px nav + ~58px filter bar + 12px gap */
  top: calc(var(--nav-h) + 70px);
  max-height: calc(100vh - var(--nav-h) - 90px);
  display: flex;
  flex-direction: column;
}

.sidebar__header {
  padding: var(--s4) var(--s5);
  background: var(--slate50);
  border-bottom: 1px solid var(--border-light);
}

.sidebar__title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.sidebar__list {
  padding: var(--s2) 0;
  overflow-y: auto;
  flex: 1;
  min-height: 0; /* required for flex scroll to work */
}

.sidebar__item {
  display: flex;
  align-items: center;
  gap: var(--s3);
  padding: var(--s3) var(--s5);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--ease);
  text-decoration: none;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}

.sidebar__item:hover {
  background: var(--ind50);
  color: var(--ind600);
}

.sidebar__item.active {
  background: var(--ind50);
  color: var(--ind600);
  font-weight: 600;
}

.sidebar__item-icon { font-size: 1.125rem; flex-shrink: 0; }

.sidebar__item-count {
  margin-left: auto;
  font-size: 0.75rem;
  background: var(--slate100);
  color: var(--text-muted);
  border-radius: var(--r-full);
  padding: 2px 8px;
  font-weight: 600;
}

.sidebar__item.active .sidebar__item-count {
  background: var(--ind100);
  color: var(--ind600);
}

/* ============================================================
   Prompt Grid
   ============================================================ */
.prompt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: var(--s4);
}

.prompt-grid--2col {
  grid-template-columns: repeat(2, 1fr);
}

.prompt-grid--3col {
  grid-template-columns: repeat(3, 1fr);
}

/* ============================================================
   Results Header
   ============================================================ */
.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--s5);
  flex-wrap: wrap;
  gap: var(--s3);
}

.results-count {
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.results-count strong {
  color: var(--text-primary);
  font-weight: 600;
}

.sort-select {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--white);
  border: 1.5px solid var(--border-light);
  border-radius: var(--r-sm);
  padding: var(--s2) var(--s3);
  cursor: pointer;
  outline: none;
  transition: border-color var(--ease);
}

.sort-select:focus { border-color: var(--ind600); }

/* ============================================================
   Category Hero Band
   ============================================================ */
.cat-hero {
  padding: var(--s12) 0 var(--s10);
  border-bottom: 1px solid var(--border-light);
}

.cat-hero--bg {
  background: linear-gradient(135deg, var(--ind900) 0%, var(--ind800) 100%);
}

.cat-hero__inner {
  display: flex;
  align-items: center;
  gap: var(--s6);
}

.cat-hero__icon {
  width: 72px;
  height: 72px;
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
}

.cat-hero__name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: var(--white);
  margin-bottom: var(--s2);
}

.cat-hero__desc {
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.7);
  max-width: 600px;
}

.cat-hero__meta {
  display: flex;
  align-items: center;
  gap: var(--s6);
  margin-top: var(--s4);
  flex-wrap: wrap;
}

.cat-hero__meta-item {
  display: flex;
  align-items: center;
  gap: var(--s2);
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
}

/* ============================================================
   Subcategory Tabs
   ============================================================ */
.subcat-tabs {
  background: var(--white);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: var(--nav-h);
  z-index: 50;
}

.subcat-tabs__inner {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.subcat-tabs__inner::-webkit-scrollbar { display: none; }

.subcat-tab {
  display: flex;
  align-items: center;
  gap: var(--s2);
  padding: var(--s4) var(--s5);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  border-bottom: 2.5px solid transparent;
  transition: all var(--ease);
  white-space: nowrap;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  font-family: inherit;
}

.subcat-tab:hover { color: var(--ind600); }

.subcat-tab.active {
  color: var(--ind600);
  border-bottom-color: var(--ind600);
  font-weight: 600;
}

/* ============================================================
   Breadcrumb
   ============================================================ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--s2);
  padding: var(--s4) 0;
  flex-wrap: wrap;
}

.breadcrumb__item {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--ease);
}

.breadcrumb__item:hover { color: var(--ind600); }
.breadcrumb__item--current { color: var(--text-secondary); font-weight: 500; }

.breadcrumb__sep {
  font-size: 0.875rem;
  color: var(--slate300);
}

/* ============================================================
   Prompt Detail Page
   ============================================================ */
.prompt-detail {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--s8);
  align-items: start;
  padding: var(--s10) 0 var(--s16);
}

.prompt-detail__main {}

.prompt-detail__sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 20px);
  display: flex;
  flex-direction: column;
  gap: var(--s5);
}

.prompt-header {
  margin-bottom: var(--s8);
}

.prompt-header__badges {
  display: flex;
  align-items: center;
  gap: var(--s2);
  margin-bottom: var(--s4);
  flex-wrap: wrap;
}

.prompt-header__title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin-bottom: var(--s4);
}

.prompt-header__desc {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--s6);
}

.prompt-header__meta {
  display: flex;
  align-items: center;
  gap: var(--s5);
  padding: var(--s4) var(--s5);
  background: var(--slate50);
  border-radius: var(--r-md);
  flex-wrap: wrap;
}

.prompt-header__meta-item {
  display: flex;
  align-items: center;
  gap: var(--s2);
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.prompt-header__meta-item strong { color: var(--text-primary); }

/* Prompt block */
.prompt-block {
  background: var(--ind900);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: var(--s8);
}

.prompt-block__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s3) var(--s5);
  background: rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.prompt-block__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  font-family: 'JetBrains Mono', monospace;
}

.prompt-block__copy {
  display: flex;
  align-items: center;
  gap: var(--s2);
  padding: var(--s2) var(--s4);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--r-sm);
  color: rgba(255,255,255,0.8);
  font-size: 0.8125rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all var(--ease);
}

.prompt-block__copy:hover {
  background: rgba(255,255,255,0.18);
  color: var(--white);
}

.prompt-block__copy.copied {
  background: rgba(34,197,94,0.2);
  border-color: rgba(34,197,94,0.3);
  color: #4ADE80;
}

.prompt-block__text {
  padding: var(--s6);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9375rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.9);
  white-space: pre-wrap;
  word-break: break-word;
}

.prompt-block__text .var-highlight {
  background: rgba(245,158,11,0.2);
  border: 1px solid rgba(245,158,11,0.35);
  border-radius: 4px;
  padding: 0 4px;
  color: var(--amb400);
}

/* Variables table */
.vars-section { margin-bottom: var(--s8); }

.vars-section__title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 1.0625rem;
  margin-bottom: var(--s4);
  display: flex;
  align-items: center;
  gap: var(--s2);
}

.vars-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1.5px solid var(--border-light);
}

.vars-table thead {
  background: var(--slate50);
}

.vars-table th {
  padding: var(--s3) var(--s4);
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-light);
}

.vars-table td {
  padding: var(--s3) var(--s4);
  font-size: 0.9375rem;
  border-bottom: 1px solid var(--border-light);
  vertical-align: top;
}

.vars-table tbody tr:last-child td { border-bottom: none; }

.vars-table tbody tr:hover { background: var(--slate50); }

.vars-table .var-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8125rem;
  color: var(--amb500);
  font-weight: 500;
  white-space: nowrap;
}

/* Tips block */
.tips-block {
  background: linear-gradient(135deg, var(--ind50) 0%, #EEF9FF 100%);
  border: 1.5px solid var(--ind100);
  border-radius: var(--r-lg);
  padding: var(--s6);
  margin-bottom: var(--s8);
}

.tips-block__title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 1.0625rem;
  margin-bottom: var(--s4);
  color: var(--ind900);
  display: flex;
  align-items: center;
  gap: var(--s2);
}

.tips-block__list { display: flex; flex-direction: column; gap: var(--s3); }

.tips-block__item {
  display: flex;
  gap: var(--s3);
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--slate700);
}

.tips-block__bullet {
  width: 20px;
  height: 20px;
  background: var(--ind600);
  border-radius: var(--r-full);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--white);
}

/* Sidebar cards on detail page */
.info-card {
  background: var(--white);
  border-radius: var(--r-lg);
  border: 1.5px solid var(--border-light);
  overflow: hidden;
}

.info-card__header {
  padding: var(--s4) var(--s5);
  background: var(--slate50);
  border-bottom: 1px solid var(--border-light);
}

.info-card__title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.info-card__body { padding: var(--s5); }

/* ============================================================
   "How It Works" Section
   ============================================================ */
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s8);
  text-align: center;
}

.how-step { position: relative; }

.how-step__num {
  width: 52px;
  height: 52px;
  background: var(--ind600);
  border-radius: var(--r-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--white);
  margin: 0 auto var(--s4);
  position: relative;
  z-index: 1;
}

.how-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 26px;
  left: calc(50% + 32px);
  right: calc(-50% + 32px);
  height: 1.5px;
  background: var(--border-medium);
  z-index: 0;
}

.how-step__title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 1.0625rem;
  margin-bottom: var(--s2);
}

.how-step__desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================================
   Callout / CTA Block
   ============================================================ */
.callout {
  background: linear-gradient(135deg, var(--ind900) 0%, #2D1B69 100%);
  border-radius: var(--r-xl);
  padding: var(--s12) var(--s10);
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.callout::before {
  content: '';
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(99,102,241,0.25) 0%, transparent 70%);
  pointer-events: none;
}

.callout__eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amb500);
  margin-bottom: var(--s3);
  position: relative;
}

.callout__title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: var(--s4);
  color: var(--white);
  position: relative;
}

.callout__desc {
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.75);
  max-width: 500px;
  margin: 0 auto var(--s8);
  line-height: 1.6;
  position: relative;
}

.callout__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s4);
  flex-wrap: wrap;
  position: relative;
}

/* ============================================================
   Stars / Rating
   ============================================================ */
.stars {
  display: flex;
  align-items: center;
  gap: 2px;
  color: var(--amb500);
  font-size: 0.875rem;
}

.stars__count {
  margin-left: var(--s1);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ============================================================
   Empty / No Results
   ============================================================ */
.empty-state {
  text-align: center;
  padding: var(--s16) var(--s8);
  color: var(--text-secondary);
}

.empty-state__icon {
  font-size: 3rem;
  margin-bottom: var(--s4);
  opacity: 0.5;
}

.empty-state__title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-primary);
  margin-bottom: var(--s2);
}

.empty-state__desc {
  font-size: 0.9375rem;
  max-width: 380px;
  margin: 0 auto var(--s6);
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: var(--ind900);
  padding: var(--s16) 0 var(--s8);
  color: rgba(255,255,255,0.65);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--s8);
  margin-bottom: var(--s12);
}

.footer__brand-desc {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.6);
  margin-top: var(--s4);
  max-width: 280px;
}

.footer__heading {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.85);
  margin-bottom: var(--s4);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
}

.footer__link {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color var(--ease);
}

.footer__link:hover { color: var(--amb500); }

.footer__bottom {
  padding-top: var(--s6);
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s4);
}

.footer__copy {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.4);
}

/* ============================================================
   Utility / Misc
   ============================================================ */
.divider {
  height: 1px;
  background: var(--border-light);
  margin: var(--s8) 0;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: var(--r-full);
  background: var(--slate100);
  color: var(--slate700);
}

.highlight { color: var(--ind600); }

.skeleton {
  background: linear-gradient(90deg, var(--slate200) 25%, var(--slate100) 50%, var(--slate200) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--r-sm);
}

@keyframes shimmer {
  0% { background-position: 200% 0; }

@keyframes amber-pulse {
  0%, 100% { box-shadow: 0 2px 8px rgba(245,158,11,0.35); }
  50%       { box-shadow: 0 4px 20px rgba(245,158,11,0.6); }
}

@keyframes card-enter {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

  100% { background-position: -200% 0; }
}

/* ============================================================
   Mobile Navigation Hamburger
   ============================================================ */
.nav__burger {
  display: none;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1.5px solid var(--border-medium);
  cursor: pointer;
  padding: 6px 10px;
  border-radius: var(--r-sm);
  font-size: 1.125rem;
  line-height: 1;
  color: var(--text-primary);
  transition: background var(--ease), border-color var(--ease);
  flex-shrink: 0;
}
.nav__burger:hover { background: var(--slate100); border-color: var(--border-strong); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .library-layout {
    grid-template-columns: 220px 1fr;
    gap: var(--s6);
  }
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--s6);
  }
  .grid-6 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  :root { --nav-h: 80px; }

  .library-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    display: none;
  }

  .sidebar.mobile-open { display: block; }

  .prompt-detail {
    grid-template-columns: 1fr;
  }

  .prompt-detail__sidebar { position: static; }

  .how-grid {
    grid-template-columns: 1fr;
    gap: var(--s6);
  }

  .how-step:not(:last-child)::after { display: none; }

  .hero { padding: var(--s12) 0; }

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

  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--s6);
  }

  .nav__burger { display: flex; }
  .nav__links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    transform: none;
    background: var(--white);
    flex-direction: column;
    padding: var(--s4) var(--s6);
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
    z-index: 90;
    gap: var(--s1);
  }
  .nav__links.open { display: flex; }
  .nav__link { padding: var(--s3) 0; border-bottom: 1px solid var(--border-light); }
  .nav__link:last-child { border-bottom: none; }

  .prompt-grid { grid-template-columns: 1fr; }
  .prompt-grid--2col { grid-template-columns: 1fr; }
  .prompt-grid--3col { grid-template-columns: 1fr 1fr; }

  .callout { padding: var(--s8) var(--s6); }

  .container { padding: 0 var(--s4); }
}

@media (max-width: 480px) {
  .grid-2, .grid-3, .grid-4, .grid-6 { grid-template-columns: 1fr; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { justify-content: center; }
  .prompt-grid--3col { grid-template-columns: 1fr; }
  .hero__stats { gap: var(--s4); }
  .hero__divider { display: none; }
}

/* ============================================================
   QUICK WIN ENHANCEMENTS — UI Design Report v1
   ============================================================ */

/* 1 — Custom focus ring (replaces default browser outline) */
:focus-visible {
  outline: 2px solid var(--ind600);
  outline-offset: 3px;
  border-radius: 4px;
}

/* 2 — Active nav link: visible indigo underline indicator */
.nav__link {
  position: relative;
  padding-bottom: 2px;
}
.nav__link.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--ind400);
  border-radius: 1px;
}

/* 3 — Hero stats bar: subtle indigo tinted pill */
.hero__stats {
  background: rgba(99,102,241,0.12);
  border: 1px solid rgba(99,102,241,0.22);
  border-radius: var(--r-xl);
  padding: var(--s3) var(--s6);
  margin-top: var(--s5);
  display: inline-flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: var(--s4);
}

/* 4 — Library page: shallow gradient header */
.library-header {
  background: linear-gradient(180deg, var(--ind50) 0%, var(--white) 100%);
  padding-bottom: var(--s4);
}

/* 5 — Filter pills: horizontal scroll on mobile (no wrapping) */
@media (max-width: 768px) {
  .filter-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: var(--s1);
  }
  .filter-row::-webkit-scrollbar { display: none; }
}

/* 6 — Results count: indigo colour for the total number */
.results-count .count-total {
  color: var(--ind600);
  font-weight: 700;
}

/* 7 — Variables table: alternating row shading */
.vars-table tbody tr:nth-child(even) td { background: var(--slate50); }
.vars-table .var-name { color: var(--ind600); }

/* 8 — Tips block: left border accent on each item */
.tips-block__item {
  padding-left: var(--s4);
  border-left: 2.5px solid var(--ind400);
  margin-left: 0;
}

/* 9 — Related prompts: slate-50 section background */
#relatedSection {
  background: var(--slate50);
  border-radius: var(--r-xl);
  padding: var(--s8);
  margin-top: var(--s4);
}

/* 10 — Category sidebar active: stronger left border */
.cat-sidebar__item.active {
  border-left: 3px solid var(--ind600);
  padding-left: calc(var(--s3) - 1px);
}

/* 11 — Mobile: 2-column category grid on medium-small screens */
@media (min-width: 480px) and (max-width: 767px) {
  .grid-6 { grid-template-columns: repeat(2, 1fr); }
}

/* 12 — iOS safe-area-inset: sticky copy bar clears home indicator */
.sticky-copy {
  padding-bottom: max(var(--s4), env(safe-area-inset-bottom));
}

/* 13 — Amber CTA: enhanced glow on nav + buttons */
.btn--amber {
  box-shadow: 0 2px 8px rgba(245,158,11,0.35);
}
.btn--amber:hover {
  box-shadow: 0 4px 20px rgba(245,158,11,0.5);
}

/* 14 — Sort select: more polished appearance */
.sort-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2394A3B8' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 28px;
  border-radius: var(--r-md);
  font-family: 'Inter', sans-serif;
  color: var(--text-primary);
}
.sort-select:hover { border-color: var(--ind400); }

/* 15 — Card hover: subtle indigo left border accent */
.prompt-card:hover {
  border-left-color: var(--ind600);
  border-left-width: 3px;
  padding-left: calc(var(--s6) - 1.5px);
}


/* 16 — Nav burger: white-tinted border for dark nav backgrounds */
.nav__burger {
  border-color: rgba(255,255,255,0.25);
  color: var(--white);
  width: 40px;
  height: 40px;
}

/* ============================================================
   HIGH IMPACT UI Enhancements
   ============================================================ */

/* ── 1. Category card: SVG icon replaces emoji (icon fills colour) ── */
.cat-card__icon svg {
  display: block;
  color: currentColor;
}

/* ── 2. Editor's Pick gold ribbon badge ── */
.pick-ribbon {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #92400e;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 1px solid #f59e0b;
  border-radius: var(--r-full);
  padding: 3px 10px 3px 8px;
  margin-bottom: var(--s2);
  width: fit-content;
  box-shadow: 0 1px 3px rgba(245,158,11,0.2);
}
.pick-ribbon svg { color: #d97706; }

.prompt-card--pick {
  border-color: rgba(245,158,11,0.35);
  background: linear-gradient(180deg, #fffbeb 0%, var(--white) 60%);
}
.prompt-card--pick:hover { border-color: #f59e0b; }

/* ── Free card ── */
.prompt-card--free {
  border-left: 3px solid #10b981;
}
.card-free-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #065f46;
  background: #d1fae5;
  border-radius: 4px;
  padding: 3px 8px;
  margin-bottom: var(--s3);
}

/* ── Favourite heart button on cards ── */
.card-fav-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.92);
  border: 1.5px solid var(--border-light);
  border-radius: 50%;
  color: var(--slate400);
  cursor: pointer;
  padding: 0;
  transition: transform 0.15s ease, color 0.15s ease,
              background 0.15s ease, border-color 0.15s ease;
}
.card-fav-btn:hover {
  color: #e11d48;
  border-color: #fecdd3;
  background: #fff1f2;
  transform: scale(1.08);
}
.card-fav-btn.is-fav {
  color: #e11d48;
  border-color: #fecdd3;
  background: #fff1f2;
}
.card-fav-btn:focus-visible {
  outline: 2px solid #e11d48;
  outline-offset: 2px;
}

/* Push the lock/free badges left a bit so the heart doesn't overlap them */
.prompt-card .card-free-badge,
.prompt-card .card-lock-badge {
  margin-right: 40px;
}

/* ── Labelled fav button on prompt detail page ── */
.prompt-fav-btn .fav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--slate400);
  transition: color 0.15s ease;
}
.prompt-fav-btn:hover .fav-icon,
.prompt-fav-btn.is-fav .fav-icon {
  color: #e11d48;
}
.prompt-fav-btn.is-fav {
  border-color: #fecdd3;
  background: #fff1f2;
  color: #be123c;
}

/* ── Premium / locked card ── */
.prompt-card--locked {
  opacity: 1;
  cursor: pointer;
  position: relative;
  border-left: 3px solid var(--ind300);
  background: linear-gradient(135deg, #f8f8ff 0%, #f0f0ff 100%);
}
.prompt-card--locked:hover {
  border-left-color: var(--ind500);
  background: linear-gradient(135deg, #f0f0ff 0%, #e8e8ff 100%);
  box-shadow: 0 4px 16px rgba(99,102,241,0.12);
}
.prompt-card--locked .prompt-card__title { color: var(--slate700); }
.prompt-card--locked .prompt-card__desc  { color: var(--slate600); }
.prompt-card--locked .prompt-card__arrow { color: var(--ind400); }
.card-lock-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ind600);
  background: var(--ind50);
  border: 1px solid var(--ind100);
  border-radius: 4px;
  padding: 3px 8px;
  margin-bottom: var(--s3);
}

/* ── Upsell modal overlay ── */
.upsell-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,14,36,0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--s5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.upsell-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}
.upsell-modal {
  background: var(--white);
  border-radius: var(--r-xl);
  padding: var(--s10) var(--s8);
  max-width: 460px;
  width: 100%;
  text-align: center;
  position: relative;
  transform: translateY(12px);
  transition: transform 0.2s ease;
  box-shadow: 0 24px 60px rgba(0,0,0,0.22);
}
.upsell-overlay.is-open .upsell-modal { transform: translateY(0); }
.upsell-modal__close {
  position: absolute;
  top: var(--s4);
  right: var(--s4);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: var(--s2);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--ease), color var(--ease);
}
.upsell-modal__close:hover { background: var(--slate100); color: var(--slate700); }
.upsell-modal__icon {
  width: 52px;
  height: 52px;
  background: var(--ind50);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--s4);
  color: var(--ind600);
}
.upsell-modal__title {
  font-size: 1.375rem;
  font-weight: 800;
  margin-bottom: var(--s3);
  color: var(--slate900);
}
.upsell-modal__desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin-bottom: var(--s6);
  line-height: 1.6;
}
.upsell-modal__price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--slate900);
  margin-bottom: var(--s1);
}
.upsell-modal__price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-muted);
}
.upsell-modal__perks {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  text-align: left;
  background: var(--slate50);
  border-radius: var(--r-lg);
  padding: var(--s4) var(--s5);
  margin-bottom: var(--s6);
  font-size: 0.9rem;
  color: var(--slate700);
}
.upsell-modal__perks li {
  display: flex;
  align-items: center;
  gap: var(--s2);
  list-style: none;
}

/* ── 3. Variable chips — mint highlight when empty, gold when filled ── */
.var-chip {
  /* Unfilled: mint green text + subtle mint background to draw the eye */
  background: rgba(110,231,183,0.12) !important;
  border: none !important;
  border-radius: 3px !important;
  padding: 0 4px !important;
  color: #6EE7B7 !important;
  font-family: inherit !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  letter-spacing: inherit;
  transition: background 0.2s, color 0.2s;
}
.var-chip.filled {
  /* Filled: amber-gold text + warm amber background — user's own words */
  background: rgba(245,158,11,0.15) !important;
  color: #FCD34D !important;
  font-style: italic !important;
}

/* ── 4. Prompt block: indigo left border + stronger header ── */
.prompt-block {
  border-left: 3px solid var(--ind600);
  border-radius: 0 var(--r-lg) var(--r-lg) 0;
}
.prompt-block__header {
  background: linear-gradient(90deg, var(--ind50) 0%, var(--white) 100%);
  border-bottom: 1px solid var(--ind100);
}

/* ── 5. Always-visible copy button in prompt block header ── */
.prompt-block__copy {
  display: inline-flex !important;
  align-items: center;
  gap: var(--s2);
  padding: 6px 14px;
  background: var(--ind600);
  color: var(--white);
  border: none;
  border-radius: var(--r-md);
  font-size: 0.8125rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background var(--ease), transform var(--ease);
}
.prompt-block__copy:hover {
  background: var(--ind700, #4338ca);
  transform: translateY(-1px);
}
.prompt-block__copy.copied {
  background: var(--emerald600, #059669);
}

/* ── 6. Empty state — illustrated friendly design ── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--s16) var(--s8);
  gap: var(--s4);
}
.empty-state__icon {
  font-size: 3.5rem;
  line-height: 1;
  filter: grayscale(0.2);
  margin-bottom: var(--s2);
}
.empty-state__illustration {
  width: 80px;
  height: 80px;
  background: var(--ind50);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--s2);
  border: 2px solid var(--ind100);
}
.empty-state__illustration svg { color: var(--ind400); }
.empty-state__title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-primary);
}
.empty-state__desc {
  color: var(--text-secondary);
  max-width: 340px;
  font-size: 0.9375rem;
}
.empty-state__hint {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: calc(-1 * var(--s2));
}

/* ── 7. Category hero: dynamic gradient via CSS custom prop ── */
.cat-hero--dynamic {
  background: var(--ind900);
}
.cat-hero__icon svg { color: currentColor; }

/* ── 8. Mobile touch targets — 44×44px minimum ── */
.filter-pill,
.sidebar__item,
.pagination__btn,
.nav__burger,
.sort-select,
.btn {
  min-height: 44px;
}
.filter-pill {
  min-width: 44px;
}
.sidebar__subitem {
  min-height: 36px;
}
@media (max-width: 768px) {
  .filter-pill { min-height: 44px; padding: 0 var(--s4); }
  .sidebar__item { min-height: 48px; }
  .nav__link { min-height: 44px; display: flex; align-items: center; }
}

/* ── 9. Pricing card: larger price, texture, trust signals ── */
.pricing-price--large {
  font-size: 3.5rem !important;
  line-height: 1;
  letter-spacing: -0.03em;
}
.pricing-card--premium {
  background:
    radial-gradient(ellipse at top right, rgba(99,102,241,0.3) 0%, transparent 60%),
    var(--ind900) !important;
}
.trust-signals {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s4);
  flex-wrap: wrap;
  margin-top: var(--s4);
}
.trust-signal {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8125rem;
  color: var(--text-muted);
}
.trust-signal svg { color: var(--emerald500, #10b981); flex-shrink: 0; }

/* ── 10. AI tool logos in footer ── */
.footer__tools {
  display: flex;
  align-items: center;
  gap: var(--s3);
  flex-wrap: wrap;
  margin-top: var(--s4);
}
.footer__tools-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.footer__tool-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  transition: background var(--ease);
  flex-shrink: 0;
}
.footer__tool-logo:hover { background: rgba(255,255,255,0.15); }
.footer__tool-logo svg, .footer__tool-logo img { width: 18px; height: 18px; display: block; }

/* ── 11. Hero mock card (floating preview in hero right panel) ── */
.hero__layout {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: var(--s12);
  align-items: center;
}
.hero__mock {
  position: relative;
  padding: var(--s2);
}
.mock-card {
  background: var(--white);
  border-radius: var(--r-xl);
  padding: var(--s6);
  box-shadow: 0 20px 60px rgba(0,0,0,0.25), 0 4px 12px rgba(0,0,0,0.15);
  position: relative;
  border: 1px solid rgba(255,255,255,0.1);
  transform: rotate(1.5deg);
  transition: transform 0.3s ease;
}
.mock-card:hover { transform: rotate(0deg) scale(1.02); }
.mock-card__eyebrow {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ind600);
  margin-bottom: var(--s2);
}
.mock-card__title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--slate900);
  margin-bottom: var(--s3);
  line-height: 1.4;
}
.mock-card__prompt {
  font-size: 0.8125rem;
  color: var(--slate600);
  line-height: 1.6;
  background: var(--slate50);
  border-radius: var(--r-md);
  padding: var(--s3);
  border-left: 3px solid var(--ind400);
  margin-bottom: var(--s4);
}
.mock-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
}
.mock-card__badge {
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--r-full);
  background: var(--ind50);
  color: var(--ind600);
  border: 1px solid var(--ind100);
}
.mock-card__copy {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--white);
  background: var(--ind600);
  border: none;
  border-radius: var(--r-md);
  padding: 5px 12px;
  cursor: default;
  display: flex;
  align-items: center;
  gap: 4px;
}
.mock-card--secondary {
  position: absolute;
  bottom: -20px;
  right: -16px;
  width: 75%;
  transform: rotate(-2deg);
  opacity: 0.75;
  z-index: -1;
}
@media (max-width: 1024px) {
  .hero__layout { grid-template-columns: 1fr; }
  .hero__mock { display: none; }
}


/* ============================================================
   MOBILE PORTRAIT FIXES (added after launch — 2026-05-27)
   Stops the homepage hero overflowing horizontally on phones.
   ============================================================ */

@media (max-width: 600px) {
  /* Safety net: never let content force the body wider than the viewport. */
  html, body {
    overflow-x: hidden;
    max-width: 100vw;
  }

  /* Hero title: shrink minimum size so "from AI — starting today"
     never gets clipped on narrow phones. */
  .hero__title {
    font-size: clamp(1.5rem, 7vw, 2rem);
    line-height: 1.2;
    padding: 0 var(--s2);
  }
  .hero__subtitle {
    font-size: 0.9375rem;
    padding: 0 var(--s2);
  }

  /* Hero stats pill: allow wrapping so 4 stats fit on a phone. */
  .hero__stats {
    flex-wrap: wrap;
    gap: var(--s3) var(--s5);
    padding: var(--s3) var(--s4);
    max-width: 100%;
    box-sizing: border-box;
  }
  .hero__divider { display: none; }
  .hero__stat-num { font-size: 1.125rem; }
  .hero__stat-label { font-size: 0.6875rem; }

  /* Hero CTA buttons: stack and full-width instead of side-by-side. */
  .hero__actions {
    flex-direction: column;
    align-items: stretch;
    gap: var(--s3);
    padding: 0 var(--s4);
  }
  .hero__actions .btn {
    justify-content: center;
    width: 100%;
  }

  /* Tighter container padding so nothing brushes the screen edge. */
  .container, .container--narrow {
    padding: 0 var(--s4);
  }

  /* Search bar should never overflow its container. */
  .search-bar {
    max-width: 100%;
  }

  /* Hide the floating mini-cards on the hero — they're decorative
     and were already display:none below 900px, this just doubles down. */
  .hero__cards { display: none !important; }
}


/* ============================================================
   MOBILE PORTRAIT FIXES — round 2 (after launch — 2026-05-28)
   Fixes logo squash + pricing card overflow on phones.
   ============================================================ */

.nav__logo img {
  height: 90px;
  width: auto;
}

@media (max-width: 600px) {
  /* Logo image: keep aspect ratio, reduce size for tight nav bar. */
  .nav__logo img {
    height: 56px !important;
    width: auto !important;
    max-width: 180px;
  }

  /* Pricing grid on the homepage "unlock" section — force single column.
     Targets the inline-styled grid (grid-template-columns:1fr 1fr) inside #unlock. */
  #unlock [style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: var(--s4) !important;
  }

  /* Reduce the oversized headline price (was 3.5rem). */
  .pricing-price--large {
    font-size: 2.25rem !important;
  }

  /* Trust signals row: wrap nicely on phones instead of overflowing. */
  .trust-signals {
    gap: var(--s2) var(--s3);
    font-size: 0.75rem;
  }

  /* The two pricing cards have horizontal padding that's too big at narrow width. */
  #unlock [style*="padding:var(--s8)"] {
    padding: var(--s6) var(--s5) !important;
  }
}


/* ============================================================
   MOBILE PORTRAIT FIXES — round 3 (2026-05-28)
   Burger-menu legibility, nav-button sizing, search icon UX.
   ============================================================ */

/* Search icon: visible + clickable on ALL viewports. */
.search-bar__icon {
  pointer-events: auto !important;
  cursor: pointer;
  transition: color 0.15s ease;
  z-index: 2;
}
.search-bar__icon:hover {
  color: var(--ind500);
}
.search-bar--light .search-bar__icon {
  color: var(--slate500);
}
.search-bar--light .search-bar__icon:hover {
  color: var(--ind600);
}

@media (max-width: 600px) {
  /* Burger dropdown opens with a WHITE background — its inherited
     rgba(255,255,255,0.75) link colour was invisible. Force dark. */
  .nav__links.open .nav__link {
    color: var(--slate900) !important;
  }
  .nav__links.open .nav__link.active {
    color: var(--ind600) !important;
  }

  /* Shrink auth buttons so Sign In + Get Started Free + burger fit. */
  .nav__actions {
    gap: 6px;
  }
  .nav__actions .btn,
  .nav__actions .btn--sm {
    padding: 6px 10px;
    font-size: 0.75rem;
    min-height: 36px;
  }

  /* Search icon: a touch bigger on mobile so it's obvious. */
  .search-bar__icon {
    left: var(--s4);
  }
  .search-bar__icon svg,
  .search-bar__icon {
    width: 20px;
    height: 20px;
  }
}


/* ============================================================
   MOBILE PORTRAIT FIXES — round 4 (2026-05-28)
   Prompt detail page overflow on phones.
   ============================================================ */

@media (max-width: 600px) {
  /* Stop the prompt detail tree from overflowing. */
  .prompt-detail,
  .prompt-detail__main,
  .prompt-detail__sidebar,
  .prompt-header,
  .prompt-block {
    max-width: 100%;
    min-width: 0;        /* required for grid items to shrink */
    overflow-wrap: anywhere;
  }

  /* Title: clamp(1.75 -> 2.25rem) was too big at narrow widths. */
  .prompt-header__title {
    font-size: clamp(1.375rem, 6.5vw, 1.75rem);
    line-height: 1.25;
    word-break: break-word;
  }
  .prompt-header__desc {
    font-size: 0.9375rem;
    line-height: 1.5;
    word-break: break-word;
  }

  /* Meta bar: wrap and use tighter padding. */
  .prompt-header__meta {
    padding: var(--s3);
    gap: var(--s3);
    font-size: 0.8125rem;
  }

  /* The dark prompt-template block — tighten padding and shrink type. */
  .prompt-block {
    margin-bottom: var(--s6);
  }
  .prompt-block__toolbar {
    padding: var(--s2) var(--s4);
  }
  .prompt-block__text {
    padding: var(--s4);
    font-size: 0.8125rem;
    line-height: 1.7;
    word-break: break-word;
  }

  /* Outer wrap padding tighter. */
  .prompt-detail {
    padding: var(--s5) 0 var(--s10);
    gap: var(--s5);
  }
  .detail-header-band {
    padding: var(--s4) 0;
  }

  /* Variables table — readable at narrow widths. */
  .vars-table { font-size: 0.8125rem; }
  .vars-table th,
  .vars-table td { padding: var(--s2) var(--s3); }
  .vars-table .var-name { font-size: 0.75rem; }

  /* Tips block — less padding. */
  .tips-block { padding: var(--s4); }

  /* "How to use this prompt" box uses an inline padding:var(--s6).
     Force a tighter padding when it's at the document root level on mobile. */
  .prompt-detail__main > div[style*="background:var(--slate50)"] {
    padding: var(--s4) !important;
  }

  /* Related prompts wrapper. */
  #relatedSection {
    padding: var(--s5);
    margin-top: var(--s4);
  }

  /* Sticky bottom copy bar — comfortable on phones. */
  .sticky-copy {
    padding: var(--s2) var(--s3);
    gap: var(--s2);
  }
  .sticky-copy .btn {
    font-size: 0.8125rem;
    padding: var(--s2) var(--s4);
  }
}

/* ============================================================
   v15 CARD DESIGN — full reset of .prompt-card visuals
   ============================================================ */

.prompt-card {
  background: #fff;
  border: 1px solid var(--slate200);
  border-radius: 14px;
  padding: 0;
  gap: 0;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(15,23,42,0.04), 0 6px 16px rgba(15,23,42,0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  cursor: pointer;
}
.prompt-card:hover {
  transform: translateY(-3px);
  border-color: var(--slate300);
  box-shadow: 0 8px 18px rgba(15,23,42,0.07), 0 20px 36px rgba(15,23,42,0.10);
  border-left-color: var(--slate300) !important;
  border-left-width: 1px !important;
  padding-left: 0 !important;
}
.prompt-card--free,
.prompt-card--locked {
  border-left: 1px solid var(--slate200);
  background: #fff;
}
.prompt-card--locked {
  background: #fff !important;
  cursor: pointer;
}
.prompt-card--locked:hover {
  background: #fff !important;
}
.prompt-card--locked .prompt-card__title,
.prompt-card--locked .prompt-card__desc {
  color: inherit;
}

.prompt-card__body {
  padding: 16px 18px 8px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.prompt-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.tinycat {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
}
.tinycat--business  { background: rgba(99,102,241,0.16); color: #4338CA; }
.tinycat--marketing { background: rgba(244,63,94,0.16);  color: #BE123C; }
.tinycat--creative  { background: rgba(139,92,246,0.16); color: #6D28D9; }
.tinycat--learning  { background: rgba(16,185,129,0.16); color: #047857; }
.tinycat--personal  { background: rgba(245,158,11,0.16); color: #B45309; }
.tinycat--tech      { background: rgba(14,165,233,0.16); color: #0369A1; }

.tinydiff {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 20px;
  padding: 0 9px 0 8px;
  border-radius: 999px;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1;
  background: #F1F5F9;
  color: #334155;
  white-space: nowrap;
}
.tinydiff::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.tinydiff--beginner::before     { background: #10B981; }
.tinydiff--intermediate::before { background: #F59E0B; }
.tinydiff--advanced::before     { background: #EF4444; }

.prompt-card__title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 1.1875rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
  color: var(--slate900);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.5em;
}

.prompt-card__desc {
  color: #64748B;
  font-size: 0.9375rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 0 0 auto;
}

.prompt-card__heart-row {
  margin-top: auto;
  padding-top: 6px;
  display: flex;
  justify-content: flex-end;
}

.heart {
  width: 26px;
  height: 26px;
  border: none;
  background: transparent;
  color: #94A3B8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 50%;
  padding: 0;
  transition: background 0.15s ease, color 0.15s ease;
}
.heart:hover {
  background: rgba(244,63,94,0.1);
  color: #F43F5E;
}
.heart.is-on,
.heart--on,
.heart.is-fav {
  color: #F43F5E;
}
.heart svg {
  width: 17px;
  height: 17px;
}
.heart.is-on svg path,
.heart--on svg path,
.heart.is-fav svg path {
  fill: #F43F5E;
  stroke: #F43F5E;
}
.heart:focus-visible {
  outline: 2px solid #F43F5E;
  outline-offset: 2px;
}

.prompt-card__band {
  background: linear-gradient(135deg, var(--ind900), #2D2A6B);
  color: #fff;
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
  font-weight: 600;
}
.prompt-card__band-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fff;
}
.prompt-card__band-end {
  display: inline-flex;
  align-items: center;
  color: #fff;
  font-size: 1rem;
}
.prompt-card__band-arrow {
  transition: transform 0.15s ease;
  display: inline-block;
}
.prompt-card:hover .prompt-card__band-arrow {
  transform: translateX(4px);
}

.prompt-card--locked .prompt-card__band {
  background: linear-gradient(135deg, #D97706, #F59E0B);
}

.prompt-card__band .lock {
  width: 16px;
  height: 16px;
  display: inline-block;
}

.prompt-card .card-free-badge,
.prompt-card .card-lock-badge {
  display: none !important;
}
.prompt-card .card-fav-btn {
  display: none !important;
}
.prompt-card .prompt-card__header { display: none !important; }

/* ============================================================
   v15 CARD DESIGN - overrides after live feedback
   - Smaller title (was 19px / 800, now 17px / 700)
   - Description shows up to 3 lines (was 2)
   - More body padding for breathing room
   - Explicit band height so free/premium bands match
   ============================================================ */

.prompt-card__body {
  padding: 18px 20px 12px;
}

.prompt-card__title {
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
  /* min-height removed - title takes only the space it needs */
}

.prompt-card__desc {
  font-size: 0.875rem;
  line-height: 1.5;
  -webkit-line-clamp: 3;
  margin-bottom: 14px;
}

.prompt-card__heart-row {
  padding-top: 0;
}

/* Lock down band height so free and premium match exactly */
.prompt-card__band {
  padding: 11px 14px;
  line-height: 1.2;
  min-height: 46px;
}
.prompt-card__band-end {
  font-size: 1.375rem;
  font-weight: 800;
  line-height: 1;
  height: 22px;
}
.prompt-card__band-arrow {
  font-weight: 800;
}
.prompt-card__band-end svg.lock {
  width: 22px;
  height: 22px;
  stroke-width: 3;
  display: block;
}
