
:root {
  color-scheme: dark;
  --bg: #050b13;
  --panel: #0a1625;
  --panel-2: #0d1b2d;
  --line: #22334a;
  --text: #f4f7fb;
  --muted: #9eafc3;
  --cyan: #55d6ed;
  --cyan-2: #35baf0;
  --orange: #f7931a;
  --green: #68df8a;
  --danger: #ff6b78;
  --radius: 26px;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 15%, rgba(31, 115, 169, .18), transparent 31rem),
    radial-gradient(circle at 91% 23%, rgba(247, 147, 26, .09), transparent 28rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button, select, a { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 92px;
  padding: 16px clamp(18px, 4vw, 48px);
  border-bottom: 1px solid rgba(92, 126, 164, .25);
  background: rgba(5, 11, 19, .91);
  backdrop-filter: blur(18px);
}

.brand { display: flex; align-items: center; gap: 16px; min-width: 0; }
.brand-mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 62px;
  aspect-ratio: 1;
  border-radius: 18px;
  background: linear-gradient(145deg, #ffac47, var(--orange));
  color: white;
  font-size: 36px;
  font-weight: 800;
  box-shadow: 0 12px 38px rgba(247, 147, 26, .22);
}
.brand-copy { display: grid; gap: 4px; min-width: 0; }
.brand-copy strong { font-size: clamp(19px, 3vw, 28px); letter-spacing: .14em; white-space: nowrap; }
.brand-copy small { color: var(--muted); letter-spacing: .18em; white-space: nowrap; }

.language-control select {
  min-width: 150px;
  height: 54px;
  padding: 0 42px 0 18px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #091425;
}

.page-shell {
  width: min(100%, 1120px);
  margin-inline: auto;
  padding: 34px clamp(16px, 3vw, 34px) 70px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 30px;
}
.trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(9, 20, 36, .78);
}
.trust-row i {
  width: 11px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 16px rgba(104, 223, 138, .8);
}

.donate-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(13, 29, 48, .97), rgba(6, 15, 26, .98));
  box-shadow: 0 28px 80px rgba(0, 0, 0, .32);
}

.intro { padding: clamp(24px, 5vw, 52px); border-bottom: 1px solid var(--line); }
.eyebrow { margin: 0 0 12px; color: var(--cyan); font-weight: 800; letter-spacing: .13em; }
h1 { margin: 0; font-size: clamp(34px, 7vw, 70px); line-height: .98; }
.intro p:last-child { max-width: 760px; margin: 20px 0 0; color: var(--muted); font-size: 18px; line-height: 1.7; }

.qr-panel { padding: clamp(22px, 5vw, 54px); text-align: center; }
.qr-frame {
  width: min(100%, 620px);
  aspect-ratio: 1 / 1;
  margin-inline: auto;
  padding: clamp(18px, 4vw, 42px);
  border-radius: clamp(20px, 4vw, 42px);
  background: #fff;
}
.qr-frame img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  image-rendering: pixelated;
}
.scan-note { margin: 28px 0 0; color: var(--muted); font-size: 18px; }

.wallet-panel {
  display: grid;
  gap: 18px;
  padding: clamp(22px, 5vw, 52px);
  border-top: 1px solid var(--line);
  background: rgba(3, 9, 16, .35);
}
.network-line { display: flex; justify-content: space-between; gap: 18px; color: var(--muted); }
.network-line strong { color: var(--green); }
.address-label { color: var(--muted); font-weight: 700; }
.address-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}
.address-box code {
  min-width: 0;
  padding: 18px;
  overflow-wrap: anywhere;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #050d18;
  color: #cceeff;
  font-size: clamp(13px, 2.3vw, 17px);
  line-height: 1.55;
}
.address-box button, .actions > * {
  min-height: 56px;
  padding: 0 22px;
  border-radius: 16px;
  font-weight: 800;
  cursor: pointer;
}
.address-box button {
  border: 1px solid var(--line);
  background: #0f2034;
  color: var(--text);
}
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.primary-action, .secondary-action { display: grid; place-items: center; text-align: center; }
.primary-action { background: linear-gradient(100deg, var(--cyan), var(--cyan-2)); color: #03101a; }
.secondary-action { border: 1px solid var(--line); background: transparent; color: var(--text); }
.security-note { margin: 4px 0 0; color: var(--muted); line-height: 1.6; }
.verification-result { min-height: 24px; color: var(--green); font-weight: 700; }
.verification-result.error { color: var(--danger); }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 700px) {
  .site-header { min-height: 76px; padding: 12px 14px; }
  .brand { gap: 10px; }
  .brand-mark { width: 48px; border-radius: 14px; font-size: 28px; }
  .brand-copy strong { font-size: 17px; letter-spacing: .1em; }
  .brand-copy small { display: none; }
  .language-control select { min-width: 112px; height: 48px; padding-left: 12px; }
  .page-shell { padding-top: 22px; }
  .trust-row { gap: 9px; }
  .trust-row span { min-height: 41px; padding: 0 13px; font-size: 13px; }
  .intro, .qr-panel, .wallet-panel { padding-inline: 18px; }
  .qr-frame {
    width: min(100%, calc(100vw - 72px));
    padding: 16px;
    border-radius: 22px;
  }
  .address-box, .actions { grid-template-columns: 1fr; }
  .address-box button { min-height: 52px; }
  .network-line { align-items: flex-start; flex-direction: column; gap: 6px; }
}
