/* Bridge: WHMCS chrome ↔ locked Bright Sky mockups */

/* ——— Auth pages: full-bleed shell, hide stock chrome ——— */
body.sky-auth-page #header,
body.sky-auth-page .master-breadcrumb,
body.sky-auth-page #footer,
body.sky-auth-page .main-navbar-wrapper,
body.sky-auth-page #fullpage-overlay .msg {
  display: none !important;
}

body.sky-auth-page {
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

body.sky-auth-page #main-body,
body.sky-auth-page #main-body > .container,
body.sky-auth-page #main-body .row,
body.sky-auth-page #main-body .primary-content {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}

body.sky-auth-page .auth-shell {
  min-height: 100vh;
}

body.sky-auth-page .auth-card .form-grid .field input,
body.sky-auth-page .auth-card input[type="email"],
body.sky-auth-page .auth-card input[type="password"],
body.sky-auth-page .auth-card input[type="text"] {
  width: 100%;
  height: 48px;
  border-radius: 12px;
  border: 1.5px solid var(--line, rgba(19,17,47,.09));
  padding: 0 14px;
  font: inherit;
  font-size: 15px;
  background: #fff;
}

body.sky-auth-page .auth-card label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--navy, #13112F);
}

body.sky-auth-page .auth-linked {
  margin-top: 18px;
}

body.sky-auth-page .auth-brand .logo {
  height: 36px;
  width: auto;
  filter: none !important;
}

/* Hide WHMCS Development License yellow bar (staging clutter on every page) */
body.sky-ca-page .primary-content > div[style*="ffffd2"],
body.sky-auth-page .primary-content > div[style*="ffffd2"],
body.sky-ca-page #main-body > div[style*="ffffd2"],
body.sky-auth-page #main-body > div[style*="ffffd2"],
body.sky-ca-page .primary-content > div[style*="ffffd2"][style*="text-align:center"],
body.sky-auth-page .primary-content > div[style*="ffffd2"][style*="text-align:center"],
#main-body .primary-content > div[style*="background-color:#ffffd2"],
#main-body .primary-content > div[style*="background-color: #ffffd2"] {
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
}

/* ——— Logged-in client: Bright Sky chrome layout ——— */
/* Kill Nexus html/body navy canvas (shows as black band behind home cards) */
html:has(body.sky-ca-page),
html:has(body.sky-auth-page),
html:has(body.ca-body) {
  background: #f5f8fc !important;
  background-color: #f5f8fc !important;
}
body.sky-ca-page,
body.ca-body {
  background:
    radial-gradient(ellipse 70% 50% at 100% -10%, rgba(40,163,252,.12), transparent 50%),
    radial-gradient(ellipse 50% 40% at 0% 100%, rgba(63,30,189,.08), transparent 45%),
    #f5f8fc !important;
  padding-bottom: 0 !important;
  height: auto !important;
  min-height: 100vh !important;
}
body.sky-ca-page #footer,
body.sky-ca-page footer.footer {
  display: none !important;
}
/* Hide WHMCS “Powered by WHMCompleteSolution” — never on Bright Sky surfaces */
body.sky-ca-page .primary-content > p[style*="text-align:center"],
body.sky-ca-page .primary-content > p[style*="text-align: center"],
body.sky-order-page .primary-content > p[style*="text-align:center"],
body.sky-order-page .primary-content > p[style*="text-align: center"],
body.sky-auth-page .primary-content > p[style*="text-align:center"],
body.sky-auth-page .primary-content > p[style*="text-align: center"],
body.sky-order-page p[style*="text-align:center"]:has(a[href*="whmcs.com"]),
body.sky-ca-page p[style*="text-align:center"]:has(a[href*="whmcs.com"]),
#main-body .primary-content > p[style*="text-align:center"]:has(a[href*="whmcs.com"]),
#main-body .primary-content > p[style*="text-align: center"]:has(a[href*="whmcs.com"]) {
  display: none !important;
}
/* Dev license yellow bar on order flow too */
body.sky-order-page .primary-content > div[style*="ffffd2"],
body.sky-order-page #main-body > div[style*="ffffd2"],
body.sky-order-page .primary-content > div[style*="255, 255, 210"],
body.sky-order-page .primary-content > div[style*="255,255,210"] {
  display: none !important;
}
body.sky-ca-page .sky-ca-footer {
  display: block;
  margin: 0;
  padding: 16px 28px;
  background:
    radial-gradient(ellipse 50% 80% at 10% 0%, rgba(40,163,252,.22), transparent 55%),
    linear-gradient(90deg, #13112F, #1a1640 55%, #0a0918);
  color: rgba(255,255,255,.72);
  font-size: 12.5px;
  font-weight: 650;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,.06);
}
body.sky-ca-page .sky-ca-footer-inner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
body.sky-ca-page .sky-ca-footer strong {
  color: #fff;
  font-weight: 800;
}
body.sky-ca-page .sky-ca-footer-dot {
  width: 4px; height: 4px; border-radius: 50%;
  background: rgba(40,163,252,.85);
  box-shadow: 0 0 0 3px rgba(40,163,252,.15);
}

body.sky-ca-page #main-body.sky-ca-main,
body.sky-ca-page #main-body.sky-ca-main > div,
body.sky-ca-page #main-body.sky-ca-main .row,
body.sky-ca-page #main-body.sky-ca-main .primary-content {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}

body.sky-ca-page .ca-main .tiles .tile,
body.sky-ca-page .ca-main .card,
body.sky-ca-page .ca-main .panel {
  border-radius: 20px !important;
  border: 1px solid rgba(19,17,47,.09) !important;
  box-shadow: 0 14px 40px rgba(19,17,47,.08) !important;
}

body.sky-ca-page .btn-primary {
  background: linear-gradient(90deg, #1295FC, #0E8DDB) !important;
  border: 0 !important;
  border-radius: 999px !important;
  font-weight: 800 !important;
}

body.sky-ca-page .ca-menu-btn { display: none; }
@media (max-width: 980px) {
  body.sky-ca-page .ca-layout { grid-template-columns: 1fr !important; }
  body.sky-ca-page .ca-sidebar {
    position: fixed; left: 0; top: var(--ca-top, 64px); z-index: 40;
    transform: translateX(-105%); transition: transform .25s ease;
    box-shadow: 0 20px 50px rgba(19,17,47,.18);
  }
  body.sky-ca-page .ca-sidebar.open { transform: translateX(0); }
  body.sky-ca-page .ca-menu-btn { display: inline-flex !important; }
  body.sky-ca-page .ca-brand { width: auto; padding-left: 0; }
  body.sky-ca-page .ca-search { display: none; }
}

@media (max-width: 900px) {
  body.sky-auth-page .auth-shell {
    grid-template-columns: 1fr !important;
  }
  body.sky-auth-page .auth-brand {
    min-height: auto;
    padding: 28px 24px !important;
  }
}

/* ——— Client home polish reinforce (chips / badges / greeting) ——— */
body.sky-ca-page .ca-page-head .ca-kicker {
  margin: 0 0 2px;
  font-size: 12.5px;
  font-weight: 750;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #0e8ddb;
}
body.sky-ca-page .ca-page-head h1 {
  font-size: clamp(20px, 1.8vw, 24px) !important;
  margin: 0;
}
body.sky-ca-page a:hover,
body.sky-ca-page .qa-item:hover,
body.sky-ca-page .qa-item:hover span,
body.sky-ca-page .ca-link:hover,
body.sky-ca-page .sky-chip-link:hover {
  text-decoration: none !important;
}
body.sky-ca-page .sky-chip-link {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 12px 0 14px;
  border-radius: 999px;
  border: 1.5px solid rgba(14, 141, 219, .28);
  background: linear-gradient(180deg, #f0f9ff, #e8f4ff);
  color: #0e8ddb !important;
  font-size: 12.5px;
  font-weight: 800;
  text-decoration: none !important;
  transition: background .18s, border-color .18s, box-shadow .18s, transform .18s;
}
body.sky-ca-page .sky-chip-link:hover {
  background: linear-gradient(180deg, #e0f2fe, #dbeafe);
  border-color: rgba(14, 141, 219, .55);
  box-shadow: 0 6px 16px rgba(14, 141, 219, .18);
  transform: translateY(-1px);
  color: #0369a1 !important;
}
body.sky-ca-page .sky-chip-link.has-alert {
  border-color: rgba(185, 28, 28, .35);
  background: linear-gradient(180deg, #fff7ed, #ffedd5);
  color: #c2410c !important;
}
body.sky-ca-page .sky-chip-count {
  display: inline-grid !important;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: #0e8ddb;
  color: #fff !important;
  font-size: 11px;
  font-weight: 800;
  font-style: normal;
  line-height: 1;
}
body.sky-ca-page .sky-chip-count.is-zero {
  background: #94a3b8;
}
body.sky-ca-page .sky-chip-link.has-alert .sky-chip-count {
  background: #dc2626;
}
body.sky-ca-page .ca-nav a .badge {
  display: inline-grid !important;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}
body.sky-ca-page .ca-nav a .badge.is-count { background: #ede9fe; color: #6d28d9; }
body.sky-ca-page .ca-nav a .badge.is-alert { background: #fee2e2; color: #b91c1c; }
body.sky-ca-page .ca-nav a .badge.is-zero {
  background: #e2e8f0;
  color: #64748b;
}

/* ——— Full 13-point polish reinforce ——— */
body.sky-ca-page #footer,
body.sky-ca-page footer.footer {
  display: none !important;
}
body.sky-ca-page .ca-sidebar {
  isolation: isolate;
  z-index: 2;
}
body.sky-ca-page .ca-side-card {
  position: relative;
  z-index: 3;
  isolation: isolate;
}
body.sky-ca-page .ca-nav-label {
  color: #0f172a !important;
  font-size: 11px !important;
  letter-spacing: .12em !important;
}
body.sky-ca-page .ca-nav a:not(.active) .ni.ni-home { background: #e0f2fe !important; color: #0284c7 !important; }
body.sky-ca-page .ca-nav a:not(.active) .ni.ni-services { background: #ede9fe !important; color: #6d28d9 !important; }
body.sky-ca-page .ca-nav a:not(.active) .ni.ni-domains { background: #d1fae5 !important; color: #047857 !important; }
body.sky-ca-page .ca-nav a:not(.active) .ni.ni-billing { background: #ffedd5 !important; color: #c2410c !important; }
body.sky-ca-page .ca-nav a:not(.active) .ni.ni-support { background: #e0e7ff !important; color: #4338ca !important; }
body.sky-ca-page .ca-nav a:not(.active) .ni.ni-account { background: #fce7f3 !important; color: #be185d !important; }
body.sky-ca-page .ca-nav a:not(.active) .ni.ni-order { background: #e0f2fe !important; color: #0369a1 !important; }
body.sky-ca-page .ca-nav a:not(.active) .ni.ni-logout { background: #f1f5f9 !important; color: #64748b !important; }
body.sky-ca-page .ca-nav a:not(.active) .ni i { color: inherit !important; }

body.sky-ca-page .stat-card.tone-blue::before { background: #0e8ddb !important; }
body.sky-ca-page .stat-card.tone-green::before { background: #059669 !important; }
body.sky-ca-page .stat-card.tone-amber::before { background: #d97706 !important; }
body.sky-ca-page .stat-card.tone-purple::before { background: #7c3aed !important; }
body.sky-ca-page .stat-card .val { font-size: 26px !important; }
body.sky-ca-page .stat-card .val.val-sm { font-size: 16px !important; }

body.sky-ca-page .qa-item .qi {
  background: #e0f2fe !important;
  color: #0284c7 !important;
  box-shadow: none !important;
}
body.sky-ca-page .qa-item .qi.qi-blue { background: #e0f2fe !important; color: #0284c7 !important; }
body.sky-ca-page .qa-item .qi.qi-green { background: #d1fae5 !important; color: #047857 !important; }
body.sky-ca-page .qa-item .qi.qi-purple { background: #ede9fe !important; color: #6d28d9 !important; }
body.sky-ca-page .qa-item .qi.qi-amber { background: #ffedd5 !important; color: #c2410c !important; }

body.sky-ca-page .list-row .ico,
body.sky-ca-page .list-row .ico.flat {
  background: #ede9fe !important;
  box-shadow: none !important;
  color: #6d28d9 !important;
}
body.sky-ca-page .list-row .ico.warn { background: #ffedd5 !important; color: #c2410c !important; }
body.sky-ca-page .list-row .ico.ok { background: #d1fae5 !important; color: #059669 !important; }
body.sky-ca-page .list-row .ico.teal { background: #e0f2fe !important; color: #0e7490 !important; }

body.sky-ca-page .pill-ok {
  background: #ecfdf5 !important;
  color: #047857 !important;
  box-shadow: inset 0 0 0 1px rgba(5,150,105,.22);
}
body.sky-ca-page .pill-bolt {
  background: linear-gradient(105deg, #86029F, #3F1EBD) !important;
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(63,30,189,.35) !important;
}
body.sky-ca-page .pill-new {
  background: linear-gradient(105deg, #0E8DDB, #28A3FC) !important;
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(14,141,219,.35) !important;
}

body.sky-ca-page .ca-search {
  flex: 1 1 360px !important;
  min-width: 280px !important;
  max-width: 560px !important;
  height: 46px !important;
}
body.sky-ca-page .ca-main { padding: 22px 28px 40px !important; }
body.sky-ca-page .ca-card-bd { padding: 12px 16px !important; }
body.sky-ca-page .ca-card-hd { padding: 12px 16px !important; }

body.sky-ca-page .sky-verify-alert,
body.sky-ca-page .ca-alert {
  align-items: center !important;
  overflow: hidden;
}
body.sky-ca-page .sky-verify-alert .btn-resend-verify-email,
body.sky-ca-page .ca-alert .ca-alert-actions .btn {
  height: 36px !important;
  padding: 0 14px !important;
  font-size: 12.5px !important;
  border-radius: 10px !important;
}

/* Service row badges + urgent verify */
body.sky-ca-page .pill-cat {
  background: #e0f2fe !important;
  color: #0369a1 !important;
}
body.sky-ca-page .pill-pkg {
  background: #ede9fe !important;
  color: #6d28d9 !important;
}
body.sky-ca-page .sky-svc-domain {
  display: block !important;
  margin-top: 2px;
}
body.sky-ca-page .ca-alert.urgent,
body.sky-ca-page .sky-verify-alert {
  background: linear-gradient(105deg, #fff7ed 0%, #ffedd5 45%, #fffbeb 100%) !important;
  color: #9a3412 !important;
  border: 2px solid #ea580c !important;
  box-shadow: 0 0 0 4px rgba(234,88,12,.12), 0 14px 32px rgba(234,88,12,.18) !important;
}
body.sky-ca-page .sky-verify-alert .svg-ico {
  background: linear-gradient(145deg, #ea580c, #c2410c) !important;
  color: #fff !important;
}
body.sky-ca-page .sky-verify-alert .btn-resend-verify-email,
body.sky-ca-page .sky-verify-alert .btn-alert {
  background: linear-gradient(105deg, #ea580c, #c2410c) !important;
  color: #fff !important;
  border: 0 !important;
}

/* Service row + softer verify */
body.sky-ca-page .sky-svc-item {
  border: 1px solid rgba(14,141,219,.12) !important;
  background: linear-gradient(180deg, #fff 0%, #f7fbff 100%) !important;
}
body.sky-ca-page .ca-alert.urgent,
body.sky-ca-page .sky-verify-alert {
  border: 1px solid rgba(234,88,12,.28) !important;
  box-shadow: 0 8px 22px rgba(234,88,12,.08) !important;
  animation: none !important;
}
body.sky-ca-page .sky-verify-close {
  width: 36px !important; height: 36px !important;
  border-radius: 50% !important;
  padding: 0 !important;
  display: grid !important;
  place-items: center !important;
  font-size: 0 !important;
  line-height: 0 !important;
}
