:root {
  color-scheme:dark;
  font:16px/1.5 system-ui,-apple-system,sans-serif;
  --bg:#080c16; --surface:#101727; --edge:#303b52; --muted:#b4bfd4;
  --ink:#faf9ff; --violet:#c9b1ff; --mint:#91ede4; --radius:18px;
  color:var(--ink); background:var(--bg);
}
* { box-sizing:border-box }
body { min-height:100vh; margin:0; background:radial-gradient(ellipse at 2% 8%,#0d203550,transparent 36%),radial-gradient(ellipse at 94% 45%,#1d143650,transparent 45%),var(--bg) }
main { width:min(456px,calc(100% - 32px)); margin:auto; padding:clamp(32px,11vh,110px) 0 }
main.signed { display:grid; grid-template-columns:202px minmax(0,1fr); gap:clamp(24px,4vw,64px); width:min(calc(100% - 64px),1360px); padding:34px 0 52px }
.mast,.brand,.section-head,.line-card,footer,.actions,.legal { display:flex; align-items:center; gap:14px }
.mast,.section-head,.line-card,footer { justify-content:space-between }
.mast { margin-bottom:20px }
.brand-row,.entry-links { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px 16px; width:100% }
.entry-links { margin-bottom:12px }
.site-home,.entry-links a { display:inline-flex; align-items:center; min-height:44px; font-size:14px }
.signed .brand-row { align-items:flex-start; flex-direction:column }
.signed .site-home { padding-inline:8px }
.brand { gap:10px; color:var(--ink); text-decoration:none; font-size:26px; letter-spacing:-.06em }
.brand img { border-radius:12px }
.brand span { font-size:12px; color:var(--violet); letter-spacing:.03em }
.brand-caption { display:block; color:var(--muted); font-size:12px; font-weight:500; letter-spacing:0 }
.signed .brand-caption { display:none }
.brand:hover { color:white }
footer,.legal { font-size:14px }
.signed .mast { align-items:stretch; flex-direction:column; justify-content:flex-start; margin:0; padding:6px 16px 22px 0; border-right:1px solid var(--edge); position:sticky; top:24px; align-self:start; min-height:min(600px,86vh) }
.signed .brand { align-self:flex-start; padding-left:8px }
.workspace { min-width:0; padding:clamp(22px,4vw,36px); background:var(--surface); border:1px solid var(--edge); border-radius:22px }
.signed .workspace { background:none; border:0; padding:10px 0 0 }
h1,h2,p,dl { margin:0 }
h1,h2 { line-height:1.14; letter-spacing:-.045em; text-wrap:balance }
h1 { font-size:clamp(32px,3.4vw,48px); margin-bottom:12px }
h2 { font-size:clamp(21px,2vw,26px) }
p,dd { color:var(--muted); overflow-wrap:anywhere }
a { color:var(--violet); text-underline-offset:4px }
a:hover { color:#eee4ff }
label { display:block; margin:16px 0; font-size:14px; font-weight:550 }
input,select,textarea { width:100%; margin-top:6px; padding:12px; background:#0d0e16; color:var(--ink); border:1px solid #525262; border-radius:9px; font:inherit; font-size:16px }
textarea { resize:vertical; min-height:88px }
button,.button { display:inline-flex; align-items:center; justify-content:center; min-height:44px; padding:10px 17px; border:1px solid transparent; border-radius:10px; cursor:pointer; font:inherit; font-weight:650; font-size:15px; text-align:center; text-decoration:none; background:var(--violet); color:#211431 }
button:hover,.button:hover { background:#deccff; color:#160e27 }
main:not(.signed) button { width:100%; margin-top:10px }
button:disabled { opacity:.65; cursor:wait }
.secondary { background:#21212f; color:#eee8fb; border-color:#484455 }
.secondary:hover { background:#303040; color:white }
:focus-visible { outline:3px solid var(--mint); outline-offset:3px }
.page-head { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap }
.signed .page-head { margin-bottom:26px }
.signed .page-head h1 { margin:0; font-size:clamp(31px,3.15vw,45px) }
.account-chip { display:inline-flex; gap:10px; max-width:100%; align-items:center; text-decoration:none; color:var(--ink); font-size:14px; min-height:44px }
.account-chip .symbol { border-radius:50%; background:#302547; width:34px; height:34px; color:#ddc8ff }
.account-chip .symbol::before { left:13px; top:7px }
.account-chip .symbol::after { inset:17px 9px 7px }
.account-chip span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap }
.tabs { display:flex; flex-direction:column; gap:4px; margin:24px 0 }
.tabs a { display:flex; align-items:center; gap:12px; min-height:44px; padding:10px 12px; border-radius:9px; color:var(--muted); text-decoration:none; font-size:15px; font-weight:560; line-height:1.25 }
.tabs a:hover { background:#1b1b28; color:var(--ink) }
.tabs a[aria-current] { color:#f4ecff; background:linear-gradient(110deg,#422969,#30214f) }
.symbol { display:inline-block; position:relative; width:16px; height:16px; flex:none; color:inherit }
.symbol::before,.symbol::after { content:""; position:absolute }
.overview-icon { width:7px; height:7px; border-radius:2px; background:currentColor; box-shadow:9px 0,0 9px,9px 9px; margin:-9px 9px 0 0 }
.pay-icon,.inbox-icon { height:12px; border:1.5px solid; border-radius:3px }
.pay-icon::before { inset:3px 0 auto; border-top:2px solid }
.chat-icon { height:12px; border:1.5px solid; border-radius:5px }
.chat-icon::before { left:3px; bottom:-4px; height:4px; border-left:2px solid; transform:skew(-20deg) }
.person-icon::before { width:5px; height:5px; border:1.5px solid; border-radius:50%; left:4px }
.person-icon::after { inset:9px 1px 0; border:1.5px solid; border-radius:7px 7px 2px 2px }
.inbox-icon::before { inset:4px 2px auto; border-top:1.5px solid }
.plan-icon { height:14px; border:1.5px solid; border-radius:4px }
.plan-icon::before { inset:3px 3px auto; height:1px; background:currentColor; box-shadow:0 3px currentColor }
.hero,.card,.line-card,.case-form { border:1px solid var(--edge); border-radius:var(--radius); background:var(--surface) }
.summary-grid { display:grid; grid-template-columns:minmax(0,1.95fr) minmax(235px,1fr); gap:18px }
.hero { position:relative; isolation:isolate; overflow:hidden; min-height:265px; display:flex; align-items:center; background:radial-gradient(ellipse at 89% 75%,#302051 0,transparent 48%),linear-gradient(120deg,#101d2a,#0b1020 64%,#17182b) }
.hero::before { content:""; position:absolute; z-index:-2; inset:0; background:linear-gradient(166deg,transparent 42%,#6d4cad0c 52%,transparent 58%),radial-gradient(ellipse at 86% 60%,#1a899c4d,transparent 38%) }
.shield { position:absolute; width:47%; height:100%; right:-1%; top:0; object-fit:contain; z-index:-1; pointer-events:none }
.hero-body { width:61%; padding:clamp(20px,2.3vw,32px) }
.hero h2 { margin:10px 0; color:var(--ink); font-size:clamp(32px,3.8vw,53px); line-height:1; letter-spacing:-.055em }
.sub-state { display:flex; align-items:center; gap:8px; color:#d3c7ed; font-size:14px; font-weight:600 }
.sub-state::before { content:""; width:8px; height:8px; border-radius:50%; background:#a99ac5; flex:none }
.sub-state.active { color:#83e9c1 }
.sub-state.active::before { background:#65ecc0 }
.access-limits { font-size:14px; margin-top:8px }
.wallet { display:flex; flex-direction:column; align-items:stretch; background:linear-gradient(145deg,#151d30,#0e1322) }
.wallet h2 { font-size:19px }
.wallet-state { display:block; margin-top:14px; font-size:clamp(22px,2.15vw,32px); line-height:1.1; letter-spacing:-.04em }
.wallet p { font-size:14px }
.wallet button,.wallet .button { margin-top:auto }
.wallet-summary,.wallet-entry-head,.wallet-actions { display:flex; align-items:center; flex-wrap:wrap; gap:12px }
.wallet-summary,.wallet-entry-head { justify-content:space-between }
.wallet-summary { background:linear-gradient(130deg,#1b2339,#131a2c) }
.wallet-summary h2 { font-size:18px }
.wallet-summary .wallet-state { font-variant-numeric:tabular-nums; font-size:clamp(30px,4vw,44px); margin-top:6px }
.wallet-summary p:not(:empty) { margin:8px 0 0 }
.wallet-summary > .renewal-note { flex-basis:100%; font-size:14px }
.wallet-entries { list-style:none; padding:0; margin:16px 0 0; display:grid; gap:10px }
.wallet-entries li { min-width:0; padding:16px 18px; background:var(--surface); border:1px solid var(--edge); border-radius:12px }
.wallet-entry-head { margin-bottom:6px; gap:4px 12px }
.wallet-entry-head strong { font-size:21px; font-variant-numeric:tabular-nums }
.wallet-entry-state { padding:3px 8px; border-radius:6px; color:#dfd0f2; background:#2c253b; font-size:13px }
.wallet-entries small,.wallet-entries p { color:var(--muted); font-size:14px }
.wallet-entries li p:not(:empty) { margin:3px 0 }
.wallet-actions { margin-top:12px }
#wallet-status:not(:empty),#refunds-state:not(:empty) { margin-top:14px }
#wallet-operation-form button,#decision-submit,#wallet-checkout,#wallet-refund-case { margin-top:18px; width:100% }
#wallet-amount[aria-invalid="true"] { border-color:#efacaa }
.accent { color:#fff; background:linear-gradient(105deg,#7335ca,#8437db); border:1px solid #a265ef }
.accent:hover { color:#fff; background:linear-gradient(105deg,#8346d6,#984be8) }
.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap }
.plan-section,.payment-history { margin-top:30px; scroll-margin-top:20px }
#overview:not(.plans-only) > #plans { display:none }
.wallet .renewal-note { margin:0; color:var(--ink) }
.renewal-link { align-self:flex-start; display:inline-flex; align-items:center; min-height:44px; font-size:14px }
#topup-renewal p:not(:empty) { padding-left:12px; border-left:2px solid var(--violet) }
.plans-only > :not(#plans) { display:none }
.plans-only #plans { margin-top:0 }
#balance-options { grid-template-columns:repeat(auto-fit,minmax(min(100%,85px),1fr)) }
#balance-options small,#subscription-funds { font-weight:500; font-size:14px; color:var(--muted) }
#cashier-summary { cursor:pointer; padding-block:12px; min-height:44px; color:var(--violet); font-size:15px }
#cashier-choices:has(#cashier-summary:not([hidden])) { margin-top:16px; border-top:1px solid var(--edge) }
#subscription-confirm { width:100% }
#subscription-refresh,#subscription-recover { margin-top:10px }
.plan-options { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; margin:16px 0; padding:0; border:0; min-width:0 }
.plan-options label { position:relative; display:flex; flex-direction:column; align-items:start; gap:8px; padding:20px; margin:0; color:#c8d0e2; background:linear-gradient(135deg,#131c2d,#0e1422); border:1px solid var(--edge); border-radius:14px; cursor:pointer; font-size:16px }
.plan-options strong { color:var(--ink); font-variant-numeric:tabular-nums; font-size:clamp(24px,2.5vw,36px); line-height:1.1; letter-spacing:-.045em }
.plan-options input { position:absolute; right:14px; top:14px; width:16px; height:16px; margin:0; accent-color:#a36ced }
.plan-options:has(label:not([hidden]) :is(#term-lifetime,#balance-lifetime)) {grid-template-columns:repeat(auto-fit,minmax(min(150px,100%),1fr))}
.catalog-prices small,.catalog-prices a {display:block;margin-top:4px;font-size:13px;font-weight:400;line-height:1.5}
.messages li.system-message {border-color:#6b5385;background:#201d30}
.plan-options label:has(:checked) { border-color:#be80ff; box-shadow:inset 0 0 0 1px #be80ff; background:linear-gradient(130deg,#2b1e43,#19192c) }
.plan-options label:focus-within { outline:2px solid var(--mint); outline-offset:3px }
.plan-footer { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:10px; color:var(--muted); font-size:14px }
.payment-history { padding-block:22px 8px; border-top:1px solid var(--edge) }
.payment-history p:not(:empty) { margin-top:12px }
.transactions { list-style:none; margin:10px 0 0; padding:0 }
.transactions li { display:grid; grid-template-columns:minmax(92px,1fr) 2fr 1fr auto; gap:10px; align-items:center; padding:13px 0; border-bottom:1px solid var(--edge); font-variant-numeric:tabular-nums }
.transactions span { font-size:14px; color:var(--muted) }
.transactions small { padding:2px 8px; border-radius:6px; background:#123027; color:#a7ebd2 }
.payment-history .section-head a { font-size:14px }
dialog { color:var(--ink); background:linear-gradient(160deg,#151c2c,#101320); border:1px solid var(--edge); border-radius:18px 0 0 18px; width:min(430px,100%); max-width:100%; height:100dvh; max-height:100dvh; margin:auto 0 auto auto; padding:clamp(22px,3.2vw,42px); overflow:auto; overscroll-behavior:contain }
dialog::backdrop { background:#030611aa }
body:has(dialog[open]) { overflow:hidden }
.panel-tools { display:flex; justify-content:flex-end; margin:0 0 18px }
.panel-close { width:44px; padding:0; background:transparent; color:var(--muted); font-size:26px }
dialog h2 { font-size:32px }
dialog p { margin-top:12px }
dialog label { margin:28px 0 2px }
.checkout-summary { margin:28px 0 }
.checkout-summary div { display:flex; justify-content:space-between; gap:12px; padding:12px 0; border-block-end:1px solid var(--edge) }
.checkout-summary dd { color:var(--ink); margin:0; font-weight:700 }
dialog .button { width:100% }
.panel-note { font-size:14px }
#preview-amount { font-size:28px; font-weight:650 }
#preview-amount[aria-invalid="true"] { border-color:#efacaa }
.quick-amounts { display:flex; gap:8px; margin-top:12px }
.quick-amounts button { background:#202437; border-color:#484659; flex:1; color:var(--ink); padding:8px 4px }
#wallet-panel form:last-child button { margin-top:18px; width:100% }
.actions,.legal { flex-wrap:wrap; margin-top:22px }
.quiet { font-size:15px; font-weight:600; text-decoration:none }
.quiet:hover { text-decoration:underline }
.overview-grid,.columns { display:grid; grid-template-columns:1fr 1fr; gap:16px }
.overview-grid { margin-top:16px }
.card,.line-card,.case-form { padding:clamp(20px,2.4vw,30px) }
.card p,.line-card p { margin:10px 0 16px }
.order-card { max-width:680px; padding:clamp(20px,3.4vw,36px); background:linear-gradient(140deg,#171d30 0%,var(--surface) 58%); }
.order-card h2 { text-wrap:pretty; overflow-wrap:anywhere }
.order-card .order-summary { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.4fr); gap:16px; padding:20px 0; margin:18px 0 16px; border-block:1px solid var(--edge) }
.order-summary dt { color:var(--muted); font-size:14px }
.order-summary dd { margin:4px 0 0; color:var(--ink); font-size:clamp(17px,2vw,21px); font-weight:650; line-height:1.2 }
.order-summary div:last-child { text-align:right }
.order-summary div:last-child dd { font-size:clamp(22px,2.8vw,30px); font-variant-numeric:tabular-nums }
.order-card p { margin:0; font-size:15px; line-height:1.5; max-width:54ch }
.order-actions { display:flex; flex-wrap:wrap; align-items:center; gap:8px 20px; margin-top:24px }
.order-primary:empty { display:none }
.order-back { display:inline-flex; justify-content:center; align-items:center; min-height:44px; padding:6px 8px; text-decoration:none; font-size:14px; font-weight:600 }
.order-back:hover { text-decoration:underline }
.conversation { display:flex; flex-direction:column; align-items:flex-start }
.conversation .button { margin-top:auto }
.shortcuts a { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:15px 0 4px; text-decoration:none; color:var(--ink) }
.shortcuts a+a { border-top:1px solid var(--edge); margin-top:12px }
.shortcuts strong,.shortcuts small { display:block }
.shortcuts small { font-size:13px; color:var(--muted); margin-top:2px }
.shortcuts b { color:var(--violet) }
.shortcuts a:hover strong { color:var(--violet) }
.line-card { margin:16px 0 }
.line-card p { margin-bottom:0 }
.line-card a { flex-shrink:0 }
.legal,footer { flex-wrap:wrap }
.text-button,footer a,.legal a { color:var(--muted) }
.text-button { background:none; padding:5px 0; border:0; font-size:14px; font-weight:500; text-decoration:underline; text-underline-offset:4px }
.text-button:hover { color:white; background:none }
footer { margin-top:32px; padding-top:12px; border-top:1px solid var(--edge) }
.compact { min-height:42px; padding:9px 14px; font-size:14px }
button,.button,.support-topics a,.case-list a { -webkit-tap-highlight-color:transparent }
.accent { box-shadow:inset 0 1px 0 #ffffff20,0 3px 10px #09031140 }
.subtle { background:transparent; color:var(--muted); border-color:var(--edge) }
.subtle:hover { background:#232536; color:var(--ink) }
@media(prefers-reduced-motion:no-preference) {
 button,.button,.tabs a,.support-topics a { transition:background-color .15s,border-color .15s,box-shadow .15s }
 button:active:not(:disabled),.button:active { transform:translateY(1px) }
}
.support-entry { padding:clamp(18px,3vw,28px); background:linear-gradient(115deg,#191d30,#121827); border:1px solid var(--edge); border-radius:var(--radius); margin-bottom:28px }
.support-topics,.queue-toolbar,.thread-toolbar,.thread-tools,.queue-filters { display:flex; flex-wrap:wrap; align-items:center; gap:8px }
.support-topics { margin-top:16px }
.support-topics a,.queue-filters button { display:inline-flex; align-items:center; gap:7px; padding:9px 14px; min-height:44px; border:1px solid var(--edge); border-radius:10px; font-size:14px; font-weight:600; color:var(--ink); background:#1a2031; text-decoration:none }
.support-topics a:hover,.queue-filters button:hover { border-color:#9777bc; background:#29223a }
.queue-toolbar { justify-content:space-between; gap:12px }
#ticket-search { display:flex; flex-wrap:wrap; align-items:center; gap:8px; flex:1; min-width:0 }
#ticket-number { margin:0; min-width:120px; max-width:300px; flex:1; height:44px }
.queue-filters { margin:18px 0 12px }
.queue-filters button[aria-pressed="true"] { border-color:#9e75c9; background:#35234c }
.queue-filters span { color:#d8c5ec; font-size:13px; font-variant-numeric:tabular-nums }
.list-state { font-size:14px }
.list-state:empty { display:none }
.case-list,.messages { list-style:none; padding:0 }
.case-list { margin:14px 0 }
.case-list li { margin-bottom:7px }
.case-list a { display:flex; justify-content:space-between; align-items:center; gap:14px; border:1px solid var(--edge); border-radius:12px; padding:14px 18px; background:var(--surface); text-decoration:none }
.case-list a:hover { border-color:#67527e; background:#1b2030 }
.case-summary,.case-details { display:grid; gap:4px; min-width:0 }
.case-summary { flex:1; color:var(--ink) }
.case-summary > span { color:var(--muted); font-size:14px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis }
.case-details { justify-items:end; flex:none }
.case-details small,.messages small,#thread-meta { color:var(--muted); font-size:12px }
.case-status { border-radius:7px; padding:3px 8px; background:#242b3a }
.case-status.waiting { color:#f2d39c; background:#342c22 }
.case-status.answered { color:#a6e7d3; background:#17332e }
.thread-toolbar,.thread-tools { justify-content:space-between; margin-bottom:12px }
.thread-tools { margin:12px 0 0 }
#thread { max-width:860px }
.chat-surface { overflow:hidden; background:#0e1522; border:1px solid var(--edge); border-radius:var(--radius) }
.chat-head,.reply-form,.closed-note { padding:clamp(15px,2vw,24px) }
.chat-head { background:#161d2c; border-bottom:1px solid var(--edge) }
.messages { margin:0; padding:18px; max-height:clamp(220px,45dvh,530px); overflow:auto; scrollbar-gutter:stable }
.messages li { width:fit-content; max-width:84%; padding:10px 14px; border:1px solid #354054; border-radius:13px 13px 13px 3px; background:#1c2635; margin-bottom:10px; overflow-wrap:anywhere }
.messages .outgoing { margin-inline-start:auto; border-color:#55426d; background:#312542; border-radius:13px 13px 3px 13px }
.messages p { white-space:pre-wrap; color:var(--ink); margin:4px 0 0 }
.message-photo { display:grid; gap:8px; margin-top:6px; max-width:100% }
.photo-preview { width:min(232px,100%); min-width:min(148px,100%); min-height:84px; max-width:100%; padding:0; overflow:hidden; border:1px solid var(--edge); background:#111725; color:var(--muted) }
.photo-preview span { padding:8px; font-size:13px }
.photo-preview img { display:block; width:100%; height:auto; max-height:172px; object-fit:contain }
.photo-preview:has(img) { cursor:zoom-in }
.message-photo .compact { justify-self:start }
#support-photo-panel { width:fit-content; max-width:calc(100vw - 24px); height:auto; max-height:calc(100dvh - 24px); padding:14px; border-radius:16px; margin:auto }
#support-photo-panel header { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:12px }
#support-photo-panel h2 { font-size:18px }
#support-photo-full { display:block; max-width:100%; max-height:calc(100dvh - 116px); object-fit:contain; margin:auto }
.reply-form,.closed-note { border-top:1px solid var(--edge) }
.reply-form { display:grid; justify-items:end; gap:10px }
.reply-form label { margin:0; width:100% }
.reply-form textarea { display:block }
.case-form,.profile-card { max-width:740px }
.case-form label:first-child { margin-top:0 }
.back-link { display:inline-block; margin:0 0 16px }
#composer h2,#thread h2 { margin-bottom:12px }
#case-state,.profile-card dl { margin-top:16px }
.profile-card dt { font-size:13px; color:var(--muted); margin-top:12px }
.profile-card dd { margin:0; color:var(--ink) }
.link-flow { margin-top:18px; padding-top:16px; border-top:1px solid var(--edge) }
.link-flow h3 { margin:0 0 8px; font-size:18px }
.link-flow .button,.link-flow .actions { margin:12px 0 }
.link-flow .actions { flex-wrap:wrap }
#link-help,#link-status:not(:empty) { margin-top:12px }
#telegram-choice { margin-bottom:8px }
#message { margin-top:16px }
#message:empty,[hidden] { display:none !important }
@media(max-width:900px) {
 main.signed { display:block; width:min(calc(100% - 40px),760px); padding:16px 0 36px }
 .signed .mast { position:static; display:grid; grid-template-columns:1fr auto; gap:12px; min-height:0; padding:0; border:0 }
 .signed .brand { padding:0 }
 .signed .brand-row { grid-column:1/-1; flex-direction:row; align-items:center }
 .tabs { grid-column:1/-1; flex-direction:row; flex-wrap:wrap; gap:3px; margin:0 0 12px; padding:8px 0; border-block:1px solid var(--edge) }
 .tabs a { padding:8px 10px; gap:8px }
 .hero-body { width:66% }
 .shield { width:42% }
}
@media(max-width:690px) {
 main.signed { width:calc(100% - 28px) }
 .tabs { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:3px 0; padding:4px 0; margin-bottom:8px }
 .tabs a { flex-direction:column; justify-content:center; gap:5px; min-width:0; min-height:52px; padding:5px 1px; border-radius:8px; font-size:clamp(.73rem,2.9vw,.88rem); font-weight:600; text-align:center; overflow-wrap:anywhere }
 .tabs .overview-icon { margin:0; align-self:center; width:16px; height:16px; background:linear-gradient(90deg,currentColor 42%,transparent 42%,transparent 57%,currentColor 57%); mask:linear-gradient(currentColor 42%,transparent 42%,transparent 57%,currentColor 57%); box-shadow:none }
 #staff-nav,#refund-nav { grid-column:1/-1; flex-direction:row; justify-self:stretch; min-height:44px; font-size:.82rem; padding:7px 8px }
 .tabs:has(#refund-nav:not([hidden])) #staff-nav { grid-column:1/4 }
 .tabs:has(#staff-nav:not([hidden])) #refund-nav { grid-column:4/-1 }
 .tabs a[aria-current] { background:#332348; color:#f8f1ff }
 .order-actions { display:grid; gap:4px; margin-top:20px }
 .order-primary > * { width:100%; min-height:48px }
 .summary-grid { grid-template-columns:1fr; gap:12px }
 .wallet { display:grid; grid-template-columns:1fr auto; align-items:center; gap:4px 12px }
 .wallet-state { grid-column:1; margin:0; font-size:21px }
 .wallet p { grid-column:1/-1; grid-row:3; margin:5px 0 0 }
 .wallet button,.wallet .button { grid-area:1/2/3/3; margin:0; padding:8px 10px }
 .page-head { gap:2px 12px }
 .account-chip { font-size:12px }
 .signed .page-head { margin-bottom:16px }
 .account-chip .symbol { transform:scale(.8) }
 .plan-options { gap:6px }
 .plan-options label { padding:14px 8px 10px; font-size:13px; gap:5px }
 .plan-options strong { font-size:clamp(18px,5.25vw,26px) }
 .plan-options input { position:static; width:14px; height:14px; margin-bottom:3px }
 .transactions li { grid-template-columns:1fr auto; gap:4px 10px }
 .transactions li small { justify-self:end }
 .overview-grid,.columns { grid-template-columns:1fr; gap:12px }
 .hero { align-items:flex-end; min-height:0 }
 .hero-body { width:72%; padding:20px 0 20px 18px }
 .shield { width:35%; height:85%; right:-2%; top:8% }
 .hero::before { opacity:.6 }
 .line-card { align-items:flex-start; flex-direction:column; gap:6px }
 .case-list a { display:grid; gap:8px; padding:14px }
 .case-details { display:flex; align-items:center; flex-wrap:wrap; gap:8px }
 .queue-toolbar { align-items:stretch }
 #ticket-search { flex-basis:100% }
 .thread-toolbar .button,.thread-toolbar button { padding:8px 10px }
 .section-head { flex-wrap:wrap }
 .actions { gap:10px }
 .messages li { max-width:93% }
}
@media(max-width:420px) {
 .hero-body { width:100%; padding:20px }
 .hero-body > p { max-width:74% }
 .shield { top:10px; height:70%; right:-1% }
 .wallet { display:flex; align-items:flex-start; gap:6px }
 .wallet p { margin:0 }
 .wallet button,.wallet .button { width:100%; margin-top:8px }
 .plan-footer .accent { flex:1 0 auto }
}
.catalog-icon::before { content:""; width:14px; height:16px; border:1.5px solid currentColor; border-radius:3px; box-shadow:inset 3px 0 #78718a }
.catalog-categories { display:flex; gap:6px; width:fit-content; max-width:100%; margin-bottom:24px; padding:4px; background:#101724; border:1px solid var(--edge); border-radius:12px }
.catalog-categories a { display:inline-flex; align-items:center; justify-content:center; padding:8px 15px; min-height:44px; border-radius:8px; font-weight:600; color:var(--muted); text-decoration:none }
.catalog-categories [aria-current] { color:var(--ink); background:#34244c }
.catalog-vpn { padding:clamp(18px,3vw,32px) }
.catalog-vpn p,#catalog-servers > p { margin-top:10px; max-width:74ch }
.catalog-prices { display:flex; flex-wrap:wrap; gap:12px; margin:20px 0; padding:0; list-style:none }
.catalog-prices li { display:grid; flex:1 0 110px; gap:4px; padding:14px 18px; background:#172032; border-radius:10px }
.catalog-prices span,.catalog-details p,.catalog-features { color:var(--muted) }
.catalog-prices strong { font-size:clamp(20px,2vw,26px) }
#catalog-offers { display:grid; gap:10px; margin-top:20px }
#catalog-notice:empty { display:none }
#catalog-offers details { min-width:0; border:1px solid var(--edge); background:var(--surface); border-radius:14px }
#catalog-offers details[open] { border-color:#70578b }
#catalog-offers summary { display:grid; grid-template-columns:minmax(0,1fr) auto 8px; align-items:center; gap:16px; padding:16px 20px; border-radius:14px; cursor:pointer; list-style:none }
#catalog-offers summary::-webkit-details-marker { display:none }
#catalog-offers summary::after { content:""; height:7px; width:7px; border-right:2px solid var(--violet); border-bottom:2px solid var(--violet); transform:rotate(45deg) }
#catalog-offers [open] summary::after { transform:rotate(225deg) }
#catalog-offers summary span { font-size:14px; color:var(--violet) }
.catalog-details { border-top:1px solid var(--edge); padding:16px 20px 20px }
.catalog-details p { max-width:78ch }
.catalog-features { display:flex; gap:4px 18px; flex-wrap:wrap; margin:14px 0; padding:0; list-style-position:inside }
.catalog-features li::marker { color:var(--mint) }
.catalog-actions { display:flex; flex-wrap:wrap; align-items:flex-end; gap:12px 18px; margin-top:18px }
.catalog-actions label { margin:0; min-width:min(220px,100%) }
@media(max-width:600px) {
 #catalog-offers summary { grid-template-columns:1fr 8px; gap:3px 10px; padding:14px 16px }
 #catalog-offers summary span { grid-column:1 }
 #catalog-offers summary::after { grid-column:2; grid-row:1/3 }
 .catalog-details { padding:14px 16px 18px }
 .catalog-features { display:grid; gap:4px }
 .catalog-actions label,.catalog-actions .button { width:100% }
 .catalog-categories a { padding:8px 12px; font-size:14px }
}
