/* ═══════════════════════════════════════════════════════════
   Seedling Crowdfunding — Main Stylesheet
   Aesthetic: Warm editorial meets organic growth
   ═══════════════════════════════════════════════════════════ */

/* ─── TOKENS ─── */
:root {
  --green-50: #f0fdf4;
  --green-100: #dcfce7;
  --green-400: #4ade80;
  --green-500: #22c55e;
  --green-600: #16a34a;
  --green-700: #15803d;
  --green-900: #14532d;

  --stone-50: #fafaf9;
  --stone-100: #f5f5f4;
  --stone-200: #e7e5e4;
  --stone-300: #d6d3d1;
  --stone-400: #a8a29e;
  --stone-500: #78716c;
  --stone-600: #57534e;
  --stone-700: #44403c;
  --stone-800: #292524;
  --stone-900: #1c1917;

  --amber-400: #fbbf24;
  --amber-500: #f59e0b;

  --primary: var(--green-600);
  --primary-dark: var(--green-700);
  --primary-light: var(--green-100);
  --accent: var(--amber-400);

  --bg: #fffef9;
  --surface: #ffffff;
  --surface-2: var(--stone-50);
  --border: var(--stone-200);
  --text: var(--stone-800);
  --text-muted: var(--stone-500);
  --text-light: var(--stone-400);

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;

  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-md: 0 6px 24px rgba(0,0,0,0.10);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
  --shadow-xl: 0 24px 60px rgba(0,0,0,0.15);

  --nav-h: 68px;

  --transition: 0.2s ease;
  --transition-slow: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, textarea, select { font-family: inherit; }

/* ─── NAVBAR ─── */
.navbar {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(16px, 4vw, 48px);
  background: rgba(255,254,249,0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow); }

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.nav-logo::before {
  content: '';
  display: block;
  width: 22px;
  height: 26px;
  background-image: url('/img/logo-icon.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
}

.nav-links {
  display: flex; align-items: center; gap: 8px;
}
.nav-link {
  padding: 6px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
.nav-link:hover { color: var(--text); background: var(--stone-100); }
.nav-link.active  { color: var(--primary); font-weight: 600; }

.nav-user {
  display: flex; align-items: center; gap: 10px;
}
#nav-username {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
}

.nav-hamburger {
  display: none;
  font-size: 1.4rem;
  color: var(--text);
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 22px;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all var(--transition);
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(22,163,74,0.3);
}
.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 4px 16px rgba(22,163,74,0.4);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover { color: var(--text); border-color: var(--stone-400); background: var(--stone-50); }
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff; transform: translateY(-1px); }
.btn-xl { padding: 14px 32px; font-size: 1rem; }
.btn-danger { background: #ef4444; color: #fff; }
.btn-danger:hover { background: #dc2626; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* ─── HERO ─── */
.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
  padding: 80px clamp(16px, 5vw, 80px);
  overflow: hidden;
}
.hero:has(.hero-illustration:empty) {
  grid-template-columns: 1fr;
}
.hero:has(.hero-illustration:empty) .hero-content {
  max-width: 680px;
}
.hero-bg-shapes {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden;
}
.shape {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: 0.5;
}
.shape-1 { width: 400px; height: 400px; background: var(--green-100); top: -100px; right: -100px; }
.shape-2 { width: 300px; height: 300px; background: #fef9c3; bottom: 50px; left: 10%; }
.shape-3 { width: 200px; height: 200px; background: var(--green-50); top: 40%; right: 30%; }

.hero-content { position: relative; z-index: 1; max-width: 560px; }
.hero-eyebrow {
  display: inline-block;
  padding: 6px 14px;
  background: var(--green-100);
  color: var(--green-700);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  line-height: 1.1;
  letter-spacing: -2px;
  color: var(--stone-900);
  margin-bottom: 20px;
}
.hero-title em { color: var(--primary); font-style: italic; }
.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 440px;
}
.hero-cta-group { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 48px; }
.hero-stats { display: flex; align-items: center; gap: 24px; }
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat-num { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; color: var(--stone-900); }
.stat-label { font-size: 0.78rem; color: var(--text-muted); font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; }
.stat-divider { width: 1px; height: 36px; background: var(--border); }

/* ─── HERO ILLUSTRATION ─── */
.hero-illustration {
  position: relative;
  z-index: 1;
  height: 380px;
}
.hero-illustration:has(.hero-nav-card) { height: 500px; }
.hero-nav-card         { text-align: center; padding: 20px 18px; }
.hero-nav-card-icon    { font-size: 1.8rem; margin-bottom: 8px; }
.hero-nav-card-title   { font-family: var(--font-display); font-size: 0.95rem; font-weight: 700; color: var(--stone-900); margin-bottom: 6px; }
.hero-nav-card-body    { font-size: 0.8rem; color: var(--text-muted); line-height: 1.5; margin-bottom: 14px; }
.hero-nav-card-btn     { width: 100%; justify-content: center; font-size: 0.8rem; padding: 8px 12px; }
.floating-card {
  position: absolute;
  background: white;
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  box-shadow: var(--shadow-lg);
  width: 220px;
  animation: float 6s ease-in-out infinite;
}
.card-1 { top: 0;    left: 5%;  animation-delay: 0s; }
.card-2 { top: 8%;  right: 0;  animation-delay: 2s; }
.card-3 { bottom: 0;   left: 0;   animation-delay: 4s; }
.card-4 { bottom: 8%;  right: 5%; animation-delay: 3s; }

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}
.fc-icon { font-size: 1.6rem; margin-bottom: 8px; }
.fc-text { display: flex; flex-direction: column; gap: 2px; margin-bottom: 10px; }
.fc-text strong { font-size: 0.9rem; font-weight: 600; }
.fc-text span { font-size: 0.78rem; color: var(--text-muted); }
.fc-bar { height: 6px; background: var(--stone-100); border-radius: 100px; overflow: hidden; }
.fc-bar-fill { height: 100%; background: linear-gradient(90deg, var(--green-400), var(--green-600)); border-radius: 100px; }

/* ─── SECTIONS ─── */
.section { padding: 80px clamp(16px, 5vw, 80px); }
.section-header {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 40px;
}
.section-header h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: -1px;
  color: var(--stone-900);
}
.see-all {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  transition: gap var(--transition);
}
.see-all:hover { opacity: 0.8; }
.section-title-center {
  font-family: var(--font-display);
  font-size: 2rem;
  text-align: center;
  letter-spacing: -1px;
  color: var(--stone-900);
  margin-bottom: 48px;
}

/* ─── CAMPAIGN CARDS ─── */
.campaigns-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.campaign-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform var(--transition-slow), box-shadow var(--transition-slow);
  cursor: pointer;
}
.campaign-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}
.campaign-card-img {
  width: 100%; height: 200px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--green-100), var(--stone-100));
}
.campaign-card-img-placeholder {
  width: 100%; height: 200px;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
  background: linear-gradient(135deg, var(--green-50), var(--stone-100));
}
.campaign-card-body { padding: 20px; }
.campaign-category {
  display: inline-block;
  padding: 3px 10px;
  background: var(--green-100);
  color: var(--green-700);
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}
.campaign-card-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--stone-900);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.campaign-card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.progress-bar-wrap {
  height: 8px;
  background: var(--stone-100);
  border-radius: 100px;
  overflow: hidden;
  margin-bottom: 12px;
}
.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--green-400), var(--green-600));
  border-radius: 100px;
  transition: width 0.8s cubic-bezier(0.16,1,0.3,1);
}
.campaign-meta {
  display: flex; justify-content: space-between; align-items: center;
}
.campaign-meta-raised { font-weight: 600; font-size: 0.9rem; color: var(--stone-900); }
.campaign-meta-raised span { color: var(--primary); }
.campaign-meta-pct {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Campaign Skeleton */
.campaign-skeleton {
  background: var(--stone-100);
  border-radius: var(--radius-lg);
  height: 340px;
  animation: skeleton-pulse 1.5s ease-in-out infinite;
}
@keyframes skeleton-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ─── HOW IT WORKS ─── */
.how-section { background: var(--stone-50); }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.step-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  border: 1px solid var(--border);
  position: relative;
  transition: transform var(--transition-slow), box-shadow var(--transition-slow);
}
.step-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.step-num {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--stone-100);
  line-height: 1;
  position: absolute;
  top: 16px; right: 20px;
}
.step-icon { font-size: 2rem; margin-bottom: 16px; }
.step-card h3 { font-family: var(--font-display); font-size: 1.2rem; margin-bottom: 10px; color: var(--stone-900); }
.step-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }

/* ─── FORMS ─── */
.page-container {
  max-width: 680px;
  margin: 0 auto;
  padding: 60px clamp(16px, 4vw, 40px);
  flex: 1;
}
.page-container.wide { max-width: 1100px; }

.page-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: -1.5px;
  color: var(--stone-900);
  margin-bottom: 8px;
}
.page-subtitle { font-size: 1rem; color: var(--text-muted); margin-bottom: 40px; }

.form-card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 40px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.form-group { margin-bottom: 24px; }
.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--stone-700);
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}
.form-label .optional { font-weight: 400; color: var(--text-light); }
.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(22,163,74,0.12);
}
.form-control::placeholder { color: var(--text-light); }
textarea.form-control { resize: vertical; min-height: 120px; }
.form-hint { font-size: 0.78rem; color: var(--text-light); margin-top: 4px; }
.form-error { font-size: 0.78rem; color: #ef4444; margin-top: 4px; display: none; }
.form-control.error { border-color: #ef4444; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-submit { width: 100%; padding: 14px; font-size: 1rem; border-radius: var(--radius); }

.divider-or {
  display: flex; align-items: center; gap: 16px;
  margin: 24px 0;
  color: var(--text-light);
  font-size: 0.85rem;
}
.divider-or::before, .divider-or::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}

.auth-footer { text-align: center; margin-top: 20px; font-size: 0.9rem; color: var(--text-muted); }
.auth-footer a { color: var(--primary); font-weight: 600; }

/* ── Password strength meter ─────────────────────────────── */
.pw-strength-wrap {
  display: none;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}
.pw-strength-wrap.visible { display: flex; }
.pw-strength-bar-track {
  flex: 1;
  height: 6px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
}
.pw-strength-bar {
  height: 100%;
  width: 0%;
  border-radius: 99px;
  transition: width 0.35s ease, background-color 0.35s ease;
}
.pw-strength-bar.weak   { background: #ef4444; }
.pw-strength-bar.fair   { background: #f59e0b; }
.pw-strength-bar.good   { background: #84cc16; }
.pw-strength-bar.strong { background: #22c55e; }
.pw-strength-label {
  font-size: 0.75rem;
  font-weight: 600;
  min-width: 46px;
  text-align: right;
  transition: color 0.35s ease;
}
.pw-strength-label.weak   { color: #ef4444; }
.pw-strength-label.fair   { color: #f59e0b; }
.pw-strength-label.good   { color: #84cc16; }
.pw-strength-label.strong { color: #22c55e; }

/* Requirement checklist */
.pw-requirements {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 12px;
}
.pw-req {
  font-size: 0.76rem;
  color: var(--text-muted);
  padding-left: 18px;
  position: relative;
  transition: color 0.2s ease;
}
.pw-req::before {
  content: '✗';
  position: absolute;
  left: 0;
  color: var(--stone-400);
  font-size: 0.7rem;
  transition: color 0.2s ease;
}
.pw-req.met {
  color: #16a34a;
}
.pw-req.met::before {
  content: '✓';
  color: #16a34a;
}

/* Image Upload */
.img-upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}
.img-upload-zone:hover, .img-upload-zone.drag-over {
  border-color: var(--primary);
  background: var(--green-50);
}
.img-upload-zone input[type="file"] { display: none; }
.img-upload-icon { font-size: 2.5rem; margin-bottom: 12px; }
.img-upload-zone p { font-size: 0.9rem; color: var(--text-muted); }
.img-upload-zone strong { color: var(--primary); }
.img-preview {
  width: 100%; max-height: 240px;
  object-fit: cover; border-radius: var(--radius);
  margin-top: 12px; display: none;
}

/* ─── CAMPAIGN DETAIL ─── */
.campaign-detail-hero {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--radius-xl);
  margin-bottom: 32px;
}
.campaign-detail-hero-placeholder {
  width: 100%; height: 320px;
  border-radius: var(--radius-xl);
  display: flex; align-items: center; justify-content: center;
  font-size: 5rem;
  background: linear-gradient(135deg, var(--green-50), var(--stone-100));
  margin-bottom: 32px;
}

.campaign-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: start;
}
.campaign-detail-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -1px;
  color: var(--stone-900);
  margin-bottom: 12px;
  line-height: 1.15;
}
.campaign-detail-creator {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.campaign-detail-creator strong { color: var(--text); }
.campaign-detail-desc {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-muted);
  white-space: pre-wrap;
}

/* Pledge Sidebar */
.pledge-sidebar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow);
  position: sticky;
  top: calc(var(--nav-h) + 20px);
}
.pledge-amount-raised {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}
.pledge-goal-text { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 16px; }
.pledge-pct {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--stone-700);
  margin-bottom: 6px;
}
.pledge-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 20px 0; }
.pledge-stat { text-align: center; padding: 12px; background: var(--stone-50); border-radius: var(--radius); }
.pledge-stat-num { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; color: var(--stone-900); }
.pledge-stat-lbl { font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }

.pledge-input-group { margin: 20px 0; }
.pledge-presets { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.pledge-preset-btn {
  padding: 6px 14px;
  border: 1.5px solid var(--border);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--transition);
}
.pledge-preset-btn:hover, .pledge-preset-btn.active {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--green-50);
}
.pledge-amount-input {
  display: flex; align-items: center;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.pledge-currency {
  padding: 12px 14px;
  background: var(--stone-50);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
  border-right: 1.5px solid var(--border);
}
.pledge-amount-input input {
  flex: 1; padding: 12px 14px;
  border: none; outline: none;
  font-size: 1rem; font-weight: 600;
  color: var(--stone-900);
  background: transparent;
}
.pledge-amount-input:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(22,163,74,0.12); }

.pledge-btn-main { width: 100%; padding: 14px; font-size: 1rem; border-radius: var(--radius); margin-top: 8px; }
.pledge-stripe-note {
  display: flex; align-items: center; gap: 6px; justify-content: center;
  font-size: 0.75rem; color: var(--text-light); margin-top: 10px;
}

/* ─── ALERTS / TOASTS ─── */
.toast-container {
  position: fixed; bottom: 24px; right: 24px;
  display: flex; flex-direction: column; gap: 10px;
  z-index: 9999; pointer-events: none;
}
.toast {
  padding: 14px 20px;
  border-radius: var(--radius);
  background: var(--stone-900);
  color: white;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--shadow-xl);
  pointer-events: all;
  animation: toast-in 0.3s var(--transition-slow);
  max-width: 340px;
}
.toast.success { background: var(--green-700); }
.toast.error { background: #dc2626; }
@keyframes toast-in {
  from { opacity: 0; transform: translateY(16px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Alert boxes */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  margin-bottom: 20px;
}
.alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert-success { background: var(--green-50); color: var(--green-700); border: 1px solid var(--green-100); }
.alert-info { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }

/* ─── LOADING ─── */
.spinner {
  display: inline-block;
  width: 20px; height: 20px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.page-loader {
  display: flex; align-items: center; justify-content: center;
  padding: 80px 20px;
  flex-direction: column; gap: 16px;
  color: var(--text-muted);
}

/* ─── EMPTY STATE ─── */
.empty-state {
  text-align: center; padding: 80px 20px;
  color: var(--text-muted);
  grid-column: 1 / -1;
}
.empty-state-icon { font-size: 4rem; margin-bottom: 16px; }
.empty-state h3 { font-family: var(--font-display); font-size: 1.4rem; color: var(--stone-700); margin-bottom: 8px; }
.empty-state p { font-size: 0.95rem; margin-bottom: 24px; }

/* ─── BADGES ─── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: 100px;
  font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em;
}
.badge-funded   { background: var(--green-100); color: var(--green-700); }
.badge-active   { background: #eff6ff; color: #1d4ed8; }
.badge-deadline { background: var(--stone-100); color: var(--stone-600); }
.badge-expiring { background: #fff7ed; color: #c2410c; }
.badge-expired  { background: #fef2f2; color: #b91c1c; }

/* ─── FILTER BAR ─── */
.filter-bar {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.filter-btn {
  padding: 8px 18px;
  border: 1.5px solid var(--border);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--transition);
}
.filter-btn:hover { border-color: var(--stone-400); color: var(--text); }
.filter-btn.active { border-color: var(--primary); color: var(--primary); background: var(--green-50); }

/* ─── SEARCH ─── */
.search-wrap {
  position: relative; flex: 1; min-width: 220px;
}
.search-wrap::before {
  content: '🔍';
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  font-size: 0.85rem; pointer-events: none;
}
.search-input {
  width: 100%;
  padding: 10px 14px 10px 38px;
  border: 1.5px solid var(--border);
  border-radius: 100px;
  font-size: 0.9rem;
  outline: none;
  background: var(--surface);
  transition: border-color var(--transition);
}
.search-input:focus { border-color: var(--primary); }

/* ─── SUCCESS PAGE ─── */
.success-page {
  min-height: 70vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: 60px 20px;
}
.success-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 60px 48px;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border);
  max-width: 480px;
}
.success-icon { font-size: 4rem; margin-bottom: 20px; animation: pop 0.4s var(--transition-slow); }
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }
.success-title { font-family: var(--font-display); font-size: 2rem; letter-spacing: -1px; color: var(--stone-900); margin-bottom: 12px; }
.success-subtitle { color: var(--text-muted); margin-bottom: 32px; }

/* ─── FOOTER ─── */
.footer {
  background: var(--stone-900);
  color: var(--stone-400);
  padding: 48px clamp(16px, 5vw, 80px) 24px;
}
.footer-inner {
  display: flex; justify-content: space-between; align-items: start;
  flex-wrap: wrap; gap: 32px;
  margin-bottom: 32px;
}
.footer-logo { font-family: var(--font-display); font-size: 1.3rem; color: white; display: flex; align-items: center; gap: 7px; }
.footer-logo::before {
  content: '';
  display: block;
  width: 20px;
  height: 23px;
  background-image: url('/img/logo-icon.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
  filter: brightness(0) invert(1);
}
.footer-brand p { font-size: 0.85rem; margin-top: 8px; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { font-size: 0.88rem; transition: color var(--transition); }
.footer-links a:hover { color: white; }
.footer-bottom { text-align: center; font-size: 0.8rem; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.1); }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding: 60px 24px; gap: 32px; }
  .hero-illustration { display: none; }
  .campaign-layout { grid-template-columns: 1fr; }
  .pledge-sidebar { position: static; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-hamburger { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    background: white; padding: 20px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    z-index: 99;
  }
  .form-row { grid-template-columns: 1fr; }
  .form-card { padding: 24px 20px; }
  .hero-stats { gap: 12px; }
}

/* ═══════════════════════════════════════════════════════
   DASHBOARD
   ═══════════════════════════════════════════════════════ */

.dashboard-header {
  margin-bottom: 32px;
}
.dashboard-header h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--stone-900);
  margin-bottom: 4px;
}
.dashboard-header p {
  color: var(--stone-500);
  font-size: 0.95rem;
}

/* ── Stats bar ─────────────────────────────────────────── */
.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}
.stat-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: var(--shadow-sm);
}
.stat-card .stat-value {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-card .stat-label {
  font-size: 0.82rem;
  color: var(--stone-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ── Dashboard sections ────────────────────────────────── */
.dashboard-section {
  margin-bottom: 40px;
}
.dashboard-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.dashboard-section-header h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--stone-800);
}

/* ── Campaign rows ─────────────────────────────────────── */
.campaign-rows, .pledge-rows {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.campaign-row, .pledge-row {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow var(--transition), border-color var(--transition);
  box-shadow: var(--shadow-sm);
}
.campaign-row:hover, .pledge-row:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-md);
}
.campaign-row-thumb {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--stone-100);
  flex-shrink: 0;
}
.campaign-row-thumb-placeholder {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background: var(--stone-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.campaign-row-info {
  flex: 1;
  min-width: 0;
}
.campaign-row-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--stone-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}
.campaign-row-meta {
  font-size: 0.82rem;
  color: var(--stone-500);
}
.campaign-row-progress {
  width: 120px;
  flex-shrink: 0;
}
.campaign-row-progress .progress-bar-wrap {
  height: 6px;
  margin-bottom: 4px;
}
.campaign-row-progress-label {
  font-size: 0.78rem;
  color: var(--stone-500);
  text-align: right;
}

/* ── Status badge ──────────────────────────────────────── */
.status-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  flex-shrink: 0;
}
.status-badge.active  { background: #dcfce7; color: #15803d; }
.status-badge.funded  { background: #dbeafe; color: #1d4ed8; }
.status-badge.closed    { background: var(--stone-100); color: var(--stone-500); }
.status-badge.refunded  { background: #fef3c7; color: #92400e; }

/* ── Pledge breakdown bar ──────────────────────────────── */
.pledge-breakdown { margin-bottom: 20px; }
.pledge-breakdown-bar {
  display: flex;
  height: 10px;
  border-radius: 100px;
  overflow: hidden;
  margin-bottom: 10px;
  background: var(--stone-100);
}
.pledge-breakdown-segment { height: 100%; transition: width 0.6s ease; }
.pledge-breakdown-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.pledge-breakdown-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 4px;
  vertical-align: middle;
  flex-shrink: 0;
}

/* ── Rich pledge row ───────────────────────────────────── */
.pledge-row--rich { align-items: flex-start; }

/* ── Pledge row specifics ──────────────────────────────── */
.pledge-amount {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── Investor campaign styles ──────────────────────────── */

/* Return % badge — on campaign cards and campaign page title row */
.investor-return-badge {
  display: inline-flex; align-items: center; gap: 4px;
  background: #fefce8;
  border: 1px solid #fde68a;
  color: #92400e;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
}

/* Return promise notice — below pledge sidebar, amber to match AoN badge */
.return-promise-notice {
  background: #fefce8;
  border: 1px solid #fde68a;
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 0.85rem;
  color: #92400e;
  margin-top: 12px;
  line-height: 1.5;
}
.return-promise-notice--spaced { margin-bottom: 28px; }

/* Expected return line in dashboard investor pledge row */
.pledge-return-note {
  font-size: 0.78rem;
  color: var(--green-700);
  font-weight: 500;
  margin-top: 2px;
}

/* Investor list toggle link under campaigner's campaign row */
.investor-list-toggle {
  display: inline-block;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 6px;
  cursor: pointer;
  user-select: none;
}
.investor-list-toggle:hover { color: var(--text); }

/* Investor list table inside campaign row */
.investor-list {
  margin-top: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  font-size: 0.82rem;
}
.investor-list-header,
.investor-list-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr auto;
  gap: 8px;
  padding: 8px 12px;
  align-items: center;
}
.investor-list-header {
  background: var(--stone-100);
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.investor-list-row {
  border-top: 1px solid var(--border);
  color: var(--text);
}
.investor-list-row:hover { background: var(--stone-50); }
.investor-list-summary {
  display: flex;
  gap: 20px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 8px;
  padding: 0 2px;
}
.investor-list-summary strong { color: var(--text); }

/* Mark as repaid toggle button */
.btn-mark-repaid {
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-mark-repaid:hover { border-color: var(--green-600); color: var(--green-700); }
.btn-mark-repaid.repaid {
  background: var(--green-50);
  border-color: var(--green-400);
  color: var(--green-700);
}

/* ── Payout / Stripe Connect card ─────────────────────── */
.payout-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.payout-status-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.payout-status-icon {
  font-size: 2rem;
  line-height: 1;
  flex-shrink: 0;
}
.payout-status-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--stone-800);
  margin-bottom: 4px;
}
.payout-status-desc {
  font-size: 0.88rem;
  color: var(--stone-500);
  line-height: 1.55;
}
.payout-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.payout-note {
  font-size: 0.8rem;
  color: var(--stone-400);
  line-height: 1.55;
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin: 0;
}

/* ── Account card ──────────────────────────────────────── */
.account-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.account-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--stone-100);
}
.account-field:last-child { border-bottom: none; }
.account-field label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--stone-500);
}
.account-field span {
  font-size: 1rem;
  color: var(--stone-800);
}

/* ── Dashboard empty state ─────────────────────────────── */
.dashboard-empty {
  background: white;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 40px 24px;
  text-align: center;
  color: var(--stone-400);
}
.dashboard-empty p { margin-bottom: 12px; font-size: 0.93rem; }

/* ── Dashboard responsive ──────────────────────────────── */
@media (max-width: 900px) {
  .dashboard-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .dashboard-stats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .campaign-row-progress { display: none; }
}

/* ─── CAMPAIGN CREATE WIZARD ───────────────────────────── */
.wizard-progress {
  display: flex;
  align-items: center;
  margin-bottom: 32px;
  gap: 0;
}
.wizard-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.wizard-step-dot {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.wizard-step.active .wizard-step-dot {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  box-shadow: 0 0 0 4px rgba(22,163,74,0.15);
}
.wizard-step.done .wizard-step-dot {
  background: var(--green-100);
  border-color: var(--primary);
  color: var(--primary);
}
.wizard-step.done .wizard-step-dot::after { content: '✓'; }
.wizard-step.done .wizard-step-dot { font-size: 0; }
.wizard-step.done .wizard-step-dot::after { font-size: 0.9rem; }
.wizard-step-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.wizard-step.active .wizard-step-label { color: var(--primary); }
.wizard-connector {
  flex: 1;
  height: 2px;
  background: var(--border);
  margin: 0 8px;
  margin-bottom: 22px;
}

.wizard-panel { display: none; }
.wizard-panel.active { display: block; }

.wizard-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  gap: 12px;
}

.form-section-heading {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.form-section-icon { font-size: 1.8rem; flex-shrink: 0; margin-top: 2px; }
.form-section-heading h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--stone-900);
  margin-bottom: 4px;
}
.form-section-heading p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; }

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

.launch-summary {
  background: var(--green-50);
  border: 1px solid var(--green-100);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-top: 8px;
}
.launch-summary h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--green-800, var(--green-700));
  margin-bottom: 14px;
}
.launch-summary-items { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.launch-summary-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  padding: 6px 0;
  border-bottom: 1px solid var(--green-100);
  gap: 12px;
}
.launch-summary-item span { color: var(--text-muted); }
.launch-summary-item strong { color: var(--stone-900); text-align: right; }
.launch-summary-note { font-size: 0.8rem; color: var(--text-muted); line-height: 1.6; }
.launch-summary-note a { color: var(--primary); text-decoration: underline; }

@media (max-width: 640px) {
  .wizard-step-label { display: none; }
  .wizard-connector { margin-bottom: 0; }
  .wizard-progress { margin-bottom: 24px; }
  .form-section-heading { flex-direction: column; gap: 8px; }
  .wizard-nav .btn { flex: 1; justify-content: center; }
}

/* ─── CAMPAIGN DETAIL — rich sections ───────────────────── */
.campaign-tagline {
  font-size: 1.15rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 10px;
  line-height: 1.6;
}

.campaign-story-section {
  margin: 28px 0;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.campaign-story-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--stone-900);
  margin-bottom: 12px;
}
.campaign-story-title span { font-size: 1.3rem; }
.campaign-story-body {
  font-size: 0.96rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.campaign-info-block {
  margin: 28px 0;
  padding: 24px;
  background: var(--stone-50);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.campaign-info-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--stone-900);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.campaign-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
}
.campaign-info-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.campaign-info-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--stone-500);
}
.campaign-info-item span, .campaign-info-item a {
  font-size: 0.93rem;
  color: var(--stone-800);
}
.campaign-info-link { color: var(--primary); text-decoration: underline; word-break: break-all; }
.campaign-info-bio {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.8;
}
.campaign-funding-block { border-left: 3px solid var(--primary); }
.campaign-risks-block   { border-left: 3px solid var(--amber-500); }

.campaign-video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  margin-bottom: 28px;
}
.campaign-video-wrap iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}

@media (max-width: 640px) {
  .campaign-info-grid { grid-template-columns: 1fr; }
}

/* ─── ABOUT PAGE ───────────────────────────────────────── */
.about-hero {
  background: linear-gradient(135deg, var(--green-50) 0%, #fffef9 60%);
  padding: 80px clamp(16px, 5vw, 80px) 72px;
  border-bottom: 1px solid var(--border);
}
.about-hero-inner { max-width: 680px; }
.about-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 4rem);
  line-height: 1.1;
  letter-spacing: -2px;
  color: var(--stone-900);
  margin: 12px 0 20px;
}
.about-hero-title em { color: var(--primary); font-style: italic; }
.about-hero-sub { font-size: 1.1rem; color: var(--text-muted); line-height: 1.7; max-width: 520px; }

.about-container { max-width: 1100px; margin: 0 auto; padding: 0 clamp(16px, 5vw, 80px); }
.about-section { padding: 72px 0; }
.about-section-tinted { background: var(--stone-50); }
.about-section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: -1px;
  color: var(--stone-900);
  margin-bottom: 20px;
}
.about-body { color: var(--text-muted); line-height: 1.8; margin-bottom: 16px; font-size: 1.02rem; }

.about-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.about-mission-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.about-stat-block { text-align: center; }
.about-big-stat {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 6px;
}
.about-stat-desc { font-size: 0.9rem; color: var(--text-muted); }

.about-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.about-step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
}
.about-step-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--green-100);
  line-height: 1;
  margin-bottom: 16px;
}
.about-step-title { font-size: 1.1rem; font-weight: 600; color: var(--stone-900); margin-bottom: 10px; }
.about-step-body { font-size: 0.92rem; color: var(--text-muted); line-height: 1.7; }

.about-values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.about-value-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}
.about-value-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.about-value-icon { font-size: 2rem; margin-bottom: 14px; }
.about-value-card h3 { font-size: 1rem; font-weight: 600; color: var(--stone-900); margin-bottom: 10px; }
.about-value-card p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.7; }

.about-cta {
  background: var(--stone-900);
  padding: 80px clamp(16px, 5vw, 80px);
}
.about-cta-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  color: white;
  letter-spacing: -1px;
  margin-bottom: 16px;
}
.about-cta-sub { font-size: 1.05rem; color: var(--stone-400); margin-bottom: 36px; }

@media (max-width: 900px) {
  .about-two-col { grid-template-columns: 1fr; gap: 40px; }
  .about-steps { grid-template-columns: 1fr; gap: 20px; }
  .about-values { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .about-hero { padding: 48px 20px; }
  .about-values { grid-template-columns: 1fr; }
  .about-cta { padding: 56px 20px; }
  .about-cta .btn { width: 100%; justify-content: center; }
}

/* ─── LEGAL PAGES (Terms & Privacy) ────────────────────── */
.legal-page {
  padding: 60px 0 80px;
}
.legal-container {
  max-width: 740px;
  margin: 0 auto;
  padding: 0 clamp(16px, 5vw, 40px);
}
.legal-header { margin-bottom: 48px; }
.legal-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: -1px;
  color: var(--stone-900);
  margin: 12px 0 8px;
}
.legal-updated { font-size: 0.88rem; color: var(--text-muted); }
.legal-intro {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 40px;
  padding: 20px 24px;
  background: var(--green-50);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.legal-section { margin-bottom: 40px; }
.legal-section h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--stone-900);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.legal-section h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--stone-700);
  margin: 16px 0 8px;
}
.legal-section p {
  font-size: 0.96rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 12px;
}
.legal-section ul {
  padding-left: 20px;
  margin-bottom: 12px;
}
.legal-section ul li {
  font-size: 0.96rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 6px;
}
.legal-link { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
.legal-link:hover { color: var(--primary-dark); }

/* ─── CONTACT PAGE ─────────────────────────────────────── */
.contact-info-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}
.contact-info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.contact-info-icon { font-size: 1.4rem; flex-shrink: 0; }
.contact-info-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 2px;
}
.contact-info-value { font-size: 0.88rem; font-weight: 500; color: var(--text); }

.contact-textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.6;
}
.contact-char-count {
  text-align: right;
  font-size: 0.78rem;
  color: var(--text-light);
  margin-top: 4px;
}
.form-required { color: #ef4444; margin-left: 2px; }

.contact-success {
  text-align: center;
  padding: 48px 32px;
}
.contact-success-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}
#contact-success { display: none; }
.contact-success-title { font-family: var(--font-display); margin-bottom: 8px; }
.contact-success-body  { color: var(--text-muted); margin-bottom: 24px; }

@media (max-width: 480px) {

}

/* ═══════════════════════════════════════════════════════════
   MOBILE — comprehensive responsive pass
   ═══════════════════════════════════════════════════════════ */

/* ── Mobile nav (≤ 640px) ───────────────────────────────── */
@media (max-width: 640px) {
  /* Open drawer styles */
  .nav-links.open {
    gap: 4px;
    align-items: stretch;
    padding: 16px;
  }
  .nav-links.open .nav-link {
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    color: var(--text);
    width: 100%;
  }
  /* Auth / user area inside open drawer */
  .nav-links.open #nav-auth-area,
  .nav-links.open .nav-user {
    display: flex !important;
    flex-direction: column;
    width: 100%;
    gap: 8px;
    padding-top: 12px;
    margin-top: 4px;
    border-top: 1px solid var(--border);
  }
  .nav-links.open .btn {
    width: 100%;
    justify-content: center;
    border-radius: var(--radius-sm);
  }
  /* Hide username text on very small screens — saves space */
  .nav-links.open #nav-username { font-size: 0.85rem; color: var(--text-muted); text-align: center; }

  /* ── Hero ── */
  .hero { padding: 48px 20px 40px; }
  .hero-cta-group { flex-direction: column; align-items: stretch; }
  .hero-cta-group .btn { width: 100%; justify-content: center; }
  .stat-divider { display: none; }
  .hero-stats { flex-wrap: wrap; gap: 16px 20px; }

  /* ── Page container side padding ── */
  .page-container { padding-left: 16px; padding-right: 16px; }

  /* ── Forms ── */
  .form-card { padding: 24px 16px; }

  /* ── Campaign detail: pledge presets ── */
  .pledge-presets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .pledge-preset-btn { text-align: center; }

  /* ── Toast: full-width at bottom ── */
  .toast-container { left: 12px; right: 12px; bottom: 12px; width: auto; max-width: none; }
  .toast { max-width: none; width: 100%; text-align: center; }

  /* ── Success page ── */
  .success-card { padding: 40px 20px; width: calc(100% - 32px); }

  /* ── Dashboard ── */
  .dashboard-header { text-align: center; }
  .dashboard-section-header { flex-wrap: wrap; gap: 10px; }
  .dashboard-section-header h2 { font-size: 1.2rem; }
  .campaign-row { flex-wrap: wrap; gap: 8px; padding: 14px; }
  .campaign-row-thumb,
  .campaign-row-thumb-placeholder { width: 44px; height: 44px; font-size: 1.2rem; }
  .pledge-row { flex-wrap: wrap; gap: 8px; padding: 12px; }
  .pledge-amount { margin-left: 0; font-size: 1rem; }

  /* ── Contact page ── */
  .contact-success { padding: 36px 16px; }
}

/* ── Extra-small screens — iPhone SE, Galaxy A series (≤ 380px) ── */
@media (max-width: 380px) {
  .pledge-presets { grid-template-columns: repeat(2, 1fr); }
  .stat-card { padding: 16px 10px; }
  .stat-value { font-size: 1.5rem; }
  .dashboard-stats { gap: 8px; }
  .hero-title { letter-spacing: -0.5px; }
  .btn { padding: 10px 16px; font-size: 0.85rem; }
}

/* ─── Sort select ──────────────────────────────────────── */
.sort-select {
  appearance: none;
  -webkit-appearance: none;
  background: var(--surface) 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='%2378716c' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 12px center;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 36px 8px 12px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.15s;
}
.sort-select:focus { outline: none; border-color: var(--primary); }

/* ─── Campaign card expiry badge ────────────────────────── */
.campaign-card-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.campaign-card-expiry {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--stone-100);
  border-radius: 999px;
  padding: 2px 8px;
  white-space: nowrap;
  flex-shrink: 0;
}
.campaign-card-expiry.expiring {
  color: #b45309;
  background: #fef3c7;
}

/* ─── Stretch goals (create form) ──────────────────────── */
.stretch-goal-item {
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
  background: var(--stone-50);
}
.stretch-goal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.stretch-goal-num {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
}
.btn-remove-stretch {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 2px 6px;
  border-radius: 4px;
}
.btn-remove-stretch:hover { background: var(--stone-200); color: var(--text); }

/* ─── Stretch goals (campaign detail) ──────────────────── */
.stretch-goals-list { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.stretch-goal-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--stone-50);
  opacity: 0.7;
}
.stretch-goal-row.unlocked {
  border-color: var(--green-400);
  background: var(--green-50);
  opacity: 1;
}
.stretch-goal-indicator { font-size: 1.4rem; flex-shrink: 0; line-height: 1; }
.stretch-goal-info { flex: 1; }
.stretch-goal-amount { font-size: 1.1rem; font-weight: 700; color: var(--text); }
.stretch-goal-name { font-weight: 600; color: var(--text); margin-top: 2px; }
.stretch-goal-desc { font-size: 0.85rem; color: var(--text-muted); margin-top: 4px; }
.stretch-goal-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--green-700);
  background: var(--green-100);
  border-radius: 999px;
  padding: 3px 10px;
  white-space: nowrap;
  align-self: center;
  flex-shrink: 0;
}

/* ─── Funding model (create form) ──────────────────────── */
.funding-model-options { display: flex; flex-direction: column; gap: 10px; }
.funding-model-option { cursor: pointer; }
.funding-model-option input[type="radio"] { display: none; }
.funding-model-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.15s, background 0.15s;
}
.funding-model-option input:checked + .funding-model-card {
  border-color: var(--primary);
  background: var(--green-50);
}
.funding-model-icon { font-size: 1.5rem; flex-shrink: 0; line-height: 1; margin-top: 2px; }
.funding-model-card strong { display: block; font-size: 0.95rem; margin-bottom: 3px; }
.funding-model-card p { margin: 0; font-size: 0.82rem; color: var(--text-muted); line-height: 1.4; }

/* ─── AoN / KWYR badge on campaign detail ───────────────── */
.aon-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--green-700);
  background: var(--green-50);
  border: 1px solid var(--green-400);
  border-radius: 999px;
  padding: 4px 12px;
  margin-top: 10px;
  margin-bottom: 4px;
}
.aon-badge.kwyr { color: #92400e; background: #fef3c7; border-color: #fbbf24; }

/* ─── Reward tiers (create form) ───────────────────────── */
.reward-tier-item {
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
  background: var(--stone-50);
}
.reward-tier-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.reward-tier-num {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #7c3aed;
}
.btn-remove-tier {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 2px 6px;
  border-radius: 4px;
}
.btn-remove-tier:hover { background: var(--stone-200); color: var(--text); }

/* ─── Reward tier picker (campaign detail sidebar) ──────── */
.reward-tier-picker { display: flex; flex-direction: column; gap: 8px; max-height: 340px; overflow-y: auto; }
.reward-tier-pick {
  padding: 12px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.reward-tier-pick:hover { border-color: var(--stone-400); }
.reward-tier-pick.active { border-color: var(--primary); background: var(--green-50); }
.rtp-amount { font-size: 1rem; font-weight: 700; color: var(--primary); }
.rtp-title  { font-weight: 600; font-size: 0.9rem; margin-top: 2px; }
.rtp-desc   { font-size: 0.8rem; color: var(--text-muted); margin-top: 3px; line-height: 1.4; }
.rtp-delivery { font-size: 0.75rem; color: var(--text-muted); margin-top: 4px; }

/* ─── Campaign updates ──────────────────────────────────── */
.update-post-form {
  background: var(--stone-50);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 20px;
}
.update-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.update-item:last-child { border-bottom: none; }
.update-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.update-number {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
  background: var(--green-50);
  border-radius: 999px;
  padding: 2px 8px;
}
.update-time { font-size: 0.8rem; color: var(--text-muted); }
.update-title { font-size: 1rem; font-weight: 700; margin: 0 0 6px; }
.update-body { font-size: 0.9rem; color: var(--text-muted); margin: 0; line-height: 1.6; }

/* ─── Comments / Q&A ───────────────────────────────────── */
.comment-post-form {
  background: var(--stone-50);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 20px;
}
.comment-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.comment-item:last-child { border-bottom: none; }
.comment-reply {
  margin-left: 24px;
  padding-left: 14px;
  border-left: 2px solid var(--border);
  border-bottom: none;
  padding-bottom: 0;
}
.comment-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
  flex-wrap: wrap;
}
.comment-author { font-weight: 700; font-size: 0.85rem; }
.comment-creator-badge {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--green-700);
  background: var(--green-100);
  border-radius: 999px;
  padding: 1px 7px;
}
.comment-time { font-size: 0.75rem; color: var(--text-muted); }
.comment-body { font-size: 0.88rem; color: var(--text); margin: 0; line-height: 1.6; }
.btn-reply-to {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.75rem;
  color: var(--text-muted);
  padding: 3px 0;
  margin-top: 4px;
  text-decoration: underline;
}
.btn-reply-to:hover { color: var(--text); }
.comment-empty, .comment-login-prompt {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}
.comment-login-prompt a { color: var(--primary); }

/* ─── Bookmark button ───────────────────────────────────── */
.btn-bookmark { font-size: 0.85rem; }
.btn-bookmark.active { background: var(--green-50); border-color: var(--green-400); color: var(--green-700); }

/* ─── Social share bar ─────────────────────────────────── */
.share-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.share-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-right: 4px;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s ease, opacity 0.15s ease;
  color: #fff;
}
.share-btn:hover { transform: scale(1.12); opacity: 0.9; }
.share-twitter  { background: #000; }
.share-facebook { background: #1877f2; }
.share-whatsapp { background: #25d366; font-size: 1rem; }
.share-linkedin { background: #0a66c2; }

/* ── Public Creator Profile Page ─────────────────────────── */
.profile-hero-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  margin-bottom: 40px;
}
.profile-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.profile-hero-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
}
.profile-hero-shape.shape-a {
  width: 340px; height: 340px;
  background: var(--green-100);
  top: -80px; right: -60px;
}
.profile-hero-shape.shape-b {
  width: 220px; height: 220px;
  background: #fef9c3;
  bottom: -40px; left: 5%;
}
.profile-hero-body {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 28px;
  padding: 40px 40px 32px;
}
.profile-hero-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 4px solid var(--surface);
  box-shadow: var(--shadow);
}
.profile-hero-avatar-initial {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-600), var(--green-400));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.6rem;
  font-weight: 700;
  font-family: var(--font-display);
  flex-shrink: 0;
  box-shadow: var(--shadow);
}
.profile-hero-info { flex: 1; min-width: 0; padding-top: 4px; }
.profile-hero-name {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--stone-900);
  margin: 0 0 10px;
  line-height: 1.15;
}
.profile-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.profile-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  background: var(--stone-100);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}
.profile-hero-bio {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--stone-600);
  max-width: 560px;
  margin: 0;
  white-space: pre-line;
}
.profile-hero-stats {
  position: relative;
  display: flex;
  align-items: center;
  padding: 20px 40px;
  border-top: 1px solid var(--border);
  background: var(--stone-50);
  gap: 0;
}
.profile-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  text-align: center;
}
.profile-stat-value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--stone-900);
  line-height: 1;
}
.profile-stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}
.profile-stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
  flex-shrink: 0;
}
.profile-campaigns-section { margin-top: 8px; }
.profile-campaigns-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.profile-campaigns-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--stone-900);
  margin: 0;
}
.profile-campaigns-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  padding: 0 8px;
  background: var(--green-100);
  color: var(--green-700);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 700;
}
.creator-profile-link {
  color: inherit;
  text-decoration: none;
}
.creator-profile-link:hover strong { text-decoration: underline; }
@media (max-width: 640px) {
  .profile-hero-body { flex-direction: column; align-items: center; text-align: center; padding: 32px 24px 24px; }
  .profile-hero-meta { justify-content: center; }
  .profile-hero-bio { max-width: 100%; }
  .profile-hero-stats { padding: 16px 20px; }
  .profile-stat-value { font-size: 1.2rem; }
}

/* ── Dashboard: Edit Profile form ─────────────────────────── */
.profile-edit-avatar-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
}
.profile-edit-avatar-preview {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--stone-200);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--stone-100);
  flex-shrink: 0;
}
.profile-edit-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.profile-avatar-placeholder-sm {
  width: 100%;
  height: 100%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 700;
}
@media (max-width: 600px) {
  .profile-header { flex-direction: column; align-items: center; text-align: center; }
  .profile-bio { max-width: 100%; }
}

/* ── Dashboard: Account inline edit forms ────────────────── */
.account-field-editable { gap: 0; }
.account-field-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}
.account-field-masked {
  color: var(--text-muted);
  letter-spacing: 0.12em;
  font-size: 1rem;
}
.account-field-edit-btn {
  flex-shrink: 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 0;
  transition: opacity var(--transition);
}
.account-field-edit-btn:hover { opacity: 0.7; }
.account-inline-form {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--stone-200);
  width: 100%;
}
.account-inline-fields {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}
.account-inline-fields input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--text);
  background: var(--bg);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.account-inline-fields input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(22,163,74,0.12);
}
.account-inline-fields input::placeholder { color: var(--text-light); }
.account-inline-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.account-update-status {
  font-size: 0.82rem;
}
.account-update-status.success { color: #16a34a; }
.account-update-status.error   { color: #dc2626; }

/* ── Dashboard: Campaign Analytics ─────────────────────── */
.analytics-campaign-block {
  padding: 20px 0;
  border-bottom: 1px solid var(--stone-200);
}
.analytics-campaign-block:last-child { border-bottom: none; }
.analytics-campaign-title {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 12px;
}
.analytics-campaign-title a { color: inherit; text-decoration: none; }
.analytics-campaign-title a:hover { text-decoration: underline; }
.analytics-stats-row {
  display: flex;
  gap: 32px;
  margin-bottom: 16px;
}
.analytics-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.analytics-stat-value {
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1;
}
.analytics-stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.analytics-chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 64px;
}
.analytics-bar-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
}
.analytics-bar {
  width: 100%;
  background: var(--primary);
  border-radius: 3px 3px 0 0;
  min-height: 2px;
  transition: height 0.3s ease;
}
.analytics-bar-label {
  font-size: 0.68rem;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ═══════════════════════════════════════════════════════════
   unsafe-inline elimination — replaces all style="..." attrs
   ══════════════════════════════════════════════════════════ */

/* ── Nav: auth area hidden until JS reveals it ─────────── */
#nav-user-area { display: none; }

/* ── Alert banners (login / signup / forgot-password) ───── */
.alert { display: none; }

/* ── Forgot-password success panel ─────────────────────── */
#reset-success { display: none; text-align: center; }

/* ── Create page: auth gate + form ─────────────────────── */
#auth-required    { display: none; }
#create-form-wrap { display: none; }
#investor-fields  { display: none; }

/* ── Dashboard: sections hidden until data loads ────────── */
#analytics-section    { display: none; }
#change-email-form    { display: none; }
#change-password-form { display: none; }

/* ── Dashboard: profile preview hidden until profile exists */
#profile-preview-root {
  display: none;
  pointer-events: none;
  user-select: none;
  opacity: 0.95;
}

/* ── Dashboard: delete-profile modal overlay ────────────── */
#delete-profile-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

/* ── Browse / Invest: load-more button ──────────────────── */
#btn-load-more { display: none; }

/* ── Page containers ────────────────────────────────────── */
.page-container--narrow    { max-width: 460px; padding-top: 80px; }
.page-container--create    { max-width: 720px; padding-top: 56px; padding-bottom: 80px; }
.page-container--contact   { max-width: 560px; padding-top: 72px; padding-bottom: 80px; }
.page-container--browse    { padding-top: 48px; }
.page-container--top       { padding-top: 48px; }
.page-container--dashboard { padding-top: 60px; padding-bottom: 80px; }

/* ── Load-more wrapper ───────────────────────────────────── */
.load-more-wrap { text-align: center; margin-top: 48px; }

/* ── Create page header block ────────────────────────────── */
.create-header { margin-bottom: 36px; }

/* ── Campaign page loading spinner ─────────────────────── */
.page-spinner {
  border-color: rgba(0,0,0,0.1);
  border-top-color: var(--primary);
  width: 32px;
  height: 32px;
}

/* ── Auth pages ─────────────────────────────────────────── */
.auth-submit-btn  { width: 100%; gap: 10px; }
.auth-forgot-row  { text-align: right; margin-top: -8px; margin-bottom: 16px; }
.auth-forgot-link { font-size: 0.85rem; color: var(--primary); }

/* ── Browse page header row ─────────────────────────────── */
.page-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
}
.page-title--flush    { margin-bottom: 4px; }
.page-subtitle--flush { margin: 0; }

/* ── Contact page ────────────────────────────────────────── */
.contact-header     { text-align: center; margin-bottom: 40px; }
.contact-page-title { margin-top: 12px; }

/* ── About page ─────────────────────────────────────────── */
.about-section-header        { text-align: center; margin-bottom: 48px; }
.about-section-title--spaced { margin-top: 12px; }
.about-cta-inner   { text-align: center; }
.about-cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Success page ────────────────────────────────────────── */
.success-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── JS template classes (dashboard / utils) ────────────── */
.investor-list-hidden   { display: none; }
.investor-list-empty    { padding: 10px 12px; font-size: 0.82rem; color: var(--text-muted); }
.investor-row-pct       { color: var(--text-muted); }
.pledge-row-title-bar   { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 2px; }
.pledge-row-progress-wrap { margin-top: 8px; margin-bottom: 4px; }
.pledge-row-funding-text  { font-size: 0.78rem; color: var(--text-muted); }
.pledge-amount--top       { align-self: flex-start; }
.pledge-row--rich .campaign-row-info { flex: 1; min-width: 0; }
.bookmarks-empty { grid-column: 1 / -1; }
.dashboard-btn-sm { font-size: 0.85rem; padding: 8px 16px; }


/* ── Dashboard skeleton elements ────────────────────────── */
.campaign-row-skeleton { height: 88px; background: var(--stone-100); border: none; }
.pledge-row-skeleton   { height: 72px; background: var(--stone-100); border: none; }
.campaign-card-skeleton { height: 260px; }

/* ── Dashboard account section buttons ──────────────────── */
.account-action-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.account-action-btn { font-size: 0.85rem; padding: 8px 18px; }

/* ── Dashboard profile edit section ─────────────────────── */
.profile-bio-hint     { font-size: 0.78rem; color: var(--text-muted); margin-top: 4px; }
.profile-bio-textarea { min-height: 90px; }
.profile-avatar-label { cursor: pointer; }
.profile-edit-section { border-bottom: none; flex-direction: row; align-items: center; gap: 12px; flex-wrap: wrap; }

/* ── File input hidden (replaced by custom label) ───────── */
.u-file-input-hidden  { display: none; }

/* ── Dashboard delete-profile modal inner ────────────────── */
.delete-modal-inner {
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  max-width: 420px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.delete-modal-title  { margin: 0 0 8px; }
.delete-modal-body   { color: var(--text-muted); margin: 0 0 24px; font-size: 0.95rem; }
.delete-modal-footer { display: flex; gap: 12px; justify-content: flex-end; }
.btn-danger { background: var(--danger, #dc2626); border-color: var(--danger, #dc2626); }

/* ── Dashboard: Stripe connect hidden buttons ────────────── */
.connect-btn-hidden { font-size: 0.85rem; padding: 8px 16px; display: none; }

/* ── Dashboard: password input ───────────────────────────── */
.password-full-width { width: 100%; }

/* ── Dashboard: forgot-pw success section misc ───────────── */
.reset-success-icon  { font-size: 2.5rem; margin-bottom: 16px; }
.reset-success-title { font-family: var(--font-display); font-size: 1.4rem; margin-bottom: 8px; }
.reset-success-body  { color: var(--stone-500); margin-bottom: 24px; }
.reset-success-btn   { width: 100%; }

/* ── Signup hint text ────────────────────────────────────── */
.signup-dob-note { font-size: 0.78rem; color: var(--text-muted); font-weight: 400; }

/* ── Create page misc ────────────────────────────────────── */
.create-image-hint { font-size: 0.78rem; margin-top: 4px; color: var(--text-muted); }
.create-video-hint { font-size: 0.78rem; color: var(--text-muted); margin-top: 6px; }
.create-add-btn    { margin-top: 8px; font-size: 0.875rem; }

/* ── campaign.js inline style replacements ───────────────── */
.campaign-breadcrumb      { margin-bottom: 24px; }
.campaign-breadcrumb-link { color: var(--text-muted); font-size: 0.9rem; }
.campaign-badges-row      { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.campaign-title-row       { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.campaign-title-flex      { margin: 0; flex: 1; }
.btn-bookmark             { flex-shrink: 0; gap: 6px; display: none; }
.campaign-creator-muted   { color: var(--text-muted); }
.story-body--preline      { white-space: pre-line; }
.pledge-choose-label      { font-size: 0.85rem; font-weight: 600; margin-bottom: 10px; color: var(--stone-700); }
.pledge-choose-label--tight { margin-bottom: 8px; }
.pledge-amount-input--mt  { margin-top: 10px; }
.alert--center            { text-align: center; }
.update-form-heading      { margin: 0 0 12px; font-size: 1rem; }
.update-title-input       { margin-bottom: 8px; }
.update-submit-btn        { margin-top: 10px; }
.updates-empty-msg        { color: var(--text-muted); font-size: 0.9rem; }
.comment-form-actions     { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.comment-submit-btn       { font-size: 0.875rem; }
.comment-reply-label      { font-size: 0.8rem; color: var(--text-muted); }
#btn-cancel-reply         { font-size: 0.8rem; display: none; }
#sidebar-progress         { width: 0; }
