/* *****************************************************

    ** Twenty-One Modern — Custom Stylesheet **

    Full visual redesign layer on top of the stock Twenty-One theme.
    Loaded last in the cascade (includes/head.tpl), so every rule
    here overrides the compiled theme.css. Purely cosmetic: no
    .tpl markup, JS, form names, ids or data-attributes are
    touched, so all WHMCS behaviour stays exactly the same.

    Brand colors live in :root below — change --primary-* to
    re-brand everything (also flows into the nexus_cart orderform).

***************************************************** */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* Stock Twenty-One rem base — kept so existing spacing/layout scale is unchanged */
html {
    font-size: 14px;
}

:root {
    --white: #fff;

    /* Neutral (cool slate) */
    --neutral-50: #f8fafc;
    --neutral-100: #f1f5f9;
    --neutral-200: #e2e8f0;
    --neutral-300: #cbd5e1;
    --neutral-400: #94a3b8;
    --neutral-500: #64748b;
    --neutral-600: #475569;
    --neutral-700: #334155;
    --neutral-800: #1e293b;
    --neutral-900: #0f172a;
    --neutral-950: #020617;

    /* Brand blue */
    --primary-50: #eff6ff;
    --primary-100: #dbeafe;
    --primary-200: #bfdbfe;
    --primary-300: #93c5fd;
    --primary-400: #60a5fa;
    --primary-500: #3b82f6;
    --primary-600: #2563eb;
    --primary-700: #1d4ed8;
    --primary-800: #1e40af;
    --primary-900: #1e3a8a;
    --primary-950: #172554;

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

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

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

    --info: var(--primary-600);
    --info-lifted: var(--primary-700);
    --info-accented: var(--primary-800);

    --notice: #7c3aed;
    --notice-lifted: #6d28d9;
    --notice-accented: #5b21b6;

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

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

    --grayscale: var(--neutral-900);
    --grayscale-lifted: var(--neutral-800);
    --grayscale-accented: var(--neutral-700);

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

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

    --border-muted: #e6eaf0;
    --border: var(--neutral-300);
    --border-lifted: var(--neutral-400);
    --border-accented: var(--neutral-600);

    --bg: var(--white);
    --bg-muted: var(--neutral-50);
    --bg-lifted: #f5f7fb;
    --bg-accented: var(--neutral-200);
    --bg-inverted: #0b1220;

    --yellow-200: #fef08a;
    --yellow-300: #fde047;
    --teal-300: #5eead4;
    --teal-400: #2dd4bf;
    --emerald-300: #6ee7b7;
    --pink-400: #f472b6;

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

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

    --rounding-sm: 0.5rem;
    --rounding-md: 0.75rem;
    --rounding-lg: 1rem;
    --rounding-xl: 1.25rem;

    --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 6px 16px -4px rgba(15, 23, 42, 0.10), 0 2px 4px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 20px 40px -12px rgba(15, 23, 42, 0.18), 0 4px 10px rgba(15, 23, 42, 0.05);
    --shadow-focus: 0 0 0 4px rgba(37, 99, 235, 0.15);
    --ease: cubic-bezier(0.2, 0.8, 0.2, 1);

    --letter-spacing: -0.005em;
    --disabled-opacity: 45%;
}

/* =====================================================
   Base & typography
   ===================================================== */

html, body, .btn, .form-control, .custom-select, .navbar, .dropdown-menu,
.popover, .tooltip, .modal, input, select, textarea, button,
.popover-user-notifications {
    font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body {
    color: var(--text);
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    color: var(--text);
    font-weight: 700;
    letter-spacing: -0.02em;
}

a {
    color: var(--primary);
    transition: color 0.15s ease;
}
a:hover {
    color: var(--primary-lifted);
}

.text-muted {
    color: var(--text-lifted) !important;
}

::selection {
    background-color: var(--primary-100);
    color: var(--primary-900);
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible {
    outline: none;
    box-shadow: var(--shadow-focus);
}

input[type="checkbox"],
input[type="radio"] {
    accent-color: var(--primary);
}

hr {
    border-top-color: var(--border-muted);
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background-color: var(--neutral-300);
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background-color: var(--neutral-400); }

/* =====================================================
   Page shell
   ===================================================== */

section#main-body {
    padding: 8px 0 48px;
    background-color: var(--bg-lifted);
    background-image: radial-gradient(1200px 400px at 50% -200px, rgba(37, 99, 235, 0.07), transparent 70%);
    background-repeat: no-repeat;
}

section#main-content,
.main-content {
    margin-bottom: 24px;
}

/* =====================================================
   Topbar (logged-in strip)
   ===================================================== */

header.header .topbar {
    padding: 4px 0;
    background-color: var(--bg-inverted);
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
}

header.header .topbar .btn,
header.header .topbar .active-client .btn {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.72);
    border-radius: var(--rounding-sm);
    padding: 0.35rem 0.6rem;
}

header.header .topbar .btn:hover,
header.header .topbar .active-client .btn:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.08);
}

header.header .topbar .active-client .input-group-text {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

header.header .topbar .active-client .btn.btn-active-client span {
    border-bottom: 0;
    color: #fff;
    font-weight: 600;
}

/* =====================================================
   Header / main navigation
   ===================================================== */

header.header {
    position: relative;
    z-index: 1020;
    background-color: #fff;
    border-bottom: 1px solid var(--border-muted);
}

header.header .navbar {
    min-height: 0;
}

header.header .navbar.navbar-light {
    min-height: 68px;
}

header.header .navbar .container {
    justify-content: space-between;
}

header.header .logo-img {
    max-height: 44px;
    width: auto;
}

/* Search pill */
header.header .search {
    width: 300px;
    background-color: var(--bg-muted);
    border: 1px solid var(--border-muted);
    border-radius: 999px;
    overflow: hidden;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

header.header .search .form-control,
header.header .search .btn {
    background-color: transparent;
    min-height: 0;
    font-size: 14px;
}

header.header .search .btn {
    color: var(--text-muted);
    padding-left: 14px;
}

header.header .search .btn:hover {
    background-color: transparent;
    color: var(--primary);
}

header.header .search:focus-within {
    background-color: #fff;
    border-color: var(--primary-300);
    box-shadow: var(--shadow-focus);
}

/* Toolbar icon buttons (cart / menu) */
header.header .navbar-nav {
    margin-top: 0;
    margin-bottom: 0;
}

header.header .toolbar {
    gap: 8px;
    align-items: center;
}

header.header .toolbar .nav-item.ml-2 {
    margin-left: 0 !important;
}

header.header .toolbar .nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    font-size: 16px;
    color: var(--text-accented);
    background-color: #fff;
    border: 1px solid var(--border-muted);
    border-radius: var(--rounding-md);
    box-shadow: var(--shadow-xs);
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

header.header .toolbar .nav-link:hover,
header.header .toolbar .nav-link:focus {
    color: var(--primary);
    background-color: var(--primary-50);
    border-color: var(--primary-200);
}

header.header .toolbar .nav-link .badge {
    top: -7px;
    right: -7px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    font-size: 11px;
    line-height: 20px;
    color: #fff;
    background-color: var(--primary);
    border: 2px solid #fff;
    border-radius: 999px;
}

/* Desktop nav row */
header.header .navbar-nav a {
    font-size: 14.5px;
    font-weight: 500;
}

header.header #mainNavbar .navbar-nav > li > a {
    color: var(--text-accented);
    border-radius: var(--rounding-sm);
    transition: color 0.15s ease, background-color 0.15s ease;
}

header.header #mainNavbar .navbar-nav > li > a:hover,
header.header #mainNavbar .navbar-nav > li.show > a {
    color: var(--text);
    background-color: var(--bg-lifted);
    text-decoration: none;
}

header.header #mainNavbar .navbar-nav > li > a i {
    color: var(--text-muted);
}

header.header .dropdown-toggle::after {
    margin-left: 0.4em;
    vertical-align: 0.15em;
    border-top-width: 0.28em;
    border-right-width: 0.28em;
    border-left-width: 0.28em;
    opacity: 0.55;
}

/* Floating dropdown panels */
.dropdown-menu {
    padding: 6px;
    border: 1px solid var(--border-muted);
    border-radius: var(--rounding-md);
    box-shadow: var(--shadow-lg);
    font-size: 14px;
}

.dropdown-item {
    border-radius: var(--rounding-sm);
    color: var(--text-accented);
    transition: background-color 0.12s ease, color 0.12s ease;
}

.dropdown-item:hover,
.dropdown-item:focus {
    color: var(--text);
    background-color: var(--bg-lifted);
}

.dropdown-item.active,
.dropdown-item:active {
    color: var(--primary-700);
    background-color: var(--primary-50);
}

.dropdown-divider {
    margin: 6px 0;
    border-top-color: var(--border-muted);
}

header.header .dropdown-menu li.dropdown-item {
    padding: 0;
    background: transparent;
}

header.header .dropdown-menu a.dropdown-item {
    padding: 8px 12px !important;
    font-size: 14px;
}

header.header .dropdown-menu a.dropdown-item i {
    width: 18px;
    color: var(--text-muted);
}

/* Desktop (xl+) */
@media (min-width: 1200px) {
    header.header .main-navbar-wrapper {
        border-top: 1px solid var(--border-muted);
    }

    header.header #mainNavbar {
        padding: 6px 0;
    }

    header.header #nav {
        gap: 2px;
    }

    header.header #mainNavbar .navbar-nav > li > a {
        display: block;
        padding: 8px 14px;
    }

    header.header #mainNavbar .navbar-nav.ml-auto {
        gap: 2px;
    }
}

/* Mobile / tablet (< xl) */
@media (max-width: 1199.98px) {
    header.header .main-navbar-wrapper {
        min-height: 0;
    }

    header.header #mainNavbar {
        margin: 4px 0 14px;
        padding: 10px;
        background-color: #fff;
        border: 1px solid var(--border-muted);
        border-radius: var(--rounding-lg);
        box-shadow: var(--shadow-md);
    }

    header.header #mainNavbar .search {
        width: 100%;
        margin-bottom: 8px !important;
    }

    header.header #nav,
    header.header #mainNavbar .navbar-nav {
        gap: 0;
    }

    header.header #mainNavbar .navbar-nav.ml-auto {
        margin-top: 6px;
        padding-top: 6px;
        border-top: 1px solid var(--border-muted);
    }

    header.header #mainNavbar .navbar-nav > li > a {
        display: flex;
        align-items: center;
        padding: 11px 12px;
        font-size: 15px;
    }

    header.header #mainNavbar .navbar-nav > li > a.dropdown-toggle::after {
        margin-left: auto;
    }

    header.header #mainNavbar .navbar-nav .dropdown-menu {
        position: static;
        float: none;
        width: 100%;
        margin: 2px 0 6px;
        padding: 4px 0 4px 12px;
        border: 0;
        border-left: 2px solid var(--border-muted);
        border-radius: 0;
        box-shadow: none;
        background: transparent;
    }
}

@media (max-width: 575.98px) {
    header.header .logo-img {
        max-height: 36px;
        max-width: 170px;
    }

    header.header .navbar.navbar-light {
        min-height: 60px;
    }

    header.header .navbar .container {
        justify-content: space-between !important;
    }
}

/* =====================================================
   Breadcrumb — blended into the page, no grey bar
   ===================================================== */

.master-breadcrumb {
    background-color: var(--bg-lifted);
    border: 0;
}

.master-breadcrumb .breadcrumb {
    padding: 18px 0 6px;
    background-color: transparent;
    font-size: 13px;
    font-weight: 500;
}

.master-breadcrumb .breadcrumb a {
    color: var(--text-lifted);
}

.master-breadcrumb .breadcrumb a:hover {
    color: var(--primary);
    text-decoration: none;
}

.master-breadcrumb .breadcrumb .breadcrumb-item.active {
    color: var(--text);
    font-weight: 600;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: var(--text-muted);
}

/* =====================================================
   Cards
   ===================================================== */

.card {
    border: 1px solid var(--border-muted);
    border-radius: var(--rounding-lg);
    box-shadow: var(--shadow-xs);
}

.card-header {
    background-color: transparent;
    border-bottom: 1px solid var(--border-muted);
}

.card-header:first-child {
    border-radius: var(--rounding-lg) var(--rounding-lg) 0 0;
}

.card-footer {
    background-color: var(--bg-muted);
    border-top: 1px solid var(--border-muted);
}

.card-footer:last-child {
    border-radius: 0 0 var(--rounding-lg) var(--rounding-lg);
}

.primary-content .card {
    border-radius: var(--rounding-lg);
    transition: box-shadow 0.2s var(--ease);
}

.primary-content .card-title {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

body .primary-content .card {
    margin-bottom: 20px;
}

@media (max-width: 575.98px) {
    body .primary-content .card .card-body {
        padding: 20px;
    }
}

/* Kill the coloured top stripe ("card-accent-*") everywhere — very WHMCS */
.primary-content [class*="card-accent-"],
.client-home-cards [class*="card-accent-"] {
    border-top: 1px solid var(--border-muted);
}

/* =====================================================
   Sidebar
   ===================================================== */

.sidebar .card-sidebar {
    margin-bottom: 16px !important;
    border: 1px solid var(--border-muted);
    border-radius: var(--rounding-lg);
    box-shadow: var(--shadow-xs);
    overflow: hidden;
}

.sidebar .card-header {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-muted);
}

.sidebar .card-title,
.sidebar .card-sidebar .panel-title {
    font-size: 14px !important;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.sidebar .card-minimise {
    color: var(--text-muted);
    font-size: 12px;
    margin-top: 3px;
}

.sidebar .list-group {
    padding: 6px;
}

.sidebar .list-group-item {
    margin: 1px 0;
    padding: 9px 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-accented);
    border-radius: var(--rounding-sm) !important;
    transition: background-color 0.12s ease, color 0.12s ease;
}

.sidebar .list-group-item:hover,
.sidebar .list-group-item:focus {
    color: var(--text);
    background-color: var(--bg-lifted);
}

.sidebar .list-group-item.active,
.sidebar .list-group-item.active:hover,
.sidebar .list-group-item.active:focus {
    color: var(--primary-700);
    background-color: var(--primary-50);
    font-weight: 600;
}

.sidebar .list-group-item .sidebar-menu-item-icon,
.sidebar .list-group-item > i {
    width: 18px;
    color: var(--text-muted);
}

.sidebar .list-group-item.active .sidebar-menu-item-icon,
.sidebar .list-group-item.active > i {
    color: var(--primary);
}

.sidebar .sidebar-menu-item-icon-wrapper {
    margin-right: 0.55rem;
}

body .sidebar .list-group-item .badge,
.sidebar .list-group-item .badge {
    width: auto;
    min-width: 24px;
    padding: 3px 8px;
    color: var(--text-accented);
    background-color: var(--bg-lifted);
    border: 1px solid var(--border-muted);
}

.sidebar .list-group-item.active .badge {
    color: var(--primary-700);
    background-color: #fff;
    border-color: var(--primary-200);
}

.sidebar .card-footer {
    background-color: var(--bg-muted);
}

body .sidebar .btn-default {
    border: 1px solid var(--border);
}

body .sidebar .btn-success {
    background: var(--primary);
    border-color: var(--primary);
}

body .sidebar .btn-success:hover {
    background: var(--primary-lifted);
    border-color: var(--primary-lifted);
}

/* =====================================================
   Buttons
   ===================================================== */

.btn {
    font-weight: 600;
    border-radius: var(--rounding-sm);
    letter-spacing: -0.005em;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

.btn:active {
    transform: translateY(1px);
}

.btn-lg {
    border-radius: var(--rounding-md);
}

.btn-primary,
.btn-primary:disabled,
.btn-primary.disabled {
    color: #fff;
    background: var(--primary);
    border-color: var(--primary);
    border-radius: var(--rounding-sm);
    box-shadow: 0 1px 2px rgba(37, 99, 235, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary:not(:disabled):not(.disabled):active {
    color: #fff;
    background: var(--primary-lifted);
    border-color: var(--primary-lifted);
}

.btn-primary:focus,
.btn-primary.focus {
    box-shadow: var(--shadow-focus);
}

.btn-default,
.btn-secondary,
.btn-light {
    color: var(--text);
    background-color: #fff;
    border-color: var(--border);
    border-radius: var(--rounding-sm);
    box-shadow: var(--shadow-xs);
}

.btn-default:hover,
.btn-default:focus,
.btn-secondary:hover,
.btn-light:hover {
    color: var(--text);
    background-color: var(--bg-lifted);
    border-color: var(--border);
}

.btn-default:active,
.btn-default.active,
.open > .dropdown-toggle.btn-default {
    color: var(--text);
    background-color: var(--bg-accented);
    border-color: var(--border);
}

.btn-success {
    background-color: var(--success);
    border-color: var(--success);
    border-radius: var(--rounding-sm);
}

.btn-success:hover,
.btn-success:focus {
    background-color: var(--success-lifted);
    border-color: var(--success-lifted);
}

.btn-danger {
    background-color: var(--error);
    border-color: var(--error);
    border-radius: var(--rounding-sm);
}

.btn-danger:hover {
    background-color: var(--error-lifted);
    border-color: var(--error-lifted);
}

.btn-outline-primary,
body #main-body .btn-outline-primary {
    color: var(--primary);
    background-color: #fff;
    border: 1px solid var(--primary-200);
    border-radius: var(--rounding-sm);
}

.btn-outline-primary:hover,
body #main-body .btn-outline-primary:hover {
    color: #fff;
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-link {
    color: var(--primary);
    font-weight: 600;
}

.btn-link:hover {
    color: var(--primary-lifted);
}

.btn.btn-success.open-modal.twofa-config-link.enable:hover {
    background-color: var(--primary);
    border-color: var(--primary);
}

body .primary-content .btn-success.btn-lg[name='enable'] {
    background: var(--primary);
    border-color: var(--primary);
}

body .primary-content .btn-success.btn-lg[name='enable']:hover {
    background: var(--primary-lifted);
    border-color: var(--primary-lifted);
}

body .primary-content .btn-success.btn-lg[name='enable']:focus,
.btn.btn-success.open-modal.twofa-config-link.enable:focus {
    box-shadow: var(--shadow-focus);
}

body form.using-password-strength .btn-primary:disabled {
    background-color: var(--primary-300);
    border-color: var(--primary-300);
}

/* =====================================================
   Forms
   ===================================================== */

label,
.form-control-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-accented);
}

.form-control,
.custom-select {
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: var(--rounding-sm);
    box-shadow: var(--shadow-xs);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control:not(.form-control-sm):not(.form-control-lg):not(textarea),
.custom-select:not(.custom-select-sm) {
    min-height: 42px;
}

.input-group-xs > .form-control,
.input-group-xs > .custom-select,
.input-group-sm > .form-control,
.input-group-sm > .custom-select {
    min-height: 0 !important;
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-control:focus,
.custom-select:focus {
    border-color: var(--primary-400);
    box-shadow: var(--shadow-focus);
}

.form-control:disabled,
.form-control[readonly] {
    background-color: var(--bg-muted);
}

.input-group-text {
    color: var(--text-muted);
    background-color: var(--bg-muted);
    border-color: var(--border);
    border-radius: var(--rounding-sm);
}

.input-group:focus-within .input-group-text {
    color: var(--primary);
}

.input-group > .form-control:focus {
    z-index: 3;
}

.input-group .btn-reveal-pw {
    border-radius: 0 var(--rounding-sm) var(--rounding-sm) 0;
    color: var(--text-muted);
    background-color: var(--bg-muted);
    border-color: var(--border);
    box-shadow: none;
}

.input-group .btn-reveal-pw:hover,
.input-group .btn-reveal-pw:active {
    color: var(--primary);
    background-color: var(--bg-muted);
    border-color: var(--border);
}

.custom-control-input:checked ~ .custom-control-label::before {
    background-color: var(--primary);
    border-color: var(--primary);
}

.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-primary,
.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-success {
    background: var(--primary);
}

/* =====================================================
   Alerts
   ===================================================== */

.alert {
    padding: 14px 16px;
    font-size: 14px;
    border-radius: var(--rounding-md);
    border-width: 1px;
}

.alert-success {
    color: #166534;
    background-color: #f0fdf4;
    border-color: #bbf7d0;
}

.alert-info {
    color: var(--primary-800);
    background-color: var(--primary-50);
    border-color: var(--primary-200);
}

.alert-warning {
    color: #92400e;
    background-color: #fffbeb;
    border-color: #fde68a;
}

.alert-danger {
    color: #991b1b;
    background-color: #fef2f2;
    border-color: #fecaca;
}

.alert a:not(.btn) {
    color: inherit;
    font-weight: 700;
    text-decoration: underline;
}

/* =====================================================
   Badges & status chips (soft-tinted, SaaS style)
   ===================================================== */

.badge,
.label {
    font-weight: 600;
    letter-spacing: 0.01em;
    border-radius: 999px;
}

.label.status {
    display: inline-block;
    padding: 4px 10px;
    font-size: 12px;
    line-height: 1.2;
}

.label.status-active, .label.status-open, .label.status-completed,
.label.status-paid, .label.status-accepted, .label.status-delivered {
    color: #15803d !important;
    background-color: #dcfce7;
}

.label.status-pending, .label.status-pending-transfer, .label.status-customer-reply,
.label.status-inprogress, .label.status-grace, .label.status-redemption,
.label.status-pending-registration, .label.status-payment-pending,
.label.status-onhold, .label.status-refunded {
    color: #b45309 !important;
    background-color: #fef3c7;
}

.label.status-suspended, .label.status-unpaid, .label.status-fraud,
.label.status-lost, .label.status-dead, .label.status-collections {
    color: #b91c1c !important;
    background-color: #fee2e2;
}

.label.status-answered {
    color: var(--primary-700) !important;
    background-color: var(--primary-100);
}

.label.status-closed, .label.status-cancelled, .label.status-terminated,
.label.status-expired, .label.status-transferred-away {
    color: var(--neutral-600) !important;
    background-color: var(--neutral-100);
}

.badge-dark {
    background-color: var(--neutral-900);
}

.badge-primary,
.badge-info {
    background-color: var(--primary);
}

/* =====================================================
   Tables
   ===================================================== */

.table {
    color: var(--text);
}

.table thead th,
table.table-list thead th {
    padding: 12px 14px;
    color: var(--text-lifted);
    background-color: var(--bg-muted);
    border-top: 0;
    border-bottom: 1px solid var(--border-muted);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.table td,
.table th {
    border-top-color: var(--border-muted);
}

table.table-list tbody td {
    padding: 14px;
    font-size: 14px;
}

.dataTables_wrapper table.table-list,
body .dataTables_wrapper table.table-list {
    border: 1px solid var(--border-muted);
    border-radius: var(--rounding-md);
    overflow: hidden;
}

.dataTables_wrapper table.table-list thead th.sorting_asc,
.dataTables_wrapper table.table-list thead th.sorting_desc {
    color: var(--text);
    background-color: var(--bg-lifted);
}

.table-list > tbody > tr > td {
    border-color: var(--border-muted);
}

.table-list > tbody > tr:hover > td {
    background-color: #f8faff;
}

body .dataTables_wrapper .dataTables_filter label .form-control {
    border-radius: 999px;
    min-height: 40px;
}

.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_length {
    color: var(--text-lifted);
    font-size: 13px;
}

@media (max-width: 600px) {
    body .dataTables_wrapper .dataTables_filter label .form-control {
        width: 100%;
    }
}

/* Pagination */
.pagination .page-link,
.pagination > li > a,
.pagination > li > span {
    margin: 0 2px;
    min-width: 36px;
    text-align: center;
    color: var(--text-accented);
    border: 1px solid var(--border-muted);
    border-radius: var(--rounding-sm) !important;
}

.pagination .page-link:hover {
    color: var(--text);
    background-color: var(--bg-lifted);
}

.pagination > .active > a,
.pagination > .active > a:focus,
.pagination > .active > a:hover,
.pagination > .active > span,
.page-item.active .page-link {
    color: #fff;
    background-color: var(--primary);
    border-color: var(--primary);
}

/* =====================================================
   Tabs (underline style)
   ===================================================== */

.nav-tabs {
    border-bottom: 1px solid var(--border-muted);
}

.nav-tabs .nav-link {
    color: var(--text-lifted);
    font-weight: 600;
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    margin-bottom: -1px;
}

.nav-tabs .nav-link:hover {
    color: var(--text);
    border-bottom-color: var(--border);
}

.nav-tabs .nav-link.active,
.nav-tabs .nav-item.show .nav-link {
    color: var(--primary);
    background-color: transparent;
    border-bottom-color: var(--primary);
}

.nav-pills .nav-link {
    border-radius: var(--rounding-sm);
    font-weight: 600;
}

.nav-pills .nav-link.active {
    background-color: var(--primary);
}

/* =====================================================
   Client dashboard — stat tiles
   ===================================================== */

.tiles {
    margin-bottom: 20px !important;
}

.tiles .row.no-gutters {
    margin: -6px;
}

.tiles .row.no-gutters > [class*="col-"] {
    padding: 6px;
}

.tiles .row > div:nth-child(n) > .tile {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 20px;
    background-color: #fff;
    border: 1px solid var(--border-muted) !important;
    border-radius: var(--rounding-lg);
    box-shadow: var(--shadow-xs);
    transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s ease;
}

.tiles .tile:hover {
    background-color: #fff;
    transform: translateY(-2px);
    border-color: var(--primary-200) !important;
    box-shadow: var(--shadow-md);
}

.tiles .tile .title {
    order: 1;
    padding-right: 48px;
    color: var(--text-lifted);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.tiles .tile .stat {
    order: 2;
    margin-top: 10px;
    color: var(--text);
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.tiles .tile .highlight {
    display: none;
}

.tiles .tile i,
.tiles .tile:hover i {
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    line-height: 40px;
    font-size: 17px;
    text-align: center;
    border-radius: var(--rounding-md);
}

.tiles .row > div:nth-child(1) .tile i { color: var(--primary); background-color: var(--primary-50); }
.tiles .row > div:nth-child(2) .tile i { color: #16a34a; background-color: #f0fdf4; }
.tiles .row > div:nth-child(3) .tile i { color: #e11d48; background-color: #fff1f2; }
.tiles .row > div:nth-child(4) .tile i { color: #d97706; background-color: #fffbeb; }

@media (max-width: 575.98px) {
    .tiles .row > div:nth-child(n) > .tile {
        padding: 16px;
    }

    .tiles .tile .stat {
        font-size: 26px;
    }

    .tiles .tile i,
    .tiles .tile:hover i {
        width: 32px;
        height: 32px;
        line-height: 32px;
        font-size: 14px;
        top: 12px;
        right: 12px;
    }

    .tiles .tile .title {
        padding-right: 36px;
        font-size: 11px;
    }
}

/* =====================================================
   Client dashboard — panels
   ===================================================== */

.client-home-cards .card,
body .primary-content .client-home-cards .card {
    font-size: 14px;
    border: 1px solid var(--border-muted);
    overflow: hidden;
}

.client-home-cards .card-header,
body .primary-content .client-home-cards .card .card-header {
    padding: 14px 18px;
    background-color: #fff;
    border-bottom: 1px solid var(--border-muted);
}

.client-home-cards .card-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 30px;
}

.client-home-cards .card-title > i {
    margin-right: 4px;
    color: var(--primary);
}

body .primary-content .client-home-cards .card .card-header .btn {
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.6;
    color: var(--text-accented);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--rounding-sm);
}

body .primary-content .client-home-cards .card .card-header .btn:hover {
    color: #fff;
    background: var(--primary);
    border-color: var(--primary);
}

.client-home-cards .list-group,
body .primary-content .client-home-cards .list-group {
    border-top: 0 !important;
    border-bottom: 0 !important;
}

.client-home-cards .list-group .list-group-item,
body .primary-content .client-home-cards .card .list-group .list-group-item {
    padding: 11px 18px;
    border-bottom: 1px solid var(--border-muted);
    border-radius: 0;
    color: var(--text-accented);
}

.client-home-cards .list-group .list-group-item-action:hover {
    color: var(--text);
    background-color: var(--bg-muted);
}

.client-home-cards .card-body p {
    padding: 14px 18px;
}

.client-home-cards small {
    color: var(--text-lifted);
}

body .primary-content .client-home-cards .card .card-footer {
    background: var(--bg-muted);
    border-top: 1px solid var(--border-muted);
    border-radius: 0;
}

body .primary-content .client-home-cards .card .card-footer:empty {
    display: none;
}

body .primary-content .client-home-cards .card .card-footer .btn-view-more {
    color: var(--primary);
    font-weight: 600;
}

body .primary-content .client-home-cards .card .btn-success {
    background: var(--primary);
    border-color: var(--primary);
}

body .primary-content .client-home-cards .card .btn-success:hover {
    background: var(--primary-lifted);
    border-color: var(--primary-lifted);
}

/* =====================================================
   Public homepage — domain search hero
   ===================================================== */

#frmDomainHomepage .home-domain-search {
    position: relative;
    color: #fff;
    background-color: var(--primary-950) !important;
    background-image:
        radial-gradient(800px 300px at 15% 0%, rgba(96, 165, 250, 0.35), transparent 60%),
        radial-gradient(700px 300px at 90% 100%, rgba(124, 58, 237, 0.30), transparent 60%),
        linear-gradient(135deg, #0b1220 0%, #172554 55%, #1e3a8a 100%);
}

#frmDomainHomepage .home-domain-search .p-5 {
    padding: 72px 0 56px !important;
}

#frmDomainHomepage .home-domain-search h2 {
    color: #fff;
    font-size: 40px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

#frmDomainHomepage .input-group-wrapper,
body #frmDomainHomepage .input-group-wrapper {
    max-width: 760px;
    margin: 28px auto 20px;
    padding: 8px;
    background-color: #fff;
    border: 0;
    border-radius: var(--rounding-lg);
    box-shadow: 0 30px 60px -20px rgba(2, 6, 23, 0.6);
}

#frmDomainHomepage .input-group-wrapper .form-control {
    min-height: 48px;
    font-size: 16px;
    box-shadow: none;
}

body #frmDomainHomepage .btn {
    min-height: 48px;
    padding-left: 22px;
    padding-right: 22px;
    border-radius: var(--rounding-md) !important;
}

body #frmDomainHomepage .btn-primary:hover,
body #frmDomainHomepage .btn-primary:focus {
    background: var(--primary-lifted);
    border-color: var(--primary-lifted);
}

body #frmDomainHomepage #btnTransfer,
body #frmDomainHomepage #btnTransfer2 {
    color: var(--text);
    background: var(--bg-lifted);
    border-color: var(--bg-lifted);
}

body #frmDomainHomepage #btnTransfer:hover,
body #frmDomainHomepage #btnTransfer:focus,
body #frmDomainHomepage #btnTransfer2:hover {
    color: var(--text);
    background: var(--bg-accented);
    border-color: var(--bg-accented);
}

#frmDomainHomepage .home-domain-search .tld-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

#frmDomainHomepage .home-domain-search .tld-logos li {
    float: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px 6px 8px;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 999px;
}

#frmDomainHomepage .home-domain-search .tld-logos img {
    width: 44px;
}

#frmDomainHomepage .home-domain-search .btn-link {
    float: none !important;
    display: table;
    margin: 16px auto 0;
    min-height: 0;
    color: rgba(255, 255, 255, 0.85);
}

#frmDomainHomepage .home-domain-search .btn-link:hover {
    color: #fff;
}

@media (max-width: 575.98px) {
    #frmDomainHomepage .home-domain-search .p-5 {
        padding: 44px 0 36px !important;
    }

    #frmDomainHomepage .home-domain-search h2 {
        font-size: 28px;
    }

    #frmDomainHomepage .input-group-wrapper {
        margin-top: 20px;
    }

    #frmDomainHomepage .row.d-sm-none .btn {
        margin-bottom: 8px;
    }
}

/* =====================================================
   Public homepage — product groups & quick links
   ===================================================== */

#main-body h2.text-center {
    margin-top: 40px !important;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.card-columns.home .card {
    border-radius: var(--rounding-lg);
    transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s ease;
}

.card-columns.home .card:hover {
    transform: translateY(-3px);
    border-color: var(--primary-200);
    box-shadow: var(--shadow-md);
}

.card-columns.home .pricing-card-title {
    font-size: 19px;
    font-weight: 700;
}

.card-columns.home .card p {
    color: var(--text-lifted);
}

body #main-body .action-icon-btns a {
    margin-bottom: 14px;
    padding: 24px 12px 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-accented);
    background-color: #fff;
    border: 1px solid var(--border-muted);
    border-radius: var(--rounding-lg);
    box-shadow: var(--shadow-xs);
    transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s ease, color 0.2s ease;
}

body #main-body .action-icon-btns a:hover {
    color: var(--text);
    transform: translateY(-3px);
    border-color: var(--primary-200);
    box-shadow: var(--shadow-md);
}

.action-icon-btns a .ico-container,
.action-icon-btns a:hover .ico-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin: 0 auto 14px;
    font-size: 22px;
    line-height: 1;
    background-color: var(--primary-50);
    border-radius: var(--rounding-lg);
    transition: background-color 0.2s ease;
}

.action-icon-btns a .ico-container i {
    color: var(--primary);
}

.action-icon-btns a:hover .ico-container {
    background-color: var(--primary-100);
}

/* =====================================================
   Auth pages (login / register / password reset)
   ===================================================== */

.login-form .card,
.primary-content .card.mw-540 {
    border: 1px solid var(--border-muted);
    border-radius: var(--rounding-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.login-form .card .h3 {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.login-form #login {
    min-width: 140px;
    min-height: 44px;
}

.login-form .card-footer {
    padding-top: 16px;
    padding-bottom: 16px;
    text-align: center;
    background-color: var(--bg-muted);
}

.input-group-merge .input-group-text {
    background-color: #fff;
    border-right: 0;
}

.input-group-merge .input-group-prepend + .form-control {
    border-left: 0;
}

@media (max-width: 575.98px) {
    .login-form .card .card-body {
        padding: 28px 20px !important;
    }
}

/* =====================================================
   Modals & popovers
   ===================================================== */

.modal-content {
    border: 0;
    border-radius: var(--rounding-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.modal .modal-header {
    padding: 18px 22px;
    background-color: #fff;
    border-bottom: 1px solid var(--border-muted);
}

.modal .modal-title {
    font-weight: 700;
}

.modal-footer {
    background-color: var(--bg-muted);
    border-top: 1px solid var(--border-muted);
}

.modal-backdrop.show {
    opacity: 0.55;
    background-color: #0b1220;
}

.popover {
    border: 1px solid var(--border-muted);
    border-radius: var(--rounding-md);
    box-shadow: var(--shadow-lg);
}

.popover-user-notifications {
    border-radius: var(--rounding-md);
    border-color: var(--border-muted);
}

.tooltip-inner {
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 500;
    background-color: var(--neutral-900);
    border-radius: var(--rounding-sm);
}

.modal-localisation .modal-content {
    background-color: #0b1220;
}

.modal-localisation .modal-footer {
    background-color: transparent;
}

.modal-localisation .item-selector .item {
    padding: 6px;
    border-color: rgba(255, 255, 255, 0.15);
    border-radius: var(--rounding-sm);
}

.modal-localisation .item-selector .item.active,
.modal-localisation .item-selector .item:hover {
    color: #fff;
    background-color: var(--primary);
    border-color: var(--primary);
}

/* =====================================================
   List groups & misc
   ===================================================== */

.list-group-item {
    border-color: var(--border-muted);
}

.list-group-item.active {
    color: var(--primary-700);
    background-color: var(--primary-50);
    border-color: var(--primary-100);
}

.progress {
    height: 8px;
    background-color: var(--bg-accented);
    border-radius: 999px;
}

.progress-bar {
    background-color: var(--primary);
    border-radius: 999px;
}

.network-issue-alert {
    border-radius: 0;
}

/* =====================================================
   Footer
   ===================================================== */

footer.footer {
    padding: 40px 0 28px;
    color: rgba(255, 255, 255, 0.6);
    background-color: var(--bg-inverted);
    background-image: radial-gradient(900px 260px at 50% 0%, rgba(37, 99, 235, 0.18), transparent 70%);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 14px;
}

footer.footer .nav-link {
    padding: 6px 12px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    border-radius: var(--rounding-sm);
}

footer.footer .nav-link:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.06);
}

footer.footer .btn,
footer.footer .btn-outline-light {
    color: rgba(255, 255, 255, 0.85);
    border-color: rgba(255, 255, 255, 0.18);
    border-radius: 999px;
}

footer.footer .btn:hover,
footer.footer .btn-outline-light:hover {
    color: var(--text);
    background-color: #fff;
    border-color: #fff;
}

footer.footer .copyright {
    margin: 28px 0 0;
    padding-top: 20px;
    color: rgba(255, 255, 255, 0.45);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 13px;
}

@media (max-width: 991.98px) {
    footer.footer .list-inline {
        margin-bottom: 12px;
    }

    footer.footer .nav-link {
        padding: 6px 10px;
    }
}

/* =====================================================
   Mobile spacing
   ===================================================== */

@media (max-width: 991.98px) {
    section#main-body {
        padding-bottom: 32px;
    }

    .sidebar {
        margin-bottom: 4px;
    }
}

@media (max-width: 575.98px) {
    body {
        font-size: 14.5px;
    }

    .primary-content .card-title {
        font-size: 18px;
    }

    .master-breadcrumb .breadcrumb {
        padding-top: 14px;
        font-size: 12.5px;
    }

    .btn-return-to-admin {
        font-size: 12px;
    }
}

/* =====================================================
   Twenty-One specific overrides

   Twenty-One's compiled theme.css hardcodes its colours
   (#336699 primary, #404040 bars, #f1f1f1 page) instead of
   using CSS variables, so those spots are remapped here.
   ===================================================== */

body.primary-bg-color,
.primary-bg-color {
    background-color: var(--bg-lifted);
}

section#main-body {
    min-height: 350px;
}

/* Bootstrap "primary" utilities compiled with the old blue */
.text-primary { color: var(--primary) !important; }
.bg-primary { background-color: var(--primary) !important; }
.border-primary { border-color: var(--primary) !important; }

.btn:focus,
.btn.focus,
.btn-outline-primary:focus,
.btn-outline-primary.focus,
.custom-select:focus,
.custom-file-input:focus ~ .custom-file-label,
.custom-control-input:focus ~ .custom-control-label::before,
.page-link:focus {
    box-shadow: var(--shadow-focus);
}

header.header .btn:focus,
header.header .btn.focus {
    box-shadow: none;
}

.btn-primary:not(:disabled):not(.disabled).active,
.show > .btn-primary.dropdown-toggle {
    color: #fff;
    background-color: var(--primary-lifted);
    border-color: var(--primary-lifted);
}

.btn-outline-primary:not(:disabled):not(.disabled):active,
.btn-outline-primary:not(:disabled):not(.disabled).active,
.show > .btn-outline-primary.dropdown-toggle {
    color: #fff;
    background-color: var(--primary-lifted);
    border-color: var(--primary-lifted);
}

.btn-outline-primary.disabled,
.btn-outline-primary:disabled {
    color: var(--primary);
}

.btn-info,
.badge-info {
    color: #fff;
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-info:hover {
    background-color: var(--primary-lifted);
    border-color: var(--primary-lifted);
}

.custom-checkbox .custom-control-input:indeterminate ~ .custom-control-label::before {
    background-color: var(--primary);
    border-color: var(--primary);
}

.custom-range::-webkit-slider-thumb { background-color: var(--primary); }
.custom-range::-moz-range-thumb { background-color: var(--primary); }

.nav-pills .show > .nav-link {
    background-color: var(--primary);
}

.page-link {
    color: var(--text-accented);
}

.pagination {
    font-size: 13px;
}

.domain-pricing .tld-pricing-header div:nth-child(odd) {
    border-color: var(--primary);
}

/* Header — toolbar spacing and primary-nav right padding (pr-4 utility) */
header.header .toolbar .nav-item {
    margin-left: 0 !important;
}

header.header .navbar a {
    color: var(--text-accented);
}

@media (min-width: 1200px) {
    header.header #mainNavbar .navbar-nav > li > a {
        padding-right: 14px !important;
    }
}

@media (max-width: 1199.98px) {
    header.header #mainNavbar .navbar-nav > li > a {
        padding-right: 12px !important;
    }
}

/* Sidebar title size */
.sidebar .card-sidebar .panel-title {
    font-size: 14px;
}

/* Footer */
footer.footer {
    padding: 40px 0 28px;
    color: rgba(255, 255, 255, 0.6);
}

footer.footer .mb-7 {
    margin-bottom: 0 !important;
}

footer.footer .btn {
    padding: 4px 14px;
    font-size: 13px;
    line-height: 1.6;
    background-color: transparent;
}

@media (max-width: 991.98px) {
    footer.footer .list-inline.mb-7 {
        margin-bottom: 12px !important;
    }
}

/* AI / advanced domain search keeps its own layout; only skin it */
#frmDomainHomepage .input-group.advanced-input textarea {
    border: 0;
    border-radius: var(--rounding-md);
    outline: none;
    color: var(--text);
}

#frmDomainHomepage .input-group.advanced-input label {
    color: var(--text-accented);
}

#frmDomainHomepage .multiselect.dropdown-toggle {
    min-height: 40px;
    color: var(--text-accented);
    background: var(--bg-muted);
    border: 1px solid var(--border-muted);
}
