:root {
  --bg: #070912;
  --bg-soft: #0b0f1c;
  --panel: rgba(15, 20, 34, 0.72);
  --panel-strong: rgba(15, 20, 34, 0.94);
  --surface: rgba(255, 255, 255, 0.04);
  --surface-hover: rgba(255, 255, 255, 0.08);
  --text: #f7f8ff;
  --muted: #8f97ac;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);
  --cyan: #4df6ff;
  --purple: #a56cff;
  --pink: #ff61d8;
  --emerald: #34d399;
  --amber: #fbbf24;
  --danger: #fb7185;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  --radius: 24px;
  --max: 1120px;
}

html[data-theme="light"] {
  --bg: #f5f7fb;
  --bg-soft: #edf1f8;
  --panel: rgba(255, 255, 255, 0.8);
  --panel-strong: rgba(255, 255, 255, 0.97);
  --surface: rgba(16, 19, 29, 0.035);
  --surface-hover: rgba(16, 19, 29, 0.07);
  --text: #10131d;
  --muted: #626a7b;
  --line: rgba(16, 19, 29, 0.11);
  --line-strong: rgba(16, 19, 29, 0.22);
  --cyan: #00a9c4;
  --purple: #7a46e6;
  --pink: #d52daa;
  --emerald: #059669;
  --amber: #d97706;
  --danger: #e11d48;
  --shadow: 0 24px 70px rgba(31, 41, 55, 0.12);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px),
    var(--bg);
  background-size: 62px 62px;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  transition: background-color 0.35s ease, color 0.35s ease;
}

a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
::selection { background: var(--cyan); color: #071015; }

[hidden] { display: none !important; }

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}

.ambient {
  position: fixed;
  width: 34rem;
  height: 34rem;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.14;
  pointer-events: none;
  z-index: -1;
}
.ambient-1 { background: var(--cyan); top: -12rem; left: -10rem; }
.ambient-2 { background: var(--purple); right: -12rem; bottom: -10rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: color-mix(in srgb, var(--bg) 76%, transparent);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: #070912;
  background: linear-gradient(135deg, var(--cyan), var(--purple) 60%, var(--pink));
  box-shadow: 0 8px 24px color-mix(in srgb, var(--cyan) 28%, transparent);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand-copy strong {
  font-size: 0.92rem;
  letter-spacing: 0.08em;
}
.brand-copy small {
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.12em;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.payos-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.38rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
}

.payos-badge .status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted);
}

.payos-badge[data-state="demo"] {
  border-color: color-mix(in srgb, var(--amber) 45%, transparent);
  color: var(--amber);
}
.payos-badge[data-state="demo"] .status-dot {
  background: var(--amber);
}

.payos-badge[data-state="live"] {
  border-color: color-mix(in srgb, var(--emerald) 45%, transparent);
  color: var(--emerald);
}
.payos-badge[data-state="live"] .status-dot {
  background: var(--emerald);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--emerald) 60%, transparent);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--emerald) 60%, transparent); }
  70% { box-shadow: 0 0 0 7px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.nav-link {
  padding: 0.42rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 0.84rem;
  font-weight: 500;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.nav-link:hover {
  border-color: var(--cyan);
  background: var(--surface-hover);
  transform: translateY(-1px);
}

.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.theme-toggle:hover {
  border-color: var(--cyan);
  transform: translateY(-1px);
}
.theme-icon { font-size: 1rem; line-height: 1; }
html[data-theme="dark"] .theme-icon.sun { display: block; }
html[data-theme="dark"] .theme-icon.moon { display: none; }
html[data-theme="light"] .theme-icon.sun { display: none; }
html[data-theme="light"] .theme-icon.moon { display: block; }

/* Main Layout */
.page-wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.25rem 3.5rem;
  flex: 1;
}

/* Return Banner */
.return-banner {
  margin-bottom: 1.5rem;
  padding: 1rem 1.25rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--panel-strong);
  backdrop-filter: blur(18px);
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow);
}
.return-banner[data-variant="success"] {
  border-color: color-mix(in srgb, var(--emerald) 55%, transparent);
}
.return-banner[data-variant="cancel"] {
  border-color: color-mix(in srgb, var(--amber) 55%, transparent);
}
.return-banner-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
  background: color-mix(in srgb, var(--emerald) 18%, transparent);
  color: var(--emerald);
}
.return-banner[data-variant="cancel"] .return-banner-icon {
  background: color-mix(in srgb, var(--amber) 18%, transparent);
  color: var(--amber);
}
.return-banner-body { flex: 1; min-width: 0; }
.return-banner-body h2 { margin: 0 0 0.15rem; font-size: 1rem; }
.return-banner-body p { margin: 0; font-size: 0.88rem; color: var(--muted); }
.return-banner-actions { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }

/* Grid */
.donate-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(300px, 0.92fr);
  gap: 1.5rem;
  align-items: start;
}

.glass-card {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  padding: 1.75rem;
  overflow: hidden;
}

.card-glow-line {
  position: absolute;
  top: 0;
  left: 1.5rem;
  right: 1.5rem;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--purple), var(--pink), transparent);
  opacity: 0.8;
}

.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--cyan);
  margin-bottom: 0.55rem;
}

.donate-intro h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.55rem, 3vw, 2.05rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.donate-intro p {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.form-section { margin-bottom: 1.35rem; }

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}

.field-label {
  font-size: 0.86rem;
  font-weight: 600;
}

.hint-text, .char-counter {
  font-size: 0.78rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* Preset Grid */
.preset-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.preset-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.18rem;
  padding: 0.85rem 0.9rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.18s ease, box-shadow 0.2s ease;
}

.preset-btn:hover {
  border-color: color-mix(in srgb, var(--cyan) 65%, transparent);
  background: var(--surface-hover);
  transform: translateY(-2px);
}

.preset-btn.is-active {
  border-color: var(--cyan);
  background: linear-gradient(135deg, color-mix(in srgb, var(--cyan) 16%, transparent), color-mix(in srgb, var(--purple) 14%, transparent));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--cyan) 40%, transparent), 0 10px 26px color-mix(in srgb, var(--cyan) 15%, transparent);
}

.preset-tag {
  position: absolute;
  top: -8px;
  right: 10px;
  padding: 0.14rem 0.48rem;
  border-radius: 999px;
  font-size: 0.64rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  color: #070912;
}

.preset-amount {
  font-weight: 700;
  font-size: 1.02rem;
  font-variant-numeric: tabular-nums;
}

.preset-label {
  font-size: 0.78rem;
  color: var(--muted);
}

/* Custom Money Input */
.add-chips {
  display: flex;
  gap: 0.35rem;
}

.chip-btn {
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.chip-btn:hover {
  border-color: var(--cyan);
  background: var(--surface-hover);
}

.input-money-wrap {
  position: relative;
  display: flex;
  align-items: center;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.input-money-wrap:focus-within {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--cyan) 18%, transparent);
}

.input-money-wrap input {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0.88rem 4.2rem 0.88rem 1rem;
  font-size: 1.25rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  outline: none;
}

.currency-suffix {
  position: absolute;
  right: 1rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted);
  pointer-events: none;
}

.field-error {
  margin: 0.45rem 0 0;
  font-size: 0.82rem;
  color: var(--danger);
}

/* Text Inputs & Toggle */
.text-input {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 0.78rem 0.95rem;
  font-size: 0.94rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}
.text-input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--cyan) 16%, transparent);
}
.text-input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.textarea-input {
  resize: vertical;
  min-height: 82px;
}

.toggle-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  user-select: none;
}
.toggle-switch input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.toggle-track {
  width: 38px;
  height: 22px;
  border-radius: 999px;
  background: var(--surface-hover);
  border: 1px solid var(--line-strong);
  position: relative;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.toggle-track::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--text);
  transition: transform 0.2s ease;
}
.toggle-switch input:checked + .toggle-track {
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  border-color: transparent;
}
.toggle-switch input:checked + .toggle-track::after {
  transform: translateX(16px);
  background: #070912;
}
.toggle-text {
  font-size: 0.8rem;
  color: var(--muted);
}

.msg-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.55rem;
}
.msg-chip {
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 0.76rem;
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.msg-chip:hover {
  border-color: var(--purple);
  color: var(--text);
  background: var(--surface-hover);
}

.form-alert {
  margin-bottom: 1rem;
  padding: 0.75rem 0.95rem;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--danger) 50%, transparent);
  background: color-mix(in srgb, var(--danger) 12%, transparent);
  color: var(--danger);
  font-size: 0.86rem;
}

/* Primary CTA */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.95rem 1.25rem;
  border: 0;
  border-radius: 16px;
  font-weight: 700;
  font-size: 1rem;
  color: #070912;
  background: linear-gradient(135deg, var(--cyan), var(--purple) 60%, var(--pink));
  box-shadow: 0 14px 36px color-mix(in srgb, var(--cyan) 24%, transparent);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}
.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px color-mix(in srgb, var(--cyan) 34%, transparent);
}
.btn-primary:active:not(:disabled) { transform: translateY(0); }
.btn-primary:disabled { opacity: 0.65; cursor: wait; }

.btn-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2.5px solid rgba(7, 9, 18, 0.25);
  border-top-color: #070912;
  animation: spin 0.75s linear infinite;
}
.btn-primary.is-loading .btn-spinner { display: inline-block; }

@keyframes spin { to { transform: rotate(360deg); } }

.btn-ghost {
  padding: 0.72rem 1.1rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.btn-ghost:hover {
  border-color: var(--line-strong);
  background: var(--surface-hover);
}
.btn-sm { padding: 0.45rem 0.8rem; font-size: 0.8rem; border-radius: 10px; }

.btn-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 1.25rem;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.btn-icon:hover { border-color: var(--cyan); }

.trust-row {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.15rem;
  font-size: 0.78rem;
  color: var(--muted);
}
.trust-row li {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
}
.trust-row li::before {
  content: "✓";
  color: var(--cyan);
  font-weight: 700;
}

/* Sidebar */
.sidebar-stack {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.profile-top {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 0.9rem;
}

.avatar-ring {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  padding: 2px;
  background: linear-gradient(135deg, var(--cyan), var(--purple), var(--pink));
  flex-shrink: 0;
}
.avatar-ring span {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  background: var(--bg-soft);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--cyan);
}

.profile-meta h2 { margin: 0 0 0.15rem; font-size: 1.15rem; }
.profile-domain {
  font-size: 0.84rem;
  color: var(--cyan);
  font-weight: 500;
}
.profile-domain:hover { text-decoration: underline; }

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

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.info-pill {
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
  border: 1px solid var(--line);
  background: var(--surface);
}

.sidebar-title {
  margin: 0 0 0.95rem;
  font-size: 0.96rem;
  letter-spacing: 0.01em;
}

.steps-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.steps-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
}
.step-num {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--cyan) 40%, transparent);
  background: color-mix(in srgb, var(--cyan) 10%, transparent);
  color: var(--cyan);
  font-size: 0.74rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.steps-list strong { display: block; font-size: 0.88rem; margin-bottom: 0.12rem; }
.steps-list p { margin: 0; font-size: 0.8rem; color: var(--muted); }

.supporters-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.8rem;
}
.supporters-head .sidebar-title { margin: 0; }

.webhook-tag {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
}

.empty-state {
  text-align: center;
  padding: 1.15rem 0.75rem;
  border-radius: 16px;
  border: 1px dashed var(--line-strong);
  background: var(--surface);
}
.empty-icon {
  font-size: 1.25rem;
  color: var(--purple);
  margin-bottom: 0.35rem;
}
.empty-state p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.15rem 1.25rem;
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
}
.site-footer a { color: var(--cyan); }
.site-footer a:hover { text-decoration: underline; }

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(5, 7, 14, 0.74);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  padding: 1rem;
}

.modal-panel {
  width: 100%;
  max-width: 470px;
  max-height: 92vh;
  overflow-y: auto;
  border-radius: 26px;
  border: 1px solid var(--line-strong);
  background: var(--panel-strong);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.55);
  padding: 1.5rem;
  outline: none;
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.15rem;
}

.modal-mode-pill {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.4rem;
  background: color-mix(in srgb, var(--cyan) 15%, transparent);
  color: var(--cyan);
}
.modal-mode-pill.is-demo {
  background: color-mix(in srgb, var(--amber) 16%, transparent);
  color: var(--amber);
}
.modal-header h2 { margin: 0; font-size: 1.25rem; }

.modal-amount-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  margin-bottom: 1rem;
}
.meta-label { display: block; font-size: 0.74rem; color: var(--muted); }
.meta-amount {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--cyan);
  font-variant-numeric: tabular-nums;
}
.countdown-box { text-align: right; }
.countdown-timer {
  font-size: 1.15rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.qr-stage {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.qr-frame {
  padding: 0.85rem;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
  display: grid;
  place-items: center;
}
.qr-frame canvas, .qr-frame img {
  display: block;
  width: 220px;
  height: 220px;
}

.qr-preview-frame {
  width: 100%;
  padding: 1.15rem;
  border-radius: 20px;
  border: 1px dashed color-mix(in srgb, var(--amber) 55%, transparent);
  background: color-mix(in srgb, var(--amber) 6%, var(--surface));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
}

.qr-preview-pattern {
  position: relative;
  width: 176px;
  height: 176px;
  border-radius: 16px;
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(circle at center, color-mix(in srgb, var(--cyan) 20%, transparent), transparent 65%),
    repeating-linear-gradient(0deg, var(--line) 0 8px, transparent 8px 16px),
    repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 16px);
  display: grid;
  place-items: center;
}
.qr-finder {
  position: absolute;
  width: 34px;
  height: 34px;
  border: 4px solid var(--cyan);
  border-radius: 8px;
}
.qr-finder.tl { top: 12px; left: 12px; }
.qr-finder.tr { top: 12px; right: 12px; border-color: var(--purple); }
.qr-finder.bl { bottom: 12px; left: 12px; border-color: var(--pink); }

.qr-preview-stamp {
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--amber);
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}
.qr-preview-caption {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--amber);
}

.tx-details {
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 0.35rem 0.9rem;
  margin-bottom: 1rem;
}
.tx-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.58rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.85rem;
}
.tx-row:last-child { border-bottom: 0; }
.tx-key { color: var(--muted); flex-shrink: 0; }
.tx-val-wrap {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  text-align: right;
  word-break: break-word;
}
.tx-val-wrap code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
  padding: 0.12rem 0.38rem;
  border-radius: 6px;
  background: var(--surface-hover);
}

.copy-btn {
  padding: 0.22rem 0.52rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--panel);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
}
.copy-btn:hover { border-color: var(--cyan); color: var(--cyan); }

.modal-polling-bar {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.9rem;
  border-radius: 12px;
  background: color-mix(in srgb, var(--cyan) 10%, transparent);
  font-size: 0.82rem;
  color: var(--cyan);
  margin-bottom: 1rem;
}
.pulse-ring {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cyan);
  flex-shrink: 0;
  animation: pulseDot 1.6s infinite;
}

.demo-secret-note {
  margin: 0 0 1rem;
  padding: 0.72rem 0.88rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 0.78rem;
  color: var(--muted);
}
.demo-secret-note code {
  color: var(--cyan);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.modal-actions {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}
.modal-cta { flex: 1; }
.modal-close-action { flex: 0 0 auto; min-width: 96px; }

.modal-success {
  text-align: center;
  padding: 1rem 0 0.25rem;
}
.success-badge {
  width: 64px;
  height: 64px;
  margin: 0 auto 0.9rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.75rem;
  font-weight: 800;
  background: color-mix(in srgb, var(--emerald) 20%, transparent);
  color: var(--emerald);
  border: 2px solid var(--emerald);
}
.modal-success h3 { margin: 0 0 0.4rem; font-size: 1.35rem; }
.modal-success p { margin: 0 0 1.25rem; color: var(--muted); font-size: 0.92rem; }

.copy-toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  background: var(--panel-strong);
  border: 1px solid var(--cyan);
  color: var(--cyan);
  font-size: 0.84rem;
  font-weight: 600;
  box-shadow: var(--shadow);
}

@media (max-width: 900px) {
  .donate-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .page-wrap { padding: 1.25rem 0.9rem 2.5rem; }
  .glass-card { padding: 1.25rem; border-radius: 20px; }
  .preset-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .header-inner { padding: 0.75rem 0.9rem; }
  .payos-badge { display: none; }
  .return-banner { flex-direction: column; align-items: flex-start; }
}
