/**
 * NextaPanel standalone pre-auth pages - merged CSS (split-screen login shell + centered-card
 * signup pages). Used only by Http/{Admin,Agency,Client,Support}/Login/views/login.php and
 * Http/Client/Login/views/{chooseSignupProvider,offlineSignup}.php - none of which load
 * nextahost-core.css (no session/layout exists pre-auth).
 */


/* Scoped under a distinguishing body class (added to each page's <body> tag) so these
 * otherwise-independent standalone documents can share one file without their similarly-named
 * selectors (body, :root, .brand, .field, .alert, ...) colliding with each other. */

/* ============================== nextahost-auth-shell.css ============================== */
/* Shared CSS for the standalone, pre-auth login pages - used by
   Http/{Admin,Agency,Client,Support}/Login/views/login.php. These pages can't load
   nexta-theme.css/nextahost-buttons.css (no session/layout exists yet), so this file - together
   with the dynamic :root tokens each page includes from Http/Site/Layout/views/_auth_root_tokens.php
   - is their complete stylesheet.

   Single centered column (no side brand panel - removed along with Agency > Design's dedicated
   login_bg_color setting, since there's nothing left for it to color): a logo up top, then the
   form card below it. Admin/Support only render the login form and don't use the
   auth-toggle/oauth-row/plan-picker/field-row rules below; Agency/Client render both login and
   signup panes (toggled via .auth-toggle + .d-none) and Client alone uses .plan-picker/.su-flow
   for its plan-selection step. Loading one shared file with a few unused rules on the simpler
   pages beats duplicating this per file. */
body.std-shell *{box-sizing:border-box; margin:0; padding:0;}
body.std-shell{margin:0; background:var(--bg-page); color:var(--text-0); font-family:var(--font-body); -webkit-font-smoothing:antialiased;}
body.std-shell a{color:inherit; text-decoration:none;}

body.std-shell .shell{
  position:relative; min-height:100vh; display:flex; align-items:center; justify-content:center;
  padding:20px 20px 56px; overflow:hidden;
}
/* Faint brand-colored glow instead of the old solid dark side panel - just enough to keep the
   centered card from floating on a flat white page. */
body.std-shell .shell::before{
  content:''; position:absolute; inset:0; z-index:0;
  background:
    radial-gradient(640px 420px at 12% 8%, rgba(147,51,234,.07), transparent 60%),
    radial-gradient(640px 420px at 88% 92%, rgba(217,70,239,.06), transparent 60%);
  pointer-events:none;
}

/* Agency > Panel Design's optional login page background image (Agency/Client/Support login only)
   - set via inline style on <body> (dynamic per-agency URL, can't be a static CSS rule). */
body.std-shell.has-bg-image{background-size:cover; background-position:center center; background-repeat:no-repeat; background-attachment:fixed;}

body.std-shell .form-side{position:relative; z-index:1; display:flex; flex-direction:column; align-items:center; width:100%;}
body.std-shell .form-logo{margin-bottom:36px;}
body.std-shell .form-logo img{display:block; max-height:64px; width:auto; max-width:300px; object-fit:contain; margin:0 auto;}

/* Agency > Panel Design's optional Home URL - Client login form only (see Http/Client/Login/
   views/login.php), shown under the Google/GitHub buttons - links back to the agency's own site
   when they've set one. */
body.std-shell .home-link{
  display:inline-flex; align-items:center; gap:6px; padding:8px 16px;
  border:1px solid var(--border); border-radius:999px; background:var(--bg-2); color:var(--text-1);
  font-size:13px; font-weight:600; transition:background .15s, color .15s;
}
body.std-shell .home-link:hover{background:var(--bg-3); color:var(--purple);}
body.std-shell .home-link svg{width:15px; height:15px;}
body.std-shell .home-link-inline{display:flex; width:fit-content; margin:18px auto 0;}

body.std-shell .form-box{
  width:100%; max-width:600px; background:var(--bg-2); border:1px solid var(--border-soft);
  border-radius:22px; padding:52px 56px;
  box-shadow:0 1px 2px rgba(23,18,35,.04), 0 24px 60px -28px rgba(23,18,35,.2);
}
body.std-shell .form-head{margin-bottom:30px; text-align:center;}
body.std-shell .form-head h2{font-family:var(--font-display); font-weight:600; font-size:27px; letter-spacing:-.01em; margin-bottom:7px;}
body.std-shell .form-head p{font-size:14px; color:var(--text-2);}

@media (max-width:620px){
  body.std-shell .form-box{padding:40px 28px;}
}

body.std-shell .powered-by{margin-top:28px; font-size:12px; color:var(--text-3); text-align:center;}
body.std-shell .powered-by a{color:var(--text-2); font-weight:600; text-decoration:none;}
body.std-shell .powered-by a:hover{color:var(--purple); text-decoration:underline;}

/* Two related fields side by side (e.g. Full name + Email, City + State) - falls back to a
   single stacked column on narrow viewports, where two ~190px inputs would otherwise be cramped. */
body.std-shell .field-row{display:flex; gap:14px;}
body.std-shell .field-row .field{flex:1; min-width:0;}
@media (max-width:420px){
  body.std-shell .field-row{flex-direction:column; gap:0;}
}

body.std-shell .alert{
  font-size:12.5px; font-weight:500; padding:10px 14px; border-radius:var(--radius-sm);
  margin-bottom:18px; border:1px solid transparent; display:flex; align-items:center; justify-content:space-between; gap:10px;
}
body.std-shell .alert-danger{ background:var(--danger-dim); color:#b91c1c; }
body.std-shell .alert-success{ background:var(--success-dim); color:#059669; }
body.std-shell .alert-warning{ background:var(--warning-dim); color:#b45309; }
body.std-shell .alert-info{ background:rgba(217,70,239,.10); color:#a21caf; }
body.std-shell .alert .btn-close{ background:none; border:none; font-size:15px; line-height:1; color:inherit; opacity:.6; }

body.std-shell .auth-toggle{
  display:grid; grid-template-columns:1fr 1fr; background:var(--bg-3); border:1px solid var(--border);
  border-radius:var(--radius-sm); padding:3px; margin-bottom:24px; position:relative;
}
body.std-shell .auth-toggle input{position:absolute; opacity:0; pointer-events:none;}
body.std-shell .auth-toggle label{
  position:relative; z-index:1; text-align:center; padding:8px 0; font-size:13px; font-weight:600;
  color:var(--text-2); border-radius:calc(var(--radius-sm) - 3px); cursor:pointer; transition:color .15s;
}
body.std-shell .auth-toggle input:checked + label{color:#fff;}
body.std-shell .auth-toggle label[for="authModeLogin"]{grid-column:1;}
body.std-shell .auth-toggle label[for="authModeSignup"]{grid-column:2;}
body.std-shell .auth-toggle-thumb{
  position:absolute; top:3px; bottom:3px; left:3px; width:calc(50% - 3px); background:var(--grad);
  border-radius:calc(var(--radius-sm) - 3px); box-shadow:0 2px 8px rgba(217,70,239,.35);
  transition:transform .2s ease;
}
body.std-shell #authModeSignup:checked ~ .auth-toggle-thumb{transform:translateX(100%);}

/* ===== Client signup - step 1 "Choose your plan" (Http/Client/Login/views/login.php signup
   pane), step 2 collects account/billing details. Panes are toggled via .d-none the same way
   .auth-toggle already switches loginPane/signupPane, just one level deeper. Everything below is
   scoped under .su-flow, and every tint is derived from --su-accent (defaults to --purple, which
   is itself already agency-brand-aware via _auth_root_tokens.php) so agency branding carries
   through automatically. */
body.std-shell .su-flow{ --su-accent: var(--purple); }

/* ----- stepper ----- */
body.std-shell .su-steps{ display:flex; align-items:center; gap:10px; margin-bottom:28px; font-size:12.5px; font-weight:600; color:var(--text-3); }
body.std-shell .su-step{ display:flex; align-items:center; gap:8px; white-space:nowrap; }
body.std-shell .su-step b{
  width:22px; height:22px; border-radius:50%; flex-shrink:0;
  display:inline-flex; align-items:center; justify-content:center;
  font-size:11px; font-weight:700; background:var(--bg-3); border:1px solid var(--border); color:var(--text-2);
}
body.std-shell .su-step.is-current{color:var(--text-0);}
body.std-shell .su-step.is-current b{background:var(--grad); border-color:transparent; color:#fff;}
body.std-shell .su-step.is-done{color:var(--text-1);}
body.std-shell .su-step.is-done b{background:var(--grad-soft); border-color:rgba(147,51,234,.4); color:var(--su-accent);}
body.std-shell .su-steps-line{flex:1; height:2px; border-radius:2px; background:var(--border-soft);}

/* ----- section label (shared by the plan legend and the quantity row) ----- */
body.std-shell .su-label{display:block; font-size:12.5px; font-weight:600; color:var(--text-1); margin-bottom:8px; padding:0;}

/* ----- plan cards: real radios, visually replaced by .su-plan-radio ----- */
body.std-shell .su-plans{border:0; margin:0 0 18px; padding:0; min-width:0;}
body.std-shell .su-plans-list{display:flex; flex-direction:column; gap:10px;}
body.std-shell .su-plan{
  position:relative; background:var(--bg-2); border:1px solid var(--border); border-radius:12px;
  transition:border-color .15s, background .15s, box-shadow .15s;
}
body.std-shell .su-plan input{position:absolute; opacity:0; pointer-events:none;}
body.std-shell .su-plan:hover{border-color:rgba(147,51,234,.35);}
body.std-shell .su-plan-main{display:flex; align-items:center; gap:14px; padding:14px 16px; cursor:pointer;}
body.std-shell .su-plan:has(.su-plan-more) .su-plan-main{padding-bottom:6px;}
body.std-shell .su-plan-radio{
  width:18px; height:18px; border-radius:50%; flex-shrink:0;
  border:1.5px solid var(--text-3); display:grid; place-items:center; transition:border-color .15s;
}
body.std-shell .su-plan-radio::after{content:''; width:8px; height:8px; border-radius:50%; background:var(--su-accent); transform:scale(0); transition:transform .15s ease;}
body.std-shell .su-plan-body{flex:1; min-width:0;}
body.std-shell .su-plan-name{font-size:14px; font-weight:600; color:var(--text-0);}
body.std-shell .su-plan-meta{display:flex; align-items:center; gap:5px; font-size:12px; color:var(--text-2); margin-top:2px;}
body.std-shell .su-plan-meta svg{width:13px; height:13px; color:var(--text-3);}
body.std-shell .su-plan-price{font-family:var(--font-display); font-size:17px; font-weight:600; color:var(--text-0); white-space:nowrap; text-align:right;}
body.std-shell .su-plan-price small{font-family:var(--font-body); font-size:11.5px; font-weight:500; color:var(--text-3); margin-left:1px;}

/* selected - :has() for current browsers, .checked (kept in sync by JS) as the fallback */
body.std-shell .su-plan:has(input:checked), body.std-shell .su-plan.checked{
  border-color:var(--su-accent);
  background:var(--grad-soft);
  box-shadow:0 0 0 3px rgba(147,51,234,.12);
}
body.std-shell .su-plan:has(input:checked) .su-plan-radio, body.std-shell .su-plan.checked .su-plan-radio{border-color:var(--su-accent);}
body.std-shell .su-plan:has(input:checked) .su-plan-radio::after, body.std-shell .su-plan.checked .su-plan-radio::after{transform:scale(1);}
body.std-shell .su-plan:has(input:focus-visible){outline:2px solid var(--su-accent); outline-offset:2px;}

/* ----- "What's included" toggle + collapsible feature list. The toggle sits outside the
   <label>, so opening it never changes the selected plan. ----- */
body.std-shell .su-plan-more{
  display:inline-flex; align-items:center; gap:4px; margin:0 0 10px 48px; padding:3px 6px 3px 0;
  background:none; border:0; border-radius:6px; cursor:pointer;
  font-family:var(--font-body); font-size:12px; font-weight:600; color:var(--su-accent);
}
body.std-shell .su-plan-more:hover{text-decoration:underline; text-underline-offset:2px;}
body.std-shell .su-plan-more:focus-visible{outline:2px solid var(--su-accent); outline-offset:2px;}
body.std-shell .su-plan-more svg{width:14px; height:14px; transition:transform .2s ease;}
body.std-shell .su-plan.is-open .su-plan-more svg{transform:rotate(180deg);}

body.std-shell .su-plan-feats{
  display:grid; grid-template-rows:0fr; visibility:hidden;
  transition:grid-template-rows .22s ease, visibility 0s linear .22s;
}
body.std-shell .su-plan.is-open .su-plan-feats{grid-template-rows:1fr; visibility:visible; transition-delay:0s;}
body.std-shell .su-plan-feats > div{overflow:hidden; min-height:0;}
body.std-shell .su-plan-feats ul{
  list-style:none; margin:0 16px 14px 48px; padding:12px 0 0; border-top:1px dashed var(--border);
  display:grid; grid-template-columns:repeat(auto-fill, minmax(150px, 1fr)); gap:8px 16px;
}
body.std-shell .su-plan-feats li{display:flex; align-items:flex-start; gap:7px; font-size:12.5px; line-height:1.4; color:var(--text-1);}
body.std-shell .su-plan-feats li svg{width:14px; height:14px; flex-shrink:0; margin-top:1px; color:var(--su-accent);}
body.std-shell .su-plan-feats li.is-off{color:var(--text-3);}
body.std-shell .su-plan-feats li.is-off svg{color:var(--text-3);}
@media (prefers-reduced-motion: reduce){
  body.std-shell .su-plan-feats, body.std-shell .su-plan-more svg{transition:none;}
}

/* ----- quantity: label left, - [n] + stepper right ----- */
body.std-shell .su-qty-row{display:flex; align-items:center; justify-content:space-between; gap:16px;}
body.std-shell .su-qty-row .su-label{margin:0;}
body.std-shell .su-qty{display:inline-flex; align-items:stretch; border:1px solid var(--border); border-radius:var(--radius-sm); overflow:hidden; background:var(--bg-2);}
body.std-shell .su-qty button{
  width:36px; border:0; background:var(--bg-3); color:var(--text-1); cursor:pointer;
  display:flex; align-items:center; justify-content:center; transition:background .15s, color .15s;
}
body.std-shell .su-qty button:hover:not(:disabled){background:var(--bg-4); color:var(--text-0);}
body.std-shell .su-qty button:disabled{opacity:.4; cursor:default;}
body.std-shell .su-qty button svg{width:14px; height:14px;}
body.std-shell .su-qty input{
  width:48px; height:36px; border:0; border-left:1px solid var(--border); border-right:1px solid var(--border);
  text-align:center; font-family:var(--font-body); font-size:14px; font-weight:600; color:var(--text-0);
  background:var(--bg-2); -moz-appearance:textfield; appearance:textfield;
}
body.std-shell .su-qty input::-webkit-inner-spin-button, body.std-shell .su-qty input::-webkit-outer-spin-button{-webkit-appearance:none; margin:0;}
body.std-shell .su-qty input:focus{outline:none; box-shadow:inset 0 0 0 2px rgba(147,51,234,.35);}

/* ----- running total ----- */
body.std-shell .su-total{
  display:flex; align-items:baseline; justify-content:space-between; gap:12px;
  margin-top:20px; padding-top:16px; border-top:1px dashed var(--border);
}
body.std-shell .su-total-label{font-size:13px; color:var(--text-2);}
body.std-shell .su-total-label strong{color:var(--text-0); font-weight:600;}
body.std-shell .su-total-amount{font-family:var(--font-display); font-size:21px; font-weight:600; color:var(--text-0); white-space:nowrap;}
body.std-shell .su-total-amount small{font-family:var(--font-body); font-size:12px; font-weight:500; color:var(--text-3); margin-left:1px;}

body.std-shell .plan-summary{
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  background:var(--grad-soft); border:1px solid rgba(147,51,234,.22); border-radius:var(--radius-sm);
  padding:12px 14px; margin-bottom:20px;
}
body.std-shell .plan-summary .ps-name{font-size:13px; font-weight:600; color:var(--text-0);}
body.std-shell .plan-summary .ps-meta{font-size:11.5px; color:var(--text-3); margin-top:2px;}
body.std-shell .plan-summary .ps-change{background:none; border:none; padding:0; font-size:12px; font-weight:600; color:var(--purple); cursor:pointer; flex-shrink:0;}
body.std-shell .plan-summary .ps-change:hover{text-decoration:underline;}

body.std-shell .btn-back{
  width:100%; background:var(--bg-2); color:var(--text-1); border:1px solid var(--border); border-radius:var(--radius-sm);
  padding:11px 0; font-size:13.5px; font-weight:600; font-family:var(--font-body);
  display:flex; align-items:center; justify-content:center; gap:8px; cursor:pointer; margin-top:22px;
}
body.std-shell .btn-back:hover{background:var(--bg-3);}
body.std-shell .btn-back svg{width:15px; height:15px;}
body.std-shell .btn-back + .btn-primary{margin-top:10px;}

body.std-shell .field{margin-bottom:16px;}
body.std-shell .field label{display:block; font-size:12.5px; font-weight:600; color:var(--text-1); margin-bottom:6px;}
body.std-shell .text-danger{color:var(--danger);}
body.std-shell .field-note{font-size:11.5px; color:var(--text-3); margin-top:6px; line-height:1.5;}
body.std-shell .gen-pw-link{background:none; border:none; padding:0; margin-top:6px; font-size:12px; font-weight:600; color:var(--purple); cursor:pointer;}
body.std-shell .gen-pw-link:hover{text-decoration:underline;}
body.std-shell .input-wrap{position:relative;}
body.std-shell .input-wrap svg{
  position:absolute; left:12px; top:50%; transform:translateY(-50%);
  width:15px; height:15px; color:var(--text-3); pointer-events:none;
}
body.std-shell .input-wrap input{
  width:100%; background:var(--bg-2); border:1px solid var(--border); border-radius:var(--radius-sm);
  font-size:13.5px; color:var(--text-0); padding:10px 12px 10px 36px;
  transition:border-color .15s, box-shadow .15s; font-family:var(--font-body);
}
body.std-shell .input-wrap input::placeholder{color:var(--text-3);}
body.std-shell .input-wrap input:focus{
  outline:none; border-color:rgba(147,51,234,.5); box-shadow:0 0 0 3px rgba(147,51,234,.12);
}
body.std-shell .input-wrap.pw input{padding-right:38px;}
body.std-shell .toggle-pw{
  position:absolute; right:10px; top:50%; transform:translateY(-50%);
  background:none; border:none; color:var(--text-3); width:22px; height:22px;
  display:flex; align-items:center; justify-content:center; cursor:pointer;
}
body.std-shell .toggle-pw svg{position:static; width:15px; height:15px;}
body.std-shell .toggle-pw .icon-eye, body.std-shell .toggle-pw .icon-eye-off{
  display:inline-block; width:15px; height:15px; background-size:contain; background-repeat:no-repeat; background-position:center;
}
body.std-shell .toggle-pw .icon-eye{ background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjODQ3Yzk5IiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCI+PHBhdGggZD0iTTIgMTJzMy41LTcgMTAtNyAxMCA3IDEwIDctMy41IDctMTAgNy0xMC03LTEwLTd6Ii8+PGNpcmNsZSBjeD0iMTIiIGN5PSIxMiIgcj0iMyIvPjwvc3ZnPg=="); }
body.std-shell .toggle-pw .icon-eye-off{ background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjODQ3Yzk5IiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCI+PHBhdGggZD0iTTkuODggOS44OGEzIDMgMCAxIDAgNC4yNCA0LjI0Ii8+PHBhdGggZD0iTTEwLjczIDUuMDhBMTAuNDMgMTAuNDMgMCAwIDEgMTIgNWM3IDAgMTAgNyAxMCA3YTEzLjE2IDEzLjE2IDAgMCAxLTEuNjcgMi42OCIvPjxwYXRoIGQ9Ik02LjYxIDYuNjFBMTMuNTI2IDEzLjUyNiAwIDAgMCAyIDEyczMgNyAxMCA3YTkuNzQgOS43NCAwIDAgMCA1LjM5LTEuNjEiLz48bGluZSB4MT0iMiIgeTE9IjIiIHgyPSIyMiIgeTI9IjIyIi8+PC9zdmc+"); }

/* Searchable country dropdown (Client signup, step 2) - a hand-rolled vanilla-JS equivalent of
   the dashboard's $.fn.nxSearchableSelect (main.js), since these standalone pre-auth pages load
   neither jQuery nor main.js. A hidden <input type="hidden"> (not a hidden <select>) carries the
   actual value so there's no native-constraint-validation edge case to work around at all. */
body.std-shell .ssel{ position:relative; }
body.std-shell .ssel-toggle{
  display:flex; align-items:center; gap:10px; width:100%; cursor:pointer; text-align:left;
  background:var(--bg-2); border:1px solid var(--border); border-radius:var(--radius-sm);
  font-size:13.5px; color:var(--text-0); padding:10px 12px; font-family:var(--font-body);
  transition:border-color .15s, box-shadow .15s;
}
body.std-shell .ssel-toggle .ssel-icon{ width:15px; height:15px; color:var(--text-3); flex-shrink:0; }
body.std-shell .ssel-toggle .ssel-label{ flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
body.std-shell .ssel-toggle.placeholder .ssel-label{ color:var(--text-3); }
body.std-shell .ssel-toggle .ssel-chev{ width:14px; height:14px; color:var(--text-3); flex-shrink:0; transition:transform .15s; }
body.std-shell .ssel.open .ssel-toggle .ssel-chev{ transform:rotate(180deg); }
body.std-shell .ssel.open .ssel-toggle{ border-color:rgba(147,51,234,.5); box-shadow:0 0 0 3px rgba(147,51,234,.12); }
body.std-shell .ssel-panel{
  position:absolute; top:calc(100% + 4px); left:0; right:0; z-index:40;
  background:var(--bg-2); border:1px solid var(--border-soft); border-radius:var(--radius-sm);
  box-shadow:0 12px 28px -12px rgba(23,18,35,.22); overflow:hidden;
}
body.std-shell .ssel-search{ display:flex; align-items:center; gap:8px; padding:8px 10px; border-bottom:1px solid var(--border-soft); }
body.std-shell .ssel-search svg{ width:14px; height:14px; color:var(--text-3); flex-shrink:0; }
body.std-shell .ssel-search input{ border:none; outline:none; font-size:13px; color:var(--text-0); width:100%; background:transparent; font-family:var(--font-body); }
body.std-shell .ssel-search input::placeholder{ color:var(--text-3); }
body.std-shell .ssel-list{ list-style:none; margin:0; padding:6px; max-height:220px; overflow-y:auto; }
body.std-shell .ssel-list li{ padding:8px 10px; border-radius:7px; font-size:13px; color:var(--text-1); cursor:pointer; line-height:1.35; }
body.std-shell .ssel-list li:hover, body.std-shell .ssel-list li.hover{ background:var(--bg-3); color:var(--text-0); }
body.std-shell .ssel-list li.active{ background:var(--grad-soft); color:#7e22ce; font-weight:600; }
body.std-shell .ssel-empty{ padding:14px 10px; font-size:12.5px; color:var(--text-3); text-align:center; }

body.std-shell .btn-primary{
  width:100%; background:var(--grad); color:#fff; border:none; border-radius:var(--radius-sm);
  padding:11px 0; font-size:13.5px; font-weight:600; font-family:var(--font-body);
  box-shadow:0 4px 14px rgba(217,70,239,.35);
  display:flex; align-items:center; justify-content:center; gap:8px;
  transition:box-shadow .15s, transform .1s; cursor:pointer; margin-top:22px;
}
body.std-shell .btn-primary:hover{ box-shadow:0 6px 18px rgba(217,70,239,.45); transform:translateY(-1px); }
body.std-shell .btn-primary svg{width:15px; height:15px;}

body.std-shell .divider{display:flex; align-items:center; gap:12px; margin:22px 0; color:var(--text-3); font-size:11.5px;}
body.std-shell .divider::before, body.std-shell .divider::after{content:''; flex:1; height:1px; background:var(--border-soft);}

body.std-shell .oauth-row{display:grid; grid-template-columns:1fr 1fr; gap:10px;}
body.std-shell .btn-oauth{
  display:flex; align-items:center; justify-content:center; gap:8px;
  background:var(--bg-2); border:1px solid var(--border); border-radius:var(--radius-sm);
  padding:9px 0; font-size:12.5px; font-weight:600; color:var(--text-1);
}
body.std-shell .btn-oauth:hover{ background:var(--bg-3); }
body.std-shell .btn-oauth svg{width:15px; height:15px;}

body.std-shell .d-none{display:none !important;}

/* ============================== nextahost-auth-card.css ============================== */
/* Shared CSS for the standalone, pre-auth "centered card" pages (single card on a tinted
   background, no split-screen panel) - used by Http/Client/Login/views/chooseSignupProvider.php
   and offlineSignup.php. Neither loads nexta-theme.css/nextahost-buttons.css (no session/layout
   exists yet), so this file - together with the dynamic :root tokens each page includes from
   Http/Site/Layout/views/_auth_root_tokens.php - is their complete stylesheet.

   .summary/.provider-*/body.std-card .empty-hint are chooseSignupProvider-only; .title/.amount/.hint/.input/
   .file-hint/.submit are offlineSignup-only. Loading one shared file with a few unused rules on
   either page beats duplicating the common .wrap/.card/.alert/.brand rules across both. */
*{box-sizing:border-box; margin:0; padding:0;}
body.std-card{background:var(--bg-3); color:var(--text-0); font-family:var(--font-body); min-height:100vh; display:flex; align-items:center; justify-content:center; padding:40px 20px; -webkit-font-smoothing:antialiased;}

body.std-card .brand{display:flex; align-items:center; justify-content:center; gap:10px; margin-bottom:26px;}
body.std-card .brand-mark{width:32px; height:32px; border-radius:9px; background:var(--grad); display:flex; align-items:center; justify-content:center; font-family:var(--font-display); font-weight:700; font-size:16px; color:#fff;}
body.std-card .brand-name{font-family:var(--font-display); font-weight:600; font-size:16px;}
body.std-card .brand-name span{color:var(--pink);}
/* The actual markup this page renders (Http/Client/Login/views/chooseSignupProvider.php/
   offlineSignup.php) - a bare <img class="brand-logo-md"|"brand-logo-default"> inside .brand,
   never a .brand-mark/.brand-name pair (those two rules above are dead weight on this page, kept
   only because this file is shared - see this section's own header comment). Without a size cap
   here an agency's own uploaded logo (arbitrary source resolution) renders at its native size.
   .brand-logo-md is this page's own size (bigger than style.css's .brand-logo-custom, used on the
   split-screen login.php pages) - this centered-card page has more room to give the logo top
   billing - this page just never loads style.css (no session/layout exists yet for it to), so it
   needs its own copy of the sizing rule regardless. */
body.std-card .brand-logo-md{max-height:65px; width:auto; max-width:280px; object-fit:contain;}
body.std-card .brand-logo-default{max-height:50px; width:auto;}

body.std-card .wrap{width:100%; max-width:480px;}
body.std-card .wrap.wrap-narrow{max-width:460px;}
body.std-card .card{background:var(--bg-2); border:1px solid var(--border); border-radius:var(--radius); padding:28px; box-shadow:0 1px 2px rgba(20,10,30,.03), 0 8px 24px -14px rgba(20,10,30,.12);}
body.std-card .back-link{display:block; text-align:center; margin-top:18px; font-size:12.5px; color:var(--text-2); text-decoration:none;}
body.std-card .back-link:hover{color:var(--purple);}

body.std-card .alert{font-size:12.5px; font-weight:500; padding:10px 14px; border-radius:var(--radius-sm); margin-bottom:18px; border:1px solid transparent;}
body.std-card .alert-danger{background:var(--danger-dim); color:#b91c1c;}
body.std-card .alert-warning{background:var(--warning-dim); color:#b45309;}
body.std-card .alert-success{background:var(--success-dim); color:#059669;}

/* ===== chooseSignupProvider.php — provider picker ===== */
body.std-card .summary{text-align:center; padding-bottom:22px; border-bottom:1px solid var(--border); margin-bottom:22px;}
body.std-card .summary-title{font-size:17px; font-weight:700;}
body.std-card .summary-sub{font-size:13px; color:var(--text-2); margin-top:4px;}
body.std-card .summary-amount{font-size:32px; font-weight:700; margin-top:14px; font-family:var(--font-mono);}
body.std-card .providers-label{font-size:12.5px; font-weight:700; color:var(--text-2); text-transform:uppercase; letter-spacing:.5px; margin-bottom:12px;}
body.std-card .provider-btn{display:flex; align-items:center; gap:14px; width:100%; text-align:left; background:var(--bg-2); border:1.5px solid var(--border); border-radius:12px; padding:14px 16px; margin-bottom:10px; cursor:pointer; font-family:inherit;}
body.std-card .provider-btn:hover{border-color:var(--purple); box-shadow:0 0 0 3px var(--grad-soft);}
body.std-card .provider-btn:disabled{opacity:.6; cursor:wait;}
body.std-card .provider-icon{width:38px; height:38px; border-radius:10px; flex-shrink:0; display:flex; align-items:center; justify-content:center; font-weight:800; color:#fff; font-size:14px;}
body.std-card .provider-icon.paypal{background:linear-gradient(135deg, #1a4fd6, #003087);}
body.std-card .provider-icon.stripe{background:linear-gradient(135deg, #6d6bfa, #635bff);}
body.std-card .provider-icon.offline{background:var(--grad);}
body.std-card .provider-name{display:block; font-size:14px; font-weight:700; color:var(--text-0);}
body.std-card .provider-desc{display:block; font-size:12.5px; color:var(--text-2); margin-top:2px;}
body.std-card .empty-hint{font-size:13px; color:var(--text-2); text-align:center; padding:18px; border:1px dashed var(--border); border-radius:12px;}

/* ===== offlineSignup.php — payment proof form ===== */
body.std-card .title{font-size:17px; font-weight:700; text-align:center;}
body.std-card .amount{font-size:28px; font-weight:700; text-align:center; margin-top:6px; font-family:var(--font-mono);}
body.std-card .hint{font-size:13px; color:var(--text-2); line-height:1.6; text-align:center; margin:16px 0 22px;}
body.std-card .pay-details{background:var(--grad-soft); border:1px solid var(--border); border-radius:12px; padding:16px 18px; margin-bottom:22px;}
body.std-card .pay-account{font-size:14.5px; font-weight:700; color:var(--text-0); line-height:1.5;}
body.std-card .pay-instructions{font-size:13px; color:var(--text-2); line-height:1.6; margin-top:10px;}
body.std-card .pay-image{display:block; max-width:100%; max-height:180px; margin:14px auto 0; border-radius:8px;}
body.std-card .field{margin-bottom:16px;}
body.std-card .field label{display:block; font-size:12.5px; font-weight:700; margin-bottom:8px;}
body.std-card .optional{font-weight:400; color:var(--text-2);}
body.std-card .input{width:100%; border:1.5px solid var(--border); border-radius:10px; padding:11px 14px; font-size:13.5px; font-family:inherit;}
body.std-card .input:focus{outline:none; border-color:var(--purple); box-shadow:0 0 0 3px var(--grad-soft);}
body.std-card .file-hint{font-size:12px; color:var(--text-2); margin:6px 0 0;}
body.std-card .submit{width:100%; background:var(--grad); color:#fff; border:none; font-size:14px; font-weight:700; padding:13px; border-radius:10px; cursor:pointer;}
body.std-card .submit:disabled{opacity:.6; cursor:wait;}

/* ============================== nextahost-invoice-pdf.css (Admin/Invoices/views/view.php) ============================== */
/* Admin > Invoices > View (Http/Admin/Invoices/views/view.php) - a standalone invoice/PDF document
   (own <!DOCTYPE html>, no shared dashboard layout, no nexta-theme.css/nextahost-*.css). Complete
   stylesheet for that page; only genuinely per-request dynamic values stay inline there. */
body.std-invoice * { margin: 0; padding: 0; box-sizing: border-box; }
body.std-invoice {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f4f6f9;
    color: #1a1a2e;
    line-height: 1.5;
}
body.std-invoice .no-print { display: block; }
@media print {
    body.std-invoice .no-print { display: none !important; }
    body.std-invoice { background: #fff; padding: 0; }
    body.std-invoice .invoice-wrap { box-shadow: none; margin: 0 auto; border-radius: 0; }
    body.std-invoice .invoice-table th { background: #1a1a2e !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    body.std-invoice .badge-status { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

body.std-invoice .toolbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: #1a1a2e;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
body.std-invoice .toolbar-title {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    margin-right: auto;
    opacity: 0.8;
}
body.std-invoice .toolbar .btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}
body.std-invoice .toolbar .btn:hover { transform: translateY(-1px); opacity: 0.9; }
body.std-invoice .toolbar .btn svg { width: 16px; height: 16px; flex-shrink: 0; }
body.std-invoice .bill-desc-note { margin-top: 4px; font-size: 13px; }
body.std-invoice .col-desc { width: 40%; }
body.std-invoice .col-server { width: 25%; }
body.std-invoice .col-qty { width: 10%; }
body.std-invoice .col-rate { width: 12%; }
body.std-invoice .col-amount { width: 13%; }
body.std-invoice .server-details-cell { font-size: 12px; color: #6b7280; }
body.std-invoice .txn-id { font-family: monospace; font-size: 11.5px; }
body.std-invoice .thank-you-note { margin-top: 16px; }
body.std-invoice .btn-back { background: #2d2d44; color: #ccc; }
body.std-invoice .btn-back:hover { background: #3d3d55; color: #fff; }
body.std-invoice .btn-print { background: #fff; color: #1a1a2e; }
body.std-invoice .btn-print:hover { background: #e0e0e0; }
body.std-invoice .btn-pdf { background: #e74c3c; color: #fff; }
body.std-invoice .btn-pdf:hover { background: #c0392b; }
body.std-invoice .btn-success { background: #27ae60; color: #fff; }
body.std-invoice .btn-success:hover { background: #219a52; }

body.std-invoice .invoice-wrap {
    max-width: 820px;
    margin: 80px auto 40px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    padding: 48px 56px;
}

body.std-invoice .inv-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 32px;
    border-bottom: 2px solid #eef0f4;
    margin-bottom: 32px;
}
body.std-invoice .inv-brand h1 {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #1a1a2e;
    margin-bottom: 12px;
}
body.std-invoice .inv-brand p {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.7;
}
body.std-invoice .inv-meta {
    text-align: right;
}
body.std-invoice .inv-meta .inv-number {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 8px;
}
body.std-invoice .inv-meta .inv-number small {
    font-size: 13px;
    font-weight: 400;
    color: #6b7280;
}
body.std-invoice .inv-meta p {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.8;
}
body.std-invoice .badge-status {
    display: inline-block;
    padding: 5px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-top: 8px;
}
body.std-invoice .badge-paid { background: #d4edda; color: #155724; }
body.std-invoice .badge-unpaid { background: #fff3cd; color: #856404; }
body.std-invoice .badge-overdue { background: #f8d7da; color: #721c24; }

body.std-invoice .billing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 36px;
}
body.std-invoice .bill-section h3 {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #9ca3af;
    margin-bottom: 8px;
}
body.std-invoice .bill-section p {
    font-size: 14px;
    color: #1a1a2e;
    line-height: 1.6;
}
body.std-invoice .bill-section p strong {
    font-weight: 600;
}

body.std-invoice .invoice-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
}
body.std-invoice .invoice-table thead th {
    background: #1a1a2e;
    color: #fff;
    padding: 14px 16px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: left;
}
body.std-invoice .invoice-table thead th:last-child { text-align: right; }
body.std-invoice .invoice-table thead th:nth-last-child(2) { text-align: right; }
body.std-invoice .invoice-table thead th:nth-last-child(3) { text-align: right; }
body.std-invoice .invoice-table tbody td {
    padding: 14px 16px;
    font-size: 13px;
    border-bottom: 1px solid #eef0f4;
    color: #374151;
}
body.std-invoice .invoice-table tbody td:last-child { text-align: right; font-weight: 600; }
body.std-invoice .invoice-table tbody td:nth-last-child(2) { text-align: right; }
body.std-invoice .invoice-table tbody td:nth-last-child(3) { text-align: right; }
body.std-invoice .invoice-table tbody tr:last-child td { border-bottom: none; }

body.std-invoice .summary {
    margin-left: auto;
    width: 300px;
    padding-top: 8px;
}
body.std-invoice .summary .row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
    color: #374151;
}
body.std-invoice .summary .row.total {
    border-top: 2px solid #1a1a2e;
    margin-top: 8px;
    padding-top: 16px;
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
}
body.std-invoice .summary .row.paid {
    color: #27ae60;
    font-weight: 600;
}

body.std-invoice .inv-footer {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid #eef0f4;
    text-align: center;
    font-size: 13px;
    color: #9ca3af;
    line-height: 1.8;
}
body.std-invoice .inv-footer strong { color: #6b7280; }

body.std-invoice .watermark {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-30deg);
    font-size: 120px;
    font-weight: 900;
    color: rgba(0,0,0,0.03);
    pointer-events: none;
    z-index: 0;
    text-transform: uppercase;
    letter-spacing: 20px;
}

/* ============================== nextahost-site-chooser.css (Site/Landing/views/chooser.php) ============================== */
/* Site > Landing > Chooser (Http/Site/Landing/views/chooser.php) - a standalone document (own
   <!DOCTYPE html>, no shared dashboard layout) that lets a visitor pick Client vs Agency login.
   Complete stylesheet for that page - entirely static, no per-request PHP-interpolated values. */
body.std-chooser{
  --dark-1:#1a1129; --dark-2:#2e1445; --dark-3:#3d1a52;
  --dark-grad: linear-gradient(160deg,var(--dark-1) 0%,var(--dark-2) 50%,var(--dark-3) 100%);
  --purple:#9333ea; --pink:#d946ef;
  --grad: linear-gradient(135deg,var(--purple) 0%,var(--pink) 100%);
  --text-2:#a99bc7;
  --font-display:'Space Grotesk', sans-serif;
  --font-body:'Inter', sans-serif;
}
body.std-chooser *{box-sizing:border-box; margin:0; padding:0;}
body.std-chooser{
  min-height:100vh; background:var(--dark-grad); font-family:var(--font-body);
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  padding:32px; position:relative; overflow:hidden; -webkit-font-smoothing:antialiased;
}
body.std-chooser::before{
  content:''; position:absolute; inset:0;
  background:
    radial-gradient(600px 360px at 12% 88%, rgba(217,70,239,.16), transparent 60%),
    radial-gradient(700px 400px at 88% 8%, rgba(147,51,234,.2), transparent 60%);
  pointer-events:none;
}
body.std-chooser .brand{ display:flex; align-items:center; gap:10px; position:relative; margin-bottom:44px; }
body.std-chooser .brand img{ max-height:42px; width:auto; }
body.std-chooser .lede{ text-align:center; position:relative; margin-bottom:40px; max-width:520px; }
body.std-chooser .lede h1{ font-family:var(--font-display); font-weight:600; font-size:28px; color:#fff; letter-spacing:-.01em; margin-bottom:10px; }
body.std-chooser .lede p{ font-size:14.5px; color:var(--text-2); line-height:1.6; }
body.std-chooser .choices{ position:relative; display:flex; gap:22px; flex-wrap:wrap; justify-content:center; max-width:720px; }
body.std-chooser .choice-card{
  width:280px; background:rgba(255,255,255,.04); border:1px solid rgba(255,255,255,.09);
  border-radius:18px; padding:32px 26px; text-align:center; text-decoration:none;
  backdrop-filter:blur(6px); transition:transform .2s ease, border-color .2s ease, background .2s ease;
}
body.std-chooser .choice-card:hover{ transform:translateY(-4px); border-color:rgba(217,70,239,.5); background:rgba(255,255,255,.07); }
body.std-chooser .choice-icon{
  width:56px; height:56px; margin:0 auto 18px; border-radius:14px; background:var(--grad);
  display:flex; align-items:center; justify-content:center; box-shadow:0 8px 22px rgba(217,70,239,.35);
}
body.std-chooser .choice-icon svg{ width:26px; height:26px; color:#fff; }
body.std-chooser .choice-card h3{ font-family:var(--font-display); font-weight:600; font-size:18px; color:#fff; margin-bottom:8px; }
body.std-chooser .choice-card p{ font-size:13px; color:var(--text-2); line-height:1.5; margin-bottom:0; }
body.std-chooser .choice-card .go{
  display:inline-flex; align-items:center; gap:6px; margin-top:18px; font-size:13px; font-weight:600;
  color:#e9d5ff;
}
body.std-chooser .choice-card:hover .go{ color:#fff; }
body.std-chooser .choice-card .go svg{ width:14px; height:14px; transition:transform .2s ease; }
body.std-chooser .choice-card:hover .go svg{ transform:translateX(3px); }

/* ============================== nextahost-site-error.css (Site/Error/views/*.php) ============================== */
/* Site > Error pages - standalone documents (own <html>/<head>/<body>, load Bootstrap from a CDN
   directly, not the app's dashboard shell/nexta-theme.css system). Shared by:
     - Http/Site/Error/views/domain-setup-needed.php
     - Http/Site/Error/views/not-registered.php
   (Http/Site/Error/views/404.php has no page-specific CSS of its own - only a tiny <style> that is
   part of its inline SVG icon's own <defs>, which stays with the SVG markup.) */

/* ===== domain-setup-needed.php ===== */
body.std-error code.dsn-val { background:#f5f2fb; color:#7e22ce; padding:3px 9px; border-radius:6px; font-weight:600; }
body.std-error .dsn-table td { padding:10px 14px; vertical-align:middle; }
body.std-error .dsn-table th { padding:10px 14px; }
body.std-error .dsn-wrap { max-width:640px; width:100%; }

/* ===== not-registered.php ===== */
body.std-error .nr-wrap { max-width:480px; }
/* Client login: "Invited to a team?" - re-sends a Client > Team invitation link (Login::inviteResend()) */
body.std-shell .invite-help{margin-top:20px; padding-top:16px; border-top:1px solid var(--border);}
body.std-shell .invite-help-toggle{width:100%; display:flex; align-items:center; justify-content:center; gap:8px; background:none; border:none; padding:4px 0; font-size:13px; font-weight:600; color:var(--purple); cursor:pointer; font-family:var(--font-body);}
body.std-shell .invite-help-toggle:hover{text-decoration:underline;}
body.std-shell .invite-help-toggle svg{width:15px; height:15px; flex-shrink:0;}
body.std-shell .invite-help-form{margin-top:12px;}
body.std-shell .invite-help-form p{font-size:12.5px; color:var(--text-2); line-height:1.5; margin:0 0 12px;}
body.std-shell .invite-help-form .field{margin-bottom:10px;}
body.std-shell .invite-help-form .btn-back{margin-top:4px;}
body.std-shell .invite-help-msg{font-size:12.5px; line-height:1.5; border-radius:var(--radius-sm); padding:9px 12px; margin-bottom:10px;}
body.std-shell .invite-help-msg.is-ok{background:var(--success-dim); color:#047857;}
body.std-shell .invite-help-msg.is-error{background:var(--danger-dim); color:#b91c1c;}
