/* =============================================================================
   pot-pages.css — THEME-WIDE PAGE LAYER (2026-10-05, r85)
   Built from an audit of all 88 nexus templates vs every selector POT's CSS
   styles, plus a sweep of the stock stylesheets for anything still painting
   BLUE (76 component families). Covers what was still stock:
     0  Bootstrap's own colour variables  →  POT palette (catch-all)
     1  BLUE PURGE — switches, iCheck, custom inputs, pills, outline/info variants…
     2  Support — ticket list, ticket CONVERSATION, reply editor, attachments
     3  Open a ticket — department picker, KB suggestions
     4  Announcements · 5 Downloads · 6 Mass pay / upgrade totals
     7  Affiliates · 8 Service details extras · 9 Account & security forms
     10 Domain pricing · 11 Promo banners, 2FA, misc
   CSS only — no template changes — so WHMCS updates can't revert it.
   Loaded after pot-portal.css + pot-lists.css. Orange/amber/gold accents only;
   green = success, crimson = danger, grey = inactive.
   ============================================================================= */

/* ---- 0 · Bootstrap variables (anything still reading var(--primary) etc.) ---- */
:root {
  --blue: #ff8a00; --indigo: #f0aa30; --purple: #d68f12; --cyan: #ffb43d; --teal: #23c483;
  --primary: #ff8a00; --info: #f0aa30; --success: #23c483; --warning: #ffcf6b; --danger: #e6485f;
  --secondary: #6f6688;
}
::selection { background: rgba(255,138,0,.35); color: #fff; }
:focus-visible { outline-color: #ffb43d; }

/* ============================ 1 · BLUE PURGE ============================== */
/* bootstrap-switch (toggle switches on Account details / Security / Register) */
.bootstrap-switch {
  border: 1px solid rgba(255,168,61,.32) !important; border-radius: 999px !important;
  background: rgba(7,3,16,.6) !important; box-shadow: none !important; overflow: hidden;
}
.bootstrap-switch.bootstrap-switch-focused { box-shadow: 0 0 0 3px rgba(255,138,0,.18) !important; border-color: #ff8a00 !important; }
.bootstrap-switch .bootstrap-switch-handle-on,
.bootstrap-switch .bootstrap-switch-handle-off,
.bootstrap-switch .bootstrap-switch-label {
  font: 600 11px/1 'JetBrains Mono', ui-monospace, monospace !important; letter-spacing: .1em; text-transform: uppercase;
}
.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-primary,
.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-info,
.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-success,
.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-primary,
.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-info,
.bootstrap-switch .bootstrap-switch-handle-on {
  background: var(--pot-grad, linear-gradient(120deg,#d68f12,#f0aa30,#ffce6b)) !important; color: #fff !important;
  text-shadow: 0 1px 2px rgba(74,42,0,.55);
}
.bootstrap-switch .bootstrap-switch-handle-off,
.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-default { background: rgba(255,255,255,.06) !important; color: var(--pot-faint, #827798) !important; }
.bootstrap-switch .bootstrap-switch-label { background: #fbf6ff !important; color: transparent !important; border-radius: 999px; }

/* iCheck — the stock "square-blue" skin is a BLUE sprite image; draw our own box */
.icheckbox_square-blue, .iradio_square-blue {
  position: relative; display: inline-block; vertical-align: middle;
  width: 20px !important; height: 20px !important; margin: 0 6px 0 0;
  background: rgba(7,3,16,.6) !important; background-image: none !important;
  border: 1.5px solid rgba(255,168,61,.45); border-radius: 6px; cursor: pointer;
  transition: border-color .16s, background .16s, box-shadow .16s;
}
html[dir="rtl"] .icheckbox_square-blue, html[dir="rtl"] .iradio_square-blue { margin: 0 0 0 6px; }
.iradio_square-blue { border-radius: 50%; }
.icheckbox_square-blue.hover, .iradio_square-blue.hover { border-color: #ffb43d; }
.icheckbox_square-blue.focus, .iradio_square-blue.focus { box-shadow: 0 0 0 3px rgba(255,138,0,.2); }
.icheckbox_square-blue.checked { background: var(--pot-grad, linear-gradient(120deg,#d68f12,#f0aa30,#ffce6b)) !important; border-color: transparent; }
.icheckbox_square-blue.checked::after {
  content: ""; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px;
  border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg);
  filter: drop-shadow(0 1px 1px rgba(74,42,0,.5));
}
.iradio_square-blue.checked { border-color: #ff8a00; }
.iradio_square-blue.checked::after {
  content: ""; position: absolute; inset: 4px; border-radius: 50%;
  background: var(--pot-grad, linear-gradient(120deg,#d68f12,#f0aa30,#ffce6b)); box-shadow: 0 0 8px rgba(255,138,0,.6);
}
.icheckbox_square-blue.disabled, .iradio_square-blue.disabled { opacity: .45; cursor: not-allowed; }

/* Bootstrap custom controls (checkbox / radio / switch / range / file) */
.custom-control-input:checked ~ .custom-control-label::before {
  background: var(--pot-grad, linear-gradient(120deg,#d68f12,#f0aa30,#ffce6b)) !important; border-color: transparent !important;
}
.custom-control-input:focus ~ .custom-control-label::before { box-shadow: 0 0 0 3px rgba(255,138,0,.2) !important; border-color: #ff8a00 !important; }
.custom-control-input:not(:checked) ~ .custom-control-label::before { background-color: rgba(7,3,16,.6); border-color: rgba(255,168,61,.45); }
.custom-control-input:not(:disabled):active ~ .custom-control-label::before { background-color: rgba(255,138,0,.35) !important; border-color: #ff8a00 !important; }
.custom-range::-webkit-slider-thumb { background: #ff8a00 !important; }
.custom-range::-moz-range-thumb { background: #ff8a00 !important; }
.custom-range::-webkit-slider-thumb:active { background: #ffcf6b !important; }
.custom-range:focus::-webkit-slider-thumb { box-shadow: 0 0 0 3px rgba(255,138,0,.25) !important; }
.custom-file-label {
  background: rgba(7,3,16,.55) !important; border: 1px dashed rgba(255,168,61,.40) !important;
  color: var(--pot-dim, #b9aed3) !important; border-radius: 12px !important;
}
.custom-file-label::after {
  background: var(--pot-grad, linear-gradient(120deg,#d68f12,#f0aa30,#ffce6b)) !important; color: #fff !important;
  border: 0 !important; border-radius: 0 11px 11px 0 !important; text-shadow: 0 1px 2px rgba(74,42,0,.5); font-weight: 600;
}
html[dir="rtl"] .custom-file-label::after { border-radius: 11px 0 0 11px !important; }
.custom-file-input:focus ~ .custom-file-label { border-color: #ff8a00 !important; box-shadow: 0 0 0 3px rgba(255,138,0,.18) !important; }

/* pills, outline buttons, colour utilities that default to Bootstrap blue/cyan */
.nav-pills .nav-link { color: var(--pot-dim, #b9aed3); border-radius: 999px; }
.nav-pills .nav-link.active, .nav-pills .show > .nav-link { background: var(--pot-grad, linear-gradient(120deg,#d68f12,#f0aa30,#ffce6b)) !important; color: #fff !important; text-shadow: 0 1px 2px rgba(74,42,0,.5); }
.btn-outline-primary, .btn-outline-info {
  color: #ffb43d !important; border-color: rgba(255,168,61,.55) !important; background: transparent !important;
}
.btn-outline-primary:hover, .btn-outline-info:hover, .btn-outline-primary:focus, .btn-outline-info:focus {
  background: rgba(255,138,0,.14) !important; color: #fff !important; box-shadow: 0 0 0 3px rgba(255,138,0,.15) !important;
}
.btn-info { background: var(--pot-grad, linear-gradient(120deg,#d68f12,#f0aa30,#ffce6b)) !important; border: 0 !important; color: #fff !important; text-shadow: 0 1px 2px rgba(74,42,0,.55); }
.text-primary, .text-info { color: #ffb43d !important; }
.bg-primary, .bg-info { background: linear-gradient(135deg, rgba(255,138,0,.30), rgba(255,138,0,.12)) !important; color: #fff !important; }
.border-primary, .border-info { border-color: rgba(255,168,61,.55) !important; }
.alert-primary { background: rgba(255,138,0,.10) !important; border-color: rgba(255,168,61,.40) !important; color: #ffe7c2 !important; }
.list-group-item-primary, .list-group-item-info { background: rgba(255,138,0,.08) !important; color: #ffe7c2 !important; }
.table-primary, .table-primary > td, .table-primary > th,
.table-info, .table-info > td, .table-info > th { background: rgba(255,138,0,.08) !important; color: var(--pot-text, #fbf6ff) !important; }
.table-hover .table-primary:hover, .table-hover .table-info:hover { background: rgba(255,138,0,.14) !important; }
.progress { background: rgba(255,255,255,.06) !important; border-radius: 999px !important; overflow: hidden; }
.progress-bar { background: var(--pot-grad, linear-gradient(120deg,#d68f12,#f0aa30,#ffce6b)) !important; }
.progress-bar.bg-success { background: linear-gradient(90deg, #1fa873, #23c483) !important; }
.progress-bar.bg-danger { background: linear-gradient(90deg, #b8233c, #e6485f) !important; }
.progress-bar.bg-warning { background: linear-gradient(90deg, #d68f12, #ffcf6b) !important; }
.dropdown-item.active, .dropdown-item:active { background: rgba(255,138,0,.16) !important; color: #fff !important; }
div.dataTables_wrapper div.dataTables_processing { background: rgba(13,7,32,.95) !important; color: #ffcf6b !important; border: 1px solid rgba(255,168,61,.3) !important; border-radius: 12px; }
/* social share buttons → neutral glass (brand blues clash with the palette) */
.btn-facebook, .btn-twitter, .twitter-share-button {
  background: rgba(255,255,255,.06) !important; border: 1px solid rgba(255,255,255,.14) !important; color: var(--pot-text, #fbf6ff) !important;
}
.btn-facebook:hover, .btn-twitter:hover { border-color: rgba(255,168,61,.5) !important; color: #fff !important; }
/* status classes WHMCS emits WITHOUT a hyphen (pot-lists.css covers the hyphenated ones) */
.label.status.status-onhold, .label.status.status-inprogress, .label.status.status-customerreply,
.label.status.status-pendingtransfer, .label.status.status-pendingregistration,
.label.status.status-paymentpending { --s: 255,180,61; }
.label.status.status-transferredaway { --s: 170,160,196; }
/* plain Bootstrap 3-style labels still used by some pages (downloads, domains) */
.label:not(.status) { display: inline-block; padding: 4px 9px; border-radius: 999px; font: 600 10.5px/1.2 'JetBrains Mono', ui-monospace, monospace; letter-spacing: .08em; text-transform: uppercase; }
.label-danger:not(.status)  { background: rgba(230,72,96,.14) !important; color: #ff8a98 !important; border: 1px solid rgba(230,72,96,.35); }
.label-success:not(.status) { background: rgba(35,196,131,.14) !important; color: #6ff0b7 !important; border: 1px solid rgba(35,196,131,.35); }
.label-warning:not(.status) { background: rgba(255,180,61,.14) !important; color: #ffcf6b !important; border: 1px solid rgba(255,180,61,.35); }
.label-default:not(.status) { background: rgba(255,255,255,.06) !important; color: var(--pot-dim, #b9aed3) !important; border: 1px solid rgba(255,255,255,.12); }
html[dir="rtl"] .label:not(.status) { font-family: 'Tajawal', sans-serif; letter-spacing: 0; font-size: 12px; }

/* ===================== 2 · SUPPORT: ticket list + conversation =================== */
/* list */
.ticket-number { font: 600 12px/1.2 'JetBrains Mono', ui-monospace, monospace; color: var(--pot-faint, #827798); margin-inline-end: 8px; }
.ticket-subject { font: 600 15px/1.35 'Space Grotesk', 'Inter', sans-serif; color: var(--pot-text, #fbf6ff); }
.ticket-subject.unread { color: #fff; }
.ticket-subject.unread::before {
  content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-inline-end: 8px; vertical-align: 2px;
  background: #ff8a00; box-shadow: 0 0 10px #ff8a00; animation: potPagesPulse 2s ease-in-out infinite;
}
#main-body table.table-list tbody tr:has(.ticket-subject.unread) td { background: rgba(255,138,0,.06) !important; }
#main-body table.table-list tbody td:has(.ticket-subject) { text-align: start !important; } /* long subjects read better left-aligned */

/* conversation */
.card.view-ticket { overflow: visible; }
.view-ticket > .card-body:first-child { border-bottom: 1px solid rgba(255,255,255,.08); }
.view-ticket .card-title { font: 700 20px/1.3 'Space Grotesk', 'Inter', sans-serif !important; letter-spacing: -.2px; text-transform: none !important; color: var(--pot-text, #fbf6ff) !important; }
.view-ticket .card-title::before { content: none !important; }
.view-ticket .ticket-actions .btn { border-radius: 10px; }
.view-ticket > .card-body + .card-body { padding-top: 6px !important; }
.ticket-reply {
  position: relative; margin: 0 0 4px; padding-inline-start: 56px;
}
.ticket-reply::before { /* avatar disc: client */
  content: "\f007"; font-family: "Font Awesome 6 Pro", "Font Awesome 6 Free", "Font Awesome 5 Free"; font-weight: 900;
  position: absolute; inset-inline-start: 0; top: 2px; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; font-size: 16px;
  color: var(--pot-dim, #b9aed3); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
}
.ticket-reply.staff::before { /* avatar disc: our team */
  content: "\f590"; color: #fff;
  background: var(--pot-grad, linear-gradient(120deg,#d68f12,#f0aa30,#ffce6b)); border-color: transparent;
  box-shadow: 0 6px 18px -6px rgba(255,138,0,.7); text-shadow: 0 1px 2px rgba(74,42,0,.5);
}
.view-ticket .posted-by {
  display: flex; align-items: center; gap: 8px 10px; flex-wrap: wrap;
  margin: 0 0 8px !important; padding: 0 !important; background: none !important; border: 0 !important;
  font-size: 13px; color: var(--pot-faint, #827798);
}
.view-ticket .posted-by .posted-by-name { font: 700 14.5px/1.2 'Space Grotesk', 'Inter', sans-serif; color: var(--pot-text, #fbf6ff); }
.view-ticket .posted-by .posted-on { font: 500 12px/1.2 'JetBrains Mono', ui-monospace, monospace; color: var(--pot-faint, #827798); }
.view-ticket .requestor-badge {
  float: none !important; margin-inline-start: auto; padding: 4px 10px !important; border-radius: 999px !important;
  font: 600 10.5px/1 'JetBrains Mono', ui-monospace, monospace !important; letter-spacing: .1em; text-transform: uppercase;
  background: rgba(255,255,255,.06) !important; color: var(--pot-dim, #b9aed3) !important; border: 1px solid rgba(255,255,255,.12);
}
.view-ticket .requestor-badge.requestor-type-operator,
.view-ticket .requestor-badge.requestor-type-staff,
.ticket-reply.staff .requestor-badge { background: rgba(255,138,0,.14) !important; color: #ffcf6b !important; border-color: rgba(255,168,61,.40); }
html[dir="rtl"] .view-ticket .requestor-badge { font-family: 'Tajawal', sans-serif !important; letter-spacing: 0; font-size: 12px !important; }
.ticket-reply .message {
  position: relative; padding: 16px 18px !important; margin: 0 !important;
  background: rgba(255,255,255,.045) !important; border: 1px solid rgba(255,255,255,.10) !important;
  border-radius: 4px 16px 16px 16px !important; color: var(--pot-text, #fbf6ff) !important;
  font-size: 14.5px; line-height: 1.7; overflow-wrap: anywhere;
}
html[dir="rtl"] .ticket-reply .message { border-radius: 16px 4px 16px 16px !important; }
.ticket-reply.staff .message {
  background: linear-gradient(135deg, rgba(255,138,0,.12), rgba(255,138,0,.04)) !important;
  border-color: rgba(255,168,61,.32) !important;
}
/* markdown inside a reply (and the KB-style content blocks WHMCS reuses) */
.markdown-content h1, .markdown-content h2, .markdown-content h3, .markdown-content h4 { font-family: 'Space Grotesk', 'Inter', sans-serif; color: var(--pot-text, #fbf6ff); margin: 14px 0 8px; }
.markdown-content h1 { font-size: 20px; } .markdown-content h2 { font-size: 18px; } .markdown-content h3, .markdown-content h4 { font-size: 16px; }
.markdown-content p { margin: 0 0 10px; }
.markdown-content p:last-child { margin-bottom: 0; }
.markdown-content a { color: #ffb43d; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,180,61,.45); }
.markdown-content code { background: rgba(7,3,16,.7); color: #ffcf6b; padding: 2px 6px; border-radius: 6px; font-size: .9em; border: 1px solid rgba(255,168,61,.18); }
.markdown-content pre { background: rgba(7,3,16,.75) !important; border: 1px solid rgba(255,168,61,.18); border-radius: 12px; padding: 14px; overflow: auto; }
.markdown-content pre code { background: none; border: 0; padding: 0; color: #fbf6ff; }
.markdown-content blockquote { margin: 10px 0; padding: 8px 14px; border-inline-start: 3px solid #ff8a00; background: rgba(255,138,0,.06); color: var(--pot-dim, #b9aed3); border-radius: 0 10px 10px 0; }
.markdown-content table { width: 100%; margin: 10px 0; border-collapse: collapse; }
.markdown-content th, .markdown-content td { border: 1px solid rgba(255,255,255,.10); padding: 6px 10px; }
.markdown-content img { max-width: 100%; height: auto; border-radius: 10px; }
.markdown-content hr { border-color: rgba(255,255,255,.10); }
/* rating stars under staff replies.
   ⛔ LIVE BUG FIXED HERE: theme.min.css draws the stars with "Font Awesome 6 Pro", but
   dark.theme.min.css (loaded later) switches them to "Font Awesome 5 Pro" — a font this
   install never loads — so the stars rendered as empty boxes. Colours live on ::before
   in the stock CSS, so they are overridden there. */
.ticket-reply .rating, .ticket-reply .rating-done { margin-top: 10px; padding: 0 !important; color: var(--pot-faint, #827798); font-size: 12.5px; }
.ticket-reply .rating span.star, .ticket-reply .rating-done span.star {
  font-family: "Font Awesome 6 Pro", "Font Awesome 6 Free" !important; font-weight: 400 !important; font-style: normal; font-size: 16px; margin: 0 1px;
  transition: transform .12s;
}
.ticket-reply .rating span.star::before, .ticket-reply .rating-done span.star::before { content: "\f005" !important; color: rgba(255,255,255,.28) !important; }
.ticket-reply .rating span.star:hover::before, .ticket-reply .rating span.star:hover ~ span.star::before,
.ticket-reply .rating-done span.star.active::before { font-weight: 900; color: #ffcf6b !important; text-shadow: 0 0 10px rgba(255,180,61,.6); }
.ticket-reply .rating span.star:hover { transform: scale(1.15); }
/* attachments */
.view-ticket .attachments {
  margin-top: 10px; padding: 12px 14px !important;
  background: rgba(7,3,16,.45) !important; border: 1px dashed rgba(255,168,61,.28) !important; border-radius: 12px !important;
  font: 600 11px/1.4 'JetBrains Mono', ui-monospace, monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--pot-faint, #827798);
}
.view-ticket .attachment-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0 !important; padding: 0 !important; list-style: none; }
.view-ticket .attachment-list li { margin: 0 !important; padding: 0 !important; width: auto !important; float: none !important; }
.view-ticket .attachment-list li a, .view-ticket .attachment-list li > span {
  display: inline-flex !important; align-items: center; gap: 8px; padding: 8px 12px !important;
  background: rgba(255,255,255,.05) !important; border: 1px solid rgba(255,255,255,.12) !important; border-radius: 10px !important;
  color: var(--pot-text, #fbf6ff) !important; text-decoration: none !important; text-transform: none; letter-spacing: 0;
  font: 500 13px/1.3 'Inter', sans-serif;
}
.view-ticket .attachment-list li a:hover { border-color: rgba(255,168,61,.5) !important; background: rgba(255,138,0,.10) !important; }
.view-ticket .attachment-list li a::before { content: "\f0c6"; font-family: "Font Awesome 6 Pro", "Font Awesome 6 Free", "Font Awesome 5 Free"; font-weight: 900; color: #ffb43d; }
/* stock markup: a > span > figure(icon) + .caption(file name) — keep the name, drop the icon box */
.view-ticket .attachment-list li a figure { display: none !important; }
.view-ticket .attachment-list li a > span { display: inline !important; padding: 0 !important; margin: 0 !important; border: 0 !important; background: none !important; }
.view-ticket .attachment-list li a .caption { display: inline !important; padding: 0 !important; margin: 0 !important; background: none !important; color: inherit !important; font: 500 13px/1.3 'Inter', sans-serif; text-transform: none; letter-spacing: 0; }

/* reply box + bootstrap-markdown editor (ticket reply, open-ticket step 2) */
#ticketReplyContainer .card-title { font: 700 18px/1.3 'Space Grotesk', 'Inter', sans-serif !important; letter-spacing: 0 !important; text-transform: none !important; color: var(--pot-text, #fbf6ff) !important; }
#ticketReplyContainer .card-title::before { content: none !important; }
body .primary-content .md-editor, .md-editor {
  border: 1px solid rgba(255,168,61,.26) !important; border-radius: 14px !important; overflow: hidden;
  background: rgba(7,3,16,.55) !important; box-shadow: none !important;
}
.md-editor.active { border-color: #ff8a00 !important; box-shadow: 0 0 0 3px rgba(255,138,0,.16) !important; }
body .primary-content .md-editor .md-header, .md-editor > .md-header {
  background: rgba(255,255,255,.04) !important; border-bottom: 1px solid rgba(255,255,255,.08) !important; padding: 6px 8px !important;
}
.md-editor .md-header .btn {
  background: transparent !important; border: 0 !important; color: var(--pot-dim, #b9aed3) !important; border-radius: 8px !important; box-shadow: none !important;
}
.md-editor .md-header .btn:hover, .md-editor .md-header .btn.active { background: rgba(255,138,0,.14) !important; color: #fff !important; }
.md-editor > textarea, .md-editor .md-input {
  background: transparent !important; border: 0 !important; color: var(--pot-text, #fbf6ff) !important;
  font-size: 14.5px; line-height: 1.65; padding: 14px 16px !important; box-shadow: none !important;
}
body .primary-content .md-editor .md-footer, .md-editor > .md-footer {
  background: rgba(255,255,255,.03) !important; border-top: 1px solid rgba(255,255,255,.08) !important;
  color: var(--pot-faint, #827798) !important; font: 500 11.5px/1.5 'JetBrains Mono', ui-monospace, monospace;
}
.md-editor .md-preview { background: rgba(7,3,16,.4) !important; color: var(--pot-text, #fbf6ff) !important; padding: 14px 16px !important; }
.attachment-group { margin-bottom: 8px !important; }
.attachment-group .input-group-append .btn, .attachment-group .input-group-prepend .btn { border-radius: 10px !important; }

/* ===================== 3 · OPEN A TICKET: department picker ===================== */
.card-body.extra-padding { padding: 30px !important; }
.card-body.extra-padding > .mb-4 .card-title { font: 700 22px/1.3 'Space Grotesk', 'Inter', sans-serif !important; letter-spacing: -.2px; text-transform: none !important; color: var(--pot-text, #fbf6ff) !important; }
.card-body.extra-padding > .mb-4 .card-title::before { content: none !important; }
/* each department = a clickable card; its description (the next <p>) joins the card */
.card-body.extra-padding p.h5 { margin: 0 0 12px; }
.card-body.extra-padding p.h5 > a {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px;
  background: linear-gradient(135deg, rgba(255,255,255,.07), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.12); border-radius: 14px;
  font: 600 16px/1.3 'Space Grotesk', 'Inter', sans-serif; color: var(--pot-text, #fbf6ff) !important;
  text-decoration: none !important; transition: transform .18s, border-color .18s, background .18s;
}
.card-body.extra-padding p.h5:has(+ p.text-muted) { margin-bottom: 0; }
.card-body.extra-padding p.h5:has(+ p.text-muted) > a { border-radius: 14px 14px 0 0; border-bottom-color: transparent; }
.card-body.extra-padding p.h5 + p.text-muted {
  margin: 0 0 12px !important; padding: 0 18px 14px calc(18px + 42px + 14px);
  background: linear-gradient(135deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
  border: 1px solid rgba(255,255,255,.12); border-top: 0; border-radius: 0 0 14px 14px; font-size: 13.5px;
}
html[dir="rtl"] .card-body.extra-padding p.h5 + p.text-muted { padding: 0 calc(18px + 42px + 14px) 14px 18px; }
.card-body.extra-padding p.h5 > a i {
  display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 12px; font-size: 16px;
  color: #ffcf6b; background: rgba(255,138,0,.12); border: 1px solid rgba(255,168,61,.32);
}
.card-body.extra-padding p.h5 > a::after {
  content: "\f054"; font-family: "Font Awesome 6 Pro", "Font Awesome 6 Free", "Font Awesome 5 Free"; font-weight: 900;
  margin-inline-start: auto; font-size: 12px; color: var(--pot-faint, #827798); transition: transform .18s, color .18s;
}
html[dir="rtl"] .card-body.extra-padding p.h5 > a::after { content: "\f053"; }
.card-body.extra-padding p.h5 > a:hover { transform: translateY(-2px); border-color: rgba(255,168,61,.45); background: linear-gradient(135deg, rgba(255,138,0,.12), rgba(255,255,255,.02)); }
.card-body.extra-padding p.h5 > a:hover i { background: var(--pot-grad, linear-gradient(120deg,#d68f12,#f0aa30,#ffce6b)); color: #fff; border-color: transparent; }
.card-body.extra-padding p.h5 > a:hover::after { color: #ffb43d; transform: translateX(3px); }
html[dir="rtl"] .card-body.extra-padding p.h5 > a:hover::after { transform: translateX(-3px); }
/* KB suggestions shown while typing a new ticket */
.kbarticles .kb-article-item, .kbarticles a { color: #ffb43d; }

/* ===================== 4 · ANNOUNCEMENTS ======================================== */
.announcements { display: grid; gap: 14px; }
.announcements .announcement {
  position: relative; margin: 0 !important; padding: 20px 22px 18px !important;
  background: linear-gradient(135deg, rgba(255,255,255,.07), rgba(255,255,255,.02)) !important;
  border: 1px solid rgba(255,255,255,.12) !important; border-radius: 16px !important;
  transition: transform .18s, border-color .18s;
}
.announcements .announcement::before {
  content: ""; position: absolute; inset-inline-start: -1px; top: 18px; bottom: 18px; width: 3px; border-radius: 3px;
  background: var(--pot-grad, linear-gradient(180deg,#d68f12,#f0aa30,#ffce6b));
}
.announcements .announcement:hover { transform: translateY(-2px); border-color: rgba(255,168,61,.40) !important; }
.announcements .announcement h1 { margin: 0 0 6px !important; font: 700 19px/1.3 'Space Grotesk', 'Inter', sans-serif !important; }
.announcements .announcement h1 a { color: var(--pot-text, #fbf6ff) !important; text-decoration: none !important; }
.announcements .announcement h1 a:hover { color: #ffcf6b !important; }
.announcements .announcement .list-inline { margin: 0 0 10px; }
.announcements .announcement .list-inline-item { font: 600 11px/1.4 'JetBrains Mono', ui-monospace, monospace; letter-spacing: .1em; text-transform: uppercase; color: #ffcf6b !important; }
html[dir="rtl"] .announcements .announcement .list-inline-item { font-family: 'Tajawal', sans-serif; letter-spacing: 0; font-size: 12.5px; }
.announcements .announcement article { color: var(--pot-dim, #b9aed3); font-size: 14.5px; line-height: 1.7; background: none !important; border: 0 !important; padding: 0 !important; margin: 0 0 12px !important; }
.announcements .announcement article a { color: #ffb43d; }

/* ===================== 5 · DOWNLOADS (still on the stock KB markup) ============== */
.primary-content .card.kb-category, .kb-category {
  background: linear-gradient(135deg, rgba(255,255,255,.07), rgba(255,255,255,.02)) !important;
  border: 1px solid rgba(255,255,255,.12) !important; border-radius: 16px !important; overflow: hidden;
  transition: transform .18s, border-color .18s, box-shadow .18s;
}
.kb-category:hover { transform: translateY(-3px); border-color: rgba(255,168,61,.45) !important; box-shadow: 0 20px 44px -22px rgba(255,138,0,.4); }
.kb-category a, .kb-category a.card-body { color: var(--pot-text, #fbf6ff) !important; text-decoration: none !important; background: transparent !important; }
.kb-category .card-title, .kb-category h5, .kb-category strong { font-family: 'Space Grotesk', 'Inter', sans-serif; color: var(--pot-text, #fbf6ff); }
.kb-category i.fa, .kb-category i.fas, .kb-category i.far, .kb-category i.fal { color: #ffcf6b; }
.kb-category .badge { background: rgba(255,138,0,.14) !important; color: #ffcf6b !important; border: 1px solid rgba(255,168,61,.32); }
.list-group-item.kb-article-item {
  background: transparent !important; border-color: rgba(255,255,255,.07) !important; color: var(--pot-text, #fbf6ff) !important;
  transition: background .16s, padding .16s;
}
.list-group-item.kb-article-item:hover { background: rgba(255,138,0,.07) !important; padding-inline-start: 26px; }
.list-group-item.kb-article-item i { color: #ffb43d; }
.btn-input-padded-responsive { border-radius: 0 999px 999px 0 !important; }

/* ===================== 6 · MASS PAY / UPGRADE SUMMARY TOTALS ===================== */
tr.masspay-invoice-detail td { color: var(--pot-dim, #b9aed3); border-color: rgba(255,255,255,.06) !important; }
tr.masspay-total td { border-color: rgba(255,255,255,.06) !important; color: var(--pot-text, #fbf6ff); }
tr.masspay-total td:first-child { font: 600 11px/1.4 'JetBrains Mono', ui-monospace, monospace; letter-spacing: .1em; text-transform: uppercase; color: var(--pot-faint, #827798); }
tr.masspay-total:last-child td { padding-top: 14px; border-top: 1px solid rgba(255,168,61,.30) !important; }
tr.masspay-total:last-child td:last-child {
  font: 700 22px/1.2 'Space Grotesk', 'Inter', sans-serif;
  background: linear-gradient(180deg, #fff, #ffcf6b); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
}
.card.bg-default { background: linear-gradient(135deg, rgba(255,255,255,.07), rgba(255,255,255,.02)) !important; border: 1px solid rgba(255,255,255,.12) !important; }

/* ===================== 7 · AFFILIATES stat tiles ================================= */
.affiliate-stat {
  position: relative; overflow: hidden; padding: 18px 20px !important; border-radius: 16px !important;
  background: linear-gradient(135deg, rgba(255,255,255,.07), rgba(255,255,255,.02)) !important;
  border: 1px solid rgba(255,255,255,.12) !important; color: var(--pot-dim, #b9aed3) !important;
  font: 600 11px/1.4 'JetBrains Mono', ui-monospace, monospace; letter-spacing: .1em; text-transform: uppercase;
}
.affiliate-stat span {
  display: block; margin-bottom: 6px; font: 700 30px/1.15 'Space Grotesk', 'Inter', sans-serif !important; letter-spacing: -.5px; text-transform: none;
  background: linear-gradient(180deg, #fff, #ffcf6b); -webkit-background-clip: text; background-clip: text; color: transparent !important; -webkit-text-fill-color: transparent;
}
.affiliate-stat i { position: absolute; inset-inline-end: 14px; top: 50%; transform: translateY(-50%); font-size: 46px !important; color: rgba(255,138,0,.16) !important; }
html[dir="rtl"] .affiliate-stat { font-family: 'Tajawal', sans-serif; letter-spacing: 0; font-size: 13px; }

/* ===================== 8 · SERVICE DETAILS extras (non-game products) ============= */
.product-actions-wrapper .btn { border-radius: 12px !important; }
.product-actions-wrapper .btn-block { padding-block: 11px; }
#main-body .module-client-area:not(:empty) { margin-top: 18px; }
#main-body .module-client-area input[type="submit"], #main-body .module-client-area button[type="submit"]:not([class*="pot-"]),
#main-body .module-client-area .btn:not([class*="pot-"]) {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 22px; border: 0; border-radius: 12px; cursor: pointer;
  background: var(--pot-grad, linear-gradient(120deg,#d68f12,#f0aa30,#ffce6b)); color: #fff !important;
  font: 600 14.5px/1.2 'Space Grotesk', 'Inter', sans-serif; text-shadow: 0 1px 2px rgba(74,42,0,.55);
  box-shadow: 0 10px 26px -10px rgba(255,138,0,.6); transition: transform .16s, filter .16s;
}
#main-body .module-client-area input[type="submit"]:hover, #main-body .module-client-area .btn:not([class*="pot-"]):hover { transform: translateY(-2px); filter: brightness(1.06); }
/* resource usage dials (jQuery-knob canvases): the frame; colours are set in the tpl's knob() call */
.dial-usage { font-family: 'Space Grotesk', 'Inter', sans-serif !important; color: #fbf6ff !important; }

/* ===================== 9 · ACCOUNT & SECURITY forms ============================== */
#passwordStrengthBar { height: 8px !important; margin-top: 8px; }
#passwordStrengthBar .progress-bar { transition: width .3s ease, background .3s ease; }
.field-error-msg { color: #ff8a98 !important; font-size: 12.5px; margin-top: 6px; }
.has-error .form-control, .form-control.is-invalid { border-color: rgba(230,72,96,.65) !important; box-shadow: 0 0 0 3px rgba(230,72,96,.14) !important; }
.form-control.is-valid { border-color: rgba(35,196,131,.6) !important; }
.col-form-label { color: var(--pot-dim, #b9aed3); font-weight: 500; }
.form-check-inline .form-check-label, .form-check-label { color: var(--pot-dim, #b9aed3); }
/* 2FA module chooser */
.twofa-module {
  border: 1px solid rgba(255,255,255,.12) !important; border-radius: 14px !important;
  background: rgba(255,255,255,.04) !important; padding: 14px 16px !important; margin-bottom: 10px !important;
  transition: border-color .16s, background .16s; color: var(--pot-text, #fbf6ff);
}
.twofa-module:hover, .twofa-module.active { border-color: rgba(255,168,61,.55) !important; background: rgba(255,138,0,.08) !important; }

/* ===================== 10 · DOMAIN PRICING ======================================= */
.domain-pricing .featured-tld, .featured-tlds-container .featured-tld {
  background: linear-gradient(135deg, rgba(255,255,255,.07), rgba(255,255,255,.02)) !important;
  border: 1px solid rgba(255,255,255,.12) !important; border-radius: 16px !important; color: var(--pot-text, #fbf6ff) !important;
}
.featured-tld .img-container, .featured-tld .price { background: transparent !important; color: #ffcf6b !important; }
.domain-pricing .tld-filters .badge, .domain-pricing .tld-filters a {
  border-radius: 999px !important; background: rgba(255,255,255,.05) !important; color: var(--pot-dim, #b9aed3) !important;
  border: 1px solid rgba(255,255,255,.12); padding: 6px 12px !important;
}
.domain-pricing .tld-filters .badge.active, .domain-pricing .tld-filters a.active,
.domain-pricing .tld-filters .badge-success { background: var(--pot-grad, linear-gradient(120deg,#d68f12,#f0aa30,#ffce6b)) !important; color: #fff !important; border-color: transparent; }
.domain-pricing .tld-sale-group, [class*="tld-sale-group-"] { border-radius: 6px; font: 700 10px/1.4 'JetBrains Mono', monospace; letter-spacing: .08em; text-transform: uppercase; }

/* ===================== 11 · PROMO BANNERS, misc ================================== */
.promo-banner {
  background: linear-gradient(135deg, rgba(255,138,0,.14), rgba(255,255,255,.03)) !important;
  border: 1px solid rgba(255,168,61,.32) !important; border-radius: 16px !important; color: var(--pot-text, #fbf6ff) !important;
}
.promo-banner .icon-left, .promo-banner i { color: #ffcf6b !important; }
.promo-banner .btn { border-radius: 10px !important; }
.copy-to-clipboard { cursor: pointer; border-radius: 10px !important; }
.sub-heading span, .sub-heading { color: #ffcf6b; }
.show-on-card-hover { transition: opacity .16s; }

@keyframes potPagesPulse { 50% { opacity: .45; box-shadow: 0 0 3px #ff8a00; } }
@media (prefers-reduced-motion: reduce) { .ticket-subject.unread::before { animation: none; } }

@media (max-width: 575.98px) {
  .ticket-reply { padding-inline-start: 0; }
  .ticket-reply::before { position: static; display: inline-grid; width: 30px; height: 30px; font-size: 12px; margin-bottom: 6px; }
  .card-body.extra-padding { padding: 20px !important; }
  .card-body.extra-padding p.h5 + p.text-muted { padding-inline-start: 18px; }
}

/* stock dark.theme paints the editor body navy + WHITE (#ddd) rules with
   `.md-editor>textarea.markdown-editor{…!important}` — out-specify it */
#main-body .md-editor > textarea.markdown-editor,
#main-body .md-editor > .md-preview,
#main-body .md-editor > .btn-toolbar {
  background-color: transparent !important;
  border-top: 0 !important; border-bottom: 0 !important;
}
#main-body .md-editor > .btn-toolbar { background-color: rgba(255,255,255,.04) !important; border-bottom: 1px solid rgba(255,255,255,.08) !important; }

/* stock nexus theme.min.css DESATURATES checked/hovered iCheck boxes
   (body .icheckbox_square-blue.checked{filter:grayscale(100%) brightness(70%) contrast(2)})
   — which turned the gold box grey. Same specificity incl. the cart's configure form. */
body .icheckbox_square-blue.checked, body .iradio_square-blue.checked,
body .icheckbox_square-blue.hover, body .iradio_square-blue.hover,
body #frmConfigureProduct .icheckbox_square-blue.checked, body #frmConfigureProduct .icheckbox_square-blue.hover,
body #frmConfigureProduct .iradio_square-blue.checked, body #frmConfigureProduct .iradio_square-blue.hover { filter: none !important; }
body #frmConfigureProduct .icheckbox_square-blue.checked { border-color: transparent !important; }
body #frmConfigureProduct .icheckbox_square-blue.hover, body #frmConfigureProduct .iradio_square-blue.hover { border: 1.5px solid #ffb43d !important; }

/* Downloads: WHMCS prints a 2010-era 16px file-type image (/assets/img/exe.png, zip.png…)
   before each title — swap it for a gold download tile */
.list-group-item.kb-article-item > img[src*="/assets/img/"] { display: none !important; }
.list-group-item.kb-article-item:has(> img[src*="/assets/img/"])::before {
  content: "\f019"; font-family: "Font Awesome 6 Pro", "Font Awesome 6 Free", "Font Awesome 5 Free"; font-weight: 900;
  display: inline-grid; place-items: center; width: 30px; height: 30px; margin-inline-end: 10px; vertical-align: middle;
  border-radius: 9px; font-size: 13px; color: #ffcf6b; background: rgba(255,138,0,.12); border: 1px solid rgba(255,168,61,.32);
}
.list-group-item.kb-article-item:hover::before { background: var(--pot-grad, linear-gradient(120deg,#d68f12,#f0aa30,#ffce6b)); color: #fff; border-color: transparent; }

/* Dashboard panels: Bootstrap gives `.card > .list-group` border-top/bottom:inherit, which
   drew bright full-width rules above and below lists like Recent News — make them hairlines */
#main-body .card > .list-group { border-top: 1px solid rgba(255,255,255,.07) !important; border-bottom: 1px solid rgba(255,255,255,.07) !important; }
#main-body .card > .list-group:first-child { border-top: 0 !important; }
#main-body .card > .list-group:last-child { border-bottom: 0 !important; }
#main-body .card > .list-group .list-group-item { border-color: rgba(255,255,255,.06) !important; }
