.mobile-menu-modal {
    padding: 0;
    align-items: center;
    justify-content: center;
}

.mobile-menu-modal .guest-card-modal-content {
    max-height: none;
    overflow: visible;
    padding: 1.5rem;
    padding-top: calc(1.5rem + var(--safe-area-inset-top, 0px));
    padding-bottom: calc(1.5rem + var(--safe-area-inset-bottom, 0px));
    width: auto;
    min-width: 320px;
    max-width: 90vw;
}

.mobile-menu-modal .modal-close-btn {
    position: absolute;
    top: 0.8rem;
    right: 0.8rem;
    width: 36px;
    height: 36px;
    z-index: 10002;
    background: #8b0000;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0;
    max-height: none;
    overflow: visible;
}

.mobile-menu-top {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(139, 0, 0, 0.3);
}

.mobile-menu-volume-controls {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(139, 0, 0, 0.3);
}

.volume-control-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.volume-control-row label {
    min-width: 80px;
    color: #d4d4d4;
    font-family: 'Courier New', monospace;
}

.volume-control-row input[type="range"] {
    flex: 1;
    height: 4px;
    background: rgba(139, 0, 0, 0.3);
    border-radius: 2px;
    outline: none;
    -webkit-appearance: none;
}

.volume-control-row input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: #8b0000;
    border: 2px solid #fff;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
}

.volume-control-row input[type="range"]::-webkit-slider-thumb:hover {
    background: #ff0000;
    box-shadow: 0 0 8px rgba(255, 0, 0, 0.5);
}

.volume-control-row input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: #8b0000;
    border: 2px solid #fff;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
}

.volume-control-row input[type="range"]::-moz-range-thumb:hover {
    background: #ff0000;
    box-shadow: 0 0 8px rgba(255, 0, 0, 0.5);
}

.volume-control-row span {
    min-width: 42px;
    text-align: right;
    color: #8b0000;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
}

.mobile-menu-langs {
    display: flex;
    gap: 0.4rem;
    justify-content: flex-start;
    padding-right: 20%;
}

.mobile-menu-langs .lang-btn {
    padding: 0.5rem 0.8rem;
    background: rgba(139, 0, 0, 0.3);
    border: 1px solid #8b0000;
    color: #fff;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    font-weight: bold;
    transition: all 0.2s ease;
    border-radius: 4px;
    white-space: nowrap;
}

.mobile-menu-langs .lang-btn:hover {
    background: rgba(139, 0, 0, 0.5);
    border-color: #ff0000;
}

.mobile-menu-langs .lang-btn.active {
    background: #8b0000;
    border-color: #ff0000;
    box-shadow: 0 0 8px rgba(255, 0, 0, 0.4);
}

.mobile-menu-user-row {
    display: flex;
    gap: 0.4rem;
    justify-content: center;
}

.mobile-menu-user-row .audio-btn {
    padding: 0.5rem 0.8rem;
    background: rgba(139, 0, 0, 0.3);
    border: 1px solid #8b0000;
    color: #fff;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s ease;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-user-row .audio-btn:hover {
    background: rgba(139, 0, 0, 0.5);
    border-color: #ff0000;
}

.mobile-menu-user-row .audio-btn.disabled {
    opacity: 0.5;
    background: rgba(139, 0, 0, 0.2);
}

.mobile-menu-profile-btn,
.mobile-menu-logout-btn {
    padding: 0.5rem 0.8rem;
    background: rgba(139, 0, 0, 0.3);
    border: 1px solid #8b0000;
    color: #fff;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.2s ease;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-profile-btn:hover {
    background: rgba(139, 0, 0, 0.5);
    border-color: #ff0000;
}

.mobile-menu-logout-btn {
    background: rgba(139, 0, 0, 0.4);
}

.mobile-menu-logout-btn:hover {
    background: rgba(139, 0, 0, 0.6);
    border-color: #ff0000;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.3);
}

.mobile-menu-items {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-menu-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.7rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #d4d4d4;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    transition: all 0.3s;
    border-radius: 4px;
    text-align: left;
}

.mobile-menu-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #8b0000;
    transform: translateX(4px);
}

.menu-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.mobile-menu-btn {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(139, 0, 0, 0.8);
    border: 2px solid #8b0000;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 1001;
}

.mobile-menu-btn:hover {
    background: rgba(160, 0, 0, 0.9);
    box-shadow: 0 0 10px rgba(139, 0, 0, 0.6);
}

@media (max-width: 480px) {
    .mobile-menu-modal .guest-card-modal-content {
        min-width: 280px;
        padding: 1.2rem;
    }
    
    .mobile-menu-content {
        gap: 0.8rem;
    }
    
    .mobile-menu-langs .lang-btn {
        padding: 0.45rem 0.7rem;
        font-size: 0.75rem;
    }
    
    .mobile-menu-user-row .audio-btn {
        padding: 0.45rem 0.6rem;
        font-size: 0.9rem;
    }
    
    .mobile-menu-profile-btn,
    .mobile-menu-logout-btn {
        padding: 0.45rem 0.6rem;
        font-size: 1rem;
    }
    
    .mobile-menu-item {
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
        gap: 0.6rem;
    }
    
    .menu-icon {
        font-size: 1.1rem;
    }
}
