/* =========================================================
   Shiv27 Child — custom.css
   This file REPLACES nexus/css/custom.css (same path), so it must define every
   variable Nexus's theme.css expects. Section 1 is Nexus's own list with the
   neutral palette swapped for the ProHosty brand palette (ph-files/css/tokens.css).
   Section 2 holds component overrides, added page by page in Phase 7.
   No Tailwind, no extra frameworks: Nexus's Bootstrap 4.5.3 stays untouched.
   ========================================================= */
@import url("https://cdn.jsdelivr.net/npm/@fontsource-variable/inter@5.0.18/index.css");

/* ---------- 1. Theme variables (Nexus names, ProHosty values) ---------- */
:root {
  --white: #fff;

  /* Neutral shades → ProHosty ink/line scale */
  --neutral-50:  #f8fafc;
  --neutral-100: #f1f5f9;
  --neutral-200: #e2e8f0;
  --neutral-300: #cbd5e1;
  --neutral-400: #94a3b8;
  --neutral-500: #64748b;
  --neutral-600: #475569;
  --neutral-700: #334155;
  --neutral-800: #1e293b;
  --neutral-900: #0f172a;
  --neutral-950: #020617;

  /* Primary shades → ProHosty blue */
  --primary-50:  #f4f7ff;
  --primary-100: #e8efff;
  --primary-200: #c7d8ff;
  --primary-300: #9ebcff;
  --primary-400: #6a9cff;
  --primary-500: #2b78f6;
  --primary-600: #035ded;
  --primary-700: #004bc3;
  --primary-800: #1934a7;
  --primary-900: #031974;
  --primary-950: #001b79;

  --primary: var(--primary-600);
  --primary-lifted: var(--primary-700);
  --primary-accented: var(--primary-900);

  --secondary: var(--neutral-500);
  --secondary-lifted: var(--neutral-600);
  --secondary-accented: var(--neutral-700);

  --success: #16a34a;
  --success-lifted: #15803d;
  --success-accented: #166534;

  --info: #035ded;
  --info-lifted: #004bc3;
  --info-accented: #1934a7;

  --notice: #5b5bd6;
  --notice-lifted: #4f46e5;
  --notice-accented: #3730a3;

  --warning: #f59e0b;
  --warning-lifted: #d97706;
  --warning-accented: #b45309;

  --error: #dc2626;
  --error-lifted: #b91c1c;
  --error-accented: #991b1b;

  --grayscale: var(--neutral-900);
  --grayscale-lifted: var(--neutral-800);
  --grayscale-accented: var(--primary-900);   /* logged-in top bar */

  --neutral: var(--neutral-500);
  --neutral-lifted: var(--neutral-600);
  --neutral-accented: var(--neutral-700);

  --text-inverted: var(--white);
  --text-muted: var(--neutral-400);
  --text-lifted: var(--neutral-500);
  --text-accented: var(--primary-700);
  --text: var(--neutral-900);

  --border-muted: var(--neutral-100);
  --border: var(--neutral-200);
  --border-lifted: var(--neutral-300);
  --border-accented: var(--neutral-600);

  --bg: var(--white);
  --bg-muted: var(--neutral-50);
  --bg-lifted: var(--primary-50);
  --bg-accented: var(--primary-100);
  --bg-inverted: var(--primary-950);          /* footer + html background */

  --yellow-200: #fff085;
  --yellow-300: #ffdf20;
  --teal-300: #46edd5;
  --teal-400: #00d5be;
  --emerald-300: #5ee9b5;
  --pink-400: #fb64b6;

  --text-xs: 0.625rem;
  --text-sm: 0.75rem;
  --text-md: 0.875rem;
  --text-lg: 1rem;

  --outline-sm: 1px;
  --outline-md: 2px;
  --outline-lg: 3px;

  /* Rounding → ProHosty radius scale */
  --rounding-sm: 6px;
  --rounding-md: 10px;
  --rounding-lg: 16px;

  --letter-spacing: 0em;
  --disabled-opacity: 25%;

  /* ProHosty extras used below */
  --ph-font: "Inter Variable", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --ph-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --ph-shadow-md: 0 6px 20px rgba(3, 25, 116, 0.08);
  --ph-gradient: linear-gradient(135deg, #031974 0%, #1934a7 60%, #035ded 100%);
  --ph-ring: 0 0 0 3px rgba(3, 93, 237, 0.25);
}

/* ---------- 2. Overrides ---------- */

/* 2.0 Base: type and links */
body { font-family: var(--ph-font); color: var(--neutral-700); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { font-family: var(--ph-font); color: var(--neutral-900); letter-spacing: -0.01em; }
a { color: var(--primary); }
a:hover { color: var(--primary-lifted); text-decoration: none; }
.btn { border-radius: var(--rounding-md); font-weight: 600; transition: background 180ms, border-color 180ms, color 180ms; }
.btn:focus, .btn.focus { box-shadow: var(--ph-ring); }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover, .btn-primary:focus, .btn-primary:not(:disabled):not(.disabled):active { background: var(--primary-lifted); border-color: var(--primary-lifted); color: #fff; }
.btn-default { border-color: var(--border); color: var(--neutral-700); }
.btn-default:hover { background: var(--primary-50); border-color: var(--primary-200); color: var(--primary-lifted); }
.form-control { border-radius: var(--rounding-md); border-color: var(--border); }
.form-control:focus { border-color: var(--primary); box-shadow: var(--ph-ring); }

/* 2.1 Client-area bar, breadcrumb, footer (rebuilt 15 Nov) ---------------------------------------
   The top of every page is now the WEBSITE's own header (markup from ph-inc/layout/header.php, styles in
   ph-files/css/chrome.css, "phc-" classes) and the bottom is the website's footer. What is styled here is
   the client-area bar under that header: WHMCS navigation with icons, notifications, cart, account menu.
   The website header is the sticky one; this bar scrolls away with the page. */
header.header { position: relative; z-index: 1000; background: #fff; box-shadow: 0 1px 0 var(--border); }
header.header .ph-mainbar { min-height: 60px; padding: 0; }
header.header .ph-mainbar > .container { display: flex; align-items: center; flex-wrap: wrap; min-height: 60px; }
/* (the "CLIENT AREA" label at the start of the bar was removed on 25 Nov — owner) */
/* fallback (no website header): the logo sits in the bar */
header.header .navbar-brand { order: 1; padding: 0; margin: 0 20px 0 0; display: inline-flex; align-items: center; }
header.header .logo-img { max-height: 30px; width: auto; }
header.header .ph-toolbar { order: 2; margin-left: auto; flex-direction: row; align-items: center; gap: 8px; margin-top: 0; margin-bottom: 0; }
header.header .navbar-collapse { order: 3; }
@media (min-width: 1200px) {
  header.header .navbar-collapse { order: 2; flex: 1 1 0%; min-width: 0; }
  header.header .ph-toolbar { order: 3; margin-left: 12px; }
  header.header #nav, header.header .ph-secondary-nav { flex-wrap: nowrap; }
}
/* toolbar buttons: notifications, return to admin, cart, menu toggle */
header.header .toolbar .nav-link, header.header .toolbar .btn.nav-link { position: relative; width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 1px solid var(--border); border-radius: var(--rounding-md); color: var(--neutral-700); background: #fff; box-shadow: none; transition: background-color 180ms, border-color 180ms, color 180ms; }
header.header .toolbar .nav-link:hover, header.header .toolbar .btn.nav-link:hover, header.header .toolbar .btn.nav-link:focus { border-color: var(--primary-200); color: var(--primary); background: var(--primary-50); }
header.header .toolbar .nav-link .badge { position: absolute; top: -7px; right: -7px; min-width: 20px; height: 20px; padding: 0 6px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; background: var(--primary); color: #fff; font-size: 11px; font-weight: 700; border: 2px solid #fff; }
header.header .toolbar .ph-bell .badge { background: #f59e0b; color: #1f1300; }
header.header .toolbar .ph-return-admin { border-color: #fbbf24; background: #fffbeb; color: #92400e; }
header.header .toolbar .ph-return-admin:hover { border-color: #f59e0b; background: #fef3c7; color: #78350f; }
header.header .toolbar .ph-menu-toggle { width: auto; padding: 0 12px; gap: 8px; font-size: 13px; font-weight: 600; }
/* navigation links (icons come from shiv27_navbar.php) */
header.header .navbar-nav { gap: 2px; margin-top: 0; margin-bottom: 0; }
#nav { gap: 2px; }
/* no "More" dropdown (owner, 15 Nov): every item is "no-collapse" (shiv27_navbar.php), so Nexus's empty More button is hidden */
#nav > .collapsable-dropdown { display: none !important; }
header.header .navbar-nav > li > a { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 11px; border-radius: var(--rounding-md); font-size: 14px; font-weight: 500; color: var(--neutral-700); white-space: nowrap; transition: background-color 180ms, color 180ms; }
header.header .navbar-nav > li > a:hover, header.header .navbar-nav > li.show > a { background: var(--neutral-50); color: var(--neutral-900); text-decoration: none; }
header.header .navbar-nav > li.active > a { color: var(--primary); background: var(--primary-50); }
header.header .navbar-nav > li > a .badge { background: var(--primary); color: #fff; border-radius: 999px; font-size: 11px; }
header.header .navbar-nav > li > a > i { width: 16px; text-align: center; font-size: 14px; color: var(--primary) !important; opacity: 0.9; }
header.header .navbar-nav > li > a.dropdown-toggle::after { margin-left: 2px; opacity: 0.6; }
/* account menu as a user pill */
header.header .ph-secondary-nav { gap: 8px; }
header.header .ph-secondary-nav > li.account > a, header.header .ph-secondary-nav > li[menuitemname="Account"] > a { border: 1px solid var(--border); border-radius: 999px; padding: 0 12px 0 10px; font-weight: 600; color: var(--neutral-900); }
header.header .ph-secondary-nav > li.account > a:hover, header.header .ph-secondary-nav > li.account.show > a, header.header .ph-secondary-nav > li[menuitemname="Account"] > a:hover, header.header .ph-secondary-nav > li[menuitemname="Account"].show > a { border-color: var(--primary-200); background: var(--primary-50); }
/* dropdown menus */
header.header .dropdown-menu { border: 1px solid var(--border); border-radius: var(--rounding-lg); box-shadow: 0 16px 40px rgba(3, 25, 116, 0.12); padding: 6px; margin-top: 8px; min-width: 240px; }
header.header .dropdown-menu .dropdown-item { border-radius: var(--rounding-sm); padding: 0; transition: background-color 150ms; }
header.header .dropdown-menu .dropdown-item a, header.header .dropdown-menu a.dropdown-item { display: flex; align-items: center; gap: 10px; padding: 9px 12px !important; color: var(--neutral-700); font-size: 14px; }
header.header .dropdown-menu .dropdown-item:hover, header.header .dropdown-menu .dropdown-item:hover a { background: var(--primary-50); color: var(--primary-lifted); }
header.header .dropdown-item.active, header.header .dropdown-item:active { background: var(--primary-100); color: var(--primary-lifted); }
header.header .dropdown-menu i { flex: 0 0 18px; width: 18px; text-align: center; font-size: 13.5px; color: var(--primary) !important; opacity: 0.85; }
/* notifications popover */
.popover .client-alerts { margin: 0; padding: 0; list-style: none; }
/* collapsed (phone / tablet) navigation */
@media (max-width: 1199.98px) {
  header.header .navbar-collapse { flex-basis: 100%; padding: 8px 0 12px; border-top: 1px solid var(--border-muted); margin-top: 0; }
  header.header .ph-mainbar > .container { padding-top: 10px; padding-bottom: 10px; }
  header.header .navbar-nav > li > a { height: 44px; width: 100%; justify-content: flex-start; }
  header.header .ph-secondary-nav { gap: 4px; margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--border-muted); }
  header.header .ph-secondary-nav > li.account > a, header.header .ph-secondary-nav > li[menuitemname="Account"] > a { border-radius: var(--rounding-md); }
  header.header .dropdown-menu { box-shadow: none; border: 0; background: var(--neutral-50); margin: 2px 0 6px; }
}
@media (max-width: 575.98px) {
  header.header .logo-img { max-height: 26px; }
}
.master-breadcrumb { background: var(--primary-50); border-bottom: 1px solid var(--border-muted); }
.master-breadcrumb .breadcrumb { background: transparent; font-size: 13px; }
.master-breadcrumb .breadcrumb a { color: var(--neutral-500); }
.master-breadcrumb .breadcrumb .breadcrumb-item.active { color: var(--primary-lifted); font-weight: 500; }

/* same page width and side gutters as the website (1200px + 24px gutters), so the client bar, breadcrumb and
   content line up with the website header and footer above and below them */
header.header .container, .master-breadcrumb .container, section#main-body > .container, .ph-locale-bar .container { width: 100%; max-width: 1248px; padding-left: 16px; padding-right: 16px; }
@media (min-width: 768px) { header.header .container, .master-breadcrumb .container, section#main-body > .container, .ph-locale-bar .container { padding-left: 24px; padding-right: 24px; } }
header.header .ph-mainbar > .container { padding-left: 16px !important; padding-right: 16px !important; }
@media (min-width: 768px) { header.header .ph-mainbar > .container { padding-left: 24px !important; padding-right: 24px !important; } }
/* no empty strip when a page has no breadcrumb left ("Portal Home" is no longer listed) */
.master-breadcrumb:not(:has(.breadcrumb-item)) { display: none; }
/* language / currency chooser strip above the footer (only shown when more than one is enabled) */
.ph-locale-bar { padding: 12px 0; background: var(--primary-50); border-top: 1px solid var(--border-muted); text-align: right; }
/* fallback footer (the website footer normally replaces it) */
footer.footer.ph-footer-plain { background: var(--primary-950); color: rgba(255,255,255,0.78); padding: 24px 0; }
footer.footer.ph-footer-plain a { color: rgba(255,255,255,0.78); }
footer.footer.ph-footer-plain a:hover { color: #fff; }
footer.footer.ph-footer-plain .nav { gap: 4px 20px; }
footer.footer.ph-footer-plain .nav-link { padding: 0; font-size: 13px; }
footer.footer.ph-footer-plain .ph-footer-bottom { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; }
footer.footer.ph-footer-plain .copyright { margin: 0; text-align: left; color: rgba(255,255,255,0.6); font-size: 13px; }
/* WHMCS paints the page background in the footer colour; with the website footer the body stays light */
html, body { background-color: var(--primary-50); }
/* 2.2 Cards, forms and auth pages (Phase 7.2) ---------------------------- */
section#main-body { background: var(--primary-50); padding: 32px 0 48px; }
.primary-content .card { border: 1px solid var(--border); border-radius: var(--rounding-lg); box-shadow: var(--ph-shadow-sm); }
.primary-content .card .card-body { padding: 1.5rem; }
.primary-content .card .card-title { font-size: 20px; font-weight: 700; color: var(--neutral-900); }
.primary-content .card .card-footer { background: var(--neutral-50); border-top: 1px solid var(--border-muted); border-radius: 0 0 var(--rounding-lg) var(--rounding-lg); }
.primary-content .card.mw-540 { box-shadow: var(--ph-shadow-md); }
.primary-content .card.mw-540 .card-body { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.primary-content .card.mw-540 .h3 { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 4px; }
.primary-content .card.mw-540 .text-muted { color: var(--neutral-500) !important; }
.text-muted { color: var(--neutral-500) !important; }
label, .form-control-label { font-size: 14px; font-weight: 600; color: var(--neutral-900); margin-bottom: 6px; }
.form-control, .custom-select, #registration .field { height: 44px; border-radius: var(--rounding-md); border: 1px solid var(--border); color: var(--neutral-900); background: #fff; }
.form-control::placeholder, #registration .field::placeholder { color: var(--neutral-400); }
.form-control:focus, #registration .field:focus, body .login-form .form-control:focus { border-color: var(--primary); box-shadow: var(--ph-ring); outline: none; }
textarea.form-control { height: auto; min-height: 120px; }
/* merged input groups (login, reset): icon box + input read as one control */
.input-group-merge { border: 1px solid var(--border); border-radius: var(--rounding-md); background: #fff; transition: border-color 180ms, box-shadow 180ms; }
.input-group-merge:focus-within { border-color: var(--primary); box-shadow: var(--ph-ring); }
.input-group-merge .input-group-text { background: transparent; border: 0; color: var(--primary); padding-left: 14px; padding-right: 4px; }
.input-group-merge .form-control, .input-group-merge .form-control:focus, body .login-form .form-control:focus, body .login-form #inputPassword:focus { border: 0; box-shadow: none; height: 42px; border-radius: var(--rounding-md); }
.input-group-merge .btn-reveal-pw, .input-group .btn-reveal-pw, .input-group .btn-reveal-pw:hover, .input-group .btn-reveal-pw:active { border: 0; background: transparent; color: var(--neutral-400); border-radius: var(--rounding-md); }
.input-group .btn-reveal-pw:hover { color: var(--primary); }
.login-form .btn-primary, #frmCheckout .btn-primary, #resetPasswordButton { height: 44px; padding: 0 22px; }
.login-form .float-left + .text-right label { font-weight: 500; color: var(--neutral-700); padding-top: 10px; }
.login-form .form-check-input { position: static; margin: 0 6px 0 0; vertical-align: middle; accent-color: var(--primary); }
.login-form .small.text-muted:hover { color: var(--primary) !important; }
.login-form .card-footer small { color: var(--neutral-500); }
.login-form .card-footer a { color: var(--primary); }
/* registration form */
#registration .prepend-icon .field-icon { height: 44px; line-height: 44px; }
#registration .field-icon i { color: var(--primary); }
#registration .prepend-icon .field { padding-left: 40px; }
#registration .card .card-title { font-size: 18px; margin-bottom: 18px; }
#registration .generate-password { height: 36px; border-radius: var(--rounding-md); }
.password-strength-meter .progress { height: 8px; border-radius: 999px; background: var(--neutral-100); }
.password-strength-meter .progress-bar { border-radius: 999px; }
body form.using-password-strength .btn-primary:disabled { background: var(--neutral-300); border-color: var(--neutral-300); }
#registration .btn-primary.btn-lg, #registration button#btnCompleteOrder { height: 48px; padding: 0 28px; }
/* linked accounts (Google/Facebook sign-in buttons when enabled) */
.providerLinkingFeedback + .login-form { margin-top: 0; }
.linked-accounts .btn, .linked-accounts-wrapper .btn { border-radius: var(--rounding-md); }
/* alerts */
.alert { border-radius: var(--rounding-md); border: 1px solid transparent; }
.alert-success { background: #ecfdf5; border-color: #bbf7d0; color: #166534; }
.alert-danger, .alert-error { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.alert-info { background: var(--primary-50); border-color: var(--primary-200); color: var(--primary-accented); }
.alert-warning { background: #fffbeb; border-color: #fde68a; color: #92400e; }

/* 2.3 Client dashboard (Phase 7.3) --------------------------------------- */
/* stat tiles: each tile becomes its own white card with a brand icon badge */
.tiles { margin-bottom: 24px !important; }
.tiles .row.no-gutters { margin: -8px; }
.tiles .row.no-gutters > div { padding: 8px; }
.tiles .tile { background: #fff; border: 1px solid var(--border) !important; border-radius: var(--rounding-lg); padding: 20px 20px 18px; box-shadow: var(--ph-shadow-sm); min-height: 128px; }
.tiles .tile:hover { background: #fff; border-color: var(--primary-200) !important; box-shadow: var(--ph-shadow-md); transform: translateY(-2px); }
.tiles .tile .stat { margin-top: 0; font-size: 36px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; color: var(--neutral-900); }
.tiles .tile .title { margin-top: 6px; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; color: var(--neutral-500); }
.tiles .tile .highlight { width: 44px; height: 3px; margin-top: 12px; border-radius: 999px; }
.tiles .tile i { top: 16px; right: 16px; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; font-size: 18px; border-radius: var(--rounding-md); background: var(--primary-50); color: var(--primary); }
.tiles .tile:hover i { font-size: 18px; background: var(--primary); color: #fff; }
.tiles .highlight.bg-color-blue { background-color: var(--primary); }
.tiles .highlight.bg-color-green { background-color: var(--success); }
.tiles .highlight.bg-color-red { background-color: var(--error); }
.tiles .highlight.bg-color-gold { background-color: var(--warning); }
@media (max-width: 1199.98px) { .tiles div:nth-child(1) > .tile, .tiles div:nth-child(2) > .tile { border-bottom: 1px solid var(--border); } }
@media (max-width: 575.98px) { .tiles .tile { padding: 16px; min-height: 112px; } .tiles .tile .stat { font-size: 28px; } .tiles .tile i { width: 36px; height: 36px; font-size: 15px; top: 14px; right: 14px; } }

/* home panels (Active Products, Tickets, News, Domain search) */
.client-home-cards .card { border-top: 1px solid var(--border); margin-bottom: 24px; overflow: hidden; }
.client-home-cards .card[class*="card-accent-"] { border-top-width: 1px; border-top-color: var(--border); }
.client-home-cards .card-header { padding: 16px 20px; background: #fff; border-bottom: 1px solid var(--border-muted); }
.client-home-cards .card-title, .primary-content .client-home-cards .card .card-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 16px; font-weight: 700; color: var(--neutral-900); }
.client-home-cards .card-title > i { color: var(--primary); width: 20px; text-align: center; }
.client-home-cards .card-title .float-right { order: 2; margin-left: auto; }
.client-home-cards .card-header .btn, .client-home-cards .card-header .btn.btn-default[class*="bg-color-"] { background: var(--primary-50) !important; color: var(--primary) !important; border: 0; border-radius: 999px; font-size: 12px; font-weight: 600; padding: 5px 12px; line-height: 1.4; white-space: nowrap; }
.client-home-cards .card-header .btn:hover { background: var(--primary) !important; color: #fff !important; }
.client-home-cards .card-body, .primary-content .client-home-cards .card .card-body { padding: 0; }
.client-home-cards .card-body p { padding: 18px 20px; margin: 0; color: var(--neutral-600); font-size: 14px; line-height: 1.6; }
.client-home-cards .card-body p a { color: var(--primary); font-weight: 600; }
.client-home-cards .list-group { border-top: 0 !important; border-bottom: 0 !important; max-height: 220px; }
.client-home-cards .list-group .list-group-item { padding: 10px 20px; border-bottom: 1px solid var(--border-muted); font-size: 14px; color: var(--neutral-700); }
.client-home-cards .list-group .list-group-item:hover { background: var(--primary-50); color: var(--primary); }
.client-home-cards .card-footer, .primary-content .client-home-cards .card .card-footer { background: #fff; border-top: 0; padding: 0 20px 12px; }
.client-home-cards .card-footer:not(:has(a, button, form)) { padding: 0; }
.client-home-cards .btn-view-more { font-size: 13px; font-weight: 600; color: var(--primary); }
.client-home-cards .btn-view-more.disabled { color: var(--neutral-400); }
/* active services rows */
.div-service-item { padding: 2px 0; }
.div-service-status .label { padding: 4px 8px; font-size: 11px; font-weight: 600; letter-spacing: 0.02em; border-radius: 999px; }
.div-service-name .font-weight-bold { color: var(--neutral-900); font-size: 14px; }
.div-service-name .text-domain { color: var(--neutral-500); font-size: 13px; }
.div-service-buttons .btn { border-radius: var(--rounding-md); font-size: 12px; }
.div-service-buttons .btn-group .btn:not(:last-child) { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.div-service-buttons .btn-group .btn:not(:first-child) { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.div-service-buttons .btn-default { border: 1px solid var(--border); color: var(--neutral-700); background: #fff; }
.div-service-buttons .btn-default:hover { border-color: var(--primary); color: var(--primary); }
/* domain search panel */
.client-home-cards form .input-group { padding: 18px 20px !important; gap: 8px; flex-wrap: wrap; }
.client-home-cards form .input-group .form-control { height: 42px; border-radius: var(--rounding-md) !important; flex: 1 1 180px; }
.client-home-cards form .input-group-append { gap: 8px; }
.client-home-cards form .input-group-append .btn { height: 42px; border-radius: var(--rounding-md) !important; padding: 0 16px; font-weight: 600; }
.client-home-cards form .input-group-append .btn-default { border: 1px solid var(--border); color: var(--neutral-700); background: #fff; }
.client-home-cards form .input-group-append .btn-default:hover { border-color: var(--primary); color: var(--primary); }
.client-home-cards .list-group + .card-footer, .client-home-cards .card-body + .card-footer { padding-top: 8px; }
.client-home-cards small { color: var(--neutral-500); }

/* sidebar cards (Your Info, Contacts, Shortcuts and all other pages' sidebars) */
.sidebar .card, .sidebar .card-sidebar { border: 1px solid var(--border); border-radius: var(--rounding-lg); box-shadow: var(--ph-shadow-sm); overflow: hidden; margin-bottom: 20px !important; }
.sidebar .card-header { padding: 14px 20px; background: #fff; border-bottom: 1px solid var(--border-muted); border-radius: 0; }
.sidebar .card-title, .sidebar .card-sidebar .panel-title { font-size: 15px !important; font-weight: 700; color: var(--neutral-900); }
.sidebar .card-sidebar .card-minimise { color: var(--neutral-400); font-size: 12px; margin-top: 4px; }
.sidebar .card-sidebar .card-minimise:hover { color: var(--primary); }
.sidebar .card-body { padding: 16px 20px; font-size: 14px; line-height: 1.6; color: var(--neutral-600); }
.sidebar .card-body strong { color: var(--neutral-900); }
.sidebar .card-footer { background: #fff; border-top: 1px solid var(--border-muted); padding: 12px 20px; border-radius: 0; }
body .sidebar .btn-success { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 600; border-radius: var(--rounding-md); }
body .sidebar .btn-success:hover { background: var(--primary-lifted); border-color: var(--primary-lifted); }
body .sidebar .btn-default { border: 1px solid var(--border); color: var(--neutral-700); background: #fff; font-weight: 600; border-radius: var(--rounding-md); }
body .sidebar .btn-default:hover { border-color: var(--primary); color: var(--primary); }
.sidebar .list-group:last-child { border-radius: 0; }
.sidebar .list-group-item { padding: 10px 20px; font-size: 14px; color: var(--neutral-700); border-bottom: 1px solid var(--border-muted); }
.sidebar .list-group-item:last-child { border-bottom: 0; }
.sidebar .list-group-item:hover { background: var(--primary-50); color: var(--primary); }
.sidebar .list-group-item.active, .sidebar .list-group-item.active:hover, .sidebar .list-group-item.active:focus { background: var(--primary-50); color: var(--primary); font-weight: 600; box-shadow: inset 3px 0 0 var(--primary); }
.sidebar .sidebar-menu-item-icon-wrapper { width: 24px; margin-right: 6px; color: var(--primary); text-align: center; }
.sidebar .sidebar-menu-item-icon-wrapper .fas, .sidebar .list-group-item .fas { font-weight: 900; }
.sidebar .list-group-item .badge, body .sidebar .list-group-item .badge { background: var(--primary-50); color: var(--primary); border-radius: 999px; font-weight: 600; width: auto; min-width: 28px; padding: 4px 8px; }
.sidebar .card-body .form-control { height: 40px; }
/* sidebar mobile select variant */
.sidebar .card.d-block.d-md-none .card-body { padding: 12px 20px; }

/* 2.4 List pages: services, domains, invoices (Phase 7.4) ---------------- */
/* DataTables wrapper: search + "Showing x of y" sit in one row above a card-style table */
.table-container { margin-bottom: 8px; }
body .dataTables_wrapper { overflow-x: visible; }
/* Nexus does not ship the DataTables Responsive extension, so wide tables scroll sideways on phones */
body .dataTables_wrapper .listtable { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 4px; overflow-x: auto; -webkit-overflow-scrolling: touch; padding: 2px; }
body .dataTables_wrapper .dataTables_info { order: 1; padding: 0; font-size: 13px; color: var(--neutral-500); }
body .dataTables_wrapper .dataTables_filter { order: 2; float: none; margin: 0 0 0 auto; width: auto; }
body .dataTables_wrapper .dataTables_filter label { margin: 0; display: block; }
body .dataTables_wrapper .dataTables_filter label .form-control { width: 260px; max-width: 100%; height: 42px; padding: 7px 12px 7px 40px !important; border-radius: var(--rounding-md); border: 1px solid var(--border); font-size: 14px; background: #fff; }
body .dataTables_wrapper .dataTables_filter label .form-control:focus { border-color: var(--primary); box-shadow: var(--ph-ring); }
body .dataTables_wrapper .dataTables_filter::after { left: 14px; transform: translateY(-50%); color: var(--neutral-400); }
body .dataTables_wrapper .listtable > .table-list, body .dataTables_wrapper .listtable > table { order: 3; flex: 1 1 100%; }
@media (max-width: 767.98px) {
  /* keep sensible column widths on phones; the block scrolls sideways instead of squeezing every word onto its own line */
  body .dataTables_wrapper table.table-list { min-width: 640px; }
}
@media (max-width: 600px) {
  body .dataTables_wrapper .dataTables_filter { margin-top: 0; width: 100%; }
  body .dataTables_wrapper .dataTables_filter label .form-control { width: 100%; }
  body .dataTables_wrapper .dataTables_info { padding: 0; }
}
/* the table itself */
body .dataTables_wrapper table.table-list { margin: 8px 0 16px !important; border: 1px solid var(--border); border-radius: var(--rounding-lg); box-shadow: var(--ph-shadow-sm); overflow: hidden; border-collapse: separate; border-spacing: 0; background: #fff; }
body .dataTables_wrapper table.table-list thead th { padding: 12px 12px; background: var(--neutral-50); border-bottom: 1px solid var(--border); font-size: 12px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--neutral-500); white-space: nowrap; }
body .dataTables_wrapper table.table-list thead th.sorting_asc, body .dataTables_wrapper table.table-list thead th.sorting_desc { background: var(--primary-50); color: var(--primary-lifted); }
body .dataTables_wrapper table.table-list thead th:first-child { border-radius: var(--rounding-lg) 0 0 0; }
body .dataTables_wrapper table.table-list thead th:last-child { border-radius: 0 var(--rounding-lg) 0 0; }
body .dataTables_wrapper table.table-list tbody td { padding: 14px 12px; border-top: 1px solid var(--border-muted); font-size: 14px; color: var(--neutral-700); line-height: 1.5; }
body .dataTables_wrapper table.table-list tbody tr:first-child td { border-top: 0; }
body .dataTables_wrapper table.table-list tbody td strong { color: var(--neutral-900); font-weight: 600; }
body .dataTables_wrapper table.table-list tbody td a { color: var(--primary); font-weight: 500; }
body .dataTables_wrapper table.table-list tbody td small, body .dataTables_wrapper table.table-list tbody td .text-muted { color: var(--neutral-500) !important; font-size: 12px; }
.table-list > tbody > tr:hover > td { background-color: var(--primary-50); }
body .dataTables_wrapper table.table-list tr:last-child td:first-child { border-radius: 0 0 0 var(--rounding-lg); }
body .dataTables_wrapper table.table-list tr:last-child td:last-child { border-radius: 0 0 var(--rounding-lg) 0; }
body .dataTables_wrapper table.table-list td.dataTables_empty { padding: 32px 16px; color: var(--neutral-500); }
#tableLoading { padding: 24px; color: var(--neutral-500); }
/* responsive child rows (DataTables collapses columns on narrow screens) */
table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control:before, table.dataTable.dtr-inline.collapsed > tbody > tr > th.dtr-control:before { background-color: var(--primary); box-shadow: none; border-color: #fff; font-family: inherit; font-weight: 700; }
table.dataTable.dtr-inline.collapsed > tbody > tr.parent > td.dtr-control:before, table.dataTable.dtr-inline.collapsed > tbody > tr.parent > th.dtr-control:before { background-color: var(--neutral-500); }
table.dataTable > tbody > tr.child ul.dtr-details { width: 100%; }
table.dataTable > tbody > tr.child ul.dtr-details > li { padding: 8px 0; border-bottom: 1px solid var(--border-muted); font-size: 13px; }
table.dataTable > tbody > tr.child span.dtr-title { min-width: 120px; font-weight: 600; color: var(--neutral-900); }
body .dataTables_wrapper table.table-list tbody tr.child td { background: var(--neutral-50); padding: 8px 16px; text-align: left; }
/* status pills: soft tinted backgrounds instead of solid colour blocks */
.label.status, body .dataTables_wrapper table.table-list .label.status { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: 0.02em; line-height: 1.4; text-transform: capitalize; margin: 0; }
.label.status.status-active, .label.status.status-open, .label.status.status-completed, .label.status.status-paid, .label.status.status-accepted, .label.status.status-delivered { background: #ecfdf5; color: #166534; }
.label.status.status-pending, .label.status.status-pending-transfer, .label.status.status-pending-registration, .label.status.status-redemption, .label.status.status-grace, .label.status.status-inprogress, .label.status.status-customer-reply, .label.status.status-payment-pending, .label.status.status-refunded, .label.status.status-onhold { background: #fffbeb; color: #92400e; }
.label.status.status-suspended, .label.status.status-unpaid, .label.status.status-fraud, .label.status.status-collections, .label.status.status-terminated { background: #fef2f2; color: #991b1b; }
.label.status.status-answered { background: var(--primary-50); color: var(--primary-lifted); }
.label.status.status-expired, .label.status.status-cancelled, .label.status.status-closed, .label.status.status-transferred-away, .label.status.status-lost, .label.status.status-dead { background: var(--neutral-100); color: var(--neutral-600); }
/* pagination + page length */
body .dataTables_wrapper .dataTables_paginate { padding-top: 4px; }
body .dataTables_wrapper .dataTables_length { padding-top: 8px; font-size: 13px; color: var(--neutral-500); }
body .dataTables_wrapper .dataTables_length label { margin: 0; display: inline-flex; align-items: center; gap: 8px; }
body .dataTables_wrapper .dataTables_length select.custom-select-sm { height: 36px; border-radius: var(--rounding-md); border: 1px solid var(--border); padding: 0 28px 0 10px; font-size: 13px; }
.pagination { font-size: 13px; gap: 4px; }
.pagination .page-link { border: 1px solid var(--border); border-radius: var(--rounding-md) !important; color: var(--neutral-700); padding: 6px 12px; min-width: 36px; text-align: center; margin: 0; }
.pagination .page-link:hover { background: var(--primary-50); border-color: var(--primary-200); color: var(--primary); }
.pagination .page-item.active .page-link, .pagination > .active > a { background: var(--primary); border-color: var(--primary); color: #fff; }
.pagination .page-item.disabled .page-link { color: var(--neutral-400); background: #fff; }
/* domain bulk-action toolbar */
.tab-content #domainForm .btn-group { flex-wrap: wrap; gap: 6px; }
.tab-content #domainForm .btn-group > .btn, .tab-content #domainForm .btn-group > .btn-group > .btn { background: #fff; border: 1px solid var(--border) !important; border-radius: var(--rounding-md) !important; color: var(--neutral-700); font-size: 13px; font-weight: 500; padding: 7px 12px; }
.tab-content #domainForm .btn-group > .btn:hover, .tab-content #domainForm .btn-group > .btn-group > .btn:hover { border-color: var(--primary) !important; color: var(--primary); background: var(--primary-50); }
.tab-content #domainForm .btn-group .fal, .tab-content #domainForm .btn-group .fas { color: var(--primary); }
#domainForm .domids { width: 16px; height: 16px; accent-color: var(--primary); }
.tab-content .dropdown-menu { border: 1px solid var(--border); border-radius: var(--rounding-md); box-shadow: var(--ph-shadow-md); padding: 6px; }
.tab-content .dropdown-menu .dropdown-item { border-radius: var(--rounding-sm); font-size: 13px; padding: 8px 12px; }
.tab-content .dropdown-menu .dropdown-item:hover { background: var(--primary-50); color: var(--primary); }
/* sidebar filter cards (View / Status) and the invoices-due card */
.sidebar .view-filter-btns .list-group-item > i.far { color: var(--neutral-400); margin-right: 6px; }
.sidebar .view-filter-btns .list-group-item.active > i.far { color: var(--primary); }
.sidebar .card-sidebar.panel-danger .card-header { background: #fef2f2; border-bottom-color: #fecaca; }
.sidebar .card-sidebar.panel-danger .card-title { color: #991b1b; }
.sidebar .card-sidebar.panel-danger .card-body { color: var(--neutral-700); }
.sidebar .card-sidebar .card-footer .btn-block + .btn-block { margin-top: 8px; }
/* ssl state icons in the first column */
body .dataTables_wrapper table.table-list td.ssl-info img { opacity: 0.8; }

/* 2.5 Product and domain detail pages (Phase 7.5) ----------------------- */
/* product summary block: icon card + status strip */
.product-status, .product-status.product-status-active, .product-status.product-status-pending, .product-status.product-status-suspended, .product-status.product-status-terminated, .product-status.product-status-cancelled, .product-status.product-status-fraud { background-color: #fff; border: 1px solid var(--border); border-radius: var(--rounding-lg); overflow: hidden; }
div.product-details div.product-status .product-icon { background: var(--primary-50); border-radius: 0; padding: 32px 20px 24px; font-size: 48px; line-height: 1; }
div.product-details .product-icon .fa-stack-2x { color: var(--primary); }
div.product-details .product-icon .fa-stack-1x { color: #fff; }
div.product-details .product-icon h3 { font-size: 20px; font-weight: 700; margin: 18px 0 4px; color: var(--neutral-900); }
div.product-details .product-icon h4 { font-size: 14px; font-weight: 500; color: var(--neutral-500); margin: 0; }
.product-status-text { padding: 9px 12px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; }
.product-status-active .product-status-text { background: #ecfdf5; color: #166534; }
.product-status-pending .product-status-text { background: #fffbeb; color: #92400e; }
.product-status-suspended .product-status-text { background: #fef2f2; color: #991b1b; }
.product-status-terminated .product-status-text, .product-status-cancelled .product-status-text { background: var(--neutral-100); color: var(--neutral-600); }
.product-status-fraud .product-status-text { background: var(--neutral-900); color: #fff; }
/* action buttons under the summary block */
.product-actions-wrapper .btn { height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; }
.product-actions-wrapper > div:not(:last-child) { margin-bottom: 10px; }
/* billing facts (right column): small uppercase labels over values, left-aligned on wide screens */
div.product-details > .row > .col-md-6.text-center { font-size: 15px; font-weight: 500; color: var(--neutral-900); line-height: 1.5; }
div.product-details > .row > .col-md-6.text-center h4 { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--neutral-500); margin: 18px 0 2px; }
div.product-details > .row > .col-md-6.text-center h4:first-child { margin-top: 0; }
@media (min-width: 768px) { div.product-details > .row > .col-md-6.text-center { text-align: left !important; padding-left: 36px; border-left: 1px solid var(--border-muted); } }
@media (max-width: 767.98px) { div.product-details > .row > .col-md-6.text-center { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border-muted); } }
/* tabbed section below the summary (Domain / Config options / Additional info / Usage) */
.nav-tabs.responsive-tabs-sm { border-bottom: 1px solid var(--border); gap: 4px; }
.responsive-tabs-sm .nav-item a, .nav-tabs .nav-link { padding: 10px 16px; border-radius: var(--rounding-md) var(--rounding-md) 0 0; color: var(--neutral-600); font-weight: 500; font-size: 14px; }
.responsive-tabs-sm .nav-item a:hover, .nav-tabs .nav-link:hover, .nav-tabs .nav-link:focus { background: var(--primary-50); color: var(--primary); border-color: transparent; border-bottom: 0; }
.nav-tabs .nav-link.active, .nav-tabs .nav-item.show .nav-link, .responsive-tabs-sm .nav-item a.active { background: #fff; color: var(--primary); font-weight: 600; border-color: var(--border) var(--border) #fff; }
.nav-tabs .nav-link .fas, .nav-tabs .nav-link .far { color: var(--primary); }
div.product-details-tab-container { padding: 24px; border: 1px solid var(--border); border-top: 0; border-radius: 0 0 var(--rounding-lg) var(--rounding-lg); box-shadow: var(--ph-shadow-sm); }
.product-details-tab-container .tab-pane > .row { padding: 7px 0; font-size: 14px; }
.product-details-tab-container .tab-pane > .row + .row { border-top: 1px solid var(--border-muted); }
.product-details-tab-container .tab-pane > .row strong { color: var(--neutral-500); font-weight: 600; font-size: 13px; }
.product-details-tab-container .tab-pane > .row .col-sm-7 { color: var(--neutral-900); font-weight: 500; }
.product-details-tab-container p .btn { margin: 4px; }
.product-details-tab-container h4 { font-size: 15px; font-weight: 600; }
.product-details-tab-container .dial-usage { font-family: var(--ph-font) !important; }
@media (max-width: 767.98px) {
  .responsive-tabs-sm { width: 100%; border: 1px solid var(--border); border-bottom: 0; border-radius: var(--rounding-lg) var(--rounding-lg) 0 0; gap: 0; }
  .responsive-tabs-sm .nav-item { margin-left: 0; border-bottom: 1px solid var(--border-muted) !important; }
  .responsive-tabs-sm .nav-item:first-child a, .responsive-tabs-sm .nav-item:last-child a { border-radius: 0 !important; }
  .responsive-tabs-sm .nav-item a.active { color: var(--primary); }
  .product-details-tab-container .tab-pane > .row .text-right { text-align: left !important; }
  .responsive-tabs-sm-connector { display: none; }
}
/* addon cards (product addons tab) */
#tabAddons .card.bg-default { background: #fff; }
#tabAddons .card-header .label { padding: 4px 10px; border-radius: 999px; font-size: 11px; }
/* password change tab + any form rows in detail pages */
.tab-pane .col-form-label { font-weight: 600; font-size: 14px; color: var(--neutral-900); }
.tab-pane input[type="reset"].btn, .tab-pane .btn.btn-reset { background: #fff; border: 1px solid var(--border); color: var(--neutral-700); }
.tab-pane .form-check-input { accent-color: var(--primary); }
.tab-pane .form-check label { font-weight: 500; color: var(--neutral-800); font-size: 14px; }

/* product tools tab (change domain / reset) and the invoice cancel form */
.product-details-tab-container #phtools { text-align: left; }
.product-details-tab-container .ph-tool h4 { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.product-details-tab-container .ph-tool h4 .fas { color: var(--primary); }
.product-details-tab-container .ph-tool p.text-muted { font-size: 14px; margin-bottom: 14px; }
.product-details-tab-container .ph-tool .col-form-label { font-size: 14px; font-weight: 600; }
.product-details-tab-container .ph-tool code { background: var(--neutral-100); padding: 2px 6px; border-radius: 4px; }
.invoice-container .ph-cancel-invoice { display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.invoice-container .ph-cancel-invoice .btn-danger { height: 40px; display: inline-flex; align-items: center; gap: 6px; padding: 0 16px; }

/* domain details: overview facts, tasks list, auto-renew / lock / nameserver / addon panels */
#tabOverview .card .card-title, .tab-pane .card .card-title { font-size: 20px; font-weight: 700; margin-bottom: 18px; }
#tabOverview .card-body > .row h5 { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--neutral-500); margin-bottom: 4px; }
#tabOverview .card-body > .row .col-lg-6 { font-size: 15px; font-weight: 500; color: var(--neutral-900); margin-bottom: 8px; }
#tabOverview .card-body > .row .col-lg-6 a { font-weight: 600; }
#tabOverview .card-body > .card-title + .row, #tabOverview .card-body > .alert + .row { margin-top: 4px; }
#tabOverview .card-body > ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
#tabOverview .card-body > ul li a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1px solid var(--border); border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--primary); background: #fff; }
#tabOverview .card-body > ul li a:hover { background: var(--primary-50); border-color: var(--primary-200); }
@media (min-width: 576px) { #tabOverview .card-body > ul { grid-template-columns: repeat(auto-fit, minmax(220px, max-content)); } }
.tab-pane .label.label-success, .tab-pane .label.label-danger, .tab-pane .label.label-default, .tab-pane .label.label-info, .tab-pane .label.label-warning { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: 0.02em; vertical-align: middle; }
.tab-pane .label.label-success { background: #ecfdf5; color: #166534; }
.tab-pane .label.label-danger { background: #fef2f2; color: #991b1b; }
.tab-pane .label.label-warning { background: #fffbeb; color: #92400e; }
.tab-pane .label.label-info, .tab-pane .label.label-default { background: var(--primary-50); color: var(--primary-lifted); }
.tab-pane h2.text-center, .tab-pane h4.text-center { font-size: 18px; font-weight: 600; color: var(--neutral-700); }
.tab-pane .btn-lg { height: 48px; padding: 0 28px; font-size: 15px; display: inline-flex; align-items: center; }
.btn-success { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-success:hover, .btn-success:focus, .btn-success:not(:disabled):not(.disabled):active { background: var(--primary-lifted); border-color: var(--primary-lifted); color: #fff; }
.btn-danger { background: #fff; border-color: #fecaca; color: #b91c1c; }
.btn-danger:hover, .btn-danger:focus, .btn-danger:not(:disabled):not(.disabled):active { background: #dc2626; border-color: #dc2626; color: #fff; }
.btn-danger.disabled, .btn-danger:disabled { background: var(--neutral-100); border-color: var(--border); color: var(--neutral-500); }
#tabAddons .fa-3x, #tabAddons .fa-2x { color: var(--primary); }
#tabAddons hr, .tab-pane hr { border-top-color: var(--border-muted); margin: 20px 0; }
#tabAddons .row strong { color: var(--neutral-900); font-size: 15px; }
#tabAddons form { margin-top: 10px; }
.tab-pane .alert .btn.btn-default, .alert .btn.btn-default { background: #fff; border: 1px solid rgba(0,0,0,0.12); color: inherit; border-radius: 999px; font-weight: 600; font-size: 12px; padding: 4px 12px; }
.alert .btn.btn-default:hover { background: rgba(255,255,255,0.6); color: inherit; }
.alert .float-right { margin-left: 12px; }

/* 2.6 Support: tickets, knowledgebase, announcements (Phase 7.6) --------- */
/* ticket list rows */
body .dataTables_wrapper table.table-list .ticket-number { display: block; font-size: 12px; font-weight: 500; color: var(--neutral-500); margin-bottom: 2px; }
body .dataTables_wrapper table.table-list .ticket-subject { font-weight: 600; color: var(--neutral-900); }
body .dataTables_wrapper table.table-list .ticket-subject.unread { color: var(--primary); }
.table-list > tbody > tr > td a.border-left { border-left: 0; padding-left: 0; }
#tableTicketsList tbody td:nth-child(2) { text-align: left; }
/* view ticket: header card, replies, rating */
.view-ticket .card-body.p-3 { padding: 20px 24px !important; border-bottom: 1px solid var(--border-muted); }
.view-ticket .card-body.p-3 .card-title { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 8px; }
.view-ticket .ticket-actions { margin: 0 0 0 auto !important; display: flex; gap: 8px; }
.view-ticket .ticket-actions .btn { height: 36px; display: inline-flex; align-items: center; gap: 6px; padding: 0 14px; font-size: 13px; }
.view-ticket .card-body.p-3 p { margin: 0; font-size: 14px; color: var(--neutral-500); }
.view-ticket .card-body.p-3 p strong { color: var(--neutral-900); font-weight: 600; }
.view-ticket .card-body { border-bottom: 1px solid var(--border-muted); }
.view-ticket .ticket-reply.staff { box-shadow: inset 3px 0 0 var(--primary); }
.view-ticket .posted-by { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding: 10px 24px; background: var(--neutral-50); font-size: 13px; color: var(--neutral-500); border-bottom: 1px solid var(--border-muted); }
.view-ticket .ticket-reply.staff .posted-by { background: var(--primary-50); }
.view-ticket .posted-by .posted-by-name { color: var(--neutral-900); font-weight: 600; }
.view-ticket .requestor-badge, .label.requestor-badge { float: none !important; margin-left: auto; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: 0.02em; }
.label.requestor-badge.requestor-type-operator { background: var(--primary); color: #fff; }
.label.requestor-badge.requestor-type-owner { background: #ecfdf5; color: #166534; }
.label.requestor-badge.requestor-type-authorizeduser, .label.requestor-badge.requestor-type-subaccount, .label.requestor-badge.requestor-type-registereduser, .label.requestor-badge.requestor-type-guest { background: var(--neutral-100); color: var(--neutral-600); }
.view-ticket .message { padding: 20px 24px !important; font-size: 15px; line-height: 1.65; color: var(--neutral-700); }
.view-ticket .message p { margin-bottom: 12px; }
.view-ticket .message hr { border-top-color: var(--border-muted); }
.view-ticket .message code, .markdown-content code { background: var(--neutral-100); color: var(--primary-accented); padding: 2px 6px; border-radius: 4px; font-size: 13px; }
.view-ticket .message pre { background: var(--neutral-900); color: #e2e8f0; padding: 14px 16px; border-radius: var(--rounding-md); font-size: 13px; }
.view-ticket .message blockquote { border-left: 3px solid var(--primary-200); padding-left: 14px; color: var(--neutral-600); }
.ticket-reply .rating, .ticket-reply .rating-done { padding: 0; font-size: 20px; }
.ticket-reply .rating span.star:before, .ticket-reply .rating-done span.star:before { color: var(--neutral-300); }
.ticket-reply .rating span.star:hover:before, .ticket-reply .rating span.star:hover ~ span.star:before, .ticket-reply .rating-done span.star.active:before { color: #f59e0b; }
.ticket-reply .rating-done .rated { color: var(--neutral-500); }
.view-ticket .attachments { padding: 12px 24px !important; border-top: 1px dashed var(--border); color: var(--neutral-600); }
.view-ticket .attachment-list li span { border-color: var(--border); border-radius: var(--rounding-md); }
.view-ticket .attachment-list li figure { background: var(--primary-50); color: var(--primary); border-radius: var(--rounding-sm); }
#ticketReplyContainer { margin-top: 24px; }
#ticketReplyContainer .card-title, .extra-padding .card-title { font-size: 20px; font-weight: 700; }
.form-control:disabled, .form-control[readonly], .form-control.disabled { background: var(--neutral-50); color: var(--neutral-600); border-color: var(--border-muted); }
/* markdown editor (ticket reply + open ticket) */
.md-editor, div.md-editor.active { border: 1px solid var(--border); border-radius: var(--rounding-md); overflow: hidden; transition: border-color 180ms, box-shadow 180ms; }
div.md-editor.active { border-color: var(--primary); box-shadow: var(--ph-ring); }
.md-editor > .btn-toolbar { background: var(--neutral-50) !important; padding: 8px 10px; gap: 4px; border-bottom: 1px solid var(--border-muted); }
.md-editor .btn-toolbar .btn-group { margin-right: 4px; }
.md-editor .btn-toolbar .btn.btn-default { background: transparent; border: 0; color: var(--neutral-600); width: 32px; height: 32px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--rounding-sm); font-size: 13px; }
.md-editor .btn-toolbar .btn.btn-default:hover { background: var(--primary-50); color: var(--primary); }
.md-editor .btn-toolbar .btn.btn-primary { height: 32px; padding: 0 12px; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }
.md-editor > textarea.markdown-editor, .md-editor > .md-preview { padding: 16px !important; border: 0 !important; font-size: 15px; line-height: 1.6; color: var(--neutral-800); min-height: 220px; }
.md-editor > textarea.markdown-editor:focus { box-shadow: none; }
.markdown-editor-status { padding: 4px 12px; font-size: 12px; color: var(--neutral-400); background: var(--neutral-50); border-top: 1px solid var(--border-muted); }
/* attachments chooser */
.attachment-group .custom-file, .attachment-group .custom-file-input, .attachment-group .custom-file-label { height: 44px; }
.attachment-group .custom-file-label { line-height: 42px; padding: 0 14px; border-radius: var(--rounding-md) 0 0 var(--rounding-md); border: 1px solid var(--border); color: var(--neutral-500); font-size: 14px; }
.attachment-group .custom-file-label::after { height: 42px; line-height: 42px; padding: 0 14px; background: var(--primary-50); color: var(--primary); font-weight: 600; border-left: 1px solid var(--border); }
.attachment-group .custom-file-input:focus ~ .custom-file-label { border-color: var(--primary); box-shadow: var(--ph-ring); }
.attachment-group .input-group-append .btn { height: 44px; border-radius: 0 var(--rounding-md) var(--rounding-md) 0; display: inline-flex; align-items: center; gap: 6px; }
.attachment-group + .text-muted small, .form-group > .text-muted small { font-size: 12px; color: var(--neutral-500); }
#frmReply .form-group.text-center .btn, .extra-padding p.text-center .btn { height: 44px; padding: 0 24px; display: inline-flex; align-items: center; margin: 4px; }
/* open ticket step 1: department picker */
.extra-padding p.h5 { margin: 0; }
.extra-padding p.h5 a { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border: 1px solid var(--border); border-radius: var(--rounding-md); font-size: 16px; font-weight: 600; color: var(--neutral-900); background: #fff; }
.extra-padding p.h5 a .fas { color: var(--primary); }
.extra-padding p.h5 a:hover { border-color: var(--primary-200); background: var(--primary-50); color: var(--primary); }
.extra-padding p.h5 + p.text-muted { margin: 6px 0 18px 4px; font-size: 14px; }
.extra-padding .card-title + .text-muted { font-size: 14px; }
/* knowledgebase: search, category cards, article lists, article body */
.kb-search { box-shadow: var(--ph-shadow-sm); border-radius: var(--rounding-md); }
.kb-search .form-control { height: 52px; border-radius: var(--rounding-md) 0 0 var(--rounding-md) !important; border: 1px solid var(--border); font-size: 15px; padding-left: 18px; }
.kb-search .form-control:focus { z-index: 3; }
.kb-search .input-group-append .btn { height: 52px; padding: 0 24px; border-radius: 0 var(--rounding-md) var(--rounding-md) 0 !important; font-size: 15px; }
.badge-info, .badge.badge-info { background: var(--primary-50); color: var(--primary); font-weight: 600; padding: 5px 10px; border-radius: 999px; font-size: 11px; }
.kb-category { overflow: hidden; }
.kb-category a.card-body { padding: 20px 22px; display: block; }
.kb-category a.card-body:hover { background: var(--primary-50); }
.kb-category .h5 { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 700; color: var(--neutral-900); }
.kb-category .h5 .badge { order: 2; margin-left: auto; float: none !important; }
.kb-category .h5 .fal, .kb-category .h5 .fas, .kb-category .h5 .far { color: var(--primary); font-size: 18px; }
.kb-category p.text-muted small { font-size: 13px; color: var(--neutral-500); display: block; margin-top: 4px; }
.kb-category .show-on-card-hover { display: none; }
.kb-category:hover .show-on-card-hover { display: inline-block; }
.primary-content .card .card-body > .card-title.m-0 { font-size: 17px; display: flex; align-items: center; gap: 8px; }
.primary-content .card .card-body > .card-title.m-0 .fal, .primary-content .card .card-body > .card-title.m-0 .fas { color: var(--primary); }
.primary-content .card > .card-body:has(> .card-title.m-0) { padding: 16px 22px; border-bottom: 1px solid var(--border-muted); }
.kb-article-item { padding: 14px 22px; border-color: var(--border-muted); font-size: 15px; font-weight: 600; color: var(--neutral-900); }
.kb-article-item:hover { background: var(--primary-50); color: var(--primary); }
.kb-article-item .fal, .kb-article-item .text-black-50 { color: var(--primary) !important; }
.kb-article-item small { color: var(--neutral-500); font-weight: 400; font-size: 13px; margin-top: 2px; }
.kb-article-item .show-on-card-hover { display: none; }
.primary-content .list-group-flush:last-child .list-group-item:last-child { border-radius: 0 0 var(--rounding-lg) var(--rounding-lg); }
.primary-content .card .card-body > h1 { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: 28px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 8px; }
.primary-content .card .card-body > h1 .btn { margin-left: auto; float: none !important; height: 34px; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.primary-content .card .card-body > ul.list-inline { margin-bottom: 0; font-size: 13px; color: var(--neutral-500); }
.primary-content .card .card-body > hr { border-top-color: var(--border-muted); margin: 18px 0; }
.primary-content .card .card-body > article, .primary-content .card .card-body > .py-5 { font-size: 15px; line-height: 1.7; color: var(--neutral-700); }
.primary-content .card .card-body > .py-5 { padding: 20px 0 8px !important; }
.primary-content .card .card-body > article h2, .primary-content .card .card-body > article h3, .primary-content .card .card-body > .py-5 h2, .primary-content .card .card-body > .py-5 h3 { font-size: 20px; font-weight: 700; margin: 24px 0 8px; }
.primary-content .card .card-body > article p, .primary-content .card .card-body > .py-5 p { margin-bottom: 14px; }
.primary-content .card .card-body > article img, .primary-content .card .card-body > .py-5 img { max-width: 100%; height: auto; border-radius: var(--rounding-md); }
.primary-content .card .card-body > article code { background: var(--neutral-100); color: var(--primary-accented); padding: 2px 6px; border-radius: 4px; font-size: 13px; }
.primary-content .card .card-body > article pre { background: var(--neutral-900); color: #e2e8f0; padding: 14px 16px; border-radius: var(--rounding-md); font-size: 13px; }
.primary-content .card .card-body > article ul, .primary-content .card .card-body > article ol { padding-left: 22px; margin-bottom: 14px; }
.primary-content .card .card-body > h4 { font-size: 16px; font-weight: 600; margin-bottom: 12px; }
.btn-secondary { background: #fff; border: 1px solid var(--border); color: var(--neutral-700); }
.btn-secondary:hover, .btn-secondary:focus, .btn-secondary:not(:disabled):not(.disabled):active { background: var(--primary-50); border-color: var(--primary-200); color: var(--primary-lifted); }
.primary-content > a.btn.btn-default, .primary-content > .btn.btn-default { height: 42px; display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; background: #fff; }
/* announcements */
.announcements .announcement { margin-bottom: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--border-muted); }
.announcements .announcement:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
.announcements .announcement h1 { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 6px; }
.announcements .announcement h1 a { color: var(--neutral-900); }
.announcements .announcement h1 a:hover { color: var(--primary); }
.announcements .announcement .list-inline { margin-bottom: 12px; font-size: 13px; }
.announcements .announcement .list-inline .far { color: var(--primary); }
.announcements .announcement article { background: var(--neutral-50); border-left: 3px solid var(--primary); border-radius: 0 var(--rounding-md) var(--rounding-md) 0; padding: 16px 18px; font-size: 15px; line-height: 1.65; color: var(--neutral-700); }
.announcements .announcement .btn-sm { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; font-size: 13px; background: #fff; }
.announcements .announcement .btn-sm:hover { background: var(--primary-50); }
.announcement h1 .show-on-hover { display: none; }

/* 2.7 Account: details, profile, password, security, contacts, users (Phase 7.7) */
/* form rhythm shared by every account form */
.col-form-label, label.col-form-label { font-size: 14px; font-weight: 600; color: var(--neutral-900); padding-top: 0; padding-bottom: 6px; line-height: 1.4; }
.form-group { margin-bottom: 18px; }
.form-group.row .col-form-label { padding-top: 11px; }
.form-control.custom-select, select.form-control { height: 44px; padding-right: 36px; background-position: right 12px center; }
.form-text, .form-group .text-muted small, .form-group small.text-muted { font-size: 12px; color: var(--neutral-500); }
.primary-content .card .card-body > form > input.btn, .primary-content .card .card-body > form > p > input.btn, .primary-content form > .form-group.text-center input.btn, .primary-content .card .card-body > form > .btn, .primary-content .card .card-body > form > button.btn { height: 44px; padding: 0 22px; margin: 6px 8px 0 0; }
.primary-content form .form-group.text-center { margin: 8px 0 0; }
input.btn.btn-default, input[type="reset"].btn, a.btn.btn-default, button.btn.btn-default { background: #fff; border: 1px solid var(--border); color: var(--neutral-700); }
input.btn.btn-default:hover, input[type="reset"].btn:hover, a.btn.btn-default:hover, button.btn.btn-default:hover { background: var(--primary-50); border-color: var(--primary-200); color: var(--primary-lifted); }
.btn.disabled, .btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-info { background: var(--primary-50); border-color: var(--primary-100); color: var(--primary); }
.btn-info:hover, .btn-info:focus { background: var(--primary); border-color: var(--primary); color: #fff; }
/* verification / role pills used outside tabs (profile email, user management) */
.card .label.label-success, .card .label.label-danger, .card .label.label-default, .card .label.label-info, .card .label.label-warning { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: 0.02em; vertical-align: middle; }
.card .label.label-success { background: #ecfdf5; color: #166534; }
.card .label.label-danger { background: #fef2f2; color: #991b1b; }
.card .label.label-warning { background: #fffbeb; color: #92400e; }
.card .label.label-info { background: var(--primary-50); color: var(--primary-lifted); }
.card .label.label-default { background: var(--neutral-100); color: var(--neutral-600); }
/* change password: generate button + strength tips */
.generate-password.btn-block { height: auto; min-height: 44px; white-space: normal; padding: 8px 12px; line-height: 1.3; }
.password-strength-meter { margin-top: 8px; }
.password-strength-meter + .form-text, #newPassword1 .alert, #newPassword1 .card.bg-light, #newPassword1 .password-tips { border-radius: var(--rounding-md); }
.password-strength-meter .progress-bar { background: var(--primary); }
#passwordStrengthBar.progress { height: 8px; border-radius: 999px; background: var(--neutral-100); }
#passwordStrengthBar .progress-bar { border-radius: 999px; }
#newPassword1 .alert-info { padding: 12px 14px; }
#newPassword1 .alert-info small { font-size: 12px; line-height: 1.6; }
#nonMatchingPasswordResult { color: #b91c1c !important; font-size: 12px; margin: 6px 0 0; }
#inputNewPassword2Msg .alert, .password-strength-meter .alert { margin-top: 8px; padding: 8px 12px; font-size: 13px; }
/* account details: email preferences checkboxes */
.controls.form-check { padding-left: 0; display: grid; gap: 10px; }
.controls.form-check label { display: flex; align-items: center; gap: 10px; margin: 0; font-weight: 500; font-size: 14px; color: var(--neutral-800); }
.controls.form-check .form-check-input { position: static; margin: 0; width: 16px; height: 16px; accent-color: var(--primary); }
.controls.form-check br { display: none; }
/* contacts: "Choose contact" switcher bar */
.alert.alert-block.alert-info { background: #fff; border: 1px solid var(--border); border-radius: var(--rounding-lg); padding: 16px 20px; box-shadow: var(--ph-shadow-sm); color: var(--neutral-800); }
.alert.alert-block.alert-info .col-form-label { padding-top: 11px; font-size: 14px; font-weight: 600; }
.alert.alert-block.alert-info .btn-block { height: 44px; display: inline-flex; align-items: center; justify-content: center; }
/* plain tables (user management, payment methods, addon lists) */
.primary-content .card table.table { margin-top: 8px; border: 1px solid var(--border); border-radius: var(--rounding-md); overflow: hidden; border-collapse: separate; border-spacing: 0; }
.primary-content .card table.table th { padding: 12px 14px; background: var(--neutral-50); border: 0; border-bottom: 1px solid var(--border); font-size: 12px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--neutral-500); }
.primary-content .card table.table td { padding: 14px; border: 0; border-top: 1px solid var(--border-muted); font-size: 14px; color: var(--neutral-700); vertical-align: middle; }
.primary-content .card table.table tr:first-child td { border-top: 0; }
.primary-content .card table.table-striped tbody tr:nth-of-type(odd), .primary-content .card table.table-striped tr:nth-of-type(odd) { background: #fff; }
.primary-content .card table.table tr:hover td { background: var(--primary-50); }
.primary-content .card table.table td small { color: var(--neutral-500); font-size: 12px; }
.primary-content .card table.table td .btn-sm { height: 32px; padding: 0 12px; font-size: 12px; display: inline-flex; align-items: center; gap: 6px; margin: 2px 4px 2px 0; }
.primary-content .card table.table .text-grey { color: var(--neutral-300); }
.primary-content .card table.table .text-success { color: #16a34a !important; }
.primary-content .card .card-body > p.text-muted { font-size: 13px; }
/* invite form radios and the permission well */
.form-check-inline { margin-right: 18px; font-weight: 500; font-size: 14px; color: var(--neutral-800); }
.form-check-inline .form-check-input { margin-right: 6px; accent-color: var(--primary); }
.well { background: var(--neutral-50); border: 1px solid var(--border-muted); border-radius: var(--rounding-md); padding: 16px 18px; }
.well .form-check-inline { display: flex; align-items: flex-start; gap: 8px; margin: 0 0 10px; }
.well .form-check-inline .text-muted { font-weight: 400; }
.well br { display: none; }
/* security settings: two-factor card */
.twofa-config-link { font-size: 15px; color: var(--neutral-700); }
.twofa-config-link strong { color: var(--neutral-900); }
.primary-content .card .card-body > a.btn.twofa-config-link { height: 44px; display: inline-flex; align-items: center; padding: 0 22px; }
.primary-content > p:first-child, .primary-content > p { font-size: 14px; color: var(--neutral-600); }
/* linked accounts (Google / Facebook sign-in) */
.linked-accounts-wrapper .btn, .linked-accounts .btn { height: 44px; display: inline-flex; align-items: center; gap: 8px; }
/* modals (2FA setup, delete confirmations, ajax modal, language chooser) */
.modal-content { border: 0; border-radius: var(--rounding-lg); box-shadow: 0 24px 64px rgba(3, 25, 116, 0.18); }
.modal-header { padding: 18px 24px; border-bottom: 1px solid var(--border-muted); }
.modal-title { font-size: 18px; font-weight: 700; color: var(--neutral-900); }
.modal-body { padding: 22px 24px; font-size: 15px; color: var(--neutral-700); }
.modal-footer { padding: 14px 24px; background: var(--neutral-50); border-top: 1px solid var(--border-muted); border-radius: 0 0 var(--rounding-lg) var(--rounding-lg); }
.modal-footer .btn { height: 40px; display: inline-flex; align-items: center; padding: 0 18px; }
.modal .close { color: var(--neutral-500); opacity: 1; text-shadow: none; }
.modal .close:hover { color: var(--neutral-900); }

/* 2.9 Standalone invoice page — viewinvoice.php (Phase 10) --------------- */
/* This page has its own layout (no client-area header) but still loads custom.css. */
body:has(> .invoice-container) { background: var(--primary-50); padding: 24px 0; font-family: var(--ph-font); }
.invoice-container { max-width: 960px; margin: 0 auto; background: #fff; border: 1px solid var(--border); border-radius: var(--rounding-lg); box-shadow: var(--ph-shadow-md); padding: 32px 36px; }
.invoice-container .invoice-header h3 { font-size: 22px; font-weight: 700; color: var(--neutral-900); margin: 6px 0 0; }
.invoice-container .invoice-header img { max-height: 40px; }
.invoice-container .invoice-status span { display: inline-block; padding: 8px 22px; border-radius: 999px; font-size: 14px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; border: 0; background: var(--neutral-100); color: var(--neutral-600); }
.invoice-container .invoice-status .paid { background: #ecfdf5; color: #166534; }
.invoice-container .invoice-status .unpaid, .invoice-container .invoice-status .collections { background: #fef2f2; color: #991b1b; }
.invoice-container .invoice-status .draft, .invoice-container .invoice-status .refunded { background: #fffbeb; color: #92400e; }
.invoice-container .small-text { color: var(--neutral-600); font-size: 14px; line-height: 1.6; }
.invoice-container .invoice-col strong { color: var(--neutral-900); }
.invoice-container hr { border-top-color: var(--border-muted); }
.invoice-container .payment-btn-container .btn { height: 44px; display: inline-flex; align-items: center; padding: 0 22px; margin-top: 8px; }
.invoice-container .card { border: 1px solid var(--border); border-radius: var(--rounding-lg); overflow: hidden; box-shadow: none; }
.invoice-container .card.bg-default { background: #fff; }
.invoice-container .card-header { background: var(--neutral-50); border-bottom: 1px solid var(--border); padding: 12px 16px; }
.invoice-container .card-header .card-title { font-size: 16px !important; font-weight: 700; color: var(--neutral-900); }
.invoice-container .card-title.bg-info { background: var(--primary) !important; font-size: 14px; padding: 10px 16px !important; border-radius: 0; }
.invoice-container .table { margin: 0; }
.invoice-container .table thead td { background: var(--neutral-50); font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--neutral-500); border-top: 0; padding: 10px 16px; }
.invoice-container .table td { padding: 12px 16px; border-top: 1px solid var(--border-muted); font-size: 14px; color: var(--neutral-700); vertical-align: middle; }
.invoice-container .table .total-row { background: var(--neutral-50); color: var(--neutral-900); font-weight: 600; }
.invoice-container .btn-group .btn-default { background: #fff; border: 1px solid var(--border); color: var(--neutral-700); height: 40px; display: inline-flex; align-items: center; gap: 6px; padding: 0 16px; }
.invoice-container .btn-group .btn-default:hover { border-color: var(--primary-200); background: var(--primary-50); color: var(--primary); }
.invoice-container .custom-select { height: 40px; border-radius: var(--rounding-md); border-color: var(--border); }
.invoice-container + p.text-center a { display: inline-block; margin-top: 8px; color: var(--primary); font-weight: 600; }
@media (max-width: 575.98px) { .invoice-container { padding: 20px 16px; border-radius: 0; } body:has(> .invoice-container) { padding: 0; } }
@media print { body:has(> .invoice-container) { background: #fff; padding: 0; } .invoice-container { border: 0; box-shadow: none; } }

/* 2.8 WHMCS homepage, store and order form (Phase 7.8) ------------------ */
/* portal homepage: domain search band */
.home-domain-search { border-bottom: 1px solid var(--border-muted); }
.home-domain-search h2 { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 8px; }
body #frmDomainHomepage .input-group-wrapper { margin: 20px auto 12px; padding: 6px; max-width: 760px; border: 1px solid var(--border); border-radius: var(--rounding-lg); box-shadow: var(--ph-shadow-md); }
.home-domain-search .input-group-wrapper .form-control { height: 46px; font-size: 16px; padding-left: 16px; color: var(--neutral-900); }
.home-domain-search .input-group-wrapper .btn { height: 46px; padding: 0 22px; border-radius: var(--rounding-md) !important; display: inline-flex; align-items: center; }
body #frmDomainHomepage .btn-success, body #frmDomainHomepage #btnTransfer, body #frmDomainHomepage #btnTransfer2 { background: #fff; border: 1px solid var(--primary-200); color: var(--primary); }
body #frmDomainHomepage .btn-success:hover, body #frmDomainHomepage #btnTransfer:hover, body #frmDomainHomepage #btnTransfer2:hover { background: var(--primary-50); border-color: var(--primary); color: var(--primary-lifted); }
.home-domain-search .btn-link { color: var(--primary); font-weight: 600; font-size: 13px; }
.home-domain-search .tld-logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; font-size: 15px; color: var(--neutral-600); font-weight: 500; }
.home-domain-search .tld-logos li { float: none; padding: 0; display: flex; align-items: center; gap: 8px; }
.home-domain-search .tld-logos img { width: 48px; }
/* portal homepage: section headings, product group cards, action tiles */
.primary-content > h2.text-center { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; margin: 44px 0 24px !important; }
.card-columns.home .card { border: 1px solid var(--border); border-radius: var(--rounding-lg); box-shadow: var(--ph-shadow-sm); }
.card-columns.home .card .card-body { padding: 28px 24px !important; }
.card-columns.home .pricing-card-title { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.card-columns.home .card p { color: var(--neutral-600); font-size: 14px; min-height: 42px; }
.btn-outline-primary { color: var(--primary); border-color: var(--primary-200); background: #fff; }
.btn-outline-primary:hover, .btn-outline-primary:focus, .btn-outline-primary:not(:disabled):not(.disabled):active { color: #fff; background: var(--primary); border-color: var(--primary); }
.card-columns.home .btn-outline-primary { height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.action-icon-btns { margin: 0 -8px 8px !important; }
.action-icon-btns > div { padding: 0 8px; }
.action-icon-btns a { margin: 0 0 16px; padding: 22px 12px 20px; background: #fff; border: 1px solid var(--border); border-radius: var(--rounding-lg); box-shadow: var(--ph-shadow-sm); font-size: 14px; font-weight: 600; color: var(--neutral-800); }
.action-icon-btns a:hover { color: var(--primary); border-color: var(--primary-200); box-shadow: var(--ph-shadow-md); transform: translateY(-2px); }
.action-icon-btns a .ico-container { width: 56px; height: 56px; margin: 0 auto 12px; line-height: 56px; border-radius: 50%; background: var(--primary-50); font-size: 22px; }
.action-icon-btns a .ico-container i { color: var(--primary); }
.action-icon-btns a:hover .ico-container { font-size: 22px; background: var(--primary); }
.action-icon-btns a:hover .ico-container i { color: #fff; }
/* store / cart shared: page title, sidebar cards */
body #order-standard_cart .cart-body .header-lined { border-bottom: 0; margin-bottom: 8px; }
body #order-standard_cart .cart-body .header-lined h1 { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; color: var(--neutral-900); }
body #order-standard_cart .cart-body > p, body #order-standard_cart .cart-body .already-registered p { font-size: 14px; color: var(--neutral-600); }
body #order-standard_cart .cart-sidebar .card-sidebar { border: 1px solid var(--border); border-radius: var(--rounding-lg); box-shadow: var(--ph-shadow-sm); overflow: hidden; }
body #order-standard_cart .cart-sidebar .card-header { padding: 14px 20px; background: #fff; border-bottom: 1px solid var(--border-muted); border-radius: 0; }
body #order-standard_cart .cart-sidebar .card-sidebar .panel-title { font-size: 15px !important; font-weight: 700; color: var(--neutral-900); }
body #order-standard_cart .cart-sidebar .card-sidebar .card-minimise { color: var(--neutral-400); font-size: 12px; margin-top: 4px; }
body #order-standard_cart .cart-sidebar .list-group-item { padding: 10px 20px; font-size: 14px; color: var(--neutral-700); border-bottom: 1px solid var(--border-muted); }
body #order-standard_cart .cart-sidebar .list-group-item:last-child { border-bottom: 0; }
body #order-standard_cart .cart-sidebar .list-group-item:hover { background: var(--primary-50); color: var(--primary); }
body #order-standard_cart .cart-sidebar .list-group-item.active, body #order-standard_cart .cart-sidebar .list-group-item.active:hover { background: var(--primary-50); color: var(--primary); font-weight: 600; box-shadow: inset 3px 0 0 var(--primary); }
body #order-standard_cart .cart-sidebar .list-group-item .fas { color: var(--primary); width: 20px; }
/* store: product cards */
body #order-standard_cart .cart-body .products .product { border: 1px solid var(--border); border-radius: var(--rounding-lg); box-shadow: var(--ph-shadow-sm); display: flex; flex-direction: column; height: 100%; margin-bottom: 24px; }
body #order-standard_cart .cart-body .products .product header { padding: 16px 20px; font-size: 17px; font-weight: 700; color: var(--neutral-900); border-bottom: 1px solid var(--border-muted); }
body #order-standard_cart .products .product div.product-desc { padding: 16px 20px 4px; font-size: 14px; line-height: 1.75; color: var(--neutral-600); flex: 1 1 auto; }
body #order-standard_cart .products .product div.product-desc ul { padding-left: 18px; }
body #order-standard_cart .cart-body .products .product footer { margin: 0; padding: 12px 20px 20px; }
body #order-standard_cart .products .product footer .product-pricing { margin-bottom: 16px; font-size: 13px; color: var(--neutral-500); }
body #order-standard_cart .products .product footer .product-pricing .price { display: block; font-size: 26px; font-weight: 800; letter-spacing: -0.02em; color: var(--neutral-900); }
body #order-standard_cart .products .product footer .btn-order-now { background: var(--primary); border-color: var(--primary); color: #fff; height: 44px; padding: 0 22px; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; }
body #order-standard_cart .products .product footer .btn-order-now:hover { background: var(--primary-lifted); border-color: var(--primary-lifted); }
body #order-standard_cart .products .product .fas { display: inline-block; }
body #order-standard_cart .products .row-eq-height > div { margin-bottom: 0; }
/* configure product: info card, cycle select, order summary */
body #order-standard_cart .product-info { background: #fff; border: 1px solid var(--border); border-radius: var(--rounding-lg); padding: 20px 22px; box-shadow: var(--ph-shadow-sm); margin-bottom: 20px; }
body #order-standard_cart .product-info .product-title { font-size: 18px; font-weight: 700; color: var(--neutral-900); margin-bottom: 8px; }
body #order-standard_cart .product-info p { font-size: 14px; line-height: 1.7; color: var(--neutral-600); margin: 0; }
body #order-standard_cart #frmConfigureProduct label, body #order-standard_cart .form-group > label { font-size: 14px; font-weight: 600; color: var(--neutral-900); }
body #order-standard_cart .field, body #order-standard_cart .form-control, body #order-standard_cart select.form-control { border: 1px solid var(--border); border-radius: var(--rounding-md); height: 44px; }
body #order-standard_cart textarea.form-control { height: auto; min-height: 120px; }
body #order-standard_cart .form-control:focus { border-color: var(--primary); box-shadow: var(--ph-ring); }
body #order-standard_cart .order-summary { background: #fff; border: 1px solid var(--border); border-radius: var(--rounding-lg); box-shadow: var(--ph-shadow-sm); overflow: hidden; }
body #order-standard_cart .order-summary h2 { font-size: 18px; font-weight: 700; padding: 16px 20px; margin: 0; border: 0; border-bottom: 1px solid var(--border-muted); border-radius: 0; text-align: left; color: var(--neutral-900); }
body #order-standard_cart .order-summary .summary-container { border: 0; background: #fff; padding: 18px 20px; font-size: 14px; color: var(--neutral-600); }
body #order-standard_cart .order-summary .product-name { font-size: 15px; font-weight: 700; color: var(--neutral-900); }
body #order-standard_cart .order-summary .product-group { color: var(--neutral-500); }
body #order-standard_cart .order-summary .summary-totals { margin: 12px 0; padding: 12px 0; border-top: 1px solid var(--border-muted); border-bottom: 1px solid var(--border-muted); }
body #order-standard_cart .order-summary .total-due-today { padding: 8px 0 0; text-align: right; }
body #order-standard_cart .order-summary .total-due-today .amt { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; color: var(--primary); }
body #order-standard_cart .order-summary .subtotal, body #order-standard_cart .order-summary .recurring-totals { color: var(--neutral-600); }
body #order-standard_cart .text-right .btn-checkout, body #order-standard_cart .order-summary .btn-checkout, body #order-standard_cart .btn-checkout { background: var(--primary); border-color: var(--primary); height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 15px; width: 100%; }
body #order-standard_cart .text-right .btn-checkout:hover, body #order-standard_cart .btn-checkout:hover { background: var(--primary-lifted); border-color: var(--primary-lifted); }
body #order-standard_cart .order-summary .btn-continue-shopping { font-size: 13px; font-weight: 600; color: var(--primary); }
body #order-standard_cart .alert-warning, body #order-standard_cart .alert-info { font-size: 13px; }
/* view cart */
body #order-standard_cart .cart-body .view-cart-items-header { padding: 12px 16px; background: var(--neutral-50); border: 1px solid var(--border); font-size: 12px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--neutral-500); border-radius: var(--rounding-lg) var(--rounding-lg) 0 0; }
body #order-standard_cart .cart-body .view-cart-items .item { border: 1px solid var(--border); border-top: 0; padding: 16px; background: #fff; }
body #order-standard_cart .cart-body .view-cart-items .item:last-child { border-radius: 0 0 var(--rounding-lg) var(--rounding-lg); }
body #order-standard_cart .view-cart-items .item-title { font-size: 16px; font-weight: 700; color: var(--neutral-900); }
body #order-standard_cart .view-cart-items .item-group, body #order-standard_cart .view-cart-items .item-domain { font-size: 13px; color: var(--neutral-500); }
body #order-standard_cart .view-cart-items .item-price { font-size: 16px; font-weight: 700; color: var(--neutral-900); }
body #order-standard_cart .view-cart-items .item-price span { font-size: 12px; font-weight: 500; color: var(--neutral-500); }
body #order-standard_cart .view-cart-items .item-remove { color: var(--neutral-400); }
body #order-standard_cart .view-cart-items .item-remove:hover { color: #dc2626; }
body #order-standard_cart .view-cart-items .btn-xs, body #order-standard_cart .view-cart-items .item .btn { font-size: 12px; padding: 2px 8px; border-radius: 999px; background: var(--primary-50); color: var(--primary); border: 0; }
body #order-standard_cart .empty-cart .btn { color: var(--neutral-500); font-size: 13px; }
body #order-standard_cart .secondary-cart-body { margin-top: 20px; }
body #order-standard_cart .secondary-cart-body .view-cart-tabs .nav-tabs { border-bottom: 1px solid var(--border); }
body #order-standard_cart .secondary-cart-body .view-cart-tabs .tab-content { background: #fff; border: 1px solid var(--border); border-top: 0; border-radius: 0 0 var(--rounding-lg) var(--rounding-lg); padding: 20px; }
body #order-standard_cart .secondary-cart-body .view-cart-tabs .tab-content .btn { height: 44px; display: inline-flex; align-items: center; justify-content: center; }
body #order-standard_cart .cart-body .view-cart-empty, body #order-standard_cart .empty-cart-message { padding: 32px 16px; color: var(--neutral-500); border-radius: 0 0 var(--rounding-lg) var(--rounding-lg); }
/* checkout */
body #order-standard_cart .sub-heading { margin: 28px 0 16px; border-bottom: 1px solid var(--border); }
body #order-standard_cart .sub-heading span { background: var(--primary-50); color: var(--primary-lifted); font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 0 14px; }
body #order-standard_cart #frmCheckout .account { background: #fff; border: 1px solid var(--border) !important; border-radius: var(--rounding-md) !important; margin-bottom: 8px; }
body #order-standard_cart #frmCheckout .account label { padding: 14px 18px; margin: 0; width: 100%; font-size: 14px; color: var(--neutral-800); cursor: pointer; }
body #order-standard_cart #frmCheckout .account.active { background: var(--primary-50); border-color: var(--primary-200) !important; }
body #order-standard_cart #frmCheckout .account .label { padding: 2px 8px; border-radius: 999px; font-size: 10px; }
body #order-standard_cart #frmCheckout .account .label-info { background: var(--primary); color: #fff; }
body #order-standard_cart #frmCheckout .account .small { color: var(--neutral-500); }
body #order-standard_cart .already-registered .btn-info, body #order-standard_cart .already-registered .btn-warning { background: #fff; border: 1px solid var(--border); color: var(--neutral-700); border-radius: 999px; font-size: 13px; padding: 6px 14px; }
body #order-standard_cart .already-registered .btn-info:hover, body #order-standard_cart .already-registered .btn-warning:hover { border-color: var(--primary-200); background: var(--primary-50); color: var(--primary); }
body #order-standard_cart #frmCheckout .prepend-icon .field-icon { height: 44px; line-height: 44px; }
body #order-standard_cart #frmCheckout .prepend-icon .field-icon i { color: var(--primary); }
body #order-standard_cart #frmCheckout .prepend-icon .field { padding-left: 40px; }
body #order-standard_cart #frmCheckout .form-group { margin-bottom: 14px; }
body #order-standard_cart #paymentGatewaysContainer { background: #fff; border: 1px solid var(--border); border-radius: var(--rounding-lg); padding: 20px; }
body #order-standard_cart #paymentGatewaysContainer .alert-success { margin: -4px 0 16px; font-size: 15px; }
body #order-standard_cart #paymentGatewaysContainer label.radio-inline { padding: 10px 16px; margin: 4px; border: 1px solid var(--border); border-radius: var(--rounding-md); font-size: 14px; font-weight: 500; color: var(--neutral-800); background: #fff; }
body #order-standard_cart #paymentGatewaysContainer .text-center { display: flex; flex-wrap: wrap; justify-content: center; }
body #order-standard_cart #frmCheckout #creditCardInputFields { background: #fff; border-color: var(--border); border-radius: var(--rounding-md); padding: 16px; }
body #order-standard_cart #btnCompleteOrder { height: 52px; padding: 0 32px; font-size: 16px; border-radius: var(--rounding-md); display: inline-flex; align-items: center; gap: 8px; }
body #order-standard_cart .checkout-security-msg, body #order-standard_cart #frmCheckout .small.text-muted { font-size: 12px; color: var(--neutral-500); }
body #order-standard_cart .form-check-input, body #order-standard_cart input[type="checkbox"] { accent-color: var(--primary); }
body #order-standard_cart #frmCheckout .custom-control-label, body #order-standard_cart #frmCheckout .checkbox label { font-size: 14px; color: var(--neutral-700); font-weight: 500; }
/* order complete + domain pricing table */
body #order-standard_cart .order-complete-message, body #order-standard_cart .complete-wrapper { background: #fff; border: 1px solid var(--border); border-radius: var(--rounding-lg); padding: 28px; }
body #order-standard_cart .domain-pricing .featured-tld { border: 1px solid var(--border); border-radius: var(--rounding-lg); background: #fff; }
body #order-standard_cart .domain-pricing .featured-tld .price { color: var(--primary); font-weight: 700; }
@media (max-width: 767.98px) {
  body #order-standard_cart .cart-body .header-lined h1 { font-size: 24px; }
  body #order-standard_cart .order-summary { margin-top: 20px; }
  body #order-standard_cart #btnCompleteOrder { width: 100%; justify-content: center; }
}

/* 2.10 Client dashboard redesign — clientareahome.tpl override (post-build, 13 Nov) ---- */
/* welcome banner */
.ph-hero { display: flex; gap: 24px; align-items: stretch; margin-bottom: 20px; padding: 28px 32px; border-radius: var(--rounding-lg); background: linear-gradient(135deg, #031974 0%, #0a3fb8 55%, #035ded 100%); color: #fff; box-shadow: var(--ph-shadow-md); position: relative; overflow: hidden; }
.ph-hero::before { content: ""; position: absolute; right: -80px; top: -140px; width: 380px; height: 380px; border-radius: 50%; background: rgba(255, 255, 255, 0.08); pointer-events: none; }
.ph-hero::after { content: ""; position: absolute; right: 160px; bottom: -180px; width: 280px; height: 280px; border-radius: 50%; background: rgba(255, 255, 255, 0.06); pointer-events: none; }
.ph-hero-main { flex: 1 1 auto; min-width: 0; position: relative; z-index: 1; }
.ph-hero-kicker { margin: 0 0 2px; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.75); }
.ph-hero-title { margin: 0; font-size: 28px; font-weight: 800; letter-spacing: -0.02em; color: #fff; line-height: 1.2; }
.ph-hero-sub { margin: 8px 0 0; font-size: 14px; color: rgba(255, 255, 255, 0.8); overflow-wrap: anywhere; }
.ph-quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.ph-quick-btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.22); color: #fff; font-size: 13px; font-weight: 600; transition: background 0.15s, color 0.15s; }
.ph-quick-btn:hover, .ph-quick-btn:focus { background: #fff; color: var(--primary-900); text-decoration: none; }
.ph-hero-asides { flex: 0 0 auto; display: flex; gap: 12px; align-items: stretch; position: relative; z-index: 1; }
.ph-hero-aside { flex: 1 1 200px; min-width: 190px; display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 20px 22px; border-radius: var(--rounding-md); background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.2); position: relative; z-index: 1; }
.ph-hero-pin-value { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: 0.12em; transition: transform 0.25s, color 0.25s; }
.ph-hero-pin-value.is-updated { transform: scale(1.12); color: #fbbf24; }
.ph-hero-pin-hint { font-size: 11.5px; color: rgba(255, 255, 255, 0.7); line-height: 1.4; margin-top: 2px; }
.ph-hero-aside-btn:disabled { opacity: 0.7; }
@media (max-width: 1199.98px) { .ph-hero-asides { flex-direction: column; justify-content: center; } .ph-hero-aside { flex: 0 0 auto; } }
.ph-hero-aside-label { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255, 255, 255, 0.75); }
.ph-hero-aside-value { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; color: #fff; }
.ph-hero-aside-btn, body .ph-hero-aside-btn { margin-top: 10px; background: #fff; color: var(--primary-700); font-weight: 700; border: 0; border-radius: var(--rounding-md); padding: 9px 14px; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.ph-hero-aside-btn:hover, body .ph-hero-aside-btn:hover { background: var(--primary-50); color: var(--primary-900); }

/* stat row */
.ph-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.ph-stat { display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: #fff; border: 1px solid var(--border); border-radius: var(--rounding-lg); box-shadow: var(--ph-shadow-sm); color: var(--neutral-900); transition: box-shadow 0.15s, transform 0.15s, border-color 0.15s; }
.ph-stat:hover, .ph-stat:focus { text-decoration: none; color: var(--neutral-900); border-color: var(--primary-200); box-shadow: var(--ph-shadow-md); transform: translateY(-2px); }
.ph-stat-icon { flex: 0 0 46px; width: 46px; height: 46px; display: flex; align-items: center; justify-content: center; border-radius: 14px; font-size: 18px; }
.ph-stat-blue .ph-stat-icon { background: var(--primary-50); color: var(--primary); }
.ph-stat-green .ph-stat-icon { background: #ecfdf5; color: var(--success); }
.ph-stat-red .ph-stat-icon { background: #fef2f2; color: var(--error); }
.ph-stat-gold .ph-stat-icon { background: #fffbeb; color: #d97706; }
.ph-stat-body { display: flex; flex-direction: column; min-width: 0; }
.ph-stat-num { font-size: 26px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.ph-stat-label { font-size: 12px; font-weight: 600; color: var(--neutral-500); white-space: nowrap; }
.ph-stat-arrow { margin-left: auto; font-size: 12px; color: var(--neutral-300); transition: color 0.15s, transform 0.15s; }
.ph-stat:hover .ph-stat-arrow { color: var(--primary); transform: translateX(2px); }

/* notice strip (unpaid invoices / next renewal) */
.ph-notice { display: flex; align-items: center; gap: 14px; padding: 14px 18px; margin-bottom: 20px; border-radius: var(--rounding-lg); border: 1px solid; font-size: 14px; line-height: 1.5; }
.ph-notice-icon { font-size: 20px; flex: 0 0 auto; }
.ph-notice-text { flex: 1 1 auto; min-width: 0; }
.ph-notice-text strong { font-weight: 700; }
.ph-notice-btn, body .ph-notice-btn { flex: 0 0 auto; border-radius: 999px; font-size: 13px; font-weight: 700; padding: 7px 14px; border: 0; color: #fff; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.ph-notice-btn:hover, body .ph-notice-btn:hover { color: #fff; filter: brightness(0.92); }
.ph-notice-warning { background: #fffbeb; border-color: #fde68a; color: #78350f; }
.ph-notice-warning .ph-notice-icon { color: #d97706; }
.ph-notice-warning .ph-notice-btn { background: #d97706; }
.ph-notice-danger { background: #fef2f2; border-color: #fecaca; color: #7f1d1d; }
.ph-notice-danger .ph-notice-icon { color: var(--error); }
.ph-notice-danger .ph-notice-btn { background: var(--error); }
.ph-notice-ok { background: #f0fdf4; border-color: #bbf7d0; color: #14532d; }
.ph-notice-ok .ph-notice-icon { color: var(--success); }
.ph-notice-ok .ph-notice-btn { background: var(--success); }

/* two-column grid and cards */
.ph-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; margin-bottom: 20px; }
@media (min-width: 992px) { .ph-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } .ph-grid-rest { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (min-width: 1200px) { .ph-grid { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); } }
.ph-grid-rest:empty { display: none; }
/* one column empty (panel hidden in the Theme Options addon): the other column spans the full width */
.ph-grid.ph-grid-single { grid-template-columns: minmax(0, 1fr); }
.ph-grid.ph-grid-single > .ph-grid-main:empty, .ph-grid.ph-grid-single > .ph-grid-side:empty { display: none; }
.ph-grid:empty { display: none; }
.ph-grid-main, .ph-grid-side, .ph-grid-half { min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.ph-card { background: #fff; border: 1px solid var(--border); border-radius: var(--rounding-lg); box-shadow: var(--ph-shadow-sm); overflow: hidden; }
.ph-card-head { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--border-muted); background: linear-gradient(90deg, var(--primary-50) 0%, #fff 70%); }
.ph-card-title { margin: 0; display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; color: var(--neutral-900); }
.ph-card-title > i { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; background: var(--primary); color: #fff; font-size: 14px; box-shadow: 0 4px 10px rgba(3, 93, 237, 0.25); }
.ph-card-title .badge { background: var(--primary-50); color: var(--primary); border-radius: 999px; font-weight: 600; }
.ph-card-action { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--primary-200); color: var(--primary); font-size: 12px; font-weight: 600; white-space: nowrap; }
.ph-card-action:hover, .ph-card-action:focus { background: var(--primary); border-color: var(--primary); color: #fff; text-decoration: none; }
.ph-card-body { padding: 16px 20px; font-size: 14px; line-height: 1.6; color: var(--neutral-600); }
.ph-card-body p { margin: 0; }
.ph-card-body p + p { margin-top: 10px; }
.ph-card-body a { color: var(--primary); font-weight: 600; }
.ph-card-list { display: flex; flex-direction: column; }
.ph-card-item { display: block; padding: 12px 20px; border-bottom: 1px solid var(--border-muted); font-size: 14px; color: var(--neutral-800); }
.ph-card-item:last-child { border-bottom: 0; }
a.ph-card-item:hover, a.ph-card-item:focus { background: var(--primary-50); color: var(--primary); text-decoration: none; }
.ph-card-item .badge { background: var(--primary-50); color: var(--primary); border-radius: 999px; font-weight: 600; margin-left: 6px; }
.ph-card-foot { padding: 4px 20px 14px; display: flex; justify-content: flex-end; font-size: 13px; }
.ph-card-foot .btn-view-more { font-weight: 600; color: var(--primary); }
.ph-card-foot .btn-view-more::after { content: "\f061"; font-family: "Font Awesome 6 Pro", "Font Awesome 6 Free", "Font Awesome 5 Pro", "Font Awesome 5 Free"; font-weight: 900; font-size: 11px; margin-left: 6px; }
.ph-card-foot .btn-view-more.disabled { color: var(--neutral-400); pointer-events: none; }
.ph-card-foot .clearfix { display: none; }
.ph-card-foot:not(:has(a, button, form)) { display: none; }
.ph-addon-html { margin-bottom: 20px; }

/* services panel: one striped row per service (icon | name + domain | status | button) */
.ph-card-services .ph-card-list { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px 10px; }
.ph-card-services .ph-card-item { padding: 0; border: 0; }
.ph-card-services .div-service-item { --svc: var(--primary); --svc-soft: var(--primary-50); position: relative; display: flex; flex-direction: row; align-items: center; justify-content: flex-start; gap: 14px; padding: 14px 16px; border: 1px solid var(--border); border-left: 4px solid var(--svc); border-radius: var(--rounding-md); background: #fff; cursor: pointer; text-align: left; transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s; }
.ph-card-services .div-service-item:hover { border-color: var(--primary-200); border-left-color: var(--svc); box-shadow: var(--ph-shadow-md); }
/* a row with an open dropdown must paint above the rows below it */
.ph-card-services .ph-card-item { position: relative; }
.ph-card-services .ph-card-item:has(.show), .ph-card-services .ph-card-item:has([aria-expanded="true"]) { z-index: 20; }
.ph-card-services .div-service-item:has(.label-success) { --svc: var(--success); --svc-soft: #ecfdf5; }
.ph-card-services .div-service-item:has(.label-warning) { --svc: #d97706; --svc-soft: #fffbeb; }
.ph-card-services .div-service-item:has(.label-danger) { --svc: var(--error); --svc-soft: #fef2f2; }
.ph-card-services .div-service-item:has(.label-default) { --svc: var(--neutral-500); --svc-soft: var(--neutral-100); }
.ph-card-services .div-service-item::before { content: "\f233"; font-family: "Font Awesome 6 Pro", "Font Awesome 6 Free", "Font Awesome 5 Pro", "Font Awesome 5 Free"; font-weight: 900; flex: 0 0 44px; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 12px; background: var(--svc-soft); color: var(--svc); font-size: 17px; }
.ph-card-services .div-service-status, .ph-card-services .div-service-name, .ph-card-services .div-service-buttons { width: auto !important; max-width: none !important; min-width: 0; text-align: left; padding: 0; margin: 0; }
.ph-card-services .div-service-name { order: 1; flex: 1 1 auto; display: flex; flex-direction: column; gap: 2px; }
.ph-card-services .div-service-name .font-weight-bold, .ph-card-services .div-service-name .text-domain { display: block; white-space: normal; overflow: visible; text-overflow: clip; max-width: none; }
.ph-card-services .div-service-name .font-weight-bold { font-size: 15px; color: var(--neutral-900); line-height: 1.35; }
.ph-card-services .div-service-name .text-domain { font-size: 13px; color: var(--neutral-500); overflow-wrap: anywhere; }
.ph-card-services .div-service-status { order: 2; flex: 0 0 auto; display: block; }
.ph-card-services .div-service-status .label-placeholder { display: none; }
.ph-card-services .div-service-status .label { display: inline-block; width: auto !important; max-width: none !important; overflow: visible; text-overflow: clip; padding: 5px 11px; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; border-radius: 999px; background: var(--svc-soft) !important; color: var(--svc) !important; }
.ph-card-services .div-service-buttons { order: 3; flex: 0 0 auto; display: flex; align-items: center; gap: 8px; }
.ph-card-services .div-service-buttons .btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; font-weight: 600; border-radius: 999px; border: 1px solid var(--primary); background: var(--primary); color: #fff; padding: 7px 14px; white-space: nowrap; line-height: 1.4; }
.ph-card-services .div-service-buttons .btn > span:not(.sr-only):not(.loading):not(.caret) { display: inline !important; }
.ph-card-services .div-service-buttons .btn:hover { background: var(--primary-lifted); border-color: var(--primary-lifted); color: #fff; }
/* WHMCS module buttons (e.g. Log in to cPanel + Webmail): one outlined pill group; the ".loading" spinner
   stays hidden until WHMCS shows it; the caret-only "primary" group is Nexus's phone variant */
.ph-card-services .div-service-buttons .btn-group-secondary { display: inline-flex; align-items: stretch; }
.ph-card-services .div-service-buttons .btn-group-primary { display: none; }
.ph-card-services .div-service-buttons .btn-group .btn-custom-action { background: #fff; border-color: var(--border); color: var(--neutral-800); }
.ph-card-services .div-service-buttons .btn-group .btn-custom-action:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-50); }
.ph-card-services .div-service-buttons .btn-group-secondary > .btn-custom-action { border-radius: 999px 0 0 999px !important; }
.ph-card-services .div-service-buttons .btn-group-secondary .dropdown-toggle { border-radius: 0 999px 999px 0 !important; }
.ph-card-services .div-service-buttons .btn-group-secondary > .btn-group { display: inline-flex; }
.ph-card-services .div-service-buttons .dropdown-toggle { background: #fff; border-color: var(--border); color: var(--neutral-600); padding: 7px 12px 7px 10px; margin-left: -1px; box-shadow: none !important; }
.ph-card-services .div-service-buttons .dropdown-toggle:focus { outline: 0; }
.ph-card-services .div-service-buttons .dropdown-toggle:hover { background: var(--primary-50); border-color: var(--primary); color: var(--primary); }
.ph-card-services .div-service-buttons .dropdown-toggle .caret { display: none; }
.ph-card-services .div-service-buttons .dropdown-toggle::after { display: inline-block; margin-left: 0; border: 0; width: auto; height: auto; vertical-align: 0; content: "\f078"; font-family: "Font Awesome 6 Pro", "Font Awesome 6 Free", "Font Awesome 5 Pro", "Font Awesome 5 Free"; font-weight: 900; font-size: 11px; line-height: 1; }
.ph-card-services .div-service-buttons .show > .dropdown-toggle::after { content: "\f077"; }
.ph-card-services .div-service-buttons .loading { display: none; }
.ph-card-services .div-service-buttons .btn-custom-action .loading[style*="inline"] { display: inline-block !important; }
.ph-card-services .div-service-buttons .btn-custom-action.disabled, .ph-card-services .div-service-buttons .btn-custom-action[data-active="0"] { opacity: 0.55; cursor: default; }
.ph-card-services .div-service-buttons .dropdown-menu { border: 1px solid var(--border); border-radius: var(--rounding-md); box-shadow: var(--ph-shadow-md); padding: 6px; min-width: 190px; margin-top: 6px; }
.ph-card-services .div-service-buttons .dropdown-menu .dropdown-item { border-radius: 8px; padding: 8px 12px; font-size: 13px; font-weight: 500; color: var(--neutral-700); cursor: pointer; }
.ph-card-services .div-service-buttons .dropdown-menu .dropdown-item:hover { background: var(--primary-50); color: var(--primary); }
@media (max-width: 575.98px) {
  .ph-card-services .div-service-buttons { flex-wrap: wrap; }
  .ph-card-services .div-service-buttons .btn-group-secondary { display: none; }
  .ph-card-services .div-service-buttons .btn-group-primary { display: inline-flex; }
  .ph-card-services .div-service-buttons .btn-group-primary .dropdown-toggle { border-radius: 999px; padding: 7px 14px; gap: 6px; }
  .ph-card-services .div-service-buttons .btn-group-primary .dropdown-toggle::before { content: "Log in"; font-size: 13px; font-weight: 600; }
}

/* recent tickets: icon marker on the left, subject, status pill, date */
.ph-card-tickets .ph-card-head { flex-wrap: wrap; row-gap: 8px; }
.ph-card-tickets .ph-card-title { white-space: nowrap; }
.ph-card-tickets .ph-card-item { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; padding: 12px 16px 12px 62px; line-height: 1.45; font-weight: 600; color: var(--neutral-900); }
.ph-card-tickets .ph-card-item::before { content: "\f4ad"; font-family: "Font Awesome 6 Pro", "Font Awesome 6 Free", "Font Awesome 5 Pro", "Font Awesome 5 Free"; font-weight: 900; position: absolute; left: 16px; top: 12px; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; border-radius: 11px; background: var(--primary-50); color: var(--primary); font-size: 14px; }
.ph-card-tickets .ph-card-item:hover::before { background: var(--primary); color: #fff; }
.ph-card-tickets .ph-card-item br { display: none; }
.ph-card-tickets .ph-card-item .label { display: inline-block; margin: 0; padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 600; color: #fff; line-height: 1.5; }
.ph-card-tickets .ph-card-item small { display: block; margin: 0; font-size: 12px; font-weight: 400; color: var(--neutral-500); }
.ph-card-tickets .ph-card-item small::before { content: "\f017"; font-family: "Font Awesome 6 Pro", "Font Awesome 6 Free", "Font Awesome 5 Pro", "Font Awesome 5 Free"; font-weight: 400; margin-right: 5px; }

/* dark strip: nameservers + help (same gradient as the welcome banner) */
.ph-dark-wrap { padding: 0 0 20px; }
.ph-dark { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; margin-bottom: 0; padding: 24px 28px; border-radius: var(--rounding-lg); background: linear-gradient(135deg, #031974 0%, #0a3fb8 60%, #035ded 100%); color: #fff; box-shadow: var(--ph-shadow-md); position: relative; overflow: hidden; }
.ph-dark::before { content: ""; position: absolute; left: 40%; top: -160px; width: 320px; height: 320px; border-radius: 50%; background: rgba(255, 255, 255, 0.07); pointer-events: none; }
.ph-dark-col { min-width: 0; position: relative; z-index: 1; }
.ph-dark-col + .ph-dark-col { border-left: 1px solid rgba(255, 255, 255, 0.18); padding-left: 28px; }
.ph-dark-title { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font-size: 16px; font-weight: 700; color: #fff; }
.ph-dark-title i { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.2); font-size: 14px; }
.ph-dark p { margin: 0; font-size: 14px; line-height: 1.6; color: rgba(255, 255, 255, 0.82); }
.ph-dark .ph-ns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ph-dark .ph-ns strong { display: inline-block; padding: 8px 12px; border-radius: 10px; background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.22); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; font-weight: 600; color: #fff; }
/* copy icon inside each nameserver chip (added by a small script in footer.tpl); the chip itself is unchanged.
   Negative margins give a finger-sized tap area without making the chip taller. */
.ph-dark .ph-ns-copy { position: relative; display: inline-block; margin: -8px -8px -8px 2px; padding: 8px; border: 0; border-radius: 8px; background: transparent; color: rgba(255, 255, 255, 0.72); font-size: 13px; line-height: 1; vertical-align: middle; cursor: pointer; transition: color 0.15s; -webkit-tap-highlight-color: transparent; }
.ph-dark .ph-ns-copy:hover, .ph-dark .ph-ns-copy:focus { color: #fff; outline: 0; }
.ph-dark .ph-ns-copy:focus-visible { box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.55); }
.ph-dark .ph-ns-copy.is-copied { color: #86efac; }
.ph-dark .ph-ns-copy i { display: block; width: 13px; text-align: center; }
.ph-dark .ph-ns-tip { position: absolute; left: 50%; bottom: calc(100% + 1px); transform: translate(-50%, 4px); padding: 4px 8px; border-radius: 6px; background: var(--neutral-900); color: #fff; font-family: var(--ph-font); font-size: 11px; font-weight: 600; line-height: 1.3; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity 0.15s, transform 0.15s; }
.ph-dark .ph-ns-tip:empty { display: none; }
.ph-dark .ph-ns-tip::after { content: ""; position: absolute; left: 50%; top: 100%; margin-left: -4px; border: 4px solid transparent; border-top-color: var(--neutral-900); }
.ph-dark .ph-ns-copy.is-tip .ph-ns-tip { opacity: 1; transform: translate(-50%, 0); }
.ph-dark .ph-help-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ph-dark .ph-help-links a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.22); color: #fff; font-size: 13px; font-weight: 600; transition: background 0.15s, color 0.15s; }
.ph-dark .ph-help-links a:hover, .ph-dark .ph-help-links a:focus { background: #fff; color: var(--primary-900); text-decoration: none; }
.ph-dark .ph-help-links a.ph-help-wa { background: #25d366; border-color: #25d366; }
.ph-dark .ph-help-links a.ph-help-wa:hover { background: #1ebe5a; color: #fff; }

/* responsive */
@media (max-width: 1199.98px) { .ph-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767.98px) {
  .ph-hero { flex-direction: column; padding: 22px 20px; gap: 16px; }
  .ph-hero-title { font-size: 24px; }
  .ph-hero-asides { flex-direction: column; }
  .ph-hero-aside { flex: 0 0 auto; min-width: 0; }
  .ph-notice { flex-wrap: wrap; }
  .ph-notice-btn, body .ph-notice-btn { width: 100%; justify-content: center; }
  .ph-card-services .div-service-item { flex-wrap: wrap; padding: 14px; gap: 10px 12px; }
  .ph-card-services .div-service-item::before { flex-basis: 40px; width: 40px; height: 40px; font-size: 15px; }
  .ph-card-services .div-service-name { flex-basis: calc(100% - 52px); }
  .ph-card-services .div-service-status { order: 2; }
  .ph-card-services .div-service-buttons { order: 3; margin-left: auto; }
  .ph-dark { grid-template-columns: 1fr; padding: 20px; gap: 20px; }
  .ph-dark-col + .ph-dark-col { border-left: 0; padding-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.18); padding-top: 20px; }
}
@media (max-width: 575.98px) {
  .ph-stats { gap: 10px; }
  .ph-stat { padding: 12px 14px; gap: 10px; }
  .ph-stat-icon { flex-basis: 38px; width: 38px; height: 38px; font-size: 15px; border-radius: 11px; }
  .ph-stat-num { font-size: 22px; }
  .ph-stat-arrow { display: none; }
  .ph-quick-btn { padding: 8px 12px; font-size: 12px; }
  .ph-card-tickets .ph-card-item { padding-left: 16px; }
  .ph-card-tickets .ph-card-item::before { display: none; }
}

/* 2.11 Theme refresh for all other pages (14 Nov) — same look as the dashboard and header ---- */
/* page banner printed by header.tpl at the top of .primary-content */
.ph-page-hero { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; padding: 18px 24px; border-radius: var(--rounding-lg); background: linear-gradient(135deg, #031974 0%, #0a3fb8 55%, #035ded 100%); color: #fff; box-shadow: var(--ph-shadow-md); position: relative; overflow: hidden; }
.ph-page-hero::before { content: ""; position: absolute; right: -60px; top: -120px; width: 260px; height: 260px; border-radius: 50%; background: rgba(255, 255, 255, 0.08); pointer-events: none; }
.ph-page-hero::after { content: ""; position: absolute; right: 180px; bottom: -150px; width: 200px; height: 200px; border-radius: 50%; background: rgba(255, 255, 255, 0.06); pointer-events: none; }
.ph-page-hero-icon { flex: 0 0 52px; width: 52px; height: 52px; border-radius: 16px; background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.22); display: flex; align-items: center; justify-content: center; font-size: 22px; color: #fff; position: relative; z-index: 1; }
.ph-page-hero-text { position: relative; z-index: 1; min-width: 0; }
.ph-page-hero-kicker { margin: 0; font-size: 11.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.72); }
.ph-page-hero-title { margin: 2px 0 0; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; color: #fff; }
.master-breadcrumb { background: #fff; border-bottom: 1px solid var(--border-muted); }
.master-breadcrumb .breadcrumb { padding: 10px 0; }

/* card heads everywhere: light-blue tint + solid icon badge (as on the dashboard cards) */
.sidebar .card-header, .sidebar .card-sidebar .card-header, .primary-content .card > .card-header { background: linear-gradient(90deg, var(--primary-50) 0%, #fff 70%); border-bottom: 1px solid var(--border-muted); }
.sidebar .card-title > i:first-child:not(.card-minimise), .primary-content .card > .card-header .card-title > i:first-child, .primary-content .card > .card-body > .card-title > i:first-child, .view-ticket .card-body.p-3 .card-title > i:first-child { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border-radius: 9px; background: var(--primary); color: #fff !important; font-size: 12px !important; margin-right: 4px; box-shadow: 0 4px 10px rgba(3, 93, 237, 0.22); vertical-align: middle; }
/* light-weight (fal) icons have no 900 face in the WHMCS font files, so the badge keeps each icon's own weight */
.sidebar .card-title { display: flex; align-items: center; gap: 4px; }
.sidebar .card-title .card-minimise { margin-left: auto; }
.sidebar .card-title .badge.float-right { margin-left: auto; }
.sidebar .card-title .badge.float-right + .card-minimise { margin-left: 8px; }
.sidebar .list-group-item { padding: 11px 20px; }
.sidebar .list-group-item.active, .sidebar .list-group-item.active:hover, .sidebar .list-group-item.active:focus { box-shadow: inset 3px 0 0 var(--primary); }
.primary-content .card { border-radius: var(--rounding-lg); }
.primary-content .card > .card-body > .card-title { font-size: 17px; font-weight: 700; color: var(--neutral-900); }

/* buttons: pills, grouped buttons keep square-ish corners */
.primary-content .btn, .sidebar .card-footer .btn, .sidebar .card-body .btn, .modal .btn { border-radius: 999px; font-weight: 600; }
.primary-content .btn-group > .btn, .primary-content .btn-group > .btn-group > .btn, .primary-content .input-group .btn, .sidebar .input-group .btn, .modal .input-group .btn { border-radius: var(--rounding-md); }
.primary-content .btn-primary, .sidebar .btn-primary, .modal .btn-primary, .primary-content .btn-success, .sidebar .btn-success { box-shadow: 0 6px 16px rgba(3, 93, 237, 0.2); }
.primary-content .btn-default, .sidebar .card-footer .btn-default, .primary-content .btn-light { background: #fff; border: 1px solid var(--border); color: var(--neutral-700); }
.primary-content .btn-default:hover, .sidebar .card-footer .btn-default:hover { border-color: var(--primary-200); color: var(--primary); background: var(--primary-50); }

/* list pages (DataTables) */
body .dataTables_wrapper table.table-list thead th { background: linear-gradient(90deg, var(--primary-50) 0%, #fff 100%); color: var(--neutral-600); }
body .dataTables_wrapper table.table-list thead th.sorting_asc, body .dataTables_wrapper table.table-list thead th.sorting_desc { background: var(--primary-100); color: var(--primary-lifted); }
body .dataTables_wrapper .dataTables_filter label .form-control { border-radius: 999px; padding-left: 42px !important; }
body .dataTables_wrapper .dataTables_filter::after { left: 16px; }
body .dataTables_wrapper .dataTables_length select.custom-select-sm { border-radius: 999px; padding-left: 14px; }
.pagination .page-link { border-radius: 999px !important; }
.label.status, body .dataTables_wrapper table.table-list .label.status { text-transform: uppercase; font-weight: 700; letter-spacing: 0.04em; font-size: 10.5px; padding: 5px 10px; }
body .dataTables_wrapper table.table-list tbody td .btn { border-radius: 999px; }

/* product / domain details: gradient summary tile, pill tabs */
div.product-details div.product-status .product-icon { background: linear-gradient(135deg, #031974 0%, #0a3fb8 55%, #035ded 100%); }
div.product-details .product-icon .fa-stack-2x { color: #fff; }
div.product-details .product-icon .fa-stack-1x { color: var(--primary-900); }
div.product-details .product-icon h3 { color: #fff; }
div.product-details .product-icon h4 { color: rgba(255, 255, 255, 0.78); }
.nav-tabs.responsive-tabs-sm, .primary-content .nav-tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 6px; border: 0; border-radius: 999px; background: var(--neutral-100); margin-bottom: 14px; }
.responsive-tabs-sm .nav-item { margin: 0; }
.responsive-tabs-sm .nav-item a, .nav-tabs .nav-link { border: 0 !important; border-radius: 999px; padding: 8px 16px; font-size: 14px; font-weight: 600; color: var(--neutral-600); background: transparent; }
.responsive-tabs-sm .nav-item a:hover, .nav-tabs .nav-link:hover, .nav-tabs .nav-link:focus { background: #fff; color: var(--primary); }
.nav-tabs .nav-link.active, .nav-tabs .nav-item.show .nav-link, .responsive-tabs-sm .nav-item a.active { background: #fff; color: var(--primary); box-shadow: var(--ph-shadow-sm); }
div.product-details-tab-container, .tab-content.margin-bottom > .product-details-tab-container { border-top: 1px solid var(--border); border-radius: var(--rounding-lg); }
.responsive-tabs-sm-connector { display: none; }
@media (max-width: 767.98px) {
  .responsive-tabs-sm { display: flex; flex-direction: column; width: 100%; border: 0; border-radius: var(--rounding-lg); background: var(--neutral-100); padding: 6px; gap: 2px; }
  .responsive-tabs-sm .nav-item { border-bottom: 0 !important; }
  .responsive-tabs-sm .nav-item a, .responsive-tabs-sm .nav-item:first-child a, .responsive-tabs-sm .nav-item:last-child a { border-radius: 999px !important; width: 100%; }
}

/* tickets */
.view-ticket .card-body.p-3 { background: linear-gradient(90deg, var(--primary-50) 0%, #fff 70%); }
.view-ticket .posted-by { background: var(--neutral-50); }
.view-ticket .posted-by .label, .view-ticket .posted-by .badge { border-radius: 999px; padding: 2px 9px; font-size: 11px; font-weight: 600; }
#ticketReplyContainer > .card-body > .card-title, #ticketReplyContainer .card-title { font-size: 17px; font-weight: 700; }

/* knowledgebase */
.kb-category .card-body { transition: box-shadow 0.15s, transform 0.15s, border-color 0.15s; }
.kb-category:hover { border-color: var(--primary-200); box-shadow: var(--ph-shadow-md); transform: translateY(-2px); }
.kb-category .h5 > i { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 11px; background: var(--primary); color: #fff !important; font-size: 14px !important; margin-right: 6px; box-shadow: 0 4px 10px rgba(3, 93, 237, 0.22); }
.kb-category .badge.badge-info { background: var(--primary-50); color: var(--primary); border-radius: 999px; font-weight: 600; padding: 5px 10px; }
.kb-search .btn, .primary-content form.mb-4 .btn { border-radius: 0 999px 999px 0; }
.kb-search .form-control, .primary-content form.mb-4 .form-control { border-radius: 999px 0 0 999px; }

/* alerts: rounded, with a stronger left edge */
.primary-content > .alert, .tab-content > .alert { border-radius: var(--rounding-lg); border-left-width: 4px; }

/* responsive */
@media (max-width: 575.98px) {
  .ph-page-hero { padding: 16px 18px; gap: 12px; }
  .ph-page-hero-icon { flex-basis: 44px; width: 44px; height: 44px; font-size: 18px; border-radius: 13px; }
  .ph-page-hero-title { font-size: 19px; }
}

/* 2.12 Invoice page redesign — viewinvoice.tpl (14 Nov) ------------------------------------- */
body.ph-invoice-page { background: var(--neutral-100); color: var(--neutral-800); margin: 0; }
.ph-inv-wrap { max-width: 960px; margin: 0 auto; padding: 24px 16px 40px; }
/* top navigation row */
.ph-inv-topnav { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.ph-inv-back { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--neutral-600); }
.ph-inv-back:hover { color: var(--primary); text-decoration: none; }
.ph-inv-topnav-actions { display: flex; gap: 8px; }
.ph-invoice-page .btn.ph-btn-light { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 16px; border-radius: 999px; background: #fff; border: 1px solid var(--border); color: var(--neutral-700); font-size: 13px; font-weight: 600; box-shadow: var(--ph-shadow-sm); }
.ph-invoice-page .btn.ph-btn-light:hover { border-color: var(--primary-200); color: var(--primary); background: var(--primary-50); }
.ph-invoice-page .btn.ph-btn-danger { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 16px; border-radius: 999px; background: #fff; border: 1px solid #fecaca; color: #b91c1c; font-size: 13px; font-weight: 600; }
.ph-invoice-page .btn.ph-btn-danger:hover { background: #dc2626; border-color: #dc2626; color: #fff; }
/* the invoice card */
.ph-inv-card { background: #fff; border: 1px solid var(--border); border-radius: var(--rounding-lg); box-shadow: var(--ph-shadow-md); overflow: hidden; }
.ph-inv-head { display: flex; justify-content: space-between; align-items: stretch; gap: 24px; padding: 32px 36px; background: linear-gradient(135deg, #031974 0%, #0a3fb8 55%, #035ded 100%); color: #fff; position: relative; overflow: hidden; }
.ph-inv-head::before { content: ""; position: absolute; right: -90px; top: -150px; width: 380px; height: 380px; border-radius: 50%; background: rgba(255, 255, 255, 0.08); pointer-events: none; }
.ph-inv-head::after { content: ""; position: absolute; left: 40%; bottom: -180px; width: 260px; height: 260px; border-radius: 50%; background: rgba(255, 255, 255, 0.06); pointer-events: none; }
.ph-inv-head-brand, .ph-inv-head-amount { position: relative; z-index: 1; }
.ph-inv-logo { height: 32px; width: auto; filter: brightness(0) invert(1); margin-bottom: 18px; display: block; }
.ph-inv-company { display: block; font-size: 22px; font-weight: 800; margin-bottom: 18px; }
.ph-inv-kicker { margin: 0; font-size: 11.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.72); }
.ph-inv-pay p { margin: 0; font-size: 13px; color: rgba(255, 255, 255, 0.85); }
.ph-inv-title { margin: 0 0 10px; font-size: 30px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; color: #fff; }
.ph-inv-date { margin: 0; font-size: 13.5px; color: rgba(255, 255, 255, 0.82); display: flex; align-items: center; gap: 7px; }
.ph-inv-head-amount { display: flex; flex-direction: column; align-items: flex-end; justify-content: center; text-align: right; min-width: 240px; padding: 20px 22px; border-radius: var(--rounding-md); background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.2); }
.ph-inv-status { display: inline-block; padding: 6px 14px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 12px; background: rgba(255, 255, 255, 0.18); color: #fff; }
.ph-inv-status-paid { background: #22c55e; color: #052e16; }
.ph-inv-status-unpaid { background: #fbbf24; color: #1f1300; }
.ph-inv-status-collections { background: #ef4444; color: #fff; }
.ph-inv-status-pending { background: #93c5fd; color: #0c2b70; }
.ph-inv-amount-label { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255, 255, 255, 0.72); }
.ph-inv-amount { font-size: 34px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; color: #fff; }
.ph-inv-due { margin-top: 8px; font-size: 13px; color: rgba(255, 255, 255, 0.85); display: inline-flex; align-items: center; gap: 6px; }
.ph-inv-due strong { color: #fff; font-weight: 700; }
.ph-inv-pay { margin-top: 14px; }
.ph-inv-pay .btn, .ph-inv-pay button, .ph-inv-pay input[type="submit"] { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 22px; border-radius: 999px; background: #fff !important; border: 0 !important; color: var(--primary-700) !important; font-size: 14px; font-weight: 700; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18); }
.ph-inv-pay .btn:hover, .ph-inv-pay button:hover, .ph-inv-pay input[type="submit"]:hover { background: var(--primary-50) !important; color: var(--primary-900) !important; }
.ph-inv-pay form { margin: 0; display: inline-block; }
.ph-inv-pay img { max-height: 44px; }
/* body */
.ph-inv-body { padding: 28px 36px 32px; }
.ph-inv-body .card { border-radius: var(--rounding-md); margin-bottom: 20px; }
.ph-inv-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.ph-inv-meta-box { padding: 16px 18px; border: 1px solid var(--border); border-radius: var(--rounding-md); background: var(--neutral-50); min-width: 0; }
.ph-inv-meta-label { display: flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--neutral-500); margin-bottom: 8px; }
.ph-inv-meta-label i { color: var(--primary); }
.ph-inv-meta-label-sub { margin-top: 14px; }
.ph-inv-address { margin: 0; font-style: normal; font-size: 14px; line-height: 1.6; color: var(--neutral-800); overflow-wrap: anywhere; }
.ph-inv-address strong { color: var(--neutral-900); }
.ph-inv-paymethod { font-size: 14px; font-weight: 600; color: var(--neutral-900); }
.ph-inv-paymethod .custom-select { height: 40px; border-radius: 10px; border: 1px solid var(--border); font-size: 14px; font-weight: 500; width: 100%; max-width: 100%; }
.ph-inv-paymethod .form-inline { display: block; }
.ph-inv-paymethod-icon { width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; background: var(--primary-50); color: var(--primary); font-size: 12px; margin-right: 4px; vertical-align: middle; }
.ph-inv-paymethod-hint { display: block; margin-top: 4px; font-size: 12px; font-weight: 500; color: var(--neutral-500); }
/* payment-method tiles */
.ph-inv-gateways { margin: -8px 0 24px; }
.ph-inv-gw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.ph-inv-gw { position: relative; display: flex; align-items: center; gap: 12px; margin: 0; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--rounding-md); background: #fff; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--neutral-800); transition: border-color 0.15s, box-shadow 0.15s, background 0.15s; }
.ph-inv-gw:hover { border-color: var(--primary-200); box-shadow: var(--ph-shadow-md); }
.ph-inv-gw.is-selected { border-color: var(--primary); background: var(--primary-50); box-shadow: 0 0 0 3px rgba(3, 93, 237, 0.12); color: var(--primary-900); }
.ph-inv-gw input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.ph-inv-gw-icon { flex: 0 0 40px; width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; font-size: 17px; background: var(--neutral-100); color: var(--neutral-600); }
.ph-inv-gw-icon .fa-mobile-alt { color: #0f766e; }
.ph-inv-gw-icon:has(.fa-mobile-alt) { background: #ccfbf1; }
.ph-inv-gw-icon .fa-credit-card { color: #4338ca; }
.ph-inv-gw-icon:has(.fa-credit-card) { background: #e0e7ff; }
.ph-inv-gw-icon .fa-globe { color: #1d4ed8; }
.ph-inv-gw-icon:has(.fa-globe) { background: #dbeafe; }
.ph-inv-gw-icon .fa-wallet { color: #15803d; }
.ph-inv-gw-icon:has(.fa-wallet) { background: #dcfce7; }
.ph-inv-gw-icon .fa-bitcoin { color: #c2410c; }
.ph-inv-gw-icon:has(.fa-bitcoin) { background: #ffedd5; }
.ph-inv-gw-icon .fa-university { color: #1e3a8a; }
.ph-inv-gw-icon:has(.fa-university) { background: #e0e7ff; }
.ph-inv-gw-name { flex: 1 1 auto; min-width: 0; line-height: 1.3; }
.ph-inv-gw-check { flex: 0 0 auto; font-size: 16px; color: var(--primary); opacity: 0; transition: opacity 0.15s; }
.ph-inv-gw.is-selected .ph-inv-gw-check { opacity: 1; }
/* credit + notes */
.ph-inv-credit { margin-bottom: 20px; padding: 16px 18px; border: 1px solid #bbf7d0; border-radius: var(--rounding-md); background: #f0fdf4; }
.ph-inv-credit form { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.ph-inv-credit-text { flex: 1 1 280px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: #14532d; }
.ph-inv-credit-text i { color: var(--success); margin-right: 4px; }
.ph-inv-credit-form { flex: 0 1 300px; }
.ph-inv-credit-form .form-control { height: 42px; border-radius: 10px 0 0 10px; }
.ph-inv-credit-form .btn { height: 42px; border-radius: 0 10px 10px 0; background: var(--success); border-color: var(--success); font-weight: 600; }
.ph-inv-notes { margin-bottom: 20px; padding: 16px 18px; border: 1px solid #fde68a; border-radius: var(--rounding-md); background: #fffbeb; font-size: 14px; color: #78350f; line-height: 1.6; }
.ph-inv-notes .ph-inv-meta-label { color: #92400e; }
.ph-inv-notes .ph-inv-meta-label i { color: #d97706; }
/* sections + tables */
.ph-inv-section { margin-top: 8px; margin-bottom: 24px; }
.ph-inv-section-title { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 16px; font-weight: 700; color: var(--neutral-900); }
.ph-inv-section-title i { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border-radius: 9px; background: var(--primary); color: #fff; font-size: 12px; box-shadow: 0 4px 10px rgba(3, 93, 237, 0.22); }
.ph-invoice-page .ph-inv-table { margin: 0; border: 1px solid var(--border); border-radius: var(--rounding-md); border-collapse: separate; border-spacing: 0; overflow: hidden; font-size: 14px; }
.ph-invoice-page .ph-inv-table thead th { padding: 11px 16px; border: 0; border-bottom: 1px solid var(--border); background: linear-gradient(90deg, var(--primary-50) 0%, #fff 100%); font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--neutral-600); white-space: nowrap; }
.ph-invoice-page .ph-inv-table tbody td { padding: 13px 16px; border: 0; border-top: 1px solid var(--border-muted); color: var(--neutral-800); vertical-align: middle; line-height: 1.5; }
.ph-invoice-page .ph-inv-table tbody tr:first-child td { border-top: 0; }
.ph-invoice-page .ph-inv-table tbody tr:hover td { background: var(--primary-50); }
.ph-inv-col-num { width: 48px; color: var(--neutral-400); text-align: center; }
.ph-inv-col-amount { text-align: right; white-space: nowrap; font-weight: 600; color: var(--neutral-900); }
.ph-inv-taxed { color: var(--primary); font-weight: 700; }
.ph-inv-empty { text-align: center; color: var(--neutral-500); padding: 24px 16px !important; }
.ph-inv-ledger td a { color: var(--primary); font-weight: 600; }
.ph-inv-totals { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; margin-top: 12px; }
.ph-inv-total-row { display: flex; justify-content: space-between; gap: 32px; width: 320px; max-width: 100%; padding: 6px 16px; font-size: 14px; color: var(--neutral-600); }
.ph-inv-total-row span:last-child { font-weight: 600; color: var(--neutral-900); }
.ph-inv-total-grand { margin-top: 4px; padding: 12px 16px; border-radius: 12px; background: var(--primary-50); font-size: 15px; font-weight: 700; color: var(--primary-900); }
.ph-inv-total-grand span:last-child { font-size: 18px; font-weight: 800; color: var(--primary-700); }
.ph-inv-total-grand.ph-inv-total-paid { background: #ecfdf5; color: #14532d; }
.ph-inv-total-grand.ph-inv-total-paid span:last-child { color: #166534; }
.ph-inv-total-grand.ph-inv-total-unpaid, .ph-inv-total-grand.ph-inv-total-collections { background: #fffbeb; color: #78350f; }
.ph-inv-total-grand.ph-inv-total-unpaid span:last-child, .ph-inv-total-grand.ph-inv-total-collections span:last-child { color: #b45309; }
.ph-inv-taxnote { margin: 10px 0 0; font-size: 12px; color: var(--neutral-500); }
.ph-inv-qr { text-align: center; margin: 8px 0 24px; }
/* actions */
.ph-inv-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 20px; border-top: 1px solid var(--border-muted); }
.ph-inv-actions .ph-cancel-invoice { display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0; }
.ph-inv-hint { font-size: 12.5px; color: var(--neutral-500); }
.ph-inv-actions-right { display: flex; gap: 8px; margin-left: auto; }
.ph-inv-foot { text-align: center; margin: 20px 0 0; font-size: 13px; color: var(--neutral-500); }
.ph-inv-foot a { color: var(--primary); font-weight: 600; }
/* phones */
@media (max-width: 767.98px) {
  .ph-inv-wrap { padding: 16px 12px 32px; }
  .ph-inv-head { flex-direction: column; padding: 24px 20px; gap: 18px; }
  .ph-inv-head-amount { align-items: flex-start; text-align: left; min-width: 0; padding: 16px 18px; }
  .ph-inv-title { font-size: 26px; }
  .ph-inv-amount { font-size: 30px; }
  .ph-inv-body { padding: 20px 16px 24px; }
  .ph-inv-meta { grid-template-columns: 1fr; gap: 12px; }
  .ph-inv-gw-grid { grid-template-columns: 1fr; }
  .ph-inv-total-row { width: 100%; }
  .ph-inv-actions-right { margin-left: 0; width: 100%; }
  .ph-inv-actions-right .btn { flex: 1; justify-content: center; }
}
/* print: keep the colours, drop shadows, let the card fill the page */
@media print {
  body.ph-invoice-page { background: #fff; }
  .ph-inv-wrap { max-width: none; padding: 0; }
  .ph-inv-card { border: 0; box-shadow: none; border-radius: 0; }
  .ph-inv-head, .ph-inv-status, .ph-inv-total-grand, .ph-inv-section-title i, .ph-inv-table thead th { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .ph-inv-head { padding: 24px 28px; }
  .ph-inv-body { padding: 20px 28px; }
  .ph-inv-table tbody tr:hover td { background: transparent; }
}

/* 2.13 Product details page redesign — clientareaproductdetails.tpl (14 Nov) ------------------ */
/* summary hero: icon + name + status + actions on the left, fact tiles on the right */
.ph-svc-hero { display: flex; gap: 24px; align-items: stretch; margin-bottom: 20px; padding: 26px 28px; border-radius: var(--rounding-lg); background: linear-gradient(135deg, #031974 0%, #0a3fb8 55%, #035ded 100%); color: #fff; box-shadow: var(--ph-shadow-md); position: relative; overflow: hidden; }
.ph-svc-hero::before { content: ""; position: absolute; right: -90px; top: -150px; width: 360px; height: 360px; border-radius: 50%; background: rgba(255, 255, 255, 0.08); pointer-events: none; }
.ph-svc-hero::after { content: ""; position: absolute; left: 35%; bottom: -170px; width: 260px; height: 260px; border-radius: 50%; background: rgba(255, 255, 255, 0.06); pointer-events: none; }
.ph-svc-hero-main { flex: 1 1 auto; min-width: 0; display: flex; gap: 18px; align-items: flex-start; position: relative; z-index: 1; }
.ph-svc-hero-icon { flex: 0 0 64px; width: 64px; height: 64px; border-radius: 18px; background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.22); display: flex; align-items: center; justify-content: center; font-size: 26px; color: #fff; }
.ph-svc-hero-text { min-width: 0; }
.ph-svc-hero-kicker { margin: 0; font-size: 11.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.72); }
.ph-svc-hero-title { margin: 2px 0 8px; font-size: 24px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; color: #fff; overflow-wrap: anywhere; }
.ph-svc-hero-meta { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 14px; color: rgba(255, 255, 255, 0.85); }
.ph-svc-domain { display: inline-flex; align-items: center; gap: 6px; overflow-wrap: anywhere; }
.ph-svc-domain i { color: rgba(255, 255, 255, 0.7); }
.ph-svc-status { display: inline-block; padding: 5px 12px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; background: rgba(255, 255, 255, 0.18); color: #fff; }
.ph-svc-status-active { background: #22c55e; color: #052e16; }
.ph-svc-status-pending { background: #fbbf24; color: #1f1300; }
.ph-svc-status-suspended { background: #f97316; color: #fff; }
.ph-svc-status-terminated, .ph-svc-status-cancelled, .ph-svc-status-fraud { background: #ef4444; color: #fff; }
.ph-svc-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.ph-svc-btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.22); color: #fff; font-size: 13px; font-weight: 600; transition: background 0.15s, color 0.15s; }
.ph-svc-btn:hover, .ph-svc-btn:focus { background: #fff; color: var(--primary-900); text-decoration: none; }
.ph-svc-btn-light { background: #fff; color: var(--primary-700); border-color: #fff; }
.ph-svc-btn-light:hover { background: var(--primary-50); color: var(--primary-900); }
.ph-svc-btn-danger { background: rgba(239, 68, 68, 0.2); border-color: rgba(252, 165, 165, 0.6); color: #fee2e2; }
.ph-svc-btn-danger:hover { background: #dc2626; border-color: #dc2626; color: #fff; }
.ph-svc-btn.disabled { opacity: 0.6; pointer-events: none; }
.ph-svc-facts { flex: 0 0 300px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-content: start; position: relative; z-index: 1; }
.ph-svc-fact { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border-radius: var(--rounding-md); background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.2); min-width: 0; }
.ph-svc-fact-due { grid-column: 1 / -1; background: rgba(255, 255, 255, 0.18); }
.ph-svc-fact-warn { grid-column: 1 / -1; background: rgba(251, 191, 36, 0.25); border-color: rgba(251, 191, 36, 0.5); }
.ph-svc-fact-label { display: flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255, 255, 255, 0.72); }
.ph-svc-fact-value { font-size: 15px; font-weight: 700; color: #fff; line-height: 1.3; overflow-wrap: anywhere; }
.ph-svc-fact-due .ph-svc-fact-value { font-size: 18px; }
.ph-svc-fact-sub { font-size: 12px; color: rgba(255, 255, 255, 0.72); }
/* tab panes: facts as a two-column tile grid instead of centred rows */
.product-details-tab-container #domain, .product-details-tab-container #configoptions, .product-details-tab-container #additionalinfo, .product-details-tab-container #manage { text-align: left; }
.product-details-tab-container #domain.active, .product-details-tab-container #configoptions.active, .product-details-tab-container #additionalinfo.active { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.product-details-tab-container #domain > .row, .product-details-tab-container #configoptions > .row, .product-details-tab-container #additionalinfo > .row { display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 14px 16px; border: 1px solid var(--border) !important; border-radius: var(--rounding-md); background: var(--neutral-50); min-width: 0; }
.product-details-tab-container #domain > .row > [class*="col-"], .product-details-tab-container #configoptions > .row > [class*="col-"], .product-details-tab-container #additionalinfo > .row > [class*="col-"] { flex: 0 0 auto; max-width: none; width: auto; padding: 0; text-align: left !important; }
.product-details-tab-container .tab-pane > .row strong { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--neutral-500); }
.product-details-tab-container .tab-pane > .row .col-sm-7 { font-size: 15px; font-weight: 600; color: var(--neutral-900); overflow-wrap: anywhere; }
.product-details-tab-container #domain > br { display: none; }
.product-details-tab-container #domain > p, .product-details-tab-container #domain > .module-client-area, .product-details-tab-container #domain > .ssl-info, .product-details-tab-container #domain > .row.ph-wide { grid-column: 1 / -1; }
.product-details-tab-container #domain > p { margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.product-details-tab-container #domain > p .btn { margin: 0; }
.product-details-tab-container #domain .ssl-inactive img { margin-right: 4px; }
.product-details-tab-container .module-client-area { text-align: left; }
.product-details-tab-container .module-client-area .btn { margin: 4px 6px 4px 0; }
/* resource usage dials */
.product-details-tab-container #resourceusage h4 { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--neutral-500); margin-bottom: 10px; }
.product-details-tab-container #resourceusage p { font-size: 14px; font-weight: 600; color: var(--neutral-900); }
/* the "Information" overview card wrapper is gone, so the hook output divs get a little space */
#tabOverview > div:not(.ph-svc-hero):not(.alert):empty { display: none; }
@media (max-width: 991.98px) {
  .ph-svc-hero { flex-direction: column; }
  .ph-svc-facts { flex-basis: auto; }
}
@media (max-width: 575.98px) {
  .ph-svc-hero { padding: 20px 18px; gap: 16px; }
  .ph-svc-hero-main { gap: 12px; }
  .ph-svc-hero-icon { flex-basis: 50px; width: 50px; height: 50px; font-size: 20px; border-radius: 14px; }
  .ph-svc-hero-title { font-size: 20px; }
  .ph-svc-facts { grid-template-columns: 1fr; }
  .product-details-tab-container #domain.active, .product-details-tab-container #configoptions.active, .product-details-tab-container #additionalinfo.active { grid-template-columns: 1fr; }
}

/* 2.13b cPanel overview (owner's override modules/servers/cpanel/overview.tpl) — CSS only, file untouched */
.ph-svc-facts { flex-basis: 380px; }
.ph-svc-module-overview .panel.card, .ph-svc-module-overview .card { border: 1px solid var(--border); border-radius: var(--rounding-lg); box-shadow: var(--ph-shadow-sm); overflow: hidden; margin-bottom: 20px !important; background: #fff; }
.ph-svc-module-overview .card-header { display: flex; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--border-muted); background: linear-gradient(90deg, var(--primary-50) 0%, #fff 70%); }
.ph-svc-module-overview .card-header .card-title { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; color: var(--neutral-900); }
.ph-svc-module-overview .card-header .card-title::before { content: "\f233"; font-family: "Font Awesome 6 Pro", "Font Awesome 6 Free", "Font Awesome 5 Pro", "Font Awesome 5 Free"; font-weight: 900; width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border-radius: 9px; background: var(--primary); color: #fff; font-size: 12px; box-shadow: 0 4px 10px rgba(3, 93, 237, 0.22); }
.ph-svc-module-overview #cPanelUsagePanel .card-title::before { content: "\f200"; }
.ph-svc-module-overview #cPanelQuickShortcutsPanel .card-title::before { content: "\f00a"; }
.ph-svc-module-overview #cPanelQuickEmailPanel .card-title::before { content: "\f0e0"; }
.ph-svc-module-overview #cPanelExtrasPurchasePanel .card-title::before { content: "\f12e"; }
.ph-svc-module-overview #cPanelConfigurableOptionsPanel .card-title::before { content: "\f1b3"; }
.ph-svc-module-overview #cPanelAdditionalInfoPanel .card-title::before { content: "\f05a"; }
.ph-svc-module-overview #cPanelMetricStatsPanel .card-title::before { content: "\f201"; }
.ph-svc-module-overview #cPanelWordPress .card-title::before { content: "\f19a"; font-family: "Font Awesome 6 Brands", "Font Awesome 5 Brands"; font-weight: 400; }
.ph-svc-module-overview .card-body { padding: 18px 20px; }
/* duplicates of the blue service card above: package/domain block and billing overview */
.ph-svc-module-overview .row > .col-md-6 > #cPanelPackagePanel, .ph-svc-module-overview #cPanelBillingOverviewPanel { display: none; }
.ph-svc-module-overview > .row { display: flex; flex-wrap: wrap; margin: 0 -10px; }
.ph-svc-module-overview > .row > .col-md-6 { flex: 1 1 0; max-width: none; min-width: 280px; padding: 0 10px; }
.ph-svc-module-overview > .row > .col-md-6:not(:has(> .card:not(#cPanelPackagePanel))) { display: none; }
/* Hosting Information: label / value rows */
.ph-svc-module-overview #cPanelPackagePanel > br { display: none; }
.ph-svc-module-overview .files-body { padding: 6px 20px 18px; line-height: 1.6; }
.ph-svc-module-overview .files-body > .col-lg-12 { padding: 0; }
.ph-svc-module-overview .files-body > .col-lg-12 > .row { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--border-muted); align-items: center; }
.ph-svc-module-overview .files-body > .col-lg-12 > .row > br { display: none; }
.ph-svc-module-overview .files-body .col-sm-3 { padding-left: 0; }
.ph-svc-module-overview .files-body .col-sm-3 strong { font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--neutral-500); }
.ph-svc-module-overview .files-body .col-sm-9 { padding-right: 0; font-size: 14.5px; font-weight: 600; color: var(--neutral-900); overflow-wrap: anywhere; }
.ph-svc-module-overview .files-body .col-sm-9 em { font-style: normal; font-weight: 500; color: var(--neutral-500); }
.ph-svc-module-overview .files-body hr { margin: 16px 0 6px; border-top-color: var(--border-muted); }
.ph-svc-module-overview .files-body h4 { margin: 8px 0 10px; font-size: 15px; color: var(--neutral-900); }
/* the small action buttons (Whois, Visit Website, Reset Account, Autologin, WordPress Manager, Show/Hide) */
.ph-svc-module-overview .btn.btn-xs { display: inline-flex; align-items: center; gap: 5px; margin: 3px 4px 3px 0 !important; padding: 4px 12px !important; border-radius: 999px !important; font-size: 12px !important; font-weight: 600; line-height: 1.5; vertical-align: middle; }
/* buttons without their own colour get the theme's light-blue pill; coloured ones (green / red / navy) keep their colour */
.ph-svc-module-overview .btn.btn-xs:not([style*="background-color"]) { border: 1px solid var(--primary-200) !important; background: var(--primary-50) !important; color: var(--primary) !important; }
.ph-svc-module-overview .btn.btn-xs:not([style*="background-color"]):hover { background: var(--primary) !important; border-color: var(--primary) !important; color: #fff !important; }
.ph-svc-module-overview .btn.btn-xs[style*="background-color"] { color: #fff !important; border: 1px solid transparent !important; }
.ph-svc-module-overview .btn.btn-xs[style*="background-color"]:hover { filter: brightness(1.12); }
.ph-svc-module-overview #prohosty_geninvbutton .btn { padding: 8px 20px !important; font-size: 13px !important; }
.ph-svc-module-overview #password { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; margin-right: 6px; }
/* renewal-invoice hook output */
.ph-svc-module-overview .files-body .col-sm-12.text-center .btn { border-radius: 999px !important; padding: 8px 18px !important; font-weight: 600; }
/* usage dials */
.ph-svc-module-overview .cpanel-usage-stats strong { font-size: 12px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--neutral-500); }
.ph-svc-module-overview .cpanel-usage-stats .limit-near { margin-top: 12px; font-size: 13px; }
/* quick shortcuts as tiles */
.ph-svc-module-overview .cpanel-feature-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; margin: 0; }
.ph-svc-module-overview .cpanel-feature-row > div { max-width: none; width: auto; padding: 0; flex: none; }
.ph-svc-module-overview .cpanel-feature-row a { display: flex !important; flex-direction: column; align-items: center; justify-content: center; gap: 8px; height: 100%; min-height: 104px; margin: 0 !important; padding: 14px 10px; border: 1px solid var(--border); border-radius: var(--rounding-md); background: #fff; font-size: 13px; font-weight: 600; color: var(--neutral-800); text-align: center; line-height: 1.3; transition: border-color 0.15s, box-shadow 0.15s, color 0.15s; }
.ph-svc-module-overview .cpanel-feature-row a:hover { border-color: var(--primary-200); box-shadow: var(--ph-shadow-md); color: var(--primary); text-decoration: none; }
.ph-svc-module-overview .cpanel-feature-row img { width: 40px; height: 40px; object-fit: contain; margin: 0; }
/* create e-mail account */
.ph-svc-module-overview #frmCreateEmailAccount .form-control { height: 42px; border-radius: 10px; }
.ph-svc-module-overview #frmCreateEmailAccount .input-group .form-control { border-radius: 10px 0 0 10px; }
.ph-svc-module-overview #frmCreateEmailAccount .input-group-text { border-radius: 0 10px 10px 0; background: var(--neutral-50); }
.ph-svc-module-overview #frmCreateEmailAccount .btn { height: 42px; border-radius: 999px !important; font-weight: 600; padding: 0 16px !important; }
/* suspended / pending notice */
.ph-svc-module-overview #cPanelSuspendReasonPanel { border-radius: var(--rounding-lg); }
@media (max-width: 575.98px) {
  .ph-svc-module-overview .files-body .col-sm-3 { padding-bottom: 4px; }
  .ph-svc-module-overview .files-body .col-sm-9 { padding-left: 0; }
  .ph-svc-module-overview .cpanel-feature-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* 2.13c Hosting Information box (cPanel overview override) — facts as tiles, one button style, renewal strip */
.ph-svc-module-overview #cPanelPackagePanel .files-body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 18px 20px 20px; }
.ph-svc-module-overview #cPanelPackagePanel .files-body > hr, .ph-svc-module-overview #cPanelPackagePanel .files-body > br { display: none; }
.ph-svc-module-overview #cPanelPackagePanel .files-body > .col-lg-12 { max-width: none; width: auto; padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--neutral-50); min-width: 0; }
.ph-svc-module-overview #cPanelPackagePanel .files-body > .col-lg-12:nth-child(-n+3) { grid-column: 1 / -1; }
.ph-svc-module-overview #cPanelPackagePanel .files-body > .col-lg-12:has(.col-sm-9:empty) { display: none; }
.ph-svc-module-overview #cPanelPackagePanel .files-body > .col-lg-12 > .row { display: block; margin: 0; padding: 0; border: 0; }
.ph-svc-module-overview #cPanelPackagePanel .files-body .col-sm-3, .ph-svc-module-overview #cPanelPackagePanel .files-body .col-sm-9 { display: block; max-width: none; width: auto; padding: 0; flex: none; }
.ph-svc-module-overview #cPanelPackagePanel .files-body .col-sm-3 strong { display: block; margin-bottom: 4px; }
.ph-svc-module-overview #cPanelPackagePanel .files-body .col-sm-9 { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 15px; line-height: 1.5; }
.ph-svc-module-overview #cPanelPackagePanel .files-body .col-sm-9 > br { flex-basis: 100%; height: 0; }
/* the action buttons: one family — light pill by default, solid blue for logins, red outline for Reset */
.ph-svc-module-overview #cPanelPackagePanel .btn.btn-xs { --chip-bg: #fff; background-image: linear-gradient(var(--chip-bg), var(--chip-bg)) !important; border: 1px solid var(--primary-200) !important; color: var(--primary) !important; margin: 0 !important; padding: 5px 13px !important; font-size: 12.5px !important; filter: none; }
.ph-svc-module-overview #cPanelPackagePanel .btn.btn-xs:hover { --chip-bg: var(--primary-50); filter: none; }
.ph-svc-module-overview #cPanelPackagePanel a.btn.btn-xs[href*="dosinglesignon"] { --chip-bg: var(--primary); border-color: var(--primary) !important; color: #fff !important; }
.ph-svc-module-overview #cPanelPackagePanel a.btn.btn-xs[href*="dosinglesignon"]:hover { --chip-bg: var(--primary-lifted); }
.ph-svc-module-overview #cPanelPackagePanel .btn.btn-xs[onclick*="ResetAccount"] { border-color: #fecaca !important; color: #b91c1c !important; }
.ph-svc-module-overview #cPanelPackagePanel .btn.btn-xs[onclick*="ResetAccount"]:hover { --chip-bg: #dc2626; border-color: #dc2626 !important; color: #fff !important; }
.ph-svc-module-overview #cPanelPackagePanel .btn.btn-xs[href*="whois"]::before { content: "\f002"; font-family: "Font Awesome 6 Pro", "Font Awesome 6 Free", "Font Awesome 5 Pro", "Font Awesome 5 Free"; font-weight: 900; font-size: 11px; }
.ph-svc-module-overview #cPanelPackagePanel a.btn.btn-xs[href^="http://"]::before { content: "\f35d"; font-family: "Font Awesome 6 Pro", "Font Awesome 6 Free", "Font Awesome 5 Pro", "Font Awesome 5 Free"; font-weight: 900; font-size: 11px; }
.ph-svc-module-overview #cPanelPackagePanel .btn.btn-xs[onclick*="ResetAccount"]::before { content: "\f2ea"; font-family: "Font Awesome 6 Pro", "Font Awesome 6 Free", "Font Awesome 5 Pro", "Font Awesome 5 Free"; font-weight: 900; font-size: 11px; }
.ph-svc-module-overview #cPanelPackagePanel a.btn.btn-xs[href*="dosinglesignon"]::before { content: "\f2f6"; font-family: "Font Awesome 6 Pro", "Font Awesome 6 Free", "Font Awesome 5 Pro", "Font Awesome 5 Free"; font-weight: 900; font-size: 11px; }
.ph-svc-module-overview #cPanelPackagePanel a.btn.btn-xs[href*="Softaculous"]::before { content: "\f19a"; font-family: "Font Awesome 6 Brands", "Font Awesome 5 Brands"; font-weight: 400; font-size: 12px; }
.ph-svc-module-overview #cPanelPackagePanel #password { font-weight: 700; }
/* renewal invoice: a tinted strip, title left, button right */
.ph-svc-module-overview #cPanelPackagePanel .files-body > .col-lg-12:has(#prohosty_geninvbutton) { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; background: linear-gradient(90deg, var(--primary-50) 0%, #fff 100%); border-color: var(--primary-200); }
.ph-svc-module-overview #cPanelPackagePanel .files-body > .col-lg-12:has(#prohosty_geninvbutton) > .row { flex: 1 1 220px; }
.ph-svc-module-overview #cPanelPackagePanel .files-body > .col-lg-12:has(#prohosty_geninvbutton) .col-sm-12 { max-width: none; width: auto; padding: 0; text-align: left !important; }
.ph-svc-module-overview #cPanelPackagePanel .files-body > .col-lg-12:has(#prohosty_geninvbutton) h4 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 15px; }
.ph-svc-module-overview #cPanelPackagePanel .files-body > .col-lg-12:has(#prohosty_geninvbutton) h4::before { content: "\f571"; font-family: "Font Awesome 6 Pro", "Font Awesome 6 Free", "Font Awesome 5 Pro", "Font Awesome 5 Free"; font-weight: 900; width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border-radius: 9px; background: var(--primary); color: #fff; font-size: 12px; }
.ph-svc-module-overview #cPanelPackagePanel .files-body > .col-lg-12:has(#prohosty_geninvbutton) > .col-sm-12 { flex: 0 1 auto; text-align: right !important; }
.ph-svc-module-overview #cPanelPackagePanel #prohosty_geninvbutton, .ph-svc-module-overview #cPanelPackagePanel #prohosty_geninv, .ph-svc-module-overview #cPanelPackagePanel #actions_details { padding: 0 !important; }
.ph-svc-module-overview #cPanelPackagePanel #prohosty_geninv { margin-top: 8px; font-size: 13px; }
.ph-svc-module-overview #cPanelPackagePanel #prohosty_geninv strong { display: block; margin-bottom: 6px; color: var(--neutral-700); }
.ph-svc-module-overview #cPanelPackagePanel #prohosty_geninv br { display: none; }
.ph-svc-module-overview #cPanelPackagePanel #prohosty_geninvbutton .btn.btn-xs, .ph-svc-module-overview #cPanelPackagePanel .btn.btn-xs[onclick*="genRenewInv"] { --chip-bg: var(--primary); border-color: var(--primary) !important; color: #fff !important; padding: 9px 20px !important; font-size: 13px !important; box-shadow: 0 6px 16px rgba(3, 93, 237, 0.22); }
.ph-svc-module-overview #cPanelPackagePanel #prohosty_geninvbutton .btn.btn-xs:hover, .ph-svc-module-overview #cPanelPackagePanel .btn.btn-xs[onclick*="genRenewInv"]:hover { --chip-bg: var(--primary-lifted); }
.ph-svc-module-overview #cPanelPackagePanel #prohosty_geninv .btn.btn-xs { margin: 0 0 0 6px !important; padding: 7px 16px !important; }
@media (max-width: 767.98px) {
  .ph-svc-module-overview #cPanelPackagePanel .files-body { grid-template-columns: 1fr; padding: 14px; }
  .ph-svc-module-overview #cPanelPackagePanel .files-body > .col-lg-12:has(#prohosty_geninvbutton) > .col-sm-12 { text-align: left !important; }
  .ph-svc-module-overview #cPanelPackagePanel #prohosty_geninv .btn.btn-xs { margin: 6px 6px 0 0 !important; }
}

/* 2.13d Renewal invoice moved into the blue service card (prohosty_genrenew addon) */
.ph-svc-module-overview #cPanelPackagePanel .files-body > .col-lg-12:has(> .col-sm-12) { display: none !important; }
.ph-svc-btn[hidden] { display: none; }
.ph-svc-renew-box:empty { display: none; }
.ph-svc-renew-box { margin-top: 12px; }
.ph-svc-renew-box #prohosty_geninv { padding: 12px 14px !important; border-radius: var(--rounding-md); background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.24); font-size: 13px; color: #fff; }
.ph-svc-renew-box #prohosty_geninv[style*="none"] { display: none !important; }
.ph-svc-renew-box #prohosty_geninv strong { display: block; margin-bottom: 8px; color: #fff; font-weight: 600; }
.ph-svc-renew-box #prohosty_geninv br { display: none; }
.ph-svc-renew-box #prohosty_geninv .btn { --chip-bg: #1d4ed8; display: inline-flex; align-items: center; margin: 0 6px 0 0 !important; padding: 7px 16px !important; border-radius: 999px !important; background-image: linear-gradient(var(--chip-bg), var(--chip-bg)) !important; border: 1px solid rgba(255, 255, 255, 0.5) !important; color: #fff !important; font-size: 13px !important; font-weight: 600; }
.ph-svc-renew-box #prohosty_geninv .btn[onclick*="genRenewInv"] { --chip-bg: #fff; border-color: #fff !important; color: var(--primary-700) !important; }
.ph-svc-renew-box #prohosty_geninv .btn:hover { --chip-bg: #1e40af; }
.ph-svc-renew-box #prohosty_geninv .btn[onclick*="genRenewInv"]:hover { --chip-bg: var(--primary-50); }
.ph-svc-renew-box #actions_details { padding: 0 !important; color: #fff; font-size: 13px; }
.ph-svc-renew-box #actions_details:not(:empty) { margin-top: 10px; padding: 10px 14px !important; border-radius: var(--rounding-md); background: rgba(255, 255, 255, 0.14); }
.ph-svc-renew-box #actions_details a { color: #fff; text-decoration: underline; }

/* 2.13e Reset Account button + confirm box in the service card; Domain row hidden */
/* stacked layout (< 992px): the fact tiles keep their natural height (2.13b's flex-basis would act as a height) */
@media (max-width: 991.98px) { .ph-svc-facts { flex: 0 0 auto; } }
button.ph-svc-btn { cursor: pointer; font-family: inherit; line-height: inherit; }
.ph-svc-btn[aria-expanded="true"] { background: #dc2626; border-color: #dc2626; color: #fff; }
.ph-svc-btn-solid-danger { background: #dc2626; border-color: #dc2626; color: #fff; }
.ph-svc-btn-solid-danger:hover, .ph-svc-btn-solid-danger:focus { background: #b91c1c; border-color: #b91c1c; color: #fff; }
.ph-svc-reset-box[hidden] { display: none; }
.ph-svc-reset-box { margin-top: 12px; padding: 14px 16px; border-radius: var(--rounding-md); background: rgba(127, 29, 29, 0.35); border: 1px solid rgba(252, 165, 165, 0.55); color: #fff; }
.ph-svc-reset-box form { margin: 0; }
.ph-svc-reset-text { margin: 0 0 12px; font-size: 13px; line-height: 1.55; color: #fee2e2; }
.ph-svc-reset-text i { color: #fca5a5; margin-right: 4px; }
.ph-svc-reset-text strong { color: #fff; }
.ph-svc-reset-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.ph-svc-reset-row label { margin: 0; font-size: 13px; font-weight: 600; color: #fff; }
.ph-svc-reset-row label code { background: rgba(255, 255, 255, 0.18); color: #fff; padding: 1px 6px; border-radius: 4px; }
.ph-svc-reset-row .form-control { width: 140px; height: 36px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.5); background: #fff; font-size: 13px; padding: 0 14px; }
.ph-svc-reset-row button.ph-svc-btn { cursor: pointer; }
/* Domain row of the Hosting Information box hidden — the blue card shows the domain */
.ph-svc-module-overview #cPanelPackagePanel .files-body > .col-lg-12:has(a[href*="whois"]) { display: none; }
@media (max-width: 575.98px) {
  .ph-svc-reset-row .form-control { flex: 1 1 140px; }
}

/* 2.14 Order form "Configure" step (cart.php?a=confproduct) + gradient header on every cart page (14 Nov) */
/* cart page (cart.php?a=view): loading card shown by shiv27_cart_view.php until the WHMCS cart app has drawn;
   the app itself is styled by css/cart-app.css (linked inside its shadow DOM) */
body #order-standard_cart .ph-cart-loading { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 24px 0; padding: 48px 20px; border: 1px solid var(--border); border-radius: var(--rounding-lg); background: var(--primary-50); color: var(--neutral-700); font-weight: 600; }
body #order-standard_cart .ph-cart-loading-spin { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--primary-200); border-top-color: var(--primary); animation: phCartSpin 0.8s linear infinite; }
@keyframes phCartSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { body #order-standard_cart .ph-cart-loading-spin { animation-duration: 2.4s; } }
/* WHMCS's cart page forces a white, unpadded main area (inline <style>); use the light-blue page like every other page */
body section#main-body:has(#nexus-root[data-app="cart-module"]) { background: var(--primary-50) !important; padding: 32px 0 48px !important; }
body #order-standard_cart .ph-cart-head .header-lined { margin: 0 0 20px; padding: 22px 26px; border: 0; border-radius: var(--rounding-lg); background: linear-gradient(135deg, #031974 0%, #0a3fb8 55%, #035ded 100%); box-shadow: var(--ph-shadow-md); position: relative; overflow: hidden; }
body #order-standard_cart .ph-cart-head .header-lined::after { content: ""; position: absolute; right: -60px; top: -110px; width: 240px; height: 240px; border-radius: 50%; background: rgba(255, 255, 255, 0.08); pointer-events: none; }
body #order-standard_cart .ph-cart-head .header-lined h1 { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -0.02em; color: #fff; position: relative; z-index: 1; }
body #order-standard_cart .ph-cart-head .ph-cart-intro { margin: 0 0 16px; font-size: 14px; color: var(--neutral-600); }
body #order-standard_cart .ph-cart-loading { margin-top: 0; background: #fff; }
@media (max-width: 767.98px) { body #order-standard_cart .ph-cart-head .header-lined { padding: 18px; } body #order-standard_cart .ph-cart-head .header-lined h1 { font-size: 24px; } }
/* cart / store sidebar emptied in Theme Options (both cart boxes off): the cart content takes the full width */
body #order-standard_cart .cart-sidebar:not(:has(> .card)) { display: none; }
body #order-standard_cart .cart-sidebar:not(:has(> .card)) ~ .cart-body { width: 100%; max-width: 100%; flex: 0 0 100%; margin-left: 0; float: none; }
body #order-standard_cart .cart-body .sidebar-collapsed:not(:has(.card)) { display: none; }
body #order-standard_cart .cart-body .header-lined { margin: 0 0 20px; padding: 22px 26px; border: 0; border-radius: var(--rounding-lg); background: linear-gradient(135deg, #031974 0%, #0a3fb8 55%, #035ded 100%); box-shadow: var(--ph-shadow-md); position: relative; overflow: hidden; }
body #order-standard_cart .cart-body .header-lined::after { content: ""; position: absolute; right: -60px; top: -110px; width: 240px; height: 240px; border-radius: 50%; background: rgba(255, 255, 255, 0.08); pointer-events: none; }
body #order-standard_cart .cart-body .header-lined h1 { margin: 0; font-size: 26px !important; font-weight: 800; letter-spacing: -0.02em; color: #fff; position: relative; z-index: 1; }
body #order-standard_cart .cart-body .header-lined .breadcrumb, body #order-standard_cart .cart-body .header-lined p { position: relative; z-index: 1; color: rgba(255, 255, 255, 0.8); background: transparent; margin: 4px 0 0; padding: 0; }
body #order-standard_cart .cart-body .header-lined .breadcrumb a { color: #fff; }
/* configure step */
body #order-standard_cart .ph-configure .secondary-cart-body > p:first-child { margin: 0 0 14px; font-size: 14px; color: var(--neutral-600); }
body #order-standard_cart .ph-configure .product-info { padding: 0; border: 1px solid var(--border); border-radius: var(--rounding-lg); box-shadow: var(--ph-shadow-sm); overflow: hidden; background: #fff; }
body #order-standard_cart .ph-configure .product-info .product-title { display: flex; align-items: center; gap: 12px; margin: 0; padding: 16px 20px; border-bottom: 1px solid var(--border-muted); background: linear-gradient(90deg, var(--primary-50) 0%, #fff 70%); font-size: 18px; font-weight: 800; color: var(--neutral-900); }
body #order-standard_cart .ph-configure .product-info .product-title::before { content: "\f233"; font-family: "Font Awesome 6 Pro", "Font Awesome 6 Free", "Font Awesome 5 Pro", "Font Awesome 5 Free"; font-weight: 900; width: 38px; height: 38px; flex: 0 0 38px; display: inline-flex; align-items: center; justify-content: center; border-radius: 11px; background: var(--primary); color: #fff; font-size: 15px; box-shadow: 0 4px 10px rgba(3, 93, 237, 0.22); }
body #order-standard_cart .ph-configure .product-info > p:not(.product-title) { margin: 0; padding: 16px 20px; font-size: 14px; line-height: 1.8; color: var(--neutral-700); }
body #order-standard_cart .ph-feat { list-style: none; margin: 0; padding: 16px 20px 18px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 20px; }
body #order-standard_cart .ph-feat li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; font-weight: 500; color: var(--neutral-800); line-height: 1.45; }
body #order-standard_cart .ph-feat li::before { content: "\f00c"; font-family: "Font Awesome 6 Pro", "Font Awesome 6 Free", "Font Awesome 5 Pro", "Font Awesome 5 Free"; font-weight: 900; flex: 0 0 20px; width: 20px; height: 20px; margin-top: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: #dcfce7; color: #16a34a; font-size: 10px; }
/* billing cycle tiles (the dropdown stays in the page, hidden, and is what the form submits) */
body #order-standard_cart .ph-configure label[for="inputBillingcycle"] { display: block; margin: 22px 0 10px; font-size: 15px; font-weight: 700; color: var(--neutral-900); }
body #order-standard_cart .ph-configure label[for="inputBillingcycle"] + br { display: none; }
body #order-standard_cart .ph-configure .ph-cycle-select { position: absolute !important; width: 1px !important; height: 1px !important; opacity: 0; pointer-events: none; }
body #order-standard_cart .ph-cycles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
/* four cycles (Monthly / Quarterly / Semi-Annually / Annually): two rows of two instead of 3 + 1 */
body #order-standard_cart .ph-cycles:has(> .ph-cycle:nth-child(4)) { grid-template-columns: 1fr 1fr; }
body #order-standard_cart .ph-cycle { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--rounding-md); background: #fff; text-align: left; cursor: pointer; transition: border-color 0.15s, box-shadow 0.15s, background 0.15s; font-family: inherit; }
body #order-standard_cart .ph-cycle:hover { border-color: var(--primary-200); box-shadow: var(--ph-shadow-md); }
body #order-standard_cart .ph-cycle.is-selected { border-color: var(--primary); background: var(--primary-50); box-shadow: 0 0 0 3px rgba(3, 93, 237, 0.12); }
body #order-standard_cart .ph-cycle:focus { outline: 0; }
body #order-standard_cart .ph-cycle:focus-visible { outline: 0; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(3, 93, 237, 0.3); }
body #order-standard_cart .ph-cycle.is-selected::after { content: "\f058"; font-family: "Font Awesome 6 Pro", "Font Awesome 6 Free", "Font Awesome 5 Pro", "Font Awesome 5 Free"; font-weight: 900; position: absolute; top: 12px; right: 12px; color: var(--primary); font-size: 16px; }
body #order-standard_cart .ph-cycle-name { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--neutral-500); }
body #order-standard_cart .ph-cycle.is-selected .ph-cycle-name { color: var(--primary); }
body #order-standard_cart .ph-cycle-price { font-size: 18px; font-weight: 800; letter-spacing: -0.01em; color: var(--neutral-900); }
/* sales note: soft blue info strip */
body #order-standard_cart .ph-configure .alert.info-text-sm { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 22px; padding: 12px 16px; border: 1px solid var(--primary-200); border-radius: var(--rounding-md); background: var(--primary-50); color: var(--neutral-700); font-size: 13.5px; }
body #order-standard_cart .ph-configure .alert.info-text-sm i { color: var(--primary); }
body #order-standard_cart .ph-configure .alert.info-text-sm .alert-link { color: var(--primary); font-weight: 700; }
/* order summary: gradient header, big total, pill button */
body #order-standard_cart .order-summary { border-radius: var(--rounding-lg); box-shadow: var(--ph-shadow-md); }
body #order-standard_cart .order-summary h2 { background: linear-gradient(135deg, #031974 0%, #0a3fb8 55%, #035ded 100%); color: #fff; border-bottom: 0; font-size: 17px !important; display: flex; align-items: center; gap: 10px; }
body #order-standard_cart .order-summary h2::before { content: "\f07a"; font-family: "Font Awesome 6 Pro", "Font Awesome 6 Free", "Font Awesome 5 Pro", "Font Awesome 5 Free"; font-weight: 900; width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border-radius: 9px; background: rgba(255, 255, 255, 0.16); font-size: 13px; }
body #order-standard_cart .order-summary .summary-container { padding: 18px 20px 20px; }
body #order-standard_cart .order-summary .total-due-today { padding-top: 14px; }
body #order-standard_cart .order-summary .total-due-today span:not(.amt) { font-size: 12px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--neutral-500); }
body #order-standard_cart #btnCompleteProductConfig { width: 100%; height: 50px; margin-top: 14px; border-radius: 999px; font-size: 16px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 10px; box-shadow: 0 10px 22px rgba(3, 93, 237, 0.28); }
@media (max-width: 575.98px) {
  body #order-standard_cart .cart-body .header-lined { padding: 18px 18px; }
  body #order-standard_cart .ph-feat { grid-template-columns: 1fr; }
  body #order-standard_cart .ph-cycles { grid-template-columns: 1fr 1fr; }
}

/* 2.15 Domain details — clientareadomaindetails.tpl (15 Nov): same components as the hosting overview ------ */
/* the summary card is the hosting one (.ph-svc-hero, 2.13); only the domain status colours are added */
.ph-svc-status-expired, .ph-svc-status-transferred-away, .ph-svc-status-redemption { background: #ef4444; color: #fff; }
.ph-svc-status-pending-transfer, .ph-svc-status-pending-registration, .ph-svc-status-grace { background: #fbbf24; color: #1f1300; }
.ph-dom .ph-dom-card { margin-bottom: 20px; }
.ph-dom .ph-dom-card > .card-body > .card-title { display: flex; align-items: center; gap: 6px; margin-bottom: 16px; }
.ph-dom .ph-dom-lead { color: var(--neutral-600); font-size: 14px; margin-bottom: 18px; }
/* "what would you like to do today" as tiles */
.ph-dom-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.ph-dom-tile { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--rounding-md); background: #fff; color: var(--neutral-700); transition: border-color 180ms, box-shadow 180ms, transform 180ms; }
.ph-dom-tile:hover, .ph-dom-tile:focus { border-color: var(--primary-200); box-shadow: var(--ph-shadow-md); transform: translateY(-1px); color: var(--neutral-700); text-decoration: none; }
.ph-dom-tile-icon { flex: 0 0 40px; width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 11px; background: var(--primary-50); color: var(--primary); font-size: 15px; transition: background-color 180ms, color 180ms; }
.ph-dom-tile:hover .ph-dom-tile-icon { background: var(--primary); color: #fff; }
.ph-dom-tile-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ph-dom-tile-text strong { font-size: 14px; font-weight: 600; color: var(--neutral-900); line-height: 1.3; }
.ph-dom-tile-text small { font-size: 12.5px; color: var(--neutral-500); line-height: 1.4; }
.ph-dom-tile-go { flex: 0 0 auto; font-size: 11px; color: var(--neutral-300); transition: color 180ms, transform 180ms; }
.ph-dom-tile:hover .ph-dom-tile-go { color: var(--primary); transform: translateX(2px); }
/* label / value tiles (SSL status) */
.ph-dom-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.ph-dom-fact { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border: 1px solid var(--border-muted); border-radius: var(--rounding-md); background: var(--neutral-50); min-width: 0; }
.ph-dom-fact-label { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--neutral-500); }
.ph-dom-fact-value { font-size: 14px; font-weight: 600; color: var(--neutral-900); overflow-wrap: anywhere; }
.ph-dom-fact-value img { vertical-align: -2px; margin-right: 4px; }
/* on / off state rows (auto renew, registrar lock) */
.ph-dom-state { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; border: 1px solid var(--border); border-radius: var(--rounding-md); background: var(--neutral-50); }
.ph-dom-state-info { display: flex; align-items: center; gap: 14px; min-width: 0; }
.ph-dom-state-icon { flex: 0 0 44px; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; font-size: 16px; background: var(--neutral-200); color: var(--neutral-600); }
.ph-dom-state-on .ph-dom-state-icon { background: #dcfce7; color: #166534; }
.ph-dom-state-off .ph-dom-state-icon { background: #fee2e2; color: #991b1b; }
.ph-dom-state-label { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--neutral-500); }
.ph-dom-state-value { display: block; font-size: 17px; font-weight: 700; color: var(--neutral-900); }
.ph-dom-choice { display: grid; gap: 8px; margin-bottom: 18px; }
.ph-dom-radio { display: flex; align-items: center; gap: 10px; margin: 0; padding: 11px 14px; border: 1px solid var(--border); border-radius: var(--rounding-md); background: #fff; font-weight: 500; color: var(--neutral-700); cursor: pointer; transition: border-color 180ms, background-color 180ms; }
.ph-dom-radio:hover { border-color: var(--primary-200); }
.ph-dom-radio input { margin: 0; width: 16px; height: 16px; accent-color: var(--primary); }
.ph-dom-radio:has(input:checked) { border-color: var(--primary); background: var(--primary-50); color: var(--neutral-900); }
/* domain addons as cards */
.ph-addon-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.ph-addon { display: flex; flex-direction: column; padding: 18px; border: 1px solid var(--border); border-radius: var(--rounding-lg); background: #fff; transition: border-color 180ms, box-shadow 180ms; }
.ph-addon:hover { border-color: var(--primary-200); box-shadow: var(--ph-shadow-md); }
.ph-addon.is-active { border-color: #bbf7d0; background: linear-gradient(180deg, #f0fdf4 0%, #fff 55%); }
.ph-addon-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.ph-addon-icon { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; background: var(--primary-50); color: var(--primary); font-size: 17px; }
.ph-addon.is-active .ph-addon-icon { background: #dcfce7; color: #166534; }
.ph-addon-state { padding: 4px 10px; border-radius: 999px; background: var(--neutral-100); color: var(--neutral-600); font-size: 10.5px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
.ph-addon.is-active .ph-addon-state { background: #dcfce7; color: #166534; }
.ph-addon-title { margin: 0 0 6px; font-size: 16px; font-weight: 700; color: var(--neutral-900); }
.ph-addon-text { flex: 1 1 auto; margin: 0 0 16px; font-size: 13.5px; line-height: 1.55; color: var(--neutral-600); }
.ph-addon-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; padding-top: 14px; border-top: 1px solid var(--border-muted); }
.ph-addon-price { margin-right: auto; font-size: 13px; color: var(--neutral-600); }
.ph-addon-price strong { font-size: 15px; font-weight: 700; color: var(--neutral-900); }
.ph-addon-price .fa-check-circle { color: #16a34a; margin-right: 4px; }
@media (max-width: 575.98px) {
  .ph-dom-state { flex-direction: column; align-items: stretch; }
  .ph-dom-state .btn { width: 100%; }
  .ph-dom-tiles { grid-template-columns: 1fr; }
}

/* 2.16 Support ticket list — supportticketslist.tpl (15 Nov) ------------------------------------------ */
#tableTicketsList tbody tr { cursor: pointer; }
#tableTicketsList td { vertical-align: middle; }
#tableTicketsList .ph-ticket-main { min-width: 190px; }
#tableTicketsList .ph-ticket-link { display: block; border: 0 !important; padding: 0 !important; color: inherit; }
#tableTicketsList .ticket-subject { display: block; font-size: 14.5px; font-weight: 500; line-height: 1.4; color: var(--neutral-900); overflow-wrap: anywhere; }
#tableTicketsList .ticket-subject.unread { font-weight: 700; }
#tableTicketsList .ticket-number { display: block; margin: 3px 0 0; font-size: 12px; font-weight: 500; color: var(--neutral-500); font-variant-numeric: tabular-nums; }
#tableTicketsList tr:hover .ticket-subject { color: var(--primary); }
#tableTicketsList .ph-ticket-new { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: var(--primary-50); color: var(--primary); font-size: 10.5px; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; }
#tableTicketsList tr.ph-ticket-unread td:first-child { box-shadow: inset 3px 0 0 var(--primary); }
#tableTicketsList .ph-ticket-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--neutral-600); }
#tableTicketsList .ph-ticket-chip i { color: var(--neutral-400); font-size: 12px; }
/* status: a quiet pill with a coloured dot in front (colours come from the status classes in 2.4) */
#tableTicketsList .label.status { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
#tableTicketsList .label.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.85; }
#tableTicketsList .label.status.status-custom { color: #fff; }
#tableTicketsList .ph-ticket-priority { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; color: var(--neutral-600); white-space: nowrap; }
#tableTicketsList .ph-ticket-priority::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--neutral-300); }
#tableTicketsList .ph-ticket-priority-high { color: #b91c1c; }
#tableTicketsList .ph-ticket-priority-high::before { background: #ef4444; }
#tableTicketsList .ph-ticket-priority-medium::before { background: #f59e0b; }
#tableTicketsList .ph-ticket-priority-low::before { background: #94a3b8; }
#tableTicketsList .ph-ticket-date { font-size: 13px; color: var(--neutral-600); min-width: 150px; line-height: 1.45; }
#tableTicketsList th, #tableTicketsList td { text-align: left !important; }
body .dataTables_wrapper table#tableTicketsList { min-width: 0; }
#tableTicketsList thead th:last-child { text-align: left; }
/* phones: every ticket becomes a small card; the column names are printed in front of each value */
@media (max-width: 767.98px) {
  body .dataTables_wrapper table#tableTicketsList { min-width: 0 !important; border: 0; box-shadow: none; background: transparent; display: block; }
  #tableTicketsList thead { display: none; }
  #tableTicketsList tbody { display: grid; gap: 12px; }
  #tableTicketsList tbody tr { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--rounding-lg); background: #fff; box-shadow: var(--ph-shadow-sm); }
  #tableTicketsList tbody tr:hover > td { background: transparent; }
  body .dataTables_wrapper table#tableTicketsList tbody td { display: block; padding: 0; border: 0; border-radius: 0 !important; white-space: normal; text-align: left !important; }
  body .dataTables_wrapper table#tableTicketsList tbody td > * { margin-left: 0; margin-right: auto; }
  #tableTicketsList tbody td.ph-ticket-main { grid-column: 1 / -1; padding-bottom: 10px; border-bottom: 1px solid var(--border-muted); }
  #tableTicketsList tbody td.ph-ticket-date { white-space: normal; min-width: 0; }
  #tableTicketsList tbody td:not(.ph-ticket-main)::before { content: attr(data-label); display: block; margin-bottom: 4px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--neutral-400); }
  #tableTicketsList tr.ph-ticket-unread { border-left: 3px solid var(--primary); }
  #tableTicketsList tr.ph-ticket-unread td:first-child { box-shadow: none; }
  #tableTicketsList td.dataTables_empty { grid-column: 1 / -1; text-align: center; }
  body .dataTables_wrapper .dataTables_paginate { display: flex; justify-content: center; }
}

/* 2.17 Overall refinement (15 Nov): one quiet, consistent look for buttons, cards, tables, forms, dropdowns,
   alerts, modals and empty states. Nothing here adds colour; it evens out sizes, borders, spacing and motion. */
/* buttons: one height per size, same radius and weight, soft hover, clear focus, 1px press */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 8px 18px; font-size: 14px; font-weight: 600; line-height: 1.25; letter-spacing: 0.005em; vertical-align: middle; transition: background-color 180ms, border-color 180ms, color 180ms, box-shadow 180ms, transform 120ms; }
.btn-sm, .btn-group-sm > .btn { min-height: 34px; padding: 5px 14px; font-size: 13px; }
.btn-xs { min-height: 28px; padding: 3px 11px; font-size: 12px; }
.btn-lg, .btn-group-lg > .btn { min-height: 46px; padding: 10px 24px; font-size: 15px; }
.btn-block { display: flex; width: 100%; }
.btn-link { min-height: 0; padding: 0; font-weight: 600; }
.btn:not(:disabled):not(.disabled):active { transform: translateY(1px); }
.btn:focus, .btn.focus, .btn:focus-visible { outline: 0; box-shadow: var(--ph-ring) !important; }
.btn:disabled, .btn.disabled { opacity: 0.55; box-shadow: none !important; cursor: not-allowed; }
.btn > i, .btn > .fas, .btn > .far, .btn > .fab { font-size: 0.95em; }
.primary-content .btn-primary, .sidebar .btn-primary, .modal .btn-primary, .primary-content .btn-success, .sidebar .btn-success { box-shadow: 0 1px 2px rgba(3, 25, 116, 0.18); }
.primary-content .btn-primary:hover, .sidebar .btn-primary:hover, .modal .btn-primary:hover, .primary-content .btn-success:hover, .sidebar .btn-success:hover { box-shadow: 0 6px 14px rgba(3, 93, 237, 0.22); }
.btn-outline-danger { background: #fff; border-color: #fecaca; color: #b91c1c; }
.btn-outline-danger:hover, .btn-outline-danger:focus { background: #fef2f2; border-color: #f87171; color: #991b1b; }
.btn-outline-primary { background: #fff; border-color: var(--primary-200); color: var(--primary); }
.btn-outline-primary:hover, .btn-outline-primary:focus { background: var(--primary-50); border-color: var(--primary); color: var(--primary-lifted); }
.btn-default, .btn-light, .btn-secondary { background: #fff; border: 1px solid var(--border); color: var(--neutral-700); }
.btn-default:hover, .btn-light:hover, .btn-secondary:hover { background: var(--neutral-50); border-color: var(--border-lifted); color: var(--neutral-900); }
.btn-info { background: var(--primary-50); border-color: var(--primary-200); color: var(--primary-lifted); }
.btn-info:hover, .btn-info:focus { background: var(--primary-100); border-color: var(--primary-300); color: var(--primary-accented); }
.btn-warning { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.btn-warning:hover, .btn-warning:focus { background: #fef3c7; border-color: #fcd34d; color: #78350f; }
/* icon-only toolbar and input-group buttons keep their own compact size */
header.header .toolbar .btn, .input-group .btn, .btn-group > .btn, .btn.btn-reveal-pw, .card-minimise, .close { min-height: 0; }
.input-group > .input-group-append > .btn, .input-group > .input-group-prepend > .btn { min-height: 44px; }

/* cards and boxes: hairline border, soft shadow, even padding and spacing */
.primary-content .card, .sidebar .card { border: 1px solid var(--border); border-radius: var(--rounding-lg); box-shadow: var(--ph-shadow-sm); background: #fff; }
.primary-content .card + .card, .primary-content .card + .alert, .primary-content .alert + .card { margin-top: 20px; }
.primary-content .card .card-body { padding: 22px 24px; }
.primary-content .card > .card-header { padding: 14px 24px; }
.primary-content .card > .card-footer { padding: 14px 24px; }
.sidebar .card { margin-bottom: 20px; overflow: hidden; }
.sidebar .list-group-item { border-color: var(--border-muted); font-size: 14px; color: var(--neutral-700); transition: background-color 150ms, color 150ms; }
.sidebar .list-group-item:hover { background: var(--neutral-50); color: var(--neutral-900); }
.primary-content hr { border-top-color: var(--border-muted); margin: 20px 0; }
@media (max-width: 575.98px) { .primary-content .card .card-body { padding: 18px 16px; } .primary-content .card > .card-header, .primary-content .card > .card-footer { padding: 12px 16px; } }

/* tables (the plain ones outside the list pages): quiet header, hairlines, neutral hover */
.primary-content .table:not(.table-list) { margin-bottom: 0; font-size: 14px; color: var(--neutral-700); }
.primary-content .table:not(.table-list) thead th { padding: 11px 14px; border-top: 0; border-bottom: 1px solid var(--border); background: var(--neutral-50); font-size: 12px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--neutral-500); white-space: nowrap; }
.primary-content .table:not(.table-list) td, .primary-content .table:not(.table-list) tbody th { padding: 12px 14px; border-top: 1px solid var(--border-muted); vertical-align: middle; }
.primary-content .table:not(.table-list) tbody tr:first-child td, .primary-content .table:not(.table-list) tbody tr:first-child th { border-top: 0; }
.primary-content .table-hover:not(.table-list) tbody tr:hover, .primary-content .table-striped:not(.table-list) tbody tr:nth-of-type(odd) { background: var(--neutral-50); }
.primary-content .table-responsive { border: 1px solid var(--border); border-radius: var(--rounding-md); }
.table-list > tbody > tr:hover > td { background-color: var(--neutral-50); }
body .dataTables_wrapper table.table-list thead th { background: var(--neutral-50); color: var(--neutral-500); }
body .dataTables_wrapper table.table-list thead th.sorting_asc, body .dataTables_wrapper table.table-list thead th.sorting_desc { background: var(--primary-50); color: var(--primary-lifted); }
.pagination .page-link { min-width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; margin: 0 2px; border: 1px solid var(--border); color: var(--neutral-700); font-size: 13px; font-weight: 600; transition: background-color 150ms, border-color 150ms, color 150ms; }
.pagination .page-link:hover { background: var(--primary-50); border-color: var(--primary-200); color: var(--primary); }
.pagination .page-item.active .page-link { background: var(--primary); border-color: var(--primary); color: #fff; }
.pagination .page-item.disabled .page-link { background: var(--neutral-50); color: var(--neutral-400); }

/* forms: same height, radius, border and focus ring for every control */
.form-control, .custom-select, select.form-control { min-height: 44px; padding: 9px 14px; font-size: 14px; border: 1px solid var(--border); border-radius: var(--rounding-md); color: var(--neutral-900); background-color: #fff; transition: border-color 180ms, box-shadow 180ms; }
.form-control:hover, .custom-select:hover { border-color: var(--border-lifted); }
.form-control:focus, .custom-select:focus { border-color: var(--primary); box-shadow: var(--ph-ring); outline: 0; }
.form-control:disabled, .form-control[readonly], .custom-select:disabled { background-color: var(--neutral-50); color: var(--neutral-500); }
.form-control-sm, .custom-select-sm { min-height: 36px; padding: 5px 12px; font-size: 13px; }
.form-text, small.form-text { margin-top: 6px; font-size: 12.5px; color: var(--neutral-500); }
.form-group { margin-bottom: 18px; }
.input-group-text { border-color: var(--border); background: var(--neutral-50); color: var(--neutral-500); font-size: 14px; }
.form-check-input, input[type="checkbox"], input[type="radio"] { accent-color: var(--primary); }
.custom-control-input:checked ~ .custom-control-label::before { background-color: var(--primary); border-color: var(--primary); }
.custom-control-input:focus ~ .custom-control-label::before { box-shadow: var(--ph-ring); }
.is-invalid.form-control, .has-error .form-control { border-color: #f87171; }
.invalid-feedback, .has-error .help-block { font-size: 12.5px; color: #b91c1c; }

/* dropdown menus in the page content */
.primary-content .dropdown-menu, .sidebar .dropdown-menu { padding: 6px; border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 12px 32px rgba(3, 25, 116, 0.12); font-size: 14px; }
.primary-content .dropdown-menu .dropdown-item, .primary-content .dropdown-menu > li > a { padding: 8px 12px; border-radius: var(--rounding-sm); color: var(--neutral-700); transition: background-color 150ms, color 150ms; }
.primary-content .dropdown-menu .dropdown-item:hover, .primary-content .dropdown-menu .dropdown-item:focus, .primary-content .dropdown-menu > li > a:hover { background: var(--neutral-50); color: var(--neutral-900); }
.primary-content .dropdown-menu .dropdown-item.active, .primary-content .dropdown-menu .dropdown-item:active { background: var(--primary-50); color: var(--primary-lifted); }
.dropdown-divider { border-top-color: var(--border-muted); margin: 6px 0; }

/* alerts: tinted, hairline border, one accent edge, comfortable padding */
.alert { padding: 13px 16px; font-size: 14px; line-height: 1.55; }
.alert .btn { flex: 0 0 auto; }
.alert a:not(.btn) { font-weight: 600; text-decoration: underline; color: inherit; }
.alert > :last-child { margin-bottom: 0; }

/* modals */
.modal-content { border: 0; border-radius: var(--rounding-lg); box-shadow: 0 24px 60px rgba(3, 25, 116, 0.22); overflow: hidden; }
.modal-header { padding: 16px 22px; border-bottom: 1px solid var(--border-muted); background: #fff; align-items: center; }
.modal-title { font-size: 17px; font-weight: 700; color: var(--neutral-900); }
.modal-body { padding: 20px 22px; font-size: 14px; color: var(--neutral-700); }
.modal-footer { padding: 14px 22px; border-top: 1px solid var(--border-muted); background: var(--neutral-50); gap: 8px; }
.modal-footer > * { margin: 0; }
.modal-header .close { width: 32px; height: 32px; margin: 0; padding: 0; border-radius: 50%; opacity: 1; color: var(--neutral-500); text-shadow: none; transition: background-color 150ms, color 150ms; }
.modal-header .close:hover { background: var(--neutral-100); color: var(--neutral-900); }
.modal-backdrop.show { opacity: 0.45; background: #0f172a; }
.popover { border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 12px 32px rgba(3, 25, 116, 0.14); font-family: var(--ph-font); }
.popover .client-alerts li a { display: flex; gap: 10px; padding: 10px 12px; border-radius: var(--rounding-sm); color: var(--neutral-700); }
.popover .client-alerts li a:hover { background: var(--neutral-50); text-decoration: none; }
.tooltip-inner { border-radius: 8px; padding: 6px 10px; font-size: 12px; background: #0f172a; }

/* empty states: icon in a soft circle, short muted line */
.ph-empty, body .dataTables_wrapper table.table-list td.dataTables_empty { text-align: center; color: var(--neutral-500); font-size: 14px; }
.ph-empty { padding: 28px 16px 8px; }
.ph-empty > i { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; margin-bottom: 12px; border-radius: 50%; background: var(--neutral-100); color: var(--neutral-400); font-size: 20px; }
.ph-empty p { margin: 0; }
body .dataTables_wrapper table.table-list td.dataTables_empty { padding: 40px 16px; }
body .dataTables_wrapper table.table-list td.dataTables_empty::before { content: "\f49e"; font-family: "Font Awesome 6 Pro", "Font Awesome 6 Free", "Font Awesome 5 Pro", "Font Awesome 5 Free"; font-weight: 900; display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 50%; background: var(--neutral-100); color: var(--neutral-400); font-size: 20px; }

/* links and focus: visible keyboard focus everywhere, no jumpy underlines */
a { transition: color 150ms; }
a:focus-visible, button:focus-visible, .list-group-item:focus-visible { outline: 0; box-shadow: var(--ph-ring); border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; } }
