/* ===================================================== */
/* styles.css - ОБЪЕДИНЕННЫЙ И ОПТИМИЗИРОВАННЫЙ ФАЙЛ СТИЛЕЙ */
/* Включает все стили из предоставленных файлов,          */
/* с поддержкой светлой и темной темы.                    */
/* ===================================================== */

/* ==================== */
/* CSS-ПЕРЕМЕННЫЕ (СВЕТЛАЯ ТЕМА ПО УМОЛЧАНИЮ) */
/* ==================== */
:root {
    /* Основные цвета (для светлой темы) */
    --primary: #6366f1;          /* Индиго */
    --primary-dark: #4f46e5;
    --secondary: #ec4899;         /* Розовый */
    --accent: #10b981;            /* Изумрудный */

    /* Фон и карточки (светлая тема) */
    --bg-gradient: linear-gradient(135deg, #eef2ff 0%, #fdf2f8 100%);
    --card-bg: rgba(255, 255, 255, 0.9);
    --card-border: rgba(99, 102, 241, 0.2);
    --border-color: #e2e8f0;      /* Серый для границ */

    /* Текст (светлая тема) */
    --text-primary: #1f2937;      /* Темно-серый, почти черный */
    --text-secondary: #4b5563;    /* Серый */
    --text-muted: #9ca3af;        /* Светло-серый */

    /* RGB значения (для rgba) */
    --primary-rgb: 99, 102, 241;

    /* Статусы */
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    --neutral: #6b7280;
}

/* ==================== */
/* ТЕМНАЯ ТЕМА */
/* ==================== */
[data-theme="dark"] {
    /* Основные цвета (для темной темы) */
    --primary: #818cf8;           /* Более светлый индиго */
    --primary-dark: #6366f1;
    --secondary: #f472b6;         /* Более светлый розовый */

    /* Фон и карточки (темная тема) */
    --bg-gradient: linear-gradient(135deg, #0f0719 0%, #1a1025 100%);
    --card-bg: rgba(17, 24, 39, 0.95); /* Темно-серый, почти черный */
    --card-border: rgba(129, 140, 248, 0.3);
    --border-color: #374151;       /* Темно-серый */

    /* Текст (темная тема) */
    --text-primary: #f3f4f6;      /* Почти белый */
    --text-secondary: #d1d5db;    /* Светло-серый */
    --text-muted: #9ca3af;        /* Серый */
}

/* ========== БАЗОВЫЕ КЛАССЫ (все размеры) ========== */
.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid-cols-5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.grid-cols-6 {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

/* ========== ПЛАНШЕТЫ (md: 768px и выше) ========== */
@media (min-width: 768px) {
    .md\:grid-cols-1 {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .md\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    .md\:grid-cols-5 {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
    .md\:grid-cols-6 {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

/* ========== ДЕСКТОПЫ (lg: 1024px и выше) ========== */
@media (min-width: 1024px) {
    .lg\:grid-cols-1 {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
    .lg\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .lg\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .lg\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    .lg\:grid-cols-5 {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
    .lg\:grid-cols-6 {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

/* ========== БОЛЬШИЕ ЭКРАНЫ (xl: 1280px и выше) ========== */
@media (min-width: 1280px) {
    .xl\:grid-cols-1 {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
    .xl\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .xl\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .xl\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    .xl\:grid-cols-5 {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
    .xl\:grid-cols-6 {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

/* ========== ОЧЕНЬ БОЛЬШИЕ ЭКРАНЫ (2xl: 1536px и выше) ========== */
@media (min-width: 1536px) {
    .\32xl\:grid-cols-1 {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
    .\32xl\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .\32xl\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .\32xl\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    .\32xl\:grid-cols-5 {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
    .\32xl\:grid-cols-6 {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

/* ========== ВСПОМОГАТЕЛЬНЫЕ КЛАССЫ ========== */
.grid {
    display: grid;
}

.gap-6 {
    gap: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

/* ==================== */
/* БАЗОВЫЕ СТИЛИ И СБРОС */
/* ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    overflow-x: hidden;
    min-height: 100vh;
    background: var(--bg-gradient);
    color: var(--text-primary);
    transition: background 0.3s ease, color 0.2s ease;
    line-height: 1.5;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-gradient);
    z-index: -2;
    pointer-events: none;
}

/* Контейнер для частиц (если используется) */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* ==================== */
/* ОСНОВНЫЕ КОМПОНЕНТЫ */
/* ==================== */

/* ------ Контейнеры ------ */
.dashboard-container {
    position: relative;
    z-index: 10;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.settings-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* ------ Glass-эффекты и карточки ------ */
.glass-card,
.modern-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modern-card {
    border-radius: 20px; /* Немного отличаем для разнообразия, но можно унифицировать */
}

.glass-card:hover,
.modern-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 30px 60px -12px rgba(var(--primary-rgb), 0.2);
}

/* Убираем возможный конфликт :hover для modern-card, оставляем общий */
.modern-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 30px 60px -12px rgba(var(--primary-rgb), 0.2);
}


/* Специфичные карточки */
.metric-card,
.application-card,
.interview-card,
.task-card,
.invitation-card,
.candidate-card,
.vacancy-card,
.notification-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), inset 0 1px 0 0 rgba(255, 255, 255, 0.1);
}

.metric-card:hover,
.application-card:hover,
.interview-card:hover,
.task-card:hover,
.invitation-card:hover,
.candidate-card:hover,
.vacancy-card:hover,
.notification-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(var(--primary-rgb), 0.1);
}

.metric-card:hover::before {
    opacity: 1;
}

.metric-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    background: rgba(var(--primary-rgb), 0.1); /* Добавим фон по умолчанию */
    color: var(--primary);
}

/* Стили для карточек с левой цветной полосой */
.interview-card.invited,
.application-card.invited {
    border-left: 4px solid #10b981; /* Оставляем фиксированные цвета для статусов */
}

.interview-card.pending,
.application-card.pending {
    border-left: 4px solid #f59e0b;
}

.interview-card.completed,
.application-card.completed {
    border-left: 4px solid #3b82f6;
}

.interview-card.rejected,
.application-card.rejected {
    border-left: 4px solid #ef4444;
}

.task-card.completed {
    border-left: 4px solid #10b981;
}

/* Стили для application-card */
.application-card.invited { border-left-color: #10b981; }
.application-card.rejected { border-left-color: #ef4444; }
.application-card.pending { border-left-color: #f59e0b; }

/* Стили для interview-card (если используется отдельно) */
.interview-card.invited { border-left-color: #10b981; }
.interview-card.pending { border-left-color: #f59e0b; }
.interview-card.completed { border-left-color: #3b82f6; }

/* Стили для candidate-card */
.candidate-card.top-candidate {
    border: 2px solid #fbbf24;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.05), transparent);
}

.candidate-card.fraud {
    border: 2px solid #ef4444;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.05), transparent);
}

.candidate-card.selected {
    border-color: #6366f1;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(139, 92, 246, 0.05));
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
    position: relative;
}

.candidate-card.selected::before {
    content: '✓';
    position: absolute;
    top: 12px;
    left: 12px;
    width: 24px;
    height: 24px;
    background: #6366f1;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
}

/* Стили для pricing-card */
.pricing-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 32px;
    padding: 2rem;
    transition: all 0.4s ease;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 30px 60px -12px rgba(var(--primary-rgb), 0.3);
}

.pricing-card.popular {
    border: 2px solid var(--primary);
    transform: scale(1.02);
}

.popular-badge {
    position: absolute;
    top: 1.5rem;
    right: -3rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 0.5rem 3rem;
    transform: rotate(45deg);
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
    z-index: 2;
}

.price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-primary);
}

/* Стили для task-card */
.task-card {
    margin-bottom: 1.5rem;
}

.task-number {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    background: rgba(var(--primary-rgb), 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--primary);
}

.task-timer {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    background: rgba(var(--primary-rgb), 0.1);
    border-radius: 9999px;
    font-size: 0.75rem;
    color: var(--primary);
}

/* Стили для платформы */
.platform-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.platform-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.platform-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.platform-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.platform-card-icon.employer {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
}

.platform-card-icon.candidate {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
}

.platform-card-icon i {
    color: white;
    font-size: 1.25rem;
}

/* Стили для AI-блоков */
.ai-block,
.ai-summary {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.05) 0%, rgba(var(--primary-rgb), 0.1) 100%);
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    border-radius: 20px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

.ai-block::before,
.ai-summary::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 20px;
    font-size: 8rem;
    color: rgba(var(--primary-rgb), 0.1);
    font-family: serif;
    line-height: 1;
    pointer-events: none;
}

/* ------ Кнопки ------ */
.btn-primary,
.action-button.primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border: none;
}

.btn-primary,
.btn-secondary,
.action-button,
.platform-button {
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: none;
    font-size: 0.875rem;
    text-decoration: none;
}

.btn-primary:hover,
.action-button.primary:hover,
.platform-button.employer:hover,
.platform-button.candidate:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(var(--primary-rgb), 0.3);
}

.btn-secondary {
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
    border: 1px solid rgba(var(--primary-rgb), 0.2);
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(var(--primary-rgb), 0.2);
}

.action-button {
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
    border: 1px solid transparent;
    padding: 0.5rem 1rem;
    font-weight: 500;
    font-size: 0.875rem;
}

.action-button:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(var(--primary-rgb), 0.2);
}

.action-button.success {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}
.action-button.success:hover {
    background: #10b981;
    color: white;
}

.action-button.warning {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}
.action-button.warning:hover {
    background: #f59e0b;
    color: white;
}

.action-button.danger {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}
.action-button.danger:hover {
    background: #ef4444;
    color: white;
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    border: none;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(239, 68, 68, 0.3);
}

.platform-button.employer {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
}

.platform-button.candidate {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    color: white;
}

/* Убираем дубликат .action-button.primary (уже определен выше) */
/* Убираем дубликат .action-button (уже определен выше) */

/* ------ Статус бейджи ------ */
.status-badge,
.hire-badge,
.level-badge,
.risk-tag {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    border: 1px solid transparent;
    white-space: nowrap;
}

/* Общие стили для статусов */
.status-badge.success,
.status-badge.verified,
.status-badge.accepted,
.status-badge.completed,
.hire-badge.hired {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.2);
}

.status-badge.warning,
.status-badge.pending,
.status-badge.paused,
.hire-badge.reserve {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    border-color: rgba(245, 158, 11, 0.2);
}

.status-badge.info {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border-color: rgba(59, 130, 246, 0.2);
}

.status-badge.error,
.status-badge.danger,
.status-badge.declined,
.status-badge.rejected,
.hire-badge.rejected {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.2);
}

.status-badge.neutral,
.status-badge.no_show {
    background: rgba(107, 114, 128, 0.1);
    color: #6b7280;
    border-color: rgba(107, 114, 128, 0.2);
}

/* Уровни грейдов */
.level-badge.intern { background: #e0f2fe; color: #0284c7; }
.level-badge.junior { background: #dbeafe; color: #2563eb; }
.level-badge.middle { background: #ede9fe; color: #7c3aed; }
.level-badge.senior { background: #fae8ff; color: #c026d3; }
.level-badge.lead { background: #fee2e2; color: #dc2626; }

[data-theme="dark"] .level-badge.intern { background: rgba(2, 132, 199, 0.2); color: #7dd3fc; }
[data-theme="dark"] .level-badge.junior { background: rgba(37, 99, 235, 0.2); color: #93c5fd; }
[data-theme="dark"] .level-badge.middle { background: rgba(124, 58, 237, 0.2); color: #c4b5fd; }
[data-theme="dark"] .level-badge.senior { background: rgba(192, 38, 211, 0.2); color: #f0abfc; }
[data-theme="dark"] .level-badge.lead { background: rgba(220, 38, 38, 0.2); color: #fca5a5; }

/* Риск-теги */
.risk-low {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.risk-medium {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.risk-high {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

[data-theme="dark"] .risk-low { background: rgba(5, 150, 105, 0.2); color: #34d399; }
[data-theme="dark"] .risk-medium { background: rgba(217, 119, 6, 0.2); color: #fbbf24; }
[data-theme="dark"] .risk-high { background: rgba(220, 38, 38, 0.2); color: #f87171; }

/* Бейджи навыков */
.skill-badge,
.skill-tag {
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    transition: all 0.3s ease;
    display: inline-block;
}

.skill-badge.matched {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.2);
}

.skill-badge.missing {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.2);
}

.skill-tag.professional {
    background-color: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.skill-tag.life {
    background-color: rgba(168, 85, 247, 0.1);
    color: #a855f7;
    border: 1px solid rgba(168, 85, 247, 0.2);
}

.skill-badge:hover,
.skill-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(var(--primary-rgb), 0.2);
}

/* AI-бейдж */
.ai-badge {
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

/* Другие бейджи */
.candidate-badge,
.credit-badge,
.urgent-badge {
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.candidate-badge {
    background: linear-gradient(135deg, #6366f1, #ec4899);
}

.credit-badge {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
}

.urgent-badge {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

/* ------ Прогресс-бары ------ */
.progress-bar {
    height: 8px;
    background: rgba(var(--primary-rgb), 0.1);
    border-radius: 9999px;
    overflow: hidden;
    width: 100%;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 9999px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Специфичный для некоторых страниц прогресс-бар */
.progress-bar.small {
    height: 4px;
}

/* ------ Текст и типография ------ */
.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* AI Score */
.ai-score {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Score Circle */
.score-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--card-bg);
    border: 4px solid;
    transition: all 0.3s ease;
    font-weight: bold;
    line-height: 1.2;
}

.score-circle .value {
    font-size: 1.75rem;
}

.score-circle .label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.score-circle.high { border-color: #10b981; color: #10b981; }
.score-circle.medium { border-color: #f59e0b; color: #f59e0b; }
.score-circle.low { border-color: #ef4444; color: #ef4444; }

/* Специфичный для некоторых страниц */
.score-circle.small {
    width: 60px;
    height: 60px;
}
.score-circle.small .value { font-size: 1.25rem; }

/* Радар-чарт контейнер */
.radar-container {
    position: relative;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

.radar-gradient {
    background: radial-gradient(circle at center, rgba(var(--primary-rgb), 0.1) 0%, rgba(var(--primary-rgb), 0.05) 70%, transparent 100%);
}

/* Статистические числа */
.stat-number {
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Для метрик в карточках */
.stat-item {
    text-align: center;
    padding: 1rem;
    background: rgba(var(--primary-rgb), 0.05);
    border-radius: 16px;
    border: 1px solid rgba(var(--primary-rgb), 0.1);
}

/* ------ Анимации ------ */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
.floating {
    animation: float 6s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}
.pulse-glow {
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}
.animate-slideInRight,
.notification-toast {
    animation: slideInRight 0.3s ease-out forwards;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.animate-spin {
    animation: spin 1s linear infinite;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in {
    animation: fadeIn 0.5s ease forwards;
}

@keyframes urgentPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(245, 158, 11, 0); }
}
.urgent-card {
    animation: urgentPulse 2s ease-in-out infinite;
    border: 2px solid #f59e0b;
}

/* ------ Формы и инпуты ------ */
.form-input,
.input-field,
.task-textarea {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    width: 100%;
    color: var(--text-primary);
    transition: all 0.3s ease;
    font-family: inherit;
    font-size: 1rem;
}

.form-input:focus,
.input-field:focus,
.task-textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
    outline: none;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.form-label i {
    margin-right: 0.5rem;
    color: var(--primary);
}

.task-textarea {
    resize: vertical;
    min-height: 100px;
}

/* Инпуты с префиксом (для телеграма, соцсетей) */
.input-with-prefix-wrapper {
    position: relative;
}

/* Заголовки секций */
.social-section-title {
    font-size: 1.5rem; /* Увеличиваем размер */
    font-weight: 700; /* Делаем жирнее (700 вместо обычного 600) */
    margin-top: 2rem; /* Отступ сверху */
    margin-bottom: 1.5rem; /* Отступ снизу */
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(var(--primary-rgb), 0.2);
    letter-spacing: -0.02em;
    position: relative;
}

/* Первая секция (Мессенджеры) - убираем верхний отступ */
.social-section-title:first-of-type {
    margin-top: 0;
}

/* Добавляем декоративную линию */
.social-section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 2px;
}

/* Иконки в заголовках */
.social-section-title i {
    font-size: 1.4rem; /* Увеличиваем иконки */
    background: rgba(var(--primary-rgb), 0.1);
    padding: 0.5rem;
    border-radius: 12px;
    width: 2.5rem;
    height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Разные цвета для иконок */
.social-section-title .fa-comment-dots {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.social-section-title .fa-share-alt {
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
}

.social-section-title .fa-map-marker-alt {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.social-section-title .fa-pen-fancy {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
}

/* Адаптация для мобильных */
@media (max-width: 640px) {
    .social-section-title {
        font-size: 1.25rem;
        margin-top: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .social-section-title i {
        font-size: 1.2rem;
        width: 2rem;
        height: 2rem;
    }
}

.input-prefix, 
.telegram-prefix {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 500;
    border-right: 2px solid var(--border-color);
    height: 100%;
    min-height: 42px;
    border-radius: 10px 0 0 10px;
    white-space: nowrap;
}

.input-with-prefix {
    padding-left: 3rem !important;
}

.telegram-prefix {
    /* Специфичный стиль для телеграма */
}
.telegram-input-wrapper input {
    padding-left: 2.5rem !important;
}

/* Чар-каунтер */
.char-counter {
    text-align: right;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}
.char-counter.warning { color: #f59e0b; }
.char-counter.good { color: #10b981; }

/* ------ Уведомления (Toast) ------ */
.notification-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 16px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 400px;
    border-left-width: 4px;
    border-left-style: solid;
}

.notification-toast.success { border-left-color: #10b981; }
.notification-toast.error { border-left-color: #ef4444; }
.notification-toast.info { border-left-color: #3b82f6; }
.notification-toast.warning { border-left-color: #f59e0b; }

/* Стили для разных типов тостов (если нужны дополнительные) */
.notification-toast.success .toast-icon { color: #10b981; }
.notification-toast.error .toast-icon { color: #ef4444; }
/* ... */

/* ------ Модальные окна ------ */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 1rem;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 2rem;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-open {
    overflow: hidden;
}

/* Специфичные модалки */
#loginModalContent,
.promocode-modal-content {
    /* Наследуют .modal-content */
}

.promocode-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top-left-radius: inherit;
    border-top-right-radius: inherit;
}

.promocode-body {
    padding: 1.5rem;
    background: var(--card-bg);
}

.scratch-card-white {
    position: relative;
    width: 100%;
    height: 250px;
    margin: 0 auto 1.5rem;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    background: var(--card-bg);
    border: 1px solid var(--card-border);
}

#scratchCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 40 40"><circle cx="20" cy="20" r="15" fill="white" opacity="0.7"/></svg>') 20 20, crosshair;
    z-index: 4;
    border-radius: 15px;
}

.promocode-reveal-white {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    text-align: center;
    z-index: 1;
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.5s ease, transform 0.5s ease;
    background: var(--card-bg);
}

.promocode-reveal-white.visible {
    opacity: 1;
    transform: scale(1);
}

.promocode-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 2px;
    margin: 0.5rem 0;
    padding: 0.5rem 1rem;
    background: rgba(var(--primary-rgb), 0.1);
    border-radius: 8px;
    border: 2px solid rgba(var(--primary-rgb), 0.3);
    font-family: 'Courier New', monospace;
    word-break: break-word;
}

.copy-promocode-btn {
    display: none;
    margin: 1rem auto 0;
    background: linear-gradient(135deg, var(--primary) 0%, color-mix(in srgb, var(--primary) 80%, black) 100%);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.3);
}

/* ------ Фильтры и вкладки ------ */
.filter-panel {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.filter-tabs,
.result-tabs,
.resume-tabs,
.settings-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.settings-tabs {
    background: rgba(var(--primary-rgb), 0.05);
    padding: 0.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.filter-tab,
.result-tab,
.resume-tab,
.settings-tab {
    padding: 0.5rem 1rem;
    border-radius: 100px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
}

.filter-tab:hover,
.result-tab:hover,
.resume-tab:hover,
.settings-tab:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(var(--primary-rgb), 0.05);
}

.filter-tab.active,
.result-tab.active,
.resume-tab.active,
.settings-tab.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border-color: transparent;
}

.settings-tab {
    flex: 1;
    justify-content: center;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    background: transparent;
}
.settings-tab.active {
    box-shadow: 0 10px 20px rgba(var(--primary-rgb), 0.2);
}

/* Контент вкладок */
.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}
.tab-content.active {
    display: block;
}

/* ------ Сетки и лейауты ------ */
.interviews-grid,
.applications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 1.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.platform-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Утилиты для сеток */
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
@media (min-width: 768px) {
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.gap-6 { gap: 1.5rem; }

/* ------ Специфичные компоненты для разных страниц ------ */

/* Стили для index.php (scroll-секции) */
.scroll-section {
    position: fixed;
    top: 2%;
    left: 2%;
    right: 2%;
    bottom: 2%;
    border-radius: 25px;
    overflow: hidden;
    z-index: 100;
    background: var(--card-bg); /* Используем переменную */
    backdrop-filter: blur(20px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(50px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    padding: 10vh 2rem 3rem;
    overflow-y: auto;
    color: var(--text-primary);
    overflow-x: hidden;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.slide::-webkit-scrollbar {
    display: none;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-progress {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 101;
}

.progress-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.progress-dot.active {
    background: var(--primary);
    transform: scale(1.4);
    border-color: var(--secondary);
    box-shadow: 0 0 0 2px rgba(var(--primary-rgb), 0.2);
}

/* Стили для order.php */
.form-container {
    position: relative;
    max-width: 1200px;
    margin: 2rem auto;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.form-step {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.form-step.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.progress-bar-container {
    height: 4px;
    background: rgba(226, 232, 240, 0.5);
    border-radius: 2px;
    overflow: hidden;
}

.option-card {
    border: 2px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    background: var(--card-bg);
    overflow: hidden;
    padding: 1rem;
}

.option-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.option-card.selected {
    border: 2px solid var(--primary);
    background: rgba(var(--primary-rgb), 0.05);
}

.step-indicator {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    transition: all 0.3s ease;
}

.step-indicator.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    transform: scale(1.1);
}

.step-indicator.completed {
    background: #10b981;
    color: white;
}

/* Горизонтальный скролл для опций на мобилках */
.site-type-scroll,
.design-style-scroll,
.color-preferences-scroll {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    margin: 0 -1rem;
    padding: 0 1rem 1rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
    gap: 0.75rem;
}
.site-type-scroll::-webkit-scrollbar,
.design-style-scroll::-webkit-scrollbar,
.color-preferences-scroll::-webkit-scrollbar {
    display: none;
}

@media (min-width: 768px) {
    .site-type-scroll,
    .design-style-scroll,
    .color-preferences-scroll {
        display: grid;
        overflow-x: visible;
        margin: 0;
        padding: 0;
    }
    .site-type-scroll { grid-template-columns: repeat(3, 1fr); }
    .design-style-scroll { grid-template-columns: repeat(5, 1fr); }
    .color-preferences-scroll { grid-template-columns: repeat(5, 1fr); }
}

.scroll-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #cbd5e0;
    transition: all 0.3s ease;
}
.scroll-dot.active {
    background: var(--primary);
    transform: scale(1.2);
}

.color-swatch {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    margin: 0 auto;
    border: 3px solid var(--border-color);
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.color-option.selected .color-swatch {
    border-color: var(--primary);
    transform: scale(1.1);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.2);
}

/* Стили для employer/chat.php */
.chat-container {
    display: flex;
    height: calc(100vh - 120px);
    gap: 1.5rem;
}

.chat-sidebar {
    width: 320px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.chat-main {
    flex: 1;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.message {
    display: flex;
    gap: 1rem;
    animation: fadeIn 0.5s ease;
}

.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.message-avatar.user { background: var(--primary); color: white; }
.message-avatar.assistant { background: linear-gradient(135deg, #10b981, #059669); color: white; }

.message-bubble {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 18px;
    padding: 1rem 1.25rem;
    color: var(--text-primary);
    line-height: 1.6;
    max-width: 80%;
}
.message-bubble.user {
    background: var(--primary);
    color: white;
    margin-left: auto;
}
.message-bubble.assistant {
    background: rgba(var(--primary-rgb), 0.05);
}
.message-bubble.system {
    background: rgba(107, 114, 128, 0.1);
    color: var(--text-secondary);
    text-align: center;
    font-style: italic;
    border: 1px dashed var(--border-color);
    max-width: 90%;
    margin: 0 auto;
}

.chat-input-area {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.message-input {
    flex: 1;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 1rem 1.25rem;
    color: var(--text-primary);
    font-size: 1rem;
    resize: none;
    max-height: 150px;
    transition: all 0.3s ease;
}
.message-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

.send-btn {
    width: 50px;
    height: 50px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}
.send-btn:hover:not(:disabled) {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 10px 20px rgba(var(--primary-rgb), 0.3);
}

.typing-indicator {
    display: flex;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(var(--primary-rgb), 0.05);
    border-radius: 18px;
    width: fit-content;
}
.typing-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: typing 1.4s infinite;
}
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-10px); }
}

/* Стили для employer/interview.php и подобных */
.chat-timeline {
    max-height: 400px;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chat-message {
    display: flex;
    width: 100%;
    margin-bottom: 0.5rem;
    animation: slideIn 0.3s ease;
}
.chat-message.ai { justify-content: flex-start; }
.chat-message.candidate { justify-content: flex-end; }

.chat-bubble {
    max-width: 70%;
    padding: 1rem 1.25rem;
    border-radius: 18px;
    position: relative;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.chat-message.ai .chat-bubble {
    background: rgba(var(--primary-rgb), 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    border-bottom-left-radius: 4px;
}

.chat-message.candidate .chat-bubble {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-bottom-right-radius: 4px;
    box-shadow: 0 4px 15px -3px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .chat-message.candidate .chat-bubble {
    background: rgba(30, 41, 59, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #f3f4f6;
}
[data-theme="dark"] .chat-message.ai .message-content {
    color: #e5e7eb;
}

.message-content {
    line-height: 1.5;
    word-wrap: break-word;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Стили для профиля */
.profile-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.profile-avatar,
.candidate-avatar {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: bold;
    color: white;
    flex-shrink: 0;
}

.candidate-avatar {
    width: 120px;
    height: 120px;
    font-size: 3rem;
    border: 4px solid var(--card-bg);
    box-shadow: 0 10px 30px rgba(var(--primary-rgb), 0.3);
}

/* Стили для публичной страницы кандидата */
.public-header {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--card-border);
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 1rem 0;
}

/* Хлебные крошки */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}
.breadcrumbs a {
    color: var(--text-muted);
    transition: color 0.3s ease;
    text-decoration: none;
}
.breadcrumbs a:hover {
    color: var(--primary);
}

/* Заголовок отчета */
.report-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 24px 24px 0 0;
    padding: 2rem;
    color: white;
    position: relative;
    overflow: hidden;
}
.report-header::before,
.report-header::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
}
.report-header::before { top: -50%; right: -10%; }
.report-header::after { bottom: -50%; left: -10%; }

/* Карточки ответов и решений */
.answer-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}
.answer-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(var(--primary-rgb), 0.1);
}

.decision-card {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.05) 0%, rgba(var(--primary-rgb), 0.1) 100%);
    border: 2px solid rgba(var(--primary-rgb), 0.2);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
}
.decision-icon {
    width: 80px;
    height: 80px;
    border-radius: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2.5rem;
}
.decision-icon.hired { background: rgba(16, 185, 129, 0.2); color: #10b981; }
.decision-icon.rejected { background: rgba(239, 68, 68, 0.2); color: #ef4444; }
.decision-icon.reserve { background: rgba(245, 158, 11, 0.2); color: #f59e0b; }

.rating-stars {
    display: flex;
    gap: 0.25rem;
    font-size: 1.25rem;
}
.star-filled { color: #fbbf24; }
.star-empty { color: var(--border-color); }

/* Информационные элементы */
.info-item {
    padding: 1rem;
    background: rgba(var(--primary-rgb), 0.02);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}
.info-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}
.info-value {
    font-weight: 600;
    color: var(--text-primary);
}

/* Опыт и образование */
.experience-item {
    border-left: 4px solid var(--primary);
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 2rem;
}
.experience-item::before {
    content: '';
    position: absolute;
    left: -0.5rem;
    top: 0;
    width: 1rem;
    height: 1rem;
    background: var(--primary);
    border-radius: 50%;
    border: 2px solid var(--card-bg);
}

.education-item {
    background: rgba(var(--primary-rgb), 0.05);
    border: 1px solid rgba(var(--primary-rgb), 0.1);
    border-radius: 16px;
    padding: 1rem;
    margin-bottom: 1rem;
}

/* ------ Хедер и навигация (из последнего файла) ------ */
.glass-header {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--card-border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.75rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

@media (max-width: 640px) {
    .header-container { padding: 0.75rem 1rem; }
    body { padding-top: 64px; } /* Добавим отступ для фиксированного хедера */
}

/* Навигационные ссылки */
.nav-link {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    border-radius: 10px;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    white-space: nowrap;
    background: transparent;
    border: none;
    cursor: pointer;
    gap: 0.25rem;
    text-decoration: none;
}
.nav-link:hover {
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
    transform: translateY(-2px);
}
.nav-link.active {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.1) 0%, rgba(var(--primary-rgb), 0.15) 100%);
    color: var(--primary);
    border: 1px solid rgba(var(--primary-rgb), 0.2);
}

/* Иконки хедера */
.header-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
}
.header-icon:hover {
    background: rgba(var(--primary-rgb), 0.1);
    transform: scale(1.1);
    color: var(--primary);
}
.header-icon i { font-size: 1.2rem; }

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 18px;
    height: 18px;
    background: linear-gradient(135deg, #ef4444, #f87171);
    color: white;
    font-size: 10px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid var(--card-bg);
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* Quick action items */
.quick-action-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 10px;
    transition: all 0.2s ease;
    color: var(--text-primary);
    text-decoration: none;
}
.quick-action-item:hover {
    background: rgba(var(--primary-rgb), 0.05);
    transform: translateX(4px);
}
.quick-action-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
}

/* Мини-статистика */
.stat-mini-card {
    background: var(--card-bg);
    padding: 0.5rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--border-color);
}
.stat-mini-value { font-size: 1rem; font-weight: 700; color: var(--text-primary); }
.stat-mini-label { font-size: 0.65rem; color: var(--text-muted); }

/* Профиль в меню */
.profile-menu-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.875rem;
}
.profile-menu-item:hover {
    background: rgba(var(--primary-rgb), 0.05);
}

/* Mobile Menu Styles (из последнего файла) */
#mobileMenu {
    z-index: 9999;
    touch-action: none;
}

.mobile-menu-overlay {
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 9998;
}
.mobile-menu-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu-content {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
    z-index: 9999;
    will-change: transform;
    touch-action: none;
    max-height: 85vh;
    overflow: hidden;
    border: 1px solid var(--card-border);
}
.mobile-menu-content.dragging { transition: none; }

.mobile-menu-drag-handle {
    cursor: grab;
    touch-action: none;
    user-select: none;
    padding: 16px 0 8px;
    background: transparent;
}
.mobile-menu-drag-handle:active { cursor: grabbing; }
.mobile-menu-drag-handle .handle-bar {
    width: 40px;
    height: 4px;
    background: var(--text-muted);
    border-radius: 9999px;
    opacity: 0.5;
    margin: 0 auto;
    transition: opacity 0.3s ease;
}

.mobile-menu-header {
    padding: 0 20px 16px;
    border-bottom: 1px solid var(--card-border);
}
.mobile-menu-header h3 {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
}

.mobile-menu-close {
    width: 36px;
    height: 36px;
    background: rgba(var(--primary-rgb), 0.1);
    border: 1px solid var(--card-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}
.mobile-menu-close:hover {
    background: rgba(var(--primary-rgb), 0.2);
    transform: rotate(90deg);
    color: var(--primary);
}

.mobile-menu-profile {
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.05) 0%, rgba(236, 72, 153, 0.05) 100%);
    border-bottom: 1px solid var(--card-border);
}

.mobile-menu-avatar {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    box-shadow: 0 10px 20px -5px rgba(var(--primary-rgb), 0.3);
}

.mobile-menu-user-info h4 { font-weight: 700; font-size: 1.1rem; margin: 0; }
.mobile-menu-user-info p { font-size: 0.8rem; color: var(--text-muted); margin: 2px 0 0; }

.mobile-menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 16px;
}

.mobile-menu-card {
    position: relative;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 16px 12px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
    overflow: hidden;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(10px);
}
.mobile-menu-card:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
    box-shadow: 0 10px 25px -5px rgba(var(--primary-rgb), 0.3);
}

.mobile-menu-card-content { position: relative; z-index: 2; }
.mobile-menu-card-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.1) 0%, rgba(var(--primary-rgb), 0.2) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    color: var(--primary);
    font-size: 1.2rem;
}
.mobile-menu-card-title { font-weight: 700; font-size: 1rem; margin-bottom: 4px; }
.mobile-menu-card-desc { font-size: 0.7rem; color: var(--text-muted); line-height: 1.2; }
.mobile-menu-card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    font-size: 0.6rem;
    padding: 2px 8px;
    border-radius: 9999px;
    z-index: 2;
}
.mobile-menu-card-decoration {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 80px;
    height: 80px;
    opacity: 0.1;
    transition: all 0.3s ease;
    z-index: 1;
    pointer-events: none;
}
.mobile-menu-card:hover .mobile-menu-card-decoration {
    opacity: 0.2;
    transform: scale(1.1) translate(-5px, -5px);
}
.mobile-menu-card-decoration svg { width: 100%; height: 100%; fill: currentColor; color: var(--primary); }

.mobile-menu-tab {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--card-border);
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    padding: 10px 0 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    cursor: grab;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.1s ease;
    pointer-events: auto;
    touch-action: none;
    user-select: none;
}
.mobile-menu-tab .handle-bar { width: 40px; height: 4px; background: var(--primary); border-radius: 9999px; opacity: 0.5; }
.mobile-menu-tab .tab-text { font-size: 10px; color: var(--primary); font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; }

@media (min-width: 1024px) {
    .mobile-menu-tab { display: none; }
    .mobile-menu-button { display: none !important; }
}
@media (max-width: 1023px) {
    .mobile-menu-button { display: none !important; }
    body { padding-bottom: 70px; }
}

.mobile-menu-scroll {
    max-height: calc(85vh - 200px);
    overflow-y: auto;
    padding: 0 16px 16px;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--card-border);
}
.mobile-menu-scroll::-webkit-scrollbar { width: 4px; }
.mobile-menu-scroll::-webkit-scrollbar-track { background: var(--card-border); border-radius: 4px; }
.mobile-menu-scroll::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }

.mobile-menu-footer {
    padding: 16px 20px;
    background: rgba(var(--primary-rgb), 0.05);
    border-top: 1px solid var(--card-border);
}

.mobile-menu-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}
.mobile-menu-stat-item { text-align: center; }
.mobile-menu-stat-value { font-size: 1.2rem; font-weight: 800; color: var(--primary); }
.mobile-menu-stat-label { font-size: 0.65rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }

.mobile-menu-logout {
    display: block;
    width: 100%;
    padding: 12px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 12px;
    color: #ef4444;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}
.mobile-menu-logout:hover {
    background: rgba(239, 68, 68, 0.2);
    transform: translateY(-2px);
}

/* ------ Пустое состояние ------ */
.empty-state {
    text-align: center;
    padding: 3rem;
    background: var(--card-bg);
    border: 2px dashed var(--border-color);
    border-radius: 24px;
}
.empty-state i {
    font-size: 4rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* ------ Скроллбар ------ */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--card-bg); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--secondary); }

/* ------ Тоггл для настроек ------ */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}
.toggle-slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}
input:checked + .toggle-slider {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}
input:checked + .toggle-slider:before {
    transform: translateX(26px);
}

/* ------ DANGER ZONE ------ */
.danger-zone {
    border: 2px solid rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.05);
}

/* ------ Специфичные классы для текста в темах ------ */
.text-theme-heading { color: var(--text-primary) !important; }
.text-theme-subtitle { color: var(--text-secondary) !important; }
.text-theme-muted { color: var(--text-muted) !important; }
.text-theme-icon { color: var(--text-primary) !important; }

.theme-card {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
}
.theme-card-positive {
    background: rgba(var(--primary-rgb), 0.05);
    border: 1px solid rgba(var(--primary-rgb), 0.1);
}
.theme-card-negative {
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.1);
}
.theme-card-info {
    background: rgba(34, 197, 94, 0.05);
    border: 1px solid rgba(34, 197, 94, 0.1);
}

.theme-icon-positive { background: rgba(34, 197, 94, 0.2); }
.theme-icon-positive i { color: #10b981; }
.theme-icon-negative { background: rgba(239, 68, 68, 0.1); }
.theme-icon-negative i { color: #ef4444; }
.theme-icon-info { background: rgba(34, 197, 94, 0.1); }
.theme-icon-info i { color: #10b981; }

/* ------ Защита от копирования для заданий ------ */
.task-card .description,
.task-card p,
.task-card h3,
.criteria-item {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    pointer-events: none;
}
.task-textarea {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
    pointer-events: auto;
}
.task-card {
    -webkit-touch-callout: none;
}

/* ------ Кнопка переключения темы (изначально была отдельно) ------ */
.theme-toggle-container {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 1000;
}
.theme-toggle-button {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #fff 0%, #d5d5d5 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(var(--primary-rgb), 0.3);
    transition: all 0.3s ease;
    border: none;
    color: #000;
    font-size: 24px;
    position: relative;
    overflow: hidden;
}
.theme-toggle-button.pulse-animation {
    animation: pulse-theme 2s infinite;
}
@keyframes pulse-theme {
    0% { box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0.7); }
    70% { box-shadow: 0 0 0 20px rgba(var(--primary-rgb), 0); }
    100% { box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0); }
}
.theme-icon {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}
.moon-icon { opacity: 1; transform: rotate(0deg); }
.sun-icon { opacity: 0; transform: rotate(90deg); }

[data-theme="dark"] .theme-toggle-button {
    background: linear-gradient(135deg, #1d283a 0%, #0f172a 100%);
}
[data-theme="dark"] .sun-icon {
    opacity: 1;
    transform: rotate(0deg);
}
[data-theme="dark"] .sun-icon i {
    color: #fbbf24;
    text-shadow: 0 0 12px rgba(251, 191, 36, 0.7);
}
[data-theme="dark"] .moon-icon {
    opacity: 0;
    transform: rotate(-90deg);
}

/* ------ Кнопка промокода (изначально была отдельно) ------ */
.promocode-button-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}
.promocode-button {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #0f172a 0%, color-mix(in srgb, #a57649 70%, #af1e9c) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(var(--primary-rgb), 0.5);
    transition: all 0.3s ease;
    border: none;
    color: white;
    font-size: 24px;
}
.promocode-button:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(var(--primary-rgb), 0.7);
}
.promocode-button.pulse-animation {
    animation: pulsePromo 2s infinite;
}
@keyframes pulsePromo {
    0% { box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(var(--primary-rgb), 0); }
    100% { box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0); }
}

/* ==================== */
/* МЕДИА-ЗАПРОСЫ ДЛЯ АДАПТИВНОСТИ */
/* ==================== */

@media (max-width: 1024px) {
    .promocode-button-container { bottom: 25px; right: 25px; }
    .promocode-button { width: 65px; height: 65px; }
    .theme-toggle-container { bottom: 25px; left: 25px; }
    .theme-toggle-button { width: 65px; height: 65px; }
}

@media (max-width: 768px) {
    /* Общие */
    .dashboard-container { padding: 1rem; }
    
    /* Сетки */
    .interviews-grid,
    .applications-grid { grid-template-columns: 1fr; }
    
    /* Карточки */
    .metric-card { padding: 1rem; }
    .vacancy-card, .candidate-card, .invitation-card, .interview-card, .notification-card { padding: 1rem; }
    
    /* Чаты */
    .chat-sidebar { display: none; }
    .chat-container { height: calc(100vh - 80px); }
    .message-bubble { max-width: 100%; }
    
    /* Платформа */
    .platform-section { padding: 2rem 1rem; }
    .platform-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .platform-card { padding: 1.5rem; }
    .platform-card-header { flex-direction: column; text-align: center; gap: 1rem; }
    
    /* Формы */
    .link-field { flex-direction: column; align-items: stretch; }
    .link-field button { width: 100%; }
    
    /* Хедер */
    .header-container { padding: 0.75rem 1rem; }
    
    /* Инфо-сетки */
    .info-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    /* Общие */
    h1 { font-size: 1.5rem !important; }
    h2 { font-size: 1.25rem !important; }
    .stat-number { font-size: 2rem !important; }
    
    /* Кнопки */
    .btn-primary, .btn-secondary { font-size: 0.875rem !important; padding: 0.75rem !important; width: 100%; }
    
    /* Контейнеры */
    .theme-toggle-container, .promocode-button-container { bottom: 15px; }
    .theme-toggle-button, .promocode-button { width: 50px; height: 50px; font-size: 20px; }
    
    /* Сетки */
    .grid.grid-cols-2.md\:grid-cols-4.lg\:grid-cols-6 { grid-template-columns: repeat(2, 1fr) !important; }
    .flex.flex-wrap.justify-center.items-center.gap-8.lg\:gap-12 { gap: 1rem !important; }
    .flex.flex-wrap.justify-center.items-center.gap-8.lg\:gap-12 > div { font-size: 1.25rem !important; margin: 0.5rem !important; }
    
    /* Специфично для index.php */
    .scroll-section {
        top: 0.5%;
        left: 0.5%;
        right: 0.5%;
        bottom: 0.5%;
        border-radius: 16px;
    }
    .slide { padding: 1rem !important; padding-top: 5vh !important; }
    .scroll-progress { right: 0.5rem; gap: 0.5rem; }
    .progress-dot { width: 8px; height: 8px; }
    
    /* Специфично для order.php */
    .form-container { margin: 0.5rem; border-radius: 20px; }
    .step-indicator { width: 32px; height: 32px; font-size: 14px; }
    
    /* Мобильное меню */
    .mobile-menu-grid { grid-template-columns: 1fr; }
}

@media (max-width: 360px) {
    .theme-toggle-container, .promocode-button-container { bottom: 10px; }
    .theme-toggle-button, .promocode-button { width: 45px; height: 45px; font-size: 18px; }
    h1 { font-size: 1.25rem !important; }
    h2 { font-size: 1rem !important; }
}

@media (max-height: 600px) and (orientation: landscape) {
    .slide { padding: 1rem !important; align-items: flex-start !important; }
    #slide1 .min-h-\[80vh\] { min-height: auto !important; }
}

/* Для устройств с поддержкой hover */
@media (hover: hover) and (pointer: fine) {
    .progress-dot:hover { transform: scale(1.3); }
    .modern-card:hover { transform: translateY(-8px); }
}

/* Для устройств без поддержки hover (сенсорные) */
@media (hover: none) and (pointer: coarse) {
    .modern-card:active { border-color: var(--primary); transform: translateY(-2px); }
    .progress-dot { width: 14px; height: 14px; }
    .theme-toggle-button:active, .promocode-button:active { transform: scale(0.95); transition: transform 0.1s ease; }
}

/* Для печати */
@media print {
    .scroll-section, .scroll-progress, .promocode-button-container, .theme-toggle-container, .particles-container { display: none !important; }
    .slide { position: static !important; opacity: 1 !important; visibility: visible !important; transform: none !important; page-break-after: always; height: auto !important; overflow: visible !important; }
}

/* ==================== */
/* УТИЛИТЫ ДЛЯ ТЕЛЕГРАМА (из отдельных стилей) */
/* ==================== */
.text-mask-right {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 3rem;
    background: linear-gradient(90deg, transparent 0%, var(--light) 100%);
    pointer-events: none;
    z-index: 5;
    border-radius: 0 12px 12px 0;
    display: none;
}
@media (max-width: 768px) {
    .relative:has(input[name="telegram"]:not(:placeholder-shown)) .text-mask-right { display: block; }
}
input[name="telegram"] {
    width: 100%;
    box-sizing: border-box;
    padding-left: 2.5rem !important;
    padding-right: 1rem !important;
}
@media (max-width: 768px) {
    input[name="telegram"] { padding-left: 3rem !important; padding-right: 1.5rem !important; font-size: 16px !important; }
}

/* ==================== */
/* ДОПОЛНИТЕЛЬНЫЕ ЭФФЕКТЫ И КЛАССЫ (из разных мест) */
/* ==================== */
.particle, .dust-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    z-index: 1000;
}
.dust-particle { background: rgba(255, 255, 255, 0.3); }

.slide.blur-transition { filter: blur(25px); opacity: 0.2; }

.lazy-image { opacity: 0; transition: opacity 0.5s ease; }
.lazy-image.loaded { opacity: 1; }

.img-preloader {
    background: linear-gradient(90deg, #e2e8f0 25%, #f7fafc 50%, #e2e8f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}
@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.reveal-item { opacity: 0; transform: translateY(20px); transition: all 0.6s ease; }
.reveal-item.visible { opacity: 1; transform: translateY(0); }

.steps-end-indicator { height: 60px; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.5s ease; }
.steps-end-indicator.visible { opacity: 1; }

.mt-10r { margin-top: 10rem; }
.mb-10r { margin-bottom: 10rem; }
.mt-5r { margin-top: 5rem; }
.mb-5r { margin-bottom: 5rem; }

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===================================================== */
/* ДОПОЛНИТЕЛЬНЫЕ СТИЛИ ДЛЯ РАБОТОДАТЕЛЯ */
/* Добавлены из следующих файлов: employer, packages, archive, pricing, etc. */
/* ===================================================== */

/* ------ Компания и Обложка (Company Cover) ------ */
.company-cover {
    height: 300px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.company-cover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQ0MCIgaGVpZ2h0PSI2MDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IHgxPSIwJSIgeTE9IjAlIiB4Mj0iMTAwJSIgeTI9IjAlIiBpZD0iYSI+PHN0b3Agc3R5bGU9InN0b3AtY29sb3I6I2ZmZmZmZjtzdG9wLW9wYWNpdHk6LjA1IiBvZmZzZXQ9IjAlIi8+PHN0b3Agc3R5bGU9InN0b3AtY29sb3I6I2ZmZmZmZjtzdG9wLW9wYWNpdHk6MCIgb2Zmc2V0PSIxMDAlIi8+PC9saW5lYXJHcmFkaWVudD48L2RlZnM+PHBhdGggZD0iTTAgMGgxNDQwdjYwMEgweiIgZmlsbD0idXJsKCNhKSIvPjwvc3ZnPg==');
    opacity: 0.3;
}

.company-logo {
    width: 120px;
    height: 120px;
    background: white;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: bold;
    color: #4f46e5;
    border: 4px solid white;
    margin-top: -60px;
    margin-bottom: 20px;
    position: relative;
    z-index: 10;
}

.company-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

/* Адаптация для темной темы */
[data-theme="dark"] .company-logo {
    background: var(--card-bg);
    border-color: var(--card-border);
    color: var(--primary);
}

/* ------ Стили для Архива (Archive) ------ */
.archive-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.archive-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(var(--primary-rgb), 0.1);
}

.archive-card.rejected { border-left: 4px solid #ef4444; }
.archive-card.archived { border-left: 4px solid #6b7280; }
.archive-card.paused { border-left: 4px solid #f59e0b; }
.archive-card.reserve { border-left: 4px solid #10b981; }

.priority-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 600;
}
.priority-high { background: rgba(239, 68, 68, 0.1); color: #ef4444; }
.priority-medium { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }
.priority-low { background: rgba(16, 185, 129, 0.1); color: #10b981; }

.reminder-badge {
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
    padding: 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
}

/* ------ Стили для Истории Баланса (Balance History) ------ */
.history-item {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 1.25rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.history-item:hover {
    border-color: var(--primary);
    transform: translateX(4px);
    box-shadow: 0 10px 20px rgba(var(--primary-rgb), 0.1);
}

.history-item.positive { border-left: 4px solid #10b981; }
.history-item.negative { border-left: 4px solid #ef4444; }

.points-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
}
.points-badge.positive { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.points-badge.negative { background: rgba(239, 68, 68, 0.1); color: #ef4444; }

/* ------ Стили для Пакетов (Packages / Pricing) ------ */
.package-card,
.pricing-card { /* Объединяем, так как они очень похожи */
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 32px;
    padding: 2rem;
    transition: all 0.4s ease;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.package-card:hover,
.pricing-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 30px 60px -12px rgba(var(--primary-rgb), 0.3);
}

.package-card.popular,
.pricing-card.popular {
    border: 2px solid var(--primary);
    transform: scale(1.02);
}

.popular-badge { /* Общий стиль для бейджа "Популярно" */
    position: absolute;
    top: 1.5rem;
    right: -3rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 0.5rem 3rem;
    transform: rotate(45deg);
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
    z-index: 2;
}

.price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-primary);
}
.price-small { font-size: 1.5rem; font-weight: 700; color: var(--primary); }

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: 12px;
    transition: all 0.2s ease;
}
.feature-item:hover {
    background: rgba(var(--primary-rgb), 0.05);
    transform: translateX(4px);
}
.feature-icon.included { background: rgba(16, 185, 129, 0.1); color: #10b981; }

.btn-pricing {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    border-radius: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: auto;
    width: 100%;
    border: none;
    cursor: pointer;
}
.btn-pricing.primary { background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%); color: white; }
.btn-pricing.secondary { background: rgba(var(--primary-rgb), 0.1); color: var(--primary); border: 1px solid rgba(var(--primary-rgb), 0.2); }

.usage-bar {
    height: 8px;
    background: rgba(var(--primary-rgb), 0.1);
    border-radius: 9999px;
    overflow: hidden;
}
.usage-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 9999px;
    transition: width 1s ease;
}

.yearly-toggle {
    display: inline-flex;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 9999px;
    padding: 0.25rem;
}
.yearly-option {
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.yearly-option.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
}

.buy-package-btn {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    transition: all 0.3s ease;
}
.buy-package-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3);
}

.modal-package-card {
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}
.modal-package-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 10px 25px -5px rgba(var(--primary-rgb), 0.3);
}
.modal-package-card.selected {
    border-color: var(--primary);
    background: rgba(var(--primary-rgb), 0.05);
}

/* ------ Стили для Чата (Chat) ------ */
.sidebar-header { padding: 1.5rem; border-bottom: 1px solid var(--border-color); }

.new-chat-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border: none;
    border-radius: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
.new-chat-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(var(--primary-rgb), 0.3);
}

.sessions-list { flex: 1; overflow-y: auto; padding: 1rem; }

.session-item {
    padding: 1rem;
    border-radius: 16px;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}
.session-item:hover {
    background: rgba(var(--primary-rgb), 0.05);
    border-color: var(--primary);
}
.session-item.active {
    background: rgba(var(--primary-rgb), 0.1);
    border-color: var(--primary);
}
.session-title { font-weight: 600; margin-bottom: 0.25rem; color: var(--text-primary); }
.session-meta { font-size: 0.75rem; color: var(--text-muted); display: flex; justify-content: space-between; }

.chat-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.chat-title { display: flex; align-items: center; gap: 1rem; }
.chat-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}
.chat-info h2 { font-size: 1.25rem; font-weight: 700; color: var(--text-primary); }
.chat-info p { font-size: 0.875rem; color: var(--text-muted); }

.chat-actions { display: flex; gap: 0.5rem; }
.chat-action-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}
.chat-action-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.message-bubble pre {
    background: rgba(0, 0, 0, 0.1);
    padding: 0.5rem;
    border-radius: 8px;
    overflow-x: auto;
}
.message-bubble code { font-family: monospace; }

.message-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}
.message-action {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.875rem;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}
.message-action:hover {
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
}

.input-container {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
}

.send-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.memory-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}
.memory-select {
    flex: 1;
    padding: 0.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-primary);
}

/* Уточнение для темной темы в чате */
[data-theme="dark"] .message-bubble.assistant {
    background: rgba(255, 255, 255, 0.05);
}

/* ------ Стили для Вакансий и Кандидатов (Vacancy / Candidate specifics) ------ */
.vacancy-card {
    transition: all 0.2s ease;
    border: 1px solid var(--border-color); /* Добавим рамку по умолчанию, как в glass-card */
}
.vacancy-card.matched {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.05), rgba(var(--primary-rgb), 0.1));
    border-color: var(--primary);
}

.match-link { transition: all 0.2s ease; position: relative; }
.match-link:hover { transform: translateX(5px); }
.delete-match { opacity: 0; transition: opacity 0.2s ease; }
.match-link:hover .delete-match { opacity: 1; }

.initials-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    font-weight: bold;
    box-shadow: 0 10px 15px -3px rgba(99,102,241,0.3);
}

.vacancy-info {
    background: linear-gradient(135deg, #f9fafb, #f3f4f6);
    border: 1px solid #e5e7eb;
}
[data-theme="dark"] .vacancy-info {
    background: rgba(var(--primary-rgb), 0.05);
    border-color: var(--border-color);
}

/* Стили для score-badge (из отдельного файла) */
.score-badge {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.8rem;
    border: 3px solid currentColor;
    transition: all 0.3s ease;
    background: var(--card-bg); /* Используем переменную */
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    line-height: 1;
    position: relative;
    color: inherit;
}
.score-badge::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    right: 3px;
    bottom: 3px;
    border-radius: 50%;
    background: inherit;
    z-index: -1;
    opacity: 0.1;
}
.score-badge span { position: relative; z-index: 2; display: block; margin-top: -2px; color: inherit; }

/* Стили для выделения карточек (из selection-mode) */
.bulk-checkbox {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 20px;
    height: 20px;
    z-index: 5;
    opacity: 0;
    transition: opacity 0.2s ease;
}
.selection-mode .bulk-checkbox { opacity: 1; }
.bulk-checkbox:checked { accent-color: #6366f1; }

#bulkCandidatePanel,
#bulkActionPanel {
    transition: all 0.3s ease;
}
#bulkCandidatePanel.hidden {
    transform: translateY(-20px);
    opacity: 0;
    pointer-events: none;
}
.selection-mode .candidate-card:hover {
    outline: 2px dashed #6366f1;
    outline-offset: 2px;
    cursor: pointer;
}

/* Стили для follow button */
.follow-button { transition: all 0.3s ease; }
.follow-button.following { background: #10b981; color: white; }

/* ------ Стили для Создания Вакансии (Vacancy Create) ------ */
.vacancy-container {
    position: relative;
    z-index: 10;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Индикатор шагов */
.step-indicator {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    padding: 0 20px;
}
.step-indicator::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 60px;
    right: 60px;
    height: 2px;
    background: rgba(var(--primary-rgb), 0.1);
    z-index: 1;
}
.step-item {
    position: relative;
    z-index: 2;
    text-align: center;
    flex: 0 0 auto;
    padding: 0 5px;
}
.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}
.step-item.active .step-number {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-color: transparent;
    color: white;
    transform: scale(1.1);
}
.step-item.completed .step-number {
    background: #10b981;
    border-color: transparent;
    color: white;
}
.step-label { font-size: 0.75rem; color: var(--text-muted); white-space: nowrap; }
.step-item.active .step-label { color: var(--primary); font-weight: 500; }

@media (max-width: 640px) {
    .step-indicator { max-width: 100%; padding: 0 10px; }
    .step-indicator::before { left: 40px; right: 40px; }
    .step-label { font-size: 0.7rem; }
}

/* Поля формы */
.form-input.error {
    border-color: #ef4444;
    background-color: rgba(239, 68, 68, 0.05);
}
.form-label .required-star {
    color: #ef4444;
    margin-left: 0.25rem;
    font-size: 1.2rem;
    line-height: 1;
}

/* Секции и вопросы */
.section-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.section-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(var(--primary-rgb), 0.1);
}

.question-item {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}
.question-item:hover {
    border-color: var(--primary);
    box-shadow: 0 10px 20px rgba(var(--primary-rgb), 0.1);
}
.options-container {
    background: rgba(var(--primary-rgb), 0.05);
    border: 1px solid rgba(var(--primary-rgb), 0.1);
    border-radius: 12px;
    padding: 1rem;
    margin-top: 1rem;
}

/* AI-инсайт */
.ai-insight {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.05) 0%, rgba(var(--primary-rgb), 0.1) 100%);
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    border-radius: 20px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}
.ai-insight::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

/* Чекбоксы и радио */
.custom-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    background: var(--card-bg);
    cursor: pointer;
    transition: all 0.2s ease;
}
.custom-checkbox:checked {
    background: var(--primary);
    border-color: var(--primary);
}

/* Модальное окно подтверждения */
.confirm-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}
.confirm-modal.active { display: flex; }
.confirm-modal-content {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    text-align: center;
}
.confirm-modal-icon { font-size: 3rem; color: #f59e0b; margin-bottom: 1rem; }
.confirm-modal-buttons { display: flex; gap: 1rem; margin-top: 2rem; }
.confirm-modal-buttons button { flex: 1; padding: 0.75rem; border-radius: 12px; font-weight: 500; cursor: pointer; transition: all 0.3s ease; }
.confirm-btn-cancel { background: rgba(var(--primary-rgb), 0.1); color: var(--text-primary); border: 1px solid var(--border-color); }
.confirm-btn-cancel:hover { background: rgba(var(--primary-rgb), 0.2); }
.confirm-btn-confirm { background: #ef4444; color: white; border: none; }
.confirm-btn-confirm:hover { background: #dc2626; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(239, 68, 68, 0.3); }

/* Кнопка AI-генерации */
.ai-button {
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    color: white;
    border: none;
    transition: all 0.3s ease;
}
.ai-button:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 10px 20px rgba(139, 92, 246, 0.3);
}

/* Анимация загрузки */
.fa-spinner { animation: spin 1s linear infinite; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* Практические задания */
.practical-task-item {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(37, 99, 235, 0.1) 100%);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 16px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}
.practical-task-item:hover {
    border-color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.1);
}
.task-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 600;
}
.task-badge.beginner { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.task-badge.intermediate { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }
.task-badge.advanced { background: rgba(239, 68, 68, 0.1); color: #ef4444; }

/* Оверлей загрузки AI */
.ai-generation-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}
.ai-generation-overlay.active { display: flex; }
.ai-generation-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 2rem;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}
.ai-gif {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    background: url('/assets/img/ai-loading.gif') no-repeat center;
    background-size: contain;
}

/* ==================== */
/* МЕДИА-ЗАПРОСЫ ДЛЯ НОВЫХ КОМПОНЕНТОВ */
/* ==================== */
@media (max-width: 768px) {
    .vacancy-container { padding: 1rem; }
    .step-label { font-size: 0.7rem; }
    .step-number { width: 28px; height: 28px; font-size: 0.875rem; }
    .company-cover { height: 200px; }
    .company-logo { width: 80px; height: 80px; font-size: 2rem; margin-top: -40px; }
}

/* ===================================================== */
/* QUICK ACTIONS - СТЕКЛЯННЫЙ ВАРИАНТ */
/* ===================================================== */

/* Сами карточки */
.quick-action-card {
    /* Основные стили */
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    
    /* Форма и размер */
    border-radius: 28px;
    padding: 1.5rem 1rem;
    
    /* Тень */
    box-shadow: 0 8px 20px -6px rgba(0, 0, 0, 0.1), 
                0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    
    /* Текст */
    color: var(--text-primary);
    text-decoration: none;
    
    /* Анимация */
    transition: all 0.4s cubic-bezier(0.2, 0.9, 0.3, 1);
    
    /* Выравнивание контента */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
    
    /* Важно для ровной высоты карточек */
    height: 100%;
    min-height: 180px;
    
    /* Позиционирование для псевдоэлемента */
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Градиентный акцент при наведении */
.quick-action-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(var(--primary-rgb), 0.1) 0%, 
        rgba(236, 72, 153, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
    border-radius: inherit;
}

.quick-action-card:hover {
    transform: translateY(-6px);
    border-color: rgba(var(--primary-rgb), 0.5);
    box-shadow: 0 20px 30px -10px rgba(var(--primary-rgb), 0.3);
}

.quick-action-card:hover::before {
    opacity: 1;
}

/* Иконка */
.quick-action-card .quick-action-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(145deg, 
        rgba(255, 255, 255, 0.9), 
        rgba(240, 240, 255, 0.7));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary);
    box-shadow: 0 5px 15px rgba(var(--primary-rgb), 0.2),
                0 0 0 1px rgba(255, 255, 255, 0.8) inset;
    transition: all 0.4s ease;
    margin-bottom: 0.5rem;
    flex-shrink: 0;
}

.quick-action-card:hover .quick-action-icon {
    background: linear-gradient(145deg, 
        rgba(var(--primary-rgb), 0.9), 
        rgba(var(--primary-rgb), 0.7));
    color: white;
    transform: scale(1.05) rotate(-3deg);
    box-shadow: 0 10px 25px -5px var(--primary);
}

/* Заголовок */
.quick-action-card .font-bold {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    transition: color 0.3s ease;
    line-height: 1.3;
    margin: 0;
}

.quick-action-card:hover .font-bold {
    color: var(--primary);
}

/* Описание */
.quick-action-card .text-sm {
    font-size: 0.8rem;
    color: var(--text-secondary);
    opacity: 0.8;
    transition: opacity 0.3s ease;
    max-width: 90%;
    margin: 0 auto;
    line-height: 1.4;
}

.quick-action-card:hover .text-sm {
    opacity: 1;
    color: var(--text-primary);
}

/* ===================================================== */
/* ТЕМНАЯ ТЕМА */
/* ===================================================== */
[data-theme="dark"] .quick-action-card {
    background: rgba(20, 25, 40, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 20px -6px rgba(0, 0, 0, 0.5), 
                0 0 0 1px rgba(255, 255, 255, 0.02) inset;
}

[data-theme="dark"] .quick-action-card::before {
    background: linear-gradient(135deg, 
        rgba(var(--primary-rgb), 0.15) 0%, 
        rgba(236, 72, 153, 0.05) 100%);
}

[data-theme="dark"] .quick-action-card .quick-action-icon {
    background: linear-gradient(145deg, 
        rgba(40, 45, 60, 0.9), 
        rgba(30, 35, 50, 0.7));
    color: var(--primary);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3),
                0 0 0 1px rgba(var(--primary-rgb), 0.2) inset;
}

[data-theme="dark"] .quick-action-card:hover .quick-action-icon {
    background: linear-gradient(145deg, 
        rgba(var(--primary-rgb), 0.8), 
        rgba(var(--primary-rgb), 0.6));
    color: white;
}

/* ===================================================== */
/* АДАПТИВНОСТЬ (только для карточек, сетка через Tailwind) */
/* ===================================================== */

/* Планшеты */
@media (max-width: 1023px) and (min-width: 640px) {
    .quick-action-card {
        min-height: 160px;
        padding: 1.25rem 0.75rem;
    }
    
    .quick-action-card .quick-action-icon {
        width: 56px;
        height: 56px;
        font-size: 1.75rem;
    }
}

/* Мобильные */
@media (max-width: 639px) {
    .quick-action-card {
        min-height: auto;
        padding: 1.5rem;
        flex-direction: row;
        text-align: left;
        align-items: center;
        gap: 1rem;
    }
    
    .quick-action-card .quick-action-icon {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
        margin-bottom: 0;
        flex-shrink: 0;
    }
    
    .quick-action-card .font-bold {
        font-size: 1.2rem;
    }
    
    .quick-action-card .text-sm {
        max-width: 100%;
        margin: 0;
    }
    
    /* Контейнер для текста на мобилках */
    .quick-action-card > div:not(.quick-action-icon) {
        flex: 1;
    }
}

/* Очень маленькие экраны */
@media (max-width: 380px) {
    .quick-action-card {
        padding: 1rem;
        gap: 0.75rem;
    }
    
    .quick-action-card .quick-action-icon {
        width: 48px;
        height: 48px;
        font-size: 1.5rem;
        border-radius: 16px;
    }
    
    .quick-action-card .font-bold {
        font-size: 1rem;
    }
    
    .quick-action-card .text-sm {
        font-size: 0.75rem;
    }
}

/* ===================================================== */
/* QUICK ACCESS MODAL - ИСПРАВЛЕННЫЕ СТИЛИ */
/* ===================================================== */

/* Контейнер для кнопки быстрого доступа */
.promocode-button-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

/* Кнопка быстрого доступа */
.promocode-button {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #6366f1 0%, #ec4899 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.5);
    transition: all 0.3s ease;
    border: none;
    color: white;
    font-size: 24px;
}

.promocode-button:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.7);
}

.promocode-button.pulse-animation {
    animation: pulsePromo 2s infinite;
}

@keyframes pulsePromo {
    0% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(99, 102, 241, 0); }
    100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0); }
}

/* Модальное окно */
.promocode-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 1rem;
}

.promocode-modal.active {
    display: flex;
    opacity: 1;
}

/* Контент модального окна */
.promocode-modal-content {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 32px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
}

.promocode-modal.active .promocode-modal-content {
    transform: scale(1);
}

/* Хедер модального окна */
.promocode-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top-left-radius: 32px;
    border-top-right-radius: 32px;
}

.promocode-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.close-modal {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* Тело модального окна */
.promocode-body {
    padding: 2rem;
    background: var(--card-bg);
}

/* Футер модального окна */
.promocode-footer {
    padding: 1rem 2rem 2rem;
    background: var(--card-bg);
    border-bottom-left-radius: 32px;
    border-bottom-right-radius: 32px;
    text-align: center;
}

.terms-info {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .promocode-button-container {
        bottom: 25px;
        right: 25px;
    }
    
    .promocode-button {
        width: 65px;
        height: 65px;
    }
}

@media (max-width: 768px) {
    .promocode-modal-content {
        max-width: 90%;
    }
    
    .promocode-header h3 {
        font-size: 1.25rem;
    }
    
    .promocode-body {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .promocode-button-container {
        bottom: 20px;
        right: 20px;
    }
    
    .promocode-button {
        width: 55px;
        height: 55px;
        font-size: 20px;
    }
    
    .promocode-header {
        padding: 1rem;
    }
    
    .promocode-body {
        padding: 1rem;
    }
}

/* Темная тема */
[data-theme="dark"] .promocode-modal-content {
    background: var(--card-bg);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .promocode-body {
    background: var(--card-bg);
}

[data-theme="dark"] .promocode-footer {
    background: var(--card-bg);
}

/* ===================================================== */
/* СПЕЦИАЛЬНЫЕ СТИЛИ ДЛЯ СТРАНИЦ ВХОДА И РЕГИСТРАЦИИ */
/* ===================================================== */

/* Базовые стили для body на страницах авторизации */
body {
    overflow: auto !important;
    position: static !important;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

/* Фиксированный градиентный фон */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-gradient);
    z-index: -2;
    pointer-events: none;
}

/* Контейнер для частиц */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Универсальный контейнер для страниц входа и регистрации */
.login-container,
.register-container {
    position: relative;
    z-index: 10;
    width: 100%;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.login-container {
    max-width: 1200px;
}

.register-container {
    max-width: 1300px;
}

/* Glass-карточки (уже есть в styles.css, но добавим специфичные стили) */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: 32px;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

[data-theme="dark"] .glass-card {
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* Поля ввода (уже есть, но добавим специфичные) */
.form-input {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 0.875rem 1.25rem;
    width: 100%;
    color: var(--text-primary);
    transition: all 0.3s ease;
    font-size: 1rem;
}

.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.1);
    outline: none;
}

.form-input::placeholder {
    color: var(--text-muted);
}

/* Кнопка регистрации */
.btn-register {
    background: linear-gradient(135deg, var(--primary) 0%, color-mix(in srgb, var(--primary) 80%, black) 100%);
    color: white;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 16px;
    width: 100%;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1.125rem;
    position: relative;
    overflow: hidden;
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(var(--primary-rgb), 0.3);
}

/* Карточки выбора типа аккаунта */
.account-type-card {
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--card-bg);
    position: relative;
    overflow: hidden;
}

.account-type-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(var(--primary-rgb), 0.15);
}

.account-type-card.selected {
    border-color: var(--primary);
    background: rgba(var(--primary-rgb), 0.05);
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.1);
}

.account-type-card input[type="radio"] {
    position: absolute;
    opacity: 0;
}

/* Элементы преимуществ */
.benefit-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 16px;
    transition: all 0.2s ease;
}

.benefit-item:hover {
    background: rgba(var(--primary-rgb), 0.05);
}

.benefit-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.1) 0%, rgba(var(--primary-rgb), 0.2) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.25rem;
}

/* Ценник */
.price-tag {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Чек-лист функций */
.feature-check {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: 12px;
}

.feature-check i {
    color: #10b981;
    font-size: 1rem;
}

/* Сообщения об ошибках и успехе */
.error-message {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    padding: 1rem 1.25rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.success-message {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
    padding: 1rem 1.25rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

/* Специфичные стили для страницы регистрации */
.register-grid {
    display: grid;
    gap: 2rem;
}

/* Адаптивность */
@media (max-width: 768px) {
    body {
        padding: 1rem;
    }
    
    .login-container,
    .register-container {
        padding: 1rem;
    }
    
    .register-grid {
        grid-template-columns: 1fr;
    }
    
    .benefits-section {
        display: none;
    }
    
    .account-type-card {
        padding: 1rem;
    }
    
    .benefit-item {
        padding: 0.75rem;
    }
    
    .benefit-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    body {
        padding: 0.75rem;
    }
    
    .login-container,
    .register-container {
        padding: 0.75rem;
    }
    
    .glass-card {
        border-radius: 24px;
    }
    
    .form-input {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
    
    .btn-register,
    .btn-login {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    .account-type-card {
        padding: 0.75rem;
    }
    
    .price-tag {
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
    }
}

.achievement-card {
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }
        .achievement-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
        }
        .achievement-card.completed {
            background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(16, 185, 129, 0.1) 100%);
            border-color: #10b981;
        }
        .achievement-icon {
            width: 64px;
            height: 64px;
            border-radius: 16px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 2rem;
            margin-bottom: 1rem;
        }
        .reward-badge {
            position: absolute;
            top: 1rem;
            right: 1rem;
            background: linear-gradient(135deg, #f59e0b, #fbbf24);
            color: white;
            padding: 0.25rem 0.75rem;
            border-radius: 9999px;
            font-size: 0.75rem;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 0.25rem;
            z-index: 2;
        }
        .category-filter {
            transition: all 0.2s ease;
        }
        .category-filter.active {
            background: linear-gradient(135deg, #6366f1, #8b5cf6);
            color: white;
            border-color: transparent;
        }