/* Scoped mobile fit for the existing customer surface; existing theme stays intact. */
.customer-surface .customer-connection{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;min-width:0;text-align:left;padding:18px 0;border-top:1px solid #ffffff14}
.customer-surface .customer-connection-info{min-width:0;overflow-wrap:anywhere}
.customer-surface .customer-connection-info p{margin:6px 0 0}
.customer-surface .customer-connection-actions{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(120px,100%),1fr));gap:8px;min-width:0}
.customer-surface .customer-connection-actions .btn{width:100%;min-width:0;min-height:48px;white-space:normal;overflow-wrap:anywhere;line-height:1.4}
.customer-surface .waiting-card input{width:100%;min-width:0;max-width:100%;font-size:16px}
.customer-surface #customer-error{overflow-wrap:anywhere}
.customer-surface #modal{box-sizing:border-box;width:min(420px,calc(100vw - 24px));max-width:calc(100vw - 24px);margin:auto}
.customer-surface #modal img{display:block;max-width:100%;height:auto;margin:0 auto}
@media(max-width:430px){.customer-surface .waiting-card{padding-left:22px;padding-right:22px}}

/* v25 bottom-nav sizing comes from the retained source styles. */
.customer-surface .customer-guide{text-align:left;padding-left:22px;line-height:1.8;color:var(--ui-secondary,#c3b5d1)}
.customer-surface .customer-guide li{margin-bottom:14px}

.customer-surface #modal h2{overflow-wrap:anywhere}

/* Home-only card accents; existing ambient background and motion are untouched. */
body.customer-surface .app-shell.view-cabinet[data-client-ui] .home-card-accent{border-color:#b48bea40;box-shadow:0 12px 28px #08051122,0 0 24px #9d65de14,inset 0 1px 0 #e0c6ff0d}
.customer-surface .home-quick-actions{box-sizing:border-box;min-width:0;margin:0 0 28px;padding:22px;border:1px solid;border-radius:22px;background:linear-gradient(135deg,#261a36e6,#171020ed)}
.customer-surface .home-quick-actions h2{margin:0 0 16px;font-size:17px;line-height:1.4;color:var(--visual-text,#f3ebff)}
.customer-surface .home-quick-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;min-width:0}
.customer-surface .home-quick-button{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:12px;box-sizing:border-box;min-width:0;min-height:114px;padding:16px 14px;border:1px solid #b48bea33;border-radius:16px;background:#b48bea0b;color:#eee2ff;text-align:left;font:inherit;font-size:13px;font-weight:700;line-height:1.5;white-space:normal;overflow-wrap:anywhere;cursor:pointer}
.customer-surface .home-quick-button:hover{background:#b48bea18;border-color:#b48bea66}
.customer-surface .home-quick-button:active{background:#b48bea25}
.customer-surface .home-quick-icon{display:flex;align-items:center;justify-content:center;width:34px;height:34px;flex:0 0 34px;border-radius:11px;background:#b48bea14;color:#d0adff;pointer-events:none}
.customer-surface .home-quick-icon .icon{width:21px;height:21px}
@media(max-width:359px){.customer-surface .home-quick-actions{padding:18px}.customer-surface .home-quick-grid{grid-template-columns:minmax(0,1fr)}.customer-surface .home-quick-button{flex-direction:row;align-items:center;justify-content:flex-start;min-height:64px;padding:12px;gap:12px}}
@media(prefers-reduced-motion:reduce){.customer-surface .home-quick-button{animation:none;transition:none}}

/* Crisp home typography: opaque card surfaces keep contrast stable over ambient motion. */
body.customer-surface .app-shell.view-cabinet[data-client-ui] :is(.home-card-accent,.home-quick-actions ~ .usage-card,.home-quick-actions ~ .feature-card,.home-quick-actions ~ .cabinet-links){background:#21182e;border-color:#765b975c;box-shadow:0 10px 24px #08051126,0 0 16px #9d65de0d;backdrop-filter:none;text-shadow:none}
.customer-surface .home-welcome h1{color:#f5efff;font-weight:800;text-shadow:none}
.customer-surface .home-welcome>p{color:#d1c3e2}
.customer-surface .home-welcome .user-tier{color:#dfcaff;background:#21182e;opacity:1}
.customer-surface .home-card-accent h2,.customer-surface .home-quick-actions ~ .feature-card h2,.customer-surface .home-quick-actions ~ .usage-card h2,.customer-surface .home-quick-actions ~ .cabinet-links strong{color:#f5efff;font-weight:750}
.customer-surface .home-card-accent .plan-heading span,.customer-surface .home-card-accent .fine-print,.customer-surface .home-quick-actions ~ .feature-card>p,.customer-surface .home-quick-actions ~ .cabinet-links small{color:#d1c3e2;opacity:1;font-size:12px;line-height:1.65}
.customer-surface .home-card-accent .plan-facts{background:#2b2038}
.customer-surface .home-card-accent .plan-facts span,.customer-surface .home-quick-actions ~ .usage-card :is(.usage-total span,.usage-directions span,.usage-history-heading,.usage-note,.usage-updated,.connection-badge),.customer-surface .home-quick-actions ~ .feature-card .feature-title span{color:#cabbda;opacity:1;font-size:12px}
.customer-surface .home-quick-actions h2{font-size:18px}
.customer-surface .home-quick-button{background:#302141;border-color:#9675bd80;color:#f5efff;font-size:14px;font-weight:750;text-shadow:none}
.customer-surface .home-quick-button:hover{background:#39274e;border-color:#be9ce9}
.customer-surface .home-quick-button:active{background:#402b58}
.customer-surface .home-quick-button:first-child{border-color:#bc96e6;background:#38254d}
.customer-surface .home-quick-button:first-child:hover{background:#402b58}
.customer-surface .home-quick-button:focus-visible,.customer-surface .home-card-accent button:focus-visible,.customer-surface .home-quick-actions ~ :is(.feature-card,.cabinet-links) button:focus-visible{outline:3px solid #dfcaff;outline-offset:3px}

/* Subscription-only status; no flashing, automatic renewal or VPN liveness claim. */
.customer-surface .subscription-status{margin-bottom:18px}
.customer-surface .subscription-status h2{margin:0 0 12px;color:#f5efff}
.customer-surface .subscription-term{font-size:16px;font-weight:700;color:#d1c3e2}
.customer-surface .subscription-term.active{color:#91d6b7}
.customer-surface .subscription-term.ending{color:#dfaaaa;animation:none;text-shadow:none}
.customer-surface .subscription-recent{margin-bottom:20px;color:#d1c3e2;overflow-wrap:anywhere}
.customer-surface .customer-subscription .free-card>.btn{margin-top:12px}

/* Connection guide: existing shell/background and protected actions retained. */
body [data-client-ui] .connection-steps-guide,body [data-client-ui] .connection-steps-guide-devices{min-width:0;border:1px solid #806398;border-radius:22px;background:#21182e;box-shadow:0 8px 28px #9a59d51a;color:#f5efff;padding:20px}
body [data-client-ui] .connection-steps-guide .platform-picker{display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:space-between}
body [data-client-ui] .connection-steps-guide .platform-select{min-width:0;max-width:100%}
body [data-client-ui] .connection-steps-guide select{max-width:100%;color:#f5efff;background:#302141}
body [data-client-ui] .connection-steps-guide .setup-step{display:grid;grid-template-columns:32px minmax(0,1fr);gap:14px;padding:20px 0;border-bottom:1px solid #574365}
body [data-client-ui] .connection-steps-guide .setup-step:last-child{border-bottom:0}
body [data-client-ui] .connection-steps-guide .step-glyph{width:30px;height:30px;border:2px solid #c993ec;border-radius:50%;display:grid;place-items:center;color:#f5efff;background:#302141;font-weight:700}
body [data-client-ui] .connection-steps-guide h3{font-size:18px;line-height:1.35;color:#f5efff;margin:0 0 8px}
body [data-client-ui] .connection-steps-guide p,body [data-client-ui] .connection-steps-guide-devices .fine-print{color:#d1c3e2;line-height:1.55}
body [data-client-ui] .connection-steps-guide .btn{margin:8px 8px 0 0;max-width:100%;white-space:normal;overflow-wrap:anywhere}
body [data-client-ui] .connection-steps-guide [hidden]{display:none!important}
body [data-client-ui] .connection-steps-guide :is(a,select,button):focus-visible,body [data-client-ui] .connection-steps-guide-devices button:focus-visible{outline:3px solid #dfcaff;outline-offset:3px}
body [data-client-ui] .connection-steps-guide-devices{margin-top:20px}
@media(max-width:360px){body [data-client-ui] .connection-steps-guide,body [data-client-ui] .connection-steps-guide-devices{padding:14px}body [data-client-ui] .connection-steps-guide .setup-step{gap:10px}body [data-client-ui] .connection-steps-guide .platform-select{width:100%}}

body [data-client-ui] .connection-steps-guide .setup-step{background:none;border-radius:0;border-width:0 0 1px;padding:18px 0;box-shadow:none}
body [data-client-ui] .connection-steps-guide .setup-step h3{font-size:17px}
body [data-client-ui] .connection-steps-guide .setup-step p{font-size:13px;line-height:1.55;color:#d1c3e2;margin:8px 0}
body [data-client-ui] .connection-steps-guide .btn.primary{background:#704494;border:1px solid #b985db;color:#fff}

/* Help and More: scoped presentation only, existing background retained. */
body [data-client-ui] .customer-help-page .panel,dialog.customer-more[data-client-ui]{background:#21182e;color:#f5efff;border:1px solid #806398;box-shadow:0 8px 28px #9a59d51a}
body [data-client-ui] .customer-help-page .panel{border-radius:22px;padding:20px;margin-bottom:20px;min-width:0}
body [data-client-ui] .customer-help-page :is(h1,h2,h3,summary){color:#f5efff}
body [data-client-ui] .customer-help-page p,dialog.customer-more[data-client-ui] :is(p,small){color:#d1c3e2;line-height:1.55;overflow-wrap:anywhere}
body [data-client-ui] .help-faq details{border-bottom:1px solid #574365;padding:14px 0}
body [data-client-ui] .help-faq details:last-child{border-bottom:0}
body [data-client-ui] .help-faq summary{cursor:pointer;font-weight:650;display:flex;justify-content:space-between;align-items:center;gap:12px;list-style:none;line-height:1.45}
body [data-client-ui] .help-faq summary::-webkit-details-marker{display:none}
body [data-client-ui] .help-faq summary .icon{flex-shrink:0}
body [data-client-ui] .help-faq details[open] summary .icon{transform:rotate(180deg)}
body [data-client-ui] .customer-help-page .btn.primary{background:#704494;border:1px solid #b985db;color:#fff;white-space:normal}
body [data-client-ui] .help-support button:disabled{opacity:1;color:#c6b8d7;border-color:#685576;background:#30283d;cursor:not-allowed}
body [data-client-ui] .customer-help-page :is(button,summary):focus-visible,dialog.customer-more[data-client-ui] button:focus-visible{outline:3px solid #dfcaff;outline-offset:3px}
dialog.customer-more[data-client-ui] .drawer-links button{color:#f5efff;white-space:normal;text-align:left;line-height:1.45}
dialog.customer-more[data-client-ui] .drawer-account{color:#f5efff;overflow-wrap:anywhere}
@media(max-width:360px){body [data-client-ui] .customer-help-page .panel{padding:16px}}

/* Compact installation instructions; Manrope and existing palette inherited. */
body [data-client-ui] .connection-steps-guide .setup-step{padding:18px 0;gap:14px}
body [data-client-ui] .connection-steps-guide .setup-step h3{font-size:18px;font-weight:750;line-height:1.35;letter-spacing:-.015em;margin:0 0 8px}
body [data-client-ui] .connection-steps-guide .setup-step p{font-size:14px;line-height:1.55;margin:0 0 8px}
body [data-client-ui] .connection-instruction-details{border-top:1px solid #574365;padding-top:16px;margin-top:4px}
body [data-client-ui] .connection-instruction-details summary{cursor:pointer;color:#dfcaff;font-size:14px;font-weight:650;line-height:1.5}
body [data-client-ui] .connection-instruction-details p{font-size:13px;line-height:1.55;margin:12px 0}
body [data-client-ui] .connection-instruction-details summary:focus-visible{outline:3px solid #dfcaff;outline-offset:4px}
