* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0f1117;
  --surface: #1a1d27;
  --card: #1e2130;
  --border: #2a2d3e;
  --accent: #6c63ff;
  --accent2: #00d2ff;
  --text: #e4e6f0;
  --muted: #8b8fa8;
  --success: #22c55e;
  --radius: 12px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--accent2); text-decoration: none; }
a:hover { text-decoration: underline; }

/* NAV */
nav {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-logo {
  font-size: 1.3rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links { display: flex; gap: 8px; }

.nav-links a {
  color: var(--muted);
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  transition: all .2s;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--text);
  background: var(--card);
  text-decoration: none;
}

/* HERO */
.hero {
  text-align: center;
  padding: 64px 24px 40px;
  max-width: 720px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  color: var(--muted);
  font-size: 1.1rem;
  margin-bottom: 32px;
}

.tools-banner {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding: 14px 22px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(168,85,247,0.15), rgba(99,102,241,0.15));
  border: 1px solid rgba(168,85,247,0.4);
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  transition: transform .15s, border-color .15s, background .15s;
  max-width: 700px;
}
.tools-banner:hover { transform: translateY(-1px); border-color: rgba(168,85,247,0.7); background: linear-gradient(135deg, rgba(168,85,247,0.22), rgba(99,102,241,0.22)); text-decoration: none; }
.tools-banner-icon { font-size: 1.5rem; flex-shrink: 0; }
.tools-banner-text { flex: 1; text-align: left; line-height: 1.4; }
.tools-banner-text strong { color: #c084fc; }
.tools-banner-cta { font-weight: 700; color: #c084fc; white-space: nowrap; flex-shrink: 0; }
@media (max-width: 600px) {
  .tools-banner { flex-direction: column; text-align: center; padding: 14px 18px; }
  .tools-banner-text { text-align: center; }
}

/* STATS BAR */
.stats-bar {
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.stat { text-align: center; }
.stat-num { font-size: 1.8rem; font-weight: 800; color: var(--accent2); }
.stat-label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }

/* SEARCH */
.search-wrap {
  max-width: 600px;
  margin: 0 auto 32px;
  padding: 0 24px;
  position: relative;
}

.search-wrap input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 20px 14px 48px;
  color: var(--text);
  font-size: 15px;
  outline: none;
  transition: border-color .2s;
}

.search-wrap input:focus { border-color: var(--accent); }
.search-wrap input::placeholder { color: var(--muted); }

.search-icon {
  position: absolute;
  left: 40px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

/* CATEGORY TABS */
.cats {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0 24px;
  margin-bottom: 32px;
}

.cat-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s;
}

.cat-btn:hover { border-color: var(--accent); color: var(--text); }
.cat-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* PROMPT OF THE DAY */
.potd-wrap {
  max-width: 900px;
  margin: 0 auto 40px;
  padding: 0 24px;
}

.potd {
  background: linear-gradient(135deg, rgba(108,99,255,.15), rgba(0,210,255,.1));
  border: 1px solid rgba(108,99,255,.4);
  border-radius: var(--radius);
  padding: 24px;
}

.potd-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 8px;
}

.potd-title { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.potd-text { color: var(--muted); font-size: 14px; line-height: 1.7; font-family: monospace; }
.potd-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; flex-wrap: wrap; gap: 8px; }
.potd-cat { font-size: 12px; color: var(--accent2); }

/* GRID */
.grid-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 64px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.section-title { font-size: 1rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.result-count { font-size: 13px; color: var(--muted); }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

/* PROMPT CARD */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: border-color .2s, transform .15s;
  display: flex;
  flex-direction: column;
}

.card:hover { border-color: var(--accent); transform: translateY(-2px); }

.card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; }
.card-title { font-size: 0.95rem; font-weight: 700; line-height: 1.3; flex: 1; margin-right: 8px; }
.card-cat {
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 10px;
  white-space: nowrap;
  font-weight: 600;
  flex-shrink: 0;
}

.card-text {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  flex: 1;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-family: monospace;
}

.card-footer { display: flex; gap: 8px; margin-top: auto; }

.btn {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all .2s;
}

.btn-copy {
  background: var(--accent);
  color: #fff;
  flex: 1;
}

.btn-copy:hover { background: #7c74ff; }
.btn-copy.copied { background: var(--success); }

.btn-expand {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
}

.btn-expand:hover { color: var(--text); border-color: var(--accent); }

/* CATEGORY COLORS */
.cat-marketing { background: rgba(255,107,53,.15); color: #ff6b35; }
.cat-email { background: rgba(0,210,255,.12); color: #00d2ff; }
.cat-content { background: rgba(108,99,255,.15); color: #8b80ff; }
.cat-social { background: rgba(255,182,72,.12); color: #ffb648; }
.cat-coding { background: rgba(34,197,94,.12); color: #22c55e; }
.cat-business { background: rgba(236,72,153,.12); color: #ec4899; }
.cat-creative { background: rgba(249,115,22,.12); color: #f97316; }
.cat-career { background: rgba(168,85,247,.12); color: #a855f7; }
.cat-education { background: rgba(6,182,212,.12); color: #06b6d4; }
.cat-image { background: rgba(244,63,94,.12); color: #f43f5e; }

/* MODAL */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.75);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}

.modal-overlay.open { opacity: 1; pointer-events: all; }

.modal {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  max-width: 680px;
  width: 100%;
  padding: 32px;
  transform: scale(.95);
  transition: transform .2s;
}

.modal-overlay.open .modal { transform: scale(1); }

.modal-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 6px; }
.modal-cat { margin-bottom: 20px; }

.modal-text {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px;
  font-family: monospace;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text);
  white-space: pre-wrap;
  margin-bottom: 20px;
}

.placeholder { color: var(--accent2); font-weight: 600; }

.modal-footer { display: flex; gap: 10px; justify-content: flex-end; }
.btn-close { background: var(--surface); border: 1px solid var(--border); color: var(--text); }
.btn-close:hover { border-color: var(--accent); }

/* NO RESULTS */
.no-results {
  text-align: center;
  padding: 80px 24px;
  color: var(--muted);
}
.no-results h3 { font-size: 1.2rem; margin-bottom: 8px; color: var(--text); }

/* FOOTER */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 40px 24px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

footer .footer-links { display: flex; gap: 24px; justify-content: center; margin-bottom: 16px; flex-wrap: wrap; }
footer a { color: var(--muted); }
footer a:hover { color: var(--text); text-decoration: none; }

/* BUILDER PAGE */
.builder-layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

@media (max-width: 768px) {
  .builder-layout { grid-template-columns: 1fr; }
}

.builder-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.builder-panel h2 { font-size: 1.1rem; font-weight: 700; margin-bottom: 20px; }

.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .05em; }
.form-group select, .form-group input, .form-group textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: border-color .2s;
}
.form-group select:focus, .form-group input:focus, .form-group textarea:focus { border-color: var(--accent); }
.form-group textarea { resize: vertical; min-height: 80px; font-family: inherit; }
.form-group select option { background: var(--surface); }

.builder-divider { border: none; border-top: 1px solid var(--border); margin: 24px 0; }

.output-area {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px;
  font-family: monospace;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text);
  white-space: pre-wrap;
  min-height: 200px;
}

.output-area .ph { color: var(--accent2); font-weight: 600; }
.output-placeholder { color: var(--muted); font-style: italic; }

.output-actions { display: flex; gap: 10px; margin-top: 16px; }

.tip-box {
  background: rgba(108,99,255,.08);
  border: 1px solid rgba(108,99,255,.25);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 13px;
  color: var(--muted);
  margin-top: 16px;
}

.tip-box strong { color: var(--accent); }

.builder-hero {
  text-align: center;
  padding: 40px 24px 8px;
  max-width: 720px;
  margin: 0 auto;
}

.builder-hero h1 { font-size: 2rem; font-weight: 800; margin-bottom: 10px; }
.builder-hero p { color: var(--muted); margin-bottom: 0; }

.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: var(--accent);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  margin-right: 8px;
}

/* ── MODEL BADGES ── */
.models-label { font-size: 12px; color: var(--muted); }
.model-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 8px;
  margin-left: 4px;
}
.model-chatgpt { background: rgba(16,163,127,.15); color: #10a37f; }
.model-claude  { background: rgba(205,116,70,.15);  color: #cd7446; }
.model-gemini  { background: rgba(66,133,244,.15);  color: #4285f4; }
.model-midjourney       { background: rgba(108,99,255,.15); color: #8b80ff; }
.model-dalle            { background: rgba(0,210,255,.12);  color: #00d2ff; }
.model-stable-diffusion { background: rgba(249,115,22,.12); color: #f97316; }

/* ── DIFFICULTY BADGES ── */
.diff-badge { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 9px; border-radius: 10px; }
.diff-beginner     { background: rgba(34,197,94,.12);  color: #22c55e; }
.diff-intermediate { background: rgba(255,182,72,.12); color: #ffb648; }
.diff-advanced     { background: rgba(239,68,68,.12);  color: #ef4444; }

/* ── COPY COUNTER ── */
.copy-count {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 4px;
}
.copy-count svg { opacity: .5; }

/* ── SORT & FILTER BAR ── */
.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto 24px;
  padding: 0 24px;
}
.filter-label { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.filter-select {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 13px;
  padding: 6px 12px;
  outline: none;
  cursor: pointer;
  transition: border-color .2s;
}
.filter-select:focus { border-color: var(--accent); }
.filter-spacer { flex: 1; }

/* ── TRENDING SECTION ── */
.trending-wrap {
  max-width: 1200px;
  margin: 0 auto 40px;
  padding: 0 24px;
}
.trending-wrap h2 { font-size: 1rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 16px; }
.trending-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.trending-chip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 7px 16px;
  font-size: 13px;
  color: var(--text);
  text-decoration: none;
  transition: all .2s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.trending-chip:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.trending-num { font-size: 10px; color: var(--muted); }

/* ── INDIVIDUAL PROMPT PAGE ── */
.prompt-page { max-width: 900px; margin: 0 auto; padding: 40px 24px 80px; }
.prompt-page-inner { max-width: 760px; margin: 0 auto; }

.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); margin-bottom: 24px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--text); text-decoration: none; }
.breadcrumb span { color: var(--border); }

.pp-title { font-size: 2rem; font-weight: 800; margin-bottom: 16px; line-height: 1.2; }

.pp-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 28px; }

.pp-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 32px;
}

.pp-text {
  font-family: monospace;
  font-size: 14px;
  line-height: 1.9;
  color: var(--text);
  white-space: pre-wrap;
  max-height: 200px;
  overflow: hidden;
  position: relative;
  transition: max-height .3s ease;
}

.pp-text::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(transparent, var(--card));
  pointer-events: none;
  transition: opacity .3s;
}

.pp-text.pp-text-full { max-height: 2000px; }
.pp-text.pp-text-full::after { opacity: 0; }

.pp-actions { display: flex; gap: 10px; margin-top: 20px; align-items: center; flex-wrap: wrap; }
.btn-lg { padding: 12px 24px; font-size: 15px; }

/* HOW TO USE */
.how-to-use { margin-bottom: 32px; }
.how-to-use h2 { font-size: 1rem; font-weight: 700; margin-bottom: 16px; }
.steps { display: flex; flex-direction: column; gap: 12px; }
.step { display: flex; gap: 14px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.step-num {
  width: 28px; height: 28px;
  background: var(--accent);
  border-radius: 50%;
  font-size: 12px; font-weight: 700; color: #fff;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.step strong { color: var(--text); }

/* BUILDER CTA (on prompt pages) */
.builder-cta {
  background: linear-gradient(135deg, rgba(108,99,255,.12), rgba(0,210,255,.08));
  border: 1px solid rgba(108,99,255,.3);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.builder-cta-title { font-weight: 700; margin-bottom: 4px; }
.builder-cta-sub { font-size: 13px; color: var(--muted); }

/* RELATED PROMPTS */
.related-section { }
.related-section h2 { font-size: 1rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 16px; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.related-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  text-decoration: none;
  transition: border-color .2s;
}
.related-card:hover { border-color: var(--accent); text-decoration: none; }
.related-icon { font-size: 1.4rem; flex-shrink: 0; }
.related-title { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.related-cat { font-size: 12px; color: var(--muted); }

/* CARD LINK (for clickable cards in library) */
.card-link { display: block; text-decoration: none; }

/* NEW CATEGORY COLORS */
.cat-seo { background: rgba(34,197,94,.12); color: #22c55e; }
.cat-ai-workflows { background: rgba(108,99,255,.15); color: #a78bfa; }

/* SHARE BUTTON */
.btn-share {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.btn-share:hover { border-color: var(--accent); color: var(--text); }

/* CARD COPY COUNT */
.card-copy-count { font-size: 11px; color: var(--muted); margin-left: auto; }

/* BLOG */
.blog-hero { text-align:center; padding:48px 24px 32px; }
.blog-hero h1 { font-size:2rem; font-weight:800; margin:0 0 10px; }
.blog-hero p { color:var(--muted); font-size:15px; max-width:520px; margin:0 auto; }
.blog-grid-wrap { max-width:1000px; margin:0 auto; padding:0 24px 60px; }
.blog-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); gap:20px; }
.blog-card { background:var(--card); border:1px solid var(--border); border-radius:14px; padding:22px; display:flex; flex-direction:column; gap:8px; text-decoration:none; color:var(--text); transition:border-color .15s,transform .15s; }
.blog-card:hover { border-color:var(--accent); transform:translateY(-2px); }
.blog-card-cat { font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.07em; color:var(--accent); }
.blog-card-title { font-size:1rem; font-weight:700; line-height:1.35; margin:0; }
.blog-card-desc { font-size:13px; color:var(--muted); line-height:1.55; margin:0; flex:1; }
.blog-card-meta { font-size:11px; color:var(--muted); margin-top:4px; }

.blog-post-wrap { max-width:740px; margin:0 auto; padding:32px 24px 64px; }
.blog-post-inner { }
.blog-post-cat { font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.07em; color:var(--accent); margin-bottom:8px; }
.blog-post-title { font-size:1.9rem; font-weight:800; line-height:1.25; margin:0 0 12px; }
.blog-post-meta { font-size:13px; color:var(--muted); margin-bottom:28px; }
.blog-post-content { font-size:15px; line-height:1.8; color:var(--text); }
.blog-post-content h2 { font-size:1.2rem; font-weight:700; margin:2em 0 .6em; }
.blog-post-content h3 { font-size:1rem; font-weight:700; margin:1.6em 0 .4em; color:var(--text); }
.blog-post-content p { margin:0 0 1.1em; }
.blog-post-content ul, .blog-post-content ol { margin:0 0 1.1em; padding-left:1.4em; }
.blog-post-content li { margin-bottom:.4em; }
.blog-post-content strong { color:var(--text); }
.blog-post-content em { color:var(--muted); font-style:italic; }
.blog-post-content a { color:var(--accent); text-decoration:underline; }
.blog-post-content table { width:100%; border-collapse:collapse; margin-bottom:1.5em; font-size:14px; }
.blog-cta-box { background:linear-gradient(135deg,#6c63ff15,#00d2ff10); border:1px solid #6c63ff40; border-radius:14px; padding:28px; margin:40px 0 32px; }
.blog-cta-title { font-size:1.1rem; font-weight:700; margin-bottom:8px; }
.blog-cta-box p { color:var(--muted); font-size:14px; margin:0 0 18px; }
.blog-related-section h2 { font-size:1rem; font-weight:700; margin:0 0 16px; }
.blog-related-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(200px,1fr)); gap:12px; }
.blog-related-card { background:var(--surface); border:1px solid var(--border); border-radius:10px; padding:14px; text-decoration:none; color:var(--text); display:flex; flex-direction:column; gap:4px; transition:border-color .15s; }
.blog-related-card:hover { border-color:var(--accent); }
.blog-related-cat { font-size:10px; font-weight:700; text-transform:uppercase; letter-spacing:.07em; color:var(--accent); }
.blog-related-title { font-size:13px; font-weight:600; line-height:1.35; }
.blog-related-meta { font-size:11px; color:var(--muted); }

/* SUGGEST & SUBSCRIBE */
.community-strip {
  max-width:900px;
  margin:0 auto 48px;
  padding:0 24px;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px;
}
.community-card {
  background:var(--card);
  border:1px solid var(--border);
  border-radius:14px;
  padding:24px;
}
.community-card h3 { font-size:.95rem; font-weight:700; margin:0 0 6px; }
.community-card p { font-size:13px; color:var(--muted); margin:0 0 14px; line-height:1.55; }
.community-form { display:flex; flex-direction:column; gap:8px; }
.community-form input { background:var(--surface); border:1px solid var(--border); border-radius:8px; padding:9px 12px; font-size:13px; color:var(--text); font-family:inherit; outline:none; transition:border-color .15s; }
.community-form input:focus { border-color:var(--accent); }
.community-msg { font-size:12px; min-height:18px; margin-top:2px; }
.community-msg.ok { color:#4ade80; }
.community-msg.err { color:#f87171; }

/* WELCOME POPUP */
.welcome-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.7);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
.welcome-overlay.open { opacity: 1; pointer-events: all; }
.welcome-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  max-width: 520px;
  width: 100%;
  padding: 36px 32px 28px;
  transform: translateY(12px);
  transition: transform .25s;
  text-align: center;
}
.welcome-overlay.open .welcome-box { transform: translateY(0); }
.welcome-badge {
  display: inline-block;
  background: linear-gradient(135deg,#6c63ff22,#00d2ff22);
  border: 1px solid #6c63ff44;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 14px;
}
.welcome-box h2 {
  font-size: 1.55rem;
  font-weight: 800;
  margin: 0 0 8px;
  line-height: 1.25;
}
.welcome-box p {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 22px;
  line-height: 1.6;
}
.welcome-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
  text-align: left;
}
.welcome-feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13px;
}
.welcome-feature-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 1px; }
.welcome-feature strong { display: block; font-weight: 700; margin-bottom: 2px; color: var(--text); }
.welcome-feature span { color: var(--muted); }
.welcome-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.welcome-actions .btn { min-width: 140px; }
.welcome-dismiss {
  display: block;
  margin-top: 14px;
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
}
.welcome-dismiss:hover { color: var(--text); }

/* SEARCH CHIPS */
.search-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0 24px 20px;
  max-width: 820px;
  margin: 0 auto;
}
.search-chip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
  transition: border-color .15s, color .15s;
  white-space: nowrap;
}
.search-chip:hover { border-color: var(--accent); color: var(--text); }

/* BUILDER CATEGORY LABEL IN SELECT */
.builder-tip-bar {
  background: linear-gradient(135deg,#6c63ff11,#00d2ff11);
  border: 1px solid #6c63ff33;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
  line-height: 1.5;
}
.builder-tip-bar strong { color: var(--text); }

/* RESPONSIVE */
@media (max-width: 640px) {
  .hero h1 { font-size: 1.8rem; }
  .grid { grid-template-columns: 1fr; }
  nav { padding: 0 16px; }
  .nav-links a { padding: 6px 10px; font-size: 13px; }
  .pp-title { font-size: 1.5rem; }
  .builder-cta { flex-direction: column; }
  .welcome-box { padding: 28px 20px 22px; }
  .welcome-actions { flex-direction: column; }
  .welcome-actions .btn { min-width: 100%; }
  .community-strip { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-post-title { font-size: 1.5rem; }
}

/* BUILDER TABS */
.builder-tabs {
  display: flex;
  gap: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 24px;
}
.builder-tab {
  flex: 1;
  padding: 8px 14px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  background: none;
  color: var(--muted);
  transition: all .15s;
  font-family: inherit;
  white-space: nowrap;
}
.builder-tab.active { background: var(--accent); color: #fff; }
.builder-tab:not(.active):hover { color: var(--text); background: var(--card); }

/* IMPROVE TAB */
.improve-section label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .05em; }
.improve-section textarea { width: 100%; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px; color: var(--text); font-size: 13px; outline: none; transition: border-color .2s; resize: vertical; min-height: 180px; font-family: monospace; line-height: 1.7; }
.improve-section textarea:focus { border-color: var(--accent); }

/* VARIATION CONTROLS */
.variation-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.variation-label { font-size: 11px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.variation-btn {
  padding: 3px 11px;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  transition: all .15s;
  font-family: inherit;
}
.variation-btn:hover { border-color: var(--accent); color: var(--text); }
.variation-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* AI OPEN BUTTONS */
.ai-open-row { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.btn-ai {
  font-size: 12px;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  gap: 5px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid;
  transition: all .15s;
  font-family: inherit;
}
.btn-ai:disabled { opacity: .4; cursor: not-allowed; }
.btn-ai-chatgpt { background: rgba(16,163,127,.1); border-color: rgba(16,163,127,.3); color: #10a37f; }
.btn-ai-chatgpt:not(:disabled):hover { background: rgba(16,163,127,.2); }
.btn-ai-claude { background: rgba(205,116,70,.1); border-color: rgba(205,116,70,.3); color: #cd7446; }
.btn-ai-claude:not(:disabled):hover { background: rgba(205,116,70,.2); }

/* SHARE URL */
.share-url-row { display: flex; gap: 8px; margin-top: 10px; }
.share-url-input {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 12px;
  color: var(--muted);
  font-size: 11px;
  outline: none;
  font-family: monospace;
  min-width: 0;
}

/* HISTORY PANEL */
.history-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.history-title { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.history-clear { font-size: 11px; color: var(--muted); cursor: pointer; background: none; border: none; font-family: inherit; padding: 0; transition: color .15s; }
.history-clear:hover { color: #f87171; }
.history-list { display: flex; flex-direction: column; gap: 6px; }
.history-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: border-color .15s;
}
.history-item:hover { border-color: var(--accent); }
.history-item-info { flex: 1; min-width: 0; }
.history-item-label { font-size: 12px; font-weight: 600; color: var(--text); }
.history-item-preview { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.history-item-restore { font-size: 11px; color: var(--accent); cursor: pointer; background: none; border: none; font-family: inherit; padding: 0; white-space: nowrap; flex-shrink: 0; }
