/* Smartly Digital customer space • Motion-first but lightweight: transform and opacity animations only. */
:root{--sp-blue:#257fff;--sp-sky:#7dd0ff;--sp-ink:#070d18;--sp-line:rgba(102,149,218,.23);--sp-muted:#91a6c8}
.customer-space{overflow-x:hidden;background:#060c17;position:relative;isolation:isolate;line-height:1.5}
.customer-space [hidden]{display:none!important}
.customer-space .ambient{position:fixed;border-radius:50%;pointer-events:none;z-index:-1;filter:blur(60px);opacity:.4}
.customer-space .ambient-one{width:710px;height:590px;top:-300px;left:4%;background:radial-gradient(circle,#1454ac 0%,transparent 66%)}
.customer-space .ambient-two{width:590px;height:650px;top:20%;right:-25%;background:radial-gradient(circle,#243c9e 0%,transparent 66%)}
.customer-space .starfield{position:absolute;z-index:-1;inset:0;pointer-events:none;background-image:radial-gradient(circle at 18% 17%,#60b9ffbd 0 1px,transparent 2px),radial-gradient(circle at 70% 12%,#8d9dff8c 0 1px,transparent 2px),radial-gradient(circle at 92% 44%,#4cb4ff89 0 1.3px,transparent 2px),radial-gradient(circle at 12% 79%,#5488d791 0 1px,transparent 2px);opacity:.65}
.customer-shell{width:min(1330px,calc(100% - 80px));margin:auto;position:relative;z-index:1;min-height:100vh}
.customer-space a:focus-visible,.customer-space button:focus-visible,.customer-space input:focus-visible{outline:2px solid #82d6ff;outline-offset:4px}
.customer-space svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.customer-nav{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:105px;border-bottom:1px solid rgba(116,167,233,.14);margin-bottom:44px}
.customer-brand{gap:14px;font-size:20px;letter-spacing:-.07em}
.customer-brand img{width:51px;height:51px;box-shadow:0 0 0 4px rgba(44,119,250,.09),0 10px 27px #030817}
.customer-brand span{line-height:1;display:block}
.customer-brand small{display:block;letter-spacing:1.5px;font-size:7px;font-weight:800;color:#7c9cbf;margin-top:8px}
.customer-nav-links{display:flex;align-items:center;gap:25px}
.nav-soft-link{color:#a4b4ce;font-size:13px;font-weight:700;transition:color .25s ease}
.nav-soft-link:hover{color:#fff}
.nav-status{display:inline-flex;align-items:center;gap:9px;padding:11px 14px;border-radius:12px;font-size:10px;font-weight:800;letter-spacing:1.3px;color:#b6d5ff;background:rgba(17,39,71,.72);border:1px solid rgba(70,119,192,.28)}
.nav-status i,.signal-dot{height:6px;width:6px;display:inline-block;flex:none;border-radius:100%;background:#57bfff;box-shadow:0 0 15px rgba(52,160,255,.8);animation:signalPulse 3.2s ease-in-out infinite}
@keyframes signalPulse{50%{opacity:.65;box-shadow:0 0 5px rgba(52,160,255,.45)}}
.eyebrow{color:#83b4f9;letter-spacing:2px;font-size:10px;font-weight:850}
.eyebrow-line{display:flex;align-items:center;gap:11px}
.intro-line{height:1px;width:42px;background:linear-gradient(90deg,#498ef9,transparent)}
.gradient-text{background:linear-gradient(112deg,#d9ecff 0%,#7bceff 37%,#297dff 92%);color:transparent;background-clip:text;-webkit-background-clip:text}
.text-sky{color:#429aff}
.customer-auth-view{padding-bottom:20px}
.auth-intro{text-align:center;max-width:790px;margin:58px auto 43px}
.auth-intro .eyebrow-line{justify-content:center}
.auth-intro h1{font-size:clamp(46px,6vw,86px);line-height:1.05;font-weight:830;letter-spacing:-.078em;margin:24px 0 20px;color:#f4f8ff}
.auth-intro>p{max-width:570px;margin:0 auto;font-size:15px;line-height:1.85;color:#a6b8d3}
.auth-trust{display:flex;justify-content:center;flex-wrap:wrap;gap:22px;margin-top:25px;color:#a6c9ec;font-size:12px;font-weight:700}
.auth-trust span{display:inline-flex;align-items:center;gap:9px}
.auth-trust svg{height:18px;width:18px;color:#6ec4ff}
.customer-auth-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;max-width:1150px;margin:0 auto}
.customer-auth-card,.customer-panel{position:relative;isolation:isolate;background:linear-gradient(146deg,rgba(17,35,62,.97) 0%,rgba(8,18,35,.98) 67%,rgba(7,15,29,.98));border:1px solid var(--sp-line);border-radius:25px;box-shadow:0 22px 66px rgba(0,0,0,.32),inset 0 1px rgba(255,255,255,.05);overflow:hidden}
.customer-auth-card{padding:34px clamp(20px,4vw,43px) 36px}
.customer-auth-card::before,.customer-panel::before{content:"";position:absolute;pointer-events:none;z-index:-1;inset:0;background:radial-gradient(circle at 90% 0%,rgba(51,117,217,.13),transparent 43%)}
.customer-auth-card:hover,.customer-panel:hover{border-color:rgba(125,179,255,.35)}
.auth-card-top{display:flex;align-items:center;justify-content:space-between;gap:14px}
.auth-card-mark,.metric-icon{width:42px;height:42px;border-radius:12px;background:linear-gradient(148deg,rgba(39,112,224,.29),rgba(25,51,105,.39));display:grid;place-items:center;border:1px solid rgba(102,156,243,.28);color:#a3dcff;flex:none}
.auth-card-mark svg{width:21px;height:21px}
.customer-auth-card h2{font-size:clamp(28px,3vw,40px);letter-spacing:-.06em;margin:17px 0 4px}
.form-description{color:#a3b5ce;font-size:13px;margin-bottom:26px}
.customer-space .auth-form{display:grid;gap:15px}
.customer-field label{font-size:12px;font-weight:800;letter-spacing:.2px;color:#bfd3ed;margin-bottom:8px}
.customer-field input{width:100%;min-height:50px;padding:14px 15px;border-radius:13px;border:1px solid #305079;background:#08182c;color:#f4faff;box-shadow:inset 0 1px 0 rgba(255,255,255,.03);transition:border-color .25s ease,background .25s ease,box-shadow .25s ease}
.customer-field input::placeholder{color:#647e9f}
.customer-field input:focus{border-color:#4faeff;background:#0d2039;outline:0;box-shadow:0 0 0 3px rgba(55,140,255,.15)}
.customer-space .button{min-height:49px;border-radius:13px}
.customer-space .premium-primary{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:14px;border:1px solid rgba(156,210,255,.44);background:linear-gradient(105deg,#137dff 0%,#0b62e9 57%,#104cc8 100%);box-shadow:0 16px 36px rgba(5,105,235,.22),inset 0 1px rgba(255,255,255,.16);overflow:hidden;transition:transform .27s ease,box-shadow .27s ease}
.customer-space .premium-primary::before{content:"";position:absolute;inset:-140% auto auto -70%;width:35%;height:330%;transform:rotate(19deg);background:linear-gradient(90deg,transparent,rgba(255,255,255,.17),transparent);animation:buttonSweep 6s ease-in-out infinite;pointer-events:none}
@keyframes buttonSweep{0%,38%{left:-70%}75%,100%{left:145%}}
.customer-space .premium-primary:hover{transform:translateY(-2px);box-shadow:0 18px 42px rgba(5,105,235,.4)}
.premium-primary svg{width:19px;height:19px;transition:transform .2s ease}
.premium-primary:hover svg{transform:translateX(4px)}
.customer-auth-card .google-auth-button{min-height:50px;background:rgba(246,249,255,.97);color:#1c293e;box-shadow:0 12px 25px rgba(0,0,0,.24)}
.customer-auth-card .google-auth-button:hover{background:#fff}
.customer-auth-card .auth-separator{margin:21px 0 17px;color:#789ac2;font-size:10px;font-weight:800;letter-spacing:1.6px}
.google-setup-hint{font-size:11px;line-height:1.6}
.auth-footnote{max-width:760px;text-align:center;margin:27px auto;color:#6889ae;font-size:11px;line-height:1.7}
.customer-flash{position:relative;z-index:10;margin:0 0 22px}
/* Logged-in profile */
.customer-dash-hero{position:relative;isolation:isolate;min-height:335px;border:1px solid rgba(97,155,242,.3);border-radius:29px;background:radial-gradient(ellipse at 68% 45%,rgba(20,78,167,.23),transparent 47%),linear-gradient(121deg,#101c32 0%,#0b1b35 59%,#101d39 100%);box-shadow:0 25px 65px rgba(0,0,0,.3),inset 0 1px rgba(157,202,255,.08);padding:47px clamp(24px,5.5vw,66px);overflow:hidden}
.customer-dash-hero::after{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(115deg,transparent 40%,rgba(68,151,255,.07) 54%,transparent 72%);background-size:240% 100%;animation:heroLight 13s linear infinite}
@keyframes heroLight{to{background-position:240% 0}}
.dash-hero-content{position:relative;z-index:2;max-width:750px}
.dash-hero-content .eyebrow{display:flex;align-items:center;gap:12px}
.dash-number{opacity:.75;margin-left:12px}
.hero-profile-line{display:flex;gap:21px;align-items:center;margin-top:32px}
.profile-avatar{height:86px;width:86px;border:2px solid rgba(146,214,255,.65);border-radius:24px;display:grid;place-items:center;flex:none;color:white;font-size:28px;font-weight:850;letter-spacing:-1px;background:radial-gradient(circle at 28% 22%,#6acaff 0%,#267cff 34%,#0c3d9d 100%);box-shadow:0 0 0 7px rgba(43,135,251,.10),0 16px 38px rgba(7,91,226,.33);animation:avatarFloat 6s ease-in-out infinite}
@keyframes avatarFloat{50%{transform:translateY(-5px)}}
.hero-profile-text{min-width:0}
.hero-profile-text h1{font-size:clamp(31px,4vw,54px);letter-spacing:-.075em;line-height:1.06;margin:0 0 10px;overflow-wrap:anywhere}
.hero-profile-text p{font-size:14px;color:#9fc5f5;overflow-wrap:anywhere;margin:0}
.dash-hero-sub{max-width:600px;color:#adc1db;font-size:13px;line-height:1.9;margin:26px 0 22px}
.dash-hero-actions{display:flex;align-items:center;gap:11px;flex-wrap:wrap}
.dash-hero-actions .premium-primary{padding:12px 17px;text-decoration:none;color:white;font-weight:800;font-size:13px}
.dash-hero-actions .dash-logout{background:rgba(14,32,58,.65);border:1px solid rgba(100,154,231,.4);box-shadow:none;color:#d2e5fb}
.hero-orbits{position:absolute;right:-50px;top:-180px;width:650px;height:650px;pointer-events:none;opacity:.35}
.hero-orbits i{position:absolute;inset:7%;border:1px solid rgba(60,149,255,.45);border-radius:50%;transform:rotateX(67deg) rotateZ(23deg)}
.hero-orbits i:nth-child(2){inset:21%;border-color:rgba(99,148,255,.32);transform:rotateX(72deg) rotateZ(63deg)}
.hero-orbits i:nth-child(3){inset:34%;border-color:rgba(95,205,255,.32)}
.hero-brand-art{position:absolute;right:8%;top:13%;height:260px;width:270px;display:grid;place-items:center;opacity:.84;pointer-events:none}
.hero-art-disc{height:160px;width:160px;border-radius:50%;border:1px solid rgba(96,163,255,.31);background:radial-gradient(circle,rgba(28,107,216,.25),rgba(3,16,38,.8));display:grid;place-items:center;box-shadow:0 0 80px rgba(22,95,228,.20);animation:discFloat 8s ease-in-out infinite}
.hero-art-disc img{width:114px;height:114px;border-radius:50%;filter:drop-shadow(0 15px 26px rgba(0,0,0,.37))}
.hero-art-ring{position:absolute;inset:0;border:1px solid rgba(63,149,247,.16);border-radius:50%;transform:rotateX(68deg);animation:ringSpin 24s linear infinite}
@keyframes discFloat{50%{transform:translateY(-10px) rotate(4deg)}}
@keyframes ringSpin{to{transform:rotateX(68deg) rotate(360deg)}}
.customer-overview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:22px 0 28px}
.metric-card{position:relative;overflow:hidden;background:linear-gradient(145deg,rgba(18,38,69,.91),rgba(8,20,37,.94));border:1px solid rgba(96,146,218,.25);border-radius:22px;padding:22px 23px;box-shadow:inset 0 1px rgba(255,255,255,.04),0 15px 35px rgba(0,0,0,.14);transition:transform .3s ease,border-color .3s ease,box-shadow .3s ease}
.metric-card:hover{transform:translateY(-4px);border-color:rgba(132,181,255,.51);box-shadow:0 18px 40px rgba(0,0,0,.26),0 0 30px rgba(24,108,255,.08)}
.metric-top{display:flex;align-items:center;justify-content:space-between;gap:10px;color:#99b6db;letter-spacing:1.4px;font-size:10px;font-weight:850}
.metric-icon{height:40px;width:40px;border-radius:13px}
.metric-card strong{display:block;font-size:clamp(37px,4vw,55px);font-weight:850;line-height:1.08;letter-spacing:-.07em;margin:20px 0 8px;color:#f5faff}
.metric-card small{font-size:11px;color:#7f9fc5}
.dashboard-layout{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(300px,.85fr);gap:22px;align-items:start}
.dashboard-main-stack,.account-aside{min-width:0}
.account-aside{display:grid;gap:20px}
.customer-panel{padding:clamp(22px,3vw,31px)}
.section-head{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.customer-panel h2{font-size:clamp(19px,2.3vw,29px);letter-spacing:-.05em;margin:10px 0 10px;color:#eef6ff}
.order-filters{display:flex;align-items:center;gap:5px;padding:5px;background:rgba(5,16,32,.72);border:1px solid rgba(69,110,166,.24);border-radius:13px}
.order-filters button{border:0;background:transparent;color:#98add0;font-size:11px;font-weight:800;padding:9px 12px;border-radius:9px;transition:background .2s ease,color .2s ease}
.order-filters button.active{background:linear-gradient(120deg,#1558bb,#187bf3);box-shadow:0 6px 14px rgba(10,87,221,.2);color:#fff}
.order-privacy-note{margin:0 0 20px}
.order-list{display:grid;gap:13px}
.customer-order{border:1px solid rgba(76,121,184,.25);border-radius:16px;padding:18px 18px 14px;background:linear-gradient(110deg,rgba(12,28,51,.7),rgba(7,19,37,.73));transition:border-color .2s,transform .2s}
.customer-order:hover{border-color:rgba(96,170,255,.48);transform:translateY(-1px)}
.customer-order-header{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.customer-order-ref{font-size:13px;font-weight:800;color:#e9f5ff;overflow-wrap:anywhere}
.customer-order-meta{color:#83a0c6;font-size:11px;margin:8px 0 12px;line-height:1.6}
.customer-order-line{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:13px 0;border-top:1px solid rgba(83,125,182,.20);font-size:12px;color:#c0d1e8}
.customer-order-line>span{min-width:0;overflow-wrap:anywhere}
.customer-order-line .button{font-size:11px;min-height:37px;padding:7px 12px;white-space:nowrap}
.customer-order-line small{font-size:10px;color:#8ea6c3;text-align:right}
.orders-empty{min-height:260px;text-align:center;border:1px dashed rgba(72,122,181,.35);border-radius:19px;padding:34px 22px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:13px;background:radial-gradient(ellipse at center,rgba(32,101,221,.09),transparent 70%)}
.orders-empty-icon{width:66px;height:66px;border-radius:19px;background:rgba(24,75,139,.3);border:1px solid rgba(85,144,216,.36);display:grid;place-items:center;color:#87c9ff}
.orders-empty-icon svg{width:28px;height:28px}
.orders-empty h3{font-size:20px;margin:0;color:#eaf5ff}
.orders-empty p{font-size:12px;color:#94aac8;max-width:330px;line-height:1.75;margin:0}
.orders-empty .button{font-size:11px;padding:8px 16px;margin-top:2px;text-decoration:none;color:white}
.account-mini-user{display:flex;align-items:center;gap:12px;padding:15px 0 19px;border-bottom:1px solid rgba(89,138,204,.18)}
.mini-avatar{width:47px;height:47px;border-radius:14px;background:linear-gradient(135deg,#217df4,#153b96);display:grid;place-items:center;font-size:17px;font-weight:850;box-shadow:0 9px 27px rgba(13,80,211,.25)}
.account-mini-user div:last-child{min-width:0}
.account-mini-user b{font-size:14px;display:block;overflow-wrap:anywhere}
.account-mini-user small{font-size:11px;display:block;margin-top:5px;overflow-wrap:anywhere}
.account-identity{display:flex;justify-content:space-between;gap:12px;border-bottom:1px solid rgba(89,138,204,.12);padding:16px 0}
.account-identity span{font-size:10px;letter-spacing:.9px;font-weight:800;color:#819ec3}
.account-identity b{font-size:11px;color:#d6e5f9;text-align:right}
.panel-note{font-size:11px;line-height:1.8;color:#7695ba;margin-top:20px;margin-bottom:0}
.google-panel .google-auth-button{font-size:12px;margin-top:16px;max-width:none!important}
.security-panel .auth-form{margin-top:18px}
.password-action{background:#153358!important;border:1px solid rgba(98,154,238,.45)!important;font-weight:800;color:#eaf5ff}
.customer-footer{margin:50px 0 24px;padding-top:24px;border-top:1px solid rgba(72,113,165,.16);display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;font-size:10px;letter-spacing:.8px;color:#6683aa}
/* Incremental entrance: no layout shifts and visible content without JavaScript. */
.entrance{animation:enterSoft .8s cubic-bezier(.16,.84,.22,1) backwards}
.customer-auth-grid .entrance:nth-child(2),.customer-overview .entrance:nth-child(2){animation-delay:.09s}
.customer-overview .entrance:nth-child(3),.account-aside .entrance:nth-child(2){animation-delay:.17s}
@keyframes enterSoft{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:1080px){.hero-brand-art{opacity:.26;right:0}.dashboard-layout{grid-template-columns:minmax(0,1.2fr) minmax(275px,.8fr)}}
@media(max-width:800px){.customer-shell{width:min(100% - 36px,680px)}.customer-nav{min-height:88px;margin-bottom:25px}.customer-nav-links{gap:13px}.nav-status{display:none}.customer-auth-grid{grid-template-columns:1fr;gap:16px}.auth-intro{margin:30px auto 32px}.customer-dash-hero{padding:34px 30px}.hero-brand-art{display:none}.customer-overview{gap:11px}.metric-card{padding:18px 16px}.dashboard-layout{grid-template-columns:1fr}.account-aside{grid-template-columns:repeat(2,minmax(0,1fr))}.security-panel{grid-column:1/-1}.auth-intro h1{font-size:clamp(42px,9vw,65px)}}
@media(max-width:550px){.customer-shell{width:calc(100% - 28px)}.customer-nav{align-items:flex-start;gap:8px;flex-wrap:wrap;padding:18px 0;min-height:auto}.customer-brand{font-size:18px}.customer-brand img{width:39px;height:39px}.customer-brand small{font-size:6px;letter-spacing:1px}.customer-nav-links{margin-left:auto;gap:15px;margin-top:8px}.nav-soft-link{font-size:11px}.auth-intro{margin:35px auto 30px}.auth-intro h1{font-size:clamp(40px,11vw,58px)}.auth-intro>p{font-size:12px}.auth-trust{gap:12px;font-size:10px}.customer-auth-card{padding:23px 21px;border-radius:21px}.customer-auth-card h2{font-size:30px}.auth-footnote{font-size:10px}.customer-dash-hero{border-radius:21px;padding:27px 21px;min-height:0}.hero-profile-line{gap:13px;margin-top:25px}.profile-avatar{height:63px;width:63px;border-radius:19px;font-size:19px}.hero-profile-text h1{font-size:clamp(26px,7.5vw,37px)}.hero-profile-text p{font-size:11px}.dash-hero-sub{font-size:12px;margin:18px 0}.dash-hero-actions .button{width:auto;min-height:43px;padding:9px 13px;font-size:11px}.dash-hero-actions .dash-logout{flex:none}.customer-overview{grid-template-columns:1fr 1fr;margin:14px 0 20px}.customer-overview .metric-card:last-child{grid-column:1/-1}.metric-card{padding:16px}.metric-top{font-size:8px;letter-spacing:1px}.metric-icon{width:33px;height:33px}.metric-icon svg{width:17px;height:17px}.metric-card strong{font-size:34px;margin:17px 0 7px}.metric-card small{font-size:10px}.customer-panel{padding:19px;border-radius:20px}.section-head h2{font-size:24px}.order-filters{width:100%;justify-content:space-around}.order-filters button{flex:1;padding:9px 7px}.account-aside{grid-template-columns:1fr}.security-panel{grid-column:auto}.customer-order{padding:15px}.customer-order-line{align-items:flex-start;flex-wrap:wrap}.customer-order-line .button{margin-left:auto}.customer-footer{margin-top:32px;line-height:1.7}}
@media(prefers-reduced-motion:reduce){.customer-space *, .customer-space *::before,.customer-space *::after{animation-duration:.01ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important;transition:none!important}.entrance{opacity:1;transform:none}}
