/* Мобильные стили - только для экранов до 768px */
@media (max-width: 768px) {
    body {
        background: white !important;
    }
    
    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        cursor: pointer;
        background: transparent;
        border: none;
    }
    
    .menu-toggle svg {
        width: 24px;
        height: 24px;
        stroke: #3b902b;
        stroke-width: 2;
    }
    
    .logo {
        display: none;
    }
    
    .left-menu {
        display: none !important;
    }
    
    .left-menu-mobile {
        position: fixed;
        top: 0;
        left: 0;
        width: 310px;
        height: 100vh;
        background: white;
        z-index: 1001;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
        overflow-y: auto;
        display: block !important;
        transform: translateX(-100%);
        will-change: transform;
    }
    
    .left-menu-mobile.open {
        transform: translateX(0);
    }
    
    /* Две колонки в мобильном меню */
    .menu-two-columns-mobile {
        display: flex;
        gap: 5px;
        margin-bottom: 20px;
        flex-wrap: wrap;
        padding: 10px 10px;
    }
    
    .menu-column-mobile {
        flex: 1;
        min-width: 120px;
    }
    
    .menu-column-title {
        font-size: 12px;
        font-weight: 600;
        color: #3b902b;
        margin-bottom: 10px;
        padding-bottom: 5px;
        border-bottom: 1px solid #e0e0e0;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    .menu-nav-mobile {
        display: flex;
        flex-direction: column;
    }
    
    .menu-item-mobile {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px 0;
        color: #1a1a1a;
        text-decoration: none;
        transition: background 0.2s ease;
        font-size: 14px;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .menu-item-mobile:active {
        background: rgba(59, 144, 43, 0.1);
    }
    
    .menu-item-mobile svg {
        width: 18px;
        height: 18px;
        flex-shrink: 0;
    }
    
    .menu-item-mobile span {
        font-size: 15px;
    }
    
    /* Профиль в мобильном меню */
   .menu-profile-mobile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    margin-bottom: 5px;
    background: rgba(59, 144, 43, 0.05);
    position: relative;
}

/* Кнопка переключения темы - за пределами блока профиля, в правом верхнем углу обложки */
.menu-theme-toggle-mobile {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    z-index: 10;
}

.menu-theme-toggle-mobile:hover {
    background: rgb(255 255 255 / 10%);
}

.menu-theme-toggle-mobile svg {
    color: #3b902b;
    width: 20px;
    height: 20px;
}
    
    .menu-profile-avatar-mobile {
        width: 70px;
        height: 70px;
        flex-shrink: 0;
    }
    
    .menu-profile-avatar-mobile img,
    .avatar-placeholder-mobile {
        width: 100%;
        height: 100%;
        border-radius: 50%;
        object-fit: cover;
    }
    
    .avatar-placeholder-mobile {
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
        font-weight: 600;
        color: white;
    }
    
    .menu-profile-info-mobile {
        flex: 1;
    }
    
    .menu-theme-toggle-mobile {
        background: none;
        border: none;
        cursor: pointer;
        padding: 8px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background 0.3s ease;
    }
    
    
    .menu-theme-toggle-mobile svg {
        color: #3b902b;
        width: 26px;
        height: 26px;
    }
    
    .menu-footer-mobile {
        margin-top: 20px;
        padding: 15px;
        font-size: 13px;
        color: #999;
        text-align: center;
        border-top: 1px solid #e0e0e0;
    }
    
    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 1000;
        display: none;
        opacity: 0;
    }
    
    .menu-overlay.active {
        display: block;
    }
    
    .main-wrapper {
        margin: 50px auto 0;
        padding: 15px;
        gap: 0;
    }
    
    .content-area {
        margin-left: 0;
        width: 100%;
    }
    
    .auth-card {
        background: transparent !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        display: block !important;
    }
    
    .auth-left {
        padding: 20px 0 !important;
        background: transparent !important;
    }
    
    .auth-right {
        display: none !important;
    }
    
    .auth-logo {
        width: 60px !important;
        height: 60px !important;
    }
    
    .auth-footer {
        display: none !important;
    }
    
    .form-group input {
        padding: 12px 14px;
        font-size: 14px;
    }
    
    .btn-primary, .btn-success, .btn-secondary {
        padding: 12px;
        font-size: 14px;
    }
    
    .step-title {
        font-size: 20px;
    }
    
    .step-description {
        font-size: 13px;
    }
    
    .captcha-row {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .captcha-links {
        text-align: center;
    }
    
    .form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .birth-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-text {
        padding: 10px;
    }
    
    .notification-toast {
        top: 10px;
        right: 10px;
        left: 10px;
        min-width: auto;
        max-width: none;
        font-size: 13px;
        padding: 12px 15px;
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-stats {
        flex-direction: column;
        gap: 15px;
    }
    
    .slider-container {
        min-height: 300px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .menu-toggle {
        display: none;
    }
    
    .logo {
        display: block;
    }
    
    .left-menu-mobile {
        display: none !important;
    }
    
    .left-menu {
        display: block !important;
    }
}

@media (min-width: 1025px) {
    .menu-toggle {
        display: none;
    }
    
    .left-menu-mobile {
        display: none !important;
    }
    
    .left-menu {
        display: block !important;
    }
}

body.night .left-menu-mobile {
    background: #1A1B1D;
}

body.night .menu-column-title {
    color: #3b902b;
    border-bottom-color: #404040;
}

body.night .menu-item-mobile {
    color: #e0e0e0;
    border-bottom-color: #404040;
}

body.night .menu-item-mobile:active {
    background: rgba(59, 144, 43, 0.2);
}

body.night .menu-profile-mobile {
    background: rgba(59, 144, 43, 0.1);
}

body.night .menu-profile-name-mobile {
    color: #e0e0e0;
}

body.night .menu-profile-login-mobile {
    color: #999;
}

body.night .menu-footer-mobile {
    border-top-color: #404040;
    color: #666;
}

body.night .menu-overlay {
    background: rgba(0,0,0,0.7);
}

body.night .menu-toggle svg {
    stroke: #3b902b;
}

body.night .auth-card {
    background: transparent !important;
}

body.night .auth-left {
    background: transparent !important;
}

.menu-nav-mobile-single {
    display: flex;
    flex-direction: column;
    padding: 0 15px;
}

.menu-divider-mobile {
    height: 1px;
    background: #e0e0e0;
    margin: 10px 0;
}

body.night .menu-divider-mobile {
    background: #404040;
}

/* Обложка профиля в мобильном меню */
.menu-profile-wrapper-mobile {
    position: relative;
    margin-bottom: 10px;
}

.menu-screensaver-mobile {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    filter: blur(2px);
    transform: scale(1.02);
}

.menu-screensaver-placeholder-mobile {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    z-index: 0;
}

.menu-profile-mobile {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.menu-profile-avatar-mobile {
    width: 70px;
    height: 70px;
    flex-shrink: 0;
}

.menu-profile-info-mobile {
    flex: 1;
}

.menu-profile-name-mobile {
    font-weight: 600;
    font-size: 16px;
    color: white;
    margin-bottom: 2px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.menu-profile-login-mobile {
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* Ночная тема для обложки */
body.night .menu-profile-mobile {
    background: rgba(0, 0, 0, 0.4);
}