/* Общие стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', 'Arial', sans-serif;
    background: #000000;
    color: #ffffff;
    overflow-x: hidden;
}

.screen {
    display: none;
    min-height: 100vh;
}

.screen.active {
    display: block;
}

/* Экран загрузки */
#loading-screen {
    background: #000000;
    display: none;
    align-items: center;
    justify-content: center;
}

#loading-screen.active {
    display: flex;
}

.loading-container {
    text-align: center;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(168, 85, 247, 0.2);
    border-top-color: #a855f7;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    font-size: 18px;
    color: #a855f7;
    letter-spacing: 2px;
}

/* Главный экран */
#main-screen {
    background:
        radial-gradient(ellipse 60% 50% at 50% 30%, rgba(168, 85, 247, 0.06) 0%, transparent 60%),
        #000000;
}

/* Header */
.main-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 40px;
    border-bottom: 1px solid rgba(168, 85, 247, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(0, 0, 0, 0.8);
}

.main-nav {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-size: 16px;
    font-weight: 500;
    color: #888;
    text-decoration: none;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.nav-link.active {
    color: #ffffff;
    border-bottom-color: #a855f7;
}

.nav-link:not(.disabled):hover {
    color: #c084fc;
}

.nav-link.disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid rgba(168, 85, 247, 0.4);
}

.user-name {
    font-size: 14px;
    color: #ccc;
    font-weight: 500;
}

.logout-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #888;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.logout-btn:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

/* Main content */
.main-content {
    padding: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.page {
    display: none;
}

.page.active {
    display: block;
}