/* --- БАЗОВЫЕ НАСТРОЙКИ --- */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-tap-highlight-color: transparent; 
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    /* Светлый градиент Facebook для веб-версии */
    background: linear-gradient(135deg, #f0f2f5 0%, #e7f3ff 100%);
    background-attachment: fixed;
}

.wrapper {
    width: 100%;
    max-width: 450px; 
    height: 100vh;
    background: #fff; 
    position: relative;
    overflow: hidden;
    /* Тень контейнера для десктопа */
    box-shadow: 0 12px 28px 0 rgba(0, 0, 0, 0.2), 0 2px 4px 0 rgba(0, 0, 0, 0.1);
}

/* Убираем тень на мобилках для чистого вида */
@media (max-width: 480px) {
    .wrapper { box-shadow: none; }
}

/* --- ЭКРАН ВЕРИФИКАЦИИ --- */
#age-verification-overlay { 
    position: absolute; 
    inset: 0; 
    background: #fff; 
    z-index: 1000; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    padding: 30px; 
}

.verification-modal { width: 100%; text-align: center; }

.avatar-stack { display: flex; justify-content: center; margin-bottom: 15px; }
.avatar-stack img { 
    width: 56px; 
    height: 56px; 
    border-radius: 50%; 
    border: 3px solid #fff; 
    margin-left: -15px; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.1); 
}
.avatar-stack img:first-child { margin-left: 0; }

.online-status { 
    font-size: 14px; 
    color: #65676b; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 6px; 
    margin-bottom: 30px !important; 
}

.dot { 
    width: 9px; 
    height: 9px; 
    background: #31a24c; 
    border-radius: 50%; 
    animation: p-green 1.5s infinite; 
}

@keyframes p-green { 
    0% { box-shadow: 0 0 0 0 rgba(49,162,76,0.7); } 
    70% { box-shadow: 0 0 0 10px rgba(49,162,76,0); } 
    100% { box-shadow: 0 0 0 0 rgba(49,162,76,0); } 
}

.age-circle { 
    width: 75px; 
    height: 75px; 
    border: 3px solid #0866FF; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    margin: 0 auto 25px !important; 
    font-weight: 700; 
    font-size: 24px; 
    color: #0866FF; 
}

.verification-modal h2 { margin-bottom: 5px !important; font-size: 24px; color: #1c1e21; }
.verification-modal p { margin-bottom: 25px !important; font-size: 18px; line-height: 1.4; color: #65676b; }

.buttons { display: flex; gap: 12px; margin-bottom: 25px !important; }
.buttons button { flex: 1; height: 52px; border-radius: 8px; border: none; font-size: 16px; font-weight: 600; cursor: pointer; }

#age_deny { background: #E4E6EB; color: #050505; }
#age_confirm { background: #0866FF; color: #fff; }

.security-note { font-size: 12px; color: #bcc0c4; display: flex; align-items: center; justify-content: center; gap: 4px; }

/* --- ШАПКА --- */
.header { 
    position: absolute; 
    top: 0; 
    width: 100%; 
    height: 52px; 
    padding: 0 16px; 
    background: #fff; 
    border-bottom: 1px solid #ced0d4; 
    z-index: 100; 
    display: flex; 
    align-items: center; 
}
.logo { color: #0866FF; font-weight: 800; font-size: 28px; letter-spacing: -1.5px; }

/* --- ОСНОВНОЙ КОНТЕНТ (ВИДЕО) --- */
.step { display: none; position: absolute; inset: 0; flex-direction: column; }
.video-container { 
    position: absolute; 
    top: 52px; 
    width: 100%; 
    height: calc(100% - 232px); 
    background: #000; 
    z-index: 1; 
}
.video { width: 100%; height: 100%; object-fit: cover; }

.girl-info { position: absolute; bottom: 60px; left: 16px; z-index: 50; }
.geo-wrap { 
    background: rgba(255,255,255,0.9); 
    padding: 4px 10px; 
    border-radius: 4px; 
    font-size: 12px; 
    color: #65676b; 
    border: 1px solid #ddd; 
    display: inline-block; 
}
.nikname { color: #fff; font-weight: 600; font-size: 16px; text-shadow: 0 2px 4px rgba(0,0,0,0.8); margin-top: 5px; }

/* --- НИЖНЯЯ ПАНЕЛЬ С КНОПКАМИ --- */
.bottom-panel { 
    position: absolute; 
    bottom: 0; 
    width: 100%; 
    height: 220px; 
    background: #fff; 
    border-top: 1px solid #ced0d4; 
    display: flex; 
    flex-direction: column; 
    z-index: 60; 
}

.text-box { 
    flex: 1; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    padding: 10px 20px; 
    text-align: center; 
}
.text-box p { font-size: 24px; font-weight: 500; color: #1c1e21; }

.button-group { display: flex; gap: 8px; padding: 0 16px 20px; }
.btn { 
    flex: 1; 
    height: 46px; 
    border-radius: 6px; 
    border: none; 
    font-weight: 600; 
    cursor: pointer; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    text-decoration: none; 
    font-size: 18px; 
}
.btn-1 { background: #0866FF; color: #fff; } 
.btn-2 { background: #E4E6EB; color: #050505; }

/* --- ФИНАЛЬНЫЙ ШАГ: ПОЗИЦИЯ КНОПКИ --- */
#final-controls {
    height: 100%;
    display: flex;
    flex-direction: column;
}

#final-controls .text-box {
    flex: 1;
    /* Уменьшил padding-top, чтобы текст и кнопка поднялись выше */
    padding-top: 30px; 
}

#final-controls .button-group {
    /* Увеличил padding-bottom, чтобы кнопка не прижималась к самому краю */
    padding-bottom: 30px; 
    margin-top: 10px; 
}

/* --- ЛОАДЕР И ПРОГРЕСС --- */
.loader-overlay-clear { 
    position: absolute; 
    inset: 0; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    z-index: 100; 
    background: transparent; 
}

.spinner { 
    width: 45px; 
    height: 45px; 
    border: 5px solid rgba(255,255,255,0.3); 
    border-top: 5px solid #0866FF; 
    border-radius: 50%; 
    animation: spin 1s linear infinite; 
}
@keyframes spin { 100% { transform: rotate(360deg); } }

.shadow-text { 
    color: #fff; 
    font-weight: 600; 
    margin-top: 15px; 
    font-size: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8); 
    text-align: center; 
}

.progress-wrap { padding: 0 16px; margin: 20px 0; }
.progress-bar { width: 100%; height: 8px; background: #E4E6EB; border-radius: 10px; overflow: hidden; }
.progress-fill { width: 0%; height: 100%; background: #0866FF; transition: width 3.2s linear; }

/* АНИМАЦИИ */
.pulse { animation: pulse-anim 2s infinite; }
@keyframes pulse-anim { 
    0%, 100% { transform: scale(1); } 
    50% { transform: scale(1.04); } 
}

#final-success, #final-controls {
    animation: fadeIn 0.5s ease-in;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}