/* =========================================================================
   LivingDot - WHMCS client area theme (child of Twenty-One)
   Matches www.livingdot.com. Edit the tokens below to retune everything.
   ========================================================================= */
:root {
  --ld-bg: #F7F7F9;        /* page background            */
  --ld-surface: #FFFFFF;   /* cards, panels              */
  --ld-ink: #0A0A0F;       /* text, primary buttons      */
  --ld-ink-2: #3A3A4C;     /* body copy                  */
  --ld-muted: #55556A;     /* secondary text             */
  --ld-faint: #6A6A80;     /* labels                     */
  --ld-line: #E4E4EA;      /* borders                    */
  --ld-line-2: #ECECF1;    /* inner dividers             */
  --ld-accent: #5B3DF5;    /* links, focus, active       */
  --ld-ok: #0F8A5F;        /* active / paid              */
  --ld-warn: #B26B00;      /* pending                    */
  --ld-bad: #C8322B;       /* overdue / cancelled        */
  --ld-radius: 18px;
  --ld-radius-sm: 12px;
  --ld-font: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ld-mono: 'JetBrains Mono', ui-monospace, monospace;
}

/* ---------- base ---------- */
body.ld-theme, .ld-theme .tooltip, .ld-theme .popover, .ld-theme .modal { font-family: var(--ld-font); }
body.ld-theme { color: var(--ld-ink-2); -webkit-font-smoothing: antialiased; }
.ld-theme.primary-bg-color, .ld-theme .primary-bg-color { background-color: var(--ld-bg); }
.ld-theme h1, .ld-theme h2, .ld-theme h3, .ld-theme h4, .ld-theme h5, .ld-theme h6,
.ld-theme .h1, .ld-theme .h2, .ld-theme .h3, .ld-theme .h4, .ld-theme .h5 { color: var(--ld-ink); font-weight: 700; letter-spacing: -0.02em; }
.ld-theme a { color: var(--ld-ink); }
.ld-theme a:hover { color: var(--ld-accent); }
.ld-theme .text-muted { color: var(--ld-muted) !important; }
.ld-theme .text-primary { color: var(--ld-accent) !important; }
.ld-theme .bg-primary { background-color: var(--ld-ink) !important; }
.ld-theme .border-primary { border-color: var(--ld-ink) !important; }
.ld-theme :focus-visible { outline: 3px solid var(--ld-accent); outline-offset: 2px; }

/* ---------- header: site bar ---------- */
.ld-theme header.header { background: rgba(247,247,249,.92); border-bottom: 1px solid var(--ld-line); }
.ld-theme header.header .ld-site-bar { padding: 16px 0; }
.ld-theme header.header .ld-site-bar .container { display: flex; align-items: center; flex-wrap: nowrap; }
.ld-theme header.header .ld-logo { padding: 0; }
.ld-theme header.header .ld-logo .logo-img { display: block; height: 38px; width: auto; max-height: none; max-width: none; }
.ld-theme .ld-site-links { gap: 26px; align-items: center; }
.ld-theme .ld-site-links a { color: var(--ld-muted); font-size: 15px; font-weight: 500; }
.ld-theme .ld-site-links a:hover { color: var(--ld-ink); text-decoration: none; }
.ld-theme header.header .toolbar { align-items: center; }
.ld-theme header.header .toolbar .nav-link {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; height: 44px; padding: 0 12px;
  border: 1px solid var(--ld-line); border-radius: var(--ld-radius-sm);
  background: var(--ld-surface); color: var(--ld-ink); font-size: 15px;
}
.ld-theme header.header .toolbar .nav-link:hover { border-color: #C9C9D4; color: var(--ld-ink); }
.ld-theme header.header .toolbar .nav-link .badge { top: 4px; right: 4px; background: var(--ld-accent); color: #fff; opacity: 1; }
.ld-theme .ld-btn-dark, .ld-theme header.header .ld-btn-dark {
  display: inline-flex; align-items: center; height: 44px; padding: 0 20px;
  border-radius: var(--ld-radius-sm); background: var(--ld-ink); color: #fff; font-weight: 600; font-size: 15px;
}
.ld-theme .ld-btn-dark:hover { color: #fff; background: #23232D; }

/* logged-in strip */
.ld-theme header.header .topbar { background: var(--ld-ink); color: rgba(255,255,255,.72); padding: 4px 0; }
.ld-theme header.header .topbar .btn,
.ld-theme header.header .topbar .active-client .btn,
.ld-theme header.header .topbar .active-client .input-group-text { color: rgba(255,255,255,.78); font-size: 13px; }
.ld-theme header.header .topbar .btn:hover { color: #fff; }
.ld-theme header.header .topbar .active-client .btn.btn-active-client span { border-bottom-color: rgba(255,255,255,.4); }

/* WHMCS menu row */
.ld-theme header.header .main-navbar-wrapper { border-top: 1px solid var(--ld-line); background: var(--ld-surface); }
/* Twenty-One folds items into "More" when #nav is 30px+ tall, so links get no vertical padding */
.ld-theme header.header .main-navbar-wrapper .navbar-collapse { padding: 12px 0; }
.ld-theme header.header .navbar-nav a,
.ld-theme header.header .main-navbar-wrapper .navbar-nav > li > a { color: var(--ld-ink-2); font-size: 15px; font-weight: 500; }
.ld-theme header.header .main-navbar-wrapper .navbar-nav > li > a { display: block; padding: 0 22px 0 0; line-height: 24px; }
.ld-theme header.header .main-navbar-wrapper .navbar-nav > li > a:hover { color: var(--ld-ink); text-decoration: none; }
.ld-theme header.header .main-navbar-wrapper .navbar-nav > li.active > a { color: var(--ld-ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; }
.ld-theme .dropdown-menu { border: 1px solid var(--ld-line); border-radius: 14px; box-shadow: 0 20px 50px rgba(20,20,40,.12); padding: 6px; }
.ld-theme .dropdown-menu .dropdown-item { border-radius: 8px; }
.ld-theme header.header .dropdown-menu li.dropdown-item { padding: 0; }
.ld-theme header.header .dropdown-menu a.dropdown-item { padding: 8px 12px !important; color: var(--ld-ink-2); font-size: 14px; }
.ld-theme .dropdown-item:hover, .ld-theme .dropdown-item:focus { background: var(--ld-bg); color: var(--ld-ink); }
.ld-theme .dropdown-item.active, .ld-theme .dropdown-item:active,
.ld-theme header.header .dropdown-item.active, .ld-theme header.header .dropdown-item:active { background: var(--ld-bg); color: var(--ld-ink); }
.ld-theme .ld-mobile-site-links { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 12px 0; border-bottom: 1px solid var(--ld-line-2); margin-bottom: 6px; }
.ld-theme .ld-mobile-site-links a { color: var(--ld-muted); font-weight: 500; font-size: 15px; }
.ld-theme header.header .search { border-color: var(--ld-line); border-radius: var(--ld-radius-sm); background: var(--ld-surface); }
@media (max-width: 1199.98px) {
  .ld-theme header.header .main-navbar-wrapper .navbar-collapse { padding: 6px 0 12px; }
  .ld-theme header.header .main-navbar-wrapper .navbar-nav > li > a { padding: 10px 0; }
  .ld-theme header.header .main-navbar-wrapper { border-top: 0; }
}
@media (max-width: 575.98px) {
  .ld-theme header.header .ld-logo .logo-img { height: 32px; }
}

/* breadcrumb */
.ld-theme .master-breadcrumb { background: transparent; }
.ld-theme .master-breadcrumb .breadcrumb { padding: 18px 0 4px; background: transparent; font-family: var(--ld-mono); font-size: 12px; }
.ld-theme .master-breadcrumb .breadcrumb-item, .ld-theme .master-breadcrumb .breadcrumb-item a { color: var(--ld-faint); }
.ld-theme .master-breadcrumb .breadcrumb-item.active { color: var(--ld-ink); }
.ld-theme #main-body { padding-top: 18px; padding-bottom: 60px; }

/* ---------- cards, sidebar, panels ---------- */
.ld-theme .card, .ld-theme .mc-promo-manage, .ld-theme .mc-promo-login {
  border: 1px solid var(--ld-line); border-radius: var(--ld-radius); background: var(--ld-surface); box-shadow: none; overflow: hidden;
}
.ld-theme .card-header { background: var(--ld-surface); border-bottom: 1px solid var(--ld-line-2); padding: 16px 20px; }
.ld-theme .card-footer { background: #FBFBFC; border-top: 1px solid var(--ld-line-2); }
.ld-theme .primary-content .card-title, .ld-theme .card-title { color: var(--ld-ink); font-weight: 700; letter-spacing: -0.02em; }
.ld-theme .card-sidebar { border-radius: var(--ld-radius); }
.ld-theme .card-sidebar .card-header { padding: 14px 18px; }
.ld-theme .card-sidebar .card-header .card-title { font-size: 15px; }
.ld-theme .card-sidebar .card-minimise { color: var(--ld-faint); font-size: 12px; margin-top: 4px; }
.ld-theme .list-group-item { border-color: var(--ld-line-2); color: var(--ld-ink-2); font-size: 15px; }
.ld-theme .list-group-item-action:hover, .ld-theme .list-group-item-action:focus { background: var(--ld-bg); color: var(--ld-ink); }
.ld-theme .list-group-item.active, .ld-theme .list-group-item.active:hover {
  background: var(--ld-bg); color: var(--ld-ink); border-color: var(--ld-line-2); font-weight: 600;
  box-shadow: inset 3px 0 0 var(--ld-ink);
}
.ld-theme .list-group-item .badge, .ld-theme .card-sidebar .badge { background: var(--ld-bg); color: var(--ld-ink); border: 1px solid var(--ld-line); font-weight: 600; }

/* dashboard tiles */
.ld-theme .tiles .tile { background: var(--ld-surface); border: 1px solid var(--ld-line); border-radius: var(--ld-radius); margin: 0 0 12px; padding: 22px 22px 18px; transition: transform .2s ease, box-shadow .2s ease; }
.ld-theme .tiles .tile:hover { transform: translateY(-3px); box-shadow: 0 20px 40px rgba(20,20,40,.08); text-decoration: none; }
.ld-theme .tiles .tile i { color: #D9D9E2; }
.ld-theme .tiles .tile .stat { color: var(--ld-ink); font-weight: 700; letter-spacing: -0.03em; }
.ld-theme .tiles .tile .title { color: var(--ld-muted); font-family: var(--ld-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.ld-theme .tiles .tile .highlight { height: 3px; border-radius: 3px; }
.ld-theme .tiles .tile .highlight.bg-color-blue { background: var(--ld-ink) !important; }
.ld-theme .tiles .tile .highlight.bg-color-green { background: var(--ld-ok) !important; }
.ld-theme .tiles .tile .highlight.bg-color-red { background: var(--ld-bad) !important; }
.ld-theme .tiles .tile .highlight.bg-color-gold { background: var(--ld-accent) !important; }
.ld-theme .tiles .row { margin-left: -6px; margin-right: -6px; }
.ld-theme .tiles .row > [class*="col-"] { padding-left: 6px; padding-right: 6px; }
.ld-theme .client-home-cards .card-header { display: flex; align-items: center; }
.ld-theme .client-home-cards .card-header .card-title { font-size: 16px; }
.ld-theme .card-accent-blue, .ld-theme .card-accent-green, .ld-theme .card-accent-red, .ld-theme .card-accent-gold,
.ld-theme .card-accent-purple, .ld-theme .card-accent-teal, .ld-theme .card-accent-pomegranate, .ld-theme .card-accent-asbestos,
.ld-theme .card-accent-midnight-blue, .ld-theme .card-accent-sun-flower, .ld-theme .card-accent-emerald, .ld-theme .card-accent-orange { border-top: 1px solid var(--ld-line); }

/* ---------- buttons ---------- */
.ld-theme .btn { border-radius: var(--ld-radius-sm); font-weight: 600; }
.ld-theme .btn-primary, .ld-theme .btn-primary:not(:disabled):not(.disabled):active, .ld-theme .btn-primary.disabled, .ld-theme .btn-primary:disabled {
  background-color: var(--ld-ink); border-color: var(--ld-ink); color: #fff;
}
.ld-theme .btn-primary:hover, .ld-theme .btn-primary:focus { background-color: #23232D; border-color: #23232D; color: #fff; box-shadow: none; }
.ld-theme .btn-success, .ld-theme .btn-success:not(:disabled):not(.disabled):active { background-color: var(--ld-ink); border-color: var(--ld-ink); color: #fff; }
.ld-theme .btn-success:hover, .ld-theme .btn-success:focus { background-color: #23232D; border-color: #23232D; color: #fff; box-shadow: none; }
.ld-theme .btn-default, .ld-theme .btn-light, .ld-theme .btn-secondary {
  background: var(--ld-surface); border: 1px solid #D4D4DC; color: var(--ld-ink);
}
.ld-theme .btn-default:hover, .ld-theme .btn-light:hover, .ld-theme .btn-secondary:hover { background: var(--ld-bg); border-color: #C2C2CC; color: var(--ld-ink); }
.ld-theme .btn-outline-primary { color: var(--ld-ink); border-color: var(--ld-ink); }
.ld-theme .btn-outline-primary:hover, .ld-theme .btn-outline-primary:not(:disabled):not(.disabled).active { background: var(--ld-ink); border-color: var(--ld-ink); color: #fff; }
.ld-theme .btn-link { color: var(--ld-ink); font-weight: 600; }
.ld-theme .btn-link:hover { color: var(--ld-accent); }
.ld-theme .btn-lg { padding: 12px 26px; font-size: 16px; }

/* ---------- forms ---------- */
.ld-theme .form-control, .ld-theme .custom-select, .ld-theme .input-group-text {
  border-color: #D4D4DC; border-radius: var(--ld-radius-sm); color: var(--ld-ink);
}
.ld-theme .form-control { min-height: 44px; }
.ld-theme .form-control:focus, .ld-theme .custom-select:focus { border-color: var(--ld-accent); box-shadow: 0 0 0 3px rgba(91,61,245,.15); }
.ld-theme .input-group > .form-control:not(:last-child), .ld-theme .input-group > .input-group-prepend > .btn,
.ld-theme .input-group > .input-group-prepend > .input-group-text { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.ld-theme .input-group > .form-control:not(:first-child), .ld-theme .input-group > .input-group-append > .btn,
.ld-theme .input-group > .input-group-append > .input-group-text { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.ld-theme .input-group-text { background: var(--ld-bg); color: var(--ld-muted); }
.ld-theme label, .ld-theme .control-label { color: var(--ld-ink); font-weight: 600; font-size: 14px; }
.ld-theme .custom-control-input:checked ~ .custom-control-label::before { background-color: var(--ld-ink); border-color: var(--ld-ink); }
.ld-theme .input-group .btn-reveal-pw:hover { color: var(--ld-accent); }

/* ---------- tables, badges, status ---------- */
.ld-theme .table { color: var(--ld-ink-2); }
.ld-theme .table thead th { border-bottom: 1px solid var(--ld-line); border-top: 0; color: var(--ld-faint); font-family: var(--ld-mono); font-weight: 500; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.ld-theme .table td, .ld-theme .table th { border-top-color: var(--ld-line-2); vertical-align: middle; }
.ld-theme .table-list > tbody > tr:hover > td { background: var(--ld-bg); }
.ld-theme .table-container, .ld-theme .dataTables_wrapper { border-radius: var(--ld-radius); }
.ld-theme .page-link { color: var(--ld-ink); border-color: var(--ld-line); }
.ld-theme .page-item.active .page-link { background: var(--ld-ink); border-color: var(--ld-ink); }
.ld-theme .badge-primary, .ld-theme .badge-info { background: var(--ld-ink); color: #fff; }
.ld-theme .badge-success { background: var(--ld-ok); }
.ld-theme .label, .ld-theme .status, .ld-theme .badge { border-radius: 999px; font-weight: 600; letter-spacing: .01em; }
.ld-theme .status-active, .ld-theme .status-open, .ld-theme .status-completed, .ld-theme .status-paid, .ld-theme .status-accepted, .ld-theme .label-success { background-color: var(--ld-ok); }
.ld-theme .status-pending, .ld-theme .status-unpaid, .ld-theme .status-payment-pending, .ld-theme .status-onhold, .ld-theme .status-answered, .ld-theme .status-customer-reply { background-color: var(--ld-warn); }
.ld-theme .status-overdue, .ld-theme .status-cancelled, .ld-theme .status-terminated, .ld-theme .status-suspended, .ld-theme .status-fraud, .ld-theme .status-expired { background-color: var(--ld-bad); }
.ld-theme .status-delivered { background-color: var(--ld-ink); }
.ld-theme .alert { border-radius: 14px; border-width: 1px; }
.ld-theme .alert-info { background: #F1EEFF; border-color: #DCD4FF; color: #2E1F8A; }
.ld-theme .alert-success { background: #E9F7F1; border-color: #C3E8D7; color: #0B5C40; }
.ld-theme .alert-warning { background: #FFF8E6; border-color: #F2D58A; color: #5A4300; }
.ld-theme .alert-danger { background: #FDEDEC; border-color: #F5C6C3; color: #8A1F1A; }
.ld-theme .nav-tabs .nav-link.active { color: var(--ld-ink); border-color: var(--ld-line) var(--ld-line) #fff; }
.ld-theme .nav-tabs .nav-link { color: var(--ld-muted); }
.ld-theme .nav-pills .nav-link.active { background: var(--ld-ink); }
.ld-theme .progress-bar { background-color: var(--ld-ink); }
.ld-theme .modal-content { border-radius: var(--ld-radius); border: 1px solid var(--ld-line); }

/* login / register */
.ld-theme .login-form .card-body, .ld-theme .card.mw-540 .card-body { padding: 2.4rem; }

/* ---------- order form (standard_cart) ---------- */
.ld-theme #order-standard_cart .header-lined h1, .ld-theme #order-standard_cart .font-size-36 { color: var(--ld-ink); font-weight: 700; letter-spacing: -0.03em; }
.ld-theme #order-standard_cart .products .product {
  border: 1px solid var(--ld-line); border-radius: var(--ld-radius); background: var(--ld-surface); padding: 22px; margin-bottom: 18px;
}
.ld-theme #order-standard_cart .products .product header { background: transparent; border-bottom: 1px solid var(--ld-line-2); margin: -22px -22px 16px; padding: 16px 22px; }
.ld-theme #order-standard_cart .products .product header span { color: var(--ld-ink); font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.ld-theme #order-standard_cart .products .product div.product-pricing span.price { color: var(--ld-ink); font-weight: 700; font-size: 26px; letter-spacing: -0.03em; }
.ld-theme #order-standard_cart .products .product .btn-order-now { background: var(--ld-ink); border-color: var(--ld-ink); color: #fff; }
.ld-theme #order-standard_cart .order-summary { background: var(--ld-ink); border: 0; border-radius: var(--ld-radius); overflow: hidden; }
.ld-theme #order-standard_cart .order-summary h2 { font-weight: 700; font-size: 18px; letter-spacing: -0.01em; padding: 14px; }
.ld-theme #order-standard_cart .summary-container { background: var(--ld-surface); border-radius: 0; font-size: 14px; padding: 16px; }
.ld-theme #order-standard_cart .order-summary .total-due-today .amt { color: var(--ld-ink); font-weight: 700; }
.ld-theme #order-standard_cart .btn-checkout { background: var(--ld-ink); border-color: var(--ld-ink); }
.ld-theme #order-standard_cart .view-cart-items-header { background: var(--ld-ink); border-radius: var(--ld-radius-sm) var(--ld-radius-sm) 0 0; }
.ld-theme #order-standard_cart .view-cart-items { border-bottom: 2px solid var(--ld-ink); }
.ld-theme #order-standard_cart .empty-cart .btn { background: var(--ld-ink); }
.ld-theme #order-standard_cart .sub-heading span, .ld-theme #order-standard_cart .sub-heading-borderless span { color: var(--ld-ink); font-weight: 600; background: var(--ld-bg); }
.ld-theme #order-standard_cart .panel-addon { border-radius: var(--ld-radius-sm); border-color: var(--ld-line); }
.ld-theme #order-standard_cart .panel-addon .panel-add, .ld-theme #order-standard_cart .panel-addon-selected .panel-add { background: var(--ld-ink); }
.ld-theme #order-standard_cart .panel-addon-selected { border-color: var(--ld-ink); }
.ld-theme .domain-checker-available { color: var(--ld-ok); }

/* ---------- footer ---------- */
.ld-theme footer.footer.ld-footer { background: var(--ld-surface); color: var(--ld-muted); border-top: 1px solid var(--ld-line); padding: 56px 0 30px; font-size: 15px; }
.ld-theme .ld-footer-top { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; }
.ld-theme .ld-footer-brand { flex: 1 1 260px; max-width: 360px; }
.ld-theme .ld-footer-brand img { display: block; height: 72px; width: auto; }
.ld-theme .ld-footer-brand p { margin: 14px 0 0; color: var(--ld-muted); }
.ld-theme .ld-footer-tools { margin-top: 14px; }
.ld-theme footer.footer .ld-footer-tools .btn { background: var(--ld-bg); border: 1px solid var(--ld-line); color: var(--ld-ink); border-radius: 10px; }
.ld-theme footer.footer .ld-footer-tools .btn-icon { color: var(--ld-ink); }
.ld-theme .ld-footer-cols { display: flex; flex-wrap: wrap; gap: 56px; }
.ld-theme .ld-footer-col { display: flex; flex-direction: column; gap: 10px; }
.ld-theme .ld-footer-col h2 { font-family: var(--ld-mono); font-size: 12px; font-weight: 500; color: var(--ld-faint); letter-spacing: .08em; text-transform: uppercase; margin: 0 0 4px; }
.ld-theme .ld-footer-col a { color: var(--ld-ink-2); }
.ld-theme .ld-footer-col a:hover { color: var(--ld-accent); text-decoration: none; }
.ld-theme .ld-footer-base { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--ld-line-2); font-size: 13px; color: var(--ld-faint); }
.ld-theme .ld-footer-base a { color: var(--ld-faint); }
.ld-theme footer.footer .copyright { color: var(--ld-faint); }

/* ---------- fixes after live testing ---------- */
/* "Start a blog": beat Twenty-One's header link colour */
.ld-theme header.header a.ld-btn-dark,
.ld-theme header.header a.ld-btn-dark:hover,
.ld-theme header.header a.ld-btn-dark:focus { color: #FFFFFF; text-decoration: none; }

/* iCheck radios/checkboxes (blue sprite) -> ink */
.ld-theme .iradio_square-blue, .ld-theme .icheckbox_square-blue,
.ld-theme .iradio_square-green, .ld-theme .icheckbox_square-green { filter: grayscale(1) brightness(.45) contrast(1.6); }
.ld-theme .iradio_square-blue:not(.checked), .ld-theme .icheckbox_square-blue:not(.checked) { filter: grayscale(1) brightness(1.05); }
/* native checkboxes/radios */
.ld-theme input[type="checkbox"], .ld-theme input[type="radio"] { accent-color: var(--ld-ink); }

/* domain search box on the cart */
.ld-theme #order-standard_cart textarea.form-control,
.ld-theme #order-standard_cart .domain-checker-container textarea { border-radius: var(--ld-radius-sm); padding: 12px 14px; }
.ld-theme #order-standard_cart .domain-checker-container,
.ld-theme #order-standard_cart .domain-selection-options .option { border-radius: var(--ld-radius); }
.ld-theme #order-standard_cart .domain-selection-options .option-selected { background: var(--ld-surface); border: 1px solid var(--ld-line); }
