
    :root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #8b5cf6;
    --secondary: #06b6d4;
    --accent: #f59e0b;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --background: #ffffff;
    --surface: rgba(255, 255, 255, 0.95);
    --surface-dark: #f8fafc;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-tertiary: #94a3b8;
    --border: #e2e8f0;

    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --gradient-secondary: linear-gradient(135deg, #06b6d4 0%, #0ea5e9 100%);
    --gradient-accent: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --gradient-bg: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-text: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);

    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 10px 20px -5px rgb(0 0 0 / 0.15);


    --radius: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--gradient-bg);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    font-size: 14px; /* Уменьшен базовый размер шрифта */
}

/* Background Elements */
.bg-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.bg-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.1;
    animation: none;
}

.blob-1 {
    width: 800px;
    height: 800px;
    background: var(--gradient-primary);
    top: -300px;
    left: -200px;
    animation-delay: 0s;
}

.blob-2 {
    width: 600px;
    height: 600px;
    background: var(--gradient-secondary);
    bottom: -200px;
    right: -150px;
    animation-delay: -8s;
}

.blob-3 {
    width: 500px;
    height: 500px;
    background: var(--gradient-accent);
    top: 30%;
    left: 60%;
    animation-delay: -16s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }
    25% {
        transform: translate(40px, -50px) scale(1.05) rotate(2deg);
    }
    50% {
        transform: translate(-30px, 30px) scale(0.95) rotate(-1deg);
    }
    75% {
        transform: translate(-40px, -20px) scale(1.02) rotate(1deg);
    }
}

.bg-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 119, 198, 0.05) 0%, transparent 50%);
    z-index: -1;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.4rem; /* Уменьшен размер логотипа */
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.logo-icon {
    font-size: 1.6rem; /* Уменьшен размер иконки логотипа */
}

.nav {
    display: flex;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    transition: all 0.3s ease;
    position: relative;
    font-size: 0.85rem; /* Уменьшен размер шрифта навигации */
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    background: var(--surface-dark);
    transform: translateY(-1px);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--gradient-primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--surface);
    border-radius: var(--radius);
    padding: 0.5rem 1rem;
    min-width: 260px; /* Уменьшена минимальная ширина */
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: var(--shadow-sm);
}

.search-box:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
    transform: translateY(-1px);
}

.search-box i {
    color: var(--text-tertiary);
    margin-right: 0.5rem;
    font-size: 0.9rem; /* Уменьшен размер иконки поиска */
}

.search-box input {
    border: none;
    background: none;
    outline: none;
    width: 100%;
    font-size: 0.85rem; /* Уменьшен размер шрифта в поиске */
    color: var(--text-primary);
    font-weight: 500;
}

.search-box input::placeholder {
    color: var(--text-tertiary);
    font-weight: 400;
}

.auth-buttons {
    display: flex;
    gap: 0.75rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.4rem; /* Уменьшены отступы кнопок */
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.8rem; /* Уменьшен размер шрифта кнопок */
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.btn:hover::before {
    left: 100%;
}

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

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

.btn-outline {
    background: transparent;
    border: 2px solid var(--border);
    color: var(--text-primary);
    font-weight: 500;
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
    transform: translateY(-1px);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

.btn-sm {
    padding: 0.45rem 0.9rem; /* Уменьшены отступы маленьких кнопок */
    font-size: 0.75rem; /* Уменьшен размер шрифта маленьких кнопок */
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.1rem; /* Уменьшен размер иконки меню */
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius);
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
    background: var(--surface-dark);
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    z-index: 999;
    padding: 1rem 0;
    box-shadow: var(--shadow-lg);
}

.mobile-nav.active {
    display: block;
    animation: slideDown 0.3s ease;
}

.mobile-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 600;
    transition: all 0.3s ease;
    border-radius: var(--radius);
    margin: 0 1rem;
    font-size: 0.9rem; /* Уменьшен размер шрифта мобильной навигации */
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: var(--primary);
    background: var(--surface-dark);
}

.mobile-nav-link i {
    width: 1.25rem;
    font-size: 0.9rem; /* Уменьшен размер иконок мобильной навигации */
}

/* Pages */
.page {
    display: none;
    padding: 1.5rem 0 3rem;
}

.page.active {
    display: block;
    animation: fadeIn 0.15s ease; /* только прозрачность */
}


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

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

/* Page Header */
.page-hero {
    text-align: center;
    padding: 3rem 0 2rem;
}

.hero-title {
    font-size: 2.2rem; /* Уменьшен размер заголовка героя */
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.gradient-text {
    background: linear-gradient(135deg, #fff 0%, #e0e7ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1rem; /* Уменьшен размер подзаголовка */
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.6;
    font-weight: 400;
}

/* Content Layout */
.content-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
    align-items: start;
}

/* Filters Sidebar */
.filters-sidebar {
    background: var(--surface);
    backdrop-filter: blur(5px);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    height: fit-content;
    position: sticky;
    top: 90px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(255, 255, 255, 0.25);
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.filters-sidebar::-webkit-scrollbar {
    width: 6px;
}

.filters-sidebar::-webkit-scrollbar-track {
    background: var(--surface-dark);
    border-radius: 3px;
}

.filters-sidebar::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

.filters-sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.filters-header h3 {
    font-size: 1rem; /* Уменьшен размер заголовка фильтров */
    font-weight: 700;
    color: var(--text-primary);
}

.filter-section {
    margin-bottom: 2rem;
}

.filter-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem; /* Уменьшен размер заголовков фильтров */
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.filter-title i {
    color: var(--primary);
    font-size: 0.9rem; /* Уменьшен размер иконок фильтров */
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    font-size: 0.8rem; /* Уменьшен размер шрифта опций фильтров */
    padding: 0.5rem;
    border-radius: var(--radius);
}

.filter-option:hover {
    color: var(--text-primary);
    background: var(--surface-dark);
    transform: translateX(5px);
}

.filter-option input {
    display: none;
}

.custom-checkbox {
    width: 1.1rem;
    height: 1.1rem;
    border: 2px solid var(--border);
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.filter-option input:checked + .custom-checkbox {
    background: var(--gradient-primary);
    border-color: var(--primary);
}

.filter-option input:checked + .custom-checkbox::after {
    content: '✓';
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
}

/* Opportunities Grid - COMPACT CARDS */
.opportunities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.25rem;
}

.opportunity-card {
     background: rgba(255, 255, 255, 0.9);
    
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 260px; /* Уменьшена минимальная высота карточки */
}

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

.opportunity-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-sm);
    border-color: var(--primary-light);
}

.opportunity-card:hover::before {
    transform: scaleX(1);
}

.opportunity-card.featured {
    border: 2px solid var(--primary-light);
    background: linear-gradient(135deg, var(--surface) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.card-badges {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 2;
}

.opportunity-badge {
    background: var(--gradient-primary);
    color: white;
    padding: 0.3rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.65rem; /* Уменьшен размер шрифта бейджей */
    font-weight: 700;
    box-shadow: var(--shadow);
    text-align: center;
}

.deadline-badge {
    background: var(--gradient-accent);
    color: white;
    padding: 0.3rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.65rem; /* Уменьшен размер шрифта бейджей */
    font-weight: 700;
    box-shadow: var(--shadow);
    text-align: center;
}

.type-badge {
    background: var(--gradient-secondary);
    color: white;
    padding: 0.3rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.65rem; /* Уменьшен размер шрифта бейджей */
    font-weight: 700;
    box-shadow: var(--shadow);
    margin-bottom: 0.75rem;
    display: inline-block;
}

.opportunity-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    margin-top: 0.5rem;
}

.company-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
}

.company-logo {
    width: 2.25rem; /* Уменьшен размер логотипа компании */
    height: 2.25rem; /* Уменьшен размер логотипа компании */
    border-radius: var(--radius);
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.9rem; /* Уменьшен размер шрифта логотипа */
    box-shadow: var(--shadow);
    flex-shrink: 0;
}

.opportunity-title {
    font-size: 1rem; /* Уменьшен размер заголовка возможности */
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.company-name {
    color: var(--text-secondary);
    font-size: 0.8rem; /* Уменьшен размер названия компании */
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.save-btn {
    background: none;
    border: none;
    color: var(--text-tertiary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius);
    transition: all 0.3s ease;
    font-size: 0.9rem; /* Уменьшен размер иконки сохранения */
    flex-shrink: 0;
    margin-left: 0.5rem;
}

.save-btn:hover {
    color: var(--error);
    background: rgba(239, 68, 68, 0.1);
    transform: scale(1.1);
}

.save-btn.saved {
    color: var(--error);
}

.opportunity-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

.detail {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.75rem; /* Уменьшен размер деталей */
}

.detail i {
    color: var(--primary);
    width: 1rem;
    font-size: 0.8rem; /* Уменьшен размер иконок деталей */
    flex-shrink: 0;
}

.deadline-warning {
    color: var(--error);
    font-weight: 600;
}

.deadline-normal {
    color: var(--success);
    font-weight: 600;
}

.opportunity-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: var(--surface-dark);
    border-radius: var(--radius);
    color: var(--text-secondary);
    font-size: 0.7rem; /* Уменьшен размер статистики */
    margin-bottom: 1.25rem;
}

.stat {
    text-align: center;
    flex: 1;
}

.stat-number {
    font-weight: 700;
    color: var(--primary);
    display: block;
    font-size: 0.9rem; /* Уменьшен размер чисел статистики */
}

.opportunity-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
}

.opportunity-actions .btn {
    flex: 1;
    justify-content: center;
    font-size: 0.75rem; /* Уменьшен размер шрифта действий */
    padding: 0.5rem 0.7rem; /* Уменьшены отступы действий */
}

/* Universities Grid */
.universities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.25rem;
}

.university-card {
     background: rgba(255, 255, 255, 0.9);
    
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.university-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-sm);
    border-color: var(--primary-light);
}

.university-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.university-logo {
    width: 2.75rem; /* Уменьшен размер логотипа университета */
    height: 2.75rem; /* Уменьшен размер логотипа университета */
    border-radius: var(--radius);
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1rem; /* Уменьшен размер шрифта логотипа */
    box-shadow: var(--shadow);
    flex-shrink: 0;
}

.university-info h3 {
    font-size: 1rem; /* Уменьшен размер названия университета */
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.university-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stars {
    color: var(--warning);
    font-size: 0.75rem; /* Уменьшен размер звезд рейтинга */
}

.rating {
    color: var(--text-secondary);
    font-size: 0.7rem; /* Уменьшен размер рейтинга */
    font-weight: 600;
}

.university-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

.university-details .detail {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.75rem; /* Уменьшен размер деталей университета */
}

.university-details .detail i {
    color: var(--primary);
    width: 1rem;
    font-size: 0.8rem; /* Уменьшен размер иконок университета */
}

.university-expertise {
    margin-bottom: 1.25rem;
}

.expertise-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.expertise-tag {
    background: var(--surface-dark);
    color: var(--text-secondary);
    padding: 0.25rem 0.6rem;
    border-radius: 1rem;
    font-size: 0.65rem; /* Уменьшен размер тегов экспертизы */
    font-weight: 500;
    border: 1px solid var(--border);
}

.university-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
}

.university-actions .btn {
    flex: 1;
    justify-content: center;
    font-size: 0.75rem; /* Уменьшен размер шрифта действий университета */
    padding: 0.5rem 0.7rem; /* Уменьшены отступы действий университета */
}

/* Profile Layout */
.profile-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
}

.profile-sidebar {
    background: var(--surface);
    backdrop-filter: blur(15px);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
shadow: var(--shadow-sm);
    border: 1px solid rgba(255, 255, 255, 0.25);
    height: fit-content;
    position: sticky;
    top: 90px;
}

.profile-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.profile-avatar {
    width: 70px; /* Уменьшен размер аватара */
    height: 70px; /* Уменьшен размер аватара */
    border-radius: 50%;
    background: var(--gradient-primary);
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem; /* Уменьшен размер иконки аватара */
    border: 3px solid var(--surface);
    box-shadow: var(--shadow-lg);
}

.profile-name {
    font-size: 1.1rem; /* Уменьшен размер имени профиля */
    font-weight: 700;
    margin-bottom: 0.25rem;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.profile-title {
    color: var(--text-secondary);
    font-size: 0.85rem; /* Уменьшен размер заголовка профиля */
    margin-bottom: 1rem;
}

.profile-stats {
    display: flex;
    justify-content: space-around;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--surface-dark);
    border-radius: var(--radius-lg);
}

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

.stat-value {
    font-size: 1rem; /* Уменьшен размер значений статистики */
    font-weight: 700;
    color: var(--primary);
    display: block;
}

.stat-label {
    font-size: 0.65rem; /* Уменьшен размер меток статистики */
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.profile-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: var(--text-secondary);
    border-radius: var(--radius);
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.8rem; /* Уменьшен размер шрифта навигации профиля */
}

.nav-item:hover,
.nav-item.active {
    background: var(--surface-dark);
    color: var(--primary);
    transform: translateX(5px);
}

.nav-item i {
    width: 1.25rem;
    font-size: 0.9rem; /* Уменьшен размер иконок навигации профиля */
}

.profile-content {
    background: var(--surface);
    backdrop-filter: blur(15px);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(255, 255, 255, 0.25);
    min-height: 500px;
}

.tab-content {
    display: none;
}

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

.tab-header {
    margin-bottom: 1.5rem;
}

.tab-header h2 {
    font-size: 1.4rem; /* Уменьшен размер заголовка вкладки */
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tab-header p {
    color: var(--text-secondary);
    font-size: 0.85rem; /* Уменьшен размер описания вкладки */
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.25rem;
}

.dashboard-card {
    background: var(--surface-dark);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.dashboard-card h3 {
    font-size: 1rem; /* Уменьшен размер заголовка карточки дашборда */
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.dashboard-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.8rem; /* Уменьшен размер текста карточки дашборда */
}

.saved-opportunities-grid,
.applications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.25rem;
}

.achievements-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.achievement-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--surface-dark);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.achievement-icon {
    width: 45px; /* Уменьшен размер иконки достижения */
    height: 45px; /* Уменьшен размер иконки достижения */
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem; /* Уменьшен размер иконки достижения */
    flex-shrink: 0;
}

.achievement-content h4 {
    font-size: 0.95rem; /* Уменьшен размер заголовка достижения */
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.achievement-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.8rem; /* Уменьшен размер текста достижения */
}

.achievement-progress {
    margin-top: 0.5rem;
}

.progress-bar {
    background: var(--border);
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

/* Reminders Section */
.reminders-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.reminder-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--surface-dark);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.reminder-icon {
    width: 35px; /* Уменьшен размер иконки напоминания */
    height: 35px; /* Уменьшен размер иконки напоминания */
    border-radius: 50%;
    background: var(--gradient-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem; /* Уменьшен размер иконки напоминания */
    flex-shrink: 0;
}

.reminder-content {
    flex: 1;
}

.reminder-content h4 {
    font-size: 0.9rem; /* Уменьшен размер заголовка напоминания */
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.reminder-content p {
    color: var(--text-secondary);
    font-size: 0.75rem; /* Уменьшен размер текста напоминания */
}

.reminder-actions {
    display: flex;
    gap: 0.5rem;
}

.add-reminder-form {
    background: var(--surface-dark);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.85rem; /* Уменьшен размер меток формы */
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.7rem 1rem; /* Уменьшены отступы полей формы */
    border: 2px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text-primary);
    font-size: 0.85rem; /* Уменьшен размер шрифта полей формы */
    transition: all 0.3s ease;
}

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

/* Tips Section */
.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.25rem;
}

.tip-card {
    background: var(--surface-dark);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.tip-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.tip-card.expanded {
    grid-column: 1 / -1;
}

.tip-icon {
    width: 45px; /* Уменьшен размер иконки совета */
    height: 45px; /* Уменьшен размер иконки совета */
    border-radius: 50%;
    background: var(--gradient-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem; /* Уменьшен размер иконки совета */
    margin-bottom: 1rem;
}

.tip-card h3 {
    font-size: 1rem; /* Уменьшен размер заголовка совета */
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.tip-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 0.8rem; /* Уменьшен размер текста совета */
}

.tip-content {
    max-height: 100px;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.tip-card.expanded .tip-content {
    max-height: 1000px;
}

.tip-full-content {
    display: none;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.tip-card.expanded .tip-full-content {
    display: block;
}

.tip-full-content h4 {
    font-size: 0.95rem; /* Уменьшен размер подзаголовка совета */
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.tip-full-content p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.tip-full-content ul,
.tip-full-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.tip-full-content li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.read-more {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.85rem; /* Уменьшен размер ссылки "читать далее" */
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    cursor: pointer;
}

.tip-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-tertiary);
    font-size: 0.7rem; /* Уменьшен размер мета-информации советов */
}

/* Quick View Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(6px);


    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: var(--surface);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: modalSlideIn 0.3s ease;
    backdrop-filter: blur(12px);

}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.modal-title {
    font-size: 1.1rem; /* Уменьшен размер заголовка модального окна */
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.modal-subtitle {
    color: var(--text-secondary);
    font-size: 0.85rem; /* Уменьшен размер подзаголовка модального окна */
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.1rem; /* Уменьшен размер кнопки закрытия */
    color: var(--text-tertiary);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: var(--radius);
    transition: all 0.3s ease;
}

.close-modal:hover {
    color: var(--text-primary);
    background: var(--surface-dark);
}

.requirements-grid {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.requirement-item {
    text-align: left;
}

.requirement-title {
    font-size: 0.95rem; /* Уменьшен размер заголовка требования */
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
}

.requirement-title i {
    color: var(--primary);
    font-size: 0.9rem; /* Уменьшен размер иконки требования */
}

.requirement-content {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.8rem; /* Уменьшен размер содержания требования */
}

.modal-actions {
    display: flex;
    gap: 0.75rem;
}

.modal-actions .btn {
    flex: 1;
    justify-content: center;
}

/* Auth Modal Styles */
.auth-modal .modal-content {
    max-width: 400px;
    padding: 1.5rem;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
}

.auth-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1.1rem; /* Уменьшен размер логотипа авторизации */
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.75rem;
}

.auth-title {
    font-size: 1.3rem; /* Уменьшен размер заголовка авторизации */
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.auth-subtitle {
    color: var(--text-secondary);
    font-size: 0.85rem; /* Уменьшен размер подзаголовка авторизации */
}

.auth-form {
    margin-bottom: 1.25rem;
}

.auth-divider {
    text-align: center;
    margin: 1.5rem 0;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border);
}

.auth-divider span {
    background: var(--surface);
    padding: 0 1rem;
    color: var(--text-tertiary);
    font-size: 0.8rem; /* Уменьшен размер разделителя */
}

.auth-switch {
    text-align: center;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}

.auth-switch a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.auth-switch a:hover {
    text-decoration: underline;
}

/* User Profile */
.user-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-profile:hover {
    background: var(--surface-dark);
}

.user-avatar {
    width: 2rem; /* Уменьшен размер аватара пользователя */
    height: 2rem; /* Уменьшен размер аватара пользователя */
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.8rem; /* Уменьшен размер шрифта аватара */
    box-shadow: var(--shadow);
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.85rem; /* Уменьшен размер имени пользователя */
}

.user-email {
    color: var(--text-tertiary);
    font-size: 0.7rem; /* Уменьшен размер email пользователя */
}

/* Mobile Filters */
.mobile-filters-btn {
    display: none;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    padding: 0.7rem 1.1rem; /* Уменьшены отступы кнопки мобильных фильтров */
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 0 auto 1rem auto;
    font-size: 0.85rem; /* Уменьшен размер шрифта кнопки мобильных фильтров */
    width: auto;
    min-width: 130px; /* Уменьшена минимальная ширина */
    position: relative;
    overflow: hidden;
}

.mobile-filters-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

.mobile-filters-btn:hover::before {
    left: 100%;
}

.mobile-filters-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.mobile-filters-btn:active {
    transform: translateY(0);
}

.mobile-filters-btn i {
    font-size: 0.85rem; /* Уменьшен размер иконки мобильных фильтров */
}

@media (max-width: 768px) {
    .mobile-filters-btn {
        display: flex;
    }
}

.mobile-filters-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.mobile-filters-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    backdrop-filter: blur(5px);
}

.mobile-filters-overlay.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.mobile-filters-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 300px;
    height: 100%;
    background: var(--surface);
    backdrop-filter: blur(15px);
    padding: 1.25rem;
    overflow-y: auto;
    transition: right 0.3s ease;
    z-index: 1002;
    box-shadow: var(--shadow-sm);
}

.mobile-filters-sidebar.active {
    right: 0;
}

.mobile-filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.mobile-filters-header h3 {
    font-size: 1rem; /* Уменьшен размер заголовка мобильных фильтров */
    font-weight: 700;
    color: var(--text-primary);
}

.close-filters {
    background: none;
    border: none;
    font-size: 1.1rem; /* Уменьшен размер кнопки закрытия фильтров */
    color: var(--text-tertiary);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: var(--radius);
    transition: all 0.3s ease;
}

.close-filters:hover {
    color: var(--text-primary);
    background: var(--surface-dark);
}

/* Toast Notification */
.toast {
    position: fixed;
    top: 1rem;
    right: 1rem;
    background: var(--surface);
    color: var(--text-primary);
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--success);
    z-index: 10000;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    max-width: 350px;
}

.toast.show {
    transform: translateX(0);
}

.toast.error {
    border-left-color: var(--error);
}

.toast.warning {
    border-left-color: var(--warning);
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.toast-icon {
    font-size: 1.1rem; /* Уменьшен размер иконки уведомления */
    flex-shrink: 0;
}

.toast.success .toast-icon {
    color: var(--success);
}

.toast.error .toast-icon {
    color: var(--error);
}

.toast.warning .toast-icon {
    color: var(--warning);
}

.toast-message {
    font-size: 0.85rem; /* Уменьшен размер сообщения уведомления */
    font-weight: 500;
}

/* View Controls */
.view-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--surface);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.results-count {
    font-size: 0.9rem; /* Уменьшен размер счетчика результатов */
    font-weight: 600;
    color: var(--text-primary);
}

.view-options {
    display: flex;
    gap: 0.5rem;
}

.view-option {
    background: var(--surface-dark);
    border: 1px solid var(--border);
    padding: 0.45rem 0.9rem; /* Уменьшены отступы опций просмотра */
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.75rem; /* Уменьшен размер шрифта опций просмотра */
    font-weight: 500;
}

.view-option.active {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
}

/* NEW STYLES FOR DASHBOARD IMPROVEMENTS */
.dashboard-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.deadline-opportunities,
.featured-opportunities {
    background: var(--surface);
    backdrop-filter: blur(15px);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.section-title {
    font-size: 1.1rem; /* Уменьшен размер заголовка секции */
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
}

.section-title i {
    color: var(--primary);
}

.deadline-list,
.featured-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.deadline-item,
.featured-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--surface-dark);
    border-radius: var(--radius);
    border-left: 4px solid var(--error);
    transition: all 0.3s ease;
    cursor: pointer;
}

.featured-item {
    border-left-color: var(--primary);
}

.deadline-item:hover,
.featured-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow);
}

.opportunity-icon {
    width: 35px; /* Уменьшен размер иконки возможности */
    height: 35px; /* Уменьшен размер иконки возможности */
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem; /* Уменьшен размер иконки возможности */
    flex-shrink: 0;
}

.deadline-item .opportunity-icon {
    background: var(--gradient-accent);
}

.opportunity-info {
    flex: 1;
}

.opportunity-info h4 {
    font-size: 0.9rem; /* Уменьшен размер заголовка возможности */
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.opportunity-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem; /* Уменьшен размер мета-информации возможности */
    color: var(--text-secondary);
}

.days-left {
    font-weight: 700;
    color: var(--error);
}

.view-all-btn {
    display: block;
    text-align: center;
    margin-top: 1rem;
    padding: 0.75rem;
    background: var(--surface-dark);
    border-radius: var(--radius);
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.85rem; /* Уменьшен размер шрифта кнопки "показать все" */
}

.view-all-btn:hover {
    background: var(--primary);
    color: white;
}

/* Weekly Digest */
.weekly-digest {
    background: var(--surface);
    backdrop-filter: blur(15px);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.25);
    margin-bottom: 1.5rem;
}

.digest-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.digest-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.digest-tag {
    background: var(--surface-dark);
    color: var(--text-secondary);
    padding: 0.45rem 0.9rem; /* Уменьшены отступы тегов дайджеста */
    border-radius: 2rem;
    font-size: 0.75rem; /* Уменьшен размер тегов дайджеста */
    font-weight: 500;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.digest-tag:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* Logout Button */
.logout-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 1rem; /* Уменьшены отступы кнопки выхода */
    text-decoration: none;
    color: var(--error);
    border-radius: var(--radius);
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.8rem; /* Уменьшен размер шрифта кнопки выхода */
    background: rgba(239, 68, 68, 0.1);
    margin-top: 1rem;
    border: none;
    width: 100%;
    cursor: pointer;
}

.logout-btn:hover {
    background: var(--error);
    color: white;
    transform: translateX(5px);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .content-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .filters-sidebar {
        position: static;
        margin-bottom: 1rem;
    }

    .profile-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .profile-sidebar {
        position: static;
    }

    .dashboard-highlights {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .nav {
        display: none;
    }

    .header-actions {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .search-box {
        min-width: auto;
        width: 100%;
        margin-bottom: 1rem;
    }

    .hero-title {
        font-size: 1.8rem; /* Уменьшен размер заголовка героя для мобильных */
    }

    .hero-subtitle {
        font-size: 0.95rem; /* Уменьшен размер подзаголовка героя для мобильных */
    }

    .opportunities-grid,
    .universities-grid {
        grid-template-columns: 1fr;
    }

    .view-controls {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .view-options {
        justify-content: center;
    }

    .modal-content {
        padding: 1.25rem;
        width: 95%;
    }

    .modal-actions {
        flex-direction: column;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .profile-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .achievement-item {
        flex-direction: column;
        text-align: center;
    }

    .reminder-item {
        flex-direction: column;
        text-align: center;
    }

    .tips-grid {
        grid-template-columns: 1fr;
    }

    .mobile-filters-btn {
        display: flex;
    }

    .filters-sidebar {
        display: none;
    }

    .auth-modal .modal-content {
        width: 90vw;
        max-width: 90vw;
        margin: 0;
        left: 50%;
        transform: translate(-50%, -50%);
        position: fixed;
    }

    /* Адаптация навигации профиля для мобильных */
    .profile-nav {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }

    .nav-item {
        flex-direction: column;
        text-align: center;
        padding: 0.75rem 0.5rem;
        font-size: 0.75rem; /* Уменьшен размер шрифта навигации профиля для мобильных */
    }

    .nav-item i {
        margin-bottom: 0.5rem;
        font-size: 0.9rem; /* Уменьшен размер иконок навигации профиля для мобильных */
    }

    .logout-btn {
        grid-column: 1 / -1;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .page-hero {
        padding: 2rem 0;
    }

    .hero-title {
        font-size: 1.6rem; /* Уменьшен размер заголовка героя для очень маленьких экранов */
    }

    .opportunity-card,
    .university-card {
        padding: 1rem;
    }

    .opportunity-actions,
    .university-actions {
        flex-direction: column;
    }

    .profile-sidebar,
    .profile-content {
        padding: 1.25rem;
    }

    .profile-nav {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    /* Profile Navigation - IMPROVED MOBILE DESIGN */
    .profile-sidebar {
        padding: 1.25rem;
    }

    .profile-stats {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
        margin-bottom: 1.5rem;
        padding: 0.75rem;
        background: var(--surface-dark);
        border-radius: var(--radius-lg);
    }

    .profile-stat {
        text-align: center;
        padding: 0.5rem;
        border-radius: var(--radius);
        transition: all 0.3s ease;
    }

    .profile-stat:hover {
        background: rgba(99, 102, 241, 0.1);
        transform: translateY(-1px);
    }

    .profile-stat .stat-value {
        font-size: 1.1rem; /* Уменьшен размер значений статистики для мобильных */
        font-weight: 700;
        color: var(--primary);
        display: block;
        line-height: 1.2;
    }

    .profile-stat .stat-label {
        font-size: 0.65rem; /* Уменьшен размер меток статистики для мобильных */
        color: var(--text-secondary);
        text-transform: uppercase;
        letter-spacing: 0.5px;
        font-weight: 600;
        margin-top: 0.25rem;
    }

    /* Improved Profile Navigation */
    .profile-nav {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 0.7rem 0.5rem; /* Уменьшены отступы элементов навигации для мобильных */
        text-decoration: none;
        color: var(--text-secondary);
        border-radius: var(--radius-lg);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        font-size: 0.7rem; /* Уменьшен размер шрифта навигации для мобильных */
        font-weight: 600;
        background: var(--surface-dark);
        border: 1px solid transparent;
        min-height: 65px; /* Уменьшена минимальная высота элементов навигации */
        text-align: center;
    }

    .nav-item:hover,
    .nav-item.active {
        background: var(--gradient-primary);
        color: white;
        border-color: var(--primary);
        transform: translateY(-2px);
        box-shadow: var(--shadow);
    }

    .nav-item i {
        font-size: 1.1rem; /* Уменьшен размер иконок навигации для мобильных */
        margin-bottom: 0.5rem;
        transition: transform 0.3s ease;
    }

    .nav-item:hover i,
    .nav-item.active i {
        transform: scale(1.1);
    }

    /* Logout button styling */
    .logout-btn {
        grid-column: 1 / -1;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        padding: 0.8rem 1rem; /* Уменьшены отступы кнопки выхода для мобильных */
        margin-top: 0.5rem;
        background: rgba(239, 68, 68, 0.1);
        color: var(--error);
        border: 1px solid rgba(239, 68, 68, 0.2);
        border-radius: var(--radius-lg);
        font-size: 0.75rem; /* Уменьшен размер шрифта кнопки выхода для мобильных */
        font-weight: 600;
    }

    .logout-btn:hover {
        background: var(--error);
        color: white;
        transform: translateY(-1px);
    }

    /* Profile header improvements */
    .profile-header {
        text-align: center;
        margin-bottom: 1.5rem;
        padding-bottom: 1rem;
        border-bottom: 1px solid var(--border);
    }

    .profile-avatar {
        width: 65px; /* Уменьшен размер аватара для мобильных */
        height: 65px; /* Уменьшен размер аватара для мобильных */
        margin: 0 auto 1rem;
    }

    .profile-name {
        font-size: 1rem; /* Уменьшен размер имени профиля для мобильных */
        margin-bottom: 0.25rem;
    }

    .profile-title {
        font-size: 0.75rem; /* Уменьшен размер заголовка профиля для мобильных */
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .profile-sidebar {
        padding: 1rem;
    }

    .profile-stats {
        gap: 0.25rem;
        padding: 0.5rem;
    }

    .profile-stat .stat-value {
        font-size: 1rem; /* Уменьшен размер значений статистики для очень маленьких экранов */
    }

    .profile-stat .stat-label {
        font-size: 0.6rem; /* Уменьшен размер меток статистики для очень маленьких экранов */
    }

    .profile-nav {
        gap: 0.375rem;
    }

    .nav-item {
        padding: 0.6rem 0.375rem; /* Уменьшены отступы элементов навигации для очень маленьких экранов */
        min-height: 60px; /* Уменьшена минимальная высота элементов навигации */
        font-size: 0.65rem; /* Уменьшен размер шрифта навигации для очень маленьких экранов */
    }

    .nav-item i {
        font-size: 1rem; /* Уменьшен размер иконок навигации для очень маленьких экранов */
        margin-bottom: 0.375rem;
    }

    .logout-btn {
        padding: 0.7rem; /* Уменьшены отступы кнопки выхода для очень маленьких экранов */
        font-size: 0.7rem; /* Уменьшен размер шрифта кнопки выхода для очень маленьких экранов */
    }
}

/* Optional: Add subtle animation to stats */
@keyframes statPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.profile-stat:hover .stat-value {
    animation: statPulse 0.6s ease;
}

/* PWA Tutorial Button */
.pwa-tutorial-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 10px 18px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.pwa-tutorial-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 30px rgba(99, 102, 241, 0.4);
}

.pwa-tutorial-btn.hidden {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

.pwa-tutorial-close {
    display: none !important;
}

.pwa-tutorial-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}
/* Скрываем кнопку в standalone режиме PWA */
@media all and (display-mode: standalone) {
    .pwa-tutorial-btn {
        display: none !important;
    }
}

/* PWA Tutorial Modal */
.pwa-tutorial-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 1001;
    animation: fadeIn 0.3s ease;
}

.pwa-tutorial-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--surface);
    border-radius: var(--radius-xl);
    padding: 1.8rem; /* Уменьшены отступы контента PWA */
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: modalSlideIn 0.3s ease;
}

.pwa-tutorial-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.pwa-tutorial-header h3 {
    font-size: 1.3rem; /* Уменьшен размер заголовка PWA */
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.pwa-tutorial-close-modal {
    background: none;
    border: none;
    font-size: 1.3rem; /* Уменьшен размер кнопки закрытия PWA */
    color: var(--text-tertiary);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: var(--radius);
    transition: all 0.3s ease;
}

.pwa-tutorial-close-modal:hover {
    color: var(--text-primary);
    background: var(--surface-dark);
}

.pwa-tutorial-steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.pwa-tutorial-step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.1rem; /* Уменьшены отступы шагов PWA */
    background: var(--surface-dark);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.pwa-tutorial-step:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow);
}

.step-number {
    width: 30px; /* Уменьшен размер номера шага */
    height: 30px; /* Уменьшен размер номера шага */
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.85rem; /* Уменьшен размер шрифта номера шага */
    flex-shrink: 0;
}

.step-content h4 {
    font-size: 1rem; /* Уменьшен размер заголовка шага */
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.step-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.85rem; /* Уменьшен размер текста шага */
}

.browser-specific {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(99, 102, 241, 0.1);
    border-radius: var(--radius);
    border-left: 4px solid var(--primary);
}

.browser-specific h5 {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem; /* Уменьшен размер заголовка браузера */
}

.browser-specific h5 i {
    color: var(--primary);
}

.browser-specific p {
    font-size: 0.8rem; /* Уменьшен размер текста браузера */
    margin: 0;
}

.pwa-tutorial-footer {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.pwa-tutorial-footer p {
    color: var(--text-secondary);
    font-size: 0.85rem; /* Уменьшен размер текста футера PWA */
    margin-bottom: 1rem;
}

/* Mobile responsiveness for PWA tutorial */
@media (max-width: 768px) {
    .pwa-tutorial-btn {
        bottom: 15px;
        right: 15px;
        padding: 8px 14px; /* Уменьшены отступы кнопки PWA для мобильных */
        font-size: 0.75rem; /* Уменьшен размер шрифта кнопки PWA для мобильных */
    }

    .pwa-tutorial-content {
        padding: 1.5rem;
        width: 95%;
    }

    .pwa-tutorial-step {
        padding: 1rem;
    }

    .step-number {
        width: 26px; /* Уменьшен размер номера шага для мобильных */
        height: 26px; /* Уменьшен размер номера шага для мобильных */
        font-size: 0.75rem; /* Уменьшен размер шрифта номера шага для мобильных */
    }
}

@media (max-width: 480px) {
    .pwa-tutorial-btn {
        bottom: 10px;
        right: 10px;
        padding: 6px 12px; /* Уменьшены отступы кнопки PWA для очень маленьких экранов */
        font-size: 0.7rem; /* Уменьшен размер шрифта кнопки PWA для очень маленьких экранов */
    }

    .pwa-tutorial-btn span {
        display: none;
    }

    .pwa-tutorial-btn::before {
        content: "Our App";
    }

    .pwa-tutorial-content {
        padding: 1.25rem;
    }
}

/* Стили для онбординг модального окна */
.onboarding-modal .modal-content {
    max-width: 600px;
    padding: 1.8rem; /* Уменьшены отступы онбординга */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    max-height: 85vh;
    overflow-y: auto;
}

.onboarding-progress {
    margin-bottom: 1.5rem;
}

.progress-bar {
    background: var(--border);
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
    width: 0%;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem; /* Уменьшен размер шагов прогресса */
    color: var(--text-tertiary);
    margin-bottom: 2rem;
}

.progress-step {
    text-align: center;
    flex: 1;
    position: relative;
}

.progress-step.active {
    color: var(--primary);
    font-weight: 600;
}

.progress-step.completed {
    color: var(--success);
}

.progress-step::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border);
    z-index: 2;
}

.progress-step.active::before {
    background: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.progress-step.completed::before {
    background: var(--success);
    content: '✓';
    color: white;
    font-size: 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Стили для шагов онбординга */
.onboarding-step {
    display: none;
    animation: fadeIn 0.5s ease;
}

.onboarding-step.active {
    display: block;
}

.onboarding-step h3 {
    font-size: 1.3rem; /* Уменьшен размер заголовка шага онбординга */
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.onboarding-step p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 0.95rem; /* Уменьшен размер текста шага онбординга */
}

/* Улучшенные стили для групп формы в онбординге */
.onboarding-form-group {
    margin-bottom: 2rem;
}

.onboarding-form-group label {
    display: block;
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem; /* Уменьшен размер меток формы онбординга */
}

/* Стили для выбора специальностей в онбординге */
.majors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.major-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.3rem 1rem; /* Уменьшены отступы опций специальностей */
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    min-height: 90px; /* Уменьшена минимальная высота опций специальностей */
}

.major-option:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.major-option.selected {
    background: var(--gradient-primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.major-option.selected .major-icon {
    color: white;
}

.major-icon {
    font-size: 1.3rem; /* Уменьшен размер иконки специальности */
    margin-bottom: 0.75rem;
    color: var(--primary);
    transition: all 0.3s ease;
}

.major-name {
    font-weight: 600;
    font-size: 0.85rem; /* Уменьшен размер названия специальности */
}

/* Стили для чекбоксов в онбординге */
.onboarding-checkboxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.75rem;
}

.onboarding-checkbox {
    display: flex;
    align-items: center;
    padding: 0.9rem; /* Уменьшены отступы чекбоксов онбординга */
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.3s ease;
}

.onboarding-checkbox:hover {
    border-color: var(--primary);
    transform: translateY(-1px);
}

.onboarding-checkbox.selected {
    background: var(--gradient-primary);
    border-color: var(--primary);
    color: white;
}

.onboarding-checkbox input {
    display: none;
}

.checkbox-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
}

.checkbox-icon {
    width: 18px; /* Уменьшен размер иконки чекбокса */
    height: 18px; /* Уменьшен размер иконки чекбокса */
    border: 2px solid var(--border);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.onboarding-checkbox.selected .checkbox-icon {
    background: white;
    border-color: white;
}

.onboarding-checkbox.selected .checkbox-icon::after {
    content: '✓';
    color: var(--primary);
    font-weight: bold;
    font-size: 0.7rem; /* Уменьшен размер галочки чекбокса */
}

.checkbox-label {
    font-weight: 600;
    font-size: 0.85rem; /* Уменьшен размер метки чекбокса */
}

/* Кнопки навигации онбординга */
.onboarding-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.onboarding-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.4rem; /* Уменьшены отступы кнопок онбординга */
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem; /* Уменьшен размер шрифта кнопок онбординга */
}

.onboarding-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.onboarding-btn-prev {
    background: var(--surface);
    color: var(--text-secondary);
    border: 2px solid var(--border);
}

.onboarding-btn-prev:hover:not(:disabled) {
    background: var(--surface-dark);
    color: var(--text-primary);
}

.onboarding-btn-next {
    background: var(--gradient-primary);
    color: white;
}

.onboarding-btn-next:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.onboarding-btn-skip {
    background: transparent;
    color: var(--text-tertiary);
    text-decoration: underline;
    font-size: 0.8rem; /* Уменьшен размер шрифта кнопки пропуска */
}

.onboarding-btn-skip:hover {
    color: var(--text-secondary);
}

/* Анимации для онбординга */
@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.onboarding-step.slide-in-right {
    animation: slideInFromRight 0.5s ease;
}

.onboarding-step.slide-in-left {
    animation: slideInFromLeft 0.5s ease;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .onboarding-modal .modal-content {
        padding: 1.5rem;
        width: 95%;
        max-height: 90vh;
    }

    .majors-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .major-option {
        padding: 1rem 0.5rem;
        min-height: 75px; /* Уменьшена минимальная высота опций специальностей для мобильных */
    }

    .major-icon {
        font-size: 1.1rem; /* Уменьшен размер иконки специальности для мобильных */
        margin-bottom: 0.5rem;
    }

    .major-name {
        font-size: 0.8rem; /* Уменьшен размер названия специальности для мобильных */
    }

    .onboarding-checkboxes {
        grid-template-columns: 1fr;
    }

    .onboarding-actions {
        flex-direction: column;
        gap: 1rem;
    }

    .onboarding-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .onboarding-modal .modal-content {
        padding: 1.25rem;
    }

    .majors-grid {
        grid-template-columns: 1fr;
    }

    .onboarding-step h3 {
        font-size: 1.15rem; /* Уменьшен размер заголовка шага онбординга для очень маленьких экранов */
    }
}

/* Добавьте в секцию CSS */
.university-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ranking-text {
    color: var(--warning);
    font-size: 0.75rem;
    font-weight: 700;
    background: rgba(245, 158, 11, 0.1);
    padding: 0.25rem 0.6rem;
    border-radius: 1rem;
    border: 1px solid rgba(245, 158, 11, 0.3);
}
/* Добавьте в секцию CSS */
.ranking-badge {
    color: var(--warning);
    font-size: 0.7rem;
    font-weight: 600;
    background: rgba(245, 158, 11, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(245, 158, 11, 0.2);
    display: inline-block;
    line-height: 1;
}
/* КОМПАКТНЫЕ ПУСТЫЕ СОСТОЯНИЯ НА ВСЮ ШИРИНУ */
.no-results {
    text-align: center;
    padding: 2rem 1rem;
    background: var(--surface);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin: 1rem 0;
    width: 100%;
    grid-column: 1 / -1;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.no-results::before {
    display: none; /* Убираем верхнюю полосу */
}

.no-results-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary);
    opacity: 0.7;
}

.no-results h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.no-results p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0 auto 1.5rem;
    max-width: 400px;
}

.no-results-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.no-results-actions .btn {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    min-width: 120px;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .no-results {
        padding: 1.5rem 1rem;
        min-height: 180px;
        margin: 0.5rem 0;
    }
    
    .no-results-icon {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }
    
    .no-results h3 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    
    .no-results p {
        font-size: 0.85rem;
        margin-bottom: 1.25rem;
    }
    
    .no-results-actions {
        flex-direction: row;
        gap: 0.5rem;
    }
    
    .no-results-actions .btn {
        min-width: 110px;
        padding: 0.45rem 0.9rem;
    }
}

/* Для очень маленьких экранов */
@media (max-width: 480px) {
    .no-results {
        padding: 1.25rem 0.75rem;
        min-height: 160px;
    }
    
    .no-results-actions {
        flex-direction: column;
        width: 100%;
        max-width: 200px;
        margin: 0 auto;
    }
    
    .no-results-actions .btn {
        width: 100%;
    }
}

/* Вариант совсем без блока - минималистичный */
.no-results.minimal {
    background: transparent;
    backdrop-filter: none;
    border: none;
    box-shadow: none;
    padding: 1.5rem 1rem;
    min-height: 120px;
}

.no-results.minimal .no-results-icon {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.no-results.minimal h3 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.no-results.minimal p {
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

/* Стили для дополнительной фильтрации стран */
.country-filters-container {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--surface-dark);
    border-radius: var(--radius);
    border-left: 3px solid var(--primary);
    display: none;
}

.country-filters-container.active {
    display: block;
    animation: slideDown 0.3s ease;
}

.country-filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.country-filters-header h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.country-filters-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.country-filter-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.8rem;
}

.country-filter-option:hover {
    background: rgba(99, 102, 241, 0.1);
}

.country-filter-option input {
    display: none;
}

.country-filter-checkbox {
    width: 1rem;
    height: 1rem;
    border: 2px solid var(--border);
    border-radius: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.country-filter-option input:checked + .country-filter-checkbox {
    background: var(--gradient-primary);
    border-color: var(--primary);
}

.country-filter-option input:checked + .country-filter-checkbox::after {
    content: '✓';
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
}

.other-countries-btn {
    width: 100%;
    padding: 0.6rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-secondary);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.other-countries-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.region-option {
    position: relative;
}

.region-option.has-selection::after {
    content: '•';
    position: absolute;
    right: 1rem;
    color: var(--primary);
    font-weight: bold;
}
/* FIX FOR WHITE BACKGROUND - ADD THIS */
body {
    background: var(--gradient-bg) !important;
    min-height: 100vh;
}

.bg-elements {
    z-index: -1 !important;
}

.bg-pattern {
    z-index: -1 !important;
}

.container {
    position: relative;
    z-index: 1;
}

.page {
    background: transparent !important;
}
/* Google Auth Button Styles - Unified */
.auth-google-btn,
#registerModal .btn-outline#googleRegisterBtn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.7rem 1rem;
    background: white;
    color: #000000;
    border: 2px solid #e0e0e0;
    border-radius: var(--radius);
    font-weight: 400;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    margin-bottom: 1rem;
}

.auth-google-btn::before,
#registerModal .btn-outline#googleRegisterBtn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(66, 133, 244, 0.1), transparent);
    transition: left 0.6s;
}

.auth-google-btn:hover::before,
#registerModal .btn-outline#googleRegisterBtn:hover::before {
    left: 100%;
}

.auth-google-btn:hover,
#registerModal .btn-outline#googleRegisterBtn:hover {
    border-color: var(--primary);
     box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15); 
    transform: translateY(-1px);
    color: var(--primary);
}

.auth-google-btn:active,
#registerModal .btn-outline#googleRegisterBtn:active {
    transform: translateY(0);
}

/* Colorful Google "G" logo */
.auth-google-btn i.fa-google,
#registerModal .btn-outline#googleRegisterBtn i.fa-google {
    background: conic-gradient(
        from -45deg,
        #ea4335 0deg 90deg,
        #4285f4 90deg 180deg, 
        #34a853 180deg 270deg,
        #fbbc05 270deg 360deg
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 1rem;
    font-weight: 900;
}

/* Mobile responsiveness for Google buttons */
@media (max-width: 768px) {
    .auth-google-btn,
    #registerModal .btn-outline#googleRegisterBtn {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
    
    .auth-google-btn i.fa-google,
    #registerModal .btn-outline#googleRegisterBtn i.fa-google {
        font-size: 1.1rem;
    }
}
/* Auth Divider Styles */
.auth-divider {
    text-align: center;
    margin: 1.5rem 0;
    position: relative;
    color: var(--text-tertiary);
    font-size: 0.8rem;
    font-weight: 500;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border);
    z-index: 1;
}

.auth-divider span {
    background: var(--surface);
    padding: 0 1rem;
    position: relative;
    z-index: 2;
    color: var(--text-tertiary);
}

/* Alternative more modern divider style */
.auth-divider-modern {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
    color: var(--text-tertiary);
    font-size: 0.8rem;
    font-weight: 500;
}

.auth-divider-modern::before,
.auth-divider-modern::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border);
}

.auth-divider-modern::before {
    margin-right: 1rem;
}

.auth-divider-modern::after {
    margin-left: 1rem;
}

/* Or if you prefer the line-through text effect */
.auth-divider-line {
    text-align: center;
    margin: 1.5rem 0;
    position: relative;
}

.auth-divider-line::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
    transform: translateY(-50%);
}

.auth-divider-line span {
    background: var(--surface);
    padding: 0 1.5rem;
    position: relative;
    z-index: 2;
    color: var(--text-tertiary);
    font-size: 0.8rem;
    font-weight: 500;
}
/* Добавьте эти стили в CSS секцию */
.profile-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding: 0.75rem;
    background: var(--surface-dark);
    border-radius: var(--radius-lg);
}

.profile-stat {
    text-align: center;
    padding: 0.5rem;
    border-radius: var(--radius);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.profile-stat:hover {
    background: rgba(99, 102, 241, 0.1);
    transform: translateY(-1px);
}

.profile-stat .stat-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    display: block;
    line-height: 1.2;
}

.profile-stat .stat-label {
    font-size: 0.65rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-top: 0.25rem;
}
/* Guides Grid - Simplified */
.guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 1.5rem;
}

.guide-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.guide-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

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

.guide-card:hover::before {
    transform: scaleX(1);
}

.guide-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.guide-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.guide-icon.usa {
    background: linear-gradient(135deg, #B31942 0%, #0A3161 100%);
    color: white;
}

.guide-icon.uk {
    background: linear-gradient(135deg, #012169 0%, #C8102E 50%, #FFFFFF 100%);
    color: white;
}

.guide-icon.italy {
    background: linear-gradient(135deg, #009246 0%, #FFFFFF 50%, #CE2B37 100%);
    color: #333;
}

.guide-icon.general {
    background: var(--gradient-primary);
    color: white;
}

.guide-icon.resource {
    background: var(--gradient-accent);
    color: white;
}

.guide-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    line-height: 1.3;
}

.guide-category {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: var(--surface-dark);
    color: var(--text-secondary);
    border-radius: 1rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.guide-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.guide-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    color: var(--text-tertiary);
    font-size: 0.75rem;
}

/* Guide Modal Styles */
.guide-modal .modal-content {
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
}

.guide-modal-content {
    padding: 0;
}

.guide-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--surface-dark);
    border-radius: var(--radius);
}

.guide-section h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.guide-section h4 i {
    color: var(--primary);
}

.timeline-step {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1.2rem;
    background: var(--surface);
    border-radius: var(--radius);
    border-left: 4px solid var(--primary);
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.step-content h5 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.step-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.step-deadline {
    color: var(--warning);
    font-weight: 600;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.scholarship-list, .resource-list {
    list-style: none;
    padding: 0;
}

.scholarship-list li, .resource-list li {
    padding: 0.8rem;
    margin-bottom: 0.5rem;
    background: var(--surface);
    border-radius: var(--radius);
    border-left: 3px solid var(--primary);
}

.scholarship-list strong {
    color: var(--text-primary);
}

.scholarship-link, .resource-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
}

.scholarship-link:hover, .resource-link:hover {
    text-decoration: underline;
}

/* Download Button */
.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: var(--gradient-primary);
    color: white;
    text-decoration: none;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

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

/* Mobile Responsive */
@media (max-width: 768px) {
    .guides-grid {
        grid-template-columns: 1fr;
    }
    
    .guide-modal .modal-content {
        width: 95%;
        margin: 1rem;
    }
    
    .timeline-step {
        flex-direction: column;
        gap: 0.75rem;
    }
}
/* FIX FOR GUIDE MODAL CENTERING ON MOBILE */
.guide-modal .modal-content {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 90% !important;
    max-width: 800px !important;
    max-height: 85vh !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-y: auto;
}

.guide-modal-content {
    padding: 0;
}

/* Mobile responsiveness for guide modal */
@media (max-width: 768px) {
    .guide-modal .modal-content {
        width: 95vw !important;
        max-width: 95vw !important;
        height: 90vh !important;
        max-height: 90vh !important;
        margin: 0 !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        position: fixed !important;
        border-radius: 12px;
    }
    
    .guide-modal-content {
        padding: 1rem;
    }
    
    .guide-section {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .timeline-step {
        flex-direction: column;
        gap: 0.75rem;
        padding: 1rem;
    }
    
    .guides-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }
    
    .guide-card {
        padding: 1.25rem;
    }
}

@media (max-width: 480px) {
    .guide-modal .modal-content {
        width: 98vw !important;
        height: 95vh !important;
        border-radius: 8px;
        padding: 0 !important;
    }
    
    .guide-modal .modal-header {
       padding: 1rem;
        position: sticky;
        top: 0;
        background: var(--surface);
        z-index: 10;
        border-bottom: 1px solid var(--border);
    }
    
    .guide-modal-content {
        padding: 0.75rem;
    }
    
    .guide-section {
        padding: 0.75rem;
        margin-bottom: 1rem;
    }
    
    .timeline-step {
        padding: 0.75rem;
    }
    
    .step-number {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }
    
    /* НОВЫЙ СТИЛЬ - ВЫРАВНИВАНИЕ ВЛЕВО */
    .guide-header {
        flex-direction: row; /* Сохраняем горизонтальное расположение */
        text-align: left; /* Выравнивание влево */
        gap: 0.75rem;
        justify-content: flex-start; /* Прижимаем к левому краю */
        align-items: flex-start;
    }
    
    .guide-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
        margin: 0; /* Убираем авто-отступы */
        align-self: flex-start; /* Прижимаем к верху */
    }
}
/* FIX FOR GUIDE MODAL HEADER AND CLOSE BUTTON */
.guide-modal .modal-header {
    padding: 1.5rem 1.5rem 1rem 1.5rem;
    position: relative;
    border-bottom: 1px solid var(--border);
    margin-bottom: 0;
}

.guide-modal .modal-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    line-height: 1.3;
    padding-right: 2rem; /* пространство для крестика */
}

.guide-modal .modal-subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0;
}

.guide-modal .close-modal {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-tertiary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius);
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.guide-modal .close-modal:hover {
    color: var(--text-primary);
    background: var(--surface-dark);
    transform: scale(1.1);
}

/* Mobile fixes for header */
@media (max-width: 768px) {
    .guide-modal .modal-header {
        padding: 1.25rem 1.25rem 0.75rem 1.25rem;
    }
    
    .guide-modal .modal-title {
        font-size: 1.2rem;
       padding-right: 2.5rem;  /* больше пространства на мобильных */
    }
    
    .guide-modal .close-modal {
        top: 1rem;
        right: 1rem;
        width: 36px;
        height: 36px;
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .guide-modal .modal-header {
        padding: 1rem 1rem 0.5rem 1rem;
    }
    
    .guide-modal .modal-title {
        font-size: 1.1rem;
        padding-right: 2rem;
    }
    
    .guide-modal .close-modal {
        top: 0.75rem;
        right: 0.75rem;
        width: 32px;
        height: 32px;
        font-size: 1.2rem;
    }
}


/* Еще вариант - пастельные цвета */

.guide-icon.usa {
    background: rgba(99, 102, 241, 0.15);
    color: #6366F1;
    border: 2px solid rgba(99, 102, 241, 0.3);
}

.guide-icon.uk {
    background: rgba(6, 182, 212, 0.15);
    color: #06B6D4;
    border: 2px solid rgba(6, 182, 212, 0.3);
}

.guide-icon.italy {
    background: rgba(245, 158, 11, 0.15);
    color: #F59E0B;
    border: 2px solid rgba(245, 158, 11, 0.3);
}

.guide-icon.general {
    background: rgba(99, 102, 241, 0.15);
    color: #6366F1;
    border: 2px solid rgba(99, 102, 241, 0.3);
}

.guide-icon.resource {
    background: rgba(139, 92, 246, 0.15);
    color: #8B5CF6;
    border: 2px solid rgba(139, 92, 246, 0.3);
}
.guide-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    line-height: 1.3;
    /* Добавьте эти свойства: */
    height: 2.6em; /* Фиксированная высота для 2 строк */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
/* Guide Cards - Consistent Pastel Style */
.guide-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.guide-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

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

.guide-card:hover::before {
    transform: scaleX(1);
}

.guide-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.guide-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    border: 2px solid;
}

/* Pastel color scheme for all guide categories */
.guide-icon.usa {
    background: rgba(99, 102, 241, 0.15);
    color: #6366F1;
    border-color: rgba(99, 102, 241, 0.3);
}

.guide-icon.uk {
    background: rgba(6, 182, 212, 0.15);
    color: #06B6D4;
    border-color: rgba(6, 182, 212, 0.3);
}

.guide-icon.italy {
    background: rgba(245, 158, 11, 0.15);
    color: #F59E0B;
    border-color: rgba(245, 158, 11, 0.3);
}

.guide-icon.germany {
    background: rgba(239, 68, 68, 0.15);
    color: #EF4444;
    border-color: rgba(239, 68, 68, 0.3);
}

.guide-icon.canada {
    background: rgba(34, 197, 94, 0.15);
    color: #22C55E;
    border-color: rgba(34, 197, 94, 0.3);
}

.guide-icon.netherlands {
    background: rgba(168, 85, 247, 0.15);
    color: #A855F7;
    border-color: rgba(168, 85, 247, 0.3);
}

.guide-icon.australia {
    background: rgba(14, 165, 233, 0.15);
    color: #0EA5E9;
    border-color: rgba(14, 165, 233, 0.3);
}

.guide-icon.france {
    background: rgba(59, 130, 246, 0.15);
    color: #3B82F6;
    border-color: rgba(59, 130, 246, 0.3);
}

.guide-icon.general {
    background: rgba(99, 102, 241, 0.15);
    color: #6366F1;
    border-color: rgba(99, 102, 241, 0.3);
}

.guide-icon.resource {
    background: rgba(139, 92, 246, 0.15);
    color: #8B5CF6;
    border-color: rgba(139, 92, 246, 0.3);
}

/* Fallback for any unknown categories */
.guide-icon:not(.usa):not(.uk):not(.italy):not(.germany):not(.canada):not(.netherlands):not(.australia):not(.france):not(.general):not(.resource) {
    background: rgba(99, 102, 241, 0.15);
    color: #6366F1;
    border-color: rgba(99, 102, 241, 0.3);
}

.guide-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    line-height: 1.3;
    height: 2.6em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.guide-category {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: var(--surface-dark);
    color: var(--text-secondary);
    border-radius: 1rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.guide-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.guide-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    color: var(--text-tertiary);
    font-size: 0.75rem;
}

.guide-steps, .guide-duration {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.opportunity-card,
.university-card {
    background: #ffffff !important; /* Чистый белый без прозрачности */
    backdrop-filter: none !important;
}
/* Purple Sign Up Button in Profile - Same as Logout but Purple */
#authButtonsProfile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 1rem;
    border: none;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    border-radius: var(--radius);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
    width: 100%;
    text-decoration: none;
}

#authButtonsProfile:hover {
    background: var(--primary);
    color: white;
    transform: translateX(5px);
}

#authButtonsProfile i {
    color: var(--primary);
}

#authButtonsProfile:hover i {
    color: white;
}
/* Стили для тегов мажоров в карточках возможностей */
/* Стили для тегов специальностей в карточках возможностей */
.university-expertise {
    margin-bottom: 1rem;
    width: 100%;
}

.expertise-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.expertise-tag {
    background: var(--surface-dark);
    color: var(--text-secondary);
    padding: 0.25rem 0.6rem;
    border-radius: 1rem;
    font-size: 0.65rem;
    font-weight: 500;
    border: 1px solid var(--border);
    white-space: nowrap;
}

/* Убедитесь, что карточки возможностей имеют правильную структуру */
.opportunity-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.opportunity-details {
    flex-grow: 1;
}
/* ФИКС: Принудительный перенос длинных заголовков */
.opportunity-title,
.university-info h3 {
    word-wrap: break-word !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    hyphens: auto !important;
    max-width: 100% !important;
}
/* ЖЕСТКИЙ ЛИМИТ ПО ШИРИНЕ */
.company-info > div,
.university-info {
    max-width: calc(100% - 3rem); /* Оставляем место для кнопки сохранения */
}

/* АБСОЛЮТНОЕ ОГРАНИЧЕНИЕ */
.opportunity-title,
.university-info h3 {
    display: block;
    max-width: 100%;
    word-wrap: break-word;
    word-break: break-word;
    overflow: hidden;
}

/* ДЛЯ ОЧЕНЬ ДЛИННЫХ НЕПРЕРЫВНЫХ СЛОВ */
.opportunity-title {
    overflow-wrap: break-word;
    word-break: break-all;
}
/* ИСПРАВЛЕНИЕ ДЛЯ ГАЛОЧЕК ФИЛЬТРОВ */
.filter-option input:checked + .custom-checkbox,
.filter-option.selected .custom-checkbox {
    background: var(--gradient-primary) !important;
    border-color: var(--primary) !important;
}

.filter-option input:checked + .custom-checkbox::after,
.filter-option.selected .custom-checkbox::after {
    content: '✓' !important;
    color: white !important;
    font-size: 0.7rem !important;
    font-weight: bold !important;
}

.filter-option.selected {
   
    border-radius: var(--radius) !important;
}

/* Убедитесь, что галочки видны при загрузке */
.filter-option input[data-checked="true"] + .custom-checkbox {
    background: var(--gradient-primary) !important;
    border-color: var(--primary) !important;
}

.filter-option input[data-checked="true"] + .custom-checkbox::after {
    content: '✓' !important;
}
/* Добавьте в CSS секцию */
.search-tips {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    margin: 0.5rem 0 1.5rem;
    font-style: italic;
}

/* Анимация для поиска */
@keyframes searchPulse {
    0% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(99, 102, 241, 0); }
    100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0); }
}

.search-box:focus-within {
    animation: searchPulse 1.5s infinite;
}
/* Мобильная иконка поиска */
.mobile-search-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius);
    transition: all 0.3s ease;
    margin-left: 0.5rem;
}

.mobile-search-btn:hover {
    background: var(--surface-dark);
}

/* Мобильный поиск оверлей */
.mobile-search-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 1001;
}

.mobile-search-overlay.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* Мобильная панель поиска */
.mobile-search-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--surface);
    backdrop-filter: blur(20px);
    z-index: 1002;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    box-shadow: var(--shadow-lg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    max-height: 100vh;
    overflow-y: auto;
}

.mobile-search-bar.active {
    transform: translateY(0);
}

/* Заголовок поиска */
.mobile-search-header {
    display: flex;
    align-items: center;
    padding: 1rem;
    gap: 0.75rem;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
    position: sticky;
    top: 0;
    z-index: 10;
}

.mobile-search-input-container {
    flex: 1;
    display: flex;
    align-items: center;
    background: var(--surface-dark);
    border-radius: var(--radius);
    padding: 0.5rem 1rem;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.mobile-search-input-container:focus-within {
    border-color: var(--primary);
    background: var(--surface);
}

.mobile-search-icon {
    color: var(--text-tertiary);
    margin-right: 0.5rem;
    font-size: 0.9rem;
}

.mobile-search-input-container input {
    border: none;
    background: none;
    outline: none;
    width: 100%;
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 500;
}

.mobile-search-input-container input::placeholder {
    color: var(--text-tertiary);
    font-weight: 400;
}

.mobile-search-close {
    background: none;
    border: none;
    color: var(--text-tertiary);
    font-size: 1.3rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius);
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-search-close:hover {
    color: var(--text-primary);
    background: var(--surface-dark);
}

/* Результаты поиска на мобильных */
.mobile-search-results {
    padding: 1rem;
    max-height: 70vh;
    overflow-y: auto;
}

.mobile-search-result-item {
    padding: 1rem;
    margin-bottom: 0.5rem;
    background: var(--surface-dark);
    border-radius: var(--radius);
    border-left: 3px solid var(--primary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-search-result-item:hover {
    transform: translateX(5px);
    background: var(--surface);
}

.mobile-search-result-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.mobile-search-result-subtitle {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.mobile-search-result-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

.mobile-search-result-type {
    background: var(--gradient-primary);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 1rem;
    font-size: 0.7rem;
    font-weight: 600;
}

.mobile-search-no-results {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--text-secondary);
}

.mobile-search-no-results i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary);
    opacity: 0.7;
}

.mobile-search-no-results h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.mobile-search-recent-searches {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.mobile-search-recent-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.mobile-search-recent-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.mobile-search-recent-tag {
    background: var(--surface-dark);
    color: var(--text-secondary);
    padding: 0.4rem 0.8rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

.mobile-search-recent-tag:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Показать иконку поиска только на мобильных */
@media (max-width: 768px) {
    .mobile-search-btn {
        display: block;
    }
    
    .search-box {
        display: none;
    }
}

/* Адаптивность для маленьких экранов */
@media (max-width: 480px) {
    .mobile-search-header {
        padding: 0.75rem;
    }
    
    .mobile-search-results {
        padding: 0.75rem;
    }
    
    .mobile-search-result-item {
        padding: 0.75rem;
    }
}
@media (max-width: 768px) {
    .mobile-search-btn {
        display: block !important;
    }
    
    .search-box {
        display: none !important;
    }
    
    /* Обновите хедер чтобы вместить обе иконки */
    .header-content {
        gap: 0.5rem;
    }
    
    .mobile-menu-btn,
    .mobile-search-btn {
        margin-left: 0.25rem;
    }
}
/* ТОЛЬКО СТИЛИ ДЛЯ ИКОНКИ ПОИСКА И ЕЕ ПОЗИЦИОНИРОВАНИЯ */
@media (max-width: 768px) {
    .header-content {
        gap: 8px !important;
        padding: 0.5rem 1rem !important;
        display: flex !important;
        align-items: center !important;
    }
    
    /* Логотип - слева в левом углу, прижат в угол */
    .logo {
        margin-right: auto !important;
        flex-shrink: 0 !important;
        padding-left: 0 !important;
        margin-left: -4px !important;
    }
    
    /* ИКОНКА ПОИСКА - компактная, белый фон, фиолетовая иконка */
    .mobile-search-btn {
        display: flex !important;
        margin: 0 !important;
        padding: 0 !important;
        width: 38px !important;
        height: 38px !important;
        border-radius: 50% !important;
        background: white !important;
        border: 1.5px solid rgba(99, 102, 241, 0.2) !important;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08),
                    inset 0 1px 3px rgba(255, 255, 255, 0.8) !important;
        color: var(--primary) !important;
        cursor: pointer !important;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        position: relative !important;
        overflow: hidden !important;
        align-items: center !important;
        justify-content: center !important;
        flex-shrink: 0 !important;
        margin-left: 6px !important;
    }
    
    .mobile-search-btn:hover {
        transform: translateY(-1px) !important;
        border-color: var(--primary) !important;
        box-shadow: 0 4px 10px rgba(99, 102, 241, 0.15),
                    inset 0 1px 3px rgba(255, 255, 255, 1) !important;
        color: var(--primary-dark) !important;
    }
    
    .mobile-search-btn i {
        font-size: 16px !important;
        position: relative;
        z-index: 2;
        transition: all 0.3s ease;
        font-weight: 600;
    }
    
    /* УЛУЧШЕННАЯ ИКОНКА БУРГЕР МЕНЮ */
    .mobile-menu-btn {
        margin: 0 !important;
        margin-left: 6px !important;
        padding: 0 !important;
        width: 40px !important;
        height: 40px !important;
        border-radius: 12px !important;
        background: white !important;
        border: 1.5px solid rgba(99, 102, 241, 0.15) !important;
        color: var(--primary) !important;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        transition: all 0.3s ease !important;
        flex-shrink: 0 !important;
    }
    
    .mobile-menu-btn:hover {
        transform: translateY(-1px) !important;
        border-color: var(--primary) !important;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12) !important;
    }
    
    .mobile-menu-btn i {
        font-size: 18px !important;
        transition: transform 0.3s ease;
        font-weight: 600;
    }
    
    /* МИНИМАЛИСТИЧНОЕ ВЫПАДАЮЩЕЕ МЕНЮ - БЕЗ РАМОК */
    .mobile-nav {
        position: fixed !important;
        top: 60px !important;
        left: 0 !important;
        right: 0 !important;
        background: white !important;
        border-bottom: 1px solid rgba(99, 102, 241, 0.1) !important; /* Тонкая граница */
        z-index: 999 !important;
        padding: 0.75rem 1rem !important; /* Меньше отступов */
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08) !important; /* Мягкая тень */
        max-height: 0 !important;
        overflow: hidden !important;
        transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
        opacity: 0 !important;
        visibility: hidden !important;
    }
    
    /* ФИКС: убираем дырку */
    .header {
        position: relative;
        z-index: 1000;
        min-height: 60px !important;
        border-bottom: 1px solid rgba(99, 102, 241, 0.1) !important;
        background: white !important;
    }
    
    .mobile-nav.active {
        max-height: 400px !important; /* Чуть меньше высота */
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .mobile-nav ul {
        list-style: none !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 0.5rem !important; /* Меньше отступов между пунктами */
        padding: 0 !important;
        margin: 0 !important;
    }
    
    /* ПУНКТЫ МЕНЮ - МИНИМАЛИСТИЧНЫЕ БЕЗ РАМОК */
    .mobile-nav-link {
        display: flex !important;
        align-items: center !important;
        gap: 0.875rem !important; /* Компактнее */
        padding: 0.875rem 1rem !important; /* Меньше паддинги */
        text-decoration: none !important;
        color: var(--text-primary) !important;
        font-weight: 500 !important;
        transition: all 0.25s ease !important;
        border-radius: 10px !important;
        font-size: 0.95rem !important; /* Нормальный размер */
        background: transparent !important; /* ПРОЗРАЧНЫЙ фон - БЕЗ РАМОК */
        border: none !important; /* УБИРАЕМ ВСЕ РАМКИ */
    }
    
    /* Анимация при наведении - легкая */
    .mobile-nav-link:hover {
        background: rgba(99, 102, 241, 0.06) !important; /* Еле заметный фон */
        color: var(--primary) !important;
        transform: translateX(4px) !important; /* Легкий сдвиг */
    }
    
    /* Активный пункт меню - минималистичный */
    .mobile-nav-link.active {
        background: rgba(99, 102, 241, 0.08) !important; /* Легкий фон */
        color: var(--primary) !important;
        font-weight: 600 !important;
    }
    
    /* УБИРАЕМ ::before индикатор - слишком много */
    .mobile-nav-link.active::before {
        display: none !important;
    }
    
    /* Иконки в меню - простые и маленькие */
    .mobile-nav-link i {
        width: 20px !important;
        height: 20px !important;
        font-size: 0.95rem !important; /* Меньше размер */
        color: var(--text-secondary) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: transparent !important; /* ПРОЗРАЧНЫЙ фон */
        border-radius: 6px !important;
        border: none !important; /* УБИРАЕМ РАМКУ у иконок */
        transition: all 0.25s ease !important;
    }
    
    .mobile-nav-link:hover i,
    .mobile-nav-link.active i {
        color: var(--primary) !important;
        background: transparent !important; /* Оставляем прозрачным */
        transform: none !important; /* Убираем масштабирование */
    }
    
    /* Фон при открытом меню - легкий */
    .mobile-nav-overlay {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.12); /* Более светлый */
        z-index: 998;
        backdrop-filter: blur(2px); /* Легкий блюр */
        animation: fadeIn 0.25s ease;
    }
    
    .mobile-nav.active + .mobile-nav-overlay {
        display: block;
    }
    
    /* Анимация для фона */
    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }
    
    /* Скрываем обычный поиск на мобильных */
    .search-box {
        display: none !important;
    }
    
    /* Скрываем кнопки авторизации на мобильных */
    .header-actions .auth-buttons {
        display: none !important;
    }
}
/* Фиксируем хедер при прокрутке */
.header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 1000 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08) !important;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(8px) !important;
}

/* Убеждаемся, что хедер контент имеет ту же ширину что и основной контейнер */
.header .container {
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 0 1.5rem !important;
    width: 100% !important;
}

/* Добавляем основной отступ для всего контента */
body {
    padding-top: 70px !important; /* ВАЖНО: добавляем отступ для body */
}

/* Для мобильных - меньший отступ */
@media (max-width: 768px) {
    body {
        padding-top: 60px !important;
    }
    
    /* Исправляем позиционирование мобильного меню */
    .mobile-nav {
        top: 60px !important;
    }
    
    .mobile-nav-overlay {
        top: 60px !important;
    }
}
@media (max-width: 768px) {
    /* СБРАСЫВАЕМ ВСЕ ОТСТУПЫ ХЕДЕРА */
    .header .container,
    .header-content {
        padding: 0 !important;
        margin: 0 !important;
        gap: 0 !important;
        max-width: 100% !important;
    }
    
    .header-content {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100vw !important;
        padding: 0.85rem 0.75rem !important;
    }
    
    /* АБСОЛЮТНОЕ ПРИЖАТИЕ К КРАЯМ */
    .logo {
        order: 1 !important;
        margin: 0 !important;
        padding: 0 !important;
        position: relative;
        left: 0;
    }
    
    .mobile-search-btn {
        order: 2 !important;
        margin: 0 6px 0 auto !important; /* ПРИДВИНУЛИ К МЕНЮ: auto слева, 6px справа */
        padding: 0 !important;
    }
    
    .mobile-menu-btn {
        order: 3 !important;
        margin: 0 !important;
        padding: 0 !important;
        position: relative;
        right: 0;
    }
}

/* КРАСИВОЕ СВЕТЛОЕ МЕНЮ - ПРЕМИУМ ДИЗАЙН */
@media (max-width: 768px) {
    .mobile-nav {
        position: fixed;
        top: 56px;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, 
            rgba(255, 255, 255, 0.98) 0%, 
            rgba(248, 250, 252, 0.98) 100%);
        backdrop-filter: blur(30px) saturate(200%);
        -webkit-backdrop-filter: blur(30px) saturate(200%);
        border-bottom: 1px solid rgba(255, 255, 255, 0.8);
        border-top: 1px solid rgba(255, 255, 255, 0.3);
        z-index: 999;
        padding: 1rem 1.25rem;
        box-shadow: 
            0 12px 40px rgba(99, 102, 241, 0.1),
            0 4px 20px rgba(0, 0, 0, 0.03),
            inset 0 1px 0 rgba(255, 255, 255, 0.95),
            inset 0 -1px 0 rgba(99, 102, 241, 0.05);
        max-height: 0;
        overflow: hidden;
        transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        opacity: 0;
        visibility: hidden;
    }

    .mobile-nav.active {
        max-height: 320px;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        animation: slideDown 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }

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

    .mobile-nav ul {
        list-style: none;
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        padding: 0;
        margin: 0;
    }

    .mobile-nav-link {
        display: flex;
        align-items: center;
        gap: 1rem;
        padding: 1rem 1.25rem;
        text-decoration: none;
        color: #374151;
        font-weight: 500;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        border-radius: 14px;
        font-size: 0.95rem;
        background: rgba(255, 255, 255, 0.7);
        border: 1.5px solid rgba(99, 102, 241, 0.1);
        position: relative;
        overflow: hidden;
    }

    .mobile-nav-link::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        height: 100%;
        width: 4px;
        background: linear-gradient(to bottom, #6366f1, #8b5cf6);
        border-radius: 4px 0 0 4px;
        transform: scaleY(0);
        transition: transform 0.3s ease;
    }

    .mobile-nav-link:hover {
        background: linear-gradient(135deg, 
            rgba(255, 255, 255, 0.9), 
            rgba(248, 250, 252, 0.9));
        color: #4f46e5;
        border-color: rgba(99, 102, 241, 0.25);
        transform: translateX(5px);
        box-shadow: 
            0 4px 16px rgba(99, 102, 241, 0.15),
            0 2px 6px rgba(99, 102, 241, 0.08),
            inset 0 1px 0 rgba(255, 255, 255, 0.8);
    }

    .mobile-nav-link:hover::before {
        transform: scaleY(1);
    }

    .mobile-nav-link.active {
        background: linear-gradient(135deg, 
            rgba(99, 102, 241, 0.1), 
            rgba(139, 92, 246, 0.1));
        color: #4f46e5;
        font-weight: 600;
        border-color: rgba(99, 102, 241, 0.3);
        box-shadow: 
            0 4px 20px rgba(99, 102, 241, 0.15),
            inset 0 1px 0 rgba(255, 255, 255, 0.5);
        padding-left: 1.5rem;
    }

    .mobile-nav-link.active::before {
        transform: scaleY(1);
        background: linear-gradient(to bottom, #4f46e5, #7c3aed);
    }

    .mobile-nav-link i {
        font-size: 1.1rem;
        color: #6366f1;
        width: 24px;
        text-align: center;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        z-index: 1;
    }

    .mobile-nav-link:hover i {
        color: #7c3aed;
        transform: scale(1.15) translateY(-1px);
    }

    .mobile-nav-link.active i {
        color: #4f46e5;
        transform: scale(1.15);
        filter: drop-shadow(0 2px 4px rgba(79, 70, 229, 0.2));
    }

    /* Улучшенный разделитель */
    .mobile-nav li:nth-child(4) {
        margin-top: 0.75rem;
        padding-top: 0.75rem;
        position: relative;
    }

    .mobile-nav li:nth-child(4)::before {
        content: '';
        position: absolute;
        top: 0;
        left: 10%;
        right: 10%;
        height: 1px;
        background: linear-gradient(90deg, 
            transparent, 
            rgba(99, 102, 241, 0.3) 20%, 
            rgba(99, 102, 241, 0.3) 80%, 
            transparent);
        box-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
    }



    /* Индикатор уведомлений (опционально) */
    .mobile-nav-link .notification-badge {
        position: absolute;
        right: 1.25rem;
        background: linear-gradient(135deg, #ef4444, #dc2626);
        color: white;
        font-size: 0.7rem;
        padding: 0.2rem 0.5rem;
        border-radius: 10px;
        animation: pulse 2s infinite;
    }

    @keyframes pulse {
        0%, 100% { transform: scale(1); }
        50% { transform: scale(1.05); }
    }
}