:root {
    color-scheme: dark;
    --bg: #090b10;
    --surface: #161b26;
    --text: #eef3ff;
    --muted: #8b97b0;
    --accent: #2ee6c4;
    --danger: #ff6b7a;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: "Segoe UI", sans-serif; }
body { min-height: 100dvh; padding-bottom: 88px; }
.top {
    display: flex; align-items: center; gap: 12px;
    padding: 16px 16px 8px;
}
.mark {
    width: 40px; height: 40px; border-radius: 12px;
    background: #121824; color: var(--accent);
    display: grid; place-items: center; font-weight: 700; font-size: 22px;
}
.brand { font-weight: 700; }
.who { color: var(--muted); font-size: 13px; }
.ghost {
    margin-left: auto; background: transparent; color: var(--muted);
    border: 0; padding: 8px;
}
.panel { padding: 8px 16px 24px; }
h1 { font-size: 28px; margin: 8px 0 12px; }
h2 { font-size: 16px; margin: 22px 0 8px; }
.muted { color: var(--muted); }
[hidden] { display: none !important; }
label { display: block; margin: 12px 0; font-size: 14px; color: var(--muted); }
input, select {
    display: block; width: 100%; margin-top: 6px;
    background: #10141c; color: var(--text); border: 1px solid #2a3346;
    border-radius: 10px; padding: 12px; font-size: 16px;
}
a.shop-link {
    display: block; text-align: center; text-decoration: none; margin-top: 12px;
    background: var(--accent); color: #06231d; border-radius: 12px; padding: 14px 16px; font-weight: 700;
}
#shop-qr { width: 100%; margin-top: 16px; border-radius: 12px; background: #fff; }
button {
    background: var(--accent); color: #06231d; border: 0; border-radius: 12px;
    padding: 14px 16px; font-weight: 700; font-size: 16px; width: 100%;
}
button.small { width: auto; padding: 8px 12px; font-size: 14px; }
button:disabled { opacity: 0.5; }
.error { color: var(--danger); min-height: 1.2em; }
.ok { color: var(--accent); min-height: 1.2em; }
.stat {
    background: var(--surface); border-radius: 16px; padding: 16px; margin: 10px 0;
}
.stat-label { color: var(--muted); font-size: 13px; }
.stat-value { font-size: 28px; font-weight: 700; margin-top: 4px; }
.card {
    background: var(--surface); border-radius: 14px; padding: 14px; margin: 8px 0;
    display: flex; justify-content: space-between; gap: 12px; align-items: center;
}
.card button { width: auto; }
nav {
    position: fixed; left: 0; right: 0; bottom: 0;
    display: flex; background: #10141c; border-top: 1px solid #2a3346;
    padding: 8px 4px calc(8px + env(safe-area-inset-bottom));
}
nav button {
    background: transparent; color: var(--muted); font-size: 12px; padding: 10px 4px;
}
nav button.on { color: var(--accent); }
