:root {
  --green: #1b7a4d;
  --green-dark: #145c3a;
  --orange: #e8742c;
  --ink: #1c2420;
  --muted: #5c6b63;
  --bg: #f6f5f0;
  --card: #ffffff;
  --border: #e2e1d8;
  --radius: 8px;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-head: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-family: var(--font-body);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: var(--green-dark);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
}

h1, h2, h3, .brand, .step-num, .tab, .btn { font-family: var(--font-head); }

.brand {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: #fff;
  text-transform: uppercase;
}
.brand .dot { color: var(--orange); }

.nav { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.nav a, .nav button {
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.22);
  padding: 8px 14px;
  border-radius: 4px;
  font-size: 13px;
  cursor: pointer;
  font-weight: 600;
  font-family: var(--font-body);
  letter-spacing: 0.01em;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.nav a:hover, .nav button:hover { background: rgba(255,255,255,0.18); }
.nav .pill-primary { background: var(--orange); border-color: var(--orange); }
.nav .pill-pro { background: #2c2a1f; border-color: #c9a13b; color: #f0c75e; }

#app { flex: 1; max-width: 1100px; width: 100%; margin: 0 auto; padding: 28px 20px 60px; }

.footer {
  text-align: center;
  padding: 18px;
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid var(--border);
}
.footer p { margin: 4px 0; }
.footer a {
  color: var(--green-dark);
  font-weight: 600;
  text-decoration: none;
}
.footer a:hover { text-decoration: underline; }

/* ---- Hero / Landing ---- */
.hero {
  padding: 56px 0 0;
  border-bottom: 1px solid var(--border);
}
.hero-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.hero-kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-transform: uppercase;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 40px;
  align-items: end;
  padding-bottom: 36px;
}
@media (max-width: 760px) { .hero-grid { grid-template-columns: 1fr; gap: 24px; } }

.hero h1 {
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.05;
  margin: 0 0 18px;
  letter-spacing: -0.02em;
}
.hero-sub {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
  max-width: 480px;
  margin: 0 0 26px;
}
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.hero-side {
  border-left: 1px solid var(--border);
  padding-left: 24px;
}
@media (max-width: 760px) { .hero-side { border-left: none; padding-left: 0; border-top: 1px solid var(--border); padding-top: 20px; } }
.hero-side-label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 10px;
}
.hero-side-fact {
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 14px;
}
.hero-side-fact strong { color: var(--green-dark); }

/* ---- Stat bar (problem framing) ---- */
.stat-bar {
  padding: 44px 0 8px;
  border-bottom: 1px solid var(--border);
}
.stat-bar-head { margin-bottom: 28px; }
.stat-bar-head h2 { margin: 8px 0 0; font-size: clamp(22px, 3vw, 30px); }
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
@media (max-width: 880px) { .stat-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .stat-row { grid-template-columns: 1fr; } }
.stat-item {
  padding: 20px 24px 28px 0;
  border-left: 1px solid var(--border);
  padding-left: 24px;
}
.stat-item:first-child { border-left: none; padding-left: 0; }
@media (max-width: 880px) {
  .stat-item:nth-child(odd) { border-left: none; padding-left: 0; }
  .stat-item:nth-child(-n+2) { border-top: none; }
  .stat-item { border-top: 1px solid var(--border); padding-top: 24px; }
}
.stat-num {
  font-family: var(--font-head);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 800;
  color: var(--green-dark);
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.stat-label {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

/* ---- Category marquee ---- */
.marquee {
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  background: var(--card);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 26s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}
.marquee-track span {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
  padding: 12px 22px;
  white-space: nowrap;
  border-right: 1px solid var(--border);
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---- Scroll reveal ---- */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.revealed { opacity: 1; transform: translateY(0); }
.reveal-1.revealed { transition-delay: 0.05s; }
.reveal-2.revealed { transition-delay: 0.1s; }
.reveal-3.revealed { transition-delay: 0.15s; }
.reveal-4.revealed { transition-delay: 0.2s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; opacity: 1; transform: none; }
}

/* ---- Steps (editorial list, not cards) ---- */
.step-list {
  display: flex;
  flex-direction: column;
}
.step-line {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 18px;
  padding: 22px 0;
  border-top: 1px solid var(--border);
  align-items: baseline;
}
.step-line:last-child { border-bottom: 1px solid var(--border); }
.step-num {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--orange);
}
.step-line strong { font-size: 17px; display: block; margin-bottom: 4px; }
.step-line p { margin: 0; color: var(--muted); max-width: 520px; }

.perk-hover { transition: transform 0.2s ease, box-shadow 0.2s ease; }
.perk-hover:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(20, 92, 58, 0.1); }

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 11px 20px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: var(--card);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green); color: #fff; border-color: var(--green); }
.btn-primary:hover { background: var(--green-dark); }
.btn-accent { background: var(--orange); color: #fff; border-color: var(--orange); }
.btn-accent:hover { background: #cf5f1d; }
.btn-ghost { background: transparent; }
.btn-block { width: 100%; text-align: center; }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-danger { color: #b3261e; border-color: #f1c7c2; background: #fff; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* ---- Cards / Grid ---- */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.section-head h2 { margin: 0; }

.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.filters input, .filters select {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 14px;
  background: #fff;
}

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

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}
.card .photo {
  height: 150px;
  background: linear-gradient(135deg, #dfe6df, #c9d4c9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--muted);
  background-size: cover;
  background-position: center;
}
.card .body { padding: 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card .title { font-weight: 700; font-size: 15px; }
.card .meta { font-size: 12px; color: var(--muted); }
.card .price { font-weight: 800; color: var(--green-dark); font-size: 16px; margin-top: auto; }
.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--orange);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 999px;
}
.badge.status-claimed { background: #9b8a3f; }
.badge.status-sold { background: #6b6b6b; }
.badge-pro {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #2c2a1f;
  color: #f0c75e;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 999px;
}

/* ---- Forms ---- */
.form-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  max-width: 560px;
  margin: 0 auto;
}
.form-row { margin-bottom: 16px; display: flex; flex-direction: column; gap: 6px; }
.form-row label { font-size: 13px; font-weight: 700; color: var(--muted); }
.form-row input, .form-row select, .form-row textarea {
  padding: 11px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 14px;
  font-family: inherit;
}
.form-row textarea { resize: vertical; min-height: 80px; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.checkbox-row { display: flex; align-items: center; gap: 8px; flex-direction: row; }
.helper { font-size: 12px; color: var(--muted); }
.error-text { color: #b3261e; font-size: 13px; }

.tabs { display: flex; gap: 8px; margin-bottom: 18px; }
.tab {
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
}
.tab.active { background: var(--green); color: #fff; border-color: var(--green); }

.oauth-row { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.oauth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
}
.oauth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 18px;
}
.oauth-divider::before, .oauth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.bulk-item {
  border: 1px dashed var(--border);
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 12px;
}

/* ---- Detail ---- */
.detail-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 30px;
}
@media (max-width: 760px) { .detail-grid { grid-template-columns: 1fr; } }
.detail-photo {
  height: 320px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #dfe6df, #c9d4c9);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  background-size: cover;
  background-position: center;
}
.detail-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.kv { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.kv:last-child { border-bottom: none; }

/* ---- Pro page ---- */
.pro-hero {
  background: linear-gradient(135deg, #1f1c14, #3a331f);
  color: #f0c75e;
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  margin-bottom: 30px;
}
.pro-hero h1 { color: #fff; margin-bottom: 8px; }
.perk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 24px 0;
}
.perk {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}
.perk .icon { font-size: 22px; margin-bottom: 6px; }

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}

.claim-row {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 14px;
  z-index: 100;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.toast.hidden { display: none; }

/* ---- Perk links (Pro page cards -> detail page) ---- */
.perk-link {
  display: block;
  cursor: pointer;
}
.perk-see-example {
  display: inline-block;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--green-dark);
}

.back-link {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 22px;
}
.back-link:hover { color: var(--ink); }

/* ---- Perk detail page ---- */
.perk-detail-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: start;
}
@media (max-width: 760px) { .perk-detail-grid { grid-template-columns: 1fr; } }

.perk-mock-frame {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.perk-mock-label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 16px;
}

/* shared mock primitives */
.mock-line { height: 9px; border-radius: 3px; background: #d7dcd5; }
.mock-line.muted { background: #e6e9e3; }
.w-20 { width: 20%; } .w-25 { width: 25%; } .w-30 { width: 30%; } .w-35 { width: 35%; }
.w-40 { width: 40%; } .w-45 { width: 45%; } .w-50 { width: 50%; } .w-55 { width: 55%; }
.w-60 { width: 60%; } .w-70 { width: 70%; } .w-80 { width: 80%; }

/* bulk batch listing mock */
.mock-bulk-row {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.mock-photo { width: 36px; height: 36px; border-radius: 6px; background: linear-gradient(135deg,#dfe6df,#c9d4c9); }
.mock-bulk-fields { display: flex; flex-direction: column; gap: 6px; }
.mock-tag { font-family: var(--font-mono); font-size: 11px; color: var(--muted); border: 1px solid var(--border); border-radius: 999px; padding: 3px 9px; white-space: nowrap; }
.mock-bulk-add { margin-top: 10px; font-size: 13px; color: var(--green-dark); font-weight: 600; }

/* tax report mock */
.mock-doc-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.mock-doc-period { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.mock-doc-row { display: flex; justify-content: space-between; font-size: 14px; padding: 9px 0; border-bottom: 1px solid var(--border); }
.mock-doc-total { font-weight: 800; border-bottom: none; padding-top: 12px; color: var(--green-dark); }

/* priority pickup feed mock */
.mock-feed { display: flex; flex-direction: column; gap: 10px; }
.mock-feed-card { position: relative; border: 1px solid var(--border); border-radius: 8px; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.mock-feed-boosted { border-color: var(--orange); background: #fff7f1; }
.mock-feed-badge { position: absolute; top: 10px; right: 12px; background: var(--orange); color: #fff; font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 999px; }

/* diversion certificate mock */
.mock-cert { text-align: center; padding: 20px 10px; border: 1px dashed var(--border); border-radius: 8px; }
.mock-cert-label { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin-bottom: 14px; }
.mock-cert-num { font-family: var(--font-head); font-size: 40px; font-weight: 800; color: var(--green-dark); }
.mock-cert-sub { color: var(--muted); font-size: 13px; margin-bottom: 18px; }
.mock-cert-foot { display: flex; flex-direction: column; gap: 8px; align-items: center; }
.mock-cert-foot .mock-line { margin: 0 auto; }

/* analytics dashboard mock */
.mock-chart { display: flex; flex-direction: column; gap: 14px; }
.mock-bar-row { display: grid; grid-template-columns: 90px 1fr 28px; align-items: center; gap: 10px; }
.mock-bar-label { font-size: 12px; color: var(--muted); }
.mock-bar { height: 14px; border-radius: 4px; background: var(--green); min-width: 4px; }
.mock-bar-count { font-family: var(--font-mono); font-size: 12px; color: var(--muted); text-align: right; }

/* support line mock */
.mock-phone { display: flex; flex-direction: column; gap: 14px; }
.mock-phone-row { display: flex; align-items: center; gap: 10px; }
.mock-phone-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); flex: 0 0 auto; }
.mock-phone-cta { margin-top: 6px; text-align: center; background: var(--green); color: #fff; padding: 10px; border-radius: 6px; font-weight: 600; font-size: 14px; }

.config-warning {
  background: #fff3cd;
  border: 1px solid #ffe69c;
  color: #664d03;
  padding: 14px 18px;
  border-radius: 10px;
  margin-bottom: 24px;
  font-size: 14px;
}

/* ---- Pro account dashboard ---- */
.account-head { margin-bottom: 24px; }
.account-head h1 { margin: 8px 0 6px; font-size: clamp(26px, 3.4vw, 36px); }

.account-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
}
@media (max-width: 700px) { .account-stats { grid-template-columns: repeat(2, 1fr); } }
.account-stat {
  padding: 18px 20px;
  border-left: 1px solid var(--border);
}
.account-stat:first-child { border-left: none; }
@media (max-width: 700px) {
  .account-stat:nth-child(odd) { border-left: none; }
  .account-stat:nth-child(n+3) { border-top: 1px solid var(--border); }
}
.account-stat .stat-num { font-family: var(--font-head); font-size: 24px; font-weight: 800; color: var(--green-dark); }
.account-stat .stat-label { color: var(--muted); font-size: 13px; margin-top: 4px; }

.account-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.danger-zone { border-color: #f1c7c2; }
.account-substats {
  display: flex;
  gap: 18px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--muted);
}
.account-substats strong { color: var(--ink); }

@media print {
  .topbar, .footer, .nav { display: none !important; }
}

/* ---- Ratings ---- */
.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 12px;
  font-weight: 700;
  color: #8a6d1d;
  background: #fff8e1;
  border: 1px solid #f0c75e;
  border-radius: 999px;
  padding: 2px 9px;
}
.rating-badge.rating-new { color: var(--muted); background: #f3f3ee; border-color: var(--border); font-weight: 600; }
.rating-count { font-weight: 500; opacity: 0.8; }

.rating-large {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 800;
  color: #8a6d1d;
}
.rating-large.rating-new { color: var(--muted); font-size: 14px; font-weight: 600; }
.rating-large .rating-count { font-family: var(--font-body); font-size: 13px; color: var(--muted); font-weight: 500; }

.rating-widget {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
  margin-top: 10px;
}
.rating-picker { display: flex; gap: 4px; margin-bottom: 10px; }
.rating-star {
  background: none;
  border: none;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  color: var(--border);
  padding: 2px;
}
.rating-star-filled { color: #e8a93b; }
.rating-comment {
  width: 100%;
  min-height: 56px;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
  font-family: inherit;
  font-size: 13px;
  margin-bottom: 10px;
  resize: vertical;
}

/* ============================================================
   Pro page — updated design (upgrade page + dashboard)
   ============================================================ */

.pro-kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #f0c75e;
  margin-bottom: 10px;
}
.pro-title { color: #fff; margin-bottom: 10px; font-size: clamp(24px, 4vw, 38px); }
.pro-sub { color: #d9d0af; margin-bottom: 20px; font-size: 16px; }

/* Value chips */
.value-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 4px; }
.value-chip {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;
  padding: 4px 14px;
  font-size: 13px;
  color: #fff;
}

/* Pricing row */
.pricing-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin: 28px 0;
}
.pricing-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--card);
}
.pricing-card-accent { border-color: var(--green-dark); }
.pricing-amount {
  font-family: var(--font-head);
  font-size: 32px;
  font-weight: 900;
  color: var(--green-dark);
  line-height: 1;
}
.pricing-label { font-size: 14px; font-weight: 700; margin: 4px 0 4px; }
.pricing-note { font-size: 13px; color: var(--muted); }
.btn-block { display: block; width: 100%; }
.btn-outline { border: 1px solid var(--green-dark); color: var(--green-dark); background: transparent; }
.btn-outline:hover { background: #f0f8f4; }
.btn-green { background: var(--green-dark); color: #fff; }
.btn-green:hover { background: #0f4a2f; }

/* Perk arrow icon */
.perk-arrow-icon { margin-bottom: 10px; }
.perk-arrow-small { margin-right: 12px; flex-shrink: 0; }

/* Who is Pro for card */
.who-card {
  background: #f5f8f5;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin: 28px 0 20px;
}
.who-title { margin: 0 0 12px; color: var(--green-dark); }
.who-list { margin: 0; padding-left: 20px; line-height: 2; color: var(--ink); }

/* Nonprofit card */
.nonprofit-card {
  background: #fff8f2;
  border: 1px solid #f2c89a;
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 32px;
}
.nonprofit-card h3 { margin: 0 0 8px; color: var(--orange); }
.nonprofit-card p { margin: 0 0 16px; font-size: 14px; color: var(--ink); }

/* ── Pro dashboard ── */
.pro-banner {
  background: linear-gradient(135deg, #1f1c14, #3a331f);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 24px;
}
.pro-banner-greeting { font-family: var(--font-head); font-size: 24px; font-weight: 900; color: #fff; }
.pro-banner-sub { color: #f0c75e; font-size: 14px; margin-top: 4px; }
.pro-banner-meta { color: #9a9066; font-size: 13px; margin-top: 4px; }

/* Stat tiles */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}
@media (max-width: 700px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
.stat-tile {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 16px;
}
.stat-value { font-family: var(--font-head); font-size: 26px; font-weight: 900; color: var(--green-dark); }
.stat-label { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* Category bar chart */
.dash-bar-chart { margin: 12px 0 28px; }
.dash-bar-row { display: grid; grid-template-columns: 110px 1fr 28px; align-items: center; gap: 10px; margin-bottom: 8px; }
.dash-bar-label { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-bar-track { height: 8px; background: #e6ece8; border-radius: 4px; overflow: hidden; }
.dash-bar-fill { height: 100%; background: var(--green-dark); border-radius: 4px; }
.dash-bar-count { font-family: var(--font-mono); font-size: 12px; color: var(--muted); text-align: right; }

/* Pro listing rows */
.pro-listing-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 8px;
  gap: 10px;
}
.pro-listing-title { font-weight: 600; font-size: 14px; }
.pro-listing-detail { font-size: 12px; color: var(--muted); margin-top: 2px; }
.boosted-badge { font-size: 11px; color: var(--orange); font-weight: 600; margin-top: 4px; display: inline-block; }
.btn-sm { padding: 5px 12px; font-size: 12px; }
.btn-danger { background: #c0392b; color: #fff; }
.btn-danger:hover { background: #a93226; }
.btn-danger-outline { border: 1px solid #c0392b; color: #c0392b; background: transparent; }
.btn-danger-outline:hover { background: #fdf2f2; }

/* Pro perks row list */
.perk-list-rows { margin: 12px 0; }
.perk-row-small {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 8px;
  background: var(--card);
  cursor: pointer;
}
.perk-row-small:hover { background: #f5f8f5; }
.perk-row-body { flex: 1; }
.perk-row-title { font-weight: 700; font-size: 14px; }
.perk-row-summary { font-size: 13px; color: var(--muted); margin-top: 2px; }
.perk-chevron { font-size: 20px; color: var(--muted); }

/* ============================================================
   Wishlist page
   ============================================================ */
.page-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.page-title { margin: 0; font-size: clamp(22px, 3vw, 30px); }

.wish-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 8px;
  background: var(--card);
  gap: 10px;
}
.wish-cat { font-weight: 700; font-size: 15px; }
.wish-keywords { font-size: 13px; color: var(--muted); margin-top: 3px; font-style: italic; }

/* Wishlist add form overlay */
.wish-form-wrap {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.wish-form-wrap.hidden { display: none; }
.wish-form-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 28px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}
.wish-form-card h3 { margin: 0 0 18px; }
.wish-form-actions { display: flex; gap: 10px; margin-top: 18px; }
.empty-icon { font-size: 48px; margin-bottom: 12px; }

/* ============================================================
   Legal pages (Privacy / Terms)
   ============================================================ */
.legal-page { max-width: 760px; margin: 0 auto; line-height: 1.65; font-size: 15px; }
.legal-page h1 { margin-bottom: 4px; }
.legal-page h2 { margin-top: 28px; font-size: 18px; }
.legal-page ul { padding-left: 22px; }
.legal-page li { margin-bottom: 8px; }
.legal-page a { color: var(--green-dark); font-weight: 600; }

/* ============================================================
   Messages page
   ============================================================ */
.messages-container {
  display: flex;
  gap: 1px;
  background: var(--border);
  height: calc(100vh - 140px);
  border-radius: var(--radius);
  overflow: hidden;
}

.messages-list-pane {
  width: 320px;
  background: var(--card);
  border-right: 1px solid var(--border);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.messages-list-pane .section-head {
  padding: 14px 14px 0;
  margin: 0;
}

.messages-list-pane .section-head h2 {
  font-size: 18px;
  margin: 0;
}

.conversation-item {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s ease;
  display: flex;
  align-items: center;
  gap: 12px;
}

.conversation-item:hover {
  background: var(--bg);
}

.conversation-item.unread {
  border-left: 3px solid var(--orange);
  padding-left: 11px;
}

.convo-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--green-dark);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 17px;
  flex-shrink: 0;
}

.convo-avatar.unread { background: var(--orange); }

.convo-main { flex: 1; min-width: 0; }

.convo-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}

.convo-top strong {
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.convo-time { font-size: 11px; color: var(--muted); flex-shrink: 0; }

.convo-listing {
  font-size: 12px;
  color: var(--green-dark);
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.convo-preview {
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.convo-preview.unread { color: var(--ink); font-weight: 600; }

.convo-unread-pill {
  background: var(--orange);
  color: #fff;
  border-radius: 10px;
  min-width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.messages-chat-pane {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--card);
}

.messages-chat-pane.hidden {
  display: none;
}

.chat-header {
  padding: 14px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-ghost {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 16px;
  color: var(--ink);
  padding: 0;
  font-weight: 600;
}

.chat-header h3 {
  margin: 0;
  font-size: 16px;
}

.chat-header .helper {
  margin: 0;
  font-size: 12px;
}

.messages-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.message {
  display: flex;
  flex-direction: column;
  gap: 3px;
  max-width: 75%;
}

.message-sent {
  align-self: flex-end;
  align-items: flex-end;
}

.message-received {
  align-self: flex-start;
  align-items: flex-start;
}

.message-body {
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 15px;
  line-height: 1.45;
  word-wrap: break-word;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.message-sent .message-body {
  background: var(--green-dark);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.message-received .message-body {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}

.message-time {
  font-size: 11px;
  color: var(--muted);
}

.message-input-area {
  padding: 12px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 8px;
}

.message-input-area input {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: 15px;
  background: var(--bg);
}

.message-input-area input:focus {
  outline: none;
  border-color: var(--green-dark);
  box-shadow: 0 0 0 2px rgba(20, 92, 58, 0.15);
}

@media (max-width: 700px) {
  .messages-container {
    height: calc(100vh - 120px);
  }

  .messages-list-pane {
    width: 100%;
    display: none;
  }

  .messages-list-pane.show {
    display: flex;
  }

  .messages-chat-pane {
    width: 100%;
  }

  .message {
    max-width: 90%;
  }
}

/* In-chat rating banner (mirrors the app's in-thread prompt) */
.chat-rate-card {
  border-top: 1px solid var(--border, #e2e1d8);
  background: #eef7f0;
  padding: 12px 16px;
  text-align: center;
}
.chat-rate-card .rating-widget { margin-top: 8px; }

/* Name + rating badge on message list rows and chat header */
.convo-name { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.convo-name strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#chat-title .rating-badge { font-size: 12px; vertical-align: 2px; }
