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

body {
    background-color: #070707; 
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
    color: #ffffff;
}

#glow {
    position: fixed;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(90, 80, 255, 0.12) 0%, rgba(0, 0, 0, 0) 65%);
    border-radius: 50%;
    pointer-events: none; 
    transform: translate(-50%, -50%); 
    top: 50%;
    left: 50%;
    filter: blur(50px); 
    z-index: 1; 
    transition: opacity 0.3s ease-out; 
}

/* Верхняя кнопка кабинета */
.glass-btn {
    position: fixed;
    top: 30px;
    right: 40px;
    padding: 14px 32px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.02));
    backdrop-filter: blur(30px) saturate(150%);
    -webkit-backdrop-filter: blur(30px) saturate(150%);
    border-top: 1px solid rgba(255, 255, 255, 0.5);
    border-left: 1px solid rgba(255, 255, 255, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    z-index: 100;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    opacity: 0;
    transform: translateY(-20px);
    animation: appearBtn 1.5s ease-out forwards;
    animation-delay: 0.5s;
    transition: all 0.3s ease;
}

@keyframes appearBtn {
    to { opacity: 1; transform: translateY(0); }
}

.glass-btn:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.05));
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.hero {
    height: 100vh; 
    display: flex;
    justify-content: center;
    align-items: center; 
    position: relative;
    z-index: 2;
}

#title-wrapper {
    transform-origin: center center;
    will-change: transform;
}

.title {
    font-size: 5rem;
    font-weight: 900;
    letter-spacing: 10px;
    text-transform: uppercase;
    opacity: 0;
    animation: appear 2s ease-out forwards; 
    animation-delay: 0.2s; 
}

@keyframes appear {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Секция с таблицей */
.info-section {
    display: flex;
    justify-content: center;
    padding: 20px 20px 80px 20px; 
    margin-top: 25vh; 
    position: relative;
    z-index: 2;
}

.info-container {
    width: 100%;
    max-width: 650px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Анимация появления снизу */
.fade-text {
    width: 100%;
    opacity: 0;
    transform: translateY(60px); /* Уменьшил прыжок, чтобы было плавнее */
    transition: opacity 1s ease-out, transform 1s ease-out;
}

/* Дополнительная задержка для кнопки телеграма */
.fade-text.delay-btn {
    transition-delay: 0.2s; /* Кнопка выплывет чуть позже таблицы */
    display: flex;
    justify-content: center;
    margin-top: 40px; /* Отступ от таблицы */
}

.fade-text.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-text h2 {
    font-size: 2.2rem; 
    margin-bottom: 40px;
    color: #ffffff;
    letter-spacing: 1px;
    font-weight: 800;
    text-align: center;
}

/* Стили таблицы */
.table-wrapper {
    background: rgba(255, 255, 255, 0.03); 
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px; 
    overflow: hidden; 
    box-shadow: 0 0 35px rgba(255, 255, 255, 0.05), inset 0 0 15px rgba(255, 255, 255, 0.02);
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

td {
    padding: 16px 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
}

tr:last-child td {
    border-bottom: none;
}

td:nth-child(2) {
    text-align: right;
}

.disabled-row td {
    color: #555555; 
    font-weight: 800; 
}

/* Кнопка Telegram */
.tg-glass-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px; 
    padding: 18px 45px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px; 
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.tg-glass-btn svg { width: 26px; height: 26px; }

.tg-glass-btn:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05));
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* Исправленный футер (теперь стоит жестко и не прыгает) */
.site-footer {
    width: 100%;
    text-align: center;
    padding: 30px 0 40px 0;
    position: relative;
    z-index: 2;
}

.site-footer p {
    font-size: 0.85rem;
    font-weight: 300; 
    letter-spacing: 4px; 
    color: rgba(255, 255, 255, 0.25); 
    text-transform: uppercase; 
}


/* =========================================
   ВСПЛЫВАЮЩЕЕ МЕНЮ (МОДАЛКА)
   ========================================= */

/* Задний фон (замыливает весь сайт) */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Полупрозрачный черный */
    backdrop-filter: blur(15px); /* Сильное мыло */
    -webkit-backdrop-filter: blur(15px);
    z-index: 9999; /* Поверх вообще всего */
    display: flex;
    justify-content: center;
    align-items: center;
    
    /* Изначально скрыто */
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

/* Само окно со стеклом */
.modal-box {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-top: 1px solid rgba(255, 255, 255, 0.4);
    border-left: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 24px;
    padding: 40px;
    width: 90%;
    max-width: 380px;
    text-align: center;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    
    /* Анимация увеличения окна при появлении */
    transform: scale(0.9) translateY(20px);
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Класс, который JS добавляет при клике */
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay.active .modal-box {
    transform: scale(1) translateY(0);
}

.modal-box h3 {
    color: #ffffff;
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 25px;
    letter-spacing: 1px;
}

/* Поля ввода (Логин / Пароль) */
.modal-input {
    width: 100%;
    padding: 16px 20px;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.05); /* Легкий фон */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    color: #ffffff;
    font-size: 1.1rem;
    outline: none;
    transition: all 0.3s ease;
}

.modal-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.modal-input:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Кнопка "Войти" внутри окна */
.modal-submit {
    width: 100%;
    padding: 16px;
    margin-top: 10px;
    background: #ffffff;
    color: #000000;
    border: none;
    border-radius: 14px;
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.2);
}

/* Тонкая надпись забыли пароль */
.forgot-pass {
    display: inline-block;
    margin-top: 25px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
    font-weight: 300; /* Очень тонкий текст */
    text-decoration: none;
    transition: color 0.3s ease;
}

.forgot-pass:hover {
    color: #ffffff;
}
/* Описание в модалке */
.modal-desc {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    margin-bottom: 30px;
    line-height: 1.5;
    font-weight: 400;
}

/* Растягиваем кнопку ТГ внутри модалки */
.modal-tg-btn {
    width: 100%;
    display: flex;
    justify-content: center;
}
/* Стили для иконок статуса */
.status-modal {
    text-align: center;
}
.icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px auto;
}
.error-icon {
    background: rgba(255, 92, 92, 0.1);
    color: #ff5c5c;
    border: 2px solid #ff5c5c;
}
.success-icon {
    background: rgba(76, 217, 100, 0.1);
    color: #4cd964;
    border: 2px solid #4cd964;
}
.icon-wrapper svg {
    width: 30px;
    height: 30px;
}
.modal-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}
.modal-buttons button {
    flex: 1;
}

/* АНИМАЦИИ */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-8px) rotate(-3deg); }
    40%, 80% { transform: translateX(8px) rotate(3deg); }
}
.shake-it {
    animation: shake 0.5s ease-in-out;
}

@keyframes popIn {
    0% { transform: scale(0.5); opacity: 0; }
    80% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); }
}
.pop-in {
    animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Фиксированное полноэкранное 3D-видео на фоне */
#hero-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover; /* Растягивает по ширине на весь экран */
    z-index: -2; /* Находится под всем контентом */
    pointer-events: none;
    transition: opacity 0.1s linear;
    /* === ВОТ ТА САМАЯ МАГИЯ ЗАТЕМНЕНИЯ === */
    filter: brightness(0.35); /* Снижаем яркость видео до 35% (не режет глаза) */
    /* Если хочешь добавить легкий размытый эффект (блюр), раскомментируй строку ниже: */
    /* filter: brightness(0.35) blur(3px); */
}
