/* Promotional Menu Wrapper - Compact Design */
.promo_menu_wrapper {
    position: relative;
    width: 100%;
    height: 60px;
    display: flex;
    flex-direction: row;
    overflow: hidden;
    margin-bottom: 6px;
}

/* Scrolling container for promo items */
.promo_menu_box {
    flex: 1;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: start;
    gap: 6px;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    padding: 8px 12px;
    background: linear-gradient(to right, rgba(126, 34, 206, 0.08), transparent);
    backdrop-filter: blur(3px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

/* Hide scrollbar completely on all browsers */
.promo_menu_box::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

.promo_menu_box::-webkit-scrollbar-track,
.promo_menu_box::-webkit-scrollbar-thumb {
    display: none !important;
}

/* Individual promo menu item - Compact & Adaptive */
.promo_menu_item {
    position: relative;
    min-width: 115px;
    flex: 1 1 auto;
    max-width: 165px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    padding: 5px 8px;
    border-radius: 6px;
    transition: all 0.25s ease;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    background: linear-gradient(135deg, rgba(60, 50, 120, 0.25) 0%, rgba(40, 30, 90, 0.35) 100%);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(126, 34, 206, 0.25);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    box-sizing: border-box;
}

.promo_menu_item:hover {
    box-shadow: 0 3px 10px rgba(126, 34, 206, 0.3);
    border: 1px solid rgba(126, 34, 206, 0.5);
    background: linear-gradient(135deg, rgba(80, 60, 150, 0.35) 0%, rgba(55, 40, 110, 0.45) 100%);
}

.promo_menu_item[data-promo-type="daily-free-case"],
.promo_menu_item[data-promo-type="daily-free-case"]:hover {
    box-shadow: none;
}

/* Highlighted promo item (35% first deposit) */
.promo_menu_item.promo_highlight {
    background: linear-gradient(135deg, rgba(255, 180, 0, 0.18) 0%, rgba(200, 120, 0, 0.25) 100%);
    border: 1.5px solid rgba(255, 200, 0, 0.5);
    box-shadow: 0 0 12px rgba(255, 200, 0, 0.25);
}

.promo_menu_item.promo_highlight:hover {
    box-shadow: 0 3px 16px rgba(255, 200, 0, 0.4);
    border: 1.5px solid rgba(255, 200, 0, 0.7);
}

@media (min-width: 769px) {
    html[lang="zh"] .promo_menu_item.promo_highlight {
        flex: 0 0 165px;
        min-width: 165px;
    }
}

@media (max-width: 768px) {
    html[lang="zh"] .promo_menu_item.promo_highlight {
        flex-basis: 96px;
        width: 96px;
        min-width: 96px;
        max-width: 96px;
    }
}

/* In the mobile drawer the shortcuts are a vertical navigation group placed
   directly before social links. Desktop and tablet promo rails are unchanged. */
@media (max-width: 768px) {
    .mobile-menu-body > .mobile-drawer-promo-menu {
        display: block;
        height: auto;
        margin: 0;
        order: 0;
    }

    .mobile-menu-body > .mobile-drawer-promo-menu .promo_menu_box {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        height: auto;
        padding: 0;
        overflow: visible;
    }

    .mobile-menu-body > .mobile-drawer-promo-menu .promo_menu_item,
    .mobile-menu-body > .mobile-drawer-promo-menu .promo_menu_item.promo_custom_right,
    .mobile-menu-body > .mobile-drawer-promo-menu .promo_menu_item.promo_predictable_gold {
        width: 100%;
        max-width: none;
        min-width: 0;
        height: 48px;
        min-height: 48px;
        box-sizing: border-box;
        flex: 0 0 48px;
        flex-direction: row;
        justify-content: flex-start;
        gap: 12px;
        padding: 8px 14px;
        margin: 0;
        border-radius: 10px;
    }

    .mobile-menu-body > .mobile-drawer-promo-menu .promo_icon {
        width: 24px;
        height: 24px;
        flex: 0 0 24px;
    }

    .mobile-menu-body > .mobile-drawer-promo-menu .promo_icon svg,
    .mobile-menu-body > .mobile-drawer-promo-menu .promo_icon .promo-menu-icon {
        width: 22px;
        height: 22px;
    }

    .mobile-menu-body > .mobile-drawer-promo-menu .promo_text {
        align-items: flex-start;
        width: auto;
        flex: 1;
    }

    .mobile-menu-body > .mobile-drawer-promo-menu .promo_title {
        font-size: 13px;
        line-height: 1.15;
        text-align: left;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .mobile-menu-body > .mobile-drawer-promo-menu .promo_subtitle {
        display: block !important;
        font-size: 10px;
        line-height: 1.1;
        text-align: left;
        opacity: .72;
    }

    .mobile-menu-body > .mobile-drawer-promo-menu .promo_badge {
        top: 5px;
        right: 8px;
        font-size: 7px;
    }
}

/* Predictable Cases - Golden promo item on right side (left of Custom Cases) */
.promo_menu_item.promo_predictable_gold {
    margin-left: auto;
    background: linear-gradient(135deg, rgba(247, 211, 94, 0.18) 0%, rgba(215, 157, 38, 0.26) 100%);
    border: 1.5px solid rgba(247, 211, 94, 0.55);
    box-shadow: 0 0 12px rgba(247, 211, 94, 0.25);
    position: relative;
    z-index: 1;
}

.promo_menu_item.promo_predictable_gold:hover {
    box-shadow: 0 3px 16px rgba(247, 211, 94, 0.45);
    border: 1.5px solid rgba(247, 211, 94, 0.85);
    background: linear-gradient(135deg, rgba(247, 211, 94, 0.3) 0%, rgba(215, 157, 38, 0.38) 100%);
}

.promo_menu_item.promo_predictable_gold .promo_title {
    color: #ffffff;
    text-shadow: 0 0 6px rgba(255, 255, 255, 0.3);
}

.promo_menu_item.promo_predictable_gold .promo_subtitle {
    color: rgba(255, 255, 255, 0.75);
}

.promo_menu_item.promo_predictable_gold .promo_icon svg,
.promo_menu_item.promo_predictable_gold .promo_icon .promo-menu-icon {
    stroke: #ffffff !important;
    color: #ffffff !important;
}

/* Custom Cases - positioned separately on right edge */
.promo_menu_item.promo_custom_right {
    margin-left: 0;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.18) 0%, rgba(22, 163, 74, 0.25) 100%);
    border: 1.5px solid rgba(34, 197, 94, 0.5);
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.25);
    position: relative;
    z-index: 1;
}

.promo_menu_item.promo_custom_right:hover {
    box-shadow: 0 3px 16px rgba(34, 197, 94, 0.4);
    border: 1.5px solid rgba(34, 197, 94, 0.7);
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.28) 0%, rgba(22, 163, 74, 0.35) 100%);
}

/* Promo icon - Smaller */
.promo_icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.promo_icon .promo-menu-icon {
    display: block;
    width: 24px;
    height: 24px;
    overflow: visible;
    shape-rendering: geometricPrecision;
}

/* Promo text - Compact */
.promo_text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.promo_title {
    margin: 0;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 0 6px rgba(126, 34, 206, 0.5);
    letter-spacing: 0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.promo_subtitle {
    margin: 0;
    font-size: 9px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.65);
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.4);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

/* Promo badge (HOT) - Smaller */
.promo_badge {
    position: absolute;
    top: -4px;
    right: -4px;
    padding: 2px 6px;
    background: linear-gradient(135deg, #ff4500 0%, #ff6347 100%);
    color: #fff;
    font-size: 8px;
    font-weight: 800;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(255, 69, 0, 0.4);
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.4);
    letter-spacing: 0.5px;
}

/* Modal Styles - Matching login_required.css */
.popPromoInfoCont {
    position: fixed;
    top: 50%;
    left: 50%;
    right: 50%;
    bottom: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(147, 51, 234, 0.2) 0%,
            rgba(168, 85, 247, 0.15) 15%,
            rgba(14, 34, 69, 0.9) 40%);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1),
        visibility 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 999999;
}

.is-ios .popPromoInfoCont {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.popPromoInfoCont.open {
    opacity: 1;
    visibility: visible;
    display: flex;
    pointer-events: auto;
}

.popPromoInfoCont.open>.poper {
    transform: translateY(0);
    opacity: 1;
}

.popPromoInfoCont>.poper {
    width: 700px;
    max-width: 95%;
    background: linear-gradient(139deg,
            rgba(38, 35, 78, 0.95),
            rgba(23, 19, 61, 0.98));
    border: 1px solid rgba(147, 51, 234, 0.3);
    position: relative;
    display: flex;
    flex-direction: column;
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 999999;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3),
        0 0 8px rgba(126, 34, 206, 0.5) inset;
    max-height: 90vh;
    overflow-y: auto;
}

.popPromoInfoCont>.poper::before,
.popPromoInfoCont>.poper::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right,
            transparent,
            rgba(147, 51, 234, 0.7),
            rgba(168, 85, 247, 0.8),
            rgba(147, 51, 234, 0.7),
            transparent);
    z-index: 1;
}

.popPromoInfoCont>.poper::before {
    top: 0;
}

.popPromoInfoCont>.poper::after {
    bottom: 0;
}

/* Modal header */
.popPromoInfoCont>.poper>.top {
    width: 100%;
    text-align: center;
    padding: 25px 20px 15px;
    border-bottom: 1px solid rgba(147, 51, 234, 0.2);
    margin-bottom: 10px;
}

.popPromoInfoCont>.poper>.top>h2 {
    color: white;
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 8px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.popPromoInfoCont>.poper>.top>small {
    color: rgb(172, 169, 211);
    font-weight: 500;
    font-size: 14px;
}

/* Modal main content */
.popPromoInfoCont>.poper>.main {
    padding: 20px 30px 30px;
    color: rgba(255, 255, 255, 0.9);
}

.popPromoInfoCont>.poper>.main h3 {
    color: white;
    font-size: 18px;
    font-weight: 600;
    margin: 20px 0 10px 0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.popPromoInfoCont>.poper>.main p {
    font-size: 15px;
    line-height: 1.6;
    margin: 10px 0;
    color: rgba(255, 255, 255, 0.85);
}

.popPromoInfoCont>.poper>.main ul,
.popPromoInfoCont>.poper>.main ol {
    margin: 12px 0;
    padding-left: 24px;
}

.popPromoInfoCont>.poper>.main li {
    margin: 8px 0;
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.85);
}

.popPromoInfoCont>.poper>.main strong {
    color: rgba(255, 215, 0, 0.95);
    font-weight: 700;
}

.popPromoInfoCont>.poper>.main span[replace-price],
.popPromoInfoCont>.poper>.main b span[replace-price] {
    white-space: nowrap;
}

/* CTA Button */
.promo-cta-btn {
    background: linear-gradient(45deg, #16a34a, #22c55e);
    border: none;
    border-radius: 4px;
    color: white;
    cursor: pointer;
    font-weight: 600;
    padding: 12px 40px;
    position: relative;
    transition: all 0.3s ease;
    display: block;
    width: max-content;
    margin: 20px auto 0;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 2px;
    white-space: nowrap;
    z-index: 1;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.2);
    text-decoration: none;
}

.promo-cta-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.5);
}

.promo-cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
    border-radius: 4px;
    background: linear-gradient(90deg, #22c55e, #4ade80, #22c55e);
    background-size: 200% 100%;
}

.promo-cta-btn:hover::before {
    opacity: 1;
    animation: shine 2s linear infinite;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

/* Highlight box */
.promo-highlight-box {
    padding: 16px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 140, 0, 0.15) 100%);
    border-left: 4px solid rgba(255, 215, 0, 0.8);
    border-radius: 8px;
    margin: 16px 0;
}

.promo-highlight-box p {
    margin: 0;
    color: rgba(255, 255, 255, 0.95);
}

/* Responsive Design */
@media (max-width: 768px) {
    .promo_menu_wrapper {
        margin-top: 0;
        height: 54px;
    }

    .promo_menu_box {
        height: 54px;
        align-items: center;
        padding: 2px 10px;
        gap: 6px;
        justify-content: flex-start;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x proximity;
    }

    .promo_menu_item:first-child {
        margin-left: auto;
    }

    .promo_menu_item:last-child {
        margin-right: auto;
    }

    .promo_menu_item,
    .promo_menu_item.promo_custom_right,
    .promo_menu_item.promo_predictable_gold {
        margin-left: 0;
        min-width: 72px;
        width: 72px;
        max-width: 72px;
        height: 48px;
        padding: 4px 4px 3px;
        gap: 2px;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .promo_icon {
        width: 22px;
        height: 22px;
    }

    .promo_icon svg,
    .promo_icon .promo-menu-icon {
        width: 18px;
        height: 18px;
    }

    .promo_text {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        width: 100%;
        min-width: 0;
        gap: 0;
    }

    .promo_title {
        font-size: 8px;
        line-height: 1.1;
        text-align: center;
        white-space: normal;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        text-shadow: none;
    }

    .promo_subtitle {
        display: none !important;
    }

    .promo_badge {
        top: -2px;
        right: -2px;
        padding: 1px 4px;
        font-size: 6px;
    }

    .promo_menu_box::after {
        display: none !important;
    }

    body.page-home .promo_menu_wrapper {
        margin-top: -10px;
    }

    .promo_menu_box {
        background: transparent !important;
        border-bottom: none !important;
        backdrop-filter: none !important;
    }

    /* Modal responsive */
    .popPromoInfoCont>.poper {
        width: 90%;
        max-width: 450px;
    }

    .popPromoInfoCont>.poper>.main {
        padding: 15px 20px 20px;
    }

    .hero-banner {
        margin-top: 4px !important;
    }

    .cases-section {
        margin-bottom: 8px !important;
    }

    #slider-banner {
        padding: 8px 0 !important;
    }
}

@media (max-width: 480px) {
    .promo_menu_wrapper {
        margin-top: 0;
        height: 52px;
    }

    .promo_menu_box {
        height: 52px;
        padding: 2px 8px;
        gap: 5px;
    }

    .promo_menu_item,
    .promo_menu_item.promo_custom_right,
    .promo_menu_item.promo_predictable_gold {
        min-width: 66px;
        width: 66px;
        max-width: 66px;
        height: 46px;
        padding: 3px 3px 2px;
    }

    .promo_icon {
        width: 20px;
        height: 20px;
    }

    .promo_icon svg,
    .promo_icon .promo-menu-icon {
        width: 16px;
        height: 16px;
    }

    .promo_title {
        font-size: 7px;
    }

    body.page-home .promo_menu_wrapper {
        margin-top: -8px;
    }

    /* Modal responsive */
    .popPromoInfoCont>.poper>.top>h2 {
        font-size: 20px;
    }

    .popPromoInfoCont>.poper>.main {
        padding: 12px 16px 16px;
    }

    .popPromoInfoCont>.poper>.main h3 {
        font-size: 16px;
    }

    .popPromoInfoCont>.poper>.main p,
    .popPromoInfoCont>.poper>.main li {
        font-size: 13px;
    }

    .hero-banner {
        margin-top: 3px !important;
    }

    .cases-section {
        margin-bottom: 6px !important;
    }

    #slider-banner {
        padding: 6px 0 !important;
    }
}

/* Tablet widths: fit all seven actions and remove secondary copy first. */
@media (min-width: 769px) and (max-width: 1100px) {
    .promo_menu_wrapper,
    .promo_menu_box {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .promo_menu_box {
        display: grid !important;
        grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
        gap: 6px !important;
        padding-inline: 8px !important;
        overflow: hidden !important;
    }

    .promo_menu_item,
    .promo_menu_item.promo_custom_right,
    .promo_menu_item.promo_predictable_gold {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        margin-inline: 0 !important;
        padding-inline: 5px !important;
    }

    .promo_menu_item .promo_subtitle {
        display: none !important;
    }

    .promo_menu_item .promo_text,
    .promo_menu_item .promo_title {
        min-width: 0 !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }

    .promo_menu_item .promo_title {
        font-size: 9px;
        white-space: nowrap;
        text-overflow: ellipsis;
    }
}

/* Regular mobile: keep one row and distribute all seven actions inside the viewport. */
@media (min-width: 381px) and (max-width: 768px) {
    .promo_menu_wrapper {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow: hidden !important;
    }

    .promo_menu_box {
        display: grid !important;
        grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        gap: 5px !important;
        padding-inline: 8px !important;
        overflow: hidden !important;
    }

    .promo_menu_item,
    .promo_menu_item.promo_custom_right,
    .promo_menu_item.promo_predictable_gold {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        padding-inline: 2px !important;
    }

    .promo_menu_item:first-child,
    .promo_menu_item:last-child {
        margin-inline: 0 !important;
    }

    .promo_menu_item .promo_text,
    .promo_menu_item .promo_title {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }
}

/* Only very narrow phones split the seven actions into two rows. */
@media (max-width: 380px) {
    .promo_menu_wrapper {
        height: 106px !important;
        overflow: visible !important;
    }

    .promo_menu_box {
        display: grid !important;
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        grid-template-rows: repeat(2, 48px) !important;
        width: 100% !important;
        height: 106px !important;
        min-width: 0 !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        align-items: stretch !important;
        justify-content: stretch !important;
        gap: 5px 6px !important;
        padding: 2px 8px !important;
        overflow-x: hidden !important;
        overflow-y: hidden !important;
        scroll-snap-type: none !important;
        scrollbar-width: none !important;
    }

    .promo_menu_item:first-child,
    .promo_menu_item:last-child {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .promo_menu_item,
    .promo_menu_item.promo_custom_right,
    .promo_menu_item.promo_predictable_gold {
        width: 100% !important;
        height: 48px !important;
        min-width: 0 !important;
        max-width: 100% !important;
        padding-left: 2px !important;
        padding-right: 2px !important;
    }

    .promo_menu_item .promo_text,
    .promo_menu_item .promo_title {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }

    .promo_menu_box::-webkit-scrollbar {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
    }
}

@media (max-width: 380px) {
    .promo_menu_wrapper,
    .promo_menu_box {
        height: 102px !important;
    }

    .promo_menu_box {
        grid-template-rows: repeat(2, 46px) !important;
    }

    .promo_menu_item,
    .promo_menu_item.promo_custom_right,
    .promo_menu_item.promo_predictable_gold {
        height: 46px !important;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .promo_menu_box {
        scroll-behavior: auto;
        transition: none !important;
    }

    .promo_menu_item,
    .promo_icon {
        transition: none !important;
    }

    .popPromoInfoCont,
    .popPromoInfoCont>.poper {
        transition: none !important;
    }
}

/* Low-end device optimizations */
body.low-end-device .promo_menu_box {
    backdrop-filter: none !important;
    background: rgba(0, 0, 0, 0.25);
}

body.low-end-device .promo_menu_item {
    backdrop-filter: none !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15) !important;
}

body.low-end-device .popPromoInfoCont {
    backdrop-filter: none !important;
}

/* Final drawer override: legacy mobile rail rules above use !important and
   must not collapse these shortcuts back into a single icon row. */
@media (max-width: 768px) {
    .mobile-menu-body > .mobile-drawer-promo-menu,
    .mobile-menu-body > .mobile-drawer-promo-menu .promo_menu_box {
        display: flex !important;
        flex-direction: column !important;
        height: auto !important;
        width: 100% !important;
        max-width: none !important;
        overflow: visible !important;
        gap: 10px !important;
        padding: 0 !important;
    }

    .mobile-menu-body > .mobile-drawer-promo-menu .promo_menu_item,
    .mobile-menu-body > .mobile-drawer-promo-menu .promo_menu_item.promo_custom_right,
    .mobile-menu-body > .mobile-drawer-promo-menu .promo_menu_item.promo_predictable_gold {
        display: flex !important;
        flex: 0 0 48px !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        height: 48px !important;
        min-height: 48px !important;
        margin: 0 !important;
        padding: 8px 14px !important;
        box-sizing: border-box !important;
        border-radius: 10px !important;
    }

    .mobile-menu-body > .mobile-drawer-promo-menu .promo_text,
    .mobile-menu-body > .mobile-drawer-promo-menu .promo_title {
        display: flex !important;
        width: auto !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow: hidden !important;
        text-align: left !important;
        white-space: nowrap !important;
    }

    .mobile-menu-body > .mobile-drawer-promo-menu .promo_text {
        flex-direction: column !important;
        align-items: flex-start !important;
        flex: 1 1 auto !important;
    }

    .mobile-menu-body > .mobile-drawer-promo-menu .promo_title {
        display: block !important;
        font-size: 13px !important;
        line-height: 1.15 !important;
        text-overflow: ellipsis !important;
    }

    .mobile-menu-body > .mobile-drawer-promo-menu .promo_subtitle {
        display: block !important;
        font-size: 10px !important;
        line-height: 1.1 !important;
        text-align: left !important;
        opacity: .72 !important;
    }
}

/* Layout proximity overrides: reduce gap to top bar on pages where promo menu is present */
.hero-banner {
    margin-top: 6px !important;
}

#slider-banner {
    padding: 12px 0 !important;
}

/* Home desktop: keep promo rail slightly tucked toward top loot */
body.page-home .promo_menu_wrapper {
    margin-top: -1px;
}

@media (max-width: 1024px) {
    body.page-home .promo_menu_wrapper {
        margin-top: -12px;
    }
}

/* Mobile popup positioning fix */
@media screen and (max-width: 1024px) {
    .popPromoInfoCont {
        padding: 0;
        width: 100vw;
        height: 100vh;
        left: 0;
        right: 0;
        top: 0;
        bottom: 0;
        transform: none;
    }

    .popPromoInfoCont>.poper {
        width: 90%;
        max-width: 500px;
        height: auto;
        max-height: 90vh;
        margin: 0;
        border-radius: 16px;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3),
            0 0 8px rgba(126, 34, 206, 0.5) inset;
    }
}

/* iPhone/iOS-specific fixes - disable animations and fix positioning */
@media only screen and (max-device-width: 1024px) and (-webkit-min-device-pixel-ratio: 2) {
    .popPromoInfoCont {
        transition: none !important;
        width: 100vw !important;
        height: 100vh !important;
        left: 0 !important;
        right: 0 !important;
        top: 0 !important;
        bottom: 0 !important;
        transform: none !important;
    }

    .popPromoInfoCont.open {
        animation: none !important;
    }

    .popPromoInfoCont>.poper {
        transition: none !important;
        transform: translateY(0) scale(1) !important;
        opacity: 1 !important;
    }

    .popPromoInfoCont.open>.poper {
        animation: none !important;
        transform: translateY(0) scale(1) !important;
        opacity: 1 !important;
    }
}

/* Additional check for iOS Safari */
@media only screen and (max-device-width: 1024px) and (-webkit-min-device-pixel-ratio: 2) and (-webkit-touch-callout: none) {
    .popPromoInfoCont {
        transition: none !important;
        width: 100vw !important;
        height: 100vh !important;
        left: 0 !important;
        right: 0 !important;
        top: 0 !important;
        bottom: 0 !important;
        transform: none !important;
    }

    .popPromoInfoCont.open {
        animation: none !important;
    }

    .popPromoInfoCont>.poper {
        transition: none !important;
        transform: translateY(0) scale(1) !important;
        opacity: 1 !important;
    }

    .popPromoInfoCont.open>.poper {
        animation: none !important;
        transform: translateY(0) scale(1) !important;
        opacity: 1 !important;
    }
}

/* Secondary Button (Purple) for "Read More" */
.promo-secondary-btn {
    background: linear-gradient(45deg, #6b21a8, #7e22ce);
    border: none;
    border-radius: 4px;
    color: white;
    cursor: pointer;
    font-weight: 600;
    padding: 12px 40px;
    position: relative;
    transition: all 0.3s ease;
    display: block;
    width: max-content;
    margin: 20px auto 0;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 2px;
    white-space: nowrap;
    z-index: 1;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(126, 34, 206, 0.2);
    text-decoration: none;
}

.promo-secondary-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(126, 34, 206, 0.5);
}

.promo-secondary-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
    border-radius: 4px;
    background: linear-gradient(90deg, #7e22ce, #9333ea, #7e22ce);
    background-size: 200% 100%;
}

.promo-secondary-btn:hover::before {
    opacity: 1;
    animation: shine 2s linear infinite;
}

/* Button Row Container */
.promo-button-row {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

.promo-button-row .promo-cta-btn,
.promo-button-row .promo-secondary-btn {
    margin: 0;
}
.mobile-promo-heading {
    display: none;
}
@media (max-width: 768px) {
    .mobile-menu-body .mobile-profile-link.mobile-own-case-link {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 14px !important;
        min-height: 48px !important;
        height: 48px !important;
        padding: 8px 14px !important;
        box-sizing: border-box !important;
        border-radius: 10px !important;
        background: rgba(126, 34, 206, .08) !important;
        border: 1px solid rgba(126, 34, 206, .3) !important;
        text-align: left !important;
    }
    .mobile-menu-body .mobile-own-case-link .mobile-profile-username {
        font-size: 13px !important;
        font-weight: 700 !important;
        line-height: 1.15 !important;
    }
    .mobile-menu-body .mobile-own-case-link > i {
        font-size: 20px !important;
        width: 24px !important;
        text-align: center !important;
    }
    .mobile-menu-body .mobile-social-link {
        min-height: 48px;
        box-sizing: border-box;
        border-radius: 10px;
        padding: 8px 14px;
        background: rgba(126, 34, 206, .08);
        border: 1px solid rgba(126, 34, 206, .3);
        font-size: 13px;
        font-weight: 600;
    }
}
.mobile-drawer-promo-menu .mobile-promo-heading {
    display: block;
    width: 100%;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 16px;
    text-align: center;
}
