/* ==========================================================================
   Intelwebhost — WHMCS compatibility layer
   Maps Twenty-One / Bootstrap markup onto the Intelwebhost look, so pages we do
   not template ourselves (invoices, cart, tickets, product details, KB…)
   still match. Everything reads the same CSS variables the addon writes.
   ========================================================================== */

/* ---------- shell ---------- */
.iw .container, .iw .container-fluid { max-width: var(--content-w); }
.iw .main-content { padding: 0; }
.iw #main-body { padding: 0; }
.iw .header-lined, .iw .page-header { border: 0; padding: 0; margin: 0 0 20px; }
.iw h1, .iw h2, .iw h3, .iw h4 { color: var(--ink); font-weight: var(--w-bold); letter-spacing: -.3px; }
.iw h1 { font-size: var(--fs-h1); }
.iw h2 { font-size: var(--fs-h2); }
.iw h3 { font-size: 18px; }
.iw a { color: var(--violet-d); }
.iw a:hover { color: var(--violet); }
.iw hr { border-color: var(--line); }

/* ---------- panels / cards ---------- */
.iw .panel,
.iw .card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh);
  margin-bottom: 16px;
}
.iw .panel-heading,
.iw .card-header {
  background: var(--card);
  border-bottom: 1px solid var(--line2);
  padding: 17px 20px 14px;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  font-weight: var(--w-bold);
  color: var(--ink);
}
.iw .panel-title, .iw .card-title { font-size: 18px; font-weight: var(--w-bold); color: var(--ink); margin: 0; }
.iw .panel-body, .iw .card-body { padding: 20px; }
.iw .panel-footer, .iw .card-footer { background: var(--sub); border-top: 1px solid var(--line); border-radius: 0 0 var(--r-lg) var(--r-lg); }

/* ---------- buttons ---------- */
.iw .page .btn {
  min-height: var(--btn-h);
  padding: 10px 20px;
  border-radius: var(--btn-r);
  font-size: var(--btn-fs);
  font-weight: var(--w-bold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  transition: background .15s, border-color .15s, color .15s;
}
.iw .page .btn-sm, .iw .page .btn-xs { min-height: 36px; padding: 7px 14px; font-size: 14.5px; }
.iw .page .btn-lg { min-height: calc(var(--btn-h) + 6px); font-size: calc(var(--btn-fs) + 1px); }
.iw .btn-primary { background: var(--violet); border-color: var(--violet); color: #fff; }
.iw .btn-primary:hover, .iw .btn-primary:focus { background: var(--violet-h); border-color: var(--violet-h); color: #fff; }
.iw .btn-default, .iw .btn-secondary, .iw .btn-light {
  background: var(--card); border-color: var(--line); color: var(--ink);
}
.iw .btn-default:hover, .iw .btn-secondary:hover { border-color: var(--violet); color: var(--violet-d); background: var(--card); }
.iw .btn-success { background: var(--green); border-color: var(--green); color: #fff; }
.iw .btn-danger  { background: var(--red);   border-color: var(--red);   color: #fff; }
.iw .btn-warning { background: var(--amber); border-color: var(--amber); color: #fff; }
.iw .btn-info    { background: var(--violet-d); border-color: var(--violet-d); color: #fff; }
.iw .btn-link { color: var(--violet-d); height: auto; padding: 0; }

/* ---------- forms ---------- */
.iw .form-control, .iw .form-select, .iw select, .iw input[type=text], .iw input[type=email],
.iw input[type=password], .iw input[type=number], .iw input[type=tel], .iw textarea {
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 10px 14px;
  font-size: 15px;
  color: var(--ink);
  background: var(--card);
  box-shadow: none;
  height: auto;
}
.iw .form-control:focus, .iw select:focus, .iw textarea:focus {
  border-color: var(--violet);
  box-shadow: 0 0 0 4px var(--tint);
  outline: 0;
}
.iw label, .iw .control-label { color: var(--ink); font-weight: 600; font-size: 14.5px; }
.iw .help-block, .iw .form-text { color: var(--mut); font-size: 13px; }
.iw .input-group-addon, .iw .input-group-text { background: var(--sub); border-color: var(--line); color: var(--mut); border-radius: var(--r); }

/* ---------- tables ---------- */
.iw .table { font-size: 15.5px; color: var(--body); margin-bottom: 0; }
.iw .table > thead > tr > th, .iw .table thead th {
  text-transform: uppercase;
  font-size: 12.5px;
  letter-spacing: .05em;
  font-weight: var(--w-bold);
  color: var(--mut);
  border-bottom: 1px solid var(--line);
  padding: 14px 18px;
  background: transparent;
}
.iw .table > tbody > tr > td, .iw .table tbody td {
  padding: 17px 18px;
  border-top: 0;
  border-bottom: 1px solid var(--line2);
  vertical-align: middle;
}
.iw .table > tbody > tr:last-child > td { border-bottom: 0; }
.iw .table-striped > tbody > tr:nth-of-type(odd) { background: transparent; }
.iw .table-hover > tbody > tr:hover { background: var(--sub); }
.iw .dataTables_wrapper .dataTables_filter input { border: 1px solid var(--line); border-radius: var(--r); padding: 8px 12px; }
.iw .dataTables_paginate .paginate_button.current { background: var(--violet) !important; border-color: var(--violet) !important; color: #fff !important; border-radius: var(--r); }

/* ---------- labels, badges, alerts ---------- */
.iw .label, .iw .badge {
  font-size: 12.5px; font-weight: var(--w-bold); padding: 5px 11px; border-radius: 20px; line-height: 1.2;
}
.iw .label-success, .iw .badge-success, .iw .bg-success { background: var(--green-t); color: var(--green); }
.iw .label-warning, .iw .badge-warning, .iw .bg-warning { background: var(--amber-t); color: var(--amber); }
.iw .label-danger,  .iw .badge-danger,  .iw .bg-danger  { background: var(--red-t);   color: var(--red); }
.iw .label-info,    .iw .badge-info,    .iw .bg-info    { background: var(--tint);    color: var(--violet-d); }
.iw .label-default, .iw .badge-secondary { background: var(--line2); color: var(--mut); }

.iw .alert {
  border-radius: var(--r-lg);
  border: 1px solid transparent;
  padding: 16px 18px;
  font-size: 15px;
}
.iw .alert-success { background: var(--green-t); color: var(--green); }
.iw .alert-warning { background: var(--amber-t); color: var(--amber); }
.iw .alert-danger  { background: var(--red-t);   color: var(--red); }
.iw .alert-info    { background: var(--tint);    color: var(--violet-d); }

/* ---------- tabs, pagination, breadcrumbs ---------- */
.iw .nav-tabs { border-bottom: 1px solid var(--line); }
.iw .nav-tabs > li > a, .iw .nav-tabs .nav-link {
  border: 0; border-bottom: 2px solid transparent; color: var(--mut);
  font-weight: 600; font-size: 16px; padding: 12px 16px; border-radius: 0;
}
.iw .nav-tabs > li.active > a, .iw .nav-tabs .nav-link.active {
  background: transparent; border: 0; border-bottom: 2px solid var(--violet); color: var(--violet-d);
}
.iw .breadcrumb { background: transparent; padding: 0; margin-bottom: 12px; font-size: 13px; color: var(--mut); }
.iw .breadcrumb a { color: var(--mut); }
.iw .breadcrumb a:hover { color: var(--violet); }
.iw .pagination > li > a, .iw .page-link { color: var(--violet-d); border-color: var(--line); }
.iw .pagination > .active > a, .iw .page-item.active .page-link { background: var(--violet); border-color: var(--violet); }

/* ---------- modals, dropdowns, tooltips ---------- */
.iw .modal-content { border: 0; border-radius: var(--r-xl); box-shadow: 0 24px 60px -24px rgba(47,28,106,.5); }
.iw .modal-header { border-bottom: 1px solid var(--line); padding: 18px 22px; }
.iw .modal-footer { border-top: 1px solid var(--line); padding: 16px 22px; background: var(--sub); border-radius: 0 0 var(--r-xl) var(--r-xl); }
.iw .dropdown-menu {
  border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: 0 16px 40px -16px rgba(47,28,106,.35); padding: 6px;
}
.iw .dropdown-menu > li > a, .iw .dropdown-item {
  border-radius: var(--r); padding: 9px 12px; font-size: 15px; color: var(--body);
}
.iw .dropdown-menu > li > a:hover, .iw .dropdown-item:hover { background: var(--tint); color: var(--violet-d); }

/* ---------- progress ---------- */
.iw .progress { height: 8px; border-radius: 8px; background: var(--line2); box-shadow: none; }
.iw .progress-bar { background: var(--violet); border-radius: 8px; }

/* ---------- order form / cart ---------- */
.iw .summary-container .panel { border-radius: var(--r-lg); }

/* ---------- login ---------- */
body.iw-login { background: var(--login-bg); }
.iw-login .logincontainer, .iw-login #login { max-width: 460px; margin: 60px auto; }
.iw-login .card, .iw-login .panel { border-radius: var(--r-xl); box-shadow: 0 20px 50px -24px rgba(47,28,106,.4); }
.iw-login .btn-primary { width: 100%; }

/* ---------- dark mode for core markup ---------- */
[data-mode="dark"] .iw .panel,
[data-mode="dark"] .iw .card,
[data-mode="dark"] .iw .modal-content,
[data-mode="dark"] .iw .dropdown-menu { background: var(--card); }
[data-mode="dark"] .iw .form-control,
[data-mode="dark"] .iw select,
[data-mode="dark"] .iw textarea { background: var(--card); color: var(--ink); }
[data-mode="dark"] .iw .table { color: var(--body); }

/* ---------- print ---------- */
@media print {
  .iw .side, .iw .topbar, .iw .iw-footer { display: none !important; }
  .iw .page { padding: 0; max-width: none; }
}

/* ---------- account dropdown in the top bar ---------- */
.iw .iw-acct { position: relative; }
.iw .iw-menu {
  position: absolute; right: 0; top: 46px; min-width: 240px; z-index: 60;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: 0 18px 44px -18px rgba(47,28,106,.4); padding: 6px;
}
.iw .iw-menu[hidden] { display: none; }
.iw .iw-menu-head { padding: 10px 12px 12px; border-bottom: 1px solid var(--line2); margin-bottom: 6px; }
.iw .iw-menu-head b { display: block; font-size: 14.5px; color: var(--ink); }
.iw .iw-menu-head span { font-size: 12.5px; color: var(--mut); word-break: break-all; }
.iw .iw-menu a { display: block; padding: 9px 12px; border-radius: var(--r); font-size: 15px; color: var(--body); }
.iw .iw-menu a:hover { background: var(--tint); color: var(--violet-d); text-decoration: none; }
.iw .iw-menu-sep { height: 1px; background: var(--line2); margin: 6px 0; }

/* ---------- signed-out pages ---------- */
.iw-plain { min-height: 100vh; padding: 40px 16px; }

/* ---------- signed-out header ---------- */
.iw-plain-head { max-width: 1100px; margin: 0 auto 26px; }
.iw-plain-head .logo b { font-size: 20px; }

/* ==========================================================================
   HARD OVERRIDES
   Twenty-One ships Bootstrap rules with higher specificity than plain class
   selectors (.btn-primary:not(:disabled):not(.disabled), .card-body, a:hover…).
   Without these, the addon's colour and font settings appear to "not work" —
   they are applied to the variables, but Bootstrap wins the cascade.
   ========================================================================== */

body.iw,
body.iw input, body.iw button, body.iw select, body.iw textarea,
body.iw .form-control, body.iw .btn, body.iw h1, body.iw h2, body.iw h3,
body.iw h4, body.iw h5, body.iw .panel-title, body.iw .card-title {
  font-family: var(--font) !important;
}

body.iw { background: var(--bg) !important; color: var(--body) !important; font-size: var(--fs-base) !important; }
body.iw.primary-bg-color { background: var(--bg) !important; }

body.iw h1, body.iw h2, body.iw h3, body.iw h4, body.iw h5,
body.iw .panel-title, body.iw .card-title { color: var(--ink) !important; }

body.iw a { color: var(--violet-d); }
body.iw a:hover, body.iw a:focus { color: var(--violet); }

/* buttons — beats .btn-primary:not(:disabled):not(.disabled) */
body.iw .btn-primary,
body.iw .btn-primary:not(:disabled):not(.disabled),
body.iw .btn-p,
body.iw a.btn-p {
  background: var(--violet) !important;
  border-color: var(--violet) !important;
  color: #fff !important;
  opacity: 1 !important;
}
body.iw .btn-primary:hover, body.iw .btn-p:hover,
body.iw .btn-primary:not(:disabled):not(.disabled):hover {
  background: var(--violet-h) !important;
  border-color: var(--violet-h) !important;
  color: #fff !important;
}
body.iw .btn-primary:focus, body.iw .btn-p:focus, body.iw .btn:focus {
  box-shadow: 0 0 0 4px var(--tint) !important;
}
body.iw .btn-t, body.iw a.btn-t {
  background: var(--card) !important;
  border: 1px solid var(--line) !important;
  color: var(--ink) !important;
}
body.iw .btn-t:hover { border-color: var(--violet) !important; color: var(--violet-d) !important; }
body.iw .btn-s, body.iw a.btn-s {
  background: transparent !important;
  border: 1px solid var(--violet) !important;
  color: var(--violet-d) !important;
}
body.iw .btn-s:hover { background: var(--tint) !important; }

/* the demo's own components must not inherit Bootstrap colours */
body.iw .nv.on { background: var(--tint) !important; color: var(--violet-d) !important; }
body.iw .nv.on svg, body.iw .tico svg, body.iw .qtile .tico { color: var(--violet); }
body.iw .state.s-ok { background: var(--green-t) !important; color: var(--green) !important; }
body.iw .state.s-warn { background: var(--amber-t) !important; color: var(--amber) !important; }
body.iw .state.s-off { background: var(--line2) !important; color: var(--mut) !important; }
body.iw .f.on { background: var(--ink) !important; border-color: var(--ink) !important; color: #fff !important; }
body.iw .mark { background: var(--violet) !important; color: #fff !important; }
body.iw .av { background: var(--tint2) !important; color: var(--violet-d) !important; }

/* top bar order button */
body.iw .iw-cta { height: 38px; padding: 0 16px; border-radius: 20px; }

/* Twenty-One utility colours that fight the palette */
body.iw .text-primary { color: var(--violet-d) !important; }
body.iw .bg-primary { background: var(--violet) !important; }
body.iw .text-muted { color: var(--mut) !important; }
body.iw .border { border-color: var(--line) !important; }

/* ==========================================================================
   PAGE LAYOUT WITH SUB-NAVIGATION
   WHMCS builds a menu per page (domain tools, service tools, billing…).
   It renders into .pagenav on the right; the content keeps the main column.
   ========================================================================== */
.iw .pagegrid { display: block; }
.iw .pagegrid.withnav { display: grid; grid-template-columns: minmax(0,1fr) 296px; gap: 22px; align-items: start; }
.iw .pagemain { min-width: 0; }
.iw .pagenav { position: sticky; top: 84px; }

/* WHMCS renders sidebars as .panel > .panel-heading + .list-group */
.iw .pagenav .panel,
.iw .pagenav .card {
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card);
  box-shadow: var(--sh); margin-bottom: 14px; overflow: hidden;
}
.iw .pagenav .panel-heading,
.iw .pagenav .card-header {
  padding: 14px 18px; font-size: 12.5px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--mut); background: var(--sub);
  border-bottom: 1px solid var(--line);
}
.iw .pagenav .panel-heading .panel-title,
.iw .pagenav .card-header .card-title { font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--mut); }
.iw .pagenav .list-group { border: 0; margin: 0; padding: 6px; border-radius: 0; }
.iw .pagenav .list-group-item {
  border: 0 !important; border-radius: var(--r) !important; padding: 10px 12px;
  font-size: 14.5px; font-weight: 500; color: var(--body); background: transparent;
  display: flex; align-items: center; gap: 10px;
}
.iw .pagenav .list-group-item i,
.iw .pagenav .list-group-item .fa,
.iw .pagenav .list-group-item .fas,
.iw .pagenav .list-group-item .far { color: var(--mut); width: 18px; text-align: center; }
.iw .pagenav .list-group-item:hover { background: var(--tint); color: var(--violet-d); }
.iw .pagenav .list-group-item:hover i { color: var(--violet); }
.iw .pagenav .list-group-item.active,
.iw .pagenav .list-group-item.active:hover {
  background: var(--tint) !important; color: var(--violet-d) !important; font-weight: 700;
}
.iw .pagenav .list-group-item.active i { color: var(--violet) !important; }
.iw .pagenav .badge { background: var(--line2); color: var(--mut); margin-left: auto; }

/* ==========================================================================
   INNER CONTENT PAGES
   Twenty-One stacks label/value pairs and small panels; give them rhythm.
   ========================================================================== */
.iw .pagemain .panel:first-child, .iw .pagemain .card:first-child { margin-top: 0; }
.iw .pagemain h2, .iw .pagemain h3 { margin-top: 4px; }
.iw .pagemain .row { margin-left: -10px; margin-right: -10px; }
.iw .pagemain .row > [class^="col"], .iw .pagemain .row > [class*=" col"] { padding-left: 10px; padding-right: 10px; }
.iw .clientareadetails strong, .iw .domain-details strong { color: var(--ink); }
.iw dl dt { color: var(--mut); font-weight: 600; font-size: 13.5px; }
.iw dl dd { color: var(--ink); margin-bottom: 14px; }
.iw .well { background: var(--sub); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: none; }
.iw .tab-content { padding-top: 18px; }
.iw .alert a { font-weight: 700; text-decoration: underline; }

/* ==========================================================================

/* product grid */

/* billing cycle selector */

/* domain step */

/* configure step */

/* order summary panel */

/* view cart + checkout */

@media (max-width: 1100px) {
  .iw .pagegrid.withnav { grid-template-columns: 1fr; }
  .iw .pagenav { position: static; }
}

/* ==========================================================================





@media (max-width: 1100px) {
}
@media (max-width: 560px) {
}

/* ---------- order form: sidebar + body side by side ---------- */

/* the collapsed duplicate is for small screens only */

@media (max-width: 900px) {
}

/* price string tidy — WHMCS prints "৳999.00BDT" */

/* ==========================================================================
   LAYOUT NEUTRALISERS  (1.0.6)
   Now that Bootstrap is loading again, its own .container gets a fixed width
   and auto margins. Inside our panel shell that produced a wide empty gutter
   on the left of every inner page. Our .page already handles width and
   centring, so containers inside it must be transparent.
   ========================================================================== */
.iw .page .container,
.iw .page .container-fluid,
.iw .page .container-sm,
.iw .page .container-md,
.iw .page .container-lg,
.iw .page .container-xl {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
.iw .page > .container { padding: 0 !important; }
.iw #main-body { padding: 0; }
.iw .pagemain { min-width: 0; }
.iw .pagemain > .row:first-child { margin-top: 0; }

/* Any WHMCS row that carries a cart sidebar becomes two columns, whichever
   template rendered it (cart.php or the newer store routes). */

/* cart sidebar boxes — same treatment wherever they appear */

/* ---------- domain step on the order form ---------- */
.iw .domain-selection-options,
.iw #domains { margin-top: 8px; }
.iw .domain-selection-options .option,
.iw .domain-selection-options > div > label,
.iw .domain-selection-options input[type="radio"]:checked ~ *,
.iw .domain-selection-options .option.selected { color: var(--violet-d); }

/* headings on cart pages */

/* ---------- tables everywhere (datatables included) ---------- */
.iw .page table.dataTable thead th { border-bottom: 1px solid var(--line); }
.iw .page .dataTables_wrapper { padding: 0; }
.iw .page .table-container,
.iw .page .table-responsive {
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card);
  box-shadow: var(--sh); overflow: hidden;
}
.iw .page .table-responsive > .table { margin-bottom: 0; }

/* class-based twin of the :has() rule above, for older browsers */
@media (max-width: 900px) {
}

/* ==========================================================================
   1.0.7 — cart layout, type scale, manage-page detail rows
   ========================================================================== */

/* ---------- cart: sidebar left, body right, no Bootstrap column widths ---------- */

/* domain step: option rows as cards, inputs on the panel's scale */

/* ---------- slightly larger type across the panel ---------- */
body.iw { font-size: 17px !important; }
.iw .page, .iw .page p, .iw .page li, .iw .page td, .iw .page label { font-size: 16.5px; }
.iw .nv { font-size: 16px; }
.iw .tbl, .iw .page .table { font-size: 16px; }
.iw .card h3, .iw .panel-title, .iw .card-title { font-size: 19px; }
.iw .page h4 { font-size: 17px; }
.iw .btn { font-size: 16px; }
.iw .btn-sm { font-size: 15px; }
.iw .sect h2 { font-size: 24px; }
.iw .phead h1 { font-size: 31px; }
.iw .psub { font-size: 17px; }

/* ---------- manage pages: label / value pairs like the demo's detail rows ---------- */
.iw .pagemain h4 > strong,
.iw .pagemain h4 {
  font-size: 14px !important;
  font-weight: 600 !important;
  color: var(--mut) !important;
  margin: 0 0 4px !important;
  letter-spacing: 0;
}
.iw .pagemain h4 + span,
.iw .pagemain h4 + p,
.iw .pagemain h4 + a,
.iw .pagemain h4 + div {
  display: block;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
}
.iw .pagemain [class*="col-"] > h4 {
  padding-top: 16px;
  border-top: 1px solid var(--line2);
}
.iw .pagemain [class*="col-"]:first-child > h4:first-child { border-top: 0; padding-top: 0; }
.iw .pagemain .card-body > .row,
.iw .pagemain .panel-body > .row { row-gap: 6px; }

/* the big white block those pages sit in */
.iw .pagemain > .card,
.iw .pagemain > .panel { padding: 6px 8px; }
.iw .pagemain h3:first-of-type { margin-bottom: 14px; }

/* status words WHMCS prints as plain text */
.iw .pagemain .label-active, .iw .pagemain .status-active { color: var(--green); font-weight: 700; }

/* ==========================================================================
   1.0.8 — DEMO PARITY LAYER
   Twenty-One ships its own colour utilities (.primary-bg-color, .card-accent-*,
   .bg-color-*, .text-*-color) and Bootstrap component defaults that out-specify
   plain class selectors. This block restates the demo's tokens on every one of
   them, so a page we never templated still looks like the demo.
   Everything here reads the CSS variables, so the addon still drives the palette.
   ========================================================================== */

/* ---------- surfaces ---------- */
body.iw,
.iw .primary-bg-color,
.iw .secondary-bg-color,
.iw #main-body,
.iw section#main-body { background: var(--bg) !important; }

.iw .card,
.iw .panel,
.iw .well,
.iw .list-group,
.iw .accordion,
.iw .jumbotron {
  background: var(--card) !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--r-lg) !important;
  box-shadow: var(--sh) !important;
}
.iw .card-header, .iw .panel-heading {
  background: var(--card);
  border-bottom: 1px solid var(--line2);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  color: var(--ink);
}
.iw .card-footer, .iw .panel-footer {
  background: var(--sub) !important;
  border-top: 1px solid var(--line) !important;
  border-radius: 0 0 var(--r-lg) var(--r-lg) !important;
}
.iw .pagemain > .card > .card-body, .iw .pagemain > .panel > .panel-body { padding: 22px; }

/* Twenty-One's coloured accent cards flatten into our card */
.iw [class*="card-accent-"] { border-top: 1px solid var(--line) !important; }
.iw [class*="card-accent-"] > .card-header { color: var(--ink) !important; }
.iw [class*="bg-color-"],
.iw .bg-light, .iw .bg-white { background: var(--card) !important; color: var(--body) !important; }
.iw .bg-dark { background: var(--ink) !important; }
.iw [class*="text-color-"], .iw .text-dark { color: var(--ink) !important; }
.iw .text-success { color: var(--green) !important; }
.iw .text-danger  { color: var(--red) !important; }
.iw .text-warning { color: var(--amber) !important; }
.iw .text-info    { color: var(--violet-d) !important; }

/* ---------- type ---------- */
.iw, .iw p, .iw span, .iw li, .iw td, .iw div { color: inherit; }
.iw .page p, .iw .page li, .iw .page td { color: var(--body); }
.iw small, .iw .small, .iw .text-muted { color: var(--mut) !important; }
.iw strong, .iw b { color: var(--ink); font-weight: 700; }
.iw .header-lined, .iw .page-header { border-bottom: 0 !important; }
.iw hr { border-top: 1px solid var(--line) !important; }

/* ---------- controls ---------- */
.iw .form-control, .iw .custom-select, .iw select, .iw textarea, .iw input[type="text"],
.iw input[type="email"], .iw input[type="password"], .iw input[type="number"], .iw input[type="search"] {
  background: var(--card) !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--r) !important;
  color: var(--ink) !important;
  box-shadow: none !important;
  font-size: 16px;
  padding: 11px 14px;
}
.iw .form-control:focus, .iw select:focus, .iw textarea:focus {
  border-color: var(--violet) !important;
  box-shadow: 0 0 0 4px var(--tint) !important;
}
.iw .input-group-text { background: var(--sub) !important; border-color: var(--line) !important; color: var(--mut) !important; }
.iw .custom-control-input:checked ~ .custom-control-label::before { background: var(--violet) !important; border-color: var(--violet) !important; }
.iw input[type="radio"], .iw input[type="checkbox"] { accent-color: var(--violet); }

/* ---------- buttons, every Bootstrap variant ---------- */
.iw .btn { border-radius: var(--btn-r) !important; font-weight: 700 !important; box-shadow: none !important; }
.iw .btn-primary, .iw .btn-primary:not(:disabled):not(.disabled),
.iw .btn-info, .iw .btn-success.btn-order-now {
  background: var(--violet) !important; border-color: var(--violet) !important; color: #fff !important;
}
.iw .btn-primary:hover, .iw .btn-info:hover { background: var(--violet-h) !important; border-color: var(--violet-h) !important; }
.iw .btn-default, .iw .btn-secondary, .iw .btn-light, .iw .btn-outline-secondary {
  background: var(--card) !important; border: 1px solid var(--line) !important; color: var(--ink) !important;
}
.iw .btn-default:hover, .iw .btn-secondary:hover, .iw .btn-outline-secondary:hover {
  border-color: var(--violet) !important; color: var(--violet-d) !important; background: var(--card) !important;
}
.iw .btn-success { background: var(--green) !important; border-color: var(--green) !important; color: #fff !important; }
.iw .btn-danger  { background: var(--red) !important;   border-color: var(--red) !important;   color: #fff !important; }
.iw .btn-warning { background: var(--amber) !important; border-color: var(--amber) !important; color: #fff !important; }
.iw .btn-link { color: var(--violet-d) !important; box-shadow: none !important; }

/* ---------- tables ---------- */
.iw .pagemain .table { color: var(--body); background: transparent; }
.iw .pagemain .table thead th {
  background: transparent !important; color: var(--mut) !important;
  border-bottom: 1px solid var(--line) !important; border-top: 0 !important;
  text-transform: uppercase; font-size: 12.5px !important; letter-spacing: .05em;
}
.iw .pagemain .table td { border-top: 0; border-bottom: 1px solid var(--line2); }
.iw .pagemain .table-striped tbody tr:nth-of-type(odd) { background: transparent; }
.iw .pagemain .table-hover tbody tr:hover { background: var(--sub); }
.iw .pagemain .table tbody tr:last-child td { border-bottom: 0; }

/* ---------- feedback ---------- */
.iw .alert { border: 0 !important; border-radius: var(--r-lg) !important; font-size: 16px !important; }
.iw .alert-success { background: var(--green-t) !important; color: var(--green) !important; }
.iw .alert-danger, .iw .alert-error { background: var(--red-t) !important; color: var(--red) !important; }
.iw .alert-warning { background: var(--amber-t) !important; color: var(--amber) !important; }
.iw .alert-info { background: var(--tint) !important; color: var(--violet-d) !important; }
.iw .badge, .iw .label { border-radius: 20px !important; font-weight: 700 !important; padding: 5px 11px !important; }
.iw .badge-success, .iw .label-success { background: var(--green-t) !important; color: var(--green) !important; }
.iw .badge-danger,  .iw .label-danger  { background: var(--red-t) !important;   color: var(--red) !important; }
.iw .badge-warning, .iw .label-warning { background: var(--amber-t) !important; color: var(--amber) !important; }
.iw .badge-info,    .iw .label-info    { background: var(--tint) !important;    color: var(--violet-d) !important; }
.iw .badge-primary { background: var(--violet) !important; color: #fff !important; }

/* ---------- navigation bits ---------- */
.iw .pagemain .nav-tabs { border-bottom: 1px solid var(--line); }
.iw .pagemain .nav-tabs .nav-link { border: 0; border-bottom: 2px solid transparent; color: var(--mut); }
.iw .pagemain .nav-tabs .nav-link.active { background: transparent; color: var(--violet-d); border-bottom-color: var(--violet); }
.iw .pagemain .nav-pills .nav-link.active { background: var(--tint); color: var(--violet-d); border-radius: var(--r); }
.iw .list-group-item { background: transparent !important; border-color: var(--line2) !important; color: var(--body) !important; }
.iw .list-group-item.active { background: var(--tint) !important; color: var(--violet-d) !important; border-color: transparent !important; }
.iw .page-link { color: var(--violet-d) !important; border-color: var(--line) !important; }
.iw .page-item.active .page-link { background: var(--violet) !important; border-color: var(--violet) !important; color: #fff !important; }
.iw .breadcrumb { background: transparent !important; }
.iw .progress { background: var(--line2) !important; }
.iw .progress-bar { background: var(--violet) !important; }
.iw .modal-content { border: 0 !important; border-radius: var(--r-xl) !important; }
.iw .dropdown-menu { border: 1px solid var(--line) !important; border-radius: var(--r-lg) !important; }
.iw .dropdown-item:hover { background: var(--tint) !important; color: var(--violet-d) !important; }
.iw .tooltip-inner { background: var(--ink) !important; border-radius: var(--r) !important; }
.iw .close { color: var(--mut) !important; opacity: 1 !important; text-shadow: none !important; }

/* ---------- icons keep the brand colour ---------- */
.iw .page .fa, .iw .page .fas, .iw .page .far, .iw .page .fal, .iw .page .fad { color: var(--mut); }
.iw .page .card-header .fa, .iw .page .panel-heading .fas { color: var(--violet); }

/* ---------- 1.1.0: Bootstrap offsets pushed list pages to the right ---------- */
.iw .page [class*="offset-"] { margin-left: 0 !important; }
.iw .page .justify-content-center { justify-content: flex-start !important; }
.iw .page .mx-auto { margin-left: 0 !important; margin-right: 0 !important; }

/* ==========================================================================
   1.1.1 — SAFETY RESETS
   The order form and any module page render their own components. Where our
   styling could change their SIZE or LAYOUT (not just colour), hand control
   back. Colour and font still come from the palette.
   ========================================================================== */

/* buttons keep their own size wherever WHMCS sets one */
.iw .btn i, .iw .btn .fa, .iw .btn .fas, .iw .btn .far { margin-right: 6px; }
.iw .btn i:only-child, .iw .btn .fa:only-child, .iw .btn .fas:only-child { margin-right: 0; }

/* an icon-only button must never collapse to an empty pill */
.iw .btn:empty { display: none; }
.iw .btn { white-space: nowrap; }

/* TLD pricing table on the domain register step */

/* WHMCS marketing panels inside the cart keep their own accent, just softened */


/* ==========================================================================
   ORDER FORM
   Deliberately empty. The cart lives in templates/orderforms/intelwebhost and
   loads its own custom.css. Styling it from here is what broke the TLD pricing
   table and the cart layout in earlier builds.
   ========================================================================== */

/* ==========================================================================
   1.3.1 — MANAGE PAGES
   Written against the real Twenty-One 9.0.6 markup:
     domain details : .row.mb-3 > .col-lg-6 > h5 + value
     service details: .product-details .row > .col-md-6 (status block + h4 + value)
     services list  : #tableServicesList with .label.status.status-*
   Styling only — no template, form or field is touched.
   ========================================================================== */

/* ---------- label / value detail rows ---------- */
.iw .pagemain .row.mb-3 {
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--line2);
}
.iw .pagemain .row.mb-3:last-of-type { border-bottom: 0; }
.iw .pagemain .row.mb-3 > [class*="col-"] {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
}
.iw .pagemain .row.mb-3 > [class*="col-"] + [class*="col-"] { border-left: 1px solid var(--line2); padding-left: 24px; }
.iw .pagemain .row.mb-3 h5 {
  font-size: 15px !important;
  font-weight: 600 !important;
  color: var(--mut) !important;
  margin: 0 !important;
  white-space: nowrap;
}
.iw .pagemain .row.mb-3 > [class*="col-"] > *:not(h5) {
  font-size: 16.5px;
  font-weight: 600;
  color: var(--ink);
  text-align: right;
}
.iw .pagemain .row.mb-3 a { color: var(--violet-d); }

/* ---------- service details ---------- */
.iw .product-details .row > .col-md-6.text-center { text-align: left !important; }
.iw .product-details h4 {
  font-size: 15px; font-weight: 600; color: var(--mut);
  margin: 16px 0 2px; padding-top: 14px; border-top: 1px solid var(--line2);
}
.iw .product-details .col-md-6 > h4:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.iw .product-status {
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--sub); padding: 24px; text-align: center;
}
.iw .product-status .product-icon .fa-stack { color: var(--violet); }
.iw .product-status .product-icon .fa-circle { color: var(--tint); }
.iw .product-status h3 { font-size: 21px; margin: 12px 0 2px; }
.iw .product-status h4 { font-size: 14.5px; color: var(--mut); border: 0; padding: 0; margin: 0; font-weight: 500; }
.iw .product-status-text {
  display: inline-block; margin-top: 14px; padding: 5px 14px; border-radius: 20px;
  font-size: 13.5px; font-weight: 700; background: var(--line2); color: var(--mut);
}
.iw .product-status-active .product-status-text { background: var(--green-t); color: var(--green); }
.iw .product-status-pending .product-status-text { background: var(--amber-t); color: var(--amber); }
.iw .product-status-suspended .product-status-text,
.iw .product-status-terminated .product-status-text,
.iw .product-status-cancelled .product-status-text { background: var(--red-t); color: var(--red); }
.iw .product-actions-wrapper { margin-top: 16px; }
.iw .product-actions-wrapper .col-12 + .col-12 { margin-top: 8px; }
.iw .product-actions-wrapper .btn-block { width: 100%; justify-content: center; }

/* ---------- status pills in list tables ---------- */
.iw .label.status,
.iw span.status {
  display: inline-block; border-radius: 20px; padding: 5px 12px;
  font-size: 13px; font-weight: 700; background: var(--line2); color: var(--mut);
}
.iw .status-active   { background: var(--green-t) !important; color: var(--green) !important; }
.iw .status-pending  { background: var(--amber-t) !important; color: var(--amber) !important; }
.iw .status-suspended,
.iw .status-terminated,
.iw .status-cancelled,
.iw .status-fraud    { background: var(--red-t) !important; color: var(--red) !important; }
.iw .status-expired  { background: var(--line2) !important; color: var(--mut) !important; }

/* rows in list tables behave like links */
.iw #tableServicesList tbody tr,
.iw .table-list tbody tr { cursor: pointer; }
.iw #tableServicesList tbody tr:hover,
.iw .table-list tbody tr:hover { background: var(--sub); }
.iw #tableServicesList td strong { font-size: 16.5px; color: var(--ink); }

/* ---------- "what would you like to do today" ---------- */
.iw .pagemain .card-body > h3 + ul,
.iw .pagemain ul.list-unstyled { list-style: none; padding: 0; margin: 8px 0 0; }
.iw .pagemain .card-body ul li { padding: 0; }
.iw .pagemain .card-body ul li a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 0; border-bottom: 1px solid var(--line2);
  font-size: 16px; font-weight: 600; color: var(--body);
}
.iw .pagemain .card-body ul li:last-child a { border-bottom: 0; }
.iw .pagemain .card-body ul li a:hover { color: var(--violet-d); }
.iw .pagemain .card-body ul li a:after { content: "›"; color: var(--faint); font-size: 20px; line-height: 1; }

/* ==========================================================================
   1.6.0 — premium invoice view (viewinvoice.php)
   CSS skin ONLY. No invoice markup, payment button, gateway form, field name
   or id is touched — the pay flow stays exactly as WHMCS renders it.
   Scoped to body.viewinvoice so nothing else is affected.
   ========================================================================== */
body.viewinvoice #main-body,
body.viewinvoice .pagemain{background:var(--bg)}

/* Pull the invoice into a centered, themed sheet regardless of WHMCS's own
   column offsets (only the top-level invoice column is re-centered). */
body.viewinvoice .pagemain > .row > [class*="offset-"],
body.viewinvoice #main-body > .row > [class*="offset-"]{
    margin-left:auto !important; margin-right:auto !important; float:none !important;
}
body.viewinvoice #invoice,
body.viewinvoice .invoice-container,
body.viewinvoice .invoiceview,
body.viewinvoice .invoice{
    max-width:920px; margin:8px auto 0; background:var(--card);
    border:1px solid var(--line); border-radius:var(--r-xl);
    box-shadow:var(--sh); padding:36px 40px; font-family:var(--font); color:var(--body);
}
@media (max-width:720px){ body.viewinvoice #invoice,body.viewinvoice .invoice-container,body.viewinvoice .invoice{padding:22px 18px} }

body.viewinvoice h1,body.viewinvoice h2,body.viewinvoice h3,body.viewinvoice h4{
    color:var(--ink); font-family:var(--font); letter-spacing:-.3px;
}

/* status word (UNPAID / PAID / etc.) and any coloured labels */
body.viewinvoice .text-danger,body.viewinvoice .label-danger,body.viewinvoice .badge-danger,
body.viewinvoice .invoice-unpaid,body.viewinvoice .unpaid{ color:var(--red) !important; }
body.viewinvoice .text-success,body.viewinvoice .label-success,body.viewinvoice .badge-success,
body.viewinvoice .invoice-paid,body.viewinvoice .paid{ color:var(--green) !important; }

/* panels / cards that wrap "Invoice Items" and "Ledger" */
body.viewinvoice .panel,body.viewinvoice .card{
    border:1px solid var(--line); border-radius:var(--r-lg); box-shadow:none;
    overflow:hidden; margin-bottom:18px; background:var(--card);
}
/* Kill WHMCS's coloured section bars (the teal "Ledger" / bold "Invoice Items")
   and any coloured table header — repaint them in the theme palette. */
body.viewinvoice .panel-heading,body.viewinvoice .card-header,
body.viewinvoice .panel-info > .panel-heading,
body.viewinvoice .panel-primary > .panel-heading,
body.viewinvoice table thead th,
body.viewinvoice .table > thead > tr > th,
body.viewinvoice .table-striped > thead{
    background:var(--sub) !important; color:var(--ink) !important;
    border-bottom:1px solid var(--line) !important;
    font-weight:700; text-transform:none; letter-spacing:0; text-shadow:none;
}
/* invoice + ledger tables */
body.viewinvoice table{ width:100%; border-collapse:collapse; font-size:15px; }
body.viewinvoice table th,body.viewinvoice table td{
    padding:13px 16px; border-bottom:1px solid var(--line2); vertical-align:middle;
}
body.viewinvoice .table > tbody > tr:last-child > td{ border-bottom:0; }
/* totals rows sit a little stronger */
body.viewinvoice tr.total td,body.viewinvoice .total-row,body.viewinvoice .invoice-total,
body.viewinvoice td strong,body.viewinvoice th strong{ color:var(--ink); font-weight:800; }

/* form controls (payment-method dropdown, etc.) */
body.viewinvoice select,body.viewinvoice .form-control{
    border:1px solid var(--line); border-radius:var(--r); color:var(--ink); box-shadow:none; height:auto; padding:9px 12px;
}
body.viewinvoice select:focus,body.viewinvoice .form-control:focus{ border-color:var(--violet); box-shadow:0 0 0 3px var(--tint); }

/* pay button — restyle in place, do not move or rename it */
body.viewinvoice .btn-primary,body.viewinvoice #btnMakePayment,
body.viewinvoice .invoice-pay-button,body.viewinvoice .paymentbtn{
    background:var(--violet) !important; border-color:var(--violet) !important; color:#fff !important;
    border-radius:var(--r); font-weight:700; padding:11px 20px;
}
body.viewinvoice .btn-primary:hover,body.viewinvoice #btnMakePayment:hover{ background:var(--violet-h) !important; }
body.viewinvoice .btn-default,body.viewinvoice .btn-secondary{
    background:var(--card); border:1px solid var(--line); color:var(--ink); border-radius:var(--r); font-weight:700;
}

/* logo never oversized */
body.viewinvoice #invoice img,body.viewinvoice .invoice img{ max-height:52px; width:auto; }

/* ==========================================================================
   ORDER PAGES — bare shell
   cart.php runs without the client-area chrome, the way ExonHost's /order/
   pages do: brand on the left, sales line and a way back on the right.
   ========================================================================== */
body.iw .iw-cartshell {
  border-bottom: 1px solid var(--line);
  background: var(--card);
  position: sticky; top: 0; z-index: 40;
}
body.iw .iw-cartshell-in {
  max-width: var(--content-w); margin: 0 auto; padding: 14px 26px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
body.iw .iw-cartshell .logo { display: flex; align-items: center; gap: 10px; }
body.iw .iw-cartshell .logo b { font-size: 19px; color: var(--ink); font-weight: 700; }
body.iw .iw-cartshell-right { display: flex; align-items: center; gap: 14px; }
body.iw .iw-sales { font-size: 14.5px; font-weight: 600; color: var(--ink); white-space: nowrap; }
body.iw .iw-cartpage {
  max-width: var(--content-w); margin: 0 auto; width: 100%;
  padding: 30px 26px 48px; min-height: 60vh;
}
body.iw .iw-cartfoot {
  border-top: 1px solid var(--line); margin-top: 20px;
  max-width: var(--content-w); margin-left: auto; margin-right: auto;
  padding: 20px 26px 34px; display: flex; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; font-size: 13.5px; color: var(--faint);
}
body.iw .iw-cartfoot a { color: var(--mut); }
body.iw .iw-cartfoot a:hover { color: var(--violet); }
@media (max-width: 700px) {
  body.iw .iw-cartshell-in, body.iw .iw-cartpage, body.iw .iw-cartfoot { padding-left: 14px; padding-right: 14px; }
  body.iw .iw-sales { display: none; }
}
