@media (max-width: 991px) {

    /* Modern Drawer Styles */
    .modern-drawer {
        font-family: inherit;
    }

    .modern-drawer .visitor-card {
        padding: 30px 20px 20px;
        background: linear-gradient(135deg, rgba(85, 37, 134, 0.1) 0%, rgba(181, 137, 214, 0.1) 100%);
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .modern-drawer .user-avatar {
        width: 65px;
        height: 65px;
        background: linear-gradient(135deg, #552586 0%, #B589D6 100%);
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        color: white;
        font-size: 28px;
        margin-bottom: 15px;
        box-shadow: 0 4px 10px rgba(85, 37, 134, 0.3);
    }

    .modern-drawer .username {
        font-size: 18px;
        font-weight: 700;
        color: #333;
        margin-bottom: 8px;
    }

    .modern-drawer .wallet-pill {
        background: linear-gradient(135deg, #FF9A9E 0%, #FECFEF 99%, #FECFEF 100%);
        color: #d11275;
        padding: 6px 18px;
        border-radius: 20px;
        font-size: 14px;
        font-weight: 700;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }

    .modern-drawer .auth-buttons {
        display: flex;
        gap: 15px;
        padding: 40px 10px 20px;
    }

    .modern-drawer .btn-modern {
        flex: 1;
        padding: 12px 0;
        border-radius: 25px;
        font-weight: 700;
        text-align: center;
        text-transform: uppercase;
        font-size: 14px;
        color: white;
        border: none;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
        transition: transform 0.2s, box-shadow 0.2s;
        text-decoration: none !important;
    }

    .modern-drawer .btn-modern:active {
        transform: scale(0.95);
    }

    .modern-drawer .btn-login {
        background: linear-gradient(to right, #b400ff, #7a00ff);
    }

    .modern-drawer .btn-register {
        background: linear-gradient(to right, #ff7eb3, #ff758c);
    }

    .modern-drawer .nav-menu-list {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .modern-drawer .nav-item {
        position: relative;
    }

    .modern-drawer .nav-item>a {
        display: flex;
        align-items: center;
        color: #333;
        padding: 0 15px;
        font-weight: 600;
        text-decoration: none;
        transition: background 0.2s;
    }

    .modern-drawer .nav-item.current>a {
        background: rgba(85, 37, 134, 0.05);
        border-left: 4px solid #552586;
        color: #552586;
    }

    .modern-drawer .nav-item>a i.menu-icon {
        width: 25px;
        text-align: center;
        margin-right: 15px;
        font-size: 18px;
        color: #888;
    }

    .modern-drawer .nav-item.current>a i.menu-icon {
        color: #552586;
    }

    .modern-drawer .nav-item>a .has-child-icon {
        margin-left: auto;
        font-size: 14px;
        transition: transform 0.3s;
    }

    .modern-drawer .nav-item>a[aria-expanded="true"] .has-child-icon {
        transform: rotate(180deg);
    }

    .modern-drawer .sub-menu {
        list-style: none;
        padding: 0;
        background: #fafafa;
    }

    .modern-drawer .sub-menu .nav-item>a {
        padding-left: 50px;
        font-size: 14px;
        font-weight: 500;
    }

    .modern-drawer .sub-menu .sub-menu .nav-item>a {
        padding-left: 65px;
    }

    .nav-menu {
        display: none;
    }

    /* ── Body lock when drawer open ── */
    body.drawer-open {
        overflow: hidden !important;
        position: fixed;
        width: 100%;
        touch-action: none;
    }

    /* ── Overlay ── */
    .drawer-bg {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 999;
        background: rgba(0, 0, 0, 0.55);
    }

    /* ── Drawer Panel ── */
    .mobile-drawer {
        background: black !important;
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100%;
        background: #ffffff;
        z-index: 1000;
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        -webkit-transition: left 0.28s cubic-bezier(0.4, 0, 0.2, 1);
        transition: left 0.28s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
        overflow: hidden;
    }

    .mobile-drawer.show {
        left: 0;
    }

    /* ── Close Button ── */
    .mobile-drawer .close-drawer {
        position: absolute;
        top: 10px;
        left: 12px;
        z-index: 10;
        font-size: 20px;
        color: #999;
        cursor: pointer;
        width: 32px;
        height: 32px;
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
        -webkit-box-pack: center;
        -ms-flex-pack: center;
        justify-content: center;
        border-radius: 50%;
        -webkit-transition: background 0.2s, color 0.2s;
        transition: background 0.2s, color 0.2s;
    }

    .mobile-drawer .close-drawer:hover {
        background: #f0f0f0;
        color: #333;
        text-decoration: none;
    }

    /* ── Auth Buttons (Vertical / Stacked) ── */
    .mobile-drawer .drawer-auth {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        gap: 10px;
        padding: 48px 12px 12px;
    }

    .mobile-drawer .drawer-auth .btn-drawer {
        display: block;
        width: 100%;
        padding: 12px 0;
        font-size: 14px;
        font-weight: 600;
        text-align: center;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        border-radius: 8px;
        text-decoration: none;
        -webkit-transition: opacity 0.2s, -webkit-transform 0.15s;
        transition: opacity 0.2s, transform 0.15s;
        cursor: pointer;
        line-height: 1.4;
    }

    .mobile-drawer .drawer-auth .btn-drawer:active {
        -webkit-transform: scale(0.97);
        transform: scale(0.97);
    }

    .mobile-drawer .drawer-auth .btn-drawer-primary {
        background: linear-gradient(179.94deg, #BB1819 43.83%, #600100 99.94%);
        color: #fff;
        border: none;
    }

    .mobile-drawer .drawer-auth .btn-drawer-primary:hover {
        opacity: 0.9;
        color: #fff;
        text-decoration: none;
    }

    .mobile-drawer .drawer-auth .btn-drawer-outline {
        background: linear-gradient(179.94deg, #3CC8FE 43.83%, #6478EB 99.94%);
        color: white;
        border: none;
    }

    .mobile-drawer .drawer-auth .btn-drawer-outline:hover {
        opacity: 0.9;
        color: #333;
        text-decoration: none;
    }

    /* ── Forgot Password ── */
    .mobile-drawer .drawer-forgot {
        text-align: center;
        padding: 0 16px 8px;
    }

    .mobile-drawer .drawer-forgot a {
        font-size: 12px;
        color: #d32f2f;
        text-decoration: underline;
    }

    .mobile-drawer .drawer-forgot a:hover {
        color: #b71c1c;
    }

    /* ── Promotional Banners ── */
    .mobile-drawer .drawer-banners {
        padding: 0 12px;
    }

    .mobile-drawer .drawer-banner-full {
        display: block;
        margin-bottom: 8px;
    }

    .mobile-drawer .drawer-banner-full img {
        width: 100%;
        height: auto;
        border-radius: 10px;
        display: block;
    }

    .mobile-drawer .drawer-banner-grid {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
        gap: 4px;
    }

    .mobile-drawer .drawer-banner-half {
        -webkit-box-flex: 0;
        -ms-flex: 0 0 calc(50% - 2px);
        flex: 0 0 calc(50% - 2px);
        display: block;
    }

    .mobile-drawer .drawer-banner-half img {
        width: 100%;
        height: auto;
        border-radius: 10px;
        display: block;
    }

    .mobile-drawer .drawer-banner-full:active,
    .mobile-drawer .drawer-banner-half:active {
        opacity: 0.8;
        -webkit-transform: scale(0.97);
        transform: scale(0.97);
    }

    /* ── Navigation Wrapper ── */
    .mobile-drawer .drawer-nav {
        -webkit-box-flex: 1;
        -ms-flex: 1 1 0%;
        flex: 1 1 0%;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        padding: 4px 0 20px;
    }

    /* ── Top-level Menu ── */
    .mobile-drawer .drawer-nav .nav-menu-list {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    /* ── Nav Item ── */

    .mobile-drawer .drawer-nav .nav-item>a {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
        padding: 12px 16px;
        color: #333;
        font-size: 14px;
        font-weight: 500;
        text-decoration: none;
        -webkit-transition: background 0.15s;
        transition: background 0.15s;
    }

    .mobile-drawer .drawer-nav .nav-item>a:hover,
    .mobile-drawer .drawer-nav .nav-item>a:focus {
        background: #f8f5fc;
        text-decoration: none;
    }

    .mobile-drawer .drawer-nav .nav-item.current>a {
        color: #7b1fa2;
        background: #f3e5f5;
        font-weight: 600;
    }

    /* ── Menu Icons ── */
    .mobile-drawer .drawer-nav .menu-icon {
        width: 22px;
        height: 22px;
        -o-object-fit: contain;
        object-fit: contain;
        margin-right: 12px;
        -ms-flex-negative: 0;
        flex-shrink: 0;
    }

    .mobile-drawer .drawer-nav .menu-fa-icon {
        width: 24px;
        margin-right: 12px;
        text-align: center;
        font-size: 18px;
        color: #7b1fa2;
        -ms-flex-negative: 0;
        flex-shrink: 0;
    }

    /* ── Menu Label ── */
    .mobile-drawer .drawer-nav .menu-label {
        color: white;
        -webkit-box-flex: 1;
        -ms-flex-positive: 1;
        flex-grow: 1;
    }

    /* ── Chevron Icon ── */
    .mobile-drawer .drawer-nav .chevron-icon {
        font-size: 12px;
        color: #999;
        -webkit-transition: -webkit-transform 0.25s ease;
        transition: transform 0.25s ease;
        margin-left: 8px;
    }

    .mobile-drawer .drawer-nav .nav-item>a[aria-expanded="true"] .chevron-icon {
        -webkit-transform: rotate(180deg);
        transform: rotate(180deg);
    }

    /* ── Sub-menu (Collapse) ── */
    .mobile-drawer .drawer-nav .sub-menu {
        list-style: none;
        margin: 0;
        padding: 0;
        background: #fafafa;
    }

    .mobile-drawer .drawer-nav .sub-menu .nav-item {
        border-bottom: 1px solid #f0f0f0;
    }

    .mobile-drawer .drawer-nav .sub-menu .nav-item:last-child {
        border-bottom: none;
    }

    .mobile-drawer .drawer-nav .sub-menu .nav-item>a {
        padding-left: 52px;
        font-size: 13px;
        font-weight: 400;
        color: #555;
    }

    .mobile-drawer .drawer-nav .sub-menu .sub-menu .nav-item>a {
        padding-left: 68px;
        font-size: 12px;
        color: #777;
    }

    /* ── Right Drawer (backward compat) ── */
    .mobile-right-drawer {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100%;
        background: #034a46;
        z-index: 1000;
        -webkit-transition: right 0.28s cubic-bezier(0.4, 0, 0.2, 1);
        transition: right 0.28s cubic-bezier(0.4, 0, 0.2, 1);
        overflow: auto;
    }

    .mobile-right-drawer.show {
        right: 0;
    }

    .mobile-right-drawer .close-drawer {
        color: #fff;
        position: absolute;
        top: 10px;
        left: 10px;
    }

    /* ── Category Content Drawer (backward compat) ── */
    .mobile-drawer-content {
        position: fixed;
        top: 0;
        height: 100%;
        background: #fff;
        z-index: 1095;
        width: 60%;
        display: none;
        overflow: auto;
        -webkit-transition: all 0.2s ease-in-out;
        transition: all 0.2s ease-in-out;
    }

    .mobile-drawer-content.show {
        left: 40%;
        display: block;
    }

    .mobile-drawer-content .category-menu {
        border-bottom: 1px solid #eee;
        border-top: 1px solid #eee;
        list-style: none;
    }

    .mobile-drawer-content .category-menu a {
        height: 44px;
        line-height: 44px;
        vertical-align: middle;
    }

    .mobile-drawer-content .category-menu a>p {
        line-height: normal;
        margin-top: 20px;
    }

    .mobile-drawer-content .category-menu .category-name {
        display: inline-block;
        width: 80%;
        border-right: 1px solid #eee;
    }

    .mobile-drawer-content .category-menu .category-name:hover {
        color: #7b1fa2;
    }

    .mobile-drawer-content .category-menu ul {
        display: none;
    }

    .mobile-drawer-content .category-menu>ul>li {
        list-style: none;
    }

    .mobile-drawer-content .category-menu ul li a {
        text-align: center;
    }

    .menu-togggle {
        text-align: center;
        display: inline-block;
        width: 15%;
    }

    .menu-togggle span i:hover {
        color: #7b1fa2;
    }

    /* ── Visitor / Contact sections (backward compat) ── */
    .mobile-drawer .visitor,
    .mobile-right-drawer .contact {
        padding: 10px;
        text-align: center;
    }

    .mobile-drawer .currencySection {
        padding: 20px;
    }

    .mobile-drawer .currencySection ul {
        text-align: center;
        padding-left: 0;
    }

    .mobile-drawer .currencySection ul>li {
        list-style: none;
    }

    .mobile-drawer .currencySection ul>li>a {
        padding: 10px;
        color: #333;
    }

    .mobile-drawer .currencySection ul>li>ul {
        display: none;
    }

    .mobile-drawer .currencySection ul>li>ul>li {
        width: 60px;
        margin: auto;
        padding: 5px 0;
    }

    .mobile-drawer .currencySection ul>li>ul>li>a {
        color: #7b1fa2;
    }

}