:root {
  --green-dark: #2d5a3f;
  --green-darker: #062823;
  --green-lime: #a8e063;
  --green-lime-hover: #98d055;
  --green-mint: #e8f5e9;
  --text: #1a1a1a;
  --text-muted: #6b7280;
  --text-soft: #9ca3af;
  --surface: #ffffff;
  --border: #e5ebe8;
  --warn-bg: #fff7ed;
  --warn-text: #c2410c;
  --fail-bg: #fef2f2;
  --fail-text: #b91c1c;
  --pending-bg: #fef3c7;
  --pending-text: #b45309;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
  --max-w: 480px;
  --tabbar-h: 78px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.don-body {
  font-family: var(--font);
  background: #f4f7f5;
  color: var(--text);
  line-height: 1.45;
}

.don-app {
  max-width: var(--max-w);
  margin: 0 auto;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: #f4f7f5;
}

.don-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.don-header--decor {
  position: relative;
  overflow: hidden;
  border-bottom: none;
  padding-bottom: 20px;
}

.don-header--decor::before {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(168, 224, 99, 0.25);
  top: -40px;
  right: -20px;
}

.don-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--green-dark);
  text-decoration: none;
}

.don-menu-btn,
.don-back {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--green-darker);
  border-radius: 50%;
  cursor: pointer;
  text-decoration: none;
}

.don-header-grid {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  padding: 12px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.don-header-grid .don-brand {
  justify-content: center;
}

.don-main {
  flex: 1;
  padding: 20px 18px 28px;
}

.don-hero-success {
  text-align: center;
  padding: 12px 0 24px;
}

.don-success-icon {
  width: 88px;
  height: 88px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--green-mint);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-dark);
  position: relative;
}

.don-success-icon::after {
  content: "♥";
  position: absolute;
  bottom: 8px;
  right: 8px;
  font-size: 0.75rem;
  color: var(--green-lime);
}

.don-title {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--green-darker);
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.don-title--center {
  text-align: center;
}

.don-sub {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.don-sub--center {
  text-align: center;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

.don-card {
  background: var(--surface);
  border-radius: 16px;
  border: 1px solid var(--border);
  padding: 18px;
  margin-bottom: 14px;
  box-shadow: 0 2px 12px rgba(6, 40, 35, 0.04);
}

.don-amount-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.don-amount-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 14px;
}

.don-campaign-box {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: var(--green-mint);
  border-radius: 12px;
}

.don-campaign-box img {
  width: 72px;
  height: 56px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.don-campaign-kicker {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.don-campaign-name {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--green-darker);
  margin-bottom: 4px;
}

.don-campaign-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.don-card h2 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--green-darker);
  margin-bottom: 12px;
}

.don-kv {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}

.don-kv:last-child {
  border-bottom: none;
}

.don-kv span:first-child {
  color: var(--text-muted);
}

.don-kv strong {
  color: var(--green-darker);
  text-align: right;
}

.don-status-ok {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--green-dark);
  font-weight: 700;
}

.don-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px 18px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  border: none;
  margin-bottom: 10px;
}

.don-btn--lime {
  background: var(--green-lime);
  color: var(--green-darker);
}

.don-btn--outline {
  background: var(--surface);
  border: 1.5px solid var(--green-darker);
  color: var(--green-darker);
}

.don-btn--dark {
  background: var(--green-darker);
  color: #fff;
}

.don-share-card {
  display: flex;
  gap: 12px;
  align-items: center;
}

.don-share-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--green-mint);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.2rem;
}

.don-share-text {
  flex: 1;
  min-width: 0;
}

.don-share-text strong {
  display: block;
  font-size: 0.9rem;
  color: var(--green-darker);
  margin-bottom: 2px;
}

.don-share-text span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.don-foot-demo {
  text-align: center;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-soft);
  margin-top: 16px;
}

/* Processing / failed hero */
.don-status-art {
  width: 140px;
  height: 100px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.don-warn-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--warn-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: var(--warn-text);
}

.don-preview-row {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.don-preview-row img {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
}

.don-preview-meta {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.don-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  margin-left: auto;
}

.don-badge--pending {
  background: var(--pending-bg);
  color: var(--pending-text);
}

.don-badge--failed {
  background: var(--fail-bg);
  color: var(--fail-text);
  border: 1px solid #fecaca;
}

.don-badge--completed {
  background: var(--green-mint);
  color: var(--green-dark);
}

.don-info-box {
  display: flex;
  gap: 10px;
  background: var(--green-mint);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 0.82rem;
  color: var(--green-darker);
  margin-bottom: 16px;
}

.don-text-link {
  display: block;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--green-dark);
  text-decoration: underline;
  background: none;
  border: none;
  font-family: inherit;
  cursor: pointer;
  width: 100%;
  margin-top: 6px;
}

.don-help-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 16px;
  text-decoration: none;
}

/* History hero */
.don-hero-bar {
  background: var(--green-darker);
  color: #fff;
  padding: 16px 18px 20px;
  position: relative;
  overflow: hidden;
}

.don-hero-bar::after {
  content: "";
  position: absolute;
  right: -20px;
  top: 10px;
  width: 100px;
  height: 100px;
  border: 2px solid rgba(168, 224, 99, 0.35);
  border-radius: 50%;
}

.don-hero-bar .don-brand {
  color: #fff;
  margin-bottom: 4px;
}

.don-hero-tagline {
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  opacity: 0.75;
  margin-bottom: 16px;
}

.don-hero-profile {
  position: absolute;
  right: 18px;
  top: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.don-history-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}

.don-history-nav .don-back {
  width: 36px;
  height: 36px;
}

.don-history-nav h1 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--green-darker);
}

.don-history-intro {
  padding: 12px 18px 8px;
  background: var(--surface);
  font-size: 0.85rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.don-filters {
  display: flex;
  gap: 8px;
  padding: 14px 18px;
  background: var(--surface);
  overflow-x: auto;
}

.don-filter {
  flex-shrink: 0;
  padding: 8px 16px;
  border-radius: 999px;
  border: none;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  background: #eef2ef;
  color: var(--green-darker);
  cursor: pointer;
}

.don-filter.is-active {
  background: var(--green-lime);
}

.don-history-list {
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.don-history-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

.don-history-item.is-expanded {
  border-color: var(--green-lime);
}

.don-history-item.is-hidden {
  display: none;
}

.don-history-head {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 10px;
  padding: 14px;
  width: 100%;
  border: none;
  background: transparent;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}

.don-history-head img {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
}

.don-history-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--green-darker);
}

.don-history-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 2px 0 6px;
}

.don-history-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
}

.don-history-chevron {
  color: var(--text-soft);
  font-size: 1.1rem;
  align-self: center;
}

.don-history-body {
  padding: 0 14px 14px;
  border-top: 1px solid var(--border);
}

.don-history-details {
  background: #f3f4f6;
  border-radius: 10px;
  padding: 12px;
  margin: 12px 0;
  font-size: 0.82rem;
}

.don-history-details h3 {
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--green-darker);
}

.don-detail-line {
  display: flex;
  gap: 8px;
  margin-bottom: 6px;
  color: var(--text-muted);
}

.don-detail-line strong {
  color: var(--text);
  margin-left: auto;
}

/* Receipt */
.don-receipt-kicker {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-soft);
  margin-bottom: 14px;
}

.don-receipt-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.don-receipt-amount {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.don-receipt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 12px 0;
  font-size: 0.78rem;
}

.don-receipt-grid span {
  display: block;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.don-receipt-line {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 0.85rem;
  border-bottom: 1px solid var(--border);
}

.don-receipt-total {
  display: flex;
  justify-content: space-between;
  padding: 12px 0 0;
  font-size: 1rem;
  font-weight: 800;
}

.don-receipt-privacy {
  display: flex;
  gap: 8px;
  background: #f3f4f6;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 12px;
}

.don-about-box {
  background: var(--green-mint);
  border-radius: 12px;
  padding: 14px;
  font-size: 0.82rem;
  color: var(--green-darker);
  margin: 16px 0;
}

.don-about-box h3 {
  font-size: 0.88rem;
  margin-bottom: 6px;
}

.don-support-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  font-size: 0.88rem;
  color: var(--green-darker);
  text-decoration: none;
  border: none;
  background: transparent;
  width: 100%;
  cursor: pointer;
  font-family: inherit;
}

.don-support-row span {
  margin-left: auto;
  color: var(--text-soft);
}

.don-method-failed {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
}
