/* ==========================================================================
   হোসনাবাদ ফান্ড — Global Stylesheet
   Plain HTML/CSS/JS build (no framework/build step required)
   ========================================================================== */

:root {
  /* Brand palette (matches the original design system) */
  --brand-50: #eefbf3;
  --brand-100: #d6f5e1;
  --brand-200: #aeebc7;
  --brand-300: #79d9a8;
  --brand-400: #43bf87;
  --brand-500: #22a06d;
  --brand-600: #16805a;
  --brand-700: #12664a;
  --brand-800: #11513c;
  --brand-900: #0f4333;

  --accent-500: #f5a524;
  --accent-600: #d98a0f;

  --ink-50: #f7f8fa;
  --ink-900: #0b1220;

  --bg: var(--ink-50);
  --fg: var(--ink-900);
  --card-bg: #ffffff;
  --border-color: rgba(11, 18, 32, 0.08);
  --muted: rgba(11, 18, 32, 0.6);
  --muted-2: rgba(11, 18, 32, 0.45);
  --surface-soft: rgba(11, 18, 32, 0.04);

  --shadow-card: 0 2px 8px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-glass: 0 8px 32px 0 rgba(15, 67, 51, 0.15);
  --radius: 1.25rem;
  --header-height: 72px;
}

[data-theme="dark"] {
  --bg: var(--ink-900);
  --fg: var(--ink-50);
  --card-bg: #10192c;
  --border-color: rgba(255, 255, 255, 0.1);
  --muted: rgba(255, 255, 255, 0.6);
  --muted-2: rgba(255, 255, 255, 0.45);
  --surface-soft: rgba(255, 255, 255, 0.05);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Hind Siliguri", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  transition: background 0.2s ease, color 0.2s ease;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 {
  font-family: "Baloo Da 2", "Hind Siliguri", "Inter", sans-serif;
  font-weight: 700; margin: 0; line-height: 1.22; letter-spacing: -0.01em;
}
.brand, .page-title, .stat-value, .amount-btn, .btn-donate { font-family: "Baloo Da 2", "Hind Siliguri", "Inter", sans-serif; }
p { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }
button { font: inherit; cursor: pointer; }
input, textarea, select { font: inherit; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.container-narrow { max-width: 768px; margin: 0 auto; padding: 0 1.5rem; }
.container-md { max-width: 960px; margin: 0 auto; padding: 0 1.5rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--brand-500); color: #fff; }
.btn-primary:hover { background: var(--brand-600); box-shadow: 0 8px 20px rgba(34,160,109,0.25); }
.btn-secondary { background: var(--card-bg); color: var(--fg); border: 1px solid var(--border-color); }
.btn-secondary:hover { background: var(--surface-soft); }
.btn-donate { background: var(--accent-500); color: #fff; font-weight: 700; box-shadow: 0 8px 20px rgba(245,165,36,0.3); }
.btn-donate:hover { background: var(--accent-600); }
.btn-block { width: 100%; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.8rem; }
.btn-danger-outline { background: transparent; color: #dc2626; border: 1px solid #fecaca; padding: 0.5rem 1rem; border-radius: 999px; font-size: 0.8rem; font-weight: 600; }
.btn-danger-outline:hover { background: #fef2f2; }

/* ---------- Card / Glass ---------- */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}
.glass {
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.4);
  box-shadow: var(--shadow-glass);
}
[data-theme="dark"] .glass { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.1); }

/* ---------- Forms ---------- */
.field { margin-bottom: 1rem; }
.field label { display: block; font-size: 0.875rem; font-weight: 500; margin-bottom: 0.375rem; }
.input, select.input, textarea.input {
  width: 100%;
  border: 1px solid var(--border-color);
  background: var(--card-bg);
  border-radius: 0.5rem;
  padding: 0.65rem 1rem;
  font-size: 0.9rem;
  color: var(--fg);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input:focus { border-color: var(--brand-500); box-shadow: 0 0 0 3px rgba(34,160,109,0.15); }
.input-icon-wrap { position: relative; }
.input-icon-wrap .icon { position: absolute; left: 0.85rem; top: 50%; transform: translateY(-50%); opacity: 0.4; pointer-events: none; }
.input-icon-wrap .input { padding-left: 2.5rem; }
.hint { font-size: 0.75rem; color: var(--muted-2); margin-top: 0.35rem; }
.error-text { font-size: 0.75rem; color: #ef4444; margin-top: 0.35rem; }
.checkbox-row { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; }

/* ---------- Navbar ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
}
.navbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 0.5rem; font-size: 1.25rem; font-weight: 800; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 999px; background: var(--brand-500);
  color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.brand-accent { color: var(--brand-500); }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a { font-size: 0.9rem; font-weight: 500; color: var(--muted); }
.nav-links a:hover { color: var(--brand-600); }
.nav-actions { display: flex; align-items: center; gap: 0.75rem; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 999px; display: flex; align-items: center; justify-content: center;
  background: transparent; border: none; color: var(--muted);
}
.icon-btn:hover { background: var(--surface-soft); }

/* ---------- Language toggle (বাংলা ⇄ English) ---------- */
.lang-toggle {
  display: inline-flex; align-items: center; gap: 0.35rem;
  height: 38px; padding: 0 0.9rem; border-radius: 999px;
  background: var(--surface-soft); border: 1px solid var(--border-color);
  color: var(--fg); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.02em;
  font-family: "Inter", sans-serif; white-space: nowrap; flex-shrink: 0;
}
.lang-toggle:hover { background: var(--brand-50); color: var(--brand-700); border-color: var(--brand-200); }
[data-theme="dark"] .lang-toggle:hover { background: rgba(34,160,109,0.14); border-color: transparent; }
.lang-toggle svg { flex-shrink: 0; opacity: 0.75; }
.lang-toggle-mobile { display: flex; align-items: center; justify-content: center; gap: 0.4rem; }
.lang-toggle-auth { position: fixed; top: 1.25rem; right: 1.25rem; z-index: 60; background: var(--card-bg); box-shadow: var(--shadow-card); }

.menu-toggle { display: none; background: none; border: none; color: var(--fg); padding: 0.5rem; }
.mobile-menu { display: none; border-top: 1px solid var(--border-color); padding: 1rem 1.5rem 1.25rem; }
.mobile-menu.open { display: block; }
.mobile-menu a { display: block; padding: 0.6rem 0; font-weight: 500; }
.mobile-menu-actions { display: flex; gap: 0.5rem; margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px solid var(--border-color); }
.mobile-menu-actions .btn { flex: 1; }
.mobile-menu-actions { flex-wrap: wrap; }
.mobile-menu-actions .lang-toggle-mobile { flex: 1 1 100%; order: -1; margin-bottom: 0.5rem; margin-top: 0 !important; }

@media (max-width: 1023px) {
  .nav-links, .nav-actions .desktop-only { display: none; }
  .menu-toggle { display: block; }
}

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border-color); background: var(--card-bg); margin-top: 4rem; }
.footer-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; padding: 3.5rem 0; }
.footer-col h4 { font-size: 0.9rem; font-weight: 600; margin-bottom: 1rem; }
.footer-col ul li { margin-bottom: 0.65rem; }
.footer-col ul a { font-size: 0.875rem; color: var(--muted); }
.footer-col ul a:hover { color: var(--brand-600); }
.footer-about p { color: var(--muted); font-size: 0.9rem; max-width: 20rem; margin-top: 1rem; }
.social-row { display: flex; gap: 0.75rem; margin-top: 1.25rem; }
.social-row a {
  width: 36px; height: 36px; border-radius: 999px; background: var(--surface-soft);
  display: flex; align-items: center; justify-content: center; color: var(--muted);
}
.social-row a:hover { background: var(--brand-500); color: #fff; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  border-top: 1px solid var(--border-color); padding: 1.5rem 0; font-size: 0.85rem; color: var(--muted-2); flex-wrap: wrap;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr repeat(3, 1fr); } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(to bottom, var(--brand-50), var(--bg)); }
[data-theme="dark"] .hero { background: linear-gradient(to bottom, var(--ink-900), var(--ink-900)); }
.hero-grid { display: grid; gap: 3rem; padding: 4rem 0; position: relative; z-index: 1; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1fr 1fr; padding: 6rem 0; } }
.badge { display: inline-flex; align-items: center; gap: 0.5rem; background: var(--brand-100); color: var(--brand-700); font-size: 0.85rem; font-weight: 500; padding: 0.4rem 1rem; border-radius: 999px; margin-bottom: 1rem; }
[data-theme="dark"] .badge { background: rgba(34,160,109,0.12); color: var(--brand-300); }
.hero h1 { font-size: 2.5rem; letter-spacing: -0.02em; }
@media (min-width: 640px) { .hero h1 { font-size: 3rem; } }
@media (min-width: 1024px) { .hero h1 { font-size: 3.5rem; } }
.hero p.lead { margin-top: 1.5rem; max-width: 32rem; font-size: 1.1rem; color: var(--muted); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.search-pill { display: flex; align-items: center; gap: 0.5rem; max-width: 28rem; margin-top: 2rem; background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 999px; padding: 0.4rem; box-shadow: var(--shadow-card); }
.search-pill input { flex: 1; border: none; background: transparent; padding: 0.5rem 0.25rem 0.5rem 0.75rem; outline: none; font-size: 0.9rem; color: var(--fg); }
.hero-stats { display: flex; flex-wrap: wrap; gap: 2rem; margin-top: 2.5rem; }
.hero-stat { display: flex; align-items: center; gap: 0.6rem; }
.hero-stat strong { display: block; font-size: 1.1rem; }
.hero-stat span { font-size: 0.75rem; color: var(--muted-2); }
.hero-visual { position: relative; display: none; }
@media (min-width: 1024px) { .hero-visual { display: block; } }
.hero-visual img { border-radius: var(--radius); height: 480px; width: 100%; object-fit: cover; box-shadow: var(--shadow-glass); }
.hero-float-card { position: absolute; left: -1.5rem; top: 2.5rem; z-index: 2; width: 16rem; padding: 1rem; border-radius: 1rem; }
.hero-float-card p { font-size: 0.85rem; font-weight: 600; }
.hero-float-card .sub { margin-top: 0.5rem; font-size: 0.75rem; color: var(--muted-2); font-weight: 400; }
.blob { position: absolute; border-radius: 999px; filter: blur(64px); z-index: 0; }
.blob-1 { width: 24rem; height: 24rem; top: -6rem; left: -6rem; background: rgba(174,235,199,0.4); }
.blob-2 { width: 24rem; height: 24rem; top: 10rem; right: -6rem; background: rgba(245,165,36,0.2); }

/* ---------- Section headers ---------- */
.section { padding: 5rem 0; }
.section-tight { padding: 3.5rem 0; }
.section-soft { background: var(--surface-soft); }
.section-head { max-width: 40rem; text-align: center; margin: 0 auto 3rem; }
.section-head h2 { font-size: 2rem; }
@media (min-width: 640px) { .section-head h2 { font-size: 2.25rem; } }
.section-head p { margin-top: 0.75rem; color: var(--muted); }
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 2.5rem; }
.section-head-row h2 { font-size: 2rem; }
.section-head-row p { margin-top: 0.75rem; color: var(--muted); }
.link-arrow { display: none; align-items: center; gap: 0.35rem; font-weight: 600; color: var(--brand-600); }
@media (min-width: 640px) { .link-arrow { display: inline-flex; } }

/* ---------- Categories ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (min-width: 640px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .cat-grid { grid-template-columns: repeat(5, 1fr); } }
.cat-card { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; padding: 1.5rem; text-align: center; transition: transform 0.15s, box-shadow 0.15s; }
.cat-card:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(0,0,0,0.08); }
.cat-icon { width: 56px; height: 56px; border-radius: 1rem; display: flex; align-items: center; justify-content: center; }
.cat-card span.label { font-size: 0.85rem; font-weight: 600; }

/* ---------- Campaign card ---------- */
.campaign-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 640px) { .campaign-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .campaign-grid { grid-template-columns: repeat(3, 1fr); } }
.campaign-card { display: flex; flex-direction: column; overflow: hidden; transition: transform 0.2s, box-shadow 0.2s; }
.campaign-card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(0,0,0,0.1); }
.campaign-cover { position: relative; height: 190px; overflow: hidden; }
.campaign-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.campaign-card:hover .campaign-cover img { transform: scale(1.05); }
.cat-pill { position: absolute; top: 0.75rem; left: 0.75rem; background: rgba(255,255,255,0.9); color: var(--brand-700); font-size: 0.7rem; font-weight: 600; padding: 0.3rem 0.7rem; border-radius: 999px; text-transform: capitalize; }
.campaign-body { padding: 1.25rem; display: flex; flex-direction: column; gap: 0.75rem; flex: 1; }
.campaign-body h3 { font-size: 1.05rem; line-height: 1.4; }
.campaign-body .excerpt { font-size: 0.875rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.campaign-meta { display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--muted-2); margin-top: 0.25rem; }
.campaign-meta span { display: inline-flex; align-items: center; gap: 0.25rem; }

/* ---------- Progress bar ---------- */
.progress-track { height: 10px; width: 100%; border-radius: 999px; background: var(--surface-soft); overflow: hidden; }
.progress-fill { height: 100%; border-radius: 999px; background: linear-gradient(to right, var(--brand-400), var(--brand-600)); transition: width 0.6s ease; }
.progress-labels { display: flex; justify-content: space-between; align-items: baseline; margin-top: 0.5rem; }
.progress-labels .raised { font-weight: 700; }
.progress-labels .raised-suffix, .progress-labels .goal { font-size: 0.8rem; color: var(--muted-2); }

/* ---------- Stats band ---------- */
.stats-band { background: var(--brand-500); border-radius: var(--radius); padding: 2.5rem; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; color: #fff; }
@media (min-width: 640px) { .stats-band { grid-template-columns: repeat(4, 1fr); } }
.stats-band div { text-align: center; }
.stats-band strong { display: block; font-size: 2rem; font-weight: 800; }
.stats-band span { font-size: 0.85rem; opacity: 0.85; }

/* ---------- Testimonials ---------- */
.testimonial-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 640px) { .testimonial-grid { grid-template-columns: repeat(3, 1fr); } }
.testimonial-card { padding: 1.5rem; }
.testimonial-card p.quote { margin-top: 1rem; font-size: 0.9rem; color: var(--muted); }
.testimonial-person { display: flex; align-items: center; gap: 0.75rem; margin-top: 1.25rem; }
.testimonial-person img { width: 40px; height: 40px; border-radius: 999px; object-fit: cover; }
.testimonial-person strong { display: block; font-size: 0.875rem; }
.testimonial-person span { font-size: 0.75rem; color: var(--muted-2); }

/* ---------- FAQ ---------- */
.faq-item { border-radius: var(--radius); overflow: hidden; margin-bottom: 0.75rem; }
.faq-question { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 1.1rem 1.25rem; background: none; border: none; text-align: left; font-weight: 600; color: var(--fg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.25s ease, padding 0.25s ease; padding: 0 1.25rem; }
.faq-answer p { color: var(--muted); font-size: 0.9rem; padding-bottom: 0; }
.faq-item.open .faq-answer { max-height: 200px; padding-bottom: 1.1rem; }
.faq-item.open .chev { transform: rotate(180deg); }
.chev { transition: transform 0.2s; }

/* ---------- Auth pages ---------- */
.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 3rem 1.5rem; background: linear-gradient(to bottom, var(--brand-50), var(--bg)); }
[data-theme="dark"] .auth-wrap { background: linear-gradient(to bottom, var(--ink-900), var(--ink-900)); }
.auth-box { width: 100%; max-width: 26rem; }
.auth-box > .brand { justify-content: center; margin-bottom: 2rem; }
.auth-card { padding: 2rem; }
.auth-card h1 { font-size: 1.5rem; }
.auth-card .sub { margin-top: 0.25rem; font-size: 0.875rem; color: var(--muted); }
.divider { display: flex; align-items: center; gap: 0.75rem; margin: 1.25rem 0; font-size: 0.75rem; color: var(--muted-2); }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border-color); }
.auth-footer { text-align: center; margin-top: 1.5rem; font-size: 0.875rem; color: var(--muted); }
.auth-footer a { font-weight: 600; color: var(--brand-600); }

/* ---------- Dashboard / Admin layout ---------- */
.app-layout { display: flex; min-height: 100vh; }
.sidebar { width: 260px; flex-shrink: 0; border-right: 1px solid var(--border-color); background: var(--card-bg); padding: 1rem; display: none; }
@media (min-width: 1024px) { .sidebar { display: block; } }
.sidebar-link { display: flex; align-items: center; gap: 0.75rem; padding: 0.65rem 0.75rem; border-radius: 0.5rem; font-size: 0.875rem; font-weight: 500; color: var(--muted); margin-bottom: 0.25rem; }
.sidebar-link:hover { background: var(--surface-soft); }
.sidebar-link.active { background: rgba(34,160,109,0.1); color: var(--brand-700); }
[data-theme="dark"] .sidebar-link.active { color: var(--brand-300); }
.sidebar-link.admin-link { margin-top: 1.5rem; background: rgba(245,165,36,0.1); color: var(--accent-600); font-weight: 600; }
.admin-sidebar { background: var(--ink-900); color: #fff; }
.admin-sidebar .sidebar-link { color: rgba(255,255,255,0.6); }
.admin-sidebar .sidebar-link.active { background: rgba(255,255,255,0.1); color: #fff; }
.admin-sidebar .back-link { display: flex; align-items: center; gap: 0.5rem; color: rgba(255,255,255,0.6); font-size: 0.85rem; margin-bottom: 1.5rem; }
.admin-sidebar .eyebrow { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; color: rgba(255,255,255,0.4); padding: 0 0.75rem; margin-bottom: 0.75rem; }
.app-main { flex: 1; min-width: 0; }
.app-topbar { height: 64px; display: flex; align-items: center; justify-content: flex-end; gap: 1rem; padding: 0 1.5rem; border-bottom: 1px solid var(--border-color); background: var(--card-bg); }
.app-content { padding: 1.5rem; }
@media (min-width: 640px) { .app-content { padding: 2rem; } }
.avatar { width: 36px; height: 36px; border-radius: 999px; background: var(--brand-100); color: var(--brand-700); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.9rem; }
.page-title { font-size: 1.5rem; font-weight: 800; }
.page-sub { margin-top: 0.25rem; font-size: 0.875rem; color: var(--muted); }

.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.5rem; }
@media (min-width: 640px) { .stat-grid { grid-template-columns: repeat(4, 1fr); } }
.stat-card { padding: 1.25rem; }
.stat-icon { width: 40px; height: 40px; border-radius: 0.6rem; display: flex; align-items: center; justify-content: center; background: var(--brand-50); color: var(--brand-600); }
[data-theme="dark"] .stat-icon { background: rgba(34,160,109,0.12); }
.stat-value { margin-top: 1rem; font-size: 1.5rem; font-weight: 800; }
.stat-label { font-size: 0.85rem; color: var(--muted-2); }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
thead tr { border-bottom: 1px solid var(--border-color); text-align: left; }
thead th { padding: 0.75rem 1.25rem; font-size: 0.7rem; text-transform: uppercase; color: var(--muted-2); font-weight: 600; }
tbody td { padding: 0.75rem 1.25rem; border-bottom: 1px solid var(--border-color); }
tbody tr:last-child td { border-bottom: none; }
.pill { display: inline-block; padding: 0.25rem 0.7rem; border-radius: 999px; font-size: 0.7rem; font-weight: 600; text-transform: capitalize; background: var(--brand-50); color: var(--brand-700); }
[data-theme="dark"] .pill { background: rgba(34,160,109,0.12); color: var(--brand-300); }
.pill-danger { background: #fef2f2; color: #dc2626; }

.list-row { display: flex; flex-direction: column; gap: 1rem; padding: 1rem; margin-bottom: 1rem; }
@media (min-width: 640px) { .list-row { flex-direction: row; align-items: center; } }
.list-row .thumb { width: 100%; height: 96px; border-radius: 0.5rem; overflow: hidden; flex-shrink: 0; }
@media (min-width: 640px) { .list-row .thumb { width: 128px; height: 80px; } }
.list-row .thumb img { width: 100%; height: 100%; object-fit: cover; }
.list-row .grow { flex: 1; }
.list-row .row-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }

/* ---------- Stepper (create campaign) ---------- */
.stepper { display: flex; align-items: center; justify-content: space-between; margin: 2rem 0; }
.step { display: flex; flex-direction: column; align-items: center; gap: 0.35rem; flex: 1; position: relative; }
.step-circle { width: 32px; height: 32px; border-radius: 999px; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 700; background: var(--surface-soft); color: var(--muted-2); }
.step.active .step-circle, .step.done .step-circle { background: var(--brand-500); color: #fff; }
.step span.label { font-size: 0.7rem; color: var(--muted-2); display: none; }
@media (min-width: 640px) { .step span.label { display: block; } }
.step-line { position: absolute; top: 16px; left: 50%; width: 100%; height: 2px; background: var(--border-color); z-index: -1; }
.step.done .step-line { background: var(--brand-500); }
.step:last-child .step-line { display: none; }

.upload-box { height: 12rem; border: 2px dashed var(--border-color); border-radius: 0.75rem; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.5rem; color: var(--muted-2); cursor: pointer; text-align: center; }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem; }
.gallery-item { position: relative; height: 6rem; border-radius: 0.5rem; overflow: hidden; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-add { height: 6rem; border: 2px dashed var(--border-color); border-radius: 0.5rem; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.25rem; font-size: 0.7rem; color: var(--muted-2); cursor: pointer; }

/* ---------- Campaign detail ---------- */
.detail-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 1024px) { .detail-grid { grid-template-columns: 2fr 1fr; } }
.detail-gallery-main { position: relative; height: 320px; border-radius: var(--radius); overflow: hidden; margin-top: 1.5rem; }
.detail-gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.thumb-row { display: flex; gap: 0.5rem; overflow-x: auto; margin-top: 0.75rem; }
.thumb-row button { border: 2px solid transparent; border-radius: 0.5rem; overflow: hidden; width: 96px; height: 64px; flex-shrink: 0; padding: 0; background: none; }
.thumb-row button.active { border-color: var(--brand-500); }
.thumb-row img { width: 100%; height: 100%; object-fit: cover; }
.tabs { display: flex; gap: 1.5rem; border-bottom: 1px solid var(--border-color); margin-top: 2rem; }
.tab-btn { background: none; border: none; padding: 0.75rem 0; font-size: 0.875rem; font-weight: 600; color: var(--muted-2); border-bottom: 2px solid transparent; text-transform: capitalize; }
.tab-btn.active { color: var(--brand-600); border-color: var(--brand-500); }
.tab-panel { display: none; padding: 1.5rem 0; }
.tab-panel.active { display: block; }
.donor-row { display: flex; justify-content: space-between; padding-bottom: 0.75rem; margin-bottom: 0.75rem; border-bottom: 1px solid var(--border-color); }
.donor-row:last-child { border: none; margin: 0; padding: 0; }
.update-card { padding: 1.25rem; margin-bottom: 1rem; }
.update-card .date { font-size: 0.7rem; color: var(--muted-2); }
.sidebar-card { padding: 1.5rem; position: sticky; top: 96px; }
.trust-note { display: flex; align-items: flex-start; gap: 0.5rem; background: var(--brand-50); color: var(--brand-700); font-size: 0.75rem; padding: 0.75rem; border-radius: 0.5rem; margin-top: 1rem; }
[data-theme="dark"] .trust-note { background: rgba(34,160,109,0.12); }
.share-row { display: flex; gap: 0.5rem; margin-top: 0.5rem; }
.share-row a, .share-row button { width: 36px; height: 36px; border-radius: 999px; background: var(--surface-soft); display: flex; align-items: center; justify-content: center; color: var(--muted); border: none; }
.share-row a:hover, .share-row button:hover { background: var(--brand-500); color: #fff; }

/* ---------- Donate modal ---------- */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); display: none; align-items: center; justify-content: center; z-index: 100; padding: 1rem; }
.modal-overlay.open { display: flex; }
.modal-box { width: 100%; max-width: 26rem; max-height: 90vh; overflow-y: auto; background: var(--card-bg); border-radius: 1.25rem; padding: 1.5rem; }
.modal-head { display: flex; justify-content: space-between; align-items: center; }
.modal-close { background: none; border: none; padding: 0.4rem; border-radius: 999px; color: var(--fg); }
.modal-close:hover { background: var(--surface-soft); }
.amount-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; margin-top: 1.25rem; }
.amount-btn { padding: 0.6rem 0; border-radius: 0.5rem; border: 1px solid var(--border-color); background: var(--card-bg); font-size: 0.85rem; font-weight: 600; color: var(--fg); }
.amount-btn.active { border-color: var(--brand-500); background: var(--brand-50); color: var(--brand-700); }
[data-theme="dark"] .amount-btn.active { background: rgba(34,160,109,0.12); }
.provider-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
.provider-btn { padding: 0.65rem 0; border-radius: 0.5rem; border: 1px solid var(--border-color); background: var(--card-bg); font-size: 0.75rem; font-weight: 600; color: var(--fg); text-transform: capitalize; }
.provider-btn.active { border-color: var(--brand-500); background: var(--brand-50); color: var(--brand-700); }
[data-theme="dark"] .provider-btn.active { background: rgba(34,160,109,0.12); }
.modal-fine { text-align: center; font-size: 0.7rem; color: var(--muted-2); margin-top: 0.5rem; }

/* ---------- Cookie consent ---------- */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; padding: 1rem; display: none; }
.cookie-banner.show { display: block; }
.cookie-inner { max-width: 42rem; margin: 0 auto; padding: 1.25rem; border-radius: 1.25rem; display: flex; flex-direction: column; gap: 0.75rem; align-items: center; text-align: center; }
@media (min-width: 640px) { .cookie-inner { flex-direction: row; text-align: left; justify-content: space-between; } }
.cookie-inner p { font-size: 0.85rem; color: var(--muted); }
.cookie-inner p a { color: var(--brand-600); font-weight: 600; text-decoration: underline; }
.cookie-actions { display: flex; gap: 0.5rem; flex-shrink: 0; }

/* ---------- Toast ---------- */
.toast { position: fixed; top: 1.5rem; left: 50%; transform: translateX(-50%) translateY(-16px); background: var(--ink-900); color: #fff; padding: 0.75rem 1.25rem; border-radius: 0.6rem; font-size: 0.85rem; opacity: 0; pointer-events: none; transition: all 0.25s ease; z-index: 200; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Mobile & accessibility polish ---------- */
@media (max-width: 640px) {
  /* Prevent iOS Safari from auto-zooming when a form field is focused */
  .input, select.input, textarea.input, .search-pill input { font-size: 16px; }
  .hero h1 { font-size: 2.1rem; }
  .hero-cta .btn, .hero-cta a { flex: 1 1 auto; text-align: center; }
  .lang-toggle span[data-lang-toggle-label] { display: inline; }
  .committee-avatar { font-size: 1.1rem !important; }
}
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--brand-500); outline-offset: 2px;
}
@media (hover: none) {
  .icon-btn, .lang-toggle, .btn-sm { min-height: 40px; }
}

/* ---------- Misc utility ---------- */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; }
.flex { display: flex; } .items-center { align-items: center; } .gap-2 { gap: 0.5rem; }
.hidden-mobile { display: none; }
@media (min-width: 640px) { .hidden-mobile { display: inline-flex; } }
.empty-note { text-align: center; padding: 3rem 0; color: var(--muted-2); font-size: 0.9rem; }
