/* SiteChai native WHMCS client area, 4.6.
   WHMCS owns all live menus, dashboard panels, forms and module output.
   This stylesheet changes presentation only and keeps module boundaries intact. */
:root {
  color-scheme: light;
  --sitechai-blue: #1c5fa8;
  --sitechai-blue-dark: #164d8c;
  --sitechai-navy: #12365c;
  --sitechai-ink: #102b49;
  --sitechai-muted: #5d718b;
  --sitechai-border: #e2e7ed;
  --sitechai-background: #f6f7f9;
  --sitechai-surface: #fff;
  --sitechai-soft-blue: #edf5ff;
  --sitechai-radius: 6px;
  --sitechai-sidebar-width: 248px;
  --sitechai-shadow: none;
}
body.sc-portal { margin: 0; background: var(--sitechai-background); color: var(--sitechai-ink); font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 14px; line-height: 1.5; }
.sc-icon { display: inline-block; flex: 0 0 auto; width: 18px; height: 18px; vertical-align: middle; }
.sc-control-icon { width: 20px; height: 20px; }
.sc-workspace-icon, .sc-foot-icon { width: 16px; height: 16px; }
/* The original icon element stays in place for native links and listeners. */
i.sc-vector-icon { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; line-height: 1; vertical-align: -3px; font-style: normal; }
i.sc-vector-icon::before { display: none !important; }
i.sc-vector-icon > svg { display: block; flex: 0 0 auto; width: 100%; height: 100%; }
.sc-sidebar i.sc-vector-icon.sc-nav-icon { width: 18px; height: 18px; }
.sc-shell { min-height: 100vh; }
.sc-shell-main { display: flex; flex-direction: column; min-width: 0; min-height: 100vh; margin-left: var(--sitechai-sidebar-width); }
.sc-skip-link { position: fixed; top: 8px; left: 12px; z-index: 1200; padding: 12px 18px; transform: translateY(-150%); border-radius: 4px; background: #fff; color: var(--sitechai-blue-dark); }
.sc-skip-link:focus { transform: none; }

/* Light navigation keeps every native and extension-provided menu entry. */
.sc-sidebar { position: fixed; inset: 0 auto 0 0; z-index: 1040; display: flex; flex-direction: column; width: var(--sitechai-sidebar-width); padding: 26px 16px 20px; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; border-right: 1px solid var(--sitechai-border); background: #fff; color: #526b86; scrollbar-width: thin; scrollbar-color: #d5e1ef #fff; }
.sc-sidebar-brand-row { position: relative; }
.sc-sidebar-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; padding: 0 12px 25px; text-decoration: none; }
.sc-sidebar-brand:hover { text-decoration: none; }
.sc-brand-picture { display: block; width: 180px; max-width: 100%; }
.sc-brand-logo { display: block; width: 180px; max-width: 100%; height: 50px; object-fit: cover; object-position: center; }
/* Density-matched horizontal sources keep the artwork sharp at every width. */
@media (min-width: 992px) {
  .sc-brand-logo { object-fit: contain; }
}
.sc-brand-caption { padding-left: 8px; color: var(--sitechai-muted); font-size: 10px; font-weight: 600; letter-spacing: 1.7px; }
.sc-brand-icon { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 4px; background: var(--sitechai-blue); color: #fff; font-size: 12px; font-weight: 700; }
.sc-brand-name { color: var(--sitechai-ink); font-size: 25px; font-weight: 700; letter-spacing: -.9px; line-height: 1.3; }
.sc-sidebar-nav { margin-top: 7px; }
.sc-nav-list { padding: 0; margin: 0; list-style: none; }
.sc-nav-item { margin: 3px 0; }
.sc-nav-link, .sc-nav-summary { display: flex; align-items: center; gap: 11px; min-height: 44px; padding: 11px 12px; border-radius: 7px; background: transparent; color: #425d7b; font-size: 13px; font-weight: 500; line-height: 20px; text-align: left; text-decoration: none; cursor: pointer; transition: background-color 150ms ease, color 150ms ease; }
.sc-nav-label { min-width: 0; overflow-wrap: anywhere; }
.sc-nav-icon { flex: 0 0 18px; width: 18px; color: #3e658e; text-align: center; font-size: 16px; }
.sc-nav-link:hover, .sc-nav-summary:hover { background: #f5f8fc; color: var(--sitechai-blue); text-decoration: none; }
.sc-sidebar .sc-nav-item.active > .sc-nav-link, .sc-sidebar .sc-nav-item.active > .sc-nav-group > .sc-nav-summary, .sc-sidebar .sc-nav-link[aria-current="page"] { background: var(--sitechai-blue); color: #fff; font-weight: 600; box-shadow: none; }
.sc-sidebar .sc-nav-item.active > .sc-nav-link > .sc-nav-icon, .sc-sidebar .sc-nav-item.active > .sc-nav-group > .sc-nav-summary > .sc-nav-icon, .sc-sidebar .sc-nav-link[aria-current="page"] > .sc-nav-icon { color: #fff; }
.sc-nav-summary { list-style: none; }
.sc-nav-summary::-webkit-details-marker { display: none; }
.sc-nav-chevron { flex: 0 0 14px; width: 14px; height: 14px; margin-left: auto; color: inherit; transition: transform 150ms ease; }
.sc-nav-group[open] > .sc-nav-summary > .sc-nav-chevron { transform: rotate(180deg); }
.sc-nav-children { padding: 3px 0 3px 9px; margin: 0 0 7px 23px; border-left: 1px solid var(--sitechai-border); }
.sc-nav-children .sc-nav-link, .sc-nav-children .sc-nav-summary { min-height: 36px; padding: 8px 9px; gap: 8px; border-radius: 6px; font-size: 12px; font-weight: 400; }
/* Nested navigation uses text labels and a quiet guide line, without icon bullets. */
.sc-nav-children .sc-nav-icon { display: none; }
.sc-nav-children .sc-nav-children { margin-left: 6px; padding-left: 9px; }
.sc-nav-badge { margin-left: auto; padding: 2px 5px; border-radius: 4px; background: #f0f3f7; color: #536983; font-size: 10px; font-weight: 500; }
.sc-sidebar .sc-nav-item.active > .sc-nav-link > .sc-nav-badge, .sc-sidebar .sc-nav-item.active > .sc-nav-group > .sc-nav-summary > .sc-nav-badge { background: rgba(255,255,255,.18); color: #fff; }
.sc-nav-item.disabled > .sc-nav-link, .sc-nav-link[aria-disabled="true"] { color: #929eae; cursor: default; }
.sc-nav-divider { margin: 14px 12px; border-top: 1px solid var(--sitechai-border); }
.sc-sidebar-bottom { margin-top: auto; padding: 26px 2px 0; }
.sc-workspace { display: flex; align-items: center; gap: 8px; min-width: 0; margin-bottom: 15px; padding: 12px 8px; border: 0; border-top: 1px solid var(--sitechai-border); border-radius: 0; background: transparent; }
.sc-workspace-mark { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 30px; height: 32px; border-radius: 6px; background: #e6f0fc; color: var(--sitechai-blue); font-size: 12px; }
.sc-workspace-label { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.sc-workspace-label a { text-decoration: none; }
.sc-workspace-label strong { display: block; color: #3e526e; font-size: 12px; font-weight: 500; }
.sc-workspace-label small { display: block; margin-top: 1px; color: var(--sitechai-muted); font-size: 10px; }
.sc-workspace-switch { flex: 0 0 20px; padding: 4px 0; color: #7b879b; font-size: 11px; text-align: center; }
.sc-workspace-switch:hover { color: var(--sitechai-blue); }
.sc-sidebar-foot { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 10px; color: #496d93; font-size: 12px; text-decoration: none; }
.sc-sidebar-foot > span { flex: 1 1 auto; }
.sc-sidebar-foot > i { font-size: 12px; }
.sc-sidebar-foot:hover { color: var(--sitechai-blue); text-decoration: none; }
.sc-sidebar-caption { margin: 16px 0 0; color: #8a96a8; font-size: 10px; text-align: center; }
.sc-sidebar-close, .sc-menu-toggle, .sc-overlay { display: none; }
.sc-overlay[hidden] { display: none !important; }

/* Quiet white topbar retains native search, notifications, cart and account actions. */
#header.sc-topbar { position: sticky; top: 0; z-index: 1030; display: flex; align-items: center; gap: 20px; min-height: 70px; padding: 12px 30px; border-top: 0; border-bottom: 1px solid var(--sitechai-border); background: #fff; }
.sc-topbar-start, .sc-topbar-end { display: flex; align-items: center; gap: 13px; min-width: 0; }
.sc-topbar-start { flex: 1 1 auto; }
.sc-topbar-end { flex: 0 1 auto; }
.sc-workspace-breadcrumbs { min-width: 0; color: #8895aa; font-size: 12px; }
.sc-workspace-breadcrumbs .breadcrumb { display: flex; flex-wrap: wrap; padding: 0; margin: 0; border: 0; background: transparent; font-size: 12px; }
.sc-workspace-breadcrumbs .breadcrumb-item, .sc-workspace-breadcrumbs .breadcrumb-item a { color: #7a899f; }
.sc-workspace-breadcrumbs .breadcrumb-item.active { color: #445873; }
.sc-workspace-breadcrumbs .breadcrumb-item + .breadcrumb-item { padding-left: 9px; }
.sc-workspace-breadcrumbs .breadcrumb-item + .breadcrumb-item::before { padding-right: 9px; color: #b1bdcf; }
.sc-search { display: flex; align-items: center; flex: 0 1 250px; min-width: 130px; margin: 0; padding: 2px 9px; border: 1px solid var(--sitechai-border); border-radius: 6px; background: #fafbfc; }
.sc-search input { width: 100%; min-width: 0; height: 34px; padding: 8px 0 8px 6px; border: 0; border-radius: 6px; background: transparent; color: var(--sitechai-ink); font: inherit; font-size: 12px; }
.sc-search input::placeholder { color: #6e8198; opacity: 1; }
.sc-search button { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 22px; width: 22px; height: 34px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: #527ca8; font-size: 13px; }
.sc-search:focus-within { border-color: #7ba7d7; box-shadow: 0 0 0 3px rgba(28,95,168,.1); }
.sc-search input:focus { outline: 0; }
#header.sc-topbar .sc-topbar-end { overflow: visible; }
#header.sc-topbar #accountNotifications.sc-notifications { position: relative; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 44px; width: 44px; height: 44px; min-height: 44px; margin: 0; padding: 0; overflow: visible; border: 0; border-radius: 6px; background: #fff; color: var(--sitechai-blue); line-height: 1; box-shadow: none; }
#header.sc-topbar #accountNotifications.sc-notifications:hover { background: #f3f5f7; color: var(--sitechai-blue); }
#header.sc-topbar #accountNotifications:focus-visible { outline: 2px solid var(--sitechai-blue); outline-offset: 2px; }
#header.sc-topbar .sc-notification-icon { display: block; flex: 0 0 20px; width: 20px; height: 20px; overflow: visible; }
#header.sc-topbar #accountNotifications .sc-notification-count { position: absolute; inset: auto; top: 1px; right: 0; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; min-width: 18px; height: 18px; padding: 0 4px; border: 2px solid #fff; border-radius: 9px; background: #c63d4d; color: #fff; font-size: 9px; font-weight: 600; line-height: 1; white-space: nowrap; transform: none; }
/* Keep the live WHMCS counter in normal flow, away from the cart glyph. */
#header.sc-topbar .sc-cart { position: relative; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; gap: 8px; width: auto; min-width: 76px; height: auto; min-height: 44px; margin: 0; padding: 9px 11px; overflow: visible; border: 1px solid var(--sitechai-border); border-radius: 6px; background: #fff; color: var(--sitechai-blue-dark); line-height: 1.4; white-space: nowrap; text-decoration: none; box-shadow: none; }
#header.sc-topbar .sc-cart:hover { border-color: #9ab3cf; background: #f7f9fb; color: var(--sitechai-blue-dark); }
#header.sc-topbar .sc-cart:focus-visible { outline: 3px solid #83b1de; outline-offset: 3px; }
#header.sc-topbar .sc-cart .sc-cart-icon { position: static; display: block; flex: 0 0 20px; width: 20px; height: 20px; margin: 0; overflow: visible; }
#header.sc-topbar .sc-cart .sc-cart-label { position: static; font-size: 12px; font-weight: 500; }
#header.sc-topbar .sc-cart #cartItemCount { position: static; inset: auto; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: auto; min-width: 20px; height: auto; min-height: 20px; margin: 0; padding: 2px 5px; border: 0; border-radius: 4px; background: #dfebfa; color: var(--sitechai-blue-dark); font-size: 11px; font-weight: 600; line-height: 1.4; transform: none; }
.sc-account-nav > .sc-nav-list { display: flex; align-items: center; gap: 5px; }
.sc-account-nav .sc-nav-item { position: relative; }
.sc-account-nav .sc-nav-link, .sc-account-nav .sc-nav-summary { min-height: 36px; padding: 8px 9px; gap: 7px; color: #3e526e; font-size: 12px; }
.sc-account-nav .sc-nav-icon { flex-basis: 18px; width: 18px; height: 18px; color: #5d718b; font-size: 16px; }
.sc-account-nav .sc-nav-link:hover, .sc-account-nav .sc-nav-summary:hover, .sc-account-nav .sc-nav-item.active > .sc-nav-link { background: var(--sitechai-soft-blue); color: var(--sitechai-blue-dark); }
.sc-account-nav > .sc-nav-list > .sc-nav-item > .sc-nav-group > .sc-nav-children { position: absolute; top: calc(100% + 8px); right: 0; z-index: 1045; width: 240px; max-width: calc(100vw - 36px); max-height: 70vh; overflow-y: auto; padding: 8px; margin: 0; border: 1px solid var(--sitechai-border); border-radius: 10px; background: #fff; box-shadow: 0 4px 14px rgba(16,31,59,.08); }
.sc-account-nav .sc-nav-children .sc-nav-children { border-left-color: var(--sitechai-border); }
.sc-account-nav .sc-nav-badge { background: var(--sitechai-soft-blue); color: var(--sitechai-blue-dark); }
.sc-account-nav .sc-nav-divider { border-color: var(--sitechai-border); }
.sc-account-nav .sc-nav-link[aria-disabled="true"] { color: #929eae; }

/* Live account credit and the installed Add Funds destination share one control. */
.sc-account-funds { display: inline-flex; flex-wrap: wrap; align-items: center; flex: 0 1 auto; min-width: 0; max-width: 100%; min-height: 38px; border: 1px solid var(--sitechai-border); border-radius: 6px; background: #fff; }
.sc-account-balance { display: inline-flex; flex: 1 0 auto; align-items: center; gap: 7px; min-width: 0; max-width: 100%; padding: 8px 10px; color: #34465d; font-size: 12px; }
.sc-account-balance strong { min-width: 0; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; overflow-wrap: normal; word-break: normal; }
.sc-balance-icon { flex: 0 0 16px; width: 16px; height: 16px; color: #64748b; }
.sc-account-funding { display: inline-flex; flex: 0 0 auto; margin-left: auto; }
.sc-account-funding > .sc-page-shortcut { gap: 5px; min-height: 36px; margin: 0; padding: 7px 10px; border: 0; border-left: 1px solid var(--sitechai-border); border-radius: 0 5px 5px 0; background: #fafbfc; color: var(--sitechai-blue); font-size: 12px; font-weight: 500; white-space: nowrap; }
.sc-account-funding:first-child > .sc-page-shortcut { border-left: 0; border-radius: 5px; }
.sc-account-funding > .sc-page-shortcut:hover { background: #edf4fb; color: var(--sitechai-blue-dark); }
.sc-account-funding .sc-action-icon { width: 16px; height: 16px; }

/* Persistent page actions use the same enabled destinations as the native menu. */
.sc-page-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-width: 0; margin: 0 0 24px; padding-bottom: 20px; border-bottom: 1px solid var(--sitechai-border); }
.sc-back-link { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; gap: 9px; min-height: 42px; padding: 10px 16px; border: 1px solid #cfdeef; border-radius: 7px; background: #fff; color: var(--sitechai-blue-dark); font-size: 13px; font-weight: 600; line-height: 1.5; text-decoration: none; }
.sc-back-link:hover { border-color: #9fb9d8; background: #f5f8fc; color: var(--sitechai-blue-dark); text-decoration: none; }
.sc-back-link > i { font-size: 12px; }
.sc-page-shortcuts { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; min-width: 0; }
.sc-page-shortcuts:empty { display: none; }
.sc-page-shortcut { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 42px; padding: 10px 16px; border: 1px solid #cbdff4; border-radius: 7px; background: #fff; color: var(--sitechai-blue-dark); font-size: 13px; font-weight: 600; line-height: 1.5; text-decoration: none; text-align: center; overflow-wrap: anywhere; }
.sc-page-shortcut:hover { border-color: #bdd1e7; background: var(--sitechai-soft-blue); color: var(--sitechai-blue-dark); text-decoration: none; }
.sc-page-shortcut > i { flex: 0 0 auto; font-size: 13px; }
.sc-page-shortcut-order { border-color: var(--sitechai-blue); background: var(--sitechai-blue); color: #fff; box-shadow: none; }
.sc-page-shortcut-order:hover { border-color: var(--sitechai-blue-dark); background: var(--sitechai-blue-dark); color: #fff; }
.sc-page-shortcut-order .sc-nav-badge { background: rgba(255,255,255,.18); color: #fff; }

/* Preserve the complete native context rail on every service/module page. */
#main-body.sc-main { flex: 1 0 auto; width: 100%; max-width: 1440px; margin: 0 auto; padding: 28px 30px 20px; }
.sc-main > .sc-content-container { width: 100%; max-width: none; margin: 0; padding: 0; }
.sc-native-layout, .sc-content-row { display: flex; flex-wrap: nowrap; align-items: flex-start; gap: 22px; margin: 0; }
.sc-native-content, .sc-primary-content { order: 1; flex: 1 1 0; width: 0; max-width: 100%; min-width: 0; padding: 0; }
.sc-context-sidebar { order: 2; flex: 0 0 250px; width: 250px; max-width: 250px; min-width: 0; padding: 0; }
.sc-native-content > .header-lined { margin: 0 0 24px; padding-bottom: 0; border: 0; }
.sc-native-content > .header-lined h1 { margin: 0; border: 0; color: var(--sitechai-ink); font-family: inherit; font-size: 25px; font-weight: 650; line-height: 1.3; letter-spacing: -.6px; }
.sc-native-content > .header-lined h1 small { display: block; margin-top: 7px; color: var(--sitechai-muted); font-size: 13px; font-weight: 400; line-height: 1.6; letter-spacing: 0; }
.sc-native-content > .header-lined .breadcrumb { margin: 10px 0 0; padding: 0; background: transparent; font-size: 12px; }
.sc-context-sidebar .sidebar > .card { margin-bottom: 18px; border: 1px solid var(--sitechai-border); border-radius: var(--sitechai-radius); background: #fff; box-shadow: var(--sitechai-shadow); }
.sc-context-sidebar .sidebar > .card > .card-header { padding: 14px 16px; border-bottom: 1px solid var(--sitechai-border); border-radius: 5px 5px 0 0; background: #fafbfc; color: var(--sitechai-ink); }
.sc-context-sidebar .card-header .card-title { margin: 0; color: var(--sitechai-ink); font-size: 13px; font-weight: 600; line-height: 1.5; }
.sc-context-sidebar .card-header .card-title > i { color: #64748b; }
.sc-context-sidebar .card-sidebar > .collapsable-card-body > .card-body { padding: 18px; color: var(--sitechai-muted); font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; }
.sc-context-sidebar .card-sidebar > .collapsable-card-body > .list-group > .list-group-item { padding: 11px 18px; border-color: #f0f2f6; background: #fff; color: #445873; font-size: 12px; }
.sc-context-sidebar .sidebar-menu-item-wrapper, .sc-context-sidebar .sidebar-menu-item-label { min-width: 0; }
.sc-context-sidebar .sidebar-menu-item-label { overflow-wrap: anywhere; }
.sc-context-sidebar .list-group-item .badge { flex-shrink: 0; }
.sc-context-sidebar .card-sidebar > .collapsable-card-body > .list-group > a.list-group-item:hover { background: #f7f9fc; color: var(--sitechai-blue); }
.sc-context-sidebar .card-sidebar > .collapsable-card-body > .list-group > .list-group-item.active { border-color: #dce8f4; background: var(--sitechai-soft-blue); color: var(--sitechai-blue-dark); font-weight: 600; }
.sc-context-sidebar .card-sidebar > .collapsable-card-body > .list-group > .list-group-item.disabled { background: #f7f9fc; color: #929eae; }
.sc-context-sidebar .card-sidebar > .card-footer { padding: 12px 18px; border-color: var(--sitechai-border); border-radius: 0 0 5px 5px; background: #fafbfc; }
/* Center native footer actions inside their full-height button box. */
.sc-context-sidebar .card-sidebar > .card-footer > .btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; padding: 8px 12px; border-radius: 6px; font-size: 12px; line-height: 18px; }
.sc-context-sidebar .card-sidebar > .card-footer > .btn > i { flex: 0 0 auto; line-height: 1; vertical-align: middle; }


.sc-context-sidebar .card-sidebar > .card-footer > .btn-primary,
.sc-context-sidebar .card-sidebar > .card-footer > .btn-success { border-color: var(--sitechai-blue); background: var(--sitechai-blue); color: #fff; }
.sc-context-sidebar .card-sidebar > .card-footer > .btn-primary:hover,
.sc-context-sidebar .card-sidebar > .card-footer > .btn-success:hover { border-color: var(--sitechai-blue-dark); background: var(--sitechai-blue-dark); }
.sc-sidebar .sc-nav-children .sc-nav-item.active > .sc-nav-link,
.sc-sidebar .sc-nav-children .sc-nav-item.active > .sc-nav-group > .sc-nav-summary { background: #e4effc; color: var(--sitechai-blue-dark); }
.sc-sidebar .sc-nav-children .sc-nav-item.active .sc-nav-badge { background: #d6e7fa; color: var(--sitechai-blue-dark); }

/* Clear account summaries use only the live counts WHMCS supplies. */
.sc-dashboard-heading h1 { margin: 0; color: var(--sitechai-ink); font-family: inherit; font-size: 24px; font-weight: 600; line-height: 1.35; letter-spacing: -.35px; }
.sc-dashboard-heading p { margin: 5px 0 0; color: var(--sitechai-muted); font-size: 13px; line-height: 1.65; }
.sc-dashboard-stats.tiles { margin: 0 0 22px !important; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.sc-dashboard-stats.tiles > .row { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; margin: 0; }
.sc-dashboard-stats .row > [class*="col-"] { width: auto; max-width: none; min-width: 0; padding: 0; }
.sc-dashboard-stats.tiles > .row > div > .tile { position: relative; display: flex; flex-direction: column; align-items: flex-start; min-width: 0; min-height: 118px; height: 100%; margin: 0; padding: 16px 18px; border: 1px solid var(--sitechai-border); border-radius: var(--sitechai-radius); background: #fff; color: var(--sitechai-ink); box-shadow: var(--sitechai-shadow); text-align: left; text-decoration: none; transition: border-color 150ms ease, background-color 150ms ease; }
.sc-dashboard-stats.tiles > .row > div > .tile:hover { border-color: #a9c7e8; background: #fafbfc; text-decoration: none; }
.sc-stat-icon-box { position: absolute; top: 16px; left: 18px; display: grid; place-items: center; width: 18px; height: 18px; border: 0; border-radius: 0; background: transparent; color: var(--sitechai-blue); }
.sc-stat-icon-box > .sc-stat-icon { position: static; width: 18px; height: 18px; color: inherit; }
.sc-dashboard-stats .tile .title { order: 1; display: flex; align-items: center; min-height: 18px; margin: 0 0 14px; padding: 0 0 0 28px; color: #385978; font-size: 13px; font-weight: 500; line-height: 1.45; text-transform: none; overflow-wrap: anywhere; }
.sc-dashboard-stats .tile .stat { order: 2; margin: 0; color: var(--sitechai-ink); font-family: inherit; font-size: 26px; font-weight: 600; line-height: 1.1; letter-spacing: -.4px; font-variant-numeric: tabular-nums; }
.sc-stat-caption { order: 3; margin-top: 5px; padding-right: 20px; color: var(--sitechai-muted); font-size: 11px; line-height: 1.4; }
.sc-stat-arrow { position: absolute; right: 16px; bottom: 16px; width: 16px; height: 16px; color: #527ca8; }
.sc-dashboard-stats .tile .highlight { display: none; }

/* Every native home panel is retained, with the live context cards alongside. */
.sc-dashboard-grid { min-width: 0; }
.sc-dashboard-has-rail { display: grid; grid-template-columns: minmax(0,1fr) 270px; align-items: start; gap: 20px; }
.sc-dashboard-rail { width: 100%; max-width: none; }
.sc-dashboard-panels { min-width: 0; }
.sc-dashboard-panels > .row { margin-right: -10px; margin-left: -10px; }
.sc-dashboard-panels > .row > [class*="col-"] { padding-right: 10px; padding-left: 10px; }
.sc-dashboard-has-rail .sc-dashboard-panels > .row > [class*="col-"] { flex: 0 0 100%; max-width: 100%; }
.sc-dashboard-panels > .row > div > .card { margin-bottom: 20px; border: 1px solid var(--sitechai-border); border-radius: var(--sitechai-radius); background: #fff; box-shadow: var(--sitechai-shadow); }
.sc-dashboard-panels > .row > div > .card > .card-header { padding: 13px 18px; border-bottom: 1px solid var(--sitechai-border); border-radius: 5px 5px 0 0; background: #fafbfc; }
.sc-dashboard-panels .card > .card-header > .card-title { margin: 0; color: var(--sitechai-ink); font-size: 14px; font-weight: 600; line-height: 1.7; }
.sc-dashboard-panels .card > .card-header .card-title > i { margin-right: 5px; color: #64748b; font-size: 12px; }
.sc-dashboard-panels .card > .card-header .card-title > .float-right > .btn { margin-left: 8px; padding: 3px 0 3px 8px; border: 0; border-radius: 6px; background: transparent; color: var(--sitechai-blue); font-size: 11px; font-weight: 500; }
.sc-dashboard-panels .card > .card-header .card-title > .float-right > .btn:hover { color: var(--sitechai-blue); }
.sc-dashboard-panels > .row > div > .card > .card-body { padding: 20px; color: var(--sitechai-muted); font-size: 13px; line-height: 1.75; }
.sc-dashboard-panels > .row > div > .card > .list-group > .list-group-item { padding: 14px 18px; border-color: #edf0f4; background: #fff; color: var(--sitechai-ink); font-size: 13px; line-height: 1.75; overflow-wrap: anywhere; }
.sc-dashboard-panels > .row > div > .card > .list-group > a.list-group-item:hover { background: #f8fafc; }
.sc-dashboard-panels > .row > div > .card > .list-group > .list-group-item.active { background: var(--sitechai-soft-blue); color: var(--sitechai-blue-dark); }
.sc-dashboard-panels > .row > div > .card > .list-group > .list-group-item:last-child { border-radius: 0 0 5px 5px; }
.sc-dashboard-panels > .row > div > .card > .card-footer { padding: 12px 20px; border-top-color: var(--sitechai-border); border-radius: 0 0 5px 5px; background: #fafbfc; color: var(--sitechai-muted); font-size: 12px; }
.sc-dashboard-panels > .row > div > .card > .card-footer a { color: var(--sitechai-blue); }
.sc-dashboard-panels > .row > div > .card > .list-group > .list-group-item .btn-default { padding: 7px 11px; border-color: #dbe2ea; background: #fff; color: var(--sitechai-blue-dark); font-size: 12px; font-weight: 500; }
.sc-dashboard-panels > .row > div > .card > .list-group > .list-group-item .btn-default:hover { border-color: #a5c4e5; background: #eaf3fe; }
.sc-dashboard-panels .card > .card-footer:empty { display: none; }

/* Keep native panel titles and their actions on complete lines at small widths. */
.sc-dashboard-panels .card > .card-header > .sc-home-panel-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.sc-home-panel-label { display: flex; flex: 1 1 180px; align-items: center; gap: 7px; min-width: 0; overflow-wrap: anywhere; }
.sc-home-panel-label > i, .sc-home-panel-label > .sc-panel-icon { flex: 0 0 auto; margin: 0; color: #64748b; }
.sc-home-panel-label > .sc-panel-icon { width: 18px; height: 18px; }
.sc-dashboard-panels .sc-home-panel-title > .float-right { order: 2; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; float: none !important; max-width: 100%; margin-left: auto; }
.sc-dashboard-panels .card > .card-header .sc-home-panel-title > .float-right > .btn { margin-left: 0; padding-left: 0; white-space: normal; }

/* Native quick-login menus open towards the service card, not outside the page. */
.sc-dashboard-panels [menuItemName="Active Products/Services"] .dropdown-menu { left: auto !important; right: 0; top: calc(100% + 3px) !important; transform: none !important; min-width: 180px; width: max-content; max-width: min(260px, calc(100vw - 48px)); padding: 5px; }
.sc-dashboard-panels [menuItemName="Active Products/Services"] .dropdown-menu .dropdown-item { min-height: 42px; padding: 9px 12px; font-size: 13px; line-height: 1.6; white-space: normal; overflow-wrap: anywhere; }
.sc-dashboard-panels [menuItemName="Active Products/Services"] .list-group-item .row > [class*="col-"] { min-width: 0; }

/* Compact invoice summary and aligned rows; all payment destinations stay native. */
.sc-dashboard-panels > .row > div > .sc-unpaid-card > .card-header { padding: 16px 18px; background: #fff; }
.sc-dashboard-panels .sc-unpaid-card > .card-header > .card-title { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; line-height: 1.4; }
.sc-panel-icon { width: 18px; height: 18px; margin-right: 2px; color: var(--sitechai-blue); }
.sc-dashboard-panels .sc-unpaid-card .sc-unpaid-panel-actions { order: 3; float: none !important; display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-left: auto; }
.sc-unpaid-panel-actions .sc-page-shortcut-masspay { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 7px 11px; border: 1px solid var(--sitechai-blue); border-radius: 5px; background: var(--sitechai-blue); color: #fff; font-size: 12px; font-weight: 600; line-height: 18px; text-decoration: none; }
.sc-unpaid-panel-actions .sc-page-shortcut-masspay:hover { border-color: var(--sitechai-blue-dark); background: var(--sitechai-blue-dark); }
.sc-unpaid-panel-actions .sc-page-shortcut-masspay .sc-action-icon { width: 16px; height: 16px; }
.sc-dashboard-panels .sc-unpaid-card > .card-header .card-title > .sc-unpaid-panel-actions > .btn { margin: 0; padding: 7px 0; font-size: 12px; }
.sc-dashboard-panels > .row > div > .sc-unpaid-card > .card-body { min-height: 0; padding: 16px 18px; background: #f8fafc; color: #52677f; font-size: 13px; line-height: 1.6; }
.sc-unpaid-card > .card-body > p:last-child { margin-bottom: 0; }
.sc-unpaid-card > .card-body > p:first-child { margin-top: 0; }
.sc-unpaid-invoice-list { border-top: 1px solid var(--sitechai-border); }
.sc-unpaid-invoice-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; min-width: 0; padding: 16px 18px; border-bottom: 1px solid #edf0f4; }
.sc-unpaid-invoice-row:last-child { border-bottom: 0; }
.sc-unpaid-invoice-info { flex: 1 1 200px; min-width: 0; }
.sc-unpaid-invoice-info > a { display: block; color: var(--sitechai-ink); font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.sc-unpaid-invoice-info > span { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 4px; color: var(--sitechai-muted); font-size: 12px; }
.sc-invoice-overdue { padding: 1px 6px; border-radius: 4px; background: #fff0ee; color: #a23c34; font-size: 11px; line-height: 18px; }
.sc-unpaid-invoice-action { display: flex; flex: 1 1 auto; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px 22px; min-width: 0; max-width: 100%; margin-left: auto; }
.sc-unpaid-invoice-action > strong { margin-left: auto; color: var(--sitechai-ink); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.sc-unpaid-invoice-action > .btn { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 6px; min-height: 34px; padding: 7px 10px; border: 1px solid #d5e0ec; border-radius: 5px; background: #fff; color: var(--sitechai-blue); font-size: 12px; line-height: 18px; }
.sc-unpaid-invoice-action > .btn:hover { border-color: #91b2d7; background: #f1f6fc; }
.sc-invoice-action-icon { width: 16px; height: 16px; }
.sc-unpaid-more { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; padding: 12px 18px; border-top: 1px solid var(--sitechai-border); color: var(--sitechai-muted); font-size: 12px; }
.sc-unpaid-more a { color: var(--sitechai-blue); }
/* Only parent template surfaces; no broad module, iframe or gateway selectors. */
#main-body .primary-content > .card,
#main-body .primary-content > form > .card,
#main-body .primary-content > .tab-content > .tab-pane > .card,
#main-body .primary-content > #registration > form > div > .card { border-color: var(--sitechai-border); border-radius: var(--sitechai-radius); box-shadow: var(--sitechai-shadow); }
#main-body .primary-content > .card > .card-header,
#main-body .primary-content > form > .card > .card-header,
#main-body .primary-content > .tab-content > .tab-pane > .card > .card-header { padding: 18px 20px; border-bottom-color: var(--sitechai-border); border-radius: 5px 5px 0 0; background: #fafbfc; }
#main-body .primary-content > .card > .card-header > .card-title { color: var(--sitechai-ink); font-size: 15px; font-weight: 650; }
#main-body .primary-content > .card > .card-footer { border-top-color: var(--sitechai-border); border-radius: 0 0 5px 5px; background: #fafbfc; }
#main-body .primary-content > .table-container { min-width: 0; padding: 16px; border: 1px solid var(--sitechai-border); border-radius: var(--sitechai-radius); background: #fff; box-shadow: var(--sitechai-shadow); }
#main-body .primary-content > .table-container .table-list > thead > tr > th { padding-top: 13px; padding-bottom: 13px; border-color: var(--sitechai-border); background: #f7f8fa; color: #496887; font-size: 12px; font-weight: 600; }
#main-body .primary-content > .table-container .table-list > tbody > tr > td { padding-top: 16px; padding-bottom: 16px; border-color: #edf1f7; color: var(--sitechai-ink); font-size: 12px; }
#main-body .primary-content > .table-container .table-list > tbody > tr:hover > td { background: #f8fafc; }
#main-body .primary-content > .table-container .table-list a { color: var(--sitechai-blue-dark); }
#main-body .primary-content > .table-container .dataTables_filter input { border-color: #d3e1f0; border-radius: 7px; }
/* Low specificity keeps parent validation and disabled states authoritative. */
:where(#main-body #frmEditContact, #main-body #frmAddContact, #main-body #frmUpdateDetails, #main-body #frmSubmitTicket, #main-body #registration, #main-body #tabChangepw, #main-body #tabNameservers, #main-body #tabAutorenew, #main-body #tabReglock, #main-body #tabRelease) .form-control { border-color: #cbdcee; border-radius: 7px; }
:where(#main-body #frmEditContact, #main-body #frmAddContact, #main-body #frmUpdateDetails, #main-body #frmSubmitTicket, #main-body #registration, #main-body #tabChangepw, #main-body #tabNameservers, #main-body #tabAutorenew, #main-body #tabReglock, #main-body #tabRelease) .form-control:focus { border-color: var(--sitechai-blue); box-shadow: 0 0 0 3px rgba(29,95,169,.15); }
:where(#main-body #frmEditContact, #main-body #frmAddContact, #main-body #frmUpdateDetails, #main-body #frmSubmitTicket, #main-body #registration, #main-body #tabChangepw, #main-body #tabNameservers, #main-body #tabAutorenew, #main-body #tabReglock, #main-body #tabRelease) .btn-primary { border-color: var(--sitechai-blue); border-radius: 7px; background: var(--sitechai-blue); color: #fff; }
#main-body #tabOverview > .nav-tabs { border-bottom-color: var(--sitechai-border); }
#main-body #tabOverview > .nav-tabs > .nav-item > .nav-link { color: var(--sitechai-muted); border-radius: 5px 5px 0 0; }
#main-body #tabOverview > .nav-tabs > .nav-item > .nav-link.active { color: var(--sitechai-blue-dark); background: #fff; border-color: var(--sitechai-border) var(--sitechai-border) transparent; }
#main-body #tabOverview > .product-details-tab-container { border-color: var(--sitechai-border); border-radius: 0 0 var(--sitechai-radius) var(--sitechai-radius); }

#footer.sc-footer { padding: 22px 36px; border: 0; background: transparent; color: #8391a6; font-size: 11px; }
.sc-footer > .sc-footer-inner { max-width: none; padding: 0; }
#footer.sc-footer .nav-link, #footer.sc-footer .btn { color: #6d7e97; font-size: 11px; }
.sc-footer p { margin-bottom: 0; }
.sc-sidebar a:focus-visible, .sc-sidebar summary:focus-visible, .sc-sidebar button:focus-visible,
.sc-topbar a:focus-visible, .sc-topbar button:focus-visible, .sc-topbar summary:focus-visible,
.sc-context-sidebar a:focus-visible, .sc-dashboard-stats .tile:focus-visible,
.sc-page-toolbar a:focus-visible,
.sc-dashboard-actions a:focus-visible, .sc-footer a:focus-visible, .sc-footer button:focus-visible { outline: 3px solid #75a8db; outline-offset: 3px; }

/* SiteChai brand surfaces, scoped away from third-party module internals. */
#header.sc-topbar { border-bottom-color: var(--sitechai-border); background: #fff; }
.sc-sidebar .sc-nav-icon { color: #3e658e; }
.sc-sidebar .sc-nav-link:hover, .sc-sidebar .sc-nav-summary:hover { background: var(--sitechai-soft-blue); }
.sc-sidebar .sc-nav-group[open] > .sc-nav-summary { background: var(--sitechai-soft-blue); color: var(--sitechai-blue-dark); }
.sc-sidebar .sc-nav-item.active > .sc-nav-group[open] > .sc-nav-summary { background: var(--sitechai-blue); color: #fff; }
.sc-context-sidebar .sidebar > .card > .card-header,
.sc-dashboard-panels > .row > div > .card > .card-header { background: #fafbfc; border-bottom-color: var(--sitechai-border); }
.sc-shell-main { background: var(--sitechai-background); }
.sc-sidebar { border-top: 0; }
.sc-sidebar-caption { color: #596e8a; font-size: 11px; }
.sc-topbar-label { display: block; color: var(--sitechai-ink); font-size: 13px; font-weight: 650; }
.sc-topbar-context { min-width: 0; }
.sc-workspace-breadcrumbs { margin-top: 3px; }
.sc-workspace-breadcrumbs:empty { display: none; }
.sc-page-toolbar { padding-bottom: 0; border-bottom: 0; }
.sc-native-content { padding: 24px; border: 1px solid var(--sitechai-border); border-radius: var(--sitechai-radius); background: #fff; box-shadow: var(--sitechai-shadow); }
.sc-dashboard-page .sc-native-content, .sc-cart-page .sc-native-content { padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.sc-dashboard-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 0; margin-bottom: 22px; border: 0; border-radius: 0; background: transparent; }
.sc-dashboard-heading > div { flex: 1 1 280px; min-width: 0; }
.sc-dashboard-heading > .sc-page-shortcuts { flex: 0 0 auto; }
.sc-dashboard-extras { margin-top: 28px; }
.sc-dashboard-extras:empty { display: none; }
.sc-dashboard-heading h1 { font-size: 24px; font-weight: 600; letter-spacing: -.35px; }
.sc-dashboard-heading p { margin-top: 6px; font-size: 13px; }
.sc-not-found { max-width: 650px; margin: 22px auto; padding: 32px 20px; text-align: center; }
.sc-error-code { display: inline-flex; align-items: center; justify-content: center; width: 96px; height: 72px; margin-bottom: 24px; border-radius: 20px; background: #eaf2fc; color: var(--sitechai-blue); font-size: 34px; font-weight: 750; }
.sc-not-found h1 { font-size: 30px; font-weight: 650; letter-spacing: -.7px; }
.sc-not-found p { max-width: 440px; margin: 16px auto 24px; color: var(--sitechai-muted); font-size: 14px; line-height: 1.8; }
.sc-error-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.sc-error-actions .btn { padding: 12px 18px; border-radius: 9px; }
.sc-error-actions .btn-primary { background: var(--sitechai-blue); border-color: var(--sitechai-blue); }
.sc-error-actions .btn-default { border: 1px solid var(--sitechai-border); background: #fff; }
.sc-not-found > small { display: block; margin-top: 30px; color: var(--sitechai-muted); }
@media (max-width: 767.98px) {
  #header.sc-topbar .sc-cart .sc-cart-label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
  #header.sc-topbar .sc-cart { gap: 6px; min-width: 70px; padding: 9px; }
  .sc-native-content { padding: 18px; }
  .sc-dashboard-heading { flex-direction: column; align-items: flex-start; padding: 0; gap: 16px; }
  .sc-dashboard-heading > div { flex: 0 1 auto; }
  .sc-dashboard-heading > .sc-page-shortcuts { justify-content: flex-start; }
  .sc-dashboard-heading h1, .sc-not-found h1 { font-size: 24px; }
  .sc-not-found { padding: 20px 0; }
  .sc-error-actions .btn { width: 100%; }
}

@media (min-width: 1600px) {
  .sc-dashboard-has-rail { grid-template-columns: minmax(0,1fr) 290px; }
}
@media (max-width: 1399.98px) {
  #header.sc-topbar { gap: 14px; padding-inline: 26px; }
  #main-body.sc-main { padding-inline: 26px; }
  .sc-native-layout, .sc-content-row { gap: 20px; }
  .sc-context-sidebar:not(.sc-dashboard-rail) { flex-basis: 220px; width: 220px; max-width: 220px; }
  .sc-dashboard-has-rail { grid-template-columns: minmax(0,1fr) 250px; gap: 18px; }
  .sc-search { flex-basis: 175px; }
  #header.sc-topbar .sc-cart .sc-cart-label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
  #footer.sc-footer { padding-inline: 26px; }
}
@media (max-width: 1199.98px) {
  #header.sc-topbar { flex-wrap: wrap; }
  #header.sc-topbar .sc-topbar-start { flex: 1 1 auto; }
  #header.sc-topbar .sc-topbar-end { flex: 1 1 100%; justify-content: flex-end; }
  .sc-native-layout, .sc-content-row { flex-wrap: wrap; }
  .sc-native-content, .sc-primary-content { flex: 1 1 100%; width: 100%; }
  .sc-context-sidebar:not(.sc-dashboard-rail) { flex: 1 1 100%; width: 100%; max-width: 100%; }
  .sc-context-sidebar:not(.sc-dashboard-rail) .sidebar { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; gap: 18px; }
  .sc-context-sidebar:not(.sc-dashboard-rail) .sidebar > .card { margin-bottom: 0; }
  .sc-context-sidebar .sidebar + .sidebar { margin-top: 18px; }
  .sc-topbar-start, .sc-topbar-end { gap: 9px; }
  .sc-search { flex-basis: 155px; }
  .sc-dashboard-stats.tiles > .row { gap: 12px; }
  .sc-dashboard-stats.tiles > .row > div > .tile { padding: 17px 15px; }
  .sc-stat-icon-box { top: 17px; left: 15px; }
  .sc-dashboard-stats .tile .title { padding-left: 28px; font-size: 12px; }
}
@media (max-width: 991.98px) {
  /* No-JS navigation stays in the document and is always reachable. */
  .sc-sidebar { position: static; width: auto; max-height: none; padding: 20px; border-right: 0; border-bottom: 1px solid var(--sitechai-border); }
  .sc-sidebar-brand { padding-left: 0; padding-bottom: 14px; }
  .sc-sidebar-bottom { padding-top: 20px; }
  .sc-shell-main { margin-left: 0; }
  #header.sc-topbar { min-height: 62px; padding: 10px 22px; }
  .sc-enhanced .sc-sidebar { position: fixed; width: var(--sitechai-sidebar-width); padding: 26px 14px 20px; border-right: 1px solid var(--sitechai-border); transform: translateX(-100%); visibility: hidden; transition: transform 180ms ease, visibility 180ms; }
  .sc-enhanced.sc-navigation-open .sc-sidebar { transform: translateX(0); visibility: visible; }
  .sc-enhanced.sc-navigation-open { overflow: hidden; }
  .sc-enhanced .sc-menu-toggle, .sc-enhanced .sc-sidebar-close { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 34px; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 4px; background: transparent; color: #6c7f9d; }
  .sc-enhanced .sc-sidebar-close { position: absolute; top: -18px; right: -9px; }
  .sc-enhanced .sc-menu-toggle:hover { background: var(--sitechai-soft-blue); color: var(--sitechai-blue-dark); }
  .sc-enhanced.sc-navigation-open .sc-overlay { position: fixed; inset: 0; z-index: 1035; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: rgba(8,21,44,.4); cursor: pointer; }
  #main-body.sc-main { padding: 25px 22px 20px; }
}
@media (max-width: 767.98px) {
  #header.sc-topbar { gap: 10px; padding-inline: 18px; }
  .sc-topbar-start { min-width: 34px; }
  .sc-workspace-breadcrumbs .breadcrumb { font-size: 11px; }
  .sc-topbar-end { gap: 7px; }
  .sc-search { flex-basis: 145px; }
  .sc-account-nav .sc-nav-summary, .sc-account-nav .sc-nav-link { padding: 7px; font-size: 11px; }
  #main-body.sc-main { padding: 23px 18px 15px; }
  .sc-page-toolbar { align-items: flex-start; gap: 12px; margin-bottom: 20px; padding-bottom: 18px; }
  .sc-page-shortcuts { gap: 8px; }
  .sc-back-link, .sc-page-shortcut { min-height: 44px; padding: 10px 13px; font-size: 12px; }
  .sc-dashboard-heading { margin-bottom: 18px; }
  .sc-dashboard-heading h1, .sc-native-content > .header-lined h1 { font-size: 23px; }
  .sc-dashboard-heading p { font-size: 12px; }
  .sc-dashboard-stats.tiles > .row { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .sc-dashboard-stats.tiles > .row > div > .tile { min-height: 118px; }
  .sc-dashboard-has-rail { grid-template-columns: minmax(0,1fr); gap: 0; }
  .sc-dashboard-panels > .row > div { flex: 0 0 100%; max-width: 100%; }
  .sc-context-sidebar:not(.sc-dashboard-rail) .sidebar { gap: 15px; }
  /* Let native table regions scroll without clipping module or gateway content. */
  #main-body .primary-content > .table-container { max-width: 100%; overflow-x: auto; padding: 12px; -webkit-overflow-scrolling: touch; }
  #main-body .primary-content > .table-container .table-list { min-width: 540px; }
  #main-body .primary-content > .table-container .dataTables_wrapper > .row { margin-inline: 0; }
  #footer.sc-footer { padding: 20px 18px; }
}
@media (max-width: 575.98px) {
  #header.sc-topbar { flex-wrap: wrap; }
  #header.sc-topbar .sc-topbar-start { flex: 0 0 34px; }
  #header.sc-topbar .sc-topbar-context { display: none; }
  .sc-search { flex: 1 1 130px; }
  #header.sc-topbar .sc-topbar-end { flex: 1 1 100%; flex-wrap: wrap; justify-content: flex-start; gap: 8px; }
  .sc-account-funds { flex: 1 1 100%; width: 100%; justify-content: space-between; }
  .sc-account-nav { flex: 1 1 auto; min-width: 0; }
  .sc-account-nav > .sc-nav-list { justify-content: flex-end; }
  .sc-unpaid-invoice-row { align-items: flex-start; flex-direction: column; gap: 12px; padding: 14px 16px; }
  .sc-unpaid-invoice-info { flex-basis: auto; }
  .sc-unpaid-invoice-action { flex-basis: auto; width: 100%; justify-content: space-between; gap: 12px; }
  .sc-unpaid-invoice-action > strong { margin-left: 0; }
  .sc-account-nav > .sc-nav-list > .sc-nav-item > .sc-nav-group > .sc-nav-children { right: 0; }
  .sc-page-shortcuts { flex-direction: column; align-items: stretch; }
  .sc-page-shortcut-order { order: -1; }
  .sc-context-sidebar:not(.sc-dashboard-rail) .sidebar { grid-template-columns: minmax(0,1fr); }
  .sc-dashboard-stats .tile .stat { font-size: 26px; }
  .sc-dashboard-panels > .row > div > .card > .card-header, .sc-dashboard-panels > .row > div > .card > .card-body { padding: 16px; }
  .sc-dashboard-panels > .row > div > .card > .list-group > .list-group-item { padding: 14px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .sc-sidebar, .sc-nav-link, .sc-nav-summary, .sc-nav-chevron, .sc-dashboard-stats .tile { transition: none !important; }
  .sc-shell { scroll-behavior: auto; }
}
@media print {
  .sc-sidebar, .sc-topbar, .sc-overlay, .sc-footer, .sc-skip-link, .sc-page-toolbar { display: none !important; }
  .sc-shell-main { display: block; min-height: 0; margin: 0; }
  #main-body.sc-main { max-width: none; margin: 0; padding: 0; }
  .sc-native-layout, .sc-content-row, .sc-dashboard-grid { display: block; }
  .sc-native-content, .sc-primary-content, .sc-context-sidebar { width: 100%; max-width: none; }
  .sc-context-sidebar { margin-top: 24px; }
  .sc-dashboard-stats .tile, .sc-dashboard-panels > .row > div > .card, .sc-context-sidebar .card { break-inside: avoid; box-shadow: none; }
  #main-body .primary-content > .table-container { overflow: visible; padding: 0; }
  body.sc-portal { background: #fff; }
}

#main-body.sc-main:focus { outline: none; }
#main-body.sc-main:focus-visible { outline: none; }

/* Native account pages: quiet navigation and one table surface. */
.sc-page-toolbar { gap: 12px; margin-bottom: 18px; padding-bottom: 0; }
.sc-back-link { min-height: 40px; padding: 8px 2px; border: 0; border-radius: 3px; background: transparent; color: #52677f; font-weight: 500; }
.sc-back-link:hover { border: 0; background: transparent; color: var(--sitechai-blue-dark); text-decoration: underline; text-underline-offset: 3px; }
.sc-page-shortcut { min-height: 38px; padding: 8px 12px; border-radius: 4px; font-weight: 500; }
.sc-page-shortcut-affiliates { border-color: transparent; background: transparent; color: #52677f; }
.sc-page-shortcut-affiliates:hover { background: #edf1f5; border-color: transparent; }
.sc-sidebar-nav [menuItemName="Support"] [menuItemName="Downloads"],
.sc-sidebar-nav [menuItemName="Support"] [menuItemName="Network Status"],
.sc-context-sidebar [menuItemName="Support"] [menuItemName="Downloads"],
.sc-context-sidebar [menuItemName="Support"] [menuItemName="Network Status"] { display: none !important; }

/* The native responsive table keeps its existing controls, events and row data. */
body:is([data-sc-page="clientareadomains"], .sc-domain-list-page) .sc-native-content,
body[data-sc-page="clientareaproducts"] .sc-native-content { padding: 0; border: 0; background: transparent; }
body:is([data-sc-page="clientareadomains"], .sc-domain-list-page) #domainForm > .table-container,
body[data-sc-page="clientareaproducts"] #main-body .primary-content > .table-container { min-width: 0; max-width: 100%; padding: 16px; border: 1px solid var(--sitechai-border); border-radius: 5px; background: #fff; overflow: visible; }
body:is([data-sc-page="clientareadomains"], .sc-domain-list-page) #domainForm .listtable,
body[data-sc-page="clientareaproducts"] .sc-native-content .listtable { display: grid; grid-template-columns: minmax(0,1fr) minmax(150px,240px); gap: 12px; align-items: center; }
body:is([data-sc-page="clientareadomains"], .sc-domain-list-page) #domainForm .dataTables_info,
body[data-sc-page="clientareaproducts"] .sc-native-content .dataTables_info { grid-column: 1; grid-row: 1; padding: 0; text-align: left; color: var(--sitechai-muted); font-size: 12px; }
body:is([data-sc-page="clientareadomains"], .sc-domain-list-page) #domainForm .dataTables_filter,
body[data-sc-page="clientareaproducts"] .sc-native-content .dataTables_filter { grid-column: 2; grid-row: 1; float: none; width: auto; margin: 0; text-align: left; }
body:is([data-sc-page="clientareadomains"], .sc-domain-list-page) #domainForm .dataTables_filter label,
body[data-sc-page="clientareaproducts"] .sc-native-content .dataTables_filter label { display: block; margin: 0; }
body:is([data-sc-page="clientareadomains"], .sc-domain-list-page) #domainForm .dataTables_filter input,
body[data-sc-page="clientareaproducts"] .sc-native-content .dataTables_filter input { width: 100%; min-height: 38px; margin: 0; padding: 8px 10px 8px 34px !important; border: 1px solid #cdd6e0; border-radius: 4px; background-color: #fff; background-size: 17px; background-position: 10px center; font-size: 13px; }
body:is([data-sc-page="clientareadomains"], .sc-domain-list-page) #tableDomainsList,
body[data-sc-page="clientareaproducts"] #tableServicesList { grid-column: 1 / -1; grid-row: 2; min-width: 0; max-width: 100%; margin: 0 0 12px !important; border: 0; border-radius: 0; }
body:is([data-sc-page="clientareadomains"], .sc-domain-list-page) #tableDomainsList th,
body[data-sc-page="clientareaproducts"] #tableServicesList th { padding: 12px 9px; border-bottom: 1px solid #dce3ea; background: #f6f8fa; color: #52677f; font-size: 12px; font-weight: 600; }
body:is([data-sc-page="clientareadomains"], .sc-domain-list-page) #tableDomainsList td,
body[data-sc-page="clientareaproducts"] #tableServicesList td { padding: 13px 9px; border-color: #e9edf2; font-size: 13px; overflow-wrap: anywhere; }
body:is([data-sc-page="clientareadomains"], .sc-domain-list-page) #domainForm .dataTables_paginate,
body[data-sc-page="clientareaproducts"] .sc-native-content .dataTables_paginate { padding-top: 4px; }
body:is([data-sc-page="clientareadomains"], .sc-domain-list-page) #domainForm .pagination,
body[data-sc-page="clientareaproducts"] .sc-native-content .pagination { flex-wrap: wrap; gap: 3px; margin-bottom: 8px; }
body:is([data-sc-page="clientareadomains"], .sc-domain-list-page) #domainForm .dataTables_length,
body[data-sc-page="clientareaproducts"] .sc-native-content .dataTables_length { margin-top: 5px; text-align: left; font-size: 12px; }
body:is([data-sc-page="clientareadomains"], .sc-domain-list-page) #domainForm .dataTables_length select,
body[data-sc-page="clientareaproducts"] .sc-native-content .dataTables_length select { min-height: 34px; border-radius: 4px; }
body:is([data-sc-page="clientareadomains"], .sc-domain-list-page) #domainForm > .btn-group { display: flex; flex-wrap: wrap; gap: 8px; }
body:is([data-sc-page="clientareadomains"], .sc-domain-list-page) #domainForm > .btn-group > .btn,
body:is([data-sc-page="clientareadomains"], .sc-domain-list-page) #domainForm > .btn-group > .btn-group > .btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 9px 12px; margin: 0; border: 1px solid #d3dce6; border-radius: 4px; background: #fff; color: #294763; font-size: 13px; line-height: 1.4; white-space: normal; }
body:is([data-sc-page="clientareadomains"], .sc-domain-list-page) #domainForm > .btn-group > .btn-group { margin: 0; }
body:is([data-sc-page="clientareadomains"], .sc-domain-list-page) #domainForm > .btn-group .btn:hover { background: #f0f5fa; border-color: #a7bacf; }
body:is([data-sc-page="clientareadomains"], .sc-domain-list-page) #domainForm > .btn-group .dropdown-menu { left: auto !important; right: 0; top: calc(100% + 4px) !important; transform: none !important; min-width: 220px; max-width: calc(100vw - 40px); padding: 5px; border-color: #d3dce6; border-radius: 5px; box-shadow: 0 4px 12px rgba(16,43,73,.09); }
body:is([data-sc-page="clientareadomains"], .sc-domain-list-page) #domainForm > .btn-group .dropdown-item { display: flex; align-items: center; gap: 8px; min-height: 42px; padding: 9px 11px; border-radius: 3px; font-size: 13px; line-height: 1.5; white-space: normal; }
body:is([data-sc-page="clientareadomains"], .sc-domain-list-page) #domainForm > .btn-group i { flex: 0 0 16px; width: 16px; text-align: center; }

.sc-service-location-value { display: flex; align-items: center; gap: 8px; }
.sc-service-location-flag { display: inline-block; flex: 0 0 24px; width: 24px; height: 18px; object-fit: contain; border-radius: 2px; }
/* A restrained red action signals unpaid balances without an alarming banner. */
.sc-dashboard-panels .sc-unpaid-card > .card-header { border-top: 2px solid #bb4b49; }
.sc-dashboard-panels .sc-unpaid-card .sc-panel-icon { color: #a43f3c; }
.sc-unpaid-panel-actions .sc-page-shortcut-masspay { border-color: #aa403d; background: #aa403d; color: #fff; border-radius: 4px; }
.sc-unpaid-panel-actions .sc-page-shortcut-masspay:hover { border-color: #913632; background: #913632; }
.sc-unpaid-invoice-action > .btn { border-color: #e0b9b5; color: #9b3e39; border-radius: 4px; }
.sc-unpaid-invoice-action > .btn:hover { border-color: #bc7771; background: #fff5f3; }

@media (max-width: 767.98px) {
  #header.sc-topbar { display: grid; grid-template-columns: 36px minmax(0,1fr) 36px 58px; gap: 8px 6px; min-height: 0; padding: 10px 12px; }
  #header.sc-topbar .sc-topbar-start, #header.sc-topbar .sc-topbar-end { display: contents; }
  #header.sc-topbar .sc-topbar-context { display: none; }
  #header.sc-topbar .sc-menu-toggle { grid-column: 1; grid-row: 1; width: 36px; height: 40px; }
  #header.sc-topbar .sc-search { grid-column: 2; grid-row: 1; width: 100%; min-width: 0; margin: 0; }
  #header.sc-topbar .sc-search input { min-height: 40px; padding-right: 5px; font-size: 12px; }
  #header.sc-topbar .sc-notifications { grid-column: 3; grid-row: 1; width: 36px; height: 40px; min-height: 40px; padding: 7px; }
  #header.sc-topbar .sc-cart { grid-column: 4; grid-row: 1; width: 58px; min-width: 0; min-height: 40px; height: 40px; gap: 5px; padding: 7px 5px; border-radius: 4px; }
  #header.sc-topbar .sc-cart #cartItemCount { min-width: 17px; height: 18px; padding-inline: 3px; font-size: 10px; line-height: 18px; }
  #header.sc-topbar .sc-account-funds { grid-column: 1 / 3; grid-row: 2; width: 100%; min-width: 0; margin: 0; justify-content: space-between; border-radius: 4px; }
  #header.sc-topbar .sc-account-balance { gap: 5px; min-width: 0; padding-inline: 7px; font-size: 11px; }
  #header.sc-topbar .sc-account-balance strong { white-space: nowrap; overflow-wrap: normal; }
  #header.sc-topbar .sc-account-balance .sc-balance-icon { width: 14px; height: 14px; flex-shrink: 0; }
  #header.sc-topbar .sc-account-funding { flex-shrink: 0; }
  #header.sc-topbar .sc-account-funding .sc-page-shortcut-addfunds { gap: 3px; min-height: 36px; padding: 7px 6px; font-size: 11px; }
  #header.sc-topbar .sc-account-funding .sc-action-icon { width: 14px; height: 14px; }
  #header.sc-topbar .sc-account-nav { grid-column: 3 / 5; grid-row: 2; min-width: 0; width: 100%; }
  #header.sc-topbar .sc-account-nav > .sc-nav-list { justify-content: flex-end; }
  #header.sc-topbar .sc-account-nav .sc-nav-summary, #header.sc-topbar .sc-account-nav .sc-nav-link { min-height: 38px; gap: 5px; padding: 7px 3px; font-size: 11px; }
  #header.sc-topbar .sc-account-nav > .sc-nav-list > .sc-nav-item > .sc-nav-group > .sc-nav-summary .sc-nav-icon { display: none; }
  #header.sc-topbar .sc-account-nav .sc-nav-label { white-space: normal; overflow-wrap: anywhere; }
  #header.sc-topbar .sc-account-nav > .sc-nav-list > .sc-nav-item > .sc-nav-group > .sc-nav-children { right: 0; width: 240px; }
  #header.sc-topbar .btn-return-to-admin { grid-column: 1 / -1; justify-self: end; }
  #main-body.sc-main { padding: 18px 12px; }
  .sc-native-content { padding: 14px; }
  .sc-page-toolbar { flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 14px; padding-bottom: 0; }
  .sc-page-toolbar > .sc-page-shortcuts { display: contents; }
  .sc-back-link { margin-right: auto; padding: 8px 2px; min-height: 40px; font-size: 13px; }
  .sc-page-toolbar .sc-page-shortcut { order: 0; min-height: 40px; padding: 8px 10px; gap: 6px; font-size: 12px; }
  .sc-dashboard-heading > .sc-page-shortcuts { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 8px; }
  .sc-dashboard-heading .sc-page-shortcut { order: 0; min-height: 40px; padding: 8px 10px; font-size: 12px; }
  body:is([data-sc-page="clientareadomains"], .sc-domain-list-page) #domainForm > .table-container,
  body[data-sc-page="clientareaproducts"] #main-body .primary-content > .table-container { padding: 12px; }
  body:is([data-sc-page="clientareadomains"], .sc-domain-list-page) #domainForm .listtable,
  body[data-sc-page="clientareaproducts"] .sc-native-content .listtable { grid-template-columns: minmax(0,1fr); gap: 10px; }
  body:is([data-sc-page="clientareadomains"], .sc-domain-list-page) #domainForm .dataTables_filter,
  body[data-sc-page="clientareaproducts"] .sc-native-content .dataTables_filter { grid-column: 1; grid-row: 1; }
  body:is([data-sc-page="clientareadomains"], .sc-domain-list-page) #domainForm .dataTables_info,
  body[data-sc-page="clientareaproducts"] .sc-native-content .dataTables_info { grid-column: 1; grid-row: 2; }
  body:is([data-sc-page="clientareadomains"], .sc-domain-list-page) #tableDomainsList,
  body[data-sc-page="clientareaproducts"] #tableServicesList { grid-column: 1; grid-row: 3; min-width: 0; }
  body:is([data-sc-page="clientareadomains"], .sc-domain-list-page) #tableDomainsList td,
  body[data-sc-page="clientareaproducts"] #tableServicesList td { padding: 12px 7px; font-size: 12px; }
  body:is([data-sc-page="clientareadomains"], .sc-domain-list-page) #domainForm > .btn-group { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  body:is([data-sc-page="clientareadomains"], .sc-domain-list-page) #domainForm > .btn-group > .btn,
  body:is([data-sc-page="clientareadomains"], .sc-domain-list-page) #domainForm > .btn-group > .btn-group > .btn { width: 100%; min-height: 44px; padding: 9px 8px; font-size: 12px; }
  body:is([data-sc-page="clientareadomains"], .sc-domain-list-page) #domainForm > .btn-group > .btn-group { min-width: 0; }
  body:is([data-sc-page="clientareadomains"], .sc-domain-list-page) #domainForm > .btn-group .dropdown-menu { max-width: calc(100vw - 24px); }
  body[data-sc-page="clientareaproductdetails"] #configoptions > .row { padding-block: 9px; text-align: left; }
  body[data-sc-page="clientareaproductdetails"] #configoptions > .row > div + div { margin-top: 3px; }
}
.sc-context-sidebar [menuItemName="Support"] + .card.d-md-none option[menuItemName="Downloads"],
.sc-context-sidebar [menuItemName="Support"] + .card.d-md-none option[menuItemName="Network Status"] { display: none !important; }
body:is([data-sc-page="clientareadomains"], .sc-domain-list-page) #domainForm .dataTables_filter input,
body[data-sc-page="clientareaproducts"] .sc-native-content .dataTables_filter input { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23718599' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='m16 16 5 5'/%3E%3C/svg%3E"); }
@media (max-width: 767.98px) {
  #header.sc-topbar #accountNotifications.sc-notifications { width: 36px; height: 40px; min-height: 40px; }
}
/* Long native tables scroll within their own row; search and paging stay put. */
body.sc-portal:not(.sc-dashboard-page) .sc-shell-main { background: #fff; }
.sc-native-table-scroll { grid-column: 1 / -1; grid-row: 2; min-width: 0; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: #b8c4d0 #f0f3f6; }
.sc-native-table-scroll:focus-visible { outline: 2px solid #75a8db; outline-offset: 2px; }
body:is([data-sc-page="clientareadomains"], .sc-domain-list-page) .sc-native-table-scroll #tableDomainsList { min-width: 620px; }
body[data-sc-page="clientareaproducts"] .sc-native-table-scroll #tableServicesList { min-width: 620px; }
body:is([data-sc-page="clientareadomains"], .sc-domain-list-page) #tableDomainsList td:nth-child(3),
body[data-sc-page="clientareaproducts"] #tableServicesList td:nth-child(2) { min-width: 180px; }
@media (max-width: 767.98px) {
  .sc-native-table-scroll { grid-row: 3; }
  #header.sc-topbar .sc-account-balance { gap: 4px; padding: 5px; font-size: 10.5px; line-height: 14px; }
}
.sc-skip-link:not(:focus) { clip-path: inset(50%); }
/* Service summaries retain their native tabs and actions without oversized headings. */
body[data-sc-page="clientareaproductdetails"] .sc-native-content { padding: 0; border: 0; }
body[data-sc-page="clientareaproductdetails"] .product-details .product-icon { padding: 8px 0 12px; border-radius: 0; background: transparent; text-align: left !important; font-size: 20px; line-height: 1.4; }
body[data-sc-page="clientareaproductdetails"] .product-details .product-icon .fa-stack { display: none; }
body[data-sc-page="clientareaproductdetails"] .product-details .product-icon h3 { margin: 0 0 6px; font-size: 21px; font-weight: 600; line-height: 1.35; }
body[data-sc-page="clientareaproductdetails"] .product-details .product-icon h4 { margin: 0; color: var(--sitechai-muted); font-size: 13px; font-weight: 400; line-height: 1.5; }
body[data-sc-page="clientareaproductdetails"] .product-details .product-status { display: flex; flex-direction: column; align-items: flex-start; padding: 0; border-radius: 0; background: transparent; }
body[data-sc-page="clientareaproductdetails"] .product-details .product-status-text { display: inline-block; padding: 3px 7px; border-radius: 3px; background: #eef2f5; color: #52677f; font-size: 11px; line-height: 18px; font-weight: 600; text-transform: none; }
body[data-sc-page="clientareaproductdetails"] .product-status-active .product-status-text { background: #edf6ef; color: #327342; }
body[data-sc-page="clientareaproductdetails"] .product-status-pending .product-status-text,
body[data-sc-page="clientareaproductdetails"] .product-status-suspended .product-status-text { background: #fff4e7; color: #976321; }
body[data-sc-page="clientareaproductdetails"] .product-status-fraud .product-status-text { background: #fff0ee; color: #a23c34; }
/* Cancellation is a compact secondary action, not a full-width purchase button. */
body[data-sc-page="clientareaproductdetails"] .product-actions-wrapper a.btn-danger[href*="action=cancel"] { display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: auto; max-width: 100%; min-height: 38px; padding: 8px 12px; border: 1px solid #dfbab5; border-radius: 5px; background: #fff; color: #9d4037; font-size: 13px; font-weight: 500; line-height: 20px; white-space: normal; text-align: center; box-shadow: none; }
body[data-sc-page="clientareaproductdetails"] .product-actions-wrapper a.btn-danger[href*="action=cancel"]:hover { border-color: #c78f87; background: #fff3f1; color: #8e342c; }
body[data-sc-page="clientareaproductdetails"] .product-actions-wrapper a.btn-danger[href*="action=cancel"]:focus-visible { outline: 3px solid #d99c94; outline-offset: 2px; }
body[data-sc-page="clientareaproductdetails"] .product-actions-wrapper a.btn-danger[href*="action=cancel"].disabled { border-color: #e3d7d5; background: #faf7f6; color: #8b7370; }
body[data-sc-page="clientareaproductdetails"] .product-actions-wrapper a.btn-danger[href*="action=cancel"] > i { flex: 0 0 auto; line-height: 1; }
@media (max-width: 767px) {
  body[data-sc-page="clientareaproductdetails"] .product-actions-wrapper a.btn-danger[href*="action=cancel"] { min-height: 44px; }
}
body[data-sc-page="clientareaproductdetails"] .product-details > .row > .col-md-6.text-center { text-align: left !important; font-size: 13px; line-height: 1.6; }
body[data-sc-page="clientareaproductdetails"] .product-details > .row > .col-md-6.text-center > h4 { margin: 14px 0 2px; color: #5d718b; font-size: 12px; font-weight: 500; line-height: 1.5; }
body[data-sc-page="clientareaproductdetails"] .product-details > .row > .col-md-6.text-center > h4:first-child { margin-top: 0; }
body[data-sc-page="clientareaproductdetails"] .product-details-tab-container { padding: 18px; border-color: var(--sitechai-border); font-size: 13px; }
body[data-sc-page="clientareaproductdetails"] .responsive-tabs-sm .nav-link { padding: 11px 13px; color: #52677f; font-size: 13px; line-height: 1.4; }
body[data-sc-page="clientareaproductdetails"] .responsive-tabs-sm .nav-link.active { color: var(--sitechai-blue-dark); font-weight: 600; }
@media (max-width: 767.98px) {
  body[data-sc-page="clientareaproductdetails"] .product-details > .row > .col-md-6.text-center { padding-top: 6px; }
  body[data-sc-page="clientareaproductdetails"] .product-details-tab-container { padding: 14px; }
}

/* Selected navigation describes the current page; solid blue is for actions.
   Both current and earlier Twenty-One context-rail structures are supported. */
.sc-sidebar .sc-nav-item.active > .sc-nav-link,
.sc-sidebar .sc-nav-item.active > .sc-nav-group > .sc-nav-summary,
.sc-sidebar .sc-nav-item.active > .sc-nav-group[open] > .sc-nav-summary,
.sc-sidebar .sc-nav-link[aria-current="page"] { background: #eaf2fb; color: var(--sitechai-blue-dark); }
.sc-sidebar .sc-nav-item.active > .sc-nav-link > .sc-nav-icon,
.sc-sidebar .sc-nav-item.active > .sc-nav-group > .sc-nav-summary > .sc-nav-icon,
.sc-sidebar .sc-nav-link[aria-current="page"] > .sc-nav-icon { color: var(--sitechai-blue); }
.sc-sidebar .sc-nav-item.active > .sc-nav-link > .sc-nav-badge,
.sc-sidebar .sc-nav-item.active > .sc-nav-group > .sc-nav-summary > .sc-nav-badge { background: #dbe9f8; color: var(--sitechai-blue-dark); }
body.sc-portal .sc-context-sidebar .card-sidebar .list-group > .list-group-item.active,
body.sc-portal .sc-context-sidebar .card-sidebar .list-group > .list-group-item.active:hover,
body.sc-portal .sc-context-sidebar .card-sidebar .list-group > .list-group-item.active:focus { border-color: #dce6f1; background: #eaf2fb; color: var(--sitechai-blue-dark); font-weight: 600; }
.sc-context-sidebar .card-sidebar .list-group > .list-group-item.active .sidebar-menu-item-icon,
.sc-context-sidebar .card-sidebar .list-group > .list-group-item.active .sidebar-menu-item-label { color: inherit; }

/* Account deposits: one clear submit action and a quiet limits table. */
body:is([data-sc-page="clientareaaddfunds"], .sc-addfunds-page) .sc-native-content { padding: 0; border: 0; }
body:is([data-sc-page="clientareaaddfunds"], .sc-addfunds-page) .sc-native-content > .row { margin-inline: 0; }
body:is([data-sc-page="clientareaaddfunds"], .sc-addfunds-page) .sc-native-content > .row > .col-md-8 { flex-basis: 100%; width: 100%; max-width: 700px; padding: 0; margin-inline: auto; }
body:is([data-sc-page="clientareaaddfunds"], .sc-addfunds-page) .sc-native-content > .row > .col-md-8 > .card { margin-bottom: 18px; border-color: var(--sitechai-border); border-radius: 6px; box-shadow: none; }
body:is([data-sc-page="clientareaaddfunds"], .sc-addfunds-page) .card > .table { margin-bottom: 0; font-size: 13px; }
body:is([data-sc-page="clientareaaddfunds"], .sc-addfunds-page) .card > .table td { padding: 13px 18px; border-color: #e8edf2; color: var(--sitechai-ink); vertical-align: middle; }
body:is([data-sc-page="clientareaaddfunds"], .sc-addfunds-page) .card > .table tr:first-child td { border-top: 0; }
body:is([data-sc-page="clientareaaddfunds"], .sc-addfunds-page) .card > .table td:first-child { width: 55%; }
body:is([data-sc-page="clientareaaddfunds"], .sc-addfunds-page) .card > .table td:first-child strong { font-weight: 500; }
body:is([data-sc-page="clientareaaddfunds"], .sc-addfunds-page) .card > .table td:last-child { font-variant-numeric: tabular-nums; text-align: right; overflow-wrap: anywhere; }
body:is([data-sc-page="clientareaaddfunds"], .sc-addfunds-page) .card > .table-striped tbody tr:nth-of-type(odd) { background: #f7f9fb; }
body:is([data-sc-page="clientareaaddfunds"], .sc-addfunds-page) .sc-native-content .card-body { padding: 22px; }
body:is([data-sc-page="clientareaaddfunds"], .sc-addfunds-page) .sc-native-content .card-footer { padding: 13px 22px; border-color: var(--sitechai-border); background: #fafbfc; color: var(--sitechai-muted); }
body:is([data-sc-page="clientareaaddfunds"], .sc-addfunds-page) .sc-native-content .form-group { margin-bottom: 18px; }
body:is([data-sc-page="clientareaaddfunds"], .sc-addfunds-page) .sc-native-content .col-form-label { padding-top: 0; padding-bottom: 7px; color: var(--sitechai-ink); font-size: 13px; font-weight: 500; }
body:is([data-sc-page="clientareaaddfunds"], .sc-addfunds-page) .sc-native-content .form-control { width: 100%; min-height: 44px; border-color: #cbd5e1; border-radius: 6px; color: #203950; font-size: 14px; }
body:is([data-sc-page="clientareaaddfunds"], .sc-addfunds-page) .sc-native-content .form-control:focus { border-color: var(--sitechai-blue); box-shadow: 0 0 0 3px rgba(28,95,168,.12); }
body:is([data-sc-page="clientareaaddfunds"], .sc-addfunds-page) .sc-native-content button[type="submit"].btn-primary { min-height: 44px; padding: 10px 18px; border: 1px solid var(--sitechai-blue); border-radius: 6px; background: var(--sitechai-blue); color: #fff; font-size: 14px; font-weight: 600; line-height: 22px; box-shadow: none; }
body:is([data-sc-page="clientareaaddfunds"], .sc-addfunds-page) .sc-native-content button[type="submit"].btn-primary:hover { border-color: var(--sitechai-blue-dark); background: var(--sitechai-blue-dark); }
body:is([data-sc-page="clientareaaddfunds"], .sc-addfunds-page) .sc-native-content button[type="submit"].btn-primary:focus-visible { outline: 3px solid #83b1de; outline-offset: 3px; }

/* Native dashboard domain search: a clear primary/secondary pair, including
   earlier input-group-btn and current input-group-append panel markup. */
.sc-dashboard-panels [menuItemName="Register a New Domain"] .input-group { display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px; }
.sc-dashboard-panels [menuItemName="Register a New Domain"] .input-group > .form-control { flex: 1 1 220px; width: 0; min-width: 0; height: 44px; padding: 10px 13px; border: 1px solid #cbd5e1; border-radius: 6px; color: var(--sitechai-ink); font-size: 14px; line-height: 22px; }
.sc-dashboard-panels [menuItemName="Register a New Domain"] .input-group > .form-control::placeholder { color: #748398; opacity: 1; }
.sc-dashboard-panels [menuItemName="Register a New Domain"] .input-group > .form-control:focus { border-color: var(--sitechai-blue); box-shadow: 0 0 0 3px rgba(28,95,168,.12); }
.sc-dashboard-panels [menuItemName="Register a New Domain"] .input-group-append,
.sc-dashboard-panels [menuItemName="Register a New Domain"] .input-group-btn { display: flex; flex: 0 1 auto; align-items: stretch; gap: 8px; width: auto; margin: 0; }
.sc-dashboard-panels [menuItemName="Register a New Domain"] .input-group .btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 17px; margin: 0; border: 1px solid #c6d2df; border-radius: 6px; background: #fff; color: var(--sitechai-blue-dark); font-size: 13px; font-weight: 600; line-height: 22px; text-align: center; box-shadow: none; }
.sc-dashboard-panels [menuItemName="Register a New Domain"] .input-group .btn:hover { border-color: #9cb5ce; background: #f3f7fb; }
.sc-dashboard-panels [menuItemName="Register a New Domain"] .input-group .btn-success,
.sc-dashboard-panels [menuItemName="Register a New Domain"] .input-group .btn-primary { border-color: var(--sitechai-blue); background: var(--sitechai-blue); color: #fff; }
.sc-dashboard-panels [menuItemName="Register a New Domain"] .input-group .btn-success:hover,
.sc-dashboard-panels [menuItemName="Register a New Domain"] .input-group .btn-primary:hover { border-color: var(--sitechai-blue-dark); background: var(--sitechai-blue-dark); }
.sc-dashboard-panels [menuItemName="Register a New Domain"] .input-group .btn:focus-visible { outline: 3px solid #83b1de; outline-offset: 2px; }

/* Domain management retains native fields, SSL updates, tab handlers and hooks.
   Grouping is applied only after the JS has recognised the parent summary. */
body:is([data-sc-page="clientareadomaindetails"], .sc-domain-detail-page) .sc-native-content { padding: 0; border: 0; }
body:is([data-sc-page="clientareadomaindetails"], .sc-domain-detail-page) .sc-native-content > .tab-content > .tab-pane > .card { border-color: var(--sitechai-border); border-radius: 6px; box-shadow: none; }
body:is([data-sc-page="clientareadomaindetails"], .sc-domain-detail-page) .sc-native-content > .tab-content > .tab-pane > .card > .card-body { padding: 22px; }
body:is([data-sc-page="clientareadomaindetails"], .sc-domain-detail-page) .sc-native-content > .tab-content > .tab-pane > .card > .card-body > .card-title { margin-bottom: 18px; color: var(--sitechai-ink); font-size: 19px; font-weight: 600; line-height: 1.4; }
.sc-domain-summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px; padding: 0 0 20px; margin-bottom: 20px; border-bottom: 1px solid var(--sitechai-border); }
.sc-domain-summary > .col-lg-6 { flex: 0 1 auto; width: auto; max-width: 100%; padding: 0; }
.sc-domain-name { min-width: 0; }
.sc-domain-name > h5 { margin: 0 0 5px; color: var(--sitechai-muted); font-size: 12px; font-weight: 500; line-height: 1.5; }
.sc-domain-name > a { color: var(--sitechai-blue-dark); font-size: 22px; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; text-decoration: none; }
.sc-domain-name > a:hover { text-decoration: underline; }
.sc-domain-current-status > h5 { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.sc-domain-status { display: inline-flex; align-items: center; padding: 4px 8px; border: 1px solid #dae5f0; border-radius: 4px; background: #f1f6fb; color: #395d7e; font-size: 12px; font-weight: 500; line-height: 18px; }
.sc-domain-status.is-active { border-color: #d3e7d9; background: #eff7f1; color: #2e7148; }
.sc-domain-facts { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 28px; }
.sc-domain-data-group { min-width: 0; }
.sc-domain-data-group > h4 { margin: 0 0 16px; color: var(--sitechai-ink); font-size: 14px; font-weight: 600; line-height: 1.5; }
.sc-domain-data { display: grid; gap: 15px; }
.sc-domain-data > .sc-domain-field { flex: none; width: 100%; max-width: 100%; min-width: 0; padding: 0; color: #29445f; font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.sc-domain-field > h5 { margin: 0 0 4px; color: var(--sitechai-muted); font-size: 12px; font-weight: 400; line-height: 1.5; }
.sc-domain-security { padding-top: 20px; margin-top: 22px; border-top: 1px solid var(--sitechai-border); }
.sc-domain-security .sc-domain-data { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 15px 28px; }
.sc-domain-security img[data-type="domain"] { margin-right: 4px; vertical-align: -2px; }
.sc-domain-overview > .moduleoutput { margin-top: 20px; }
.sc-domain-overview > br { display: none; }
body:is([data-sc-page="clientareadomaindetails"], .sc-domain-detail-page) .card-body > .sc-domain-actions-title { padding-top: 22px; margin: 22px 0 12px !important; border-top: 1px solid var(--sitechai-border); font-size: 14px !important; }
.sc-domain-quick-actions { display: flex; flex-wrap: wrap; gap: 9px; padding: 0; margin: 0; list-style: none; }
.sc-domain-quick-actions > li { display: flex; min-width: 0; max-width: 100%; }
.sc-domain-quick-actions > li > a { display: inline-flex; align-items: center; min-height: 42px; padding: 9px 12px; border: 1px solid #d6e0ea; border-radius: 5px; background: #fff; color: #3e5871; font-size: 12px; font-weight: 500; line-height: 1.5; text-decoration: none; overflow-wrap: anywhere; }
.sc-domain-quick-actions > li > a:hover { border-color: #a9bfd5; background: #f7f9fc; color: var(--sitechai-blue-dark); }
.sc-domain-quick-actions a:focus-visible { outline: 3px solid #83b1de; outline-offset: 2px; }
body:is([data-sc-page="clientareadomaindetails"], .sc-domain-detail-page) #tabNameservers .form-group { align-items: center; margin-bottom: 15px; }
body:is([data-sc-page="clientareadomaindetails"], .sc-domain-detail-page) #tabNameservers .form-check { padding-left: 0; }
body:is([data-sc-page="clientareadomaindetails"], .sc-domain-detail-page) #tabNameservers .form-check > label { display: flex; align-items: center; gap: 10px; min-height: 40px; margin-bottom: 0; color: #29445f; font-size: 13px; line-height: 1.5; cursor: pointer; }
body:is([data-sc-page="clientareadomaindetails"], .sc-domain-detail-page) #tabNameservers .form-check-input { position: static; flex: 0 0 16px; width: 16px; height: 16px; margin: 0; accent-color: var(--sitechai-blue); }
body:is([data-sc-page="clientareadomaindetails"], .sc-domain-detail-page) #tabNameservers .alert { border-radius: 6px; font-size: 13px; line-height: 1.65; text-align: left !important; }
body:is([data-sc-page="clientareadomaindetails"], .sc-domain-detail-page) #tabNameservers .alert-info { border-color: #d7e4f1; background: #f3f7fc; color: #465f78; }
body:is([data-sc-page="clientareadomaindetails"], .sc-domain-detail-page) #tabNameservers .alert-danger { border-color: #efd2cf; background: #fff3f1; color: #943c35; }
body:is([data-sc-page="clientareadomaindetails"], .sc-domain-detail-page) #tabNameservers .alert-success { border-color: #d3e7d9; background: #eff7f1; color: #2e7148; }
body:is([data-sc-page="clientareadomaindetails"], .sc-domain-detail-page) #tabNameservers .col-form-label { color: #465b72; font-size: 13px; }
body:is([data-sc-page="clientareadomaindetails"], .sc-domain-detail-page) #tabNameservers .form-control { min-height: 42px; border-radius: 6px; font-size: 14px; }
body:is([data-sc-page="clientareadomaindetails"], .sc-domain-detail-page) #tabNameservers .btn-primary { min-height: 44px; padding: 10px 16px; border-color: var(--sitechai-blue); border-radius: 6px; background: var(--sitechai-blue); color: #fff; font-size: 13px; font-weight: 600; line-height: 22px; }
body:is([data-sc-page="clientareadomaindetails"], .sc-domain-detail-page) #tabNameservers .btn-primary:hover { border-color: var(--sitechai-blue-dark); background: var(--sitechai-blue-dark); }
.sc-nameserver-save-note { max-width: 430px; margin: 3px 0 12px; padding-left: 11px; border-left: 2px solid #bb9559; color: #73603f; font-size: 12px; line-height: 1.6; }
.sc-nameserver-save-status { margin: 10px 0 0; color: var(--sitechai-blue-dark); font-size: 12px; line-height: 1.5; }
.sc-nameserver-save-status:empty { display: none; }
.sc-nameserver-saving [type="submit"] { cursor: wait; }

/* The native localisation form still owns language/currency selection. */
body.sc-portal:not(.sc-auth-page):not(.sc-cart-page) #modalChooseLanguage .modal-dialog { max-width: 620px; }
body.sc-portal:not(.sc-auth-page):not(.sc-cart-page) #modalChooseLanguage .modal-content { border: 1px solid #d5dee8; border-radius: 8px; background: #fff; color: var(--sitechai-ink); box-shadow: 0 10px 36px rgba(16,43,73,.12); }
body.sc-portal:not(.sc-auth-page):not(.sc-cart-page) #modalChooseLanguage .modal-body { padding: 24px; background: transparent; }
body.sc-portal:not(.sc-auth-page):not(.sc-cart-page) #modalChooseLanguage .h5 { padding: 0 28px 0 0 !important; margin: 0 0 14px; color: var(--sitechai-ink); font-size: 16px; font-weight: 600; }
body.sc-portal:not(.sc-auth-page):not(.sc-cart-page) #modalChooseLanguage .item-selector + .h5 { margin-top: 24px; }
body.sc-portal:not(.sc-auth-page):not(.sc-cart-page) #modalChooseLanguage .close { padding: 0; color: #5d718b !important; opacity: 1; text-shadow: none; }
body.sc-portal:not(.sc-auth-page):not(.sc-cart-page) #modalChooseLanguage .item-selector { margin: -4px; }
body.sc-portal:not(.sc-auth-page):not(.sc-cart-page) #modalChooseLanguage .item-selector > .col-4 { padding: 4px; }
body.sc-portal:not(.sc-auth-page):not(.sc-cart-page) #modalChooseLanguage .item { display: flex; align-items: center; justify-content: center; min-height: 42px; margin: 0; padding: 9px 10px; border: 1px solid #d7dfe8; border-radius: 6px; background: #fff; color: #405771; font-size: 13px; line-height: 1.5; text-align: center; overflow-wrap: anywhere; }
body.sc-portal:not(.sc-auth-page):not(.sc-cart-page) #modalChooseLanguage .item:hover { border-color: #9bb7d5; background: #f7f9fc; }
body.sc-portal:not(.sc-auth-page):not(.sc-cart-page) #modalChooseLanguage .item.active { border-color: #9abbdc; background: #edf4fc; color: var(--sitechai-blue-dark); box-shadow: inset 0 0 0 1px #9abbdc; }
body.sc-portal:not(.sc-auth-page):not(.sc-cart-page) #modalChooseLanguage .modal-footer { padding: 16px 24px; border-top-color: var(--sitechai-border); background: #fafbfc; }
body.sc-portal:not(.sc-auth-page):not(.sc-cart-page) #modalChooseLanguage .modal-footer .btn { min-height: 42px; min-width: 90px; padding: 9px 16px; border: 1px solid var(--sitechai-blue); border-radius: 6px; background: var(--sitechai-blue); color: #fff; font-weight: 500; }
body.sc-portal:not(.sc-auth-page):not(.sc-cart-page) #modalChooseLanguage .item:focus-visible,
body.sc-portal:not(.sc-auth-page):not(.sc-cart-page) #modalChooseLanguage button:focus-visible { outline: 3px solid #83b1de; outline-offset: 2px; }
body.sc-portal:not(.sc-auth-page):not(.sc-cart-page) .sc-native-content select[name="currency"]:not([multiple]),
body:is([data-sc-page="clientareaaddfunds"], .sc-addfunds-page) select#paymentmethod { appearance: none; -webkit-appearance: none; min-height: 44px; max-width: 100%; padding: 9px 38px 9px 12px; border: 1px solid #cbd5e1; border-radius: 6px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%235d718b' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center / 16px 16px; color: #203950; font-size: 14px; line-height: 22px; }
body.sc-portal:not(.sc-auth-page):not(.sc-cart-page) .sc-native-content select[name="currency"]:focus { border-color: var(--sitechai-blue); outline: 0; box-shadow: 0 0 0 3px rgba(28,95,168,.12); }
@media (max-width: 575.98px) {
  body:is([data-sc-page="clientareaaddfunds"], .sc-addfunds-page) .sc-native-content .card-body { padding: 17px; }
  body:is([data-sc-page="clientareaaddfunds"], .sc-addfunds-page) .sc-native-content .card-footer { padding: 12px 17px; }
  body:is([data-sc-page="clientareaaddfunds"], .sc-addfunds-page) .card > .table td { padding: 11px 13px; font-size: 12px; }
  .sc-dashboard-panels [menuItemName="Register a New Domain"] .input-group > .form-control { flex-basis: 100%; width: 100%; }
  .sc-dashboard-panels [menuItemName="Register a New Domain"] .input-group-append,
  .sc-dashboard-panels [menuItemName="Register a New Domain"] .input-group-btn { flex: 1 1 100%; }
  .sc-dashboard-panels [menuItemName="Register a New Domain"] .input-group .btn { flex: 1 1 0; padding-inline: 10px; }
  body:is([data-sc-page="clientareadomaindetails"], .sc-domain-detail-page) .sc-native-content > .tab-content > .tab-pane > .card > .card-body { padding: 17px; }
  .sc-domain-summary { gap: 12px; padding-bottom: 17px; margin-bottom: 17px; }
  .sc-domain-name > a { font-size: 20px; }
  .sc-domain-facts { grid-template-columns: minmax(0,1fr); gap: 22px; }
  .sc-domain-facts .sc-domain-data { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 14px 18px; }
  .sc-domain-security .sc-domain-data { gap: 14px 18px; }
  .sc-domain-quick-actions { display: grid; gap: 8px; }
  .sc-domain-quick-actions > li > a { width: 100%; min-height: 44px; }
  body.sc-portal:not(.sc-auth-page):not(.sc-cart-page) #modalChooseLanguage .modal-body { padding: 20px 17px; }
  body.sc-portal:not(.sc-auth-page):not(.sc-cart-page) #modalChooseLanguage .item-selector > .col-4 { flex-basis: 50%; max-width: 50%; }
}

/* One readable language/currency control in the native footer. */
.sc-footer button[data-target="#modalChooseLanguage"] {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 40px; padding: 8px 12px; border: 1px solid #d6e0eb;
  border-radius: 6px; background: #fff; color: #405b77; font-size: 12px;
  line-height: 22px; box-shadow: none;
}
.sc-footer button[data-target="#modalChooseLanguage"]:hover { border-color: #a8bfd7; background: #f5f8fc; }
.sc-footer button[data-target="#modalChooseLanguage"]:focus-visible { outline: 3px solid #83b1de; outline-offset: 2px; }

/* Domain list bulk actions stay secondary. The original control lives in More. */
.sc-domain-bulkbar > .dropdown-item { display: none; }
#domainForm:not(.sc-domain-has-selection) #contactinfo,
#domainForm:not(.sc-domain-has-selection) #renewDomains,
#domainForm .sc-domain-bulkbar > [hidden] { display: none !important; }
body.sc-domain-list-page #domainForm:not(.sc-domain-has-selection) > .sc-domain-bulkbar { justify-content: flex-end; }
body.sc-domain-list-page #domainForm > .sc-domain-bulkbar > .btn { flex: 0 1 auto; }
.sc-domain-bulkbar .dropdown-menu > button.dropdown-item { width: 100%; border: 0; background: transparent; color: #294763; font: inherit; font-size: 13px; text-align: left; }
.sc-domain-bulkbar .dropdown-menu > button.dropdown-item:hover,
.sc-domain-bulkbar .dropdown-menu > button.dropdown-item:focus { background: #f0f5fa; color: var(--sitechai-blue-dark); }

/* A focused Add Funds task, using the existing credit, limits and payment form. */
body.sc-addfunds-page .sc-native-content { padding: 0; border: 0; }
.sc-addfunds-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 24px; margin: 0 0 22px; }
.sc-addfunds-heading-text { flex: 1 1 260px; min-width: 0; }
.sc-addfunds-heading h1 { margin: 0; color: var(--sitechai-ink); font-size: 25px; font-weight: 600; line-height: 1.35; letter-spacing: -.4px; }
.sc-addfunds-heading p { margin: 7px 0 0; color: var(--sitechai-muted); font-size: 13px; line-height: 1.6; }
.sc-addfunds-balance { flex: 0 1 auto; min-width: 160px; max-width: 100%; padding: 11px 15px; margin: 0; border-left: 2px solid #9ebcdd; background: #f5f8fc; }
.sc-addfunds-balance dt { color: var(--sitechai-muted); font-size: 11px; font-weight: 500; line-height: 1.5; }
.sc-addfunds-balance dd { margin: 3px 0 0; color: var(--sitechai-blue-dark); font-size: 18px; font-weight: 600; line-height: 1.4; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.sc-addfunds-layout { display: grid; grid-template-columns: minmax(0,1fr) 260px; align-items: start; gap: 20px; }
.sc-addfunds-layout > .card,
.sc-addfunds-layout > .panel { min-width: 0; margin: 0; border: 1px solid var(--sitechai-border); border-radius: 6px; background: #fff; box-shadow: none; }
body.sc-addfunds-page .sc-addfunds-form-card > .card-body,
body.sc-addfunds-page .sc-addfunds-form-card > .panel-body { padding: 22px; }
.sc-addfunds-form-title { margin: 0 0 21px; color: var(--sitechai-ink); font-size: 16px; font-weight: 600; line-height: 1.5; }
.sc-addfunds-amount-hint { margin: 7px 0 0; color: var(--sitechai-muted); font-size: 11px; line-height: 1.6; }
body.sc-addfunds-page .sc-addfunds-form-card > .card-footer,
body.sc-addfunds-page .sc-addfunds-form-card > .panel-footer { padding: 14px 22px; border-top: 1px solid #e8e0cf; background: #fbf9f4; color: #6f5b39; font-size: 12px; line-height: 1.6; }
.sc-addfunds-form-card > .card-footer > small,
.sc-addfunds-form-card > .panel-footer > small { font-size: inherit; }
.sc-addfunds-limits-title { padding: 17px 17px 12px; margin: 0; color: var(--sitechai-ink); font-size: 14px; font-weight: 600; line-height: 1.5; }
body.sc-addfunds-page .sc-addfunds-limits-card > .table { margin: 0; }
body.sc-addfunds-page .sc-addfunds-limits-card > .table td { padding: 12px 17px; border: 0; color: #425972; font-size: 12px; line-height: 1.6; }
body.sc-addfunds-page .sc-addfunds-limits-card > .table td:first-child { width: 42%; padding-right: 4px; }
body.sc-addfunds-page .sc-addfunds-limits-card > .table td:last-child { color: var(--sitechai-ink); font-weight: 500; text-align: right; }
body.sc-addfunds-page .sc-addfunds-limits-card > .table tr + tr td { border-top: 1px solid #edf0f4; }
body.sc-addfunds-page .sc-addfunds-limits-card > .table-striped > tbody > tr:nth-of-type(odd) { background: #fff; }

/* Domain identity and common actions come first; every figure remains native. */
body.sc-domain-detail-page .sc-native-content { padding: 0; border: 0; }
body.sc-domain-detail-page #tabOverview .card-body.sc-domain-overview { padding: 24px; }
body.sc-domain-detail-page .sc-domain-overview > .card-title { margin: 0 0 16px !important; color: #59708a !important; font-size: 13px !important; font-weight: 500 !important; }
.sc-domain-overview .sc-domain-summary { gap: 15px 24px; padding: 0 0 22px; margin: 0; border-bottom: 0; }
.sc-domain-overview .sc-domain-summary > .sc-domain-field { flex: 0 1 auto; width: auto; max-width: 100%; min-width: 0; padding: 0; }
.sc-domain-overview .sc-domain-name > .sc-domain-field-label { margin: 0 0 5px; color: var(--sitechai-muted); font-size: 12px; font-weight: 400; line-height: 1.5; }
.sc-domain-overview .sc-domain-name > a { color: #153c68; font-size: 27px; font-weight: 600; line-height: 1.35; letter-spacing: -.4px; }
.sc-domain-overview .sc-domain-current-status > .sc-domain-field-label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.sc-domain-actions-section { padding: 17px 0 22px; margin: 0 0 22px; border-top: 1px solid var(--sitechai-border); border-bottom: 1px solid var(--sitechai-border); }
.sc-domain-actions-section > .sc-domain-actions-title { padding: 0; margin: 0 0 12px; border: 0; color: #425972; font-size: 13px; font-weight: 500; line-height: 1.5; }
.sc-domain-actions-section .sc-domain-quick-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.sc-domain-actions-section .sc-domain-quick-actions > li > a { min-height: 40px; padding: 9px 12px; border-radius: 5px; color: #365574; font-size: 12px; font-weight: 500; line-height: 1.5; }
.sc-domain-overview .sc-domain-facts { display: block; padding-bottom: 23px; margin-bottom: 23px; border-bottom: 1px solid var(--sitechai-border); }
.sc-domain-overview .sc-domain-data-group > h4 { margin: 0 0 16px; font-size: 14px; font-weight: 600; }
.sc-domain-overview .sc-domain-facts .sc-domain-data { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px 25px; }
.sc-domain-overview .sc-domain-facts .sc-domain-field { color: #233f5b; font-size: 14px; font-weight: 500; line-height: 1.6; }
.sc-domain-overview .sc-domain-field > .sc-domain-field-label { margin: 0 0 5px; color: #657890; font-size: 12px; font-weight: 400; line-height: 1.5; }
.sc-domain-field > br:last-child { display: none; }
.sc-domain-details { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.65fr); gap: 26px; }
.sc-domain-details > .sc-domain-data-group:only-child { grid-column: 1 / -1; }
.sc-domain-details > .sc-domain-data-group:only-child > .sc-domain-data { grid-template-columns: repeat(2,minmax(0,1fr)); }
.sc-domain-details .sc-domain-security { padding: 0 0 0 25px; margin: 0; border-top: 0; border-left: 1px solid var(--sitechai-border); }
.sc-domain-details .sc-domain-security .sc-domain-data { gap: 16px 22px; }
.sc-domain-overview-fallback h4:not(.card-title),
.sc-domain-overview-fallback h5:not(.card-title),
.sc-domain-overview-fallback h6:not(.card-title) { margin-bottom: 5px; color: #657890; font-size: 12px; font-weight: 400; }
.sc-domain-overview-fallback > .row { font-size: 13px; line-height: 1.6; }

/* Native domain add-ons: compact descriptions and clear, separate actions. */
body.sc-domain-detail-page #tabAddons > .card > .card-body { padding: 24px; }
.sc-domain-addons-panel > .card-title { margin: 0 0 8px; color: var(--sitechai-ink); font-size: 20px; font-weight: 600; line-height: 1.4; }
.sc-domain-addons-panel > p { margin-bottom: 20px; color: var(--sitechai-muted); font-size: 13px; line-height: 1.65; }
.sc-domain-addons-panel > hr { display: none; }
.sc-domain-addon { display: flex; flex-wrap: nowrap; align-items: flex-start; gap: 15px; margin: 0 0 12px !important; padding: 19px; border: 1px solid #dce4ed; border-radius: 6px; background: #fff; }
.sc-domain-addon:last-of-type { margin-bottom: 0 !important; }
.sc-domain-addon > .sc-domain-addon-icon { flex: 0 0 38px; max-width: 38px; width: 38px; padding: 9px; border-radius: 5px; background: #f0f5fb; color: #35628e; line-height: 20px; }
.sc-domain-addon-icon > i { font-size: 20px; line-height: 20px; }
.sc-domain-addon > .sc-domain-addon-content { flex: 1 1 auto; min-width: 0; max-width: none; width: auto; padding: 0; }
.sc-domain-addon-title { display: block; margin: 0 0 5px; color: #203f60; font-size: 15px; font-weight: 600; line-height: 1.5; }
.sc-domain-addon-description { max-width: 700px; margin: 0 0 15px; color: #62758a; font-size: 13px; line-height: 1.65; }
.sc-domain-addon-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
.sc-domain-addon-actions > .btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; max-width: 100%; padding: 9px 13px; border-radius: 5px; box-shadow: none; font-size: 13px; font-weight: 500; line-height: 20px; white-space: normal; }
.sc-domain-addon-actions > .btn-success { border: 1px solid var(--sitechai-blue); background: var(--sitechai-blue); color: #fff; }
.sc-domain-addon-actions > .btn-success:hover { border-color: var(--sitechai-blue-dark); background: var(--sitechai-blue-dark); }
.sc-domain-addon-actions > .btn-danger { border: 1px solid #ddc6c2; background: #fff; color: #97473e; }
.sc-domain-addon-actions > .btn-danger:hover { border-color: #cba29a; background: #fff5f3; color: #85382f; }
.sc-domain-addon-actions > .btn:focus-visible { outline: 3px solid #83b1de; outline-offset: 3px; }
.sc-domain-addon-actions > .btn:disabled,
.sc-domain-addon-actions > .btn.disabled { opacity: .55; cursor: not-allowed; }
@media (max-width: 575.98px) {
  body.sc-domain-detail-page #tabAddons > .card > .card-body { padding: 18px; }
  .sc-domain-addon { flex-wrap: wrap; gap: 11px; padding: 16px; }
  .sc-domain-addon > .sc-domain-addon-content { flex-basis: 100%; }
  .sc-domain-addon-actions > .btn { min-height: 44px; }
}

/* A compact registrar-lock state with the original native enable/disable form. */
body.sc-domain-detail-page #tabReglock > .card > .card-body { padding: 24px; }
.sc-domain-lock-panel > br { display: none; }
.sc-domain-lock-panel > .card-title { margin: 0 0 18px; color: var(--sitechai-ink); font-size: 20px; font-weight: 600; line-height: 1.4; }
body.sc-domain-detail-page #tabReglock .alert { padding: 13px 15px; border-radius: 6px; font-size: 13px; line-height: 1.65; text-align: left !important; }
body.sc-domain-detail-page #tabReglock .alert-info { border-color: #d7e4f1; background: #f3f7fc; color: #465f78; }
body.sc-domain-detail-page #tabReglock .alert-danger { border-color: #efd2cf; background: #fff3f1; color: #943c35; }
body.sc-domain-detail-page #tabReglock .alert-success { border-color: #d3e7d9; background: #eff7f1; color: #2e7148; }
.sc-domain-lock-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 26px; padding: 19px 0 2px; }
.sc-domain-lock-controls > .sc-domain-lock-status { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; max-width: 100%; padding: 0; margin: 0; color: #405771; font-size: 14px; font-weight: 500; line-height: 1.6; text-align: left !important; }
.sc-domain-lock-status > .label,
.sc-domain-lock-status > .badge { display: inline-block; padding: 4px 8px; border: 1px solid #d3e7d9; border-radius: 4px; background: #eff7f1; color: #2e7148; font-size: 12px; font-weight: 600; line-height: 18px; }
.sc-domain-lock-status > .label-danger,
.sc-domain-lock-status > .badge-danger { border-color: #eadfc9; background: #fff6e8; color: #89632b; }
.sc-domain-lock-controls > form { flex: 0 1 auto; margin: 0; }
.sc-domain-lock-controls > form > p { margin: 0; text-align: left !important; }
.sc-domain-lock-controls .btn { min-height: 44px; max-width: 100%; padding: 10px 15px; border-radius: 6px; font-size: 13px; font-weight: 600; line-height: 22px; white-space: normal; box-shadow: none; }
.sc-domain-lock-controls .btn-danger { border: 1px solid #dfbab5; background: #fff; color: #9d4037; }
.sc-domain-lock-controls .btn-danger:hover { border-color: #c78f87; background: #fff3f1; color: #8e342c; }
.sc-domain-lock-controls .btn-success { border: 1px solid var(--sitechai-blue); background: var(--sitechai-blue); color: #fff; }
.sc-domain-lock-controls .btn-success:hover { border-color: var(--sitechai-blue-dark); background: var(--sitechai-blue-dark); }
.sc-domain-lock-controls .btn:focus-visible { outline: 3px solid #83b1de; outline-offset: 3px; }
.sc-nameserver-save-note { max-width: 470px; padding-left: 11px; margin: 12px 0 0; border-left: 2px solid #bb9559; font-size: 12px; line-height: 1.65; }
@media (max-width: 767.98px) {
  body.sc-portal:not(.sc-auth-page):not(.sc-cart-page) #footer.sc-footer { padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
  body.sc-domain-list-page #domainForm > .sc-domain-bulkbar > .btn-group { grid-column: 1 / -1; justify-self: end; min-width: 84px; }
  .sc-addfunds-layout { grid-template-columns: minmax(0,1fr); gap: 18px; }
  .sc-addfunds-balance { min-width: 0; }
  .sc-addfunds-limits-title { padding: 16px 17px 7px; }
  body.sc-addfunds-page .sc-addfunds-limits-card > .table td { padding: 10px 17px; }
  body.sc-domain-detail-page #tabOverview .card-body.sc-domain-overview,
  body.sc-domain-detail-page #tabReglock > .card > .card-body { padding: 18px; }
  .sc-domain-overview .sc-domain-name > a { font-size: 23px; }
  .sc-domain-overview .sc-domain-facts .sc-domain-data { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 17px 20px; }
  .sc-domain-details { grid-template-columns: minmax(0,1fr); gap: 23px; }
  .sc-domain-details .sc-domain-security { padding: 21px 0 0; border-left: 0; border-top: 1px solid var(--sitechai-border); }
  .sc-domain-details > .sc-domain-data-group > .sc-domain-data { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 17px 20px; }
}
@media (max-width: 575.98px) {
  .sc-addfunds-heading { gap: 15px; margin-bottom: 19px; }
  .sc-addfunds-heading-text { flex-basis: 100%; }
  .sc-addfunds-heading h1 { font-size: 23px; }
  .sc-addfunds-balance { flex: 1 1 100%; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 11px 13px; }
  .sc-addfunds-balance dd { margin: 0; font-size: 16px; }
  body.sc-addfunds-page .sc-addfunds-form-card > .card-body,
  body.sc-addfunds-page .sc-addfunds-form-card > .panel-body { padding: 18px; }
  body.sc-addfunds-page .sc-addfunds-form-card > .card-footer,
  body.sc-addfunds-page .sc-addfunds-form-card > .panel-footer { padding: 13px 18px; }
  .sc-domain-actions-section .sc-domain-quick-actions { display: grid; gap: 8px; }
  .sc-domain-actions-section .sc-domain-quick-actions > li > a { min-height: 44px; }
  .sc-domain-lock-controls { padding-top: 14px; }
  .sc-domain-lock-controls > form { flex-basis: 100%; }
  .sc-domain-lock-controls .btn { width: 100%; }
  .sc-nameserver-save-note { padding-right: 52px; }
}
