@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Fraunces:ital,wght@0,700;1,700&display=swap');

:root {
  --green-deep: #1a4731;
  --green: #2d6a4f;
  --green-mid: #40916c;
  --green-light: #52b788;
  --green-pale: #d8f3dc;
  --green-ghost: #f0faf3;
  --amber: #e07b39;
  --amber-light: #fdf0e6;
  --amber-bright: #f4a261;
  --bg: #f7f8f6;
  --surface: #ffffff;
  --surface-2: #f9fafb;
  --border: #e4e7e2;
  --border-strong: #d0d5cc;
  --text: #1a1f1a;
  --text-mid: #3d4a3d;
  --text-muted: #7a8a7a;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow: 0 4px 12px rgba(0,0,0,.08), 0 1px 3px rgba(0,0,0,.04);
  --shadow-md: 0 8px 24px rgba(0,0,0,.1), 0 2px 6px rgba(0,0,0,.05);
  --shadow-lg: 0 16px 48px rgba(0,0,0,.12), 0 4px 12px rgba(0,0,0,.06);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ─── NAV ─────────────────────────────────────────────────────────────── */
nav {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
}
.nav-inner {
  max-width: 1140px; margin: 0 auto;
  padding: 0 28px;
  height: 64px;
  display: flex; align-items: center; gap: 8px;
}
.nav-logo {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700; font-size: 1.25rem; color: var(--green-deep);
  text-decoration: none; white-space: nowrap; margin-right: 12px;
  letter-spacing: -.01em;
}
.nav-links { display: flex; gap: 2px; flex: 1; }
.nav-links a {
  padding: 6px 14px; border-radius: 99px;
  color: var(--text-muted); font-size: .875rem; font-weight: 500;
  transition: background .15s, color .15s;
}
.nav-links a:hover { background: var(--green-ghost); color: var(--green); text-decoration: none; }
.nav-links a.active { background: var(--green-pale); color: var(--green-deep); font-weight: 600; }
.nav-credits {
  background: linear-gradient(135deg, var(--amber-light) 0%, #fde8d0 100%);
  color: var(--amber);
  font-weight: 700; font-size: .8rem;
  padding: 5px 14px; border-radius: 99px;
  white-space: nowrap; border: 1px solid #f5d3b5;
  letter-spacing: .01em;
}

/* ─── BUTTONS ─────────────────────────────────────────────────────────── */
.btn-primary {
  background: linear-gradient(135deg, var(--green-mid) 0%, var(--green-deep) 100%);
  color: #fff; border: none; border-radius: var(--radius-sm);
  padding: 11px 22px; font-size: .9rem; font-weight: 600;
  cursor: pointer; transition: all .2s; letter-spacing: .01em;
  box-shadow: 0 2px 8px rgba(45,106,79,.3);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(45,106,79,.4);
  background: linear-gradient(135deg, var(--green-light) 0%, var(--green-mid) 100%);
}
.btn-primary:active { transform: translateY(0); }

.btn-outline {
  background: transparent; color: var(--green);
  border: 1.5px solid var(--green-light); border-radius: var(--radius-sm);
  padding: 10px 22px; font-size: .9rem; font-weight: 600;
  cursor: pointer; transition: all .2s;
}
.btn-outline:hover { background: var(--green-ghost); border-color: var(--green); transform: translateY(-1px); }

.btn-ghost {
  background: transparent; color: var(--text-muted);
  border: none; font-size: .875rem; cursor: pointer; padding: 8px 14px;
  border-radius: var(--radius-sm); transition: all .15s; font-weight: 500;
}
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }

.btn-danger {
  background: #fef2f2; color: #dc2626;
  border: 1.5px solid #fecaca; border-radius: var(--radius-sm);
  padding: 10px 22px; font-size: .9rem; font-weight: 600; cursor: pointer;
  transition: all .2s;
}
.btn-danger:hover { background: #fee2e2; }

.btn-sm { padding: 7px 14px; font-size: .8rem; }
.btn-lg { padding: 14px 32px; font-size: 1rem; border-radius: 12px; }
.full-width { width: 100%; display: block; text-align: center; }
.mt-s { margin-top: 10px; }

/* ─── PAGES ───────────────────────────────────────────────────────────── */
.page { min-height: calc(100vh - 64px); }
.page-content { max-width: 1140px; margin: 0 auto; padding: 44px 28px; }
.page-content.narrow { max-width: 700px; }
.hidden { display: none !important; }

/* ─── LANDING ─────────────────────────────────────────────────────────── */
.hero {
  max-width: 1140px; margin: 0 auto;
  padding: 96px 28px 72px;
  display: flex; align-items: center; gap: 72px;
}
.hero-text { flex: 1; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--green-pale); color: var(--green-deep);
  font-size: .775rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 99px; margin-bottom: 20px;
  border: 1px solid #b7e4c7;
}
.hero-text h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 3.25rem; line-height: 1.1; margin-bottom: 20px;
  color: var(--green-deep); letter-spacing: -.02em;
}
.hero-text h1 em { font-style: italic; color: var(--green-mid); }
.hero-text p {
  font-size: 1.1rem; color: var(--text-muted); max-width: 500px;
  margin-bottom: 36px; line-height: 1.7;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-visual { flex-shrink: 0; }
.credit-flow {
  display: flex; flex-direction: column; gap: 12px;
  position: relative;
}
.flow-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  display: flex; align-items: center; gap: 16px;
  box-shadow: var(--shadow-md);
  transition: transform .2s;
  width: 300px;
}
.flow-card:hover { transform: translateY(-2px); }
.flow-card-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; flex-shrink: 0;
}
.flow-card-icon.dog { background: #fef9ee; }
.flow-card-icon.cat { background: #f0f4ff; }
.flow-card-icon.other { background: var(--green-ghost); }
.flow-card-text strong { display: block; font-size: .9rem; font-weight: 600; }
.flow-card-text span { font-size: .8rem; color: var(--text-muted); }
.flow-badge {
  margin-left: auto; font-weight: 700; font-size: .8rem;
  padding: 4px 10px; border-radius: 99px; white-space: nowrap;
}
.flow-badge.earn { background: var(--green-pale); color: var(--green-deep); }
.flow-badge.spend { background: var(--amber-light); color: var(--amber); }
.flow-connector {
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: .75rem; font-weight: 600;
  letter-spacing: .05em; gap: 8px;
}
.flow-connector::before, .flow-connector::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}

.how-it-works {
  background: var(--surface);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 80px 28px;
}
.section-center { max-width: 900px; margin: 0 auto; }
.section-center h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 2rem; text-align: center; margin-bottom: 12px;
  color: var(--green-deep); letter-spacing: -.01em;
}
.section-center .section-sub {
  text-align: center; color: var(--text-muted); margin-bottom: 52px; font-size: 1rem;
}
.steps { display: flex; gap: 0; position: relative; }
.steps::before {
  content: ''; position: absolute; top: 28px; left: calc(16.67% + 16px); right: calc(16.67% + 16px);
  height: 2px; background: var(--green-pale); z-index: 0;
}
.step { flex: 1; text-align: center; padding: 0 20px; position: relative; z-index: 1; }
.step-num {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--green-mid), var(--green-deep));
  color: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.1rem; margin: 0 auto 20px;
  box-shadow: 0 4px 12px rgba(45,106,79,.35);
}
.step h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.step p { color: var(--text-muted); font-size: .875rem; line-height: 1.6; }

.why-section {
  max-width: 1140px; margin: 0 auto; padding: 80px 28px;
}
.why-section h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 2rem; margin-bottom: 12px; color: var(--green-deep); letter-spacing: -.01em;
}
.why-section .section-sub { color: var(--text-muted); margin-bottom: 40px; }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.why-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
  transition: box-shadow .2s, transform .2s;
}
.why-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.why-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--green-ghost); border: 1px solid var(--green-pale);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 16px;
}
.why-card h3 { font-size: .95rem; font-weight: 700; margin-bottom: 8px; }
.why-card p { color: var(--text-muted); font-size: .875rem; line-height: 1.65; }

/* ─── DASHBOARD ───────────────────────────────────────────────────────── */
.greeting {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.75rem; font-weight: 700; margin-bottom: 28px;
  color: var(--green-deep); letter-spacing: -.01em;
}
.greeting span { color: var(--green-mid); }

.dashboard-grid {
  display: grid;
  grid-template-columns: 200px 240px 1fr;
  gap: 20px; margin-bottom: 44px;
}
.dash-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow-sm);
}
.credits-card {
  text-align: center; display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  background: linear-gradient(145deg, var(--green-deep) 0%, var(--green-mid) 100%);
  border-color: transparent;
}
.credits-num {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 3.5rem; font-weight: 700; color: #fff;
  line-height: 1; letter-spacing: -.02em;
}
.credits-label { color: rgba(255,255,255,.75); font-size: .8rem; margin-top: 6px; font-weight: 500; }

.quick-card h3 { font-size: .875rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px; }
.activity-card h3 { font-size: .875rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px; }

.activity-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 0; border-bottom: 1px solid var(--border);
  font-size: .85rem;
}
.activity-item:last-child { border-bottom: none; }
.activity-icon {
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--surface-2); display: flex; align-items: center;
  justify-content: center; font-size: .9rem; flex-shrink: 0;
}
.activity-text { flex: 1; line-height: 1.4; }
.activity-text small { color: var(--text-muted); font-size: .75rem; }
.activity-credit { font-weight: 700; white-space: nowrap; padding: 2px 8px; border-radius: 6px; font-size: .8rem; }
.activity-credit.earned { color: var(--green-deep); background: var(--green-pale); }
.activity-credit.spent { color: #b91c1c; background: #fee2e2; }

/* ─── REQUEST CARDS ───────────────────────────────────────────────────── */
.request-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.request-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px;
  box-shadow: var(--shadow-sm); cursor: pointer;
  transition: box-shadow .2s, transform .15s, border-color .2s;
}
.request-card:hover {
  box-shadow: var(--shadow-md); transform: translateY(-2px);
  border-color: var(--green-light);
}
.req-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.req-type-badge {
  font-size: .75rem; font-weight: 700; padding: 4px 10px; letter-spacing: .02em;
  border-radius: 99px; background: var(--green-ghost); color: var(--green-deep);
  border: 1px solid var(--green-pale);
}
.req-credits-badge {
  font-size: .8rem; font-weight: 700; color: var(--amber);
  background: var(--amber-light); padding: 4px 10px; border-radius: 99px;
  border: 1px solid #f5d3b5;
}
.req-title { font-weight: 600; margin-bottom: 8px; font-size: .95rem; line-height: 1.4; }
.req-meta {
  font-size: .78rem; color: var(--text-muted);
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px;
}
.req-meta span {
  display: flex; align-items: center; gap: 3px;
  background: var(--surface-2); padding: 3px 8px; border-radius: 6px;
  border: 1px solid var(--border);
}
.req-status {
  display: inline-block; font-size: .72rem; font-weight: 700;
  padding: 3px 9px; border-radius: 99px; margin-top: 10px; letter-spacing: .03em;
}
.status-open { background: #dcfce7; color: #15803d; }
.status-accepted { background: #fef9c3; color: #a16207; }
.status-completed { background: #e0e7ff; color: #3730a3; }
.status-cancelled { background: var(--surface-2); color: var(--text-muted); }

/* ─── SECTION HEADER ──────────────────────────────────────────────────── */
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px;
}
.section-header h2 { font-size: 1.1rem; font-weight: 700; }
.section-header a { font-size: .875rem; color: var(--green); }

/* ─── PAGE HEADER ─────────────────────────────────────────────────────── */
.page-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 28px; flex-wrap: wrap; gap: 14px;
}
.page-header h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 2rem; color: var(--green-deep); letter-spacing: -.01em;
}
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-btn {
  padding: 7px 18px; border-radius: 99px; border: 1.5px solid var(--border);
  background: var(--surface); font-size: .85rem; font-weight: 500;
  cursor: pointer; transition: all .15s; color: var(--text-muted);
}
.filter-btn.active { background: var(--green-deep); color: #fff; border-color: var(--green-deep); font-weight: 600; }
.filter-btn:not(.active):hover { border-color: var(--green-light); color: var(--green); }

/* ─── FORM ────────────────────────────────────────────────────────────── */
.page-content.narrow h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 2rem; color: var(--green-deep); letter-spacing: -.01em; margin-bottom: 24px;
}
.form-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 36px;
  box-shadow: var(--shadow-sm);
}
.form-row { margin-bottom: 22px; }
.form-row label { display: block; font-weight: 600; font-size: .875rem; margin-bottom: 7px; color: var(--text-mid); }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-size: .9rem; font-family: inherit; background: var(--surface);
  color: var(--text); transition: border-color .15s, box-shadow .15s;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none; border-color: var(--green-mid);
  box-shadow: 0 0 0 3px rgba(64,145,108,.12);
}
.form-row textarea { resize: vertical; }
.tos-label { display: flex !important; align-items: flex-start; gap: 10px; font-weight: 400 !important; cursor: pointer; }
.tos-label input[type="checkbox"] { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; cursor: pointer; accent-color: var(--primary); }
.tos-label span { font-size: .85rem; line-height: 1.5; color: var(--text-mid); }
.tos-label a { color: var(--primary); text-decoration: underline; }

.type-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.type-btn {
  padding: 9px 20px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--border); background: var(--surface);
  font-size: .875rem; cursor: pointer; transition: all .15s; font-weight: 500;
  color: var(--text-muted);
}
.type-btn.active {
  border-color: var(--green-mid); background: var(--green-ghost);
  color: var(--green-deep); font-weight: 700;
  box-shadow: 0 0 0 3px rgba(64,145,108,.1);
}
.type-btn:not(.active):hover { border-color: var(--green-light); color: var(--green); }

.credit-input-wrap { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.credit-fixed-badge {
  background: linear-gradient(135deg, var(--green-mid), var(--green-deep));
  color: #fff; font-weight: 700; font-size: .875rem;
  padding: 8px 18px; border-radius: var(--radius-sm);
  box-shadow: 0 2px 6px rgba(45,106,79,.25);
}
.credit-hint { font-size: .85rem; color: var(--text-muted); }
.credit-hint strong { color: var(--green-deep); }

.error-msg {
  color: #b91c1c; font-size: .85rem;
  background: #fef2f2; border: 1px solid #fecaca;
  padding: 10px 14px; border-radius: var(--radius-sm); margin-bottom: 14px;
}

/* ─── PROFILE ─────────────────────────────────────────────────────────── */
.profile-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px; display: flex; gap: 22px; align-items: center;
  box-shadow: var(--shadow-sm);
}
.profile-avatar {
  width: 72px; height: 72px; border-radius: 50%;
  background: linear-gradient(135deg, var(--green-mid), var(--green-deep));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-family: 'Fraunces', serif;
  font-size: 1.8rem; font-weight: 700; flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(45,106,79,.3);
}
.profile-info h2 { font-size: 1.25rem; font-weight: 700; }
.profile-info p { color: var(--text-muted); font-size: .875rem; margin-top: 3px; }
.profile-credits { margin-top: 10px; font-size: .9rem; }
.profile-credits strong { color: var(--green-deep); font-size: 1.15rem; font-family: 'Fraunces', serif; }

.pet-item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 14px 18px;
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px; transition: border-color .15s;
}
.pet-item:hover { border-color: var(--green-light); }
.pet-info { display: flex; gap: 14px; align-items: center; }
.pet-emoji {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--green-ghost); border: 1px solid var(--green-pale);
  display: flex; align-items: center; justify-content: center; font-size: 1.3rem;
}
.pet-name { font-weight: 600; font-size: .9rem; }
.pet-desc { font-size: .8rem; color: var(--text-muted); margin-top: 2px; }
.delete-btn {
  background: none; border: none; cursor: pointer;
  color: var(--text-muted); font-size: .8rem; padding: 6px 10px;
  border-radius: var(--radius-xs); transition: all .15s;
}
.delete-btn:hover { background: #fee2e2; color: #dc2626; }

/* ─── NEIGHBORS ───────────────────────────────────────────────────────── */
.neighbor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.neighbor-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px;
  cursor: pointer; transition: box-shadow .2s, transform .15s, border-color .2s;
  box-shadow: var(--shadow-sm);
}
.neighbor-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--green-light); }
.neighbor-header { display: flex; gap: 14px; align-items: center; margin-bottom: 10px; }
.neighbor-avatar {
  width: 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(135deg, var(--green-pale), var(--green-ghost));
  color: var(--green-deep); border: 1.5px solid var(--green-pale);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Fraunces', serif;
  font-weight: 700; font-size: 1.1rem; flex-shrink: 0;
}
.neighbor-name { font-weight: 600; font-size: .9rem; }
.neighbor-unit { font-size: .78rem; color: var(--text-muted); margin-top: 1px; }
.neighbor-pets { font-size: .78rem; color: var(--text-muted); margin-top: 6px; line-height: 1.5; }

/* ─── REQUEST DETAIL ──────────────────────────────────────────────────── */
.detail-header { margin-bottom: 24px; }
.detail-header h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.7rem; margin: 12px 0 6px; color: var(--green-deep);
  letter-spacing: -.01em; line-height: 1.2;
}
.detail-section {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px; margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}
.detail-section h3 {
  font-size: .75rem; color: var(--text-muted); margin-bottom: 14px;
  text-transform: uppercase; letter-spacing: .08em; font-weight: 700;
}
.detail-row { display: flex; gap: 10px; margin-bottom: 10px; font-size: .9rem; }
.detail-row:last-child { margin-bottom: 0; }
.detail-row label { font-weight: 600; min-width: 90px; color: var(--text-muted); font-size: .85rem; }
.action-bar { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

/* ─── MODAL ───────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(4px);
  display: flex; align-items: flex-start; justify-content: center;
  z-index: 200; padding: 24px;
  overflow-y: auto;
}
.modal-box {
  background: var(--surface); border-radius: var(--radius);
  padding: 36px; max-width: 480px; width: 100%;
  box-shadow: var(--shadow-lg);
  position: relative;
  animation: slideUp .25s ease;
  margin: auto;
}
@keyframes slideUp {
  from { transform: translateY(16px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.modal-close {
  position: absolute; top: 18px; right: 18px;
  background: var(--surface-2); border: 1px solid var(--border);
  cursor: pointer; color: var(--text-muted); font-size: .85rem;
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.modal-close:hover { background: var(--border); }
.modal-box h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.5rem; margin-bottom: 24px; color: var(--green-deep); letter-spacing: -.01em;
}

/* ─── TABS ────────────────────────────────────────────────────────────── */
.tab-bar {
  display: flex; gap: 4px; border-bottom: 2px solid var(--border); margin-bottom: 24px;
}
.tab {
  padding: 9px 20px; background: none; border: none;
  cursor: pointer; font-size: .875rem; color: var(--text-muted); font-weight: 500;
  border-bottom: 2px solid transparent; margin-bottom: -2px;
  transition: color .15s;
}
.tab.active { color: var(--green-deep); border-bottom-color: var(--green-mid); font-weight: 700; }
.tab:not(.active):hover { color: var(--text); }

/* ─── STARS ───────────────────────────────────────────────────────────── */
.stars { display: flex; gap: 3px; }
.star { font-size: 1.25rem; cursor: pointer; transition: transform .1s; }
.star.active { color: #f59e0b; }
.star:not(.active) { color: #d1d5db; }
.star:hover { transform: scale(1.2); }
.rating-row { display: flex; align-items: center; gap: 8px; font-size: .875rem; }

.review-item {
  padding: 14px 0; border-bottom: 1px solid var(--border); font-size: .875rem;
}
.review-item:last-child { border-bottom: none; }
.review-meta { display: flex; gap: 8px; align-items: center; margin-bottom: 5px; }
.review-author { font-weight: 600; }
.review-comment { color: var(--text-muted); line-height: 1.5; }

/* ─── BROWSE PANEL ────────────────────────────────────────────────────── */
.browse-header h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 2rem; color: var(--green-deep); letter-spacing: -.01em;
}
.filter-panel {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 24px;
  margin-bottom: 24px; display: flex; flex-direction: column; gap: 14px;
  box-shadow: var(--shadow-sm);
}
.filter-row {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.filter-label {
  font-size: .75rem; font-weight: 700; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .07em; min-width: 62px;
}
.filter-note {
  font-size: .78rem; color: var(--text-muted); margin-left: auto;
  background: var(--surface-2); border: 1px solid var(--border);
  padding: 4px 10px; border-radius: 6px;
}
.browse-count {
  font-size: .85rem; color: var(--text-muted); margin-bottom: 14px; font-weight: 500;
}

/* ─── ADDRESS INPUT WITH DETECT BUTTON ───────────────────────────────── */
.address-input-wrap {
  display: flex; gap: 8px; align-items: stretch;
}
.address-input-wrap input {
  flex: 1;
}
.detect-location-btn {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); cursor: pointer; font-size: 1.15rem;
  display: flex; align-items: center; justify-content: center;
  transition: border-color .15s, background .15s;
}
.detect-location-btn:hover:not(:disabled) {
  border-color: var(--green-mid); background: var(--green-ghost);
}
.detect-location-btn:disabled { opacity: .6; cursor: default; }

.detect-status {
  font-size: .8rem; margin-top: 6px; padding: 6px 10px;
  border-radius: var(--radius-xs);
}
.detect-status.detecting { color: var(--text-muted); background: var(--surface-2); border: 1px solid var(--border); }
.detect-status.success { color: var(--green-deep); background: var(--green-ghost); border: 1px solid var(--green-pale); }
.detect-status.error { color: #b91c1c; background: #fef2f2; border: 1px solid #fecaca; }

/* ─── ADDRESS AUTOCOMPLETE ────────────────────────────────────────────── */
.address-suggestions {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 300;
  background: var(--surface); border: 1.5px solid var(--green-light);
  border-radius: var(--radius-sm); margin-top: 4px;
  box-shadow: var(--shadow-md); overflow: hidden;
  max-height: 260px; overflow-y: auto;
}
.suggestion-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 14px; cursor: pointer; font-size: .85rem;
  line-height: 1.4; transition: background .1s; border-bottom: 1px solid var(--border);
}
.suggestion-item:last-child { border-bottom: none; }
.suggestion-item:hover { background: var(--green-ghost); }
.suggestion-icon { font-size: 1rem; flex-shrink: 0; margin-top: 1px; }

/* ─── LOCATION PRIVACY ────────────────────────────────────────────────── */
.location-hidden { display: inline-flex; align-items: center; gap: 6px; }
.location-lock {
  font-size: .75rem; background: var(--surface-2); border: 1px solid var(--border);
  color: var(--text-muted); padding: 2px 8px; border-radius: 6px;
}

/* ─── CHAT ────────────────────────────────────────────────────────────── */
#chat-section { margin-top: 32px; border-top: 1px solid var(--border); padding-top: 24px; }
#chat-section h3 { font-size: 1rem; font-weight: 700; margin-bottom: 14px; }

#chat-messages {
  max-height: 400px; overflow-y: auto;
  display: flex; flex-direction: column; gap: 10px;
  padding: 8px 0; margin-bottom: 16px;
}
.chat-msg { display: flex; flex-direction: column; max-width: 72%; }
.chat-msg.mine { align-self: flex-end; align-items: flex-end; }
.chat-msg.theirs { align-self: flex-start; align-items: flex-start; }
.chat-sender { font-size: .72rem; color: var(--text-muted); margin-bottom: 3px; padding-left: 4px; }
.chat-bubble {
  background: var(--green-pale); color: var(--green-deep);
  padding: 9px 14px; border-radius: 18px 18px 4px 18px;
  font-size: .9rem; line-height: 1.5; word-break: break-word;
}
.chat-msg.mine .chat-bubble {
  background: var(--green); color: #fff;
  border-radius: 18px 18px 18px 4px;
}
.chat-img {
  max-width: 220px; max-height: 220px; border-radius: var(--radius-sm);
  object-fit: cover; cursor: zoom-in; margin-bottom: 4px;
  border: 1.5px solid var(--border);
}
.chat-time { font-size: .68rem; color: var(--text-muted); margin-top: 3px; padding: 0 4px; }
.chat-empty { text-align: center; color: var(--text-muted); font-size: .85rem; padding: 24px 0; }

.chat-input-area {
  display: flex; gap: 8px; align-items: center;
}
.chat-text-input {
  flex: 1; min-height: 42px;
  padding: 10px 14px; font-size: .9rem; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); background: var(--surface); font-family: inherit;
  transition: border-color .15s;
}
.chat-text-input:focus { outline: none; border-color: var(--green-mid); }
.chat-img-btn {
  flex-shrink: 0; width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); cursor: pointer; font-size: 1.1rem;
  transition: border-color .15s, background .15s;
}
.chat-img-btn:hover { border-color: var(--green-mid); background: var(--green-ghost); }
#chat-send {
  flex-shrink: 0; height: 42px; padding: 0 18px;
  background: var(--green); color: #fff; border: none;
  border-radius: var(--radius-sm); font-weight: 600; font-size: .9rem; cursor: pointer;
  transition: background .15s;
}
#chat-send:hover { background: var(--green-mid); }

/* ─── CREDITS STEPPER ─────────────────────────────────────────────────── */
.credits-stepper {
  display: flex; align-items: center; gap: 10px;
}
.credits-stepper button {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1.5px solid var(--border); background: var(--surface);
  font-size: 1.2rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: border-color .15s, background .15s;
}
.credits-stepper button:hover:not(:disabled) { border-color: var(--green-mid); background: var(--green-ghost); }
.credits-stepper button:disabled { opacity: .45; cursor: default; }
#req-credits-display {
  min-width: 32px; text-align: center;
  font-size: 1.15rem; font-weight: 700; color: var(--amber);
}

/* ─── NOTIFICATION BELL ───────────────────────────────────────────────── */
.nav-bell { position: relative; }
#bell-btn {
  background: none; border: none; cursor: pointer;
  font-size: 1.25rem; padding: 6px; border-radius: var(--radius-xs);
  position: relative; display: flex; align-items: center;
  transition: background .15s;
}
#bell-btn:hover { background: var(--green-ghost); }
#bell-badge {
  position: absolute; top: 2px; right: 2px;
  min-width: 16px; height: 16px; padding: 0 4px;
  background: var(--amber); color: #fff;
  border-radius: 8px; font-size: .65rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  line-height: 1; pointer-events: none;
}
.bell-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  width: 320px; max-height: 400px; overflow-y: auto;
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-lg); z-index: 200;
}
.bell-dropdown-header {
  padding: 12px 16px; border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  font-size: .8rem; font-weight: 600; color: var(--text-mid);
}
.bell-dropdown-header button {
  background: none; border: none; cursor: pointer;
  color: var(--green); font-size: .78rem; font-weight: 600; padding: 0;
}
.bell-dropdown-header button:hover { text-decoration: underline; }
.bell-item {
  padding: 12px 16px; border-bottom: 1px solid var(--border);
  cursor: pointer; transition: background .1s;
  display: flex; gap: 10px; align-items: flex-start;
}
.bell-item:last-child { border-bottom: none; }
.bell-item:hover { background: var(--green-ghost); }
.bell-item.unread { background: var(--green-ghost); }
.bell-item.unread:hover { background: var(--green-pale); }
.bell-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }
.bell-text { flex: 1; }
.bell-title { font-size: .85rem; font-weight: 600; color: var(--text); line-height: 1.3; }
.bell-body { font-size: .78rem; color: var(--text-muted); margin-top: 2px; }
.bell-time { font-size: .7rem; color: var(--text-muted); margin-top: 4px; }
.bell-empty { padding: 32px 16px; text-align: center; color: var(--text-muted); font-size: .85rem; }

/* ─── GEAR DROPDOWN ──────────────────────────────────────────────────── */
.nav-gear { position: relative; }
.gear-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  min-width: 190px;
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); z-index: 200;
  padding: 6px;
  animation: slideUp .18s ease;
}
.gear-item {
  display: flex; align-items: center; width: 100%;
  padding: 9px 12px; background: none; border: none;
  font-size: .875rem; font-weight: 500; color: var(--text-mid);
  cursor: pointer; border-radius: var(--radius-xs);
  transition: background .12s, color .12s;
  text-align: left; gap: 4px;
}
.gear-item:hover { background: var(--green-ghost); color: var(--green-deep); }
.gear-divider { height: 1px; background: var(--border); margin: 5px 0; }
.gear-item-danger { color: var(--text-muted); }
.gear-item-danger:hover { background: #fef2f2; color: #dc2626; }

/* ─── SETTINGS ────────────────────────────────────────────────────────── */
.settings-section { margin-bottom: 36px; }
.settings-section h2 { font-size: 1.1rem; font-weight: 700; margin-bottom: 14px; }
.settings-private-note { font-size: .8rem; color: var(--text-muted); background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; margin-bottom: 18px; line-height: 1.5; }
.setting-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 0; border-bottom: 1px solid var(--border);
  gap: 24px;
}
.setting-row:last-of-type { border-bottom: none; }
.setting-label { font-size: .9rem; font-weight: 600; color: var(--text); }
.setting-sub { font-size: .78rem; color: var(--text-muted); margin-top: 3px; }

/* Toggle switch */
.toggle { position: relative; display: inline-block; width: 44px; height: 26px; flex-shrink: 0; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-track {
  position: absolute; inset: 0; cursor: pointer;
  background: var(--border-strong); border-radius: 13px;
  transition: background .2s;
}
.toggle-track::after {
  content: ''; position: absolute;
  width: 20px; height: 20px; left: 3px; top: 3px;
  background: #fff; border-radius: 50%;
  transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.toggle input:checked + .toggle-track { background: var(--green-mid); }
.toggle input:checked + .toggle-track::after { transform: translateX(18px); }

/* ─── REMINDER BANNERS ────────────────────────────────────────────────── */
#dashboard-reminders { margin-bottom: 20px; display: flex; flex-direction: column; gap: 10px; }
.reminder-item {
  display: flex; align-items: center; gap: 12px;
  background: var(--amber-light); border: 1.5px solid var(--amber-bright);
  border-radius: var(--radius-sm); padding: 12px 16px;
  font-size: .88rem; cursor: pointer; transition: background .15s;
}
.reminder-item:hover { background: #fbe5d0; }
.reminder-icon { font-size: 1.2rem; flex-shrink: 0; }
.reminder-text { flex: 1; }
.reminder-title { font-weight: 600; color: var(--text); }
.reminder-sub { color: var(--text-muted); font-size: .78rem; margin-top: 2px; }

/* ─── PET CHECKBOXES ──────────────────────────────────────────────────── */
.pets-checklist { display: flex; flex-wrap: wrap; gap: 8px; }
.pet-checkbox { display: flex; align-items: center; cursor: pointer; }
.pet-checkbox input { position: absolute; opacity: 0; width: 0; height: 0; }
.pet-checkbox-label {
  padding: 8px 14px; border: 1.5px solid var(--border);
  border-radius: 20px; font-size: .875rem; font-weight: 500;
  background: var(--surface); transition: border-color .15s, background .15s, color .15s;
  user-select: none;
}
.pet-checkbox input:checked + .pet-checkbox-label {
  border-color: var(--green-mid); background: var(--green-pale); color: var(--green-deep);
}
.pet-checkbox:hover .pet-checkbox-label { border-color: var(--green-mid); }

/* ─── RECIPIENT TOGGLE & PICKER ──────────────────────────────────────── */
.recipient-toggle {
  display: flex; gap: 6px; flex-wrap: wrap;
}
.recipient-opt {
  padding: 8px 16px; border-radius: 20px; font-size: .875rem; font-weight: 500;
  border: 1.5px solid var(--border); background: var(--surface); cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
}
.recipient-opt:hover { border-color: var(--green-mid); }
.recipient-opt.active { border-color: var(--green-mid); background: var(--green-pale); color: var(--green-deep); }

.neighbor-picker-list {
  margin-top: 10px; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); overflow: hidden;
  max-height: 240px; overflow-y: auto;
}
.neighbor-pick-item {
  display: flex; align-items: center; gap: 12px;
  width: 100%; padding: 10px 14px; text-align: left;
  background: none; border: none; border-bottom: 1px solid var(--border);
  cursor: pointer; transition: background .1s;
}
.neighbor-pick-item:last-child { border-bottom: none; }
.neighbor-pick-item:hover { background: var(--green-ghost); }
.neighbor-pick-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--green-pale); color: var(--green-deep);
  font-size: .9rem; font-weight: 700; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.neighbor-pick-info { display: flex; flex-direction: column; }
.neighbor-pick-name { font-size: .875rem; font-weight: 600; color: var(--text); }
.neighbor-pick-sub { font-size: .75rem; color: var(--text-muted); margin-top: 1px; }
.picker-empty { padding: 16px; font-size: .85rem; color: var(--text-muted); }

/* ─── DIRECTED REQUEST ────────────────────────────────────────────────── */
.recipient-card {
  display: flex; align-items: center; gap: 14px;
  background: var(--surface); border: 2px solid var(--green-light);
  border-radius: var(--radius); padding: 16px 20px;
  margin-bottom: 16px; position: relative;
  box-shadow: var(--shadow-sm);
}
.recipient-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--green-pale); color: var(--green-deep);
  font-size: 1.2rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.recipient-info { flex: 1; }
.recipient-label { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--green-mid); margin-bottom: 2px; }
.recipient-name { font-size: 1.05rem; font-weight: 700; color: var(--text); }
.recipient-sub { font-size: .8rem; color: var(--text-muted); margin-top: 2px; }
.recipient-remove {
  position: absolute; top: 10px; right: 12px;
  background: none; border: none; cursor: pointer;
  color: var(--text-muted); font-size: .9rem; padding: 4px;
  border-radius: 50%; line-height: 1;
  transition: color .15s, background .15s;
}
.recipient-remove:hover { color: var(--text); background: var(--surface-2); }
.directed-badge {
  display: inline-block; font-size: .7rem; font-weight: 700;
  background: var(--amber); color: #fff;
  padding: 2px 8px; border-radius: 10px; margin-top: 6px;
}

/* ─── NEIGHBOR CARD BUTTON ────────────────────────────────────────────── */
.btn-sm { padding: 6px 14px; font-size: .8rem; margin-top: 10px; width: 100%; }

/* ─── APPLICANTS ─────────────────────────────────────────────────────── */
.applicants-section { width: 100%; }
.applicants-section h3 { font-size: .9rem; font-weight: 700; color: var(--text-mid); margin-bottom: 10px; text-transform: uppercase; letter-spacing: .05em; }
.applicant-card {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px; background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); margin-bottom: 8px;
}
.applicant-info { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.applicant-name { font-weight: 600; font-size: .9rem; }
.applicant-name a { color: var(--text); }
.applicant-name a:hover { color: var(--green); }
.applicant-rating { display: flex; align-items: center; gap: 6px; margin-top: 3px; font-size: .8rem; color: var(--text-muted); }
.applicant-distance { font-size: .75rem; color: var(--text-muted); margin-top: 2px; }
.applicant-actions { display: flex; gap: 8px; flex-shrink: 0; }
.btn-sm-inline { padding: 6px 14px; font-size: .82rem; border-radius: var(--radius-sm); }
.apply-pending {
  font-size: .875rem; color: var(--green-mid); font-weight: 500;
  padding: 10px 14px; background: var(--green-ghost); border: 1px solid var(--green-pale);
  border-radius: var(--radius-sm);
}
.apply-declined {
  font-size: .875rem; color: var(--text-muted);
  padding: 10px 14px; background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.no-volunteers { font-size: .875rem; color: var(--text-muted); font-style: italic; }

/* ─── REVIEW / RATING ────────────────────────────────────────────────── */
.review-stars-big .star { font-size: 2rem; cursor: pointer; color: var(--border-strong); transition: color .1s; }
.review-stars-big .star.active { color: var(--amber); }
.review-done {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--amber); font-weight: 600; font-size: .9rem;
}
.mini-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--green-pale); color: var(--green-deep);
  font-size: .9rem; font-weight: 700; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}

/* ─── PET NOTES ON CARD ───────────────────────────────────────────────── */
.req-pet-notes {
  font-size: .78rem; color: var(--text-muted);
  margin-top: 6px; font-style: italic;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ─── MESSAGES INBOX ─────────────────────────────────────────────────── */
#messages-list { display: flex; flex-direction: column; gap: 2px; }
.convo-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--border);
  cursor: pointer; transition: background .1s;
}
.convo-item:hover { background: var(--green-ghost); }
.convo-avatar {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  background: var(--green-pale); color: var(--green-deep);
  font-size: 1.1rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.convo-body { flex: 1; min-width: 0; }
.convo-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 2px; }
.convo-name { font-weight: 700; font-size: .95rem; }
.convo-time { font-size: .72rem; color: var(--text-muted); flex-shrink: 0; margin-left: 8px; }
.convo-title { font-size: .78rem; color: var(--text-muted); margin-bottom: 3px; }
.convo-preview { font-size: .85rem; color: var(--text-mid); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ─── PROFILE CREDITS ────────────────────────────────────────────────── */
.profile-credits-section { }
.profile-credits-card {
  background: linear-gradient(135deg, var(--green-deep) 0%, var(--green-mid) 100%);
  border-radius: var(--radius);
  padding: 24px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  box-shadow: var(--shadow-md);
}
.pcredit-balance { color: #fff; }
.pcredit-num {
  font-family: 'Fraunces', serif;
  font-size: 3rem; font-weight: 700; line-height: 1; letter-spacing: -.02em;
}
.pcredit-label { font-size: .85rem; color: rgba(255,255,255,.7); margin-top: 4px; font-weight: 500; }
.pcredit-stats { display: flex; align-items: center; gap: 0; }
.pcredit-stat { display: flex; flex-direction: column; align-items: center; padding: 0 20px; }
.pcredit-stat-val { font-size: 1.4rem; font-weight: 700; font-family: 'Fraunces', serif; line-height: 1.1; }
.pcredit-stat-key { font-size: .75rem; color: rgba(255,255,255,.65); margin-top: 3px; text-transform: uppercase; letter-spacing: .05em; }
.pcredit-earned { color: #a7f3d0; }
.pcredit-spent  { color: #fca5a5; }
.pcredit-divider { width: 1px; height: 36px; background: rgba(255,255,255,.2); }

/* Credit history list */
.credit-history-list {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.ch-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px; border-bottom: 1px solid var(--border);
  transition: background .1s;
}
.ch-item:last-child { border-bottom: none; }
.ch-item:hover { background: var(--surface-2); }
.ch-icon {
  width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
  background: var(--green-ghost); border: 1px solid var(--green-pale);
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
.ch-body { flex: 1; min-width: 0; }
.ch-label { font-size: .875rem; font-weight: 600; color: var(--text); }
.ch-sub { font-size: .78rem; color: var(--text-muted); margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-date { font-size: .72rem; color: var(--text-muted); margin-top: 3px; }
.ch-badge {
  flex-shrink: 0; font-size: .82rem; font-weight: 700;
  padding: 4px 10px; border-radius: 99px; white-space: nowrap;
}
.ch-earned { background: var(--green-pale); color: var(--green-deep); }
.ch-spent  { background: #fee2e2; color: #b91c1c; }

/* ─── CONTACT ────────────────────────────────────────────────────────── */
.landing-contact-link {
  margin-top: 18px; font-size: .875rem; color: var(--text-muted);
}
.landing-contact-link a { color: var(--green); font-weight: 500; }
.landing-contact-link a:hover { text-decoration: underline; }
.contact-back { margin-bottom: 20px; }
.contact-back a { font-size: .875rem; color: var(--green); font-weight: 500; }
.contact-back a:hover { text-decoration: underline; }
.contact-success {
  text-align: center; padding: 48px 24px;
}
.contact-success-icon {
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--green-pale); color: var(--green-deep);
  font-size: 1.6rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
}
.contact-success h3 {
  font-family: 'Fraunces', serif; font-size: 1.4rem;
  color: var(--green-deep); margin-bottom: 8px;
}
.contact-success p { color: var(--text-muted); font-size: .95rem; }

/* ─── MISC ────────────────────────────────────────────────────────────── */
.loading { color: var(--text-muted); font-size: .875rem; padding: 24px 0; }
.empty { text-align: center; padding: 56px 0; color: var(--text-muted); }
.empty p { margin-top: 10px; font-size: .9rem; }
.sub { color: var(--text-muted); margin-bottom: 24px; font-size: .95rem; }
.mt-m { margin-top: 36px; }

/* ─── RESPONSIVE ──────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero { flex-direction: column; padding: 52px 20px 48px; gap: 48px; }
  .hero-text h1 { font-size: 2.5rem; }
  .dashboard-grid { grid-template-columns: 1fr 1fr; }
  .activity-card { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .hero-text h1 { font-size: 2rem; }
  .flow-card { width: 100%; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .steps { flex-direction: column; align-items: center; }
  .steps::before { display: none; }
  .page-content { padding: 28px 18px; }
  .form-card { padding: 24px; }
}
