/*!
 * Visioning — premium design system for the WHMCS Twenty-One child theme
 *
 * Loaded after the parent theme (theme.min.css) and before custom.css, so it
 * refines Twenty-One without replacing it. Presentation only: no selector here
 * hides or disables a WHMCS form, field, or action.
 *
 * Contents
 *   00  Design tokens
 *   01  Base & typography
 *   02  Layout
 *   03  Header & navigation
 *   04  Breadcrumb
 *   05  Buttons
 *   06  Cards, panels & sidebar
 *   07  Forms
 *   08  Alerts & notifications
 *   09  Tables & pagination
 *   10  Status badges
 *   11  Dashboard
 *   12  Products, services & domains
 *   13  Billing
 *   14  Support, knowledgebase, announcements & downloads
 *   15  Account pages
 *   16  Authentication pages
 *   17  Order form (Standard Cart)
 *   18  Footer
 *   19  Modals, popovers, dropdowns & tooltips
 *   20  Accessibility & motion
 *   21  Responsive
 *   22  Print
 */

/* =========================================================================
   00  Design tokens
   ========================================================================= */
:root {
    /* Brand */
    --vt-primary: #1769ff;
    --vt-primary-hover: #0f57e0;
    --vt-primary-active: #0b48bd;
    --vt-primary-50: #eef4ff;
    --vt-primary-100: #dbe7ff;
    --vt-primary-200: #b6ceff;
    --vt-cyan: #00cfe8;
    --vt-cyan-50: #e6fbfd;
    --vt-navy: #101828;
    --vt-navy-800: #182337;
    --vt-navy-700: #243049;

    /* Surfaces & text */
    --vt-bg: #ffffff;
    --vt-bg-soft: #f5f8fc;
    --vt-bg-subtle: #eef2f8;
    --vt-text: #172033;
    --vt-text-muted: #667085;
    --vt-text-faint: #98a2b3;
    --vt-border: #e4e9f2;
    --vt-border-strong: #d0d8e6;

    /* Semantic */
    --vt-success: #12b76a;
    --vt-success-strong: #039855;
    --vt-success-text: #027a48;
    --vt-success-bg: #ecfdf3;
    --vt-danger: #f04438;
    --vt-danger-strong: #d92d20;
    --vt-danger-text: #b42318;
    --vt-danger-bg: #fef3f2;
    --vt-warning: #f79009;
    --vt-warning-strong: #dc6803;
    --vt-warning-text: #b54708;
    --vt-warning-bg: #fffaeb;
    --vt-info-text: #0e7090;
    --vt-info-bg: #ecfdff;
    --vt-neutral-text: #475467;
    --vt-neutral-bg: #f2f4f7;
    --vt-violet: #7a5af8;
    --vt-violet-bg: #f4f3ff;

    /* Gradients (used sparingly) */
    --vt-gradient-brand: linear-gradient(135deg, #1769ff 0%, #00cfe8 100%);
    --vt-gradient-hero: linear-gradient(120deg, #101828 0%, #142a5c 55%, #1769ff 120%);

    /* Typography */
    --vt-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --vt-font-mono: "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;

    /* Shape & depth */
    --vt-radius-sm: 6px;
    --vt-radius: 10px;
    --vt-radius-lg: 14px;
    --vt-radius-xl: 20px;
    --vt-radius-pill: 999px;
    --vt-shadow-xs: 0 1px 2px rgba(16, 24, 40, 0.05);
    --vt-shadow-sm: 0 1px 3px rgba(16, 24, 40, 0.08), 0 1px 2px rgba(16, 24, 40, 0.04);
    --vt-shadow-md: 0 6px 16px -4px rgba(16, 24, 40, 0.10), 0 2px 6px -2px rgba(16, 24, 40, 0.05);
    --vt-shadow-lg: 0 18px 40px -12px rgba(16, 24, 40, 0.18);
    --vt-focus-ring: 0 0 0 4px rgba(23, 105, 255, 0.18);

    /* Motion */
    --vt-ease: cubic-bezier(0.2, 0, 0, 1);
    --vt-speed: 160ms;

    /* Layout */
    --vt-header-h: 68px;
}

/* =========================================================================
   01  Base & typography
   ========================================================================= */
body.vt-theme {
    font-family: var(--vt-font);
    color: var(--vt-text);
    background-color: var(--vt-bg-soft);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-feature-settings: "cv11", "ss01";
    line-height: 1.55;
}

.vt-theme h1, .vt-theme h2, .vt-theme h3, .vt-theme h4, .vt-theme h5, .vt-theme h6,
.vt-theme .h1, .vt-theme .h2, .vt-theme .h3, .vt-theme .h4, .vt-theme .h5, .vt-theme .h6 {
    font-family: var(--vt-font);
    color: var(--vt-navy);
    font-weight: 600;
    letter-spacing: -0.015em;
    line-height: 1.25;
}

.vt-theme a {
    color: var(--vt-primary);
    transition: color var(--vt-speed) var(--vt-ease);
}

.vt-theme a:hover {
    color: var(--vt-primary-hover);
}

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

.vt-theme .text-primary {
    color: var(--vt-primary) !important;
}

.vt-theme hr {
    border-top-color: var(--vt-border);
}

.vt-theme code,
.vt-theme pre {
    font-family: var(--vt-font-mono);
}

.vt-theme ::selection {
    background: var(--vt-primary-100);
    color: var(--vt-navy);
}

.vt-theme .vt-link-muted {
    color: var(--vt-text-muted);
}

.vt-theme .vt-link-muted:hover {
    color: var(--vt-primary);
}

/* =========================================================================
   02  Layout
   ========================================================================= */
.vt-theme.primary-bg-color {
    background-color: var(--vt-bg-soft);
}

.vt-theme #main-body {
    padding: 28px 0 64px;
    min-height: 60vh;
}

.vt-theme .primary-content > .card,
.vt-theme .primary-content .card {
    margin-bottom: 20px;
}

.vt-theme .primary-content .card-title {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--vt-navy);
    letter-spacing: -0.015em;
}

.vt-theme .header-lined h1,
.vt-theme .primary-content > h1,
.vt-theme .primary-content > h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

/* =========================================================================
   03  Header & navigation
   ========================================================================= */
.vt-theme header.vt-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--vt-border);
    transition: box-shadow var(--vt-speed) var(--vt-ease);
}

.vt-theme header.vt-header.vt-scrolled {
    box-shadow: 0 4px 18px -8px rgba(16, 24, 40, 0.18);
}

.vt-theme header.vt-header .vt-header-main {
    min-height: var(--vt-header-h);
    padding: 10px 0;
    background: transparent;
}

.vt-theme header.vt-header .vt-header-main > .container {
    flex-wrap: nowrap;
}

/* Brand */
.vt-theme .vt-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--vt-navy);
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
    text-decoration: none;
    min-width: 0;
}

.vt-theme .vt-brand:hover {
    color: var(--vt-navy);
    text-decoration: none;
}

.vt-theme .vt-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--vt-gradient-brand);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 4px 12px -4px rgba(23, 105, 255, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.vt-theme .vt-brand-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vt-theme .vt-brand-inverse,
.vt-theme .vt-brand-inverse:hover {
    color: #fff;
}

.vt-theme header.header .logo-img {
    max-height: 40px;
    max-width: 220px;
}

/* Header search */
.vt-theme header.header .search {
    width: 300px;
    border: 1px solid var(--vt-border);
    border-radius: var(--vt-radius-pill);
    background: var(--vt-bg-soft);
    overflow: hidden;
    transition: border-color var(--vt-speed) var(--vt-ease), box-shadow var(--vt-speed) var(--vt-ease), background-color var(--vt-speed) var(--vt-ease);
}

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

.vt-theme header.header .search .btn,
.vt-theme header.header .search .form-control {
    background: transparent;
    border: 0;
    box-shadow: none;
    font-size: 0.93rem;
}

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

/* Toolbar icon buttons */
.vt-theme header.header .toolbar .nav-link,
.vt-theme .vt-icon-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid var(--vt-border);
    border-radius: var(--vt-radius);
    background: #fff;
    color: var(--vt-text-muted);
    font-size: 1rem;
    box-shadow: var(--vt-shadow-xs);
    transition: color var(--vt-speed) var(--vt-ease), border-color var(--vt-speed) var(--vt-ease), background-color var(--vt-speed) var(--vt-ease);
}

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

.vt-theme .vt-icon-btn-sm {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
    box-shadow: none;
}

.vt-theme header.header .toolbar .nav-link .badge,
.vt-theme .vt-badge-count {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: var(--vt-radius-pill);
    background: var(--vt-primary);
    color: #fff;
    font-size: 10.5px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    opacity: 1;
    border: 2px solid #fff;
    box-sizing: content-box;
}

.vt-theme .vt-badge-count {
    background: var(--vt-danger);
}

.vt-theme #cartItemCount.vt-empty {
    display: none;
}

.vt-theme #accountNotifications.has-alerts {
    color: var(--vt-navy);
}

/* Account chip */
.vt-theme .vt-account-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 3px 4px 3px 3px;
    border: 1px solid var(--vt-border);
    border-radius: var(--vt-radius-pill);
    background: #fff;
    box-shadow: var(--vt-shadow-xs);
    line-height: 1.2;
}

.vt-theme .vt-account-link,
.vt-theme .vt-mobile-account-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-right: 6px;
    color: var(--vt-text);
    text-decoration: none;
    min-width: 0;
}

.vt-theme .vt-account-link:hover,
.vt-theme .vt-mobile-account-link:hover {
    color: var(--vt-primary);
    text-decoration: none;
}

.vt-theme .vt-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--vt-primary-50), var(--vt-cyan-50));
    border: 1px solid var(--vt-primary-100);
    color: var(--vt-primary);
    font-weight: 700;
    font-size: 0.9rem;
}

.vt-theme .vt-account-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.vt-theme .vt-account-label {
    font-size: 0.72rem;
    color: var(--vt-text-faint);
    font-weight: 500;
}

.vt-theme .vt-account-name {
    max-width: 180px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-weight: 600;
    font-size: 0.9rem;
}

.vt-theme .vt-account-chip .vt-icon-btn {
    border-radius: 50%;
}

.vt-theme .btn-return-to-admin,
.vt-theme .vt-admin-return {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: var(--vt-radius-pill);
    background: var(--vt-warning-bg);
    color: var(--vt-warning-text);
    border: 1px solid #fedf89;
    font-size: 0.82rem;
    font-weight: 600;
}

.vt-theme .btn-return-to-admin:hover {
    background: #fef0c7;
    color: var(--vt-warning-text);
}

/* Main navigation row */
.vt-theme header.header .main-navbar-wrapper {
    padding: 0;
    background: transparent;
    border-top: 1px solid var(--vt-border);
}

.vt-theme header.header .main-navbar-wrapper .navbar-collapse {
    padding: 8px 0;
}

/*
 * Nav items intentionally stay under 30px tall: Twenty-One's autoCollapse()
 * moves items into "More" whenever #nav is 30px or taller.
 */
.vt-theme header.header #nav > li > a,
.vt-theme header.header .vt-secondary-nav > li > a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px !important;
    margin-right: 2px;
    font-size: 0.93rem;
    line-height: 17px;
    font-weight: 500;
    color: var(--vt-text-muted);
    border-radius: var(--vt-radius-sm);
    transition: color var(--vt-speed) var(--vt-ease), background-color var(--vt-speed) var(--vt-ease);
}

.vt-theme header.header #nav > li > a:hover,
.vt-theme header.header #nav > li.show > a,
.vt-theme header.header .vt-secondary-nav > li > a:hover,
.vt-theme header.header .vt-secondary-nav > li.show > a {
    color: var(--vt-navy);
    background: var(--vt-bg-subtle);
    text-decoration: none;
}

.vt-theme header.header #nav > li.active > a,
.vt-theme header.header #nav > li > a.active {
    color: var(--vt-primary);
    background: var(--vt-primary-50);
}

.vt-theme header.header .navbar-nav .badge {
    background: var(--vt-primary-50);
    color: var(--vt-primary);
    border-radius: var(--vt-radius-pill);
    font-weight: 600;
}

.vt-theme header.header .dropdown-toggle::after {
    border: 0;
    content: "\f107";
    font-family: "Font Awesome 5 Pro", "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: 0;
    margin-left: 2px;
    font-size: 0.85em;
    opacity: 0.7;
}

/* Mobile account strip inside the collapsed menu */
.vt-theme .vt-mobile-account {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 4px 0 12px;
    padding: 10px;
    border: 1px solid var(--vt-border);
    border-radius: var(--vt-radius);
    background: var(--vt-bg-soft);
}

.vt-theme .vt-mobile-account-link {
    flex: 1 1 auto;
}

/* Skip link */
.vt-skip-link {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 2000;
    padding: 8px 14px;
    border-radius: var(--vt-radius-sm);
    background: var(--vt-navy);
    color: #fff !important;
    font-weight: 600;
    transition: top var(--vt-speed) var(--vt-ease);
}

.vt-skip-link:focus {
    top: 12px;
}

/* Network issue banner */
.vt-theme .network-issues-notifications,
.vt-theme .alert-network-issue {
    border-radius: 0;
}

/* =========================================================================
   04  Breadcrumb
   ========================================================================= */
.vt-theme .master-breadcrumb {
    background: transparent;
    border-bottom: 0;
}

.vt-theme .master-breadcrumb .breadcrumb {
    padding: 18px 0 0;
    margin: 0;
    background: transparent;
    font-size: 0.85rem;
}

.vt-theme .master-breadcrumb .breadcrumb-item,
.vt-theme .master-breadcrumb .breadcrumb-item a {
    color: var(--vt-text-muted);
}

.vt-theme .master-breadcrumb .breadcrumb-item a:hover {
    color: var(--vt-primary);
}

.vt-theme .master-breadcrumb .breadcrumb-item.active {
    color: var(--vt-navy);
    font-weight: 500;
}

.vt-theme .master-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    color: var(--vt-text-faint);
}

.vt-theme .master-breadcrumb + #main-body,
.vt-theme .master-breadcrumb ~ #main-body {
    padding-top: 18px;
}

/* =========================================================================
   05  Buttons
   ========================================================================= */
.vt-theme .btn {
    font-family: var(--vt-font);
    font-weight: 600;
    font-size: 0.93rem;
    border-radius: var(--vt-radius-sm);
    padding: 0.5rem 1rem;
    letter-spacing: -0.005em;
    transition: color var(--vt-speed) var(--vt-ease), background-color var(--vt-speed) var(--vt-ease), border-color var(--vt-speed) var(--vt-ease), box-shadow var(--vt-speed) var(--vt-ease), transform var(--vt-speed) var(--vt-ease);
}

.vt-theme .btn:focus,
.vt-theme .btn.focus {
    box-shadow: var(--vt-focus-ring);
}

.vt-theme .btn-lg,
.vt-theme .btn-group-lg > .btn {
    padding: 0.7rem 1.35rem;
    font-size: 1rem;
    border-radius: var(--vt-radius);
}

.vt-theme .btn-sm,
.vt-theme .btn-group-sm > .btn {
    padding: 0.32rem 0.75rem;
    font-size: 0.82rem;
}

.vt-theme .btn-xs {
    padding: 0.2rem 0.55rem;
    font-size: 0.76rem;
    border-radius: var(--vt-radius-sm);
}

/* Primary — Electric Blue */
.vt-theme .btn-primary {
    background-color: var(--vt-primary);
    border-color: var(--vt-primary);
    color: #fff;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.vt-theme .btn-primary:hover {
    background-color: var(--vt-primary-hover);
    border-color: var(--vt-primary-hover);
    color: #fff;
}

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

.vt-theme .btn-primary.disabled,
.vt-theme .btn-primary:disabled {
    background-color: var(--vt-primary-200);
    border-color: var(--vt-primary-200);
}

/* Secondary / default — white with a subtle border */
.vt-theme .btn-default,
.vt-theme .btn-secondary,
.vt-theme .btn-light,
.vt-theme .btn-outline-secondary {
    background-color: #fff;
    border: 1px solid var(--vt-border-strong);
    color: var(--vt-text);
    box-shadow: var(--vt-shadow-xs);
}

.vt-theme .btn-default:hover,
.vt-theme .btn-secondary:hover,
.vt-theme .btn-light:hover,
.vt-theme .btn-outline-secondary:hover {
    background-color: var(--vt-bg-soft);
    border-color: var(--vt-border-strong);
    color: var(--vt-navy);
}

.vt-theme .btn-default:not(:disabled):not(.disabled):active,
.vt-theme .btn-default:not(:disabled):not(.disabled).active,
.vt-theme .btn-secondary:not(:disabled):not(.disabled):active,
.vt-theme .btn-secondary:not(:disabled):not(.disabled).active {
    background-color: var(--vt-bg-subtle);
    border-color: var(--vt-border-strong);
    color: var(--vt-navy);
}

/* Success — professional green */
.vt-theme .btn-success {
    background-color: var(--vt-success-strong);
    border-color: var(--vt-success-strong);
    color: #fff;
}

.vt-theme .btn-success:hover,
.vt-theme .btn-success:not(:disabled):not(.disabled):active {
    background-color: #027a48;
    border-color: #027a48;
    color: #fff;
}

/* Danger — professional red */
.vt-theme .btn-danger {
    background-color: var(--vt-danger-strong);
    border-color: var(--vt-danger-strong);
    color: #fff;
}

.vt-theme .btn-danger:hover,
.vt-theme .btn-danger:not(:disabled):not(.disabled):active {
    background-color: #b42318;
    border-color: #b42318;
    color: #fff;
}

.vt-theme .btn-warning {
    background-color: var(--vt-warning);
    border-color: var(--vt-warning);
    color: #fff;
}

.vt-theme .btn-warning:hover {
    background-color: var(--vt-warning-strong);
    border-color: var(--vt-warning-strong);
    color: #fff;
}

.vt-theme .btn-info {
    background-color: var(--vt-navy-700);
    border-color: var(--vt-navy-700);
    color: #fff;
}

.vt-theme .btn-info:hover {
    background-color: var(--vt-navy);
    border-color: var(--vt-navy);
    color: #fff;
}

.vt-theme .btn-outline-primary {
    color: var(--vt-primary);
    border-color: var(--vt-primary-200);
    background: #fff;
}

.vt-theme .btn-outline-primary:hover {
    color: #fff;
    background: var(--vt-primary);
    border-color: var(--vt-primary);
}

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

/* Light-on-dark buttons used inside the dashboard hero */
.vt-theme .btn-ghost-light {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.28);
}

.vt-theme .btn-ghost-light:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.45);
}

.vt-theme .btn i + *,
.vt-theme .btn > i:first-child {
    margin-right: 0.15rem;
}

/* =========================================================================
   06  Cards, panels & sidebar
   ========================================================================= */
.vt-theme .card,
.vt-theme .mc-promo-manage,
.vt-theme .mc-promo-login {
    background: #fff;
    border: 1px solid var(--vt-border);
    border-radius: var(--vt-radius-lg);
    box-shadow: var(--vt-shadow-sm);
}

.vt-theme .card > .card-header:first-child {
    border-radius: calc(var(--vt-radius-lg) - 1px) calc(var(--vt-radius-lg) - 1px) 0 0;
}

.vt-theme .card > .card-footer:last-child {
    border-radius: 0 0 calc(var(--vt-radius-lg) - 1px) calc(var(--vt-radius-lg) - 1px);
}

.vt-theme .card-header {
    padding: 16px 20px;
    background: #fff;
    border-bottom: 1px solid var(--vt-border);
}

.vt-theme .card-header .card-title,
.vt-theme .card-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--vt-navy);
    letter-spacing: -0.01em;
}

.vt-theme .card-footer {
    padding: 12px 20px;
    background: var(--vt-bg-soft);
    border-top: 1px solid var(--vt-border);
}

.vt-theme .card-footer:empty,
.vt-theme .card-footer.vt-empty {
    display: none;
}

.vt-theme .primary-content .card-body {
    padding: 22px;
}

/* Accent cards: replace thick colour bars with a slim top accent */
.vt-theme [class*="card-accent-"] {
    border-top: 1px solid var(--vt-border);
    position: relative;
    overflow: hidden;
}

.vt-theme [class*="card-accent-"]::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--vt-primary);
    opacity: 0.9;
}

.vt-theme .card-accent-blue::before,
.vt-theme .card-accent-midnight-blue::before { background: var(--vt-primary); }
.vt-theme .card-accent-teal::before,
.vt-theme .card-accent-turquoise::before { background: var(--vt-cyan); }
.vt-theme .card-accent-green::before,
.vt-theme .card-accent-emerald::before,
.vt-theme .card-accent-lime::before { background: var(--vt-success); }
.vt-theme .card-accent-red::before,
.vt-theme .card-accent-pomegranate::before { background: var(--vt-danger); }
.vt-theme .card-accent-gold::before,
.vt-theme .card-accent-orange::before,
.vt-theme .card-accent-sun-flower::before { background: var(--vt-warning); }
.vt-theme .card-accent-purple::before,
.vt-theme .card-accent-amethyst::before,
.vt-theme .card-accent-magenta::before,
.vt-theme .card-accent-pink::before { background: var(--vt-violet); }
.vt-theme .card-accent-silver::before,
.vt-theme .card-accent-asbestos::before,
.vt-theme .card-accent-wet-asphalt::before { background: var(--vt-text-faint); }

/* List groups */
.vt-theme .list-group-item {
    border-color: var(--vt-border);
    color: var(--vt-text);
    padding: 12px 20px;
}

.vt-theme .list-group-item-action:hover,
.vt-theme .list-group-item-action:focus {
    background: var(--vt-bg-soft);
    color: var(--vt-navy);
}

.vt-theme .list-group-item.active {
    background: var(--vt-primary-50);
    border-color: var(--vt-border);
    color: var(--vt-primary);
    font-weight: 600;
}

.vt-theme .list-group-item .badge {
    border-radius: var(--vt-radius-pill);
    background: var(--vt-bg-subtle);
    color: var(--vt-neutral-text);
    font-weight: 600;
}

/* Sidebar */
.vt-theme .sidebar .card-sidebar {
    overflow: hidden;
}

.vt-theme .sidebar .card-header {
    padding: 14px 18px;
}

.vt-theme .sidebar .card-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--vt-text-muted);
}

.vt-theme .sidebar .card-title i:first-child {
    color: var(--vt-primary);
}

.vt-theme .sidebar .card-minimise {
    color: var(--vt-text-faint);
}

.vt-theme .sidebar .list-group-item {
    padding: 10px 18px;
    border-left: 0;
    border-right: 0;
    font-size: 0.92rem;
    color: var(--vt-text);
    position: relative;
}

.vt-theme .sidebar .list-group-item > i:first-child {
    width: 18px;
    color: var(--vt-text-faint);
    text-align: center;
}

.vt-theme .sidebar .list-group-item.active,
.vt-theme .sidebar .list-group-item.active:hover,
.vt-theme .sidebar .list-group-item.active:focus {
    background: var(--vt-primary-50);
    color: var(--vt-primary);
    border-color: var(--vt-border);
}

.vt-theme .sidebar .list-group-item.active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: var(--vt-primary);
}

.vt-theme .sidebar .list-group-item.active > i:first-child {
    color: var(--vt-primary);
}

.vt-theme .sidebar .list-group-item i.fa-circle,
.vt-theme .sidebar .list-group-item i.fa-dot-circle {
    color: var(--vt-border-strong);
    font-size: 0.8em;
}

.vt-theme .sidebar .list-group-item.active i.fa-dot-circle,
.vt-theme .sidebar .list-group-item.active i.fa-circle {
    color: var(--vt-primary);
}

.vt-theme .sidebar .list-group-item .badge {
    background: var(--vt-bg-subtle);
    color: var(--vt-neutral-text);
}

.vt-theme .sidebar .card-body {
    padding: 16px 18px;
    font-size: 0.92rem;
}

.vt-theme .sidebar .card-footer {
    padding: 12px 18px;
}

/* Tabs */
.vt-theme .nav-tabs {
    border-bottom: 1px solid var(--vt-border);
    gap: 4px;
}

.vt-theme .nav-tabs .nav-link {
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    padding: 10px 14px;
    color: var(--vt-text-muted);
    font-weight: 500;
    margin-bottom: -1px;
}

.vt-theme .nav-tabs .nav-link:hover {
    color: var(--vt-navy);
    border-bottom-color: var(--vt-border-strong);
}

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

.vt-theme .nav-pills .nav-link {
    border-radius: var(--vt-radius-sm);
    color: var(--vt-text-muted);
    font-weight: 500;
}

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

/* =========================================================================
   07  Forms
   ========================================================================= */
.vt-theme label,
.vt-theme .form-control-label,
.vt-theme .col-form-label {
    font-weight: 500;
    color: var(--vt-text);
    font-size: 0.9rem;
}

.vt-theme .form-control,
.vt-theme .custom-select,
.vt-theme select.form-control,
.vt-theme .field {
    height: auto;
    min-height: 42px;
    padding: 0.55rem 0.85rem;
    font-family: var(--vt-font);
    font-size: 0.95rem;
    color: var(--vt-text);
    background-color: #fff;
    border: 1px solid var(--vt-border-strong);
    border-radius: var(--vt-radius-sm);
    box-shadow: var(--vt-shadow-xs);
    transition: border-color var(--vt-speed) var(--vt-ease), box-shadow var(--vt-speed) var(--vt-ease);
}

.vt-theme textarea.form-control {
    min-height: 0;
}

.vt-theme .form-control::placeholder {
    color: var(--vt-text-faint);
}

.vt-theme .form-control:focus,
.vt-theme .custom-select:focus,
.vt-theme .field:focus {
    border-color: var(--vt-primary);
    box-shadow: var(--vt-focus-ring);
    outline: 0;
}

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

.vt-theme .form-control-lg {
    min-height: 48px;
    font-size: 1rem;
}

.vt-theme .form-control-sm {
    min-height: 34px;
    padding: 0.3rem 0.65rem;
    font-size: 0.85rem;
}

.vt-theme .input-group-text {
    background: var(--vt-bg-soft);
    border-color: var(--vt-border-strong);
    color: var(--vt-text-muted);
    border-radius: var(--vt-radius-sm);
}

.vt-theme .input-group > .form-control,
.vt-theme .input-group > .custom-select {
    box-shadow: none;
}

/* Merged input groups (login etc.): one field with an inset icon */
.vt-theme .input-group-merge {
    border: 1px solid var(--vt-border-strong);
    border-radius: var(--vt-radius-sm);
    background: #fff;
    box-shadow: var(--vt-shadow-xs);
    transition: border-color var(--vt-speed) var(--vt-ease), box-shadow var(--vt-speed) var(--vt-ease);
    flex-wrap: nowrap;
}

.vt-theme .input-group-merge:focus-within {
    border-color: var(--vt-primary);
    box-shadow: var(--vt-focus-ring);
}

.vt-theme .input-group-merge .input-group-text,
.vt-theme .input-group-merge .form-control,
.vt-theme .input-group-merge .btn {
    border: 0;
    background: transparent;
    box-shadow: none;
}

.vt-theme .input-group-merge .input-group-text {
    padding-right: 4px;
    color: var(--vt-text-faint);
}

.vt-theme .input-group-merge .btn-reveal-pw {
    color: var(--vt-text-faint);
}

.vt-theme .input-group-merge .btn-reveal-pw:hover {
    color: var(--vt-primary);
}

/* Validation */
.vt-theme .form-control.is-invalid,
.vt-theme .was-validated .form-control:invalid,
.vt-theme .has-error .form-control {
    border-color: var(--vt-danger);
}

.vt-theme .form-control.is-invalid:focus,
.vt-theme .has-error .form-control:focus {
    box-shadow: 0 0 0 4px rgba(240, 68, 56, 0.15);
}

.vt-theme .form-control.is-valid,
.vt-theme .has-success .form-control {
    border-color: var(--vt-success);
}

.vt-theme .invalid-feedback,
.vt-theme .field-error-msg {
    color: var(--vt-danger-text);
    font-size: 0.82rem;
    font-weight: 500;
}

.vt-theme .form-text,
.vt-theme .help-block {
    color: var(--vt-text-muted);
    font-size: 0.82rem;
}

/* Checkboxes & radios */
.vt-theme input[type="checkbox"],
.vt-theme input[type="radio"] {
    accent-color: var(--vt-primary);
}

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

.vt-theme .custom-control-input:focus ~ .custom-control-label::before {
    box-shadow: var(--vt-focus-ring);
}

.vt-theme .custom-file-label {
    border-color: var(--vt-border-strong);
    border-radius: var(--vt-radius-sm);
    min-height: 42px;
    padding: 0.55rem 0.85rem;
    height: auto;
}

.vt-theme .custom-file-label::after {
    height: auto;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    background: var(--vt-bg-soft);
    color: var(--vt-text);
    font-weight: 500;
}

/* Password strength */
.vt-theme .progress {
    height: 6px;
    border-radius: var(--vt-radius-pill);
    background: var(--vt-bg-subtle);
}

.vt-theme .progress-bar {
    border-radius: var(--vt-radius-pill);
}

/* Markdown editor */
.vt-theme .md-editor,
.vt-theme .md-editor > textarea {
    border-color: var(--vt-border-strong);
    border-radius: var(--vt-radius-sm);
}

.vt-theme .md-editor.active {
    border-color: var(--vt-primary);
    box-shadow: var(--vt-focus-ring);
}

.vt-theme .md-editor > .md-header {
    background: var(--vt-bg-soft);
    border-bottom: 1px solid var(--vt-border);
}

/* =========================================================================
   08  Alerts & notifications
   ========================================================================= */
.vt-theme .alert {
    position: relative;
    border: 1px solid transparent;
    border-radius: var(--vt-radius);
    padding: 14px 18px;
    font-size: 0.93rem;
    box-shadow: var(--vt-shadow-xs);
}

.vt-theme .alert-success {
    background: var(--vt-success-bg);
    border-color: #abefc6;
    color: var(--vt-success-text);
}

.vt-theme .alert-danger,
.vt-theme .alert-error {
    background: var(--vt-danger-bg);
    border-color: #fecdca;
    color: var(--vt-danger-text);
}

.vt-theme .alert-warning {
    background: var(--vt-warning-bg);
    border-color: #fedf89;
    color: var(--vt-warning-text);
}

.vt-theme .alert-info {
    background: var(--vt-primary-50);
    border-color: var(--vt-primary-100);
    color: #1849a9;
}

.vt-theme .alert .alert-link {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.vt-theme .alert .btn-default {
    box-shadow: none;
}

/* =========================================================================
   09  Tables & pagination
   ========================================================================= */
.vt-theme .table {
    color: var(--vt-text);
    font-size: 0.93rem;
}

.vt-theme .table th,
.vt-theme .table td {
    border-top-color: var(--vt-border);
    vertical-align: middle;
}

.vt-theme .table thead th {
    border-bottom: 1px solid var(--vt-border);
    background: var(--vt-bg-soft);
    color: var(--vt-text-muted);
    font-size: 0.74rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.vt-theme .table-striped tbody tr:nth-of-type(odd) {
    background: #fafbfd;
}

.vt-theme .table-hover tbody tr:hover {
    background: var(--vt-bg-soft);
}

.vt-theme .table-container {
    background: #fff;
    border: 1px solid var(--vt-border);
    border-radius: var(--vt-radius-lg);
    box-shadow: var(--vt-shadow-sm);
    padding: 6px 18px 12px;
}

.vt-theme .dataTables_wrapper table.table-list {
    border: 1px solid var(--vt-border);
    border-radius: var(--vt-radius);
    border-collapse: separate !important;
    border-spacing: 0;
    overflow: hidden;
}

.vt-theme table.table-list thead th {
    padding: 11px 12px;
    background: var(--vt-bg-soft);
    border-bottom: 1px solid var(--vt-border) !important;
    color: var(--vt-text-muted);
    font-size: 0.74rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.vt-theme .dataTables_wrapper table.table-list thead th.sorting_asc,
.vt-theme .dataTables_wrapper table.table-list thead th.sorting_desc {
    background: var(--vt-primary-50);
    color: var(--vt-primary);
}

.vt-theme table.table-list tbody td {
    padding: 14px 12px;
    border-top: 1px solid var(--vt-border);
    background: #fff;
    font-size: 0.92rem;
}

.vt-theme table.table-list tbody tr:first-child td {
    border-top: 0;
}

.vt-theme table.table-list tbody tr:hover td {
    background: #f9fbfe;
    cursor: pointer;
}

.vt-theme table.table-list td strong,
.vt-theme table.table-list td a {
    color: var(--vt-navy);
    font-weight: 600;
}

.vt-theme table.table-list td .text-domain,
.vt-theme table.table-list td small {
    color: var(--vt-text-muted);
}

.vt-theme .dataTables_wrapper .dataTables_filter label .form-control {
    border-radius: var(--vt-radius-pill);
    background-color: #fff;
    min-height: 38px;
    padding-left: 40px !important;
}

.vt-theme .dataTables_wrapper .dataTables_info,
.vt-theme .dataTables_wrapper .dataTables_length {
    color: var(--vt-text-muted);
    font-size: 0.85rem;
}

/* Responsive DataTables (mobile collapsed rows) */
.vt-theme table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control::before,
.vt-theme table.dataTable.dtr-inline.collapsed > tbody > tr > th.dtr-control::before,
.vt-theme table.dataTable.dtr-inline.collapsed > tbody > tr[role="row"] > td:first-child::before {
    background-color: var(--vt-primary);
    border: 0;
    box-shadow: none;
    font-family: var(--vt-font);
}

.vt-theme table.dataTable.dtr-inline.collapsed > tbody > tr.parent > td:first-child::before,
.vt-theme table.dataTable.dtr-inline.collapsed > tbody > tr.parent > td.dtr-control::before {
    background-color: var(--vt-text-muted);
}

.vt-theme table.dataTable > tbody > tr.child ul.dtr-details > li {
    border-bottom-color: var(--vt-border);
    padding: 8px 0;
}

.vt-theme table.dataTable > tbody > tr.child span.dtr-title {
    color: var(--vt-text-muted);
    font-weight: 600;
    font-size: 0.8rem;
}

/* Pagination */
.vt-theme .pagination {
    gap: 4px;
}

.vt-theme .page-link,
.vt-theme .pagination > li > a,
.vt-theme .pagination > li > span {
    border: 1px solid var(--vt-border);
    border-radius: var(--vt-radius-sm) !important;
    color: var(--vt-text);
    font-weight: 500;
    min-width: 36px;
    text-align: center;
}

.vt-theme .page-link:hover {
    background: var(--vt-bg-soft);
    color: var(--vt-primary);
}

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

/* =========================================================================
   10  Status badges
   ========================================================================= */
.vt-theme .badge {
    font-weight: 600;
    border-radius: var(--vt-radius-pill);
    padding: 0.32em 0.65em;
}

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

.vt-theme .label {
    border-radius: var(--vt-radius-pill);
    font-weight: 600;
}

/* Soft pill status with a leading dot: readable and colour-blind friendly */
.vt-theme .label.status,
.vt-theme .label[class*="status-"] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px 4px 8px;
    font-size: 0.76rem;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0.01em;
    border: 1px solid transparent;
    background-color: var(--vt-neutral-bg);
    color: var(--vt-neutral-text);
}

.vt-theme .label.status::before,
.vt-theme .label[class*="status-"]::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    flex: 0 0 auto;
}

/* Success */
.vt-theme .status-active,
.vt-theme .status-open,
.vt-theme .status-completed,
.vt-theme .status-paid,
.vt-theme .status-accepted,
.vt-theme .status-delivered {
    background-color: var(--vt-success-bg) !important;
    border-color: #abefc6 !important;
    color: var(--vt-success-text) !important;
}

/* Attention */
.vt-theme .status-pending,
.vt-theme .status-pending-transfer,
.vt-theme .status-pending-registration,
.vt-theme .status-suspended,
.vt-theme .status-grace,
.vt-theme .status-redemption,
.vt-theme .status-refunded,
.vt-theme .status-payment-pending {
    background-color: var(--vt-warning-bg) !important;
    border-color: #fedf89 !important;
    color: var(--vt-warning-text) !important;
}

/* Problem */
.vt-theme .status-unpaid,
.vt-theme .status-overdue,
.vt-theme .status-fraud,
.vt-theme .status-collections,
.vt-theme .status-lost,
.vt-theme .status-dead {
    background-color: var(--vt-danger-bg) !important;
    border-color: #fecdca !important;
    color: var(--vt-danger-text) !important;
}

/* In progress / awaiting */
.vt-theme .status-answered,
.vt-theme .status-inprogress,
.vt-theme .status-onhold {
    background-color: var(--vt-primary-50) !important;
    border-color: var(--vt-primary-100) !important;
    color: #1849a9 !important;
}

.vt-theme .status-customer-reply {
    background-color: var(--vt-violet-bg) !important;
    border-color: #d9d6fe !important;
    color: #5925dc !important;
}

/* Inactive */
.vt-theme .status-closed,
.vt-theme .status-cancelled,
.vt-theme .status-terminated,
.vt-theme .status-expired,
.vt-theme .status-transferred-away,
.vt-theme .status-draft {
    background-color: var(--vt-neutral-bg) !important;
    border-color: var(--vt-border) !important;
    color: var(--vt-neutral-text) !important;
}

/* Custom ticket statuses keep their admin-defined inline colour */
.vt-theme .label.status-custom {
    color: #fff;
}

.vt-theme .label.status-custom::before {
    background: rgba(255, 255, 255, 0.85);
}

.vt-theme .label-success { background: var(--vt-success-strong); }
.vt-theme .label-danger { background: var(--vt-danger-strong); }
.vt-theme .label-warning { background: var(--vt-warning); }
.vt-theme .label-info { background: var(--vt-primary); }
.vt-theme .label-default { background: var(--vt-text-faint); }

/* =========================================================================
   11  Dashboard
   ========================================================================= */
.vt-theme .vt-section-title {
    margin: 0 0 12px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--vt-text-muted);
}

/* Welcome hero */
.vt-theme .vt-welcome {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 20px;
    padding: 28px 32px;
    border-radius: var(--vt-radius-xl);
    background: var(--vt-gradient-hero);
    color: #fff;
    overflow: hidden;
    box-shadow: var(--vt-shadow-md);
}

.vt-theme .vt-welcome::after {
    content: "";
    position: absolute;
    right: -80px;
    top: -120px;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 207, 232, 0.35) 0%, rgba(0, 207, 232, 0) 70%);
    pointer-events: none;
}

.vt-theme .vt-welcome::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 28px 28px;
    -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000 100%);
    mask-image: linear-gradient(90deg, transparent 30%, #000 100%);
    pointer-events: none;
}

.vt-theme .vt-welcome > * {
    position: relative;
    z-index: 1;
}

.vt-theme .vt-eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    padding: 3px 10px;
    border-radius: var(--vt-radius-pill);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.vt-theme .vt-welcome-title {
    margin: 0 0 6px;
    color: #fff;
    font-size: 1.85rem;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.vt-theme .vt-welcome-text {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.98rem;
    max-width: 520px;
}

.vt-theme .vt-welcome-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    flex: 0 0 auto;
}

.vt-theme .vt-welcome-actions .btn-light {
    border-color: #fff;
    color: var(--vt-navy);
}

.vt-theme .vt-welcome-actions .btn-light:hover {
    background: var(--vt-primary-50);
    border-color: var(--vt-primary-50);
    color: var(--vt-primary);
}

/* Attention bar */
.vt-theme .vt-attention {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.vt-theme .vt-attention-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border-radius: var(--vt-radius);
    background: #fff;
    border: 1px solid #fedf89;
    color: var(--vt-warning-strong);
    font-size: 1.05rem;
}

.vt-theme .vt-attention-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-width: 0;
}

.vt-theme .vt-attention-body span {
    color: #93370d;
    font-size: 0.88rem;
}

.vt-theme .vt-attention-body .vt-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 20px;
    margin-left: 4px;
    padding: 0 6px;
    border-radius: var(--vt-radius-pill);
    background: var(--vt-warning);
    color: #fff;
    font-size: 0.74rem;
    font-weight: 700;
    vertical-align: 1px;
}

.vt-theme .vt-attention .btn {
    flex: 0 0 auto;
}

/* Stat tiles */
.vt-theme .tiles.vt-stats .row {
    margin-left: -8px;
    margin-right: -8px;
}

.vt-theme .tiles.vt-stats .row > [class*="col-"] {
    padding-left: 8px;
    padding-right: 8px;
    margin-bottom: 16px;
}

.vt-theme .tiles .tile.vt-stat {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 20px;
    background: #fff;
    border: 1px solid var(--vt-border) !important;
    border-radius: var(--vt-radius-lg);
    box-shadow: var(--vt-shadow-sm);
    color: var(--vt-text);
    transition: transform var(--vt-speed) var(--vt-ease), box-shadow var(--vt-speed) var(--vt-ease), border-color var(--vt-speed) var(--vt-ease);
}

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

/* Neutralise the parent's large decorative tile icon */
.vt-theme .tiles .tile.vt-stat i,
.vt-theme .tiles .tile.vt-stat:hover i {
    position: static;
    font-size: 1.05rem;
    color: inherit;
    line-height: 1;
}

.vt-theme .vt-stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-bottom: 18px;
    border-radius: var(--vt-radius);
    background: var(--vt-primary-50);
    color: var(--vt-primary);
}

.vt-theme .vt-stat-cyan .vt-stat-icon { background: var(--vt-cyan-50); color: #0891a8; }
.vt-theme .vt-stat-violet .vt-stat-icon { background: var(--vt-violet-bg); color: var(--vt-violet); }
.vt-theme .vt-stat-amber .vt-stat-icon { background: var(--vt-warning-bg); color: var(--vt-warning-strong); }

.vt-theme .tiles .tile.vt-stat .stat {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--vt-navy);
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.vt-theme .tiles .tile.vt-stat .title {
    margin-top: 4px;
    color: var(--vt-text-muted);
    font-size: 0.86rem;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
}

.vt-theme .tiles .tile.vt-stat .highlight {
    display: none;
}

.vt-theme .tiles .tile.vt-stat-alert {
    border-color: #fedf89 !important;
    background: linear-gradient(180deg, #fff 60%, var(--vt-warning-bg) 100%);
}

.vt-theme .tiles .tile.vt-stat-alert .stat {
    color: var(--vt-warning-text);
}

/* Quick actions */
.vt-theme .vt-quick-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
}

.vt-theme .vt-quick-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--vt-border);
    border-radius: var(--vt-radius-lg);
    color: var(--vt-text);
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.3;
    box-shadow: var(--vt-shadow-xs);
    transition: border-color var(--vt-speed) var(--vt-ease), box-shadow var(--vt-speed) var(--vt-ease), color var(--vt-speed) var(--vt-ease);
}

.vt-theme .vt-quick-item:hover {
    color: var(--vt-primary);
    border-color: var(--vt-primary-200);
    box-shadow: var(--vt-shadow-md);
    text-decoration: none;
}

.vt-theme .vt-quick-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: var(--vt-radius-sm);
    background: var(--vt-bg-soft);
    color: var(--vt-primary);
    transition: background-color var(--vt-speed) var(--vt-ease), color var(--vt-speed) var(--vt-ease);
}

.vt-theme .vt-quick-item:hover .vt-quick-icon {
    background: var(--vt-primary);
    color: #fff;
}

/* Homepage panels (services, invoices, tickets, announcements…) */
.vt-theme .client-home-cards .card {
    margin-bottom: 20px;
}

.vt-theme .client-home-cards .card-header .card-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.98rem;
}

.vt-theme .client-home-cards .card-header .card-title > i:first-of-type {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: var(--vt-radius-sm);
    background: var(--vt-primary-50);
    color: var(--vt-primary);
    font-size: 0.85rem;
}

.vt-theme .client-home-cards .card-header .float-right {
    order: 3;
    margin-left: auto;
}

.vt-theme .client-home-cards .card-header .btn {
    background: #fff !important;
    border: 1px solid var(--vt-border-strong);
    color: var(--vt-text) !important;
    font-size: 0.78rem;
    padding: 4px 10px;
    box-shadow: none;
}

.vt-theme .client-home-cards .card-header .btn:hover {
    border-color: var(--vt-primary-200);
    color: var(--vt-primary) !important;
}

.vt-theme .client-home-cards .list-group-item {
    font-size: 0.92rem;
    padding: 13px 20px;
    border-left: 0;
    border-right: 0;
}

.vt-theme .client-home-cards .list-group-item:first-child {
    border-top: 0;
}

.vt-theme .client-home-cards .list-group-item small,
.vt-theme .client-home-cards .list-group-item .text-muted {
    color: var(--vt-text-muted);
}

.vt-theme .client-home-cards .card-body {
    font-size: 0.93rem;
}

/* =========================================================================
   12  Products, services & domains
   ========================================================================= */
.vt-theme div.product-details .product-status {
    position: relative;
    border-radius: var(--vt-radius-lg);
    overflow: hidden;
    border: 1px solid var(--vt-border);
    background: #fff;
}

.vt-theme div.product-details div.product-icon {
    padding: 28px 20px 22px;
    border-radius: 0;
    background:
        radial-gradient(120% 90% at 100% 0%, rgba(0, 207, 232, 0.14) 0%, rgba(0, 207, 232, 0) 60%),
        linear-gradient(180deg, var(--vt-primary-50) 0%, #fff 100%);
    font-size: 48px;
}

.vt-theme div.product-details div.product-icon .fa-stack .fa-circle {
    color: var(--vt-primary);
}

.vt-theme div.product-details div.product-icon h3 {
    margin-top: 14px;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--vt-navy);
}

.vt-theme div.product-details div.product-icon h4 {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--vt-text-muted);
}

.vt-theme .product-status-text {
    padding: 9px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.vt-theme .product-status-active .product-status-text { background: var(--vt-success-strong); }
.vt-theme .product-status-pending .product-status-text { background: var(--vt-warning); }
.vt-theme .product-status-suspended .product-status-text { background: var(--vt-warning-strong); }
.vt-theme .product-status-terminated .product-status-text,
.vt-theme .product-status-cancelled .product-status-text { background: var(--vt-text-muted); }
.vt-theme .product-status-fraud .product-status-text { background: var(--vt-danger-strong); }

.vt-theme .product-status-active,
.vt-theme .product-status-pending,
.vt-theme .product-status-suspended,
.vt-theme .product-status-terminated,
.vt-theme .product-status-cancelled,
.vt-theme .product-status-fraud {
    background-color: #fff;
}

.vt-theme div.product-details-tab-container {
    padding: 22px;
    border: 1px solid var(--vt-border);
    border-top: 0;
    border-radius: 0 0 var(--vt-radius-lg) var(--vt-radius-lg);
}

.vt-theme .product-details .row h4,
.vt-theme .product-details .text-center h4 {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--vt-text-muted);
}

.vt-theme .module-client-area {
    padding: 18px 18px 4px;
}

/* Server / module login buttons and usage */
.vt-theme .module-client-area .btn,
.vt-theme .product-actions-wrapper .btn {
    font-weight: 600;
}

/* Domain details */
.vt-theme .moduleoutput {
    border-radius: var(--vt-radius);
}

.vt-theme .domain-checker-container,
.vt-theme .home-domain-search {
    border-radius: var(--vt-radius-xl);
}

/* Upgrade / cancellation */
.vt-theme .vt-page-upgrade .card,
.vt-theme .vt-page-clientareacancelrequest .card {
    overflow: hidden;
}

/* =========================================================================
   13  Billing
   ========================================================================= */
.vt-theme .vt-page-clientareainvoices table.table-list td:nth-child(5),
.vt-theme .vt-page-clientareainvoices table.table-list td:nth-child(4) {
    font-variant-numeric: tabular-nums;
}

.vt-theme .masspay-invoice-detail td {
    font-size: 0.92rem;
}

.vt-theme .masspay-total td {
    background: var(--vt-bg-soft);
    font-weight: 600;
}

.vt-theme .masspay-total:last-child td {
    color: var(--vt-navy);
    font-size: 1.05rem;
}

/* Credit / add funds */
.vt-theme .vt-page-clientareaaddfunds .table td,
.vt-theme .vt-page-clientareaaddfunds .table th {
    font-variant-numeric: tabular-nums;
}

/* Payment pages (credit card capture, 3DS) */
.vt-theme #frmPayment .card,
.vt-theme .vt-page-invoice-payment .card {
    border-radius: var(--vt-radius-lg);
}

.vt-theme .paymethod-info,
.vt-theme .paymethod-row {
    border-radius: var(--vt-radius);
}

/* =========================================================================
   14  Support, knowledgebase, announcements & downloads
   ========================================================================= */
/* Department selection (open ticket, step one) */
.vt-theme.vt-page-supportticketsubmit-stepone .primary-content p.h5 {
    margin-bottom: 4px;
}

.vt-theme.vt-page-supportticketsubmit-stepone .primary-content p.h5 a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--vt-border);
    border-radius: var(--vt-radius);
    background: #fff;
    color: var(--vt-navy);
    font-size: 1rem;
    font-weight: 600;
    transition: border-color var(--vt-speed) var(--vt-ease), box-shadow var(--vt-speed) var(--vt-ease);
}

.vt-theme.vt-page-supportticketsubmit-stepone .primary-content p.h5 a:hover {
    border-color: var(--vt-primary-200);
    box-shadow: var(--vt-shadow-md);
    text-decoration: none;
}

.vt-theme.vt-page-supportticketsubmit-stepone .primary-content p.h5 a i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: var(--vt-radius-sm);
    background: var(--vt-primary-50);
    color: var(--vt-primary);
    font-size: 0.9rem;
}

.vt-theme.vt-page-supportticketsubmit-stepone .primary-content p.h5 + p.text-muted {
    margin: 6px 0 16px 16px;
    font-size: 0.88rem;
}

/* Ticket conversation: client vs staff messages */
.vt-theme .view-ticket .ticket-reply,
.vt-theme .ticket-reply {
    position: relative;
    margin: 0 0 16px;
    padding: 0;
    background: #fff;
    border: 1px solid var(--vt-border);
    border-left: 3px solid var(--vt-border-strong);
    border-radius: var(--vt-radius);
    overflow: hidden;
}

.vt-theme .ticket-reply .posted-by {
    padding: 12px 18px;
    background: var(--vt-bg-soft);
    border-bottom: 1px solid var(--vt-border);
    color: var(--vt-text-muted);
    font-size: 0.85rem;
}

.vt-theme .ticket-reply .posted-by-name {
    color: var(--vt-navy);
    font-weight: 600;
}

.vt-theme .ticket-reply .message {
    padding: 18px;
    color: var(--vt-text);
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.vt-theme .ticket-reply .message .ipaddress {
    color: var(--vt-text-faint);
    font-size: 0.8rem;
}

.vt-theme .ticket-reply.staff {
    border-left-color: var(--vt-primary);
    background: #fbfdff;
}

.vt-theme .ticket-reply.staff .posted-by {
    background: var(--vt-primary-50);
    border-bottom-color: var(--vt-primary-100);
}

.vt-theme .ticket-reply.staff .posted-by-name {
    color: #1849a9;
}

.vt-theme .ticket-reply .requestor-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: var(--vt-radius-pill);
    background: var(--vt-neutral-bg);
    color: var(--vt-neutral-text);
    font-size: 0.72rem;
    font-weight: 600;
}

.vt-theme .ticket-reply .requestor-type-operator {
    background: var(--vt-primary);
    color: #fff;
}

.vt-theme .ticket-reply .attachments {
    padding: 12px 18px;
    border-top: 1px dashed var(--vt-border);
    background: #fff;
    font-size: 0.88rem;
}

.vt-theme .ticket-reply .rating,
.vt-theme .ticket-reply .rating-done {
    padding: 0 18px 14px;
}

.vt-theme .ticket-reply .rating span.star:hover::before,
.vt-theme .ticket-reply .rating span.star:hover ~ span.star::before,
.vt-theme .ticket-reply .rating-done span.star.active::before {
    color: var(--vt-warning);
}

/* Knowledgebase & downloads */
.vt-theme .kb-search .form-control,
.vt-theme .kb-search .input-group {
    min-height: 50px;
}

.vt-theme .kb-search .input-group {
    border-radius: var(--vt-radius);
    box-shadow: var(--vt-shadow-sm);
}

.vt-theme .kb-search .form-control {
    font-size: 1rem;
}

.vt-theme .kb-category,
.vt-theme .kb-article-item {
    display: block;
    padding: 12px 14px;
    margin-bottom: 4px;
    border-radius: var(--vt-radius-sm);
    color: var(--vt-text);
    transition: background-color var(--vt-speed) var(--vt-ease), color var(--vt-speed) var(--vt-ease);
}

.vt-theme a.kb-category:hover,
.vt-theme a.kb-article-item:hover {
    background: var(--vt-bg-soft);
    color: var(--vt-primary);
    text-decoration: none;
}

.vt-theme .kb-category i,
.vt-theme .kb-article-item i {
    color: var(--vt-primary);
}

.vt-theme .kb-article-content,
.vt-theme .markdown-content {
    line-height: 1.7;
}

/* Announcements */
.vt-theme .announcements .card,
.vt-theme .announcements > div {
    border-radius: var(--vt-radius-lg);
}

.vt-theme .announcements h2,
.vt-theme .announcements h3 {
    font-size: 1.2rem;
}

.vt-theme .announcements h2 a,
.vt-theme .announcements h3 a {
    color: var(--vt-navy);
}

.vt-theme .announcements h2 a:hover,
.vt-theme .announcements h3 a:hover {
    color: var(--vt-primary);
}

/* =========================================================================
   15  Account pages
   ========================================================================= */
.vt-theme .vt-page-clientareadetails .card-body,
.vt-theme .vt-page-account-contacts-manage .card-body,
.vt-theme .vt-page-user-profile .card-body,
.vt-theme .vt-page-user-password .card-body,
.vt-theme .vt-page-user-security .card-body {
    padding: 26px;
}

.vt-theme .twofa-config-link,
.vt-theme .twofa-setup {
    border-radius: var(--vt-radius);
}

/* Bootstrap switch used by WHMCS on email preferences, auto-renew etc. */
.vt-theme .bootstrap-switch {
    border-radius: var(--vt-radius-pill);
    border-color: var(--vt-border-strong);
}

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

/* Payment methods */
.vt-theme .vt-page-account-paymentmethods table td {
    vertical-align: middle;
}

/* =========================================================================
   16  Authentication pages
   ========================================================================= */
.vt-theme.vt-auth #main-body,
.vt-theme.vt-register #main-body {
    position: relative;
    background:
        radial-gradient(900px 420px at 15% -10%, rgba(23, 105, 255, 0.10), transparent 70%),
        radial-gradient(700px 380px at 100% 0%, rgba(0, 207, 232, 0.10), transparent 70%),
        var(--vt-bg-soft);
}

.vt-theme.vt-auth .master-breadcrumb {
    display: none;
}

.vt-theme.vt-auth #main-body {
    padding: 48px 0 72px;
}

.vt-theme.vt-auth .card.mw-540,
.vt-theme .vt-auth-form .card {
    border-radius: var(--vt-radius-xl);
    box-shadow: var(--vt-shadow-lg);
    border-color: var(--vt-border);
}

.vt-theme .vt-auth-shell {
    display: flex;
    align-items: stretch;
    justify-content: center;
    max-width: 1000px;
    margin: 0 auto;
}

.vt-theme .vt-auth-form {
    flex: 1 1 auto;
    max-width: 540px;
}

.vt-theme .vt-auth-form .card {
    height: 100%;
    margin: 0 !important;
}

.vt-theme .vt-auth-aside {
    flex: 0 0 420px;
    position: relative;
    padding: 44px 40px;
    border-radius: var(--vt-radius-xl) 0 0 var(--vt-radius-xl);
    background: var(--vt-gradient-hero);
    color: #fff;
    overflow: hidden;
    box-shadow: var(--vt-shadow-lg);
}

.vt-theme .vt-auth-aside::after {
    content: "";
    position: absolute;
    left: -120px;
    bottom: -160px;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 207, 232, 0.35), rgba(0, 207, 232, 0) 70%);
}

.vt-theme .vt-auth-aside-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.vt-theme .vt-auth-aside-title {
    margin: 36px 0 10px;
    color: #fff;
    font-size: 1.7rem;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.vt-theme .vt-auth-aside-text {
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 26px;
}

.vt-theme .vt-auth-points {
    list-style: none;
    margin: 0;
    padding: 0;
}

.vt-theme .vt-auth-points li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 0;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.vt-theme .vt-auth-points i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--vt-radius-sm);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--vt-cyan);
}

@media (min-width: 992px) {
    .vt-theme .vt-auth-aside + .vt-auth-form .card {
        border-radius: 0 var(--vt-radius-xl) var(--vt-radius-xl) 0;
        border-left: 0;
    }
}

.vt-theme .vt-auth-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin-bottom: 18px;
    border-radius: var(--vt-radius);
    background: var(--vt-primary-50);
    border: 1px solid var(--vt-primary-100);
    color: var(--vt-primary);
    font-size: 1.15rem;
}

.vt-theme .vt-auth-title {
    margin-bottom: 6px;
    font-size: 1.6rem;
    font-weight: 700;
}

.vt-theme .vt-auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.vt-theme .vt-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: var(--vt-text);
    cursor: pointer;
}

.vt-theme .vt-check .form-check-input {
    position: static;
    margin: 0;
    width: 16px;
    height: 16px;
}

.vt-theme.vt-auth .card-footer {
    background: var(--vt-bg-soft);
    padding-top: 16px;
    padding-bottom: 16px;
}

/* Password reset, 2FA & invite pages use the parent markup; centre and lift them */
.vt-theme.vt-auth .primary-content > .card.mw-540,
.vt-theme.vt-auth .primary-content > .row > .card.mw-540 {
    margin-top: 0 !important;
}

.vt-theme.vt-auth .card-title,
.vt-theme.vt-auth .primary-content h3.card-title {
    font-size: 1.5rem;
    font-weight: 700;
}

.vt-theme.vt-page-two-factor-challenge input[name="key"],
.vt-theme.vt-page-two-factor-challenge input[name="twofabackupcode"] {
    letter-spacing: 0.25em;
    text-align: center;
    font-weight: 600;
}

/* Registration */
.vt-theme.vt-register .primary-content > form > .card,
.vt-theme.vt-register .primary-content .card {
    border-radius: var(--vt-radius-lg);
}

.vt-theme.vt-register .sub-heading,
.vt-theme.vt-register .card-title {
    color: var(--vt-navy);
}

/* =========================================================================
   17  Order form (Standard Cart)
   The order form stylesheet loads after this file, so selectors are prefixed
   with `body.vt-theme` to win on specificity without !important.
   ========================================================================= */
body.vt-theme #order-standard_cart {
    color: var(--vt-text);
}

body.vt-theme #order-standard_cart .header-lined h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--vt-navy);
    letter-spacing: -0.02em;
}

body.vt-theme #order-standard_cart .header-lined p {
    color: var(--vt-text-muted);
}

/* Category sidebar */
body.vt-theme #order-standard_cart .cart-sidebar .card,
body.vt-theme #order-standard_cart .cart-sidebar .panel {
    border-radius: var(--vt-radius-lg);
    border-color: var(--vt-border);
}

/* Product cards */
body.vt-theme #order-standard_cart .products .product {
    position: relative;
    display: flex;
    flex-direction: column;
    height: calc(100% - 20px);
    padding: 0;
    background: #fff;
    border: 1px solid var(--vt-border);
    border-radius: var(--vt-radius-lg);
    box-shadow: var(--vt-shadow-sm);
    overflow: hidden;
    transition: border-color var(--vt-speed) var(--vt-ease), box-shadow var(--vt-speed) var(--vt-ease), transform var(--vt-speed) var(--vt-ease);
}

body.vt-theme #order-standard_cart .products .product:hover {
    border-color: var(--vt-primary-200);
    box-shadow: var(--vt-shadow-lg);
    transform: translateY(-2px);
}

body.vt-theme #order-standard_cart .products .product header {
    margin: 0;
    padding: 20px 22px 14px;
    background: transparent;
    border-bottom: 1px solid var(--vt-border);
    color: var(--vt-navy);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.015em;
}

body.vt-theme #order-standard_cart .products .product header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--vt-gradient-brand);
}

body.vt-theme #order-standard_cart .products .product header span {
    color: var(--vt-navy);
}

body.vt-theme #order-standard_cart .products .product header .qty {
    color: var(--vt-text-muted);
    font-size: 0.8rem;
    font-weight: 500;
}

body.vt-theme #order-standard_cart .products .product div.product-desc {
    float: none;
    width: auto;
    padding: 16px 22px;
    font-size: 0.92rem;
    color: var(--vt-text-muted);
}

body.vt-theme #order-standard_cart .products .product div.product-desc ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

body.vt-theme #order-standard_cart .products .product div.product-desc ul li {
    position: relative;
    padding: 5px 0 5px 24px;
    color: var(--vt-text);
}

body.vt-theme #order-standard_cart .products .product div.product-desc ul li::before {
    content: "\f00c";
    position: absolute;
    left: 0;
    top: 6px;
    font-family: "Font Awesome 5 Pro", "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 0.75rem;
    color: var(--vt-success-strong);
}

body.vt-theme #order-standard_cart .products .product .feature-value {
    font-weight: 700;
    color: var(--vt-navy);
}

body.vt-theme #order-standard_cart .products .product footer {
    float: none;
    width: auto;
    margin: auto 0 0;
    text-align: left;
    padding: 18px 22px 22px;
    border-top: 1px solid var(--vt-border);
    background: var(--vt-bg-soft);
    font-size: 0.85rem;
    color: var(--vt-text-muted);
}

body.vt-theme #order-standard_cart .products .product .product-pricing {
    margin-bottom: 12px;
}

body.vt-theme #order-standard_cart .products .product .product-pricing span.price {
    display: inline-block;
    margin: 2px 0;
    font-size: 1.9rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--vt-navy);
}

body.vt-theme #order-standard_cart .products .product .btn-order-now,
body.vt-theme #order-standard_cart .products .product footer .btn {
    width: 100%;
    background: var(--vt-primary);
    border-color: var(--vt-primary);
    color: #fff;
    font-weight: 600;
    border-radius: var(--vt-radius-sm);
    padding: 0.6rem 1rem;
}

body.vt-theme #order-standard_cart .products .product .btn-order-now:hover,
body.vt-theme #order-standard_cart .products .product footer .btn:hover {
    background: var(--vt-primary-hover);
    border-color: var(--vt-primary-hover);
}

/* Configure product / domain options */
body.vt-theme #order-standard_cart .product-info {
    padding: 18px 20px;
    background: #fff;
    border: 1px solid var(--vt-border);
    border-radius: var(--vt-radius-lg);
}

body.vt-theme #order-standard_cart .sub-heading {
    border-top-color: var(--vt-border);
}

body.vt-theme #order-standard_cart .sub-heading span,
body.vt-theme #order-standard_cart .sub-heading-borderless span {
    background: var(--vt-bg-soft);
    color: var(--vt-text-muted);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

body.vt-theme #order-standard_cart .field,
body.vt-theme #order-standard_cart .form-control,
body.vt-theme #order-standard_cart select {
    border-color: var(--vt-border-strong);
    border-radius: var(--vt-radius-sm);
}

body.vt-theme #order-standard_cart .field:focus,
body.vt-theme #order-standard_cart .form-control:focus {
    border-color: var(--vt-primary);
    box-shadow: var(--vt-focus-ring);
}

body.vt-theme #order-standard_cart .panel-addon {
    border-radius: var(--vt-radius);
    border-color: var(--vt-border);
}

body.vt-theme #order-standard_cart .panel-addon-selected {
    border-color: var(--vt-primary);
    box-shadow: 0 0 0 3px var(--vt-primary-50);
}

body.vt-theme #order-standard_cart .panel-addon .panel-add {
    background: var(--vt-primary);
    border-radius: 0 0 calc(var(--vt-radius) - 1px) calc(var(--vt-radius) - 1px);
}

/* Domain selection */
body.vt-theme #order-standard_cart .domain-selection-options .option {
    border-radius: var(--vt-radius);
    border: 1px solid var(--vt-border);
    background: #fff;
}

body.vt-theme #order-standard_cart .domain-selection-options .option-selected {
    border-color: var(--vt-primary);
    background: var(--vt-primary-50);
}

body.vt-theme #order-standard_cart .domain-checker-container,
body.vt-theme #order-standard_cart .domain-checker-bg {
    border-radius: var(--vt-radius-xl);
    background: var(--vt-gradient-hero);
}

body.vt-theme #order-standard_cart .domain-checker-result-headline .domain-available,
body.vt-theme #order-standard_cart .domain-available {
    color: var(--vt-success-strong);
}

body.vt-theme #order-standard_cart .domain-checker-result-headline .domain-unavailable,
body.vt-theme #order-standard_cart .domain-unavailable {
    color: var(--vt-danger-strong);
}

body.vt-theme #order-standard_cart .domain-suggestions .list-group-item,
body.vt-theme #order-standard_cart .domain-lookup-primary-results {
    border-color: var(--vt-border);
}

/* Order summary */
body.vt-theme #order-standard_cart .order-summary {
    background: var(--vt-navy);
    border: 0;
    border-radius: var(--vt-radius-lg);
    box-shadow: var(--vt-shadow-md);
    overflow: hidden;
}

body.vt-theme #order-standard_cart .order-summary h2 {
    padding: 16px 20px;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0;
}

body.vt-theme #order-standard_cart .summary-container {
    margin: 0;
    padding: 18px 20px;
    background: #fff;
    border-radius: 0;
    font-size: 0.9rem;
}

body.vt-theme #order-standard_cart .order-summary .product-name {
    color: var(--vt-navy);
    font-weight: 600;
}

body.vt-theme #order-standard_cart .order-summary .product-group {
    color: var(--vt-text-muted);
}

body.vt-theme #order-standard_cart .order-summary .total-due-today .amt {
    font-size: 1.9rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--vt-navy);
}

body.vt-theme #order-standard_cart .order-summary .total-due-today span:not(.amt) {
    color: var(--vt-text-muted);
}

body.vt-theme #order-standard_cart .order-summary .btn-checkout,
body.vt-theme #order-standard_cart .btn-checkout {
    background: var(--vt-primary);
    border-color: var(--vt-primary);
    border-radius: var(--vt-radius);
    font-weight: 600;
    box-shadow: 0 8px 20px -8px rgba(23, 105, 255, 0.6);
}

body.vt-theme #order-standard_cart .btn-checkout:hover {
    background: var(--vt-primary-hover);
    border-color: var(--vt-primary-hover);
}

/* Cart items */
body.vt-theme #order-standard_cart .view-cart-items-header {
    background: var(--vt-navy);
    border-radius: var(--vt-radius) var(--vt-radius) 0 0;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

body.vt-theme #order-standard_cart .view-cart-items {
    border: 1px solid var(--vt-border);
    border-top: 0;
    border-radius: 0 0 var(--vt-radius) var(--vt-radius);
    overflow: hidden;
}

body.vt-theme #order-standard_cart .view-cart-items .item {
    background: #fff;
    border-bottom: 1px solid var(--vt-border);
}

body.vt-theme #order-standard_cart .view-cart-items .item-title {
    color: var(--vt-navy);
    font-weight: 600;
}

body.vt-theme #order-standard_cart .view-cart-items .item-group,
body.vt-theme #order-standard_cart .view-cart-items .item-domain {
    color: var(--vt-text-muted);
}

body.vt-theme #order-standard_cart .view-cart-tabs .nav-tabs .nav-link {
    border-radius: var(--vt-radius-sm) var(--vt-radius-sm) 0 0;
}

body.vt-theme #order-standard_cart .view-cart-tabs .tab-content {
    border-color: var(--vt-border);
    border-radius: 0 0 var(--vt-radius) var(--vt-radius);
}

body.vt-theme #order-standard_cart .empty-cart .btn,
body.vt-theme #order-standard_cart .btn-remove-from-cart {
    border-radius: var(--vt-radius-sm);
}

/* Checkout */
body.vt-theme #order-standard_cart .account-select-container .account,
body.vt-theme #order-standard_cart .account-select-container div.account {
    border: 1px solid var(--vt-border);
    border-radius: var(--vt-radius);
    background: #fff;
}

body.vt-theme #order-standard_cart .account-select-container div.account.active {
    border-color: var(--vt-primary);
    background: var(--vt-primary-50);
}

body.vt-theme #order-standard_cart .prepend-icon .field-icon {
    color: var(--vt-text-faint);
}

body.vt-theme #order-standard_cart .prepend-icon .field {
    padding-left: 40px;
}

body.vt-theme #order-standard_cart .cc-input-container,
body.vt-theme #order-standard_cart .apply-credit-container {
    border: 1px solid var(--vt-border);
    border-radius: var(--vt-radius);
    background: #fff;
}

body.vt-theme #order-standard_cart .apply-credit-container {
    background: var(--vt-primary-50);
    border-color: var(--vt-primary-100);
}

body.vt-theme #order-standard_cart .checkout-security-msg {
    border-radius: var(--vt-radius);
    background: var(--vt-success-bg);
    border-color: #abefc6;
    color: var(--vt-success-text);
}

body.vt-theme #order-standard_cart #paymentGatewaysContainer label,
body.vt-theme #order-standard_cart .gateway-selection label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 8px 8px 0;
    padding: 10px 14px;
    border: 1px solid var(--vt-border-strong);
    border-radius: var(--vt-radius);
    background: #fff;
    font-weight: 500;
    cursor: pointer;
}

body.vt-theme #order-standard_cart #paymentGatewaysContainer label:hover {
    border-color: var(--vt-primary-200);
}

body.vt-theme #order-standard_cart #btnCompleteOrder {
    border-radius: var(--vt-radius);
    font-weight: 600;
    padding: 0.8rem 2rem;
}

body.vt-theme #order-standard_cart .order-confirmation {
    border-radius: var(--vt-radius-lg);
    border: 1px solid #abefc6;
    background: var(--vt-success-bg);
    color: var(--vt-success-text);
}

/* MarketConnect promos inside the cart */
body.vt-theme #order-standard_cart .mc-promo {
    border-radius: var(--vt-radius-lg);
    border-color: var(--vt-border);
    overflow: hidden;
}

/* =========================================================================
   18  Footer
   ========================================================================= */
.vt-theme footer.vt-footer {
    padding: 48px 0 28px;
    background: var(--vt-navy);
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.9rem;
}

.vt-theme .vt-footer-top {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.vt-theme .vt-footer-brand {
    max-width: 340px;
}

.vt-theme .vt-footer-tagline {
    margin: 12px 0 0;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.88rem;
}

.vt-theme .vt-footer-links {
    flex-wrap: wrap;
    gap: 4px 6px;
}

.vt-theme footer.footer .vt-footer-links .nav-link {
    padding: 6px 10px;
    color: rgba(255, 255, 255, 0.72);
    border-radius: var(--vt-radius-sm);
}

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

.vt-theme .vt-footer-actions {
    margin: 0;
}

.vt-theme footer.footer .btn {
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.85);
    border-radius: var(--vt-radius-sm);
    font-weight: 500;
}

.vt-theme footer.footer .btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.vt-theme .vt-footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 22px;
}

.vt-theme footer.footer .copyright {
    margin: 0;
    text-align: left;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.5);
}

.vt-theme .vt-footer-secure {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.5);
}

.vt-theme .vt-footer-secure i {
    color: var(--vt-success);
}

/* =========================================================================
   19  Modals, popovers, dropdowns & tooltips
   ========================================================================= */
.vt-theme .dropdown-menu {
    min-width: 13rem;
    padding: 6px;
    margin-top: 6px;
    border: 1px solid var(--vt-border);
    border-radius: var(--vt-radius);
    box-shadow: var(--vt-shadow-lg);
    font-size: 0.92rem;
}

.vt-theme .dropdown-menu .dropdown-item,
.vt-theme header.header .dropdown-menu li.dropdown-item > a.dropdown-item {
    border-radius: var(--vt-radius-sm);
    color: var(--vt-text);
}

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

.vt-theme header.header .dropdown-menu li.dropdown-item > a.dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px !important;
    line-height: 1.3;
}

.vt-theme .dropdown-item:hover,
.vt-theme .dropdown-item:focus,
.vt-theme header.header .dropdown-menu li.dropdown-item > a.dropdown-item:hover {
    background: var(--vt-bg-soft);
    color: var(--vt-primary);
}

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

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

/* Notifications popover */
.vt-theme .popover {
    border: 1px solid var(--vt-border);
    border-radius: var(--vt-radius-lg);
    box-shadow: var(--vt-shadow-lg);
    font-family: var(--vt-font);
}

.vt-theme .popover-user-notifications {
    min-width: 320px;
    max-width: 360px;
}

.vt-theme .popover-user-notifications .popover-body {
    padding: 6px;
}

.vt-theme .popover-user-notifications ul li {
    border-bottom: 1px solid var(--vt-border);
}

.vt-theme .popover-user-notifications ul li:last-child {
    border-bottom: 0;
}

.vt-theme .popover-user-notifications ul li a {
    display: flex;
    gap: 10px;
    padding: 10px;
    border-radius: var(--vt-radius-sm);
    color: var(--vt-text);
    font-size: 0.88rem;
}

.vt-theme .popover-user-notifications ul li a:hover {
    background: var(--vt-bg-soft);
    text-decoration: none;
}

.vt-theme .popover-user-notifications ul li.none {
    padding: 14px;
    color: var(--vt-text-muted);
    text-align: center;
}

.vt-theme .modal-content {
    border: 1px solid var(--vt-border);
    border-radius: var(--vt-radius-lg);
    box-shadow: var(--vt-shadow-lg);
}

.vt-theme .modal-header {
    padding: 18px 22px;
    border-bottom-color: var(--vt-border);
}

.vt-theme .modal-title {
    font-weight: 600;
    color: var(--vt-navy);
}

.vt-theme .modal-body {
    padding: 22px;
}

.vt-theme .modal-footer {
    padding: 14px 22px;
    background: var(--vt-bg-soft);
    border-top-color: var(--vt-border);
    border-radius: 0 0 var(--vt-radius-lg) var(--vt-radius-lg);
}

.vt-theme .modal-backdrop.show {
    opacity: 0.55;
    background: var(--vt-navy);
}

/* Language / currency modal */
.vt-theme .modal-localisation .modal-content {
    background: var(--vt-navy);
    border-color: var(--vt-navy-700);
}

.vt-theme .modal-localisation .item-selector .item {
    border-radius: var(--vt-radius-sm);
}

.vt-theme .modal-localisation .item-selector .item.active {
    background: var(--vt-primary);
}

.vt-theme .modal-localisation .modal-footer {
    background: var(--vt-navy-800);
    border-top-color: var(--vt-navy-700);
}

.vt-theme .tooltip-inner {
    padding: 6px 10px;
    border-radius: var(--vt-radius-sm);
    background: var(--vt-navy);
    font-size: 0.8rem;
    font-weight: 500;
}

/* Full page loading overlay */
.vt-theme #fullpage-overlay {
    background: rgba(16, 24, 40, 0.65);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
}

/* =========================================================================
   20  Accessibility & motion
   ========================================================================= */
.vt-theme a:focus-visible,
.vt-theme button:focus-visible,
.vt-theme .btn:focus-visible,
.vt-theme .list-group-item:focus-visible,
.vt-theme .nav-link:focus-visible,
.vt-theme .vt-quick-item:focus-visible,
.vt-theme .tile:focus-visible {
    outline: 2px solid var(--vt-primary);
    outline-offset: 2px;
    box-shadow: none;
}

@media (prefers-reduced-motion: reduce) {
    .vt-theme *,
    .vt-theme *::before,
    .vt-theme *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .vt-theme .tiles .tile.vt-stat:hover,
    body.vt-theme #order-standard_cart .products .product:hover {
        transform: none;
    }
}

/* =========================================================================
   21  Responsive
   ========================================================================= */
@media (max-width: 1199.98px) {
    /* Mobile / tablet menu panel */
    .vt-theme header.header .main-navbar-wrapper {
        border-top: 0;
    }

    .vt-theme header.header .main-navbar-wrapper .navbar-collapse {
        padding: 0;
    }

    .vt-theme header.header .main-navbar-wrapper .navbar-collapse.show,
    .vt-theme header.header .main-navbar-wrapper .navbar-collapse.collapsing {
        padding: 12px 0 16px;
        border-top: 1px solid var(--vt-border);
        max-height: calc(100vh - var(--vt-header-h));
        overflow-y: auto;
    }

    .vt-theme header.header #nav > li > a,
    .vt-theme header.header .vt-secondary-nav > li > a {
        display: flex;
        padding: 11px 12px !important;
        font-size: 1rem;
        line-height: 1.3;
    }

    .vt-theme header.header .navbar-nav .dropdown-menu {
        margin: 2px 0 8px 12px;
        border: 0;
        border-left: 2px solid var(--vt-border);
        border-radius: 0;
        box-shadow: none;
        padding: 0 0 0 6px;
    }

    .vt-theme header.header .vt-secondary-nav {
        margin-top: 8px;
        padding-top: 8px;
        border-top: 1px solid var(--vt-border);
    }

    .vt-theme header.header .search {
        width: 100%;
    }

    .vt-theme .vt-quick-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    /* Undo Twenty-One's tile border juggling at this breakpoint */
    .vt-theme .tiles .tile.vt-stat {
        border-right: 1px solid var(--vt-border) !important;
        border-bottom: 1px solid var(--vt-border) !important;
    }
}

@media (max-width: 991.98px) {
    .vt-theme #main-body {
        padding-top: 18px;
    }

    .vt-theme .vt-welcome {
        flex-direction: column;
        align-items: flex-start;
        padding: 24px;
    }

    .vt-theme .vt-auth-shell {
        max-width: 540px;
    }

    .vt-theme .sidebar {
        margin-bottom: 8px;
    }
}

@media (max-width: 767.98px) {
    :root {
        --vt-header-h: 60px;
    }

    .vt-theme header.vt-header .vt-header-main {
        padding: 8px 0;
    }

    .vt-theme .vt-brand-name {
        max-width: 46vw;
        font-size: 1.05rem;
    }

    .vt-theme .vt-welcome-title {
        font-size: 1.45rem;
    }

    .vt-theme .vt-welcome-actions {
        width: 100%;
    }

    .vt-theme .vt-welcome-actions .btn {
        flex: 1 1 auto;
    }

    .vt-theme .tiles .tile.vt-stat {
        padding: 16px;
    }

    .vt-theme .vt-stat-icon {
        margin-bottom: 12px;
        width: 36px;
        height: 36px;
    }

    .vt-theme .tiles .tile.vt-stat .stat {
        font-size: 1.6rem;
    }

    .vt-theme .vt-quick-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .vt-theme .vt-quick-item {
        flex-direction: row;
        align-items: center;
        padding: 12px;
        font-size: 0.86rem;
    }

    .vt-theme .vt-attention {
        flex-wrap: wrap;
    }

    .vt-theme .vt-attention .btn {
        width: 100%;
    }

    .vt-theme .primary-content .card-body,
    .vt-theme .card-body.extra-padding {
        padding: 18px;
    }

    .vt-theme .table-container {
        padding: 4px 10px 10px;
    }

    .vt-theme .ticket-reply .posted-by .requestor-badge {
        margin-top: 6px;
    }

    .vt-theme.vt-auth #main-body {
        padding: 24px 0 48px;
    }

    .vt-theme .vt-auth-form .card-body {
        padding: 28px 22px !important;
    }

    .vt-theme .vt-footer-top,
    .vt-theme .vt-footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .vt-theme .popover-user-notifications {
        min-width: 0;
        max-width: calc(100vw - 24px);
    }

    /* Order form on phones */
    body.vt-theme #order-standard_cart .products .product {
        height: auto;
    }

    body.vt-theme #order-standard_cart .order-summary {
        margin-top: 12px;
    }

    body.vt-theme #order-standard_cart .view-cart-items-header {
        display: none;
    }

    body.vt-theme #order-standard_cart .view-cart-items {
        border-top: 1px solid var(--vt-border);
        border-radius: var(--vt-radius);
    }
}

/*
 * Phone tables. Twenty-One's bundle does not include the DataTables
 * Responsive extension, so wide tables would push the page sideways.
 * Fallback: the table scrolls inside its container. Enhancement (when
 * visioning.js has labelled the cells): each row becomes a stacked card.
 */
@media (max-width: 575.98px) {
    .vt-theme .table-container,
    .vt-theme .dataTables_wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .vt-theme .table-container {
        padding: 0;
        background: transparent;
        border: 0;
        box-shadow: none;
    }

    .vt-theme table.table-list.vt-stacked,
    .vt-theme table.table-list.vt-stacked tbody,
    .vt-theme table.table-list.vt-stacked tr,
    .vt-theme table.table-list.vt-stacked td {
        display: block;
        width: 100% !important;
    }

    .vt-theme .dataTables_wrapper table.table-list.vt-stacked {
        border: 0;
        background: transparent;
        overflow: visible;
    }

    .vt-theme table.table-list.vt-stacked thead {
        display: none;
    }

    .vt-theme table.table-list.vt-stacked tbody tr {
        margin-bottom: 12px;
        padding: 6px 0;
        background: #fff;
        border: 1px solid var(--vt-border);
        border-radius: var(--vt-radius-lg);
        box-shadow: var(--vt-shadow-xs);
    }

    .vt-theme table.table-list.vt-stacked tbody td {
        display: block;
        overflow: hidden;
        overflow-wrap: anywhere;
        box-sizing: border-box; /* DataTables sets content-box on cells */
        padding: 9px 16px !important;
        border: 0;
        background: transparent !important;
        text-align: right !important;
    }

    .vt-theme table.table-list.vt-stacked tbody td + td {
        border-top: 1px solid var(--vt-border);
    }

    .vt-theme table.table-list.vt-stacked tbody td::before {
        content: attr(data-label);
        float: left;
        margin-right: 16px;
        padding-top: 2px;
        color: var(--vt-text-muted);
        font-size: 0.74rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        text-align: left;
    }

    .vt-theme table.table-list.vt-stacked tbody td.vt-cell-empty {
        display: none;
    }

    .vt-theme table.table-list.vt-stacked tbody td.dataTables_empty {
        text-align: center !important;
    }

    .vt-theme table.table-list.vt-stacked tbody td.dataTables_empty::before {
        content: none;
    }

    .vt-theme .dataTables_wrapper .dataTables_filter {
        margin-top: 0;
    }
}

@media (max-width: 400px) {
    .vt-theme .vt-quick-grid {
        grid-template-columns: 1fr;
    }

    .vt-theme .vt-welcome {
        padding: 20px;
        border-radius: var(--vt-radius-lg);
    }
}

/* =========================================================================
   22  Print
   ========================================================================= */
@media print {
    .vt-theme header.vt-header,
    .vt-theme footer.vt-footer,
    .vt-theme .master-breadcrumb,
    .vt-theme .vt-quick-actions,
    .vt-theme .vt-skip-link {
        display: none !important;
    }

    .vt-theme,
    .vt-theme #main-body {
        background: #fff !important;
    }

    .vt-theme .card {
        box-shadow: none;
    }
}
