:root { --bg:#121518; --bg-2:#181c20; --surface:#1c2025; --surface-2:#252a31; --border:#343d46; --border-2:#46525e; --hi:#e8edf2; --mid:#b0bac5; --low:#a0aab5; --faint:#96a2af; --accent:#9bc9b0; --warn:#cfb887; --bad:#f19fa7; --fh:system-ui,-apple-system,"Segoe UI",sans-serif; --fb:system-ui,-apple-system,"Segoe UI",sans-serif; --font-head:var(--fh); --font-body:var(--fb); color-scheme:dark; }
:root { --bg2:var(--bg-2); --surface2:var(--surface-2); --border2:var(--border-2); }
:root[data-theme="light"] { --bg:#eaeae6; --bg-2:#e0e3e2; --surface:#f2f2ee; --surface-2:#e8ebeb; --border:#c9cfce; --border-2:#acb7b7; --hi:#33404c; --mid:#465460; --low:#56626e; --faint:#56626e; --accent:#2f6b57; --warn:#78602e; --bad:#a34556; color-scheme:light; }
body { background:var(--bg); color:var(--mid); font-family:var(--fb); }
button,input,select,textarea { font:inherit; }
button,a { -webkit-tap-highlight-color:transparent; touch-action:manipulation; }
button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible { outline:2px solid var(--hi); outline-offset:4px; }
input,textarea,select { min-height:48px; }
.btn,.copy,.lnk,.back { min-height:44px; }
.btn { border-radius:16px; }
.btn-primary { background:var(--hi); color:var(--bg); }
.btn-primary:hover { box-shadow:none; }
.appearance { display:inline-grid; place-items:center; width:44px; height:44px; flex-shrink:0; border:1px solid var(--border); border-radius:14px; color:var(--hi); background:var(--surface); cursor:pointer; }
.appearance svg { width:18px; height:18px; }
.nav-actions { display:flex; align-items:center; gap:10px; }
header { background:color-mix(in srgb,var(--bg) 86%,transparent); }
.card,.panel { border-radius:24px; }
.consent { align-items:center; min-height:44px; }
.consent input { min-height:0; width:20px; height:20px; }
.msg { overflow-wrap:anywhere; }
.welcome-surface { color:#e8edf2; }
.welcome-surface .ttl { color:#e8edf2; }
.welcome-surface .sub { color:#b0bac5; }
.welcome-surface .btn-primary { background:#e8edf2; color:#121518; }
.welcome-surface .btn-ghost { background:#1c2025; color:#e8edf2; border-color:#46525e; }
.account-nav { display:flex; align-items:center; gap:8px; overflow:auto; padding:6px 0 22px; }
.account-nav button { min-height:44px; border-radius:14px; border:1px solid var(--border); background:var(--surface); color:var(--mid); padding:10px 16px; white-space:nowrap; cursor:pointer; }
.account-nav button[aria-selected="true"] { background:var(--hi); color:var(--bg); border-color:var(--hi); }
.telegram-notice { padding:12px 16px; margin:0 0 20px; border:1px solid var(--border); border-radius:16px; color:var(--low); font-size:12px; line-height:1.6; }
.telegram-notice.err { color:var(--bad); }
html[data-miniapp="true"] body { padding-top:var(--aegis-safe-top,0px); padding-bottom:var(--aegis-safe-bottom,0px); padding-left:var(--aegis-safe-left,0px); padding-right:var(--aegis-safe-right,0px); min-height:var(--tg-viewport-stable-height,100dvh); }
html[data-miniapp="true"] header { top:var(--aegis-safe-top,0px); }
html[data-miniapp="true"] a[href*="/buy"], html[data-miniapp="true"] #renew, html[data-miniapp="true"] #payNow { display:none!important; }
.account-view[hidden] { display:none!important; }
.partner-host { margin-top:20px; }
.orb-status { display:flex; align-items:center; gap:8px; }
.orb-status canvas { width:28px; height:28px; }
.request-indicator { display:flex; align-items:center; justify-content:center; gap:8px; margin-top:10px; font-size:12px; color:var(--low); }
.request-indicator[hidden] { display:none; }
#pay { background:var(--hi); color:var(--bg); }
@media(max-width:540px) { .wrap { padding:0 20px; } main { padding-top:28px; } .card { padding:26px 22px; } .panel { padding:22px; } .acct-head { align-items:flex-start; } .acct-head h1 { font-size:26px; } .kv { gap:16px; } .kv .v { overflow-wrap:anywhere; text-align:right; } .dev { gap:12px; } .account-nav { display:grid; grid-auto-flow:column; grid-auto-columns:minmax(0,1fr); gap:6px; overflow:visible; } .account-nav button { min-width:0; min-height:44px; padding:10px 6px; font-size:clamp(11px,3.2vw,13px); } }
@media(prefers-reduced-motion:reduce) { html { scroll-behavior:auto!important; } *,*::before,*::after { animation:none!important; transition:none!important; } }
@media(prefers-reduced-transparency:reduce) { header { background:var(--bg)!important; backdrop-filter:none!important; } }
@media(prefers-contrast:more) { :root { --border:#7a8998; --low:var(--hi); --faint:var(--hi); } :root[data-theme="light"] { --border:#687785; } header { background:var(--bg)!important; } }
