/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Poppins', 'Segoe UI', system-ui, sans-serif;
  background: #F0F9F2;
  color: #1A1A1A;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: #2DB043; text-decoration: none; }
a:hover { text-decoration: underline; }
button { cursor: pointer; border: none; outline: none; font-family: inherit; }
img { max-width: 100%; display: block; }

/* ── CSS variables ── */
:root {
  --green:     #2DB043;
  --green-dark:#259a3a;
  --black:     #1A1A1A;
  --amber:     #F0A500;
  --amber-dark:#d4920a;
  --pale:      #F0F9F2;
  --white:     #FFFFFF;
  --grey:      #6B6B6B;
  --border:    #e5f0e8;
  --shadow:    0 2px 16px rgba(0,0,0,.07);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.12);
  --radius:    14px;
  --radius-sm: 8px;
}

/* ── Header ── */
.header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: var(--shadow);
}
.logo-link { text-decoration: none !important; }
.logo { display: flex; flex-direction: column; gap: 0; }
.logo-wordmark { font-size: 30px; font-weight: 900; letter-spacing: -1.5px; line-height: 1; }
.logo-en { color: var(--black); }
.logo-go { color: var(--green); }
.logo-tagline {
  font-size: 9.5px;
  color: var(--grey);
  letter-spacing: 0.6px;
  font-weight: 500;
  margin-top: 1px;
  text-transform: lowercase;
}
.header-nav { display: flex; align-items: center; gap: 6px; }
.header-nav a {
  color: var(--grey);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 20px;
  transition: color .2s, background .2s;
}
.header-nav a:hover { color: var(--green); background: #f0f9f2; text-decoration: none; }
.header-nav .nav-donate {
  background: var(--green);
  color: var(--white) !important;
  font-weight: 600;
}
.header-nav .nav-donate:hover { background: var(--green-dark); }

/* ── Notification zone ── */
.notif-bar {
  background: var(--green);
  color: var(--white);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 14px;
  font-weight: 500;
  animation: slideDown .35s ease;
}
.notif-bar.notif-complete {
  background: #1A1A1A;
}
.notif-bar + .notif-bar {
  border-top: 1px solid rgba(255,255,255,.15);
}
.notif-text { flex: 1; line-height: 1.4; }
.notif-text strong { font-weight: 700; }
.notif-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.notif-close {
  background: rgba(255,255,255,.2);
  color: var(--white);
  border: none;
  border-radius: 50%;
  width: 28px; height: 28px;
  font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .2s;
}
.notif-close:hover { background: rgba(255,255,255,.35); }
.btn-notif-donate {
  background: var(--amber);
  color: var(--white);
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  transition: background .2s;
  white-space: nowrap;
}
.btn-notif-donate:hover { background: var(--amber-dark); text-decoration: none; }

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Loading / Error states ── */
.state-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  gap: 16px;
  text-align: center;
  padding: 24px;
}
.spinner {
  width: 48px; height: 48px;
  border: 4px solid var(--border);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-text { color: var(--grey); font-weight: 500; font-size: 15px; }
.error-box {
  background: #fff5f5;
  border: 1px solid #fcc;
  border-radius: var(--radius-sm);
  padding: 24px 28px;
  max-width: 480px;
}
.error-box h3 { color: #c00; margin-bottom: 8px; }
.error-box p { color: var(--grey); font-size: 14px; line-height: 1.6; }

/* ── Welcome bar ── */
.welcome-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 22px 28px;
}
.welcome-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.welcome-text h1 {
  font-size: 22px;
  font-weight: 700;
  color: var(--black);
  line-height: 1.2;
}
.welcome-text h1 span { color: var(--green); }
.welcome-sub { font-size: 13px; color: var(--grey); margin-top: 3px; font-weight: 400; }
.stats-row { display: flex; gap: 32px; }
.stat { text-align: right; }
.stat-value { font-size: 24px; font-weight: 800; color: var(--green); line-height: 1; }
.stat-label { font-size: 10px; color: var(--grey); margin-top: 2px; letter-spacing: 0.7px; font-weight: 600; }

/* ── Main container ── */
.main { max-width: 1100px; margin: 0 auto; padding: 28px 24px; }

/* ── Tabs ── */
.tabs { display: flex; gap: 0; margin-bottom: 24px; border-bottom: 2px solid var(--border); }
.tab-btn {
  background: none;
  padding: 10px 22px;
  font-size: 13px;
  font-weight: 600;
  color: var(--grey);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color .2s, border-color .2s;
  font-family: inherit;
}
.tab-btn.active { color: var(--green); border-bottom-color: var(--green); }
.tab-btn:hover:not(.active) { color: var(--black); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── Donation cards grid ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 22px;
}

/* ── Donation card ── */
.donation-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
  cursor: pointer;
  border: 1px solid var(--border);
}
.donation-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-header {
  background: var(--green);
  padding: 18px 20px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.card-header.completed { background: #1a8a30; }
.card-header.header-unallocated { background: #888; }

.card-title {
  color: var(--white);
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.3;
  flex: 1;
}
.card-icon { font-size: 22px; flex-shrink: 0; }
.card-amount {
  color: var(--white);
  font-size: 20px;
  font-weight: 800;
  white-space: nowrap;
}

.card-body { padding: 18px 20px; }

/* Payment dates list */
.payment-dates {
  margin-bottom: 14px;
  font-size: 12px;
  color: var(--grey);
}
.payment-dates-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--grey);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 5px;
}
.payment-date-item {
  display: inline-block;
  background: var(--pale);
  border-radius: 12px;
  padding: 3px 9px;
  margin: 2px 3px 2px 0;
  font-size: 11px;
  font-weight: 500;
  color: #444;
}
.payment-count {
  font-size: 11px;
  color: var(--grey);
  margin-top: 4px;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--grey);
  margin-bottom: 14px;
  align-items: center;
}
.card-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
}
.badge-active   { background: #e6f7ea; color: var(--green); }
.badge-completed{ background: #e8e8e8; color: #555; }
.badge-unallocated { background: #fff3e0; color: #e67e00; }
.badge-monthly  { background: #e8f4ff; color: #0066cc; }

/* ── Stage tracker ── */
.stage-tracker { margin-bottom: 14px; }
.stage-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--grey);
  margin-bottom: 10px;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}
.stage-steps {
  display: flex;
  align-items: flex-start;
  width: 100%;
  overflow: visible;
}
.stage-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  min-width: 0;
}
.stage-dot {
  width: 13px; height: 13px;
  border-radius: 50%;
  background: #ddd;
  border: 2px solid #ddd;
  z-index: 1;
  transition: background .3s, border-color .3s;
  flex-shrink: 0;
}
.stage-dot.done   { background: var(--green); border-color: var(--green); }
.stage-dot.active {
  background: var(--amber);
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(240,165,0,.22);
}
.stage-connector {
  position: absolute;
  top: 6px;
  left: calc(50% + 7px);
  right: calc(-50% + 7px);
  height: 2px;
  background: #e0e0e0;
}
.stage-connector.done { background: var(--green); }
.stage-step:last-child .stage-connector { display: none; }
.stage-name {
  font-size: 9px;
  color: #aaa;
  margin-top: 6px;
  text-align: center;
  line-height: 1.3;
  word-break: break-word;
  padding: 0 2px;
  font-weight: 500;
}
.stage-name.done-label { color: var(--green); font-weight: 600; }
.stage-name.current    { color: var(--amber); font-weight: 700; }
.current-stage-text {
  font-size: 12px;
  font-weight: 600;
  color: var(--amber);
  margin-top: 10px;
}

/* ── Impact statement ── */
.impact-text {
  font-size: 12px;
  color: var(--grey);
  line-height: 1.6;
  font-style: italic;
  margin-top: 4px;
}

/* ── Card footer ── */
.card-footer {
  padding: 12px 20px;
  border-top: 1px solid #f0f0f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.btn-view {
  background: var(--green);
  color: var(--white);
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  transition: background .2s;
  font-family: inherit;
}
.btn-view:hover { background: var(--green-dark); }
.card-type { font-size: 11px; color: var(--grey); font-weight: 500; }

/* ── Re-engagement banner ── */
.reengage-banner {
  background: linear-gradient(135deg, #fff8e1, #fffbee);
  border: 1.5px solid var(--amber);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.reengage-text h3 { font-size: 16px; font-weight: 700; color: var(--black); margin-bottom: 4px; }
.reengage-text p { font-size: 13px; color: var(--grey); }
.btn-amber {
  background: var(--amber);
  color: var(--white);
  padding: 11px 22px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  transition: background .2s;
  display: inline-block;
}
.btn-amber:hover { background: var(--amber-dark); text-decoration: none; }

/* ── Empty state ── */
.empty-state { text-align: center; padding: 60px 24px; color: var(--grey); }
.empty-state .empty-icon { font-size: 52px; margin-bottom: 16px; }
.empty-state h3 { font-size: 18px; margin-bottom: 8px; color: var(--black); }
.empty-state p { font-size: 14px; line-height: 1.6; max-width: 360px; margin: 0 auto; }

/* ── Modal overlay ── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 500;
  overflow-y: auto;
  padding: 20px;
}
.modal-overlay.open { display: flex; align-items: flex-start; justify-content: center; }
.modal {
  background: var(--white);
  border-radius: var(--radius);
  max-width: 860px;
  width: 100%;
  margin: auto;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,.25);
  position: relative;
}
.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  background: rgba(255,255,255,.9);
  border-radius: 50%;
  width: 36px; height: 36px;
  font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  z-index: 10;
  color: var(--black);
  transition: background .2s;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.modal-close:hover { background: #f0f0f0; }
.modal-hero {
  background: var(--green);
  padding: 30px 32px 24px;
  color: var(--white);
}
.modal-hero.completed { background: #1a8a30; }
.modal-hero h2 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 8px;
  line-height: 1.3;
}
.modal-meta {
  font-size: 13px;
  opacity: 0.88;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}
.modal-meta span::before { content: '·'; margin-right: 14px; opacity: .5; }
.modal-meta span:first-child::before { content: ''; margin: 0; }
.modal-body { padding: 28px 32px; }

/* ── Photo gallery ── */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
  margin-bottom: 28px;
}
.gallery-img {
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: #f0f0f0;
  cursor: pointer;
}
.gallery-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .3s;
}
.gallery-img:hover img { transform: scale(1.06); }
.img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--grey);
  font-size: 13px;
  background: #f5f5f5;
}

/* ── Timeline ── */
.timeline { margin-bottom: 28px; }
.timeline-item { display: flex; gap: 16px; margin-bottom: 20px; }
.timeline-dot-col { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; }
.t-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
  margin-top: 2px;
}
.t-dot.active { background: var(--amber); box-shadow: 0 0 0 3px rgba(240,165,0,.22); }
.t-line { flex: 1; width: 2px; background: #e0ece3; margin-top: 4px; min-height: 16px; }
.t-content { flex: 1; padding-bottom: 8px; }
.t-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  flex-wrap: wrap;
}
.t-stage {
  font-size: 11px;
  font-weight: 700;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.t-date { font-size: 11px; color: var(--grey); }
.t-text { font-size: 13px; color: #444; margin-top: 5px; line-height: 1.6; }

/* ── Map in modal ── */
.modal-map-wrap {
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 28px;
  border: 1px solid var(--border);
}
#modal-map { height: 260px; width: 100%; }

/* ── Map view tab ── */
#map-view { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
#main-map { height: 480px; width: 100%; background: #e5f0e8; }
.map-legend {
  margin-top: 10px;
  font-size: 12px;
  color: var(--grey);
  display: flex;
  gap: 20px;
  align-items: center;
}
.legend-dot {
  display: inline-block;
  width: 11px; height: 11px;
  border-radius: 50%;
  margin-right: 5px;
  vertical-align: middle;
}
.legend-dot.green { background: var(--green); }
.legend-dot.amber { background: var(--amber); }

/* ── Modal action buttons ── */
.modal-actions { display: flex; gap: 12px; flex-wrap: wrap; padding-top: 8px; }
.btn-donate {
  background: var(--green);
  color: var(--white);
  padding: 12px 26px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 700;
  transition: background .2s;
  display: inline-block;
}
.btn-donate:hover { background: var(--green-dark); text-decoration: none; }
.btn-monthly {
  background: var(--amber);
  color: var(--white);
  padding: 12px 26px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 700;
  transition: background .2s;
  display: inline-block;
}
.btn-monthly:hover { background: var(--amber-dark); text-decoration: none; }

/* ── Section headings ── */
.section-head {
  font-size: 14px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ── Project stats in modal ── */
.project-stats {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.p-stat {
  background: var(--pale);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  flex: 1;
  min-width: 90px;
}
.p-stat-val { font-size: 18px; font-weight: 800; color: var(--green); }
.p-stat-label { font-size: 10px; color: var(--grey); margin-top: 2px; font-weight: 600; letter-spacing: 0.5px; }
.progress-bar-wrap {
  background: #e0ece3;
  border-radius: 8px;
  height: 7px;
  overflow: hidden;
  margin: 8px 0 18px;
}
.progress-bar-fill {
  height: 100%;
  background: var(--green);
  border-radius: 8px;
  transition: width .8s ease;
}

/* ── Description block ── */
.project-description {
  font-size: 14px;
  color: #444;
  line-height: 1.7;
  margin-bottom: 24px;
  padding: 16px;
  background: var(--pale);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--green);
}

/* ── Admin page ── */
.admin-gate {
  max-width: 380px;
  margin: 80px auto;
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
  text-align: center;
}
.admin-gate h2 { font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.admin-gate p { color: var(--grey); font-size: 13px; margin-bottom: 24px; }
.admin-gate input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #ddd;
  border-radius: var(--radius-sm);
  font-size: 15px;
  margin-bottom: 12px;
  outline: none;
  transition: border-color .2s;
  font-family: inherit;
}
.admin-gate input:focus { border-color: var(--green); }
.admin-gate button {
  width: 100%;
  padding: 12px;
  background: var(--green);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  transition: background .2s;
}
.admin-gate button:hover { background: var(--green-dark); }
.gate-error { color: #c00; font-size: 13px; margin-top: 8px; }

.admin-dashboard { padding: 24px; max-width: 1200px; margin: 0 auto; }
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 12px;
}
.admin-header h1 { font-size: 22px; font-weight: 800; }
.btn-sheet {
  background: var(--pale);
  color: var(--green);
  border: 1.5px solid var(--green);
  padding: 9px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  transition: background .2s;
  font-family: inherit;
  cursor: pointer;
}
.btn-sheet:hover { background: #d5f0da; }

.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}
.admin-stat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  text-align: center;
  border: 1px solid var(--border);
}
.admin-stat-card .val { font-size: 26px; font-weight: 800; color: var(--green); }
.admin-stat-card .lbl { font-size: 11px; color: var(--grey); margin-top: 4px; font-weight: 600; }

.admin-section {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  margin-bottom: 24px;
  border: 1px solid var(--border);
}
.admin-section h2 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.admin-search {
  padding: 8px 14px;
  border: 1.5px solid #ddd;
  border-radius: 20px;
  font-size: 13px;
  width: 220px;
  outline: none;
  font-family: inherit;
}
.admin-search:focus { border-color: var(--green); }

.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th {
  text-align: left;
  padding: 8px 12px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--grey);
  border-bottom: 2px solid #f0f0f0;
  font-weight: 700;
}
.admin-table td { padding: 10px 12px; border-bottom: 1px solid #f8f8f8; vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--pale); }

.project-row-admin {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.project-admin-card {
  background: var(--pale);
  border-radius: var(--radius-sm);
  padding: 16px;
  border: 1px solid var(--border);
}
.project-admin-card h4 { font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.project-admin-card .stage { font-size: 12px; color: var(--green); font-weight: 600; margin-bottom: 4px; }
.project-admin-card .raised { font-size: 13px; color: var(--grey); }

/* ── Donor link in admin ── */
.donor-link {
  display: inline-block;
  font-size: 11px;
  color: var(--green);
  background: #e6f7ea;
  padding: 2px 8px;
  border-radius: 10px;
  margin-top: 3px;
  cursor: pointer;
  font-family: monospace;
}
.donor-link:hover { background: #c8efd0; }

/* ── Lightbox ── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.92);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 90vh; border-radius: var(--radius-sm); }
.lightbox-close {
  position: absolute;
  top: 20px; right: 24px;
  color: white;
  font-size: 32px;
  cursor: pointer;
  line-height: 1;
  opacity: .8;
  transition: opacity .2s;
}
.lightbox-close:hover { opacity: 1; }

/* ── PWA install prompt ── */
.pwa-prompt {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--black);
  color: var(--white);
  border-radius: var(--radius);
  padding: 14px 20px;
  z-index: 300;
  box-shadow: var(--shadow-lg);
  max-width: calc(100vw - 32px);
  width: 420px;
}
.pwa-prompt-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  font-weight: 500;
}
.pwa-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.btn-pwa-install {
  background: var(--green);
  color: white;
  padding: 7px 16px;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  transition: background .2s;
}
.btn-pwa-install:hover { background: var(--green-dark); }
.btn-pwa-dismiss {
  background: rgba(255,255,255,.15);
  color: white;
  border-radius: 50%;
  width: 28px; height: 28px;
  font-size: 15px;
  display: flex; align-items: center; justify-content: center;
  font-family: inherit;
  transition: background .2s;
}
.btn-pwa-dismiss:hover { background: rgba(255,255,255,.28); }

/* ── Responsive ── */
@media (max-width: 640px) {
  .header { padding: 12px 16px; }
  .logo-wordmark { font-size: 26px; }
  .header-nav { gap: 2px; }
  .header-nav a { padding: 6px 8px; font-size: 12px; }
  .welcome-bar { padding: 16px; }
  .welcome-inner { flex-direction: column; align-items: flex-start; }
  .stats-row { gap: 20px; }
  .stat { text-align: left; }
  .main { padding: 16px; }
  .modal-body { padding: 20px 16px; }
  .modal-hero { padding: 20px 16px; }
  .modal-hero h2 { font-size: 18px; }
  .modal-overlay { padding: 0; }
  .modal { border-radius: 0; min-height: 100vh; }
  .cards-grid { grid-template-columns: 1fr; }
  .project-row-admin { grid-template-columns: 1fr; }
  #main-map { height: 340px; }
  .stage-name { font-size: 8px; }
}

/* ── Ensure full width for Wix embed ── */
html, body { max-width: 100%; overflow-x: hidden; }
