        /* Сброс отступов и полей */
        body, html {
            flex-direction: column;
            margin: 0;
            padding: 0;
            height: 100%;
            font-family: Arial, sans-serif;
            background-color: #1e1e2f;
            color: #ffffff;
            overflow: hidden;
            touch-action: none;
            user-select: none;
            -webkit-user-select: none;
            -moz-user-select: none;
            -ms-user-select: none;
        }

        * {
            -webkit-tap-highlight-color: transparent;
        }

        .chat-input {
            user-select: text;
            -webkit-user-select: text;
            -moz-user-select: text;
            -ms-user-select: text;
        }

        .chat-container {
            display: flex;
            flex-direction: column;
            height: 100vh;
            overflow: hidden;
        }

        .chat-header {
            background: linear-gradient(135deg, #39275b, #1e1e2f);
            color: #ffffff;
            padding: 15px;
            text-align: center;
            font-size: 18px;
            font-weight: bold;
            flex-shrink: 0;
            border-bottom: 1px solid #333;
            position: sticky;
            top: 0;
            z-index: 1000;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
            opacity: 0; /* Начальная прозрачность */
            animation: fadeIn 1.5s ease-out forwards; /* Анимация появления */
            animation-delay: 0.2s; /* Задержка для верхней части */
        }

        .chat-messages {
            flex: 1;
            padding: 10px;
            overflow-y: auto;
            background-color: #1e1e2f;
            box-sizing: border-box;
            margin-bottom: 60px;
            opacity: 0; /* Начальная прозрачность */
            animation: fadeIn 1.5s ease-out forwards; /* Анимация появления */
            animation-delay: 0.4s; /* Задержка для контейнера сообщений */
        }

        .message {
            margin-bottom: 5px;
            border-radius: 10px;
            max-width: 100%;
            word-wrap: break-word;
            transition: transform 0.2s ease, opacity 0.2s ease;
        }

        .message.bot {
            align-self: flex-start;
        }

        .message.user {
            padding: 10px 15px;
            background: linear-gradient(135deg, #39275b, #24243a);
            align-self: flex-end;
            max-width: 70%;
            width: fit-content;
            margin-left: auto;
            border-radius: 10px;
            margin-top: 225px; /* Увеличенный отступ сверху */
            opacity: 1;
            transition: opacity 0.5s ease;
        }

        .message.user.fade-out {
            opacity: 0;
        }

        .bot-message-container {
            width: 40%;
            margin-bottom: 10px; /* Добавлен отступ снизу */
        }

        @media (max-width: 768px) {
            .bot-message-container {
                width: 80%;
            }
        }

        .inline-keyboard {
            margin-bottom: 10px;
            display: flex;
            flex-wrap: wrap;
            gap: 5px;
            padding: 0;
            border-radius: 10px;
        }

        .inline-keyboard-button {
            background: linear-gradient(135deg, #007bff, #0056b3);
            color: #ffffff;
            border: none;
            padding: 8px 12px;
            border-radius: 5px;
            cursor: pointer;
            font-size: 14px;
            flex: 1 1 calc(50% - 5px);
            text-align: center;
            transition: background-color 0.3s ease, transform 0.2s ease;
        }
        .inline-keyboard-button-profile {
            background: linear-gradient(135deg, #007bff, #0056b3);
            color: #ffffff;
            border: none;
            padding: 8px 12px;
            border-radius: 5px;
            cursor: pointer;
            font-size: 14px;
            text-align: center;
            transition: background-color 0.3s ease, transform 0.2s ease;
            width: 100%; 
        }
        .inline-keyboard-button-inter {
            width: 100%; 
            background: linear-gradient(135deg, #007bff, #0056b3);
            color: #ffffff;
            border: none;
            padding: 8px 12px;
            border-radius: 5px;
            cursor: pointer;
            font-size: 14px;
            text-align: center;
            transition: background-color 0.3s ease, transform 0.2s ease;
            flex: 1 1 calc(50% - 5px);
        }
        .inline-keyboard-button-inter-off {
            color: #ffffff;
            border: none;
            padding: 8px 12px;
            border-radius: 5px;
            cursor: pointer;
            font-size: 14px;
            text-align: center;
            transition: background-color 0.3s ease, transform 0.2s ease;
            flex: 1 1 calc(50% - 5px);
        }

        .inline-keyboard-button.return {
            background: linear-gradient(135deg, #ff6b6b, #ff4c4c);
        }
        .inline-keyboard-button-inter.return {
            background: linear-gradient(135deg, #ff6b6b, #ff4c4c);
        }
        .inline-keyboard-button-profile:hover {
            background: linear-gradient(135deg, #0056b3, #003d80);
            transform: scale(1.05);
        } 
        .inline-keyboard-button-inter:hover {
            background: linear-gradient(135deg, #0056b3, #003d80);
            transform: scale(1.05);
        } 
        .inline-keyboard-button:hover {
            background: linear-gradient(135deg, #0056b3, #003d80);
            transform: scale(1.05);
        }

        .chat-input-container {
            display: flex;
            gap: 5px;
            padding: 10px;
            border-top: 1px solid #333;
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            box-sizing: border-box;
            z-index: 1000;
            box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.2);
            opacity: 0;
            transform: translateY(100%);
            transition: opacity 0.5s ease, transform 0.5s ease;
        }

        .chat-input-container.visible {
            opacity: 1;
            transform: translateY(0);
        }

        .chat-input {
            flex: 1;
            padding: 8px;
            border: 1px solid #444;
            border-radius: 5px;
            font-size: 14px;
            background: linear-gradient(135deg, #39275b, #1e1a31);
            color: #ffffff;
            transition: border-color 0.3s ease;
        }

        .chat-input:focus {
            border-color: #007bff;
            outline: none;
        }

        .chat-send-button {
            background: linear-gradient(135deg, #007bff, #0056b3);
            color: #ffffff;
            border: none;
            padding: 8px 12px;
            border-radius: 5px;
            cursor: pointer;
            font-size: 14px;
            transition: background-color 0.3s ease, transform 0.2s ease;
        }

        .chat-send-button:hover {
            background: linear-gradient(135deg, #0056b3, #003d80);
            transform: scale(1.05);
        }

        .inline-keyboard-link {
            background: linear-gradient(135deg, #007bff, #0056b3);
            color: #ffffff;
            border: none;
            padding: 8px 12px;
            border-radius: 5px;
            cursor: pointer;
            font-size: 14px;
            flex: 1 1 100%;
            text-align: center;
            text-decoration: none;
            display: block;
            transition: background-color 0.3s ease, transform 0.2s ease;
        }

        .inline-keyboard-link:hover {
            background: linear-gradient(135deg, #0056b3, #003d80);
            transform: scale(1.05);
        }

        .profile-message-gradient {
            margin-bottom: 5px;
            padding: 15px;
            background: linear-gradient(135deg, #39275b, #1e1a31);
            color: #ffffff;
            font-family: Arial, sans-serif;
            line-height: 1.2;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
            backface-visibility: hidden;
            border-radius: 0 0 10px 10px; /* Скругление только снизу */
        }

        .profile-message-gradient strong {
            color: #ffcc00;
            font-weight: bold;
        }

        .profile-message-gradient .icon {
            margin-right: 8px;
            font-size: 18px;
        }

        .logo {
            padding: 2px;
            position: relative;
            top: -2px;
            width: 24px;
            height: 24px;
            filter: brightness(0) invert(1);
        }

        /* Анимация flip */
        .flip-container {
            perspective: 1000px;
            position: relative;
            width: 100%;
            height: 200px; /* Фиксированная высота для флип-блока */
            margin-bottom: 10px; /* Отступ между блоком и кнопками */
        }

        .flipper {
            transition: transform 0.7s ease-in-out; /* Увеличено время анимации */
            transform-style: preserve-3d;
            position: relative;
            width: 100%;
            height: 100%;
            transform: rotateY(var(--rotate-angle, 0deg)); /* Используем CSS-переменную */
        }

        .front, .back {
            backface-visibility: hidden;
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
        }

        .front {
            z-index: 2;
            transform: rotateY(0deg);
        }

        .back {
            transform: rotateY(180deg);
        }

        /* Анимация плавного появления при загрузке */
        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(0px); /* Начальное смещение для плавности */
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .initial-content {
            opacity: 0;
            animation: fadeIn 1.5s ease-out forwards;
        }

        .bot-message-container .message.bot {
            opacity: 0;
            animation: fadeIn 1.5s ease-out forwards;
            animation-delay: 0.6s; /* Задержка для сообщения бота */
        }

        .bot-message-container .inline-keyboard {
            opacity: 0;
            animation: fadeIn 1.5s ease-out forwards;
            animation-delay: 0.8s; /* Задержка для клавиатуры */
        }

        /* Стили для header-success */
        .header-success {
            text-align: center;
            font-size: 18px;
            font-weight: 900;
            margin-bottom: 10px;
            position: relative;
            margin-top: -5px;
            background: linear-gradient(135deg, #009dff, #0cff10); /* Новый градиент */
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            color: transparent;
            text-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
        }

        /* Остальные стили для заголовков */
        .profile-message-gradient .header {
            text-align: center;
            font-size: 18px;
            font-weight: 900;
            margin-bottom: 10px;
            position: relative;
            margin-top: -5px;
            background: linear-gradient(135deg, #3387e0, #0056b3); /* Старый градиент */
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            color: transparent;
            text-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
        }

        .profile-message-gradient .header::after {
            content: '';
            display: block;
            width: 100%;
            height: 1px;
            background-color: #444;
            position: absolute;
            bottom: -5px;
            left: 0;
        }
        
        .profile-message-gradient .header-success::after {
            content: '';
            display: block;
            width: 100%;
            height: 1px;
            background-color: #444;
            position: absolute;
            bottom: -5px;
            left: 0;
        }

        .mini-blocks {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-top: 10px;
        }

        .mini-block {
            flex: 1 1 48%;
            background: linear-gradient(135deg, rgba(57, 39, 91, 0.8), rgba(30, 26, 49, 0.8));
            padding: 8px;
            border-radius: 8px;
            text-align: center;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
            box-sizing: border-box;
            min-width: 0;
        }

        .mini-block .title {
            font-size: 12px;
            color: #ffcc00;
            margin-bottom: 4px;
        }

        .mini-block .value {
            font-size: 14px;
            font-weight: bold;
            color: #ffffff;
        }

        .chat-header {
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 10px;
            background-color: #1e1e2f;
            color: #ffffff;
            border-bottom: 1px solid #444;
            position: relative;
        }

        .logout-icon {
            position: absolute;
            right: 10px;
            cursor: pointer;
            color: #ffffff;
            font-size: 20px;
            transition: opacity 0.3s ease;
        }

        .logout-icon:hover {
            opacity: 0.7;
        }

        /* Стили для баннера */
        .banner {
            width: 100%;
            max-height: 150px;
            object-fit: cover;
            border-radius: 10px 10px 0 0; /* Скругление только сверху */
            display: none; /* Скрываем баннер по умолчанию */
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
        }
        
                
        .user-text {
            font-size: 12px; /* Уменьшаем размер шрифта */
            line-height: 1.2; /* Уменьшаем межстрочный интервал */
            margin: 0; /* Убираем внешние отступы */
            padding: 0; /* Убираем внутренние отступы */
        }

        .user-text p {
            margin: 0 0 5px 0; /* Уменьшаем отступы между абзацами */
        }
        
       .chat-messagess {
            padding: 5px;
            border-radius: 10px;
            position: relative;
    
        }
        .chat-message {
            padding: 5px;
            border-radius: 10px;
            position: relative;
            margin-top: 5px;
            color: white;
            max-width: 80%;
        }
        .operator-message {
            align-self: flex-start; /* Сообщение оператора слева */
            background-color: #734882;
            margin-right: auto; /* Выравнивание по левому краю */
        }
        .user-message {
            align-self: flex-end; /* Сообщение пользователя справа */
            background-color: #007bff;
            color: white;
            margin-left: auto; /* Выравнивание по правому краю */
        }
        .message-text {
            font-size: 14px;
            word-wrap: break-word;
        }
        .message-date {
            font-size: 10px;
            color: #b4b9ff;
            text-align: right;
        }
        

        .ripple-container {
            position: relative;
            width: 100%;
            height: 100%;
        }

        .ripple-effect {
            position: absolute;
            border-radius: 50%;
            border: 2px solid rgba(255, 255, 255, 0.3); /* Тонкое кольцо */
            transform: scale(0);
            animation: ripple-animation 0.5s ease-out;
            pointer-events: none;
            opacity: 1;
        }

        @keyframes ripple-animation {
            0% {
                transform: scale(0);
                opacity: 0.4;
            }
            100% {
                transform: scale(1); /* Меньший радиус */
                opacity: 0; /* Постепенное исчезновение */
            }
        }
    



.courier-go {
    position: relative;
    margin-top: 10px;
    height: 100px; /* Фиксированная высота */
    overflow: hidden; /* Скрывает содержимое, выходящее за пределы блока */
}

.footprints {
    position: absolute;
    width: 100%;
    height: 100%;
}

.footprint {
    position: absolute;
    font-size: 16px; /* Уменьшенный размер иконки */
    color: white; /* Цвет иконки */
    opacity: 0;
    animation: fadeFootprint 5s infinite;
}

.footprint-1 {
    top: 50%;
    left: 5%;
    animation-delay: 0.5s;
}

.footprint-2 {
    top: 60%;
    left: 20%;
    animation-delay: 1s;
}

.footprint-3 {
    top: 40%;
    left: 35%;
    animation-delay: 1.5s;
}

.footprint-4 {
    top: 70%;
    left: 50%;
    animation-delay: 2s;
}

.footprint-5 {
    top: 50%;
    left: 67%;
    animation-delay: 2.5s;
}

.footprint-6 {
    top: 62%;
    left: 85%;
    animation-delay: 3.0s;
}

.courier-text {
           font-size: 12px;
           color: #277bd6;
}


@keyframes moveCourier {
    0% {
        left: -30px;
    }
    100% {
        left: 100%;
    }
}

@keyframes fadeFootprint {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }
    100% {
        opacity: 0;
        transform: scale(0);
    }
}
.timer-container {
    margin-top: 10px;
    display: flex;
    justify-content: center; /* Выравнивание по горизонтали */
    align-items: center; /* Выравнивание по вертикали */
    width: 100%; /* Занимает всю ширину родительского блока */
    height: 100%; /* Занимает всю высоту родительского блока */
}

.timer-content {
    display: flex;
    align-items: center; /* Выравнивание текста и таймера по вертикали */
    gap: 15px; /* Расстояние между текстом и таймером */
}

.timer-label {
    font-size: 12px;
    color: #277bd6;
}

.timer-circle {
    position: relative;
    width: 50px;
    height: 50px;
}

.timer-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);

}

.timer-background {
    fill: none;
   
    stroke-width: 2;
}

.timer-progress {
    fill: none;
    stroke: #277bd6;
    stroke-width: 2;
    stroke-dasharray: 100;
    transition: stroke-dashoffset 1s linear;
}

.timer-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
    font-weight: bold;
    color: #277bd6;
}

        .notification {
            position: fixed;
            bottom: -100px; /* Начальное положение за пределами экрана */
            left: 20px; /* Отступ слева */
            background-color: #ff4444; /* Красный цвет для уведомления */
            color: white;
            padding: 15px 20px;
            border-radius: 8px;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            z-index: 1000;
            opacity: 0;
            transition: bottom 0.5s ease-in-out, opacity 0.5s ease-in-out;
            max-width: 300px; /* Максимальная ширина уведомления */
        }

        .notification.show {
            bottom: 20px; /* Положение уведомления при появлении */
            opacity: 1;
        }

        .notification-content {
            text-align: left; /* Текст выравнивается по левому краю */
        }

        .notification-header {
            font-weight: bold;
            font-size: 16px;
            margin-bottom: 5px;
        }

        .notification-message {
            font-size: 14px;
        }
        .small-text {
            font-size: 14px; /* Размер шрифта */
            color: white;     /* Цвет текста (опционально) */
        }    