:root {
  --ink: #0f172a;
  --muted: #64748b;
  --line: rgba(148, 163, 184, 0.32);
  --panel: rgba(255, 255, 255, 0.88);
  --teal: #5ecdb8;
  --orange: #ff9f2d;
  --gold: #fbbf24;
  --navy: #111f28;
  --success: #10b981;
  --danger: #ef4444;
  --shadow: 0 28px 80px rgba(15, 23, 42, 0.18);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 8%, rgba(94, 205, 184, 0.24), transparent 26rem),
    radial-gradient(circle at 92% 10%, rgba(255, 159, 45, 0.22), transparent 30rem),
    linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
}

.site-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 56px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 34px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo {
  width: 58px;
  height: 58px;
  object-fit: contain;
  filter: drop-shadow(0 12px 20px rgba(15, 23, 42, 0.18));
}

.brand strong {
  display: block;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.brand small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.8rem;
}

.mock-pill,
.receipt-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(245, 158, 11, 0.32);
  border-radius: 999px;
  background: rgba(255, 247, 237, 0.9);
  color: #9a3412;
  padding: 9px 14px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) 450px;
  gap: 28px;
  align-items: stretch;
}

.hero-copy,
.donation-panel,
.story-card,
.qr-card,
.receipt-card,
.storage-card {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 34px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-copy {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 5vw, 56px);
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(17, 31, 40, 0.92)),
    url('/charity-owl.png') center right 24px / 280px no-repeat;
  color: #fff;
}

.hero-copy::after {
  content: "";
  position: absolute;
  inset: auto -120px -180px auto;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: rgba(94, 205, 184, 0.22);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-copy h1 {
  position: relative;
  max-width: 740px;
  margin: 0;
  font-size: clamp(2.6rem, 6vw, 5.3rem);
  line-height: 0.9;
  letter-spacing: -0.08em;
}

.hero-lede {
  position: relative;
  max-width: 690px;
  margin: 24px 0 0;
  color: #dbeafe;
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.72;
}

.notice-card {
  position: relative;
  max-width: 700px;
  margin-top: 24px;
  border: 1px solid rgba(94, 205, 184, 0.28);
  border-radius: 22px;
  padding: 16px 18px;
  background: rgba(15, 23, 42, 0.56);
  color: #e2e8f0;
  line-height: 1.55;
}

.notice-card strong {
  color: #fff;
}

.impact-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 26px;
}

.impact-grid div {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.08);
}

.impact-grid strong {
  display: block;
  color: #fff;
  font-size: 0.98rem;
}

.impact-grid span {
  display: block;
  margin-top: 8px;
  color: #cbd5e1;
  font-size: 0.9rem;
  line-height: 1.45;
}

.donation-panel {
  padding: 26px;
}

.panel-header {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.secure-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--success);
  box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.12);
}

.field-grid {
  display: grid;
  gap: 14px;
}

label span {
  display: block;
  margin-bottom: 7px;
  color: #334155;
  font-size: 0.84rem;
  font-weight: 800;
}

input {
  width: 100%;
  border: 1px solid #dbe3ef;
  border-radius: 16px;
  outline: none;
  background: #fff;
  padding: 14px 15px;
  color: var(--ink);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(94, 205, 184, 0.2);
}

.amount-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 16px 0;
}

.amount-chip,
.secondary-button,
.ghost-button {
  border: 1px solid #d8e2ee;
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  padding: 12px 14px;
  font-weight: 900;
  cursor: pointer;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.amount-chip:hover,
.secondary-button:hover,
.ghost-button:hover,
.pay-button:hover {
  transform: translateY(-1px);
}

.amount-chip.is-active {
  border-color: var(--orange);
  background: rgba(255, 159, 45, 0.1);
  color: #9a3412;
}

.check-row {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 11px;
  align-items: start;
  margin: 12px 0 18px;
  color: #475569;
  line-height: 1.45;
}

.check-row input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--teal);
}

.check-row span {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
}

.pay-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  width: 100%;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, #635bff, #0a2540 46%, #00d4a0);
  color: white;
  padding: 16px 18px;
  font-size: 1rem;
  font-weight: 950;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.26);
  cursor: pointer;
}

.pay-button:disabled {
  cursor: wait;
  filter: grayscale(0.4);
  opacity: 0.72;
}

.card-icon {
  width: 28px;
  height: 18px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.92);
  position: relative;
}

.card-icon::before {
  content: "";
  position: absolute;
  inset: 4px 0 auto;
  height: 4px;
  background: rgba(15, 23, 42, 0.24);
}

.form-footnote {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
  text-align: center;
}

.content-grid,
.storage-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 24px;
}

.story-card,
.qr-card,
.storage-card,
.receipt-card {
  padding: 28px;
}

.story-card h2,
.qr-card h2,
.storage-card h2,
.receipt-card h2 {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.story-card p,
.qr-card p,
.storage-card p {
  color: var(--muted);
  line-height: 1.75;
}

.story-stub {
  margin-top: 22px;
  border: 1px dashed rgba(255, 159, 45, 0.6);
  border-radius: 22px;
  background: rgba(255, 247, 237, 0.7);
  padding: 18px;
}

.story-stub span {
  display: inline-flex;
  margin-bottom: 8px;
  color: #9a3412;
  font-size: 0.82rem;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.story-stub p {
  margin: 0;
}

.qr-card {
  display: grid;
  grid-template-columns: 1fr 160px;
  gap: 20px;
  align-items: center;
}

.qr-preview {
  width: 160px;
  height: 160px;
  border-radius: 22px;
  border: 10px solid #fff;
  background: #fff;
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.16);
}

code {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  padding: 2px 6px;
  color: #0f766e;
  font-size: 0.9em;
}

.receipt-section {
  margin-top: 24px;
}

.receipt-card {
  border-color: rgba(16, 185, 129, 0.34);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(240, 253, 250, 0.92));
}

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

.receipt-status {
  border-color: rgba(16, 185, 129, 0.32);
  background: rgba(236, 253, 245, 0.92);
  color: #047857;
  white-space: nowrap;
}

.receipt-details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 0;
}

.receipt-details div {
  border: 1px solid #dbe3ef;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
  padding: 14px;
}

.receipt-details dt {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.receipt-details dd {
  margin: 0;
  color: var(--ink);
  font-weight: 850;
  overflow-wrap: anywhere;
}

.receipt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.ghost-button {
  background: transparent;
}

.receipt-list {
  display: grid;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
}

.receipt-list li,
.lookup-results .lookup-item {
  border: 1px solid #dbe3ef;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.75);
  padding: 14px;
  color: #334155;
  line-height: 1.45;
}

.receipt-list strong,
.lookup-results strong {
  color: var(--ink);
}

.lookup-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
  margin-top: 16px;
}

.lookup-results {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.lookup-results a {
  display: inline-block;
  margin-top: 8px;
  color: #0f766e;
  font-weight: 900;
  text-decoration: none;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(20px);
  opacity: 0;
  pointer-events: none;
  max-width: min(520px, calc(100% - 28px));
  border-radius: 16px;
  background: #0f172a;
  color: #fff;
  padding: 14px 16px;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.28);
  transition: opacity 180ms ease, transform 180ms ease;
  z-index: 20;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 980px) {
  .hero-section,
  .content-grid,
  .storage-section {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(17, 31, 40, 0.92));
  }
}

@media (max-width: 720px) {
  .topbar,
  .receipt-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .impact-grid,
  .receipt-details,
  .lookup-form,
  .qr-card {
    grid-template-columns: 1fr;
  }

  .qr-preview {
    width: 180px;
    height: 180px;
  }
}
