/* ProxyTun — dark theme site chrome + marketing page utilities */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=DM+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
	--radius: 0.75rem;

	--background: oklch(0.16 0.012 250);
	--foreground: oklch(0.97 0.005 240);

	--card: oklch(0.19 0.015 250);
	--card-foreground: oklch(0.97 0.005 240);

	--primary: oklch(0.78 0.16 220);
	--primary-foreground: oklch(0.14 0.02 250);

	--secondary: oklch(0.24 0.018 250);
	--secondary-foreground: oklch(0.93 0.008 240);

	--muted: oklch(0.22 0.014 250);
	--muted-foreground: oklch(0.65 0.02 240);

	--accent: oklch(0.27 0.03 220);
	--accent-foreground: oklch(0.95 0.01 230);

	--destructive: oklch(0.65 0.22 27);
	--destructive-foreground: oklch(0.98 0.01 27);

	--border: oklch(1 0 0 / 12%);
	--input: oklch(1 0 0 / 14%);
	--ring: oklch(0.78 0.16 220 / 55%);

	--electric: oklch(0.82 0.17 218);

	--font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
	--font-sans: "DM Sans", ui-sans-serif, system-ui, sans-serif;
	--font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

	--shadow-glow: 0 0 0 1px oklch(0.78 0.16 220 / 25%), 0 8px 30px -8px oklch(0.78 0.16 220 / 45%);
}

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

html, body {
	margin: 0;
	padding: 0;
	min-height: 100%;
}

body {
	background: var(--background);
	color: var(--foreground);
	font-family: var(--font-sans);
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
	font-family: var(--font-display);
	letter-spacing: -0.01em;
	line-height: 1.15;
	margin: 0 0 0.75rem;
	color: var(--foreground);
}

p { margin: 0 0 1rem; color: color-mix(in srgb, var(--foreground) 82%, transparent); }

a { color: var(--electric); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

code, kbd {
	font-family: var(--font-mono);
	background: var(--secondary);
	padding: 0.1rem 0.4rem;
	border-radius: 0.3rem;
	font-size: 0.9em;
	color: var(--foreground);
}
kbd { border: 1px solid var(--border); }

::selection { background: color-mix(in srgb, var(--primary) 45%, transparent); color: var(--primary-foreground); }

hr { border: none; border-top: 1px solid var(--border); }

/* =========================================================
   Custom utilities (marketing page)
   ========================================================= */

.bg-grid {
	background-image:
		linear-gradient(to right, oklch(1 0 0 / 6%) 1px, transparent 1px),
		linear-gradient(to bottom, oklch(1 0 0 / 6%) 1px, transparent 1px);
	background-size: 56px 56px;
	-webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 100%);
	mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 100%);
}

.text-gradient {
	background-image: linear-gradient(90deg, var(--primary), var(--electric));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.glow-ring {
	box-shadow: var(--shadow-glow);
}

.card-surface {
	background: color-mix(in srgb, var(--card) 88%, transparent);
	border: 1px solid var(--border);
	box-shadow: 0 1px 0 0 oklch(1 0 0 / 4%) inset, 0 20px 50px -30px oklch(0 0 0 / 60%);
}

.flow-line {
	stroke-dasharray: 6 6;
	animation: flow 2.4s linear infinite;
}

@keyframes flow {
	from { stroke-dashoffset: 24; }
	to { stroke-dashoffset: 0; }
}

/* Tailwind-utility fallbacks — kept in sync with the tokens above so the
   marketing page (application/views/home/index.php) renders correctly even
   if the Tailwind CDN config in the layout hasn't been wired to these
   semantic color names yet. Real Tailwind utilities (if configured) will
   simply match these same values. */
.bg-background { background-color: var(--background); }
.text-foreground { color: var(--foreground); }
.bg-foreground { background-color: var(--foreground); }
.text-background { color: var(--background); }
.bg-card { background-color: var(--card); }
.text-card-foreground { color: var(--card-foreground); }
.bg-primary { background-color: var(--primary); }
.text-primary { color: var(--primary); }
.text-primary-foreground { color: var(--primary-foreground); }
.bg-secondary { background-color: var(--secondary); }
.text-secondary-foreground { color: var(--secondary-foreground); }
.bg-muted { background-color: var(--muted); }
.text-muted-foreground { color: var(--muted-foreground); }
.bg-accent { background-color: var(--accent); }
.text-accent-foreground { color: var(--accent-foreground); }
.border-border { border-color: var(--border); }
.bg-electric { background-color: var(--electric); }
.text-electric { color: var(--electric); }
.shadow-electric { box-shadow: 0 0 12px var(--electric); }
.font-display { font-family: var(--font-display); }
.font-sans { font-family: var(--font-sans); }
.font-mono { font-family: var(--font-mono); }

/* =========================================================
   Site chrome
   ========================================================= */

.site-header {
	position: sticky; top: 0; z-index: 40;
	backdrop-filter: blur(10px);
	background: color-mix(in srgb, var(--background) 82%, transparent);
	border-bottom: 1px solid var(--border);
}
.site-header-inner {
	max-width: 72rem; margin: 0 auto; padding: 0.85rem 1.25rem;
	display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand {
	display: flex; align-items: center; gap: 0.6rem; color: var(--foreground); text-decoration: none; font-weight: 700;
	font-family: var(--font-display);
}
.brand:hover { text-decoration: none; }
.brand-mark {
	width: 1.9rem; height: 1.9rem; border-radius: 0.5rem;
	background: linear-gradient(135deg, var(--primary), var(--electric));
	color: var(--primary-foreground);
	display: grid; place-items: center; font-size: 0.75rem; font-family: var(--font-display); font-weight: 700;
	box-shadow: var(--shadow-glow);
}
.brand-ver { font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted-foreground); font-weight: 500; }
.nav { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.nav a { color: var(--muted-foreground); font-size: 0.92rem; font-weight: 500; }
.nav a:hover { color: var(--foreground); text-decoration: none; }

.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-weight: 600; font-size: 0.95rem; cursor: pointer; text-decoration: none;
	font-family: var(--font-sans); transition: transform .15s ease, box-shadow .15s ease, background .15s, opacity .15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: var(--primary-foreground); box-shadow: var(--shadow-glow); }
.btn-primary:hover { filter: brightness(1.05); color: var(--primary-foreground); }
.btn-secondary { background: var(--secondary); color: var(--secondary-foreground); border-color: var(--border); }
.btn-secondary:hover { background: color-mix(in srgb, var(--secondary) 80%, var(--foreground) 6%); }
.btn-ghost { background: transparent; color: var(--foreground); border-color: var(--border); }
.btn-ghost:hover { background: color-mix(in srgb, var(--card) 60%, transparent); }
.btn-sm { padding: 0.45rem 0.85rem; font-size: 0.85rem; }
.btn-block { width: 100%; }

.site-main { min-height: 60vh; }
.hero-bg {
	background:
		radial-gradient(1200px 500px at 10% -10%, oklch(0.78 0.16 220 / 16%), transparent 60%),
		radial-gradient(900px 400px at 90% 0%, oklch(0.82 0.17 218 / 14%), transparent 60%);
}
.page {
	max-width: 48rem; margin: 0 auto; padding: 3rem 1.25rem 4rem;
}
.page.wide { max-width: 72rem; }
.eyebrow {
	font-family: var(--font-mono); font-size: 0.8rem; color: var(--electric);
	margin-bottom: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase;
}
.lead { font-size: 1.1rem; color: var(--muted-foreground); max-width: 40rem; }

.section { padding: 3.5rem 1.25rem; }
.section-inner { max-width: 72rem; margin: 0 auto; }
.section h2 { font-size: 1.75rem; margin-bottom: 0.5rem; }
.section-lead { color: var(--muted-foreground); margin-bottom: 2rem; max-width: 36rem; }

.grid-3 { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid-2 { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.feature {
	padding: 1.25rem; border-radius: calc(var(--radius) + 2px);
	background: color-mix(in srgb, var(--card) 70%, transparent);
	border: 1px solid var(--border);
}
.feature h3 { font-size: 1rem; margin-bottom: 0.35rem; }
.feature p { font-size: 0.95rem; margin: 0; }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 1.5rem 0; }
.steps li {
	position: relative; padding: 1rem 0 1rem 3.25rem;
	border-bottom: 1px solid var(--border);
}
.steps li::before {
	counter-increment: step; content: counter(step);
	position: absolute; left: 0; top: 1rem;
	width: 2.1rem; height: 2.1rem; border-radius: 999px;
	background: var(--primary); color: var(--primary-foreground);
	display: grid; place-items: center; font-family: var(--font-mono); font-size: 0.85rem; font-weight: 600;
}
.steps strong { display: block; margin-bottom: 0.2rem; color: var(--foreground); }

.compare {
	width: 100%; border-collapse: collapse; margin: 1.5rem 0;
	font-size: 0.95rem;
}
.compare th, .compare td {
	text-align: left; padding: 0.85rem 1rem; border-bottom: 1px solid var(--border);
}
.compare th { font-family: var(--font-mono); font-size: 0.85rem; color: var(--muted-foreground); }
.compare td:nth-child(3) { color: var(--electric); font-weight: 600; }
.yes { color: oklch(0.75 0.16 150); }
.no { color: var(--muted-foreground); }

.price-cards { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin: 2rem 0; }
.price-card {
	border: 1px solid var(--border); border-radius: calc(var(--radius) + 4px);
	padding: 1.5rem; background: var(--card); position: relative;
}
.price-card.featured { border-color: var(--primary); box-shadow: var(--shadow-glow); }
.price-card .term { font-family: var(--font-mono); font-size: 0.85rem; color: var(--muted-foreground); }
.price-card .amount { font-size: 2rem; font-family: var(--font-display); font-weight: 700; margin: 0.4rem 0; color: var(--foreground); }
.price-card .amount span { font-size: 0.95rem; font-weight: 500; color: var(--muted-foreground); }
.price-card ul { list-style: none; padding: 0; margin: 1rem 0; font-size: 0.92rem; }
.price-card li { padding: 0.3rem 0 0.3rem 1.3rem; position: relative; }
.price-card li::before { content: "✓"; position: absolute; left: 0; color: var(--electric); font-weight: 700; }

.form { display: grid; gap: 1rem; max-width: 28rem; }
.form label { display: grid; gap: 0.35rem; font-weight: 600; font-size: 0.9rem; color: var(--foreground); }
.form input, .form select, .form textarea {
	font: inherit; padding: 0.7rem 0.85rem; border-radius: var(--radius);
	border: 1px solid var(--input); background: var(--card); color: var(--foreground);
}
.form input:focus, .form select:focus, .form textarea:focus {
	outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--ring);
}
.form textarea { min-height: 120px; resize: vertical; }
.form .hint { font-weight: 400; font-size: 0.85rem; color: var(--muted-foreground); }
.radio-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.radio-pill {
	display: inline-flex; align-items: center; gap: 0.4rem;
	padding: 0.55rem 0.9rem; border: 1px solid var(--border); border-radius: var(--radius);
	background: var(--card); cursor: pointer; font-weight: 500; color: var(--foreground);
}
.radio-pill:has(input:checked) { border-color: var(--primary); background: var(--accent); }

.alert {
	padding: 0.85rem 1rem; border-radius: var(--radius); margin-bottom: 1rem; font-size: 0.95rem;
	border: 1px solid var(--border);
}
.alert-ok { background: oklch(0.30 0.06 150 / 40%); color: oklch(0.85 0.12 150); border-color: oklch(0.5 0.1 150 / 40%); }
.alert-err { background: oklch(0.32 0.09 25 / 40%); color: oklch(0.85 0.12 20); border-color: oklch(0.55 0.15 25 / 40%); }
.alert-info { background: var(--accent); color: var(--accent-foreground); border-color: var(--border); }

.code-box {
	font-family: var(--font-mono); font-size: 1.25rem; letter-spacing: 0.04em;
	padding: 1rem 1.25rem; background: var(--secondary); border-radius: var(--radius);
	border: 1px dashed var(--primary); display: flex; align-items: center; justify-content: space-between; gap: 1rem;
	word-break: break-all; color: var(--foreground);
}

.faq details {
	border-bottom: 1px solid var(--border); padding: 1rem 0;
}
.faq summary {
	cursor: pointer; font-weight: 600; font-family: var(--font-mono); font-size: 0.98rem;
	list-style: none; color: var(--foreground);
}
.faq summary::-webkit-details-marker { display: none; }
.faq details[open] summary { color: var(--electric); }
.faq details p { margin-top: 0.75rem; }

.prose h2 { margin-top: 2.25rem; font-size: 1.25rem; }
.prose ul, .prose ol { margin: 0.75rem 0 1.25rem 1.25rem; }
.prose li { margin-bottom: 0.35rem; }

.site-footer {
	border-top: 1px solid var(--border); background: color-mix(in srgb, var(--muted) 60%, var(--background));
	padding: 3rem 1.25rem 2rem; margin-top: 2rem;
}
.footer-inner { max-width: 72rem; margin: 0 auto; display: grid; gap: 2rem; grid-template-columns: 1.4fr repeat(3, 1fr); }
.footer-inner h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted-foreground); }
.footer-inner a { display: block; color: var(--muted-foreground); margin: 0.35rem 0; font-size: 0.92rem; }
.footer-blurb { color: var(--muted-foreground); font-size: 0.92rem; max-width: 18rem; }
.footer-copy { max-width: 72rem; margin: 2rem auto 0; padding-top: 1.5rem; border-top: 1px solid var(--border); color: var(--muted-foreground); font-size: 0.85rem; }

.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.badge {
	display: inline-flex; align-items: center; gap: 0.35rem;
	font-family: var(--font-mono); font-size: 0.75rem; padding: 0.3rem 0.7rem;
	border-radius: 999px; background: var(--secondary); color: var(--secondary-foreground); border: 1px solid var(--border);
}

/* =========================================================
   Admin (light theme)
   ========================================================= */

body.admin-theme {
	--background: oklch(0.985 0.004 250);
	--foreground: oklch(0.24 0.02 250);

	--card: oklch(1 0 0);
	--card-foreground: oklch(0.24 0.02 250);

	--primary: oklch(0.52 0.13 220);
	--primary-foreground: oklch(0.99 0.005 220);

	--secondary: oklch(0.955 0.008 250);
	--secondary-foreground: oklch(0.3 0.02 250);

	--muted: oklch(0.96 0.006 250);
	--muted-foreground: oklch(0.48 0.015 240);

	--accent: oklch(0.94 0.025 220);
	--accent-foreground: oklch(0.28 0.04 230);

	--destructive: oklch(0.55 0.2 27);
	--destructive-foreground: oklch(0.99 0.01 27);

	--border: oklch(0.88 0.01 250);
	--input: oklch(0.82 0.01 250);
	--ring: oklch(0.52 0.13 220 / 30%);

	--electric: oklch(0.48 0.12 218);

	--shadow-glow: 0 0 0 1px oklch(0.52 0.13 220 / 12%), 0 8px 24px -12px oklch(0.4 0.08 250 / 18%);
}

body.admin-theme .alert-ok {
	background: oklch(0.94 0.04 150); color: oklch(0.35 0.1 150); border-color: oklch(0.82 0.06 150);
}
body.admin-theme .alert-err {
	background: oklch(0.95 0.03 25); color: oklch(0.42 0.14 25); border-color: oklch(0.85 0.06 25);
}

.admin-wrap { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; background: var(--background); }
.admin-nav {
	background: #fff; color: var(--foreground);
	padding: 1.5rem 1rem; border-right: 1px solid var(--border);
}
.admin-nav-brand {
	font-family: var(--font-display); font-weight: 700;
	margin-bottom: 1.5rem; color: var(--foreground);
}
.admin-nav-email {
	margin-top: 2rem; font-size: 0.75rem; color: var(--muted-foreground);
}
.admin-nav a {
	display: block; color: var(--muted-foreground);
	padding: 0.5rem 0.75rem; border-radius: 0.4rem; margin-bottom: 0.25rem;
}
.admin-nav a:hover, .admin-nav a.active {
	background: var(--accent); color: var(--accent-foreground); text-decoration: none;
}
.admin-main { padding: 1.75rem 2rem 3rem; max-width: 100%; color: var(--foreground); }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.admin-table th, .admin-table td { text-align: left; padding: 0.65rem 0.5rem; border-bottom: 1px solid var(--border); }
.admin-table th { font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted-foreground); }

.secret-field { display: flex; gap: 0.4rem; align-items: stretch; }
.secret-field input { flex: 1; min-width: 0; }
.btn-icon-trash {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.5rem; flex-shrink: 0; padding: 0;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--secondary); color: var(--muted-foreground); cursor: pointer;
}
.btn-icon-trash:hover { color: #b91c1c; border-color: #fecaca; background: #fef2f2; }

.status { font-family: var(--font-mono); font-size: 0.75rem; padding: 0.15rem 0.5rem; border-radius: 0.3rem; display: inline-block; }
.status-pending_redemption { background: #fef3c7; color: #92400e; }
.status-active { background: #dcfce7; color: #166534; }
.status-revoked { background: #fee2e2; color: #991b1b; }
.status-paid { background: #dcfce7; color: #166534; }
.status-pending { background: #f1f5f9; color: #475569; }

@media (max-width: 800px) {
	.footer-inner { grid-template-columns: 1fr 1fr; }
	.admin-wrap { grid-template-columns: 1fr; }
	.nav { display: none; }
	.site-header-inner { justify-content: space-between; }
}
@media (max-width: 520px) {
	.footer-inner { grid-template-columns: 1fr; }
	h1 { font-size: 1.75rem; }
}


/* Checkout / crypto payment */
.checkout-wrap { padding-top: 2.5rem; }
.checkout-grid {
  display: grid; gap: 1.5rem; grid-template-columns: 1.4fr 0.9fr;
  align-items: start; margin-top: 1.5rem;
}
.pay-card, .summary-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px); padding: 1.35rem 1.4rem;
}
.summary-card { position: sticky; top: 5rem; }
.summary-card h2 { font-size: 1rem; margin-bottom: 1rem; }
.summary-row {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 0.55rem 0; border-bottom: 1px solid var(--border); font-size: 0.92rem;
}
.summary-row span { color: var(--muted-foreground); }
.summary-row strong { font-family: var(--font-mono); font-size: 0.88rem; text-align: right; word-break: break-all; }

.pay-steps {
  list-style: none; padding: 0; margin: 1.25rem 0 0;
  display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem;
}
.pay-steps li {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-size: 0.88rem; color: var(--muted-foreground); font-weight: 500;
}
.pay-steps li span {
  width: 1.5rem; height: 1.5rem; border-radius: 999px;
  display: grid; place-items: center; font-family: var(--font-mono); font-size: 0.75rem;
  background: var(--secondary); border: 1px solid var(--border);
}
.pay-steps li.is-active { color: var(--foreground); font-weight: 600; }
.pay-steps li.is-active span { background: var(--primary); color: var(--primary-foreground); border-color: var(--primary); }
.pay-steps li.is-done { color: var(--foreground); }
.pay-steps li.is-done span { background: #d4edda; color: #155724; border-color: #b7e4c7; }

.coin-grid {
  display: grid; gap: 0.85rem;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  margin-top: 1.5rem;
}
.coin-card-form { margin: 0; }
.coin-card {
  display: flex; align-items: center; gap: 0.85rem; width: 100%; text-align: left;
  padding: 1rem 1.1rem; border: 1px solid var(--border); border-radius: calc(var(--radius) + 2px);
  background: var(--card); cursor: pointer; font: inherit; color: inherit;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
button.coin-card:hover {
  border-color: var(--primary); box-shadow: var(--shadow-glow); transform: translateY(-1px);
}
button.coin-card:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
.coin-card.is-disabled { opacity: 0.55; cursor: not-allowed; }
.coin-logo { width: 40px; height: 40px; border-radius: 999px; object-fit: cover; flex-shrink: 0; }
.coin-logo-fallback {
  display: grid; place-items: center; background: var(--secondary);
  font-family: var(--font-mono); font-weight: 700; color: var(--primary);
}
.coin-card-body { min-width: 0; flex: 1; }
.coin-card-title { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.55rem; }
.coin-card-estimate { margin-top: 0.25rem; font-family: var(--font-mono); font-size: 0.88rem; }
.coin-card-estimate.muted { color: var(--muted-foreground); font-family: var(--font-sans); font-size: 0.85rem; }
.badge-network {
  display: inline-flex; align-items: center;
  font-family: var(--font-mono); font-size: 0.7rem; font-weight: 600;
  padding: 0.15rem 0.45rem; border-radius: 0.3rem;
  background: var(--accent); color: var(--accent-foreground); border: 1px solid var(--border);
}

.copy-field { margin-top: 1rem; }
.copy-field-label {
  font-size: 0.8rem; font-weight: 600; color: var(--muted-foreground);
  margin-bottom: 0.35rem; text-transform: uppercase; letter-spacing: 0.03em;
}
.copy-field-row {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 0.85rem; background: var(--secondary);
  border: 1px solid var(--border); border-radius: var(--radius);
}
.copy-field-row code {
  flex: 1; min-width: 0; background: transparent; padding: 0;
  font-size: 0.95rem; word-break: break-all; color: var(--foreground);
}
.copy-field-unit {
  font-family: var(--font-mono); font-size: 0.85rem; font-weight: 600;
  color: var(--muted-foreground); flex-shrink: 0;
}
.copy-field-row .btn { flex-shrink: 0; }

.qr-frame {
  display: grid; place-items: center;
  margin: 0 auto 1.25rem; padding: 1rem;
  width: fit-content; background: #fff;
  border: 1px solid var(--border); border-radius: var(--radius);
}
.qr-frame img { display: block; width: 220px; height: 220px; }

.notice-warn {
  margin-top: 1rem; padding: 0.85rem 1rem; border-radius: var(--radius);
  background: #fff8e8; color: #7a5b12; border: 1px solid #f0dfb0; font-size: 0.9rem;
}
.notice-warn strong { color: #5c430c; }

.status-live {
  display: flex; align-items: center; gap: 0.65rem;
  margin-top: 1.25rem; padding: 0.85rem 1rem;
  background: var(--muted); border-radius: var(--radius); font-size: 0.95rem; font-weight: 500;
}
.status-dot {
  width: 0.65rem; height: 0.65rem; border-radius: 999px; background: var(--primary);
  box-shadow: 0 0 0 0 rgba(91, 74, 219, 0.45);
  animation: status-pulse 1.6s ease-out infinite;
}
.spinner {
  width: 1rem; height: 1rem; border-radius: 999px;
  border: 2px solid var(--border); border-top-color: var(--primary);
  animation: spin 0.8s linear infinite; flex-shrink: 0;
}
@keyframes status-pulse {
  0% { box-shadow: 0 0 0 0 rgba(91, 74, 219, 0.45); }
  70% { box-shadow: 0 0 0 8px rgba(91, 74, 219, 0); }
  100% { box-shadow: 0 0 0 0 rgba(91, 74, 219, 0); }
}
@keyframes spin { to { transform: rotate(360deg); } }

.coin-admin-list { display: grid; gap: 0.5rem; margin: 0.75rem 0 1rem; }
.coin-admin-row {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  padding: 0.65rem 0.75rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card);
}
.coin-admin-meta { display: grid; gap: 0.15rem; min-width: 0; }
.coin-admin-meta strong { font-family: var(--font-mono); font-size: 0.9rem; }
.coin-admin-add { display: grid; gap: 0.75rem; margin-bottom: 1rem; }

/* Admin settings layout */
.settings-page { max-width: 56rem; }
.settings-header {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem;
  margin-bottom: 1.5rem;
}
.settings-header h1 { margin-bottom: 0.25rem; }
.settings-sub { margin: 0; color: var(--muted-foreground); font-size: 0.95rem; }
.settings-form { display: grid; gap: 1.25rem; }
.settings-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px); padding: 1.35rem 1.5rem;
}
.settings-card-head { margin-bottom: 1.1rem; }
.settings-card-head h2 {
  display: flex; align-items: center; gap: 0.55rem; flex-wrap: wrap;
  font-size: 1.05rem; margin: 0 0 0.25rem;
}
.settings-card-head p { margin: 0; color: var(--muted-foreground); font-size: 0.9rem; }
.settings-form label {
  display: grid; gap: 0.35rem; font-weight: 600; font-size: 0.88rem;
}
.settings-form input:not([type="checkbox"]):not([type="radio"]),
.settings-form select, .settings-form textarea {
  font: inherit; padding: 0.65rem 0.8rem; border-radius: var(--radius);
  border: 1px solid var(--input); background: #fff; color: var(--foreground); font-weight: 400;
}
.settings-form input.mono { font-family: var(--font-mono); font-size: 0.85rem; }
.settings-form .hint { font-weight: 400; font-size: 0.82rem; color: var(--muted-foreground); }
.settings-grid-2 {
  display: grid; gap: 1rem; grid-template-columns: 1fr 1fr;
}
.settings-grid-3 {
  display: grid; gap: 1rem; grid-template-columns: repeat(3, 1fr);
}
.settings-grid-2 .span-2 { grid-column: 1 / -1; }
.settings-switch {
  display: inline-flex !important; align-items: center; gap: 0.55rem;
  grid-template-columns: none !important; font-weight: 500 !important;
  width: fit-content; cursor: pointer;
}
.settings-switch input { width: auto; margin: 0; }
.settings-footer { display: flex; justify-content: flex-end; padding-bottom: 1rem; }

.provider-tabs {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.65rem; margin-bottom: 1rem;
}
.provider-tab { display: block !important; cursor: pointer; margin: 0; }
.provider-tab input { position: absolute; opacity: 0; pointer-events: none; }
.provider-tab-ui {
  display: block; padding: 0.85rem 1rem; border: 1px solid var(--border);
  border-radius: var(--radius); background: #fafafa; transition: border-color .15s, background .15s, box-shadow .15s;
}
.provider-tab-ui strong { display: block; font-size: 0.95rem; margin-bottom: 0.15rem; }
.provider-tab-ui small { color: var(--muted-foreground); font-size: 0.8rem; font-weight: 400; }
.provider-tab input:checked + .provider-tab-ui {
  border-color: var(--primary); background: var(--accent); box-shadow: 0 0 0 1px var(--primary);
}
.provider-tab input:focus-visible + .provider-tab-ui { outline: 2px solid var(--ring); outline-offset: 2px; }
.provider-panel {
  margin-top: 0.5rem; padding: 1.15rem 1.2rem;
  border: 1px dashed var(--border); border-radius: var(--radius); background: #fcfcfd;
}
.provider-panel[hidden] { display: none !important; }
.provider-panel-title {
  font-family: var(--font-mono); font-size: 0.9rem; font-weight: 600;
  margin-bottom: 0.85rem; display: flex; align-items: center; gap: 0.5rem;
}

.coin-table-wrap {
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; background: #fff; margin-bottom: 1rem;
}
.coin-table-head, .coin-table-row {
  display: grid; grid-template-columns: 9rem 1fr 2.5rem;
  gap: 0.75rem; align-items: center; padding: 0.7rem 0.85rem;
}
.coin-table-head {
  background: var(--muted); font-size: 0.75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.03em; color: var(--muted-foreground);
  border-bottom: 1px solid var(--border);
}
.coin-table-row { border-bottom: 1px solid var(--border); }
.coin-table-row:last-child { border-bottom: 0; }
.coin-table-empty {
  padding: 1.1rem 0.85rem; color: var(--muted-foreground); font-size: 0.9rem;
}
.coin-ticker {
  font-family: var(--font-mono); font-size: 0.85rem; background: var(--secondary);
  padding: 0.25rem 0.45rem; border-radius: 0.3rem;
}
.coin-addr-mask {
  width: 100%; border: 0 !important; background: transparent !important;
  padding: 0.35rem 0 !important; font-size: 0.95rem; letter-spacing: 0.08em;
  color: var(--muted-foreground); pointer-events: none;
}
.coin-add-row {
  display: grid; grid-template-columns: minmax(10rem, 14rem) 1fr; gap: 0.85rem;
}

@media (max-width: 800px) {
  .settings-grid-2, .settings-grid-3, .provider-tabs, .coin-add-row {
    grid-template-columns: 1fr;
  }
  .coin-table-head, .coin-table-row {
    grid-template-columns: 1fr 2.5rem;
  }
  .coin-table-head span:nth-child(2),
  .coin-addr-mask { display: none; }
  .settings-header { flex-direction: column; align-items: stretch; }
}

.btn:focus-visible, .btn-icon-trash:focus-visible, .coin-card:focus-visible {
  outline: 2px solid var(--ring); outline-offset: 2px;
}

@media (max-width: 900px) {
  .checkout-grid { grid-template-columns: 1fr; }
  .summary-card { position: static; }
}

.faq details {
  border-bottom: 1px solid var(--border); padding: 1rem 0;
}
.faq summary {
  cursor: pointer; font-weight: 600; font-family: var(--font-mono); font-size: 0.98rem;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq details[open] summary { color: var(--primary); }
.faq details p { margin-top: 0.75rem; }

.prose h2 { margin-top: 2.25rem; font-size: 1.25rem; }
.prose ul, .prose ol { margin: 0.75rem 0 1.25rem 1.25rem; }
.prose li { margin-bottom: 0.35rem; }

.site-footer {
  border-top: 1px solid var(--border); background: color-mix(in srgb, var(--muted) 60%, var(--background));
  padding: 3rem 1.25rem 2rem; margin-top: 2rem;
}
.footer-inner { max-width: 72rem; margin: 0 auto; display: grid; gap: 2rem; grid-template-columns: 1.4fr repeat(3, 1fr); }
.footer-inner h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted-foreground); }
.footer-inner a { display: block; color: var(--muted-foreground); margin: 0.35rem 0; font-size: 0.92rem; }
.footer-blurb { color: var(--muted-foreground); font-size: 0.92rem; max-width: 18rem; }
.footer-copy { max-width: 72rem; margin: 2rem auto 0; padding-top: 1.5rem; border-top: 1px solid var(--border); color: var(--muted-foreground); font-size: 0.85rem; }

.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.badge {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-family: var(--font-mono); font-size: 0.75rem; padding: 0.3rem 0.65rem;
  border-radius: 999px; background: var(--secondary); color: var(--secondary-foreground); border: 1px solid var(--border);
}

