/*
Theme Name: PromptVault
Theme URI: https://example.com/promptvault
Author: PromptVault
Description: Lightweight AI Prompt Marketplace WordPress theme with image previews. Light white/purple design, no page builder needed.
Version: 2.0.0
Requires at least: 5.8
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: promptvault
Tags: custom-menu, featured-images, threaded-comments
*/

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

:root {
  --white: #ffffff;
  --bg: #f7f8fa;
  --bg2: #eef0f5;
  --border: #e2e5ec;
  --border2: #cdd1db;
  --text: #1a1c22;
  --text2: #4a5068;
  --text3: #8892a4;
  --purple: #6c5ce7;
  --purple-lt: #ede9ff;
  --purple-dark: #5549c0;
  --green: #00b894;
  --green-lt: #e0faf4;
  --coral: #fd7272;
  --amber: #fdcb6e;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 2px 8px rgba(0,0,0,.07), 0 8px 24px rgba(0,0,0,.05);
  --shadow-sm: 0 1px 3px rgba(0,0,0,.07);
  --shadow-card: 0 4px 20px rgba(108,92,231,.1);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max: 1140px;
}

html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.6; min-height: 100vh; }
a { color: var(--purple); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
h1,h2,h3,h4,h5,h6 { font-weight: 700; line-height: 1.3; color: var(--text); }

/* =============================================
   UTILITIES
   ============================================= */
.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; clip: rect(0,0,0,0); overflow: hidden; }

.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 20px; border-radius: var(--radius);
  font-size: 14px; font-weight: 600; cursor: pointer;
  border: 1.5px solid transparent; transition: all .18s;
  text-decoration: none; white-space: nowrap; line-height: 1;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--purple); color: #fff; border-color: var(--purple); }
.btn-primary:hover { background: var(--purple-dark); border-color: var(--purple-dark); color: #fff; }
.btn-outline { background: transparent; border-color: var(--border2); color: var(--text); }
.btn-outline:hover { border-color: var(--purple); color: var(--purple); background: var(--purple-lt); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--text2); }
.btn-ghost:hover { background: var(--bg2); }
.btn-green { background: var(--green); color: #fff; border-color: var(--green); }
.btn-green:hover { background: #009e7f; color: #fff; }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-lg { padding: 13px 30px; font-size: 15px; }
.btn-xl { padding: 15px 36px; font-size: 16px; border-radius: 12px; }
.btn-block { width: 100%; justify-content: center; }

.badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.badge-purple { background: var(--purple-lt); color: var(--purple); }
.badge-green  { background: var(--green-lt); color: #007a63; }
.badge-gray   { background: var(--bg2); color: var(--text2); }
.badge-coral  { background: #fff0ee; color: #d63031; }
.badge-amber  { background: #fff8e6; color: #9a6800; }
.badge-free   { background: #e8f5e9; color: #2e7d32; }

.tag { display: inline-flex; align-items: center; padding: 5px 13px; border-radius: 20px; font-size: 12px; font-weight: 600; border: 1.5px solid var(--border); background: var(--white); color: var(--text2); cursor: pointer; transition: all .15s; }
.tag:hover, .tag.active { background: var(--purple-lt); border-color: var(--purple); color: var(--purple); text-decoration: none; }

/* =============================================
   HEADER
   ============================================= */
#site-header { background: var(--white); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.site-header-inner { display: flex; align-items: center; justify-content: space-between; height: 62px; }

.site-logo { display: flex; align-items: center; gap: 9px; font-size: 19px; font-weight: 800; color: var(--text); text-decoration: none; letter-spacing: -.3px; }
.site-logo:hover { text-decoration: none; }
.logo-icon { width: 34px; height: 34px; background: var(--purple); border-radius: 9px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 17px; }

#primary-nav ul { display: flex; align-items: center; gap: 2px; }
#primary-nav ul li a { padding: 7px 14px; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--text2); transition: all .15s; }
#primary-nav ul li a:hover, #primary-nav ul li.current-menu-item a { color: var(--purple); background: var(--purple-lt); text-decoration: none; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 6px; color: var(--text); font-size: 24px; line-height: 1; }

/* Mobile Nav */
.mobile-nav { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 200; }
.mobile-nav.open { display: block; }
.mobile-nav-panel { background: var(--white); width: 290px; height: 100%; padding: 24px 20px; overflow-y: auto; }
.mobile-nav-close { background: none; border: none; font-size: 24px; cursor: pointer; float: right; color: var(--text2); }
.mobile-nav-panel ul { display: flex; flex-direction: column; gap: 4px; margin-top: 20px; }
.mobile-nav-panel ul li a { display: block; padding: 10px 14px; border-radius: var(--radius); font-size: 15px; color: var(--text); }
.mobile-nav-panel ul li a:hover { background: var(--purple-lt); color: var(--purple); text-decoration: none; }

/* Bottom mobile nav */
.bottom-nav { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: var(--white); border-top: 1px solid var(--border); padding: 8px 0 14px; z-index: 90; }
.bottom-nav ul { display: flex; justify-content: space-around; }
.bottom-nav ul li a { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10px; font-weight: 600; color: var(--text3); text-decoration: none; }
.bottom-nav ul li a .nav-icon { font-size: 22px; line-height: 1; }
.bottom-nav ul li a.active, .bottom-nav ul li a:hover { color: var(--purple); text-decoration: none; }

/* =============================================
   HERO
   ============================================= */
.hero { background: linear-gradient(135deg, #f0edff 0%, #e8f4ff 50%, #f0fdf9 100%); padding: 72px 0 56px; text-align: center; border-bottom: 1px solid var(--border); }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 7px; background: var(--purple-lt); color: var(--purple); padding: 6px 16px; border-radius: 20px; font-size: 13px; font-weight: 700; margin-bottom: 20px; border: 1px solid rgba(108,92,231,.2); }
.hero h1 { font-size: clamp(30px, 5vw, 52px); font-weight: 900; color: var(--text); margin-bottom: 16px; letter-spacing: -.8px; line-height: 1.15; }
.hero h1 span { color: var(--purple); }
.hero p { font-size: 18px; color: var(--text2); max-width: 560px; margin: 0 auto 32px; line-height: 1.7; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 44px; }
.hero-stats { display: flex; justify-content: center; gap: 44px; flex-wrap: wrap; }
.hero-stat .stat-num { font-size: 28px; font-weight: 900; color: var(--text); letter-spacing: -.5px; }
.hero-stat .stat-lbl { font-size: 13px; color: var(--text3); font-weight: 500; margin-top: 2px; }

.search-wrap { max-width: 540px; margin: 0 auto 32px; display: flex; gap: 8px; }
.search-wrap input { flex: 1; padding: 13px 18px; border: 1.5px solid var(--border2); border-radius: var(--radius); font-size: 15px; background: var(--white); color: var(--text); outline: none; transition: all .15s; }
.search-wrap input:focus { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(108,92,231,.12); }
.search-wrap button { padding: 13px 22px; background: var(--purple); color: #fff; border: none; border-radius: var(--radius); cursor: pointer; font-size: 18px; transition: background .15s; }
.search-wrap button:hover { background: var(--purple-dark); }

/* =============================================
   SECTION HEADERS
   ============================================= */
.section-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 24px; }
.section-title { font-size: 22px; font-weight: 800; color: var(--text); letter-spacing: -.3px; }
.section-sub { font-size: 14px; color: var(--text3); margin-top: 4px; font-weight: 400; }
.view-all { font-size: 13px; font-weight: 700; color: var(--purple); display: flex; align-items: center; gap: 4px; }
.view-all:hover { text-decoration: underline; }

.filter-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }

/* =============================================
   PROMPT CARDS — WITH IMAGE PREVIEW
   ============================================= */
.prompts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }

.prompt-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow .2s, transform .2s, border-color .2s;
  cursor: pointer;
  position: relative;
}
.prompt-card:hover { box-shadow: var(--shadow-card); transform: translateY(-3px); border-color: rgba(108,92,231,.3); }

/* ── Image Preview Area ── */
.prompt-card-img {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: linear-gradient(135deg, var(--purple-lt), var(--bg2));
}
.prompt-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.prompt-card:hover .prompt-card-img img { transform: scale(1.05); }

/* No-image placeholder */
.prompt-card-img-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 8px; color: var(--text3);
  background: linear-gradient(135deg, #f0edff 0%, #e8f4ff 100%);
}
.prompt-card-img-placeholder .placeholder-icon { font-size: 36px; opacity: .6; }
.prompt-card-img-placeholder .placeholder-text { font-size: 12px; font-weight: 600; opacity: .6; }

/* Hover overlay on image */
.prompt-card-img-overlay {
  position: absolute; inset: 0;
  background: rgba(108,92,231,.7);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .25s;
}
.prompt-card:hover .prompt-card-img-overlay { opacity: 1; }
.prompt-card-img-overlay span { color: #fff; font-size: 14px; font-weight: 700; background: rgba(255,255,255,.15); padding: 9px 20px; border-radius: 30px; border: 1.5px solid rgba(255,255,255,.4); backdrop-filter: blur(4px); }

/* Platform badge on image */
.img-platform-badge {
  position: absolute; top: 10px; left: 10px;
  background: rgba(0,0,0,.55);
  color: #fff; font-size: 11px; font-weight: 700;
  padding: 4px 10px; border-radius: 20px;
  backdrop-filter: blur(6px);
  letter-spacing: .3px;
}
/* "AI Image" label */
.img-type-badge {
  position: absolute; top: 10px; right: 10px;
  background: rgba(108,92,231,.85);
  color: #fff; font-size: 10px; font-weight: 700;
  padding: 3px 9px; border-radius: 20px;
  backdrop-filter: blur(6px);
  letter-spacing: .4px; text-transform: uppercase;
}

/* Card body */
.prompt-card-body { padding: 16px 18px 18px; }
.prompt-card-cat { margin-bottom: 8px; }
.prompt-card-title { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 7px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.prompt-card-excerpt { font-size: 13px; color: var(--text2); line-height: 1.6; margin-bottom: 14px; 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: 12px; border-top: 1px solid var(--border); }
.prompt-meta { display: flex; gap: 12px; }
.prompt-meta-item { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--text3); font-weight: 500; }
.prompt-author { display: flex; align-items: center; gap: 6px; }
.author-avatar { width: 26px; height: 26px; border-radius: 50%; background: var(--purple); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: #fff; flex-shrink: 0; }
.author-name { font-size: 12px; color: var(--text2); font-weight: 600; }

/* ── FEATURED card (larger) ── */
.prompt-card-featured .prompt-card-img { aspect-ratio: 16/9; }

/* =============================================
   SINGLE PROMPT PAGE
   ============================================= */
.single-hero { background: var(--white); border-bottom: 1px solid var(--border); padding: 40px 0 32px; }
.single-hero-inner { display: grid; grid-template-columns: 1fr 420px; gap: 40px; align-items: start; }
@media(max-width:900px){ .single-hero-inner { grid-template-columns: 1fr; } }

.single-hero-content {}
.single-breadcrumb { font-size: 13px; color: var(--text3); margin-bottom: 14px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.single-breadcrumb a { color: var(--text3); }
.single-breadcrumb a:hover { color: var(--purple); }
.single-prompt-title { font-size: clamp(22px, 3.5vw, 34px); font-weight: 900; margin: 10px 0 12px; letter-spacing: -.4px; line-height: 1.2; }
.single-meta { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin: 16px 0; }
.single-meta-item { display: flex; align-items: center; gap: 5px; font-size: 13px; color: var(--text3); font-weight: 500; }
.single-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }

/* Output image preview panel */
.single-output-panel {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: sticky;
  top: 80px;
}
.output-panel-header { padding: 14px 18px; border-bottom: 1px solid var(--border); background: var(--white); }
.output-panel-title { font-size: 13px; font-weight: 700; color: var(--text2); text-transform: uppercase; letter-spacing: .5px; display: flex; align-items: center; gap: 8px; }
.output-panel-img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--purple-lt); display: block; }
.output-panel-img-placeholder { aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: var(--text3); background: linear-gradient(135deg, #f0edff, #e8f4ff); }
.output-panel-img-placeholder span:first-child { font-size: 52px; }
.output-panel-img-placeholder span:last-child { font-size: 13px; font-weight: 600; }
.output-panel-caption { padding: 12px 18px; font-size: 12px; color: var(--text3); border-top: 1px solid var(--border); background: var(--white); line-height: 1.5; }

/* Prompt text box */
.prompt-text-wrap { position: relative; margin-bottom: 24px; }
.prompt-text-box {
  background: #1e1e2e; color: #cdd6f4;
  border-radius: var(--radius-lg);
  padding: 22px; font-size: 14px;
  line-height: 1.8; font-family: 'Courier New', monospace;
  white-space: pre-wrap; word-break: break-word;
  min-height: 160px; position: relative;
  border: 1px solid rgba(255,255,255,.08);
}
.prompt-text-locked {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(30,30,46,0) 20%, rgba(30,30,46,.98) 70%);
  border-radius: var(--radius-lg);
  display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: 24px;
}
.prompt-copy-btn {
  position: absolute; top: 12px; right: 12px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15);
  color: #cdd6f4; border-radius: 7px; padding: 5px 12px;
  font-size: 12px; cursor: pointer; transition: all .15s; font-family: inherit;
}
.prompt-copy-btn:hover { background: rgba(255,255,255,.2); }

/* Launch buttons */
.launch-btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.launch-btn { display: inline-flex; align-items: center; gap: 7px; padding: 8px 16px; border-radius: 8px; font-size: 13px; font-weight: 700; border: 1.5px solid var(--border); background: var(--white); color: var(--text2); cursor: pointer; transition: all .15s; text-decoration: none; }
.launch-btn:hover { border-color: var(--purple); color: var(--purple); background: var(--purple-lt); text-decoration: none; }
.launch-btn .lb-icon { font-size: 16px; }

/* =============================================
   CATEGORIES GRID
   ============================================= */
.categories-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: 14px; }
.category-card { background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius-lg); padding: 22px 16px; text-align: center; cursor: pointer; transition: all .18s; text-decoration: none; display: block; }
.category-card:hover { border-color: var(--purple); background: var(--purple-lt); text-decoration: none; transform: translateY(-3px); box-shadow: var(--shadow); }
.category-icon { font-size: 30px; margin-bottom: 10px; line-height: 1; }
.category-name { font-size: 13px; font-weight: 700; color: var(--text); }
.category-count { font-size: 12px; color: var(--text3); margin-top: 4px; }

/* =============================================
   HOW IT WORKS
   ============================================= */
.how-it-works { background: var(--white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0; }
.step-card { text-align: center; padding: 36px 24px; position: relative; }
.step-card:not(:last-child)::after { content: '→'; position: absolute; right: -10px; top: 50%; transform: translateY(-50%); font-size: 20px; color: var(--border2); }
.step-num { width: 52px; height: 52px; border-radius: 50%; background: var(--purple); color: #fff; font-size: 20px; font-weight: 800; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; box-shadow: 0 4px 14px rgba(108,92,231,.3); }
.step-icon { font-size: 28px; margin-bottom: 12px; }
.step-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 10px; }
.step-card p { font-size: 14px; color: var(--text2); line-height: 1.6; }

/* =============================================
   PROOF STRIP — "Made with this prompt"
   ============================================= */
.proof-strip { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; margin-bottom: 24px; }
.proof-strip-title { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.proof-strip-title::before { content: '🖼'; font-size: 16px; }
.proof-images { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.proof-img-wrap { aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--purple-lt); cursor: pointer; position: relative; }
.proof-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.proof-img-wrap:hover img { transform: scale(1.08); }
.proof-img-wrap .proof-zoom { position: absolute; inset: 0; background: rgba(108,92,231,.5); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .2s; font-size: 22px; }
.proof-img-wrap:hover .proof-zoom { opacity: 1; }

/* Lightbox */
.pv-lightbox { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.88); z-index: 999; align-items: center; justify-content: center; padding: 20px; cursor: pointer; }
.pv-lightbox.open { display: flex; }
.pv-lightbox img { max-width: 90vw; max-height: 90vh; border-radius: 12px; object-fit: contain; cursor: default; }
.pv-lightbox-close { position: absolute; top: 20px; right: 24px; color: #fff; font-size: 32px; cursor: pointer; line-height: 1; }

/* =============================================
   SIDEBAR
   ============================================= */
.content-sidebar-wrap { display: grid; grid-template-columns: 1fr 300px; gap: 28px; align-items: start; }
@media(max-width:920px){ .content-sidebar-wrap { grid-template-columns: 1fr; } }
.widget { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; margin-bottom: 20px; }
.widget-title { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .6px; color: var(--text3); margin-bottom: 16px; }

/* =============================================
   DISCOVER / ARCHIVE
   ============================================= */
.discover-header { background: var(--white); border-bottom: 1px solid var(--border); padding: 32px 0; }
.discover-header h1 { font-size: 28px; font-weight: 900; }
.discover-layout { display: grid; grid-template-columns: 230px 1fr; gap: 28px; padding: 32px 0 80px; align-items: start; }
@media(max-width:860px){ .discover-layout { grid-template-columns: 1fr; } }
.sidebar-filters { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; position: sticky; top: 80px; }
.filter-section { margin-bottom: 22px; }
.filter-section-title { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .6px; color: var(--text3); margin-bottom: 10px; }
.filter-list li label { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text2); cursor: pointer; padding: 4px 0; }
.filter-list li label:hover { color: var(--purple); }
.filter-list li input[type="checkbox"], .filter-list li input[type="radio"] { accent-color: var(--purple); }

/* =============================================
   CONTRIBUTORS
   ============================================= */
.contributors-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; }
.contributor-card { background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius-lg); padding: 24px 16px; text-align: center; transition: all .18s; }
.contributor-card:hover { border-color: var(--purple); transform: translateY(-3px); box-shadow: var(--shadow-card); }
.contributor-avatar { width: 60px; height: 60px; border-radius: 50%; background: var(--purple); display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 800; color: #fff; margin: 0 auto 12px; }
.contributor-name { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.contributor-prompts { font-size: 12px; color: var(--text3); font-weight: 500; }
.contributor-badge { display: inline-block; background: var(--purple-lt); color: var(--purple); font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 20px; margin-top: 8px; }

/* =============================================
   DASHBOARD
   ============================================= */
.dashboard-wrap { display: grid; grid-template-columns: 250px 1fr; gap: 28px; align-items: start; }
@media(max-width:800px){ .dashboard-wrap { grid-template-columns: 1fr; } }
.dashboard-sidebar { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.dash-profile { padding: 28px 20px; text-align: center; border-bottom: 1px solid var(--border); background: linear-gradient(135deg, #f0edff, #e8f4ff); }
.dash-avatar-lg { width: 76px; height: 76px; border-radius: 50%; background: var(--purple); display: flex; align-items: center; justify-content: center; font-size: 30px; font-weight: 800; color: #fff; margin: 0 auto 14px; box-shadow: 0 4px 16px rgba(108,92,231,.3); }
.dash-profile-name { font-size: 17px; font-weight: 800; }
.dash-profile-role { font-size: 13px; color: var(--text3); margin-top: 4px; }
.dash-nav ul { padding: 12px 10px; display: flex; flex-direction: column; gap: 2px; }
.dash-nav ul li a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--text2); transition: all .15s; }
.dash-nav ul li a:hover, .dash-nav ul li.active a { background: var(--purple-lt); color: var(--purple); text-decoration: none; }
.metrics-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 14px; margin-bottom: 24px; }
.metric-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; text-align: center; }
.metric-val { font-size: 28px; font-weight: 900; color: var(--text); letter-spacing: -.5px; }
.metric-lbl { font-size: 12px; color: var(--text3); margin-top: 5px; font-weight: 600; text-transform: uppercase; letter-spacing: .4px; }
.progress-section { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; margin-bottom: 20px; }
.progress-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.progress-bar { background: var(--bg2); border-radius: 8px; height: 10px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(to right, var(--purple), #a29bfe); border-radius: 8px; transition: width .4s ease; }
.progress-labels { display: flex; justify-content: space-between; font-size: 12px; color: var(--text3); margin-top: 8px; font-weight: 500; }

/* =============================================
   FORMS
   ============================================= */
.form-page { min-height: calc(100vh - 200px); display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.form-box { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 40px; width: 100%; max-width: 440px; box-shadow: var(--shadow); }
.form-box-wide { max-width: 640px; }
.form-title { font-size: 26px; font-weight: 900; margin-bottom: 6px; letter-spacing: -.4px; }
.form-sub { font-size: 14px; color: var(--text2); margin-bottom: 30px; }
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 13px; font-weight: 700; color: var(--text2); margin-bottom: 7px; }
.form-control { width: 100%; padding: 12px 15px; border: 1.5px solid var(--border2); border-radius: var(--radius); font-size: 14px; background: var(--bg); color: var(--text); outline: none; transition: all .15s; font-family: inherit; }
.form-control:focus { border-color: var(--purple); background: var(--white); box-shadow: 0 0 0 3px rgba(108,92,231,.1); }
textarea.form-control { min-height: 130px; resize: vertical; }
select.form-control { cursor: pointer; }
.form-hint { font-size: 12px; color: var(--text3); margin-top: 5px; }
.form-footer { margin-top: 22px; text-align: center; font-size: 14px; color: var(--text2); }
.form-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--text3); font-size: 13px; }
.form-divider::before, .form-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* Image upload preview */
.img-upload-area { border: 2px dashed var(--border2); border-radius: var(--radius-lg); padding: 32px; text-align: center; cursor: pointer; transition: all .2s; background: var(--bg); }
.img-upload-area:hover, .img-upload-area.drag-over { border-color: var(--purple); background: var(--purple-lt); }
.img-upload-area .upload-icon { font-size: 36px; margin-bottom: 10px; }
.img-upload-area p { font-size: 14px; color: var(--text2); }
.img-upload-area small { font-size: 12px; color: var(--text3); }
.img-preview-thumb { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: var(--radius); margin-top: 12px; display: none; border: 1px solid var(--border); }

/* =============================================
   NEWSLETTER
   ============================================= */
.newsletter-section { background: linear-gradient(135deg, var(--purple) 0%, #a29bfe 100%); padding: 64px 0; text-align: center; color: #fff; }
.newsletter-section h2 { font-size: 28px; font-weight: 900; margin-bottom: 10px; }
.newsletter-section p { font-size: 16px; opacity: .9; margin-bottom: 28px; }
.newsletter-form { display: flex; gap: 10px; max-width: 440px; margin: 0 auto; flex-wrap: wrap; justify-content: center; }
.newsletter-form input { flex: 1; min-width: 200px; padding: 13px 18px; border: none; border-radius: var(--radius); font-size: 14px; outline: none; }
.newsletter-form button { background: var(--text); color: #fff; border: none; padding: 13px 24px; border-radius: var(--radius); font-size: 14px; font-weight: 700; cursor: pointer; }

/* =============================================
   FOOTER
   ============================================= */
#site-footer { background: var(--white); border-top: 1px solid var(--border); padding: 52px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 40px; }
@media(max-width:760px){ .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media(max-width:480px){ .footer-grid { grid-template-columns: 1fr; } }
.footer-desc { font-size: 14px; color: var(--text3); line-height: 1.7; margin: 12px 0 18px; }
.footer-social { display: flex; gap: 10px; }
.social-btn { width: 36px; height: 36px; border-radius: 50%; background: var(--bg2); display: flex; align-items: center; justify-content: center; font-size: 15px; color: var(--text2); font-weight: 700; transition: all .15s; text-decoration: none; }
.social-btn:hover { background: var(--purple); color: #fff; text-decoration: none; }
.footer-col-title { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .6px; color: var(--text3); margin-bottom: 16px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 14px; color: var(--text2); transition: color .15s; }
.footer-links a:hover { color: var(--purple); text-decoration: none; }
.footer-bottom { padding-top: 28px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.footer-copy { font-size: 13px; color: var(--text3); }

/* =============================================
   NOTICES & PAGINATION
   ============================================= */
.notice { padding: 13px 18px; border-radius: var(--radius); font-size: 14px; margin-bottom: 18px; font-weight: 500; }
.notice-success { background: var(--green-lt); color: #007a63; border: 1px solid #b2ecd8; }
.notice-error { background: #fff0f0; color: #c0392b; border: 1px solid #f5c6c6; }
.notice-info { background: var(--purple-lt); color: var(--purple); border: 1px solid #c5bcf7; }

.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 44px; flex-wrap: wrap; }
.pagination a, .pagination span { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 9px; border: 1.5px solid var(--border); font-size: 14px; font-weight: 600; color: var(--text2); transition: all .15s; }
.pagination a:hover, .pagination .current { background: var(--purple); border-color: var(--purple); color: #fff; text-decoration: none; }

/* =============================================
   MAIN LAYOUT
   ============================================= */
.site-main { padding: 48px 0 80px; }
.section { margin-bottom: 60px; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media(max-width:768px){
  #primary-nav, .header-btn-desktop { display: none; }
  .hamburger { display: flex; align-items: center; }
  .bottom-nav { display: block; }
  .site-main { padding-bottom: 90px; }
  .hero { padding: 44px 0 40px; }
  .prompts-grid { grid-template-columns: 1fr; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .step-card:not(:last-child)::after { display: none; }
  .proof-images { grid-template-columns: repeat(3, 1fr); }
  .form-box { padding: 28px 22px; }
}
@media(max-width:480px){
  .steps-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; }
}
