/* Wevarox header: product menu, phone layout & sidebar polish */

/* The theme preloads four images on every page with body:after.
   The browser will not stop the tab spinner until those finish. */
body:after {
    content: none !important;
    display: none !important;
}

.wx-ico {
    display: inline-block;
    vertical-align: -3px;
}

/* WHMCS leaves this full-screen dimmer in the HTML and only hides it with JavaScript. */
#fullpage-overlay.w-hidden {
    display: none !important;
}

#header .wx-nav > li > a {
    font-weight: 600;
}

#header .wx-nav-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 10px;
    background: #f3f4f6;
    color: #111;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

#header .wx-nav-toggle {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    padding: 0 !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 10px !important;
    align-items: center;
    justify-content: center;
    background: #fff !important;
    color: #111 !important;
}

@media (min-width: 1200px) {
    #header .wx-nav-toggle,
    #header .wx-nav-close {
        display: none !important;
    }
    #header .main-navbar-wrapper {
        display: flex;
        align-items: center;
    }
    #header .wx-nav {
        display: flex;
        align-items: center;
        gap: 4px;
    }
    #header .wx-nav > li > a {
        padding: 10px 14px;
        white-space: nowrap;
        font-size: 14.5px;
        color: #1f2937;
        transition: color 0.16s ease;
    }
    #header .wx-nav > li > a:hover {
        color: #7253eb;
    }
    #header .wx-nav > li.dropdown:hover > .dropdown-menu,
    #header .wx-nav > li.dropdown:focus-within > .dropdown-menu,
    #header .wx-nav > li.dropdown.show > .dropdown-menu {
        display: block;
    }
    #header .wx-nav > li.dropdown > a {
        position: relative;
    }
    /* Invisible strip under the label so the pointer can travel onto the panel. */
    #header .wx-nav > li.dropdown > a::before {
        content: "";
        position: absolute;
        left: -20px;
        right: -20px;
        top: 100%;
        height: 36px;
    }
    #header .wx-nav .dropdown-menu {
        min-width: 260px;
        max-height: none;
        overflow: visible;
        margin-top: 0;
        padding: 8px;
        border: 0;
        border-radius: 14px;
        box-shadow: 0 18px 40px rgba(16, 24, 40, 0.12);
    }
    #header .wx-nav .dropdown-item {
        border-radius: 14px;
        padding: 10px 11px;
        font-weight: 500;
        white-space: normal;
        color: #1f2937;
        transition: background-color 0.16s ease, color 0.16s ease;
    }
    #header .wx-nav .dropdown-item:hover,
    #header .wx-nav .dropdown-item:focus {
        background: #f4f7ff;
        color: #7253eb;
    }
}

@media (max-width: 1199.98px) {
    #header.tt-header,
    body.wevarox-homepage #header.tt-header,
    body.wevarox-homepage .wevarox-sheet #header.tt-header {
        position: sticky !important;
        top: 0 !important;
        z-index: 1030 !important;
        background: #fff !important;
    }
    #header .navbar,
    body.wevarox-homepage .wevarox-sheet #header .navbar:not(.offcanvas-collapse) {
        background: #fff !important;
        padding: 0 !important;
        min-height: 64px;
    }
    #header .navbar > .container {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        max-width: 100% !important;
        min-height: 64px;
        margin: 0 !important;
        padding: 8px 14px !important;
        gap: 10px;
    }
    #header .navbar-brand {
        width: auto !important;
        max-width: 48vw;
        min-width: 0;
        display: flex !important;
        align-items: center;
        margin: 0 !important;
        padding: 0 !important;
        text-align: left !important;
        flex: 0 1 auto;
    }
    #header .navbar-brand .logo-img {
        display: block;
        width: auto !important;
        max-width: 148px !important;
        max-height: 36px !important;
        height: auto !important;
    }
    #header .tt-toolbar-wrap,
    #header .tt-toolbar-wrap:not(.tt-double-header .tt-toolbar-wrap),
    body.wevarox-homepage #header .tt-main-header.tt-toolbar-wrap {
        width: auto !important;
        max-width: none !important;
        margin: 0 0 0 auto !important;
        padding: 0 !important;
        display: flex !important;
        flex: 0 0 auto !important;
        justify-content: flex-end;
        align-items: center;
    }
    #header .tt-secondary-list,
    body.wevarox-homepage #header .tt-toolbar-wrap .tt-secondary-list {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        gap: 4px;
        margin: 0 !important;
        padding: 0 !important;
    }
    #header .tt-secondary-list > li {
        width: auto !important;
        margin: 0 !important;
    }
    #header .wx-nav-toggle {
        display: inline-flex !important;
    }
    body.wevarox-homepage #header .tt-toolbar-wrap a[href*="clientarea.php"] {
        padding: 8px 12px !important;
        font-size: 13px !important;
        line-height: 1.2 !important;
        white-space: nowrap;
    }
    /* The menu is a slide-in panel. */
    #header .offcanvas-collapse,
    body.wevarox-homepage #header .main-navbar-wrapper.navbar.offcanvas-collapse,
    body.wevarox-homepage .wevarox-sheet #header .navbar.offcanvas-collapse {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: auto !important;
        bottom: 0 !important;
        width: min(88vw, 340px) !important;
        max-width: 340px !important;
        height: 100vh !important;
        height: 100dvh !important;
        margin: 0 !important;
        flex: none !important;
        display: block !important;
        justify-content: flex-start !important;
        background: #fff !important;
        padding: 72px 18px 28px !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        transform: translateX(-105%) !important;
        transition: transform .25s ease !important;
        z-index: 10050 !important;
        box-shadow: none !important;
    }
    #header .offcanvas-collapse.open,
    body.wevarox-homepage #header .offcanvas-collapse.open,
    body.wevarox-homepage #header .main-navbar-wrapper.navbar.offcanvas-collapse.open,
    body.wevarox-homepage .wevarox-sheet #header .navbar.offcanvas-collapse.open {
        transform: translateX(0) !important;
        box-shadow: 16px 0 40px rgba(16, 24, 40, 0.18) !important;
    }
    #header .offcanvas-collapse #mainNavbar {
        padding: 0 !important;
    }
    #header .offcanvas-collapse #nav,
    #header .wx-nav {
        display: block !important;
        width: 100% !important;
        height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    #header .offcanvas-collapse #nav > li {
        display: block;
        width: 100%;
        border-bottom: 1px solid #eef0f4;
    }
    #header .offcanvas-collapse #nav > li > a,
    body.wevarox-homepage #header .offcanvas-collapse #nav > li > a {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        min-height: 48px;
        padding: 10px 2px !important;
        color: #111 !important;
        font-size: 16px !important;
        font-weight: 600;
        line-height: 1.3;
    }
    #header .wx-nav .dropdown-menu {
        position: static !important;
        transform: none !important;
        float: none !important;
        display: none;
        width: 100%;
        min-width: 0;
        margin: 0;
        padding: 0 0 10px 4px;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        background: transparent;
    }
    #header .wx-nav .dropdown.show > .dropdown-menu {
        display: block;
    }
    #header .wx-nav .dropdown-item {
        display: flex;
        align-items: center;
        min-height: 42px;
        padding: 8px 6px;
        white-space: normal;
        color: #374151 !important;
        background: transparent;
        font-weight: 500;
    }
    #header .wx-nav .dropdown-toggle::after {
        margin-left: 12px;
    }
    .tt-body-wrapper .overlay {
        z-index: 10040;
    }
}

/* ========================================================
   PREMIUM WEVAROX MEGA MENUS (Desktop)
   ======================================================== */
#header .wx-mega {
    list-style: none;
    position: relative;
}

@media (min-width: 1200px) {
    #header,
    #header .navbar,
    #header .navbar > .container,
    #header .main-navbar-wrapper,
    #header #mainNavbar,
    #header .wx-nav {
        overflow: visible;
    }
    #header .wx-nav > li.dropdown {
        position: static;
    }
    #header .wx-nav .wx-mega {
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        margin: 0;
        padding: 22px 22px 18px;
        border: 1px solid rgba(226, 232, 240, 0.95);
        border-radius: 24px;
        background: #ffffff;
        box-shadow: 0 24px 60px -10px rgba(15, 23, 42, 0.2), 0 8px 24px -4px rgba(15, 23, 42, 0.06);
        max-height: none;
        overflow: hidden;
        z-index: 1050;
    }
    /* Invisible hover safety strip so the pointer never drops off */
    #header .wx-nav .wx-mega::before {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        top: -30px;
        height: 30px;
    }
    /* Top hairline brand accent bar */
    #header .wx-mega::after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, #7253eb 0%, #3b82f6 50%, #06b6d4 100%);
    }

    #header .wx-mega--dom {
        width: min(880px, calc(100vw - 48px));
    }
    #header .wx-mega--host {
        width: min(860px, calc(100vw - 48px));
    }
    #header .wx-mega--lic {
        width: min(980px, calc(100vw - 48px));
    }

    /* Mega Menu Header Ribbon */
    #header .wx-mega__head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 2px 4px 14px;
        margin-bottom: 14px;
        border-bottom: 1px solid #edf2f7;
    }
    #header .wx-mega__kicker {
        display: flex;
        align-items: center;
        gap: 10px;
        flex-wrap: wrap;
    }
    #header .wx-mega__pill {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        padding: 4px 10px;
        border-radius: 999px;
        background: rgba(114, 83, 235, 0.09);
        color: #7253eb;
        font-size: 11px;
        font-weight: 800;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }
    #header .wx-mega__pill-dot {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: #7253eb;
    }
    #header .wx-mega__sub {
        color: #64748b;
        font-size: 13px;
        font-weight: 500;
    }
    #header .wx-mega__head-link {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        font-size: 12.5px;
        font-weight: 700;
        color: #7253eb;
        text-decoration: none !important;
        transition: color 0.16s ease, transform 0.16s ease;
        white-space: nowrap;
    }
    #header .wx-mega__head-link:hover {
        color: #5636d1;
        transform: translateX(2px);
    }

    /* Grids */
    #header .wx-mega__grid {
        display: grid;
        gap: 8px;
        margin: 0;
        padding: 0;
        list-style: none;
    }
    #header .wx-mega--dom .wx-mega__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    #header .wx-mega--host .wx-mega__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    #header .wx-mega--lic .wx-mega__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    /* Domains 3-Card Bento Grid */
    #header .wx-mega--dom .wx-mega__item {
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        padding: 18px 16px 16px !important;
        border-radius: 18px !important;
        border: 1px solid #edf1f7 !important;
        background: #ffffff !important;
        text-decoration: none !important;
        transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
        position: relative;
        overflow: hidden;
        min-height: 184px;
    }
    #header .wx-mega--dom .wx-mega__item::before {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: 18px;
        background: linear-gradient(180deg, rgba(114, 83, 235, 0.04) 0%, rgba(114, 83, 235, 0.01) 100%);
        opacity: 0;
        transition: opacity 0.22s ease;
    }
    #header .wx-mega--dom .wx-mega__item:hover {
        border-color: #d6ccfa !important;
        box-shadow: 0 12px 28px -6px rgba(114, 83, 235, 0.14), 0 4px 10px rgba(15, 23, 42, 0.03) !important;
        transform: translateY(-2px);
    }
    #header .wx-mega--dom .wx-mega__item:hover::before {
        opacity: 1;
    }
    #header .wx-mega--dom .wx-mega__card-top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 14px;
        position: relative;
        z-index: 1;
    }
    #header .wx-mega--dom .wx-mega__tag {
        font-size: 10.5px;
        font-weight: 700;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        padding: 3px 8px;
        border-radius: 6px;
        background: #f1f5f9;
        color: #475569;
    }
    #header .wx-mega--dom .wx-mega__tag--primary {
        background: rgba(114, 83, 235, 0.1);
        color: #7253eb;
    }
    #header .wx-mega--dom .wx-mega__tag--success {
        background: rgba(16, 185, 129, 0.1);
        color: #059669;
    }
    #header .wx-mega--dom .wx-mega__body {
        position: relative;
        z-index: 1;
        margin-bottom: 12px;
    }
    #header .wx-mega--dom .wx-mega__title {
        display: block;
        font-size: 15px;
        font-weight: 700;
        color: #0f172a;
        line-height: 1.3;
        transition: color 0.18s ease;
    }
    #header .wx-mega--dom .wx-mega__desc {
        display: block;
        margin-top: 5px;
        color: #64748b;
        font-size: 13px;
        line-height: 1.45;
    }
    #header .wx-mega--dom .wx-mega__action {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 12.5px;
        font-weight: 700;
        color: #7253eb;
        margin-top: auto;
        position: relative;
        z-index: 1;
    }
    #header .wx-mega--dom .wx-mega__action svg {
        width: 14px;
        height: 14px;
        transition: transform 0.2s ease;
    }
    #header .wx-mega--dom .wx-mega__item:hover .wx-mega__title {
        color: #7253eb;
    }
    #header .wx-mega--dom .wx-mega__item:hover .wx-mega__action svg {
        transform: translateX(4px);
    }

    /* Hosting & Licences Horizontal Items */
    #header .wx-mega--host .wx-mega__item,
    #header .wx-mega--lic .wx-mega__item {
        display: flex !important;
        align-items: center !important;
        gap: 14px !important;
        padding: 12px 14px !important;
        border-radius: 16px !important;
        border: 1px solid transparent !important;
        background: transparent !important;
        text-decoration: none !important;
        transition: all 0.2s ease !important;
        position: relative;
    }
    #header .wx-mega--host .wx-mega__item:hover,
    #header .wx-mega--lic .wx-mega__item:hover {
        background: #fbfaff !important;
        border-color: #e5defc !important;
        box-shadow: 0 8px 20px -4px rgba(114, 83, 235, 0.1), 0 2px 6px rgba(15, 23, 42, 0.02) !important;
        transform: translateY(-1px);
    }
    #header .wx-mega__arrow-ico {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 20px;
        height: 20px;
        color: #94a3b8;
        opacity: 0;
        transform: translateX(-4px);
        transition: all 0.2s ease;
        flex: 0 0 20px;
        margin-left: auto;
    }
    #header .wx-mega__item:hover .wx-mega__arrow-ico {
        opacity: 1;
        color: #7253eb;
        transform: translateX(0);
    }

    /* Mega Menu Footer Ribbon */
    #header .wx-mega__foot {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        margin: 16px -22px -18px;
        padding: 12px 22px;
        background: #f8fafc;
        border-top: 1px solid #edf2f7;
        border-radius: 0 0 24px 24px;
        font-size: 12.5px;
    }
    #header .wx-mega__foot-info {
        display: flex;
        align-items: center;
        gap: 8px;
        color: #64748b;
        font-weight: 500;
    }
    #header .wx-mega__foot-info strong {
        color: #0f172a;
        font-weight: 700;
    }
    #header .wx-mega__foot-link {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        color: #7253eb;
        font-weight: 700;
        text-decoration: none !important;
        white-space: nowrap;
        transition: color 0.16s ease, transform 0.16s ease;
    }
    #header .wx-mega__foot-link:hover {
        color: #5636d1;
        transform: translateX(2px);
    }
}

/* Icon Badges */
#header .wx-mega__ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    padding: 8px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid #e8eef5;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
    overflow: hidden;
    transition: all 0.2s ease;
}
#header .wx-mega__ico svg,
#header .wx-mega__ico img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
#header .wx-mega__item:hover .wx-mega__ico {
    background: #ffffff;
    border-color: #d6ccfa;
    box-shadow: 0 6px 16px rgba(114, 83, 235, 0.14);
    transform: scale(1.04);
}

/* Branded Vendor Logo Pill */
#header .wx-mega__ico--brand {
    width: 86px;
    height: 44px;
    flex: 0 0 86px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
    padding: 6px 10px;
}
#header .wx-mega__ico--brand img {
    width: 100%;
    height: 100%;
    max-height: 22px;
    object-fit: contain;
    display: block;
}
#header .wx-mega__ico--brand img.wx-logo--compact {
    max-height: 18px;
}
#header .wx-mega__item:hover .wx-mega__ico--brand {
    border-color: #d6ccfa;
    box-shadow: 0 4px 14px rgba(114, 83, 235, 0.12);
    transform: scale(1.03);
}

/* Copy Typography */
#header .wx-mega__copy {
    flex: 1 1 auto;
    min-width: 0;
}
#header .wx-mega__copy strong {
    display: block;
    color: #0f172a;
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.01em;
    transition: color 0.18s ease;
}
#header .wx-mega__item:hover .wx-mega__copy strong {
    color: #7253eb;
}
#header .wx-mega__copy small {
    display: block;
    margin-top: 3px;
    color: #64748b;
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1.4;
}

/* Secondary account & currency dropdown polish */
#header .wx-sec-drop {
    min-width: 230px;
    padding: 8px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.13);
}
#header .wx-sec-drop > li.dropdown-item {
    padding: 0;
    background: transparent !important;
}
#header .wx-sec-item {
    display: flex !important;
    align-items: center;
    gap: 10px;
    padding: 8px 10px !important;
    border-radius: 10px;
    color: #1e293b !important;
    font-size: 13.5px;
    font-weight: 500;
    text-decoration: none !important;
    transition: background-color 0.15s ease, color 0.15s ease;
}
#header .wx-sec-item:hover,
#header .wx-sec-item:focus {
    background: #f4f7ff !important;
    color: #7253eb !important;
}
#header .wx-acct-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border-radius: 8px;
    background: #f1f5ff;
    color: #7253eb;
    border: 1px solid #e2eafb;
}
#header .wx-acct-ico svg {
    width: 15px;
    height: 15px;
    display: block;
}
#header #currency-dropdown .dropdown-menu {
    padding: 6px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.12);
}
#header #currency-dropdown .dropdown-menu li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border-radius: 9px;
    font-weight: 600;
}
#header #currency-dropdown .dropdown-menu li a:hover {
    background: #f4f7ff;
    color: #7253eb;
}

/* Dark theme contrast for mega menus */
[data-bs-theme="dark"] #header .wx-nav .wx-mega,
[data-bs-theme="dark"] #header .wx-sec-drop {
    background: #0f172a;
    border-color: #1e293b;
}
[data-bs-theme="dark"] #header .wx-mega__head {
    border-bottom-color: #1e293b;
}
[data-bs-theme="dark"] #header .wx-mega__head strong,
[data-bs-theme="dark"] #header .wx-mega__pill {
    color: #a78bfa;
    background: rgba(167, 139, 250, 0.15);
}
[data-bs-theme="dark"] #header .wx-mega__sub,
[data-bs-theme="dark"] #header .wx-mega__copy small,
[data-bs-theme="dark"] #header .wx-mega--dom .wx-mega__desc {
    color: #94a3b8;
}
[data-bs-theme="dark"] #header .wx-mega__copy strong,
[data-bs-theme="dark"] #header .wx-mega--dom .wx-mega__title,
[data-bs-theme="dark"] #header .wx-sec-item {
    color: #f8fafc !important;
}
[data-bs-theme="dark"] #header .wx-nav .dropdown-item:hover,
[data-bs-theme="dark"] #header .wx-sec-item:hover {
    background: #1e293b !important;
}
[data-bs-theme="dark"] #header .wx-mega__ico,
[data-bs-theme="dark"] #header .wx-mega__ico--brand {
    background: #ffffff;
    border-color: rgba(255, 255, 255, 0.14);
}
[data-bs-theme="dark"] #header .wx-mega__foot {
    background: #0b1120;
    border-top-color: #1e293b;
}

/* Mobile Offcanvas Drawer Mega Menu Overrides (< 1200px) */
@media (max-width: 1199.98px) {
    #header .wx-mega {
        padding: 6px 0 12px !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        background: transparent !important;
    }
    #header .wx-mega::after {
        display: none !important;
    }
    #header .wx-mega__head,
    #header .wx-mega__foot {
        display: none !important;
    }
    #header .wx-mega__grid {
        grid-template-columns: 1fr !important;
        gap: 6px !important;
    }
    #header .wx-mega--dom .wx-mega__item {
        flex-direction: row !important;
        align-items: center !important;
        min-height: auto !important;
        padding: 8px 6px !important;
        gap: 12px !important;
        border: none !important;
        border-bottom: 1px solid #f1f5f9 !important;
        border-radius: 0 !important;
        background: transparent !important;
    }
    #header .wx-mega--dom .wx-mega__card-top {
        margin-bottom: 0 !important;
    }
    #header .wx-mega--dom .wx-mega__tag,
    #header .wx-mega--dom .wx-mega__action {
        display: none !important;
    }
    #header .wx-mega--dom .wx-mega__body {
        margin-bottom: 0 !important;
    }
    #header .wx-mega--dom .wx-mega__desc {
        font-size: 12px !important;
        margin-top: 2px !important;
    }
    #header .wx-mega--host .wx-mega__item,
    #header .wx-mega--lic .wx-mega__item {
        padding: 8px 6px !important;
        gap: 10px !important;
        border-radius: 10px !important;
    }
    #header .wx-mega__arrow-ico {
        display: none !important;
    }
    #header .wx-mega__ico {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
        padding: 7px;
        border-radius: 11px;
    }
    #header .wx-mega__ico--brand {
        width: 74px;
        flex-basis: 74px;
        height: 38px;
        padding: 5px 7px;
        border-radius: 10px;
    }
    #header .wx-mega__ico--brand img {
        max-height: 18px;
    }
    #header .wx-mega__ico--brand img.wx-logo--compact {
        max-height: 16px;
    }
}

@media (max-width: 380px) {
    #header .navbar > .container {
        padding-left: 12px !important;
        padding-right: 12px !important;
        gap: 6px;
    }
    #header .navbar-brand {
        max-width: 112px;
    }
    #header .navbar-brand .logo-img {
        max-width: 112px !important;
        max-height: 30px !important;
    }
    #header .tt-toolbar-wrap a[href*="register.php"] {
        display: none !important;
    }
    body.wevarox-homepage #header .tt-toolbar-wrap a[href*="clientarea.php"] {
        padding: 7px 10px !important;
    }
}

@media (max-width: 520px) {
    #header .tt-toolbar-wrap a[href*="register.php"] .tt-hide-sm {
        display: none !important;
    }
    body.wevarox-homepage #header .tt-toolbar-wrap a[href*="clientarea.php"] {
        padding: 8px 12px !important;
        font-size: 13px !important;
    }
}

/* ========================================================
   WEVAROX SIDEBAR & CONTENT AREA POLISH (Knowledgebase, Support, etc.)
   ======================================================== */
#main-body:not(.ptb-100) {
    padding-top: 36px !important;
    padding-bottom: 60px !important;
}
#main-body .container > .row {
    display: flex !important;
    flex-wrap: wrap !important;
    width: 100% !important;
}
#main-body .primary-content {
    min-width: 0;
}

/* Sidebar Cards */
.card-sidebar {
    background: #ffffff !important;
    border: 1px solid #e8ecf4 !important;
    border-radius: 18px !important;
    box-shadow: 0 4px 18px -2px rgba(15, 23, 42, 0.05), 0 1px 3px rgba(15, 23, 42, 0.02) !important;
    overflow: hidden !important;
    margin-bottom: 22px !important;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.card-sidebar:hover {
    border-color: #d8d2fb !important;
    box-shadow: 0 8px 24px -4px rgba(114, 83, 235, 0.1) !important;
}
.sidebar .card-sidebar .card-header {
    background: #f8fafc !important;
    border-bottom: 1px solid #edf1f7 !important;
    padding: 14px 18px !important;
}
.sidebar .card-sidebar .card-header .card-title {
    font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, sans-serif !important;
    font-size: 14.5px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    letter-spacing: -0.01em !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin: 0 !important;
}
.sidebar .card-sidebar .card-header .card-title i.fas,
.sidebar .card-sidebar .card-header .card-title i.far {
    color: #7253eb !important;
    margin-right: 8px;
}
.sidebar .card-sidebar .card-minimise {
    color: #94a3b8 !important;
    font-size: 12px;
    cursor: pointer;
    transition: transform 0.2s ease, color 0.2s ease;
}
.sidebar .card-sidebar .card-minimise:hover {
    color: #7253eb !important;
}

/* Sidebar List Items */
.sidebar .list-group {
    font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, sans-serif !important;
    padding: 6px !important;
    border-radius: 0 0 18px 18px !important;
}
.sidebar .list-group-item {
    font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, sans-serif !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    color: #475569 !important;
    border: 0 !important;
    border-radius: 10px !important;
    padding: 9px 12px !important;
    margin: 2px 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    background: transparent !important;
    transition: all 0.16s ease !important;
    text-decoration: none !important;
}
.sidebar .list-group-item .sidebar-menu-item-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}
.sidebar .list-group-item .sidebar-menu-item-icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border-radius: 8px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 12px;
    transition: all 0.16s ease;
}
.sidebar .list-group-item:hover {
    background: #f6f4fe !important;
    color: #7253eb !important;
    padding-left: 16px !important;
}
.sidebar .list-group-item:hover .sidebar-menu-item-icon-wrapper {
    background: rgba(114, 83, 235, 0.12);
    color: #7253eb;
}
.sidebar .list-group-item.active,
.sidebar .list-group-item.active:hover {
    background: linear-gradient(90deg, rgba(114, 83, 235, 0.1) 0%, rgba(114, 83, 235, 0.03) 100%) !important;
    color: #7253eb !important;
    font-weight: 700 !important;
    border-left: 3px solid #7253eb !important;
    border-radius: 0 10px 10px 0 !important;
}
.sidebar .list-group-item.active .sidebar-menu-item-icon-wrapper {
    background: #7253eb !important;
    color: #ffffff !important;
}

/* Empty Category Item */
#Primary_Sidebar-Support_Knowledgebase_Categories-No_Support_Knowledgebase_Categories {
    color: #94a3b8 !important;
    font-weight: 500 !important;
    font-style: italic !important;
    font-size: 13px !important;
    padding: 12px 14px !important;
    background: transparent !important;
    cursor: default !important;
}

/* Knowledgebase search hero polish */
.primary-content .tt-kb-search {
    display: flex;
    align-items: center;
    background: #ffffff !important;
    border: 1px solid #e0dbf8 !important;
    border-radius: 16px !important;
    box-shadow: 0 8px 24px rgba(114, 83, 235, 0.07) !important;
    overflow: hidden !important;
    padding: 5px !important;
}
.primary-content .tt-kb-search .tt-search-field {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    padding-left: 16px;
}
.primary-content .tt-kb-search .tt-search-field i {
    color: #7253eb !important;
    font-size: 16px;
    margin-right: 10px;
}
.primary-content .tt-kb-search input.form-control {
    border: none !important;
    box-shadow: none !important;
    font-size: 15px !important;
    color: #0f172a !important;
    padding: 12px 6px !important;
    background: transparent !important;
}
.primary-content .tt-kb-search .btn-primary {
    background: #7253eb !important;
    border-color: #7253eb !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    font-size: 14.5px !important;
    padding: 12px 26px !important;
    color: #ffffff !important;
    transition: background 0.16s ease, transform 0.16s ease;
}
.primary-content .tt-kb-search .btn-primary:hover {
    background: #5b3bd6 !important;
    border-color: #5b3bd6 !important;
    transform: translateY(-1px);
}

/* Empty alert polish */
.primary-content .alert-info {
    background: #ffffff !important;
    border: 1px dashed #cbd5e1 !important;
    border-radius: 18px !important;
    color: #64748b !important;
    font-size: 15px !important;
    padding: 40px 24px !important;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03) !important;
    text-align: center !important;
}
