:root {
  --nb-yellow:      #F5C400;
  --nb-yellow-dk:   #C99F00;
  --nb-yellow-lt:   #FFF8D6;
  --nb-lime:        #C8F400;
  --nb-lime-lt:     #F2FFB0;
  --nb-coral:       #FF6B45;
  --nb-coral-lt:    #FFF0EC;
  --nb-charcoal:    #1C1A16;
  --nb-charcoal2:   #2E2B22;
  --nb-cream:       #FDFBF2;
  --nb-cream2:      #F5F1E3;
  --nb-muted:       #7A7460;
  --nb-border:      #E8E2CC;
  --nb-radius:      14px;
  --nb-radius-lg:   22px;
  --nb-shadow:      0 4px 24px rgba(28,26,22,0.10);
  --nb-shadow-lg:   0 12px 48px rgba(28,26,22,0.15);
  --nb-font-head:   'Outfit', sans-serif;
  --nb-font-body:   'Plus Jakarta Sans', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--nb-font-body);
  color: var(--nb-charcoal);
  background: var(--nb-cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── LOADING OVERLAY ─────────────────────────────────────── */
.loading-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(28,26,22,0.88);
  z-index: 9999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
}
.loading-overlay.active { display: flex; }
.loading-spinner {
  width: 56px; height: 56px;
  border: 4px solid rgba(245,196,0,0.25);
  border-top-color: var(--nb-yellow);
  border-radius: 50%;
  animation: nbSpin 0.9s linear infinite;
}
@keyframes nbSpin { to { transform: rotate(360deg); } }
.loading-text {
  font-family: var(--nb-font-head);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--nb-yellow);
  letter-spacing: 0.02em;
}
.loading-sub { font-size: 0.9rem; color: rgba(253,251,242,0.7); }
.loading-steps { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.5rem; }
.loading-step {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 0.82rem; color: rgba(253,251,242,0.5);
  transition: color 0.3s;
}
.loading-step.active { color: var(--nb-lime); }
.loading-step-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: currentColor; flex-shrink: 0;
}

/* ── HERO ────────────────────────────────────────────────── */
.nb-hero {
  background: var(--nb-charcoal);
  padding: 80px 0 72px;
  position: relative;
  overflow: hidden;
}
.nb-hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -80px;
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(245,196,0,0.18) 0%, transparent 70%);
  pointer-events: none;
}
.nb-hero::after {
  content: '';
  position: absolute;
  bottom: -40px; left: -60px;
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(200,244,0,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.nb-hero .container { position: relative; z-index: 1; }

.nb-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(245,196,0,0.15);
  border: 1px solid rgba(245,196,0,0.35);
  color: var(--nb-yellow);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

.nb-hero h1 {
  font-family: var(--nb-font-head);
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.03em;
  max-width: 760px;
  margin-bottom: 1.25rem;
}
.nb-hero h1 .accent { color: var(--nb-yellow); }

.nb-hero-sub {
  font-size: 1.05rem;
  color: rgba(253,251,242,0.75);
  max-width: 640px;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.hero-stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2.25rem;
}
.hero-stat { display: flex; flex-direction: column; gap: 2px; }
.hero-stat-num {
  font-family: var(--nb-font-head);
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--nb-yellow);
  line-height: 1;
}
.hero-stat-label { font-size: 0.78rem; color: rgba(253,251,242,0.55); text-transform: uppercase; letter-spacing: 0.06em; }

.btn-cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--nb-yellow);
  color: var(--nb-charcoal);
  font-family: var(--nb-font-head);
  font-size: 1rem;
  font-weight: 800;
  padding: 15px 34px;
  border-radius: 100px;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(245,196,0,0.40);
}
.btn-cta-primary:hover {
  background: #ffe030;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(245,196,0,0.50);
}

/* ── GENERATOR SECTION ───────────────────────────────────── */
.generator-section {
  padding: 72px 0 60px;
  background: var(--nb-cream);
}
.section-heading { text-align: center; margin-bottom: 2.5rem; }
.section-tag {
  display: inline-block;
  background: var(--nb-yellow-lt);
  color: var(--nb-yellow-dk);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 100px;
  margin-bottom: 0.75rem;
  border: 1px solid rgba(245,196,0,0.3);
}
.section-heading h2 {
  font-family: var(--nb-font-head);
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 800;
  color: var(--nb-charcoal);
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 0.6rem;
}
.section-heading p { font-size: 0.95rem; color: var(--nb-muted); max-width: 560px; margin: 0 auto; }

.generator-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2rem;
  align-items: start;
}
@media (max-width: 900px) {
  .generator-layout { grid-template-columns: 1fr; }
}

/* ── FORM CARD ───────────────────────────────────────────── */
.form-card {
  background: #fff;
  border-radius: var(--nb-radius-lg);
  border: 1px solid var(--nb-border);
  padding: 2rem 2.25rem;
  box-shadow: var(--nb-shadow);
}
.form-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--nb-cream2);
}
.form-card-icon {
  width: 40px; height: 40px;
  background: var(--nb-yellow-lt);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}
.form-card-title {
  font-family: var(--nb-font-head);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--nb-charcoal);
}
.form-card-sub { font-size: 0.8rem; color: var(--nb-muted); margin-top: 1px; }

/* Usage Bar */
.usage-bar-wrap { margin-bottom: 1.5rem; }
.usage-bar-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.78rem; color: var(--nb-muted); margin-bottom: 6px;
}
.usage-bar-track {
  height: 6px; background: var(--nb-cream2); border-radius: 100px; overflow: hidden;
}
.usage-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--nb-yellow), var(--nb-lime));
  border-radius: 100px;
  transition: width 0.5s ease;
}

/* Form elements */
.form-group { margin-bottom: 1.2rem; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

.form-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--nb-charcoal);
  margin-bottom: 0.4rem;
}
.badge-opt {
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--nb-cream2);
  color: var(--nb-muted);
  border-radius: 100px;
  padding: 1px 8px;
  margin-left: auto;
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--nb-border);
  border-radius: var(--nb-radius);
  font-family: var(--nb-font-body);
  font-size: 0.9rem;
  color: var(--nb-charcoal);
  background: var(--nb-cream);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--nb-yellow);
  box-shadow: 0 0 0 3px rgba(245,196,0,0.18);
  background: #fff;
}
.form-textarea { resize: vertical; min-height: 90px; line-height: 1.6; }
.char-count {
  text-align: right;
  font-size: 0.72rem;
  color: var(--nb-muted);
  margin-top: 3px;
}

/* Slider */
.slider-row { display: flex; align-items: center; gap: 1rem; }
input[type="range"] {
  flex: 1;
  -webkit-appearance: none;
  height: 5px;
  background: var(--nb-cream2);
  border-radius: 100px;
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px; height: 20px;
  background: var(--nb-yellow);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(245,196,0,0.5);
}
.slider-count {
  width: 32px; height: 32px;
  background: var(--nb-yellow);
  color: var(--nb-charcoal);
  font-family: var(--nb-font-head);
  font-weight: 900;
  font-size: 0.95rem;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* Model Grid */
.model-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.6rem;
}
.model-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 12px 8px;
  border: 1.5px solid var(--nb-border);
  border-radius: var(--nb-radius);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--nb-charcoal);
  background: var(--nb-cream);
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
  text-align: center;
}
.model-option input { display: none; }
.model-option:hover { border-color: var(--nb-yellow); background: var(--nb-yellow-lt); }
.model-option.selected {
  border-color: var(--nb-yellow);
  background: var(--nb-yellow-lt);
  box-shadow: 0 0 0 2px rgba(245,196,0,0.25);
}
.model-emoji { font-size: 1.2rem; }

/* Error */
.form-error {
  display: none;
  align-items: flex-start;
  gap: 0.5rem;
  background: #FFF2F0;
  border: 1px solid #FFB3A7;
  color: #C0392B;
  border-radius: var(--nb-radius);
  padding: 10px 14px;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}
.form-error.visible { display: flex; }

/* Generate Button */
.btn-generate {
  width: 100%;
  padding: 16px;
  background: var(--nb-charcoal);
  color: var(--nb-yellow);
  font-family: var(--nb-font-head);
  font-size: 1.05rem;
  font-weight: 800;
  border: none;
  border-radius: var(--nb-radius);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  letter-spacing: 0.01em;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(28,26,22,0.20);
}
.btn-generate:hover:not(:disabled) {
  background: var(--nb-charcoal2);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(28,26,22,0.25);
}
.btn-generate:disabled { opacity: 0.55; cursor: not-allowed; }

/* ── SIDEBAR ─────────────────────────────────────────────── */
.tips-sidebar { display: flex; flex-direction: column; gap: 1rem; }

.prompt-preview-card {
  background: var(--nb-charcoal);
  color: #fff;
  border-radius: var(--nb-radius-lg);
  padding: 1.5rem;
  border: 1px solid rgba(245,196,0,0.2);
}
.preview-label {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--nb-yellow);
  margin-bottom: 0.75rem;
}
.preview-prompt-text {
  font-size: 0.8rem;
  color: rgba(253,251,242,0.8);
  line-height: 1.6;
  font-style: italic;
  margin-bottom: 0.75rem;
}
.preview-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.75rem; }
.preview-tag {
  background: rgba(245,196,0,0.15);
  color: var(--nb-yellow);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
  border: 1px solid rgba(245,196,0,0.25);
}
.preview-tool-badges { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.preview-tool-badge {
  background: rgba(200,244,0,0.12);
  color: var(--nb-lime);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
  border: 1px solid rgba(200,244,0,0.2);
}

.tip-card {
  background: #fff;
  border: 1px solid var(--nb-border);
  border-radius: var(--nb-radius);
  padding: 1rem 1.1rem;
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  box-shadow: var(--nb-shadow);
}
.tip-card-icon {
  width: 36px; height: 36px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 0.95rem;
}
.tip-card-body h4 {
  font-family: var(--nb-font-head);
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--nb-charcoal);
  margin-bottom: 0.25rem;
}
.tip-card-body p { font-size: 0.78rem; color: var(--nb-muted); line-height: 1.55; }

/* ── RESULTS ─────────────────────────────────────────────── */
.results-panel {
  display: none;
  background: var(--nb-cream2);
  border: 1px solid var(--nb-border);
  border-radius: var(--nb-radius-lg);
  padding: 2rem;
  margin-top: 2rem;
  animation: nbFadeUp 0.4s ease both;
}
.results-panel.show { display: block; }
@keyframes nbFadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.results-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.results-title {
  font-family: var(--nb-font-head);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--nb-charcoal);
}
.results-meta { font-size: 0.8rem; color: var(--nb-muted); margin-top: 3px; }
.btn-recheck {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 9px 20px;
  background: var(--nb-charcoal);
  color: var(--nb-yellow);
  border: none; border-radius: 100px;
  font-family: var(--nb-font-head);
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-recheck:hover { background: var(--nb-charcoal2); }
.prompts-grid { display: flex; flex-direction: column; gap: 1.25rem; }

.prompt-card {
  background: #fff;
  border: 1px solid var(--nb-border);
  border-radius: var(--nb-radius);
  padding: 1.5rem;
  box-shadow: var(--nb-shadow);
}
.prompt-card-top { display: flex; align-items: flex-start; gap: 0.75rem; margin-bottom: 0.9rem; }
.prompt-num {
  width: 32px; height: 32px;
  background: var(--nb-yellow);
  color: var(--nb-charcoal);
  font-family: var(--nb-font-head);
  font-weight: 900;
  font-size: 0.9rem;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.prompt-title-group { flex: 1; }
.prompt-card-title {
  font-family: var(--nb-font-head);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--nb-charcoal);
  margin-bottom: 0.35rem;
}
.best-for-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 2px 9px;
  border-radius: 100px;
  background: var(--nb-yellow-lt);
  color: var(--nb-yellow-dk);
  border: 1px solid rgba(245,196,0,0.3);
  margin-right: 4px;
}
.prompt-text-box {
  background: var(--nb-cream);
  border: 1px solid var(--nb-cream2);
  border-radius: 10px;
  padding: 1rem 1.1rem;
  font-size: 0.88rem;
  color: var(--nb-charcoal);
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
  margin-bottom: 0.75rem;
}
.neg-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--nb-muted);
  margin-bottom: 0.3rem;
  display: flex; align-items: center; gap: 0.4rem;
}
.neg-prompt-box {
  background: var(--nb-lime-lt);
  border: 1px solid rgba(200,244,0,0.35);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.82rem;
  color: var(--nb-charcoal2);
  margin-bottom: 0.75rem;
  white-space: pre-wrap;
}
.style-tags-row { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.75rem; }
.style-tag {
  background: var(--nb-cream2);
  color: var(--nb-muted);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
  border: 1px solid var(--nb-border);
}
.prompt-tip {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  background: var(--nb-yellow-lt);
  border: 1px solid rgba(245,196,0,0.25);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.78rem;
  color: var(--nb-charcoal);
  line-height: 1.55;
  margin-bottom: 0.75rem;
}
.copy-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.copy-btn {
  display: flex; align-items: center; gap: 0.4rem;
  padding: 8px 18px;
  border: none; border-radius: 100px;
  font-family: var(--nb-font-body);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.copy-btn.primary {
  background: var(--nb-charcoal); color: var(--nb-yellow);
}
.copy-btn.primary:hover { background: var(--nb-charcoal2); }
.copy-btn.secondary {
  background: var(--nb-lime-lt); color: var(--nb-charcoal);
  border: 1px solid rgba(200,244,0,0.5);
}
.copy-btn.copied { background: #22c55e; color: #fff; }

.extra-card {
  background: #fff;
  border: 1px solid var(--nb-border);
  border-radius: var(--nb-radius);
  padding: 1.25rem 1.5rem;
  margin-top: 1rem;
}
.extra-card-title {
  font-family: var(--nb-font-head);
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--nb-charcoal);
  margin-bottom: 0.85rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.variation-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.variation-chip {
  display: inline-block;
  padding: 7px 16px;
  background: var(--nb-cream2);
  color: var(--nb-charcoal);
  border: 1px solid var(--nb-border);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.variation-chip:hover { background: var(--nb-yellow-lt); border-color: var(--nb-yellow); }
.pro-tip-box {
  display: flex; align-items: flex-start; gap: 0.75rem;
  background: var(--nb-charcoal);
  color: rgba(253,251,242,0.85);
  border-radius: var(--nb-radius);
  padding: 1rem 1.25rem;
  font-size: 0.85rem;
  line-height: 1.6;
  margin-top: 1rem;
}
.pro-tip-box .pro-tip-label {
  font-family: var(--nb-font-head);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--nb-yellow);
  margin-bottom: 0.2rem;
}

/* ── HOW IT WORKS ────────────────────────────────────────── */
.how-section {
  background: var(--nb-charcoal);
  padding: 72px 0;
}
.how-section .section-heading h2 { color: #fff; }
.how-section .section-heading p { color: rgba(253,251,242,0.6); }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.step-card {
  background: rgba(253,251,242,0.04);
  border: 1px solid rgba(253,251,242,0.1);
  border-radius: var(--nb-radius);
  padding: 1.5rem;
}
.step-num {
  font-family: var(--nb-font-head);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--nb-yellow);
  line-height: 1;
  margin-bottom: 0.75rem;
  opacity: 0.7;
}
.step-card h3 {
  font-family: var(--nb-font-head);
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.5rem;
}
.step-card p { font-size: 0.83rem; color: rgba(253,251,242,0.6); line-height: 1.6; }

/* ── FEATURES ────────────────────────────────────────────── */
.features-section { padding: 72px 0; background: var(--nb-cream2); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}
.feature-card {
  background: #fff;
  border: 1px solid var(--nb-border);
  border-radius: var(--nb-radius);
  padding: 1.5rem;
  box-shadow: var(--nb-shadow);
}
.feature-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem;
  margin-bottom: 0.9rem;
}
.feature-card h3 {
  font-family: var(--nb-font-head);
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--nb-charcoal);
  margin-bottom: 0.4rem;
}
.feature-card p { font-size: 0.8rem; color: var(--nb-muted); line-height: 1.55; }

/* ── PROMPT LIBRARY ──────────────────────────────────────── */
.library-section { padding: 72px 0; background: var(--nb-cream); }
.lib-tabs {
  display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin-bottom: 2rem;
}
.lib-tab {
  padding: 8px 20px;
  background: var(--nb-cream2);
  border: 1px solid var(--nb-border);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--nb-muted);
  cursor: pointer;
  transition: all 0.2s;
}
.lib-tab.active, .lib-tab:hover {
  background: var(--nb-charcoal); color: var(--nb-yellow); border-color: var(--nb-charcoal);
}
.library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.lib-prompt-card {
  background: #fff;
  border: 1px solid var(--nb-border);
  border-radius: var(--nb-radius);
  padding: 1.25rem;
  box-shadow: var(--nb-shadow);
  display: flex; flex-direction: column;
}
.lib-prompt-title {
  font-family: var(--nb-font-head);
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--nb-charcoal);
  margin-bottom: 0.5rem;
}
.lib-prompt-text {
  font-size: 0.78rem;
  color: var(--nb-muted);
  line-height: 1.55;
  flex: 1;
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.lib-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 0.75rem; }
.lib-tag {
  background: var(--nb-cream2);
  color: var(--nb-muted);
  font-size: 0.67rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 100px;
}
.lib-copy-row { margin-top: auto; }
.lib-copy-btn {
  display: flex; align-items: center; gap: 0.4rem;
  padding: 7px 16px;
  background: var(--nb-charcoal); color: var(--nb-yellow);
  border: none; border-radius: 100px;
  font-size: 0.77rem; font-weight: 700;
  cursor: pointer; transition: background 0.2s;
}
.lib-copy-btn:hover { background: var(--nb-charcoal2); }
.lib-copy-btn.copied { background: #22c55e; color: #fff; }

/* ── FAQ ─────────────────────────────────────────────────── */
.faq-section { padding: 72px 0; background: var(--nb-cream2); }
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--nb-border);
  border-radius: var(--nb-radius);
  background: #fff;
  margin-bottom: 0.75rem;
  overflow: hidden;
}
.faq-question {
  width: 100%; text-align: left;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 1.25rem;
  font-family: var(--nb-font-head);
  font-size: 0.92rem; font-weight: 800;
  color: var(--nb-charcoal);
  background: transparent; border: none; cursor: pointer;
  gap: 1rem;
}
.faq-arrow { color: var(--nb-muted); transition: transform 0.25s; flex-shrink: 0; }
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-answer {
  max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
}
.faq-item.open .faq-answer { max-height: 800px; }
.faq-answer-inner {
  padding: 0 1.25rem 1.1rem;
  font-size: 0.88rem; color: var(--nb-muted); line-height: 1.7;
}

/* ── CTA SECTION ─────────────────────────────────────────── */
.cta-section {
  background: var(--nb-yellow);
  padding: 72px 0;
  text-align: center;
}
.cta-section h2 {
  font-family: var(--nb-font-head);
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 900;
  color: var(--nb-charcoal);
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}
.cta-section p {
  font-size: 1rem; color: rgba(28,26,22,0.7);
  max-width: 520px; margin: 0 auto 2rem;
}
.cta-section .btn-cta-primary {
  background: var(--nb-charcoal); color: var(--nb-yellow);
  box-shadow: 0 4px 20px rgba(28,26,22,0.25);
}
.cta-section .btn-cta-primary:hover {
  background: var(--nb-charcoal2);
  box-shadow: 0 8px 28px rgba(28,26,22,0.35);
}

/* ── SEO CONTENT ─────────────────────────────────────────── */
.seo-content-section {
  padding: 72px 0;
  background: #fff;
}
.seo-content-section h2 {
  font-family: var(--nb-font-head);
  font-size: 1.4rem; font-weight: 900;
  color: var(--nb-charcoal);
  letter-spacing: -0.015em;
  margin: 2rem 0 0.75rem;
}
.seo-content-section h2:first-child { margin-top: 0; }
.seo-content-section h3 {
  font-family: var(--nb-font-head);
  font-size: 1.05rem; font-weight: 800;
  color: var(--nb-charcoal);
  margin: 1.5rem 0 0.5rem;
}
.seo-content-section p {
  font-size: 0.92rem; color: #444; line-height: 1.75;
  margin-bottom: 1rem;
}
.seo-content-section a { color: var(--nb-yellow-dk); font-weight: 600; }
.seo-content-section code {
  font-family: monospace; font-size: 0.85em;
  background: var(--nb-cream2); padding: 2px 6px; border-radius: 4px;
}
.seo-callout {
  background: var(--nb-yellow-lt);
  border-left: 4px solid var(--nb-yellow);
  border-radius: 0 var(--nb-radius) var(--nb-radius) 0;
  padding: 1rem 1.25rem;
  font-size: 0.9rem; color: var(--nb-charcoal);
  line-height: 1.65;
  margin: 1.5rem 0;
  font-style: italic;
}
.seo-divider {
  border: none; border-top: 1px solid var(--nb-border);
  margin: 2.5rem 0;
}
.author-attribution {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--nb-yellow-lt);
  border-radius: var(--nb-radius);
  border: 1px solid rgba(245,196,0,0.25);
}