/* Ziving — private Zcash fundraising.
   Tone: halfway between a charity site and a crypto app — dark, but warm
   and celebratory: coral + gold glows, soft rounded cards, gifts up front. */

:root {
	--bg-deep: #121a17;
	--bg: #1a2420;
	--bg-soft: #24302b;
	--bg-lift: #2c3a34;
	--text: #f6f1e7;
	--muted: #adb5ab;
	--gold: #f2c85c;
	--gold-deep: #d19f33;
	--coral: #ff8d75;
	--coral-deep: #ee6a55;
	--leaf: #7fb18b;
	--leaf-dim: #4a7358;
	--ok: #6bc98a;
	--warn: #e0a45a;
	--danger: #e07878;
	--border: rgba(242, 200, 92, 0.28);
	--radius: 12px;
	--radius-sm: 8px;
	--font: "Outfit", "Segoe UI", sans-serif;
	--display: "Fraunces", Georgia, serif;
	--mono: ui-monospace, "Cascadia Code", "SF Mono", monospace;
	--ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html, body {
	margin: 0;
	padding: 0;
	background: var(--bg-deep);
	color: var(--text);
	font-family: var(--font);
	line-height: 1.55;
	min-height: 100vh;
}

.atmos {
	position: fixed;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background:
		radial-gradient(ellipse 90% 55% at 15% -10%, rgba(127, 177, 139, 0.26), transparent 55%),
		radial-gradient(ellipse 70% 50% at 95% 10%, rgba(242, 200, 92, 0.16), transparent 50%),
		radial-gradient(ellipse 55% 45% at 80% 85%, rgba(255, 141, 117, 0.10), transparent 55%),
		radial-gradient(ellipse 60% 40% at 50% 100%, rgba(74, 115, 88, 0.20), transparent 55%),
		linear-gradient(165deg, #15201c 0%, #1a2420 45%, #121a17 100%);
	animation: atmos-drift 28s var(--ease) infinite alternate;
}
@keyframes atmos-drift {
	from { filter: hue-rotate(0deg) brightness(1); }
	to { filter: hue-rotate(8deg) brightness(1.04); }
}

a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }

.site-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1rem 1.5rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
	background: rgba(18, 26, 23, 0.72);
	backdrop-filter: blur(10px);
	position: sticky;
	top: 0;
	z-index: 20;
}

.brand {
	display: flex;
	align-items: baseline;
	gap: 0;
	font-family: var(--display);
	font-weight: 700;
	font-size: 1.4rem;
	color: var(--text);
	text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand__mark { color: var(--gold); }
.brand__name { letter-spacing: -0.02em; }
.brand__tag {
	font-family: var(--font);
	font-size: 0.62rem;
	letter-spacing: 0.14em;
	color: var(--muted);
	font-weight: 600;
	margin-left: 0.2rem;
}

.site-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	font-size: 0.9rem;
}
.site-nav a { color: var(--muted); }
.site-nav a:hover { color: var(--gold); text-decoration: none; }

.site-header__connect {
	font: inherit;
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--gold);
	background: rgba(201, 162, 39, 0.12);
	border: 1px solid rgba(201, 162, 39, 0.35);
	border-radius: 999px;
	padding: 0.28rem 0.85rem;
	cursor: pointer;
	transition: background 0.15s var(--ease), color 0.15s var(--ease);
}
.site-header__connect:hover {
	background: rgba(201, 162, 39, 0.22);
	color: #f0d878;
	text-decoration: none;
}
.site-header__connect.is-connected {
	color: var(--text);
	background: rgba(255, 255, 255, 0.06);
	border-color: rgba(255, 255, 255, 0.12);
	font-family: var(--mono);
	font-size: 0.78rem;
	font-weight: 500;
}
.site-header__connect:disabled { opacity: 0.6; cursor: wait; }

main { max-width: 920px; margin: 0 auto; padding: 0 1.5rem 4rem; }

.hero {
	min-height: min(78vh, 640px);
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 3rem 0 2.5rem;
	animation: hero-in 0.9s var(--ease) both;
}
@keyframes hero-in {
	from { opacity: 0; transform: translateY(18px); }
	to { opacity: 1; transform: none; }
}

.brand-hero {
	font-family: var(--display);
	font-size: clamp(3.2rem, 12vw, 5.5rem);
	font-weight: 700;
	line-height: 0.95;
	margin: 0 0 1rem;
	letter-spacing: -0.03em;
}
.brand-hero__z { color: var(--gold); }

.hero__headline {
	font-family: var(--display);
	font-size: clamp(1.35rem, 3.5vw, 1.85rem);
	font-weight: 500;
	margin: 0 0 0.85rem;
	color: var(--text);
	max-width: 18ch;
}
.hero__lead {
	max-width: 32rem;
	margin: 0 0 1rem;
	color: var(--muted);
	font-size: 1.05rem;
}
.hero__warn {
	max-width: 36rem;
	margin: 0 0 1.75rem;
	padding: 0.75rem 0.9rem;
	border-left: 3px solid var(--gold);
	background: rgba(212, 175, 55, 0.08);
	color: var(--muted);
	font-size: 0.9rem;
	line-height: 1.45;
}
.hero__warn strong { color: var(--text); }
.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	padding: 0.7rem 1.25rem;
	border-radius: var(--radius);
	border: 1px solid transparent;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	transition: transform 0.15s var(--ease), background 0.15s ease, border-color 0.15s ease;
}
/* .btn sets display, which otherwise overrides the UA [hidden] rule */
.btn[hidden], [hidden] { display: none !important; }
.btn:active { transform: scale(0.98); }
.btn--primary {
	background: linear-gradient(135deg, var(--gold), var(--coral-deep));
	color: #241205;
	box-shadow: 0 6px 18px rgba(238, 106, 85, 0.22);
}
.btn--primary:hover { filter: brightness(1.07); transform: translateY(-1px); }
.btn--ghost {
	background: transparent;
	border-color: rgba(255, 255, 255, 0.18);
	color: var(--text);
}
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn--sm { padding: 0.45rem 0.85rem; font-size: 0.88rem; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

.section-title {
	font-family: var(--display);
	font-size: 1.55rem;
	font-weight: 500;
	margin: 2.75rem 0 0.5rem;
}
.section-title .accent { color: var(--gold); }
.section-lead {
	color: var(--muted);
	margin: 0 0 1.25rem;
	font-size: 0.95rem;
}

.featured-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 0.85rem;
}
.featured-item {
	display: block;
	padding: 1.1rem 1.2rem;
	border: 1px solid rgba(255, 255, 255, 0.09);
	border-radius: var(--radius);
	background: linear-gradient(160deg, rgba(242, 200, 92, 0.07), rgba(36, 48, 43, 0.85));
	color: inherit;
	text-decoration: none;
	transition: transform 0.2s var(--ease), border-color 0.2s ease, box-shadow 0.2s ease;
}
.featured-item:hover {
	text-decoration: none;
	transform: translateY(-3px);
	border-color: var(--border);
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
}
.featured-item__title {
	font-family: var(--display);
	font-size: 1.2rem;
	font-weight: 500;
	margin: 0 0 0.25rem;
}
.featured-item__who {
	color: var(--text);
	font-size: 0.9rem;
	margin: 0 0 0.3rem;
}
.featured-item__meta {
	color: var(--muted);
	font-size: 0.88rem;
}

.pitch {
	margin: 2.5rem 0;
	padding: 1.5rem 0;
	border-top: 1px solid rgba(255, 255, 255, 0.07);
	border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.pitch__line {
	margin: 0.55rem 0;
	color: var(--muted);
	font-size: 1.02rem;
}
.pitch__line strong { color: var(--text); font-weight: 600; }

.how-steps {
	list-style: none;
	padding: 0;
	margin: 0;
	counter-reset: how;
}
.how-steps li {
	counter-increment: how;
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 0.35rem 1rem;
	padding: 1rem 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.how-steps li::before {
	content: counter(how);
	font-family: var(--display);
	font-size: 1.4rem;
	color: var(--gold);
	grid-row: span 2;
	align-self: start;
	line-height: 1.2;
}
.how-steps strong { color: var(--text); }
.how-steps span { color: var(--muted); font-size: 0.94rem; grid-column: 2; }

.privacy-list {
	list-style: none;
	padding: 0;
	margin: 0;
}
.privacy-list li {
	padding: 0.55rem 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
	color: var(--muted);
	font-size: 0.94rem;
}
.privacy-list li::before {
	content: "·";
	color: var(--leaf);
	margin-right: 0.65rem;
	font-weight: 700;
}

.campaign-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
	gap: 1.5rem;
	align-items: start;
	padding-top: 1.5rem;
}
.campaign-main { min-width: 0; }
.campaign-layout .donate-card {
	position: sticky;
	top: 1rem;
}
@media (max-width: 720px) {
	.campaign-layout { grid-template-columns: 1fr; }
	.campaign-layout .donate-card { position: static; }
}

.campaign-hero {
	display: grid;
	grid-template-columns: 1fr minmax(220px, 280px);
	gap: 1.5rem;
	align-items: start;
	padding-top: 1.5rem;
}
@media (max-width: 720px) {
	.campaign-hero { grid-template-columns: 1fr; }
}

.campaign-title {
	font-family: var(--display);
	margin: 0 0 0.5rem;
	font-size: clamp(1.6rem, 4vw, 2.2rem);
	font-weight: 500;
}
/* Who benefits / what they get — the bit a donor should be able to read
   without reading. Sits above the story and outweighs it visually. */
.campaign-benefit {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 0.35rem 1rem;
	margin: 0 0 1rem;
	padding: 0.9rem 1rem;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.035);
	border: 1px solid rgba(255, 255, 255, 0.07);
}
.campaign-benefit dt {
	color: var(--muted);
	font-size: 0.72rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	white-space: nowrap;
	padding-top: 0.15rem;
}
.campaign-benefit dd {
	margin: 0;
	color: var(--text);
	font-size: 1rem;
	line-height: 1.45;
}
.benefit__tag {
	display: inline-block;
	margin-left: 0.5rem;
	padding: 0.1rem 0.5rem;
	border-radius: 999px;
	background: rgba(127, 177, 139, 0.14);
	border: 1px solid rgba(127, 177, 139, 0.3);
	color: var(--muted);
	font-size: 0.7rem;
	white-space: nowrap;
}
@media (max-width: 30rem) {
	.campaign-benefit { grid-template-columns: 1fr; gap: 0.15rem; }
	.campaign-benefit dd { margin-bottom: 0.5rem; }
}
.campaign-story {
	white-space: pre-wrap;
	color: var(--muted);
	margin: 0 0 0.85rem;
}
.campaign-edited {
	margin: 0 0 0.6rem;
	color: var(--muted);
	font-size: 0.78rem;
}
/* A text button that reads as a link — used for "edit" beside the page URL,
   where a real button would look like a commitment. */
.link-btn {
	appearance: none;
	background: none;
	border: 0;
	padding: 0;
	font: inherit;
	color: var(--accent);
	text-decoration: underline;
	text-underline-offset: 2px;
	cursor: pointer;
}
.link-btn:hover { color: var(--gold); }
.slug-line {
	display: flex;
	align-items: baseline;
	gap: 0.5rem;
	flex-wrap: wrap;
}

.campaign-unverified {
	margin: 0 0 1.25rem;
	padding: 0.65rem 0.8rem;
	border-left: 3px solid rgba(224, 164, 90, 0.7);
	background: rgba(224, 164, 90, 0.08);
	color: var(--muted);
	font-size: 0.86rem;
	line-height: 1.45;
}
.campaign-unverified__cta {
	display: inline-block;
	margin-top: 0.35rem;
}

.campaign-xlink {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	flex-wrap: wrap;
	margin: 0 0 0.85rem;
	padding: 0.35rem 0.75rem;
	border-radius: 999px;
	background: rgba(127, 177, 139, 0.12);
	border: 1px solid rgba(127, 177, 139, 0.35);
	color: var(--muted);
	font-size: 0.82rem;
}
.campaign-xlink a { color: var(--text); font-weight: 600; }

.trust-banner {
	max-width: 52rem;
	margin: 0 auto 2rem;
	padding: 0.9rem 1.1rem;
	border: 1px solid rgba(224, 164, 90, 0.35);
	border-radius: var(--radius);
	background: rgba(224, 164, 90, 0.07);
	color: var(--muted);
	font-size: 0.88rem;
	line-height: 1.5;
}
.trust-banner strong { color: var(--text); }

.progress { margin: 1rem 0 1.25rem; }
.progress__bar {
	height: 8px;
	border-radius: 2px;
	background: var(--bg-soft);
	overflow: hidden;
}
.progress__fill {
	height: 100%;
	background: linear-gradient(90deg, var(--leaf-dim), var(--gold), var(--coral));
	transition: width 0.5s var(--ease);
}
.progress__nums {
	display: flex;
	justify-content: space-between;
	margin-top: 0.45rem;
	font-size: 0.88rem;
	color: var(--muted);
}
.progress__raised { color: var(--gold); font-weight: 700; font-size: 1.1rem; }

.donate-card {
	background: var(--bg-soft);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: var(--radius);
	padding: 1.25rem;
	text-align: center;
}
.donate-card__qr-wrap {
	margin: 0.75rem auto;
	padding: 10px;
	background: #fff;
	border-radius: 4px;
	width: fit-content;
	line-height: 0;
}
.donate-card__qr-wrap[hidden] { display: none !important; }
.donate-card__qr {
	display: block;
	max-width: 100%;
}
.donate-card__addr {
	font-family: var(--mono);
	font-size: 0.72rem;
	word-break: break-all;
	color: var(--muted);
	margin: 0.75rem 0 0.4rem;
	text-align: left;
}
.donate-card__copy-row {
	display: flex;
	justify-content: flex-start;
	margin-bottom: 0.35rem;
}
.donate-card__sep {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin: 1rem 0 0.85rem;
	color: var(--muted);
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}
.donate-card__sep::before,
.donate-card__sep::after {
	content: "";
	flex: 1;
	height: 1px;
	background: rgba(255, 255, 255, 0.12);
}
.donate-card__fields {
	text-align: left;
	margin: 0 0 0.85rem;
}
.donate-card__fields .field { margin-bottom: 0.65rem; }
.donate-card__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	justify-content: center;
	margin-bottom: 0.35rem;
}
.donate-card__hint {
	font-size: 0.82rem;
	color: var(--muted);
	margin-top: 0.55rem;
	text-align: left;
	line-height: 1.45;
}
.donate-card__hint--sm {
	font-size: 0.75rem;
	margin-top: 0.45rem;
	text-align: center;
}
.donate-kit {
	text-align: left;
	margin: 1rem 0 0.5rem;
	padding-top: 0.85rem;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.donate-kit__title {
	font-size: 0.95rem;
	margin: 0 0 0.35rem;
	font-weight: 600;
}
.donate-kit .field { margin-bottom: 0.65rem; }
.donate-kit__status--warn { color: var(--warn, #e8a54b); }
.donate-card__cosign { margin-top: 0.75rem; }
.pay-card__qr-wrap[hidden] { display: none !important; }

.donations { margin-top: 1.75rem; }
.donation-row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 1rem;
	padding: 0.75rem 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.donation-row__amt { color: var(--gold); font-weight: 700; white-space: nowrap; }
.donation-row__memo { color: var(--text); flex: 1; }
.donation-row__meta { color: var(--muted); font-size: 0.78rem; white-space: nowrap; }
/* Unconfirmed gift: shown immediately, muted + italic until it confirms. */
.donation-row--pending { font-style: italic; opacity: 0.65; }
.donation-row--pending .donation-row__amt { color: var(--muted); }
.donation-row--pending .donation-row__meta { color: var(--gold); opacity: 0.8; }

.status-pill {
	display: inline-block;
	padding: 0.2rem 0.55rem;
	border-radius: 3px;
	font-size: 0.72rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}
.status-pill--active { background: rgba(107, 201, 138, 0.15); color: var(--ok); }
.status-pill--paused { background: rgba(224, 164, 90, 0.15); color: var(--warn); }

dialog {
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 10px;
	padding: 0;
	background: var(--bg);
	color: var(--text);
	max-width: 560px;
	width: calc(100% - 2rem);
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}
dialog::backdrop {
	background: rgba(8, 12, 10, 0.72);
	backdrop-filter: blur(5px);
}
.dialog-inner { padding: 1.35rem 1.5rem 1.5rem; }
.wizard__head h2 {
	font-family: var(--display);
	font-weight: 500;
	margin: 0 0 0.35rem;
}
.wizard__head .sub { color: var(--muted); font-size: 0.9rem; margin: 0 0 1rem; }

.wizard__steps {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	list-style: none;
	padding: 0;
	margin: 0 0 1.35rem;
}
.wizard__steps li {
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	padding: 0.35rem 0.65rem;
	border-radius: 3px;
	color: var(--muted);
	border: 1px solid transparent;
	opacity: 0.55;
	cursor: pointer;
	user-select: none;
}
.wizard__steps li:hover { opacity: 0.9; color: var(--text); }
.wizard__steps li.is-active {
	opacity: 1;
	color: var(--gold);
	border-color: var(--border);
	background: rgba(228, 184, 74, 0.08);
	cursor: default;
}
.wizard__steps li.is-done {
	opacity: 0.9;
	color: var(--leaf);
}

.wallet-modes {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin: 0 0 1rem;
}
.wallet-mode {
	font: inherit;
	font-size: 0.82rem;
	font-weight: 600;
	padding: 0.4rem 0.85rem;
	border-radius: 4px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	background: transparent;
	color: var(--muted);
	cursor: pointer;
}
.wallet-mode.is-active {
	color: var(--bg-deep);
	background: var(--gold);
	border-color: var(--gold);
}
.wallet-panel { margin-bottom: 0.5rem; }
.wallet-created {
	margin-top: 1rem;
	padding-top: 0.85rem;
	border-top: 1px dashed rgba(255, 255, 255, 0.12);
}
.wallet-created__label {
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--warn);
	margin: 0 0 0.35rem;
}
.wallet-phrase {
	font-family: var(--mono);
	font-size: 0.88rem;
	line-height: 1.55;
	padding: 0.75rem;
	background: var(--bg-deep);
	border-radius: 4px;
	border: 1px solid rgba(224, 164, 90, 0.35);
	word-break: break-word;
	margin: 0;
}
.wallet-confirm {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	margin-top: 0.85rem;
	font-size: 0.88rem;
	color: var(--muted);
	cursor: pointer;
}
.wallet-confirm input { margin-top: 0.2rem; }
#create-submit:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.wizard-pane[hidden] { display: none; }
.wizard-pane.is-active {
	animation: pane-in 0.35s var(--ease) both;
}
@keyframes pane-in {
	from { opacity: 0; transform: translateX(10px); }
	to { opacity: 1; transform: none; }
}

.wizard-note {
	color: var(--muted);
	font-size: 0.9rem;
	margin: 0 0 1rem;
}
.plan-callout {
	padding: 0.9rem 0;
	border-top: 1px dashed rgba(255, 255, 255, 0.12);
	color: var(--muted);
	font-size: 0.88rem;
}
.create-review {
	color: var(--muted);
	font-size: 0.92rem;
	line-height: 1.6;
}
.create-review strong { color: var(--text); }

.field { margin-bottom: 1rem; }
.field label {
	display: block;
	font-size: 0.82rem;
	font-weight: 600;
	margin-bottom: 0.35rem;
	color: var(--muted);
}
.field input, .field textarea, .field select {
	width: 100%;
	padding: 0.65rem 0.75rem;
	border-radius: 4px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	background: var(--bg-deep);
	color: var(--text);
	font: inherit;
}
.field textarea { min-height: 100px; resize: vertical; }
.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
	border-color: var(--danger);
	background: rgba(224, 120, 120, 0.06);
}
/* The long story is folded away — it's optional, and an open textarea reads
   as an obligation to fill it. */
.field--fold > summary {
	cursor: pointer;
	color: var(--muted);
	font-size: 0.85rem;
	padding: 0.35rem 0;
}
.field--fold > summary:hover { color: var(--text); }
.field--fold[open] > summary { margin-bottom: 0.5rem; }
.field__hint { font-size: 0.78rem; color: var(--muted); margin-top: 0.3rem; }
.field__hint--warn {
	color: #f0d878;
	background: rgba(201, 162, 39, 0.1);
	border: 1px solid rgba(201, 162, 39, 0.28);
	border-radius: 0.45rem;
	padding: 0.65rem 0.75rem;
	margin: 0 0 0.85rem;
	line-height: 1.45;
}
.field__hint--warn strong { color: #fde68a; }

.wallet-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0.5rem 0 1rem;
}
.wallet-links a {
	font-size: 0.82rem;
	padding: 0.35rem 0.65rem;
	border-radius: 4px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	color: var(--text);
}
.wallet-links a:hover { border-color: var(--gold); color: var(--gold); text-decoration: none; }

.form-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	justify-content: flex-end;
	margin-top: 1.25rem;
}

.result-box {
	margin-top: 1rem;
	padding: 1rem;
	border-radius: 6px;
	background: rgba(107, 201, 138, 0.08);
	border: 1px solid rgba(107, 201, 138, 0.28);
	font-size: 0.88rem;
}
.result-box code {
	font-family: var(--mono);
	font-size: 0.8rem;
	word-break: break-all;
}
.result-box--warn {
	background: rgba(224, 164, 90, 0.08);
	border-color: rgba(224, 164, 90, 0.35);
}

.create-success {
	margin-top: 1rem;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}
.create-success__lede {
	margin: 0;
	font-size: 1.05rem;
	color: var(--text);
}
.create-success__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}
.create-success__token {
	font-size: 0.85rem;
	color: var(--muted);
}
.create-success__token--urgent {
	padding: 0.85rem 0.95rem;
	border-radius: var(--radius);
	background: rgba(201, 162, 39, 0.08);
	border: 1px solid rgba(201, 162, 39, 0.3);
}
.create-success__token summary {
	cursor: pointer;
	color: var(--text);
	font-weight: 500;
}
.create-success__token code {
	display: block;
	margin-top: 0.5rem;
	word-break: break-all;
	font-family: var(--mono);
	font-size: 0.78rem;
	padding: 0.55rem 0.65rem;
	background: rgba(0, 0, 0, 0.25);
	border-radius: 0.35rem;
	color: var(--text);
	user-select: all;
}

.pay-card {
	padding: 1.15rem 1.2rem;
	border-radius: var(--radius);
	background: rgba(107, 201, 138, 0.07);
	border: 1px solid rgba(107, 201, 138, 0.28);
}
.pay-card__title {
	margin: 0 0 0.65rem;
	font-family: var(--display);
	font-weight: 500;
	font-size: 1.15rem;
}
.pay-card__amount {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.55rem 0.85rem;
	margin: 0 0 1rem;
}
.pay-card__amount-val {
	font-size: 1.35rem;
	font-weight: 600;
	color: var(--gold);
	font-variant-numeric: tabular-nums;
}
.pay-card__credit {
	color: var(--muted);
	font-size: 0.88rem;
}
.pay-card__amount-pick {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	flex-wrap: wrap;
}
.pay-card__amount-select {
	padding: 0.3rem 0.5rem;
	font: inherit;
	font-size: 0.85rem;
	color: var(--text);
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 8px;
}
.pay-card__body {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 1rem 1.25rem;
	align-items: start;
}
@media (max-width: 640px) {
	.pay-card__body { grid-template-columns: 1fr; justify-items: center; }
	.pay-card__fields { width: 100%; }
}
.pay-card__qr-wrap {
	padding: 0.5rem;
	background: #fff;
	border-radius: 6px;
	line-height: 0;
}
.pay-card__qr { display: block; width: 200px; height: 200px; max-width: 100%; }
.pay-row {
	margin-bottom: 0.85rem;
}
.pay-row__label {
	display: block;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--muted);
	margin-bottom: 0.3rem;
}
.pay-row__value {
	display: flex;
	align-items: flex-start;
	gap: 0.4rem;
}
.pay-row__code {
	flex: 1;
	min-width: 0;
	font-family: var(--mono);
	font-size: 0.78rem;
	word-break: break-all;
	color: var(--text);
	line-height: 1.45;
}
.pay-row__code--memo {
	font-size: 0.95rem;
	font-weight: 600;
	letter-spacing: 0.02em;
}
.pay-card__note {
	margin: 0.85rem 0 0;
	font-size: 0.82rem;
	color: var(--muted);
	line-height: 1.5;
}

.btn-icon {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	padding: 0;
	border-radius: 4px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	background: rgba(255, 255, 255, 0.04);
	color: var(--muted);
	cursor: pointer;
}
.btn-icon:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.28); }
.btn-icon.is-copied {
	color: var(--gold);
	border-color: rgba(212, 175, 55, 0.45);
}

.unlock-modes { margin: 0 0 1rem; }

.manage-block {
	margin-top: 1.25rem;
	padding-top: 1.25rem;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.manage-block h3 {
	font-family: var(--display);
	font-weight: 500;
	margin: 0 0 0.5rem;
}

.site-footer {
	text-align: center;
	padding: 2rem 1.5rem;
	color: var(--muted);
	font-size: 0.82rem;
	border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.site-footer code { font-family: var(--mono); font-size: 0.75rem; }

.empty-state {
	text-align: center;
	padding: 2rem;
	color: var(--muted);
}

.card {
	/* Interaction / manage panels only — not a marketing card grid */
	background: var(--bg-soft);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: var(--radius);
	padding: 1.25rem 1.35rem;
}
.card h3 { margin: 0 0 0.5rem; font-family: var(--display); font-weight: 500; }
.card p { margin: 0; color: var(--muted); font-size: 0.94rem; }

/* ── Homepage: friendly hero note (replaces the stern warn box) ────── */

.hero__note {
	max-width: 38rem;
	margin: 0 0 1.75rem;
	color: var(--muted);
	font-size: 0.92rem;
	line-height: 1.5;
}
.hero__note strong { color: var(--text); }

/* ── Homepage: USP tiles ───────────────────────────────────────────── */

.usp-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 0.85rem;
	margin: 1.5rem 0 0.5rem;
}
.usp {
	padding: 1.1rem 1.15rem;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: var(--radius);
	background: rgba(36, 48, 43, 0.6);
}
.usp__emoji { font-size: 1.5rem; line-height: 1; display: block; margin-bottom: 0.5rem; }
.usp strong { display: block; margin-bottom: 0.25rem; color: var(--text); }
.usp span { color: var(--muted); font-size: 0.88rem; line-height: 1.45; }

/* ── Homepage: live activity (latest gifts + newest pages) ─────────── */

.activity-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 1.75rem;
	align-items: start;
}
@media (max-width: 720px) {
	.activity-grid { grid-template-columns: 1fr; }
}
.activity-col h3 {
	font-family: var(--display);
	font-weight: 500;
	font-size: 1.15rem;
	margin: 0 0 0.75rem;
}
.gift-row {
	display: flex;
	align-items: baseline;
	gap: 0.65rem;
	padding: 0.6rem 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
	color: inherit;
	text-decoration: none;
	transition: background 0.15s ease;
}
.gift-row:hover { text-decoration: none; background: rgba(255, 255, 255, 0.02); }
.gift-row__amt {
	color: var(--gold);
	font-weight: 700;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}
.gift-row__what {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: var(--text);
	font-size: 0.94rem;
}
.gift-row__what .to { color: var(--muted); }
.gift-row__when { color: var(--muted); font-size: 0.78rem; white-space: nowrap; }
.page-card {
	display: block;
	padding: 0.9rem 1rem;
	margin-bottom: 0.65rem;
	border: 1px solid rgba(255, 255, 255, 0.09);
	border-radius: var(--radius-sm);
	background: rgba(36, 48, 43, 0.6);
	color: inherit;
	text-decoration: none;
	transition: transform 0.2s var(--ease), border-color 0.2s ease;
}
.page-card:hover { text-decoration: none; transform: translateY(-2px); border-color: var(--border); }
.page-card__title {
	font-family: var(--display);
	font-weight: 500;
	font-size: 1.05rem;
	margin: 0 0 0.15rem;
}
.page-card__meta { color: var(--muted); font-size: 0.84rem; }
.page-card__meta .raised { color: var(--gold); font-weight: 600; }
.activity-empty {
	color: var(--muted);
	font-size: 0.9rem;
	padding: 0.5rem 0 1rem;
}

/* Arriving at Manage from a #hash: say which card was meant. */
.manage-block.is-flagged {
	outline: 2px solid var(--gold);
	outline-offset: 3px;
	transition: outline-color 0.4s ease;
}
