/* ==========================================================================
   1. ОБЩИЕ СБРОСЫ И ШРИФТЫ
   ========================================================================== */
* {
    box-sizing: border-box;     /* ИСПРАВЛЕНО: убрали лишнее box- */
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body, html {
    width: 100%;
    height: 100%;
    background-color: #0a0a0a;
    background-image: 
        radial-gradient(circle at 30% 30%, #141414 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, #181818 0%, transparent 50%);
    color: #ffffff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* ==========================================================================
   2. ЭКРАН КАПЧИ (OhhhCaptcha)
   ========================================================================== */
#captcha-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0a0a0a;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.6s;
}

/* Виджет капчи: сужен с боков и увеличен в высоту */
.ohhh-captcha-container {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 18px;        
    width: 400px;               /* Сделали чуть поменьше с боков */
    padding: 52px 28px;         /* Увеличили высоту и сузили боковые отступы */
    display: flex;
    flex-direction: column;
    gap: 44px;                  /* Отступ между проверкой и брендом */
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
    user-select: none;
}

/* Верхняя строка: Чекбокс и Текст */
.captcha-main-row {
    display: flex;
    align-items: center;
    gap: 20px;                  
}

.checkbox-container {
    position: relative;
    width: 36px;                
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Квадратный чекбокс */
.captcha-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 34px;                
    height: 34px;               
    border: 2px solid rgba(255, 255, 255, 0.2); 
    border-radius: 8px;         
    background-color: rgba(255, 255, 255, 0.01);
    cursor: pointer;
    position: absolute;
    z-index: 2;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.captcha-checkbox:hover {
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1); 
}

/* Круговой индикатор загрузки */
.captcha-loader {
    position: absolute;
    width: 30px;                
    height: 30px;
    border: 2.5px solid rgba(255, 255, 255, 0.1);
    border-top-color: #ffffff;
    border-radius: 50%;
    z-index: 1;
    opacity: 0;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.checkbox-container.loading .captcha-checkbox {
    display: none;
}

.checkbox-container.loading .captcha-loader {
    opacity: 1;
    animation: spin 0.7s linear infinite;
}

/* Белая галочка */
.checkbox-container.checked .captcha-checkbox {
    background-color: transparent;
    border-color: transparent;
    cursor: default;
}

.checkbox-container.checked .captcha-checkbox::after {
    content: '';
    position: absolute;
    left: 12px;
    top: 5px;
    width: 7px;
    height: 14px;
    border: solid #ffffff;
    border-width: 0 3px 3px 0;   
    transform: rotate(45deg);
}

/* Текст капчи */
.captcha-text {
    font-size: 20px;                   
    font-weight: 400;
    color: #e3e3e3;
    letter-spacing: -0.3px;
}

/* Нижний служебный блок */
.captcha-bottom-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.04); 
    padding-top: 20px;
}

.brand-left {
    display: flex;
    align-items: center;
    gap: 12px;                  
}

/* Увеличенный и читаемый логотип-щит */
.brand-logo {
    width: 30px;                            
    height: 30px;            
    color: rgba(255, 255, 255, 0.35); 
    stroke-width: 2;       
}

/* Увеличенный текст названия */
.brand-name {
    font-size: 15px;            
    font-weight: 500;
    color: #ffffff;
    opacity: 0.35;
}

/* Текст правил */
.brand-rules {
    font-size: 14px;                      
    color: #ffffff;
    opacity: 0.2;
    font-weight: 400;
    cursor: pointer;
    transition: opacity 0.2s;
}

.brand-rules:hover {
    opacity: 0.4;
}

/* ==========================================================================
   3. ОСНОВНОЙ СОВРЕМЕННЫЙ САЙТ
   ========================================================================== */
#main-site {
    display: none;
    height: 100vh;
    flex-direction: column;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.solid-header {
    background-color: #111111; 
    border-bottom: 1px solid #1c1c1c; 
    padding: 20px 40px;
    display: flex;
    justify-content: flex-start; 
    align-items: center;
    z-index: 10;
}

.logo {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.main-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.welcome-glass-panel {
    background: rgba(255, 255, 255, 0.01);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 40px; 
    padding: 80px 60px;
    max-width: 600px;
    width: 100%;
    text-align: center;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
}

.welcome-glass-panel h1 {
    font-size: 44px;
    font-weight: 700;
    letter-spacing: -1.5px;
    color: #ffffff;
    margin-bottom: 16px;
}

.welcome-glass-panel p {
    color: #777;
    font-size: 15px;
    line-height: 1.6;
}
