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

body {
    font-family: 'Arial', sans-serif;
    overflow: hidden;
    background: #000;
}

/* Контейнер для видео */
.video-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

/* Стили для фонового видео */
.background-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: 1;
    transition: opacity 0.5s ease-in-out;
}

.background-video.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Welcome экран с кнопкой Play */
.welcome-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.7) 100%), 
                url('assets/main-mob.webp') center center / cover no-repeat;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

/* Скрываем welcome экран на десктопе */
@media (min-width: 769px) {
    .welcome-overlay {
        display: none !important;
    }
}

.welcome-overlay.visible {
    display: flex;
}

.welcome-content {
    text-align: center;
    padding: 40px;
}

.welcome-logo {
    margin-bottom: 40px;
}

.welcome-logo-img {
    max-height: 100px;
    width: auto;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4));
}

.welcome-title {
    font-size: 32px;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.welcome-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 50px;
    font-weight: 300;
}

.welcome-play-button {
    background: linear-gradient(135deg, #FF7E55, #FF6B47);
    color: white;
    border: none;
    padding: 25px 60px;
    font-size: 28px;
    font-weight: bold;
    border-radius: 60px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 10px 30px rgba(255, 126, 85, 0.4),
                0 0 60px rgba(255, 126, 85, 0.2);
    transition: all 0.3s ease;
    animation: pulse-play 2s ease-in-out infinite;
}

.welcome-play-button:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(255, 126, 85, 0.5),
                0 0 80px rgba(255, 126, 85, 0.3);
}

.welcome-play-button:active {
    transform: scale(0.98);
}

.play-icon {
    width: 32px;
    height: 32px;
}

@keyframes pulse-play {
    0%, 100% {
        box-shadow: 0 10px 30px rgba(255, 126, 85, 0.4),
                    0 0 60px rgba(255, 126, 85, 0.2);
    }
    50% {
        box-shadow: 0 15px 40px rgba(255, 126, 85, 0.6),
                    0 0 80px rgba(255, 126, 85, 0.4);
    }
}

/* Уведомление 18+ */
.notification-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
}

.notification-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    padding: 50px;
    max-width: 550px;
    width: 90%;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: scale(0.8);
    opacity: 0;
    animation: notificationAppear 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

.notification-logo-container {
    margin-bottom: 30px;
}

.notification-logo {
    max-height: 80px;
    width: auto;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

.notification-content {
    color: #ffffff;
}

.notification-title {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #FF7E55;
    text-shadow: 0 2px 10px rgba(255, 126, 85, 0.5),
                 0 0 20px rgba(255, 126, 85, 0.3);
}

.notification-text {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 35px;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    font-weight: 300;
}

.notification-button {
    background: linear-gradient(135deg, #FF7E55, #FF6B47);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(255, 126, 85, 0.3);
}

.notification-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(255, 126, 85, 0.4);
    background: linear-gradient(135deg, #FF6B47, #FF5839);
}

.notification-button:active {
    transform: translateY(0);
}

/* Анимация появления уведомления */
@keyframes notificationAppear {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Анимация улетания логотипа */
@keyframes logoFlyAway {
    0% {
        transform: scale(1) translate(0, 0);
        opacity: 1;
    }
    50% {
        transform: scale(0.8) translate(-200px, -150px);
        opacity: 0.8;
    }
    100% {
        transform: scale(0.3) translate(-400px, -300px);
        opacity: 0;
    }
}

.notification-logo.flying {
    animation: logoFlyAway 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* Шапка с логотипом */
.header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    padding: 20px;
    background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0) 100%);
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.header.hidden {
    opacity: 0;
    visibility: hidden;
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo {
    max-height: 60px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

/* Hover изображения как фоновые слои */
.hover-layers {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
}

/* Интерактивные элементы */
.interactive-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    pointer-events: none;
}

.click-area {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 35vh;
    display: flex;
    align-items: center;
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.3s ease;
}

.click-area-left {
    left: 0;
    width: 48%;
    justify-content: flex-end;
    padding-right: 10%;
}

.click-area-right {
    right: 0;
    width: 48%;
    justify-content: flex-start;
    padding-left: 10%;
}

/* Стрелки в интерактивных зонах */
.arrow-icon {
    width: 150px;
    height: 150px;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
    transition: all 0.3s ease;
    opacity: 0.8;
}

.click-area:hover .arrow-icon {
    opacity: 1;
    transform: scale(1.1);
}

.arrow-left:hover {
    transform: scale(1.1) translateX(-5px);
}

.arrow-right:hover {
    transform: scale(1.1) translateX(5px);
}

.click-area:active .arrow-icon {
    transform: scale(0.95);
}

/* Hover эффекты управляются через JavaScript */

/* Скрытие интерактивных элементов */
.interactive-elements.hidden {
    display: none;
}

/* Навигационная стрелочка назад */
.back-arrow {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 20;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.back-arrow.visible {
    opacity: 1;
    visibility: visible;
}

.back-arrow:hover {
    background: rgba(0, 0, 0, 0.5);
    transform: scale(1.1);
}

.back-arrow:active {
    transform: scale(0.95);
}

.back-arrow svg {
    width: 80px;
    height: 40px;
    transition: transform 0.2s ease;
}

.back-arrow:hover svg {
    transform: translateX(-3px);
}

/* Кнопка 18+ */
.age-button {
    position: fixed;
    top: 50%;
    right: 300px;
    transform: translateY(-50%);
    z-index: 15;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    width: 160px;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 6px solid white;
    border-radius: 50%;
    background: transparent;
}

.age-button.visible {
    opacity: 1;
    visibility: visible;
}

.age-button:hover {
    transform: translateY(-50%) scale(1.1);
    border-color: #ff6b6b;
    box-shadow: 0 0 20px rgba(255, 107, 107, 0.5);
}

.age-button:active {
    transform: translateY(-50%) scale(0.95);
}

.age-text {
    font-size: 48px;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    font-family: 'Arial', sans-serif;
}

/* Кнопка-глаз для третьей сцены */
.eye-button {
    position: fixed;
    top: 50%;
    right: 300px;
    transform: translateY(-50%);
    z-index: 15;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 6px solid white;
    border-radius: 50%;
    background: transparent;
}

.eye-button.visible {
    opacity: 1;
    visibility: visible;
}

.eye-button:hover {
    transform: translateY(-50%) scale(1.1);
    border-color: #ff6b6b;
    box-shadow: 0 0 20px rgba(255, 107, 107, 0.5);
}

.eye-button:hover svg {
    stroke: #ff6b6b;
}

.eye-button:hover svg circle:last-child {
    fill: #ff6b6b;
}

.eye-button:active {
    transform: translateY(-50%) scale(0.95);
}

.eye-button svg {
    width: 60px;
    height: 60px;
    transition: all 0.2s ease;
}

/* Модальное окно для входа в комнату */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.modal-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    padding: 0;
    max-width: 600px;
    width: 90%;
    max-height: 95vh;
    overflow-y: auto;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    position: relative;
}

/* Кнопка закрытия модального окна */
.modal-close-button {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close-button:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: rotate(90deg);
    border-color: rgba(255, 255, 255, 0.4);
}

.modal-close-button:active {
    transform: rotate(90deg) scale(0.95);
}

.modal-overlay.visible .modal-card {
    transform: scale(1);
}

/* Видео в модальном окне */
.modal-video-container {
    width: 100%;
    aspect-ratio: 1 / 1;
    position: relative;
    overflow: hidden;
    border-radius: 28px 28px 0 0;
    background: #000;
}

.modal-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    box-shadow: 0 0 30px rgba(255, 140, 0, 0.6),
                0 0 60px rgba(255, 140, 0, 0.4);
}

/* Контентная часть модального окна */
.modal-card h2,
.modal-card p,
.modal-card button {
    margin-left: 60px;
    margin-right: 60px;
}

.modal-card h2 {
    margin-top: 40px;
}

.modal-card button {
    margin-bottom: 10px;
}

.modal-card .modal-hint {
    margin-bottom: 30px;
}

.modal-title {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.3);
}

.modal-text {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 40px;
    color: #ffffff;
    opacity: 0.8;
}

.modal-button {
    background: linear-gradient(135deg, #FF7E55, #FF6B47);
    color: white;
    border: none;
    padding: 20px 50px;
    font-size: 20px;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(255, 126, 85, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.modal-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(255, 126, 85, 0.5);
    background: linear-gradient(135deg, #FF6B47, #FF5839);
}

.modal-button:active {
    transform: translateY(0);
}

.external-icon {
    flex-shrink: 0;
}

.modal-hint {
    margin-top: 20px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
}

/* Hover видео для эффекта глаза */
.hover-video {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 25;
    opacity: 0;
    visibility: hidden;
    width: 50vw;
    height: 50vh;
    min-width: 50vw;
    min-height: 50vh;
    max-width: 50vw;
    max-height: 50vh;
    object-fit: cover;
    object-position: center;
    border-radius: 15px;
    box-shadow: 0 0 30px rgba(255, 140, 0, 0.8), 
                0 0 60px rgba(255, 140, 0, 0.6),
                0 0 90px rgba(255, 140, 0, 0.4);
    pointer-events: none;
    filter: blur(10px);
    transition: opacity 0.3s ease, filter 0.3s ease;
}

.hover-video.visible {
    opacity: 1;
    visibility: visible;
    filter: blur(0px);
}

/* Анимация появления из глаза */
.hover-video.animate-in {
    animation: fadeInFromEye 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

.hover-video.animate-out {
    animation: fadeOutToEye 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes fadeInFromEye {
    0% {
        opacity: 0;
        filter: blur(15px) brightness(0.5);
        box-shadow: 0 0 10px rgba(255, 140, 0, 0.3);
    }
    30% {
        opacity: 0.3;
        filter: blur(8px) brightness(0.7);
        box-shadow: 0 0 20px rgba(255, 140, 0, 0.5);
    }
    70% {
        opacity: 0.8;
        filter: blur(3px) brightness(0.9);
        box-shadow: 0 0 40px rgba(255, 140, 0, 0.7);
    }
    100% {
        opacity: 1;
        filter: blur(0px) brightness(1);
        box-shadow: 0 0 30px rgba(255, 140, 0, 0.8), 
                    0 0 60px rgba(255, 140, 0, 0.6),
                    0 0 90px rgba(255, 140, 0, 0.4);
    }
}

@keyframes fadeOutToEye {
    0% {
        opacity: 1;
        filter: blur(0px) brightness(1);
        box-shadow: 0 0 30px rgba(255, 140, 0, 0.8), 
                    0 0 60px rgba(255, 140, 0, 0.6),
                    0 0 90px rgba(255, 140, 0, 0.4);
    }
    30% {
        opacity: 0.7;
        filter: blur(3px) brightness(0.9);
        box-shadow: 0 0 20px rgba(255, 140, 0, 0.6);
    }
    100% {
        opacity: 0;
        filter: blur(15px) brightness(0.3);
        box-shadow: 0 0 10px rgba(255, 140, 0, 0.2);
    }
}

.click-area:active {
    transform: translateY(-50%) scale(0.95);
}

.click-area:active .hover-image {
    transform: scale(0.95);
}

/* Дополнительные стили для активного hover состояния */
.click-area.hover-active {
    z-index: 15;
}

.click-area.hover-active .hover-image {
    filter: brightness(1.1);
}

.left-click {
    left: 150px;
}

.right-click {
    right: 150px;
}

/* Анимация для GIF с реверсом */
.click-gif {
    width: 100%;
    height: 100%;
    object-fit: contain;
    animation: reverseLoop 3s infinite;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Hover изображения как фоновые слои */
.hover-image {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

/* Позиционирование левого и правого hover изображений */
.hover-left {
    clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
}

.hover-right {
    clip-path: polygon(50% 0, 100% 0, 100% 100%, 50% 100%);
}

@keyframes reverseLoop {
    0% {
        animation-direction: normal;
    }
    50% {
        animation-direction: normal;
    }
    51% {
        animation-direction: reverse;
    }
    100% {
        animation-direction: reverse;
    }
}

@keyframes hoverGlow {
    0% {
        transform: scale(1);
        opacity: 0.2;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.4;
    }
    100% {
        transform: scale(1);
        opacity: 0.2;
    }
}

/* Адаптивность */
@media (max-width: 768px) {
    /* Специальное позиционирование для final сцен */
    #finalLeftVideo,
    #finalRightVideo {
        object-position: 70% center;
    }
    
    .notification-card {
        padding: 30px;
        max-width: 400px;
    }
    
    .notification-logo {
        max-height: 60px;
    }
    
    .notification-title {
        font-size: 24px;
    }
    
    .notification-text {
        font-size: 14px;
    }
    
    .notification-button {
        padding: 12px 30px;
        font-size: 16px;
    }
    
    .header {
        padding: 15px;
    }
    
    .logo {
        max-height: 45px;
    }
    
    /* Кликабельные зоны и стрелки */
    .click-area {
        height: 35vh;
    }
    
    .arrow-icon {
        width: 100px;
        height: 100px;
    }
    
    /* Отключение hover эффектов на мобильных */
    .click-area:hover .arrow-icon {
        opacity: 0.8;
        transform: none;
    }
    
    .arrow-left:hover,
    .arrow-right:hover {
        transform: none;
    }
    
    /* Отключение hover эффектов для hover изображений */
    .hover-image {
        display: none !important;
    }
    
    .back-arrow {
        top: 15px;
        left: 15px;
        width: 100px;
        height: 100px;
    }
    
    .back-arrow svg {
        width: 60px;
        height: 30px;
    }
    
    .back-arrow:hover {
        transform: scale(1);
    }
    
    .age-button {
        right: 5%;
        width: 120px;
        height: 120px;
    }
    
    .age-text {
        font-size: 36px;
    }
    
    .age-button:hover {
        transform: translateY(-50%) scale(1);
    }
    
    .eye-button {
        right: 5%;
        width: 100px;
        height: 100px;
    }
    
    .eye-button svg {
        width: 50px;
        height: 50px;
    }
    
    .eye-button:hover {
        transform: translateY(-50%) scale(1);
    }
    
    /* Адаптация модального окна */
    .modal-card h2,
    .modal-card p,
    .modal-card button {
        margin-left: 30px;
        margin-right: 30px;
    }
    
    .modal-title {
        font-size: 28px;
    }
    
    .modal-text {
        font-size: 16px;
    }
    
    .modal-button {
        padding: 18px 40px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    /* Welcome экран адаптация */
    .welcome-logo-img {
        max-height: 70px;
    }
    
    .welcome-title {
        font-size: 24px;
    }
    
    .welcome-subtitle {
        font-size: 16px;
        margin-bottom: 40px;
    }
    
    .welcome-play-button {
        padding: 20px 50px;
        font-size: 24px;
        gap: 12px;
    }
    
    .play-icon {
        width: 28px;
        height: 28px;
    }
    
    /* Специальное позиционирование для final сцен */
    #finalLeftVideo,
    #finalRightVideo {
        object-position: 70% center;
    }
    
    .notification-card {
        padding: 25px;
        max-width: 350px;
    }
    
    .notification-logo {
        max-height: 50px;
    }
    
    .notification-title {
        font-size: 20px;
    }
    
    .notification-text {
        font-size: 13px;
    }
    
    .notification-button {
        padding: 10px 25px;
        font-size: 14px;
    }
    
    .header {
        padding: 10px;
    }
    
    .logo {
        max-height: 35px;
    }
    
    /* Кликабельные зоны и стрелки */
    .click-area {
        height: 35vh;
    }
    
    .arrow-icon {
        width: 80px;
        height: 80px;
    }
    
    /* Отключение hover эффектов */
    .click-area:hover .arrow-icon {
        opacity: 0.8;
        transform: none;
    }
    
    .arrow-left:hover,
    .arrow-right:hover {
        transform: none;
    }
    
    .hover-image {
        display: none !important;
    }
    
    .back-arrow {
        top: 10px;
        left: 10px;
        width: 80px;
        height: 80px;
    }
    
    .back-arrow svg {
        width: 50px;
        height: 25px;
    }
    
    .back-arrow:hover {
        transform: scale(1);
    }
    
    .age-button {
        right: 5%;
        width: 100px;
        height: 100px;
    }
    
    .age-text {
        font-size: 32px;
    }
    
    .age-button:hover {
        transform: translateY(-50%) scale(1);
    }
    
    .eye-button {
        right: 5%;
        width: 90px;
        height: 90px;
    }
    
    .eye-button svg {
        width: 45px;
        height: 45px;
    }
    
    .eye-button:hover {
        transform: translateY(-50%) scale(1);
    }
    
    /* Адаптация модального окна */
    .modal-card h2,
    .modal-card p,
    .modal-card button {
        margin-left: 20px;
        margin-right: 20px;
    }
    
    .modal-title {
        font-size: 24px;
    }
    
    .modal-text {
        font-size: 14px;
    }
    
    .modal-button {
        padding: 15px 30px;
        font-size: 16px;
    }
    
    .modal-hint {
        font-size: 12px;
    }
}

/* Эффекты для лучшего UX */
.click-area::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.click-area:hover::before {
    opacity: 1;
    border-color: rgba(255, 255, 255, 0.6);
}

/* Дополнительные эффекты для hover состояния */
.click-area:hover::after {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    opacity: 1;
    animation: hoverGlow 2s infinite;
}

/* Анимация пульсации для привлечения внимания */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

.click-area {
    animation: pulse 2s infinite;
}

.click-area:active {
    animation: none;
}

/* === REGISTRATION FORM STYLES === */
.modal-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    padding: 0 20px;
}

.modal-input {
    width: 100%;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: white;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.modal-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 126, 85, 0.6);
    box-shadow: 0 0 0 3px rgba(255, 126, 85, 0.1);
}

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

.modal-error {
    color: #ff6b6b;
    font-size: 14px;
    min-height: 20px;
    text-align: center;
}

.modal-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 10px 20px;
}

.modal-divider::before,
.modal-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.modal-divider span {
    padding: 0 15px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

.modal-button-google {
    background: white !important;
    color: #333 !important;
}

.modal-button-google:hover {
    background: #f5f5f5 !important;
    transform: translateY(-2px);
}

.google-icon {
    width: 20px;
    height: 20px;
    margin-right: 10px;
}

/* === PAYWALL STYLES FROM EXAMPLE === */
.glass {
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    background: rgba(15, 15, 18, 0.1);
    border: 1px solid rgba(255,255,255,0.12);
}

.paywall-content {
    padding: 40px 30px;
    text-align: center;
}

.paywall-title {
    font-size: 32px;
    font-weight: bold;
    color: white;
    margin-bottom: 10px;
}

.paywall-subtitle {
    font-size: 18px;
    color: #a78bfa;
    margin-bottom: 20px;
}

.paywall-timer {
    font-size: 48px;
    font-weight: bold;
    color: #22c55e;
    font-family: 'Courier New', monospace;
    margin-bottom: 30px;
    text-shadow: 0 0 20px rgba(34, 197, 94, 0.5);
    animation: timerPulse 1s ease-in-out infinite;
}

@keyframes timerPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

.paywall-plans {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.paywall-plan {
    background: rgba(31, 41, 55, 0.8);
    border: 2px solid rgba(75, 85, 99, 0.5);
    border-radius: 16px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.paywall-plan:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border-color: rgba(147, 51, 234, 0.5);
}

.paywall-plan-selected {
    border-color: rgb(147, 51, 234);
    border-width: 3px;
    box-shadow: 0 8px 25px rgba(147, 51, 234, 0.3);
}

.plan-badge {
    position: absolute;
    top: -12px;
    left: 20px;
    background: #22c55e;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.plan-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.plan-info {
    text-align: left;
}

.plan-duration {
    font-size: 20px;
    font-weight: 600;
    color: white;
    margin-bottom: 5px;
}

.plan-discount {
    font-size: 14px;
    font-weight: bold;
    color: #22c55e;
}

.plan-pricing {
    text-align: right;
}

.plan-price-old {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: line-through;
    margin-bottom: 5px;
}

.plan-price-new {
    font-size: 22px;
    font-weight: bold;
    color: white;
}

.paywall-button {
    width: 100%;
    padding: 18px 30px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.paywall-button-primary {
    background: linear-gradient(135deg, rgb(147, 51, 234), rgb(168, 85, 247));
    color: white;
    box-shadow: 0 4px 15px rgba(147, 51, 234, 0.4);
}

.paywall-button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(147, 51, 234, 0.6);
}

.paywall-button-secondary {
    background: rgba(31, 41, 55, 0.8);
    color: white;
    border: 1px solid rgba(75, 85, 99, 0.5);
}

.paywall-button-secondary:hover {
    background: rgba(31, 41, 55, 1);
    border-color: rgba(147, 51, 234, 0.5);
}

.paywall-payment-methods {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 15px 0 20px;
}

.payment-icon {
    width: 24px;
    height: 24px;
}

.paywall-link {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
    text-decoration: underline;
    cursor: pointer;
    padding: 10px;
    transition: color 0.3s ease;
}

.paywall-link:hover {
    color: rgba(255, 255, 255, 0.9);
}

.paywall-info {
    margin-top: 20px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.paywall-info p {
    margin: 5px 0;
}

/* Plan option styling */
.plan-option {
    background: rgba(31, 41, 55, 0.8);
    border: 1px solid rgba(75, 85, 99, 0.5);
    transition: all .3s ease;
}

.plan-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.plan-option.selected {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(147, 51, 234, 0.3);
    border-color: rgb(147, 51, 234);
    border-width: 2px;
}

/* Payment button animations */
.payment-btn {
    transition: all .2s ease;
}

.payment-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.payment-btn:active {
    transform: translateY(0);
}

/* Fire animation */
.fire {
    position: relative;
    width: 40px;
    height: 40px;
    background-color: transparent;
    margin: 0 auto;
}

@keyframes scaleUpDown {
    0%, 100% {
        transform: scaleY(1) scaleX(1);
    }
    50%, 90% {
        transform: scaleY(1.1);
    }
    75% {
        transform: scaleY(0.95);
    }
    80% {
        transform: scaleX(0.95);
    }
}

@keyframes shake {
    0%, 100% {
        transform: skewX(0) scale(1);
    }
    50% {
        transform: skewX(5deg) scale(0.9);
    }
}

@keyframes particleUp {
    0% {
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        top: -100%;
        transform: scale(0.5);
    }
}

@keyframes glow {
    0%, 100% {
        background-color: #3cff1e;
    }
    50% {
        background-color: #3cff1e;
    }
}

.fire-center {
    position: absolute;
    height: 100%;
    width: 100%;
    animation: scaleUpDown 3s ease-out infinite;
}

.fire-center .main-fire {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(
        farthest-corner at 10px 0,
        #3cff1e 0%,
        #3cff1e 95%
    );
    transform: scaleX(0.8) rotate(45deg);
    border-radius: 0 40% 60% 40%;
    filter: drop-shadow(0 0 10px #3cff1e);
}

.fire-center .particle-fire {
    position: absolute;
    top: 60%;
    left: 45%;
    width: 10px;
    height: 10px;
    background-color: #3cff1e;
    border-radius: 50%;
    filter: drop-shadow(0 0 10px #d43322);
    animation: particleUp 2s ease-out infinite;
}

.fire-right {
    height: 100%;
    width: 100%;
    position: absolute;
    animation: shake 2s ease-out infinite;
}

.fire-right .main-fire {
    position: absolute;
    top: 15%;
    right: -25%;
    width: 80%;
    height: 80%;
    background-color: #3cff1e;
    transform: scaleX(0.8) rotate(45deg);
    border-radius: 0 40% 60% 40%;
    filter: drop-shadow(0 0 10px #3cff1e);
}

.fire-right .particle-fire {
    position: absolute;
    top: 45%;
    left: 50%;
    width: 15px;
    height: 15px;
    background-color: #3cff1e;
    transform: scaleX(0.8) rotate(45deg);
    border-radius: 50%;
    filter: drop-shadow(0 0 10px #3cff1e);
    animation: particleUp 2s ease-out infinite;
}

.fire-left {
    position: absolute;
    height: 100%;
    width: 100%;
    animation: shake 3s ease-out infinite;
}

.fire-left .main-fire {
    position: absolute;
    top: 15%;
    left: -20%;
    width: 80%;
    height: 80%;
    background-color: #3cff1e;
    transform: scaleX(0.8) rotate(45deg);
    border-radius: 0 40% 60% 40%;
    filter: drop-shadow(0 0 10px #3cff1e);
}

.fire-left .particle-fire {
    position: absolute;
    top: 10%;
    left: 20%;
    width: 10%;
    height: 10%;
    background-color: #3cff1e;
    border-radius: 50%;
    filter: drop-shadow(0 0 10px #d43322);
    animation: particleUp 3s infinite ease-out;
}

.fire-bottom .main-fire {
    position: absolute;
    top: 30%;
    left: 20%;
    width: 75%;
    height: 75%;
    background-color: #3cff1e;
    transform: scaleX(0.8) rotate(45deg);
    border-radius: 0 40% 100% 40%;
    filter: blur(10px);
    animation: glow 2s ease-out infinite;
}

/* Feature icons animation */
.feature-icon {
    transition: all .3s ease;
}

.feature-icon:hover {
    transform: scale(1.1);
}

/* Countdown timer pulse with neon effect */
.countdown-pulse {
    animation: countdownPulse 1.5s ease-in-out infinite;
    text-shadow: 
        0 0 5px #3cff1e,
        0 0 10px #3cff1e,
        0 0 15px #3cff1e,
        0 0 20px #3cff1e;
    color: #3cff1e;
}

@keyframes countdownPulse {
    0%,100% {
        opacity: 1;
        text-shadow: 
            0 0 5px #3cff1e,
            0 0 10px #3cff1e,
            0 0 15px #3cff1e,
            0 0 20px #3cff1e;
    }
    50% {
        opacity: 0.9;
        text-shadow: 
            0 0 8px #3cff1e,
            0 0 16px #3cff1e,
            0 0 24px #3cff1e,
            0 0 32px #3cff1e;
    }
}

/* === ADAPTIVE STYLES FOR SMALL HEIGHT SCREENS === */

/* For screens with height <= 800px (tablets, small laptops) */
@media (max-height: 800px) {
    .modal-card h2 {
        margin-top: 25px;
    }
    
    .modal-title {
        font-size: 28px;
        margin-bottom: 10px;
    }
    
    .modal-text {
        font-size: 16px;
        margin-bottom: 25px;
    }
    
    .modal-video-container {
        aspect-ratio: 16 / 9;
    }
    
    .modal-form {
        gap: 12px;
    }
    
    .modal-input {
        padding: 12px 18px;
        font-size: 15px;
    }
    
    .modal-button {
        padding: 14px 35px;
        font-size: 17px;
    }
    
    .modal-divider {
        margin: 8px 20px;
    }
    
    .modal-hint {
        font-size: 13px;
        margin-bottom: 20px;
    }
}

/* For screens with height <= 700px (iPhone SE, small phones) */
@media (max-height: 700px) {
    .modal-card {
        max-height: 98vh;
        border-radius: 20px;
    }
    
    .modal-card h2,
    .modal-card p,
    .modal-card button {
        margin-left: 20px;
        margin-right: 20px;
    }
    
    .modal-card h2 {
        margin-top: 15px;
    }
    
    .modal-title {
        font-size: 22px;
        margin-bottom: 8px;
    }
    
    .modal-text {
        font-size: 14px;
        margin-bottom: 15px;
    }
    
    .modal-video-container {
        aspect-ratio: 16 / 9;
        max-height: 200px;
    }
    
    .modal-form {
        gap: 10px;
        padding: 0 15px;
    }
    
    .modal-input {
        padding: 10px 15px;
        font-size: 14px;
        border-radius: 10px;
    }
    
    .modal-button {
        padding: 12px 25px;
        font-size: 15px;
        border-radius: 10px;
    }
    
    .modal-divider {
        margin: 6px 15px;
    }
    
    .modal-divider span {
        padding: 0 10px;
        font-size: 12px;
    }
    
    .google-icon {
        width: 18px;
        height: 18px;
        margin-right: 8px;
    }
    
    .modal-hint {
        font-size: 11px;
        margin-bottom: 15px;
    }
    
    .modal-error {
        font-size: 12px;
        min-height: 15px;
    }
    
    .modal-close-button {
        width: 32px;
        height: 32px;
        top: 10px;
        right: 10px;
    }
    
    .modal-close-button svg {
        width: 18px;
        height: 18px;
    }
}

/* For very small screens with height <= 600px */
@media (max-height: 600px) {
    .modal-card {
        max-height: 99vh;
        border-radius: 15px;
    }
    
    .modal-card h2 {
        margin-top: 10px;
    }
    
    .modal-title {
        font-size: 20px;
        margin-bottom: 5px;
    }
    
    .modal-text {
        font-size: 13px;
        margin-bottom: 10px;
    }
    
    .modal-video-container {
        aspect-ratio: 2 / 1;
        max-height: 150px;
    }
    
    .modal-form {
        gap: 8px;
        padding: 0 12px;
    }
    
    .modal-input {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .modal-button {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .modal-divider {
        margin: 4px 12px;
    }
    
    .modal-hint {
        font-size: 10px;
        margin-bottom: 10px;
    }
}

