:root{color-scheme:dark;--bg:#071426;--surface:#10213a;--surface-soft:#10213a;--surface-raised:#172b48;--line:#263c5b;--text:#f3f7ff;--muted:#9eafc7;--cyan:#59b8ff;--blue:#3e8df5;--success:#69c9cf;--radius:20px;--safe-top:max(env(safe-area-inset-top,0px),var(--tg-safe-top,0px));--safe-bottom:max(env(safe-area-inset-bottom,0px),var(--tg-safe-bottom,0px));--content-top:var(--tg-content-top,0px);--font:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
*{box-sizing:border-box}html{min-width:280px}body{margin:0;background:var(--bg);color:var(--text);font:15px/1.5 var(--font);-webkit-tap-highlight-color:transparent;overflow-wrap:anywhere}button,input,a{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer;color:inherit}button:disabled{cursor:default;opacity:.45}button:active:not(:disabled),a.button:active{transform:scale(.985)}a{color:inherit;text-decoration:none}button,a,input,summary{outline-offset:4px}button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible{outline:2px solid var(--cyan)}h1,h2,h3,p{margin:0}h1,h2,h3{line-height:1.25;letter-spacing:-.025em}h1{font-size:28px;font-weight:650}h2{font-size:19px;font-weight:600}h3{font-size:16px;font-weight:600}svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle;flex-shrink:0}.sprite{position:absolute;width:0;height:0;overflow:hidden}[hidden]{display:none!important}input{min-width:0;background:var(--bg);border:1px solid var(--line);border-radius:12px;padding:12px;color:var(--text);font-size:16px}progress{display:block;appearance:none;width:100%;height:4px;border:0;border-radius:4px;overflow:hidden;background:var(--line);color:var(--cyan)}progress::-webkit-progress-bar{background:var(--line)}progress::-webkit-progress-value{background:var(--cyan)}progress::-moz-progress-bar{background:var(--cyan)}
.shell{max-width:560px;margin:auto;min-height:100dvh}#main{padding:0 max(20px,env(safe-area-inset-left,0px),var(--tg-safe-left,0px)) calc(100px + var(--safe-bottom)) max(20px,env(safe-area-inset-right,0px),var(--tg-safe-right,0px))}.topbar{display:flex;align-items:center;min-height:calc(68px + var(--safe-top) + var(--content-top));padding-top:calc(var(--safe-top) + var(--content-top))}.wordmark{font-size:23px;letter-spacing:-.8px;font-weight:650;line-height:1}.wordmark span{color:var(--cyan)}.page-title{margin:20px 0 24px}.section-kicker,.eyebrow{font-size:12px;color:var(--muted);font-weight:500}.page-title .section-kicker{display:none}.page-title p:not(.section-kicker){font-size:14px;color:var(--muted);margin-top:8px}.button{border:0;border-radius:14px;min-height:50px;padding:13px 18px;width:100%;display:flex;align-items:center;justify-content:center;gap:10px;font-size:15px;line-height:1.4;font-weight:600;text-align:center}.button svg{width:18px;height:18px}.primary{background:var(--cyan);color:#071426}.secondary{background:var(--surface-raised);color:var(--text)}.text-button,.back-link{border:0;background:none;color:var(--cyan);display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:12px 0;min-height:44px;font-size:14px}.icon-button{display:grid;place-items:center;border:0;background:var(--surface-raised);border-radius:12px;width:44px;height:44px;flex-shrink:0}.back-link{color:var(--muted);margin:4px 0;font-size:14px;justify-content:flex-start}.back-link svg{width:17px}.notice{border-radius:14px;background:var(--surface);color:var(--muted);padding:14px 16px;font-size:13px;margin:16px 0;line-height:1.6}.fineprint,.micro{font-size:12px;line-height:1.6;color:var(--muted)}.fineprint{margin:16px 0}.legal-links{display:flex;flex-wrap:wrap;gap:16px;font-size:12px;color:var(--muted);margin:22px 0}.legal-links a{min-height:32px;display:inline-flex;align-items:center}.section-line{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:26px 0 12px}.section-line h2{font-size:17px}.section-line>span{font-size:12px;color:var(--muted)}.card-top{display:flex;justify-content:space-between;align-items:center;gap:12px}
/* The home screen has one status and one primary action. */
.subscription-card{background:linear-gradient(145deg,#153154,#0d1e38);border-radius:var(--radius);padding:28px 22px 22px;margin:14px 0 20px}.status-symbol{width:44px;height:44px;display:grid;place-items:center;border-radius:14px;background:#193c63;color:var(--cyan);margin-bottom:24px}.status-symbol svg{width:24px;height:24px}.subscription-card h1{font-size:28px;letter-spacing:-.7px}.remaining-line{color:var(--muted);font-size:16px;margin:10px 0 28px}.remaining-line strong{color:var(--text);font-weight:500}.subscription-card.is-inactive .status-symbol{background:#253650;color:var(--muted)}.subscription-card.is-inactive h1{font-size:25px}.subscription-card.is-inactive .remaining-line{font-size:14px}.action-group,.account-actions,.contact-list{background:var(--surface);border-radius:var(--radius);overflow:hidden}.action-row{border:0;background:var(--surface);display:flex;align-items:center;width:100%;gap:14px;padding:17px 18px;min-height:58px;text-align:left}.action-row+.action-row{border-top:1px solid #243a58}.action-row>svg:first-child{width:21px;height:21px;color:var(--muted)}.action-row>span:not(.row-icon){flex:1;min-width:0;font-size:15px}.action-row strong{font-size:15px;font-weight:500;display:block}.action-row small{display:block;font-size:12px;color:var(--muted);margin-top:3px}.action-row .chevron{margin-left:auto;width:16px;height:16px;color:#71849b}.row-icon{display:grid;place-items:center;flex-shrink:0;color:var(--muted)}.row-icon svg{width:21px;height:21px}.page>.action-row{border-radius:var(--radius);margin:18px 0}
.plan-list{display:grid;gap:10px}.plan{position:relative;width:100%;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px 12px;padding:18px 44px 18px 18px;background:var(--surface);border:1px solid transparent;border-radius:var(--radius);text-align:left;color:var(--text)}.plan.selected,.plan[aria-pressed=true]{border-color:var(--cyan);background:#153252}.plan-name{font-size:17px;font-weight:600}.plan-price{font-size:21px;font-weight:600;grid-column:2;grid-row:1/3;align-self:center;letter-spacing:-.5px}.plan-devices{font-size:12px;color:var(--muted);grid-column:1}.plan-radio{position:absolute;right:16px;top:calc(50% - 8px);width:16px;height:16px;border:1px solid #7288a7;border-radius:50%}.plan.selected .plan-radio{border:5px solid var(--cyan)}.checkout-card{margin-top:24px;padding:20px;background:var(--surface);border-radius:var(--radius)}.summary-line{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:12px 0 20px}.summary-line h2{font-size:17px}.summary-line p{font-size:12px;color:var(--muted);margin-top:4px}.summary-line>strong{font-size:24px;white-space:nowrap;letter-spacing:-.6px}.checkout-card>p{display:flex;align-items:center;justify-content:center;gap:6px;margin-top:12px;color:var(--muted);font-size:12px}.checkout-card>p svg{height:14px;width:14px}
.subscription-overview{display:flex;align-items:center;gap:12px;background:var(--surface);border-radius:var(--radius);padding:18px}.subscription-overview>div{flex:1;min-width:0}.subscription-overview strong{font-size:15px;font-weight:500}.subscription-overview p{font-size:12px;color:var(--muted);margin-top:4px}.subscription-overview .text-button{font-size:13px;flex-shrink:0}.subscription-overview .text-button svg{display:none}.setup-heading{display:flex;align-items:center;justify-content:space-between;margin:28px 0 12px;gap:8px}.setup-heading h2{font-size:17px}.setup-heading>span{font-size:12px;color:var(--muted)}.setup-steps{list-style:none;padding:0;margin:8px 0}.setup-steps>li{display:flex;align-items:flex-start;gap:14px;padding:22px 0;border-bottom:1px solid var(--line)}.setup-steps>li>div{flex:1;min-width:0}.step-number{font-size:12px;display:grid;place-items:center;width:28px;height:28px;border-radius:9px;background:var(--surface);color:var(--muted);flex-shrink:0}.complete .step-number{background:#183c40;color:var(--cyan)}.setup-steps p{font-size:13px;color:var(--muted);line-height:1.6;margin:7px 0 14px}.setup-steps .button{font-size:14px;min-height:46px}.setup-steps .text-button{font-size:13px}.private-connection{background:var(--surface);border-radius:14px;padding:14px;margin-top:14px}.private-connection label{font-size:12px;color:var(--muted)}.copy-field{display:flex;gap:8px;margin:10px 0}.copy-field input{width:100%;flex:1}.copy-field .icon-button{height:46px}.private-connection .micro{font-size:12px}
.profile-card{padding:20px;background:var(--surface);border-radius:var(--radius)}.profile-card h2{font-size:21px}.profile-card p{font-size:13px;color:var(--muted);margin-top:5px}.profile-id{display:block;font-size:12px;color:var(--muted);margin-top:12px}.account-actions{margin-top:20px}.empty-note{font-size:13px;color:var(--muted);padding:20px 0}.order-row,.reward-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 0;border-bottom:1px solid var(--line);font-size:13px}.order-row>span:first-child,.reward-row>span:first-child{flex:1;min-width:0}.order-row strong,.reward-row strong{font-size:14px;font-weight:500;display:block}.order-row small,.reward-row small{font-size:12px;color:var(--muted);display:block;margin-top:4px}.order-row>span:last-child,.reward-row>span:last-child{max-width:42%;text-align:right;font-size:12px;color:var(--muted)}.status-pill{font-size:12px;color:var(--cyan)}
.referral-hero,.referral-link-card,.progress-card,.guide-card,.wheel-card,.bonus-wallet,.channel-bonus{padding:20px;border-radius:var(--radius);background:var(--surface);margin:16px 0}.referral-hero{position:relative}.referral-hero>svg{display:none}.referral-hero h2{font-size:23px;margin:10px 0}.referral-hero p{font-size:13px;color:var(--muted)}.stat-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:16px 0}.stat-grid article{background:var(--surface);padding:18px;border-radius:var(--radius)}.stat-grid article>span,.stat-grid p{font-size:12px;color:var(--muted)}.stat-grid strong{display:block;font-size:28px;margin:10px 0 4px;letter-spacing:-.6px}.referral-link-card p{font-size:13px;color:var(--muted);margin:8px 0 16px}.referral-link-card .button{margin-top:14px}.reward-top{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--muted)}.progress-card h2{font-size:28px;margin:18px 0}.progress-card h2 small{display:block;font-size:13px;color:var(--muted);font-weight:400;margin-top:6px}.progress-label{display:flex;justify-content:space-between;gap:12px;font-size:12px;color:var(--muted);margin-bottom:10px}.progress-label strong{color:var(--text)}.progress-card>p{font-size:13px;color:var(--muted);margin-top:12px}.faq{border-bottom:1px solid var(--line);padding:18px 0}.faq summary{cursor:pointer;font-size:14px;font-weight:500;min-height:24px}.faq p{color:var(--muted);font-size:13px;line-height:1.7;margin-top:12px}.contact-list{margin:20px 0}
.wheel-card-top{display:flex;justify-content:space-between;align-items:center;gap:12px}.wheel-card-top h2{font-size:18px}.wheel-card-top>span,.wheel-intro{font-size:12px;color:var(--muted)}.wheel-intro{margin-top:8px}.wheel-stage{position:relative;max-width:280px;margin:20px auto;padding:10px}.fortune-wheel{display:block;width:100%;height:auto;transition:transform 4.4s cubic-bezier(.12,.69,.12,1)}.wheel-pointer{position:absolute;z-index:2;top:0;left:calc(50% - 9px);border-left:9px solid transparent;border-right:9px solid transparent;border-top:22px solid #d9eeef}.wheel-hub{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);height:64px;width:64px;border-radius:50%;display:grid;place-items:center;background:var(--surface);color:var(--cyan)}.wheel-hub svg{width:26px;height:26px}.spin-timer{font-size:12px;color:var(--muted);text-align:center;margin-top:12px;font-variant-numeric:tabular-nums}.prize-result{background:#183b3c;border-radius:14px;padding:16px;margin-top:16px}.prize-result>span{font-size:12px;color:var(--muted)}.prize-result h2{font-size:22px;color:var(--cyan);margin-top:6px}.prize-result p,.bonus-wallet p,.channel-bonus p{font-size:13px;color:var(--muted);margin-top:10px;line-height:1.6}.bonus-wallet>div{display:flex;align-items:center;justify-content:space-between}.bonus-wallet strong{font-size:25px;color:var(--cyan)}.bonus-wallet span{font-size:14px}.channel-percent{font-size:28px;color:var(--cyan);display:block;margin-bottom:8px}.channel-actions{display:grid;gap:10px;margin-top:18px}.channel-actions .primary{background:var(--surface-raised);color:var(--text)}
.bottom-nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));position:fixed;z-index:40;bottom:0;left:50%;transform:translateX(-50%);width:100%;max-width:560px;background:#09182cf5;border-top:1px solid #263b58;padding:6px max(10px,var(--tg-safe-right,0px),env(safe-area-inset-right,0px)) calc(7px + var(--safe-bottom)) max(10px,var(--tg-safe-left,0px),env(safe-area-inset-left,0px));backdrop-filter:blur(16px)}.bottom-nav button{border:0;background:none;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-height:52px;color:#9aaec8;font-size:11px;padding:5px 0}.bottom-nav svg{width:22px;height:22px}.bottom-nav .active{color:var(--cyan)}.startup-status{font-size:13px;color:var(--muted);padding:4px 0 12px}.app-pending #remaining{opacity:.5}.preview-banner{font-size:11px;padding:6px 16px;background:var(--surface);color:var(--muted);text-align:center}.loading,.empty-state{text-align:center;padding:48px 0;max-width:420px;margin:auto}.empty-state h1{font-size:25px;margin:16px 0}.empty-state p,.loading p{font-size:14px;color:var(--muted)}.empty-state .button{margin-top:20px}.loader{display:block;width:24px;height:24px;border:2px solid var(--line);border-top-color:var(--cyan);border-radius:50%;margin:0 auto 20px;animation:turn 1s linear infinite}.toast{position:fixed;z-index:100;bottom:calc(90px + var(--safe-bottom));left:50%;transform:translateX(-50%);width:max-content;max-width:calc(100% - 32px);padding:14px 18px;border-radius:14px;background:#1c3454;box-shadow:0 8px 24px #0004;font-size:13px;text-align:center}.keyboard-open .bottom-nav{display:none}.keyboard-open #main{padding-bottom:24px}
@keyframes turn{to{transform:rotate(360deg)}}
@media(max-width:350px){#main{padding-left:max(16px,var(--tg-safe-left,0px),env(safe-area-inset-left,0px));padding-right:max(16px,var(--tg-safe-right,0px),env(safe-area-inset-right,0px))}.subscription-card{padding:24px 18px 18px}.subscription-card h1{font-size:26px}.subscription-card.is-inactive h1{font-size:22px}.summary-line>strong{font-size:21px}.subscription-overview{padding:16px;gap:8px}.subscription-overview .row-icon{display:none}.plan-price{font-size:19px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

.connection-actions{margin:20px 0}.connection-actions>.secondary{margin-top:10px}.connection-actions>.secondary:disabled{display:none}.happ-guide{border-bottom:1px solid var(--line);margin:24px 0}.happ-guide>summary{font-size:15px;font-weight:500;cursor:pointer;min-height:48px;padding:12px 0}.happ-guide .setup-heading{margin-top:14px}.happ-guide .setup-steps>li:last-child{border-bottom:0}

.wordmark{display:inline-flex;align-items:center;gap:7px;font-size:21px;letter-spacing:-.65px}.wordmark>img{display:block;width:23px;height:23px;object-fit:contain;flex-shrink:0;border-radius:5px}.wordmark>span{color:var(--text)}.wordmark>span>span{color:var(--cyan)}

.vpn-clients{display:grid;gap:12px;margin:24px 0}.vpn-client{padding:18px;border:1px solid #25405f;border-radius:18px;background:#101f35}.vpn-client h3{margin:0 0 8px}.vpn-client p{color:#a7b7cd}.vpn-client-actions{display:flex;gap:10px;flex-wrap:wrap}.vpn-client-actions .button{flex:1;min-width:120px}.connection-qr{display:block;width:min(100%,280px);height:auto;margin:16px auto;border-radius:8px}.connection-qr[hidden]{display:none}

.direct-payment-fields{display:grid;gap:10px;margin:0 0 20px}.direct-payment-fields>label:not(.payment-consent){font-size:13px;color:var(--muted)}.direct-payment-fields>input,.direct-payment-fields>select{width:100%;min-height:48px;background:var(--bg);color:var(--text);border:1px solid var(--line);border-radius:12px;padding:12px;font:inherit}.payment-consent{display:flex;align-items:flex-start;gap:10px;font-size:12px;color:var(--muted)}.payment-consent input{flex:0 0 auto;width:18px;height:18px;margin:2px 0 0;padding:0;accent-color:var(--cyan)}.payment-consent a{color:var(--cyan);text-decoration:underline}

.payment-method-label{font-size:13px;color:var(--muted)}.payment-method-note{margin:0 0 4px;color:var(--text);font-size:15px;line-height:1.5}

/* Shared marble identity. Scope to the Mini App; checkout imports this base sheet. */
body:not(.checkout-page){--bg:#090e15;--surface:#101b2bde;--surface-soft:#101b2bde;--surface-raised:#22334bbf;--line:#b3c9e12b;--text:#e8e9e6;--muted:#a5b3c5;--cyan:#c4d5e8;--blue:#aac3e2;--success:#b5d0d4;--radius:16px;--font:"Manrope",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;position:relative;isolation:isolate;min-height:100dvh;background:#090e15;font-family:var(--font)}
body:not(.checkout-page):before{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(#090e1540,#090e1570),url('/assets/images/midnight-marble.webp') center/cover no-repeat}
body:not(.checkout-page) h1{font-size:27px;font-weight:500;letter-spacing:-.9px;line-height:1.25}body:not(.checkout-page) h2{font-weight:500;letter-spacing:-.45px}body:not(.checkout-page) h3{font-weight:500}
.wordmark{font-family:var(--font);font-size:20px;font-weight:500;gap:9px;letter-spacing:-.6px}.wordmark>img{width:29px;height:29px;aspect-ratio:1;object-fit:cover;border-radius:25%;clip-path:inset(0 round 25%);flex:0 0 auto}.wordmark>span>span{color:#b7cce6}
body:not(.checkout-page) .topbar{border-bottom:1px solid #b3c9e11c;margin-bottom:22px;padding-bottom:13px}
body:not(.checkout-page) .subscription-card{background:linear-gradient(145deg,#1b2a40ec,#0e1a2be8);border:1px solid #b3c9e13d;border-radius:18px;box-shadow:0 14px 38px #0002;padding:28px 24px 24px}
body:not(.checkout-page) .subscription-card h1{font-size:27px;font-weight:500;letter-spacing:-.9px}.status-symbol{background:#c4d5e811;border:1px solid #c4d5e82b;color:#bfd0e6;border-radius:12px}.subscription-card.is-inactive .status-symbol{background:#202d40;color:#9aadc7}.remaining-line{font-size:14px;color:#a7b6ca;margin-bottom:25px}.remaining-line strong{font-weight:500}
body:not(.checkout-page) .button{border-radius:10px;font-family:var(--font);font-size:13px;font-weight:500;min-height:49px;box-shadow:none}body:not(.checkout-page) .primary{background:#c4d5e8;color:#101a28}body:not(.checkout-page) .primary:hover:not(:disabled){background:#dfebf6}body:not(.checkout-page) .secondary{background:#25364e8c;color:#e8e9e6;border:1px solid #b3c9e12b}
.action-group,.account-actions,.contact-list{background:#101b2bd9;border:1px solid var(--line);border-radius:16px}.action-row{background:transparent}.action-row+.action-row{border-top-color:var(--line)}.action-row>span:not(.row-icon),.action-row strong{font-size:14px;font-weight:500}.action-row small{font-size:11px;color:var(--muted)}.action-row .chevron{color:#8195b0}.row-icon,.action-row>svg:first-child{color:#b3c7e1}
body:not(.checkout-page) .plan{background:#101b2bde;border:1px solid #b3c9e12b;border-radius:13px;padding-top:20px;padding-bottom:20px}body:not(.reference-ui) .plan.selected,body:not(.reference-ui) .plan[aria-pressed=true]{background:#263b55d9!important;border-color:#a8bedb99!important}.plan-name{font-size:17px;font-weight:500}.plan-price{font-size:23px;font-weight:500;letter-spacing:-.8px}.plan-devices{font-size:11px}.plan.selected .plan-radio{border-color:#c4d5e8}.plan-radio{border-color:#7088a7}.plan-list{gap:12px}
.profile-card,.subscription-overview,.checkout-card,.vpn-client,.private-connection,.referral-hero,.referral-link-card,.progress-card,.guide-card,.wheel-card,.bonus-wallet,.channel-bonus,.stat-grid article{background:#101b2be3;border:1px solid var(--line);border-radius:16px;box-shadow:0 10px 30px #0001}.checkout-card{padding:23px}.summary-line h2{font-size:17px}.summary-line>strong{font-size:25px;font-weight:500}.profile-card h2{font-size:23px;font-weight:500}.profile-id{background:#a8c7ee12;border-color:var(--line);color:#b4c8e2}.subscription-overview strong{font-weight:500}.vpn-client{padding:20px}.vpn-client p{color:var(--muted);font-size:12px;line-height:1.7;margin-bottom:17px}.vpn-clients>h2{font-size:18px}.vpn-client h3{font-size:17px}.vpn-client-actions{gap:9px}.vpn-client-actions .button{font-size:12px}
body:not(.checkout-page) input:not([type=checkbox]):not([type=radio]),body:not(.checkout-page) select{background:#0b1523c4;border:1px solid #c5d5e33d;border-radius:9px;font-family:var(--font);color:var(--text)}body:not(.checkout-page) input:focus-visible{outline:1px solid #c4d5e8}body:not(.checkout-page) input[type=checkbox]{accent-color:#b7cce6}.copy-field{background:#0b152399;border-color:var(--line);border-radius:10px}.icon-button{background:#25364e8c;border:1px solid #b3c9e12b;border-radius:10px}.private-connection{padding:17px}.private-connection label{color:#acbbcf}
body:not(.checkout-page) .notice{background:#101b2be8;border:1px solid var(--line);border-radius:11px;color:#b5c3d5}.page-title{margin:25px 0 24px}.page-title p:not(.section-kicker){font-size:13px}.fineprint,.micro{color:#a2b1c5}.payment-method-note{font-size:13px}.payment-consent{font-size:11px;line-height:1.7}.direct-payment-fields>label:not(.payment-consent){font-size:12px}
.referral-hero h2{font-size:23px;font-weight:500}.stat-grid strong,.bonus-wallet strong,.channel-percent{font-weight:500;color:#c4d5e8}.progress-card h2{font-weight:500}.progress-card h2 small{color:var(--muted)}progress{background:#9bb4d425}.reward-top{color:#b1c2d9}.fortune-wheel{filter:saturate(.65)}.wheel-hub{background:#142139;border:1px solid #b3c9e13b;color:#c4d5e8}.wheel-pointer{border-top-color:#c4d5e8}.prize-result{background:#233747d9;border:1px solid #b4cdd445;border-radius:12px}.prize-result h2{color:#c4d5e8;font-weight:500}.channel-actions .primary{background:#c4d5e8;color:#101a28}.faq{border-bottom-color:var(--line)}.faq summary{font-size:13px}.faq p{font-size:12px}
.bottom-nav{background:#0e1929f5;border-top:1px solid #b3c9e132;backdrop-filter:none}.bottom-nav button{font-family:var(--font);font-size:10px;color:#8e9fb7;min-height:54px}.bottom-nav svg{width:21px;height:21px;stroke-width:1.6}.bottom-nav .active{color:#d6e3f4;background:#c4d5e80d;border-radius:10px}.preview-banner{background:#142136;color:#b6c5d9;border-bottom:1px solid var(--line)}.toast{background:#1b2a40f5;border:1px solid #b3c9e13b;color:#e8e9e6;border-radius:11px}.empty-state{background:#101b2be3;border:1px solid var(--line);border-radius:16px;padding:30px 22px;margin:26px auto}
@media(max-width:350px){body:not(.checkout-page) .subscription-card{padding:24px 19px 20px}.wordmark{font-size:19px}body:not(.checkout-page) .subscription-card h1{font-size:25px}.plan-price{font-size:21px}.checkout-card{padding:19px}}

/* Home: welcome access for new accounts and a compact referral summary. */
.home-welcome{margin:14px 0 16px;padding:24px;background:linear-gradient(145deg,#243b55e8,#101b2bee);border:1px solid #b3c9e14d;border-radius:18px}
.welcome-top,.home-referral-heading{display:flex;align-items:center;gap:12px}.home-icon{display:grid;place-items:center;width:36px;height:36px;border-radius:11px;background:#c4d5e811;color:#c4d5e8;flex-shrink:0}.home-icon svg{width:20px;height:20px}.welcome-top .eyebrow{color:#bfcee1;font-size:12px}
body:not(.checkout-page) .home-welcome h1{font-size:32px;letter-spacing:-1px;margin:23px 0 8px}.welcome-allowance{display:flex;gap:10px;align-items:center;color:#d0dceb;font-size:14px}.welcome-allowance>span{color:#738ba6}.welcome-note{font-size:13px;color:var(--muted);line-height:1.6;margin:15px 0 22px;max-width:30ch}.welcome-actions{display:grid;gap:4px}.welcome-actions .text-button{width:100%;font-size:12px;min-height:40px;padding:10px}.home-welcome .micro{margin-top:8px}
.home-referral{display:block;width:100%;text-align:left;padding:20px;margin:16px 0 0;border:1px solid var(--line);border-radius:16px;background:#101b2be3;color:var(--text);font-family:var(--font)}.home-referral-heading>strong{font-size:15px;font-weight:500;letter-spacing:-.3px}.home-referral-stats{display:grid;grid-template-columns:1fr 1fr;margin:24px 0 20px}.home-referral-stats>span{display:grid;gap:5px}.home-referral-stats>span+span{padding-left:24px;border-left:1px solid var(--line)}.home-referral-stats strong{font-size:27px;line-height:1.1;font-weight:500;letter-spacing:-.7px;font-variant-numeric:tabular-nums}.home-referral-stats small{font-size:11px;color:var(--muted)}.home-referral-action{display:block;padding-top:15px;border-top:1px solid var(--line);font-size:12px;color:#c4d5e8}.home-referral:hover{border-color:#b3c9e15c}
@media(max-width:350px){.home-welcome{padding:21px 19px}body:not(.checkout-page) .home-welcome h1{font-size:29px}.home-referral{padding:18px}.home-referral-heading{gap:9px}.home-referral-heading>strong{font-size:14px}}

/* Profile: the gift wheel is immediately visible, access controls follow below. */
.profile-wheel{display:flex;align-items:center;justify-content:space-between;gap:14px;width:100%;padding:22px;margin:0 0 22px;text-align:left;border:1px solid #b3c9e15c;border-radius:18px;background:linear-gradient(125deg,#263e59ed,#132238ec);color:var(--text);font-family:var(--font);overflow:hidden}
.profile-wheel-copy{display:grid;gap:7px;min-width:0}.profile-wheel-copy>.eyebrow{font-size:11px;color:#bacde4}.profile-wheel-copy>strong{font-size:21px;font-weight:500;letter-spacing:-.6px;line-height:1.2}.profile-wheel-copy>span:not(.eyebrow){font-size:12px;color:var(--muted)}.profile-wheel-copy>.profile-wheel-note{display:block;width:fit-content;max-width:100%;margin-top:10px;padding:7px 10px;border-radius:8px;background:#c4d5e81a;color:#d8e5f4!important;font-size:11px!important;font-variant-numeric:tabular-nums}.profile-wheel>img{width:104px;height:104px;flex:0 0 auto;filter:saturate(.65);transform:rotate(-12deg)}.profile-wheel:hover{border-color:#b3c9e18c}
#page-profile>.subscription-overview{margin-top:24px}#page-profile>.vpn-clients{margin-top:30px}
@media(max-width:350px){.profile-wheel{padding:19px 17px;gap:10px}.profile-wheel>img{width:83px;height:83px}.profile-wheel-copy>strong{font-size:19px}.profile-wheel-copy>.profile-wheel-note{font-size:10px!important;padding:7px 8px}}
/* Reference-inspired Mini App skin. Checkout retains its existing shared base. */
body.reference-ui{--bg:#000;--surface:#080d16;--surface-soft:#080d16;--surface-raised:#101722;--line:#202a39;--text:#f1f3f8;--muted:#8b95a5;--cyan:#3182ff;--success:#1bd18a;--font:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:#000;font-family:var(--font)}
body.reference-ui:before{display:block;opacity:.28;background:linear-gradient(#0003,#0008),url('/assets/images/midnight-marble.webp') center/cover no-repeat}body.reference-ui .shell{max-width:560px}body.reference-ui #main{padding-bottom:calc(105px + var(--safe-bottom))}body.reference-ui .topbar{justify-content:space-between;border:0;margin:0 0 20px;padding-bottom:0;min-height:calc(82px + var(--safe-top) + var(--content-top))}body.reference-ui .wordmark{font-family:var(--font);font-size:25px;font-weight:750;letter-spacing:-.8px;gap:12px}body.reference-ui .wordmark span{color:var(--text)}body.reference-ui .wordmark>img{width:36px;height:36px;border-radius:50%}body.reference-ui .header-shortcut{display:grid;place-items:center;width:44px;height:38px;border:1px solid var(--line);border-radius:22px;background:var(--surface);color:var(--success)}
body.reference-ui h1{font-family:var(--font);font-size:28px;font-weight:700;letter-spacing:-.7px}body.reference-ui h2{font-family:var(--font);font-weight:650}body.reference-ui .page-title{margin:16px 0 24px}body.reference-ui .page-title h1{font-size:28px}body.reference-ui .subscription-card{background:none;border:0;border-radius:0;box-shadow:none;margin:0;padding:6px 0 0}body.reference-ui .subscription-status{display:flex;align-items:center;gap:9px;font-size:14px;color:var(--muted)}body.reference-ui .status-dot{width:8px;height:8px;border-radius:50%;background:var(--success);box-shadow:0 0 0 4px #1bd18a20}body.reference-ui .is-inactive .status-dot{background:var(--muted);box-shadow:0 0 0 4px #8b95a520}body.reference-ui #sub-badge{color:var(--muted);background:none;border:0;padding:0;font-size:14px;font-weight:400}body.reference-ui .subscription-card h1{font-size:28px;font-weight:700;margin:12px 0 20px;letter-spacing:-.6px}body.reference-ui .access-meter{position:relative;overflow:hidden;height:44px;border-radius:4px;background:#172130;margin-bottom:22px;--remaining:0%}body.reference-ui .access-meter:before{content:"";display:block;width:var(--remaining);height:100%;background:linear-gradient(90deg,#3182ff,#1bd18a)}body.reference-ui .access-meter:after{content:"";position:absolute;inset:0;background:repeating-linear-gradient(90deg,transparent 0,transparent calc(3.333% - 3px),#000 calc(3.333% - 3px),#000 3.333%)}body.reference-ui .remaining-line{display:flex;flex-direction:column;align-items:flex-start;gap:2px;margin:0 0 10px}body.reference-ui #time-label{font-size:12px;color:var(--muted)}body.reference-ui #remaining{font-family:var(--font);font-size:36px;font-weight:700;letter-spacing:-1px;line-height:1.2;color:var(--text)}body.reference-ui #remaining.empty{font-size:28px}body.reference-ui .home-expiry{font-size:14px;color:var(--muted);margin-bottom:24px}body.reference-ui .home-access-actions{display:grid;gap:10px}body.reference-ui .button{font-family:var(--font);font-size:16px;font-weight:600;min-height:54px;border-radius:15px;padding:14px 16px}body.reference-ui .primary{background:var(--success);color:#001d13;box-shadow:none}body.reference-ui .primary:hover{background:#29dfa0}body.reference-ui .secondary{background:var(--surface);border:1px solid var(--line);color:var(--text)}body.reference-ui .home-referral{background:var(--surface);border:1px solid var(--line);margin-top:28px;border-radius:17px}body.reference-ui .home-referral-heading>strong{font-size:16px;font-weight:600}body.reference-ui .home-referral-action{color:var(--text)}body.reference-ui .home-referral-stats strong{font-weight:650}body.reference-ui .home-icon{color:var(--cyan);background:#3182ff15}body.reference-ui .home-welcome{background:none;border:0;padding:12px 0 0;margin:0}body.reference-ui .home-welcome h1{font-size:34px;font-weight:700}body.reference-ui .welcome-top .eyebrow{color:var(--muted)}
body.reference-ui .plan-list{gap:10px}body.reference-ui .plan{padding:20px 18px;border:1px solid var(--line);border-radius:18px;background:var(--surface);box-shadow:none;grid-template-columns:minmax(0,1fr) auto;column-gap:12px}body.reference-ui .plan-radio{display:none}body.reference-ui .plan-name{font-size:17px;font-weight:650}body.reference-ui .plan-price{font-size:21px;font-weight:700;grid-column:2;grid-row:1/3;align-self:center}body.reference-ui .plan-devices{font-size:13px;color:var(--muted);grid-column:1}body.reference-ui .plan.selected{background:var(--surface);border-color:var(--success);box-shadow:inset 0 0 0 1px var(--success)}body.reference-ui .checkout-card{margin-top:22px}body.reference-ui .checkout-card,body.reference-ui .profile-card,body.reference-ui .subscription-overview,body.reference-ui .vpn-client,body.reference-ui .private-connection,body.reference-ui .referral-hero,body.reference-ui .referral-link-card,body.reference-ui .progress-card,body.reference-ui .guide-card,body.reference-ui .wheel-card,body.reference-ui .bonus-wallet,body.reference-ui .channel-bonus,body.reference-ui .stat-grid article{background:var(--surface);border:1px solid var(--line);border-radius:18px;box-shadow:none}body.reference-ui .profile-wheel{background:var(--surface);border:1px solid var(--line);border-radius:18px}body.reference-ui .profile-wheel-copy>strong{font-size:21px;font-weight:650}body.reference-ui .profile-wheel-copy>.profile-wheel-note{background:#1bd18a14;color:var(--success)!important}body.reference-ui .profile-wheel img,body.reference-ui .fortune-wheel{filter:none}body.reference-ui .action-group,body.reference-ui .account-actions,body.reference-ui .contact-list{background:var(--surface);border:1px solid var(--line);border-radius:18px}body.reference-ui .action-row{border-color:var(--line);min-height:58px}body.reference-ui .action-row strong{font-size:15px;font-weight:500}body.reference-ui .row-icon{background:none;color:var(--muted)}body.reference-ui .action-row svg{color:var(--muted)}body.reference-ui .faq{background:var(--surface);border:1px solid var(--line);border-radius:15px;padding:16px;margin:10px 0}body.reference-ui .faq summary{font-size:15px}body.reference-ui .faq p{font-size:14px}body.reference-ui .fineprint,body.reference-ui .micro{color:var(--muted);font-size:12px}body.reference-ui input:not([type=checkbox]):not([type=radio]),body.reference-ui select{background:var(--surface);border:1px solid var(--line);border-radius:14px;font-family:var(--font)}body.reference-ui .copy-field{background:var(--surface);border-color:var(--line)}body.reference-ui .notice{background:var(--surface);border-color:var(--line);color:var(--muted)}body.reference-ui .text-button{color:var(--cyan);font-size:14px}body.reference-ui .empty-state{background:var(--surface);border-color:var(--line)}body.reference-ui .stat-grid strong,body.reference-ui .channel-percent,body.reference-ui .bonus-wallet strong{color:var(--text);font-weight:650}body.reference-ui .bottom-nav{grid-template-columns:repeat(4,minmax(0,1fr));background:#000;border-color:var(--line);max-width:560px;backdrop-filter:none}body.reference-ui .bottom-nav button{position:relative;font-family:var(--font);font-size:11px;color:var(--muted);min-height:63px;border-radius:0;background:none}body.reference-ui .bottom-nav button.active{color:var(--text);background:none;border-radius:0}body.reference-ui .bottom-nav button.active:before{content:"";position:absolute;top:0;left:35%;right:35%;height:2px;border-radius:2px;background:linear-gradient(90deg,var(--cyan),var(--success))}body.reference-ui .bottom-nav svg{width:23px;height:23px;stroke-width:1.8}body.reference-ui .toast{background:#111925;border:1px solid var(--line);color:var(--text)}
@media(max-width:350px){body.reference-ui .wordmark{font-size:22px}body.reference-ui .subscription-card h1{font-size:26px}body.reference-ui .home-welcome h1{font-size:30px}body.reference-ui #remaining{font-size:32px}body.reference-ui .button{font-size:15px}body.reference-ui .plan{padding:18px 15px}body.reference-ui .plan-price{font-size:19px}}

/* Refined wheel: a recessed dial, metal rim and illuminated fixed pointer. */
body.reference-ui .wheel-stage{max-width:300px;margin:26px auto 22px;padding:9px;isolation:isolate}
body.reference-ui .wheel-stage:before{content:"";position:absolute;inset:5%;z-index:-1;border-radius:50%;background:radial-gradient(circle,#2c73852b,transparent 70%);box-shadow:0 16px 35px #0009,0 0 30px #4c94a112}
body.reference-ui .fortune-wheel{filter:drop-shadow(0 5px 8px #0007)}
body.reference-ui .wheel-pointer{top:2px;left:calc(50% - 10px);width:20px;height:31px;border:0;border-radius:4px 4px 12px 12px;background:linear-gradient(120deg,#e4fff4,#95d9c2 50%,#397c72);clip-path:polygon(0 0,100% 0,50% 100%);filter:drop-shadow(0 3px 3px #0009)}
body.reference-ui .wheel-hub{width:21%;height:auto;aspect-ratio:1;border:1px solid #a9d4d454;background:linear-gradient(145deg,#2d4658,#0b1b2b 70%);box-shadow:inset 0 1px 2px #d8ffff26,0 4px 10px #0006;color:#c0efdf}
body.reference-ui .wheel-hub svg{width:44%;height:44%;stroke-width:1.5}
body.reference-ui .wheel-card{background:radial-gradient(ellipse at 50% 30%,#13283766,transparent 65%),#080d16;padding:22px 18px;border-color:#263440}
body.reference-ui .wheel-card-top h2{font-size:21px;letter-spacing:-.6px}
body.reference-ui .wheel-card-top>span{background:#1bd18a12;color:#8bdec0;border:1px solid #51c39b2e;border-radius:20px;padding:4px 9px;font-size:11px}
body.reference-ui .wheel-intro{margin-top:9px;color:#8f9aaa;font-size:13px}
body.reference-ui .prize-result{background:linear-gradient(135deg,#14382f88,#0d1d2688);border:1px solid #5cc6a638;border-radius:14px}
body.reference-ui .prize-result h2{color:#b7efda;font-weight:650}
