/* VPS & Server look for the CoreInto client area (maps the old WHMCS "vpsandserver" theme onto CoreInto's markup).
   Colours come from the vpsandserver.com tokens in vs-site.css, so light and dark mode follow the site switch. */

/* CoreInto's own variables, pointed at the site tokens */
body.client,body.auth.client{
  --ink:var(--text);--line:var(--border);--accent:var(--primary);--accent-ink:#fff;--accent-soft:var(--chip);
  --bar:var(--surface);--bar-2:var(--surface-2);--bar-ink:var(--heading);--bar-muted:var(--muted);
  --good:var(--success);--bad:var(--danger);--warn:var(--warning);
  --radius:12px;--ctl-h:42px;
  background:var(--bg);color:var(--text);font-family:var(--font)
}
:root[data-theme="dark"] body.client,:root[data-theme="dark"] body.auth.client{--bar:var(--bg-2);--bar-2:var(--surface)}
/* the site header, footer, drawer and floating buttons keep the main site's own values */
.vs-site-header,.vs-site-footer,.vs-drawer,.vs-fab,.vs-chat-panel,.vs-cookie{--accent:#0e7490;--radius:16px}
:root[data-theme="dark"] .vs-site-header,:root[data-theme="dark"] .vs-site-footer,:root[data-theme="dark"] .vs-drawer,
:root[data-theme="dark"] .vs-fab,:root[data-theme="dark"] .vs-chat-panel,:root[data-theme="dark"] .vs-cookie{--accent:#22d3ee}

body.client h1,body.client h2,body.client h3,body.client h4,body.auth.client h1,body.auth.client h2{color:var(--heading);font-family:var(--font);letter-spacing:-.01em}
body.client .muted,body.client small{color:var(--muted)}
body.client main a:not(.btn):not(.vs-btn){color:var(--link)}
body.client main a:not(.btn):not(.vs-btn):hover{color:var(--primary-2)}

/* row 2: the client area menu, white like the old sub navigation (dark surface in dark mode) */
.client .masthead{background:var(--bar);border-bottom:1px solid var(--border);box-shadow:none}
.client .masthead-in{min-height:54px}
.client .masthead .menus>ul>li>a,.client .masthead .menus>ul>li>.menu-btn,.client .masthead .menu-link,.client .masthead-side .menu-btn,.client .masthead-side>a{color:var(--heading);font-weight:600}
.client .masthead .menus>ul>li>a svg,.client .masthead .menus>ul>li>.menu-btn>svg:first-child{color:var(--muted)}
.client .masthead .menus>ul>li>a:hover,.client .masthead .menus>ul>li>.menu-btn:hover,.client .masthead-side .menu-btn:hover{background:var(--surface-2);color:var(--primary)}
.client .masthead .menu.current>.menu-btn,.client .masthead .menu.current>.menu-link{background:none;color:var(--primary);box-shadow:inset 0 -2px 0 var(--primary)}
.client .masthead .menu.current>.menu-btn svg,.client .masthead .menu.current>.menu-link svg{color:var(--primary)}
.client .masthead .drop,.client .masthead-side .drop{background:var(--surface);border:1px solid var(--border);box-shadow:var(--shadow-lg);border-radius:var(--radius-sm)}
.client .masthead .drop a,.client .masthead-side .drop a,.client .masthead .drop summary{color:var(--text)}
.client .masthead .drop a:hover,.client .masthead-side .drop a:hover{background:var(--surface-2);color:var(--primary)}
.masthead-side{display:flex;align-items:center;gap:4px;margin-left:auto}
.masthead-side .menu{position:relative}
.masthead-side .count{background:var(--grad);color:#fff}
.masthead-side .avatar{background:var(--grad);color:#fff}

/* buttons: the site's purple gradient */
.client .btn-primary,body.auth.client .btn-primary{background:var(--grad);border-color:transparent;color:#fff}
.client .btn-primary:hover,.client .btn-primary:focus-visible,body.auth.client .btn-primary:hover{filter:brightness(1.08);color:#fff}
.client .btn:not(.btn-primary){background:var(--surface);border-color:var(--border-strong);color:var(--heading)}
.client .btn:not(.btn-primary):hover{border-color:var(--primary);color:var(--primary)}

/* surfaces */
.client .card,.client .acct-card,.client .sb-block,.client .plan,.client .modal,.auth-box{background:var(--surface);border-color:var(--border);box-shadow:var(--shadow)}
.client input,.client select,.client textarea,body.auth.client input,body.auth.client select,body.auth.client textarea{background:var(--surface);color:var(--text);border-color:var(--border-strong)}
.client input:focus,.client select:focus,.client textarea:focus{border-color:var(--primary);outline:0;box-shadow:0 0 0 3px color-mix(in srgb,var(--primary) 22%,transparent)}
.client .sb-head{color:var(--heading)}
.client .sb-links a.on{color:var(--primary);background:var(--chip)}
.client table th{color:var(--muted)}

/* the purple banner of the old portal home and domain search */
.client main .hero{background:var(--grad);color:#fff;border:0;border-radius:var(--radius-lg)}
.client main .hero h1,.client main .hero h2,.client main .hero p{color:#fff}
.client main .hero a:not(.btn){color:#f5e9ff}
.client main .hero a:not(.btn):hover{color:#fff;text-decoration:underline}
.client main .hero .btn-primary{background:#0f0b2e;color:#fff}
.client main .hero .btn:not(.btn-primary){background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.4);color:#fff}

/* page spacing between the site header and footer */
.client main.page{padding-top:28px;padding-bottom:56px}
.vs-site-footer{margin-top:0}

/* sign-in and registration: the site header and footer around the centred card */
body.auth.client{display:block;min-height:0;padding:0}
body.auth.client .auth-brand,body.auth.client .auth-foot{display:none}
body.auth.client .auth-box{margin:48px auto 64px;border-radius:var(--radius)}

/* phones: one slim row for the client area menu */
@media (max-width:860px){
  .client .masthead-in{min-height:0;flex-wrap:wrap;padding-top:0;padding-bottom:0}
  .client .masthead .nav-toggle{order:1;flex:1;display:flex;justify-content:flex-start;gap:10px;height:48px;margin:0;padding:0;border:0;background:none;color:var(--heading);font:inherit;font-weight:700;font-size:15px}
  .client .masthead .nav-toggle::after{content:"Client area"}
  .client .masthead .nav-toggle[aria-expanded="true"]{color:var(--primary)}
  .masthead-side{order:2}
  .client .masthead .menus{order:3}
  .client .masthead .menus>ul>li{border-top:1px solid var(--border)}
  .client .masthead .menus>ul>li>a,.client .masthead .menus>ul>li>.menu-btn{display:flex;width:100%;align-items:center;gap:10px;padding:13px 2px}
  .client .masthead .menus>ul>li>.menu-btn>svg:last-child{margin-left:auto}
  .client .masthead .menu.current>.menu-btn,.client .masthead .menu.current>.menu-link{box-shadow:none}
  .client .masthead .drop{border:0;border-left:2px solid var(--primary);border-radius:0;box-shadow:none;background:var(--surface-2);margin:0 0 8px}
}

/* menu row starts at the left edge like the old sub navigation; language/currency/account stay on the right */
@media (min-width:861px){.client .masthead .menus{margin-left:0;margin-right:auto}}
/* the site's floating buttons sit above CoreInto's live chat button */
body:has(#ci-chat) .vs-fab{bottom:78px}

/* site header on phones (from the old theme): Register moves into the drawer, buttons shrink so the menu button stays visible */
@media (max-width:767px){
.vs-hdr-register{display:none}
.vs-account-label{display:none}
.vs-account-btn{padding:0 8px;width:auto}
.vs-hdr{gap:8px}
.vs-hdr-actions{gap:6px}
.vs-hdr-actions .vs-icon-btn{width:38px;height:38px}
.vs-brand svg,.vs-brand svg.vs-logo{height:36px}
}
@media (max-width:640px){html[data-theme] .vs-hdr-actions .vs-hdr-login{display:inline-flex}}
@media (max-width:420px){
.vs-hdr-actions{gap:4px}
html[data-theme] .vs-hdr-actions .vs-icon-btn,html[data-theme] .vs-account-btn{width:34px;height:34px;padding:0;border-radius:10px}
.vs-icon-btn .vs-ico{width:18px;height:18px}
.vs-avatar{width:24px;height:24px}
.vs-hdr-actions .vs-hdr-login span{display:none}
.vs-hdr-actions .vs-hdr-login{padding:0 10px;height:38px}
.vs-brand svg,.vs-brand svg.vs-logo{height:32px}
}
@media print{.vs-site-header,.vs-site-footer,.vs-fab,.masthead{display:none!important}}
