:root {
    color-scheme: dark;
    font-family: ui-sans-serif, system-ui, sans-serif;
    color: #e2e8f0;
    background: #020617;
    --green: #10b981;
    --mint: #6ee7b7;
    --panel: #0f172a;
    --line: #202d44;
    --muted: #a5b4ca;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
button, input, select { font: inherit; }
button { cursor: pointer; }
a { color: var(--mint); }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }
.wallet-body { min-height: 100svh; display: flex; flex-direction: column; }
.frame, .admin-frame { width: min(100% - 32px, 416px); margin-inline: auto; }
.admin-frame { width: min(100% - 32px, 1120px); }
.top-bar { border-bottom: 1px solid #131d33; background: #0b1223; }
.bar-content { min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.identity { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.identity strong { display: block; color: #e2e8f0; font-size: 13px; font-weight: 850; letter-spacing: .06em; }
.identity small { display: block; color: var(--muted); font: 9px ui-monospace, monospace; letter-spacing: .06em; }
.symbol { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 9px; border: 1px solid #12513e; background: #062c26; }
.symbol img { filter: invert(86%) sepia(36%) saturate(813%) hue-rotate(82deg) brightness(99%); }
.symbol.large { width: 49px; height: 49px; margin: 0 auto 8px; border-radius: 16px; }
.status { flex-shrink: 0; display: inline-flex; align-items: center; gap: 5px; border: 1px solid #17483d; border-radius: 999px; padding: 5px 10px; background: #062c26; color: var(--mint); font: 10px ui-monospace, monospace; }
.status i { width: 6px; height: 6px; border-radius: 50%; background: #34d399; }
.wallet-main { display: grid; align-items: center; flex: 1; padding-block: 25px; }
.panel { padding: 24px; border: 1px solid #17243a; border-radius: 24px; background: var(--panel); box-shadow: 0 20px 48px #0005; min-width: 0; }
.auth-panel { text-align: center; }
h1, h2 { color: #f8fafc; margin: 0; letter-spacing: -.015em; }
h1 { font-size: 20px; font-weight: 820; }
h2 { font-size: 17px; }
.intro { margin: 8px 0 21px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.fields { display: grid; gap: 14px; text-align: left; }
.fields label { display: grid; gap: 6px; font-size: 12px; font-weight: 650; }
.fields input:not([type="hidden"]), select {
    display: block;
    width: 100%;
    min-height: 47px;
    padding: 11px 13px;
    color: #f8fafc;
    background: #020617;
    border: 1px solid #334155;
    border-radius: 12px;
}
.fields input::placeholder { color: #8293ad; }
.primary {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 52px;
    border: 0;
    border-radius: 13px;
    background: var(--green);
    color: #020617;
    font-size: 15px;
    font-weight: 820;
    box-shadow: 0 9px 21px #10b98125;
    padding: 9px 13px;
}
.primary:hover { background: #34d399; }
.switch-auth { margin: 19px 0 0; color: var(--muted); font-size: 12px; }
.switch-auth a { padding: 5px 2px; }
.error, .notice { background: #102e2b; color: #a7f3d0; border: 1px solid #235247; border-radius: 10px; font-size: 12px; padding: 10px 12px; line-height: 1.5; }
.error { color: #fecaca; border-color: #7f343e; background: #38232d; }
.wallet-footer { display: grid; place-items: center; gap: 3px; border-top: 1px solid #131d33; padding: 9px 16px; color: var(--muted); font-size: 10px; text-align: center; }
.text-button { border: 0; color: var(--mint); background: transparent; padding: 6px 3px; font-size: 12px; }
.text-button:hover { text-decoration: underline; }
.wallet-heading { display: flex; align-items: center; gap: 12px; justify-content: space-between; }
.eyebrow { margin: 0 0 6px; font: 10px ui-monospace, monospace; color: var(--mint); letter-spacing: .12em; }
.handle { min-width: 0; overflow-wrap: anywhere; text-align: right; font: 11px ui-monospace, monospace; color: var(--muted); }
.tabs { display: flex; gap: 7px; margin: 18px 0; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: #020617; }
.tabs a { flex: 1; color: var(--muted); font-size: 13px; font-weight: 650; padding: 8px 11px; text-align: center; text-decoration: none; border-radius: 8px; }
.tabs a[aria-current] { background: #15352f; color: #b8f7da; }
.wallet-pass { border: 1px solid #1d7859; border-radius: 16px; background: linear-gradient(125deg, #064832, #06573f); color: #f0fdf4; padding: 20px; }
.pass-header, .pass-reference { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.pass-header p { margin: 0 0 3px; font-weight: 850; letter-spacing: .05em; }
.wallet-pass small { display: block; color: #bbf7d0; font: 9px ui-monospace, monospace; }
.point-total { text-align: right; background: #042e22; border: 1px solid #507043; border-radius: 11px; padding: 6px 10px; }
.point-total b { color: #fde047; font-size: 29px; line-height: 1; font-weight: 900; }
.pass-reference { margin-top: 27px; padding-top: 10px; border-top: 1px solid #268061; }
.pass-reference strong { display: block; margin-top: 3px; font-size: 13px; font-family: ui-monospace, monospace; }
.small-button, .secondary { border: 1px solid #334155; border-radius: 9px; background: #203249; color: #f1f5f9; padding: 7px 11px; font-size: 12px; }
.small-button { border-color: #328064; background: #052e22; }
.unlock-form { margin-top: 17px; }
.sign-out { text-align: center; margin-top: 12px; }
.timeline { list-style: none; margin: 9px 0 0; padding: 0; }
.timeline li { display: flex; justify-content: space-between; align-items: center; gap: 8px; border-bottom: 1px solid var(--line); padding: 12px 2px; font-size: 13px; }
.timeline time { display: block; color: var(--muted); font-size: 11px; margin-top: 4px; }
.timeline strong { color: var(--mint); }
dialog { width: min(390px, calc(100% - 32px)); border: 1px solid #334155; border-radius: 16px; background: var(--panel); color: #e2e8f0; padding: 20px; }
dialog::backdrop { background: #020617d9; backdrop-filter: blur(3px); }
dialog p { color: var(--muted); line-height: 1.55; font-size: 13px; }
.dashboard { padding-block: 29px; }
.dashboard-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.dashboard-heading h1 { font-size: 28px; }
.dashboard-heading p:not(.eyebrow) { color: var(--muted); margin: 6px 0 0; font-size: 13px; }
.range { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; }
.range select { min-height: 37px; width: auto; padding: 5px 9px; }
.range .secondary { min-height: 37px; }
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 11px; margin-bottom: 17px; }
.metric { padding: 13px 15px; border: 1px solid var(--line); background: var(--panel); border-radius: 14px; }
.metric p { margin: 0 0 4px; color: var(--muted); font-size: 12px; }
.metric strong { font-size: 25px; color: var(--mint); }
.daily { border-radius: 16px; padding: 17px; }
.table-scroll { overflow: auto; margin-top: 10px; }
table { border-collapse: collapse; width: 100%; min-width: 740px; font-size: 12px; }
th, td { text-align: right; padding: 11px 9px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th:first-child { text-align: left; }
thead { color: var(--muted); }
tbody th { font-weight: 550; }
@media (max-width: 360px) {
    .panel { padding: 18px; }
}
