:root {
	--ff-bg: hsl(224, 10%, 10%);
	--ff-text: hsl(224, 6%, 77%);
	--ff-text-bright: hsl(0, 0%, 100%);
	--ff-muted: hsl(224, 6%, 56%);
	--ff-border: hsl(224, 10%, 23%);
	--ff-surface: hsl(224, 14%, 16%);
	--ff-surface-raised: hsl(224, 12%, 13%);
	--ff-accent: hsl(224, 100%, 60%);
	--ff-accent-high: hsl(224, 100%, 85%);
	--ff-ok: hsl(101, 82%, 63%);
	--ff-warn: hsl(38, 92%, 62%);
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 1.5rem;
	background: var(--ff-bg);
	color: var(--ff-text);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	line-height: 1.5;
}

.page {
	width: 100%;
	max-width: 28rem;
}

.card {
	padding: 1.75rem;
	border: 1px solid var(--ff-border);
	border-radius: 12px;
	background: var(--ff-surface-raised);
	box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

.header {
	margin-bottom: 1.5rem;
	text-align: center;
}

.eyebrow {
	margin: 0 0 0.35rem;
	color: var(--ff-muted);
	font-size: 0.8rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

h1 {
	margin: 0 0 0.5rem;
	font-size: 1.75rem;
	font-weight: 600;
	color: var(--ff-text-bright);
}

.lead {
	margin: 0;
	color: var(--ff-muted);
	font-size: 0.95rem;
}

.panel {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.panel[hidden] {
	display: none;
}

.price-block {
	min-height: 5.25rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
}

.price-block > .muted,
.price-block > .small {
	width: 100%;
}

.price.is-updating {
	opacity: 0.55;
	transition: opacity 0.15s ease;
}

.price {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin: 0;
	text-align: center;
}

.price-eur,
.price-xmr,
.price-detail {
	display: block;
	width: 100%;
}

.price-eur,
.amount-eur {
	margin: 0;
	font-size: 2rem;
	font-weight: 600;
	color: var(--ff-text-bright);
}

.price-xmr,
.amount-xmr {
	margin: 0.25rem 0 0;
	color: var(--ff-muted);
	font-size: 0.95rem;
}

.muted {
	margin: 0;
	color: var(--ff-muted);
}

.complete-summary {
	text-align: center;
}

.panel > .status-row {
	text-align: center;
}

.small {
	font-size: 0.85rem;
}

.status-row {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	text-align: center;
}

.status {
	margin: 0;
	font-weight: 600;
	color: var(--ff-text-bright);
}

.status.ok {
	color: var(--ff-ok);
}

.status.warn {
	color: var(--ff-warn);
}

.timer {
	margin: 0;
	color: var(--ff-muted);
	font-size: 0.9rem;
	font-variant-numeric: tabular-nums;
}

.amount-block {
	text-align: center;
	padding: 0.75rem 0 0.25rem;
}

.qr-wrap {
	display: flex;
	justify-content: center;
}

.qr {
	padding: 0.75rem;
	background: #fff;
	border-radius: 10px;
	line-height: 0;
}

.field {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.field input,
.field select {
	width: 100%;
	padding: 0.75rem;
	border: 1px solid var(--ff-border);
	border-radius: 8px;
	background: var(--ff-surface);
	color: var(--ff-text-bright);
	font: inherit;
}

.price-detail {
	display: block;
	margin-top: 0.35rem;
}

.field-hint {
	margin: 0;
}

.warn-hint {
	color: var(--ff-warn);
	font-weight: 500;
}

.token-block {
	margin-top: 0.5rem;
}

.token {
	font-size: 0.95rem;
	font-weight: 600;
	letter-spacing: 0.04em;
}

.field-label {
	display: block;
	color: var(--ff-muted);
	font-size: 0.8rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.address-row {
	display: flex;
	gap: 0.5rem;
	align-items: flex-start;
}

.address {
	flex: 1;
	margin: 0;
	padding: 0.75rem;
	border: 1px solid var(--ff-border);
	border-radius: 8px;
	background: var(--ff-surface);
	color: var(--ff-text-bright);
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 0.78rem;
	line-height: 1.45;
	word-break: break-all;
}

button {
	padding: 0.75rem 1.1rem;
	border: 1px solid var(--ff-border);
	border-radius: 8px;
	background: var(--ff-surface);
	color: var(--ff-text-bright);
	font: inherit;
	font-weight: 500;
	cursor: pointer;
	transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

button:hover:not(:disabled) {
	border-color: var(--ff-accent);
	color: var(--ff-accent-high);
}

button:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

button.ghost {
	align-self: center;
	background: transparent;
}

.complete-actions {
	display: flex;
	justify-content: center;
}

a.button {
	display: inline-block;
	padding: 0.75rem 1.1rem;
	border: 1px solid var(--ff-border);
	border-radius: 8px;
	background: var(--ff-surface);
	color: var(--ff-text-bright);
	font: inherit;
	font-weight: 500;
	text-align: center;
	text-decoration: none;
	transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

a.button:hover {
	border-color: var(--ff-accent);
	color: var(--ff-accent-high);
}

a.button.primary {
	border-color: var(--ff-accent);
	background: var(--ff-accent);
	color: var(--ff-text-bright);
}

a.button.primary:hover {
	border-color: var(--ff-accent-high);
	background: var(--ff-accent-high);
	color: var(--ff-bg);
}

.hint {
	margin: 0;
	text-align: center;
	font-size: 0.9rem;
}

.back {
	margin: 1.25rem 0 0;
	text-align: center;
	font-size: 0.9rem;
}

a {
	color: var(--ff-muted);
	text-decoration: none;
}

a:hover,
.link {
	color: var(--ff-accent-high);
}

.link {
	text-decoration: underline;
	text-underline-offset: 0.15em;
}
