/**
 * ✨ Моя Наталка - Космический минимализм 2025
 * Дизайн: Glassmorphism + Space aesthetics
 */

/* === ШРИФТЫ MONTSERRAT === */
@font-face {
    font-family: 'Montserrat';
    src: url('/css/fonts/Montserrat-Regular.woff2') format('woff2'),
         url('/css/fonts/Montserrat-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('/css/fonts/Montserrat-Medium.woff2') format('woff2'),
         url('/css/fonts/Montserrat-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('/css/fonts/Montserrat-SemiBold.woff2') format('woff2'),
         url('/css/fonts/Montserrat-SemiBold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('/css/fonts/Montserrat-Bold.woff2') format('woff2'),
         url('/css/fonts/Montserrat-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* === ЦВЕТОВАЯ ПАЛИТРА 2025: КОСМИЧЕСКИЙ МИНИМАЛИЗМ === */
:root {
    /* Светлая тема - воздушная и чистая */
    --bg-primary: #FFFFFF;
    --bg-secondary: #F8F9FB;
    --bg-tertiary: #F0F2F5;
    --bg-elevated: rgba(255, 255, 255, 0.8);
    
    /* Текст */
    --text-primary: #0A0E27;
    --text-secondary: #4A5568;
    --text-tertiary: #718096;
    --text-muted: #A0AEC0;
    
    /* Акценты - космические */
    --primary: #6366F1;
    --primary-light: #818CF8;
    --primary-dark: #4F46E5;
    --primary-glow: rgba(99, 102, 241, 0.3);
    
    /* Космические градиенты */
    --gradient-cosmic: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-nebula: linear-gradient(135deg, #6366F1 0%, #8B5CF6 50%, #A855F7 100%);
    --gradient-space: linear-gradient(180deg, #0F172A 0%, #1E293B 50%, #334155 100%);
    
    /* Границы - ультратонкие */
    --border-primary: rgba(0, 0, 0, 0.06);
    --border-secondary: rgba(0, 0, 0, 0.04);
    
    /* Тени - мягкие и глубокие */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.02);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 32px rgba(99, 102, 241, 0.15);
    
    /* Blur для glassmorphism */
    --blur-light: blur(8px);
    --blur-medium: blur(16px);
    --blur-heavy: blur(24px);
    
    /* Spacing - больше воздуха */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;
    --space-16: 64px;
    --space-20: 80px;
    --space-24: 96px;
    
    /* Border radius - fluid */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;
    --radius-full: 9999px;
    
    /* Transitions - плавные */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Typography */
    --font-main: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --font-size-xs: 12px;
    --font-size-sm: 14px;
    --font-size-base: 16px;
    --font-size-lg: 18px;
    --font-size-xl: 20px;
    --font-size-2xl: 24px;
    --font-size-3xl: 30px;
    --font-size-4xl: 36px;
    --font-size-5xl: 48px;
    --font-size-6xl: 60px;
    
    /* Z-index layers */
    --z-background: -1;
    --z-base: 0;
    --z-elevated: 10;
    --z-sticky: 100;
    --z-header: 1000;
    --z-dropdown: 2000;
    --z-modal: 3000;
    --z-toast: 4000;
}

/* === СВЕТЛАЯ ТЕМА: РУЧНОЕ ПЕРЕКЛЮЧЕНИЕ === */
html.light-theme {
    color-scheme: light;
}

/* === ТЁМНАЯ ТЕМА: РУЧНОЕ ПЕРЕКЛЮЧЕНИЕ === */
html.dark-theme {
    color-scheme: dark;
    --bg-primary: #0A0E17;
    --bg-secondary: #13182B;
    --bg-tertiary: #1A2037;
    --bg-elevated: rgba(26, 32, 55, 0.8);
    
    --text-primary: #F1F5F9;
    --text-secondary: #CBD5E1;
    --text-tertiary: #94A3B8;
    --text-muted: #64748B;
    
    --primary: #818CF8;
    --primary-light: #A5B4FC;
    --primary-dark: #6366F1;
    --primary-glow: rgba(129, 140, 248, 0.4);
    
    --border-primary: rgba(255, 255, 255, 0.08);
    --border-secondary: rgba(255, 255, 255, 0.04);
    
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.6);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.7);
    --shadow-glow: 0 0 40px rgba(129, 140, 248, 0.25);
}

/* === ТЁМНАЯ ТЕМА: АВТОМАТИЧЕСКАЯ === */
@media (prefers-color-scheme: dark) {
    html:not(.light-theme) {
        /* Фон - глубокий космос */
        --bg-primary: #0A0E17;
        --bg-secondary: #13182B;
        --bg-tertiary: #1A2037;
        --bg-elevated: rgba(26, 32, 55, 0.8);
        
        /* Текст */
        --text-primary: #F1F5F9;
        --text-secondary: #CBD5E1;
        --text-tertiary: #94A3B8;
        --text-muted: #64748B;
        
        /* Акценты - яркие в темноте */
        --primary: #818CF8;
        --primary-light: #A5B4FC;
        --primary-dark: #6366F1;
        --primary-glow: rgba(129, 140, 248, 0.4);
        
        /* Границы */
        --border-primary: rgba(255, 255, 255, 0.08);
        --border-secondary: rgba(255, 255, 255, 0.04);
        
        /* Тени - более выраженные */
        --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.3);
        --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
        --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.5);
        --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.6);
        --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.7);
        --shadow-glow: 0 0 40px rgba(129, 140, 248, 0.25);
    }
}

/* === RESET & BASE === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-family: var(--font-main);
    font-size: var(--font-size-base);
    line-height: 1.7;
    color: var(--text-primary);
    background: var(--bg-primary);
    position: relative;
    overflow-x: hidden;
}

/* === КОСМИЧЕСКИЙ ФОН === */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: var(--z-background);
    pointer-events: none;
    background: 
        radial-gradient(ellipse at top, rgba(99, 102, 241, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(139, 92, 246, 0.04) 0%, transparent 50%);
}

/* Космический фон - тёмная тема (авто) */
@media (prefers-color-scheme: dark) {
    html:not(.light-theme) body::before {
        background: 
            radial-gradient(ellipse at top, rgba(129, 140, 248, 0.12) 0%, transparent 50%),
            radial-gradient(ellipse at bottom right, rgba(168, 85, 247, 0.08) 0%, transparent 50%),
            radial-gradient(circle at 20% 80%, rgba(99, 102, 241, 0.05) 0%, transparent 50%);
    }
}

/* Космический фон - тёмная тема (ручная) */
html.dark-theme body::before {
    background: 
        radial-gradient(ellipse at top, rgba(129, 140, 248, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(168, 85, 247, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(99, 102, 241, 0.05) 0%, transparent 50%);
}

/* === МЕРЦАЮЩИЕ ЗВЁЗДЫ === */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: var(--z-background);
    pointer-events: none;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--text-tertiary);
    border-radius: 50%;
    animation: twinkle 3s infinite ease-in-out;
    opacity: 0.3;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* === FLOATING BLUR NAVIGATION === */
.site-header {
    position: fixed;
    top: var(--space-4);
    left: 50%;
    transform: translateX(-50%);
    z-index: var(--z-header);
    width: calc(100% - var(--space-8));
    max-width: 1200px;
}

.header-content {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-2xl);
    padding: var(--space-3) var(--space-6);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
}

/* Тёмная тема для header (авто) */
@media (prefers-color-scheme: dark) {
    html:not(.light-theme) .header-content {
        background: rgba(26, 32, 55, 0.5);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
    }
}

/* Тёмная тема для header (ручная) */
html.dark-theme .header-content {
    background: rgba(26, 32, 55, 0.5);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.header-content:hover {
    box-shadow: var(--shadow-xl);
}

.logo-link {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: var(--font-size-lg);
    letter-spacing: -0.02em;
    transition: var(--transition-fast);
}

.logo-link:hover {
    color: var(--primary);
}

.logo-link:hover .header-logo-box {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
}

.logo-image {
    border-radius: var(--radius-md);
}

/* Новый стиль логотипа в header */
.header-logo-box {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    transition: all 0.3s ease;
}

.header-logo-image {
    width: 24px;
    height: 24px;
}

.header-logo-text {
    font-weight: 700;
    font-size: var(--font-size-lg);
    letter-spacing: -0.02em;
}

.desktop-nav {
    display: flex;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: var(--space-2);
    margin: 0;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: var(--font-size-sm);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.dropdown-arrow {
    transition: transform var(--transition-fast);
}

.nav-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.main-nav a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60%;
    height: 2px;
    background: var(--gradient-nebula);
    border-radius: var(--radius-full);
    transition: transform var(--transition-fast);
}

.main-nav a:hover {
    color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

.main-nav a:hover::before {
    transform: translateX(-50%) scaleX(1);
}

/* === DROPDOWN MENU === */
.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    min-width: 220px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--radius-xl);
    padding: var(--space-2);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(99, 102, 241, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: calc(var(--z-header) + 10);
    isolation: isolate;
}

/* Тёмная тема для dropdown (авто) */
@media (prefers-color-scheme: dark) {
    html:not(.light-theme) .dropdown-menu {
        background: rgba(26, 32, 55, 0.7);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }
}

/* Тёмная тема для dropdown (ручная) */
html.dark-theme .dropdown-menu {
    background: rgba(26, 32, 55, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* Overlay для blur страницы */
.dropdown-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: calc(var(--z-header) - 1);
    pointer-events: none;
}

.dropdown-overlay.active {
    opacity: 1;
    visibility: visible;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-link {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    font-size: var(--font-size-sm);
    position: relative;
    z-index: 1;
}

.dropdown-link:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
}

.dropdown-link.active {
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary);
    font-weight: 600;
}

.dropdown-link img {
    border-radius: var(--radius-sm);
}

/* Active состояние в навигации */
.main-nav li.active > a {
    color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
}

.main-nav li.active > a::before {
    transform: translateX(-50%) scaleX(1);
}

/* Мобильное dropdown (по клику) */
@media (max-width: 768px) {
    .dropdown-menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }
}

/* === HEADER ACTIONS === */
.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    position: relative;
}

.theme-toggle-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    color: var(--text-secondary);
}

.theme-toggle-btn:hover {
    transform: scale(1.05);
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--primary);
    color: var(--primary);
}

.profile-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.profile-btn:hover {
    transform: scale(1.05);
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--primary);
}

.profile-icon {
    font-size: 20px;
}

/* Аватарка с инициалами */
.profile-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    background-size: 200% 200%;
    transition: all 0.3s ease;
}

.profile-btn:hover .profile-avatar {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

/* Анимация переливающегося градиента */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.hamburger-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    cursor: pointer;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 0;
}

.hamburger-btn span {
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.hamburger-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-btn.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* === MOBILE MENU === */
.mobile-menu {
    position: fixed;
    top: 80px;
    right: var(--space-4);
    width: auto;
    min-width: 200px;
    max-width: 280px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-xl);
    padding: var(--space-3);
    box-shadow: var(--shadow-xl);
    z-index: calc(var(--z-header) + 5);
    transform: translateX(calc(100% + var(--space-4)));
    transition: transform var(--transition-base);
}

/* Тёмная тема для mobile menu (авто) */
@media (prefers-color-scheme: dark) {
    html:not(.light-theme) .mobile-menu {
        background: rgba(26, 32, 55, 0.5);
    }
}

/* Тёмная тема для mobile menu (ручная) */
html.dark-theme .mobile-menu {
    background: rgba(26, 32, 55, 0.5);
}

.mobile-menu.active {
    transform: translateX(0);
}

/* Мобильное профильное меню - новый дизайн */
.mobile-profile-content {
    padding: var(--space-4);
}

.mobile-profile-header {
    margin-bottom: var(--space-4);
}

.mobile-profile-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

/* Главные карточки - grid */
.mobile-profile-primary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

.mobile-profile-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-4);
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.mobile-card-charts {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 193, 7, 0.15) 100%);
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.mobile-card-create {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%);
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.mobile-card-icon {
    font-size: 36px;
    margin-bottom: var(--space-2);
}

.mobile-card-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
    white-space: nowrap;
}

.mobile-card-hint {
    font-size: 11px;
    color: var(--text-tertiary);
    white-space: nowrap;
}

/* Дополнительные - grid */
.mobile-profile-secondary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
}

.mobile-profile-compact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-3);
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.mobile-profile-compact span:first-child {
    font-size: 24px;
}

.mobile-profile-compact:active {
    transform: scale(0.95);
}

/* Футер мобильного меню */
.mobile-profile-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-3);
    background: rgba(0, 0, 0, 0.03);
    border-radius: 10px;
}

[data-theme="dark"] .mobile-profile-footer {
    background: rgba(255, 255, 255, 0.03);
}

.mobile-profile-footer-link {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2);
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.mobile-profile-footer-link span:first-child {
    font-size: 18px;
}

.mobile-profile-footer-link:active {
    transform: scale(0.95);
}

.mobile-profile-logout {
    color: #ff3b30;
}

.mobile-profile-divider {
    width: 1px;
    height: 24px;
    background: rgba(99, 102, 241, 0.15);
    margin: 0 var(--space-2);
}

.mobile-profile-menu.active {
    transform: translateX(0);
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.mobile-nav-item {
    width: 100%;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
    font-weight: 500;
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    font-family: var(--font-main);
    font-size: var(--font-size-base);
}

.mobile-nav-link:hover {
    background: rgba(99, 102, 241, 0.05);
    color: var(--primary);
}

.mobile-nav-link.active {
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary);
    font-weight: 600;
}

.dropdown-arrow-mobile {
    transition: transform var(--transition-fast);
}

.mobile-dropdown.open .dropdown-arrow-mobile {
    transform: rotate(180deg);
}

.mobile-dropdown-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-base);
}

.mobile-dropdown.open .mobile-dropdown-content {
    max-height: 500px;
}

.mobile-dropdown-link {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    padding-left: var(--space-8);
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    font-size: var(--font-size-sm);
}

.mobile-dropdown-link:hover {
    background: rgba(99, 102, 241, 0.05);
    color: var(--primary);
}

.mobile-dropdown-link.active {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    font-weight: 600;
}

.mobile-menu-bottom-text {
    position: fixed;
    bottom: var(--space-6);
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    text-align: center;
    font-size: var(--font-size-sm);
    /* color: var(--text-tertiary); */
    color: var(--text-primary);
    font-weight: 500;
    z-index: calc(var(--z-header) + 6);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    white-space: nowrap;
    padding: var(--space-2) var(--space-4);
    background: var(--bg-elevated);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: var(--radius-full);
    border: 1px solid var(--border-primary);
}

.mobile-menu.active ~ .mobile-menu-bottom-text,
.mobile-menu-bottom-text.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.mobile-social-links {
    position: fixed;
    bottom: calc(var(--space-6) + 50px);
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    align-items: center;
    z-index: calc(var(--z-header) + 6);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.mobile-menu.active ~ .mobile-social-links,
.mobile-social-links.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.mobile-social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    /* opacity: 0.7; */
    background: var(--bg-elevated);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--border-primary);
    border-radius: 50%;
    width: 44px;
    height: 44px;
}

.mobile-social-links a:hover {
    opacity: 1;
    transform: scale(1.1);
    border-color: var(--primary);
}

.mobile-social-links img {
    border-radius: var(--radius-sm);
}

/* === CHART CARD === */
.chart-card {
    position: relative;
}

.chart-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.chart-card:active {
    transform: translateY(-2px);
}

/* === PROFILE MENU === */
.profile-menu {
    position: fixed;
    top: 80px;
    right: 16px;
    width: 300px;
    
    /* Сильный блюр */
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 16px;
    padding: var(--space-3);
    
    box-shadow: 
        0 24px 80px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(99, 102, 241, 0.08);
    
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: calc(var(--z-header) + 10);
    isolation: isolate;
}

/* Desktop - выравнивание по header */
@media (min-width: 1216px) {
    .profile-menu {
        top: 80px;
        right: calc((100vw - 1200px) / 2 + 16px);
    }
}

@media (min-width: 769px) and (max-width: 1215px) {
    .profile-menu {
        top: 80px;
        right: calc(var(--space-4) + 16px);
    }
}

/* Скрываем десктопное меню на мобилке */
@media (max-width: 768px) {
    .profile-menu {
        display: none;
    }
}

/* Тёмная тема */
html:not(.light-theme) .profile-menu {
    background: rgba(26, 32, 55, 0.85);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
}

html.dark-theme .profile-menu {
    background: rgba(26, 32, 55, 0.85);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
}

.profile-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Главные карточки - grid 2x1 */
.profile-menu-primary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2);
    margin-bottom: var(--space-3);
    width: 100%;
}

.profile-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-3);
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.profile-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.profile-card:hover::before {
    opacity: 1;
}

.profile-card-charts {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 193, 7, 0.1) 100%);
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.profile-card-create {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.profile-card-icon {
    font-size: 32px;
    margin-bottom: var(--space-2);
    transition: transform 0.3s ease;
}

.profile-card:hover .profile-card-icon {
    transform: scale(1.15) rotate(-5deg);
}

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

.profile-card-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
    white-space: nowrap;
}

.profile-card-hint {
    font-size: 10px;
    color: var(--text-tertiary);
    opacity: 0.7;
    white-space: nowrap;
}

/* Дополнительные - горизонтально */
.profile-menu-secondary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2);
    margin-bottom: var(--space-3);
    width: 100%;
}

.profile-compact-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-1);
    padding: var(--space-2);
    background: rgba(99, 102, 241, 0.05);
    border: 1px solid rgba(99, 102, 241, 0.1);
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.profile-compact-link span:first-child {
    font-size: 16px;
}

.profile-compact-link:hover {
    background: rgba(99, 102, 241, 0.12);
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-2px);
}

/* Футер меню - горизонтально */
.profile-menu-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-2);
    background: rgba(0, 0, 0, 0.02);
    border-radius: 10px;
    width: 100%;
}

[data-theme="dark"] .profile-menu-footer {
    background: rgba(255, 255, 255, 0.02);
}

.profile-footer-link {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2);
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.profile-footer-link span:first-child {
    font-size: 16px;
}

.profile-footer-link:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
}

.profile-logout {
    color: #ff3b30;
}

.profile-logout:hover {
    background: rgba(255, 59, 48, 0.1);
    color: #ff3b30;
}

.profile-footer-divider {
    width: 1px;
    height: 20px;
    background: rgba(99, 102, 241, 0.15);
    margin: 0 var(--space-1);
}

/* === AUTH MODAL === */
.auth-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: calc(100% - var(--space-8));
    max-width: 440px;
    z-index: var(--z-modal);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.auth-modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.auth-modal-content {
    background: var(--bg-primary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    box-shadow: var(--shadow-xl);
    position: relative;
}

.auth-modal-close {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    width: 32px;
    height: 32px;
    border: none;
    background: var(--bg-tertiary);
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: all var(--transition-fast);
    color: var(--text-secondary);
}

.auth-modal-close:hover {
    background: rgba(255, 0, 0, 0.1);
    color: #ff0000;
}

.auth-modal h3 {
    margin-bottom: var(--space-2);
}

.auth-options {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.auth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-5);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-xl);
    background: var(--bg-elevated);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: var(--font-size-base);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.auth-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.auth-btn img {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.auth-btn-telegram {
    border-color: rgba(0, 136, 204, 0.3);
}

.auth-btn-telegram:hover {
    border-color: #0088cc;
    background: rgba(0, 136, 204, 0.05);
}

.auth-btn-vk {
    border-color: rgba(0, 119, 255, 0.3);
}

.auth-btn-vk:hover {
    border-color: #0077ff;
    background: rgba(0, 119, 255, 0.05);
}

.auth-social-buttons {
    display: flex;
    gap: var(--space-3);
    justify-content: center;
}

.auth-btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-3);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-xl);
    background: var(--bg-elevated);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    cursor: pointer;
    transition: all var(--transition-fast);
    width: 56px;
    height: 56px;
}

.auth-btn-social:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.auth-btn-social img {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.auth-btn-social.auth-btn-telegram {
    border-color: rgba(0, 136, 204, 0.3);
}

.auth-btn-social.auth-btn-telegram:hover {
    border-color: #0088cc;
    background: rgba(0, 136, 204, 0.1);
}

.auth-btn-social.auth-btn-vk {
    border-color: rgba(0, 119, 255, 0.3);
}

.auth-btn-social.auth-btn-vk:hover {
    border-color: #0077ff;
    background: rgba(0, 119, 255, 0.1);
}

.auth-btn-primary {
    background: var(--gradient-nebula);
    color: white;
    border: none;
}

.auth-divider {
    text-align: center;
    position: relative;
    margin: var(--space-2) 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: var(--border-secondary);
}

.auth-divider::before {
    left: 0;
}

.auth-divider::after {
    right: 0;
}

.auth-divider span {
    background: var(--bg-primary);
    padding: 0 var(--space-3);
    color: var(--text-tertiary);
    font-size: var(--font-size-sm);
}

.auth-form-compact {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.auth-input {
    padding: var(--space-3) var(--space-4);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    background: var(--bg-secondary);
    font-family: var(--font-main);
    font-size: var(--font-size-base);
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.auth-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* === OVERLAY === */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: calc(var(--z-header) - 1);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all var(--transition-base);
}

.overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Блюр для контента (но не для header) */
.overlay.active ~ .main-content,
.overlay.active ~ .section-nav-wrapper {
    filter: blur(4px);
    transition: filter var(--transition-base);
}

/* === MOBILE RESPONSIVE === */
.mobile-only {
    display: none;
}

@media (max-width: 768px) {
    .site-header {
        top: var(--space-3);
        width: calc(100% - var(--space-6));
    }
    
    .header-content {
        padding: var(--space-2) var(--space-4);
    }
    
    .logo-link {
        font-size: var(--font-size-base);
    }
    
    .logo-image {
        width: 28px;
        height: 28px;
    }
    
    .desktop-nav {
        display: none;
    }
    
    .mobile-only {
        display: flex;
    }
    
    .profile-menu {
        right: var(--space-3);
        left: var(--space-3);
        width: auto;
    }
}

/* === CONTAINER === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-6);
    width: 100%;
}

@media (max-width: 768px) {
    .container {
        padding: 0 var(--space-4);
    }
}

/* === SECTION NAVIGATION (под хедером) === */
.section-nav-wrapper {
    position: sticky;
    top: 80px;
    z-index: calc(var(--z-header) - 3);
    padding: var(--space-4) 0;
    margin-bottom: var(--space-8);
}

.section-nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-6);
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.section-nav::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.section-nav-list {
    display: flex;
    gap: var(--space-2);
    list-style: none;
    margin: 0;
    padding: 0;
    min-width: min-content;
}

.section-nav-link {
    display: inline-block;
    padding: var(--space-2) var(--space-4);
    background: var(--bg-elevated);
    backdrop-filter: var(--blur-light);
    -webkit-backdrop-filter: var(--blur-light);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: var(--font-size-sm);
    font-weight: 500;
    white-space: nowrap;
    transition: all var(--transition-fast);
}

.section-nav-link:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--primary);
    color: var(--primary);
}

.section-nav-link.active {
    background: var(--gradient-nebula);
    border-color: var(--primary);
    color: white;
}

.section-nav-planet {
    display: flex !important;
    align-items: center;
    gap: var(--space-2);
}

.section-nav-planet img {
    border-radius: var(--radius-sm);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

@media (max-width: 768px) {
    .section-nav-wrapper {
        top: 70px;
    }
    
    .section-nav {
        padding: 0 var(--space-4);
    }
}

/* === TABS NAVIGATION (для интерпретаций и домов) === */
.tabs-navigation {
    -webkit-overflow-scrolling: touch;
    max-width: 1200px;
    margin: 0 auto;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    scroll-behavior: smooth;
}

.tabs-navigation::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.tabs-navigation > div {
    flex-wrap: nowrap;
    padding: var(--space-2) var(--space-4);
}

.tabs-scrollable {
    cursor: grab;
    user-select: none;
}

.tabs-scrollable.grabbing {
    cursor: grabbing;
}

.tabs-scrollable.grabbing * {
    cursor: grabbing !important;
}

/* Стрелки навигации для табов */
.tabs-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: var(--bg-elevated);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-primary);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all var(--transition-fast);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tabs-nav-arrow:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-50%) scale(1.1);
}

.tabs-nav-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

.tabs-nav-arrow-left {
    left: -20px;
}

.tabs-nav-arrow-right {
    right: -20px;
}

/* На мобилке убираем центрирование и скрываем стрелки */
@media (max-width: 768px) {
    .tabs-navigation {
        max-width: 100%;
    }
    
    .tabs-navigation > div {
        justify-content: flex-start !important;
    }
    
    .tabs-nav-arrow {
        display: none !important;
    }
}

/* === SECTIONS === */
.section {
    padding: var(--space-20) 0;
    scroll-margin-top: 160px; /* Отступ при скролле */
}

@media (max-width: 768px) {
    .section {
        padding: var(--space-12) 0;
        scroll-margin-top: 140px;
    }
}

.interpretation-section {
    scroll-margin-top: 160px; /* Отступ при скролле */
}

@media (max-width: 768px) {
    .interpretation-section {
        scroll-margin-top: 140px;
    }
}

/* === MAIN CONTENT === */
/* .main-content {
    min-height: 100vh;
} */

/* Отступ сверху для контента (чтобы не прятался под хедером) */
.cosmic-hero {
    padding-top: 120px;
}

/* === ТИПОГРАФИКА 2025 === */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.2;
    color: var(--text-primary);
}

h1 {
    font-size: clamp(var(--font-size-4xl), 5vw, var(--font-size-6xl));
    margin-bottom: var(--space-6);
}

h2 {
    font-size: clamp(var(--font-size-3xl), 4vw, var(--font-size-4xl));
    margin-bottom: var(--space-5);
}

h3 {
    font-size: clamp(var(--font-size-xl), 3vw, var(--font-size-2xl));
    margin-bottom: var(--space-4);
}

h4 {
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-3);
}

p {
    margin-bottom: var(--space-4);
    color: var(--text-secondary);
    line-height: 1.8;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-light);
}

/* === КАРТОЧКИ - GLASSMORPHISM === */
.card {
    background: var(--bg-elevated);
    backdrop-filter: var(--blur-light);
    -webkit-backdrop-filter: var(--blur-light);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-nebula);
    opacity: 0;
    transition: opacity var(--transition-base);
    z-index: -1;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(99, 102, 241, 0.2);
}

.card:hover::before {
    opacity: 0.02;
}

.card-icon {
    font-size: var(--font-size-3xl);
    margin-bottom: var(--space-3);
    display: inline-block;
}

.card h3 {
    font-size: var(--font-size-xl);
    margin-bottom: var(--space-2);
    color: var(--text-primary);
}

.card p {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    margin: 0;
}

.card-meta {
    font-size: var(--font-size-xs);
    color: var(--text-tertiary);
    margin-top: var(--space-2);
}

/* === GRID SYSTEM === */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-6);
}

@media (max-width: 768px) {
    .grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }
}

/* === HERO SECTION === */
.cosmic-hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: var(--space-20) 0;
}

.hero-content {
    max-width: 800px;
    z-index: var(--z-elevated);
    animation: fadeInUp 0.8s ease-out;
}

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

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-8);
    background: var(--gradient-nebula);
    color: white;
    font-weight: 600;
    font-size: var(--font-size-lg);
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-glow);
    text-decoration: none;
}

.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow), var(--shadow-lg);
    color: white;
}

/* === КНОПКИ === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    font-family: var(--font-main);
    font-size: var(--font-size-base);
    font-weight: 500;
    border-radius: var(--radius-lg);
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient-nebula);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: white;
}

.btn-secondary {
    background: var(--bg-elevated);
    color: var(--text-primary);
    border: 1px solid var(--border-primary);
    backdrop-filter: var(--blur-light);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-large {
    padding: var(--space-4) var(--space-10);
    font-size: var(--font-size-lg);
    border-radius: var(--radius-xl);
}

/* === BADGES === */
.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-1) var(--space-3);
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    font-size: var(--font-size-xs);
    font-weight: 500;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-primary);
    transition: all var(--transition-fast);
}

.badge:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

/* === BREADCRUMBS === */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-8);
    padding-top: var(--space-8);
    padding-bottom: var(--space-6);
    font-size: var(--font-size-sm);
    color: var(--text-tertiary);
}

.breadcrumbs a {
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.breadcrumbs a:hover {
    color: var(--primary);
}

/* На страницах с section-nav добавляем больше отступа */
.section-nav-wrapper + .container .breadcrumbs,
.section-nav-wrapper + * .breadcrumbs {
    padding-top: var(--space-12);
}

@media (max-width: 768px) {
    .breadcrumbs {
        padding-top: 90px; /* Под хедером на мобилке */
    }
    
    .section-nav-wrapper + .container .breadcrumbs,
    .section-nav-wrapper + * .breadcrumbs {
        padding-top: var(--space-8); /* Больше отступа на мобилке с section-nav */
    }
}

/* === ARTICLE === */
.article {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--space-12) 0;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-bottom: var(--space-8);
}

.article-content {
    font-size: var(--font-size-lg);
    line-height: 1.9;
}

.article-content p {
    margin-bottom: var(--space-6);
}

/* === INFO BOXES === */
.info-box {
    padding: var(--space-6);
    background: var(--bg-elevated);
    backdrop-filter: var(--blur-light);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    margin: var(--space-6) 0;
}

.info-box-accent {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
    border-color: rgba(99, 102, 241, 0.2);
}

/* === LINK LISTS === */
.link-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin: var(--space-4) 0;
}

.link-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-2) var(--space-4);
    background: var(--bg-elevated);
    backdrop-filter: var(--blur-light);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    transition: all var(--transition-fast);
    text-decoration: none;
}

.link-badge:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: var(--shadow-md);
    background: rgba(99, 102, 241, 0.05);
}

.keyword {
    padding: var(--space-2) var(--space-3);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-md);
    color: var(--text-tertiary);
    font-size: var(--font-size-xs);
}

/* === FOOTER === */
.site-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-primary);
    padding: var(--space-16) 0 var(--space-8);
    margin-top: var(--space-24);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-6);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-8);
}

.footer-left {
    flex: 1;
    min-width: 200px;
}

.footer-logo {
    font-weight: 600;
    font-size: var(--font-size-lg);
    color: var(--text-primary);
}

/* Новый стиль логотипа в footer */
.footer-logo-box {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    transition: all 0.3s ease;
}

.footer-logo-box:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
}

.footer-logo-image {
    width: 28px;
    height: 28px;
}

.footer-tagline {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    margin: 0;
}

.footer-links {
    display: flex;
    gap: var(--space-6);
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: var(--font-size-sm);
    font-weight: 500;
    transition: color var(--transition-fast);
    position: relative;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width var(--transition-fast);
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-links a:hover::after {
    width: 100%;
}

.footer-bottom {
    max-width: 1200px;
    margin: var(--space-8) auto 0;
    padding: var(--space-6) var(--space-6) 0;
    border-top: 1px solid var(--border-secondary);
    text-align: center;
}

.footer-bottom p {
    color: var(--text-tertiary);
    font-size: var(--font-size-xs);
    margin: 0;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-left {
        width: 100%;
    }
    
    .footer-links {
        justify-content: center;
    }
}

/* === LOADER === */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: var(--blur-heavy);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: var(--z-modal);
}

.loader-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid var(--border-primary);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* === ANIMATIONS === */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* === UTILITIES === */
.text-center { text-align: center; }
.text-gradient {
    background: var(--gradient-nebula);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* === SECTION INTRO === */
.section-intro {
    text-align: center;
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto var(--space-10);
}

/* === SMOOTH SCROLLING === */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
    
    * {
        transition-property: transform, opacity, filter;
    }
}

/* === ACCESSIBILITY === */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus visible для клавиатурной навигации */
*:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* === SIDEBAR NAVIGATION (для страниц интерпретации) === */
.page-with-sidebar {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: var(--space-10);
    align-items: start;
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--space-6) var(--space-6) var(--space-12);
    padding-top: 0; /* Убираем верхний padding т.к. есть section-nav */
}

.sidebar {
    position: sticky;
    top: 160px;
    background: var(--bg-elevated);
    backdrop-filter: var(--blur-light);
    -webkit-backdrop-filter: var(--blur-light);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    box-shadow: var(--shadow-sm);
    max-height: calc(100vh - 180px);
    overflow-y: auto;
}

.sidebar-title {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-4);
}

.sidebar-nav {
    list-style: none;
}

.sidebar-nav li {
    margin-bottom: var(--space-1);
}

.sidebar-nav a {
    display: block;
    padding: var(--space-2) var(--space-3);
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    border-left: 2px solid transparent;
}

.sidebar-nav a:hover {
    background: rgba(99, 102, 241, 0.05);
    color: var(--primary);
    border-left-color: var(--primary);
    padding-left: var(--space-4);
}

.sidebar-nav a.active {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    font-weight: 500;
    border-left-color: var(--primary);
}

/* Mobile: Bottom sheet вместо sidebar */
@media (max-width: 1024px) {
    .page-with-sidebar {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .sidebar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        top: auto;
        max-height: 60vh;
        border-radius: var(--radius-xl) var(--radius-xl) 0 0;
        transform: translateY(calc(100% - 60px));
        transition: transform var(--transition-base);
        z-index: var(--z-sticky);
    }
    
    .sidebar.open {
        transform: translateY(0);
    }
    
    .sidebar::before {
        content: '';
        position: absolute;
        top: 12px;
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 4px;
        background: var(--text-tertiary);
        border-radius: var(--radius-full);
        opacity: 0.3;
    }
    
    .sidebar-title {
        cursor: pointer;
        user-select: none;
    }
}

/* === INTERPRETATION PAGE === */
.interpretation-header {
    text-align: center;
    margin-bottom: var(--space-10);
    padding: var(--space-8) 0;
}

.interpretation-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-5);
}

.interpretation-icons img {
    filter: drop-shadow(0 4px 12px rgba(99, 102, 241, 0.2));
    transition: transform var(--transition-fast);
}

.interpretation-icons img:hover {
    transform: scale(1.1);
}

.interpretation-section {
    margin-bottom: var(--space-10);
    padding: var(--space-8);
    background: var(--bg-elevated);
    backdrop-filter: var(--blur-light);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
}

.interpretation-section h3 {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
}

.traits-positive {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.05) 0%, rgba(76, 175, 80, 0.02) 100%);
    border-left: 3px solid #4caf50;
}

.traits-negative {
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.05) 0%, rgba(255, 152, 0, 0.02) 100%);
    border-left: 3px solid #ff9800;
}

.traits-recommendations {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(99, 102, 241, 0.02) 100%);
    border-left: 3px solid var(--primary);
}

/* === FACT BOXES (для страницы знаков зодиака) === */
.fact-box {
    padding: var(--space-6);
    background: var(--bg-elevated);
    backdrop-filter: var(--blur-light);
    -webkit-backdrop-filter: var(--blur-light);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.fact-box:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.fact-box h3 {
    margin-bottom: var(--space-3);
    font-size: var(--font-size-xl);
}

.fact-box p {
    margin: 0;
    color: var(--text-secondary);
}

/* === CABINET - СОВРЕМЕННЫЙ ДИЗАЙН === */
.cabinet-hero {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border-radius: 20px;
    padding: var(--space-8);
    margin-bottom: var(--space-8);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(99, 102, 241, 0.15);
}

.cabinet-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.cabinet-hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: var(--space-5);
}

.cabinet-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}

.cabinet-hero-text h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: var(--space-1);
    color: var(--text-primary);
}

.cabinet-hero-text p {
    font-size: 15px;
    color: var(--text-secondary);
    opacity: 0.8;
}

.cabinet-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-4);
    margin-bottom: var(--space-8);
}

.cabinet-action-card {
    background: var(--bg-elevated);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--border-primary);
    border-radius: 16px;
    padding: var(--space-6);
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
    position: relative;
    overflow: hidden;
}

.cabinet-action-card::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.cabinet-action-card-primary::before {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(139, 92, 246, 0.08) 100%);
}

.cabinet-action-card-secondary::before {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.08) 0%, rgba(251, 113, 133, 0.08) 100%);
}

.cabinet-action-card-tertiary::before {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.08) 0%, rgba(192, 132, 252, 0.08) 100%);
}

.cabinet-action-card:hover::before {
    opacity: 1;
}

.cabinet-action-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(99, 102, 241, 0.3);
}

.cabinet-action-card-content {
    position: relative;
    z-index: 1;
}

.cabinet-action-icon {
    font-size: 48px;
    line-height: 1;
    margin-bottom: var(--space-3);
    display: block;
}

.cabinet-action-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: var(--space-2);
    color: var(--text-primary);
}

.cabinet-action-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-4);
}

.cabinet-action-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    transition: gap 0.2s ease;
}

.cabinet-action-card:hover .cabinet-action-link {
    gap: var(--space-3);
}

.cabinet-action-badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    margin-top: var(--space-2);
}

.cabinet-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: var(--space-4);
    margin-bottom: var(--space-8);
}

.cabinet-stat-card {
    background: var(--bg-elevated);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--border-primary);
    border-radius: 16px;
    padding: var(--space-5);
    text-align: center;
    transition: all 0.3s ease;
}

.cabinet-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.cabinet-stat-icon {
    font-size: 36px;
    margin-bottom: var(--space-2);
    display: block;
}

.cabinet-stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: var(--space-1);
    line-height: 1;
}

.cabinet-stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.cabinet-charts-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-6);
    flex-wrap: wrap;
    gap: var(--space-4);
}

.cabinet-charts-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
}

.cabinet-charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--space-5);
}

.cabinet-chart-card {
    background: var(--bg-elevated);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--border-primary);
    border-radius: 16px;
    padding: var(--space-6);
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
    position: relative;
    overflow: hidden;
}

.cabinet-chart-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cabinet-chart-card:hover::before {
    opacity: 1;
}

.cabinet-chart-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(99, 102, 241, 0.3);
}

.cabinet-chart-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-4);
}

.cabinet-chart-icon {
    font-size: 40px;
    line-height: 1;
}

.cabinet-chart-badge {
    padding: 6px 14px;
    background: var(--primary);
    color: white;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.cabinet-chart-name {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: var(--space-4);
    color: var(--text-primary);
}

.cabinet-chart-planets {
    background: rgba(99, 102, 241, 0.05);
    padding: var(--space-4);
    border-radius: 12px;
    margin-bottom: var(--space-4);
}

.cabinet-chart-planets-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-3);
    text-align: center;
}

.cabinet-planet-label {
    font-size: 11px;
    color: var(--text-tertiary);
    margin-bottom: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cabinet-planet-icon {
    font-size: 24px;
    margin-bottom: 4px;
    display: block;
}

.cabinet-planet-value {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 600;
}

.cabinet-chart-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.cabinet-chart-info-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 13px;
    color: var(--text-secondary);
}

.cabinet-chart-info-item-icon {
    font-size: 16px;
    flex-shrink: 0;
}

.cabinet-chart-meta {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 12px;
    color: var(--text-tertiary);
    margin-top: var(--space-2);
    padding-top: var(--space-2);
    border-top: 1px solid var(--border-primary);
}

.cabinet-empty-state {
    background: var(--bg-elevated);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--border-primary);
    border-radius: 20px;
    padding: var(--space-12);
    text-align: center;
    box-shadow: var(--shadow-md);
}

.cabinet-empty-icon {
    font-size: 64px;
    margin-bottom: var(--space-4);
    opacity: 0.5;
}

.cabinet-empty-title {
    font-size: 24px;
    margin-bottom: var(--space-2);
    color: var(--text-primary);
    font-weight: 700;
}

.cabinet-empty-desc {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: var(--space-6);
}

/* Breadcrumbs контейнер для кабинета */
.cabinet-breadcrumbs-container {
    padding-top: calc(80px + var(--space-6));
}

/* === CHART PAGE === */
.chart-page-header {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border-radius: 20px;
    padding: var(--space-6);
    margin-bottom: var(--space-6);
    text-align: center;
    border: 1px solid rgba(99, 102, 241, 0.15);
}

.chart-page-name {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: var(--space-3);
    color: var(--text-primary);
}

.chart-page-meta {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
    font-size: 14px;
    color: var(--text-secondary);
}

.chart-visualization-container {
    padding: 0;
    margin-bottom: var(--space-6);
}

.chart-style-switcher {
    display: flex;
    gap: var(--space-2);
    justify-content: center;
    margin-bottom: var(--space-5);
}

.chart-style-btn {
    padding: var(--space-3) var(--space-5);
    border: 2px solid var(--border-primary);
    background: transparent;
    color: var(--text-secondary);
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.chart-style-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.chart-canvas-wrapper {
    position: relative;
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
}

#natal-chart-canvas {
    width: 600px;
    height: 600px;
    max-width: 100%;
    border-radius: 16px;
    display: block;
    margin: 0 auto;
    cursor: pointer;
    transition: transform 0.2s ease;
}

#natal-chart-canvas:active {
    transform: scale(0.98);
}

/* Fullscreen модалка для карты */
.chart-fullscreen-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px) saturate(120%);
    -webkit-backdrop-filter: blur(20px) saturate(120%);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.chart-fullscreen-modal.active {
    display: flex;
    opacity: 1;
}

.chart-fullscreen-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-6);
    overflow: hidden;
}

.chart-fullscreen-canvas-container {
    position: relative;
    touch-action: none;
    transform-origin: center center;
    transition: transform 0.1s ease-out;
}

.chart-fullscreen-close {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    cursor: pointer;
    z-index: 10001;
    transition: all 0.2s ease;
}

.chart-fullscreen-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.chart-fullscreen-close:active {
    transform: scale(0.95);
}

.chart-fullscreen-hint {
    position: absolute;
    bottom: var(--space-4);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: var(--space-2) var(--space-4);
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    text-align: center;
    z-index: 10001;
    pointer-events: none;
}

#chart-fullscreen-canvas {
    border-radius: 16px;
}

.chart-tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: var(--space-3) var(--space-4);
    border-radius: 10px;
    font-size: 13px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    max-width: 250px;
    white-space: nowrap;
}

.chart-key-points {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

.chart-key-point {
    background: var(--bg-elevated);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    padding: var(--space-4);
}

.chart-key-point-label {
    font-size: 11px;
    color: var(--text-tertiary);
    margin-bottom: var(--space-2);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.chart-key-point-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-1);
}

.chart-key-point-sign {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Секция кабинета */
.cabinet-section {
    padding-top: var(--space-6);
}

/* Неавторизованный пользователь */
.cabinet-unauthorized {
    max-width: 700px;
    text-align: center;
    margin: 0 auto;
}

.cabinet-unauthorized-icon {
    font-size: 64px;
    margin-bottom: var(--space-4);
}

.cabinet-unauthorized h1 {
    margin-bottom: var(--space-4);
}

.cabinet-unauthorized p {
    font-size: 17px;
    color: var(--text-secondary);
    margin-bottom: var(--space-8);
}

/* Аватар с динамическим градиентом */
.cabinet-avatar-gradient {
    background: linear-gradient(135deg, var(--avatar-hue1, hsl(200, 70%, 60%)) 0%, var(--avatar-hue2, hsl(260, 70%, 50%)) 100%);
}

/* Карточки действий с курсором */
.cabinet-action-card[onclick] {
    cursor: pointer;
}

/* === DASHBOARD - МИНИМАЛИСТИЧНЫЙ СТИЛЬ === */
.dashboard {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: var(--space-6);
    margin-bottom: var(--space-8);
}

.dashboard-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.dashboard-main {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.dashboard-widget {
    background: var(--bg-elevated);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--border-primary);
    border-radius: 16px;
    padding: var(--space-6);
    transition: all 0.3s ease;
}

.dashboard-widget:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(99, 102, 241, 0.2);
}

.dashboard-widget-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-4);
}

.dashboard-widget-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dashboard-widget-icon {
    font-size: 20px;
    opacity: 0.6;
}

.dashboard-widget-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.dashboard-stat-value-small {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.dashboard-stat {
    display: flex;
    align-items: baseline;
    gap: var(--space-2);
}

.dashboard-stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.dashboard-stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.dashboard-stat-change {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-left: auto;
}

.dashboard-user-card {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(139, 92, 246, 0.08) 100%);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 16px;
    padding: var(--space-6);
    text-align: center;
}

.dashboard-user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    margin: 0 auto var(--space-4);
}

.dashboard-user-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-1);
}

.dashboard-user-email {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: var(--space-4);
}

.dashboard-user-meta {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    padding-top: var(--space-4);
    border-top: 1px solid var(--border-primary);
}

.dashboard-user-meta-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-secondary);
}

.dashboard-user-meta-label {
    opacity: 0.7;
}

.dashboard-user-meta-value {
    font-weight: 600;
    color: var(--text-primary);
}

.dashboard-quick-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-3);
}

.dashboard-quick-action {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4);
    background: var(--bg-elevated);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.dashboard-quick-action:hover {
    transform: translateX(4px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: var(--shadow-sm);
}

.dashboard-quick-action-icon {
    font-size: 24px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 10px;
    flex-shrink: 0;
}

.dashboard-quick-action-content {
    flex: 1;
}

.dashboard-quick-action-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.dashboard-quick-action-desc {
    font-size: 12px;
    color: var(--text-secondary);
}

.dashboard-charts-section {
    grid-column: 1 / -1;
}

.dashboard-charts-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-6);
    flex-wrap: wrap;
    gap: var(--space-4);
}

.dashboard-charts-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.dashboard-charts-count {
    font-size: 14px;
    color: var(--text-secondary);
    padding: 6px 12px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 8px;
    font-weight: 600;
}

.dashboard-charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-4);
}

.dashboard-chart-card {
    background: var(--bg-elevated);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--border-primary);
    border-radius: 16px;
    padding: var(--space-5);
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
    position: relative;
    overflow: hidden;
}

.dashboard-chart-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dashboard-chart-card:hover::before {
    opacity: 1;
}

.dashboard-chart-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(99, 102, 241, 0.3);
}

.dashboard-chart-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-4);
}

.dashboard-chart-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-3);
}

.dashboard-chart-badge {
    padding: 4px 10px;
    background: var(--primary);
    color: white;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.dashboard-chart-planets {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-3);
    padding: var(--space-3);
    background: rgba(99, 102, 241, 0.05);
    border-radius: 10px;
    margin-bottom: var(--space-4);
}

.dashboard-planet-item {
    text-align: center;
}

.dashboard-planet-label {
    font-size: 10px;
    color: var(--text-tertiary);
    margin-bottom: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dashboard-planet-icon {
    font-size: 20px;
    margin-bottom: 4px;
    display: block;
}

.dashboard-planet-icons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-1);
    margin-bottom: 4px;
}

.dashboard-planet-icon-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.dashboard-planet-value {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 600;
}

.dashboard-chart-button {
    display: inline-block;
    width: 100%;
    padding: var(--space-3);
    margin-top: var(--space-4);
    background: var(--primary);
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.dashboard-chart-button:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.dashboard-chart-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.dashboard-chart-info-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 12px;
    color: var(--text-secondary);
}

.dashboard-chart-info-icon {
    font-size: 14px;
    flex-shrink: 0;
    opacity: 0.7;
}

.dashboard-empty-state {
    grid-column: 1 / -1;
    background: var(--bg-elevated);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--border-primary);
    border-radius: 20px;
    padding: var(--space-12);
    text-align: center;
}

.dashboard-empty-icon {
    font-size: 64px;
    margin-bottom: var(--space-4);
    opacity: 0.5;
}

.dashboard-empty-title {
    font-size: 24px;
    margin-bottom: var(--space-2);
    color: var(--text-primary);
    font-weight: 700;
}

.dashboard-empty-desc {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: var(--space-6);
}

/* Primary Chart Widget */
.dashboard-primary-chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-3);
}

.dashboard-primary-chart-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.dashboard-primary-chart-meta {
    font-size: 12px;
    color: var(--text-secondary);
}

.dashboard-primary-chart-badge {
    padding: 6px 12px;
    background: var(--primary);
    color: white;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
}

.dashboard-primary-planets {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
    padding: var(--space-4);
    background: rgba(99, 102, 241, 0.05);
    border-radius: 12px;
    margin-bottom: var(--space-4);
}

.dashboard-primary-planet-item {
    text-align: center;
}

.dashboard-primary-planet-label {
    font-size: 10px;
    color: var(--text-tertiary);
    margin-bottom: 6px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dashboard-primary-planet-icons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    margin-bottom: 6px;
}

.dashboard-primary-planet-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.dashboard-primary-planet-symbol {
    font-size: 24px;
}

.dashboard-primary-planet-value {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 600;
}

.dashboard-primary-chart-button {
    display: inline-block;
    width: 100%;
    text-align: center;
    text-decoration: none;
}

.dashboard-primary-chart-content {
    margin-bottom: var(--space-4);
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .cosmic-hero {
        min-height: 70vh;
        padding: var(--space-16) 0;
    }
}

@media (max-width: 768px) {
    .cosmic-hero {
        min-height: 60vh;
        padding: var(--space-12) 0;
        padding-top: 100px;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .interpretation-section {
        padding: var(--space-5);
    }
    
    /* Кабинет - мобильная адаптация */
    .cabinet-hero {
        padding: var(--space-6);
        margin-bottom: var(--space-6);
    }
    
    .cabinet-hero-content {
        flex-direction: column;
        text-align: center;
        gap: var(--space-4);
    }
    
    .cabinet-avatar {
        width: 64px;
        height: 64px;
        font-size: 28px;
    }
    
    .cabinet-hero-text h1 {
        font-size: 24px;
    }
    
    .cabinet-actions {
        grid-template-columns: 1fr;
        gap: var(--space-3);
        margin-bottom: var(--space-6);
    }
    
    .cabinet-action-card {
        padding: var(--space-5);
    }
    
    .cabinet-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-3);
        margin-bottom: var(--space-6);
    }
    
    .cabinet-stat-card {
        padding: var(--space-4);
    }
    
    .cabinet-stat-icon {
        font-size: 28px;
    }
    
    .cabinet-stat-value {
        font-size: 24px;
    }
    
    .cabinet-stat-label {
        font-size: 11px;
    }
    
    .cabinet-charts-header {
        margin-bottom: var(--space-4);
    }
    
    .cabinet-charts-title {
        font-size: 22px;
    }
    
    .cabinet-charts-grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }
    
    .cabinet-chart-card {
        padding: var(--space-5);
    }
    
    .cabinet-chart-planets-grid {
        gap: var(--space-2);
    }
    
    .cabinet-empty-state {
        padding: var(--space-8);
    }
    
    .cabinet-empty-icon {
        font-size: 48px;
    }
    
    .cabinet-empty-title {
        font-size: 20px;
    }
    
    .cabinet-empty-desc {
        font-size: 14px;
    }
    
    /* Dashboard - мобильная адаптация */
    .dashboard {
        grid-template-columns: 1fr;
        gap: var(--space-4);
        display: flex;
        flex-direction: column;
    }
    
    /* Порядок блоков на мобилке */
    .dashboard-sidebar {
        order: 1;
        display: flex;
        flex-direction: column;
        gap: var(--space-4);
    }
    
    .dashboard-user-card {
        padding: var(--space-5);
        order: 1;
    }
    
    .dashboard-sidebar .dashboard-widget {
        order: 2;
    }
    
    .dashboard-main {
        order: 2;
        display: flex;
        flex-direction: column;
        gap: var(--space-4);
    }
    
    /* Статистика в одну строку на мобилке */
    .dashboard-main > div:first-child {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-3);
    }
    
    /* Основная карта - скрываем на мобилке */
    .dashboard-main > .dashboard-widget {
        display: none;
    }
    
    .dashboard-charts-section {
        order: 3;
    }
    
    .dashboard-user-avatar {
        width: 64px;
        height: 64px;
        font-size: 28px;
    }
    
    .dashboard-user-name {
        font-size: 18px;
    }
    
    .dashboard-widget {
        padding: var(--space-5);
    }
    
    .dashboard-stat-value {
        font-size: 24px;
    }
    
    .dashboard-stat-label {
        font-size: 11px;
    }
    
    .dashboard-widget-title {
        font-size: 12px;
    }
    
    .dashboard-charts-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-chart-card {
        padding: var(--space-4);
    }
    
    /* Быстрые действия - компактнее на мобилке */
    .dashboard-quick-actions {
        gap: var(--space-2);
    }
    
    .dashboard-quick-action {
        padding: var(--space-3);
    }
    
    .dashboard-quick-action-icon {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }
    
    .dashboard-quick-action-title {
        font-size: 13px;
    }
    
    .dashboard-quick-action-desc {
        font-size: 11px;
    }
    
    /* Chart Page - мобильная адаптация */
    .chart-page-header {
        padding: var(--space-5);
    }
    
    .chart-page-name {
        font-size: 22px;
    }
    
    .chart-page-meta {
        font-size: 12px;
        gap: var(--space-2);
    }
    
    .chart-key-points {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-3);
        margin-bottom: var(--space-4);
    }
    
    .chart-key-point {
        padding: var(--space-3);
    }
    
    .chart-key-point-value {
        font-size: 18px;
    }
    
    .chart-visualization-container {
        padding: 0;
    }
    
    .chart-canvas-wrapper {
        width: 100%;
        max-width: 100%;
    }
    
    #natal-chart-canvas {
        width: 90vw !important;
        height: 90vw !important;
        max-width: 90vw !important;
    }
    
    .chart-fullscreen-content {
        padding: var(--space-4);
    }
    
    .chart-style-switcher {
        margin-bottom: var(--space-4);
    }
    
    .chart-style-btn {
        padding: var(--space-2) var(--space-4);
        font-size: 13px;
    }
}
