/* ─────────────────────────────────────────────────────────────────────────
   DERITRADER - RESPONSIVE OVERRIDES
   ─────────────────────────────────────────────────────────────────────────
   PURPOSE:
     • All layout, sizing, and responsive behavior
     • No JavaScript sizing - pure CSS
     • Desktop/tablet unchanged, only mobile below 420px
   ───────────────────────────────────────────────────────────────────────── */

/* ── 1. BASE OVERRIDES (All Screens) ── */

/* Hide unwanted original elements */
.logo-holder::after {
    content: "" !important;
    display: none !important;
}

.d-apollo-logo__image,
.d-apollo-logo__image--uploaded,
.d-apollo-logo img,
.logo-holder img {
    display: none !important;
}

.d-header__right [class*="api"],
.header-right [class*="api"],
.d-header__right [class*="token"],
.header-right [class*="token"],
.dc-btn.auth-actions__secondary,
.auth-actions__secondary {
    display: none !important;
}

.social-icons-btn {
    display: none !important;
}

/* Hide Save Bot button */
#db-toolbar__save-button,
[data-testid="dt_toolbar_save_button"] {
    display: none !important;
}

/* ── 2. LOADING SCREEN ── */
#hlx-loader {
    position: fixed !important;
    inset: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    background: #000000 !important;
    z-index: 2147483000 !important;
    transition: opacity 0.6s ease, visibility 0.6s ease !important;
}

#hlx-loader .hlx-load-img-wrap {
    position: relative !important;
    width: min(78vw, 620px) !important;
    aspect-ratio: 16/9 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

#hlx-loader .hlx-load-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
}

#hlx-loader .hlx-load-word {
    font-size: clamp(3.2rem, 7vw, 5.6rem) !important;
    letter-spacing: 0.06em !important;
    line-height: 1 !important;
    margin-top: 1.2rem !important;
    color: #ffffff !important;
}

#hlx-loader .hlx-load-tag {
    text-transform: uppercase !important;
    letter-spacing: 0.5em !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    color: #cccccc !important;
    margin: 0.6rem 0 1.6rem 1.4rem !important;
}

#hlx-loader .hlx-load-bar {
    width: min(60vw, 300px) !important;
    height: 4px !important;
    border-radius: 99px !important;
    overflow: hidden !important;
    background: rgba(255,255,255,0.1) !important;
    position: relative !important;
}

#hlx-loader .hlx-load-bar::after {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent, #22c55e, transparent) !important;
    animation: hlx-loading 1.5s ease-in-out infinite !important;
}

@keyframes hlx-loading {
    0% { left: -100%; }
    100% { left: 100%; }
}

#hlx-loader.hlx-hide {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.hlx-load-img-wrap,
.hlx-load-word,
.hlx-load-tag,
.hlx-load-bar {
    transform: translateZ(0) !important;
    backface-visibility: hidden !important;
}

/* ── 3. CUSTOM LOGO ── */
.navbar-logo {
    display: flex !important;
    align-items: center !important;
    flex-shrink: 0 !important;
}

.navbar-logo img {
    display: block !important;
    height: 32px !important;
    width: auto !important;
}

/* ── 4. SOCIAL DROPDOWN ── */
.social-dropdown-container {
    display: inline-flex !important;
    align-items: center !important;
    position: relative !important;
    flex-shrink: 0 !important;
}

/* Original chat bubble icon styles with green glow */
.mobile-menu__social-btn {
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
    color: #22c55e !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 4px !important;
    filter: drop-shadow(0 0 6px rgba(37,211,102,0.5)) !important;
    transition: filter 0.3s, transform 0.3s !important;
}

.mobile-menu__social-btn:hover {
    transform: scale(1.08) !important;
    filter: drop-shadow(0 0 13px rgba(37,211,102,0.95)) !important;
}

/* Hide the old emoji button */
.social-dropdown-btn {
    display: none !important;
}

.social-dropdown-content {
    display: none !important;
    position: absolute !important;
    top: 100% !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    background: #1a1a2e !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    border-radius: 8px !important;
    padding: 8px 0 !important;
    min-width: 180px !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4) !important;
    z-index: 99999 !important;
    margin-top: 6px !important;
}

.social-dropdown-content.show {
    display: block !important;
}

.social-dropdown-content a {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 8px 16px !important;
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 14px !important;
    transition: background 0.2s !important;
}

.social-dropdown-content a:hover {
    background: rgba(255,255,255,0.08) !important;
}

.social-dropdown-content a svg {
    flex-shrink: 0 !important;
    width: 18px !important;
    height: 18px !important;
}

/* ── SOCIAL ICON COLORS ── */
.social-dropdown-content a[href*="telegram"] svg {
    color: #0088cc !important;
    fill: #0088cc !important;
}

.social-dropdown-content a[href*="whatsapp"] svg {
    color: #25d366 !important;
    fill: #25d366 !important;
}

.social-dropdown-content a[href*="youtube"] svg {
    color: #ff0000 !important;
    fill: #ff0000 !important;
}

.social-dropdown-content a[href*="tiktok"] svg {
    color: #000000 !important;
    fill: #000000 !important;
}

/* ── 5. CASHIER BUTTON ── */
.app-header__cashier-button {
    flex-shrink: 0 !important;
    cursor: pointer !important;
}

/* ── 6. ACCOUNT SWITCHER MODAL FIX ── */
.deriv-modal__wrapper.deriv-account-switcher__container--mobile {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 10001 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    background: #1a1a2e !important;
    border-radius: 10px !important;
    padding: 20px !important;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6) !important;
    width: 90% !important;
    max-width: 400px !important;
    max-height: 80vh !important;
    overflow-y: auto !important;
    pointer-events: auto !important;
    color: #ffffff !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
}

/* Modal overlay */
.ReactModal__Overlay {
    position: fixed !important;
    inset: 0 !important;
    z-index: 9999 !important;
    display: block !important;
    background: rgba(0,0,0,0.72) !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.ReactModal__Content {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 10000 !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    height: auto !important;
    max-height: 90vh !important;
    overflow: visible !important;
    width: auto !important;
    max-width: 90vw !important;
    margin: 0 !important;
}

/* Accordion content */
.deriv-accordion__content,
.deriv-accordion__content--active {
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
    padding: 4px 0 !important;
    display: block !important;
}

/* Hide accordion header */
.deriv-account-switcher__title,
.deriv-accordion__header {
    display: none !important;
}

/* Account list */
.deriv-account-switcher__list,
.account-switcher-panel {
    display: block !important;
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
    padding: 0 !important;
}

/* Account items */
.deriv-account-switcher-item {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 8px 0 !important;
    min-height: 44px !important;
    border-bottom: 1px solid rgba(255,255,255,0.05) !important;
    color: #0f0e0e !important;
}

.deriv-account-switcher-item:last-child {
    border-bottom: none !important;
}

.deriv-account-switcher-item__icon {
    flex-shrink: 0 !important;
    width: 24px !important;
    height: 24px !important;
}

.deriv-account-switcher-item__icon svg {
    width: 24px !important;
    height: 24px !important;
}

.deriv-account-switcher-item__detail {
    flex: 1 !important;
    min-width: 0 !important;
}

.deriv-account-switcher-item__currency {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #000000 !important;
}

.deriv-account-switcher-item__loginid {
    font-size: 11px !important;
    color: rgba(255,255,255,0.5) !important;
}

.deriv-account-switcher-item__balance {
    flex-shrink: 0 !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #000000 !important;
}

/* Secondary tabs */
.derivs-secondary-tabs {
    display: flex !important;
    width: 100% !important;
    gap: 4px !important;
    padding: 8px 0 !important;
    border-bottom: 1px solid rgba(255,255,255,0.05) !important;
    margin-bottom: 8px !important;
}

.derivs-secondary-tabs__btn {
    flex: 1 !important;
    padding: 8px 12px !important;
    font-size: 12px !important;
    min-height: 34px !important;
    background: rgba(255,255,255,0.05) !important;
    border-radius: 4px !important;
    border: none !important;
    color: #0e0c0c !important;
    cursor: pointer !important;
}

.derivs-secondary-tabs__btn--active {
    background: rgba(34,197,94,0.2) !important;
    border: 1px solid rgba(34,197,94,0.3) !important;
}

/* Logout */
.deriv-account-switcher__logout {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 12px 0 !important;
    font-size: 13px !important;
    color: #ff444f !important;
    cursor: pointer !important;
    border-top: 1px solid rgba(255,255,255,0.05) !important;
    margin-top: 8px !important;
}

.deriv-account-switcher__logout svg {
    width: 16px !important;
    height: 16px !important;
}

/* Trader's Hub link */
.deriv-account-switcher__tradershub-link {
    font-size: 12px !important;
    padding: 8px 0 !important;
    color: rgba(255,255,255,0.6) !important;
}

.deriv-account-switcher__tradershub-link a {
    color: #22c55e !important;
    text-decoration: none !important;
    font-size: 12px !important;
}

/* ── 7. DESKTOP LAYOUT (≥1025px) ── */
@media (min-width: 1025px) {
    .d-header__right [class*="login"] {
        display: inline-flex !important;
    }
    
    .navbar-logo {
        margin-right: 16px !important;
    }
    
    .navbar-logo img {
        height: 32px !important;
    }
    
    .social-dropdown-container {
        margin: 0 4px !important;
    }
    
    .d-header__right {
        gap: 4px !important;
    }
    
    .deriv-modal__wrapper.deriv-account-switcher__container--mobile {
        max-width: 400px !important;
        width: 400px !important;
    }
}

/* ── 8. TABLET LAYOUT (≤1024px) ── */
@media (max-width: 1024px) {
    .d-header__right [class*="login"] {
        display: none !important;
    }
    
    .hamburger-buttons-container {
        display: flex !important;
    }
    
    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
    }
    
    .tab__dashboard__table__tiles {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
        padding: 8px !important;
    }
    
    .tab__dashboard__table__block {
        width: 100% !important;
        min-width: 0 !important;
    }
    
    .navbar-logo {
        margin-right: 8px !important;
    }
    
    .navbar-logo img {
        height: 28px !important;
    }
    
    .mobile-menu__social-btn {
        font-size: 18px !important;
        width: 30px !important;
        height: 30px !important;
        min-width: 30px !important;
        min-height: 30px !important;
    }
    
    .mobile-menu__social-btn svg {
        width: 20px !important;
        height: 20px !important;
    }
    
    .social-dropdown-container {
        margin: 0 2px !important;
    }
    
    .social-dropdown-content {
        min-width: 160px !important;
    }
    
    .social-dropdown-content a {
        font-size: 13px !important;
        padding: 6px 14px !important;
    }
    
    .social-dropdown-content a svg {
        width: 16px !important;
        height: 16px !important;
    }
    
    .d-header__right {
        gap: 2px !important;
    }
    
    .d-header__hamburger {
        width: 28px !important;
        height: 28px !important;
        min-width: 28px !important;
        min-height: 28px !important;
    }
}

/* ── 9. MOBILE LAYOUT (≤480px) ── */
@media (max-width: 480px) {
    .navbar-logo {
        margin-right: 4px !important;
    }
    
    .navbar-logo img {
        height: 22px !important;
    }
    
    .mobile-menu__social-btn {
        font-size: 16px !important;
        width: 26px !important;
        height: 26px !important;
        min-width: 26px !important;
        min-height: 26px !important;
        padding: 2px !important;
    }
    
    .mobile-menu__social-btn svg {
        width: 18px !important;
        height: 18px !important;
    }
    
    .social-dropdown-container {
        margin: 0 1px !important;
    }
    
    .social-dropdown-content {
        min-width: 150px !important;
    }
    
    .social-dropdown-content a {
        font-size: 12px !important;
        padding: 6px 12px !important;
    }
    
    .social-dropdown-content a svg {
        width: 16px !important;
        height: 16px !important;
    }
    
    .d-header__right {
        gap: 1px !important;
    }
    
    .d-header__hamburger {
        width: 24px !important;
        height: 24px !important;
        min-width: 24px !important;
        min-height: 24px !important;
    }
    
    .d-header__right [class*="balance"] {
        font-size: 9px !important;
        max-width: 45px !important;
        min-width: 8px !important;
    }
    
    .d-header__right [class*="currency"] {
        font-size: 8px !important;
    }
    
    [class*="account-switcher"] {
        font-size: 8px !important;
        max-width: 40px !important;
    }
    
    .d-header__right .dc-btn--primary {
        display: none !important;
    }
    
    .deriv-modal__wrapper.deriv-account-switcher__container--mobile {
        width: 95% !important;
        max-width: 380px !important;
        padding: 16px !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
    }
}

/* ── 10. SMALL PHONE LAYOUT (≤420px) ── */
@media (max-width: 420px) {
    .d-header,
    .header {
        padding: 0 2px !important;
        min-height: 32px !important;
        gap: 1px !important;
        display: flex !important;
        align-items: center !important;
        width: 100% !important;
        flex-wrap: nowrap !important;
        overflow: visible !important;
    }
    
    .d-header__left {
        display: flex !important;
        align-items: center !important;
        gap: 0 !important;
        flex: 0 1 auto !important;
        max-width: 40% !important;
    }
    
    .deriv-wrapper__right {
        display: flex !important;
        align-items: center !important;
        gap: 3px !important;
        flex: 1 1 auto !important;
        flex-shrink: 1 !important;
        justify-content: flex-start !important;
        min-width: 0 !important;
        max-width: 88% !important;
        padding-right: 0 !important;
        overflow: visible !important;
    }
    
    .d-header__hamburger {
        width: 20px !important;
        height: 20px !important;
        min-width: 20px !important;
        min-height: 20px !important;
        padding: 1px !important;
        flex-shrink: 0 !important;
        order: -1 !important;
        margin: 0 1px 0 0 !important;
    }
    
    .navbar-logo {
        flex-shrink: 0 !important;
        margin: 0 1px !important;
    }
    
    .navbar-logo img {
        height: 16px !important;
        max-height: 16px !important;
        width: auto !important;
    }
    
    .social-dropdown-container {
        flex-shrink: 0 !important;
        margin: 0 1px !important;
    }
    
    .mobile-menu__social-btn {
        font-size: 14px !important;
        width: 26px !important;
        height: 26px !important;
        min-width: 26px !important;
        min-height: 26px !important;
        padding: 2px !important;
        flex-shrink: 0 !important;
    }
    
    .mobile-menu__social-btn svg {
        width: 16px !important;
        height: 16px !important;
    }
    
    .social-dropdown-content {
        min-width: 130px !important;
    }
    
    .social-dropdown-content a {
        font-size: 11px !important;
        padding: 5px 10px !important;
        gap: 8px !important;
    }
    
    .social-dropdown-content a svg {
        width: 14px !important;
        height: 14px !important;
    }
    
    .app-header__cashier-button {
        font-size: 8px !important;
        padding: 2px 6px !important;
        height: 22px !important;
        min-height: 22px !important;
        flex-shrink: 0 !important;
        min-width: auto !important;
        width: auto !important;
        gap: 0 !important;
        border-radius: 3px !important;
    }
    
    .app-header__cashier-button .dc-btn__text {
        font-size: 8px !important;
        line-height: 12px !important;
        padding: 0 !important;
    }
    
    .currency-switch-select-wrapper {
        max-width: 35px !important;
        flex-shrink: 1 !important;
        min-width: 0 !important;
    }
    
    .currency-switch-select {
        font-size: 8px !important;
        padding: 1px 3px !important;
        max-width: 35px !important;
        height: 22px !important;
        min-height: 22px !important;
        border-width: 1px !important;
    }
    
    .account-switcher-wrapper {
        flex-shrink: 0 !important;
        min-width: auto !important;
        max-width: none !important;
        overflow: visible !important;
        display: flex !important;
        align-items: center !important;
        gap: 2px !important;
    }
    
    .deriv-account-switcher__button {
        padding: 2px 8px !important;
        gap: 6px !important;
        flex-shrink: 0 !important;
        min-width: auto !important;
        height: 26px !important;
        min-height: 26px !important;
        display: flex !important;
        align-items: center !important;
        background: rgba(255,255,255,0.06) !important;
        border-radius: 4px !important;
        border: 1px solid rgba(255,255,255,0.08) !important;
        cursor: pointer !important;
    }
    
    .deriv-account-switcher__currency-icon {
        width: 18px !important;
        height: 18px !important;
        min-width: 18px !important;
        flex-shrink: 0 !important;
    }
    
    .deriv-account-switcher__currency-icon svg {
        width: 18px !important;
        height: 18px !important;
    }
    
    .deriv-account-switcher__balance {
        font-size: 9px !important;
        max-width: none !important;
        overflow: visible !important;
        text-overflow: clip !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
        min-width: auto !important;
        gap: 3px !important;
        line-height: 14px !important;
        display: flex !important;
        align-items: center !important;
    }
    
    .deriv-account-switcher__balance span:first-child {
        font-size: 9px !important;
        max-width: none !important;
        overflow: visible !important;
        text-overflow: clip !important;
        white-space: nowrap !important;
        color: #ffffff !important;
        font-weight: 600 !important;
    }
    
    .deriv-account-switcher__balance span:last-child {
        font-size: 7px !important;
        max-width: none !important;
        overflow: visible !important;
        text-overflow: clip !important;
        white-space: nowrap !important;
        color: rgba(255,255,255,0.5) !important;
    }
    
    .deriv-account-switcher__button svg:last-child {
        width: 8px !important;
        height: 8px !important;
        min-width: 8px !important;
        flex-shrink: 0 !important;
    }
    
    .dc-popover__target {
        padding: 0 !important;
        margin: 0 !important;
        display: flex !important;
        align-items: center !important;
    }
    
    .dc-popover__target__icon--disabled {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
    }
    
    .dc-popover__content,
    [data-testid="dt_popover_wrapper"] .dc-popover__content,
    .deriv-account-switcher__popover,
    .account-switcher__dropdown {
        max-width: 320px !important;
        width: 320px !important;
        min-width: 280px !important;
        position: absolute !important;
        z-index: 99999 !important;
        right: 0 !important;
        top: 100% !important;
        bottom: auto !important;
        transform: none !important;
        margin-top: 4px !important;
    }
    
    .deriv-wrapper__right .app-header__cashier-button {
        flex-shrink: 0 !important;
    }
    
    .d-header__center,
    [class*="nav-tabs"],
    [role="tablist"] {
        display: none !important;
    }
    
    /* .mobile-menu__social-btn {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
        padding: 0 !important;
        margin: 0 !important;
        visibility: hidden !important;
        opacity: 0 !important;
    } */
    
    .deriv-modal__wrapper.deriv-account-switcher__container--mobile {
        width: 95% !important;
        max-width: 340px !important;
        padding: 14px !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
    }
    
    /* ── FONT SIZE REDUCTIONS FOR MOBILE ── */
    .deriv-account-switcher__balance {
        font-size: 8px !important;
    }
    .deriv-account-switcher__balance span:first-child {
        font-size: 8px !important;
    }
    .deriv-account-switcher__balance span:last-child {
        font-size: 6px !important;
    }
    .app-header__cashier-button {
        font-size: 7px !important;
        padding: 1px 4px !important;
        height: 20px !important;
        min-height: 20px !important;
    }
    .currency-switch-select {
        font-size: 7px !important;
        max-width: 30px !important;
        height: 20px !important;
        min-height: 20px !important;
    }
}

/* ── 11. EXTRA SMALL (≤360px) ── */
@media (max-width: 360px) {
    .d-header,
    .header {
        padding: 0 2px !important;
        min-height: 28px !important;
        gap: 0 !important;
        display: flex !important;
        align-items: center !important;
        width: 100% !important;
        overflow: visible !important;
    }
    
    .d-header__left {
        max-width: 40% !important;
    }
    
    .deriv-wrapper__right {
        max-width: 90% !important;
        gap: 2px !important;
        padding-right: 0 !important;
        justify-content: flex-start !important;
    }
    
    .d-header__hamburger {
        width: 18px !important;
        height: 18px !important;
        min-width: 18px !important;
        min-height: 18px !important;
        padding: 1px !important;
    }
    
    .navbar-logo img {
        height: 14px !important;
        max-height: 14px !important;
    }
    
    .mobile-menu__social-btn {
        font-size: 12px !important;
        width: 24px !important;
        height: 24px !important;
        min-width: 24px !important;
        min-height: 24px !important;
        padding: 1px !important;
    }
    
    .mobile-menu__social-btn svg {
        width: 14px !important;
        height: 14px !important;
    }
    
    .social-dropdown-content {
        min-width: 110px !important;
    }
    
    .social-dropdown-content a {
        font-size: 10px !important;
        padding: 4px 8px !important;
        gap: 6px !important;
    }
    
    .social-dropdown-content a svg {
        width: 12px !important;
        height: 12px !important;
    }
    
    .app-header__cashier-button {
        font-size: 7px !important;
        padding: 1px 4px !important;
        height: 20px !important;
        min-height: 20px !important;
    }
    
    .app-header__cashier-button .dc-btn__text {
        font-size: 7px !important;
    }
    
    .currency-switch-select-wrapper {
        max-width: 30px !important;
    }
    
    .currency-switch-select {
        font-size: 7px !important;
        max-width: 30px !important;
        height: 20px !important;
        min-height: 20px !important;
    }
    
    .account-switcher-wrapper {
        max-width: none !important;
        flex-shrink: 0 !important;
    }
    
    .deriv-account-switcher__button {
        height: 22px !important;
        min-height: 22px !important;
        padding: 1px 6px !important;
        gap: 4px !important;
    }
    
    .deriv-account-switcher__balance {
        font-size: 8px !important;
    }
    
    .deriv-account-switcher__balance span:first-child {
        font-size: 8px !important;
    }
    
    .deriv-account-switcher__balance span:last-child {
        font-size: 6px !important;
    }
    
    .deriv-account-switcher__currency-icon {
        width: 16px !important;
        height: 16px !important;
        min-width: 16px !important;
    }
    
    .deriv-account-switcher__currency-icon svg {
        width: 16px !important;
        height: 16px !important;
    }
    
    .deriv-account-switcher__button svg:last-child {
        width: 6px !important;
        height: 6px !important;
        min-width: 6px !important;
    }
    
    .dc-popover__content,
    [data-testid="dt_popover_wrapper"] .dc-popover__content,
    .deriv-account-switcher__popover,
    .account-switcher__dropdown {
        max-width: 280px !important;
        width: 280px !important;
        min-width: 240px !important;
        right: 0 !important;
        position: absolute !important;
        z-index: 99999 !important;
        top: 100% !important;
        transform: none !important;
    }
    
    .deriv-wrapper__right > * {
        visibility: visible !important;
        opacity: 1 !important;
        flex-shrink: 1 !important;
        min-width: 0 !important;
    }
    
    .deriv-wrapper__right .app-header__cashier-button {
        flex-shrink: 0 !important;
    }
    
    .deriv-modal__wrapper.deriv-account-switcher__container--mobile {
        width: 95% !important;
        max-width: 300px !important;
        padding: 12px !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
    }
    
    .deriv-account-switcher-item {
        padding: 6px 0 !important;
        min-height: 38px !important;
    }
    
    .deriv-account-switcher-item__currency {
        font-size: 12px !important;
    }
    
    .deriv-account-switcher-item__loginid {
        font-size: 10px !important;
    }
    
    .deriv-account-switcher-item__balance {
        font-size: 11px !important;
    }
    
    .derivs-secondary-tabs__btn {
        font-size: 11px !important;
        padding: 6px 8px !important;
        min-height: 30px !important;
    }
    
    .deriv-account-switcher__logout {
        font-size: 12px !important;
        padding: 10px 0 !important;
    }
    
    /* ── FONT SIZE REDUCTIONS FOR EXTRA SMALL ── */
    .deriv-account-switcher__balance {
        font-size: 7px !important;
    }
    .deriv-account-switcher__balance span:first-child {
        font-size: 7px !important;
    }
    .deriv-account-switcher__balance span:last-child {
        font-size: 5px !important;
    }
    .app-header__cashier-button {
        font-size: 6px !important;
        padding: 1px 3px !important;
        height: 18px !important;
        min-height: 18px !important;
    }
}

/* ── 12. FIX ACCOUNT SWITCHER ON MOBILE/TABLET ── */
@media (max-width: 1024px) {
    /* Force the ReactModal overlay to be visible */
    .ReactModal__Overlay {
        position: fixed !important;
        inset: 0 !important;
        z-index: 9999 !important;
        display: block !important;
        background: rgba(0, 0, 0, 0.72) !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }

    .ReactModal__Content {
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        z-index: 10000 !important;
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        background: transparent !important;
        border: none !important;
        padding: 0 !important;
        height: auto !important;
        max-height: 90vh !important;
        overflow: auto !important;
        width: auto !important;
        max-width: 90vw !important;
        margin: 0 !important;
    }

    .deriv-modal__wrapper.deriv-account-switcher__container--mobile {
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        z-index: 10001 !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        background: #1a1a2e !important;
        border-radius: 12px !important;
        padding: 20px !important;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8) !important;
        width: 92% !important;
        max-width: 420px !important;
        min-height: 280px !important;
        max-height: 80vh !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        border: 2px solid #22c55e !important;
        color: #ffffff !important;
        pointer-events: auto !important;
        margin: 0 !important;
    }

    /* Make sure the button is clickable on mobile */
    .deriv-account-switcher__button {
        cursor: pointer !important;
        pointer-events: auto !important;
        z-index: 100 !important;
        position: relative !important;
    }

    /* Ensure accordion content shows fully */
    .deriv-accordion {
        display: block !important;
        max-height: none !important;
        height: auto !important;
        overflow: visible !important;
    }

    .deriv-accordion__content,
    .deriv-accordion__content--active {
        max-height: none !important;
        height: auto !important;
        overflow: visible !important;
        padding: 10px 0 !important;
        display: block !important;
    }

    /* Hide accordion header */
    .deriv-accordion__header,
    .deriv-account-switcher__title {
        display: none !important;
    }

    /* Account items */
    .deriv-account-switcher-item {
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
        padding: 12px 0 !important;
        min-height: 50px !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
        color: #ffffff !important;
        cursor: pointer !important;
        transition: background 0.2s ease !important;
        border-radius: 4px !important;
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    .deriv-account-switcher-item:hover {
        background: rgba(255, 255, 255, 0.05) !important;
    }

    .deriv-account-switcher-item--active {
        background: rgba(34, 197, 94, 0.12) !important;
        border-left: 3px solid #22c55e !important;
        padding-left: 5px !important;
    }

    .deriv-account-switcher-item:last-child {
        border-bottom: none !important;
    }

    .deriv-account-switcher-item__icon {
        flex-shrink: 0 !important;
        width: 28px !important;
        height: 28px !important;
    }

    .deriv-account-switcher-item__icon svg {
        width: 28px !important;
        height: 28px !important;
    }

    .deriv-account-switcher-item__detail {
        flex: 1 !important;
        min-width: 0 !important;
    }

    .deriv-account-switcher-item__currency {
        font-size: 14px !important;
        font-weight: 600 !important;
        color: #ffffff !important;
    }

    .deriv-account-switcher-item__loginid {
        font-size: 12px !important;
        color: rgba(255, 255, 255, 0.5) !important;
    }

    .deriv-account-switcher-item__balance {
        flex-shrink: 0 !important;
        font-size: 13px !important;
        font-weight: 600 !important;
        color: #ffffff !important;
    }

    /* Secondary tabs */
    .derivs-secondary-tabs {
        display: flex !important;
        width: 100% !important;
        gap: 6px !important;
        padding: 10px 0 12px 0 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
        margin-bottom: 10px !important;
    }

    .derivs-secondary-tabs__btn {
        flex: 1 !important;
        padding: 10px 16px !important;
        font-size: 13px !important;
        min-height: 38px !important;
        background: rgba(255, 255, 255, 0.05) !important;
        border-radius: 6px !important;
        border: 1px solid transparent !important;
        color: rgba(255, 255, 255, 0.7) !important;
        cursor: pointer !important;
        font-weight: 500 !important;
        transition: all 0.2s ease !important;
    }

    .derivs-secondary-tabs__btn--active {
        background: rgba(34, 197, 94, 0.15) !important;
        border: 1px solid rgba(34, 197, 94, 0.3) !important;
        color: #ffffff !important;
    }

    /* Logout */
    .deriv-account-switcher__logout {
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
        padding: 14px 0 !important;
        font-size: 14px !important;
        color: #ff444f !important;
        cursor: pointer !important;
        border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
        margin-top: 10px !important;
        transition: background 0.2s ease !important;
        border-radius: 4px !important;
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    .deriv-account-switcher__logout:hover {
        background: rgba(255, 68, 79, 0.1) !important;
    }

    .deriv-account-switcher__logout svg {
        width: 18px !important;
        height: 18px !important;
    }

    /* Trader's Hub link */
    .deriv-account-switcher__tradershub-link {
        font-size: 13px !important;
        padding: 10px 0 !important;
        color: rgba(255, 255, 255, 0.6) !important;
    }

    .deriv-account-switcher__tradershub-link a {
        color: #22c55e !important;
        text-decoration: none !important;
        font-size: 13px !important;
    }

    /* Fix for the popover wrapper on mobile */
    [data-testid="dt_popover_wrapper"] {
        display: block !important;
        pointer-events: auto !important;
    }

    .dc-popover__target {
        pointer-events: auto !important;
        cursor: pointer !important;
    }

    /* Fix for account switcher button in the navbar */
    .account-switcher-wrapper {
        flex-shrink: 0 !important;
        min-width: auto !important;
        max-width: none !important;
        overflow: visible !important;
        display: flex !important;
        align-items: center !important;
        gap: 2px !important;
    }

    .deriv-account-switcher__button {
        padding: 2px 10px !important;
        gap: 8px !important;
        flex-shrink: 0 !important;
        min-width: auto !important;
        height: 30px !important;
        min-height: 30px !important;
        display: flex !important;
        align-items: center !important;
        background: rgba(255, 255, 255, 0.06) !important;
        border-radius: 6px !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        cursor: pointer !important;
    }

    .deriv-account-switcher__currency-icon {
        width: 20px !important;
        height: 20px !important;
        min-width: 20px !important;
        flex-shrink: 0 !important;
    }

    .deriv-account-switcher__currency-icon svg {
        width: 20px !important;
        height: 20px !important;
    }

    .deriv-account-switcher__balance {
        font-size: 11px !important;
        max-width: none !important;
        overflow: visible !important;
        text-overflow: clip !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
        min-width: auto !important;
        gap: 4px !important;
        line-height: 16px !important;
        display: flex !important;
        align-items: center !important;
        color: #ffffff !important;
    }

    .deriv-account-switcher__balance span:first-child {
        font-size: 11px !important;
        max-width: none !important;
        overflow: visible !important;
        text-overflow: clip !important;
        white-space: nowrap !important;
        color: #ffffff !important;
        font-weight: 600 !important;
    }

    .deriv-account-switcher__balance span:last-child {
        font-size: 9px !important;
        max-width: none !important;
        overflow: visible !important;
        text-overflow: clip !important;
        white-space: nowrap !important;
        color: rgba(255, 255, 255, 0.5) !important;
    }

    .deriv-account-switcher__button svg:last-child {
        width: 10px !important;
        height: 10px !important;
        min-width: 10px !important;
        flex-shrink: 0 !important;
    }
}

/* ── EXTRA SMALL PHONES (≤480px) ── */
@media (max-width: 480px) {
    .deriv-modal__wrapper.deriv-account-switcher__container--mobile {
        width: 95% !important;
        max-width: 360px !important;
        padding: 16px !important;
        min-height: 240px !important;
        max-height: 75vh !important;
    }

    .deriv-account-switcher-item {
        padding: 10px 0 !important;
        min-height: 44px !important;
    }

    .deriv-account-switcher-item__currency {
        font-size: 13px !important;
    }

    .deriv-account-switcher-item__loginid {
        font-size: 11px !important;
    }

    .deriv-account-switcher-item__balance {
        font-size: 12px !important;
    }

    .derivs-secondary-tabs__btn {
        font-size: 12px !important;
        padding: 8px 12px !important;
        min-height: 34px !important;
    }

    .deriv-account-switcher__logout {
        font-size: 13px !important;
        padding: 12px 0 !important;
    }

    .deriv-account-switcher__balance {
        font-size: 10px !important;
    }

    .deriv-account-switcher__balance span:first-child {
        font-size: 10px !important;
    }

    .deriv-account-switcher__balance span:last-child {
        font-size: 8px !important;
    }

    .deriv-account-switcher__button {
        height: 28px !important;
        min-height: 28px !important;
        padding: 2px 8px !important;
        gap: 6px !important;
    }

    .deriv-account-switcher__currency-icon {
        width: 18px !important;
        height: 18px !important;
        min-width: 18px !important;
    }

    .deriv-account-switcher__currency-icon svg {
        width: 18px !important;
        height: 18px !important;
    }
}
/* ── FORCE ACCOUNT SWITCHER CLICKABLE ON MOBILE ── */
@media (max-width: 1024px) {
    .deriv-account-switcher__button,
    .dc-popover__target,
    .account-switcher-wrapper {
        pointer-events: auto !important;
        cursor: pointer !important;
        touch-action: manipulation !important;
        -webkit-tap-highlight-color: transparent !important;
    }
}
/* ── ACCOUNT SWITCHER MOBILE STYLING ── */
@media (max-width: 768px) {
    /* Ensure modal content is properly sized */
    .deriv-modal__wrapper.deriv-account-switcher__container--mobile {
        width: 92% !important;
        max-width: 420px !important;
        min-width: 300px !important;
        min-height: 280px !important;
        max-height: 80vh !important;
        padding: 16px !important;
        background: #1a1a2e !important;
        border-radius: 12px !important;
        border: 2px solid #22c55e !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    /* Tabs - side by side */
    .derivs-secondary-tabs {
        display: flex !important;
        flex-direction: row !important;
        gap: 8px !important;
        padding: 0 0 12px 0 !important;
        border-bottom: 1px solid rgba(255,255,255,0.08) !important;
        margin-bottom: 12px !important;
        width: 100% !important;
    }

    .derivs-secondary-tabs__btn {
        flex: 1 !important;
        padding: 10px 16px !important;
        font-size: 14px !important;
        min-height: 40px !important;
        text-align: center !important;
        border-radius: 6px !important;
        cursor: pointer !important;
        transition: all 0.2s ease !important;
    }

    .derivs-secondary-tabs__btn--active {
        background: rgba(34,197,94,0.15) !important;
        border: 1px solid rgba(34,197,94,0.3) !important;
        color: #ffffff !important;
        font-weight: 600 !important;
    }

    .derivs-secondary-tabs__btn:not(.derivs-secondary-tabs__btn--active) {
        background: rgba(255,255,255,0.05) !important;
        border: 1px solid transparent !important;
        color: rgba(255,255,255,0.6) !important;
    }

    /* Account Items */
    .deriv-account-switcher-item {
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
        padding: 12px 14px !important;
        min-height: 56px !important;
        border-bottom: 1px solid rgba(255,255,255,0.06) !important;
        border-radius: 8px !important;
        cursor: pointer !important;
        transition: background 0.2s ease !important;
        margin-bottom: 2px !important;
    }

    .deriv-account-switcher-item--active {
        background: rgba(34,197,94,0.08) !important;
        border-left: 3px solid #22c55e !important;
        padding-left: 11px !important;
    }

    .deriv-account-switcher-item:last-child {
        border-bottom: none !important;
    }

    .deriv-account-switcher-item__icon {
        flex-shrink: 0 !important;
        width: 32px !important;
        height: 32px !important;
    }

    .deriv-account-switcher-item__icon svg {
        width: 32px !important;
        height: 32px !important;
    }

    .deriv-account-switcher-item__currency {
        font-size: 15px !important;
        font-weight: 600 !important;
        color: #ffffff !important;
    }

    .deriv-account-switcher-item__loginid {
        font-size: 12px !important;
        color: rgba(255,255,255,0.4) !important;
    }

    .deriv-account-switcher-item__balance {
        font-size: 14px !important;
        font-weight: 600 !important;
        color: #22c55e !important;
    }

    /* Logout */
    .deriv-account-switcher__logout {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 10px !important;
        padding: 14px 0 0 0 !important;
        font-size: 14px !important;
        color: #ff444f !important;
        cursor: pointer !important;
        border-top: 1px solid rgba(255,255,255,0.08) !important;
        margin-top: 12px !important;
    }

    .deriv-account-switcher__logout svg {
        width: 18px !important;
        height: 18px !important;
    }

    /* Trader's Hub Link */
    .deriv-account-switcher__tradershub-link {
        font-size: 13px !important;
        padding: 12px 0 8px 0 !important;
        color: rgba(255,255,255,0.5) !important;
        text-align: center !important;
    }

    .deriv-account-switcher__tradershub-link a {
        color: #22c55e !important;
        text-decoration: none !important;
        font-size: 13px !important;
    }

    /* Hide accordion header */
    .deriv-accordion__header,
    .deriv-account-switcher__title {
        display: none !important;
    }

    .deriv-accordion__content {
        max-height: none !important;
        height: auto !important;
        overflow: visible !important;
        padding: 0 !important;
        display: block !important;
    }
}
/* ── ACCOUNT SWITCHER - SMALL MOBILE FIX (<420px) ── */
@media (max-width: 420px) {
    /* Modal container - OVERRIDE all previous */
    .deriv-modal__wrapper.deriv-account-switcher__container--mobile {
        width: 95% !important;
        max-width: 340px !important;
        min-width: 280px !important;
        padding: 12px !important;
        min-height: 230px !important;
        max-height: 80vh !important;
        border-radius: 10px !important;
        background: #1a1a2e !important;
        border: 2px solid #22c55e !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    /* Force modal content to fit */
    .deriv-modal__wrapper.deriv-account-switcher__container--mobile > div {
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
        padding: 0 !important;
    }

    /* Tabs - smaller and side by side */
    .derivs-secondary-tabs {
        display: flex !important;
        flex-direction: row !important;
        gap: 4px !important;
        padding: 0 0 8px 0 !important;
        margin-bottom: 8px !important;
        width: 100% !important;
        flex-wrap: nowrap !important;
    }

    .derivs-secondary-tabs__btn {
        flex: 1 !important;
        padding: 6px 8px !important;
        font-size: 11px !important;
        min-height: 28px !important;
        border-radius: 4px !important;
        text-align: center !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        background: rgba(255,255,255,0.05) !important;
        border: 1px solid transparent !important;
        color: rgba(255,255,255,0.6) !important;
    }

    .derivs-secondary-tabs__btn--active {
        background: rgba(34,197,94,0.15) !important;
        border: 1px solid rgba(34,197,94,0.3) !important;
        color: #ffffff !important;
        font-weight: 600 !important;
    }

    /* Account items - compact */
    .deriv-account-switcher-item {
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        padding: 6px 8px !important;
        min-height: 38px !important;
        border-bottom: 1px solid rgba(255,255,255,0.05) !important;
        border-radius: 4px !important;
        margin-bottom: 1px !important;
        background: transparent !important;
    }

    .deriv-account-switcher-item--active {
        background: rgba(34,197,94,0.08) !important;
        border-left: 2px solid #22c55e !important;
        padding-left: 6px !important;
    }

    .deriv-account-switcher-item:last-child {
        border-bottom: none !important;
    }

    /* Icon */
    .deriv-account-switcher-item__icon {
        flex-shrink: 0 !important;
        width: 20px !important;
        height: 20px !important;
    }

    .deriv-account-switcher-item__icon svg {
        width: 20px !important;
        height: 20px !important;
    }

    /* Details */
    .deriv-account-switcher-item__detail {
        flex: 1 !important;
        min-width: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 1px !important;
    }

    .deriv-account-switcher-item__currency {
        font-size: 12px !important;
        font-weight: 600 !important;
        color: #ffffff !important;
        line-height: 1.2 !important;
    }

    .deriv-account-switcher-item__loginid {
        font-size: 9px !important;
        color: rgba(255,255,255,0.4) !important;
        line-height: 1.2 !important;
    }

    /* Balance */
    .deriv-account-switcher-item__balance {
        flex-shrink: 0 !important;
        font-size: 11px !important;
        font-weight: 600 !important;
        color: #22c55e !important;
        white-space: nowrap !important;
        margin-left: auto !important;
    }

    /* Balance text inside account item */
    .deriv-account-switcher-item__balance span {
        font-size: 11px !important;
        color: #22c55e !important;
    }

    /* Logout */
    .deriv-account-switcher__logout {
        font-size: 11px !important;
        padding: 8px 0 0 0 !important;
        margin-top: 8px !important;
        gap: 6px !important;
        justify-content: center !important;
    }

    .deriv-account-switcher__logout svg {
        width: 14px !important;
        height: 14px !important;
    }

    /* Trader's Hub Link */
    .deriv-account-switcher__tradershub-link {
        font-size: 10px !important;
        padding: 8px 0 4px 0 !important;
    }

    .deriv-account-switcher__tradershub-link a {
        font-size: 10px !important;
    }

    /* Reset balance button */
    .deriv-account-switcher-item__balance button {
        font-size: 8px !important;
        padding: 2px 6px !important;
        height: 20px !important;
        min-height: 20px !important;
        border-radius: 3px !important;
        border: 1px solid rgba(255,255,255,0.1) !important;
        background: transparent !important;
        color: rgba(255,255,255,0.5) !important;
        cursor: pointer !important;
    }

    /* Accordion content */
    .deriv-accordion__content {
        padding: 0 !important;
    }

    .deriv-accordion__text {
        padding: 0 !important;
    }

    .account-switcher__item {
        display: block !important;
        width: 100% !important;
    }

    /* Hide accordion header */
    .deriv-accordion__header,
    .deriv-account-switcher__title {
        display: none !important;
    }
}

/* ── EXTRA SMALL DEVICES (≤360px) ── */
@media (max-width: 360px) {
    .deriv-modal__wrapper.deriv-account-switcher__container--mobile {
        width: 96% !important;
        max-width: 300px !important;
        min-width: 240px !important;
        padding: 10px !important;
        min-height: 200px !important;
        border-radius: 8px !important;
    }

    .derivs-secondary-tabs__btn {
        font-size: 10px !important;
        padding: 4px 6px !important;
        min-height: 24px !important;
    }

    .deriv-account-switcher-item {
        padding: 4px 6px !important;
        min-height: 32px !important;
        gap: 4px !important;
    }

    .deriv-account-switcher-item__currency {
        font-size: 11px !important;
    }

    .deriv-account-switcher-item__loginid {
        font-size: 8px !important;
    }

    .deriv-account-switcher-item__balance {
        font-size: 10px !important;
    }

    .deriv-account-switcher-item__balance span {
        font-size: 10px !important;
    }

    .deriv-account-switcher-item__icon {
        width: 18px !important;
        height: 18px !important;
    }

    .deriv-account-switcher-item__icon svg {
        width: 18px !important;
        height: 18px !important;
    }

    .deriv-account-switcher__logout {
        font-size: 10px !important;
        padding: 6px 0 0 0 !important;
        margin-top: 6px !important;
    }

    .deriv-account-switcher__tradershub-link {
        font-size: 9px !important;
        padding: 6px 0 2px 0 !important;
    }

    .deriv-account-switcher__tradershub-link a {
        font-size: 9px !important;
    }

    .deriv-account-switcher-item__balance button {
        font-size: 7px !important;
        padding: 1px 4px !important;
        height: 16px !important;
        min-height: 16px !important;
    }
}
/* ── FIX: LIGHT MODE NAVBAR TEXT COLORS ── */
/* Force dark text on light mode for navbar elements */
.theme--light .deriv-account-switcher__balance span:first-child,
.theme--light .deriv-account-switcher__balance span:last-child,
.theme--light .deriv-account-switcher__balance {
    color: #1a1a2e !important;
}

.theme--light .deriv-account-switcher__button svg:last-child path {
    fill: #1a1a2e !important;
}

.theme--light .currency-switch-select {
    color: #1a1a2e !important;
    background: rgba(0,0,0,0.05) !important;
}

.theme--light .app-header__cashier-button .dc-btn__text {
    color: #1a1a2e !important;
}

.theme--light .deriv-account-switcher__button {
    border-color: rgba(0,0,0,0.1) !important;
}

/* ── FIX: Keep modal content white in both themes ── */
.deriv-modal__wrapper.deriv-account-switcher__container--mobile .deriv-account-switcher-item__currency,
.deriv-modal__wrapper.deriv-account-switcher__container--mobile .deriv-account-switcher-item__balance,
.deriv-modal__wrapper.deriv-account-switcher__container--mobile .derivs-secondary-tabs__btn {
    color: #ffffff !important;
}

.deriv-modal__wrapper.deriv-account-switcher__container--mobile .deriv-account-switcher-item {
    color: #ffffff !important;
}

/* ── FORCE MODAL TEXT VISIBLE IN BOTH THEMES ── */
/* Dark modal background always */
.deriv-modal__wrapper.deriv-account-switcher__container--mobile {
    background: #1a1a2e !important;
    border: 2px solid #22c55e !important;
}

/* Force text colors inside modal - ALWAYS WHITE */
.deriv-modal__wrapper.deriv-account-switcher__container--mobile .deriv-account-switcher-item {
    color: #ffffff !important;
}

.deriv-modal__wrapper.deriv-account-switcher__container--mobile .deriv-account-switcher-item__currency {
    color: #ffffff !important;
}

.deriv-modal__wrapper.deriv-account-switcher__container--mobile .deriv-account-switcher-item__loginid {
    color: rgba(200, 200, 200, 0.8) !important;
}

.deriv-modal__wrapper.deriv-account-switcher__container--mobile .deriv-account-switcher-item__balance {
    color: #22c55e !important;
}

.deriv-modal__wrapper.deriv-account-switcher__container--mobile .derivs-secondary-tabs__btn {
    color: rgba(255, 255, 255, 0.7) !important;
}

.deriv-modal__wrapper.deriv-account-switcher__container--mobile .derivs-secondary-tabs__btn--active {
    color: #ffffff !important;
}

.deriv-modal__wrapper.deriv-account-switcher__container--mobile .deriv-account-switcher__logout {
    color: #ff444f !important;
}