:root {
  --purple: #4b137d;
  --purple-dark: #2c064f;
  --pink: #df2f68;
  --orange: #ec7c10;
  --green: #22964f;
  --ink: #16121b;
  --muted: #625c69;
  --line: #e6dfea;
  --soft: #fbf8fc;
  --white: #ffffff;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 4px 14px rgba(43, 14, 73, 0.08);
  --shadow: 0 18px 50px rgba(43, 14, 73, 0.14);
  --shadow-lg: 0 24px 60px rgba(43, 14, 73, 0.20);
  --ease: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  --maxw: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: var(--purple);
}

:focus-visible {
  outline: 3px solid var(--pink);
  outline-offset: 2px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 12px 18px;
  background: var(--purple);
  color: var(--white);
  border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 700;
}

.skip-link:focus {
  left: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--purple);
  background: #efe7f5;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--ease), box-shadow var(--ease), background var(--ease), color var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--purple), #6a1fb0);
  box-shadow: 0 12px 26px rgba(75, 19, 125, 0.28);
}

.btn-primary:hover {
  box-shadow: 0 16px 34px rgba(75, 19, 125, 0.36);
}

.btn-secondary {
  color: var(--white);
  background: var(--purple);
  box-shadow: var(--shadow-sm);
}

.btn-ghost {
  background: transparent;
  border-color: currentColor;
}

.btn-block {
  width: 100%;
}

.btn-lg {
  min-height: 54px;
  padding: 15px 30px;
  font-size: 1.1rem;
}

.btn-sm {
  min-height: 38px;
  padding: 8px 16px;
  font-size: 0.9rem;
}

/* Coloured category buttons */
.medical .btn { background: var(--green); color: var(--white); }
.food .btn { background: var(--orange); color: var(--white); }
.sadaqa .btn { background: var(--purple); color: var(--white); }
.category-card .btn { box-shadow: var(--shadow-sm); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 12px clamp(16px, 4vw, 48px);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 1px 0 rgba(75, 19, 125, 0.08);
  backdrop-filter: blur(12px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--purple);
  text-decoration: none;
}

.brand strong {
  display: block;
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  line-height: 0.95;
}

.brand strong span {
  color: var(--pink);
  font-size: 0.78em;
}

.brand small {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: clamp(0.72rem, 1vw, 0.85rem);
}

.brand.compact strong { font-size: 1.7rem; }
.brand.compact small { font-size: 0.82rem; }

.brand-mark,
.round-logo {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
}

.mother-shape,
.child-shape {
  position: absolute;
  bottom: 6px;
  display: block;
  background: var(--purple);
}

.mother-shape {
  left: 10px;
  width: 14px;
  height: 40px;
  border-radius: 16px 16px 5px 5px;
  transform: skew(-11deg);
}

.mother-shape::before,
.child-shape::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 1px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--purple);
}

.child-shape {
  right: 11px;
  width: 12px;
  height: 28px;
  border-radius: 14px 14px 4px 4px;
}

.child-shape::before {
  width: 10px;
  height: 10px;
  top: -8px;
}

.heart-dot {
  position: absolute;
  top: 10px;
  right: 12px;
  color: var(--pink);
  font-size: 1rem;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(14px, 2vw, 30px);
}

.main-nav a {
  position: relative;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  padding: 6px 2px;
  transition: color var(--ease);
}

.main-nav a.active,
.main-nav a:hover {
  color: var(--purple);
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 3px;
  border-radius: 99px;
  background: var(--purple);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--ease);
}

.main-nav a.active::after,
.main-nav a:hover::after {
  transform: scaleX(1);
}

.donate-top {
  min-height: 46px;
  padding: 12px 22px;
  border: 0;
  border-radius: var(--radius-sm);
  color: var(--white);
  background: var(--pink);
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(223, 47, 104, 0.28);
  transition: transform var(--ease), box-shadow var(--ease);
}

.donate-top:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(223, 47, 104, 0.4);
}

.nav-toggle {
  display: none;
}

/* ---------- Hero carousel ---------- */
.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(440px, 64vh, 640px);
  overflow: hidden;
  padding: clamp(48px, 8vw, 96px) clamp(20px, 5vw, 48px);
  text-align: center;
  background: var(--purple-dark);
}

.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background: var(--purple-dark) center center / cover no-repeat;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.9s var(--ease), transform 6s ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

/* Darkening overlay so the text stays readable over any photo */
.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 5, 18, 0.72), rgba(10, 5, 18, 0.35) 45%, rgba(10, 5, 18, 0.7));
}

/* Drop your photos into public/images/ — see public/images/README.txt */
.hero-slide--1 { background-image: url("hero.png"); }
.hero-slide--2 { background-image: url("hero.png"); }
.hero-slide--3 { background-image: url("hero.png"); }

.hero-overlay {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 720px;
  margin: 0 auto;
  color: var(--white);
  animation: rise 0.6s var(--ease) both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--purple);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.hero h1 {
  margin: 0;
  color: var(--white);
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  line-height: 1.12;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

.hero h1 .hero-accent {
  display: block;
  color: var(--pink);
}

.hero h1 .hero-sub-line {
  display: block;
}

.divider {
  width: min(320px, 80%);
  margin: 20px 0;
  color: var(--pink);
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.4);
}

.divider span {
  position: relative;
  top: -12px;
  padding: 0 12px;
  background: transparent;
}

.hero-lead {
  max-width: 560px;
  margin: 0 0 26px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.08rem;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
}

.script-note {
  margin: 18px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  color: rgba(255, 255, 255, 0.92);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 50%;
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(4px);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  transition: background var(--ease);
}

.hero-arrow:hover { background: rgba(255, 255, 255, 0.34); }
.hero-arrow--prev { left: clamp(10px, 3vw, 26px); }
.hero-arrow--next { right: clamp(10px, 3vw, 26px); }

.hero-dots {
  position: absolute;
  bottom: 18px;
  left: 50%;
  z-index: 3;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.hero-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background var(--ease), transform var(--ease);
}

.hero-dots button.is-active {
  background: var(--white);
  transform: scale(1.25);
}

/* ---------- Promise bar ---------- */
.promise-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  max-width: var(--maxw);
  margin: -30px auto 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.22);
  box-shadow: var(--shadow);
  position: relative;
  z-index: 2;
}

.promise-bar article {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  align-items: center;
  padding: 20px 22px;
  color: var(--white);
  background: var(--purple);
}

.promise-bar strong,
.promise-bar small {
  display: block;
}

.line-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 2px solid rgba(255, 255, 255, 0.78);
  border-radius: 50%;
  font-weight: 900;
}

/* ---------- Section scaffolding ---------- */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(48px, 7vw, 84px) clamp(18px, 4vw, 40px);
}

.section-head {
  max-width: 680px;
  margin: 0 auto clamp(28px, 4vw, 44px);
  text-align: center;
}

.section-head h2,
.categories h2,
.impact-strip h2,
.story-band h2,
.transparency h2 {
  margin: 6px 0 0;
  color: var(--purple);
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.15;
}

.section-sub {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.heart-row {
  margin: 10px 0 0;
  color: var(--pink);
  font-weight: 900;
}

.card {
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

/* ---------- Categories ---------- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.category-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform var(--ease), box-shadow var(--ease);
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.category-head {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 14px;
  align-items: center;
}

.category-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  color: var(--white);
  font-weight: 900;
  font-size: 1.3rem;
}

.medical h3 { color: var(--green); }
.medical .category-icon { background: var(--green); }
.food h3 { color: var(--orange); }
.food .category-icon { background: var(--orange); }
.sadaqa h3 { color: var(--purple); }
.sadaqa .category-icon { background: var(--purple); }

.category-card h3 {
  margin: 0;
  font-size: 1.2rem;
  text-transform: uppercase;
}

.category-card p {
  margin: 14px 0 20px;
  color: var(--muted);
  flex: 1;
}

/* ---------- Donation section ---------- */
.donate-section {
  border-radius: var(--radius);
  background:
    radial-gradient(900px 400px at 100% 0%, rgba(75, 19, 125, 0.06), transparent 60%),
    var(--soft);
}

/* Segmented UPI / QR toggle */
.donate-toggle {
  display: flex;
  gap: 4px;
  width: fit-content;
  margin: 0 auto clamp(24px, 4vw, 34px);
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #efe7f5;
}

.toggle-btn {
  min-height: 44px;
  padding: 10px clamp(20px, 5vw, 34px);
  border: 0;
  border-radius: 999px;
  color: var(--purple);
  background: transparent;
  font-weight: 800;
  cursor: pointer;
  transition: background var(--ease), color var(--ease), box-shadow var(--ease);
}

.toggle-btn:hover {
  color: var(--purple-dark);
}

.toggle-btn.is-active {
  color: var(--purple);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

/* Only one panel is visible at a time, so it centers in a single column */
.donate-panels {
  max-width: 560px;
  margin: 0 auto;
}

.donate-panels [role="tabpanel"][hidden] {
  display: none;
}

.donate-action h3,
.donate-qr h3 {
  margin: 0 0 16px;
  color: var(--purple);
  font-size: 1.25rem;
}

.quick-amounts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.amount-chip {
  min-height: 48px;
  border: 1.5px solid #d9cbe2;
  border-radius: var(--radius-sm);
  color: var(--purple);
  background: #fff;
  font-weight: 800;
  cursor: pointer;
  transition: transform var(--ease), border-color var(--ease), background var(--ease), color var(--ease);
}

.amount-chip:hover {
  transform: translateY(-2px);
  border-color: var(--purple);
}

.amount-chip.is-active {
  color: var(--white);
  background: var(--purple);
  border-color: var(--purple);
}

.field {
  display: grid;
  gap: 7px;
  margin-top: 18px;
  color: var(--purple);
  font-weight: 800;
}

.field input,
.field textarea {
  width: 100%;
  min-height: 48px;
  border: 1.5px solid #d6c9de;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--ink);
  font-weight: 500;
  background: #fff;
  transition: border-color var(--ease), box-shadow var(--ease);
}

.field textarea {
  min-height: 110px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(75, 19, 125, 0.14);
}

.field-hint {
  margin: 8px 0 20px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.upi-id-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px dashed #cdb7d8;
  border-radius: var(--radius-sm);
  background: #fff;
}

.upi-id-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.upi-id-label {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.upi-id-text strong {
  color: var(--purple);
  font-size: 1.15rem;
  overflow-wrap: anywhere;
}

.payee-name {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

#copyUpiBtn {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 8px 18px;
}

#copyUpiBtn.is-copied {
  color: var(--white);
  background: var(--green);
  border-color: var(--green);
}

.donate-qr {
  text-align: center;
}

.qr-caption {
  margin: 0 0 16px;
  color: var(--muted);
}

.qr-frame {
  display: inline-block;
  padding: 12px;
  margin: 0 auto 16px;
  border-radius: var(--radius-sm);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.qr-frame img {
  display: block;
  width: min(240px, 60vw);
  height: auto;
  border-radius: 6px;
}

.upi-apps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.upi-apps li {
  padding: 5px 12px;
  border-radius: 999px;
  background: #efe7f5;
  color: var(--purple);
  font-size: 0.8rem;
  font-weight: 700;
}

.donate-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.donate-steps li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  align-items: start;
}

.donate-steps li span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--white);
  background: var(--pink);
  font-weight: 900;
}

.donate-steps li p {
  margin: 0;
  color: var(--muted);
}

.donate-steps strong {
  color: var(--ink);
}

.donate-success {
  margin: 26px auto 0;
  max-width: 640px;
  padding: 18px 22px;
  border: 1px solid #cdeed9;
  border-radius: var(--radius-sm);
  background: #eafaf0;
  text-align: center;
  animation: rise 0.4s var(--ease) both;
}

.donate-success strong {
  display: block;
  margin-bottom: 6px;
  color: var(--green);
  font-size: 1.1rem;
}

.donate-success p {
  margin: 0;
  color: var(--muted);
}

/* ---------- About ---------- */
.about-band {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}

.about-photo {
  width: 100%;
  height: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.about-text h2 {
  margin: 6px 0 14px;
  color: var(--purple);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.about-text p {
  margin: 0 0 14px;
  color: var(--muted);
}

/* ---------- Impact strip ---------- */
.impact-strip {
  border-radius: var(--radius);
  background: var(--soft);
}

.impact-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.impact-items li {
  padding: 20px;
  border: 1px dashed #cdb7d8;
  border-radius: var(--radius-sm);
  background: var(--white);
  font-weight: 600;
  transition: transform var(--ease), box-shadow var(--ease);
}

.impact-items li:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

/* ---------- Stories ---------- */
.story-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.story-grid article {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.story-grid h3 {
  margin: 0 0 10px;
  color: var(--purple);
  font-size: 1.15rem;
}

.story-grid p {
  margin: 0;
  color: var(--muted);
}

/* Stories of Strength — photo cards with caption bars */
.strength-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.strength-card {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 230px;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  /* Fallback gradient shows until a real photo is added */
  background: linear-gradient(150deg, #6a1fb0, #4b137d) center center / cover no-repeat;
  box-shadow: var(--shadow-sm);
  transition: transform var(--ease), box-shadow var(--ease);
}

.strength-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.strength-card figcaption {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 12px 16px;
  background: rgba(75, 19, 125, 0.88);
  color: var(--white);
  font-weight: 600;
  line-height: 1.4;
}

.strength-card--1 { background-image: url("favicon.svg"); }
.strength-card--2 { background-image: url("favicon.svg"); }
.strength-card--3 { background-image: url("favicon.svg"); }
.strength-card--4 { background-image: url("favicon.svg"); }
.strength-card--5 { background-image: url("favicon.svg"); }
.strength-card--6 { background-image: url("favicon.svg"); }

/* ---------- Transparency ---------- */
/* .transparency {
  text-align: center;
} */

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

.contact-info h2 {
  margin: 6px 0 14px;
  color: var(--purple);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.contact-info > p {
  color: var(--muted);
}

.contact-list {
  display: grid;
  gap: 12px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 12px;
}

.contact-ico {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #efe7f5;
  color: var(--purple);
  font-size: 1.1rem;
}

.contact-list a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.contact-list a:hover {
  color: var(--purple);
}

.contact-form h3 {
  margin: 0 0 6px;
  color: var(--purple);
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  min-height: 20px;
  margin: 12px 0 0;
  font-weight: 700;
}

.form-status.success { color: var(--green); }
.form-status.error { color: #b00020; }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 20px;
  padding: 40px clamp(18px, 4vw, 48px) 24px;
  color: rgba(255, 255, 255, 0.86);
  background: var(--purple-dark);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--maxw);
  margin: 0 auto;
}

.footer-brand strong {
  display: block;
  color: var(--white);
  font-size: 1.5rem;
}

.footer-brand strong span { color: var(--pink); }

.footer-brand small {
  color: rgba(255, 255, 255, 0.7);
}

.footer-nav,
.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.footer-nav a,
.footer-social a {
  color: rgba(255, 255, 255, 0.86);
  font-weight: 700;
  text-decoration: none;
}

.footer-nav a:hover,
.footer-social a:hover {
  color: var(--white);
}

.footer-legal {
  max-width: var(--maxw);
  margin: 26px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.9rem;
  text-align: center;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 60;
  max-width: min(90vw, 420px);
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  color: var(--white);
  background: var(--ink);
  box-shadow: var(--shadow-lg);
  font-weight: 600;
  text-align: center;
  transform: translate(-50%, 20px);
  opacity: 0;
  transition: transform var(--ease), opacity var(--ease);
}

.toast.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
}

/* ---------- Dashboard ---------- */
.dashboard-body {
  background: #faf8fc;
}

.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px clamp(18px, 4vw, 48px);
  background: var(--white);
  box-shadow: 0 1px 0 rgba(75, 19, 125, 0.08);
}

.dashboard-link {
  display: inline-block;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  color: var(--white);
  background: var(--purple);
  font-weight: 800;
  text-decoration: none;
}

.dashboard-main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px clamp(18px, 4vw, 40px) 60px;
}

.dashboard-login {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 20px;
}

.dashboard-login label {
  display: grid;
  gap: 7px;
  color: var(--purple);
  font-weight: 800;
}

.dashboard-login input {
  width: 100%;
  min-height: 46px;
  border: 1px solid #d6c9de;
  border-radius: var(--radius-sm);
  padding: 0 12px;
}

.dashboard-login button {
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--radius-sm);
  color: var(--white);
  background: var(--purple);
  font-weight: 800;
  cursor: pointer;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.metrics-grid article,
.dashboard-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.metrics-grid article {
  padding: 20px;
}

.metrics-grid span {
  display: block;
  color: var(--muted);
  font-weight: 800;
}

.metrics-grid strong {
  display: block;
  margin-top: 8px;
  color: var(--purple);
  font-size: 1.7rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.75fr);
  gap: 18px;
  margin-top: 18px;
}

.dashboard-panel {
  padding: 22px;
}

.dashboard-panel h1,
.dashboard-panel h2 {
  margin: 0 0 16px;
  color: var(--purple);
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 13px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 0.85rem;
  text-transform: uppercase;
}

.status {
  display: inline-block;
  padding: 5px 9px;
  border-radius: 999px;
  background: #eee;
  font-size: 0.82rem;
  font-weight: 800;
}

.status.paid { color: #126d37; background: #dcf4e6; }
.status.failed { color: #9a0c23; background: #ffe1e7; }
.status.created,
.status.qr_created { color: #7a4a00; background: #fff1d4; }

.category-bars {
  display: grid;
  gap: 16px;
}

.category-bar {
  display: grid;
  gap: 8px;
}

.category-bar div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.category-bar strong { color: var(--ink); }
.category-bar span { color: var(--muted); }

.category-bar i {
  display: block;
  height: 10px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--pink), var(--purple));
}

/* ---------- Donation form + dynamic QR ---------- */
.donate-form-card .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field-label {
  display: block;
  margin: 20px 0 10px;
  color: var(--purple);
  font-weight: 800;
}

.field small {
  color: var(--muted);
  font-weight: 600;
}

.qr-result {
  margin-top: 20px;
  text-align: center;
  animation: rise 0.4s var(--ease) both;
}

.qr-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  max-width: 260px;
  margin: 6px auto;
  color: var(--muted);
}

.qr-meta strong {
  color: var(--ink);
}

.qr-expiry {
  margin: 10px 0;
  color: var(--green);
  font-weight: 700;
}

.qr-expiry.is-expired {
  color: #b00020;
}

.qr-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin: 14px 0;
}

/* ---------- Result pages (success / failed) ---------- */
.result-body {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(800px 400px at 50% -10%, rgba(75, 19, 125, 0.1), transparent 60%),
    var(--soft);
}

.result-wrap {
  width: min(560px, 100%);
}

.result-card {
  text-align: center;
}

.result-badge {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin: 0 auto 14px;
  border-radius: 50%;
  color: var(--white);
  font-size: 2.4rem;
  font-weight: 900;
  animation: rise 0.4s var(--ease) both;
}

.result-badge--ok { background: var(--green); }
.result-badge--fail { background: #b00020; }

.result-card h1 {
  margin: 0;
  color: var(--purple);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.result-lead {
  margin: 6px 0 20px;
  color: var(--muted);
  font-size: 1.1rem;
}

.pending-note {
  margin: 0 0 18px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: #fff1d4;
  color: #7a4a00;
  font-weight: 600;
}

.result-details {
  display: grid;
  gap: 10px;
  margin: 0 0 24px;
  text-align: left;
}

.result-details > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--soft);
}

.result-details dt {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.result-details dd {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  overflow-wrap: anywhere;
  text-align: right;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

/* ---------- Dashboard: filters, tools, chart, pagination ---------- */
.dashboard-error {
  margin: 0 0 16px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: #ffe1e7;
  color: #9a0c23;
  font-weight: 700;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chip,
.chart-chip {
  min-height: 40px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--purple);
  font-weight: 700;
  cursor: pointer;
  transition: background var(--ease), color var(--ease);
}

.filter-chip.is-active,
.chart-chip.is-active {
  color: var(--white);
  background: var(--purple);
  border-color: var(--purple);
}

.filter-custom {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 10px;
}

.filter-custom label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.85rem;
}

.filter-custom input {
  min-height: 40px;
  border: 1px solid #d6c9de;
  border-radius: var(--radius-sm);
  padding: 0 10px;
}

.metrics-grid + .metrics-grid {
  margin-top: 16px;
}

.dashboard-panel {
  margin-top: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.panel-head h2 {
  margin: 0;
  color: var(--purple);
}

.panel-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.panel-tools input[type="search"] {
  min-height: 42px;
  min-width: 240px;
  border: 1px solid #d6c9de;
  border-radius: var(--radius-sm);
  padding: 0 12px;
}

.export-group {
  display: flex;
  gap: 6px;
}

.export-group .btn {
  min-height: 42px;
  padding: 8px 14px;
}

.th-sort {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
}

.th-sort.is-active { color: var(--purple); }
.th-sort.asc::after { content: " ▲"; }
.th-sort.desc::after { content: " ▼"; }

.chart {
  width: 100%;
  overflow-x: auto;
}

.chart-x {
  fill: var(--muted);
  font-size: 11px;
}

.chart-empty {
  margin: 0;
  padding: 30px;
  color: var(--muted);
  text-align: center;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 18px;
}

.page-btn {
  min-height: 40px;
  padding: 8px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--purple);
  font-weight: 700;
  cursor: pointer;
}

.page-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.page-info {
  color: var(--muted);
  font-weight: 600;
}

@media print {
  .dashboard-header,
  .dashboard-login,
  .filter-bar,
  .panel-tools,
  .pagination,
  .dashboard-link { display: none !important; }
  body { background: #fff; }
}

@media (max-width: 620px) {
  .donate-form-card .form-row { grid-template-columns: 1fr; }
  .panel-tools input[type="search"] { min-width: 0; width: 100%; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .site-header {
    grid-template-columns: 1fr auto auto;
  }

  .donate-top {
    display: none;
  }

  .nav-toggle {
    display: grid;
    gap: 5px;
    width: 46px;
    height: 46px;
    place-content: center;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--white);
    cursor: pointer;
  }

  .nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: var(--purple);
  }

  .main-nav {
    display: none;
    order: 3;
    grid-column: 1 / -1;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding-top: 10px;
  }

  .main-nav.open {
    display: flex;
  }

  .about-band,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .about-photo {
    max-height: 400px;
  }

  .promise-bar,
  .category-grid,
  .impact-items,
  .story-grid,
  .strength-grid,
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .promise-bar,
  .category-grid,
  .impact-items,
  .story-grid,
  .strength-grid,
  .metrics-grid,
  .donate-steps {
    grid-template-columns: 1fr;
  }

  .quick-amounts {
    grid-template-columns: repeat(2, 1fr);
  }

  .dashboard-login,
  .dashboard-header {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions .btn {
    flex: 1;
  }
}
