:root {
    /* Цветовая палитра из ваших предпочтений */
    --lavender: #b57edc;
    --slate-blue: #6a5acd;
    --black-red: #330000;
    --dark-bg: #0a0a0a;
    --card-bg: rgba(26, 26, 46, 0.85);
    --text-primary: #f0f0f0;
    --text-secondary: #b0b0d0;
    
    /* Акцентные цвета */
    --infj-purple: #8a2be2;
    --cancer-blue: #4169e1;
    --matrix-green: #00ff9d;
    --devil-red: #ff3333;
    --angel-gold: #ffd700;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Астральный фон */
.astral-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: 
        radial-gradient(circle at 20% 50%, rgba(181, 126, 220, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(106, 90, 205, 0.1) 0%, transparent 50%),
        linear-gradient(to bottom, #0a0a0a, #1a1a2e);
}

.particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.numerology {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'JetBrains Mono', monospace;
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.05);
    white-space: nowrap;
    animation: floatNumbers 30s linear infinite;
}

@keyframes floatNumbers {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Основной контейнер */
.main-container {
    display: grid;
    grid-template-columns: 320px 1fr;
    min-height: 100vh;
    max-width: 1600px;
    margin: 0 auto;
    padding: 20px;
    gap: 20px;
}

/* Левая панель */
.personal-sidebar {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 25px;
    border: 1px solid rgba(181, 126, 220, 0.3);
    height: fit-content;
    position: sticky;
    top: 20px;
}

.avatar-section {
    text-align: center;
    margin-bottom: 30px;
}

.avatar-frame {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto 20px;
}

.avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--lavender);
}

.avatar-glow {
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--lavender), var(--slate-blue));
    filter: blur(10px);
    opacity: 0.5;
    z-index: -1;
    animation: pulseGlow 2s infinite alternate;
}

@keyframes pulseGlow {
    0% { opacity: 0.3; }
    100% { opacity: 0.7; }
}

.name {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(45deg, var(--lavender), var(--slate-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
}

.identity-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge.infj {
    background: rgba(138, 43, 226, 0.2);
    color: var(--infj-purple);
    border: 1px solid var(--infj-purple);
}

.badge.enneagram {
    background: rgba(0, 255, 157, 0.2);
    color: var(--matrix-green);
    border: 1px solid var(--matrix-green);
}

.badge.zodiac {
    background: rgba(65, 105, 225, 0.2);
    color: var(--cancer-blue);
    border: 1px solid var(--cancer-blue);
}

.badge.matrix {
    background: rgba(255, 51, 51, 0.2);
    color: var(--devil-red);
    border: 1px solid var(--devil-red);
}

/* Информационные карточки */
.info-card {
    background: rgba(30, 30, 50, 0.6);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    border-left: 4px solid var(--lavender);
}

.info-card h3 {
    color: var(--lavender);
    margin-bottom: 15px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-card ul {
    list-style: none;
}

.info-card li {
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
}

.label {
    color: var(--text-secondary);
    font-weight: 500;
}

.hazel { color: #c9a86a; }
.blond { color: #e6c9a8; }
.angel { color: var(--angel-gold); }
.devil { color: var(--devil-red); }
.highlight { color: var(--matrix-green); }

.color-swatch {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
    vertical-align: middle;
}

.color-swatch.lavender { background: var(--lavender); }
.color-swatch.slate-blue { background: var(--slate-blue); }
.color-swatch.black-red { 
    background: linear-gradient(45deg, #000 50%, #ff0000 50%);
}

/* Карта мечты */
.dream-card {
    background: rgba(30, 30, 50, 0.6);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid rgba(0, 255, 157, 0.3);
}

.dream-card h3 {
    color: var(--matrix-green);
    margin-bottom: 15px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dream-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    margin-bottom: 8px;
    transition: transform 0.3s;
}

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

/* Основной контент */
.main-content {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 25px;
    border: 1px solid rgba(106, 90, 205, 0.3);
}

/* Навигация */
.main-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-item {
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.nav-item:hover {
    background: rgba(181, 126, 220, 0.2);
    color: var(--lavender);
}

.nav-item.active {
    background: linear-gradient(45deg, rgba(181, 126, 220, 0.3), rgba(106, 90, 205, 0.3));
    color: var(--lavender);
    border: 1px solid rgba(181, 126, 220, 0.5);
}

/* Секции контента */
.content-section {
    display: none;
}

.content-section.active {
    display: block;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-header h2 {
    font-size: 1.8rem;
    color: var(--lavender);
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-stats {
    display: flex;
    gap: 20px;
}

.stat {
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Карточки групп */
.groups-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.group-card {
    background: rgba(30, 30, 50, 0.6);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s;
}

.group-card:hover {
    transform: translateY(-5px);
    border-color: var(--lavender);
}

.group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.group-header h3 {
    color: var(--lavender);
    font-size: 1.3rem;
}

.group-count {
    background: rgba(181, 126, 220, 0.2);
    color: var(--lavender);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
}

/* Карточки биасов */
.biases-list {
    display: grid;
    gap: 15px;
}

.bias-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    transition: background 0.3s;
}

.bias-card:hover {
    background: rgba(181, 126, 220, 0.1);
}

.bias-img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--lavender);
}

.bias-info h4 {
    color: var(--text-primary);
    margin-bottom: 5px;
}

.bias-role {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.bias-tags {
    display: flex;
    gap: 8px;
}

.tag {
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Идеальный типаж */
.ideal-type {
    background: rgba(30, 30, 50, 0.6);
    border-radius: 15px;
    padding: 25px;
    margin-top: 30px;
    border: 1px solid rgba(255, 51, 51, 0.3);
}

.ideal-type h3 {
    color: var(--devil-red);
    margin-bottom: 15px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.type-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.type-tag {
    padding: 8px 16px;
    background: rgba(255, 51, 51, 0.1);
    border: 1px solid rgba(255, 51, 51, 0.3);
    border-radius: 20px;
    color: #ff6666;
    font-weight: 500;
    transition: all 0.3s;
}

.type-tag:hover {
    background: rgba(255, 51, 51, 0.2);
    transform: translateY(-2px);
}

/* Медиа сетка */
.media-filters {
    display: flex;
    gap: 10px;
}

.filter-btn {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn.active {
    background: rgba(181, 126, 220, 0.2);
    color: var(--lavender);
    border-color: var(--lavender);
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.media-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    height: 250px;
}

.media-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.media-card:hover img {
    transform: scale(1.1);
}

.media-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.media-card:hover .media-overlay {
    transform: translateY(0);
}

.media-overlay h4 {
    color: white;
    margin-bottom: 5px;
}

.media-overlay p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.rating {
    color: var(--angel-gold);
}

/* Музыкальные категории */
.music-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.category-card {
    background: rgba(30, 30, 50, 0.6);
    border-radius: 15px;
    padding: 25px;
}

.category-card h3 {
    color: var(--lavender);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.artist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
}

.artist-item {
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    text-align: center;
    font-size: 0.9rem;
    transition: all 0.3s;
    cursor: pointer;
}

.artist-item:hover {
    background: rgba(181, 126, 220, 0.2);
    transform: translateY(-2px);
}

/* Инспирации */
.inspirations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.inspiration-card {
    text-align: center;
}

.inspiration-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 15px;
    background-size: cover;
    background-position: center;
    border: 3px solid var(--lavender);
    position: relative;
}

.inspiration-card h4 {
    color: var(--lavender);
    margin-bottom: 5px;
}

.inspiration-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Футер */
.main-footer {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h4 {
    color: var(--lavender);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-link {
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
}

.social-link:hover {
    background: rgba(181, 126, 220, 0.2);
    color: var(--lavender);
}

.footer-text {
    color: var(--text-secondary);
    line-height: 1.6;
}

.vibe-indicator {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 15px;
}

.vibe-text {
    display: block;
    margin-bottom: 10px;
    color: var(--lavender);
    font-weight: 500;
}

.vibe-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.vibe-fill {
    height: 100%;
    width: 75%;
    background: linear-gradient(90deg, var(--lavender), var(--slate-blue));
    animation: vibePulse 2s infinite alternate;
}

@keyframes vibePulse {
    0% { width: 70%; }
    100% { width: 80%; }
}

.copyright {
    text-align: center;
    padding: 20px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Адаптивность */
@media (max-width: 1200px) {
    .main-container {
        grid-template-columns: 1fr;
    }
    
    .personal-sidebar {
        position: static;
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .main-nav {
        flex-wrap: wrap;
    }
    
    .nav-item {
        flex: 1;
        min-width: 140px;
        justify-content: center;
    }
    
    .groups-grid {
        grid-template-columns: 1fr;
    }
    
    .music-categories {
        grid-template-columns: 1fr;
    }
}