/* ==========================================
   СТИЛІ ДЛЯ МОДАЛЬНОГО ВІКНА МІСІЇ ПРОЄКТУ (PROMO)
   ========================================== */
.mission-modal-overlay {
    display: none; 
    position: fixed; 
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(11, 14, 17, 0.85); 
    backdrop-filter: blur(8px); 
    z-index: 9999;
    justify-content: center; 
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.mission-modal-overlay.show {
    display: flex;
    opacity: 1;
}

.mission-modal {
    background: linear-gradient(145deg, #111a28, #0b0e11);
    border: 1px solid #00b8d9;
    border-radius: 16px;
    width: 90%;
    max-width: 650px;
    max-height: 90vh;
    box-shadow: 0 0 40px rgba(0, 184, 217, 0.2);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: scale(0.95);
    transition: transform 0.4s ease;
}

.mission-modal-overlay.show .mission-modal {
    transform: scale(1);
}

.mission-modal-header {
    background: rgba(0, 184, 217, 0.1);
    padding: 20px 25px;
    display: flex;
    justify-content: center; /* Центруємо заголовок */
    align-items: center;
    border-bottom: 1px solid rgba(0, 184, 217, 0.3);
    position: relative; /* Додано для правильного позиціонування хрестика */
}

.mission-modal-header h2 {
    margin: 0;
    color: #ef4444;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 1px;
    text-align: center; /* Текст по центру */
    line-height: 1.4; /* Робимо красивий відступ між двома рядками */
}

.mission-close {
    color: #a0aec0;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
    position: absolute; /* Відв'язуємо хрестик, щоб він не зсував текст */
    right: 25px;
    top: 50%;
    transform: translateY(-50%); /* Чітко по центру по вертикалі */
}

.mission-close:hover {
    color: #ffffff;
}

.mission-modal-body {
    padding: 25px;
    overflow-y: auto;
    color: #e2e8f0;
}

.mission-intro {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.mission-intro strong {
    color: #00b8d9;
}

/* Юридичний блок тексту */
.mission-legal-info {
    font-size: 13px;
    line-height: 1.5;
    background: rgba(0, 184, 217, 0.05);
    padding: 15px;
    border-radius: 8px;
    border: 1px dashed rgba(0, 184, 217, 0.3);
    margin-bottom: 20px;
    color: #cbd5e0;
}

/* Стилі для списку з картинками */
.mission-list {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
    display: flex;
    flex-direction: column;
    gap: 15px; /* Відстань між блоками */
}

.mission-list li {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    padding: 12px 15px;
    border-radius: 12px;
    border-left: 4px solid #fcd535;
    gap: 20px; /* Відстань між картинкою та текстом */
    transition: background 0.3s ease;
}

.mission-list li:hover {
    background: rgba(255, 255, 255, 0.06);
}

.mission-icon {
    width: 140px; /* Ширина картинки */
    height: auto;
    border-radius: 8px;
    flex-shrink: 0; /* Забороняємо картинці сплющуватися */
    object-fit: contain;
}

.mission-text {
    font-size: 14px;
    line-height: 1.5;
    color: #e2e8f0;
}

.mission-text strong {
    color: #fcd535;
}

/* Контейнер для чекбокса та кнопки */
.mission-footer-actions {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

/* Стилізація чекбокса */
.mission-checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #a0aec0;
    user-select: none;
    transition: color 0.3s;
}

.mission-checkbox-container:hover {
    color: #ffffff;
}

.mission-checkbox-container input {
    margin-right: 10px;
    cursor: pointer;
    width: 18px;
    height: 18px;
    accent-color: #00b8d9; /* Колір галочки */
}

.mission-btn-accept {
    width: 100%;
    padding: 14px;
    border-radius: 8px;
    border: none;
    background: #00b8d9;
    color: #0b0e11;
    font-weight: 800;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mission-btn-accept:hover {
    background: #00e5ff;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.4);
}

/* ==========================================
   КАСТОМНИЙ СКРОЛЛБАР ДЛЯ МОДАЛЬНОГО ВІКНА
   ========================================== */
.mission-modal-body::-webkit-scrollbar {
    width: 6px;
}

.mission-modal-body::-webkit-scrollbar-track {
    background: rgba(11, 14, 17, 0.5);
    border-radius: 8px;
}

.mission-modal-body::-webkit-scrollbar-thumb {
    background: #00b8d9;
    border-radius: 8px;
}

.mission-modal-body::-webkit-scrollbar-thumb:hover {
    background: #00e5ff;
}

/* Контейнер для логотипа, щоб він був чітко по центру */
.mission-logo-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px; /* Відступ від логотипа вниз до юридичного тексту */
}

/* ==========================================
   ЛОГОТИП КОМПАНІЇ (ЯК В СТАРОМУ ПРОЄКТІ)
   ========================================== */
.mission-company-logo {
    width: 150px; /* Точний розмір зі старого файлу */
    height: auto;
    padding: 8px; /* Відступ, щоб світіння не обрізалося і рамка була навколо */
    border-radius: 12px; /* Акуратне закруглення кутів рамки */
    border: 1px solid transparent; /* Невидима рамка у спокійному стані */
    transition: all 0.3s ease;
    cursor: pointer;
    display: block;
}

/* Точна копія ефекту :hover зі старого файлу */
.mission-company-logo:hover {
    transform: scale(1.05);
    border-color: #fbbf24; /* Золота рамка при наведенні */
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.6); /* Те саме розкішне золоте сяйво */
    background-color: rgba(255, 255, 255, 0.02); /* Ледь помітний фон для об'єму */
}

/* ==========================================
   ВЕРХНІЙ ГОЛОВНИЙ ЛОГОТИП ПЛАТФОРМИ
   ========================================== */
.mission-top-logo-container {
    display: flex;
    justify-content: center;
    margin-bottom: 25px; /* Відступ вниз до тексту */
    padding-top: 10px;
}

.mission-top-logo {
    width: 250px; /* Ширина логотипу, можна змінити за потреби */
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.mission-top-logo:hover {
    transform: scale(1.02); /* Легке збільшення при наведенні */
}

/* ==========================================
   ВІДЕО-ПРЕЛОАДЕР (ЗАВАНТАЖЕННЯ САЙТУ)
   ========================================== */
#intro-flow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99999; /* Дуже високий z-index, щоб перекрити ВСЕ */
    background-color: var(--bg, #0b0e11); /* Колір фону, якщо відео не на весь екран */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 1s ease-out;
}

#promo-intro-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Клас для приховування основного сайту під час відтворення відео */
.hidden {
    display: none !important;
}

/* ==========================================
   ШКАЛА ПРОГРЕСУ (ОНОВЛЕНО ДО 27%)
   ========================================== */
.dev-progress-container {
    width: 70%;
    max-width: 900px;
    margin: -150px auto 30px auto; 
    z-index: 50;
    position: relative;
    cursor: pointer;
    perspective: 1000px;
}

.dev-progress-title {
    text-align: center;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.dev-progress-title::before,
.dev-progress-title::after {
    content: '';
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--blue), transparent);
}

.dev-progress-bar {
    width: 100%;
    height: 35px;
    background: rgba(11, 14, 17, 0.9);
    border: 2px solid rgba(0, 184, 217, 0.5);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 0 25px rgba(0, 184, 217, 0.2), 0 0 10px rgba(0, 0, 0, 0.8) inset;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dev-progress-fill {
    width: 27%; /* Початкова ширина змінена з 18% на 27% */
    height: 100%;
    background: linear-gradient(90deg, #005a8f, var(--blue), #00e5ff);
    box-shadow: 0 0 30px rgba(0, 229, 255, 1);
    border-radius: 18px;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.dev-progress-percent {
    color: #fff;
    font-size: 20px;
    font-weight: 900;
    z-index: 10;
    position: relative;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
    letter-spacing: 1px;
}

.dev-progress-container:hover .dev-progress-bar {
    box-shadow: 0 0 40px rgba(0, 229, 255, 0.4), 0 0 10px rgba(0, 0, 0, 0.8) inset;
    transition: box-shadow 0.3s ease;
}

.dev-progress-container:hover .dev-progress-fill {
    animation: loadCosmicProgress 3s cubic-bezier(0.1, 0.9, 0.2, 1) forwards;
}

@keyframes loadCosmicProgress {
    0% { width: 0%; opacity: 0.5; }
    100% { width: 27%; opacity: 1; } /* Фінал анімації змінено з 18% на 27% */
}