* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #8B5FBF;
    --primary-dark: #6B46C1;
    --secondary: #FF6B8B;
    --accent: #00D4FF;
    --light: #F7FAFC;
    --dark: #2D3748;
    --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
    --shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    --radius: 16px;
    --surface: rgba(255, 255, 255, 0.95);
    --background: #f8fafc;
    --text: #2D3748;
    --text-light: #718096;
    --border: rgba(139, 95, 191, 0.2);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: var(--dark);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
    width: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ОБЪЕДИНЕННЫЙ HEADER */
.main-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.header-combined {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

/* Плавные переходы при изменении размера */
.header-combined,
.header-actions,
.action-btn,
.logo-compact {
    transition: all 0.3s ease;
}

/* Статус пользователя */
.header-status {
    flex-shrink: 0;
}

/* .user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--dark);
    font-size: 0.9rem;*/
}

.status-icon {
    font-size: 1.1rem;
}

/* Логотип по центру */
.header-logo {
    flex: 1;
    text-align: center;
}

.logo-compact {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 1.4rem;
    font-weight: 700;
}

.logo-compact i {
    font-size: 1.6rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* === ОБНОВЛЕННЫЕ СТИЛИ ДЛЯ ACTION-BTN === */

/* Основные действия */
.header-actions {
    flex-shrink: 0;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(139, 95, 191, 0.1);
    color: var(--primary);
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
}

/* Текст кнопок - используем класс btn-label */
.action-btn .btn-label {
    display: inline;
    transition: all 0.3s ease;
}

/* Иконки всегда видны */
.action-btn i {
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* Класс для кнопок, которые сохраняют текст на мобильных */
.action-btn.keep-label .btn-label {
    display: inline !important;
}

/* Адаптивность для десктопов */
@media (max-width: 1024px) {
    .header-actions {
        gap: 8px;
    }
    
    .action-btn {
        padding: 7px 14px;
        font-size: 0.85rem;
    }
}

@media (max-width: 900px) {
    .header-actions {
        gap: 6px;
    }
    
    .action-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    /* На узких десктопах скрываем текст в обычных кнопках */
    .action-btn .btn-label {
        display: none;
    }
    
    /* Но оставляем для важных кнопок */
    .action-btn.keep-label .btn-label {
        display: inline;
        font-size: 0.7rem;
    }
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .header-combined {
        flex-wrap: wrap;
        gap: 8px;
        padding: 10px 0;
    }
    
    /* ПЕРВЫЙ РЯД: статус пользователя и основные действия
    .header-status {
        order: 1;
        flex-basis: 100%;
        text-align: center;
        margin-bottom: 1px;
    }
    */
    .header-actions {
        order: 2;
        flex-basis: 100%;
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-bottom: 8px;
        flex-wrap: wrap;
    }
    
    /* ВТОРОЙ РЯД: логотип */
    .header-logo {
        order: 1;
        flex-basis: 100%;
        margin-bottom: 5px;
    }
    
    /* Компактный статус пользователя 
    .user-info {
        font-size: 0.8rem;
        justify-content: center;
        gap: 6px;
    } */
    
    .status-icon {
        font-size: 0.9rem;
    }
    
    /* Кнопки-иконки (скрываем текст в обычных кнопках) */
    .action-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
        gap: 4px;
        min-width: 44px;
        justify-content: center;
		-webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }
    
    .action-btn .btn-label {
        display: none;
    }
    
    .action-btn i {
        font-size: 1rem;
        margin: 0;
    }
    
    /* Сохраняем текст для важных кнопок */
    .action-btn.keep-label .btn-label {
        display: inline;
        font-size: 0.7rem;
    }
    
    /* Компактный логотип */
    .logo-compact {
        font-size: 1.2rem;
        gap: 6px;
    }
    
    .logo-compact i {
        font-size: 1.3rem;
    }
    
    .tagline-compact {
        font-size: 0.7rem;
        margin-top: 1px;
    }
	
	/* Увеличиваем зону клика */
    .action-btn::after {
        content: '';
        position: absolute;
        top: -8px;
        left: -8px;
        right: -8px;
        bottom: -8px;
    }
    
    /* Анимация нажатия */
    .action-btn:active {
        transform: scale(0.95);
        transition: transform 0.1s ease;
    }
}

@media (max-width: 480px) {
    .header-combined {
        gap: 6px;
        padding: 8px 0;
    }
    
    .header-actions {
        gap: 6px;
    }
    
    .action-btn {
        padding: 6px 10px;
        font-size: 0.75rem;
        min-width: 40px;
    }
	
    .action-btn i {
        font-size: 0.9rem;
    }
    
    /* Еще более компактный статус */
    .user-info {
        font-size: 0.75rem;
    }
    
    .status-icon {
        font-size: 0.85rem;
    }
    
    /* Минимальный размер для важных кнопок с текстом */
    .action-btn.keep-label {
        min-width: 60px;
        padding: 6px 8px;
    }
    
    /* Еще компактнее логотип */
    .logo-compact {
        font-size: 1.1rem;
    }
    
    .logo-compact i {
        font-size: 1.2rem;
    }
    
    .tagline-compact {
        font-size: 0.7rem;
    }
	
	    /* Увеличиваем зону клика */
    .action-btn::after {
        content: '';
        position: absolute;
        top: -8px;
        left: -8px;
        right: -8px;
        bottom: -8px;
    }
    
    /* Анимация нажатия */
    .action-btn:active {
        transform: scale(0.95);
        transition: transform 0.1s ease;
    }
}

/* Для очень маленьких экранов */
@media (max-width: 360px) {
    .header-combined {
        gap: 4px;
        padding: 6px 0;
    }
    
    .header-actions {
        gap: 4px;
    }
    
    .action-btn {
        padding: 5px 8px;
        min-width: 36px;
		border-radius: 12px;
    }
    
    .action-btn i {
        font-size: 0.85rem;
    }
    
    .user-info {
        font-size: 0.7rem;
    }
    
    /* Горизонтальная прокрутка для кнопок если не помещаются */
    .header-actions {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 2px;
        -webkit-overflow-scrolling: touch;
    }
    
    .header-actions::-webkit-scrollbar {
        display: none;
    }
}

/* HOVER-МЕНЮ С БОЛЬШИМИ КНОПКАМИ - ТОЛЬКО ДЛЯ ПК */
.hover-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: none;
    padding: 20px 0;
    justify-content: center;
    gap: 5px;
}

/* ПОКАЗЫВАЕМ ТОЛЬКО НА ПК ПРИ HOVER */
@media (min-width: 769px) {
    .main-header:hover .hover-nav {
        display: flex;
    }
}

/* ПОЛНОСТЬЮ ОТКЛЮЧАЕМ HOVER-МЕНЮ НА МОБИЛЬНЫХ */
@media (max-width: 768px) {
    .hover-nav {
        display: none !important;
        position: static !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow: hidden !important;
    }
}

.main-header:hover .hover-nav {
    display: flex;
}

.hover-nav .nav-item {
    flex: 1;
    text-align: center;
    max-width: 200px;
}

.hover-nav .nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 15px;
    text-decoration: none;
    color: var(--dark);
    border-radius: 12px;
    transition: all 0.3s ease;
    background: transparent;
    position: relative;
    overflow: hidden;
}

.hover-nav .nav-link i {
    font-size: 1.5rem;
    color: var(--primary);
    transition: all 0.3s ease;
}

.hover-nav .nav-link .btn-label {
    font-weight: 500;
    font-size: 0.9rem;
}

.hover-nav .nav-link:hover {
    background: var(--gradient);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(139, 95, 191, 0.3);
}

.hover-nav .nav-link:hover i,
.hover-nav .nav-link:hover .btn-label {
    color: white;
}

.hover-nav .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s;
}

.hover-nav .nav-link:hover::before {
    left: 100%;
}

/* Анимации для header */
.main-header {
    animation: slideDown 0.6s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes glow {
    from {
        box-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
    }
    to {
        box-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
    }
}

/* Основной контент */
.main-content {
    flex: 1;
    padding: 40px 0;
    background: rgba(255, 255, 255, 0.05);
}

.welcome-section {
    text-align: center;
    padding: 60px 40px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 60px;
}

.welcome-section h1 {
    font-size: 2.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 20px;
    font-weight: 700;
}

.welcome-section p {
    font-size: 1.2rem;
    color: var(--dark);
    opacity: 0.8;
    margin-bottom: 40px;
}

.auth-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 10px 30px rgba(139, 95, 191, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(139, 95, 191, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.user-welcome h2 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 2rem;
}

.user-welcome p {
    font-size: 1.1rem;
    margin-bottom: 30px;
}

/* Стили для секции преимуществ */
.features-section {
    padding: 60px 0;
    text-align: center;
}

.features-section h2 {
    font-size: 2.2rem;
    color: white;
    margin-bottom: 50px;
    font-weight: 600;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.feature-card i {
    font-size: 3rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.4rem;
    color: var(--dark);
    margin-bottom: 15px;
    font-weight: 600;
}

.feature-card p {
    color: var(--dark);
    opacity: 0.8;
    line-height: 1.6;
}

/* Стили для Footer */
.main-footer {
    background: rgba(45, 55, 72, 0.95);
    color: white;
    margin-top: auto;
    padding: 50px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding-bottom: 40px;
}

.footer-section h3 {
    color: var(--secondary);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.footer-section h4 {
    color: var(--accent);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.footer-section p {
    opacity: 0.8;
    margin-bottom: 15px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--gradient);
    transform: translateY(-3px);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-legals {
    display: flex;
    gap: 20px;
}

.footer-legals a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-legals a:hover {
    color: var(--accent);
}

.footer-citation {
    font-size: .7rem;
    font-style: italic;
}

/* АДАПТИВНОСТЬ ДЛЯ ФУТЕРА */
@media (max-width: 768px) {
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .footer-legals {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .footer-legals a {
        padding: 8px 12px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .footer-legals {
        flex-direction: column;
        gap: 10px;
    }
    
    .footer-legals a {
        width: 100%;
        text-align: center;
        padding: 10px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* === HERO SECTION === */
.hero {
    background: transparent;
    color: white;
    padding: 4rem 2rem 3rem;
    text-align: center;
    position: relative;
}

.hero h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero p:last-of-type {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-top: 2rem;
}

/* === CTA BUTTON === */
.cta-button {
    display: inline-block;
    background: white;
    color: var(--primary);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    margin: 2rem 0;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    animation: pulse 2s ease-in-out infinite;
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* === GENDER SELECTION === */
.gender-selection {
    background: var(--surface);
    padding: 3rem 2rem;
    text-align: center;
    border-radius: var(--radius);
    margin: 2rem auto;
    box-shadow: var(--shadow);
    max-width: 500px;
    width: calc(100% - 4rem);
}

#genderSelection.gender-selection {
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 500px !important;
    width: calc(100% - 4rem) !important;
}

.gender-selection h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text);
}

.gender-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.gender-btn {
    padding: 1.5rem 3rem;
    font-size: 1.2rem;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.gender-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.gender-btn:hover::before {
    left: 100%;
}

.gender-btn.male {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
}

.gender-btn.female {
    background: linear-gradient(135deg, var(--secondary), #db2777);
    color: white;
}

.gender-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: var(--shadow-lg);
}

/* === PROFILES SECTION === */
.profiles-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
    background: var(--surface);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.section-header h2 {
    font-size: 1.5rem;
    color: var(--text);
    margin: 0;
}

.filters {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--background);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.filter-button {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 95, 191, 0.3);
    position: relative;
    overflow: hidden;
}

.filter-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 95, 191, 0.4);
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}

.filter-button:active {
    transform: translateY(0);
}

.filter-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.filter-button:hover::before {
    left: 100%;
}

#ageFilter,#cityFilter {
	padding: 0.5rem;
    border: 4px solid #ddd;
    border-radius: 4px;
    margin-right: 0.5rem;
    width: 120px;
}

/* === NO PROFILES BLOCK STYLES === */
.no-profiles {
    background: var(--surface);
    padding: 3rem 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    margin: 2rem 0;
    border: 2px dashed var(--border);
    position: relative;
    overflow: hidden;
    animation: gentleFadeInUp 0.8s ease-out;
}

.no-profiles::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary), var(--accent), var(--primary));
    opacity: 0.7;
}

.no-profiles::after {
    content: '💫';
    position: absolute;
    bottom: -20px;
    right: -20px;
    font-size: 8rem;
    opacity: 0.05;
    transform: rotate(15deg);
    z-index: 0;
}

.no-profiles p {
    font-size: 1.3rem;
    color: var(--text);
    margin-bottom: 1.5rem;
    font-weight: 500;
    position: relative;
    z-index: 1;
    line-height: 1.6;
}

.no-profiles .suggestions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
    position: relative;
    z-index: 1;
}

.no-profiles .suggestion-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: rgba(139, 95, 191, 0.1);
    color: var(--primary);
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.no-profiles .suggestion-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
}

.no-profiles .suggestion-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 95, 191, 0.3);
}

.no-profiles .suggestion-btn:hover::before {
    left: 100%;
}

.no-profiles .suggestion-btn i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.no-profiles .suggestion-btn:hover i {
    transform: scale(1.2);
}

/* Анимация для эмодзи в тексте */
.no-profiles p {
    animation: gentleEmojiPulse 2s ease-in-out infinite;
}

@keyframes gentleEmojiPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Декоративные элементы */
.no-profiles .floating-emoji {
    position: absolute;
    font-size: 2rem;
    opacity: 0.1;
    animation: floatingEmoji 8s ease-in-out infinite;
}

.no-profiles .floating-emoji:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.no-profiles .floating-emoji:nth-child(2) {
    top: 60%;
    left: 80%;
    animation-delay: 2s;
}

.no-profiles .floating-emoji:nth-child(3) {
    top: 80%;
    left: 20%;
    animation-delay: 4s;
}

@keyframes floatingEmoji {
    0%, 100% {
        transform: translateY(0) rotate(0deg) scale(1);
        opacity: 0.1;
    }
    25% {
        transform: translateY(-15px) rotate(90deg) scale(1.2);
        opacity: 0.15;
    }
    50% {
        transform: translateY(-30px) rotate(180deg) scale(1);
        opacity: 0.1;
    }
    75% {
        transform: translateY(-15px) rotate(270deg) scale(0.8);
        opacity: 0.15;
    }
}

/* Адаптивность */
@media (max-width: 768px) {
    .no-profiles {
        padding: 2rem 1.5rem;
        margin: 1.5rem 0;
    }
    
    .no-profiles p {
        font-size: 1.1rem;
    }
    
    .no-profiles::after {
        font-size: 6rem;
        bottom: -15px;
        right: -15px;
    }
    
    .no-profiles .suggestions {
        flex-direction: column;
        align-items: center;
    }
    
    .no-profiles .suggestion-btn {
        width: 100%;
        max-width: 200px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .no-profiles {
        padding: 1.5rem 1rem;
    }
    
    .no-profiles p {
        font-size: 1rem;
    }
    
    .no-profiles::after {
        font-size: 4rem;
    }
    
    .no-profiles .suggestion-btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
    }
}

/* === END of NO PROFILES BLOCK STYLES === */

/* === NO MORE PROFILES BLOCK STYLES === */
.no-more-profiles {
    background: var(--surface);
    padding: 3rem 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    margin: 2rem 0;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    animation: gentleFadeInUp 0.8s ease-out;
}

.no-more-profiles::after {
    content: '🎉';
    position: absolute;
    bottom: -30px;
    right: -30px;
    font-size: 10rem;
    opacity: 0.03;
    transform: rotate(15deg);
    z-index: 0;
}

.no-more-profiles h3 {
    font-size: 1.5rem;
    color: var(--text);
    margin-bottom: 1rem;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.no-more-profiles p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.6;
    position: relative;
    z-index: 1;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.no-more-profiles .suggestions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
    position: relative;
    z-index: 1;
}

.no-more-profiles .suggestion-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 1.8rem;
    background: var(--background);
    color: var(--primary);
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: 2px solid var(--border);
    position: relative;
    overflow: hidden;
}

.no-more-profiles .suggestion-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 95, 191, 0.3);
    border-color: var(--primary);
}

.no-more-profiles .suggestion-btn i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.no-more-profiles .suggestion-btn:hover i {
    transform: scale(1.1);
}

/* Анимации */
@keyframes gentleFadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Адаптивность */
@media (max-width: 768px) {
    .no-more-profiles {
        padding: 2.5rem 1.5rem;
        margin: 1.5rem 0;
    }
    
    .no-more-profiles h3 {
        font-size: 1.3rem;
    }
    
    .no-more-profiles p {
        font-size: 1rem;
    }
    
    .no-more-profiles::after {
        font-size: 7rem;
        bottom: -20px;
        right: -20px;
    }
    
    .no-more-profiles .suggestions {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }
    
    .no-more-profiles .suggestion-btn {
        width: 100%;
        max-width: 220px;
        justify-content: center;
        padding: 0.8rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .no-more-profiles {
        padding: 2rem 1rem;
    }
    
    .no-more-profiles h3 {
        font-size: 1.2rem;
    }
    
    .no-more-profiles p {
        font-size: 0.95rem;
    }
    
    .no-more-profiles::after {
        font-size: 5rem;
    }
    
    .no-more-profiles .suggestion-btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }
}

/* === END of NO MORE PROFILES BLOCK STYLES === */

.user-badge {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.8));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 95, 191, 0.2);
    padding: 12px 20px;
    border-radius: 16px;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.user-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    border-color: rgba(139, 95, 191, 0.3);
}

.user-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 95, 191, 0.1), transparent);
    transition: left 0.6s ease;
}

.user-badge:hover::before {
    left: 100%;
}

.current-user-info {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9));
    backdrop-filter: blur(15px);
    border: 1px solid rgba(139, 95, 191, 0.15);
    padding: 20px 30px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 1.1rem;
    color: var(--text);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.current-user-info:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
    border-color: rgba(139, 95, 191, 0.25);
}

.current-user-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 95, 191, 0.08), transparent);
    transition: left 0.7s ease;
}

.current-user-info:hover::before {
    left: 100%;
}

/* Стили для кнопки поддержки */
.btn-support {
    background: linear-gradient(135deg, #ffd700, #ffa500);
    color: #2D3748;
    box-shadow: 0 6px 20px rgba(255, 165, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-support:hover {
    background: linear-gradient(135deg, #ffa500, #ff8c00);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 165, 0, 0.4);
    color: #2D3748;
}

/* Анимация пульсации для привлечения внимания */
.btn-support {
    animation: supportPulse 3s ease-in-out infinite;
}

@keyframes supportPulse {
    0%, 100% {
        box-shadow: 0 6px 20px rgba(255, 165, 0, 0.3);
    }
    50% {
        box-shadow: 0 6px 25px rgba(255, 165, 0, 0.6), 0 0 15px rgba(255, 165, 0, 0.4);
    }
}

/* Для эмодзи в тексте */
.current-user-info .btn-label {
    font-size: 1.2rem;
    margin: 0 4px;
}

/* Для разделителя */
.user-badge::after {
    content: '|';
    color: var(--primary);
    font-weight: 600;
    margin: 0 8px;
    opacity: 0.6;
}

/* Для эмодзи */
.user-badge .btn-label:first-child {
    font-size: 1.1rem;
}

/* === PROFILE CARD === */
.profile-card {
    background: var(--surface);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow);
    margin: 2rem 0;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease-out;
}

.profile-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.profile-header h3 {
    font-size: 1.5rem;
    color: var(--text);
    margin: 0;
}

.location {
    color: var(--primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.profile-about h4 {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.profile-about p {
    background: var(--background);
    padding: 1.5rem;
    border-radius: 15px;
    border-left: 4px solid var(--primary);
    line-height: 1.7;
    font-size: 1rem;
}

.profile-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.profile-actions button {
    flex: 1;
    min-width: 120px;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.dislike-btn {
    background: var(--text-light);
    color: white;
}

.message-btn {
    background: var(--primary);
    color: white;
}

.like-btn {
    background: var(--secondary);
    color: white;
}

.profile-actions button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.profile-actions button:active {
    transform: translateY(-1px);
}

/* === HOW IT WORKS === */
.how-it-works {
    background: var(--surface);
    padding: 4rem 2rem;
    margin: 4rem 0;
    text-align: center;
}

.how-it-works h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text);
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.step {
    background: var(--background);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
}

.step:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.step .btn-label {
    display: inline-block;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-radius: 50%;
    line-height: 50px;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.step p {
    font-size: 1.1rem;
    color: var(--text);
    font-weight: 500;
}

/* Стили для секции "Как это работает" с 4 шагами */
.how-it-works .steps {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 колонки */
    grid-template-rows: repeat(2, auto);   /* 2 строки */
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

/* На мобильных - одна колонка */
@media (max-width: 768px) {
    .how-it-works .steps {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, auto); /* 4 строки */
    }
}

/* На очень маленьких экранах - меньше отступы */
@media (max-width: 480px) {
    .how-it-works .steps {
        gap: 1.5rem;
    }
    
    .step {
        padding: 2rem 1.5rem;
    }
}

/* СТИЛИ ДЛЯ КОНТЕЙНЕРОВ */
.profiles-container, .matches-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.current-user-info {
    background: var(--surface);
    padding: 1.5rem;
    border-radius: var(--radius);
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    text-align: center;
}

.loading, .no-profiles {
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
    font-size: 1.1rem;
}

/* АНИМАЦИИ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Красивая пульсирующая тень для статуса пользователя */
#currentUserDisplay {
    background: linear-gradient(135deg, rgba(139, 95, 191, 0.4), rgba(139, 95, 191, 0.25));
    padding: 4px;
    border-radius: 20px;
    /* font-weight: 500;*/
    font-size: .9rem;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(139, 95, 191, 0.3);
    /* animation: userStatusPulse 2s ease-in-out infinite; */
    /* box-shadow: 0 4px 15px rgba(139, 95, 191, 0.1); */
    color: var(--primary);
    position: relative;
    overflow: hidden;
}

/* Уникальное имя анимации для статуса пользователя */
@keyframes userStatusPulse {
    0%, 100% {
        box-shadow: 
            0 4px 15px rgba(0, 0, 0, 0.1),
            0 0 0px rgba(139, 95, 191, 0.3);
        transform: scale(1);
    }
    50% {
        box-shadow: 
            0 4px 20px rgba(0, 0, 0, 0.15),
            0 0 20px rgba(139, 95, 191, 0.5);
        transform: scale(1.05);
    }
}

/* Уменьшаем отступы основного контента на мобильных */
@media (max-width: 768px) {
    .main-content {
        padding: 20px 0;
    }
    
    .welcome-section {
        padding: 30px 20px;
        margin-bottom: 30px;
    }
    
    .welcome-section h1 {
        font-size: 1.8rem;
    }
    
    .welcome-section p {
        font-size: 1rem;
    }
}

/* === ADMIN PANEL STYLES === */

/* Контейнер для входа в админ-панель */
.admin-login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2rem;
}

.admin-login-form {
    background: var(--surface);
    padding: 3rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.admin-login-form h1 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
}

.login-subtitle {
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text);
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--background);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(139, 95, 191, 0.1);
}

.admin-login-btn {
    width: 100%;
    padding: 12px;
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
}

.admin-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 95, 191, 0.4);
}

.admin-login-links {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.admin-login-links a {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.admin-login-links a:hover {
    color: var(--primary-dark);
}

.message {
    padding: 12px;
    border-radius: var(--radius);
    font-size: 0.9rem;
    margin-top: 1rem;
}

.message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Основная админ-панель */
#adminPanelContainer {
    min-height: 100vh;
    background: var(--background);
}

#adminPanelContainer header {
    background: var(--surface);
    padding: 1.5rem 2rem;
    box-shadow: var(--shadow);
    border-bottom: 1px solid var(--border);
}

#adminPanelContainer header h1 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 2rem;
}

#adminPanelContainer nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
}

#adminPanelContainer nav a {
    color: var(--primary);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 20px;
    background: rgba(139, 95, 191, 0.1);
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

#adminPanelContainer nav a:hover {
    background: var(--primary);
    color: white;
}

#adminWelcome {
    color: var(--text);
    font-weight: 500;
}

/* Контейнер админ-панели */
.admin-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.admin-header {
    background: var(--surface);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.admin-header h2 {
    color: var(--text);
    margin-bottom: 1rem;
}

.user-count {
    color: var(--text-light);
    font-size: 1.1rem;
}

.user-count .btn-label {
    color: var(--primary);
    font-weight: 600;
}

/* Инструменты админ-панели */
.admin-tools {
    background: var(--surface);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.admin-tools h3 {
    color: var(--text);
    margin-bottom: 1rem;
}

.admin-tools input {
    padding: 10px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    margin-right: 1rem;
    width: 300px;
    max-width: 100%;
}

.admin-tools button {
    padding: 10px 20px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.3s ease;
}

.admin-tools button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Фильтры */
.filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    background: var(--background);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Таблица пользователей */
.users-table {
    width: 100%;
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    border-collapse: collapse;
}

.users-table th {
    background: var(--primary);
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.users-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
}

.users-table tr:hover {
    background: var(--background);
}

/* Бейджи для статусов */
.photo-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.photo-badge.has-photo {
    background: #d4edda;
    color: #155724;
}

.photo-badge.no-photo {
    background: #f8d7da;
    color: #721c24;
}

/* Кнопка удаления */
.delete-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.delete-btn:hover {
    background: #c82333;
    transform: scale(1.1);
}

/* Адаптивность для админ-панели */
@media (max-width: 1200px) {
    .users-table {
        font-size: 0.9rem;
    }
    
    .users-table th,
    .users-table td {
        padding: 0.8rem 0.5rem;
    }
}

@media (max-width: 768px) {
    .admin-container {
        padding: 1rem;
    }
    
    .admin-header,
    .admin-tools {
        padding: 1.5rem;
    }
    
    .filters {
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    .admin-tools input {
        width: 100%;
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .users-table {
        display: block;
        overflow-x: auto;
    }
}

@media (max-width: 480px) {
    .admin-login-form {
        padding: 2rem;
    }
    
    #adminPanelContainer header {
        padding: 1rem;
    }
    
    #adminPanelContainer nav {
        gap: 0.5rem;
    }
    
    #adminPanelContainer nav a {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}

/* ... остальные стили остаются без изменений ... */

/* === AUTH PAGES STYLES === */

.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 160px);
    padding: 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.auth-form {
    background: var(--surface);
    padding: 3rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 450px;
    text-align: center;
}

.auth-form h2 {
    color: var(--primary);
    margin-bottom: 2rem;
    font-size: 2rem;
    font-weight: 700;
}

.auth-form h3 {
    color: var(--text);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    font-weight: 600;
}

/* OAuth секция */
.oauth-section {
    margin-bottom: 2rem;
}

.oauth-title {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.oauth-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.oauth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    background: var(--background);
    color: var(--text);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.oauth-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    border-color: var(--primary);
}

.oauth-icon {
    font-size: 1.2rem;
}

/* Разделитель */
.divider {
    position: relative;
    margin: 2rem 0;
    text-align: center;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border);
}

.divider span {
    background: var(--surface);
    padding: 0 1rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Форма */
.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text);
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--background);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(139, 95, 191, 0.1);
}

/* Кнопка входа */
.auth-button {
    width: 100%;
    padding: 14px;
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.auth-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 95, 191, 0.4);
}

.auth-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.auth-button:hover::before {
    left: 100%;
}

/* Ссылка */
.auth-link {
    color: var(--text-light);
    font-size: 0.9rem;
}

.auth-link a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.auth-link a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Адаптивность для страниц авторизации */
@media (max-width: 768px) {
    .auth-container {
        padding: 1rem;
        min-height: calc(100vh - 140px);
    }
    
    .auth-form {
        padding: 2rem;
    }
    
    .auth-form h2 {
        font-size: 1.8rem;
    }
    
    .oauth-buttons {
        gap: 0.6rem;
    }
    
    .oauth-btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .auth-form {
        padding: 1.5rem;
    }
    
    .auth-form h2 {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
    }
    
    .auth-form h3 {
        font-size: 1.1rem;
    }
    
    .form-group input {
        padding: 10px 14px;
    }
    
    .auth-button {
        padding: 12px;
        font-size: 1rem;
    }
}

/* === LOGOUT PAGE STYLES === */

.logout-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 160px);
    padding: 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.logout-card {
    background: var(--surface);
    padding: 3rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 500px;
    text-align: center;
}

.logout-icon {
    font-size: 4rem;
    color: var(--secondary);
    margin-bottom: 1.5rem;
    animation: pulse 2s ease-in-out infinite;
}

.logout-card h1 {
    color: var(--text);
    margin-bottom: 1rem;
    font-size: 2.2rem;
    font-weight: 700;
}

.logout-message {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.logout-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.logout-form {
    margin: 0;
}

.logout-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    min-width: 140px;
    justify-content: center;
}

.confirm-btn {
    background: var(--secondary);
    color: white;
}

.confirm-btn:hover {
    background: #e55a7e;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 139, 0.4);
}

.cancel-btn {
    background: var(--background);
    color: var(--text);
    border: 2px solid var(--border);
}

.cancel-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
}

.logout-info {
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
}

.logout-info p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Анимация для иконки */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* Адаптивность для страницы выхода */
@media (max-width: 768px) {
    .logout-container {
        padding: 1rem;
        min-height: calc(100vh - 140px);
    }
    
    .logout-card {
        padding: 2rem;
    }
    
    .logout-icon {
        font-size: 3rem;
    }
    
    .logout-card h1 {
        font-size: 1.8rem;
    }
    
    .logout-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .logout-btn {
        width: 100%;
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    .logout-card {
        padding: 1.5rem;
    }
    
    .logout-card h1 {
        font-size: 1.6rem;
    }
    
    .logout-message {
        font-size: 1rem;
    }
}

/* === LOGOUT SUCCESS PAGE STYLES === */

.logout-success-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.logout-success-card {
    background: var(--surface);
    padding: 3rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 500px;
    text-align: center;
}

.success-icon {
    font-size: 4rem;
    color: #4CAF50;
    margin-bottom: 1.5rem;
    animation: bounce 1s ease-in-out;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.logout-success-card h1 {
    color: var(--text);
    margin-bottom: 1rem;
    font-size: 2.2rem;
    font-weight: 700;
}

.success-message {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.success-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.success-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    min-width: 160px;
    justify-content: center;
}

.primary-btn {
    background: var(--primary);
    color: white;
}

.primary-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 95, 191, 0.4);
}

.secondary-btn {
    background: var(--background);
    color: var(--text);
    border: 2px solid var(--border);
}

.secondary-btn:hover {
    background: var(--secondary);
    color: white;
    border-color: var(--secondary);
    transform: translateY(-2px);
}

/* Адаптивность */
@media (max-width: 768px) {
    .logout-success-container {
        padding: 1rem;
    }
    
    .logout-success-card {
        padding: 2rem;
    }
    
    .success-icon {
        font-size: 3rem;
    }
    
    .logout-success-card h1 {
        font-size: 1.8rem;
    }
    
    .success-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .success-btn {
        width: 100%;
        max-width: 200px;
    }
}

/* === MESSAGES PAGE STYLES === */

.messages-container {
    display: flex;
    height: calc(100vh - 160px);
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin: 2rem;
    overflow: hidden;
}

/* Список диалогов */
.conversations-list {
    width: 350px;
    border-right: 1px solid var(--border);
    background: var(--background);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.conversations-header {
    padding: 1.5rem;
    background: var(--primary);
    color: white;
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem;
}

.conversation-item {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.conversation-item:hover {
    background: rgba(139, 95, 191, 0.05);
}

.conversation-item.active {
    background: var(--primary);
    color: white;
}

.conversation-item.active .conversation-name,
.conversation-item.active .last-message,
.conversation-item.active .message-time {
    color: white;
}

.conversation-item.has-unread {
    background: rgba(255, 107, 139, 0.05);
    border-left: 3px solid var(--secondary);
}

.conversation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.conversation-name {
    font-weight: 600;
    color: var(--text);
    font-size: 0.95rem;
}

.unread-badge {
    background: var(--secondary);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 600;
}

.conversation-preview {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.last-message {
    color: var(--text-light);
    font-size: 0.85rem;
    flex: 1;
    margin-right: 0.5rem;
}

.message-time {
    color: var(--text-light);
    font-size: 0.75rem;
    white-space: nowrap;
}

.no-conversations {
    padding: 3rem 2rem;
    text-align: center;
    color: var(--text-light);
    font-style: italic;
}

/* Окно чата */
.chat-window {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--surface);
}

/* Мобильная навигация */
.mobile-nav {
    display: none;
    padding: 1rem;
    background: var(--primary);
    color: white;
    align-items: center;
    gap: 1rem;
}

.back-button {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-title {
    font-weight: 600;
    font-size: 1rem;
}

/* Заголовок чата */
.chat-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    background: var(--background);
}

.user-info {
    margin-bottom: 0.5rem;
}

.user-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.user-details {
    color: var(--text-light);
    font-size: 0.9rem;
}

.photo-access-info {
    margin-top: 0.5rem;
}

.photo-access-locked {
    background: #fff3cd;
    color: #856404;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-size: 0.8rem;
    border-left: 3px solid #ffc107;
}

.photo-access-unlocked {
    background: #d1edff;
    color: #0c5460;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-size: 0.8rem;
    border-left: 3px solid var(--accent);
}

/* Область сообщений */
.messages-area {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    background: var(--background);
}

.no-chat-selected {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    text-align: center;
    color: var(--text-light);
}

.no-chat-selected h3 {
    margin-bottom: 0.5rem;
    color: var(--text);
}

/* Сообщения */
.message {
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    max-width: 60%;
    position: relative;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.message.sent {
    background: var(--primary);
    color: white;
    margin-left: auto;
    border-bottom-right-radius: 4px;
}

.message.received {
    background: #00b46961;
    border: 1px solid var(--border);
    margin-right: auto;
    border-bottom-left-radius: 4px;
}

.message strong {
    font-size: 0.8rem;
    opacity: 0.8;
    margin-bottom: 0.25rem;
    display: block;
}

.message-time {
    font-size: 0.7rem;
    opacity: 0.6;
    margin-top: 0.5rem;
    text-align: right;
}

/* Изображения в сообщениях */
.message-image {
    max-width: 100%;
    max-height: 100%;
    border-radius: 8px;
    margin-top: 0.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Поле ввода сообщения */
.message-input {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border);
    background: var(--surface);
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.message-input input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border);
    border-radius: 25px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: var(--background);
}

.message-input input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(139, 95, 191, 0.1);
}

.photo-button,
.send-button {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    white-space: nowrap;
}

.photo-button {
    background: var(--background);
    color: var(--text);
    border: 2px solid var(--border);
}

.photo-button:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.send-button {
    background: var(--primary);
    color: white;
}

.send-button:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* На экранах меньше 450px */
@media (max-width: 450px) {
    .message-input {
        flex-wrap: wrap;
        padding: 1rem;
        gap: 0.5rem;
    }
    
    .photo-button {
        order: 1;
        flex: 0 0 auto;
    }
    
    .message-input input {
        order: 2;
        flex: 1;
        min-width: 0;
    }
    
    .send-button {
        order: 3;
        flex: 1 0 100%;
        margin-top: 0.5rem;
        text-align: center;
    }
}

/* Уведомления */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    color: white;
    font-weight: 500;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow-lg);
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.notification-info {
    background: var(--primary);
}

.notification-success {
    background: #10b981;
}

.notification-warning {
    background: #f59e0b;
}

.notification-error {
    background: #ef4444;
}

.notification button {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
}

/* Значок уведомлений в навигации */
.nav-notification-badge {
    background: var(--secondary);
    color: white;
    border-radius: 50%;
    width: 8px;
    height: 8px;
    display: inline-block;
    margin-left: 5px;
    animation: energeticPulse 1.5s ease-in-out infinite;
    box-shadow: 0 0 8px rgba(255, 107, 139, 0.6);
    text-indent: -9999px;
    overflow: hidden;
    font-size: 0;
    line-height: 1;
    position: relative;
}

/* Энергичная анимация пульсации */
@keyframes energeticPulse {
    0% { 
        opacity: 1; 
        transform: scale(1);
        box-shadow: 0 0 5px rgba(255, 107, 139, 0.4);
    }
    25% { 
        opacity: 0.9; 
        transform: scale(1.15);
        box-shadow: 0 0 12px rgba(255, 107, 139, 0.8);
    }
    50% { 
        opacity: 1; 
        transform: scale(1.25);
        box-shadow: 0 0 15px rgba(255, 107, 139, 1);
    }
    75% { 
        opacity: 0.9; 
        transform: scale(1.15);
        box-shadow: 0 0 12px rgba(255, 107, 139, 0.8);
    }
    100% { 
        opacity: 1; 
        transform: scale(1);
        box-shadow: 0 0 5px rgba(255, 107, 139, 0.4);
    }
}

/* Красная иконка сообщений на мобильных при непрочитанных */
@media (max-width: 900px) {
    .has-unread-messages .fa-comments {
        color: #FF6B8B !important;
        animation: energeticPulse 1.5s ease-in-out infinite;
    }
}

/* Адаптивность для страницы сообщений */
@media (max-width: 768px) {
    .messages-container {
        margin: 0;
        height: calc(100vh - 80px);
        border-radius: 0;
    }
    
    .conversations-list {
        width: 100%;
    }
    
    .mobile-nav {
        display: flex;
    }
    
    .message {
        max-width: 55%;
    }
    
    .message-image {
        max-width: 100%;
        max-height: 100%;
    }
}

@media (max-width: 480px) {
    .conversations-list {
        width: 100%;
    }
    
    .conversation-item {
        padding: 0.75rem 1rem;
    }
    
    .message-input {
        padding: 0.75rem 1rem;
    }
    
    .photo-button,
    .send-button {
        padding: 0.6rem 1.2rem;
        font-size: 0.8rem;
    }
    
    .message-image {
        max-width: 100%;
        max-height: 100%;
    }
}

/* Скроллбар */
.conversations-list::-webkit-scrollbar,
.messages-area::-webkit-scrollbar {
    width: 6px;
}

.conversations-list::-webkit-scrollbar-track,
.messages-area::-webkit-scrollbar-track {
    background: var(--background);
}

.conversations-list::-webkit-scrollbar-thumb,
.messages-area::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

.conversations-list::-webkit-scrollbar-thumb:hover,
.messages-area::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* === PROFILE PAGE STYLES === */

.profile-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: calc(100vh - 160px);
}

.profile-header {
    background: var(--surface);
    padding: 3rem 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.profile-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient);
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 30px rgba(139, 95, 191, 0.3);
    border: 4px solid white;
    animation: float 3s ease-in-out infinite;
}

.profile-header h1 {
    font-size: 2.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.profile-userstatus {
    color: var(--text-light);
    font-size: 1.1rem;
    font-weight: 500;
}

/* Profile Info Sections */
.profile-info {
    display: grid;
    gap: 2rem;
    margin-bottom: 2rem;
}

.info-section {
    background: var(--surface);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary);
    transition: all 0.3s ease;
}

.info-section:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.info-section h3 {
    color: var(--text);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Statistics Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    background: var(--background);
    padding: 1.5rem;
    border-radius: var(--radius);
    text-align: center;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1;
}

.stat-label {
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
}

.stat-card a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.stat-card a:hover {
    color: var(--primary);
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--background);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.info-item:hover {
    border-color: var(--primary);
    transform: translateX(5px);
}

.info-label {
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.9rem;
}

.info-value {
    color: var(--text);
    font-weight: 600;
    text-align: right;
}

/* Auth Method Badges */
.auth-method {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.auth-method.email {
    background: rgba(33, 150, 243, 0.1);
    color: #2196F3;
    border: 1px solid #2196F3;
}

.auth-method.oauth {
    background: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
    border: 1px solid #4CAF50;
}

/* About Text */
.about-text {
    background: var(--background);
    padding: 1.5rem;
    border-radius: var(--radius);
    border-left: 4px solid var(--secondary);
    line-height: 1.6;
    color: var(--text);
    font-size: 1rem;
    max-height: 200px;
    overflow-y: auto;
}

.about-text::-webkit-scrollbar {
    width: 6px;
}

.about-text::-webkit-scrollbar-track {
    background: var(--background);
}

.about-text::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

.about-text::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Profile Actions */
.profile-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    background: var(--surface);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.profile-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    min-width: 140px;
    justify-content: center;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 6px 20px rgba(139, 95, 191, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(139, 95, 191, 0.4);
}

.btn-secondary {
    background: var(--background);
    color: var(--text);
    border: 2px solid var(--border);
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-3px);
}

.btn-danger {
    background: linear-gradient(135deg, #ff6b8b, #ff4757);
    color: white;
    box-shadow: 0 6px 20px rgba(255, 107, 139, 0.3);
}

.btn-danger:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 107, 139, 0.4);
    background: linear-gradient(135deg, #ff4757, #ff3742);
}

/* Loading States */
.profile-loading {
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
}

.profile-loading .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border);
    border-left: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Адаптивность для профиля */
@media (max-width: 768px) {
    .profile-container {
        padding: 1rem;
        min-height: calc(100vh - 140px);
    }
    
    .profile-header {
        padding: 2rem 1rem;
    }
    
    .profile-header h1 {
        font-size: 2rem;
    }
    
    .profile-avatar {
        width: 80px;
        height: 80px;
        font-size: 2.5rem;
    }
    
    .info-section {
        padding: 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .profile-actions {
        padding: 1.5rem;
        flex-direction: column;
    }
    
    .profile-actions .btn {
        width: 100%;
        max-width: 250px;
        margin: 0 auto;
    }
    
    .info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .info-value {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .profile-header {
        padding: 1.5rem 1rem;
    }
    
    .profile-header h1 {
        font-size: 1.8rem;
    }
    
    .info-section {
        padding: 1.25rem;
    }
    
    .stat-card {
        padding: 1.25rem;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
    
    .about-text {
        padding: 1.25rem;
        font-size: 0.9rem;
    }
}

/* Анимация появления контента - ОЧЕНЬ ПЛАВНАЯ */
.profile-header,
.info-section,
.profile-actions {
    animation: gentleFadeInUp 2s ease-in-out;
}

@keyframes gentleFadeInUp {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    60% {
        opacity: 0.6;
        transform: translateY(10px) scale(0.98);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Задержки для очень плавного последовательного появления */
.profile-header { 
    animation-delay: 0.3s; 
    animation-duration: 2.2s;
}

.info-section:nth-child(1) { 
    animation-delay: 0.8s; 
    animation-duration: 2s;
}

.info-section:nth-child(2) { 
    animation-delay: 1.3s; 
    animation-duration: 2s;
}

.info-section:nth-child(3) { 
    animation-delay: 1.8s; 
    animation-duration: 2s;
}

.info-section:nth-child(4) { 
    animation-delay: 2.3s; 
    animation-duration: 2s;
}

.profile-actions { 
    animation-delay: 2.8s; 
    animation-duration: 2s;
}

/* Ультра-плавный аватар */
.profile-avatar {
    animation: gentleFloat 6s ease-in-out infinite, gentleScaleIn 2.5s ease-out 0.5s both;
}

@keyframes gentleFloat {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
    }
    33% { 
        transform: translateY(-8px) rotate(1deg); 
    }
    66% { 
        transform: translateY(4px) rotate(-0.5deg); 
    }
}

@keyframes gentleScaleIn {
    0% {
        opacity: 0;
        transform: scale(0.7) rotate(-10deg);
    }
    70% {
        opacity: 0.8;
        transform: scale(1.05) rotate(2deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

/* Плавное появление статистики с волной */
.stat-card {
    animation: gentleWaveIn 1.8s ease-out both;
}

.stat-card:nth-child(1) { animation-delay: 2.5s; }
.stat-card:nth-child(2) { animation-delay: 2.7s; }
.stat-card:nth-child(3) { animation-delay: 2.9s; }

@keyframes gentleWaveIn {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }
    60% {
        opacity: 0.7;
        transform: translateY(-5px) scale(1.02);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Очень плавные цифры статистики */
.stat-number {
    animation: gentleCountUp 3s ease-in-out both;
    animation-delay: 3s;
}

@keyframes gentleCountUp {
    0% {
        opacity: 0;
        transform: scale(0.5) translateY(20px);
        filter: blur(5px);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.1) translateY(-3px);
        filter: blur(1px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
        filter: blur(0);
    }
}

/* Плавное скольжение информации */
.info-item {
    animation: gentleSlideIn 1.5s ease-out both;
}

.info-item:nth-child(1) { animation-delay: 3.2s; }
.info-item:nth-child(2) { animation-delay: 3.3s; }
.info-item:nth-child(3) { animation-delay: 3.4s; }
.info-item:nth-child(4) { animation-delay: 3.5s; }
.info-item:nth-child(5) { animation-delay: 3.6s; }
.info-item:nth-child(6) { animation-delay: 3.7s; }

@keyframes gentleSlideIn {
    0% {
        opacity: 0;
        transform: translateX(-40px) skewX(5deg);
        filter: blur(3px);
    }
    70% {
        opacity: 0.8;
        transform: translateX(5px) skewX(-1deg);
        filter: blur(0.5px);
    }
    100% {
        opacity: 1;
        transform: translateX(0) skewX(0deg);
        filter: blur(0);
    }
}

/* Медленное появление текста "О себе" */
.about-text {
    animation: gentleTextReveal 2.5s ease-in-out 3.8s both;
}

@keyframes gentleTextReveal {
    0% {
        opacity: 0;
        transform: translateY(20px);
        line-height: 0;
        filter: blur(8px);
    }
    40% {
        opacity: 0.3;
        line-height: 1.2;
        filter: blur(3px);
    }
    80% {
        opacity: 0.8;
        transform: translateY(-2px);
        filter: blur(0.5px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        line-height: 1.6;
        filter: blur(0);
    }
}

/* Плавное появление кнопок */
.profile-actions .btn {
    animation: gentleButtonRise 2s ease-out both;
}

.profile-actions .btn:nth-child(1) { animation-delay: 4.2s; }
.profile-actions .btn:nth-child(2) { animation-delay: 4.4s; }
.profile-actions .btn:nth-child(3) { animation-delay: 4.6s; }

@keyframes gentleButtonRise {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.8) rotate(-2deg);
        filter: blur(5px);
    }
    60% {
        opacity: 0.6;
        transform: translateY(-8px) scale(1.05) rotate(1deg);
        filter: blur(1px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1) rotate(0deg);
        filter: blur(0);
    }
}

/* Очень плавные hover эффекты */
.info-section,
.stat-card,
.info-item,
.profile-actions .btn {
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.info-section:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(139, 95, 191, 0.1);
}

.stat-card:hover {
    transform: translateY(-3px) scale(1.03) rotate(0.5deg);
    box-shadow: 
        0 15px 30px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.info-item:hover {
    transform: translateX(8px) scale(1.01);
    background: linear-gradient(135deg, var(--background), rgba(139, 95, 191, 0.03));
}

.profile-actions .btn:hover {
    transform: translateY(-2px) scale(1.02);
    transition-duration: 0.4s;
}

/* Плавное исчезновение loading state */
.profile-loading {
    animation: gentleFadeOut 1.5s ease-in-out 0.5s both;
}

@keyframes gentleFadeOut {
    0% {
        opacity: 1;
        visibility: visible;
        transform: scale(1);
    }
    70% {
        opacity: 0.3;
        transform: scale(0.95);
    }
    100% {
        opacity: 0;
        visibility: hidden;
        transform: scale(0.9);
    }
}

/* Фоновая анимация для всего контейнера */
.profile-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: calc(100vh - 160px);
    overflow-x: hidden;
    position: relative;
}

.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 160px);
    padding: 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow-x: hidden;
    position: relative;
}

/* Плавное обновление контента */
.profile-header h1,
.profile-userstatus,
.info-value,
.about-text,
.stat-number {
    transition: all 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Микро-анимация для иконок в заголовках */
.info-section h3 i {
    animation: gentleIconPulse 4s ease-in-out infinite;
    animation-delay: calc(var(--delay, 0) + 2s);
}

@keyframes gentleIconPulse {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
    50% {
        transform: scale(1.1) rotate(5deg);
        opacity: 0.8;
    }
}

/* === REGISTRATION PAGE STYLES === */

.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 160px);
    padding: 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.auth-form {
    background: var(--surface);
    padding: 3rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 500px;
    text-align: center;
    animation: gentleSlideUp 1.5s ease-out;
    position: relative;
    overflow: hidden;
}

.auth-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient);
    animation: gentleProgress 2s ease-in-out;
}

@keyframes gentleSlideUp {
    0% {
        opacity: 0;
        transform: translateY(60px) scale(0.95);
    }
    60% {
        opacity: 0.8;
        transform: translateY(-10px) scale(1.02);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes gentleProgress {
    0% { width: 0%; }
    100% { width: 100%; }
}

.auth-form h2 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 2.2rem;
    font-weight: 700;
    animation: gentleFadeIn 1s ease-out 0.3s both;
}

.auth-form h3 {
    color: var(--text);
    margin-bottom: 2rem;
    font-size: 1.3rem;
    font-weight: 600;
    animation: gentleFadeIn 1s ease-out 0.5s both;
}

/* OAuth Section */
.oauth-section {
    margin-bottom: 2rem;
    animation: gentleFadeIn 1s ease-out 0.7s both;
}

.oauth-title {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.oauth-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.oauth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    background: var(--background);
    color: var(--text);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    width: 100%;
    animation: gentleButtonIn 0.8s ease-out both;
}

.oauth-btn:nth-child(1) { animation-delay: 0.8s; }
.oauth-btn:nth-child(2) { animation-delay: 0.9s; }
.oauth-btn:nth-child(3) { animation-delay: 1.0s; }
.oauth-btn:nth-child(4) { animation-delay: 1.1s; }

@keyframes gentleButtonIn {
    0% {
        opacity: 0;
        transform: translateX(-30px) scale(0.9);
        filter: blur(3px);
    }
    70% {
        opacity: 0.7;
        transform: translateX(5px) scale(1.02);
        filter: blur(0.5px);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
        filter: blur(0);
    }
}

.oauth-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow);
    border-color: var(--primary);
    background: linear-gradient(135deg, var(--background), rgba(139, 95, 191, 0.05));
}

.oauth-icon {
    font-size: 1.2rem;
    transition: transform 0.4s ease;
}

.oauth-btn:hover .oauth-icon {
    transform: scale(1.2) rotate(5deg);
}

/* Divider */
.divider {
    position: relative;
    margin: 2rem 0;
    text-align: center;
    animation: gentleFadeIn 1s ease-out 1.2s both;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border);
    animation: gentleExpand 1s ease-out 1.3s both;
}

@keyframes gentleExpand {
    0% { transform: scaleX(0); }
    100% { transform: scaleX(1); }
}

.divider span {
    background: var(--surface);
    padding: 0 1rem;
    color: var(--text-light);
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

/* Form Groups */
.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
    animation: gentleFormIn 0.8s ease-out both;
}

.form-group:nth-child(1) { animation-delay: 1.4s; }
.form-group:nth-child(2) { animation-delay: 1.5s; }
.form-group:nth-child(3) { animation-delay: 1.6s; }
.form-group:nth-child(4) { animation-delay: 1.7s; }
.form-group:nth-child(5) { animation-delay: 1.8s; }
.form-group:nth-child(6) { animation-delay: 1.9s; }
.form-group:nth-child(7) { animation-delay: 2.0s; }
.form-group:nth-child(8) { animation-delay: 2.1s; }

@keyframes gentleFormIn {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
        filter: blur(5px);
    }
    70% {
        opacity: 0.7;
        transform: translateY(-5px) scale(1.01);
        filter: blur(1px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text);
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.form-group.required label::after {
    content: ' *';
    color: var(--secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    background: var(--background);
    font-family: 'Inter', sans-serif;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(139, 95, 191, 0.1);
    transform: translateY(-2px);
    background: white;
}

.form-group input:valid,
.form-group select:valid,
.form-group textarea:valid {
    border-color: #10b981;
}

.form-group input:invalid:not(:focus):not(:placeholder-shown),
.form-group select:invalid:not(:focus),
.form-group textarea:invalid:not(:focus):not(:placeholder-shown) {
    border-color: #ef4444;
}

/* Character Counter */
.char-counter {
    text-align: right;
    font-size: 0.8rem;
    margin-top: 0.25rem;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.char-counter.error {
    color: var(--secondary);
    font-weight: 600;
}

/* Auth Button */
.auth-button {
    width: 100%;
    padding: 14px;
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
    animation: gentleButtonRise 1s ease-out 2.3s both;
}

@keyframes gentleButtonRise {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.8);
        filter: blur(5px);
    }
    70% {
        opacity: 0.7;
        transform: translateY(-8px) scale(1.05);
        filter: blur(1px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

.auth-button:hover:not(:disabled) {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 30px rgba(139, 95, 191, 0.4);
}

.auth-button:disabled {
    background: var(--text-light);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.auth-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.8s ease;
}

.auth-button:hover::before {
    left: 100%;
}

/* Auth Link */
.auth-link {
    color: var(--text-light);
    font-size: 0.9rem;
    animation: gentleFadeIn 1s ease-out 2.5s both;
}

.auth-link a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.4s ease;
    position: relative;
}

.auth-link a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.4s ease;
}

.auth-link a:hover {
    color: var(--primary-dark);
}

.auth-link a:hover::after {
    width: 100%;
}

/* Profile Completion Modal */
.profile-completion-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    animation: gentleModalFadeIn 0.6s ease-out;
}

.profile-completion-modal.active {
    display: flex;
}

@keyframes gentleModalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: var(--surface);
    padding: 2.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    animation: gentleModalSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes gentleModalSlideUp {
    from {
        opacity: 0;
        transform: translateY(60px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    text-align: center;
    margin-bottom: 2rem;
}

.modal-header h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.modal-header p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Анимации для элементов */
@keyframes gentleFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Адаптивность для регистрации */
@media (max-width: 768px) {
    .auth-container {
        padding: 1rem;
        min-height: calc(100vh - 140px);
    }
    
    .auth-form {
        padding: 2rem;
    }
    
    .auth-form h2 {
        font-size: 1.8rem;
    }
    
    .oauth-buttons {
        gap: 0.6rem;
    }
    
    .oauth-btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .modal-content {
        padding: 2rem;
        margin: 1rem;
    }
}

@media (max-width: 480px) {
    .auth-form {
        padding: 1.5rem;
    }
    
    .auth-form h2 {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
    }
    
    .auth-form h3 {
        font-size: 1.1rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px 14px;
    }
    
    .auth-button {
        padding: 12px;
        font-size: 1rem;
    }
    
    .modal-content {
        padding: 1.5rem;
    }
}

/* Плавная валидация форм */
.form-group input:invalid:not(:focus):not(:placeholder-shown) ~ .char-counter,
.form-group textarea:invalid:not(:focus):not(:placeholder-shown) ~ .char-counter {
    color: #ef4444;
    animation: gentleShake 0.5s ease-in-out;
}

@keyframes gentleShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Плавное появление select options */
.form-group select option {
    animation: gentleFadeIn 0.3s ease-out;
}

/* Кастомные стрелки для select */
.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

/* === TEXT PAGES STYLES === */

.text-page-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: calc(100vh - 160px);
}

.text-page-content {
    background: var(--surface);
    padding: 3rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    line-height: 1.7;
    animation: gentleSlideUp 1s ease-out;
}

/* Заголовки */
.text-page-title {
    font-size: 2.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.text-page-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--gradient);
    border-radius: 2px;
}

.text-page-subtitle {
    font-size: 1.8rem;
    color: var(--primary);
    margin: 2.5rem 0 1rem 0;
    font-weight: 600;
    border-left: 4px solid var(--primary);
    padding-left: 1rem;
}

.text-page-h3 {
    font-size: 1.4rem;
    color: var(--text);
    margin: 2rem 0 1rem 0;
    font-weight: 600;
}

.text-page-h4 {
    font-size: 1.2rem;
    color: var(--text-light);
    margin: 1.5rem 0 0.8rem 0;
    font-weight: 500;
}

/* Основной текст */
.text-page-paragraph {
    margin-bottom: 1.5rem;
    color: var(--text);
    font-size: 1.1rem;
    text-align: justify;
}

.text-page-lead {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 2rem;
    text-align: center;
    font-style: italic;
}

/* Цитаты */
.text-page-blockquote {
    background: linear-gradient(135deg, var(--background), rgba(139, 95, 191, 0.05));
    border-left: 4px solid var(--secondary);
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
    position: relative;
}

.text-page-blockquote::before {
    content: '"';
    font-size: 3rem;
    color: var(--secondary);
    opacity: 0.3;
    position: absolute;
    top: 0.5rem;
    left: 1rem;
}

.text-page-blockquote-footer {
    text-align: right;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 1rem;
    font-style: normal;
}

/* Списки */
.text-page-ul,
.text-page-ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.text-page-li {
    margin-bottom: 0.8rem;
    color: var(--text);
    position: relative;
}

.text-page-ul .text-page-li::before {
    content: '•';
    color: var(--primary);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

.text-page-ol {
    counter-reset: list-counter;
}

.text-page-ol .text-page-li {
    counter-increment: list-counter;
}

.text-page-ol .text-page-li::before {
    content: counter(list-counter) '.';
    color: var(--primary);
    font-weight: bold;
    display: inline-block;
    width: 2em;
    margin-left: -2em;
}

/* Вложенные списки */
.text-page-ul .text-page-ul,
.text-page-ol .text-page-ol,
.text-page-ul .text-page-ol,
.text-page-ol .text-page-ul {
    margin: 0.5rem 0 0.5rem 1.5rem;
    font-size: 0.95em;
}

/* Таблицы */
.text-page-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.text-page-table th {
    background: var(--primary);
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 1rem;
}

.text-page-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}

.text-page-table tr:hover {
    background: rgba(139, 95, 191, 0.05);
}

.text-page-table tr:last-child td {
    border-bottom: none;
}

/* Карточки */
.text-page-card {
    background: var(--background);
    padding: 2rem;
    border-radius: var(--radius);
    border-left: 4px solid var(--accent);
    margin: 2rem 0;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.text-page-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.text-page-card-title {
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 1rem;
    font-weight: 600;
}

/* Предупреждения и уведомления */
.text-page-alert {
    padding: 1.5rem;
    border-radius: var(--radius);
    margin: 1.5rem 0;
    border-left: 4px solid;
}

.text-page-alert-info {
    background: rgba(0, 212, 255, 0.1);
    border-left-color: var(--accent);
    color: var(--text);
}

.text-page-alert-warning {
    background: rgba(255, 107, 139, 0.1);
    border-left-color: var(--secondary);
    color: var(--text);
}

.text-page-alert-success {
    background: rgba(16, 185, 129, 0.1);
    border-left-color: #10b981;
    color: var(--text);
}

/* Код */
.text-page-code {
    background: var(--dark);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.text-page-pre {
    background: var(--dark);
    color: white;
    padding: 1.5rem;
    border-radius: var(--radius);
    overflow-x: auto;
    margin: 1.5rem 0;
    font-family: 'Courier New', monospace;
    line-height: 1.5;
}

/* Разделители */
.text-page-hr {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    margin: 2.5rem 0;
}

/* Изображения */
.text-page-img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    margin: 1.5rem 0;
    box-shadow: var(--shadow);
}

.text-page-img-caption {
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: -0.5rem;
    margin-bottom: 1.5rem;
    font-style: italic;
}

/* Ссылки в тексте */
.text-page-content a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.text-page-content a:hover {
    color: var(--primary-dark);
    border-bottom-color: var(--primary);
}

/* Аккордеон/раскрывающиеся блоки */
.text-page-accordion {
    margin: 1.5rem 0;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.text-page-accordion-header {
    background: var(--background);
    padding: 1.2rem 1.5rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.text-page-accordion-header:hover {
    background: rgba(139, 95, 191, 0.05);
}

.text-page-accordion-content {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.text-page-accordion.active .text-page-accordion-content {
    padding: 1.5rem;
    max-height: 500px;
}

/* Хлебные крошки */
.text-page-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.text-page-breadcrumbs a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.text-page-breadcrumbs a:hover {
    color: var(--primary-dark);
}

.text-page-breadcrumbs span {
    color: var(--text-light);
}

/* Адаптивность для текстовых страниц */
@media (max-width: 768px) {
    .text-page-container {
        padding: 1rem;
        min-height: calc(100vh - 140px);
    }
    
    .text-page-content {
        padding: 2rem;
    }
    
    .text-page-title {
        font-size: 2rem;
    }
    
    .text-page-subtitle {
        font-size: 1.5rem;
    }
    
    .text-page-h3 {
        font-size: 1.3rem;
    }
    
    .text-page-table {
        font-size: 0.9rem;
    }
    
    .text-page-table th,
    .text-page-table td {
        padding: 0.8rem 0.5rem;
    }
}

@media (max-width: 480px) {
    .text-page-content {
        padding: 1.5rem;
    }
    
    .text-page-title {
        font-size: 1.8rem;
    }
    
    .text-page-subtitle {
        font-size: 1.3rem;
    }
    
    .text-page-paragraph {
        font-size: 1rem;
        text-align: left;
    }
    
    .text-page-ul,
    .text-page-ol {
        padding-left: 1.5rem;
    }
    
    .text-page-table {
        display: block;
        overflow-x: auto;
    }
}

/* Анимации */
@keyframes gentleSlideUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.text-page-content > * {
    animation: gentleFadeIn 0.6s ease-out both;
}

.text-page-content > *:nth-child(1) { animation-delay: 0.1s; }
.text-page-content > *:nth-child(2) { animation-delay: 0.2s; }
.text-page-content > *:nth-child(3) { animation-delay: 0.3s; }
.text-page-content > *:nth-child(4) { animation-delay: 0.4s; }
.text-page-content > *:nth-child(5) { animation-delay: 0.5s; }

@keyframes gentleFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === 403 ERROR PAGE STYLES === */

.error-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 160px);
    padding: 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    text-align: center;
}

.error-card {
    background: var(--surface);
    padding: 4rem 3rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    max-width: 600px;
    width: 100%;
    animation: gentleSlideUp 1s ease-out;
    position: relative;
    overflow: hidden;
}

.error-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff6b8b, #ff4757, #ff3742);
}

.error-icon {
    font-size: 6rem;
    margin-bottom: 1.5rem;
    animation: bounce 2s ease-in-out infinite;
}

.error-title {
    font-size: 3rem;
    background: linear-gradient(135deg, #ff6b8b, #ff4757);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1rem;
    font-weight: 700;
}

.error-subtitle {
    font-size: 1.5rem;
    color: var(--text);
    margin-bottom: 1rem;
    font-weight: 600;
}

.error-message {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    line-height: 1.6;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.error-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 140px;
    justify-content: center;
    border: none;
    cursor: pointer;
}

.error-btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.error-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.error-btn-secondary {
    background: var(--background);
    color: var(--text);
    border: 2px solid var(--border);
}

.error-btn-secondary:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-3px);
}

.error-code {
    background: var(--background);
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    border-left: 4px solid #ff4757;
    margin-top: 2rem;
}

.error-code pre {
    margin: 0;
    font-family: 'Courier New', monospace;
    color: var(--text);
    font-size: 0.9rem;
    text-align: left;
}

.error-animation {
    margin-top: 2rem;
    opacity: 0.7;
}

/* Анимации */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) scale(1);
    }
    40% {
        transform: translateY(-10px) scale(1.1);
    }
    60% {
        transform: translateY(-5px) scale(1.05);
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.error-shake {
    animation: shake 0.5s ease-in-out;
}

/* Адаптивность */
@media (max-width: 768px) {
    .error-container {
        padding: 1rem;
        min-height: calc(100vh - 140px);
    }
    
    .error-card {
        padding: 3rem 2rem;
    }
    
    .error-title {
        font-size: 2.5rem;
    }
    
    .error-subtitle {
        font-size: 1.3rem;
    }
    
    .error-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .error-btn {
        width: 100%;
        max-width: 250px;
    }
}

@media (max-width: 480px) {
    .error-card {
        padding: 2rem 1.5rem;
    }
    
    .error-title {
        font-size: 2rem;
    }
    
    .error-icon {
        font-size: 4rem;
    }
    
    .error-message {
        font-size: 1rem;
    }
}

/* === 404 ERROR PAGE STYLES === */

.error-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.error-card {
    background: var(--surface);
    padding: 4rem 3rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    max-width: 600px;
    width: 100%;
    animation: gentleSlideUp 1s ease-out;
    position: relative;
    z-index: 2;
}

.error-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
    border-radius: var(--radius) var(--radius) 0 0;
}

.error-icon {
    font-size: 6rem;
    margin-bottom: 1.5rem;
    animation: gentleFloat 4s ease-in-out infinite;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
}

.error-icon::after {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    opacity: 0.1;
    z-index: -1;
    animation: pulseGlow 2s ease-in-out infinite;
}

.error-title {
    font-size: 8rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0.5rem;
    line-height: 1;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    animation: gentleBounce 3s ease-in-out infinite;
}

.error-subtitle {
    font-size: 2rem;
    color: var(--text);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.error-message {
    color: var(--text-light);
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    line-height: 1.6;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* Советы */
.error-tips {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 3rem;
}

.tip-card {
    background: var(--background);
    padding: 1.5rem 1rem;
    border-radius: var(--radius);
    border: 2px solid var(--border);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    color: var(--text);
}

.tip-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.tip-card i {
    color: var(--primary);
    font-size: 1.2rem;
    width: 24px;
}

/* Кнопки */
.error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.error-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    min-width: 160px;
    justify-content: center;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.error-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.error-btn:hover::before {
    left: 100%;
}

.error-btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 8px 25px rgba(139, 95, 191, 0.3);
}

.error-btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(139, 95, 191, 0.4);
}

.error-btn-secondary {
    background: linear-gradient(135deg, var(--secondary), #db2777);
    color: white;
    box-shadow: 0 8px 25px rgba(255, 107, 139, 0.3);
}

.error-btn-secondary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(255, 107, 139, 0.4);
}

.error-btn-outline {
    background: transparent;
    color: var(--text);
    border: 2px solid var(--border);
}

.error-btn-outline:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-3px);
}

/* Декоративные элементы */
.error-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-heart {
    position: absolute;
    font-size: 2rem;
    opacity: 0.3;
    animation: floatingHearts 6s ease-in-out infinite;
    filter: blur(0.5px);
}

@keyframes floatingHearts {
    0%, 100% {
        transform: translateY(0) rotate(0deg) scale(1);
        opacity: 0.2;
    }
    25% {
        transform: translateY(-20px) rotate(90deg) scale(1.2);
        opacity: 0.4;
    }
    50% {
        transform: translateY(-40px) rotate(180deg) scale(1);
        opacity: 0.2;
    }
    75% {
        transform: translateY(-20px) rotate(270deg) scale(0.8);
        opacity: 0.4;
    }
}

/* Шутка */
.error-joke {
    background: linear-gradient(135deg, rgba(139, 95, 191, 0.1), rgba(255, 107, 139, 0.1));
    padding: 1.5rem;
    border-radius: var(--radius);
    border-left: 4px solid var(--accent);
    margin-top: 2rem;
}

.error-joke p {
    margin: 0;
    color: var(--text);
    font-size: 1rem;
    font-weight: 500;
}

/* Анимации */
@keyframes gentleBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) scale(1);
    }
    40% {
        transform: translateY(-10px) scale(1.05);
    }
    60% {
        transform: translateY(-5px) scale(1.02);
    }
}

@keyframes gentleFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    33% {
        transform: translateY(-10px) rotate(5deg);
    }
    66% {
        transform: translateY(5px) rotate(-5deg);
    }
}

@keyframes pulseGlow {
    0%, 100% {
        opacity: 0.1;
        transform: scale(1);
    }
    50% {
        opacity: 0.2;
        transform: scale(1.1);
    }
}

/* Адаптивность */
@media (max-width: 768px) {
    .error-container {
        padding: 1rem;
    }
    
    .error-card {
        padding: 3rem 2rem;
    }
    
    .error-title {
        font-size: 6rem;
    }
    
    .error-subtitle {
        font-size: 1.5rem;
    }
    
    .error-message {
        font-size: 1.1rem;
    }
    
    .error-tips {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .error-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .error-btn {
        width: 100%;
        max-width: 250px;
    }
}

@media (max-width: 480px) {
    .error-card {
        padding: 2rem 1.5rem;
    }
    
    .error-title {
        font-size: 4rem;
    }
    
    .error-icon {
        font-size: 4rem;
    }
    
    .error-subtitle {
        font-size: 1.3rem;
    }
    
    .error-message {
        font-size: 1rem;
    }
    
    .tip-card {
        padding: 1.25rem 0.75rem;
        font-size: 0.9rem;
    }
}

/* Улучшенная анимация для всей карточки */
.error-card {
    animation: gentleCardAppear 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes gentleCardAppear {
    0% {
        opacity: 0;
        transform: translateY(60px) scale(0.9) rotateX(10deg);
    }
    60% {
        opacity: 0.8;
        transform: translateY(-10px) scale(1.02) rotateX(-2deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1) rotateX(0deg);
    }
}

/* Плавное появление элементов внутри */
.error-icon,
.error-title,
.error-subtitle,
.error-message,
.error-tips,
.error-actions,
.error-joke {
    animation: gentleFadeInUp 0.8s ease-out both;
}

.error-icon { animation-delay: 0.1s; }
.error-title { animation-delay: 0.2s; }
.error-subtitle { animation-delay: 0.3s; }
.error-message { animation-delay: 0.4s; }
.error-tips { animation-delay: 0.5s; }
.error-actions { animation-delay: 0.6s; }
.error-joke { animation-delay: 0.7s; }

@keyframes gentleFadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
        filter: blur(5px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}