:root {
  --bg-start: #f8f3e9;
  --bg-end: #e7efe8;
  --surface: #ffffffeb;
  --ink: #1e2a1f;
  --muted: #5a685d;
  --accent: #0f766e;
  --accent-soft: #d8f5ed;
  --border: #d5ded5;
  --shadow: 0 14px 40px rgba(24, 36, 25, 0.12);
  --gold: #c9983d;
  --gold-soft: #f6e7be;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Assistant', sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 15%, #fff8db 0%, transparent 35%),
    radial-gradient(circle at 85% 8%, #d0efe3 0%, transparent 35%),
    linear-gradient(165deg, var(--bg-start), var(--bg-end));
  min-height: 100vh;
}

.app {
  max-width: 860px;
  margin: 0 auto;
  padding: 26px 18px 42px;
  animation: rise-in 500ms ease-out;
}

.donation-kicker {
  margin: 0 0 4px;
  color: #8c5f10;
  font-family: 'Heebo', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
}

.donation-title {
  margin: 0;
  color: #2d3a22;
  font-family: 'Heebo', sans-serif;
  font-size: 1.45rem;
  line-height: 1.25;
}

.donate-btn {
  margin-top: 4px;
  display: inline-block;
  width: auto;
  min-width: 220px;
  max-width: 100%;
  text-align: center;
  text-decoration: none;
  border-radius: 999px;
  padding: 11px 14px;
  font-family: 'Heebo', sans-serif;
  font-weight: 800;
  color: #ffffff;
  background: linear-gradient(135deg, #d6900c, #ba6f05);
  box-shadow: 0 10px 18px rgba(188, 112, 8, 0.34);
  transition: transform 130ms ease, box-shadow 130ms ease, filter 130ms ease;
}

.donation-actions {
  display: flex;
  justify-content: center;
  width: 100%;
}

.donate-btn:hover {
  transform: translateY(-1px);
  filter: saturate(1.06);
  box-shadow: 0 12px 20px rgba(188, 112, 8, 0.4);
}

.donate-btn:active {
  transform: translateY(1px);
}

.donation-note {
  margin: 2px 0 0;
  color: #6b705c;
  font-size: 0.92rem;
}

.hero {
  border: 1px solid #dfe7df;
  background: linear-gradient(155deg, #ffffffca, #f7faf4cf);
  border-radius: 20px;
  padding: 16px 16px 14px;
  box-shadow: 0 8px 24px rgba(18, 39, 21, 0.08);
}

.hero-top {
  display: grid;
  grid-template-columns: 74px 1fr 74px;
  gap: 14px;
  align-items: center;
}

.hero-copy {
  text-align: center;
}

.coin-icon {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  padding: 0;
  background: radial-gradient(circle at 30% 20%, #f7f9fc, #cfd6df);
  border: 1px solid #c6ced8;
  box-shadow: 0 8px 16px rgba(66, 78, 94, 0.2);
  overflow: hidden;
}

.coin-icon svg {
  width: 100%;
  height: 100%;
}

.coin-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero h1 {
  font-family: 'Heebo', sans-serif;
  margin: 0;
  font-size: clamp(1.8rem, 4.8vw, 2.6rem);
  line-height: 1.2;
}

.hero-title {
  margin: 0;
  font-size: clamp(1.35rem, 3.2vw, 2.05rem);
  line-height: 1.35;
  color: #163228;
}

.subtitle {
  margin: 8px 0 0;
  font-size: 1rem;
  color: var(--muted);
}

.result-card {
  margin-top: 22px;
  border-radius: 22px;
  background: linear-gradient(170deg, #ffffffed, #f8fdfaf0);
  padding: 26px 18px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  text-align: center;
}

.result-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  max-width: 620px;
  margin: 0 auto;
}

.result-split {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 12px;
  background: linear-gradient(180deg, #ffffff, #f9fcf8);
  box-shadow: inset 0 1px 0 #ffffff;
}

.result-split-primary {
  border-color: #b7cab7;
  background: linear-gradient(180deg, #ffffff, #f2faf4);
  box-shadow:
    inset 0 1px 0 #ffffff,
    0 10px 20px rgba(22, 60, 35, 0.08);
}

.label {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.main-value {
  margin: 8px 0;
  font-family: 'Heebo', sans-serif;
  font-size: clamp(1.6rem, 5vw, 2.65rem);
  font-weight: 800;
  letter-spacing: 0.3px;
}

.footnote {
  margin: 4px 0 0;
  color: var(--muted);
}

.recommendation-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  border-top: 1px dashed #cdd9cd;
  padding-top: 10px;
}

.meta-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
}

.meta-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.meta-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(22, 35, 24, 0.08);
  border-color: #bfceb7;
}

.meta-title {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.meta-value {
  margin: 8px 0 0;
  font-family: 'Heebo', sans-serif;
  font-size: 1.26rem;
  font-weight: 700;
}

.meta-subvalue {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.seo-content {
  margin-top: 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 14px 12px;
  background: #ffffffc9;
}

.seo-title {
  margin: 0;
  font-family: 'Heebo', sans-serif;
  font-size: clamp(1.15rem, 2.5vw, 1.35rem);
  color: #1c3a2f;
}

.faq-grid {
  margin-top: 10px;
  display: grid;
  gap: 9px;
}

.faq-grid details {
  border: 1px solid #d6dfd6;
  border-radius: 12px;
  padding: 8px 11px;
  background: #fffffff5;
  transition: border-color 160ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.faq-grid details[open] {
  border-color: #b7cab7;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(26, 46, 33, 0.08);
}

.faq-grid summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  font-family: 'Heebo', sans-serif;
  font-weight: 700;
  color: #1d3f32;
  line-height: 1.45;
  padding-left: 30px;
}

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

.faq-grid summary::after {
  content: '';
  position: absolute;
  left: 8px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-left: 2px solid #4d7163;
  border-bottom: 2px solid #4d7163;
  transform: translateY(-58%) rotate(-45deg);
  transition: transform 180ms ease;
}

.faq-grid details[open] summary::after {
  transform: translateY(-42%) rotate(-135deg);
}

.faq-grid summary:focus-visible {
  outline: 2px solid #8fc0ae;
  outline-offset: 4px;
  border-radius: 6px;
}

.faq-grid p {
  margin: 10px 0 3px;
  color: #4f6253;
  line-height: 1.6;
}

.faq-grid ol,
.faq-grid ul {
  margin: 10px 0 4px;
  padding-inline-start: 20px;
  color: #3f5448;
  line-height: 1.65;
}

.faq-grid li + li {
  margin-top: 5px;
}

.faq-grid strong {
  color: #1f3f33;
}

.faq-note {
  border-top: 1px dashed #ccd8cc;
  padding-top: 9px;
  margin-top: 12px;
  font-weight: 600;
  color: #2f4d40;
}

.status-row {
  margin-top: 18px;
  display: flex;
  justify-content: center;
}

.donation-row {
  margin-top: 18px;
  border: 1px solid #d8d2bb;
  border-radius: 20px;
  padding: 18px 16px;
  text-align: center;
  background:
    radial-gradient(circle at 12% 8%, #fff4d1 0%, transparent 34%),
    linear-gradient(160deg, #fffef8, #f8f2df);
  box-shadow:
    0 14px 28px rgba(77, 62, 28, 0.14),
    inset 0 1px 0 #ffffff;
  display: grid;
  gap: 8px;
  justify-items: center;
}

.donation-logo-frame {
  margin-top: 2px;
  padding: 6px;
  border-radius: 14px;
  border: 1px solid #e1d6b5;
  background: #fffdf7;
  box-shadow: 0 6px 16px rgba(77, 62, 28, 0.12);
}

.donation-logo {
  display: block;
  width: clamp(110px, 21vw, 150px);
  height: auto;
  border-radius: 10px;
}

#refresh-btn {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 11px 20px;
  font-family: 'Heebo', sans-serif;
  font-weight: 700;
  cursor: pointer;
  background: var(--accent);
  color: #ffffff;
  transition: transform 130ms ease, opacity 130ms ease, box-shadow 130ms ease;
  box-shadow: 0 8px 16px rgba(15, 118, 110, 0.26);
}

#refresh-btn:active {
  transform: translateY(1px);
}

#refresh-btn[disabled] {
  opacity: 0.65;
  cursor: wait;
}

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

@media (max-width: 760px) {
  .hero-top {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

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

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

  .seo-content {
    padding: 12px 12px 10px;
  }
}
