:root {
  --bg: #fff7fb;
  --bg-soft: #fff0f7;
  --card: rgba(255, 255, 255, 0.92);
  --text: #2f1730;
  --muted: #6f5870;
  --primary: #ec4899;
  --primary-dark: #db2777;
  --primary-soft: #ffd7ea;
  --border: #f3c0db;
  --shadow: 0 18px 40px rgba(236, 72, 153, 0.12);
  --radius: 24px;
}

body.glow-theme {
  --bg: #fff1f8;
  --bg-soft: #ffe4f2;
  --card: rgba(255, 255, 255, 0.96);
  --text: #2c1129;
  --muted: #784c68;
  --primary: #ff4fa7;
  --primary-dark: #e1348d;
  --primary-soft: #ffc5df;
  --border: #f6b5d6;
  --shadow: 0 20px 50px rgba(255, 79, 167, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background:
    radial-gradient(circle at top right, rgba(255, 151, 204, 0.25), transparent 25%),
    radial-gradient(circle at left center, rgba(255, 204, 228, 0.35), transparent 20%),
    var(--bg);
  color: var(--text);
}

img {
  max-width: 100%;
}

.container {
  width: min(1150px, calc(100% - 2rem));
  margin: 0 auto;
}

.section {
  padding: 5rem 0;
}

.soft-section {
  background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255, 231, 243, 0.55));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  background: rgba(255, 247, 251, 0.78);
  border-bottom: 1px solid rgba(243, 192, 219, 0.65);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 80px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
  color: inherit;
}

.brand strong,
.brand span {
  display: block;
}

.brand span:last-child {
  color: var(--muted);
  font-size: 0.86rem;
  margin-top: 0.1rem;
}

.creator-name {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 0.15rem;
}

.brand-mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--primary), #ffb3d6);
  color: white;
  font-size: 1.3rem;
  box-shadow: var(--shadow);
}

.main-nav {
  display: flex;
  gap: 1.25rem;
}

.main-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--primary-dark);
}

.btn,
.qty-btn,
.qty-input {
  font: inherit;
}

.btn,
.qty-btn {
  border: none;
  cursor: pointer;
}

.hero {
  padding: 4.5rem 0 4rem;
}

.hero-grid,
.two-col,
.footer-grid,
.cart-panel {
  display: grid;
  gap: 2rem;
}

.hero-grid {
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
}

.eyebrow,
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1rem;
  font-weight: 700;
  color: var(--primary-dark);
  letter-spacing: 0.02em;
}

.hero h1,
.section h2,
.note-card h2 {
  margin: 0;
  line-height: 1.08;
}

.hero h1 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  max-width: 14ch;
}

.hero-text,
.section-head p,
.mission-points p,
.note-card p,
footer p,
.cart-panel p {
  color: var(--muted);
  line-height: 1.7;
}

.hero-text {
  margin: 1.25rem 0 1.8rem;
  max-width: 62ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.btn {
  border-radius: 999px;
  padding: 0.95rem 1.3rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover,
.btn:focus-visible,
.qty-btn:hover,
.qty-btn:focus-visible {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  box-shadow: var(--shadow);
}

.btn-secondary,
.btn-light {
  background: white;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-full {
  width: 100%;
}

.hero-badges {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hero-badges span,
.live-dot {
  border-radius: 999px;
  background: white;
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 0.55rem 0.85rem;
  font-size: 0.9rem;
}

.hero-card,
.stat-card,
.impact-row,
.donation-card,
.cart-panel,
.note-card,
.faq-grid details,
.mission-points article {
  background: var(--card);
  border: 1px solid rgba(243, 192, 219, 0.75);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}

.hero-card {
  padding: 1.6rem;
}

.hero-card-top,
.progress-labels,
.cart-line,
.donation-meta,
.price-row,
.qty-wrap,
.item-impact-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.hero-card-top {
  margin-bottom: 1rem;
}

.hero-card-top p,
.progress-card small,
.stat-label,
.donation-meta,
.item-note,
.item-impact-row span,
.cart-line span {
  color: var(--muted);
}

.fund-stat {
  margin-bottom: 1.2rem;
}

.fund-stat strong {
  display: block;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-top: 0.35rem;
}

.progress-card {
  background: var(--bg-soft);
  border-radius: 20px;
  padding: 1rem;
  margin-top: 1rem;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.9rem;
  font-weight: 700;
  color: var(--text);
}

.progress-header strong {
  color: var(--primary-dark);
}

.progress-wrapper {
  position: relative;
}

.progress-bar {
  position: relative;
  width: 100%;
  height: 20px;
  border-radius: 999px;
  background: #f5d9e6; /* light full track */
  overflow: hidden;
  margin: 0.7rem 0 0.4rem;
}

#goalBar {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #c2185b, #e91e63); /* darker fill */
  transition: width 0.6s ease;
}

#goalMarker {
  position: absolute;
  top: -34px;;
  left: 63%;
  transform: translateX(-50%);
  background: var(--primary-dark);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(219, 39, 119, 0.2);
  transition: left 0.6s ease;
}

#goalMarker::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px 6px 0 6px;
  border-style: solid;
  border-color: var(--primary-dark) transparent transparent transparent;
}

.progress-ticks {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.35rem;
}

.two-col {
  grid-template-columns: 1fr 1fr;
  align-items: start;
}

.mission-points {
  display: grid;
  gap: 1rem;
}

.mission-image {
  width: 100%;
  max-width: 320px;
  height: auto;
  display: block;
  margin: 0.75rem 0 1.25rem;
  border-radius: 20px;
  box-shadow: var(--shadow);
  object-fit: cover;
}

.mission-author {
  margin: 0 0 0.75rem;
  color: var(--primary-dark);
  font-weight: 600;
}

.mission-points article,
.note-card,
.faq-grid details,
.stat-card,
.impact-row,
.donation-card {
  padding: 1.25rem;
}

.mission-points h3,
.donation-card h3,
.cart-panel h3,
.note-card h2 {
  margin-top: 0;
}

.centered {
  text-align: center;
}

.section-head {
  margin-bottom: 2rem;
}

.stats-grid,
.donation-grid,
.faq-grid {
  display: grid;
  gap: 1.2rem;
}

.stats-grid {
  grid-template-columns: repeat(3, 1fr);
}

.stat-card strong {
  display: block;
  margin-top: 0.4rem;
  font-size: 2rem;
}

.impact-list {
  margin-top: 1.2rem;
  display: grid;
  gap: 1rem;
}

.impact-row {
  display: grid;
  gap: 0.8rem;
}

.impact-chart-wrap {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.impact-chart-card {
  width: 100%;
  max-width: 760px;
  text-align: center;
  background: var(--card);
  border: 1px solid rgba(243, 192, 219, 0.75);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 2rem;
}

.impact-chart-card h3 {
  margin-top: 0;
  margin-bottom: 1.25rem;
}

.impact-chart {
  width: 320px;
  height: 320px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  box-shadow: 0 12px 28px rgba(219, 39, 119, 0.14);
  border: 10px solid white;
}

.impact-legend {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 0.9rem 1.2rem;
  margin-top: 1rem;
  text-align: left;
}

.impact-legend-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: var(--bg-soft);
  padding: 0.8rem 1rem;
  border-radius: 16px;
}

.impact-legend-color {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
}

.impact-legend strong {
  display: block;
  font-size: 0.95rem;
}

.impact-legend span {
  color: var(--muted);
  font-size: 0.88rem;
}

@media (max-width: 640px) {
  .impact-chart {
    width: 250px;
    height: 250px;
  }

  .impact-legend {
    grid-template-columns: 1fr;
  }
}

.item-impact-row strong {
  font-size: 1.15rem;
}

.donation-grid {
  grid-template-columns: repeat(3, 1fr);
}

.donation-card {
  display: grid;
  gap: 1rem;
}

.item-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--primary-soft), white);
  font-size: 1.7rem;
}

.donation-card p {
  margin: 0;
}

.price-pill,
.collected-pill {
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  font-weight: 700;
  font-size: 0.92rem;
}

.price-pill {
  background: #ffe1ef;
  color: var(--primary-dark);
}

.collected-pill {
  background: white;
  border: 1px solid var(--border);
  color: var(--muted);
}

.qty-wrap {
  padding-top: 0.3rem;
}

.qty-btn {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: white;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1.1rem;
}

.qty-input {
  width: 70px;
  text-align: center;
  padding: 0.7rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: white;
  color: var(--text);
  font-weight: 700;
}

.cart-panel {
  grid-template-columns: 1.1fr 0.9fr;
  padding: 1.5rem;
  margin-top: 2rem;
}

.cart-summary {
  display: grid;
  gap: 0.8rem;
}

.cart-line {
  background: var(--bg-soft);
  padding: 1rem;
  border-radius: 16px;
}

.cart-line strong {
  font-size: 1.1rem;
}

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

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 1.2rem;
  row-gap: 0.8rem;
  align-items: start;
}

.faq-grid details {
  align-self: start;
}

.faq-grid details[open] {
  max-height: 300px;
  overflow-y: auto;
  padding-right: 0.35rem;
}

.faq-grid summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

.faq-grid summary::-webkit-details-marker {
  display: none;
}

.faq-grid details p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
}

.site-footer {
  padding: 2rem 0 3rem;
}

.footer-grid {
  grid-template-columns: repeat(2, 1fr);
  padding-top: 1rem;
  border-top: 1px solid rgba(243, 192, 219, 0.75);
}

.contact-grid {
  align-items: start;
  gap: 2rem;
}

.contact-details p {
  margin: 0 0 0.85rem;
  color: var(--muted);
  line-height: 1.7;
}

.contact-details strong {
  color: var(--text);
}

.contact-details a {
  color: var(--primary-dark);
  text-decoration: none;
  font-weight: 600;
}

.contact-details a:hover,
.contact-details a:focus-visible {
  text-decoration: underline;
}

@media (max-width: 980px) {
  .hero-grid,
  .two-col,
  .cart-panel,
  .stats-grid,
  .donation-grid,
  .faq-grid,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-grid,
  .two-col,
  .cart-panel {
    grid-template-columns: 1fr;
  }

  .stats-grid,
  .donation-grid,
  .faq-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .main-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    gap: 0.75rem 1rem;
  }

  .nav-wrap {
    align-items: flex-start;
  }

@media (max-width: 640px) {
  .hero {
    padding-top: 3rem;
  }

  .brand span:last-child {
    display: none;
  }

  .nav-wrap {
    flex-wrap: wrap;
  }

  .theme-toggle {
    width: 100%;
  }

  .hero-actions,
  .hero-badges {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-badges span {
    text-align: center;
  }

  .qty-wrap,
  .hero-card-top,
  .progress-labels,
  .cart-line,
  .donation-meta,
  .price-row,
  .item-impact-row {
    flex-direction: column;
    align-items: flex-start;
  }
}
}