/* Сброс и базовые стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Orbitron', sans-serif;
    background: #000;
    color: #fff;
    overflow-x: hidden;
    min-height: 100vh;
}

/* 🌟 ЗВЕЗДНОЕ НЕБО - ФОН */
.universe {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.star {
    position: absolute;
    background: #fff;
    border-radius: 50%;
    animation: twinkle 5s infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

.shooting-star {
    position: absolute;
    background: linear-gradient(90deg, transparent, #fff, transparent);
    transform: rotate(-45deg);
}

/* ✨ ЧАСТИЦЫ ЗА КУРСОРОМ */
.cursor-trail {
    position: fixed;
    pointer-events: none;
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 10px #00ffff, 0 0 20px #00ffff;
    z-index: 9999;
    opacity: 0;
}

.trail-particle {
    position: fixed;
    pointer-events: none;
    width: 4px;
    height: 4px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 8px #ff00ff;
    z-index: 9998;
}

/* 🎨 ЛОГОТИП */
.logo {
    position: fixed;
    top: 20px;
    left: 20px;
    font-size: 1.5rem;
    font-weight: 900;
    background: linear-gradient(45deg, #ff0000, #ff9900, #ffff00, #00ff00, #00ffff, #0000ff, #ff00ff);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: rainbow 8s ease-in-out infinite;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    z-index: 1000;
}

@keyframes rainbow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* 🔘 КНОПКА "ВОЙТИ" / "ПРОФИЛЬ" */
.login-btn {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(45deg, #ff00ff, #00ffff, #ffff00);
    background-size: 300% 300%;
    border: none;
    padding: 12px 35px;
    border-radius: 25px;
    color: #000;
    font-size: 1.1rem;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 0 30px rgba(255, 0, 255, 0.5),
               0 0 60px rgba(0, 255, 255, 0.3),
               inset 0 2px 10px rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
    animation: loginGlow 3s ease-in-out infinite;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
}

@keyframes loginGlow {
    0%, 100% { 
        box-shadow: 0 0 30px rgba(255, 0, 255, 0.5),
                  0 0 60px rgba(0, 255, 255, 0.3),
                  inset 0 2px 10px rgba(255, 255, 255, 0.3);
        background-position: 0% 50%;
    }
    50% { 
        box-shadow: 0 0 40px rgba(255, 0, 255, 0.7),
                  0 0 80px rgba(0, 255, 255, 0.5),
                  inset 0 2px 15px rgba(255, 255, 255, 0.5);
        background-position: 100% 50%;
    }
}

.login-btn:hover {
    transform: translateX(-50%) scale(1.1);
    animation: none;
    box-shadow: 0 0 50px rgba(255, 0, 255, 0.8),
              0 0 100px rgba(0, 255, 255, 0.6),
              inset 0 2px 20px rgba(255, 255, 255, 0.6);
}

/* ОКНО ПРОФИЛЯ */
.profile-menu {
    position: fixed;
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 255, 255, 0.2);
    display: none;
    flex-direction: column;
    gap: 10px;
}

.profile-menu.active {
    display: flex;
}

.profile-name {
    font-size: 1.2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 10px;
    background: linear-gradient(45deg, #00ffff, #ff00ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-weight: 500;
    cursor: pointer;
    gap: 12px;
}

.profile-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-5px);
}

.profile-item i {
    width: 20px;
    text-align: center;
}

.profile-item.admin-item {
    background: linear-gradient(45deg, rgba(255, 0, 255, 0.1), rgba(0, 255, 255, 0.1));
    border: 1px solid rgba(255, 0, 255, 0.3);
}

.profile-item.admin-item:hover {
    background: linear-gradient(45deg, rgba(255, 0, 255, 0.2), rgba(0, 255, 255, 0.2));
}

/* ≡ ГАМБУРГЕР МЕНЮ */
.menu-toggle {
    position: fixed;
    top: 25px;
    right: 20px;
    width: 30px;
    height: 25px;
    cursor: pointer;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background: linear-gradient(45deg, #00ffff, #ff00ff);
    border-radius: 2px;
    transition: all 0.3s ease;
}

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

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

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

/* 📱 ВЫПАДАЮЩЕЕ МЕНЮ */
.dropdown-menu {
    position: fixed;
    top: 70px;
    right: -300px;
    width: 250px;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 15px;
    z-index: 1000;
    transition: right 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 255, 255, 0.2);
}

.dropdown-menu.active {
    right: 20px;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    margin-bottom: 8px;
    font-weight: 500;
    cursor: pointer;
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-5px);
}

/* 🎨 МЕДЛЕННЫЙ ПЕРЕЛИВ ЦВЕТОВ */
.rainbow-text {
    background: linear-gradient(45deg, #ff0000, #ff9900, #ffff00, #00ff00, #00ffff, #0000ff, #ff00ff);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: rainbow 8s ease-in-out infinite;
}

.menu-item .icon {
    font-size: 1.1rem;
    margin-right: 12px;
    width: 20px;
    text-align: center;
}

.telegram-icon {
    width: 22px;
    height: 22px;
    background: #0088cc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
}

.telegram-icon i {
    color: white;
    font-size: 0.9rem;
    margin: 0;
}

.discord-icon {
    width: 22px;
    height: 22px;
    background: #5865f2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
}

.discord-icon i {
    color: white;
    font-size: 0.9rem;
    margin: 0;
}

/* 🖼️ ГЛАВНЫЙ ЭКРАН */
.main-screen {
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
}

.project-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 50px;
    background: linear-gradient(45deg, #00ffff, #ff00ff, #ffff00);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: titleGlow 8s ease-in-out infinite alternate;
    text-shadow: 0 0 30px rgba(255, 0, 255, 0.5);
}

@keyframes titleGlow {
    from { 
        text-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
        background-position: 0% 50%;
    }
    to { 
        text-shadow: 0 0 30px rgba(255, 0, 255, 0.8), 0 0 40px rgba(255, 255, 0, 0.6);
        background-position: 100% 50%;
    }
}

/* 📸 ГАЛЕРЕЯ 3 ФОТО */
.photo-gallery {
    display: flex;
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.photo-item {
    flex: 1;
    height: 280px;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.photo-item:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 255, 255, 0.5);
    box-shadow: 0 12px 25px rgba(0, 255, 255, 0.3);
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.photo-item:hover img {
    transform: scale(1.08);
}

.photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 15px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.photo-item:hover .photo-overlay {
    transform: translateY(0);
}

.photo-overlay h3 {
    font-size: 1rem;
    background: linear-gradient(45deg, #00ffff, #ff00ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 🚀 МОДАЛЬНЫЕ ОКНА */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active {
    display: flex;
}

.launcher-modal {
    width: 379px;
    height: 552px;
    background: linear-gradient(135deg, #0c0c0c 0%, #1a1a2e 50%, #16213e 100%);
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 50px rgba(0, 255, 255, 0.3);
    overflow: hidden;
    position: relative;
}

.modal-space-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(0, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 0, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(255, 255, 0, 0.05) 0%, transparent 50%);
    z-index: 1;
}

.rocket {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    font-size: 3rem;
    animation: rocketFloat 3s ease-in-out infinite;
    z-index: 2;
}

@keyframes rocketFloat {
    0%, 100% { transform: translateY(-50%) translateX(0); }
    50% { transform: translateY(-50%) translateX(-10px); }
}

.modal-content {
    position: relative;
    z-index: 3;
    padding: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* 🔐 АВТОРИЗАЦИЯ */
.auth-modal {
    width: 1162px;
    height: 607px;
    background: linear-gradient(135deg, #0c0c0c 0%, #1a1a2e 50%, #16213e 100%);
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 50px rgba(0, 255, 255, 0.3);
    overflow: hidden;
    position: relative;
}

.auth-modal-space-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(0, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 0, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(255, 255, 0, 0.05) 0%, transparent 50%);
    z-index: 1;
}

.auth-modal-content {
    position: relative;
    z-index: 3;
    padding: 40px;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    max-height: 90vh;
}

.auth-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 5px;
    margin-bottom: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-tab {
    flex: 1;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-weight: 600;
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
}

.auth-tab.active {
    background: linear-gradient(45deg, #00ffff, #ff00ff);
    color: #000;
    box-shadow: 0 5px 15px rgba(0, 255, 255, 0.3);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 400px;
    margin: 0 auto;
    width: 100%;
    padding-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.form-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
    color: white;
    font-family: 'Orbitron', sans-serif;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: rgba(0, 255, 255, 0.5);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.2);
}

/* CAPTCHA */
.captcha-container {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.captcha-code {
    font-size: 1.2rem;
    font-weight: bold;
    letter-spacing: 3px;
    background: linear-gradient(45deg, #00ffff, #ff00ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    padding: 5px 10px;
    border-radius: 5px;
    user-select: none;
}

.captcha-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 10px;
    color: white;
    font-family: 'Orbitron', sans-serif;
}

.captcha-input:focus {
    outline: none;
}

/* КНОПКА ВОЙТИ */
.auth-btn {
    background: linear-gradient(45deg, #00ffff, #ff00ff);
    border: none;
    padding: 18px 30px;
    border-radius: 15px;
    color: #000;
    font-size: 1.1rem;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0, 255, 255, 0.4);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 10px;
}

.auth-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 0, 255, 0.6);
}

/* Сообщения об успехе/ошибке */
.message {
    padding: 10px;
    border-radius: 10px;
    text-align: center;
    margin-top: 10px;
    font-size: 0.9rem;
}

.success {
    background: rgba(0, 255, 0, 0.1);
    border: 1px solid rgba(0, 255, 0, 0.3);
    color: #0f0;
}

.error {
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid rgba(255, 0, 0, 0.3);
    color: #f00;
}

/* Кнопки для админки */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(45deg, #00ffff, #ff00ff);
    color: #000;
    box-shadow: 0 5px 15px rgba(0, 255, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 0, 255, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Уведомления */
.security-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(255, 50, 50, 0.9);
    color: white;
    padding: 15px 25px;
    border-radius: 10px;
    z-index: 99999;
    font-family: 'Orbitron', sans-serif;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.5);
    animation: slideIn 0.3s ease;
    max-width: 300px;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

/* Адаптивность */
@media (max-width: 1200px) {
    .auth-modal {
        width: 90%;
        max-width: 1162px;
        height: auto;
        min-height: 607px;
        margin: 20px;
    }
}

@media (max-width: 1024px) {
    .photo-gallery {
        flex-direction: column;
        max-width: 500px;
    }

    .photo-item {
        height: 200px;
    }

    .project-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .logo {
        font-size: 1.2rem;
        left: 15px;
        top: 15px;
    }

    .login-btn {
        top: 15px;
        padding: 10px 25px;
        font-size: 1rem;
    }

    .menu-toggle {
        right: 15px;
        top: 20px;
    }

    .dropdown-menu.active {
        right: 15px;
    }

    .project-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }

    .dropdown-menu {
        width: 220px;
    }

    .launcher-modal {
        width: 90%;
        max-width: 379px;
        height: auto;
        min-height: 552px;
        margin: 20px;
    }

    .auth-modal-content {
        padding: 20px;
    }

    .auth-form {
        max-width: 100%;
    }

    .profile-menu {
        width: 90%;
        max-width: 300px;
    }

    .star {
        animation: none !important;
    }

    .cursor-trail,
    .trail-particle {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .auth-tabs {
        flex-direction: column;
    }

    .project-title {
        font-size: 1.8rem;
    }

    .photo-gallery {
        gap: 15px;
    }

    .photo-item {
        height: 150px;
    }

    input, select, textarea {
        font-size: 16px !important;
    }
}