/* AirGSM Modern Brand Header (Light Mode) */
body:not(.dark) header {
    position: relative;
    z-index: 1030;
    background: #ffffff;
    box-shadow: 0 1px 10px rgba(15, 23, 42, 0.05);
}
body:not(.dark).page-index header.navbar-shrink {
    background: #ffffff !important;
    box-shadow: 0 6px 24px rgba(15, 23, 42, 0.08) !important;
}

/* Row 1: Utility Topbar */
body:not(.dark) .header-top {
    background: #f8fafc !important;
    border-bottom: 1px solid #e2e8f0 !important;
    font-size: 12.5px;
}
body:not(.dark) .header-top .nav {
    min-height: 36px;
}
body:not(.dark) .header-top .nav-link,
body:not(.dark) .header-top .ag-top-contact {
    color: #475569 !important;
    font-weight: 500;
    padding: 6px 10px !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 6px;
    text-decoration: none !important;
    transition: background 0.15s ease, color 0.15s ease;
}
body:not(.dark) .header-top .nav-item:hover,
body:not(.dark) .header-top .nav-link:hover,
body:not(.dark) .header-top .ag-top-contact:hover {
    background: #ffffff !important;
    color: #0f172a !important;
}
body:not(.dark) .ag-live-pill {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
    padding: 1px 7px;
    border-radius: 999px;
    margin-left: 2px;
}

/* Row 2: Main White Navbar */
body:not(.dark) .header-middle {
    background: #ffffff !important;
    border-bottom: 1px solid #f1f5f9 !important;
    padding: 6px 0;
}
body:not(.dark) .header-middle .navbar-brand img {
    max-height: 40px;
    width: auto;
    object-fit: contain;
}
body:not(.dark) .header-middle .navbar-mastermenu {
    align-items: center;
    gap: 2px;
}
/* Remove dated vertical bars and yellow lines */
body:not(.dark) .navbar-expand-lg .navbar-nav .nav-item .nav-link::before,
body:not(.dark) .navbar-expand-lg .navbar-nav .nav-item .nav-link::after,
body:not(.dark) .navbar-products .nav-item .nav-link::before,
body:not(.dark) .navbar-products .nav-item .nav-link::after {
    display: none !important;
    content: none !important;
}
body:not(.dark) .header-middle .navbar-mastermenu > .nav-item > .nav-link {
    color: #1e293b !important;
    font-size: 13.5px;
    font-weight: 600;
    padding: 8px 13px !important;
    border-radius: 8px;
    background: transparent !important;
    transition: background 0.16s ease, color 0.16s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
body:not(.dark) .header-middle .navbar-mastermenu > .nav-item:hover > .nav-link,
body:not(.dark) .header-middle .navbar-mastermenu > .nav-item > .nav-link:hover {
    background: #f5f3ff !important;
    color: #5b21b6 !important;
}
body:not(.dark) .header-middle .navbar-mastermenu > .nav-item > .nav-link i.fa-chevron-down {
    font-size: 10px;
    opacity: 0.65;
}

/* Auth Buttons (Register + Modern Brand Purple Login) */
body:not(.dark) .header-middle .nav-item.login {
    margin-left: 8px;
}
body:not(.dark) .ag-btn-register {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px !important;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 600;
    color: #334155 !important;
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    text-decoration: none !important;
    margin-right: 8px;
    transition: all 0.16s ease;
    white-space: nowrap;
}
body:not(.dark) .ag-btn-register:hover {
    border-color: #6d28d9 !important;
    color: #5b21b6 !important;
    background: #faf5ff !important;
}
body:not(.dark) .header-middle .nav-item.login a.bg-secondary,
body:not(.dark) .header-middle .nav-item.login a.btn {
    background: linear-gradient(135deg, #5b21b6 0%, #6d28d9 100%) !important;
    border: 1px solid #5b21b6 !important;
    color: #ffffff !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    padding: 8px 18px !important;
    border-radius: 9px !important;
    box-shadow: 0 2px 8px rgba(91, 33, 182, 0.24) !important;
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease !important;
}
body:not(.dark) .header-middle .nav-item.login a.bg-secondary:hover,
body:not(.dark) .header-middle .nav-item.login a.btn:hover {
    filter: brightness(1.07);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(91, 33, 182, 0.34) !important;
    color: #ffffff !important;
}

/* Stripe-style Rounded Dropdowns */
body:not(.dark) header .dropdown-menu {
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.11) !important;
    padding: 8px !important;
    margin-top: 4px;
    background: #ffffff !important;
}
body:not(.dark) header .dropdown-menu .dropdown-item {
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 500;
    color: #334155;
    transition: background 0.14s ease, color 0.14s ease;
}
body:not(.dark) header .dropdown-menu .dropdown-item:hover,
body:not(.dark) header .dropdown-menu .dropdown-item:focus {
    background: #f5f3ff !important;
    color: #5b21b6 !important;
}

/* Row 3: Refined AirGSM Purple Category Bar */
body:not(.dark) .header-bottom,
body:not(.dark) .header-bottom.themedefault {
    background: linear-gradient(90deg, #3b0764 0%, #5b21b6 50%, #6d28d9 100%) !important;
    background-image: linear-gradient(90deg, #3b0764 0%, #5b21b6 50%, #6d28d9 100%) !important;
    height: auto !important;
    min-height: 50px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
body:not(.dark) .navbar-products {
    padding: 6px 0;
    gap: 4px;
    align-items: center;
}
body:not(.dark) .navbar-products .nav-item {
    border-radius: 8px;
    transition: background 0.16s ease;
}
body:not(.dark) .navbar-products .nav-link {
    color: rgba(255, 255, 255, 0.94) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    padding: 9px 13px !important;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
body:not(.dark) .navbar-products .nav-item:hover {
    background: rgba(255, 255, 255, 0.15) !important;
}
body:not(.dark) .navbar-products .nav-item:hover > .nav-link {
    color: #ffffff !important;
}
body:not(.dark) .navbar-products .nav-link i.fa-chevron-down {
    font-size: 10px;
    opacity: 0.78;
}
body:not(.dark) .header-bottom .dropdown-menu {
    border-radius: 0 0 14px 14px !important;
    margin-top: 0;
    padding: 18px 20px !important;
}

/* Refined Search Pill */
body:not(.dark) .header-bottom .nav-link-search {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 9px;
    padding: 7px 14px !important;
    color: #ffffff !important;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.16s ease;
}
body:not(.dark) .header-bottom .nav-link-search:hover {
    background: rgba(255, 255, 255, 0.24);
}
body:not(.dark) .header-bottom .search-bar .dropdown-menu.bg-primary {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    padding: 14px 16px !important;
}
body:not(.dark) .header-bottom .search-bar input.search-products {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 9px !important;
    padding: 10px 14px !important;
    color: #0f172a !important;
}
body:not(.dark) .header-bottom .search-bar input.search-products:focus {
    background: #ffffff !important;
    border-color: #6d28d9 !important;
    box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.14) !important;
}
body:not(.dark) .header-middle .navbar-toggler {
    color: #0f172a !important;
    font-size: 20px;
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}
@media (max-width: 991.98px) {
    body:not(.dark) .header-middle .navbar-brand img {
        max-height: 34px;
    }
    body:not(.dark) .header-bottom,
    body:not(.dark) .header-bottom.themedefault {
        min-height: 44px;
    }
}


/* === AIRGSM MODERN LOGIN & REGISTRATION (LIGHT) === */
body:not(.dark) #login .modal-content {
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    box-shadow: 0 24px 55px rgba(15, 23, 42, 0.22) !important;
    overflow: hidden;
    background: #ffffff !important;
}
body:not(.dark) #login .modal-header {
    background: #ffffff !important;
    border-bottom: 1px solid #f1f5f9 !important;
    padding: 18px 22px !important;
}
body:not(.dark) #login .modal-header .modal-title {
    color: #0f172a !important;
    font-size: 17px !important;
    font-weight: 800 !important;
    letter-spacing: -0.015em;
}
body:not(.dark) #login .modal-header .close {
    color: #64748b !important;
    opacity: 1 !important;
    text-shadow: none !important;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, color 0.15s ease;
}
body:not(.dark) #login .modal-header .close:hover {
    background: #f1f5f9;
    color: #0f172a !important;
}
body:not(.dark) #login .modal-body-login {
    padding: 20px 24px 22px !important;
}
body:not(.dark) .page-login .card.fieldoflogin {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 0 !important;
}
body:not(.dark) .page-login h5.page-title {
    display: none;
}
body:not(.dark) .page-login .input-group {
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    overflow: hidden;
    background: #ffffff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
body:not(.dark) .page-login .input-group:focus-within {
    border-color: #6d28d9;
    box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.14);
}
body:not(.dark) .page-login .input-group-text {
    border: none !important;
    background: #f8fafc !important;
    color: #64748b !important;
    padding: 10px 13px !important;
}
body:not(.dark) .page-login .form-control {
    border: none !important;
    box-shadow: none !important;
    padding: 10px 12px !important;
    font-size: 13.5px !important;
    color: #0f172a !important;
    height: auto !important;
}
body:not(.dark) .page-login .custom-control-label {
    font-size: 13px;
    color: #475569;
}
body:not(.dark) .page-login button.btn.btn-primary,
body:not(.dark) #login button.btn.btn-primary,
body:not(.dark) .tpl-client_registration button.btn.btn-primary,
body:not(.dark) .tpl-client_registration .wizard .actions li a {
    background: linear-gradient(135deg, #5b21b6 0%, #6d28d9 100%) !important;
    border: 1px solid #5b21b6 !important;
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    padding: 11px 20px !important;
    border-radius: 10px !important;
    box-shadow: 0 3px 10px rgba(91, 33, 182, 0.24) !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease !important;
}
body:not(.dark) .page-login button.btn.btn-primary:hover,
body:not(.dark) #login button.btn.btn-primary:hover,
body:not(.dark) .tpl-client_registration button.btn.btn-primary:hover,
body:not(.dark) .tpl-client_registration .wizard .actions li a:hover {
    filter: brightness(1.07);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(91, 33, 182, 0.32) !important;
    color: #ffffff !important;
}
.ag-login-footer {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
    text-align: center;
    font-size: 13px;
    color: #64748b;
}
.ag-login-footer a {
    color: #5b21b6 !important;
    font-weight: 700;
    text-decoration: none !important;
}
.ag-login-footer a:hover {
    text-decoration: underline !important;
}

/* Registration Wizard (/register) */
body:not(.dark).tpl-client_registration .card.card-registration {
    max-width: 620px;
    margin: 8px auto 40px auto;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05) !important;
    padding: 30px 28px !important;
}
body:not(.dark).tpl-client_registration .page-registration {
    max-width: 100% !important;
}
body:not(.dark).tpl-client_registration #wizard-title {
    font-size: 18px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    letter-spacing: -0.015em;
    margin-bottom: 12px !important;
    text-transform: capitalize;
}
body:not(.dark).tpl-client_registration .registration-steps .steps {
    margin-bottom: 22px;
}
body:not(.dark).tpl-client_registration .registration-steps .steps .nav-wizard {
    border-bottom: none !important;
    gap: 8px;
    display: flex;
}
body:not(.dark).tpl-client_registration .registration-steps .steps .nav-wizard li {
    flex: 1 1 0;
}
body:not(.dark).tpl-client_registration .registration-steps .steps .nav-wizard li a {
    height: 6px !important;
    padding: 0 !important;
    border-radius: 999px !important;
    background: #e2e8f0 !important;
    border: none !important;
}
body:not(.dark).tpl-client_registration .registration-steps .steps .nav-wizard li.checked a,
body:not(.dark).tpl-client_registration .registration-steps .steps .nav-wizard li.active a {
    background: linear-gradient(90deg, #5b21b6 0%, #7c3aed 100%) !important;
}
body:not(.dark).tpl-client_registration .form-label {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    margin-bottom: 6px !important;
}
body:not(.dark).tpl-client_registration .form-control,
body:not(.dark).tpl-client_registration select.form-control {
    border: 1px solid #cbd5e1 !important;
    border-radius: 10px !important;
    padding: 10px 13px !important;
    font-size: 13.5px !important;
    color: #0f172a !important;
    height: auto !important;
    background: #ffffff !important;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
body:not(.dark).tpl-client_registration .form-control:focus {
    border-color: #6d28d9 !important;
    box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.14) !important;
}
body:not(.dark).tpl-client_registration h5 {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #5b21b6 !important;
    margin-bottom: 14px !important;
}

/* === AIRGSM STORE HOVER FIX & COLLECTION POLISH === */
@media (min-width: 992px) {
    /* Eliminate vertical dead-zone gap between category bar and mega-menu */
    body:not(.dark) .header-bottom {
        overflow: visible !important;
    }
    body:not(.dark) .header-bottom .overflow-auto {
        overflow: visible !important;
    }
    body:not(.dark) .header-bottom .navbar-products {
        padding: 0 !important;
        gap: 4px;
        align-items: stretch !important;
        overflow: visible !important;
    }
    body:not(.dark) .header-bottom .navbar-products > .nav-item {
        display: flex !important;
        align-items: center !important;
        padding: 7px 0 !important;
        margin: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
    }
    body:not(.dark) .header-bottom .navbar-products > .nav-item:hover,
    body:not(.dark) .header-bottom .navbar-products > .nav-item.ag-hover {
        background: transparent !important;
    }
    body:not(.dark) .header-bottom .navbar-products > .nav-item > .nav-link {
        padding: 8px 13px !important;
        border-radius: 8px !important;
        transition: background 0.15s ease, color 0.15s ease;
    }
    body:not(.dark) .header-bottom .navbar-products > .nav-item:hover > .nav-link,
    body:not(.dark) .header-bottom .navbar-products > .nav-item.ag-hover > .nav-link {
        background: rgba(255, 255, 255, 0.17) !important;
        color: #ffffff !important;
    }

    /* Flush dropdown positioning + zero-gap hover retention */
    body:not(.dark) header .dropdown-menu:not(.onclick) {
        top: calc(100% - 2px) !important;
        margin-top: 0 !important;
        transition: opacity 0.14s ease, visibility 0.14s ease !important;
        pointer-events: none;
    }
    body:not(.dark) header .dropdown:hover > .dropdown-menu:not(.onclick),
    body:not(.dark) header .dropdown.ag-hover > .dropdown-menu:not(.onclick),
    body:not(.dark) header .dropdown.show > .dropdown-menu:not(.onclick) {
        opacity: 1 !important;
        visibility: visible !important;
        top: calc(100% - 2px) !important;
        z-index: 9999 !important;
        pointer-events: auto !important;
    }
    body:not(.dark) .header-bottom .dropdown-menu {
        border-top: none !important;
        border-radius: 0 0 16px 16px !important;
        box-shadow: 0 18px 40px rgba(15, 23, 42, 0.13) !important;
        padding: 20px 24px !important;
    }
    body:not(.dark) .header-bottom .dropdown-menu .menu-column,
    body:not(.dark) .header-bottom .dropdown-menu .submenu-column {
        border-right: 1px solid #f1f5f9 !important;
        min-width: 245px;
        padding: 2px 14px 2px 4px;
    }
    body:not(.dark) .header-bottom .dropdown-menu .dropdown-item {
        padding: 9px 12px !important;
        font-size: 13.5px !important;
        font-weight: 600 !important;
        color: #1e293b !important;
        border-radius: 8px !important;
        margin-bottom: 2px;
    }
    body:not(.dark) .header-bottom .dropdown-menu .dropdown-item:hover {
        background: #f5f3ff !important;
        color: #5b21b6 !important;
    }
    body:not(.dark) .header-bottom .dropdown-menu .group-image {
        max-height: 185px !important;
        object-fit: contain;
        border-radius: 10px;
    }
}

/* Store Category Header, Sort Bar & Description */
body:not(.dark) .ag-cat-header {
    padding-bottom: 12px;
    margin-bottom: 14px;
    border-bottom: 1px solid #e2e8f0;
}
body:not(.dark) .ag-cat-header h1.page-title,
body:not(.dark) .ag-cat-header h2.page-title {
    font-size: 1.65rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    letter-spacing: -0.02em;
    line-height: 1.25;
}
body:not(.dark) .ag-cat-desc {
    font-size: 14px;
    line-height: 1.6;
    color: #475569;
    margin: 0 0 20px 0;
    max-width: 780px;
}
body:not(.dark) .ag-sort-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
body:not(.dark) .ag-sort-label {
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}
body:not(.dark) select.ag-sort-select {
    min-width: 175px;
    height: 38px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 9px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    background-color: #ffffff !important;
    padding: 0 12px !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
}
body:not(.dark) select.ag-sort-select:focus {
    border-color: #6d28d9 !important;
    box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.14) !important;
}

/* Sidebar (Categories & Price Filter) */
body:not(.dark) .sidebar.card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 14px !important;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.03) !important;
    overflow: hidden;
}
body:not(.dark) .sidebar .cart {
    padding: 16px 18px !important;
    border-top: 1px solid #f1f5f9 !important;
}
body:not(.dark) .sidebar .nav-header {
    font-size: 11.5px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    letter-spacing: 0.06em;
    margin-bottom: 12px !important;
}
body:not(.dark) .sidebar a.parent-category,
body:not(.dark) .sidebar a.current-category {
    font-size: 13.5px !important;
    font-weight: 700 !important;
    padding-left: 16px !important;
    margin-bottom: 8px;
    text-decoration: none !important;
}
body:not(.dark) .sidebar a.current-category {
    color: #5b21b6 !important;
}
body:not(.dark) .sidebar a.parent-category {
    color: #475569 !important;
}
body:not(.dark) .sidebar a.parent-category:hover {
    color: #5b21b6 !important;
}
body:not(.dark) .sidebar .sidebar-child-items {
    padding-left: 4px !important;
}
body:not(.dark) .sidebar .sidebar-child-items a {
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #334155 !important;
    padding: 6px 10px !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    transition: background 0.14s ease, color 0.14s ease;
}
body:not(.dark) .sidebar .sidebar-child-items a:hover {
    background: #f5f3ff !important;
    color: #5b21b6 !important;
}
body:not(.dark) .sidebar .catloglist input[type="text"],
body:not(.dark) .sidebar .catloglist input[type="number"] {
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    height: 36px !important;
    padding: 4px 8px !important;
    font-size: 13px !important;
    color: #0f172a !important;
    background: #ffffff !important;
}
body:not(.dark) .sidebar .catloglist input[type="text"]:focus,
body:not(.dark) .sidebar .catloglist input[type="number"]:focus {
    border-color: #6d28d9 !important;
    outline: none;
    box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.12);
}
body:not(.dark) input[name="findbyprice"],
body:not(.dark) .sidebar .btn-secondary {
    background: #5b21b6 !important;
    border-color: #5b21b6 !important;
    color: #ffffff !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    height: 36px !important;
    padding: 0 14px !important;
    cursor: pointer;
    transition: filter 0.15s ease;
}
body:not(.dark) input[name="findbyprice"]:hover,
body:not(.dark) .sidebar .btn-secondary:hover {
    filter: brightness(1.08);
}

/* Filter-by Chips */
body:not(.dark) ul.filter-by {
    margin: 0 0 14px 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
body:not(.dark) ul.filter-by li.rounded-20 {
    background: #f5f3ff !important;
    border: 1px solid #ddd6fe;
    color: #4c1d95;
    font-size: 12.5px;
    padding: 4px 12px !important;
    border-radius: 999px !important;
}

/* Store Product & Category Card Polish */
body:not(.dark) .card-product {
    border: 1px solid #e2e8f0 !important;
    border-radius: 14px !important;
    background: #ffffff !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03) !important;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease !important;
}
body:not(.dark) .card-product:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08) !important;
    border-color: #cbd5e1 !important;
}
body:not(.dark) .card-product .card-product-img {
    background: #f8fafc !important;
    border-bottom: 1px solid #f1f5f9 !important;
    height: 210px !important;
    min-height: 210px !important;
    padding: 14px !important;
}
body:not(.dark) .card-product .card-product-img img,
body:not(.dark) .card-product img.card-img-top {
    max-height: 182px !important;
    max-width: 92% !important;
    filter: drop-shadow(0 4px 10px rgba(15, 23, 42, 0.06)) !important;
}
body:not(.dark) .ag-prod-price {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    font-variant-numeric: tabular-nums;
}
body:not(.dark) .ag-prod-btn {
    border-radius: 8px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    padding: 8px 12px !important;
    border: 1px solid #cbd5e1 !important;
    background: #ffffff !important;
    color: #1e293b !important;
    transition: all 0.16s ease !important;
}
body:not(.dark) .card-product:hover .ag-prod-btn {
    background: #5b21b6 !important;
    border-color: #5b21b6 !important;
    color: #ffffff !important;
}
body:not(.dark) .ag-prod-btn.is-oos {
    background: #f8fafc !important;
    color: #64748b !important;
    border-color: #e2e8f0 !important;
}
body:not(.dark) .card-product:hover .ag-prod-btn.is-oos {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    color: #475569 !important;
}
@media (max-width: 767px) {
    body:not(.dark) .card-product .card-product-img {
        height: 185px !important;
        min-height: 185px !important;
    }
    body:not(.dark) .card-product .card-product-img img,
    body:not(.dark) .card-product img.card-img-top {
        max-height: 160px !important;
    }
}

/* === AIRGSM DASHBOARD, ADD FUNDS & MOBILE POLISH === */
body:not(.dark) .custom-checkbox .custom-control-input:checked ~ .custom-control-label::before,
body:not(.dark) .custom-radio .custom-control-input:checked ~ .custom-control-label::before {
    background-color: #5b21b6 !important;
    border-color: #5b21b6 !important;
    background: #5b21b6 !important;
}
body:not(.dark) button.btn.btn-primary,
body:not(.dark) a.btn.btn-primary,
body:not(.dark) input.btn.btn-primary {
    background: linear-gradient(135deg, #5b21b6 0%, #6d28d9 100%) !important;
    border: 1px solid #5b21b6 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    border-radius: 10px !important;
    box-shadow: 0 3px 10px rgba(91, 33, 182, 0.22);
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
body:not(.dark) button.btn.btn-primary:hover,
body:not(.dark) a.btn.btn-primary:hover,
body:not(.dark) input.btn.btn-primary:hover {
    filter: brightness(1.07);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(91, 33, 182, 0.3);
    color: #ffffff !important;
}

/* Client Dashboard (client_home.tpl) */
body:not(.dark).tpl-client_home .alert1.alert-info {
    background: #eff6ff !important;
    border: 1px solid #bfdbfe !important;
    border-left: 4px solid #5b21b6 !important;
    color: #1e293b !important;
    border-radius: 12px !important;
    padding: 13px 18px !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 13.5px;
    font-weight: 500;
}
body:not(.dark).tpl-client_home .alert1.alert-info a {
    background: #5b21b6 !important;
    color: #ffffff !important;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 700;
    text-decoration: none !important;
    display: inline-block;
}
body:not(.dark).tpl-client_home .alert1.alert-info a:hover {
    background: #4c1d95 !important;
}
body:not(.dark) .clientarea-balance .card.themedefault {
    background: linear-gradient(135deg, #3b0764 0%, #5b21b6 58%, #6d28d9 100%) !important;
    background-image: linear-gradient(135deg, #3b0764 0%, #5b21b6 58%, #6d28d9 100%) !important;
    border: none !important;
    border-radius: 16px !important;
    padding: 22px 24px !important;
    box-shadow: 0 12px 28px rgba(91, 33, 182, 0.22) !important;
}
body:not(.dark) .clientarea-balance .card.themedefault > .text-white {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
}
body:not(.dark) .clientarea-balance .card.themedefault h4,
body:not(.dark) .clientarea-balance .card.themedefault h4 span {
    color: #ffffff !important;
    font-weight: 800;
    letter-spacing: -0.02em;
}
body:not(.dark) .clientarea-balance .card.themedefault button.btn.btn-primary {
    background: #ffffff !important;
    border: none !important;
    color: #4c1d95 !important;
    padding: 9px 16px !important;
    border-radius: 10px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.16) !important;
}
body:not(.dark) .clientarea-balance .card.themedefault button.btn.btn-primary:hover {
    background: #faf5ff !important;
    color: #3b0764 !important;
}
body:not(.dark) .card.card-unpaid-balance {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    padding: 22px 24px !important;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03) !important;
}
body:not(.dark) .card.card-unpaid-balance .text-danger {
    color: #64748b !important;
    font-size: 13px;
    font-weight: 600;
}
body:not(.dark) .card.card-unpaid-balance h4.text-danger {
    color: #dc2626 !important;
    font-weight: 800;
    margin-top: 4px;
}
body:not(.dark) .card.card-othercredit {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    padding: 12px 16px !important;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03) !important;
}
body:not(.dark) .card.card-othercredit #othercredit .d-row {
    gap: 12px;
}
body:not(.dark) .card.card-othercredit .text-muted1 {
    border-left: none !important;
    color: #64748b !important;
    font-size: 13px;
    font-weight: 600;
}
body:not(.dark) .card.card-othercredit h1.h1 {
    color: #0f172a !important;
    font-size: 1.75rem !important;
    font-weight: 800 !important;
    margin-bottom: 4px;
}
body:not(.dark) .card.card-othercredit .rounded-circle {
    width: 44px;
    height: 44px;
    margin: 0 auto;
    background: #f5f3ff;
    color: #5b21b6 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    font-size: 18px !important;
}
body:not(.dark) .card.card-area-status {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 14px !important;
    padding: 18px 16px !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03) !important;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
body:not(.dark) .card.card-area-status:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.07) !important;
}
body:not(.dark) .card.card-area-status h2.h2 {
    color: #0f172a !important;
    font-weight: 800;
    font-size: 1.6rem;
}
body:not(.dark) .card.card-area-status .progressbar {
    height: 6px !important;
    border-radius: 999px !important;
}
body:not(.dark) .card.card-area-status .bg-light {
    background: #f1f5f9 !important;
    border-radius: 999px !important;
}
body:not(.dark) .card.card-area-status .text-muted1 {
    color: #475569 !important;
    font-size: 13px;
    font-weight: 600;
}
body:not(.dark) .card.card-announcement {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    padding: 18px 20px !important;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03) !important;
}
body:not(.dark) .card.card-announcement .card-title {
    color: #0f172a !important;
    font-weight: 800;
    font-size: 15.5px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 10px;
    margin-bottom: 8px;
}
body:not(.dark) .card.card-announcement .news-list {
    border-bottom: 1px solid #f1f5f9 !important;
    padding: 10px 4px !important;
    border-radius: 8px;
    transition: background 0.14s ease;
}
body:not(.dark) .card.card-announcement .news-list:hover {
    background: #f8fafc;
}

/* Client Profile & Settings Tabs (client_settings_*) */
body:not(.dark)[class*="tpl-client_settings"] .page-container > .card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    box-shadow: 0 6px 24px rgba(15, 23, 42, 0.04) !important;
    padding: 24px !important;
}
body:not(.dark)[class*="tpl-client_settings"] ul.nav.nav-pills.flex-nowrap {
    border-bottom: 1px solid #e2e8f0;
    gap: 4px;
    padding-bottom: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
body:not(.dark)[class*="tpl-client_settings"] ul.nav.nav-pills.flex-nowrap .nav-link {
    color: #64748b !important;
    font-size: 13.5px;
    font-weight: 600;
    padding: 10px 14px;
    border-radius: 0 !important;
    border-bottom: 2px solid transparent !important;
    background: transparent !important;
    white-space: nowrap;
}
body:not(.dark)[class*="tpl-client_settings"] ul.nav.nav-pills.flex-nowrap .nav-link:hover {
    color: #0f172a !important;
}
body:not(.dark)[class*="tpl-client_settings"] ul.nav.nav-pills.flex-nowrap .nav-link.active {
    color: #5b21b6 !important;
    background: transparent !important;
    border-bottom: 2px solid #5b21b6 !important;
    font-weight: 700;
}
body:not(.dark)[class*="tpl-client_settings"] .form-label {
    font-size: 12.5px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 6px;
}
body:not(.dark)[class*="tpl-client_settings"] .form-control {
    border: 1px solid #cbd5e1 !important;
    border-radius: 10px !important;
    min-height: 42px;
    padding: 9px 12px !important;
    font-size: 13.5px !important;
    color: #0f172a !important;
}
body:not(.dark)[class*="tpl-client_settings"] .form-control:focus {
    border-color: #6d28d9 !important;
    box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.14) !important;
}
body:not(.dark)[class*="tpl-client_settings"] .badge-success {
    background: #ecfdf5 !important;
    color: #047857 !important;
    border: 1px solid #a7f3d0;
    padding: 6px 11px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 700;
}

/* Add Funds Page (.tpl-client_addfunds) */
body:not(.dark).tpl-client_addfunds .card.card-simple-form {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 18px !important;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.05) !important;
    padding: 28px 24px !important;
}
body:not(.dark) .ag-af-balance-pill {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 14px 28px;
    margin-bottom: 16px;
}
body:not(.dark) .ag-af-balance-pill h3 {
    color: #0f172a !important;
    font-size: 1.9rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}
body:not(.dark) .ag-af-notice {
    background: #eff6ff !important;
    border: 1px solid #bfdbfe !important;
    color: #1e3a8a !important;
    border-radius: 12px !important;
    padding: 12px 16px !important;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
}
body:not(.dark) .ag-af-promo {
    background: linear-gradient(135deg, #ffffff 0%, #faf5ff 100%);
    border: 1px solid #ddd6fe;
    border-radius: 14px;
    padding: 18px 20px;
}
body:not(.dark) .ag-af-form-card {
    background: #ffffff;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
}
body:not(.dark).tpl-client_addfunds #amount {
    border: 1px solid #cbd5e1 !important;
    border-radius: 12px !important;
    padding: 10px 16px !important;
    font-size: 26px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    background: #ffffff !important;
}
body:not(.dark).tpl-client_addfunds #amount:focus {
    border-color: #6d28d9 !important;
    box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.14) !important;
}
body:not(.dark) .ag-terms-box {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 16px;
    transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}
body:not(.dark) .ag-terms-box.has-error {
    background: #fef2f2;
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}
body:not(.dark) .ag-terms-check-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
body:not(.dark) .ag-terms-input {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    min-width: 20px;
    margin: 2px 0 0 0;
    border: 1.8px solid #94a3b8;
    border-radius: 6px;
    background-color: #ffffff;
    cursor: pointer;
    position: relative;
    transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}
body:not(.dark) .ag-terms-input:focus {
    outline: none;
    border-color: #6d28d9;
    box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.18);
}
body:not(.dark) .ag-terms-input:checked {
    background-color: #5b21b6;
    border-color: #5b21b6;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3.5 8.2L6.6 11.3L12.5 4.8' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 14px 14px;
}
body:not(.dark) .ag-terms-content {
    flex: 1;
    min-width: 0;
}
body:not(.dark) .ag-terms-label {
    display: block;
    margin: 0;
    font-size: 13px;
    color: #334155;
    line-height: 1.55;
    font-weight: 500;
    cursor: pointer;
}
body:not(.dark) .ag-terms-label strong {
    color: #0f172a;
    font-weight: 700;
}
body:not(.dark) .ag-terms-links {
    margin-top: 6px;
}
body:not(.dark) .ag-terms-links a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12.5px;
    font-weight: 700;
    color: #5b21b6 !important;
    text-decoration: underline !important;
}
body:not(.dark) .ag-terms-links a:hover {
    color: #4c1d95 !important;
}
body:not(.dark) .ag-terms-error {
    display: none;
    align-items: flex-start;
    gap: 8px;
    margin-top: 10px;
    padding: 8px 11px;
    border-radius: 8px;
    background: #fee2e2;
    border: 1px solid #fecaca;
    color: #991b1b;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.4;
}
body:not(.dark) .ag-terms-error i {
    margin-top: 2px;
    flex-shrink: 0;
}

/* Mobile Header, Drawer & Responsive Audit Fixes (< 992px / < 768px) */
@media (max-width: 991.98px) {
    /* Counteract theme.css line 2914 `.btn { color: black; }` on dark/purple buttons */
    body:not(.dark) button.btn.btn-primary,
    body:not(.dark) a.btn.btn-primary,
    body:not(.dark) input.btn.btn-primary,
    body:not(.dark) .btn-primary,
    body:not(.dark) .btn-success,
    body:not(.dark) .btn-info,
    body:not(.dark) .bg-primary,
    body:not(.dark) .bg-secondary,
    body:not(.dark) .ag-gc-btn-primary,
    body:not(.dark) .wizard .actions li a,
    body:not(.dark) input[name="findbyprice"] {
        color: #ffffff !important;
    }
    body:not(.dark) .ag-gc-btn-sec,
    body:not(.dark) .ag-btn-register,
    body:not(.dark) .ag-prod-btn {
        color: #1e293b !important;
    }
    body:not(.dark) .ag-prod-btn.is-oos {
        color: #64748b !important;
    }

    /* Hide Mobile Search Box & Center Mobile Header Logo (< 992px) */
    body:not(.dark) .header-bottom .search-bar,
    body:not(.dark) header .container-cart-menu,
    body:not(.dark) header > .header-bottom:not(.header-middle) {
        display: none !important;
    }
    body:not(.dark) .header-middle nav.navbar-expand-lg {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 54px;
    }
    body:not(.dark) .header-middle .navbar-toggler {
        position: relative;
        z-index: 2;
        width: 40px;
        height: 40px;
        padding: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 10px;
        border: 1px solid #e2e8f0;
        background: #f8fafc;
        color: #0f172a;
    }
    body:not(.dark) .header-middle .navbar-brand {
        position: absolute !important;
        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important;
        margin: 0 !important;
        padding: 0 !important;
        z-index: 1;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    body:not(.dark) .header-middle .navbar-brand img {
        max-height: 36px;
        width: auto;
    }

    /* Mobile Drawer (#navbarToggler1) Brand Logo Header & Clean Menu List */
    body:not(.dark) .modal-menu .modal-dialog {
        max-width: 310px !important;
        width: 86vw !important;
    }
    body:not(.dark) .modal-menu .modal-header {
        background: linear-gradient(135deg, #3b0764 0%, #5b21b6 100%) !important;
        color: #ffffff !important;
        padding: 14px 16px 16px !important;
        border-bottom: none !important;
    }
    body:not(.dark) .ag-drawer-topbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }
    body:not(.dark) .ag-drawer-back {
        width: 36px;
        height: 36px;
        border-radius: 9px;
        background: rgba(255, 255, 255, 0.14);
        color: #ffffff !important;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 16px;
        text-decoration: none !important;
        flex-shrink: 0;
    }
    body:not(.dark) .ag-drawer-brand {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: #ffffff;
        padding: 5px 14px;
        border-radius: 10px;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
        text-decoration: none !important;
    }
    body:not(.dark) .ag-drawer-brand img {
        max-height: 28px;
        width: auto;
        display: block;
    }
    body:not(.dark) .ag-drawer-brand span {
        color: #0f172a !important;
        font-weight: 800;
        font-size: 15px;
    }
    body:not(.dark) .ag-drawer-spacer {
        width: 36px;
        flex-shrink: 0;
    }
    body:not(.dark) .ag-drawer-userrow {
        display: flex;
        align-items: center;
        gap: 11px;
        background: rgba(255, 255, 255, 0.12);
        border: 1px solid rgba(255, 255, 255, 0.18);
        border-radius: 12px;
        padding: 9px 11px;
        margin-top: 8px;
    }
    body:not(.dark) .ag-drawer-avatar {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        border: 2px solid rgba(255, 255, 255, 0.7);
        flex-shrink: 0;
    }
    body:not(.dark) .ag-drawer-userinfo {
        min-width: 0;
        flex: 1;
    }
    body:not(.dark) .ag-drawer-username {
        color: #ffffff !important;
        font-size: 13.5px;
        font-weight: 700;
        line-height: 1.25;
    }
    body:not(.dark) .ag-drawer-tier {
        color: #fde68a !important;
        font-size: 11.5px;
        font-weight: 700;
    }
    body:not(.dark) .ag-drawer-email {
        color: rgba(255, 255, 255, 0.85) !important;
        font-size: 11.5px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    body:not(.dark) .ag-drawer-auth {
        gap: 8px;
    }
    body:not(.dark) .modal-menu .modal-header .ag-drawer-auth > button {
        border-radius: 10px !important;
        padding: 9px 12px !important;
        font-size: 13px !important;
        font-weight: 700 !important;
        min-height: 40px;
    }
    body:not(.dark) .modal-menu .modal-header button[onclick*="register"] {
        background: #ffffff !important;
        color: #0f172a !important;
        border: 1px solid rgba(255, 255, 255, 0.45);
    }
    body:not(.dark) .modal-menu .modal-header button[data-target="#login"] {
        background: #7c3aed !important;
        color: #ffffff !important;
        border: 1px solid rgba(255, 255, 255, 0.35);
    }
    body:not(.dark) .modal-menu .modal-body {
        background: #ffffff !important;
        padding-bottom: 24px !important;
    }
    body:not(.dark) .modal-menu .nav-link.dropdown-toggle {
        background: #f8fafc !important;
        color: #64748b !important;
        font-size: 10.5px !important;
        font-weight: 800 !important;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        padding: 9px 16px !important;
        border-top: 1px solid #f1f5f9 !important;
        border-bottom: 1px solid #e2e8f0 !important;
    }
    body:not(.dark) .modal-menu .dropdown-item,
    body:not(.dark) .modal-menu .catloglist li > a,
    body:not(.dark) .modal-menu .nav-item:not(.dropdown) > .nav-link {
        color: #1e293b !important;
        font-size: 13.5px !important;
        font-weight: 600 !important;
        padding: 11px 28px 11px 16px !important;
        border-bottom: 1px solid #f1f5f9 !important;
        outline: none !important;
        box-shadow: none !important;
        transition: background 0.14s ease, color 0.14s ease;
    }
    body:not(.dark) .modal-menu a:focus,
    body:not(.dark) .modal-menu a:active,
    body:not(.dark) .modal-menu .dropdown-item:hover,
    body:not(.dark) .modal-menu .catloglist li > a:hover {
        background: #f5f3ff !important;
        color: #5b21b6 !important;
        outline: none !important;
        box-shadow: none !important;
    }
    body:not(.dark) .modal-menu .catloglist li ul {
        padding-left: 14px !important;
        background: #fafbff;
    }

    /* Dashboard Order Cards & Balance Stacking */
    body:not(.dark) .clientarea-balance .d-row {
        gap: 12px;
    }
    body:not(.dark) .clientarea-balance .flex-grow-1.mx-3 {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    body:not(.dark) .card.card-area-status {
        min-width: 100%;
    }
    body:not(.dark) .clientarea-balance .card.themedefault button.btn.btn-primary {
        color: #4c1d95 !important;
        width: auto !important;
    }
}

@media (min-width: 576px) and (max-width: 991.98px) {
    body:not(.dark) .col-product {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }
}

@media (max-width: 767.98px) {
    body:not(.dark) .ag-cat-header h1.page-title {
        font-size: 1.38rem !important;
    }
    body:not(.dark) .ag-gc-hero {
        padding: 18px 16px !important;
    }
    body:not(.dark) .ag-gc-title {
        font-size: 1.24rem !important;
    }
    body:not(.dark) .ag-gc-fan-wrap {
        margin-top: 14px;
    }
    body:not(.dark) .ag-gc-fan {
        height: 165px !important;
    }
    body:not(.dark).tpl-client_addfunds .card.card-simple-form {
        padding: 16px 12px !important;
    }
    body:not(.dark).tpl-client_addfunds .ag-af-balance-pill {
        width: 100%;
        padding: 12px 16px;
    }
    body:not(.dark).tpl-client_addfunds .ag-af-balance-pill h3 {
        font-size: 1.55rem !important;
    }
    body:not(.dark) .ag-af-form-card {
        padding: 16px 14px !important;
        overflow: hidden;
    }
    body:not(.dark).tpl-client_addfunds .ag-af-form-card .border.p-4.rounded {
        padding: 14px 12px !important;
    }
    body:not(.dark).tpl-client_addfunds #amount {
        font-size: 22px !important;
        padding: 9px 12px !important;
    }
    body:not(.dark).tpl-client_addfunds .price-details table,
    body:not(.dark).tpl-client_addfunds .price-details td {
        white-space: normal !important;
        word-break: break-word;
        font-size: 13px !important;
    }
    body:not(.dark).tpl-client_addfunds .ag-terms-box {
        padding: 12px !important;
    }
    body:not(.dark).tpl-client_addfunds .ag-terms-label {
        font-size: 12.5px !important;
        line-height: 1.5 !important;
    }
    body:not(.dark).tpl-client_addfunds .d-actionbar-mobile {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px;
        text-align: center;
    }
    body:not(.dark).tpl-client_addfunds .d-actionbar-mobile .btn {
        width: 100% !important;
        min-height: 44px;
        font-size: 14.5px !important;
    }
    body:not(.dark)[class*="tpl-client_settings"] .page-container > .card {
        padding: 16px 14px !important;
    }
    body:not(.dark).tpl-client_home .alert1.alert-info {
        padding: 12px 14px !important;
    }
    body:not(.dark).tpl-client_home .alert1.alert-info a {
        width: 100%;
        text-align: center;
    }
}

/* === AIRGSM PRODUCT DETAIL CLEAN LIGHT STYLES === */
body:not(.dark) .card.card-productdetail {
    border: 1px solid #e2e8f0 !important;
    border-radius: 18px !important;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.05) !important;
    padding: 26px !important;
    background: #ffffff !important;
}
body:not(.dark) .card.card-productdetail h1.h3 {
    font-size: 1.55rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    letter-spacing: -0.02em;
    line-height: 1.3;
    margin-bottom: 18px !important;
}
body:not(.dark) .card.card-productdetail .slide-products {
    background: #f8fafc !important;
    border: 1px solid #f1f5f9;
    border-radius: 14px !important;
    padding: 22px 16px !important;
}
body:not(.dark) .ag-pd-lead {
    font-size: 14px;
    line-height: 1.55;
    color: #475569;
    margin: 6px 0 16px 0;
}
body:not(.dark) .ag-pd-wrapper {
    width: 100%;
    max-width: 100%;
}
body:not(.dark) .ag-pd-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 18px 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}
body:not(.dark) .ag-pd-spec-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}
body:not(.dark) .ag-pd-spec-hdr {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}
body:not(.dark) .ag-pd-spec-hdr-title {
    font-size: 13px;
    font-weight: 800;
    color: #0f172a;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
body:not(.dark) .ag-pd-spec-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
body:not(.dark) .ag-pd-spec-table tr {
    border-bottom: 1px solid #f1f5f9;
}
body:not(.dark) .ag-pd-spec-table tr:last-child {
    border-bottom: none;
}
body:not(.dark) .ag-pd-spec-table tr:nth-child(odd) {
    background: #fafbfc;
}
body:not(.dark) .ag-pd-spec-table td {
    padding: 10px 16px;
    vertical-align: top;
}
body:not(.dark) .ag-pd-spec-k {
    font-weight: 600;
    color: #64748b;
    width: 31%;
}
body:not(.dark) .ag-pd-spec-v {
    color: #0f172a;
    font-weight: 500;
}
body:not(.dark) .ag-pd-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #334155;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}
body:not(.dark) .ag-pd-courier-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 10px;
    width: 100%;
}
body:not(.dark) .ag-pd-courier-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 11px 13px;
}
@media (max-width: 767.98px) {
    body:not(.dark) .card.card-productdetail {
        padding: 16px 14px !important;
    }
    body:not(.dark) .card.card-productdetail h1.h3 {
        font-size: 1.28rem !important;
    }
    body:not(.dark) .ag-pd-card {
        padding: 14px !important;
    }
    body:not(.dark) .ag-pd-spec-table td {
        padding: 8px 12px;
        font-size: 12.5px;
    }
    body:not(.dark) .ag-pd-spec-k {
        width: 38%;
    }
}

/* === AIRGSM SUGGESTED DEPOSIT PRESET BUTTONS === */
body:not(.dark) .ag-af-presets {
    margin: 12px 0 18px 0;
}
body:not(.dark) .ag-af-presets-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}
body:not(.dark) .ag-af-presets-title {
    font-size: 12.5px;
    font-weight: 700;
    color: #334155;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
body:not(.dark) .ag-af-presets-title i {
    color: #6d28d9;
}
body:not(.dark) .ag-af-presets-link {
    font-size: 12px;
    font-weight: 700;
    color: #5b21b6 !important;
    text-decoration: none;
}
body:not(.dark) .ag-af-presets-link:hover {
    text-decoration: underline !important;
}
body:not(.dark) .ag-af-preset-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
}
body:not(.dark) .ag-af-preset-btn {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px 8px;
    border-radius: 12px;
    border: 1.5px solid #cbd5e1;
    background: #ffffff;
    color: #0f172a;
    cursor: pointer;
    transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease, transform 0.12s ease;
    min-height: 64px;
}
body:not(.dark) .ag-af-preset-btn.is-std {
    grid-column: span 2;
}
body:not(.dark) .ag-af-preset-btn.is-tier {
    grid-column: span 3;
    padding-top: 12px;
    padding-bottom: 10px;
}
body:not(.dark) .ag-af-preset-btn.is-reseller {
    background: linear-gradient(135deg, #ffffff 0%, #f5f3ff 100%);
    border-color: #c4b5fd;
}
body:not(.dark) .ag-af-preset-btn.is-distributor {
    background: linear-gradient(135deg, #ffffff 0%, #fffbeb 100%);
    border-color: #fcd34d;
}
body:not(.dark) .ag-af-preset-btn:hover {
    border-color: #6d28d9;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(91, 33, 182, 0.1);
}
body:not(.dark) .ag-af-preset-btn.is-active {
    border-color: #5b21b6 !important;
    background: #f5f3ff !important;
    box-shadow: 0 0 0 3px rgba(91, 33, 182, 0.16) !important;
}
body:not(.dark) .ag-af-preset-btn.is-distributor.is-active {
    border-color: #4c1d95 !important;
    background: linear-gradient(135deg, #f5f3ff 0%, #fef3c7 100%) !important;
}
body:not(.dark) .ag-preset-tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 2px 7px;
    border-radius: 999px;
    margin-bottom: 4px;
}
body:not(.dark) .ag-af-preset-btn.is-reseller .ag-preset-tag {
    background: #ede9fe;
    color: #5b21b6;
}
body:not(.dark) .ag-af-preset-btn.is-distributor .ag-preset-tag {
    background: #0f172a;
    color: #fde68a;
}
body:not(.dark) .ag-preset-val {
    font-size: 17px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
}
body:not(.dark) .ag-preset-sub {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    margin-top: 2px;
    line-height: 1.25;
}
body:not(.dark) .ag-af-tier-hint {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 12px;
    color: #334155;
    line-height: 1.45;
}
body:not(.dark) .ag-af-tier-hint > i {
    color: #6d28d9;
    flex-shrink: 0;
}
body:not(.dark) .ag-af-tier-hint > span {
    flex: 1;
    min-width: 180px;
}
body:not(.dark) .ag-af-tier-hint.is-reseller {
    background: #f5f3ff;
    border-color: #ddd6fe;
    color: #4c1d95;
}
body:not(.dark) .ag-af-tier-hint.is-distributor {
    background: #fffbeb;
    border-color: #fde68a;
    color: #78350f;
}
body:not(.dark) .ag-af-tier-btn-sm {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 7px;
    background: #5b21b6;
    color: #ffffff !important;
    font-size: 11.5px;
    font-weight: 700;
    text-decoration: none !important;
    white-space: nowrap;
}
body:not(.dark) .ag-af-tier-btn-sm:hover {
    background: #4c1d95;
}
@media (max-width: 575.98px) {
    body:not(.dark) .ag-af-preset-grid {
        gap: 6px;
    }
    body:not(.dark) .ag-af-preset-btn.is-std {
        min-height: 54px;
        padding: 8px 4px;
    }
    body:not(.dark) .ag-af-preset-btn.is-tier {
        padding: 10px 6px;
    }
    body:not(.dark) .ag-preset-val {
        font-size: 15.5px;
    }
    body:not(.dark) .ag-preset-sub {
        font-size: 10.5px;
    }
    body:not(.dark) .ag-af-tier-btn-sm {
        width: 100%;
        justify-content: center;
        padding: 7px 10px;
    }
}

/* === AIRGSM MENU & SUBMENU EMOJI SPACING === */
body:not(.dark) .ag-nav-emoji {
    display: inline-block;
    margin-right: 6px;
    font-size: 0.96em;
    line-height: 1;
    vertical-align: -1px;
    font-style: normal;
}
body:not(.dark) .header-middle .navbar-mastermenu > .nav-item > .nav-link,
body:not(.dark) .navbar-products .nav-link {
    white-space: nowrap;
}
@media (min-width: 992px) and (max-width: 1399.98px) {
    body:not(.dark) .header-middle .navbar-mastermenu > .nav-item > .nav-link {
        padding: 8px 9px !important;
        font-size: 13px !important;
    }
    body:not(.dark) .navbar-products .nav-link {
        padding: 8px 9px !important;
        font-size: 12.2px !important;
    }
}

/* === AIRGSM ORDERS LIST (IMEI / SERVER / REMOTE) & VIEW ORDER MODAL (PC + MOBILE) === */
body:not(.dark) .history-container .card.card-table-history {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05) !important;
    padding: 20px !important;
}
body:not(.dark) .imei-title {
    gap: 8px;
    margin-bottom: 12px;
}
body:not(.dark) .imei-title .btn.btn-light {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
    font-size: 13px;
    font-weight: 600;
    border-radius: 9px !important;
    padding: 7px 13px !important;
    transition: border-color 0.15s ease, background 0.15s ease;
}
body:not(.dark) .imei-title .btn.btn-light:hover {
    background: #f5f3ff !important;
    border-color: #6d28d9 !important;
    color: #5b21b6 !important;
}
body:not(.dark) .table-order-history {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
}
body:not(.dark) .table-order-history #tcs-table {
    margin-bottom: 0;
}
body:not(.dark) .table-order-history #tcs-table thead th {
    background: #f8fafc !important;
    color: #475569 !important;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-top: none !important;
    border-bottom: 1.5px solid #e2e8f0 !important;
    vertical-align: middle;
    padding: 10px 12px;
}
body:not(.dark) .table-order-history #tcs-table thead select.form-control {
    min-height: 36px;
    font-size: 12.5px;
    font-weight: 600;
    color: #0f172a;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background-color: #ffffff;
    min-width: 115px;
}
body:not(.dark) .table-order-history #tcs-table tbody td {
    vertical-align: top;
    padding: 12px;
    border-top: 1px solid #f1f5f9;
    font-size: 13px;
    color: #1e293b;
}
body:not(.dark) .table-order-history #tcs-table tbody td.col-orderid a {
    font-weight: 700;
    color: #5b21b6 !important;
    text-decoration: none;
}
body:not(.dark) .table-order-history #tcs-table tbody td:nth-child(3) {
    min-width: 190px;
    max-width: 280px;
    white-space: normal !important;
}
body:not(.dark) .table-order-history #tcs-table tbody td:nth-child(3) a {
    color: #0f172a !important;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
}
body:not(.dark) .table-order-history #tcs-table tbody td:nth-child(3) a:hover {
    color: #5b21b6 !important;
    text-decoration: underline;
}
body:not(.dark) .table-order-history .replay-code {
    white-space: normal !important;
    word-break: break-word;
    max-width: 440px;
    max-height: 175px;
    overflow-y: auto;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 9px 11px;
    font-size: 12.5px;
    line-height: 1.5;
    color: #0f172a;
}
body:not(.dark) .table-order-history .replay-code img {
    max-width: 60px !important;
    max-height: 60px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    padding: 3px;
    display: block;
    margin-bottom: 6px;
}
body:not(.dark) .pagging {
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
}
body:not(.dark) .pagging #autorefresh {
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    font-size: 13px;
    min-height: 38px;
}

/* View Order #... Modal Optimization */
body:not(.dark) .ag-vo-wrap {
    display: flex;
    flex-direction: column;
    gap: 14px;
    color: #0f172a;
}
body:not(.dark) .ag-vo-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
}
body:not(.dark) .ag-vo-type-badge {
    display: inline-block;
    font-size: 10.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: #ede9fe;
    color: #5b21b6;
    padding: 3px 9px;
    border-radius: 999px;
    margin-bottom: 6px;
}
body:not(.dark) .ag-vo-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.4;
}
body:not(.dark) .ag-vo-price-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
body:not(.dark) .ag-vo-qty-pill {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 5px 10px;
    font-size: 12.5px;
    color: #334155;
}
body:not(.dark) .ag-vo-price {
    background: #f5f3ff;
    border: 1.5px solid #ddd6fe;
    color: #4c1d95;
    font-size: 20px;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: 10px;
    white-space: nowrap;
}
body:not(.dark) .ag-vo-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
}
body:not(.dark) .ag-vo-meta-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 11px 14px;
}
body:not(.dark) .ag-vo-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    margin-bottom: 4px;
}
body:not(.dark) .ag-vo-target-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}
body:not(.dark) .ag-vo-target-val {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    word-break: break-all;
}
body:not(.dark) .ag-vo-ref-val {
    font-size: 13.5px;
    font-weight: 600;
    color: #1e293b;
    word-break: break-all;
}
body:not(.dark) .ag-vo-code-wrap {
    width: 100%;
}
body:not(.dark) .ag-vo-code-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}
body:not(.dark) .ag-vo-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #5b21b6;
    color: #ffffff !important;
    border: none;
    border-radius: 8px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}
body:not(.dark) .ag-vo-copy-btn:hover {
    background: #4c1d95;
}
body:not(.dark) .ag-vo-code-body,
body:not(.dark) .modal-ajax .mx-height {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 16px;
    max-height: 440px !important;
    overflow-y: auto;
    font-size: 13.5px;
    line-height: 1.65;
    color: #0f172a;
    word-break: break-word;
}
body:not(.dark) .ag-vo-code-body.is-pending {
    text-align: center;
    color: #475569;
    padding: 18px;
}
body:not(.dark) .ag-vo-code-body img,
body:not(.dark) .modal-ajax .mx-height img {
    max-width: 112px !important;
    max-height: 112px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    padding: 4px;
    float: right;
    margin: 0 0 10px 14px;
}
body:not(.dark) .ag-vo-code-body::after {
    content: "";
    display: block;
    clear: both;
}
body:not(.dark) .ag-vo-details-wrap {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow-x: auto;
}
body:not(.dark) .ag-vo-details-table td:first-child {
    width: 34%;
    font-weight: 700;
    color: #475569;
    font-size: 12.5px;
}
body:not(.dark) .ag-vo-details-table td {
    padding: 8px 12px;
    font-size: 13px;
    border-top: 1px solid #f1f5f9;
}
body:not(.dark) .ag-vo-times {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 14px;
}
body:not(.dark) .ag-vo-time-val {
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
}

@media (max-width: 767.98px) {
    /* Mobile Orders Card Layout (IMEI / Server / Remote) */
    body:not(.dark) .history-container .card.card-table-history {
        padding: 14px 12px !important;
    }
    body:not(.dark) .imei-title {
        justify-content: flex-start !important;
    }
    body:not(.dark) .imei-title > div {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        width: 100%;
    }
    body:not(.dark) .imei-title .btn.btn-light {
        margin-bottom: 0 !important;
        padding: 7px 10px !important;
        font-size: 12.5px !important;
    }
    body:not(.dark) .table-order-history {
        border: none !important;
        background: transparent !important;
        overflow-x: visible !important;
    }
    body:not(.dark) .table-order-history #tcs-table,
    body:not(.dark) .table-order-history #tcs-table tbody {
        display: block;
        width: 100%;
    }
    body:not(.dark) .table-order-history #tcs-table thead {
        display: block;
        margin-bottom: 12px;
        background: transparent !important;
    }
    body:not(.dark) .table-order-history #tcs-table thead tr {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    body:not(.dark) .table-order-history #tcs-table thead th {
        display: none !important;
        border: none !important;
        padding: 0 !important;
        background: transparent !important;
    }
    body:not(.dark) .table-order-history #tcs-table thead th:nth-child(2),
    body:not(.dark) .table-order-history #tcs-table thead th:nth-child(3) {
        display: block !important;
    }
    body:not(.dark) .table-order-history #tcs-table thead select.form-control {
        width: 100% !important;
        min-width: 0 !important;
    }
    body:not(.dark) .table-order-history #tcs-table tbody tr {
        display: flex;
        flex-direction: column;
        gap: 7px;
        background: #ffffff !important;
        border: 1px solid #e2e8f0;
        border-radius: 14px;
        padding: 12px 13px;
        margin-bottom: 12px;
        box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
    }
    body:not(.dark) .table-order-history #tcs-table tbody td {
        display: block;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        padding: 0 !important;
        border: none !important;
        text-align: left !important;
    }
    body:not(.dark) .table-order-history #tcs-table tbody td[style*="display:none"] {
        display: none !important;
    }
    body:not(.dark) .table-order-history .replay-code {
        max-width: 100% !important;
        width: 100%;
        max-height: 220px;
        margin-top: 2px;
    }
    body:not(.dark) .table-order-history .replay-code img {
        max-width: 52px !important;
        max-height: 52px !important;
    }
    body:not(.dark) .pagging {
        flex-direction: column;
        align-items: stretch !important;
    }
    body:not(.dark) .pagging > div,
    body:not(.dark) .pagging #autorefresh {
        width: 100% !important;
        max-width: 100% !important;
        margin-top: 4px !important;
    }

    /* Mobile View Order Modal */
    body:not(.dark) .ag-vo-head {
        flex-direction: column;
        gap: 10px;
    }
    body:not(.dark) .ag-vo-price {
        font-size: 17px;
        padding: 5px 12px;
    }
    body:not(.dark) .ag-vo-code-body img,
    body:not(.dark) .modal-ajax .mx-height img {
        float: none;
        display: block;
        margin: 0 auto 10px auto;
        max-width: 96px !important;
        max-height: 96px !important;
    }
}

/* Product Detail Gallery: top-align & prevent clipping on landscape/square cards */
body:not(.dark) .card.card-productdetail .cart-gallery,
body:not(.dark) .card.card-productdetail .cart-gallery table {
    height: auto !important;
}
body:not(.dark) .card.card-productdetail .slide-products img {
    max-width: 100% !important;
    height: auto !important;
    max-height: 360px !important;
    object-fit: contain !important;
    border-radius: 12px;
}


/* === 2026-11-22: 2-Button Product Cards, Top-Aligned Buy Box (PC/Mobile) & QuickView Modal Fix === */
body:not(.dark) .ag-card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 16px 15px 16px;
}
body:not(.dark) .ag-card-actions .ag-prod-btn {
    flex: 1 1 auto;
    text-align: center;
    white-space: nowrap;
}
body:not(.dark) .ag-card-actions .ag-qv-btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border-radius: 8px !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    padding: 8px 10px !important;
    background: #f5f3ff !important;
    color: #5b21b6 !important;
    border: 1px solid #ddd6fe !important;
    white-space: nowrap;
    transition: all 0.16s ease !important;
}
body:not(.dark) .ag-card-actions .ag-qv-btn:hover {
    background: #5b21b6 !important;
    color: #ffffff !important;
    border-color: #5b21b6 !important;
}
@media (max-width: 575px) {
    body:not(.dark) .ag-card-actions {
        padding: 0 12px 12px 12px;
        gap: 6px;
    }
    body:not(.dark) .ag-card-actions .ag-qv-btn {
        padding: 8px 9px !important;
        font-size: 12px !important;
    }
}

/* Fix QuickView Modal Gallery & PC/Mobile Buy Box right under Weight */
body:not(.dark) #modal-ajax .cart-gallery,
body:not(.dark) #modal-ajax .cart-gallery table {
    height: auto !important;
    width: 100% !important;
}
body:not(.dark) #modal-ajax .slide-products {
    background: #f8fafc !important;
    border: 1px solid #f1f5f9;
    border-radius: 14px !important;
    padding: 18px 14px !important;
    min-height: 210px !important;
}
body:not(.dark) #modal-ajax .slide-products img {
    max-width: 100% !important;
    height: auto !important;
    max-height: 320px !important;
    object-fit: contain !important;
    border-radius: 10px;
}
body:not(.dark) .ag-pd-buybox {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 16px;
}
body:not(.dark) .ag-pd-buybox .d-actionbar-mobile {
    display: flex !important;
    align-items: center;
    margin-top: 8px !important;
}
body:not(.dark) .ag-pd-buybox .d-actionbar-mobile .form-label {
    display: block !important;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}
@media (max-width: 991px) {
    body:not(.dark) .ag-pd-buybox .d-actionbar-mobile .quantity-box {
        min-width: 72px !important;
        height: 40px !important;
    }
    body:not(.dark) .ag-pd-buybox .d-actionbar-mobile [id^="placeorder"] {
        flex: 1 1 auto !important;
        width: auto !important;
        height: 40px !important;
        font-weight: 700 !important;
        border-radius: 8px !important;
    }
}

/* Payment + Wholesale Bar directly inside Buy Box under Add To Cart */
body:not(.dark) .ag-pd-buybox .ag-pd-paybar {
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
}
body:not(.dark) .ag-pd-buybox .ag-pd-paybar .ag-pd-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    padding: 10px 12px !important;
    margin-bottom: 0 !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

/* Customer Review row directly under Add To Cart on PC & Mobile (hidden only inside #modal-ajax QuickView) */
body:not(.dark) .ag-pd-buybox .ag-pd-review-row .d-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    font-size: 13px;
}
body:not(.dark) .ag-pd-buybox .ag-pd-review-row a {
    color: #5b21b6 !important;
    font-weight: 600;
}
#modal-ajax .ag-pd-review-row {
    display: none !important;
}

/* Cart & Checkout Optimization: Stepper, WhatsApp/Telegram Help Banner, Shipping Price Cards */
body:not(.dark) .ag-checkout-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 18px;
}
body:not(.dark) .ag-step {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    white-space: nowrap;
}
body:not(.dark) .ag-step-num {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}
body:not(.dark) .ag-step.is-active {
    color: #5b21b6;
    font-weight: 700;
}
body:not(.dark) .ag-step.is-active .ag-step-num {
    background: #5b21b6;
    color: #ffffff;
}
body:not(.dark) .ag-step.is-done {
    color: #15803d;
}
body:not(.dark) .ag-step.is-done .ag-step-num {
    background: #dcfce7;
    color: #15803d;
}
body:not(.dark) .ag-step-line {
    flex: 0 1 56px;
    height: 2px;
    background: #e2e8f0;
}
body:not(.dark) .ag-step-line.is-done {
    background: #86efac;
}
body:not(.dark) .ag-cart-help-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: linear-gradient(135deg, #f5f3ff 0%, #eff6ff 100%);
    border: 1px solid #ddd6fe;
    border-left: 4px solid #5b21b6;
    border-radius: 12px;
    padding: 14px 18px;
}
body:not(.dark) .ag-cart-help-body {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1 1 280px;
}
body:not(.dark) .ag-cart-help-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #ffffff;
    color: #5b21b6;
    border: 1px solid #ddd6fe;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
body:not(.dark) .ag-cart-help-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
}
body:not(.dark) .ag-cart-help-desc {
    font-size: 12.2px;
    color: #475569;
    margin-top: 2px;
    line-height: 1.4;
}
body:not(.dark) .ag-cart-help-actions,
body:not(.dark) .ag-coord-note-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
body:not(.dark) .ag-btn-wa {
    background: #16a34a !important;
    border-color: #16a34a !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 12.5px !important;
    padding: 6px 13px !important;
    border-radius: 8px !important;
}
body:not(.dark) .ag-btn-tg {
    background: #0284c7 !important;
    border-color: #0284c7 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 12.5px !important;
    padding: 6px 13px !important;
    border-radius: 8px !important;
}
body:not(.dark) .ag-cart-ship-preview {
    max-width: 520px;
    font-size: 12.2px;
    color: #475569;
    line-height: 1.5;
}
body:not(.dark) .ag-ship-preview-title {
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 3px;
}
body:not(.dark) .ag-btn-continue,
body:not(.dark) .ag-btn-next {
    border-radius: 8px !important;
    font-weight: 700 !important;
    padding: 10px 18px !important;
}
body:not(.dark) .ag-btn-continue {
    color: #334155 !important;
    background: #f8fafc !important;
    border: 1.5px solid #cbd5e1 !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05) !important;
}
body:not(.dark) .ag-btn-continue:hover,
body:not(.dark) .ag-btn-continue:focus {
    color: #0f172a !important;
    background: #e2e8f0 !important;
    border-color: #94a3b8 !important;
}
body.dark .ag-btn-continue {
    color: #e2e8f0 !important;
    background: #1e293b !important;
    border: 1.5px solid #475569 !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    padding: 10px 18px !important;
}
body.dark .ag-btn-continue:hover,
body.dark .ag-btn-continue:focus {
    color: #ffffff !important;
    background: #334155 !important;
    border-color: #64748b !important;
}
body:not(.dark) #shippingdropdown .ag-ship-opt {
    padding: 10px 12px 10px 34px !important;
    margin-bottom: 8px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #ffffff;
    transition: all 0.15s ease;
}
body:not(.dark) #shippingdropdown .ag-ship-opt:hover {
    border-color: #c4b5fd;
    background: #faf5ff;
}
body:not(.dark) #shippingdropdown .ag-ship-opt.is-selected {
    border-color: #5b21b6;
    background: #f5f3ff;
    box-shadow: 0 0 0 2px rgba(91, 33, 182, 0.08);
}
body:not(.dark) #shippingdropdown .ag-ship-opt label.custom-control-label {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px;
    cursor: pointer;
    font-weight: 600;
    color: #0f172a;
}
body:not(.dark) #shippingdropdown .ag-ship-opt label.custom-control-label::before,
body:not(.dark) #shippingdropdown .ag-ship-opt label.custom-control-label::after {
    left: -1.35rem;
}
body:not(.dark) .ag-ship-price-pill {
    margin-left: auto;
    background: #eef2ff;
    color: #3730a3;
    border: 1px solid #c7d2fe;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 999px;
    white-space: nowrap;
}
body:not(.dark) .ag-ship-price-pill.is-coord {
    background: #fffbeb;
    color: #92400e;
    border-color: #fde68a;
}
body:not(.dark) .ag-coord-note.is-important {
    background: #fffbeb;
    border: 1px solid #f59e0b;
    border-left: 4px solid #d97706;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 12.5px;
    color: #78350f;
    line-height: 1.5;
}
body:not(.dark) .ag-coord-note-hdr {
    font-weight: 700;
    font-size: 13px;
    color: #92400e;
    margin-bottom: 5px;
}
body:not(.dark) .ag-coord-note-actions {
    margin-top: 10px;
}
body:not(.dark) .ag-coord-note.is-carrier {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 9px;
    padding: 9px 12px;
    font-size: 12.5px;
    color: #166534;
}
body:not(.dark) .ag-coord-badge {
    display: inline-block;
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
    border-radius: 6px;
    padding: 2px 7px;
    font-size: 11.5px;
    font-weight: 700;
}
@media (max-width: 575px) {
    body:not(.dark) .ag-checkout-steps {
        padding: 10px 10px;
        gap: 6px;
        overflow-x: auto;
    }
    body:not(.dark) .ag-step {
        font-size: 11.5px;
    }
    body:not(.dark) .ag-step-line {
        flex: 0 0 18px;
    }
}
