/* --- [1/10] GLOBAL & FONTS ---  chat_styles.css */
@import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap/');

html, body {
    margin: 0; padding: 0;
    width: 100%; min-height: 100vh;
    background: radial-gradient(circle at center, #1a1a1e 0%, #000000 100%) !important;
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

* { box-sizing: border-box !important; }

/* Основной контейнер сайта */
.stealth-wrapper, .vip-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 20px;
    text-align: center;
}

/* ЗАГОЛОВОК: ЭФФЕКТ ШЛИФОВАННОЙ СТАЛИ */
.main-title {
    font-size: clamp(2.2rem, 5vw, 4.5rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 15px;
    margin: 0 0 30px 0;
    background: linear-gradient(to bottom, #ffffff 0%, #999999 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.1));
}

.sub-title {
    color: #fff;
    opacity: 0.3;
    letter-spacing: 8px;
    font-size: 0.8rem;
    text-transform: uppercase;
    margin-bottom: 80px;
}

/* --- [2/10] LAYOUT GRID --- */
.luxury-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin-bottom: 80px;
}
/* --- [2/10 Прод.] GLASS CARDS --- */
.glass-card {
    flex: 1;
    min-width: 320px;
    padding: 50px 35px;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.glass-card:hover {
    transform: translateY(-15px);
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 30px 60px rgba(0,0,0,0.8);
}

/* Световой блик */
.glass-card::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
    transition: 0.6s;
}

.glass-card:hover::after { left: 100%; }

.glass-card h5 {
    color: #ffffff;
    letter-spacing: 3px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 20px;
    font-size: 1rem;
}

.glass-card p {
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.8;
    font-size: 0.95rem;
    font-weight: 300;
    margin: 0;
}
/* --- [3/10] LUXURY TABLE --- */
.luxury-table {
    width: 100%;
    max-width: 900px;
    margin: 80px auto;
    border-collapse: separate;
    border-spacing: 0 10px;
}

.luxury-table td {
    padding: 25px 30px;
    background: rgba(255, 255, 255, 0.01);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.4s;
    font-size: 1rem;
}

.luxury-table tr:hover td {
    background: rgba(255, 255, 255, 0.03);
}

.luxury-table td:first-child {
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    text-align: left;
    color: rgba(255,255,255,0.8);
}

.luxury-table td:nth-child(2) {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.7rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-align: center;
}

.luxury-table td:last-child {
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    text-align: right;
    font-weight: 700;
    color: #ffffff;
}
/* --- [4/10] MAIN CTA BUTTON --- */
.vip-button {
    display: inline-block;
    padding: 25px 80px;
    background: #ffffff;
    color: #000000 !important;
    font-weight: 800;
    font-size: 1.2rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 6px;
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.1);
    transition: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    border: none;
    margin-top: 50px;
}

.vip-button:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 50px rgba(255, 255, 255, 0.25);

}

.footer-note {
    margin-top: 40px;
    opacity: 0.2;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 5px;
}

/* --- [5/10] CHAT LAUNCHER (Кнопка чата) --- */
#new_cl_chat_launcher {
    position: fixed !important;
    bottom: 30px !important;
    right: 30px !important;
    width: 66px !important;
    height: 66px !important;
    background: #000000 !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    z-index: 999999 !important;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
/* --- [5/10 Прод.] CHAT CONTAINER --- */
#new_cl_chat_container {
    display: none;
    flex-direction: column !important;
    position: fixed !important;
    bottom: 110px !important;
    right: 30px !important;
    width: 450px !important;
    height: 700px !important;
    background: rgba(10, 10, 10, 0.98) !important;
    backdrop-filter: blur(25px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    z-index: 1000000 !important;
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.9) !important;
    overflow: hidden !important;
}

/* ШАПКА ЧАТА */
.new_cl_chat_header {
    height: 90px !important;
    padding: 0 25px !important;
    background: rgba(255, 255, 255, 0.02) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-shrink: 0 !important;
}

.new_cl_chat_header strong {
    color: #fff !important;
    text-transform: uppercase !important;
    letter-spacing: 4px !important;
    font-size: 13px !important;
    font-weight: 700;
}

.online-dot {
    width: 6px; height: 6px;
    background: #ffffff !important;
    border-radius: 50%;
    box-shadow: 0 0 10px #fff;
    margin-right: 8px;
}
.online-text { font-size: 16px !important; color: #35cb42 !important; font-weight: 400 !important; font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important; }
/* --- [6/10] CHAT CONTENT & BUBBLES --- */
#new_cl_chat_content {
    flex: 1 !important;
    overflow-y: auto !important;
    padding: 30px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 15px !important;
}

#new_cl_chat_content::-webkit-scrollbar { width: 2px; }
#new_cl_chat_content::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); }

/* ПУЗЫРИ СООБЩЕНИЙ */
.msg-bubble {
    padding: 15px 20px !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
    border-radius: 0px !important;
    max-width: 85% !important;
}

.msg-bot {
    background: rgba(255, 255, 255, 0.04) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    align-self: flex-start !important;
}

.msg-user {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    align-self: flex-end !important;
    font-weight: 700 !important;
}

.msg-meta {
    font-size: 9px !important;
    color: rgba(255, 255, 255, 0.2) !important;
    text-transform: uppercase;
    margin-top: 5px;
}
/* --- [7/10] CHAT CHIPS & FOOTER --- */
#chat_chips_container {
    display: flex !important;
    flex-direction: column !important;
    padding: 15px 25px !important;
    gap: 8px !important;
    background: rgba(0, 0, 0, 0.2) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.chat-chip {
    width: 100% !important;
    padding: 14px 18px !important;
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    text-transform: uppercase !important;
    font-size: 11px !important;
    letter-spacing: 3px !important;
    cursor: pointer !important;
    transition: 0.3s;
}

.chat-chip:hover { background: #fff !important; color: #000 !important; }

/* ПАНЕЛЬ ВВОДА */
.chat-footer {
    height: 90px !important;
    padding: 0 25px !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    background: #0a0a0a !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

#new_cl_user_input {
    flex: 1 !important;
    height: 50px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    padding: 0 20px !important;
    outline: none !important;
}

.btn-send {
    width: 50px !important; height: 50px !important;
    background: #fff !important; color: #000 !important;
    border: none !important; font-weight: 900 !important; cursor: pointer;
}
/* --- [8/10] MOBILE ADAPTATION: SITE --- */
@media screen and (max-width: 768px) {
    .stealth-wrapper, .vip-container {
        padding: 60px 15px !important;
    }

    .main-title {
        font-size: 2.1rem !important;
        letter-spacing: 6px !important;
    }

    .sub-title {
        letter-spacing: 4px !important;
        font-size: 0.65rem !important;
        margin-bottom: 50px !important;
    }

    .luxury-grid {
        flex-direction: column !important;
        align-items: center !important;
    }

    .glass-card {
        width: 100% !important;
        min-width: 100% !important;
        padding: 40px 20px !important;
    }

    .luxury-table td {
        padding: 15px 10px !important;
        font-size: 0.8rem !important;
    }

    .vip-button {
        width: 100% !important;
        padding: 22px !important;
        font-size: 1.1rem !important;
    }
}
/* --- [9/10] MOBILE ADAPTATION: CHAT FULLSCREEN --- */
@media screen and (max-width: 768px) {
    #new_cl_chat_container {
        position: fixed !important;
        top: 0 !important; left: 0 !important;
        width: 100vw !important; height: 100vh !important;
        max-width: 100vw !important; max-height: 100vh !important;
        border: none !important;
        border-radius: 0 !important;
        z-index: 2147483647 !important;
        background: #000000 !important;
		    height: 650px !important;
    }

    .new_cl_chat_header {
        height: 50px !important;
        padding: 0 20px !important;
    }

    .btn-close {
        font-size: 44px !important;
        width: 30px !important;
        height: 30px !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
        color: #291818 !important;
    }
.chat-chip {
    width: 30% !important;    
	padding: 10px 14px !important;	
}

#chat_chips_container {
    display: flex !important;
    flex-direction: row !important;
    padding: 0px !important;
	height: 50px;
}

}

    #new_cl_chat_content {
        padding: 20px !important;
    }

    .chat-footer {
        padding-bottom: env(safe-area-inset-bottom, 20px) !important;
        background: #000 !important;
    }

    #new_cl_chat_launcher {
        bottom: 20px !important;
        right: 20px !important;
    }
}
/* --- [10/10] LEAD FORM & ANIMATIONS --- */
/* === ПОЛНАЯ ГРУППА СТИЛЕЙ ЛЮКС-ФОРМЫ С РАМКОЙ === */
.lead-form-container {
    background: rgba(255, 255, 255, 0.08) !important;
    /* ЯРКАЯ РАМКА ДЛЯ ВЫДЕЛЕНИЯ */
    border: 1px solid rgba(255, 255, 255, 0.25) !important; 
    border-radius: 20px !important;
    padding: 25px 20px !important;
    margin: 20px 15px !important; /* Увеличил отступы по бокам */
    backdrop-filter: blur(15px) !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8) !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 15px !important;
}

.form-title {
    color: #ffffff !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    text-align: center !important;
    margin-bottom: 5px !important;
}

.form-input-group {
    display: flex !important;
    flex-direction: column !important;
    gap: 5px !important;
}

.form-input-group label {
    color: rgba(255, 255, 255, 0.5) !important;
    font-size: 10px !important;
    text-transform: uppercase !important;
    margin-left: 5px !important;
    font-weight: 600 !important;
}

.form-input {
    width: 100% !important;
    box-sizing: border-box !important;
    /* СВЕТЛЫЕ ИНПУТЫ, ЧТОБЫ ИХ БЫЛО ВИДНО */
    background: rgba(255, 255, 255, 0.12) !important; 
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 12px !important;
    padding: 14px 16px !important;
    color: #ffffff !important;
    font-size: 16px !important;
    outline: none !important;
}

.form-input:focus {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: #ffffff !important;
}

.form-submit-btn {
    width: 100% !important;
    background: #ffffff !important;
    color: #000000 !important;
    text-align: center !important;
    padding: 18px 0 !important;
    border-radius: 15px !important;
    font-size: 14px !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    margin-top: 10px !important;
    cursor: pointer !important;
    transition: 0.2s !important;
}

.form-submit-btn:active {
    transform: scale(0.97) !important;
}


/* АНИМАЦИИ ПРИ ЗАГРУЗКЕ */
@keyframes slideInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

#new_cl_chat_container { animation: slideInUp 0.4s ease-out; }
/* 9. ВСПЛЫВАЮЩАЯ ПОДСКАЗКА (HINT) */
#chat_hint_bubble {
    position: absolute !important;
    bottom: 90px !important;
    right: 0 !important;
    width: 320px !important;
    background: rgba(15, 15, 15, 0.98) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    padding: 25px !important;
    color: #ffffff !important;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8) !important;
    line-height: 1.7 !important;
    font-size: 14px !important;
    z-index: 1100000 !important;
}

/* ============================================================
   10. АНИМАЦИИ И ИНДИКАТОР ПЕЧАТИ
   ============================================================ */
/* ПОДСКАЗКА (ОБЛАЧКО) */
#chat_hint_bubble {
    display: none; 
    position: absolute; 
    right: 80px; 
    bottom: 10px; 
    background: white; 
    color: #333; 
    padding: 16px 20px; 
    border-radius: 20px 20px 0 20px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.12); 
    width: 240px; 
    font-size: 14px; 
    line-height: 1.5; 
    border: 1px solid rgba(0,0,0,0.05);
    animation: fadeInRightCustom 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.hint-name { 
font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
font-size: 16.5px; 
font-weight: 400; 
color: #63B22B; 
margin-bottom: 4px; 
display: block; 
}

/* ============================================================
   10. АНИМАЦИИ И ИНДИКАТОР ПЕЧАТИ
   ============================================================ */
.typing-bubble {
    align-self: flex-start !important;
    background: #f1f3f5 !important;
    padding: 14px 20px !important;
    border-radius: 4px 18px 18px 18px !important;
    display: flex !important;
    gap: 5px !important;
    width: fit-content !important;
    margin-bottom: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02) !important;
}
.typing-dot {
    width: 6px; height: 6px; background: #adb5bd; border-radius: 50%;
    animation: typing-bounce 1.4s infinite ease-in-out;
}
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes slideInUp {
    from { opacity: 0; transform: translateY(15px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes typing-bounce {
    0%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-6px); }
}
@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(35, 201, 20, 0.5); }
    70% { box-shadow: 0 0 0 18px rgba(35, 201, 20, 0); }
    100% { box-shadow: 0 0 0 0 rgba(35, 201, 20, 0); }
}
@keyframes fadeInRightCustom {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes shake-launcher {
    0%, 100% { transform: scale(1); }
    10%, 30% { transform: scale(1.1) rotate(-5deg); }
    20%, 40% { transform: scale(1.1) rotate(5deg); }
}
.launcher-shake { animation: shake-launcher 0.8s ease-in-out !important; }
/* ИСПРАВЛЕННЫЙ ИНДИКАТОР (БЕЗ ПРЫЖКОВ И В СТИЛЕ ЛЮКС) */
.typing-bubble {
    background: rgba(255, 255, 255, 0.1); /* Полупрозрачный фон под темную тему */
    backdrop-filter: blur(10px);        /* Эффект матового стекла */
    padding: 10px 16px;
    border-radius: 15px 15px 15px 5px;   /* Форма как у бабла бота */
    display: inline-flex;
    gap: 5px;
    align-items: center;
    margin-bottom: 10px;
    width: fit-content;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: opacity 0.2s ease;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background: #00a884; /* Фирменный зеленый цвет (как у лаунчера) */
    border-radius: 50%;
    opacity: 0.4;
    animation: luxuryBounce 1.4s infinite ease-in-out;
}

/* Анимация точек */
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes luxuryBounce {
    0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
    40% { transform: translateY(-4px); opacity: 1; }
}
a {
    display: inline-block;
    padding: 5px 10px;
    background-color: #0088cc; /* Синий цвет Telegram */
    color: #ffffff !important;
    text-decoration: none !important;
    border-radius: 4px;
    font-family: sans-serif;
    font-size: 13px;
    transition: opacity 0.2s;
    border: none;
    cursor: pointer;
}

/* Эффект при наведении */


/* Эффект при нажатии */
a:active {
    transform: translateY(1px);
}

.btn-mic {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    margin-right: 5px;
    display: flex;
    transition: 0.3s ease;
}

.btn-mic:hover { color: #fff; }

/* Анимация при записи */
.btn-mic.mic-active {
    color: #ff4b4b;
    animation: mic-pulse 1.2s infinite;
}

@keyframes mic-pulse {
    0% { transform: scale(1); filter: drop-shadow(0 0 0px red); }
    50% { transform: scale(1.2); filter: drop-shadow(0 0 8px red); }
    100% { transform: scale(1); filter: drop-shadow(0 0 0px red); }
}
/* ПРИНУДИТЕЛЬНЫЙ СТИЛЬ ДЛЯ ОКНА ЗАПИСИ */
#mic_modal {
    display: none; /* По умолчанию скрыто */
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.95) !important; /* Черный фон */
    z-index: 999999999 !important; /* Поверх всего */
    align-items: center !important;
    justify-content: center !important;
    flex-direction: column !important;
}

/* Видимость текста внутри окна */
.mic-status-text {
    color: #ffffff !important;
    font-size: 24px !important;
    margin-bottom: 20px !important;
    display: block !important;
}

#mic_interim_text {
    color: #00ff00 !important; /* Зеленый текст распознавания */
    font-size: 18px !important;
    max-width: 80% !important;
    text-align: center !important;
    display: block !important;
}

.mic-content { text-align: center; z-index: 10000000; }


.mic-status-text { color: #fff; font-weight: 800; margin-top: 20px; letter-spacing: 5px; }
.mic-interim { color: #63B22B; margin-top: 10px; font-size: 18px; }

.mic-content { text-align: center; color: white; }
.mic-icon-wrap {
    width: 100px; height: 100px; background: #63B22B; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; margin: 0 auto 20px;
    position: relative; z-index: 2;
}
.mic-pulse-ring {
    position: absolute; width: 100px; height: 100px; background: rgba(99, 178, 43, 0.4);
    border-radius: 50%; animation: pulse-ring 1.5s infinite; z-index: 1;
}
@keyframes pulse-ring {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.8); opacity: 0; }
}
.mic-status-text { font-size: 1.2rem; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 10px; }
.mic-interim { font-size: 1rem; color: rgba(255,255,255,0.6); font-style: italic; max-width: 300px; }


/* ФИНАЛЬНЫЙ УДАР ПО СТИЛЯМ ФОРМЫ */
#new_cl_chat_content .lead-form-container {
    background: rgba(255, 255, 255, 0.15) !important;
    border: 2px solid #ffffff !important; /* ЧИСТО БЕЛАЯ РАМКА */
    border-radius: 20px !important;
    padding: 25px !important;
    margin: 15px 10px !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.8) !important;
}

#new_cl_chat_content .form-input {
    background: rgba(255, 255, 255, 0.25) !important; /* ОЧЕНЬ СВЕТЛЫЕ ПОЛЯ */
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    color: #ffffff !important;
    width: 100% !important;
    box-sizing: border-box !important; /* ВЫРАВНИВАНИЕ В ЛИНИЮ */
    font-size: 16px !important;
    padding: 15px !important;
}

#new_cl_chat_content .form-submit-btn {
    background: #ffffff !important;
    color: #000000 !important;
    width: 100% !important;
    box-sizing: border-box !important; /* ВЫРАВНИВАНИЕ В ЛИНИЮ */
    font-weight: 900 !important;
    padding: 18px !important;
    border-radius: 14px !important;
}

/* ФИКС: Убираем синий фон Битрикса, если он лезет */
#new_cl_chat_content * {
    box-sizing: border-box !important;
}
