/* Mobile account navigation readability and touch-target improvements. */

@media (max-width: 767.98px) {
    .account-mobile-tabs {
        display: flex;
        align-items: stretch;
        gap: 8px;
        margin: 0 0 14px;
        padding: 8px;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x proximity;
        overscroll-behavior-x: contain;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        border: 1px solid #e6ebf0;
        border-radius: 16px;
        background: rgba(255, 255, 255, .98);
        box-shadow: 0 5px 18px rgba(15, 23, 42, .07);
    }

    .account-mobile-tabs::-webkit-scrollbar {
        display: none;
    }

    .account-mobile-tabs .tab-btn {
        position: relative;
        flex: 0 0 auto;
        min-width: 78px;
        min-height: 66px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 6px;
        padding: 8px 9px;
        scroll-snap-align: start;
        border: 1px solid #dfe5ec;
        border-radius: 12px;
        color: #28323c;
        background: #fff;
        box-shadow: 0 2px 7px rgba(15, 23, 42, .04);
        font-family: inherit;
        line-height: 1.15;
        transition: background-color .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease, transform .16s ease;
        -webkit-tap-highlight-color: transparent;
    }

    .account-mobile-tabs .tab-btn i {
        min-height: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #34495e;
        font-size: 18px;
        line-height: 1;
    }

    .account-mobile-tabs .tab-btn span {
        display: block;
        color: inherit;
        font-size: 12px;
        font-weight: 700;
        line-height: 1.15;
        white-space: nowrap;
        letter-spacing: -.1px;
    }

    .account-mobile-tabs .tab-btn:focus-visible {
        outline: 3px solid rgba(13, 110, 253, .2);
        outline-offset: 2px;
    }

    .account-mobile-tabs .tab-btn:active {
        transform: translateY(1px);
    }

    .account-mobile-tabs .tab-btn.active {
        color: #fff;
        border-color: #0d6efd;
        background: linear-gradient(145deg, #0d6efd, #2f80ed);
        box-shadow: 0 5px 14px rgba(13, 110, 253, .28);
    }

    .account-mobile-tabs .tab-btn.active i,
    .account-mobile-tabs .tab-btn.active span {
        color: #fff;
    }

    .account-mobile-tabs .tab-btn.text-danger {
        color: #dc3545 !important;
        border-color: #f1c4c9;
        background: #fffafa;
    }

    .account-mobile-tabs .tab-btn.text-danger i,
    .account-mobile-tabs .tab-btn.text-danger span {
        color: #dc3545;
    }
}

@media (max-width: 360px) {
    .account-mobile-tabs {
        gap: 7px;
        padding: 7px;
        border-radius: 14px;
    }

    .account-mobile-tabs .tab-btn {
        min-width: 74px;
        min-height: 64px;
        padding-left: 7px;
        padding-right: 7px;
    }

    .account-mobile-tabs .tab-btn span {
        font-size: 11.5px;
    }
}
