/* ==========================================================================
   FUNDIMTAANI — SHARED PAGE DESIGN SYSTEM (pages.css)
   Used by: home, profile, coverage, guides, refer, request, join,
            admin, privacy, terms, error pages.
   Palette: Deep Forest Green (#0F4C3A) & Ochre Amber (#D97706)
   ========================================================================== */

/* ---------- Generic page hero band ---------- */
.page-hero {
  background:
    radial-gradient(900px 320px at 12% -40%, rgba(217, 119, 6, 0.28), transparent 60%),
    radial-gradient(700px 300px at 95% 120%, rgba(16, 185, 129, 0.22), transparent 60%),
    linear-gradient(135deg, #0A3327 0%, #0F4C3A 55%, #14573F 100%);
  color: #fff;
  border-radius: 0 0 28px 28px;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; letter-spacing: -0.02em; }
.page-hero .lead { color: rgba(255, 255, 255, 0.78); }
.page-hero .breadcrumb { --bs-breadcrumb-divider-color: rgba(255,255,255,.5); }
.page-hero .breadcrumb-item a { color: #FCD34D; text-decoration: none; }
.page-hero .breadcrumb-item.active { color: rgba(255, 255, 255, 0.75); }
.page-hero .btn { box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25); }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #FCD34D;
  font-size: 0.78rem; font-weight: 800;
  padding: 7px 16px; border-radius: 9999px;
  backdrop-filter: blur(4px);
}

/* ---------- Section headings ---------- */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.section-head h2 { font-weight: 800; letter-spacing: -0.01em; color: var(--ink-heading); margin: 0 0 6px; }
.section-head p { color: var(--ink-muted); margin: 0; font-size: 0.92rem; }
.section-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--brand-accent); margin-bottom: 8px;
}

/* ---------- Homepage category cards ---------- */
.cat-card {
  display: flex; flex-direction: column; align-items: flex-start;
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  text-decoration: none;
  height: 100%;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative; overflow: hidden;
}
.cat-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent));
  opacity: 0; transition: opacity 0.2s ease;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: var(--brand-primary-border); text-decoration: none; }
.cat-card:hover::before { opacity: 1; }
.cat-card .cat-ico {
  width: 52px; height: 52px; border-radius: 16px;
  background: var(--brand-primary-light); color: var(--brand-primary);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
  transition: transform 0.2s ease;
}
.cat-card:hover .cat-ico { transform: scale(1.08) rotate(-4deg); }
.cat-card h3 { font-size: 1rem; font-weight: 800; color: var(--ink-heading); margin: 0 0 6px; }
.cat-card p { font-size: 0.82rem; color: var(--ink-muted); margin: 0 0 12px; line-height: 1.5; flex: 1; }
.cat-card .cat-link { font-size: 0.82rem; font-weight: 800; color: var(--brand-primary); display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Step cards (how it works) ---------- */
.step-card {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  height: 100%;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.step-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.step-num {
  position: absolute; top: 14px; right: 18px;
  font-size: 2.6rem; font-weight: 800; line-height: 1;
  color: var(--brand-primary-light);
}
[data-theme="dark"] .step-num { color: #1E293B; }
.step-card .step-ico {
  width: 64px; height: 64px; border-radius: 20px;
  background: linear-gradient(135deg, var(--brand-primary), #10B981);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  box-shadow: 0 8px 18px rgba(15, 76, 58, 0.3);
}
.step-card h3 { font-size: 1.02rem; font-weight: 800; color: var(--ink-heading); margin-bottom: 8px; }
.step-card p { font-size: 0.87rem; color: var(--ink-muted); margin: 0; line-height: 1.6; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background:
    radial-gradient(600px 240px at 90% 0%, rgba(217, 119, 6, 0.35), transparent 60%),
    linear-gradient(120deg, #0A3327, #0F4C3A);
  border-radius: var(--radius-xl);
  color: #fff;
  position: relative; overflow: hidden;
  padding: 44px 40px;
}
@media (max-width: 576px) {
  .cta-banner { padding: 32px 24px; }
}
.cta-banner::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 20px 20px; pointer-events: none;
}
.cta-banner .container { position: relative; z-index: 1; }
.cta-banner h2, .cta-banner h3 { color: #fff; }
.cta-banner p { color: rgba(255, 255, 255, 0.72); }

/* ---------- Trust / safety strip ---------- */
.trust-strip {
  background: var(--surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
}
.trust-strip h3 { font-size: 0.95rem; font-weight: 800; color: var(--ink-heading); margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.trust-strip p, .trust-strip li { font-size: 0.85rem; color: var(--ink-body); }
.trust-strip ul { margin: 8px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.trust-strip li { display: flex; align-items: center; gap: 7px; font-weight: 600; }
.trust-strip li svg { color: var(--brand-primary); flex-shrink: 0; }

/* ---------- Profile page ---------- */
.profile-cover {
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  color: #fff;
  box-shadow: var(--shadow-md);
}
.profile-cover-top { height: 150px; position: relative; overflow: hidden; }
.profile-cover-top .cover-glyph {
  position: absolute; right: -16px; bottom: -26px;
  color: rgba(255, 255, 255, 0.2); transform: rotate(-12deg);
}
.profile-cover-body {
  background: var(--surface-card);
  color: var(--ink-body);
  padding: 0 28px 26px;
}
.profile-id {
  display: flex; gap: 18px; align-items: center; margin-bottom: 16px; flex-wrap: wrap;
  position: relative; z-index: 1;
}
.profile-avatar {
  width: 96px; height: 96px; border-radius: 28px;
  background: #0F4C3A; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 2rem;
  border: 4px solid var(--surface-card);
  box-shadow: var(--shadow-lg);
  flex-shrink: 0;
  margin-top: -36px;
  position: relative;
  z-index: 2;
}
.profile-name { font-size: 1.5rem; font-weight: 800; color: var(--ink-heading); margin: 0; letter-spacing: -0.01em; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.profile-name .verified-tick { color: var(--brand-primary); }
.profile-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }

.info-card {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.info-card-head {
  display: flex; align-items: center; gap: 10px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-subtle);
}
.info-card-head h2 { font-size: 1rem; font-weight: 800; color: var(--ink-heading); margin: 0; }
.info-card-head .head-ico {
  width: 36px; height: 36px; border-radius: 11px;
  background: var(--brand-primary-light); color: var(--brand-primary);
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.info-card-body { padding: 22px 24px; }

.stat-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  font-size: 0.83rem; color: var(--ink-body);
}
.stat-chip strong { color: var(--ink-heading); }
.stat-chip svg { color: var(--brand-primary); }

.contact-panel {
  background: linear-gradient(150deg, #0A3327, #0F4C3A 60%, #14634A);
  border-radius: var(--radius-lg);
  color: #fff;
  box-shadow: var(--shadow-md);
  position: relative; overflow: hidden;
}
.contact-panel::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 18px 18px; pointer-events: none;
}
.contact-panel .inner { position: relative; z-index: 1; }
.contact-panel h2 { color: #fff; font-size: 1.05rem; font-weight: 800; }
.contact-panel p { color: rgba(255, 255, 255, 0.7); font-size: 0.83rem; }

.btn-call-solid {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: #fff; color: #0F4C3A !important;
  font-weight: 800; border-radius: var(--radius-md);
  padding: 11px 16px; text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  width: 100%;
}
.btn-call-solid:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(0,0,0,0.25); color: #0F4C3A !important; }

.safety-card {
  background: var(--color-danger-light);
  border: 1px solid #FECACA;
  border-radius: var(--radius-lg);
  padding: 18px 20px;
}
[data-theme="dark"] .safety-card { background: rgba(220, 38, 38, 0.12); border-color: rgba(220, 38, 38, 0.4); }
.safety-card h3 { font-size: 0.88rem; font-weight: 800; color: var(--color-danger); margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.safety-card p, .safety-card li { font-size: 0.82rem; color: var(--ink-body); }
.safety-card ul { margin: 6px 0 0; padding-left: 0; list-style: none; }
.safety-card li { margin-bottom: 4px; }

/* Review bars */
.rating-bar-row { display: flex; align-items: center; gap: 10px; font-size: 0.82rem; margin-bottom: 8px; }
.rating-bar-track { flex: 1; height: 8px; border-radius: 9999px; background: var(--surface-subtle); overflow: hidden; }
.rating-bar-fill { height: 100%; border-radius: 9999px; background: linear-gradient(90deg, var(--brand-accent), #F59E0B); }
.score-ring {
  width: 92px; height: 92px; border-radius: 50%;
  background: conic-gradient(var(--brand-primary) var(--score, 80%), var(--surface-subtle) 0);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.score-ring span {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--surface-card);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; font-weight: 800; color: var(--ink-heading);
}

.review-item { padding: 18px 0; border-bottom: 1px solid var(--border-subtle); }
.review-item:last-child { border-bottom: 0; padding-bottom: 0; }
.review-item:first-child { padding-top: 0; }

/* WhatsApp template buttons */
.wa-tpl-btn {
  border: 1px solid var(--border-medium);
  background: var(--surface-card);
  color: var(--ink-body);
  border-radius: var(--radius-md);
  padding: 12px;
  font-size: 0.83rem; font-weight: 700;
  width: 100%; text-align: left;
  display: flex; align-items: center; gap: 8px;
  transition: all 0.15s ease;
}
.wa-tpl-btn:hover { border-color: var(--brand-primary); }
.wa-tpl-btn.active {
  background: var(--brand-whatsapp-light);
  border-color: var(--brand-whatsapp);
  color: var(--brand-primary);
}
[data-theme="dark"] .wa-tpl-btn.active { background: rgba(37, 211, 102, 0.12); }

/* ---------- Coverage / guides cards ---------- */
.zone-card, .guide-card {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  height: 100%;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.zone-card:hover, .guide-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.zone-card-top { height: 92px; position: relative; overflow: hidden; }
.zone-card-top .zone-glyph { position: absolute; right: -10px; bottom: -18px; color: rgba(255,255,255,0.22); transform: rotate(-10deg); }
.zone-card-body { padding: 20px 22px 24px; }
.zone-pill {
  display: inline-block; font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em;
  background: var(--brand-accent-light); color: var(--brand-accent-hover);
  border: 1px solid var(--brand-accent-border);
  padding: 4px 12px; border-radius: 9999px; margin-bottom: 10px;
}
[data-theme="dark"] .zone-pill { background: rgba(217, 119, 6, 0.15); }
.estate-tag {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.76rem; font-weight: 700;
  background: var(--surface-subtle); border: 1px solid var(--border-subtle);
  color: var(--ink-body); padding: 5px 12px; border-radius: 9999px;
  text-decoration: none;
}
a.estate-tag:hover { border-color: var(--brand-primary); color: var(--brand-primary); }

.guide-card { padding: 26px 24px; display: flex; flex-direction: column; }
.guide-card .guide-ico {
  width: 52px; height: 52px; border-radius: 16px;
  background: var(--brand-primary-light); color: var(--brand-primary);
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.guide-card h3 { font-size: 1.05rem; font-weight: 800; color: var(--ink-heading); margin-bottom: 8px; }
.guide-card p { font-size: 0.86rem; color: var(--ink-muted); line-height: 1.6; }
.guide-card ul { font-size: 0.85rem; color: var(--ink-body); padding-left: 0; list-style: none; margin: 12px 0 18px; }
.guide-card ul li { margin-bottom: 8px; display: flex; gap: 8px; }
.guide-card ul li svg { color: var(--color-success); flex-shrink: 0; margin-top: 3px; }
.guide-card .mt-auto { margin-top: auto; }

/* ---------- Form pages ---------- */
.form-shell { max-width: 780px; margin: 0 auto; }
.form-card {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.form-card-head {
  padding: 26px 30px;
  background: linear-gradient(120deg, var(--brand-primary-light), #FEF3C7);
  border-bottom: 1px solid var(--border-subtle);
}
[data-theme="dark"] .form-card-head { background: linear-gradient(120deg, #064E3B, #3a2a08); }
.form-card-head h2 { font-size: 1.15rem; font-weight: 800; color: var(--ink-heading); margin: 0 0 4px; display: flex; align-items: center; gap: 10px; }
.form-card-head p { font-size: 0.86rem; color: var(--ink-muted); margin: 0; }
.form-card-body { padding: 28px 30px; }
.sched-pill input { display: none; }
.sched-pill span {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--border-medium); border-radius: 9999px;
  padding: 8px 16px; font-size: 0.82rem; font-weight: 700; color: var(--ink-body);
  cursor: pointer; transition: all 0.15s ease; background: var(--surface-card);
}
.sched-pill input:checked + span {
  background: var(--brand-primary); border-color: var(--brand-primary); color: #fff;
}

/* ---------- Success / empty states ---------- */
.success-hero { text-align: center; padding: 20px 0 8px; }
.success-ico {
  width: 84px; height: 84px; border-radius: 28px;
  background: var(--color-success-light); color: var(--color-success);
  display: inline-flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  animation: pop-in 0.45s cubic-bezier(0.22, 0.61, 0.36, 1) backwards;
}
@keyframes pop-in { from { opacity: 0; transform: scale(0.6); } to { opacity: 1; transform: scale(1); } }

/* ---------- Prose pages ---------- */
.prose-card {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 34px 36px;
}
.prose-card h2 { font-size: 1.1rem; font-weight: 800; color: var(--ink-heading); margin: 26px 0 10px; }
.prose-card h2:first-child { margin-top: 0; }
.prose-card p, .prose-card li { font-size: 0.92rem; color: var(--ink-body); line-height: 1.7; }
.prose-card ul { padding-left: 20px; }

/* ---------- Error pages ---------- */
.error-wrap { max-width: 520px; margin: 0 auto; text-align: center; padding: 40px 0; }
.error-code {
  font-size: 5.5rem; font-weight: 800; line-height: 1; letter-spacing: -0.04em;
  background: linear-gradient(120deg, var(--brand-primary), var(--brand-accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.error-ico {
  width: 76px; height: 76px; border-radius: 24px;
  background: var(--brand-primary-light); color: var(--brand-primary);
  display: inline-flex; align-items: center; justify-content: center; margin: 0 auto 18px;
}

/* ---------- Admin (template untouched; reskinned via these rules) ---------- */
.admin-metric-card {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  display: flex; align-items: center; gap: 14px;
  height: 100%;
}
.admin-metric-icon {
  width: 48px; height: 48px; border-radius: 14px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand-primary-light); color: var(--brand-primary);
}
.admin-metric-icon.accent { background: var(--brand-accent-light); color: var(--brand-accent-hover); }
.admin-metric-icon.success { background: var(--color-success-light); color: var(--color-success); }
.admin-metric-icon.info { background: #DBEAFE; color: #1D4ED8; }
[data-theme="dark"] .admin-metric-icon.info { background: rgba(59, 130, 246, 0.15); }
.admin-metric-number { font-size: 1.5rem; font-weight: 800; color: var(--ink-heading); line-height: 1.1; }
.admin-metric-label { font-size: 0.8rem; color: var(--ink-muted); }
.custom-nav-tabs { gap: 8px; }
.custom-nav-tabs .nav-link {
  border: 1px solid var(--border-subtle);
  background: var(--surface-card);
  color: var(--ink-body);
  border-radius: var(--radius-pill);
  padding: 9px 18px; font-size: 0.85rem; font-weight: 700;
  transition: all 0.15s ease;
}
.custom-nav-tabs .nav-link:hover { border-color: var(--brand-primary); color: var(--brand-primary); }
.custom-nav-tabs .nav-link.active {
  background: var(--brand-primary); border-color: var(--brand-primary); color: #fff;
}
.admin-shell { display: flex; min-height: 70vh; gap: 0; }
.admin-side {
  width: 250px; flex-shrink: 0;
  background: linear-gradient(180deg, #0A3327, #0F4C3A);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 22px 16px;
  position: sticky; top: 86px; align-self: flex-start;
}
.admin-side h2 { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.55); margin: 18px 8px 8px; }
.admin-side h2:first-child { margin-top: 0; }
.admin-link {
  display: flex; align-items: center; gap: 10px;
  color: rgba(255, 255, 255, 0.82); text-decoration: none;
  font-size: 0.87rem; font-weight: 600;
  padding: 10px 12px; border-radius: var(--radius-md);
  transition: background 0.15s ease;
}
.admin-link:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.admin-link.active { background: var(--brand-accent); color: #1a1207; font-weight: 800; }
.admin-main { flex: 1; min-width: 0; padding: 6px 6px 6px 26px; }
.admin-stat {
  background: var(--surface-card); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg); padding: 20px;
  box-shadow: var(--shadow-sm);
  display: flex; align-items: center; gap: 14px;
}
.admin-stat .stat-ico {
  width: 48px; height: 48px; border-radius: 14px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand-primary-light); color: var(--brand-primary);
}
.admin-stat strong { display: block; font-size: 1.5rem; font-weight: 800; color: var(--ink-heading); line-height: 1.1; }
.admin-stat span { font-size: 0.8rem; color: var(--ink-muted); }
.admin-table-card {
  background: var(--surface-card); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden;
}
.admin-table-card .table { margin: 0; }
.admin-table-card .table thead th {
  background: var(--surface-subtle); border-bottom: 1px solid var(--border-subtle);
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-muted);
  padding: 12px 16px; white-space: nowrap;
}
.admin-table-card .table tbody td { padding: 12px 16px; font-size: 0.86rem; vertical-align: middle; }
@media (max-width: 991.98px) {
  .admin-shell { flex-direction: column; }
  .admin-side { width: 100%; position: static; }
  .admin-main { padding: 20px 0 0; }
}

/* ---------- Footer refresh hooks ---------- */
.app-footer { background: #0A1F18; }
.footer-bottom-bar { border-top: 1px solid rgba(255,255,255,0.12); }

/* ---------- Dark mode ---------- */
[data-theme="dark"] .page-hero,
[data-theme="dark"] .fundi-hero { border-radius: 0 0 28px 28px; }
[data-theme="dark"] .cat-card:hover { border-color: #10B981; }
[data-theme="dark"] .form-card-head h2 { color: #F1F5F9; }
[data-theme="dark"] .profile-cover-body { background: #1E293B; }
[data-theme="dark"] .profile-avatar { border-color: #1E293B; }
[data-theme="dark"] .admin-side { background: linear-gradient(180deg, #052e22, #064E3B); }

/* ---------- Social share buttons (refer page) ---------- */
.btn-share-x {
  background: #000; color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-weight: 700; border-radius: var(--radius-md);
}
.btn-share-x:hover { background: #1c1c1c; color: #fff !important; border-color: rgba(255,255,255,0.45); }
.btn-share-fb {
  background: rgba(24, 119, 242, 0.12); color: #1877F2 !important;
  border: 1px solid rgba(24, 119, 242, 0.45);
  font-weight: 700; border-radius: var(--radius-md);
}
.btn-share-fb:hover { background: #1877F2; border-color: #1877F2; color: #fff !important; }
[data-theme="dark"] .btn-share-fb { color: #6ea8ff !important; }
[data-theme="dark"] .btn-share-fb:hover { color: #fff !important; }
.btn-share-ig {
  background: linear-gradient(45deg, #FEDA75 0%, #FA7E1E 30%, #D62976 55%, #962FBF 80%, #4F5BD5 100%);
  color: #fff !important; border: 0;
  font-weight: 700; border-radius: var(--radius-md);
}
.btn-share-ig:hover { color: #fff !important; filter: brightness(1.1); }
.btn-share-tiktok {
  background: #000; color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-weight: 700; border-radius: var(--radius-md);
  box-shadow: 2px 2px 0 rgba(37, 244, 238, 0.55), -2px -2px 0 rgba(254, 44, 85, 0.55);
}
.btn-share-tiktok:hover { background: #161616; color: #fff !important; }

/* ---------- Fancy QR codes ---------- */
.qr-frame {
  position: relative;
  display: inline-block;
  background: #fff;
  padding: 12px;
  border-radius: 22px;
  cursor: zoom-in;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-md);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  line-height: 0;
}
.qr-frame::before {
  content: "";
  position: absolute; inset: -3px;
  border-radius: 25px;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
  z-index: -1;
  opacity: 0.55;
}
.qr-frame:hover { transform: scale(1.03); box-shadow: var(--shadow-lg); }
.qr-frame img { border-radius: 12px; }
.qr-hint {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 10px;
  font-size: 0.76rem; font-weight: 700;
  color: var(--ink-muted);
  line-height: 1.4;
}
.qr-hint svg { color: var(--brand-primary); }
#qrLightbox .modal-content { border-radius: 24px; border: 0; overflow: hidden; }
#qrLightboxQr { display: inline-block; }
#qrLightboxQr img { border-radius: 14px; }
.modal-backdrop.qr-blur-backdrop {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background-color: rgba(3, 18, 12, 0.72);
}
.modal-backdrop.qr-blur-backdrop.show { opacity: 1; }
/* Enlarged QR stays perfectly still: no hover motion, no entrance animation */
#qrLightbox .qr-frame,
#qrLightbox .qr-frame:hover {
  transform: none;
  transition: none;
  box-shadow: var(--shadow-md);
  cursor: default;
}

/* ---------- Responsive ---------- */
@media (max-width: 575.98px) {
  .page-hero { border-radius: 0 0 20px 20px; }
  .profile-cover-body { padding: 0 18px 20px; }
  .profile-avatar { width: 76px; height: 76px; font-size: 1.6rem; border-radius: 22px; }
  .profile-name { font-size: 1.2rem; }
  .prose-card { padding: 24px 20px; }
  .form-card-body { padding: 22px 20px; }
  .form-card-head { padding: 20px; }
}

/* ---------- Password strength meter + confirm match (auth pages) ---------- */
.pw-meter-track {
  height: 6px;
  border-radius: 999px;
  background: var(--bs-tertiary-bg, #e9ecef);
  overflow: hidden;
}
.pw-meter-fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: transparent;
  transition: width .25s ease, background-color .25s ease;
}
.pw-meter-fill.is-weak { background: #dc3545; }
.pw-meter-fill.is-fair { background: #fd7e14; }
.pw-meter-fill.is-good { background: #ffc107; }
.pw-meter-fill.is-strong { background: #198754; }
.pw-meter-label {
  font-size: .78rem;
  color: var(--bs-secondary-color, #6c757d);
  margin-top: .3rem;
}
.pw-meter-label.is-weak { color: #dc3545; }
.pw-meter-label.is-fair { color: #fd7e14; }
.pw-meter-label.is-good { color: #b98a00; }
.pw-meter-label.is-strong { color: #198754; }
.pw-match {
  font-size: .8rem;
  margin-top: .3rem;
  min-height: 1.1em;
}
.pw-match.ok { color: #198754; }
.pw-match.bad { color: #dc3545; }

/* ================= Landing hero ================= */
.landing-hero .hero-accent {
  color: #fcd34d;
}
.hero-visual {
  position: relative;
  height: 500px;
}
.hv-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.24);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-radius: 18px;
  padding: 16px 18px;
  color: #fff;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
  animation: hv-float 7s ease-in-out infinite;
  text-decoration: none;
  display: block;
}
a.hv-card:hover {
  color: #fff;
  text-decoration: none;
  border-color: rgba(255, 255, 255, 0.4);
}
.hv-fundi {
  top: 20px;
  left: 4%;
  display: flex;
  gap: 14px;
  align-items: center;
  min-width: 310px;
  z-index: 3;
}
.hv-fundi .fundi-avatar {
  width: 54px;
  height: 54px;
  font-size: 1.15rem;
  flex-shrink: 0;
}
.hv-fundi-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hv-name {
  font-weight: 700;
  font-size: 1.02rem;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #fff;
}
.hv-sub {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.75);
}
.hv-stars {
  color: #fcd34d;
  letter-spacing: 2px;
  font-size: 0.88rem;
}
.hv-stars b {
  color: #fff;
  letter-spacing: 0;
  margin-left: 4px;
  font-size: 0.85rem;
}
.hv-chat {
  top: 200px;
  right: 0;
  width: 290px;
  animation-delay: -2.5s;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 2;
}
.hv-chat-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2px;
}
.hv-bubble {
  border-radius: 14px;
  padding: 9px 13px;
  font-size: 0.86rem;
  line-height: 1.45;
  max-width: 94%;
}
.hv-bubble.in {
  background: rgba(255, 255, 255, 0.94);
  color: #1f2937;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.hv-bubble.out {
  background: #25d366;
  color: #06351d;
  font-weight: 500;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.hv-review {
  bottom: 20px;
  left: 0;
  width: 280px;
  animation-delay: -5s;
  z-index: 1;
}
.hv-review p {
  font-size: 0.94rem;
  margin: 8px 0 6px;
  font-style: italic;
  color: #fff;
  line-height: 1.5;
}
@keyframes hv-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@media (prefers-reduced-motion: reduce) {
  .hv-card { animation: none; }
}

/* ================= Testimonials ================= */
.quote-card {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 26px;
  margin: 0;
  display: flex;
  flex-direction: column;
}
.quote-card blockquote {
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--ink-heading);
  margin: 0 0 18px;
  flex-grow: 1;
}
.quote-card figcaption {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 0.92rem;
  color: var(--ink-body);
}
.quote-card .fundi-avatar {
  width: 46px;
  height: 46px;
  font-size: 0.95rem;
  flex-shrink: 0;
}


/* ------------------------------------------------------------------
   FAQ accordion (Help Center) — theme-aware Bootstrap accordion skin
------------------------------------------------------------------ */
.faq-accordion .accordion-item {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px !important;
  overflow: hidden;
  margin-bottom: 10px;
}
.faq-accordion .accordion-button {
  background: var(--surface-card);
  color: var(--ink-heading);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 14px 18px;
  box-shadow: none;
}
.faq-accordion .accordion-button:not(.collapsed) {
  background: var(--surface-subtle);
  color: var(--ink-heading);
  box-shadow: none;
}
.faq-accordion .accordion-button:focus {
  border-color: var(--brand-primary-border);
  box-shadow: 0 0 0 0.2rem var(--brand-primary-light);
}
.faq-accordion .accordion-body {
  color: var(--ink-body);
  font-size: 0.95rem;
  line-height: 1.65;
  padding: 6px 18px 18px;
}
.faq-accordion .accordion-button::after {
  filter: var(--faq-chevron-filter, none);
}
[data-theme="dark"] .faq-accordion {
  --faq-chevron-filter: invert(1) brightness(1.6);
}

/* ------------------------------------------------------------------
   Saved fundis page cards
------------------------------------------------------------------ */
.saved-card {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 18px;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.saved-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0,0,0,.10);
}
.saved-card-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.saved-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.05rem;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
}
.saved-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink-heading);
}
.saved-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.saved-card .btn-fav-toggle {
  margin-left: auto;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: var(--surface-subtle);
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .15s ease;
}
.saved-card .btn-fav-toggle.is-active {
  background: rgba(220, 38, 38, .12);
  border-color: rgba(220, 38, 38, .4);
  color: #dc2626;
}
.saved-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
  flex-wrap: wrap;
}

/* ------------------------------------------------------------------ */
/* Email verification - stylish OTP code entry                         */
/* ------------------------------------------------------------------ */
.verify-shell { position: relative; overflow: hidden; }
.verify-shell::before {
  content: "";
  position: absolute;
  top: -70px; left: 50%;
  transform: translateX(-50%);
  width: 280px; height: 140px;
  background: radial-gradient(ellipse at center, var(--brand-primary-light) 0%, transparent 70%);
  opacity: .8;
  pointer-events: none;
}
.verify-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 84px; height: 84px;
  border-radius: 50%;
  background: var(--brand-primary-light);
  color: var(--brand-primary);
  animation: verify-float 3s ease-in-out infinite;
}
@keyframes verify-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.verify-status { min-height: 1.6rem; font-weight: 600; font-size: .92rem; margin-bottom: .35rem; }
.verify-status.err { color: #DC2626; animation: status-in .25s ease; }
.verify-status.ok { color: var(--color-success); animation: status-in .25s ease; }
@keyframes status-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

.otp-row { display: flex; gap: 10px; justify-content: center; margin: 1rem 0 1.25rem; }
.otp-box {
  width: 52px; height: 64px;
  font-size: 1.9rem; font-weight: 800;
  text-align: center;
  color: var(--ink-heading);
  background: var(--surface-card);
  border: 2px solid var(--border-subtle);
  border-radius: 14px;
  caret-color: transparent;
  transition: border-color .18s ease, box-shadow .18s ease, transform .15s ease, background .25s ease;
}
.otp-box::selection { background: transparent; }
.otp-box:hover { border-color: var(--brand-primary-border); }
.otp-box:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 4px rgba(15, 76, 58, .14);
  transform: translateY(-2px);
}
.otp-box.filled { border-color: var(--brand-primary); }
.otp-box:disabled { opacity: .6; }
.otp-row.shake .otp-box { border-color: #DC2626; animation: otp-shake .45s ease; }
.otp-box.is-error { border-color: #DC2626; background: rgba(220, 38, 38, .06); }
.otp-row.success .otp-box {
  border-color: var(--color-success);
  background: rgba(22, 163, 74, .08);
  animation: otp-pop .4s ease backwards;
}
.otp-row.success .otp-box:nth-child(1) { animation-delay: 0s; }
.otp-row.success .otp-box:nth-child(2) { animation-delay: .06s; }
.otp-row.success .otp-box:nth-child(3) { animation-delay: .12s; }
.otp-row.success .otp-box:nth-child(4) { animation-delay: .18s; }
.otp-row.success .otp-box:nth-child(5) { animation-delay: .24s; }
.otp-row.success .otp-box:nth-child(6) { animation-delay: .3s; }
@keyframes otp-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-9px); }
  40% { transform: translateX(9px); }
  60% { transform: translateX(-6px); }
  80% { transform: translateX(6px); }
}
@keyframes otp-pop {
  0% { transform: scale(.75); }
  60% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.success-check { margin-top: 1.25rem; }
.success-check svg { width: 76px; height: 76px; }
.success-check circle {
  fill: none; stroke: var(--color-success); stroke-width: 3;
  stroke-dasharray: 151; stroke-dashoffset: 151;
  animation: check-circle .6s ease forwards;
}
.success-check path {
  fill: none; stroke: var(--color-success); stroke-width: 4;
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 40; stroke-dashoffset: 40;
  animation: check-tick .35s .5s ease forwards;
}
@keyframes check-circle { to { stroke-dashoffset: 0; } }
@keyframes check-tick { to { stroke-dashoffset: 0; } }

#verifyBtn { transition: transform .15s ease; }
#verifyBtn:not(:disabled):active { transform: scale(.98); }
#resendBtn:disabled { opacity: .75; }

@media (max-width: 400px) {
  .otp-row { gap: 7px; }
  .otp-box { width: 44px; height: 56px; font-size: 1.6rem; border-radius: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .verify-icon, .otp-row.shake .otp-box, .otp-row.success .otp-box,
  .success-check circle, .success-check path { animation: none !important; }
  .otp-box { transition: none; }
}

/* ============ Join verification wizard ============ */
.wizard-steps { margin: 0 0 1.5rem; }
.wizard-track { height: 6px; background: var(--border-subtle); border-radius: 99px; overflow: hidden; margin-bottom: .9rem; }
.wizard-fill { height: 100%; background: var(--brand-primary); border-radius: 99px; transition: width .6s ease; }
.wizard-list { display: flex; justify-content: space-between; list-style: none; padding: 0; margin: 0; }
.wizard-step { display: flex; flex-direction: column; align-items: center; gap: .35rem; flex: 1; color: var(--ink-muted); font-size: .72rem; text-align: center; }
.wizard-dot { width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--surface-card); border: 2px solid var(--border-subtle); font-weight: 700; font-size: .78rem; transition: all .3s ease; }
.wizard-step.active { color: var(--ink-heading); font-weight: 600; }
.wizard-step.active .wizard-dot { border-color: var(--brand-primary); color: var(--brand-primary); box-shadow: 0 0 0 4px rgba(15, 76, 58, .12); }
.wizard-step.done .wizard-dot { background: var(--brand-primary); border-color: var(--brand-primary); color: #fff; }

/* Photo upload */
.photo-stage { width: 168px; height: 168px; margin: 0 auto; }
.photo-preview { width: 168px; height: 168px; border-radius: 50%; object-fit: cover; border: 4px solid var(--brand-primary-light); animation: photo-in .35s ease; }
.photo-placeholder { width: 168px; height: 168px; border-radius: 50%; background: var(--surface-subtle); border: 2px dashed var(--border-subtle); display: flex; flex-direction: column; gap: .4rem; align-items: center; justify-content: center; color: var(--ink-muted); font-size: .8rem; }
@keyframes photo-in { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: scale(1); } }

/* Document preview */
.doc-preview .doc-thumb { max-width: 100%; max-height: 220px; border-radius: 12px; border: 1px solid var(--border-subtle); animation: photo-in .3s ease; }
.doc-file { display: flex; align-items: center; gap: .7rem; background: var(--surface-subtle); border: 1px solid var(--border-subtle); border-radius: 12px; padding: .7rem .9rem; font-size: .88rem; animation: photo-in .3s ease; }
.doc-file-ico { background: var(--brand-primary); color: #fff; font-size: .68rem; font-weight: 800; border-radius: 6px; padding: .2rem .45rem; letter-spacing: .04em; flex: none; }

/* Verification timeline */
.vsteps { list-style: none; padding: 0; margin: 1.4rem 0; }
.vsteps li { display: flex; gap: .9rem; padding: .8rem .25rem; position: relative; text-align: left; }
.vsteps li:not(:last-child)::before { content: ""; position: absolute; left: 24px; top: 56px; bottom: -8px; width: 2px; background: var(--border-subtle); }
.vsteps li.done:not(:last-child)::before { background: var(--color-success); }
.vstep-ico { width: 46px; height: 46px; border-radius: 50%; flex: none; display: inline-flex; align-items: center; justify-content: center; background: var(--surface-subtle); color: var(--ink-muted); border: 2px solid var(--border-subtle); z-index: 1; }
.vsteps li.done .vstep-ico { background: rgba(22, 163, 74, .12); border-color: var(--color-success); color: var(--color-success); }
.vsteps li.active .vstep-ico { background: var(--brand-primary-light); border-color: var(--brand-primary); color: var(--brand-primary); animation: pulse-ring 1.8s ease-out infinite; }
.vsteps li strong { display: block; color: var(--ink-heading); font-size: .95rem; }
.vsteps li div span { font-size: .83rem; color: var(--ink-muted); }
@keyframes pulse-ring { 0% { box-shadow: 0 0 0 0 rgba(15, 76, 58, .28); } 70% { box-shadow: 0 0 0 12px rgba(15, 76, 58, 0); } 100% { box-shadow: 0 0 0 0 rgba(15, 76, 58, 0); } }

/* Privacy note */
.privacy-note { display: flex; gap: .7rem; background: var(--surface-subtle); border: 1px solid var(--border-subtle); border-radius: 14px; padding: .9rem 1rem; font-size: .85rem; color: var(--ink-muted); margin: 1.2rem 0; }
.privacy-note-ico { color: var(--brand-primary); flex: none; margin-top: .1rem; }

/* Success photo on waiting page */
.success-photo { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; border: 3px solid var(--brand-primary-light); animation: photo-in .4s ease; }

/* Technician dashboard: verified celebration */
.verify-celebrate { display: flex; gap: 1rem; align-items: center; background: linear-gradient(135deg, rgba(22, 163, 74, .14), rgba(22, 163, 74, .05)); border: 1px solid rgba(22, 163, 74, .35); border-radius: 16px; padding: 1.1rem 1.25rem; margin-bottom: 1.5rem; }
.verify-celebrate .success-check { margin-top: 0; flex: none; }
.verify-celebrate .success-check svg { width: 54px; height: 54px; }
.verify-celebrate strong { color: var(--ink-heading); }
.verify-celebrate p { font-size: .88rem; color: var(--ink-muted); margin: 0; }

/* Fundi photo avatars */
.fundi-avatar-img, .profile-avatar-img { object-fit: cover; }

/* Camera capture (v1.7) */
.cam-video {
  display: block;
  width: 100%;
  max-height: 340px;
  border-radius: 14px;
  background: #101615;
  object-fit: contain;
}
.cam-mirror { transform: scaleX(-1); }

.profile-meta-under {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin: -4px 0 18px;
  padding-left: calc(96px + 18px);
}
@media (max-width: 575.98px) {
  .profile-meta-under { padding-left: calc(76px + 18px); }
}
