/* ZagrosVPS Client Commerce — visual alignment and accessible resource configurator.
   Presentation only. WHMCS invoice and provisioning checks remain authoritative. */
#shop-dialog{
  --zg-ui-bg:#071726;--zg-ui-panel:#0c2335;--zg-ui-panel2:#102c42;
  --zg-ui-border:#2a5068;--zg-ui-text:#edf8ff;--zg-ui-muted:#abc3d4;
  --zg-ui-blue:#42bfea;--zg-ui-green:#57dfbf;
  color:var(--zg-ui-text);border:1px solid #345b75;
  background:#071522;border-radius:20px;
  box-shadow:0 26px 100px rgba(0,7,18,.72),0 0 0 1px rgba(74,168,222,.12);
}
#shop-dialog::backdrop{background:rgba(0,7,16,.78);backdrop-filter:blur(7px)}
#shop-dialog .shop-content{background:radial-gradient(circle at top right,rgba(31,105,164,.10),transparent 44%),#071522}
#shop-dialog .shop-close{border:1px solid #32536b;background:#0d2437;color:#b8d3e4;transition:background .16s,border-color .16s,color .16s}
#shop-dialog .shop-close:hover{border-color:#76c9ee;background:#173a52;color:#fff}
#shop-dialog .shop-footer-note{border-color:#24445a;color:#8eb3c8}
#shop-dialog .shop-footer-note svg{color:#54d9c6}
#shop-dialog .shop-primary,
#shop-dialog .shop-checkout-button,
#shop-dialog .zagros-auth-submit{background:linear-gradient(112deg,#0b9caa,#108bd4);border:1px solid rgba(105,225,244,.23);color:#fff;font-weight:770;box-shadow:0 8px 25px rgba(0,139,190,.16);transition:filter .15s,transform .15s,box-shadow .15s}
#shop-dialog .shop-primary:not(:disabled):hover,
#shop-dialog .zagros-auth-submit:not(:disabled):hover{filter:brightness(1.14);transform:translateY(-1px);box-shadow:0 12px 28px rgba(0,163,213,.22)}
#shop-dialog .shop-outline-action,
#shop-dialog .shop-text-button{border-color:#34566e;color:#b9d5e5}
#shop-dialog :is(button,a,input,textarea):focus-visible{outline:2px solid #65d4f8;outline-offset:3px}

/* Plan resource controls. The printed "Base" is immutable, not an input. */
#shop-dialog[data-shop-view="configure"] .zg-resource-builder{
 display:block;grid-template-columns:none;padding:10px 11px 9px;margin:7px 0 5px;
 border:1px solid #33617a;border-radius:12px;
 background:linear-gradient(145deg,#0c2a3c,#0a1f30 72%);
}
#shop-dialog[data-shop-view="configure"] .zg-resource-heading{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:5px 12px;margin:0 0 9px}
#shop-dialog[data-shop-view="configure"] .zg-resource-heading>h3{grid-column:auto;margin:0;color:#f0f9ff;font-size:12px;letter-spacing:-.01em}
#shop-dialog[data-shop-view="configure"] .zg-resource-price-hint{color:#72ddc8;font-size:11px;font-weight:730}
#shop-dialog[data-shop-view="configure"] .zg-resource-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
#shop-dialog[data-shop-view="configure"] .zg-resource-card{
 min-width:0;display:flex;flex-direction:column;gap:7px;padding:9px 9px 7px;
 border:1px solid #294d65;border-radius:11px;
 background:#071b2b;transition:border-color .18s,background .18s;
}
#shop-dialog[data-shop-view="configure"] .zg-resource-card:focus-within{border-color:#66c5e9;background:#0d2a40}
#shop-dialog[data-shop-view="configure"] .zg-resource-card-header{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:2px 6px}
#shop-dialog[data-shop-view="configure"] .zg-resource-name{font-size:12px;font-weight:760;color:#f2f8fe;letter-spacing:-.01em}
#shop-dialog[data-shop-view="configure"] .zg-resource-base{font-size:10.5px;font-weight:650;color:#a9c6d8}
#shop-dialog[data-shop-view="configure"] .zg-resource-stepper{
 display:grid;grid-template-columns:44px minmax(0,1fr) 44px;gap:0;
 align-items:center;width:100%;min-height:44px;overflow:hidden;
 border:1px solid #34566b;border-radius:11px;background:#0a2436;
}
#shop-dialog[data-shop-view="configure"] .zg-resource-stepper button{
 width:44px;min-width:44px;min-height:44px;
 display:flex;align-items:center;justify-content:center;margin:0;border:0;border-radius:0;
 background:transparent;color:#a6d6e9;font-size:16px;line-height:1;cursor:pointer;
 transition:background .15s,color .15s;
}
#shop-dialog[data-shop-view="configure"] .zg-resource-stepper button:last-child{background:rgba(22,147,181,.13);color:#71dff2;border-inline-start:1px solid #34566b}
#shop-dialog[data-shop-view="configure"] .zg-resource-stepper button:not(:disabled):hover{background:rgba(51,176,212,.25);color:#fff}
#shop-dialog[data-shop-view="configure"] .zg-resource-stepper button:disabled{opacity:.35;cursor:not-allowed}
#shop-dialog[data-shop-view="configure"] .zg-resource-stepper .zg-resource-total{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0;padding:1px 2px;
 font-size:15px;font-weight:750;letter-spacing:-.015em;color:#f1faff;font-variant-numeric:tabular-nums}
#shop-dialog[data-shop-view="configure"] .zg-resource-foot{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:3px;font-size:10.5px;color:#b1c9d8}
#shop-dialog[data-shop-view="configure"] .zg-resource-foot strong{font-size:11px;color:#73e2cd;white-space:nowrap}
#shop-dialog[data-shop-view="configure"] .zg-resource-note{display:block!important;margin:7px 1px 0!important;color:#8eafc2;font-size:11px!important;line-height:1.5!important}

/* Shared commercial UI for cart, account, orders and sign-in. */
#shop-dialog[data-shop-view="cart"],
#shop-dialog[data-shop-view="account"],
#shop-dialog[data-shop-view="signin"],
#shop-dialog[data-shop-view="success"]{
 width:min(670px,calc(100vw - 24px));max-width:670px;
 max-height:calc(100dvh - 24px);border-radius:21px;
}
#shop-dialog:is([data-shop-view="cart"],[data-shop-view="account"],[data-shop-view="signin"],[data-shop-view="success"]) .shop-content{padding:14px 26px 0;min-height:0;max-height:calc(100dvh - 26px)}
#shop-dialog:is([data-shop-view="cart"],[data-shop-view="account"],[data-shop-view="signin"],[data-shop-view="success"]) .shop-topbar{min-height:43px;padding:0 0 8px}
#shop-dialog:is([data-shop-view="cart"],[data-shop-view="account"],[data-shop-view="signin"],[data-shop-view="success"]) .shop-dialog-brand .brand-mark{width:27px}
#shop-dialog:is([data-shop-view="cart"],[data-shop-view="account"],[data-shop-view="signin"],[data-shop-view="success"]) .shop-dialog-brand .brand-text{font-size:17px}
#shop-dialog:is([data-shop-view="cart"],[data-shop-view="account"],[data-shop-view="signin"],[data-shop-view="success"]) .shop-close{width:35px;height:35px;min-width:35px;border-radius:11px;font-size:21px}
#shop-dialog:is([data-shop-view="cart"],[data-shop-view="account"],[data-shop-view="signin"],[data-shop-view="success"]) .shop-scroll{padding:9px 0 12px;overflow:auto;scrollbar-width:thin;min-height:0}
#shop-dialog:is([data-shop-view="cart"],[data-shop-view="account"],[data-shop-view="signin"],[data-shop-view="success"]) .shop-heading{margin:0 0 18px}
#shop-dialog:is([data-shop-view="cart"],[data-shop-view="account"],[data-shop-view="signin"],[data-shop-view="success"]) .shop-heading h2{font-size:clamp(23px,3vw,29px);line-height:1.12;letter-spacing:-.04em;margin:0 0 6px;font-weight:830;color:#f4faff}
#shop-dialog:is([data-shop-view="cart"],[data-shop-view="account"],[data-shop-view="signin"],[data-shop-view="success"]) .shop-heading>p{font-size:13px;line-height:1.6;color:#b1cee0;margin:0}
#shop-dialog:is([data-shop-view="cart"],[data-shop-view="account"],[data-shop-view="signin"],[data-shop-view="success"]) .shop-footer-note{padding:10px 0 12px;font-size:10px}

/* Empty cart is a deliberate zero-state, not a small error panel. */
#shop-dialog[data-shop-view="cart"] .shop-empty-cart{
 position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;
 width:100%;min-height:245px;margin:0 auto 6px;padding:22px 22px;
 text-align:center;border:1px solid #2b4e65;border-radius:17px;
 background:radial-gradient(ellipse at 50% 5%,rgba(31,162,210,.13),transparent 59%),linear-gradient(155deg,#0d2437,#081a2a);
}
#shop-dialog[data-shop-view="cart"] .shop-empty-cart[hidden]{display:none!important}
#shop-dialog[data-shop-view="cart"] .shop-empty-cart .shop-empty-symbol{
 width:50px;height:50px;margin:0 0 11px;display:flex;align-items:center;justify-content:center;
 border:1px solid #397b99;border-radius:17px;background:#10364d;color:#78daf4;
 box-shadow:0 8px 30px rgba(15,134,192,.14);
}
#shop-dialog[data-shop-view="cart"] .shop-empty-cart .shop-empty-symbol svg{width:26px;height:26px}
#shop-dialog[data-shop-view="cart"] .shop-empty-cart h3{font-size:18px;letter-spacing:-.03em;margin:0 0 7px;color:#f1f9ff}
#shop-dialog[data-shop-view="cart"] .shop-empty-cart p{font-size:12.5px;line-height:1.65;max-width:43ch;margin:0 0 15px;color:#afc8d9}
#shop-dialog[data-shop-view="cart"] .shop-empty-actions{display:flex;flex-direction:column;gap:9px;width:min(320px,100%)}
#shop-dialog[data-shop-view="cart"] .shop-empty-actions .shop-primary,
#shop-dialog[data-shop-view="cart"] .shop-empty-actions .shop-outline-action{display:flex;justify-content:center;align-items:center;width:100%;min-height:45px;padding:10px 16px;border-radius:11px;font-size:12.5px;font-weight:750;text-align:center}
#shop-dialog[data-shop-view="cart"] .shop-empty-actions .shop-outline-action{background:#0a1c2c;border:1px solid #30546b}
#shop-dialog[data-shop-view="cart"] .shop-cart-list{gap:10px;margin-bottom:13px}
#shop-dialog[data-shop-view="cart"] .shop-cart-list::before{font-size:11px;letter-spacing:.07em;color:#7ddce7;margin-bottom:4px}
#shop-dialog[data-shop-view="cart"] .shop-cart-item{
 padding:15px;border:1px solid #31546b;border-radius:13px;gap:10px;
 background:linear-gradient(115deg,#0d283b,#0b1d2d);
}
#shop-dialog[data-shop-view="cart"] .shop-cart-item h3{font-size:14px;line-height:1.35;margin:0 0 5px}
#shop-dialog[data-shop-view="cart"] .shop-cart-item p{font-size:12px;line-height:1.6;color:#b8d2df}
#shop-dialog[data-shop-view="cart"] .shop-item-price{font-size:17px;color:#f4fbff;font-weight:830}
#shop-dialog[data-shop-view="cart"] .shop-item-price small{font-size:10px;color:#98b8ce}
#shop-dialog[data-shop-view="cart"] .shop-item-controls{gap:10px}
#shop-dialog[data-shop-view="cart"] .shop-total-box{padding:16px;border-radius:13px;background:#0d2a40;border-color:#356782;margin:13px 0}
#shop-dialog[data-shop-view="cart"] .shop-total-line>span{font-size:12px}
#shop-dialog[data-shop-view="cart"] .shop-total-line strong{font-size:21px;font-variant-numeric:tabular-nums}
#shop-dialog[data-shop-view="cart"] .shop-checkout-account{font-size:12px;line-height:1.6;margin:12px 0}
#shop-dialog[data-shop-view="cart"] .shop-terms{font-size:12px;line-height:1.6;margin-bottom:12px}
#shop-dialog[data-shop-view="cart"] #shop-view>.shop-primary{min-height:45px;border-radius:11px;font-size:13px}
#shop-dialog[data-shop-view="cart"] .shop-saved-card{padding:15px;border-radius:13px;background:#0e2a3d;border-color:#2f556b}
#shop-dialog[data-shop-view="cart"] .shop-saved-name{font-size:14px}
#shop-dialog[data-shop-view="cart"] .shop-saved-software{font-size:11px}

/* Account page, history and profile actions. */
#shop-dialog[data-shop-view="account"] .shop-profile{
 margin-bottom:14px;padding:16px;border:1px solid #2e5269;border-radius:15px;
 background:linear-gradient(118deg,#11354c,#0b2133);
}
#shop-dialog[data-shop-view="account"] .shop-profile-name-row strong{font-size:17px}
#shop-dialog[data-shop-view="account"] .shop-profile-details p{font-size:12.5px;color:#bed5e3}
#shop-dialog[data-shop-view="account"] .shop-profile-actions{grid-template-columns:repeat(5,minmax(0,1fr));gap:9px;margin:0 0 17px}
#shop-dialog[data-shop-view="account"] .shop-account-action{
 min-height:68px;padding:12px 6px;flex-direction:column;gap:6px;
 border:1px solid #31516b;border-radius:13px;background:#0d273a;
 font-size:11px;color:#d8ebf9;transition:border-color .15s,background .15s,transform .15s;
}
#shop-dialog[data-shop-view="account"] .shop-account-action svg{width:20px;height:20px;color:#81d9f3}
#shop-dialog[data-shop-view="account"] .shop-account-action:hover{background:#153d53;border-color:#6dc9e4;transform:translateY(-1px)}
#shop-dialog[data-shop-view="account"] .shop-orders-toolbar{padding:13px 0 11px;border-top:1px solid #254258;gap:10px}
#shop-dialog[data-shop-view="account"] .shop-orders-heading{font-size:16px}
#shop-dialog[data-shop-view="account"] .shop-order-filters{padding:4px;background:#0b2536;border-color:#34556d;border-radius:11px}
#shop-dialog[data-shop-view="account"] .shop-order-filters button{min-height:33px;font-size:11px;border-radius:8px;padding:6px 11px}
#shop-dialog[data-shop-view="account"] .shop-order-card{padding:15px;border-radius:13px;background:#0d2638;border-color:#30556d}
#shop-dialog[data-shop-view="account"] .shop-order-card .shop-status{font-size:11px;padding:5px 9px}
#shop-dialog[data-shop-view="account"] .shop-order-service h4{font-size:13px}
#shop-dialog[data-shop-view="account"] .shop-order-software{font-size:12px;line-height:1.6}
#shop-dialog[data-shop-view="account"] .shop-orders-empty{padding:24px;border-radius:13px;border:1px dashed #365971;background:#0c2334}
#shop-dialog[data-shop-view="account"] .shop-orders-empty>svg{width:29px;height:29px;color:#80d4f3}
#shop-dialog[data-shop-view="account"] .shop-orders-empty h4{font-size:16px}
#shop-dialog[data-shop-view="account"] .shop-orders-empty p{font-size:12px;line-height:1.7}

/* Sign-in: align brand, hero, forms, provider buttons, hints and focus states. */
#shop-dialog[data-shop-view="signin"]{width:min(510px,calc(100vw - 24px));max-width:510px}
#shop-dialog[data-shop-view="signin"] .shop-content{padding:15px 26px 0}
#shop-dialog[data-shop-view="signin"] .shop-topbar{padding:0 0 10px}
#shop-dialog[data-shop-view="signin"] .shop-heading{
 border:1px solid #2f526a;border-radius:14px;
 padding:20px 19px;background:linear-gradient(145deg,#102f46,#0b2234);margin:0 0 14px;
}
#shop-dialog[data-shop-view="signin"] #shop-title{font-size:21px;font-weight:820;margin-bottom:8px}
#shop-dialog[data-shop-view="signin"] #shop-intro{color:#b4ccdb;font-size:12.5px;line-height:1.7}
#shop-dialog[data-shop-view="signin"] .zagros-auth-utility{gap:8px;margin-top:16px}
#shop-dialog[data-shop-view="signin"] .zagros-auth-chip{min-height:39px;border-radius:10px;font-size:11px;background:#0d2b40;border-color:#34556a}
#shop-dialog[data-shop-view="signin"] .zagros-auth-form,
#shop-dialog[data-shop-view="signin"] .shop-google-inline,
#shop-dialog[data-shop-view="signin"] .zagros-auth-google-wrap{
 padding:19px;border-radius:14px;border:1px solid #2e4e65!important;background:#091d2e!important;
}
#shop-dialog[data-shop-view="signin"] .zagros-auth-label{font-size:12px;color:#e6f4fc}
#shop-dialog[data-shop-view="signin"] .zagros-auth-input{
 height:49px;min-height:49px;margin-bottom:15px;background:#152d43;color:#fff;
 border:1px solid #385871;border-radius:10px;font-size:13px;
}
#shop-dialog[data-shop-view="signin"] .zagros-auth-input:focus{background:#12334c;border-color:#67c9f3;box-shadow:0 0 0 3px rgba(84,191,239,.18)}
#shop-dialog[data-shop-view="signin"] .zagros-auth-submit{min-height:47px;border-radius:10px}
#shop-dialog[data-shop-view="signin"] .zagros-auth-link{color:#7bd2f5}
#shop-dialog[data-shop-view="signin"] .shop-google-button{min-height:45px}
#shop-dialog[data-shop-view="signin"] .shop-footer-note{padding:12px 0 13px}

#shop-dialog[data-shop-view="success"] .shop-order-reference{background:#0c2b41;border-color:#326984}
#shop-dialog[data-shop-view="success"] .shop-order-payment-note{font-size:12px;line-height:1.6}
html[data-theme="light"] #shop-dialog{--zg-ui-bg:#f5f9fd;--zg-ui-text:#183a52;--zg-ui-muted:#536e83}
html[data-theme="light"] #shop-dialog:is([data-shop-view="signin"],[data-shop-view="cart"],[data-shop-view="account"],[data-shop-view="success"]) .shop-content{background:#f8fcff}
html[data-theme="light"] #shop-dialog:is([data-shop-view="signin"],[data-shop-view="cart"],[data-shop-view="account"],[data-shop-view="success"]) .shop-heading h2{color:#12334e}
html[data-theme="light"] #shop-dialog[data-shop-view="cart"] .shop-empty-cart{background:#eaf6fc;border-color:#bad6e5}
html[data-theme="light"] #shop-dialog[data-shop-view="cart"] .shop-empty-cart h3{color:#11334e}
html[data-theme="light"] #shop-dialog[data-shop-view="cart"] .shop-empty-cart p{color:#45677c}
@media(max-width:620px){
 #shop-dialog[data-shop-view="configure"] .zg-resource-grid{gap:7px}
 #shop-dialog[data-shop-view="configure"] .zg-resource-card{padding:9px 7px;gap:6px}
 #shop-dialog[data-shop-view="configure"] .zg-resource-card-header{display:grid;gap:2px}
 #shop-dialog[data-shop-view="configure"] .zg-resource-stepper{grid-template-columns:38px minmax(0,1fr) 38px;min-height:44px}
 #shop-dialog[data-shop-view="configure"] .zg-resource-stepper button{width:38px;min-width:38px;min-height:44px}
 #shop-dialog[data-shop-view="configure"] .zg-resource-stepper .zg-resource-total{font-size:14px}
 #shop-dialog[data-shop-view="configure"] .zg-resource-foot{font-size:10px}
 #shop-dialog:is([data-shop-view="cart"],[data-shop-view="account"],[data-shop-view="signin"],[data-shop-view="success"]) .shop-content{padding:12px 16px 0}
 #shop-dialog[data-shop-view="account"] .shop-profile-actions{grid-template-columns:repeat(3,minmax(0,1fr))}
 #shop-dialog[data-shop-view="account"] .shop-account-action{min-height:61px}
 #shop-dialog[data-shop-view="cart"] .shop-empty-cart{min-height:230px;padding:18px 13px}
 #shop-dialog[data-shop-view="cart"] .shop-cart-item{padding:11px;gap:7px}
}
@media(max-width:360px){
 #shop-dialog[data-shop-view="configure"] .zg-resource-heading{display:block}
 #shop-dialog[data-shop-view="configure"] .zg-resource-price-hint{display:block;margin-top:3px}
 #shop-dialog[data-shop-view="configure"] .zg-resource-grid{grid-template-columns:1fr;gap:7px}
 #shop-dialog[data-shop-view="configure"] .zg-resource-card{display:grid;grid-template-columns:minmax(0,1fr) minmax(134px,43%);align-items:center}
 #shop-dialog[data-shop-view="configure"] .zg-resource-foot{grid-column:1/-1}
}
@media(prefers-reduced-motion:reduce){#shop-dialog .shop-primary,#shop-dialog .shop-account-action{transition:none!important;transform:none!important}}

/* Commerce refinement: consistent ergonomics, legibility, and content hierarchy. */
#shop-dialog{color-scheme:dark;isolation:isolate}
#shop-dialog .shop-content{min-height:0;overflow:hidden}
#shop-dialog .shop-scroll{min-height:0;overscroll-behavior:contain;scrollbar-gutter:stable;padding-block-end:24px;scroll-padding-block-end:88px}
#shop-dialog .shop-message:not([hidden]){font-size:12px;line-height:1.6}
#shop-dialog .shop-heading h2{overflow-wrap:anywhere}
#shop-dialog .shop-primary:disabled,
#shop-dialog .shop-checkout-button:disabled{opacity:.58;cursor:not-allowed;filter:none;transform:none}
#shop-dialog .zg-resource-stepper button:first-child{border-inline-end:1px solid #34566b}
#shop-dialog .zg-resource-total b{font:inherit;line-height:1.13}
#shop-dialog .zg-resource-total small{font-size:10px;font-weight:600;color:#a8cadd;line-height:1.15;white-space:nowrap}
#shop-dialog .zg-resource-foot{min-height:20px}
#shop-dialog .zg-resource-card{box-shadow:inset 0 1px 0 rgba(187,230,255,.03)}
#shop-dialog .zg-resource-card .zg-resource-stepper button:focus-visible{outline:2px solid #83e0ff;outline-offset:-3px;z-index:1}
#shop-dialog .zg-os-family-tab{min-height:42px;border:1px solid #34536a;border-radius:10px;padding:8px 14px;font-weight:730;font-size:12px;transition:background .15s,border-color .15s}
#shop-dialog .zg-os-family-tab[data-family="Linux"]{--family-ink:#9df2d9;--family-bg:#103a34}
#shop-dialog .zg-os-family-tab[data-family="Windows"]{--family-ink:#bde2ff;--family-bg:#143755}
#shop-dialog .zg-os-family-tab[data-family="Others"]{--family-ink:#e1c6ff;--family-bg:#332448}
#shop-dialog .zg-os-family-tab{background:var(--family-bg);color:var(--family-ink);border-color:color-mix(in srgb,var(--family-ink) 45%,transparent)}
#shop-dialog .zg-os-family-tab[aria-pressed="true"]{box-shadow:inset 0 -3px 0 var(--family-ink);border-color:var(--family-ink)}
#shop-dialog .zg-os-family-tab:disabled{opacity:.53;cursor:not-allowed}
#shop-dialog .zg-os-family-note{margin:8px 0 0;font-size:12px;line-height:1.5;color:#bad5e5}
#shop-dialog .shop-cart-item,#shop-dialog .shop-order-card{overflow-wrap:anywhere}
#shop-dialog .shop-cart-item button,#shop-dialog .shop-order-card button{min-height:38px}
#shop-dialog .shop-cart-item .shop-item-price{font-variant-numeric:tabular-nums}
#shop-dialog .shop-orders-empty,#shop-dialog .shop-empty-cart{max-width:100%}
#shop-dialog .shop-cart-list,#shop-dialog .shop-orders-list{min-width:0}
#shop-dialog .shop-orders-toolbar{flex-wrap:wrap}
#shop-dialog[data-shop-view="account"] .shop-profile-actions{grid-template-columns:repeat(auto-fit,minmax(103px,1fr))}
#shop-dialog[data-shop-view="account"] .shop-account-action{min-height:70px;min-width:0;overflow-wrap:anywhere}
#shop-dialog[data-shop-view="signin"] .zagros-auth-utility{flex-wrap:wrap}
#shop-dialog[data-shop-view="signin"] .zagros-auth-input{width:100%;min-width:0}
#shop-dialog[data-shop-view="signin"] .zagros-auth-link{color:#b9e8ff;text-decoration-thickness:1px;text-underline-offset:3px}
#shop-dialog .shop-footer-note{font-size:11px}
/* Light palette covers nested components; avoid light cards with pale dark-mode text. */
html[data-theme="light"] #shop-dialog{color-scheme:light;background:#f4f9fc;color:#18374b;border-color:#a5cadf;box-shadow:0 18px 70px rgba(3,35,58,.28)}
html[data-theme="light"] #shop-dialog .shop-content{background:#f6fbff;color:#18374b}
html[data-theme="light"] #shop-dialog :is(.shop-heading>p,.shop-cart-item p,.shop-order-software,.shop-profile-details p,.shop-footer-note,.shop-consent,.shop-terms,.shop-checkout-account,.shop-order-payment-note,.shop-saved-software,.shop-empty-cart p,.shop-benefit p){color:#405b6e}
html[data-theme="light"] #shop-dialog :is(.shop-cart-item,.shop-saved-card,.shop-order-card,.shop-orders-empty,.shop-profile,.shop-benefit,.shop-empty-cart,.shop-signin-hint,.shop-total-box,.shop-order-reference,.zagros-auth-form,.shop-google-inline,.zagros-auth-google-wrap){color:#18374b;background:#fff;border-color:#bed5e3;box-shadow:none}
html[data-theme="light"] #shop-dialog :is(.shop-cart-item h3,.shop-order-service h4,.shop-saved-name,.shop-empty-cart h3,.shop-order-card strong,.shop-profile strong,.shop-item-price,.shop-total-line strong,.shop-orders-heading){color:#12334d}
html[data-theme="light"] #shop-dialog :is(.shop-outline-action,.shop-text-button,.shop-account-action,.shop-order-filters,.zagros-auth-chip){color:#184b68;background:#eaf3fa;border-color:#b5ccda}
html[data-theme="light"] #shop-dialog .shop-account-action:hover{background:#d9f2fc;border-color:#5babc9}
html[data-theme="light"] #shop-dialog[data-shop-view="signin"] .shop-heading{background:#e8f4fb;border-color:#b7d2e1}
html[data-theme="light"] #shop-dialog[data-shop-view="signin"] #shop-intro{color:#3d5c71}
html[data-theme="light"] #shop-dialog[data-shop-view="signin"] :is(.zagros-auth-form,.shop-google-inline,.zagros-auth-google-wrap){background:#fff!important;border-color:#b9d2df!important}
html[data-theme="light"] #shop-dialog[data-shop-view="signin"] .zagros-auth-label{color:#24475d}
html[data-theme="light"] #shop-dialog[data-shop-view="signin"] .zagros-auth-input{background:#f5fafe;border-color:#abc6d6;color:#132e42}
html[data-theme="light"] #shop-dialog[data-shop-view="signin"] .zagros-auth-link{color:#075879}
html[data-theme="light"] #shop-dialog .shop-close{color:#315f77;background:#e8f3fa;border-color:#aac5d5}
html[data-theme="light"] #shop-dialog .shop-footer-note{border-color:#c7dce8}
html[data-theme="light"] #shop-dialog[data-shop-view="configure"] :is(.zg-resource-builder,.zg-resource-card){background:#eff8fc;border-color:#bad7e4}
html[data-theme="light"] #shop-dialog[data-shop-view="configure"] :is(.zg-resource-name,.zg-resource-heading h3,.zg-resource-total,.zg-resource-total b){color:#163950}
html[data-theme="light"] #shop-dialog[data-shop-view="configure"] :is(.zg-resource-base,.zg-resource-note,.zg-resource-foot,.zg-resource-total small){color:#415f72}
html[data-theme="light"] #shop-dialog[data-shop-view="configure"] .zg-resource-stepper{background:#fff;border-color:#a7c8d8}
html[data-theme="light"] #shop-dialog[data-shop-view="configure"] .zg-resource-stepper button{color:#0b6389}
html[data-theme="light"] #shop-dialog[data-shop-view="configure"] .zg-resource-stepper button:last-child{background:#ddf4fc}
html[data-theme="light"] #shop-dialog .zg-os-family-note{color:#3d5970}
@media(max-width:540px){
 #shop-dialog[data-shop-view="configure"] .zg-resource-grid{grid-template-columns:1fr;gap:7px}
 #shop-dialog[data-shop-view="configure"] .zg-resource-card{display:grid;grid-template-columns:minmax(0,1fr) minmax(130px,46%);align-items:center;gap:4px 10px;padding:9px 11px}
 #shop-dialog[data-shop-view="configure"] .zg-resource-card-header{display:flex;flex-direction:column;align-items:flex-start;gap:4px}
 #shop-dialog[data-shop-view="configure"] .zg-resource-stepper{grid-template-columns:40px minmax(0,1fr) 40px;min-height:44px}
 #shop-dialog[data-shop-view="configure"] .zg-resource-stepper button{width:40px;min-width:40px;min-height:44px}
 #shop-dialog[data-shop-view="configure"] .zg-resource-foot{grid-column:1/-1;margin-top:0}
 #shop-dialog .zg-resource-heading{gap:7px}
 #shop-dialog[data-shop-view="account"] .shop-profile-actions{grid-template-columns:repeat(2,minmax(0,1fr))}
 #shop-dialog[data-shop-view="account"] .shop-account-action{min-height:56px;flex-direction:row;gap:7px;text-align:start;padding:10px}
 #shop-dialog[data-shop-view="account"] .shop-account-action svg{display:block;width:17px;height:17px}
 #shop-dialog[data-shop-view="cart"] .shop-empty-actions{width:100%}
 #shop-dialog[data-shop-view="cart"] .shop-empty-cart{min-height:205px}
}
@media(max-width:355px){
 #shop-dialog[data-shop-view="configure"] .zg-resource-card{grid-template-columns:minmax(0,1fr) 130px}
 #shop-dialog[data-shop-view="configure"] .zg-resource-stepper{grid-template-columns:38px minmax(0,1fr) 38px}
 #shop-dialog[data-shop-view="configure"] .zg-resource-stepper button{min-width:38px;width:38px}
 #shop-dialog[data-shop-view="cart"] .shop-empty-cart{padding:15px 10px}
 #shop-dialog[data-shop-view="account"] .shop-profile-actions{gap:6px}
}
@media(prefers-reduced-motion:reduce){#shop-dialog :is(button,a){transition:none!important}}

#shop-dialog .shop-upgrade-checkout-notice{padding:11px 13px;margin:12px 0;border:1px solid #a27637;border-radius:11px;background:#342616;color:#ffddb0;font-size:12px;line-height:1.6}
html[data-theme="light"] #shop-dialog .shop-upgrade-checkout-notice{background:#fff7e9;border-color:#dba657;color:#674517}
html[data-theme="light"] #shop-dialog[data-shop-view="cart"] .shop-empty-actions .shop-outline-action{
 background:#f7fbff;border-color:#88b6cc;color:#19516d;
}
html[data-theme="light"] #shop-dialog[data-shop-view="cart"] .shop-empty-actions .shop-outline-action:hover{
 background:#e6f4fb;border-color:#4d9fc3;color:#113f59;
}
html[data-theme="light"] #shop-dialog[data-shop-view="cart"] .shop-empty-cart .shop-empty-symbol{background:#dcf2fc;border-color:#86bbd4;color:#1d688e;box-shadow:none}

/* Compact sign-in: one narrow column, retaining all authentication controls. */
#shop-dialog[data-shop-view="signin"]{width:min(360px,calc(100vw - 32px));max-width:360px;border-radius:18px}
#shop-dialog[data-shop-view="signin"] .shop-content{height:auto;padding:14px 20px 0;max-height:calc(100dvh - 26px)}
#shop-dialog[data-shop-view="signin"] .shop-topbar{min-height:36px;padding-bottom:8px}
#shop-dialog[data-shop-view="signin"] .shop-heading{display:none}
#shop-dialog[data-shop-view="signin"] .shop-scroll{flex:0 1 auto;padding:4px 0 8px;scrollbar-gutter:auto;scroll-padding-block-end:12px}
#shop-dialog[data-shop-view="signin"] .zagros-auth-form{padding:0;margin:0;border:0!important;background:transparent!important;box-shadow:none;gap:7px}
#shop-dialog[data-shop-view="signin"] .zagros-auth-input{height:44px;min-height:44px;margin-bottom:5px;border-radius:9px;font-size:16px}
#shop-dialog[data-shop-view="signin"] .zagros-auth-password-row{margin-top:3px;gap:8px}
#shop-dialog[data-shop-view="signin"] .zagros-auth-label{font-size:12px}
#shop-dialog[data-shop-view="signin"] .zagros-auth-link{font-size:11px}
#shop-dialog[data-shop-view="signin"] .zagros-auth-submit{min-height:44px;margin-top:3px;border-radius:9px}
#shop-dialog[data-shop-view="signin"] .zagros-auth-signup{margin:7px 0 0;font-size:11px;line-height:1.5;text-align:center}
#shop-dialog[data-shop-view="signin"] .zagros-auth-divider{margin:10px 0;font-size:10px;line-height:1.4}
#shop-dialog[data-shop-view="signin"] :is(.shop-google-inline,.zagros-auth-google-wrap){padding:0;border:0!important;background:transparent!important;box-shadow:none}
#shop-dialog[data-shop-view="signin"] .shop-google-button{min-height:40px;font-size:12px}
#shop-dialog[data-shop-view="signin"] .shop-footer-note{padding:8px 0 10px;font-size:9px;line-height:1.4}
#shop-dialog[data-shop-view="signin"] .shop-footer-note svg{width:12px;height:12px}
@media(max-height:520px){#shop-dialog[data-shop-view="signin"] .shop-content{padding-top:10px}#shop-dialog[data-shop-view="signin"] .shop-topbar{padding-bottom:4px}#shop-dialog[data-shop-view="signin"] .zagros-auth-divider{margin:7px 0}}

/* Order-progress and renewal clarity; surface only verified WHMCS account data. */
#shop-dialog .zg-order-journey{margin:11px 0 13px;padding:12px;border:1px solid #345267;border-radius:12px;background:#0b2031}
#shop-dialog .zg-journey-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin:0 0 9px;padding:0;list-style:none}
#shop-dialog .zg-journey-step{font-size:10px;line-height:1.35;color:#8baabe;display:flex;flex-direction:column;align-items:flex-start;gap:5px;min-width:0}
#shop-dialog .zg-journey-step.is-complete{color:#c9efdf}
#shop-dialog .zg-journey-marker{width:22px;height:22px;display:inline-grid;place-items:center;border:1px solid #426077;border-radius:50%;background:#1b3345;color:#88a6b7;font-weight:700;font-size:16px}
#shop-dialog .zg-journey-step.is-complete .zg-journey-marker{background:#154d3e;border-color:#32977b;color:#d5fae9}
#shop-dialog .zg-order-journey .zg-journey-note{margin:0;line-height:1.6;font-size:11px;color:#b2c9d7}
#shop-dialog .zg-journey-ticket,#shop-dialog .zg-renewal-link,#shop-dialog .zg-manage-service{display:inline-flex;align-items:center;justify-content:center;min-height:34px;border-radius:8px;color:#9bdcf2;font-size:11px;font-weight:600;text-decoration:none}
#shop-dialog .zg-journey-ticket{margin-top:6px}
#shop-dialog .zg-renewal-reminders{display:grid;gap:6px;margin:9px 0}
#shop-dialog .zg-renewal-reminder{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;padding:10px 12px;border:1px solid #ae7e30;border-radius:10px;background:#3a2c18}
#shop-dialog .zg-renewal-detail{display:grid;gap:3px}
#shop-dialog .zg-renewal-detail strong{font-size:11px;color:#ffe1a9}
#shop-dialog .zg-renewal-detail span{font-size:10px;color:#debf89}
#shop-dialog .zg-renewal-link{color:#f8d694}
#shop-dialog .zg-manage-service{border:1px solid #426c82;padding:5px 10px}
html[data-theme="light"] #shop-dialog .zg-order-journey{background:#f2f7fa;border-color:#b6ccda}
html[data-theme="light"] #shop-dialog .zg-journey-step{color:#4a6578}
html[data-theme="light"] #shop-dialog .zg-journey-step.is-complete{color:#14684c}
html[data-theme="light"] #shop-dialog .zg-order-journey .zg-journey-note{color:#36536a}
html[data-theme="light"] #shop-dialog .zg-renewal-reminder{background:#fff9eb;border-color:#dfb76a}
html[data-theme="light"] #shop-dialog .zg-renewal-detail strong{color:#805409}
html[data-theme="light"] #shop-dialog .zg-renewal-detail span{color:#805e2b}
html[data-theme="light"] #shop-dialog .zg-renewal-link{color:#775100}
@media(max-width:490px){#shop-dialog .zg-journey-steps{grid-template-columns:repeat(2,minmax(0,1fr));row-gap:12px}#shop-dialog .zg-order-journey{padding:10px}#shop-dialog .zg-journey-step{font-size:10px}}
@media(prefers-reduced-motion:reduce){#shop-dialog .zg-order-journey *,#shop-dialog .zg-renewal-reminder *{transition:none!important}}

/* r6: always-visible native email account paths; Google authentication remains unchanged. */
.zg-auth-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:14px 0 20px}.zg-auth-option{display:flex;align-items:center;justify-content:center;border:1px solid #496b90;border-radius:10px;padding:12px 8px;color:#e5f3ff!important;text-decoration:none!important;font-weight:600;text-align:center;background:#132941}.zg-auth-option:hover,.zg-auth-option:focus-visible{border-color:#86d8ff;background:#1a3b60}.zg-auth-recovery{grid-column:1 / -1;justify-self:center;padding:6px;color:#acd4ed!important;text-decoration:underline}@media(max-width:500px){.zg-auth-options{grid-template-columns:1fr}}
