:root{--bg:#f5f5f7;--ink:#1d1d1f;--muted:#86868b;--accent:#7065e9;--blue:#0071e3;--line:#e9e9ed;--radius:24px;--font:'Montserrat',-apple-system,BlinkMacSystemFont,sans-serif}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--ink);font:500 14px/1.65 var(--font);-webkit-font-smoothing:antialiased}button,input,a{-webkit-tap-highlight-color:transparent}button,input{font:inherit}button,a,input{touch-action:manipulation}button{cursor:pointer}a{color:inherit;text-decoration:none}a:focus-visible,button:focus-visible,input:focus-visible{outline:3px solid #a4a0ff;outline-offset:4px}button:disabled{opacity:.5;cursor:wait}a[hidden],button[hidden],[hidden]{display:none!important}svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.symbols{position:absolute;width:0;height:0;overflow:hidden}.ambient{position:fixed;z-index:-1;right:-20%;top:-40%;width:80vw;height:100vh;background:radial-gradient(ellipse,#ece9fb80,transparent 65%);pointer-events:none}.brand{display:flex;align-items:center;gap:9px;font-size:22px;font-weight:800;letter-spacing:-1.2px;white-space:nowrap}.brand-light{font-weight:500;color:#949499;margin-left:-8px}.brand-mark{height:34px;width:34px;display:grid;place-items:center;background:#242426;color:white;border-radius:11px;margin-right:3px;box-shadow:0 4px 9px #00000012}.brand-mark svg{width:23px;height:23px}.app-shell{max-width:1600px;margin:auto;display:grid;grid-template-columns:250px minmax(0,1fr);min-height:100vh}.sidebar{position:sticky;top:0;height:100dvh;padding:40px 23px 24px;border-right:1px solid var(--line);display:flex;flex-direction:column;background:#fafafbb3;backdrop-filter:blur(20px)}.sidebar-label{font-size:9px;letter-spacing:1.6px;color:#9a9aa2;font-weight:700;margin:54px 12px 18px}.navigation{display:grid;gap:8px}.nav-item{border:0;background:transparent;display:flex;align-items:center;gap:13px;padding:13px 15px;color:#7d7d85;border-radius:13px;text-align:left;font-weight:600;transition:background .25s,color .25s,transform .25s}.nav-item:hover{background:#eeeef2;transform:translateX(3px)}.nav-item.selected{background:#eae8fa;color:#6657d5}.sidebar-bottom{margin-top:auto;display:grid;gap:9px;padding:20px 10px 0;color:#93939b;font-size:10px}.secure-note{display:flex;align-items:center;gap:7px;margin-bottom:15px}.secure-note svg{width:16px;height:16px;color:#878192}.workspace{padding:0 48px 30px;min-width:0}.topbar{height:106px;display:flex;align-items:center;justify-content:space-between;gap:20px}.breadcrumb{font-size:11px;color:#8c8c95}.breadcrumb span{margin:0 12px;color:#ccc}.breadcrumb b{color:#56565e;font-weight:600}.profile{display:flex;align-items:center;gap:9px;font-size:11px;font-weight:700}.avatar{width:33px;height:33px;background:#ece8f9;color:#8070b0;display:grid;place-items:center;border-radius:50%}.verified{color:#7b70dd}.verified svg{width:14px;height:14px}.page{max-width:1120px;margin:auto;animation:page-in .45s cubic-bezier(.16,1,.3,1) both}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:29px 0 30px}.eyebrow{color:#93939b;font-size:9px;letter-spacing:1.8px;font-weight:700}h1,h2,h3,p{margin:0}h1{font-size:clamp(29px,3.1vw,43px);line-height:1.22;letter-spacing:-1.9px;font-weight:700;margin:10px 0 10px}h2{font-size:19px;line-height:1.4;letter-spacing:-.6px;font-weight:700}h3{font-size:14px;letter-spacing:-.3px;font-weight:700}.lead{font-size:12px;color:#8a8a92;line-height:1.85}.greeting-dot{color:var(--accent)}.button{display:inline-flex;align-items:center;justify-content:center;gap:9px;border:0;border-radius:12px;padding:12px 18px;font-size:11px;font-weight:700;line-height:1.6;min-height:44px;transition:transform .22s,box-shadow .22s,background .22s}.button svg{width:17px;height:17px}.button:hover{transform:translateY(-2px)}.button:active{transform:scale(.97)}.primary{background:#242426;color:#fff;box-shadow:0 5px 12px #20202312}.primary:hover{background:#3b3b40;box-shadow:0 8px 18px #20202325}.secondary{background:#eeedf8;color:#6055bc}.white{background:#ffffffb8;color:#555364;border:1px solid #ffffffc9}.quiet{background:transparent;color:#72717e}.danger{background:#fff0ef;color:#c64f50}.icon-button{height:40px;min-height:40px;width:40px;padding:0;background:#fff;border:1px solid #eae9ef}.icon-button svg{width:17px}.hero-card{position:relative;overflow:hidden;background:linear-gradient(118deg,#eae7fa 0%,#f0edfc 47%,#e1e7f7 100%);min-height:320px;border-radius:var(--radius);border:1px solid #fff;display:flex;align-items:center;padding:33px 35px;box-shadow:0 12px 36px #3e377d06}.hero-content{z-index:2;position:relative}.pill{display:inline-flex;align-items:center;gap:7px;border:1px solid #ffffffa0;background:#ffffff7a;border-radius:30px;padding:5px 10px;font-size:9px;font-weight:600;color:#77738d}.status-dot{width:5px;height:5px;border-radius:50%;background:#5fb298;box-shadow:0 0 0 3px #5fb29812;display:inline-block;animation:breathe 3s ease-in-out infinite}.status-dot.off{background:#b19db5;animation:none}.hero-card h2{font-size:clamp(29px,3.1vw,43px);line-height:1.16;letter-spacing:-1.7px;margin:20px 0 13px}.hero-card h2 span{color:#8a7ca7}.hero-card p{color:#8c84a0;font-size:11px;max-width:340px}.hero-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:23px}.hero-art{position:absolute;right:4%;top:0;width:42%;height:100%;perspective:800px}.sphere{position:absolute;width:245px;height:245px;left:50%;top:50%;transform:translate(-50%,-50%) rotate(-22deg);border-radius:50%;border:1px solid #b0a4d63f;background:radial-gradient(circle at 30% 25%,#ffffffb0,#bcb1e71a 55%,#a39add33);box-shadow:inset -20px -15px 40px #9e92d81a,20px 20px 50px #8476bc16;animation:sphere-float 8s ease-in-out infinite}.sphere-lat,.sphere-lon,.sphere-equator{position:absolute;inset:0;border:1px solid #a79bc339;border-radius:50%}.lat-one{transform:rotateX(55deg)}.lat-two{transform:rotateX(-55deg)}.lon-one{transform:rotateY(56deg)}.lon-two{transform:rotateY(-56deg)}.sphere-equator{transform:rotateX(85deg)}.hero-shield{position:absolute;left:47%;top:42%;width:106px;height:115px;border-radius:30px;background:linear-gradient(140deg,#ffffffdf,#d8cef5c0);box-shadow:0 20px 35px #645a9d25,inset 0 0 0 1px #ffffffcf;display:grid;place-items:center;transform:rotate(-12deg);animation:float 6s ease-in-out infinite;backdrop-filter:blur(14px)}.hero-shield svg{width:57px;height:57px;color:#9c8dcd;stroke-width:1.2}.spark{width:13px;height:13px;background:#fff9;position:absolute;border-radius:4px;box-shadow:0 6px 12px #71619a10;animation:float 5s ease-in-out infinite}.spark-one{left:17%;top:26%;transform:rotate(25deg)}.spark-two{right:2%;bottom:22%;width:8px;height:8px;animation-delay:-2s}.metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:20px 0 33px}.metric{position:relative;padding:23px 22px;background:#fff;border:1px solid #fff;border-radius:18px;box-shadow:0 3px 12px #28243102;display:flex;flex-direction:column;align-items:flex-start;gap:4px;transition:transform .25s,box-shadow .25s}.metric:hover{transform:translateY(-4px);box-shadow:0 12px 22px #28243107}.caption{font-size:10px;color:#92929b;line-height:1.8}.metric strong{font-size:23px;letter-spacing:-1px;font-weight:700}.metric-note{font-size:9px;color:#a3a3ac}.metric-icon{position:absolute;right:18px;top:21px;width:30px;height:30px;display:grid;place-items:center;border-radius:10px}.metric-icon svg{width:16px;height:16px}.lavender{background:#f0edfa;color:#a292d0}.blue{background:#eaf2fc;color:#87abd7}.green{background:#eaf5f0;color:#85b5a2}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 17px}.section-heading h2{font-size:16px}.quick-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.quick-card{text-align:left;border:1px solid #e9e9ef;background:linear-gradient(145deg,#fff,#fafafc);border-radius:18px;padding:22px;position:relative;color:inherit;transition:transform .3s,border-color .3s,box-shadow .3s}.quick-card:hover{transform:translateY(-5px);border-color:#d4ceed;box-shadow:0 14px 22px #71619a0a}.quick-card p{font-size:10px;color:#9b9ba5;margin-top:5px}.quick-icon{display:grid;place-items:center;width:32px;height:32px;background:#efedf6;border-radius:10px;color:#9b90b7;margin-bottom:16px}.quick-icon svg{width:18px}.quick-arrow{position:absolute;right:20px;top:29px;width:17px;color:#b4b3c1}.workspace-footer{display:flex;justify-content:space-between;max-width:1120px;margin:46px auto 0;color:#b3b2bd;font-size:9px;letter-spacing:.3px}.workspace-footer span:first-child{font-weight:700;letter-spacing:1px}.surface{border:1px solid #fff;border-radius:var(--radius);padding:27px;background:#fff;margin-bottom:20px;box-shadow:0 5px 20px #27222d03}.surface p{color:#92929c;font-size:12px;line-height:1.9;margin:10px 0 18px}.steps{display:grid;gap:0}.step-number{color:#b1a7d6;font-size:12px;display:block;letter-spacing:2px;font-weight:700;margin-bottom:12px}.action-row{display:flex;gap:9px;flex-wrap:wrap}.tariff-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,380px));gap:20px;margin-bottom:25px}.tariff-card{padding:30px;background:#fff;border-radius:var(--radius);border:1px solid #e4e0f3;position:relative;overflow:hidden;box-shadow:0 15px 50px #4c3b7d06}.tariff-card:before{content:'';position:absolute;right:-40px;top:-80px;width:200px;height:200px;background:radial-gradient(circle,#eee8fd,transparent 70%);pointer-events:none}.tariff-card h2{margin:18px 0 5px}.price{font-size:48px;font-weight:700;letter-spacing:-2px;margin:13px 0}.price small{font-size:13px;font-weight:500;letter-spacing:0;color:#9b98a8}.features{padding:0;list-style:none;margin:20px 0 26px}.features li{display:flex;gap:10px;align-items:flex-start;color:#8b8799;font-size:11px;margin:13px 0}.features svg{width:16px;height:16px;color:#9f91ce}.tariff-card .button{width:100%}.support-card{max-width:660px}.support-art{display:grid;place-items:center;width:64px;height:64px;border-radius:20px;background:#f0edfa;color:#a396c5;margin-bottom:22px}.support-art svg{width:30px;height:30px}.document-links{max-width:660px;display:grid;gap:1px;background:var(--line);border-radius:18px;overflow:hidden}.document-links a{display:flex;gap:12px;align-items:center;background:#fff;padding:20px;font-size:11px}.document-links svg{width:17px;color:#a6a0b5}.document-links svg:last-child{margin-left:auto}.document-links a:hover{background:#faf8ff}input{border:1px solid #e5e4ec;border-radius:11px;background:#fafafc;padding:12px 13px;width:100%;min-width:0;color:#36343f;font-size:12px;outline:0;transition:border-color .2s}input:focus{border-color:#a69bc9}label{font-size:10px;font-weight:600;color:#97929f;display:grid;gap:7px}.grant-form{display:grid;grid-template-columns:1.4fr .7fr auto;align-items:end;gap:12px}.search-label{max-width:230px}.client{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:17px 0;border-top:1px solid #f0eef4}.client-name{font-size:12px;font-weight:700;overflow-wrap:anywhere}.client-meta{font-size:10px;color:#aaa5b3;margin-top:3px}.client-meta .status-dot{margin-right:7px}.empty{font-size:12px;color:#a4a0ac;padding:20px 0}.log{padding:12px 0;border-top:1px solid #f0eef4;font-size:10px;color:#a4a0ac;overflow-wrap:anywhere}.editor{width:min(530px,calc(100% - 28px));padding:27px;border:1px solid #fff;border-radius:26px;background:#fff;box-shadow:0 30px 100px #19112633;color:var(--ink);max-height:90dvh;overflow:auto}.editor[open]{animation:dialog-in .3s ease both}.editor::backdrop{background:#29223655;backdrop-filter:blur(7px)}.dialog-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:15px}.dialog-heading h2{font-size:17px;overflow-wrap:anywhere}.editor-fields{display:grid;gap:18px;margin-top:20px}.input-action{display:flex;gap:8px;align-items:center}.input-action .button{flex-shrink:0}.editor-danger{padding-top:18px;border-top:1px solid var(--line)}.toast{position:fixed;z-index:30;left:50%;bottom:35px;transform:translateX(-50%);width:max-content;max-width:min(520px,calc(100% - 32px));padding:15px 22px;border-radius:16px;background:#29262ff2;color:#fff;font-size:12px;box-shadow:0 12px 40px #0002;backdrop-filter:blur(20px);animation:toast-in .3s ease both}.login-screen{min-height:100dvh;display:flex;flex-direction:column;align-items:center;text-align:center;padding:35px 20px 24px}.login-screen>.brand{align-self:flex-start;margin-left:20px}.login-art{width:280px;height:240px;position:relative;margin:20px 0 14px}.glass-shield{width:112px;height:125px;background:linear-gradient(150deg,#fff,#e5def8);color:#ad9bd3;border-radius:34px;position:absolute;left:84px;top:45px;display:grid;place-items:center;transform:rotate(-12deg);box-shadow:0 20px 50px #9481c42a,inset 0 0 0 2px #fff;animation:float 6s ease-in-out infinite}.glass-shield svg{width:64px;height:64px;stroke-width:1.3}.orbit{width:250px;height:150px;border:1px solid #dcd6ee;border-radius:50%;position:absolute;top:35px;left:15px;transform:rotate(-30deg)}.orbit-two{transform:rotate(45deg)}.float-tag{position:absolute;bottom:24px;right:3px;padding:7px 12px;background:#ffffffd9;border:1px solid #fff;border-radius:10px;color:#9b90ab;font-size:9px;box-shadow:0 6px 30px #6f5d9912;animation:float 7s ease-in-out infinite;animation-delay:-3s}.float-tag .status-dot{margin-right:5px}.login-screen h1{font-size:clamp(32px,4vw,52px);line-height:1.2;margin:18px 0}.gradient-text{background:linear-gradient(100deg,#a28abf,#7876bb);background-clip:text;color:transparent}.login-screen .lead{font-size:13px}.large{margin:28px 0 15px;padding:15px 23px;font-size:12px}.login-links{margin-top:auto;padding-top:40px;display:flex;flex-wrap:wrap;justify-content:center;gap:20px;font-size:9px;color:#a7a1b0}.reveal{animation:page-in .6s cubic-bezier(.16,1,.3,1) both}.metrics.reveal{animation-delay:.08s}.quick-grid.reveal{animation-delay:.16s}.loading svg{animation:spin 1s linear infinite}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@keyframes page-in{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:translateY(0)}}@keyframes float{0%,100%{translate:0 0}50%{translate:0 -10px}}@keyframes sphere-float{0%,100%{translate:0 0}50%{translate:0 -6px}}@keyframes breathe{50%{box-shadow:0 0 0 5px #5fb29809}}@keyframes spin{to{transform:rotate(360deg)}}@keyframes dialog-in{from{opacity:0;transform:scale(.97) translateY(12px)}to{opacity:1;transform:scale(1) translateY(0)}}@keyframes toast-in{from{opacity:0;translate:0 10px}to{opacity:1;translate:0 0}}
@media(min-width:1450px){.workspace{padding-inline:65px}.hero-card{min-height:350px}.sphere{width:280px;height:280px}}
@media(max-width:1100px){.app-shell{grid-template-columns:205px minmax(0,1fr)}.workspace{padding-inline:27px}.sidebar{padding-inline:16px}.brand{font-size:20px}.hero-card{padding:28px}.hero-art{right:-5%;opacity:.75}.hero-content{max-width:75%}.hero-card h2{font-size:35px}.metric{padding:19px 16px}.metric strong{font-size:20px}.metric-icon{right:12px;top:17px;width:26px;height:26px}.metric .caption{max-width:calc(100% - 30px)}.quick-card{padding:17px}.quick-card p{font-size:9px}.quick-arrow{right:14px;top:24px}.grant-form{grid-template-columns:1fr 1fr}.grant-form>.button{grid-column:1/-1}.profile>span:not(.verified){max-width:90px;overflow:hidden;text-overflow:ellipsis}}
@media(max-width:760px){.app-shell{display:block}.sidebar{position:fixed;z-index:10;top:auto;bottom:0;left:0;right:0;height:auto;padding:9px 10px max(9px,env(safe-area-inset-bottom));border:0;border-top:1px solid #ffffffc0;background:#fbfbfbd9;backdrop-filter:blur(24px)}.sidebar>.brand,.sidebar-label,.sidebar-bottom{display:none}.navigation{display:flex;gap:0;justify-content:space-around}.nav-item{display:flex;flex-direction:column;gap:4px;justify-content:center;font-size:8px;padding:8px 5px;min-width:55px;border-radius:12px;flex:1}.nav-item svg{width:20px;height:20px}.nav-item:hover{transform:none}.workspace{padding:0 20px 105px}.topbar{height:75px}.breadcrumb{font-size:10px}.breadcrumb span{margin:0 7px}.profile{gap:6px}.avatar{width:28px;height:28px;font-size:10px}.profile>span:not(.verified){max-width:75px;font-size:10px}.page-heading{margin:22px 0 23px;gap:10px}.eyebrow{font-size:8px;letter-spacing:1.5px}h1{font-size:29px;letter-spacing:-1.3px;margin:9px 0 7px}.lead{font-size:10px}.hero-card{padding:25px 23px;min-height:310px;border-radius:22px}.hero-content{max-width:100%}.hero-card h2{font-size:33px;margin:22px 0 15px;max-width:250px}.hero-card p{font-size:10px;max-width:220px}.hero-actions{margin-top:23px;gap:7px}.hero-actions .button{padding:11px 13px;font-size:10px}.hero-art{width:52%;right:-5%;top:-10%;opacity:.6;pointer-events:none}.sphere{width:180px;height:180px}.hero-shield{width:70px;height:80px;border-radius:23px;left:40%;top:43%}.hero-shield svg{width:43px;height:43px}.pill{font-size:8px}.metrics{gap:9px;margin:13px 0 28px}.metric{padding:16px 12px;border-radius:15px;gap:5px;min-height:125px}.metric-icon{position:static;margin-bottom:5px;width:25px;height:25px;border-radius:8px}.metric-icon svg{width:14px;height:14px}.metric .caption{font-size:8px;max-width:100%}.metric strong{font-size:16px;letter-spacing:-.7px}.metric-note{font-size:8px;line-height:1.65}.section-heading h2{font-size:15px}.section-heading>.caption{font-size:8px}.quick-grid{grid-template-columns:1fr;gap:10px}.quick-card{padding:18px 18px 18px 67px;min-height:80px;border-radius:16px}.quick-icon{position:absolute;left:18px;top:23px;margin:0}.quick-card h3{font-size:12px}.quick-card p{font-size:9px}.quick-arrow{top:31px;right:17px}.surface{padding:22px 20px}.surface h2{font-size:17px}.surface p{font-size:11px}.steps .surface{margin-bottom:12px}.toast{bottom:100px}.workspace-footer{margin-top:30px;font-size:8px}.client{align-items:flex-start}.client-name{font-size:11px}.client-meta{font-size:9px}.client .button{padding:9px 11px;font-size:9px;min-height:36px}.search-label{max-width:150px}.search-label input{font-size:10px;padding:10px}.grant-form{gap:10px}.editor{padding:22px}.editor .button{font-size:10px;padding:11px 13px}.editor .input-action input{font-size:11px}.dialog-heading h2{font-size:16px}.tariff-grid{grid-template-columns:1fr}.login-screen>.brand{margin-left:0}.login-art{margin-top:15px;height:220px}.login-screen h1{font-size:32px;letter-spacing:-1.5px}.login-screen .lead{font-size:11px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
h1{overflow-wrap:anywhere}@media(max-width:760px){.metric strong{font-size:clamp(12px,3.6vw,16px);overflow-wrap:anywhere}.metric-note{overflow-wrap:anywhere}}

.personal-metrics{grid-template-columns:repeat(4,minmax(0,1fr))}@media(max-width:760px){.personal-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}

.checkout-email { display: grid; gap: .35rem; font-weight: 600; }
.checkout-email input { width: 100%; min-height: 44px; }
.checkout-actions:empty { display: none; }
.checkout-actions { display: flex; align-items: flex-start; flex-wrap: wrap; gap: .5rem; }
.checkout-summary { width: 100%; display: grid; gap: .3rem; padding: .8rem; border-radius: 12px; background: var(--bg); }
.checkout-summary span { font-size: .75rem; overflow-wrap: anywhere; }
.checkout-feedback { margin: 0; font-size: .85rem; }
.checkout-email[hidden], .tariff-card button[hidden] { display: none; }

.analytics {background:#191524;color:#f6f3ff;padding:clamp(12px,3vw,30px);border-radius:24px}
.analytics article,.analytics figure {background:#292337;color:#f6f3ff;padding:16px;border-radius:14px;margin:12px 0}
.analytics .metrics {grid-template-columns:repeat(auto-fit,minmax(135px,1fr));gap:8px}
.analytics .metric {margin:0}.analytics .metric span,.analytics small {color:#cdc1e2}
.analytics svg {width:100%;height:75px}.analytics polyline {stroke:#bc97ff;stroke-width:3;fill:none}
.analytics label {display:grid;gap:4px}.analytics .action-row {flex-wrap:wrap}
.analytics input,.analytics select {max-width:100%;border-radius:8px;padding:8px;color:#20182c;background:#f8f6ff}
.analytics table {border-collapse:collapse;margin:12px 0}.analytics th,.analytics td {text-align:left;padding:8px;border-bottom:1px solid #66557a}
.scroll-table {overflow-x:auto}.analytics .button.secondary,.analytics .button.quiet {background:#46395a;color:#faf6ff}

.device-limit-form {grid-template-columns:repeat(3,minmax(0,1fr)) auto}
.device-limit-form select {width:100%;min-width:0;border:1px solid #e5e4ec;border-radius:11px;background:#fafafc;padding:12px 13px;color:#36343f;font:inherit;font-size:12px}
.admin-access-result .action-row {margin-top:12px}
@media(max-width:1100px){.device-limit-form {grid-template-columns:1fr 1fr}}

/* GestoppVPN glass theme */
:root {
  color-scheme: light;
  --bg: #f8f6ff;
  --ink: #231d31;
  --muted: #655a76;
  --accent: #6a49b1;
  --blue: #6848aa;
  --line: #d5c8eb;
  --glass: linear-gradient(145deg, #ffffffed, #f0e9fbe6);
}

body {
  background:
    radial-gradient(ellipse at 12% 0%, #dfcff8 0%, transparent 42rem),
    radial-gradient(ellipse at 98% 32%, #e9dcfa 0%, transparent 46rem),
    var(--bg);
  font-size: 1rem;
}

.ambient { display: none; }
.brand-light { color: var(--accent); }
.brand-mark {
  background: #21182f;
  border: 1px solid #bea4fa55;
  box-shadow: 0 0 20px #9368f443;
}
.sidebar {
  background: #eee5fbcf;
  border-color: var(--line);
}
.sidebar-label, .sidebar-bottom, .secure-note svg, .breadcrumb,
.breadcrumb b, .lead, .caption, .metric-note, .surface p, .quick-card p {
  color: var(--muted);
}
.nav-item { color: var(--muted); }
.nav-item:hover, .nav-item.selected {
  background: linear-gradient(115deg, #e4d4f7, #f4ebfd);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px #bea0e588, 0 0 22px #8b6ff629;
}
.profile, .pill, .avatar, .verified {
  color: #492f72;
  background: #e8dcf9;
}
.hero-card {
  background:
    radial-gradient(ellipse at 80% 20%, #dbbaff6b, transparent 66%),
    linear-gradient(140deg, #6034a1, #8556c8);
  color: #fff;
  border-color: #ad80e6;
  box-shadow: inset 0 1px #ffffff1a, 0 18px 45px #55338029;
}
.hero-card p { color: #f4eaff; font-size: .875rem; }
.hero-shield, .support-art, .metric-icon, .quick-icon {
  color: #63379d;
  background: #d8c2f775;
  box-shadow: inset 0 0 0 1px #caacff44, 0 0 16px #9773fc30;
}
.sphere, .sphere > div, .orbit { border-color: #ccb7ff58; }
.spark { background: #d5bfff; }
.metric, .surface, .quick-card, .tariff-card, .editor, .document-links a {
  color: var(--ink);
  border: 1px solid var(--line);
  background: var(--glass);
  box-shadow: inset 0 1px #ffffff99, 0 12px 28px #4c316b14;
}
.metric:hover, .quick-card:hover {
  border-color: #b997f99c;
  box-shadow: 0 12px 32px #51336c25, 0 0 24px #a278fc37;
}
.caption, .metric .caption, .metric-note, .breadcrumb, .profile,
.login-links, .surface p, .quick-card p { font-size: .875rem; }
.surface h2, .section-heading h2 { color: var(--ink); }
.button.primary {
  color: #1c1035;
  background: linear-gradient(135deg, #e5d7ff, #b497fb);
  border-color: #eadfff8c;
  box-shadow: 0 5px 22px #9d71fa42;
}
.button.primary:hover { color: #1c1035; background: #e3d3ff; }
.button.secondary, .button.white, .button.quiet, .icon-button {
  color: #4d3076;
  background: #ede3fa;
  border-color: var(--line);
}
.button.secondary:hover, .button.white:hover, .button.quiet:hover, .icon-button:hover {
  color: #331e51;
  background: #ddc9f8;
}
input, select, textarea, .device-limit-form select, .editor input {
  color: var(--ink);
  background: #fbf8ff;
  border-color: var(--line);
}
input::placeholder { color: #766786; }
label, .client-name, .client-meta, .workspace-footer { color: var(--muted); }
.toast { background: #f9f2ff; color: var(--ink); border-color: var(--line); }

.login-screen {
  width: min(100%, 78rem);
  min-height: 100dvh;
  margin: auto;
  padding: 2rem clamp(1.25rem, 5vw, 5rem);
  text-align: left;
}
.login-screen > .brand { margin: 0; }
.login-main {
  width: 100%;
  flex: 1;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(1.25rem, 5vw, 5rem);
  align-items: center;
  padding-block: clamp(2.75rem, 8vw, 7rem);
}
.login-screen h1 {
  margin: 0 0 1.3rem;
  font-size: clamp(2.25rem, 5.2vw, 4.85rem);
  line-height: 1.05;
  letter-spacing: -.055em;
}
.gradient-text {
  background-image: linear-gradient(115deg, #8051bd, #58368e);
}
.login-screen .lead { font-size: 1rem; line-height: 1.65; max-width: 29rem; margin-bottom: 1.55rem; }
.login-screen .caption { color: var(--muted); margin-top: .75rem; }
.login-links { margin: 0; padding: 0; align-self: flex-start; justify-content: flex-start; }
.login-links a:hover { color: #593990; }
.login-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  background:
    radial-gradient(ellipse at 50% 42%, #c5a0ee80, transparent 70%),
    var(--glass);
  border: 1px solid #cab3ea;
  border-radius: clamp(1.25rem, 4vw, 2.5rem);
  box-shadow: inset 0 1px #e6d3ff24, 0 20px 70px #5c358a24;
  padding: 1.25rem;
}
.login-preview .login-art { margin: 0; width: min(100%, 280px); }
.login-preview .orbit { left: 5%; width: 90%; }
.glass-shield {
  left: calc(50% - 56px);
  color: #f1e4ff;
  background: linear-gradient(155deg, #a477df, #6942a8);
  box-shadow: 0 12px 40px #a269fc55, inset 0 0 0 1px #e1c9ffab;
}
.login-preview-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; width: 100%; }
.login-preview-tiles span {
  padding: .85rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  background: #f4eafecc;
  border: 1px solid var(--line);
  border-radius: .9rem;
  color: #503676;
  font-size: .875rem;
}

@media (max-width: 820px) {
  .login-main { grid-template-columns: 1fr; }
  .login-preview { width: min(100%, 29rem); }
  .login-preview .login-art { height: 210px; }
  .nav-item { min-width: 0; font-size: clamp(.625rem, 2.6vw, .875rem); }
  .metric .caption, .metric-note { font-size: .8125rem; }
  .personal-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .metric:hover, .quick-card:hover, .nav-item:hover { transform: none; }
}

.home-overview {
  display: grid;
  grid-template-columns: minmax(0, 2.25fr) minmax(14rem, 1fr);
  gap: 1rem;
}
.overview-actions { margin: 0; display: grid; align-content: start; gap: .75rem; }
.overview-actions h2 { margin: 0 0 .35rem; }
.overview-actions .button { justify-content: flex-start; text-align: left; min-height: 44px; }
.hero-card .hero-shield { background: #d2acfa32; color: #f8efff; }
.hero-card .pill { background: #f5e8ff29; color: #fff; }
.metrics .metric:nth-child(2) {
  background: linear-gradient(145deg, #ebddfc, #f7efff);
  border-color: #cdb4ed;
}
@media (max-width: 1100px) {
  .home-overview { grid-template-columns: 1fr; }
  .overview-actions { grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr)); }
  .overview-actions h2 { grid-column: 1 / -1; }
}

/* Expand the desktop navigation rail on hover or keyboard focus. */
@media (min-width: 1024px) and (hover: hover) and (pointer: fine) {
  .app-shell { grid-template-columns: 76px minmax(0, 1fr); transition: grid-template-columns .4s cubic-bezier(.2,.8,.2,1); }
  .app-shell:has(.sidebar:is(:hover, :focus-within)) { grid-template-columns: 240px minmax(0, 1fr); }
  .sidebar { padding-inline: 13px; overflow: hidden; }
  .sidebar .brand, .sidebar .nav-item, .sidebar .secure-note { white-space: nowrap; }
  .sidebar .brand-mark { flex-shrink: 0; }
  .sidebar .nav-item > span, .sidebar-label, .sidebar-bottom {
    opacity: 0;
    transition: opacity .18s ease;
  }
  .sidebar:is(:hover,:focus-within) .nav-item > span,
  .sidebar:is(:hover,:focus-within) .sidebar-label,
  .sidebar:is(:hover,:focus-within) .sidebar-bottom { opacity: 1; transition-delay: .12s; }
}

.hero-art { display: grid; place-items: center; right: 2%; pointer-events: none; }
.hero-orbit { position: relative; display: grid; place-items: center; width: min(84%, 13rem); aspect-ratio: 1; }
.hero-orbit > * { grid-area: 1 / 1; }
.hero-ring { width: 100%; height: 100%; rotate: -90deg; }
.ring-track { stroke: #e7d6ff4b; stroke-width: 5; }
.ring-progress {
  stroke: #f6e9ff;
  stroke-width: 5;
  transition: stroke-dashoffset .95s cubic-bezier(.2,.8,.2,1);
  filter: drop-shadow(0 0 5px #dec4ffaa);
}
.ring-satellites {
  position: absolute;
  inset: 0;
  animation: orbit-entry 1.1s .23s cubic-bezier(.18,.8,.25,1) both;
}
.ring-satellites span {
  position: absolute;
  display: grid;
  place-items: center;
  width: clamp(1.25rem, 3vw, 2.1rem);
  aspect-ratio: 1;
  border: 1px solid #eddbffaa;
  border-radius: 50%;
  background: #835ab9;
  color: #fff;
  box-shadow: 0 0 14px #e5c9ff4d;
}
.ring-satellites span svg { width: 56%; height: 56%; }
.ring-satellites span:nth-child(1) { top: 6%; left: 15%; }
.ring-satellites span:nth-child(2) { top: 29%; right: 0; }
.ring-satellites span:nth-child(3) { bottom: 2%; left: 41%; }
#deviceRingValue { color: #fff; font-size: clamp(1rem, 3vw, 1.75rem); }
#deviceRingShield { width: 34%; height: 34%; color: #f8eaff; }
@keyframes orbit-entry {
  from { opacity: 0; transform: rotate(-64deg) scale(.78); }
  to { opacity: 1; transform: rotate(0) scale(1); }
}
@keyframes glass-entry {
  from { opacity: 0; translate: 0 18px; scale: .975; }
  to { opacity: 1; translate: 0; scale: 1; }
}
.login-copy, .login-preview, .login-preview-tiles span,
.home-overview .hero-card, .overview-actions, .personal-metrics > .metric {
  animation: glass-entry .66s cubic-bezier(.18,.78,.25,1) both;
}
.login-preview, .overview-actions { animation-delay: .14s; }
.login-preview-tiles span:first-child { animation-delay: .3s; }
.login-preview-tiles span:last-child { animation-delay: .39s; }
.personal-metrics.reveal { animation: none; }
.personal-metrics > .metric:nth-child(1) { animation-delay: .18s; }
.personal-metrics > .metric:nth-child(2) { animation-delay: .25s; }
.personal-metrics > .metric:nth-child(3) { animation-delay: .32s; }
.personal-metrics > .metric:nth-child(4) { animation-delay: .39s; }
.metric:hover { translate: 0 -4px; transform: none; }
.metric { transition: translate .25s, box-shadow .25s, border-color .25s; }

@media (max-width: 760px) {
  .hero-card { flex-direction: column; align-items: stretch; gap: .5rem; }
  .hero-art { position: relative; inset: auto; width: 100%; height: auto; opacity: 1; }
  .hero-orbit { width: min(50%, 10rem); }
}
@media (prefers-reduced-motion: reduce) {
  .metric:hover { translate: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .login-preview, .home-overview .hero-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
  }
  .login-preview::before, .home-overview .hero-card::before {
    position: absolute;
    inset: -40% -30%;
    z-index: -1;
    content: "";
    pointer-events: none;
    background: radial-gradient(ellipse at center, #ead0ff80, transparent 58%);
    animation: light-drift 8s ease-in-out infinite alternate;
    will-change: transform, opacity;
  }
  .home-overview .hero-card::before {
    background: radial-gradient(ellipse at center, #f0ceff58, transparent 58%);
    animation-delay: -2s;
  }
  .ring-satellites {
    animation: orbit-entry 1.1s .23s cubic-bezier(.18,.8,.25,1) both,
               orbit-drift 7s 1.33s ease-in-out infinite;
  }
  .ring-satellites > span { animation: satellite-bob 3.8s ease-in-out infinite; }
  .ring-satellites > span:nth-child(2) { animation-delay: -1.2s; }
  .ring-satellites > span:nth-child(3) { animation-delay: -2.4s; }
  .hero-orbit::before {
    grid-area: 1 / 1;
    content: "";
    width: 78%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, #d8b6ff4d, transparent 73%);
    animation: orbit-halo 4.4s ease-in-out infinite;
  }
  .workspace > .page { animation: workspace-entry .42s cubic-bezier(.18,.8,.25,1) both; }
  .overview-actions .button, .button.primary, .login-links a {
    transition: translate .2s ease, scale .16s ease, background .2s ease, box-shadow .2s ease;
  }
  .overview-actions .button svg { transition: rotate .24s ease, scale .24s ease; }
  .overview-actions .button:is(:hover,:focus-visible) { translate: 4px 0; }
  .overview-actions .button:is(:hover,:focus-visible) svg { rotate: -9deg; scale: 1.13; }
  .button.primary:is(:hover,:focus-visible) { translate: 0 -2px; box-shadow: 0 8px 24px #9566dd60; }
  .button.primary:active, .overview-actions .button:active { scale: .97; }
  .metric-icon { transition: scale .25s ease, rotate .25s ease; }
  .metric:hover .metric-icon { scale: 1.12; rotate: -7deg; }
  .nav-item.selected svg { animation: nav-pop .32s cubic-bezier(.2,.7,.3,1.2) both; }
}

@keyframes light-drift {
  from { transform: translate(-24%, 19%) scale(.9); opacity: .55; }
  to { transform: translate(23%, -18%) scale(1.15); opacity: 1; }
}
@keyframes orbit-drift {
  0%, 100% { rotate: 0deg; }
  35% { rotate: 12deg; }
  70% { rotate: -8deg; }
}
@keyframes satellite-bob {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -6px; }
}
@keyframes orbit-halo {
  0%, 100% { scale: .86; opacity: .42; }
  50% { scale: 1.15; opacity: .95; }
}
@keyframes workspace-entry {
  from { opacity: .45; translate: 0 9px; }
  to { opacity: 1; translate: 0 0; }
}
@keyframes nav-pop {
  from { scale: .8; }
  to { scale: 1; }
}

.auth-dialog {
  width: min(29rem, calc(100% - 1.75rem));
  max-height: calc(100dvh - 2rem);
  padding: clamp(1.25rem, 5vw, 2rem);
  border-radius: 1.6rem;
  background:
    radial-gradient(ellipse at top left, #dcc9f9c9, transparent 60%),
    linear-gradient(145deg, #fff, #f8f2ff);
  box-shadow: 0 24px 76px #26113b4d, inset 0 1px #fff;
}
.auth-dialog::backdrop { background: #24143360; backdrop-filter: blur(8px); }
.auth-heading { align-items: center; margin-bottom: .85rem; }
.auth-heading .brand-mark { width: 44px; height: 44px; border-radius: .85rem; }
.auth-heading .icon-button { width: 44px; height: 44px; }
.auth-dialog h2 { margin: 0 0 1.1rem; font-size: clamp(1.4rem, 5vw, 1.8rem); line-height: 1.2; }
.auth-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .25rem;
  margin-bottom: 1.15rem;
  padding: .25rem;
  background: #e8dbf649;
  border: 1px solid var(--line);
  border-radius: .9rem;
}
.auth-methods button {
  min-height: 44px;
  padding: .4rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .35rem;
  border: 1px solid transparent;
  border-radius: .65rem;
  background: transparent;
  color: #574268;
  font-size: .875rem;
  font-weight: 700;
}
.auth-methods button[aria-pressed="true"] {
  border-color: #d4bcea;
  background: #fcf8ff;
  color: #48236d;
  box-shadow: 0 2px 8px #40285619;
}
.auth-methods svg { width: 1rem; height: 1rem; }
.website-auth-form { display: grid; gap: .85rem; }
.website-auth-form label { display: grid; gap: .35rem; color: #4d375f; font-size: .875rem; font-weight: 600; }
.website-auth-form input {
  width: 100%;
  min-height: 46px;
  padding: .65rem .85rem;
  border-radius: .75rem;
  background: #fdfaff;
  font-size: 1rem;
}
.website-auth-form :is(button, a) { min-height: 44px; justify-content: center; text-align: center; }
.auth-description { margin: 0; color: #645474; font-size: .875rem; }
.auth-feedback {
  margin: .95rem 0 0;
  padding: .65rem .8rem;
  border-radius: .65rem;
  background: #f6e9f5;
  color: #712653;
  font-size: .875rem;
}
@media (prefers-reduced-motion: no-preference) {
  .auth-methods button { transition: background .2s, box-shadow .2s, color .2s; }
  .auth-dialog .website-auth-form:not([hidden]) { animation: workspace-entry .22s ease both; }
}
#websiteLogout { padding: .35rem .6rem; }
