/* Стили для страницы профиля в матричном стиле */

/* CSS переменные для единообразия с главной страницей */
:root {
    --base-bg: #151F28;
    --matrix-color: #00ff00;
    --active-color: #29fd53;
}

/* Убираем переопределение глобальных стилей .content */

/* Стили для загрузчика */
.loader-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background: var(--base-bg);
}

.loader-text {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 20px;
}

.profile-container {
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
    padding: 20px;
    background: rgba(21, 31, 40, 0.95);
    border: 1px solid rgba(0, 255, 0, 0.4);
    border-radius: 25px;
    backdrop-filter: blur(20px);
    box-sizing: border-box;
    box-shadow: 0 20px 60px rgba(0, 255, 0, 0.3);
    
    /* Safe Area Insets для Telegram Mini App */
    padding-top: max(20px, env(safe-area-inset-top));
    padding-bottom: max(20px, env(safe-area-inset-bottom));
    padding-left: max(20px, env(safe-area-inset-left));
    padding-right: max(20px, env(safe-area-inset-right));
}

.profile-header {
    text-align: center;
    margin-bottom: 40px;
}

.profile-avatar-container {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto 30px;
}

.profile-avatar { 
    width: 300px; 
    height: 300px; 
    border-radius: 50%; 
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.3);
    display: flex; 
    align-items: center; 
    justify-content: center;
    font-size: 72px; 
    color: var(--active-color); 
    font-weight: bold;
    border: 4px solid rgba(0, 255, 0, 0.4);
    box-shadow: 0 20px 60px rgba(0, 255, 0, 0.3);
    position: relative; 
    overflow: hidden; 
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(10px);
}

.profile-avatar:hover {
    transform: scale(1.05);
    border-color: var(--active-color);
    box-shadow: 0 25px 80px rgba(0, 255, 0, 0.5);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.profile-avatar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50%;
}

.profile-avatar:hover .profile-avatar-overlay {
    opacity: 1;
}

.avatar-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.avatar-action-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 255, 0, 0.3);
    color: var(--active-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    font-size: 20px;
}

.avatar-action-btn:hover {
    background: rgba(0, 255, 0, 0.2);
    border-color: var(--active-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 255, 0, 0.4);
}

#avatar-upload {
    display: none;
}

.profile-name {
    font-size: 32px;
    font-weight: 700;
    color: var(--active-color);
    margin-bottom: 10px;
    text-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
}

.profile-username {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
    font-weight: 500;
}

/* Стили для социальных сетей */
.social-section { 
    margin-bottom: 40px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 255, 0, 0.3);
    border-radius: 20px;
    padding: 25px;
    backdrop-filter: blur(10px);
}

.progress-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--active-color);
    margin-bottom: 20px;
    text-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
}

.social-links {
    display: grid;
    gap: 15px;
}

.social-link-card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 255, 0, 0.3);
    border-radius: 16px;
    padding: 18px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.social-link-card:hover {
    background: rgba(0, 255, 0, 0.1);
    border-color: var(--active-color);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 255, 0, 0.3);
}

.social-link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(0, 255, 0, 0.1),
        transparent
    );
    transition: left 0.5s ease;
}

.social-link-card:hover::before {
    left: 100%;
}

.social-icon {
    font-size: 24px;
    margin-right: 18px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 255, 0, 0.1);
    border: 1px solid rgba(0, 255, 0, 0.3);
    border-radius: 12px;
    transition: all 0.3s ease;
    color: var(--active-color);
}

.social-link-card:hover .social-icon {
    transform: scale(1.1);
    background: rgba(0, 255, 0, 0.2);
    border-color: var(--active-color);
}

/* Специальные цвета для иконок социальных сетей */
.social-icon .fa-globe {
    color: #007bff; /* Синий для веб-сайтов */
}

.social-icon .fa-telegram {
    color: #0088cc; /* Официальный цвет Telegram */
}

.social-icon .fa-github {
    color: #333; /* Официальный цвет GitHub */
}

.social-icon .fa-linkedin {
    color: #0077b5; /* Официальный цвет LinkedIn */
}

.social-icon .fa-instagram {
    color: #e4405f; /* Официальный цвет Instagram */
}

.social-icon .fa-facebook {
    color: #1877f2; /* Официальный цвет Facebook */
}

.social-icon .fa-youtube {
    color: #ff0000; /* Официальный цвет YouTube */
}

.social-icon .fa-link {
    color: var(--active-color); /* Матричный цвет для остальных ссылок */
}

.social-info {
    flex: 1;
}

.social-name {
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 16px;
    color: white;
}

.social-url {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    gap: 8px;
    word-break: break-all;
}

.social-url::after {
    content: '↗';
    font-size: 14px;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    color: var(--active-color);
}

.social-link-card:hover .social-url::after {
    opacity: 1;
    transform: translateX(0);
}

.social-empty {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
    padding: 30px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px dashed rgba(0, 255, 0, 0.3);
    border-radius: 15px;
}

.profile-actions {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.action-btn {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 255, 0, 0.3);
    color: var(--active-color);
    padding: 15px 30px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0, 255, 0, 0.2);
    backdrop-filter: blur(10px);
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

.action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 255, 0, 0.4);
    background: rgba(0, 255, 0, 0.1);
    border-color: var(--active-color);
}

.action-btn-icon {
    font-size: 18px;
}

.refresh-btn {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 255, 0, 0.3);
    color: var(--active-color);
}

.edit-btn {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 255, 0, 0.3);
    color: var(--active-color);
}

/* Стили для модального окна */
.modal {
    display: none;
    position: fixed;
    z-index: 999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    overflow-y: auto;
    /* Учитываем safe areas Telegram */
    padding-top: var(--tg-safe-area-inset-top, var(--safe-area-top, env(safe-area-inset-top, 0px)));
    padding-bottom: var(--tg-safe-area-inset-bottom, var(--safe-area-bottom, env(safe-area-inset-bottom, 0px)));
    padding-left: var(--tg-safe-area-inset-left, var(--safe-area-left, env(safe-area-inset-left, 0px)));
    padding-right: var(--tg-safe-area-inset-right, var(--safe-area-right, env(safe-area-inset-right, 0px)));
}

.modal-content {
    background: rgba(21, 31, 40, 0.95);
    border: 1px solid rgba(0, 255, 0, 0.4);
    margin: 2% auto 100px auto; /* Увеличиваем нижний отступ, чтобы не перекрывалось навигацией */
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(0, 255, 0, 0.3);
    overflow-y: auto;
    max-height: calc(80vh - var(--tg-safe-area-inset-top, var(--safe-area-top, env(safe-area-inset-top, 0px))) - var(--tg-safe-area-inset-bottom, var(--safe-area-bottom, env(safe-area-inset-bottom, 0px)))); /* Уменьшаем высоту, чтобы поместиться выше навигации */
    backdrop-filter: blur(15px);
    position: relative;
    z-index: 1000000; /* Еще больше увеличиваем z-index */
}

/* Медиа-запросы для мобильных устройств */
@media (max-width: 768px) {
    .modal-content {
        margin: 10px auto 20px auto; /* Уменьшаем отступы для мобильных устройств */
        width: 95%;
        max-width: 400px;
        max-height: 85vh; /* Увеличиваем высоту для мобильных устройств */
        border-radius: 15px;
    }
}

@media (max-width: 480px) {
    .modal-content {
        margin: 5px auto 15px auto; /* Еще меньше отступы для маленьких экранов */
        width: 98%;
        max-width: 350px;
        max-height: 90vh; /* Максимальная высота для маленьких экранов */
        border-radius: 12px;
    }
}

/* Дополнительные стили для очень маленьких экранов */
@media (max-width: 360px) {
    .modal-content {
        margin: 2px auto 10px auto; /* Минимальные отступы */
        width: 99%;
        max-width: 320px;
        max-height: 95vh; /* Почти на весь экран */
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: rgba(0, 255, 0, 0.1);
    border-bottom: 1px solid rgba(0, 255, 0, 0.3);
    color: var(--active-color);
}

.modal-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    text-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
}

.close {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 255, 0, 0.3);
    color: var(--active-color);
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.close:hover {
    background: rgba(0, 255, 0, 0.2);
    border-color: var(--active-color);
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.4);
}

/* Стили для формы */
#edit-profile-form {
    padding: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--active-color);
    font-weight: 600;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
}

.form-group input {
    width: 100%;
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 255, 0, 0.3);
    border-radius: 8px;
    color: white;
    font-size: 14px;
    backdrop-filter: blur(10px);
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: var(--active-color);
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.avatar-preview {
    margin-top: 10px;
    text-align: center;
}

.avatar-preview img {
    max-width: 100px;
    max-height: 100px;
    border-radius: 50%;
    border: 2px solid rgba(0, 255, 0, 0.3);
}

.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 255, 0, 0.3);
}

.btn-cancel, .btn-save {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 255, 0, 0.3);
    backdrop-filter: blur(10px);
}

.btn-cancel {
    background: rgba(0, 0, 0, 0.3);
    color: rgba(255, 255, 255, 0.8);
}

.btn-cancel:hover {
    background: rgba(255, 0, 0, 0.2);
    border-color: rgba(255, 0, 0, 0.5);
}

.btn-save {
    background: rgba(0, 255, 0, 0.2);
    color: var(--active-color);
}

.btn-save:hover {
    background: rgba(0, 255, 0, 0.3);
    border-color: var(--active-color);
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.4);
}

/* Настройка видимости профиля */
.profile-visibility-group {
    margin-top: 30px;
    padding: 20px;
    background: rgba(0, 255, 0, 0.05);
    border: 1px solid rgba(0, 255, 0, 0.2);
    border-radius: 12px;
}

.profile-visibility-label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: var(--active-color);
    margin-bottom: 15px;
}

.toggle-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 0, 0, 0.3);
    border: 1px solid rgba(255, 0, 0, 0.5);
    transition: all 0.3s ease;
    border-radius: 30px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 3px;
    background-color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.toggle-switch input:checked + .toggle-slider {
    background-color: rgba(0, 255, 0, 0.3);
    border-color: var(--active-color);
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.4);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(30px);
    background-color: var(--active-color);
    box-shadow: 0 2px 10px rgba(0, 255, 0, 0.5);
}

.toggle-label {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    transition: color 0.3s ease;
}

.toggle-switch input:checked ~ .toggle-label {
    color: var(--active-color);
}

.profile-visibility-description {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    padding-left: 75px;
    line-height: 1.5;
}

/* Адаптивность */
@media (max-width: 768px) {
    .profile-container {
        padding: 20px;
        
        /* Safe Area Insets для мобильных */
        padding-top: max(20px, env(safe-area-inset-top));
        padding-bottom: max(20px, env(safe-area-inset-bottom));
        padding-left: max(20px, env(safe-area-inset-left));
        padding-right: max(20px, env(safe-area-inset-right));
    }
    
    .profile-avatar-container {
        width: 250px;
        height: 250px;
    }
    
    .profile-avatar {
        width: 250px;
        height: 250px;
        font-size: 60px;
    }
}

@media (max-width: 600px) {
    .profile-container {
        max-width: 95%;
    }
    
    .profile-avatar-container {
        width: 250px;
        height: 250px;
    }
    
    .profile-avatar {
        width: 250px;
        height: 250px;
        font-size: 60px;
    }
    
    .profile-name {
        font-size: 28px;
    }
    
    .profile-username {
        font-size: 16px;
    }
    
    .social-section {
        padding: 20px;
    }
    
    .action-btn {
        padding: 12px 24px;
        font-size: 15px;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
}

@media (max-width: 480px) {
    .profile-container {
        padding: 15px;
        
        /* Safe Area Insets для очень маленьких экранов */
        padding-top: max(15px, env(safe-area-inset-top));
        padding-bottom: max(15px, env(safe-area-inset-bottom));
        padding-left: max(15px, env(safe-area-inset-left));
        padding-right: max(15px, env(safe-area-inset-right));
    }
    
    .profile-avatar-container {
        width: 200px;
        height: 200px;
    }
    
    /* Специальные стили для модального окна на мобильных */
    .modal-content {
        margin: 1% auto 120px auto; /* Еще больше отступ снизу на мобильных */
        max-height: 70vh; /* Еще меньше высота на мобильных */
    }
    
    .profile-avatar {
        width: 200px;
        height: 200px;
        font-size: 48px;
    }
    
    .profile-name {
        font-size: 24px;
    }
    
    .profile-username {
        font-size: 14px;
    }
    
    .social-section {
        padding: 15px;
    }
    
    .action-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .modal-content {
        width: 98%;
        margin: 15% auto;
    }
    
    .modal-header {
        padding: 15px 20px;
    }
    
    #edit-profile-form {
        padding: 20px;
    }
}

/* Стили для профессиональной информации */
.professional-section {
    margin-bottom: 30px;
}

.professional-info {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 255, 0, 0.3);
    border-radius: 15px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.professional-info:hover {
    background: rgba(0, 255, 0, 0.1);
    border-color: var(--active-color);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 255, 0, 0.3);
}

.professional-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(0, 255, 0, 0.1),
        transparent
    );
    transition: left 0.5s ease;
}

.professional-info:hover::before {
    left: 100%;
}

.professional-info:active {
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(0, 255, 0, 0.2);
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    padding: 8px;
    border-radius: 8px;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-item:hover {
    background: rgba(0, 255, 0, 0.05);
    transform: translateX(5px);
}

.info-label {
    font-weight: 600;
    color: var(--matrix-color);
    min-width: 120px;
    margin-right: 15px;
    transition: all 0.3s ease;
}

.info-item:hover .info-label {
    color: var(--active-color);
    text-shadow: 0 0 8px rgba(0, 255, 0, 0.5);
}

.info-value {
    color: rgba(255, 255, 255, 0.9);
    flex: 1;
    transition: all 0.3s ease;
}

.info-item:hover .info-value {
    color: rgba(255, 255, 255, 1);
    text-shadow: 0 0 4px rgba(255, 255, 255, 0.3);
}

.info-item:active {
    transform: translateX(2px);
    background: rgba(0, 255, 0, 0.1);
}

.professional-info:active .info-item {
    transform: translateX(2px);
}

/* Эффекты для грейда */
.grade-junior {
    color: #00ff88 !important;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
    animation: juniorGlow 2s ease-in-out infinite alternate;
}

.grade-middle {
    color: #00aaff !important;
    text-shadow: 0 0 15px rgba(0, 170, 255, 0.6);
    animation: middleGlow 2s ease-in-out infinite alternate;
}

.grade-senior {
    color: #ff6b35 !important;
    text-shadow: 0 0 20px rgba(255, 107, 53, 0.7);
    animation: seniorGlow 2s ease-in-out infinite alternate;
}

.grade-none {
    color: rgba(255, 255, 255, 0.5) !important;
    font-style: italic;
}

/* Анимации для грейдов */
@keyframes juniorGlow {
    0% {
        text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
        transform: scale(1);
    }
    100% {
        text-shadow: 0 0 20px rgba(0, 255, 136, 0.8);
        transform: scale(1.02);
    }
}

@keyframes middleGlow {
    0% {
        text-shadow: 0 0 15px rgba(0, 170, 255, 0.6);
        transform: scale(1);
    }
    100% {
        text-shadow: 0 0 25px rgba(0, 170, 255, 0.9);
        transform: scale(1.03);
    }
}

@keyframes seniorGlow {
    0% {
        text-shadow: 0 0 20px rgba(255, 107, 53, 0.7);
        transform: scale(1);
    }
    100% {
        text-shadow: 0 0 30px rgba(255, 107, 53, 1);
        transform: scale(1.05);
    }
}

.technologies-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.technology-tag {
    background: rgba(0, 255, 0, 0.1);
    color: var(--matrix-color);
    border: 1px solid rgba(0, 255, 0, 0.3);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.no-data {
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
}

/* Стили для селектора технологий */
.technologies-selector {
    background: rgba(0, 255, 0, 0.05);
    border: 1px solid rgba(0, 255, 0, 0.2);
    border-radius: 10px;
    padding: 15px;
    max-height: 200px;
    overflow-y: auto;
}

/* Стили для выпадающего списка технологий */
#technologies-select {
    background: rgba(0, 255, 0, 0.05);
    border: 1px solid rgba(0, 255, 0, 0.3);
    border-radius: 8px;
    padding: 12px;
    color: white;
    font-size: 16px;
    width: 100%;
    box-sizing: border-box;
    height: 48px;
}

#technologies-select:focus {
    outline: none;
    border-color: var(--matrix-color);
    box-shadow: 0 0 0 2px rgba(0, 255, 0, 0.2);
}

#technologies-select option {
    background: var(--base-bg);
    color: white;
    padding: 8px;
    border: none;
}

#technologies-select option:hover {
    background: rgba(0, 255, 0, 0.1);
}

.technologies-loading,
.technologies-error {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    padding: 20px;
    font-style: italic;
}

.technologies-error {
    color: #ff6b6b;
}

/* Стили для селектов */
select {
    background: rgba(0, 255, 0, 0.05);
    border: 1px solid rgba(0, 255, 0, 0.3);
    border-radius: 8px;
    padding: 12px;
    color: white;
    font-size: 16px;
    width: 100%;
    box-sizing: border-box;
}

select:focus {
    outline: none;
    border-color: var(--matrix-color);
    box-shadow: 0 0 0 2px rgba(0, 255, 0, 0.2);
}

select option {
    background: var(--base-bg);
    color: white;
}

/* Стили для поля даты */
input[type="date"] {
    background: rgba(0, 255, 0, 0.05);
    border: 1px solid rgba(0, 255, 0, 0.3);
    border-radius: 8px;
    padding: 12px;
    color: white;
    font-size: 16px;
    width: 100%;
    box-sizing: border-box;
}

input[type="date"]:focus {
    outline: none;
    border-color: var(--matrix-color);
    box-shadow: 0 0 0 2px rgba(0, 255, 0, 0.2);
}

input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
}

/* Стили для экрана приглашения */
.invitation-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: var(--base-bg);
    padding: 20px;
    box-sizing: border-box;
    
    /* Safe Area Insets для Telegram Mini App */
    padding-top: max(20px, env(safe-area-inset-top));
    padding-bottom: max(20px, env(safe-area-inset-bottom));
    padding-left: max(20px, env(safe-area-inset-left));
    padding-right: max(20px, env(safe-area-inset-right));
}

.invitation-container {
    max-width: 600px;
    width: 100%;
    background: rgba(21, 31, 40, 0.95);
    border: 1px solid rgba(0, 255, 0, 0.4);
    border-radius: 25px;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 60px rgba(0, 255, 0, 0.3);
    padding: 40px 30px;
    box-sizing: border-box;
}

.invitation-header {
    text-align: center;
    margin-bottom: 40px;
}

.invitation-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--matrix-color);
    margin: 0 0 15px 0;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

.invitation-description {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin: 0;
}

.invitation-options {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.invitation-option {
    text-align: center;
    padding: 30px 20px;
    background: rgba(0, 255, 0, 0.05);
    border: 1px solid rgba(0, 255, 0, 0.2);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.invitation-option:hover {
    background: rgba(0, 255, 0, 0.1);
    border-color: rgba(0, 255, 0, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 255, 0, 0.2);
}

.option-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 40px;
    transition: all 0.3s ease;
}

.telegram-icon {
    background: linear-gradient(135deg, #0088cc 0%, #229ED9 100%);
    color: white;
}

.website-icon {
    background: linear-gradient(135deg, rgba(0, 255, 0, 0.2) 0%, rgba(0, 255, 0, 0.4) 100%);
    color: var(--matrix-color);
}

.option-title {
    font-size: 22px;
    font-weight: 600;
    color: white;
    margin: 0 0 10px 0;
}

.option-description {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    margin: 0 0 20px 0;
}

.option-button {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.telegram-button {
    background: linear-gradient(135deg, #0088cc 0%, #229ED9 100%);
    color: white;
    border-color: #0088cc;
}

.telegram-button:hover {
    background: linear-gradient(135deg, #229ED9 0%, #0088cc 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(34, 158, 217, 0.4);
}

.website-button {
    background: transparent;
    color: var(--matrix-color);
    border-color: var(--matrix-color);
}

.website-button:hover {
    background: rgba(0, 255, 0, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 0, 0.3);
}

.invitation-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px 0;
    position: relative;
}

.invitation-divider::before,
.invitation-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(0, 255, 0, 0.3);
}

.invitation-divider span {
    padding: 0 15px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    text-transform: uppercase;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .invitation-container {
        padding: 30px 20px;
    }
    
    .invitation-title {
        font-size: 24px;
    }
    
    .invitation-description {
        font-size: 14px;
    }
    
    .option-icon {
        width: 60px;
        height: 60px;
        font-size: 30px;
    }
    
    .option-title {
        font-size: 20px;
    }
    
    .option-description {
        font-size: 13px;
    }
    
    .option-button {
        padding: 10px 25px;
        font-size: 14px;
    }
}
