:root{color-scheme:light;--bg:#f8f9fc;--card:#fff;--ink:#192235;--muted:#697385;--line:#e7eaf0;--accent:#2866e9;--soft:#eef3ff;--green:#179976;--safe:env(safe-area-inset-bottom,0px);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Inter,Arial,sans-serif;color:var(--ink);background:var(--bg)}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
body{margin:0;font-size:16px;line-height:1.4;-webkit-font-smoothing:antialiased}
[hidden]{display:none!important}
h1,h2,h3,p{margin:0}h1{font-size:24px;letter-spacing:-.6px;line-height:1.2}h2{font-size:21px;letter-spacing:-.4px;line-height:1.25}h3{font-size:17px;letter-spacing:-.2px}
button,input,select{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer;color:inherit}button{border:0;background:none}a{text-decoration:none;color:inherit}button:focus,a:focus,summary:focus,input:focus{outline:none}button:focus-visible,a:focus-visible,summary:focus-visible{outline:2px solid var(--muted);outline-offset:3px}input:focus-visible{outline:none}
.app{max-width:460px;margin:0 auto;min-height:100dvh}.app-header{height:48px;padding:8px 16px;display:flex;align-items:center;gap:8px}.app-header strong{font-size:17px;letter-spacing:-.3px}.test-label{margin-left:auto;font-size:12px;color:var(--muted);font-weight:500}.app-header .icon-button{width:44px;min-height:44px;background:transparent;margin-left:-8px}
main{padding:0 14px calc(20px + var(--safe))}
.hero{height:clamp(184px,calc(100svh - 436px),300px);display:flex;align-items:center;justify-content:center;position:relative;margin-bottom:8px}.hero img{width:auto;height:min(96%,270px);max-width:90%;object-fit:contain;animation:float 5s ease-in-out infinite}@keyframes float{0%,100%{transform:translateY(3px) rotate(-2deg)}50%{transform:translateY(-5px) rotate(2deg)}}
.card{background:var(--card);border:1px solid var(--line);border-radius:18px;padding:16px;box-shadow:0 2px 6px rgba(23,40,70,.015)}.status-card{padding:10px 12px;margin-bottom:10px}.status-head{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:35px;padding-bottom:7px;border-bottom:1px solid var(--line)}.status-head strong{font-size:15px;display:flex;gap:7px;align-items:center}.status-head time{font-size:13px;color:var(--muted)}.dot{width:7px;height:7px;background:var(--green);border-radius:50%;flex:none}.stat-row{display:flex;gap:8px;align-items:center;min-height:44px;font-size:13px;color:var(--muted)}.stat-row .stat-value{margin-left:auto;text-align:right;white-space:nowrap;color:var(--ink)}.stat-row .stat-value strong{font-size:15px}.status-foot{font-size:12px;color:var(--muted);margin:0 0 3px}.mini-device{color:var(--ink)}
.icon-button{width:44px;min-height:44px;display:flex;align-items:center;justify-content:center;flex:none;border-radius:12px;background:var(--surface);padding:10px}.icon-button img{width:22px;height:22px}.stat-row .icon-button{width:44px;background:transparent;min-height:44px;border-left:1px solid var(--line);border-radius:0;margin-right:-5px}.stat-row+.stat-row{border-top:1px solid var(--line)}
.action-row{display:flex;align-items:center;gap:10px;min-height:52px;padding:8px 12px;border:1px solid var(--line);border-radius:15px;background:var(--card);width:100%;text-align:left;font-size:15px;font-weight:650}.action-row .action-icon{width:32px;height:32px;padding:6px;display:flex;align-items:center;justify-content:center;border-radius:10px;background:var(--surface);flex:none}.action-icon img{width:22px;height:22px}.action-row .row-meta{margin-left:auto;font-size:13px;color:var(--muted);font-weight:500;white-space:nowrap}.action-row .arrow{width:18px;height:18px;margin-left:auto}.action-row.primary{background:var(--strong-bg);color:white;border-color:var(--strong-bg)}.action-row.primary .action-icon{background:var(--strong-surface)}.action-row.primary .row-meta{color:var(--strong-accent);font-weight:600}.action-row.primary .arrow{margin-left:0}.actions{display:grid;gap:8px}.two-col{display:grid;grid-template-columns:1fr 1fr;gap:8px}.badge{font-size:12px;line-height:1.2;padding:5px 8px;background:var(--soft);color:var(--accent-text);border-radius:8px;white-space:nowrap;font-weight:600}.primary-button{min-height:52px;border-radius:14px;background:var(--accent);color:#fff;display:flex;align-items:center;justify-content:center;gap:12px;font-size:16px;font-weight:650;padding:12px 16px;width:100%;border:0}.secondary-button{min-height:48px;border:1px solid var(--line);background:var(--card);color:var(--ink);border-radius:13px;padding:10px 14px;display:flex;align-items:center;justify-content:center;gap:8px;font-weight:600;font-size:15px;width:100%}.text-button{min-height:44px;color:var(--accent-text);font-size:14px;font-weight:600;padding:10px 0}.text-button img{height:18px;width:18px}.hint{font-size:14px;color:var(--muted);line-height:1.5}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:8px 0 16px}.section-heading p{margin-top:5px}.section-heading .secondary-button{width:auto;min-width:88px;flex:none;min-height:44px;padding:8px 12px;font-size:14px}.stack{display:grid;gap:12px}.card-head{display:flex;gap:12px;align-items:center;margin-bottom:12px}.card-head .hint{font-size:14px;margin-top:3px}.square-icon{width:40px;height:40px;border-radius:12px;background:var(--surface);display:flex;align-items:center;justify-content:center;flex:none}.square-icon img{width:24px;height:24px}
.client-options{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:12px}.client-options:has(button:nth-child(2):last-child){grid-template-columns:repeat(2,1fr)}.client-options button{min-height:44px;border:1px solid var(--line);border-radius:11px;font-size:15px;font-weight:650;background:var(--field)}.client-options button[aria-pressed=true]{background:var(--soft);color:var(--accent-text);border-color:transparent}.client-options button[aria-pressed=true]::after{content:' ';display:inline-block;width:4px;height:4px;border-radius:50%;background:var(--accent);margin-left:6px;vertical-align:middle}.download-note{font-size:12px;color:var(--muted);text-align:center;margin-top:6px}.connect-note{font-size:13px;margin-top:10px;color:var(--muted);text-align:center}.fallback-card{padding:14px}.fallback-card .hint{margin:7px 0 12px}.copy-row{display:flex;gap:8px;align-items:center}.copy-row input{min-width:0;flex:1;background:var(--field);color:var(--muted);border:1px solid var(--line);border-radius:10px;font-size:13px;padding:12px;min-height:44px}.copy-row .secondary-button{width:auto;white-space:nowrap;min-height:44px;font-size:14px}.copy-row img{width:18px;height:18px}.qr-card{display:flex;align-items:center;gap:16px;width:100%;text-align:left}.qr-card img{width:76px;height:76px;object-fit:contain}.qr-card .hint{margin-top:5px}.support-footer{display:block;text-align:center;margin:16px auto 0;color:var(--muted);min-height:44px;font-size:14px}
.top-badges{display:flex;gap:8px;margin:6px 0 12px}.top-badges span{flex:1;text-align:center;border:1px solid var(--line);background:var(--card);border-radius:10px;padding:7px 3px;font-size:12px;color:var(--muted)}.plan-highlight{background:var(--strong-bg);color:white;border-radius:18px;padding:16px;margin-bottom:12px}.plan-highlight .highlight-title{display:flex;justify-content:space-between;align-items:center;gap:6px;font-size:17px;font-weight:700}.plan-highlight .badge{font-size:10px;color:var(--strong-accent);background:var(--strong-surface);padding:5px 6px}.price{font-size:32px;font-weight:750;letter-spacing:-1px;margin:8px 0 4px}.price-sub{font-size:14px;color:var(--strong-muted)}.price-sub b{color:var(--strong-accent)}.plan-features{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px;padding-top:10px;border-top:1px solid var(--strong-line)}.plan-features span{font-size:12px;background:var(--strong-surface);padding:4px 8px;border-radius:7px}.plan-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:9px;margin:12px 0}.plan{background:var(--card);border:1px solid var(--line);border-radius:15px;text-align:left;min-height:91px;padding:12px;position:relative}.plan.selected{background:var(--soft);border-color:transparent}.plan b{font-size:16px;display:block;margin-bottom:4px}.plan strong{font-size:22px;letter-spacing:-.5px;display:block}.plan small{font-size:12px;color:var(--muted);display:block;margin-top:3px}.plan .selected-check{width:20px;height:20px;position:absolute;right:10px;top:10px}.plan .badge{font-size:10px;margin-left:5px;padding:3px 5px}.promo-row{display:flex;gap:6px;min-height:48px;border:1px solid var(--line);border-radius:13px;background:var(--card);padding:5px}.promo-row input{flex:1;min-width:0;border:0;background:transparent;padding-left:10px;font-size:15px;color:var(--ink)}.promo-row button{background:var(--surface);border-radius:9px;padding:8px 12px;font-size:13px;color:var(--muted);font-weight:600;min-height:44px}.sticky-pay{position:fixed;left:50%;transform:translateX(-50%);bottom:0;width:min(100%,460px);padding:10px 14px calc(10px + var(--safe));background:var(--bg);border-top:1px solid var(--line);z-index:4}.sticky-pay .primary-button{justify-content:space-between}.sticky-pay .hint{text-align:center;font-size:12px;margin-bottom:7px}.has-payment{padding-bottom:calc(94px + var(--safe))}.payment-methods{display:grid;gap:8px}.method{display:flex;align-items:center;gap:12px;min-height:72px;border:1px solid var(--line);border-radius:15px;background:var(--card);padding:12px;text-align:left;width:100%}.method.selected{background:var(--soft);border-color:transparent}.method .radio{width:18px;height:18px;border:1px solid var(--radio-line);border-radius:50%;flex:none}.method.selected .radio{border:5px solid var(--accent)}.method strong{display:block;font-size:16px}.method small{font-size:13px;color:var(--muted)}.method .square-icon{margin-left:auto;background:transparent}
dialog{margin:auto auto 0;width:min(100%,460px);max-width:none;max-height:calc(100dvh - 28px);padding:20px 20px calc(20px + var(--safe));border:0;border-radius:26px 26px 0 0;background:var(--bg);color:var(--ink);overflow:auto;box-shadow:0 -12px 60px rgba(17,32,61,.08)}dialog::backdrop{background:rgba(17,27,44,.4);backdrop-filter:blur(4px)}.sheet-heading{display:flex;gap:12px;align-items:flex-start;justify-content:space-between;margin-bottom:16px}.sheet-heading h2{font-size:22px;max-width:calc(100% - 50px)}.sheet-heading .icon-button{margin-top:-6px}.sheet-footer{position:sticky;bottom:calc(-20px - var(--safe));padding:14px 0 calc(20px + var(--safe));background:var(--bg);margin-top:18px}.sheet-footer .hint{text-align:center;font-size:12px;margin-bottom:8px}.platform-row{display:flex;gap:12px;align-items:center;border-bottom:1px solid var(--line);width:100%;min-height:66px;text-align:left;padding:10px 0}.platform-row.selected{color:var(--accent-text)}.platform-row.selected .square-icon{background:var(--soft)}.platform-row .hint{font-size:13px;margin-top:3px}.platform-row>img{margin-left:auto;width:20px;height:20px}.platform-row:last-child{border-bottom:0}.traffic-grid .plan{min-height:86px;text-align:center}.traffic-grid .plan b{font-size:19px}.traffic-grid .plan strong{font-size:15px;font-weight:500;color:var(--muted)}
.profile-hero{padding:22px 0 14px;text-align:center}.avatar{display:flex;align-items:center;justify-content:center;width:84px;height:84px;border-radius:50%;background:var(--soft);margin:0 auto 12px}.avatar img{width:66px;height:68px;object-fit:contain}.profile-hero h1{font-size:22px}.account-copy{display:inline-flex;gap:7px;align-items:center;min-height:44px;margin-top:10px;border:1px solid var(--line);border-radius:10px;padding:8px 12px;background:var(--card);color:var(--muted);font-size:13px}.account-copy img{width:17px;height:17px}.profile-subscription{background:var(--strong-bg);color:white;border-radius:18px;padding:16px;margin-bottom:12px}.profile-subscription small{font-size:12px;color:var(--strong-muted);text-transform:uppercase;letter-spacing:1px}.profile-subscription .profile-subscription-row{display:flex;align-items:center;justify-content:space-between;margin-top:8px}.profile-subscription strong{font-size:32px;line-height:1}.profile-subscription button{font-size:12px;color:var(--strong-muted);min-height:44px;padding:8px 10px;background:var(--strong-surface);border-radius:10px}.profile-tile{min-height:92px;padding:12px}.profile-tile .tile-title{display:flex;gap:8px;align-items:center;font-size:15px;font-weight:650}.profile-tile img{height:21px;width:21px}.profile-tile .hint{font-size:13px;margin-top:10px}.profile-notice{font-size:12px;color:var(--muted);text-align:center;margin-top:16px}.faq{padding:14px;background:var(--card);border:1px solid var(--line);border-radius:15px}.faq summary{font-weight:600;font-size:15px;min-height:44px;cursor:pointer;padding:2px 0}.faq p{font-size:14px;color:var(--muted);margin-top:10px;line-height:1.5}.screen-intro{margin:10px 0 16px}.screen-intro p{margin-top:7px}.device{display:flex;align-items:center;gap:12px}.device .hint{font-size:13px}.device button{margin-left:auto;font-size:13px;min-height:44px;color:var(--muted)}.device+.device{border-top:1px solid var(--line);margin-top:10px;padding-top:10px}.document-link{display:block;min-height:44px;font-size:14px;color:var(--accent-text);padding:12px 0}.ref-value{font-size:28px;font-weight:750;letter-spacing:-.6px}.details-row{display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:46px;font-size:14px;border-bottom:1px solid var(--line)}.details-row:last-child{border-bottom:0}.test-note{font-size:13px;padding:12px;border-radius:12px;background:var(--soft);color:var(--note-ink);line-height:1.45;margin-top:14px}.qr-large{display:block;width:220px;height:220px;margin:20px auto}.success-icon{width:54px;height:54px;display:block;margin:8px auto 16px}.success{text-align:center}.success h3{font-size:20px;margin-bottom:8px}.success .hint{margin-bottom:20px}
#toast{position:fixed;left:50%;transform:translateX(-50%) translateY(20px);bottom:calc(24px + var(--safe));background:var(--strong-bg);color:#fff;border-radius:12px;box-shadow:0 4px 20px #19223533;padding:12px 16px;max-width:calc(100% - 32px);width:max-content;font-size:14px;opacity:0;pointer-events:none;transition:opacity .16s,transform .16s;z-index:15}#toast.visible{opacity:1;transform:translateX(-50%) translateY(0)}
@media(min-width:600px){.app{padding-top:12px}.app-header{height:48px}dialog{margin:auto;border-radius:24px;max-height:calc(100dvh - 64px)}.sheet-footer{padding-bottom:16px}}

@media(max-width:360px){main{padding-inline:12px}.stat-row{font-size:12px;gap:5px}.stat-row .stat-value strong{font-size:14px}.action-row{font-size:14px;padding:8px 10px;gap:8px}.action-row .action-icon{width:28px;height:28px;padding:4px}.profile-tile .tile-title{font-size:14px}.plan b{font-size:15px}.plan-highlight .badge{font-size:9px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}

.two-col .action-row>.arrow{display:none}.space-after{margin-bottom:14px}.primary-button img{width:22px;height:22px}.sticky-pay .primary-button>span:first-child{margin-right:auto}

.promo-row button{min-height:44px}.faq summary{display:flex;align-items:center}.app-header:has(#back:not([hidden])){min-height:48px;height:auto}.stack .fallback-card .hint{font-size:13px}.stack .card-head .hint{font-size:13px}

.dot.expired{background:#c08b31}.dot.none{background:#a4aebb}.dot.trial{background:#7658f6}
.plan-highlight{padding:14px}.plan-highlight .price{font-size:30px;line-height:1.1;margin:6px 0 4px}.plan-features{margin-top:8px;padding-top:8px}.plan-features span{line-height:1.3;padding:4px 7px}.plan{min-height:88px;padding:10px}.plan b{line-height:1.2}.plan strong{line-height:1.2}.plan small{line-height:1.2}.profile-hero+.stack .card .hint{margin-bottom:12px}

@media(max-width:360px){.actions>[data-action="referral"] .row-meta{display:none}}

.test-label{min-height:44px;padding:0}.app-header{height:48px}.profile-notice{margin-top:12px}



/* Compact rhythm matched to the provided Telegram references */
.card{padding:12px;border-radius:16px;box-shadow:none}.status-card{padding:8px 11px;margin-bottom:9px}.status-head{min-height:32px;padding-bottom:5px}.status-head strong{font-size:14px;letter-spacing:-.1px}.status-head time{font-size:12px}.stat-row{font-size:12px;min-height:42px;gap:7px}.stat-row .stat-value strong{font-size:14px}.stat-row .icon-button{min-height:42px;width:38px;padding:9px}.stat-row .icon-button img{width:20px;height:20px}.stat-row+.stat-row{border-top:0}.actions{gap:7px}.action-row{min-height:48px;padding:7px 11px;border-radius:13px;font-size:14px;gap:9px}.action-row .action-icon{width:29px;height:29px;padding:6px;border-radius:9px}.action-icon img{width:19px;height:19px}.action-row .row-meta{font-size:12px}.action-row .arrow{width:16px;height:16px}.two-col{gap:8px}.platform-badge{font-size:11px;background:var(--surface);color:var(--muted);padding:4px 7px}.hero img{aspect-ratio:560/564}.actions>[data-action="referral"] .row-meta{font-size:11px}
h1{font-size:21px;letter-spacing:-.4px}h2{font-size:20px}h3{font-size:15px;letter-spacing:-.15px}.hint{font-size:13px;line-height:1.4}.section-heading{margin:6px 0 12px}.section-heading .hint{font-size:12px}.stack{gap:10px}.card-head{gap:10px;margin-bottom:10px}.card-head .hint{font-size:12px}.square-icon{width:34px;height:34px;border-radius:10px}.square-icon img{width:21px;height:21px}.primary-button{min-height:46px;font-size:14px;padding:10px 13px;border-radius:12px}.secondary-button{min-height:44px;font-size:14px;padding:9px 12px;border-radius:11px}.client-options{gap:6px;margin-bottom:10px}.client-options button{font-size:13px}.connect-note{font-size:12px;margin-top:8px}.fallback-card{padding:12px}.fallback-card .hint{font-size:12px}.copy-row input{font-size:12px;padding:9px;min-height:44px}.copy-row .secondary-button{font-size:12px}.qr-card{gap:12px}.qr-card img{width:66px;height:66px}.qr-card .hint{font-size:12px}.support-footer{font-size:13px;margin-top:12px}
.profile-hero{padding:31px 0 18px}.profile-hero h1{font-size:16px;letter-spacing:-.25px}.avatar{width:94px;height:94px;margin-bottom:9px}.avatar img{width:80px;height:82px}.account-copy{font-size:11px;min-height:27px;padding:4px 10px;margin-top:10px;border-radius:9px}.account-copy img{width:15px;height:15px}.profile-subscription{padding:13px 14px;border-radius:16px;margin-bottom:10px}.profile-subscription small{font-size:11px;letter-spacing:.6px}.profile-subscription .profile-subscription-row{margin-top:4px}.profile-subscription strong{font-size:28px}.profile-subscription button{font-size:11px;min-height:34px;padding:7px 10px;border-radius:9px}.profile-tile{min-height:72px;padding:11px;text-align:left}.profile-tile .tile-title{font-size:13px;gap:7px;font-weight:650}.profile-tile img{height:19px;width:19px}.profile-tile .hint{font-size:11px;margin-top:7px;text-align:left}.profile-notice{font-size:11px;margin-top:12px}.profile-hero+.profile-subscription+.stack .action-row{min-height:55px}.profile-subscription-row{min-height:34px}
.plan-highlight{padding:13px}.plan-highlight .highlight-title{font-size:15px}.plan-highlight .price{font-size:28px}.price-sub{font-size:12px}.plan-features span{font-size:11px}.plan-grid{gap:8px;margin:10px 0}.plan{min-height:80px;padding:10px}.plan b{font-size:14px}.plan strong{font-size:21px}.plan small{font-size:11px}.top-badges{margin:3px 0 10px}.top-badges span{font-size:11px;padding:6px 3px}.screen-intro{margin:7px 0 12px}.promo-row{min-height:44px;padding:3px}.promo-row input{font-size:13px}.promo-row button{font-size:12px;padding:6px 10px;min-height:38px}.text-button{font-size:13px}.sticky-pay{padding-top:9px}.sticky-pay .primary-button{min-height:48px}.has-payment{padding-bottom:calc(85px + var(--safe))}
dialog{padding:18px 16px calc(18px + var(--safe));border-radius:22px 22px 0 0}.sheet-heading{margin-bottom:14px}.sheet-heading h2{font-size:20px}.sheet-footer{bottom:calc(-18px - var(--safe));padding:12px 0 calc(18px + var(--safe));margin-top:14px}.method{min-height:64px;padding:10px;border-radius:13px;gap:10px}.method strong{font-size:14px}.method small{font-size:12px}.traffic-grid .plan{min-height:74px}.traffic-grid .plan b{font-size:17px}.traffic-grid .plan strong{font-size:14px}.faq{padding:10px 12px}.faq summary{font-size:14px;min-height:36px}.faq p{font-size:12px;margin-top:7px}.device h3{font-size:14px}.device .hint{font-size:12px}.device button{font-size:12px}.test-note{font-size:12px;padding:10px}.details-row{font-size:13px}
@media(max-width:360px){.status-head strong{font-size:12px}.status-head time{font-size:11px}.stat-row{font-size:11px}.stat-row .stat-value strong{font-size:13px}.action-row{font-size:13px}.profile-tile .tile-title{font-size:12px}.plan b{font-size:13px}.plan .badge{font-size:9px;padding:2px 4px}.sheet-heading h2{font-size:19px}}

/* Compact visible controls with comfortable touch areas */
.stat-row{min-height:44px}.stat-row .icon-button{width:44px;min-height:44px}
.account-copy,.profile-subscription button,.promo-row button,.faq summary{position:relative}.account-copy::after{content:"";position:absolute;inset:-9px 0 -8px}.promo-row button::after{content:"";position:absolute;inset:-4px 0}.profile-subscription button::after{content:"";position:absolute;inset:-5px 0}.faq summary::after{content:"";position:absolute;inset:-4px 0}.profile-tile .tile-title{font-size:14px}.profile-tile .hint{font-size:12px}
@media(max-width:360px){.actions>[data-action="connect"] .row-meta{display:none}.profile-tile .tile-title{font-size:13px}.actions>[data-action="referral"] .row-meta{display:none}}

/* Reference geometry, normalized from the supplied 589 px screenshots to 390 px */
.actions>.action-row:not(.primary),.actions>.two-col .action-row{min-height:46px}.profile-hero .avatar{width:170px;height:170px}.profile-hero .avatar img{width:146px;height:148px}.profile-tile{min-height:67px;padding:14px 10px 6px}.profile-hero+.profile-subscription+.stack .two-col{gap:10px}.profile-subscription{padding:14px;height:83px}.profile-subscription small{display:block;line-height:17px}.profile-subscription strong{font-size:20px;line-height:1.2;white-space:nowrap}.profile-subscription-row{gap:12px}.profile-subscription button{width:84px;flex-shrink:0;font-size:12px;font-weight:600;color:#fff}.profile-document{min-height:67px;padding:14px 10px 6px;text-align:left}.profile-document .tile-title{display:flex;align-items:center;gap:7px;font-size:14px;font-weight:650}.profile-document .tile-title img{width:19px;height:19px}.profile-document .hint{display:block;font-size:12px;margin-top:7px}.plan{min-height:77px;padding:8px 10px}.plan strong{font-size:18px}.section-heading h1{font-size:18px}.client-options button{position:relative;min-height:32px;padding:4px;font-size:13px}.client-options button::before{content:"";position:absolute;inset:-6px 0}.client-options button[aria-pressed=true]::after{display:none}.stack>section.card:nth-child(2)>.secondary-button{min-height:46px}.sticky-pay .primary-button{min-height:51px}.top-badges span{padding:4px 3px}
@media(max-height:680px){.profile-hero .avatar{width:140px;height:140px}.profile-hero .avatar img{width:120px;height:122px}}

.plan-highlight{padding:12px}

.plan-grid:not(.traffic-grid) .plan:last-child:nth-child(odd){grid-column:1/-1;min-height:55px;display:grid;grid-template-columns:1fr auto;align-items:center;column-gap:8px;padding:8px 12px}.plan-grid:not(.traffic-grid) .plan:last-child:nth-child(odd) b{grid-column:1;grid-row:1;margin:0}.plan-grid:not(.traffic-grid) .plan:last-child:nth-child(odd) small{grid-column:1;grid-row:2;margin-top:4px}.plan-grid:not(.traffic-grid) .plan:last-child:nth-child(odd)>strong{grid-column:2;grid-row:1/3;margin-right:4px;font-size:22px}.plan-grid:not(.traffic-grid) .plan:last-child:nth-child(odd).selected>strong{margin-right:25px}.demo-state-button{display:block;width:100%;padding:4px 0;min-height:28px}
.telegram .app-header{display:none}.telegram main:not(.is-home){padding-top:14px}.telegram .hero{height:clamp(232px,calc(100svh - 388px),348px)}.telegram .profile-hero{padding-top:65px}.telegram .app{padding-top:0}

.section-heading .secondary-button{position:relative;min-width:85px;min-height:28px;padding:4px 9px;font-size:12px;line-height:18px;gap:6px;border-radius:9px}.section-heading .secondary-button img{width:14px;height:14px}.section-heading .secondary-button::before{content:"";position:absolute;inset:-8px 0}

/* Match the reference's entire home stack, not only individual controls */
.hero{height:clamp(160px,calc(65.1vw - 48px),252px)}.telegram .hero{height:clamp(208px,65.1vw,300px)}.hero img{height:clamp(174px,54.4vw,250px);width:auto;max-height:96%}.status-foot{font-size:10px;line-height:12px;margin:0;color:var(--muted)}.status-card{min-height:150px}

/* Единая геометрия главной по примеру, для всех тем и состояний подписки */
main.is-home{padding-inline:16px}
.is-home .status-card{height:auto;min-height:0;padding:8px 11px;margin-bottom:11px;display:grid;grid-template-rows:auto auto auto}
.is-home .status-head{min-height:32px}
.is-home .stat-row{min-height:44px}
.is-home .actions{gap:8px}
.is-home .actions>.action-row,.is-home .actions>.two-col .action-row{height:52px;min-height:52px}
.is-home .actions>.action-row.primary{height:54px;min-height:54px}

/* Switching plans or clients must not move any controls */
.download-footer{position:relative;display:flex;justify-content:center;align-items:center;height:20px;margin-top:6px}.download-footer .download-note{max-width:100%;font-size:12px;line-height:20px;margin:0;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.download-alternate{position:absolute;right:0;top:0;display:block;width:64px;height:20px;text-align:right;font-size:12px;color:var(--accent-text);line-height:20px}.download-alternate>a{position:relative;display:block;height:20px;white-space:nowrap}.download-alternate>a::before{content:"";position:absolute;inset:-12px 0}.client-options{height:32px}.section-heading{min-height:45px}.plan-highlight .highlight-title{height:21px}.plan-highlight .price{white-space:nowrap}.price-sub{height:17px;white-space:nowrap}.plan-grid:not(.traffic-grid) .plan:last-child:nth-child(odd)>strong{margin-right:25px}.plan-highlight{min-height:145px}
.client-options:has(button:only-child){grid-template-columns:1fr}
.download-alternate>a::before{inset:-6px 0 -18px}
.stack{grid-template-columns:minmax(0,1fr)}.stack>.card,.card-head>div,.qr-card>span{min-width:0}
@media(max-width:360px){.section-heading h1{font-size:16px;letter-spacing:-.3px}.section-heading{gap:6px}.profile-tile .hint{font-size:11px}}

/* Approved RUMI artwork and motion occupy the existing fixed hero slots */
.hero{--orbit-size:clamp(174px,54.4vw,250px);overflow:clip;isolation:isolate}
.hero .hero-art{position:relative;z-index:1;animation:rumi-float 6.5s ease-in-out infinite;filter:drop-shadow(0 14px 26px rgba(var(--glow-rgb),.16));background:radial-gradient(circle at 50% 46%,rgba(var(--glow-rgb),.1),rgba(var(--glow-rgb),0) 62%)}
.orbit-sphere{position:absolute;left:50%;top:50%;border-radius:50%;pointer-events:none;z-index:0}
.sphere-blue{width:10px;height:10px;margin:-5px;background:#287aff;opacity:.78;box-shadow:0 0 12px rgba(40,122,255,.7);animation:rumi-orbit-a 15s linear infinite}
.sphere-violet{width:7px;height:7px;margin:-3.5px;background:#8a72ff;opacity:.72;box-shadow:0 0 11px rgba(138,114,255,.65);animation:rumi-orbit-b 21s linear infinite}
.sphere-cyan{width:6px;height:6px;margin:-3px;background:#2fd6d7;opacity:.68;box-shadow:0 0 11px rgba(47,214,215,.6);animation:rumi-orbit-c 27s linear infinite;z-index:2}
@keyframes rumi-float{0%,100%{transform:translate3d(0,0,0) rotate(0deg)}25%{transform:translate3d(-7px,-9px,0) rotate(-2.2deg)}50%{transform:translate3d(0,-14px,0) rotate(.6deg)}75%{transform:translate3d(7px,-6px,0) rotate(2.4deg)}}
@keyframes rumi-orbit-a{from{transform:scaleY(.52) rotate(0deg) translateX(calc(var(--orbit-size) * .619)) rotate(0deg) scaleY(1.923)}to{transform:scaleY(.52) rotate(360deg) translateX(calc(var(--orbit-size) * .619)) rotate(-360deg) scaleY(1.923)}}
@keyframes rumi-orbit-b{from{transform:scaleY(.6) rotate(360deg) translateX(calc(var(--orbit-size) * .464)) rotate(-360deg) scaleY(1.667)}to{transform:scaleY(.6) rotate(0deg) translateX(calc(var(--orbit-size) * .464)) rotate(0deg) scaleY(1.667)}}
@keyframes rumi-orbit-c{from{transform:scaleY(.42) rotate(120deg) translateX(calc(var(--orbit-size) * .75)) rotate(-120deg) scaleY(2.381)}to{transform:scaleY(.42) rotate(480deg) translateX(calc(var(--orbit-size) * .75)) rotate(-480deg) scaleY(2.381)}}
.cosmic-avatar{--orbit-size:108px;position:relative;isolation:isolate;background:radial-gradient(circle,rgba(var(--glow-rgb),.17),rgba(var(--glow-rgb),0) 70%)}
.cosmic-avatar::before,.cosmic-avatar::after{content:"";position:absolute;inset:8%;border:1px solid rgba(var(--glow-rgb),.2);border-radius:50%;pointer-events:none}
.cosmic-avatar::after{inset:17%;border-color:rgba(138,114,255,.19);transform:rotate(-24deg) scaleY(.8)}
.avatar-center{position:relative;z-index:1;width:62%;height:62%;border:3px solid var(--card);border-radius:50%;overflow:hidden;box-shadow:0 6px 24px rgba(var(--glow-rgb),.13);background:var(--soft)}
.avatar-fallback{display:flex;width:100%;height:100%;align-items:center;justify-content:center}
.profile-hero .avatar .avatar-fallback img{width:48%;height:48%;object-fit:contain}
.profile-hero .avatar .profile-photo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.has-photo .avatar-fallback{visibility:hidden}
@media(max-height:680px){.cosmic-avatar{--orbit-size:88px}}

#rumi-splash{position:fixed;inset:0;z-index:9999;background:#0b1630;display:flex;align-items:center;justify-content:center;opacity:1;transition:opacity .45s ease;overflow:hidden;color:#fff}
#rumi-splash.gone{opacity:0;pointer-events:none}
#rumi-stars{position:absolute;inset:0;overflow:hidden;pointer-events:none}
#rumi-stars i{position:absolute;aspect-ratio:1;border-radius:50%;background:#fff;opacity:var(--star-opacity);animation:splash-twinkle 2.4s linear infinite}
.splash-glow{position:absolute;width:300px;height:300px;border-radius:50%;background:radial-gradient(circle,rgba(47,111,255,.4),rgba(47,111,255,0) 70%)}
.splash-bob{animation:splash-bob 3.2s ease-in-out infinite}
.splash-tilt{animation:splash-tilt 4.6s ease-in-out infinite}
.splash-tilt img{width:min(288px,62vw);height:auto;display:block}
.splash-word{position:absolute;bottom:calc(72px + var(--safe));opacity:.85;font-size:20px;font-weight:700;letter-spacing:4px}
@keyframes splash-twinkle{0%,100%{opacity:calc(var(--star-opacity) * .55)}50%{opacity:var(--star-opacity)}}
@keyframes splash-bob{0%,100%{transform:translateY(0)}50%{transform:translateY(-9px)}}
@keyframes splash-tilt{0%,100%{transform:translateX(0) rotate(0deg)}25%{transform:translateX(3px) rotate(5deg)}75%{transform:translateX(-3px) rotate(-5deg)}}
.boot-error{position:relative;padding:28px;text-align:center;max-width:380px}
.boot-error h1{font-size:21px;line-height:1.25;color:white}
.boot-error p{font-size:14px;line-height:1.5;color:var(--strong-muted);margin:12px 0 20px}
.boot-error button{min-height:46px;width:100%;padding:10px 20px;border-radius:13px;background:var(--accent);color:white;font-size:14px;font-weight:650}
.load-failed .splash-bob,.load-failed .splash-glow,.load-failed .splash-word{display:none}
.boot-noscript{position:fixed;inset:0;z-index:10000;display:flex;align-items:center;justify-content:center;padding:28px;text-align:center;background:#0b1630;color:white;font-size:16px}
.motion-paused .orbit-sphere,.motion-paused .hero-art,.motion-paused #rumi-stars i,.motion-paused .splash-bob,.motion-paused .splash-tilt{animation-play-state:paused}
@media(prefers-reduced-motion:reduce){.orbit-sphere,.hero .hero-art,#rumi-stars i,.splash-bob,.splash-tilt{animation:none}.sphere-blue{transform:translate(58px,-30px)}.sphere-violet{transform:translate(-54px,22px)}.sphere-cyan{transform:translate(-35px,-46px)}#rumi-splash{transition:none}}

/* Theme tokens change paint only; all existing screen geometry stays fixed */
:root,.theme-option{color-scheme:light;--bg:#f8f9fc;--card:#ffffff;--ink:#192235;--muted:#647084;--line:#e7eaf0;--accent:#2866e9;--soft:#eef3ff;--surface:#f0f2f6;--field:#fbfcfe;--accent-text:var(--accent);--strong-bg:#192235;--strong-surface:#344057;--strong-line:#384256;--strong-muted:#bdc8db;--strong-accent:#abc5ff;--radio-line:#a0aab9;--note-ink:#455777;--selected-muted:#596579;--green:#179976;--glow-rgb:40,122,255;--icon-filter:none;--accent-icon-filter:none;--primary-bg:var(--accent);--swatch-color:var(--accent-text);}
:root[data-theme="lime"],.theme-option[data-theme="lime"]{--bg:#f7f5ec;--card:#fffef8;--ink:#242822;--muted:#606a5b;--line:#dedfd1;--soft:#e8f1d5;--surface:#eeefe3;--field:#fcfbf5;--accent:#4c681c;--strong-bg:#1b1e18;--strong-surface:#363d2d;--strong-line:#4a513c;--strong-accent:#cbe587;--strong-muted:#c8cebc;--primary-bg:var(--strong-bg);--green:#8ba923;--swatch-color:#bdd778;--glow-rgb:159,183,60;--accent-icon-filter:hue-rotate(224deg) saturate(.45) brightness(.6);}
:root[data-theme="sand"],.theme-option[data-theme="sand"]{--bg:#f6f2ea;--card:#fffdfa;--ink:#302a23;--muted:#6b6258;--line:#e3dcce;--soft:#efe5d5;--surface:#eee8df;--field:#fcf8f2;--accent:#805b2a;--strong-bg:#28241c;--strong-surface:#494134;--strong-line:#5d5342;--strong-accent:#e6c99b;--primary-bg:var(--strong-bg);--glow-rgb:170,136,85;--accent-icon-filter:hue-rotate(172deg) saturate(.35) brightness(.66);}
:root[data-theme="sage"],.theme-option[data-theme="sage"]{--bg:#f1f4ed;--card:#fdfef9;--ink:#263026;--muted:#606d5d;--line:#dde4d7;--soft:#e2ecd9;--surface:#e8ede2;--field:#f8faf4;--accent:#4f6c3d;--strong-bg:#232b20;--strong-surface:#3e4b37;--strong-line:#535f4b;--strong-accent:#c0d5aa;--primary-bg:var(--strong-bg);--glow-rgb:120,149,99;--accent-icon-filter:hue-rotate(249deg) saturate(.28) brightness(.62);}
:root[data-theme="ice"],.theme-option[data-theme="ice"]{--bg:#f1f5f8;--card:#fcfeff;--ink:#243142;--muted:#617081;--line:#dce4eb;--soft:#e4edf5;--surface:#e8eff4;--field:#f8fbfd;--accent:#486d92;--strong-bg:#1c2b39;--strong-surface:#364b5d;--strong-line:#4b6073;--strong-accent:#bed8ec;--primary-bg:var(--strong-bg);--glow-rgb:99,151,186;--accent-icon-filter:hue-rotate(350deg) saturate(.35) brightness(.8);}
:root[data-theme="lavender"],.theme-option[data-theme="lavender"]{--bg:#f5f2fc;--line:#e7e0f1;--accent:#7047c6;--soft:#eee7fa;--surface:#eeeaf5;--field:#faf8fd;--strong-bg:#2a2340;--strong-surface:#463957;--strong-line:#544865;--strong-accent:#d4baff;--glow-rgb:128,91,215;--accent-icon-filter:hue-rotate(32deg) saturate(.78) brightness(.9);}
:root[data-theme="mint"],.theme-option[data-theme="mint"]{--bg:#eef7f3;--line:#dcece4;--accent:#07765d;--soft:#e0f1e9;--surface:#e7f0eb;--field:#f7fbf9;--strong-bg:#16372f;--strong-surface:#2f5246;--strong-line:#3c6053;--strong-accent:#a0dfc4;--glow-rgb:28,155,117;--accent-icon-filter:hue-rotate(283deg) saturate(.64) brightness(.67);}
:root[data-theme="peach"],.theme-option[data-theme="peach"]{--bg:#fcf3ed;--line:#eddfd5;--accent:#af4f15;--soft:#faeadd;--surface:#f3e9e0;--field:#fdf9f5;--strong-bg:#422b21;--strong-surface:#634637;--strong-line:#725441;--strong-accent:#f5c5a0;--glow-rgb:206,130,80;--accent-icon-filter:hue-rotate(167deg) saturate(.75) brightness(.83);}
:root[data-theme="rose"],.theme-option[data-theme="rose"]{--bg:#fbf1f5;--line:#ecdee5;--accent:#b53c6b;--soft:#fae5ef;--surface:#f3e7ed;--field:#fdf8fa;--strong-bg:#3c2432;--strong-surface:#5d3c4d;--strong-line:#6a4a5b;--strong-accent:#f3b8d0;--glow-rgb:200,96,149;--accent-icon-filter:hue-rotate(90deg) saturate(.71) brightness(.88);}
:root[data-theme="cosmos"],.theme-option[data-theme="cosmos"]{--bg:#f1f4f9;--line:#dde5f1;--accent:#285dce;--soft:#e8effb;--surface:#e9eef6;--field:#f8fafc;--strong-bg:#152844;--strong-accent:#b6ccff;--glow-rgb:94,144,255;}
:root[data-color-scheme="dark"],:root[data-color-scheme="dark"] .theme-option{color-scheme:dark;--bg:#101827;--card:#192335;--ink:#f0f4fc;--muted:#a4b0c5;--line:#2d3b52;--accent:#285dce;--soft:#253958;--surface:#243147;--field:#162133;--accent-text:#98b6ff;--strong-bg:#1d2e4a;--strong-surface:#304361;--strong-line:#415474;--strong-muted:#c1cce0;--strong-accent:#b6ccff;--radio-line:#7385a0;--note-ink:#c1cce0;--selected-muted:#b9c6da;--green:#44c4a0;--glow-rgb:94,144,255;--icon-filter:brightness(0) invert(.74);--accent-icon-filter:brightness(1.75) saturate(.72);--primary-bg:var(--accent);--swatch-color:var(--accent-text);}
:root[data-color-scheme="dark"][data-theme="lime"],:root[data-color-scheme="dark"] .theme-option[data-theme="lime"]{--bg:#151a12;--card:#20261a;--ink:#f2f6e9;--muted:#afbba0;--line:#37422c;--soft:#303e21;--surface:#2c3525;--field:#1b2116;--accent:#4c681c;--accent-text:#cae987;--strong-bg:#22261c;--strong-surface:#373e2c;--strong-line:#4a5439;--strong-accent:#d3f28a;--strong-muted:#cdd5c8;--selected-muted:#afbba0;--note-ink:#cdd5c8;--green:#cae987;--glow-rgb:159,183,60;--accent-icon-filter:hue-rotate(224deg) saturate(.55) brightness(1.45);}
:root[data-color-scheme="dark"][data-theme="sand"],:root[data-color-scheme="dark"] .theme-option[data-theme="sand"]{--bg:#1b1814;--card:#29231d;--ink:#f6f0e7;--muted:#beb0a1;--line:#44392e;--soft:#3f3223;--surface:#362d24;--field:#221d18;--accent:#805b2a;--accent-text:#e7c699;--strong-bg:#322a22;--strong-surface:#4b4134;--strong-line:#645443;--strong-accent:#e6cca4;--selected-muted:#beb0a1;--note-ink:#d6c9b8;--glow-rgb:170,136,85;--accent-icon-filter:hue-rotate(172deg) saturate(.45) brightness(1.5);}
:root[data-color-scheme="dark"][data-theme="sage"],:root[data-color-scheme="dark"] .theme-option[data-theme="sage"]{--bg:#151a15;--card:#212921;--ink:#edf3ea;--muted:#acb8a8;--line:#364636;--soft:#2c3d29;--surface:#2b3529;--field:#1b221a;--accent:#4f6c3d;--accent-text:#bed5ab;--strong-bg:#263226;--strong-surface:#3d4c36;--strong-line:#536547;--strong-accent:#cbdeb5;--selected-muted:#acb8a8;--note-ink:#c8d5c0;--glow-rgb:120,149,99;--accent-icon-filter:hue-rotate(249deg) saturate(.38) brightness(1.45);}
:root[data-color-scheme="dark"][data-theme="ice"],:root[data-color-scheme="dark"] .theme-option[data-theme="ice"]{--bg:#121a22;--card:#1d2935;--ink:#ecf3fa;--muted:#a7b8c8;--line:#33485c;--soft:#2b3e52;--surface:#293846;--field:#18222d;--accent:#486d92;--accent-text:#a9cff1;--strong-bg:#233345;--strong-surface:#354b63;--strong-line:#4b6078;--strong-accent:#bdd6ee;--selected-muted:#a7b8c8;--note-ink:#c4d3e1;--glow-rgb:99,151,186;--accent-icon-filter:hue-rotate(350deg) saturate(.4) brightness(1.65);}
:root[data-color-scheme="dark"][data-theme="lavender"],:root[data-color-scheme="dark"] .theme-option[data-theme="lavender"]{--bg:#1b1728;--card:#272139;--ink:#f4effc;--muted:#b9abc9;--line:#3e3450;--accent:#7047c6;--soft:#3a2d52;--surface:#332b47;--field:#221c31;--accent-text:#c3a5fb;--strong-bg:#322543;--strong-surface:#4b385d;--strong-line:#604875;--strong-accent:#d4baff;--selected-muted:#c4b4d9;--glow-rgb:128,91,215;--accent-icon-filter:hue-rotate(32deg) brightness(1.75) saturate(.65);}
:root[data-color-scheme="dark"][data-theme="mint"],:root[data-color-scheme="dark"] .theme-option[data-theme="mint"]{--bg:#12221e;--card:#1b302a;--ink:#edf6f1;--muted:#aac2b8;--line:#345447;--accent:#07765d;--soft:#274237;--surface:#263d35;--field:#172922;--accent-text:#86d6ba;--strong-bg:#213d32;--strong-surface:#355747;--strong-line:#456857;--strong-muted:#bccfc7;--strong-accent:#a0dfc4;--selected-muted:#b9cec4;--glow-rgb:28,155,117;--accent-icon-filter:hue-rotate(283deg) brightness(1.4) saturate(.6);}
:root[data-color-scheme="dark"][data-theme="peach"],:root[data-color-scheme="dark"] .theme-option[data-theme="peach"]{--bg:#241b16;--card:#31261e;--ink:#f7efe5;--muted:#c7b4a5;--line:#523b2b;--accent:#af4f15;--soft:#4b3424;--surface:#3f2f24;--field:#2b211a;--accent-text:#efb995;--strong-bg:#423022;--strong-surface:#62482f;--strong-line:#75563c;--strong-accent:#f5c5a0;--selected-muted:#d0bdad;--glow-rgb:206,130,80;--accent-icon-filter:hue-rotate(167deg) brightness(1.45) saturate(.55);}
:root[data-color-scheme="dark"][data-theme="rose"],:root[data-color-scheme="dark"] .theme-option[data-theme="rose"]{--bg:#251822;--card:#342330;--ink:#fff0f7;--muted:#c8aebf;--line:#553749;--accent:#b53c6b;--soft:#4a2d40;--surface:#452c3b;--field:#2c1e28;--accent-text:#f2aed1;--strong-bg:#432b3a;--strong-surface:#634456;--strong-line:#765568;--strong-accent:#f3b8d0;--selected-muted:#d7b8cb;--glow-rgb:200,96,149;--accent-icon-filter:hue-rotate(90deg) brightness(1.55) saturate(.55);}
/* Синие акценты для продления и выделенного тарифа в обоих режимах */
:root[data-theme="orbit"],:root[data-theme="ice"],:root[data-theme="cosmos"],
:root[data-color-scheme="dark"][data-theme="orbit"],:root[data-color-scheme="dark"][data-theme="ice"],:root[data-color-scheme="dark"][data-theme="cosmos"]{--strong-bg:var(--accent);--strong-muted:#f0f5ff;--strong-accent:#fff;--strong-line:#ffffff38}
:root[data-theme="orbit"],:root[data-color-scheme="dark"][data-theme="orbit"]{--strong-surface:#1c50bc}
:root[data-theme="ice"],:root[data-color-scheme="dark"][data-theme="ice"]{--strong-surface:#365777}
:root[data-theme="cosmos"],:root[data-color-scheme="dark"][data-theme="cosmos"]{--strong-surface:#1d479f}
img[src*="assets/icons/"]:not([src$="-white.svg"]):not([src$="-blue.svg"]){filter:var(--icon-filter)}
img[src$="-blue.svg"]{filter:var(--accent-icon-filter)}
.primary-button{background:var(--primary-bg);color:#fff}
.boot-error button{color:#fff}
input::placeholder{color:var(--muted);opacity:1}
.plan.selected small,.method.selected small{color:var(--selected-muted)}
.method.selected .radio{border-color:var(--accent-text)}
.qr-card img,.qr-large{background:#fff}
.profile-hero{position:relative}
.theme-trigger{position:absolute;top:14px;right:0;display:flex;align-items:center;justify-content:center;gap:6px;width:84px;min-height:28px;padding:4px 8px;border:1px solid var(--line);border-radius:9px;background:var(--card);font-size:12px;line-height:18px;font-weight:600;z-index:3}
.theme-trigger::before{content:"";position:absolute;inset:-8px 0}
.theme-trigger img{width:13px;height:13px}
.theme-dot{width:9px;height:9px;flex:none;border-radius:50%;background:var(--accent-text)}
.appearance-modes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:3px;padding:3px;border:1px solid var(--line);border-radius:11px;background:var(--surface)}
.appearance-mode{position:relative;min-height:30px;padding:4px 6px;border-radius:7px;color:var(--selected-muted);font-size:12px;line-height:18px;font-weight:600}
.promo-row button{color:var(--selected-muted)}
.appearance-mode::before{content:"";position:absolute;inset:-7px 0}
.appearance-mode[aria-checked="true"]{background:var(--card);color:var(--ink);box-shadow:0 1px 3px rgba(0,0,0,.08)}
.theme-color-label{margin-top:12px;font-size:12px}
.theme-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:8px}
.theme-option{display:flex;align-items:center;min-width:0;min-height:48px;gap:7px;padding:8px;border:1px solid var(--line);border-radius:11px;background:var(--card);color:var(--ink);text-align:left}
.theme-option[aria-checked="true"]{border-color:var(--accent-text);box-shadow:0 0 0 1px var(--accent-text)}
.theme-swatch{display:flex;align-items:center;justify-content:center;flex:none;width:24px;height:28px;border-radius:7px;border:1px solid var(--line);background:var(--bg)}
.theme-swatch>span{width:13px;height:13px;border-radius:50%;background:var(--swatch-color)}
.theme-option-label{font-size:12px;line-height:18px;font-weight:600}
.theme-check{display:flex;align-items:center;justify-content:center;flex:none;width:16px;height:16px;margin-left:auto;border-radius:50%;background:var(--accent);visibility:hidden}
.theme-check img{width:11px;height:11px}
.theme-option[aria-checked="true"] .theme-check{visibility:visible}
.theme-note{height:34px;margin-top:12px;font-size:11px;line-height:17px;text-align:center}
.sheet-footer.theme-footer{position:static;margin-top:12px;padding:0}

/* Размер по экрану без ручного увеличения и без синей рамки ввода */
html,body,dialog{touch-action:pan-x pan-y}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
input,.promo-row input,.copy-row input{font-size:16px}
input:focus,input:focus-visible{outline:none;box-shadow:none}
.copy-row input{height:44px;min-height:44px;padding:8px 12px}

/* Дополнения к тарифу, без изменений геометрии главной и карточек выбора */
.addon-actions{display:grid;gap:2px;margin-top:6px}.addon-actions .text-button{text-align:left;min-height:40px}
.device-addons{margin-top:10px}.device-quantity{display:grid;grid-template-columns:48px 1fr 48px;align-items:center;gap:16px;margin:22px 0;text-align:center}.device-quantity button{height:48px;min-width:48px;font-size:24px;padding:0}.device-quantity button:disabled{opacity:.35;cursor:default}.device-quantity strong{display:block;font-size:28px;font-variant-numeric:tabular-nums}.device-quantity small{display:block;color:var(--muted);font-size:12px}
.plan-grid:not(.traffic-grid) .plan small{white-space:nowrap}.plan-highlight .highlight-title{font-size:14px}.plan-features{flex-wrap:nowrap}.plan-features span{white-space:nowrap}

/* Выделение установки на главной, без изменения размеров и без цветной рамки */
.is-home .actions>.action-row[data-action="connect"]{background:var(--soft);color:var(--accent-text)}
.is-home .actions>.action-row[data-action="connect"] .action-icon{background:var(--accent)}
.is-home .actions>.action-row[data-action="connect"] .action-icon img{filter:brightness(0) invert(1)}
.is-home .actions>.action-row[data-action="connect"] .platform-badge{background:var(--card);color:var(--accent-text)}
.profile-subscription-row strong{min-width:0;overflow:hidden;text-overflow:ellipsis}
.referral-stack{gap:8px}
.referral-bonuses .card{height:52px;min-height:52px;padding:12px 11px;background:var(--soft);display:flex;align-items:center;justify-content:space-between;gap:8px}
.referral-bonuses .ref-value{order:2;font-size:18px;white-space:nowrap;color:var(--accent-text);line-height:26px;letter-spacing:-.3px}
.referral-bonuses h3{margin:0;font-size:13px;line-height:26px}
.referral-stats .card{height:52px;padding:6px 11px}
.referral-stats .ref-value{font-size:18px;line-height:22px;letter-spacing:0}
.referral-stats .hint{font-size:12px;line-height:16px;margin:0}
.referral-stack .primary-button{height:52px;min-height:52px;margin-top:10px}
.referral-stack .faq{padding:0 12px}
.referral-stack .faq summary{height:50px;min-height:50px}
.referral-stack .faq[open]{padding-bottom:12px}

/* Общая плотность MiniApp: обычная кнопка 52 px, края текста 12 px,
   многострочные карточки растут только на высоту своего содержимого */
:root{--control-height:52px;--content-inset:12px;--content-gap:8px}
.primary-button,.secondary-button,.action-row,.is-home .actions>.action-row,.is-home .actions>.two-col .action-row,.is-home .actions>.action-row.primary,.sticky-pay .primary-button,.stack>section.card:nth-child(2)>.secondary-button,.copy-row .secondary-button{height:var(--control-height);min-height:var(--control-height);padding-block:0;line-height:20px}
.client-options{height:var(--control-height)}
.client-options button{height:var(--control-height);min-height:var(--control-height);padding:0 var(--content-inset);line-height:20px}
.card:not(.status-card),.plan-highlight,.method,.test-note{padding:var(--content-inset)}
.stack{gap:var(--content-gap)}
.profile-tile,.profile-document{height:auto;min-height:66px}
.profile-tile .tile-title,.profile-document .tile-title{line-height:20px}
.profile-tile .hint,.profile-document .hint{line-height:16px;margin-top:4px}
.referral-stats .card{height:auto;min-height:64px}
.faq,.referral-stack .faq{padding:0 var(--content-inset)}
.faq summary,.referral-stack .faq summary{height:calc(var(--control-height) - 2px);min-height:calc(var(--control-height) - 2px);padding:0}
.faq[open],.referral-stack .faq[open]{padding-bottom:var(--content-inset)}
.method{min-height:64px}
.method strong{line-height:20px}.method small{line-height:18px}
.platform-row{min-height:52px;padding-block:var(--content-inset)}
.section-heading .secondary-button{height:var(--control-height);min-height:var(--control-height);padding-block:0}

/* Пакеты обхода используют ту же компактную карточку выбора, что и тарифы */
.traffic-grid .plan{height:68px;min-height:68px;padding:12px;text-align:left;border-radius:15px}
.traffic-grid .plan b{font-size:14px;line-height:20px;margin:0;font-weight:650}
.traffic-grid .plan strong{font-size:18px;line-height:22px;margin:0;font-weight:700;color:var(--ink)}
.traffic-grid .plan .selected-check{top:12px;right:10px;width:18px;height:18px}
.traffic-refresh-note{margin-top:var(--content-gap);text-align:left}

/* Новые разделы сохраняют тот же размер строки и отступ от текста */
.subscription-tools,.profile-app-actions{margin-top:var(--content-gap)}
.pending-order{margin-top:var(--content-gap)}
.pending-order .secondary-button,.trial-card .secondary-button{margin-top:var(--content-gap)}
.switch-row{display:flex;align-items:center;gap:8px;width:100%;min-height:var(--control-height);padding:0;background:none;color:var(--ink);text-align:left}
.switch-row strong{flex:1;font-size:14px}
.switch-row>span{font-size:12px;color:var(--muted)}
.switch-track{position:relative;display:block;width:36px;height:22px;flex:0 0 36px;border-radius:11px;background:var(--line)}
.switch-track:after{content:"";position:absolute;left:3px;top:3px;width:16px;height:16px;background:var(--card);border-radius:50%;transition:transform .15s}
.switch-track.on{background:var(--accent)}
.switch-track.on:after{transform:translateX(14px)}
.autopay-card .faq{margin-top:var(--content-gap);border:0;border-top:1px solid var(--line);border-radius:0;padding:0}
.autopay-card .faq summary{padding:12px 0;min-height:var(--control-height)}
.activation-note{margin:8px 0;text-align:left;font-size:12px}
.referral-funnel .card{min-height:64px;padding:12px}
.referral-funnel .card>strong{font-size:18px;line-height:20px}
.referral-funnel .hint{margin-top:4px;line-height:16px;font-size:12px}
.check-row{display:flex;align-items:center;gap:10px;min-height:var(--control-height);font-size:14px}
.check-row input{width:18px;height:18px;accent-color:var(--accent);flex:0 0 18px}
.support-topic{text-align:left;justify-content:flex-start;white-space:normal;min-height:var(--control-height);padding:12px}
#support-draft{display:block;min-height:128px;width:100%;padding:12px;margin-top:8px;color:var(--ink);background:var(--card);border:1px solid var(--line);border-radius:12px;font:inherit;font-size:16px;line-height:22px;resize:vertical}
.legal-copy{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:21px;padding:0 12px 12px}
.payment-history-row>div{min-width:0}
.payment-history-row>div>strong{font-size:14px;overflow-wrap:anywhere}
.payment-history-row>strong{white-space:nowrap;font-size:14px}
.checkout-error:empty{display:none}
.checkout-error{color:var(--ink);margin-top:8px}
.details-row{overflow-wrap:anywhere}
textarea:focus,textarea:focus-visible{outline:none;box-shadow:none;border-color:var(--line)}
button:disabled{cursor:default;opacity:.55}

/* Пробник сохраняет геометрию главной, акцент зависит от темы */
.trial-caption{font-size:12px;line-height:18px;color:var(--muted);text-align:center;margin:0}
.is-home .trial-plans{height:36px;min-height:36px;padding:0;line-height:20px}
@media(max-width:360px){.action-row[data-action="trial"]{font-size:13px;gap:8px}.action-row[data-action="trial"]>span:nth-child(2){white-space:nowrap}}
.trial-spinner{width:18px;height:18px;border:2px solid rgba(255,255,255,.35);border-top-color:white;border-radius:50%;animation:trial-spin .8s linear infinite}
@keyframes trial-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.trial-spinner{animation:none}}

/* Свободная высота главной распределяется без увеличения кнопок и карточки */
main.is-home{display:flex;flex-direction:column;min-height:calc(100dvh - 48px)}
.telegram main.is-home{min-height:100dvh}
.is-home>.hero{flex:1 0 auto}
.is-home>.status-card,.is-home>.actions{flex:none}
main.is-home::after{content:"";flex:2 0 0px;max-height:max(0px,calc(clamp(48px,12dvh,112px) - 20px - var(--safe)))}
@media(min-width:600px){html:not(.telegram) main.is-home{min-height:calc(100dvh - 60px)}}

.bypass-usage{margin-top:2px}
.bypass-meter{appearance:none;-webkit-appearance:none;display:block;width:100%;height:4px;border:0;border-radius:4px;overflow:hidden;background:var(--surface);color:var(--accent)}
.bypass-meter::-webkit-progress-bar{background:var(--surface);border-radius:4px}
.bypass-meter::-webkit-progress-value{background:var(--accent);border-radius:4px}
.bypass-meter::-moz-progress-bar{background:var(--accent);border-radius:4px}
.bypass-caption{margin-top:6px;font-size:11px;line-height:14px;color:var(--muted)}

.stat-prefix{color:var(--muted);font-size:11px;font-weight:400}
@media(max-width:360px){.stat-prefix{display:block;font-size:10px;line-height:12px}}

/* Fit the available Mini App window while keeping controls at their normal height */
main.is-home{height:calc(100dvh - 48px)}
.telegram main.is-home{height:100dvh}
.is-home>.hero{flex:1 1 auto;min-height:140px}
.is-home>.hero .hero-art{min-height:0;max-height:calc(100% - 20px)}
main.is-home::after{flex-shrink:1}
@media(min-width:600px){html:not(.telegram) main.is-home{height:calc(100dvh - 60px)}}

/* Единая цена месяца и компактные подсказки для сроков */
.plan .plan-monthly{color:var(--ink);font-weight:600;font-size:12px}
.plan .plan-mark{display:inline-block;margin-top:6px;padding:3px 5px;border-radius:6px;background:var(--soft);color:var(--accent-text);font-size:10px;line-height:1.2;font-weight:650}
