/* Сброс базовых отступов */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: #1a1a1a; /* Темный фон для ПК */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* Контейнер-телефон */
.mobile-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    max-height: 850px;
    /* Имитация волнистого фона с помощью градиентов */
    background: radial-gradient(circle at 10% 20%, rgba(30, 60, 70, 0.4) 0%, transparent 40%),
                radial-gradient(circle at 90% 80%, rgba(30, 60, 70, 0.4) 0%, transparent 40%),
                #0a1114;
    border-radius: 40px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* Соцсети */
.social-icons {
    position: absolute;
    top: 25px;
    left: 20px;
    display: flex;
    gap: 12px;
    z-index: 10;
}

.icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    background-color: #6bc2e3; /* Голубой цвет кружков */
    border-radius: 50%;
    color: white;
    text-decoration: none;
    font-size: 22px;
}

/* Профиль и Аватар */
.profile {
    margin-top: 80px; /* Отступ, чтобы не наезжать на соцсети */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Хитрость для красной полоски на аватаре */
.avatar-wrapper {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    /* Градиент создает красную дугу сверху слева */
    background: conic-gradient(from -45deg, #e53935 0deg 90deg, transparent 90deg 360deg);
    padding: 3px;
    margin-bottom: 12px;
}

.avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #0a1114; /* Темная рамка внутри, чтобы отделить фото от красной линии */
}

.name {
    color: white;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 6px;
}

.subtitle {
    color: #999;
    font-size: 14px;
    margin-bottom: 25px;
}

/* Кнопки */
.links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    flex-grow: 1;
    overflow-y: auto;
}

.link-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px; /* Идеально ровный отступ между иконкой и текстом */
    width: 100%;
    padding: 16px;
    background-color: #0d5c31;
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 500;
    transition: transform 0.1s ease;
}

.link-btn:active {
    transform: scale(0.98); /* Легкое нажатие */
}
/* Стили для иконок внутри зеленых кнопок */
/* Общие настройки размера для всех иконок */
.link-btn i, .custom-icon {
    font-size: 18px;
    display: block;
}

/* Настоящий логотип OnlyFans, залитый белым цветом */
.onlyfans {
    width: 18px;
    height: 18px;
    background-color: white; 
    -webkit-mask: url('https://cdn.jsdelivr.net/npm/simple-icons@v10/icons/onlyfans.svg') no-repeat center / contain;
    mask: url('https://cdn.jsdelivr.net/npm/simple-icons@v10/icons/onlyfans.svg') no-repeat center / contain;
}


/* Поле ввода */
.chat-wrapper {
    margin-top: 15px;
    padding-bottom: 10px;
    width: 100%;
}

.chat-input {
    display: flex;
    align-items: center;
    background-color: white;
    border-radius: 30px;
    padding: 6px 6px 6px 20px;
}

.chat-input input {
    flex-grow: 1;
    border: none;
    outline: none;
    font-size: 15px;
    background: transparent;
    color: #333;
}

.send-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    background-color: #8f9294; /* Серая кнопка */
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
}

/* Адаптив для реальных телефонов */
@media (max-width: 450px) {
    .mobile-container {
        border-radius: 0;
        height: 100vh;
        max-height: none;
        box-shadow: none;
    }
}
/* --- Рекламный оверлей --- */
/* --- Рекламный оверлей --- */
/* --- Рекламный оверлей --- */
.ad-overlay {
    position: absolute; /* Привязываем к телефону, а не к окну браузера */
    top: 0;
    left: 0;
    width: 100%; /* Занимает 100% ширины телефона */
    height: 100%; /* Занимает 100% высоты телефона */
    background-color: rgba(0, 0, 0, 0.4); 
    backdrop-filter: blur(1px); 
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ad-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 90%;
    max-width: 360px; /* Ограничиваем ширину, чтобы видео не было гигантским на ПК */
}

.ad-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 16px;
    text-align: center;
    letter-spacing: 0.5px;
}

/* Обертка для видео, чтобы таймер позиционировался относительно нее */
.video-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
}

#ad-video {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    background-color: #000;
}

/* Сам таймер в правом верхнем углу видео */
.ad-timer {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.6); /* Полупрозрачный черный фон */
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    backdrop-filter: blur(4px);
    z-index: 10;
}

.hidden {
    display: none !important;
}
/* --- Фейковая Капча --- */
.captcha-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.captcha-modal {
    background-color: #ffffff;
    padding: 24px;
    border-radius: 16px;
    width: 85%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    color: #333;
}

.captcha-modal h3 {
    margin: 0;
    font-size: 18px;
    text-align: center;
}

.captcha-desc {
    font-size: 14px;
    color: #666;
    text-align: center;
}

.captcha-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #f5f5f5;
    padding: 12px 16px;
    border-radius: 8px;
}

#captcha-text {
    font-family: 'Courier New', Courier, monospace;
    font-size: 26px;
    font-weight: bold;
    letter-spacing: 4px;
    color: #444;
    text-decoration: line-through; /* Имитация защиты капчи */
    user-select: none; /* Запрет выделения текста */
    pointer-events: none;
}

#refresh-captcha {
    background: none;
    border: none;
    font-size: 18px;
    color: #888;
    cursor: pointer;
}

#captcha-input {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    outline: none;
}

.captcha-error {
    color: #e53935; /* Красный цвет ошибки */
    font-size: 13px;
    margin: 0;
    text-align: center;
    font-weight: 500;
}

.captcha-actions {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

.captcha-actions button {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.btn-cancel {
    background-color: #e0e0e0;
    color: #333;
}

.btn-submit {
    background-color: #0d5c31; /* Цвет в тон основным кнопкам */
    color: white;
}
/* --- Кастомное уведомление (Вместо системного alert) --- */
.custom-alert {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
    z-index: 10005; /* Поверх всего остального */
    display: flex;
    justify-content: center;
    align-items: center;
}

.alert-box {
    background-color: #242424; /* Темно-серый фон */
    color: white;
    padding: 24px;
    border-radius: 16px;
    width: 80%;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.alert-box p {
    margin-bottom: 20px;
    font-size: 16px;
    font-weight: 500;
}

#alert-ok-btn {
    background-color: #0d5c31; /* Зеленый в цвет кнопок */
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
    font-weight: 600;
}