:root {
  --bg: #f5f1e7;
  --surface: rgba(250, 248, 243, 0.92);
  --surface-strong: #fffdfa;
  --text: #223047;
  --muted: #617188;
  --line: rgba(28, 108, 86, 0.16);
  --line-soft: rgba(194, 166, 102, 0.22);
  --primary: #176f63;
  --primary-dark: #11574d;
  --gold: #c7a45d;
  --gold-soft: rgba(199, 164, 93, 0.14);
  --success-bg: rgba(23, 111, 99, 0.1);
  --warning-bg: rgba(199, 164, 93, 0.16);
  --danger-bg: rgba(185, 68, 68, 0.12);
  --shadow: 0 30px 70px rgba(55, 46, 24, 0.12);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(199, 164, 93, 0.18), transparent 30%),
    radial-gradient(circle at top right, rgba(23, 111, 99, 0.12), transparent 34%),
    linear-gradient(180deg, #fbfaf6 0%, var(--bg) 100%);
}

.page-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 26px;
}

.donation-card {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 620px;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  padding: 30px;
  backdrop-filter: blur(10px);
}

.ornament {
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.ornament-left {
  width: 180px;
  height: 180px;
  left: -80px;
  top: -80px;
  background: radial-gradient(circle, rgba(199, 164, 93, 0.14), transparent 68%);
}

.ornament-right {
  width: 220px;
  height: 220px;
  right: -120px;
  bottom: -120px;
  background: radial-gradient(circle, rgba(23, 111, 99, 0.12), transparent 68%);
}

.brand-row {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}

.brand-kicker {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand-row h1,
.status-card h1 {
  margin: 0;
  font-size: 34px;
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
}

.secure-badge,
.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 11px 16px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.secure-badge {
  color: var(--primary);
  background: rgba(23, 111, 99, 0.1);
  border: 1px solid rgba(23, 111, 99, 0.08);
}

.status-pill {
  width: fit-content;
  margin-bottom: 18px;
  background: rgba(97, 113, 136, 0.12);
  color: var(--muted);
}

.status-pill.success {
  background: var(--success-bg);
  color: var(--primary);
}

.status-pill.process,
.status-pill.unpaid {
  background: var(--warning-bg);
  color: #8a6623;
}

.status-pill.failed,
.status-pill.expired {
  background: var(--danger-bg);
  color: #b23c3c;
}

.hero-box,
.info-box,
.prayer-box,
.dua-box,
.detail-item {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.54);
}

.hero-box,
.info-box,
.prayer-box,
.dua-box {
  padding: 20px;
}

.hero-box {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.hero-icon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(23, 111, 99, 0.14), rgba(199, 164, 93, 0.14));
  color: var(--primary);
  font-size: 26px;
}

.hero-box strong,
.info-box strong,
.prayer-box strong,
.dua-box strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}

.hero-box p,
.info-box p,
.status-copy,
.helper-text,
.prayer-box p,
.dua-box p,
.footer-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.donation-form {
  display: block;
}

.field-label {
  display: block;
  margin-bottom: 10px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.money-panel {
  margin-bottom: 18px;
}

.money-input-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 22px;
  background: var(--surface-strong);
  border: 1px solid rgba(23, 111, 99, 0.12);
  box-shadow: inset 0 0 0 1px rgba(199, 164, 93, 0.06);
}

.money-input-wrap span {
  flex-shrink: 0;
  color: var(--primary);
  font-weight: 800;
  font-size: 18px;
}

.money-input-wrap input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  color: var(--text);
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.04em;
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
}

.helper-text {
  margin: 14px 0 0;
  font-size: 13px;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: none;
  border-radius: 18px;
  padding: 16px 18px;
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.18s ease, opacity 0.18s ease, box-shadow 0.18s ease;
}

.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-1px);
}

.primary-button {
  width: 100%;
  color: #fff;
  background: linear-gradient(180deg, #1b8b7d 0%, var(--primary) 100%);
  box-shadow: 0 18px 30px rgba(23, 111, 99, 0.24);
}

.primary-button[disabled] {
  opacity: 0.72;
  cursor: not-allowed;
  transform: none;
}

.secondary-button {
  color: var(--primary);
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(23, 111, 99, 0.14);
}

.compact-link {
  width: auto;
}

.alert {
  margin-bottom: 16px;
  padding: 13px 14px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.6;
}

.alert.error {
  background: rgba(185, 68, 68, 0.12);
  color: #b43f3f;
}

.alert.info {
  background: rgba(23, 111, 99, 0.1);
  color: var(--primary);
}

.hidden {
  display: none !important;
}

.footer-copy {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
}

.footer-copy-mark {
  color: var(--gold);
  font-size: 16px;
  line-height: 1.7;
}

.status-card {
  display: block;
}

.info-box {
  margin: 18px 0 22px;
}

.prayer-box {
  margin: 18px 0 24px;
  background: linear-gradient(180deg, rgba(199, 164, 93, 0.08), rgba(255, 255, 255, 0.5));
}

.dua-box {
  margin-bottom: 24px;
  background: linear-gradient(180deg, rgba(23, 111, 99, 0.06), rgba(255, 255, 255, 0.5));
}

.dua-box .arabic {
  display: block;
  margin-top: 10px;
  color: var(--primary-dark);
  font-size: 25px;
  line-height: 1.8;
  text-align: right;
  font-family: "Times New Roman", Georgia, serif;
}

.detail-list {
  display: grid;
  gap: 12px;
  margin: 24px 0;
}

.detail-item {
  padding: 16px 18px;
}

.detail-item span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 6px;
}

.detail-item strong {
  display: block;
  word-break: break-word;
  font-size: 15px;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 640px) {
  .page-shell {
    padding: 16px;
  }

  .donation-card {
    padding: 22px;
    border-radius: 26px;
  }

  .brand-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .brand-row h1,
  .status-card h1 {
    font-size: 30px;
  }

  .hero-box {
    flex-direction: column;
  }

  .money-input-wrap input {
    font-size: 28px;
  }

  .dua-box .arabic {
    font-size: 21px;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
  }
}
