/* ========================================
   ULTRA PREMIUM MOBILE MENU
   Full-Screen Overlay with Glassmorphism
   ======================================== */

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(5, 5, 5, 0.98);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Menu Container */
.mobile-menu-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 80px 24px 40px;
    transform: translateY(-30px);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-overlay.active .mobile-menu-container {
    transform: translateY(0);
}

/* Close Button */
.mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10001;
}

.mobile-menu-close:hover {
    background: rgba(255, 77, 77, 0.1);
    border-color: #ff4d4d;
    transform: rotate(90deg);
}

.mobile-menu-close svg {
    width: 24px;
    height: 24px;
    stroke: #fff;
}

/* Logo in Mobile Menu */
.mobile-menu-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 48px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-menu-logo img {
    width: 48px;
    height: 48px;
    filter: drop-shadow(0 4px 16px rgba(0, 217, 126, 0.3));
}

.mobile-menu-logo-text {
    display: flex;
    flex-direction: column;
}

.mobile-menu-logo-main {
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
}

.mobile-menu-logo-sub {
    font-size: 0.7rem;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Navigation Links */
.mobile-menu-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 40px;
}

.mobile-menu-item {
    opacity: 0;
    transform: translateX(-20px);
    animation: slideInMenu 0.5s ease forwards;
}

.mobile-menu-item:nth-child(1) {
    animation-delay: 0.1s;
}

.mobile-menu-item:nth-child(2) {
    animation-delay: 0.15s;
}

.mobile-menu-item:nth-child(3) {
    animation-delay: 0.2s;
}

.mobile-menu-item:nth-child(4) {
    animation-delay: 0.25s;
}

.mobile-menu-item:nth-child(5) {
    animation-delay: 0.3s;
}

@keyframes slideInMenu {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.mobile-menu-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    color: #ccc;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-link:active {
    transform: scale(0.98);
}

.mobile-menu-link:hover {
    background: rgba(0, 217, 126, 0.08);
    border-color: rgba(0, 217, 126, 0.2);
    color: #fff;
    transform: translateX(4px);
}

.mobile-menu-link svg {
    width: 20px;
    height: 20px;
    stroke: #666;
    transition: all 0.3s ease;
}

.mobile-menu-link:hover svg {
    stroke: #00d97e;
    transform: translateX(4px);
}

/* Submenu */
.mobile-submenu {
    display: none;
    flex-direction: column;
    gap: 4px;
    margin-top: 8px;
    margin-left: 20px;
    padding-left: 16px;
    border-left: 2px solid rgba(0, 217, 126, 0.2);
}

.mobile-submenu.active {
    display: flex;
}

.mobile-submenu a {
    padding: 12px 16px;
    color: #999;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.mobile-submenu a:hover {
    background: rgba(0, 217, 126, 0.05);
    color: #00d97e;
    transform: translateX(2px);
}

/* Mobile Actions */
.mobile-menu-actions {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-btn {
    padding: 16px 24px;
    text-align: center;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.mobile-btn-primary {
    background: linear-gradient(135deg, #00d97e 0%, #00b36a 100%);
    color: #fff;
    box-shadow: 0 4px 16px rgba(0, 217, 126, 0.25);
}

.mobile-btn-primary:active {
    transform: translateY(2px);
    box-shadow: 0 2px 8px rgba(0, 217, 126, 0.2);
}

.mobile-btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
}

.mobile-btn-secondary:active {
    background: rgba(255, 255, 255, 0.08);
}

/* Language Switcher Mobile */
.mobile-language-switcher {
    display: flex;
    gap: 8px;
    margin-top: 20px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.mobile-lang-btn {
    flex: 1;
    padding: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: #999;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mobile-lang-btn:hover,
.mobile-lang-btn.active {
    background: rgba(0, 217, 126, 0.1);
    border-color: rgba(0, 217, 126, 0.3);
    color: #00d97e;
}

/* Stats in Mobile Menu */
.mobile-menu-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
    opacity: 0;
    animation: slideInMenu 0.5s ease forwards;
    animation-delay: 0.35s;
}

.mobile-stat-card {
    padding: 16px;
    background: rgba(0, 217, 126, 0.05);
    border: 1px solid rgba(0, 217, 126, 0.1);
    border-radius: 12px;
    text-align: center;
}

.mobile-stat-value {
    font-size: 1.4rem;
    font-weight: 800;
    color: #00d97e;
    margin-bottom: 4px;
}

.mobile-stat-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Prevent body scroll when menu is open */
body.mobile-menu-open {
    overflow: hidden;
}

/* Touch optimization */
.mobile-menu-link,
.mobile-btn {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}