/* Modern Mobile Menu Styles - Ultra-Modern eSIM Theme */

/* Mobile Menu Container */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100vh;
    background: linear-gradient(90deg, rgba(30, 30, 30, 0.95) 0%, rgba(20, 20, 20, 0.95) 100%);
    border-left: 1px solid rgba(12, 224, 107, 0.25);
    z-index: 9999;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    padding: 20px 0;
}

.mobile-menu.active {
    right: 0;
    transform: translateZ(0);
}

/* Light Theme Mobile Menu */
body:not(.dark-theme) .mobile-menu,
body.light-theme .mobile-menu {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.95) 0%, rgba(245, 245, 245, 0.95) 100%);
    border-left: 1px solid rgba(12, 224, 107, 0.3);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
}

body:not(.dark-theme) .mobile-menu-header,
body.light-theme .mobile-menu-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

body:not(.dark-theme) .mobile-nav-link,
body.light-theme .mobile-nav-link {
    color: rgba(0, 0, 0, 0.9);
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

body:not(.dark-theme) .mobile-nav-link:hover,
body.light-theme .mobile-nav-link:hover {
    color: var(--primary-green);
    background: rgba(12, 224, 107, 0.1);
}

body:not(.dark-theme) .mobile-nav-link.active,
body.light-theme .mobile-nav-link.active {
    color: #000;
}

body:not(.dark-theme) .mobile-user-panel,
body.light-theme .mobile-user-panel {
    background: rgba(12, 224, 107, 0.15);
    border: 1px solid rgba(12, 224, 107, 0.3);
}

body:not(.dark-theme) .mobile-user-email,
body.light-theme .mobile-user-email {
    color: rgba(0, 0, 0, 0.7);
}

body:not(.dark-theme) .mobile-account-btn,
body:not(.dark-theme) .mobile-orders-btn,
body.light-theme .mobile-account-btn,
body.light-theme .mobile-orders-btn {
    background: rgba(0, 0, 0, 0.05);
    color: rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

body:not(.dark-theme) .mobile-account-btn:hover,
body:not(.dark-theme) .mobile-orders-btn:hover,
body.light-theme .mobile-account-btn:hover,
body.light-theme .mobile-orders-btn:hover {
    background: rgba(12, 224, 107, 0.15);
    color: var(--primary-green);
}

body:not(.dark-theme) .mobile-register-btn,
body.light-theme .mobile-register-btn {
    background: rgba(0, 0, 0, 0.05);
    color: rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

body:not(.dark-theme) .mobile-register-btn:hover,
body.light-theme .mobile-register-btn:hover {
    background: rgba(12, 224, 107, 0.15);
    color: var(--primary-green);
}

body:not(.dark-theme) .mobile-lang-selector,
body:not(.dark-theme) .mobile-currency-selector,
body.light-theme .mobile-lang-selector,
body.light-theme .mobile-currency-selector {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: rgba(0, 0, 0, 0.9);
}

body:not(.dark-theme) .mobile-lang-selector:hover,
body:not(.dark-theme) .mobile-currency-selector:hover,
body.light-theme .mobile-lang-selector:hover,
body.light-theme .mobile-currency-selector:hover {
    background: rgba(12, 224, 107, 0.15);
    border-color: rgba(12, 224, 107, 0.3);
    color: var(--primary-green);
}

/* Dark Theme Mobile Menu */
body:not(.light-theme) .mobile-menu,
body.dark-theme .mobile-menu {
    background: linear-gradient(90deg, rgba(30, 30, 30, 0.95) 0%, rgba(20, 20, 20, 0.95) 100%);
    border-left: 1px solid rgba(12, 224, 107, 0.25);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
}

body:not(.light-theme) .mobile-menu-header,
body.dark-theme .mobile-menu-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

body:not(.light-theme) .mobile-close-btn,
body.dark-theme .mobile-close-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--primary-green);
}

body:not(.light-theme) .mobile-close-btn:hover,
body.dark-theme .mobile-close-btn:hover {
    background: rgba(12, 224, 107, 0.2);
    border-color: rgba(12, 224, 107, 0.3);
    color: var(--primary-green);
}

/* Mobile Menu Header */
.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.mobile-logo {
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 0%, var(--primary-green) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mobile-close-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--primary-green);
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-close-btn:hover {
    background: rgba(12, 224, 107, 0.2);
    transform: rotate(90deg);
}

/* Mobile Navigation */
.mobile-nav {
    padding: 0 20px;
}

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

.mobile-nav-item {
    margin-bottom: 8px;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 15px;
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    font-size: 17px;
    font-weight: 500;
    padding: 16px 20px;
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.light-theme .mobile-nav-menu a:hover {
    color: var(--primary-green) !important;
    background: transparent !important;
}

/* Dark Theme Mobile Menu Link Styles */
body:not(.light-theme) .mobile-nav-link {
    color: rgba(255, 255, 255, 0.95);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body:not(.light-theme) .mobile-nav-link:hover {
    color: var(--primary-green);
    background: rgba(12, 224, 107, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(12, 224, 107, 0.2);
}

body:not(.light-theme) .mobile-nav-link.active {
    color: #000;
    background: linear-gradient(135deg, var(--primary-green) 0%, #00ff88 100%);
    font-weight: 700;
    box-shadow: 0 5px 20px rgba(12, 224, 107, 0.4);
}

.mobile-nav-link:hover {
    color: var(--primary-green);
    background: rgba(12, 224, 107, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(12, 224, 107, 0.2);
}

.mobile-nav-link.active {
    color: #000;
    background: linear-gradient(135deg, var(--primary-green) 0%, #00ff88 100%);
    font-weight: 700;
    box-shadow: 0 5px 20px rgba(12, 224, 107, 0.4);
}

.mobile-nav-link i {
    font-size: 20px;
    width: 24px;
    text-align: center;
    opacity: 0.8;
}

.mobile-nav-link.active i {
    opacity: 1;
}

/* Mobile User Panel */
.mobile-user-panel {
    padding: 20px;
    margin: 20px 0;
    background: rgba(12, 224, 107, 0.1);
    border-radius: 16px;
    border: 1px solid rgba(12, 224, 107, 0.25);
}

.mobile-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.mobile-user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-green) 0%, #00ff88 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
    color: #000;
}

.mobile-user-details {
    flex: 1;
}

.mobile-username {
    font-weight: 700;
    font-size: 18px;
    color: var(--primary-green);
    margin-bottom: 4px;
}

.mobile-user-email {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
}

.mobile-account-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.mobile-account-btn,
.mobile-orders-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.mobile-account-btn:hover,
.mobile-orders-btn:hover {
    background: rgba(12, 224, 107, 0.1);
    color: var(--primary-green);
    transform: translateY(-2px);
}

.mobile-logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    border: none;
    width: 100%;
    margin-top: 15px;
    box-shadow: 0 4px 10px rgba(220, 53, 69, 0.3);
}

.mobile-logout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.4);
}

/* Mobile Auth Actions */
.mobile-auth-actions {
    padding: 0 20px 20px;
}

.mobile-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    background: linear-gradient(135deg, var(--primary-green) 0%, #00ff88 100%);
    border: none;
    color: #000;
    font-weight: 700;
    font-size: 17px;
    padding: 16px;
    border-radius: 16px;
    cursor: pointer;
    margin-bottom: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 5px 15px rgba(12, 224, 107, 0.3);
}

.mobile-login-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(12, 224, 107, 0.5);
}

.mobile-register-btn {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    font-size: 17px;
    padding: 16px;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-register-btn:hover {
    background: rgba(12, 224, 107, 0.1);
    color: var(--primary-green);
    transform: translateY(-2px);
}

/* Language and Currency Selectors */
.mobile-lang-currency {
    display: flex;
    gap: 15px;
    padding: 0 20px 20px;
}

.mobile-lang-selector,
.mobile-currency-selector {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    padding: 14px;
    border-radius: 12px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.7)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
    padding-right: 40px;
}

/* When currency selector is removed, make language selector full width */
.mobile-lang-selector {
    width: 100%;
}

.mobile-lang-selector:hover,
.mobile-currency-selector:hover {
    background: rgba(12, 224, 107, 0.1);
    border-color: rgba(12, 224, 107, 0.3);
    color: var(--primary-green);
}

@media (max-width: 400px) {
    .mobile-lang-currency {
        flex-direction: column;
        gap: 10px;
    }
    
    .mobile-lang-selector,
    .mobile-currency-selector {
        font-size: 16px;
        padding: 12px;
    }
}

/* Overlay - Removed due to conflicts with ultra-modern CSS */
/* .mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
} */

/* Mobile Toggle Button */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1000;
    position: relative;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.mobile-toggle:hover {
    background: rgba(12, 224, 107, 0.1);
}

.mobile-toggle span {
    width: 26px;
    height: 3px;
    background: var(--primary-green);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Body State When Menu is Open */
body.mobile-menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* Responsive Adjustments */
@media (max-width: 350px) {
    .mobile-menu {
        width: 280px;
    }
    
    .mobile-nav-link {
        font-size: 16px;
        padding: 14px 16px;
    }
}

@media (max-width: 320px) {
    .mobile-menu {
        width: 260px;
    }
    
    .mobile-nav-link {
        font-size: 15px;
        padding: 12px 14px;
    }
    
    .mobile-account-actions {
        grid-template-columns: 1fr;
    }
}

/* Smooth Animations */
.mobile-nav-link,
.mobile-account-btn,
.mobile-orders-btn,
.mobile-logout-btn,
.mobile-login-btn,
.mobile-register-btn {
    will-change: transform;
}

/* Scrollbar Styling */
.mobile-menu::-webkit-scrollbar {
    width: 6px;
}

.mobile-menu::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.mobile-menu::-webkit-scrollbar-thumb {
    background: rgba(12, 224, 107, 0.5);
    border-radius: 3px;
}

.mobile-menu::-webkit-scrollbar-thumb:hover {
    background: rgba(12, 224, 107, 0.7);
}

/* Additional Light Theme Improvements */
body.light-theme .mobile-menu .mobile-nav-link {
    color: #333;
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: none;
}

body.light-theme .mobile-menu .mobile-nav-link:hover {
    background: rgba(12, 224, 107, 0.15);
    border-color: rgba(12, 224, 107, 0.3);
}

body.light-theme .mobile-menu .mobile-nav-link.active {
    background: linear-gradient(135deg, var(--primary-green) 0%, #00ff88 100%);
    color: #000;
    border: 1px solid rgba(12, 224, 107, 0.4);
    box-shadow: 0 5px 15px rgba(12, 224, 107, 0.3);
}

body.light-theme .mobile-menu .mobile-close-btn {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #333;
}

body.light-theme .mobile-menu .mobile-close-btn:hover {
    background: rgba(12, 224, 107, 0.2);
    border-color: rgba(12, 224, 107, 0.3);
    color: var(--primary-green);
}

body.light-theme .mobile-menu .mobile-user-avatar {
    background: linear-gradient(135deg, var(--primary-green) 0%, #00ff88 100%);
    color: #000;
}

body.light-theme .mobile-menu .mobile-username {
    color: #333;
}

body.light-theme .mobile-menu .mobile-login-btn {
    background: linear-gradient(135deg, var(--primary-green) 0%, #00ff88 100%);
    color: #000;
    box-shadow: 0 5px 15px rgba(12, 224, 107, 0.2);
}

body.light-theme .mobile-menu .mobile-login-btn:hover {
    box-shadow: 0 8px 25px rgba(12, 224, 107, 0.4);
}

body.light-theme .mobile-menu .mobile-logout-btn {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.2);
}

body.light-theme .mobile-menu .mobile-logout-btn:hover {
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.4);
}
