:root {
    --bg-main: #1c1c1c;
    --text-white: #ffffff;
    --text-gray: #bbbbbb;
    --border-color: #444444;
    --widget-bg: #252525;
    --accent-orange: #f48024;
}

body {
    background-color: var(--bg-main);
    color: var(--text-white);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
}

/* АСИММЕТРИЧНАЯ СЕТКА ЭЛЕМЕНТОВ ПО ФОТО */
.main-container {
    max-width: 1100px;
    margin: auto auto; 
    padding: 20px 40px;
    display: grid;
    grid-template-columns: 170px 1fr; 
    grid-template-rows: auto auto auto;
    column-gap: 15px; 
    row-gap: 40px;
    align-items: start;
}

.branding {
    grid-column: 1;
    grid-row: 1;
}

.logo-cloud {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 8px;
}

.brand-text {
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-white);
}

.info-block {
    grid-column: 2;
    grid-row: 1;
    text-align: left;
}

.info-block h1 {
    margin: 0;
    margin-top: 45px;
    font-size: 34px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-white);
    max-width: 500px; 
}

/* ВИДЖЕТ КАПЧИ */
.turnstile-widget {
    grid-column: 1;
    grid-row: 2;
    background-color: var(--widget-bg);
    border: 1px solid var(--border-color);
    border-radius: 3px;
    padding: 4px 12px; /* УМЕНЬШИЛИ отступы до 10px, чтобы рамки стали тонкими */
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-width: 270px;
    box-sizing: border-box;
    user-select: none;
    cursor: pointer;
}


.turnstile-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.checkbox-box {
    position: relative;
    width: 24px;
    height: 24px;
    border: 2px solid #555;
    border-radius: 3px;
    background: #1f1f1f;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.turnstile-widget:hover .checkbox-box {
    border-color: #999;
}

/* Анимированный спиннер */
.spinner {
    display: none;
    position: absolute;
    top: 3px; left: 3px;
    width: 14px; height: 14px;
    border: 2px solid var(--accent-orange);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

.checkbox-label {
    font-size: 13px;
    color: var(--text-white);
}

.turnstile-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.privacy-text {
    font-size: 8px; 
    color: #777;
    margin-top: -35px; /* УВЕЛИЧИЛИ до -8px, чтобы прижать текст вплотную к иконке */
    line-height: 1;   
}


/* СТРОКА ОПИСАНИЯ ПОД ВИДЖЕТОМ */
.footer-ray {
    grid-column: 1 / span 2; 
    grid-row: 3;
    text-align: left; 
    padding-top: 15px; 
    font-size: 19px !important; 
    font-weight: 500; 
    line-height: 1.5;
    color: var(--text-gray);
    max-width: 850px; 
}

/* СИСТЕМНЫЙ FOOTER В САМОМ НИЗУ ЭКРАНА */
.global-footer-id {
    width: 100%;
    text-align: center;
    padding-bottom: 25px;
    font-size: 11px;
    color: #444444;
    font-family: monospace;
}

/* СТИЛИ ДЛЯ ВТОРОГО ЭКРАНА (МОДАЛЬНОЕ ОКНО И ОВЕРЛЕЙ) */
.overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 100;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.overlay.active {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
}

.modal {
    background-color: #1e1e1e;
    border-radius: 6px;
    width: 440px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.7);
    border: 1px solid #333;
    display: none;
}

.overlay.active .modal {
    display: block;
}

/* МАКСИМАЛЬНО УЗКАЯ ОРАНЖЕВАЯ ШАПКА ОКНА ПО ВЕРТИКАЛИ */
.modal-header {
    /* ПЛАВНЫЙ ГРАДИЕНТ: СЛЕВА ФИРМЕННЫЙ ОРАНЖЕВЫЙ, СПРАВА ПОСВЕТЛЕЕ */
    background: linear-gradient(to right, var(--accent-orange), #ffb373) !important;
    
    padding: 0px 20px !important; 
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #ffffff;
    box-sizing: border-box;
    height: auto !important;
}

.modal-title {
    font-size: 18px !important; 
    font-weight: 700;
    margin: 4px 0 0 0 !important; 
    line-height: 1.1 !important;
}

.modal-subtitle {
    font-size: 15px !important;
    opacity: 0.9;
    margin: 2px 0 0 0 !important; 
    line-height: 1.1 !important;
}

.modal-instruction {
    font-size: 15px !important;
    margin: 2px 0 4px 0 !important; 
    opacity: 0.8;
    line-height: 1.1 !important;
}

.modal-body {
    padding: 25px;
}

/* ==========================================================================
   ОФОРМЛЕНИЕ ГОРИЗОНТАЛЬНЫХ КАРТОЧЕК И ОБЪЕМНЫХ КНОПОК ПО ФОТО
   ========================================================================== */

/* Каждая строка .step превращается в темную плашку с оранжевой полосой слева */
.step {
    background-color: #292929 !important; 
    border-left: 3px solid var(--accent-orange) !important; 
    border-radius: 4px !important;
    padding: 12px 16px !important;
    margin-bottom: 12px !important;
    display: flex !important;
    align-items: center !important;
    box-sizing: border-box !important;
    width: 100% !important;
}

/* Оранжевый круглый маркер номера шага */
.step-number {
    background: var(--accent-orange) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 50% !important;
    width: 28px !important;
    height: 28px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    font-size: 14px !important;
    font-weight: bold !important;
    margin-right: 20px !important;
    flex-shrink: 0 !important;
}

/* Контейнер для выравнивания клавиш по центру строки */
.step-keys {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

/* Фирменные оранжево-коричневые объемные (3D) клавиши kbd */
kbd.key {
    background: #5a3d28 !important; 
    border: 1px solid #704d33 !important;
    border-radius: 6px !important;
    box-shadow: 0 3px 0 #3a2517 !important; 
    color: #ffd2b3 !important; 
    padding: 6px 14px !important;
    font-family: 'Segoe UI', system-ui, sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 32px !important;
    height: 32px !important;
    box-sizing: border-box !important;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.4);
}

/* Расширение для длинных клавиш (Ctrl, Windows, Enter) */
kbd.key-win, 
kbd.key-enter, 
kbd.key:not(:last-child):not(.plus) {
    min-width: 55px !important;
}

/* Знак плюс между кнопками */
.plus {
    color: #777777 !important;
    font-weight: bold !important;
    font-size: 14px !important;
    user-select: none !important;
    margin: 0 4px !important;
    display: inline-block !important;
}

/* ==========================================================================
   ИКОНКИ И СТАБИЛЬНАЯ КНОПКА ВЕРИФИКАЦИИ
   ========================================================================== */

.mini-widget-icon {
    width: 70px;   
    height: 70px;  
    object-fit: contain;
    
    /* ВКЛЮЧАЕМ СВОБОДНОЕ ПЕРЕМЕЩЕНИЕ КАРТИНКИ */
    position: relative !important;
    top: -12px; /* Отрицательное число принудительно двигает картинку ВВЕРХ */
    
    /* СБРАСЫВАЕМ ВСЕ МАРГИНЫ В НОЛЬ, ЧТОБЫ ОНИ БОЛЬШЕ НЕ ДВИГАЛИ РАМКИ */
    margin: 0 !important; 
}

.waiting-message {
    margin: 0 0 15px 0;
    color: #ffffff; 
    font-family: system-ui, sans-serif;
    font-size: 13px;
    font-weight: 500;
    opacity: 0.85;
}

/* Стабильная оранжевая кнопка без багов изменения размеров окон */
#verifyStepsBtn {
    background-color: var(--accent-orange) !important;
    color: #ffffff !important;
    padding: 12px 24px;
    font-family: inherit;
    font-size: 14px;
    font-weight: bold;
    border-radius: 4px !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    border: none !important; 
    width: 100%;
    transition: background-color 0.2s, opacity 0.3s ease;
    cursor: not-allowed !important;
    opacity: 0.55; 
}

#verifyStepsBtn.ready-to-click {
    cursor: pointer !important;
    opacity: 1 !important;
}

#verifyStepsBtn.ready-to-click:hover {
    background-color: #e0731f !important;
}

/* Настройки для главного экрана (180px) */
.logo-cloud img, 
.custom-logo {
    width: 150px !important;   
    height: 150px !important;  
    object-fit: contain !important;
    border-radius: 6px;
}

/* Настройки для всплывающего окна (50px) */
.modal-header-icon img, 
.modal-header img, 
.modal-header-logo {
    width: 100px !important;   
    height: 100px !important;  
    max-width: 100px !important;
    max-height: 100px !important;
    object-fit: contain !important;
    display: block !important;
}

/* ==========================================================================
   ТОЧНЫЙ СТИЛЬ СТРОКИ VERIFICATION ID СТРОГО ПО ФОТОГРАФИИ
   ========================================================================== */
.modal-verification-id {
    text-align: center !important; 
    font-size: 11px !important;    
    color: #4c4c4c !important;     
    font-family: 'Segoe UI', system-ui, monospace !important;
    margin-top: 30px !important;   
    margin-bottom: 5px !important; 
    width: 100%;
    letter-spacing: 0.5px;         
    user-select: none;             
}
