@import url('https://fonts.googleapis.com/css2?family=Jost:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=SN+Pro:ital,wght@0,200..900;1,200..900&display=swap');

/* 1. ПЕРЕМЕННЫЕ (Исправлено: теперь названия совпадают везде) */
:root {
    /* Фиксируем темную тему */
    --bg-image: url(../css/img/bg_light.jpg);
    --card-bg: rgba(255, 255, 255, 0.03);
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --accent-color: #00f260; /* Твой зеленый или синий */
    --border-color: rgba(255, 255, 255, 0.1);
    --glass-blur: blur(12px);
}

/* Основной контейнер формы */
#authForm {
    width: 300px !important;
    margin: 0 auto;
}

.captcha-container {
    margin-top: 17px;
}

/* Убедись, что у родительских элементов нет perspective */
html, body {
    perspective: none !important;
    transform: none !important;
}

/* 2. БАЗОВЫЕ СТИЛИ HTML */
html {
    background-color: var(--bg-html);
    min-height: 100vh;
    transition: background-color 0.4s ease;
}

/* 3. СОСТОЯНИЕ BODY (Начало: блюр и невидимость) */
body {
    margin: 0;
    min-height: 100vh;
    background-image: var(--bg-image);
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    background-color: var(--bg-html);
    font-family: "Jost", sans-serif;

    /* Прячем контент для старта анимации */
    opacity: 0;
    visibility: hidden;
    filter: blur(15px);
    
    /* Подсказываем браузеру, что будем анимировать эти свойства */
    will-change: opacity, filter;
    
    /* Настройка плавности */
    transition: opacity 0.8s ease, filter 0.8s ease, visibility 0.8s;

    overflow-x: hidden; /* Разрешаем прокрутку по вертикали, но прячем горизонтальную */
    overflow-y: visible; /* Явно разрешаем sticky видеть прокрутку */
}

/* 4. КЛАСС ГОТОВНОСТИ (Когда JS дает отмашку) */
body.ready {
    opacity: 1 !important;
    visibility: visible !important;
    /* Убираем filter полностью, чтобы не ломать position: fixed */
    filter: none !important; 
    transition: opacity 0.6s ease, filter 0.6s ease;
    display: block !important;
}

/* 5. УХОД СТРАНИЦЫ (Для переходов) */
body.page-exit {
    opacity: 0 !important;
    filter: blur(10px) !important;
    transition: opacity 0.4s ease, filter 0.4s ease !important;
}

/* Стили для элементов (карточки, инпуты) */
textarea, input, select {
    background-color: var(--input-bg);
    color: var(--text-main);
    border: 1px solid var(--input-border);
    padding: 10px;
    border-radius: 8px;
}

.ticket-item { /* Твои карточки тикетов */
    background-color: var(--bg-card);
}

a {
    text-decoration: none;
}

/* Для картинок */
img {
    max-width: 100%;
    content-visibility: auto;
}

.container {
    width: 100%;
    margin: 0 auto;
    position: fixed;
}

header {
    background: url('img/fon1.png') center center !important;
    background-size: cover;
    top: 0;
    box-shadow: 0px 0px 100px 50px rgba(0, 0, 0, 0.5);
    padding: 30px 0;
    border-bottom: 4px solid #fff;
    z-index: 1337;

    display: flex;
    justify-content: center; /* Центрирует всё содержимое хедера */
    align-items: center;
    white-space: nowrap;
}

/* ------------------лого------------------- */
header .logo {
    font-size: 35px;
    font-weight: 500;
    
    /* Создаем широкий фон: левая половина белая, правая - твой градиент */
    background: linear-gradient(90deg, #ffffff 0%, #ffffff 50%, #147ffd 50%, #a491fb 100%);
    background-size: 200% auto;
    background-position: 0% center; /* Изначально показываем только левую (белую) часть */
    
    /* Обрезаем фон по контуру букв и делаем сам текст прозрачным */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    
    /* Белое свечение */
    text-shadow: 0 0 35px rgba(255, 255, 255, 0.8);
    
    /* Анимируем только сдвиг фона и тень (0.5 сек для сочности) */
    transition: background-position 0.5s ease, text-shadow 0.5s ease; 
}

/* Анимация при наведении */
header .logo:hover {
    background-position: 100% center; /* Плавно сдвигаем фон на правую (градиентную) часть */
    
    /* Твое неоновое свечение в цвета градиента */
    text-shadow: 0 0 20px #147ffd, 0 0 40px #a491fb;
    cursor: default; 
}
/* ----------------------------------------- */

.header-tg-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;  /* Чуть увеличим для лучшего вида */
    height: 50px;
    background: rgba(36, 161, 222, 0.15);
    border: 1px solid rgba(36, 161, 222, 0.4);
    
    /* Полностью круглая форма */
    border-radius: 50%; 
    
    margin-right: 25px;
    padding-bottom: 20px;
    
    transition: all 0.3s ease;
    cursor: pointer;
    flex-shrink: 0; /* Чтобы иконка не сжималась */
}

.header-tg-btn svg {
    width: 45px;
    height: 45px;
    fill: #24a1de;
    /* Небольшая поправка центра, так как лого TG смещено по вектору */
    margin-right: 1px; 
    padding-top: 20px;
}

.header-tg-btn:hover {
    background: #24a1de;
    border-color: #24a1de;
    transform: scale(1.1); /* Легкое увеличение вместо смещения */
    box-shadow: 0 0 15px rgba(36, 161, 222, 0.5);
}

.header-tg-btn:hover svg {
    fill: #fff;
}

header img {
    width: 50px;
    padding-right: 15px;
    padding-bottom: 1px;
    margin-left: 70px;
}

header nav {
    width: 100%;
}

header nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-right: 185px;
}

header nav ul #auth-container { color: white;}

/* Стили для меню авторизованного пользователя */
.user-menu { position: relative; display: inline-block; }

/* Кнопка с никнеймом */
#user-name-btn {
    text-decoration: underline !important;
    text-underline-offset: 3px;
    text-align: end;
    background: none;
    font-size: 20px;
    font-weight: 500;
    font-family: "SN Pro", sans-serif;
    color: white;
    transition: all 0.2s ease;
    margin-right: 20px;
    position: relative;
    cursor: pointer;
    border: none;
}
#user-name-btn:hover { 
    transform: scale(0.99);
    color: rgb(223, 223, 223);
}

/* Сама выпадающая плашка */
.dropdown-content {
    display: none; 
    position: absolute;
    right: 0;
    top: 60px; /* Появится прямо под кнопкой */
    background-color: white;
    border: 1px solid #ccc;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-radius: 4px;
    z-index: 9999;
    padding: 5px 0;
    min-width: 160px;
    height: auto !important; /* Позволяем блоку растягиваться под контент */
}

/* Показываем плашку */
.dropdown-content.show { display: block; }

/* Кнопки внутри плашки (например, "Выйти" или "Панель админа") */
.dropdown-content button, .dropdown-content a {
    transition: all 0.2s ease;
    white-space: nowrap;
    background-color: rgba(39, 39, 39, 0.699);
    border: 1px solid rgb(88, 88, 88);
    border-radius: 15px;
    color: #ffffff;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-size: 14px;
}

.dropdown-content button:hover {
    background-color: #f44336; /* Красный фон при наведении на "Выйти" */
}

.dropdown-content a:hover {
    background-color: #4e5aff;
}

.glass-container, .glass-card {
    background: rgba(0, 0, 0, 0.85);
    border: 1px solid rgb(218, 218, 218);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    color: white;
    margin-bottom: 20px;
}

/* начало кнопочек */
/* --- 5. КНОПКИ ГРАДИЕНТНЫЕ --- */
.gradidi1,.gradidi2,.gradidi4,.gradidi5,.gradidi6 {
    display: inline-block;
    text-decoration: none;
    white-space: nowrap; /* Текст не будет переноситься */
    padding: 9px 17px;
    font-size: 20px;
    font-weight: 500;
    font-family: "SN Pro", sans-serif;
    color: white;
    border-radius: 15px;
    border: 1px solid #333333;
    background: linear-gradient(45deg, #101010, #101010, #147ffd, #a491fb);
    background-size: 365% auto;
    transition: all 0.5s ease;
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
    position: relative;
    cursor: pointer;
}

.gradidi1:hover,.gradidi2:hover,.gradidi4:hover,.gradidi5:hover,.gradidi6:hover { 
    background-position: right center;
    transform: translateY(-3px);
    box-shadow: 0 0 25px rgba(79, 172, 254, 0.4); 
}
.gradidi1:active,.gradidi2:active,.gradidi4:active,.gradidi5:active,.gradidi6:active {
    transform: translateY(-1px);
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

.gradidi7 {
    display: inline-block;
    text-decoration: none;
    white-space: nowrap; /* Текст не будет переноситься */
    padding: 9px 17px;
    font-size: 20px;
    font-weight: 500;
    font-family: "SN Pro", sans-serif;
    color: white;
    border-radius: 15px;
    border: 1px solid #333333;
    background: linear-gradient(45deg, #101010, #101010, #147ffd, #a491fb);
    background-size: 365% auto;
    transition: all 0.5s ease;
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
    position: relative;
    cursor: pointer;
}
.gradidi7:hover { 
    background-position: right center;
    transform: translateY(-3px);
    box-shadow: 0 0 25px rgba(79, 172, 254, 0.4); 
}
.gradidi7:active {
    transform: translateY(-1px);
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
}
/* конец кнопочек*/

.hero {
    padding-top: 200px;
    padding-bottom: 350px;
    position: relative;
}

.hero--info {
    width: 700px;
    z-index: 2;
    position: relative;
}

.nasvanie {
    color: rgb(255, 255, 255);
    text-shadow: 
        0 0 10px rgba(0, 0, 0, 0.8),
        0 0 20px rgba(0, 0, 0, 0.8),
        0 0 40px rgba(0, 0, 0, 0.8),
        0 0 80px rgba(0, 0, 0, 0.8),
        0 0 120px rgba(0, 0, 0, 0.8);
    padding-left: 30px;
    margin-left: 40px;
    font-size: 72px;
    width: 800px;
}

.textik {
    background: black;
    border-radius: 35px;
    border: 3px solid white;
    color: white;
    padding-left: 30px;
    padding-right: 20px;
    padding-top: 7px;
    padding-bottom: 15px;
    margin-top: 20px;
    margin-left: 60px;
    font-size: 25px;
    font-family: "SN Pro", sans-serif;
    width: 710px;
    text-shadow: 0 0 20px #ffffff;
}

/* -------------ручичка---------------- */
.ryka img{
    width: 1200px;
    height: auto;
    position: relative;
    position: absolute;
    margin-top: -80px;
    padding-left: 200px;
    margin-left: 200px;
    right: 0px;
    top: 70px;
    pointer-events: none;
    user-select: none;
    z-index: 1;
}
/* ---------------------------------- */

/* ----------товары------------- */
.features {
    background: linear-gradient(to right, rgb(0, 13, 36), black, black, black, black) !important;
    background-size: cover;
    background-position: center top; /* Фиксирует фон по центру и верху */
    box-shadow: 0px 0px 100px 50px rgba(0, 0, 0, 0.5);
    padding: 80px 0;
    width: 100%;
    top: -80px;
    z-index: 4;
    position: relative;
    border-top: 4px solid #fff;
    border-bottom: 4px solid #fff;
    display: flex;
    justify-content: center; /* Центрирует всю конструкцию по горизонтали экрана */
    overflow: hidden;
}

.features-container {
    display: flex;
    flex-direction: row;
    align-items: center; 
    justify-content: center; /* Добавляет внутреннюю центровку */
    width: 100%;
    max-width: 1400px; /* Ширина зоны, где лежит текст и плашки */
    gap: 100px; /* Расстояние между заголовком и товарами */
}

/* Левый блок с текстом */
.features-header-side {
    flex: 0 0 auto;
    text-align: left;
    min-width: 250px;
}

.features-header-side h3 {
    font-size: 54px;
    color: #fff;
    margin: 0;
    font-weight: 800;
    text-transform: uppercase;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}

.features-header-side p {
    color: #555;
    text-decoration: underline;
    font-size: 16px;
    margin-top: 10px;
    max-width: 250px;
}

/* Правый блок с карточками */
.products-wrapper {
    display: flex;
    flex-direction: row;
    gap: 30px;
    flex: 0 0 auto; /* Запрещаем блоку растягиваться или сжиматься */
}

/* Общий стиль карточек */
.knopkas {
    background: #050505;
    border: 1px solid #1a1a1a;
    border-radius: 25px;
    padding: 35px;
    width: 380px; /* Сделал еще чуть шире по твоему запросу */
    min-height: 550px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    transition: all 0.4s ease;
}

.card-active {
    border-color: #1e3a8a;
    box-shadow: 0 0 30px rgba(30, 58, 138, 0.15);
}

.card-active:hover {
    border-color: #3b71e3;
    box-shadow: 0 15px 50px rgba(59, 113, 227, 0.3);
}

/* Стили текста внутри карточки */
.knopkas h1 { color: #fff; font-size: 28px; margin-bottom: 10px; }
.product-price { margin-bottom: 25px; }
.new-price { color: #3b71e3; font-size: 24px; font-weight: bold; }
.price-note { color: #555; font-size: 14px; }
.knopkas h4 { color: #ccc; font-size: 15px; line-height: 1.4; margin-bottom: 20px; }

/* Список функций */
.feature-list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}
.feature-list li {
    color: #999;
    font-size: 14px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.feature-list span { color: #3b71e3; font-weight: bold; }
.square { width: 10px; height: 10px; background: #fff; border-radius: 2px; }

/* Кнопка */
.btn-purchase {
    margin-top: auto;
    background: #3b71e3;
    color: #fff;
    border: none;
    padding: 18px;
    border-radius: 15px;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
}
.btn-purchase:hover { background: #2a52ad; transform: scale(1.02); }

/* Карточки "Скоро" */
.coming-soon {
    border: 1px dashed #6b6b6b;
    background: rgba(255, 255, 255, 0.02);
    opacity: 0.4;
    justify-content: center;
    align-items: center;
    text-align: center;
}
.coming-soon h1 { color: #6b6b6b !important; font-size: 26px; }
.coming-soon p { color: #6b6b6b; font-size: 15px; margin-top: 10px; }
/* --------------------------------- */

/* --------------поддержка фон---------------- */
.poderka {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    top: 60px;
}
/* ------------------------------------- */

/*--------------картинка----------*/
.poderka img {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    top: 15px;
    pointer-events: none;
    user-select: none;
}
/*-----------------------------------*/

/* ------------ТИКЕТЫ-------------- */
#fileUpload {
    width: 100%;
    border: 1px solid #333333;
    background-color: #111111;
    border-radius: 8px;
    padding: 3px;
    font-weight: 700;
}
#issueType {
    color: rgb(255, 255, 255);
    border: 1px solid #333333;
    background-color: #111111;
    border-radius: 8px; /* Скругление углов */
    padding: 12px;
    transition: all 0.3s ease-in-out;
}
#issueType:focus {
    border-color: #c5c5c5;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
    outline: none;
}
#description {
    color: rgb(230, 230, 230);
    border: 1px solid #333333;
    background-color: #111111;
    border-radius: 8px; /* Скругление углов */
    padding: 12px;
    transition: all 0.3s ease-in-out; /* Плавный эффект при клике */
    resize: none; /* нельзя наху */
}

/* Эффект при клике (фокусе) */
#description:focus {
    border-color: #c5c5c5;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
    outline: none;
}

.send-btn {
    display: inline-block;
    text-decoration: underline !important;
    text-underline-offset: 3px;
    white-space: nowrap; /* Текст не будет переноситься */
    margin-right: 20px;
    font-size: 20px;
    font-weight: 500;
    font-family: "SN Pro", sans-serif;
    color: white;
    transition: all 0.2s ease;
    position: relative;
    cursor: pointer;
}
.send-btn:hover { 
    transform: scale(0.99);
    color: rgb(223, 223, 223);
}

.send-btn1 {
    background: linear-gradient(45deg, #101010, #101010, #147ffd, #a491fb);
    background-size: 365% auto;
    transition: all 0.5s ease;
    color: white;
    border: none;
    margin: 0 auto;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #333333;
    cursor: pointer;
    font-weight: 600;
    font-size: 35px;
    width: 550px;
}
.send-btn1:hover { 
    background-position: right center;
    transform: translateY(-3px);
    box-shadow: 0 0 25px rgba(79, 172, 254, 0.4); 
}
.send-btn1:active {
    transform: translateY(-1px);
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

.send-btn2 {
    background: linear-gradient(45deg, #101010, #101010, #147ffd, #a491fb);
    background-size: 365% auto;
    transition: all 0.5s ease;
    color: white;
    border: none;
    font-size: 20px;
    font-weight: 500;
    font-family: "SN Pro", sans-serif;
    color: white;
    margin: 10px 0;
    border-radius: 8px;
    border: 1px solid #333333;
    cursor: pointer;
    position: relative;
    margin-top: 20px;
    width: 100%;
}
.send-btn2:hover { 
    background-position: right center;
    box-shadow: 0 0 25px rgba(79, 172, 254, 0.4); 
}
.send-btn2:active {
    transform: translateY(-1px);
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
}
/* ------------------------------------- */

/* -----------ограничивает картинки----------- */
#imagePreview {
    max-height: 250px;
    display: block;
    object-fit: contain;
    margin-top: 10px;
}
/* ------------------------------------- */

/* ---------------крестик/удалить картинку--------------- */
.preview-wrapper {
    position: relative;
    display: inline-block;
}
.remove-btn {
    position: absolute;
    top: -103px;
    right: -160px;
    background: #151515;
    color: white;
    border-radius: 150px;
    border: 1px solid #333333;
    padding: 10px 10px;
    width: 25px;
    height: 25px;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: 0.5s ease;
}
.remove-btn:hover {
    background: rgb(255, 0, 0);
    transform: scale(1.05);
}
.remove-btn:active {
    transform: scale(0.95);
}
/* ---------------------------------------------------- */

/* Кнопка перехода между страницами */
.nav-btn {
    text-decoration: none;
    color: #666666;
    font-weight: 600;
    transition: 0.2s;
}

.nav-btn:hover {
    color: #979797;
    text-decoration: underline;
}

/* Кнопка очистки базы */
.clear-btn {
    margin-top: 20px;
    background: none;
    border: 1px solid #ff4d4d;
    color: #ff4d4d;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
}

.clear-btn:hover {
    background: #ff4d4d;
    color: white;
}

#welcomeMessage {
    background: #e3f2fd;
    padding: 10px 20px;
    border-radius: 5px;
    border-left: 5px solid #2196f3;
    display: inline-block;
    margin-bottom: 20px;
}

/*--------------------------------------------плашка крутая--------------------------------------------------*/
html > #toast-container {
    position: fixed !important;
    top: 20px !important;
    right: 20px !important;
    z-index: 2147483647 !important; /* Поверх всего */
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    pointer-events: none !important;
}

.toast-item {
    pointer-events: auto !important;
    min-width: 250px;
    background: rgba(30, 30, 30, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 12px 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: transform 0.4s ease, opacity 0.4s ease;
    opacity: 0;
    transform: translateX(30px);
}

@keyframes slideInToast {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Класс для плавного исчезновения */
.toast-item.fade-out {
    animation: slideOutToast 0.5s ease-in forwards;
}

@keyframes slideOutToast {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(120%); opacity: 0; }
}
/*---------------------------------------------------------------------------------------------------*/

/*---------------------------------------кто мы бля------------------------*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.fonkrytoi {
    background: linear-gradient(to right, rgb(8, 16, 32), black, black, black, rgb(32, 8, 8)) !important;
    background-size: cover;    /* Фон покрывает весь блок, не искажая пропорции */
    background-position: center top; /* Фиксирует фон по центру и верху */
    box-shadow: 0px 0px 100px 50px rgba(0, 0, 0, 0.5);
    position: relative;
    width: 100%;
    height: auto;
    margin-top: -80px;
    border-top: 4px solid white;
    border-bottom: 4px solid white;
    padding: 40px 20px;
    z-index: 1;
}
.onas1 h3 {
    color: #fff;
    text-align: center;
    font-size: 45px;
    text-shadow: 0 0 35px #ffffff;
    background: linear-gradient(to right,rgba(0, 0, 0, 0),rgba(255, 255, 255, 0.04),rgba(0, 0, 0, 0));
    margin-inline-start: 400px;
    margin-inline-end: 400px;
}
.onas1 p {
    color: rgb(73, 73, 73);
    font-size: 20px;
    text-align: center;
    text-decoration: underline;
    text-decoration-skip-ink: none;
    text-underline-offset: 4px;
    margin: 10px 0;
    margin-bottom: 40px;
}

.viewport-container {
    width: 100%;
    margin-bottom: 80px;
    justify-content: center;
    align-items: center;
    padding: 0 10px;
    flex-direction: column; /* Выстраивает детей в колонку (один под другим) */
    align-items: center;    /* Центрирует их по горизонтали, если нужно */
}

.bento-screen {
    display: flex;
    /* процы без лимита */
    width: 100%; 
    /* фиксация высоты */
    height: 500px; 
    gap: 20px;
}

.bento-item {
    border-radius: clamp(10px, 2vw, 30px);
    border: 1px solid rgb(158, 158, 158);
    transition: all 0.5s cubic-bezier(0.2, 1, 0.3, 1);
    cursor: default;
}

.blue, .red {
    flex: 1; /* боковые блоки */
}

.bento-center {
    flex: 3; /* центр в 3 раза шире боков */
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.yellow, .green {
    flex: 1; /* делит центр пополам */
}

/* градиентыыыыыыы */
.blue   { background: linear-gradient(120deg, #000, #052146); }
.yellow { background: linear-gradient(30deg, #000, #443505); }
.green  { background: linear-gradient(150deg, #04381f, #000000); }
.red    { background: linear-gradient(150deg, #380404, #000000); }

/* эффектик */
.bento-item:hover {
    filter: brightness(1.2); /* подстветка */
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.1); /* свечение */
    z-index: 10;
}
/*------------------------------------------------------------------------------------*/

.auth-container { 
    max-width: 800px; 
    margin: 20px auto; 
    padding: 70px; 
    background: rgb(0, 0, 0); 
    border-radius: 8px; 
    border: 2px solid rgb(255, 255, 255);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.822); 
    text-align: center; 
}
        
.auth-container input { 
    color: white;
    width: 100%; 
    padding: 10px; 
    margin: 10px 0; 
    border: 1px solid #5e5e5e; 
    border-radius: 4px; 
    box-sizing: border-box; 
}
  
.toggle-link { 
    cursor: pointer; 
    color: #007bff; 
    text-decoration: underline; 
    font-size: 0.9em; 
}
        
/* Утилиты */
.hidden { display: none !important; }

/* Кнопка "Войти" для гостей */
.login-link-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #4caf50;
    color: white !important;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s;
}

.login-link-btn:hover { background-color: #45a049; }

.ticket-card {
    transition: transform 0.2s;
    border-left: 4px solid #007bff;
}

.support-answer {
    background: rgba(40, 167, 69, 0.1);
    border-left: 4px solid #28a745;
    padding: 10px;
    margin-top: 15px;
    border-radius: 5px;
}

.tab-btn {
    padding: 10px 20px;
    background: none;
    border: 1px solid #444;
    color: #888;
    cursor: pointer;
    border-radius: 5px;
}

.tab-btn.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.btn-del { color: #ff4444; background: none; border: 1px solid #ff4444; padding: 5px 10px; border-radius: 5px; cursor: pointer; }
.btn-reply { background: #28a745; color: white; border: none; padding: 5px 15px; border-radius: 5px; cursor: pointer; margin-left: 10px; }

.ticket-img { max-width: 150px; border-radius: 8px; margin-top: 10px; cursor: zoom-in; }

/* Общий контейнер */
.support-wrapper {
    width: 95%;
    max-width: 1200px; /* Сделали шире */
    margin: 40px auto;
    font-family: 'Jost', sans-serif;
}

.header-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    color: white;
}

/* Стили вкладок (кнопок переключения) */
.admin-tabs-row {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.tab-btn {
    padding: 8px 16px;
    font-size: 13px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ccc;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
}

.tab-btn.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
    box-shadow: 0 0 15px rgba(0, 123, 255, 0.4);
}

/* Карточка тикета */
.glass-card {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Расположение контента и кнопки удаления */
.ticket-main-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.ticket-info {
    flex: 1;
}

.btn-del {
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid #ff4444;
    color: #ff4444;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: 0.2s;
    white-space: nowrap;
    margin-left: 20px;
}

.btn-del:hover {
    background: #ff4444;
    color: white;
}

/* Кнопка ответа — под тикетом */
.btn-reply {
    width: 100%;
    background: #28a745;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    margin-top: 10px;
}

/* Растягиваем на ширину сайта */
.support-wrapper {
    max-width: 1200px;
    width: 95%;
}

/* Кнопка удаления СПРАВА */
.ticket-body-layout {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.ticket-main-content { flex: 1; }

.btn-del-icon {
    background: rgba(255, 68, 68, 0.1);
    color: #ff4444;
    border: 1px solid #ff4444;
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    margin-left: 20px;
}

/* Маленькие фирменные вкладки */
.tab-btn {
    padding: 6px 12px;
    font-size: 12px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.2);
    color: #888;
}

.tab-btn.active {
    background: #007bff;
    color: white;
}

/* Убираем помощника Google на картинках */
.no-lens {
    pointer-events: none; /* Это радикально, но 100% уберет меню */
    user-select: none;
    -webkit-user-drag: none;
}

/* Растягиваем на 1200px */
.support-wrapper { max-width: 1200px; width: 95%; margin: 40px auto; }

/* Вкладки в стиле формы */
.tabs-container {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.tab-item {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #888;
    padding: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    transition: 0.3s;
}

.tab-item.active {
    background: #007bff;
    color: white;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.3);
}

/* Карточка тикета с кнопкой справа */
.ticket-card {
    position: relative; /* Чтобы кнопка позиционировалась относительно карточки */
    display: flex;
    flex-direction: column;
    padding: 20px;
    background: rgba(0, 0, 0, 0.85);
    border: 1px solid rgb(218, 218, 218);
    border-radius: 15px;
    margin-bottom: 15px;
    backdrop-filter: blur(10px);
}

.card-main-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.card-content { flex: 1; }

/* Кнопка удаления справа */
.btn-del-right {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid #ff4444;
    color: #ff4444;
    padding: 8px 15px;
    border-radius: 10px;
    cursor: pointer;
}

.btn-del-right:hover {
    background: #ff4444;
    color: white;
    box-shadow: 0 0 15px rgba(255, 68, 68, 0.4);
}

/* Поле ответа */
.reply-area {
    display: flex !important;
    flex-direction: column !important; /* Строго в колонку: поле сверху, кнопка снизу */
    gap: 12px !important;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.reply-input {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    color: white;
    padding: 12px;
    min-height: 80px;
    resize: vertical;
}

.btn-send-reply {
    align-self: flex-start;
    background: #28a745;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 6px;
    cursor: pointer;
}

/* Защита картинок от Google Lens и копирования */
.ticket-image {
    max-width: 400px;
    border-radius: 10px;
    pointer-events: none; /* Убирает клики и помощников */
    user-select: none;
    -webkit-touch-callout: none;
}

.toast-item.show {
    opacity: 1;
    transform: translateX(0);
}

/* Цвета для разных типов */
.toast-item.success { border-left: 4px solid #00f260; }
.toast-item.error { border-left: 4px solid #ff4b2b; }
.toast-item.info { border-left: 4px solid #00d2ff; }

/* Анимация появления */
@keyframes toast-in {
    to { transform: translateX(0); }
}

#tabSelector, #filterType {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 12px;
    cursor: pointer;
    outline: none;
    backdrop-filter: blur(5px);
    transition: 0.3s;
}

#tabSelector:hover, #filterType:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #adadad;
}

.reply-wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.reply-input {
    width: 100%;
    min-height: 100px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: white;
    padding: 12px;
    resize: none;
    outline: none;
}

/* Кнопка теперь не будет улетать */
.admin-reply-action {
    align-self: flex-start; /* Кнопка будет слева */
    background: #28a745;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}

.admin-reply-action:hover {
    background: #218838;
    transform: translateY(-2px);
}

/* Убираем гигантский блюр и вылеты кнопки */
.admin-reply-action {
    position: relative !important;
    bottom: 0 !important;
    left: 0 !important;
    transform: none !important;
    filter: none !important;
    backdrop-filter: none !important;
    z-index: 10 !important;
}

/* Фикс для карточки, чтобы она не сжималась */
.ticket-card {
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
    min-height: fit-content !important;
    overflow: visible !important;
}

/* Секция соцсетей */
.socials-section {
    padding: 60px 20px;
    text-align: center;
    padding-bottom: 10px;
}

.socials-title {
    font-size: 2rem;
    color: white;
    text-shadow: 
        0 0 10px rgba(0, 0, 0, 0.8), 
        0 0 20px rgba(0, 0, 0, 0.8), 
        0 0 40px rgba(0, 0, 0, 0.8), 
        0 0 80px rgba(0, 0, 0, 0.8), 
        0 0 120px rgba(0, 0, 0, 0.8);
    margin-bottom: 30px;
    font-weight: 600;
}

.social-cards-container {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Карточка соцсети */
.social-card {
    width: 300px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    /* Используем твой эффект стекла */
    background: black;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.social-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.social-icon {
    font-size: 3rem;
    color: #24A1DE; /* Цвет Telegram */
    margin-bottom: 5px;
}

.social-name {
    font-size: 1.2rem;
    color: var(--text-color);
    margin: 0;
}

/* Кнопка внутри карточки */
.social-btn {
    text-decoration: none;
    width: 100%;
    margin-top: 10px;
    padding: 10px 20px;
    font-size: 0.9rem;
}

.main-footer {
    width: 100% !important;
    margin-top: auto; /* ВАЖНО для прижатия */
    background: url('img/fon1.png') center center !important;
    background-size: cover;
    border-top: 4px solid rgb(255, 255, 255) !important;
    box-shadow: 0px 0px 100px 50px rgba(0, 0, 0, 0.5);
    padding-top: 60px; /* Твой отступ вернулся */
    padding-bottom: 20px;
    position: relative;
    z-index: 10;
}

/* Фикс для страниц, где мало контента (тикиты, админка) */
/* Мы создаем минимальную высоту для всей страницы */
.tickets-main-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Растягиваем на весь экран */
}

/* Блок с контентом будет расширяться и давить на футер */
.tickets-content-area {
    flex: 1; 
}

/* Контейнер, который держит текст в центре */
.footer-content {
    max-width: 1200px; /* Совпадает с шириной твоего основного контента */
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    padding: 0 20px;
}

.footer-column h3 {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 25px;
    text-transform: uppercase; /* Делаем заголовки чуть строже */
    letter-spacing: 1px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 15px;
}

.footer-column ul li a {
    color: #888; /* Серый текст по умолчанию */
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-column ul li a:hover {
    color: #ffffff; /* Белый при наведении */
    padding-left: 8px;
}

.footer-bottom {
    margin-top: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    color: #444;
    font-size: 0.8rem;
}

.admin-page-container {
    background: rgba(0, 0, 0, 0.89);
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    border: 1px solid rgb(218, 218, 218);
    border-radius: 20px;
    padding: 30px;
    color: var(--text-color);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    padding: 40px; 
    max-width: 1200px; 
    padding: 40px;
    max-width: 1200px; 
    margin: 0 auto;
    margin-bottom: 100px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px; 
    background: rgba(0, 0, 0, 0.397); 
    color: rgb(255, 255, 255); 
    border: 1px solid rgba(255,255,255,0.1); 
}

.admin-table th {
    text-align: left;
    padding: 15px;
    border-bottom: 1px solid rgb(136, 136, 136);
    background: rgba(70, 70, 70, 0.315);
}

.admin-page-container h2 { 
    color: #ffffff; 
    padding-bottom: 5px; 
}

th, td { 
    border: 1px solid rgb(49, 49, 49); 
    padding: 12px; 
    text-align: left; 
}

/* Кнопка удаления в таблице */
.delete-user-btn {
    background: #ff4b2b !important;
    color: white !important;
    border: none !important;
    padding: 8px 16px !important; /* Увеличил паддинги */
    border-radius: 8px !important;
    cursor: pointer;
    font-size: 14px !important;
    font-weight: 600 !important;
    display: inline-block !important; /* Важно */
    transition: 0.3s;
}

.delete-user-btn:hover {
    background: #ff2b00 !important;
    box-shadow: 0 0 15px rgba(255, 75, 43, 0.4);
}


/* Плашка бана ----------*/
.ban-overlay {
    position: fixed !important; /* Всегда привязано к окну, а не к документу */
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.85) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    z-index: 9999999 !important; /* Ультимативный приоритет */
    
    /* Эти свойства активируются, когда JS ставит display: flex */
    display: none; 
    align-items: center !important;    /* Центр по вертикали */
    justify-content: center !important;  /* Центр по горизонтали */
}

/* Фикс для body, чтобы нельзя было скроллить контент под плашкой */
body.banned {
    overflow: hidden !important;
    height: 100vh !important;
}

/* Анимация появления для красоты */
.ban-card {
    animation: scaleIn 0.3s ease-out forwards;
}

@keyframes scaleIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
/* Конец плашки ---------*/



/*-----------плашка-телеграмм-канала-------------------*/
.contact-overlay {
    position: absolute; /* Изменено для работы скрипта центрирования */
    top: 0; left: 0;
    width: 100%; 
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: none; /* Управляется через JS (display: block) */
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.contact-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Сама карточка */
.contact-modal {
    position: absolute;
    width: 340px;
    padding: 40px 20px;
    z-index: 10005;
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 40px !important;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    text-align: center;
    
    /* Оставляем transition ТОЛЬКО для opacity и scale, убираем для top/left */
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: scale(0.8) translateY(20px);
    opacity: 0;
}

.contact-overlay.active .contact-modal {
    transform: scale(1) translateY(0) !important;
    opacity: 1;
}

/* Внутренний блок */
.tg-3d-inner {
    background: transparent !important;
    padding: 0;
}

.tg-3d-inner p {
    color: rgba(255, 255, 255, 0.5); /* Немного осветлил для читаемости */
    font-size: 14px;
    line-height: 1.5;
    margin: 0 auto 25px auto;
    max-width: 260px;
    text-align: center;
    font-family: 'Jost', sans-serif;
}

/* Заголовок Join With Us */
.tg-top-label {
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 25px;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Логотип */
.tg-3d-logo {
    position: relative;
    width: 130px;
    height: 130px;
    margin: 0 auto 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-glow {
    position: absolute;
    width: 100px;
    height: 100px;
    background: #24a1de;
    border-radius: 50%;
    filter: blur(35px);
    opacity: 0.7;
    z-index: 1;
}

.tg-3d-logo img {
    position: relative;
    z-index: 2;
    width: 90px;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.2));
}

/* Крупный заголовок */
.tg-3d-title {
    color: #fff;
    font-size: 36px;
    font-weight: 800;
    margin: 10px 0 15px;
    font-family: 'Jost', sans-serif;
}

/* Текст под заголовком */
.tg-3d-text {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    line-height: 1.4;
    margin: 0 auto 30px;
    max-width: 200px;
    text-align: center;
}

/* Кнопка */
.tg-3d-button {
    display: inline-block;
    background: #24a1de;
    color: #fff;
    text-decoration: none;
    padding: 15px 45px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 10px 25px rgba(36, 161, 222, 0.4);
    transition: all 0.3s ease;
}

.tg-3d-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(36, 161, 222, 0.6);
    background: #2cb5f5;
}

/* Базовый стиль шаров (привязаны к центру карточки) */
.modal-ball {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #54dfff 0%, #24a1de 70%, #1a7fa2 100%);
    box-shadow: 0 0 50px rgba(36, 161, 222, 0.3);
    z-index: -1; /* Чтобы были за стеклом */
    pointer-events: none;
    left: 50%;
    top: 50%;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.7);
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.contact-overlay.active .modal-ball {
    opacity: 1;
}

/* Позиции шаров относительно центра плашки */
.ball-1 { width: 100px; height: 100px; margin-top: -280px; margin-left: -320px; transition-delay: 0.1s; }
.ball-2 { width: 130px; height: 130px; margin-top: 290px; margin-left: 250px; transition-delay: 0.2s; }
.ball-3 { width: 55px; height: 55px; margin-top: -80px; margin-left: 280px; transition-delay: 0.3s; }
.ball-4 { width: 75px; height: 75px; margin-top: 180px; margin-left: -290px; transition-delay: 0.15s; }
.ball-5 { width: 45px; height: 45px; margin-top: -250px; margin-left: 240px; transition-delay: 0.25s; }
.ball-6 { width: 35px; height: 35px; margin-top: 80px; margin-left: -250px; transition-delay: 0.35s; }

/* Анимации движения */
.contact-overlay.active .ball-1 { animation: float-1 8s ease-in-out infinite alternate; }
.contact-overlay.active .ball-2 { animation: float-2 10s ease-in-out infinite alternate; }
.contact-overlay.active .ball-3 { animation: float-3 7s ease-in-out infinite alternate; }
.contact-overlay.active .ball-4 { animation: float-4 9s ease-in-out infinite alternate; }
.contact-overlay.active .ball-5 { animation: float-5 11s ease-in-out infinite alternate; }
.contact-overlay.active .ball-6 { animation: float-6 6s ease-in-out infinite alternate; }

@keyframes float-1 { 0% { transform: translate(-50%, -50%) scale(1); } 100% { transform: translate(-60%, -40%) scale(1.05); } }
@keyframes float-2 { 0% { transform: translate(-50%, -50%) scale(1); } 100% { transform: translate(-40%, -60%) scale(1.1); } }
@keyframes float-3 { 0% { transform: translate(-50%, -50%) scale(1); } 100% { transform: translate(-45%, -45%) scale(0.95); } }
@keyframes float-4 { 0% { transform: translate(-50%, -50%) scale(1); } 100% { transform: translate(-55%, -55%) scale(1.05); } }
@keyframes float-5 { 0% { transform: translate(-50%, -50%) scale(1); } 100% { transform: translate(-40%, -50%) scale(1); } }
@keyframes float-6 { 0% { transform: translate(-50%, -50%) scale(1); } 100% { transform: translate(-55%, -60%) scale(1.15); } }

/* Крестик */
.close-modal {
    position: absolute;
    top: 25px;
    right: 30px;
    font-size: 30px;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: 0.3s;
    z-index: 10010;
}

.close-modal:hover { color: #fff; }
/* -------------------------------------------------------------------- */





body.no-scroll {
    overflow: hidden !important;
    height: 100vh !important;
}

.modal-card {
    box-sizing: border-box !important;
    background: #050505 !important;
    width: 1100px !important;
    max-width: 95vw !important;
    min-height: 600px !important;
    border: 1.5px solid #1e3a8a !important;
    border-radius: 30px !important;
    box-shadow: 0 0 100px rgba(30, 58, 138, 0.5) !important;
    display: flex !important;
    flex-direction: row !important;
    overflow: hidden !important;
    
    /* Оставляем плавность только для появления, если нужно. 
       Координаты top/left должны меняться мгновенно. */
    transition: transform 0.3s ease, opacity 0.3s ease; 
}

/* Оверлей */
.modal-overlay {
    display: none;
    position: absolute !important;
    background: rgba(0, 0, 0, 0.9) !important;
    backdrop-filter: blur(15px);
    z-index: 99999999;
    top: 0;
    left: 0;
}

/* Твоя сетка */
/* Сетка внутри */
.modal-grid {
    display: flex !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Колонки */
.modal-left {
    width: 400px !important;
    min-width: 400px !important;
    padding: 40px !important;
    border-right: 1px solid #1a1a1a !important;
    display: flex !important;
    flex-direction: column !important;
}

.modal-right {
    flex: 1 !important;
    padding: 40px !important;
    overflow-y: auto !important;
}

/* Анимация появления без смещения координат */
@keyframes modalFadeIn {
    from { opacity: 0; transform: scale(0.98); }
    to { opacity: 1; transform: scale(1); }
}

.modal-card {
    animation: modalFadeIn 0.2s ease-out forwards !important;
}

/* Заголовок и Оплата */
.modal-title { font-size: 24px; color: #fff; margin-bottom: 30px; }
.payment-methods { display: flex; flex-direction: column; gap: 12px; }
.pay-item { cursor: pointer; }
.pay-item input { display: none; }

.pay-content {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px;
    background: #151515;
    border: 1.5px solid transparent;
    border-radius: 15px;
    transition: 0.2s;
}

.pay-item input:checked + .pay-content {
    background: #1a1a1a;
    border-color: #3b59ba;
    box-shadow: 0 0 15px rgba(59, 89, 186, 0.2);
}

.pay-content img { width: 28px; height: 28px; object-fit: contain; }
.pay-content span { color: #eee; font-weight: 500; }

/* Футер левой колонки */
.checkout-footer { margin-top: auto; padding-top: 20px; }

.price-display {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #222;
}
#current-sum { color: #3b71e3; }

/* Кнопки */
.buy-button-locked, .buy-button-unlocked {
    width: 100%;
    padding: 18px;
    border-radius: 15px;
    font-size: 18px;
    font-weight: 700;
    margin-top: 20px;
    transition: 0.3s;
}

.buy-button-unlocked {
    all: unset;
    display: block;
    box-sizing: border-box;
    width: 100%;
    padding: 18px;
    background: #3b59ba !important; /* Твой синий цвет */
    color: #fff !important;
    text-align: center;
    border-radius: 15px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer !important;
    margin-top: 20px;
    pointer-events: auto !important; /* Разрешаем клики */
}

.buy-button-locked {
    cursor: not-allowed !important;
    pointer-events: auto; /* Оставляем auto, чтобы работала анимация тряски при клике */
}

/* Правила */
.rules-header { color: #fff; margin-bottom: 20px; text-align: left; }
.rules-text { font-size: 14px; color: #ccc; line-height: 1.6; }
.rules-text strong { color: #3b71e3; display: block; margin-top: 15px; }

/* Кнопка закрытия — теперь точно на месте */
.close-modal {
    position: absolute;
    top: 25px;
    right: 30px;
    font-size: 35px;
    color: #555;
    cursor: pointer;
    z-index: 1001;
    line-height: 0.8;
    transition: color 0.2s;
}
.close-modal:hover { color: #fff; }

/* Тряска кнопки */
.shake-animation {
    animation: shake 0.4s ease-in-out !important;
}
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-10px); }
    40% { transform: translateX(10px); }
    60% { transform: translateX(-10px); }
    80% { transform: translateX(10px); }
}

/* Скрываем стандартный кружок радио */
.currency-item input {
    display: none;
}

/* Стиль кнопки-валюты */
.currency-btn {
    display: block;
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    min-width: 60px;
}

/* Эффект при наведении */
.currency-item:hover .currency-btn {
    background: rgba(255, 255, 255, 0.15);
}

/* Стиль для выбранной валюты */
.currency-item input:checked + .currency-btn {
    background: #3b71e3;
    border-color: #3b71e3;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.4);
}

/* ИСПРАВЛЕНИЕ КОНТЕЙНЕРА */
.toast-container {
    position: absolute;    /* МЕНЯЕМ с fixed на absolute */
    left: 50%;
    top: 1%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column; /* Теперь новые тосты будут просто добавляться вниз */
    gap: 8px;
    z-index: 1000;
    pointer-events: none;
    width: 100%;
    margin-top: 15px;      /* Небольшой отступ от края карточки */
}

/* ОБНОВЛЕННЫЙ ТОСТ */
.toast-notification {
    position: relative;
    background: #ff4d4d;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-family: 'Jost', sans-serif;
    font-size: 13px;       /* Чуть уменьшим, чтобы влезало в карточку */
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    opacity: 0;
    transform: translateY(-10px); /* Анимация теперь сверху вниз */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    width: fit-content;
    margin: 0 auto; 
    min-width: 220px;
    text-align: center;
}

.toast-notification.show {
    opacity: 1;
    transform: translateY(0);
}

.toast-success {
    background: #2ecc71;
}

.auth-card { 
    position: relative; /* Это удержит тосты внутри карточки */
}

/* ==========================================================
   ГЛОБАЛЬНЫЙ ФИКС ПЛАВАЮЩЕЙ ШАПКИ (ДЛЯ ПК И ТЕЛЕФОНА)
   ========================================================== */   
html, body, body.ready {
    filter: none !important;
    -webkit-filter: none !important;
    transform: none !important;
    -webkit-transform: none !important;
    perspective: none !important;
    transition: opacity 0.6s ease !important;
    will-change: auto !important;
}

header.container {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 9999 !important;
}

body {
    padding-top: 130px; 
}










/* ==========================================================
   БАЗОВЫЕ СТИЛИ МЕНЮ И МОДАЛОК (ПК-ВЕРСИЯ И ОБЩИЕ)
   ========================================================== */
.mobile-menu-btn { display: none; cursor: pointer; }
.mobile-back-btn { display: none; cursor: pointer; color: #ffffff !important; font-weight: bold; border-bottom: 1px solid #333; padding-bottom: 15px !important; margin-bottom: 10px !important; font-size: 20px !important; }

.rules-mobile-trigger, .rules-back-btn { display: none; }
/* Скрываем мобильный блок на ПК по умолчанию */
#ktomi-mobile { display: none; }
.short-text { display: none; }

#mobile-menu-overlay { 
    display: none; 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(0, 0, 0, 0.75) !important; 
    z-index: 9998 !important; 
    transition: opacity 0.3s ease !important; 
    opacity: 0; 
}

#mobile-menu-overlay.active { opacity: 1; }
body.no-scroll-mobile { overflow: hidden !important; height: 100vh !important; touch-action: none; }

/* ==========================================================
   МОБИЛЬНАЯ АДАПТАЦИЯ (Меньше 768px)
   ========================================================== */
@media (max-width: 768px) {
    /* ДОБАВЛЕНО: Жестко разрешаем скролл и сбрасываем фикс. высоту, чтобы login.html заработал */
    html { overflow-y: auto !important; height: auto !important; min-height: 100vh !important; }
    body { padding-top: 60px !important; overflow-y: auto !important; overflow-x: hidden !important; height: auto !important; min-height: 100vh !important; } 
    .fonproz { display: none; }

    header.container {
        height: 60px !important;
        background-image: none !important; 
        background-color: #000000 !important; 
        box-shadow: none !important; 
        border-bottom: 1px solid #1a1a1a !important;
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 0 15px !important;
    }

    .mobile-menu-btn { display: block; z-index: 10; position: relative; }

    header img { width: 24px !important; height: 24px !important; margin-left: 10px !important; padding: 0 !important; display: block !important; }
    header .logo { font-size: 16px !important; text-shadow: 0 0 10px #ffffff; padding-right: 5px !important; line-height: 1 !important; }

    #auth-container { margin: 0 !important; }
    #user-name-btn { margin-right: 0 !important; font-size: 14px !important; }
    #auth-container a { font-size: 13px !important; margin: 0 !important; }
    .header-tg-btn { width: 30px !important; height: 30px !important; margin: 0 !important; padding: 0 !important; }
    .header-tg-btn svg { width: 20px !important; height: 20px !important; padding: 0 !important; margin: 0 !important; }

    nav#mobile-nav {
        position: fixed !important; top: 0 !important; left: -100% !important; width: 250px !important; height: 100vh !important;
        background: #000000 !important; border-right: 1px solid #1a1a1a !important; 
        z-index: 10001 !important; 
        transition: left 0.4s ease !important; padding: 25px 20px !important; box-sizing: border-box !important; display: flex !important; flex-direction: column !important;
    }
    nav#mobile-nav.open { left: 0 !important; }
    nav#mobile-nav ul { flex-direction: column !important; align-items: flex-start !important; gap: 25px !important; width: 100% !important; margin: 0 !important; padding: 0 !important; }
    nav#mobile-nav ul a { font-size: 18px !important; width: 100% !important; margin: 0 !important; pointer-events: auto; }
    .mobile-back-btn { display: block !important; pointer-events: auto; }

    /* АНИМАЦИИ ТОЛЬКО ПРИ ЗАЖАТИИ */
    .knopkas, .bento-item, .footer-column ul li a {
        transition: transform 0.2s ease !important;
        transform: none !important;
    }
    .knopkas:active, .btn-purchase:active, .bento-item:active {
        transform: scale(0.96) !important;
        filter: brightness(0.8);
    }

    /* ФИКС КОНТЕНТА НИЖЕ ШАПКИ */
    .hero { width: 100% !important; display: flex !important; flex-direction: column !important; align-items: center !important; padding-top: 15px !important; margin: 0 !important; overflow: visible !important; }
    .hero--info { order: 1 !important; width: 100% !important; display: flex !important; flex-direction: column !important; align-items: center !important; }
    .nasvanie { font-size: 22px !important; width: 100% !important; margin: 0 0 15px 0 !important; padding: 0 15px !important; box-sizing: border-box !important; text-align: center !important; }
    
    .textik { width: 88% !important; max-width: 340px !important; margin: 0 auto !important; background: #000000 !important; border: 2px solid #ffffff !important; border-radius: 12px !important; box-sizing: border-box !important; overflow: hidden !important; cursor: pointer; }
    .short-text { display: block !important; color: #ffffff !important; padding: 12px !important; font-size: 14px !important; text-align: center !important; font-weight: 600 !important; }
    .full-text { max-height: 0; opacity: 0; font-size: 13px !important; color: #eeeeee !important; line-height: 1.5 !important; padding: 0 15px !important; transition: max-height 0.5s ease, opacity 0.4s ease; display: block !important; text-align: center !important; }
    .textik.expanded .short-text { display: none !important; }
    .textik.expanded .full-text { max-height: 600px; opacity: 1; padding: 15px !important; }

    .ryka { order: 2 !important; width: 100% !important; display: flex !important; justify-content: center !important; margin-bottom: -137px; margin-top: 10px; padding-top: 135px; position: relative !important; pointer-events: none; }
    .ryka img { width: 200% !important; max-width: 480px !important; height: auto !important; display: block !important; filter: drop-shadow(0 0 20px rgba(0,0,0,0.8)); }

    /* БЛОК ТОВАРОВ */
    .features { position: relative; z-index: 4; padding: 60px 0 30px 0 !important; margin-top: 0 !important; overflow: hidden; background: #000 !important; }
    .features-container { display: flex !important; flex-direction: column !important; align-items: center !important; width: 100% !important; }
    
    .features-header-side { 
        text-align: center !important; 
        align-items: center !important; 
        margin-top: -20px !important; 
        margin-bottom: -80px !important; 
        width: 100% !important; 
        order: 1 !important; 
    }
    .features-header-side h3 { font-size: 26px !important; margin-bottom: 3px !important; color: #fff !important; }
    .features-header-side p { font-size: 11px !important; font-family: 'Jost', sans-serif !important; color: #666 !important; text-align: center !important; max-width: 100% !important;}

    .products-wrapper { 
        order: 2 !important; 
        display: flex !important; 
        flex-direction: row !important; 
        overflow-x: auto !important; 
        scroll-snap-type: x mandatory !important; 
        gap: 15px !important; 
        width: 100% !important; 
        padding: 10px 40px 25px 40px !important; 
        -webkit-overflow-scrolling: touch; 
    }

    .knopkas { 
        min-width: 290px !important; 
        max-width: 290px !important; 
        flex-shrink: 0 !important; 
        scroll-snap-align: center !important; 
        margin: 0 !important; 
        border: 1px solid rgba(255,255,255,0.05) !important; 
        padding: 25px 20px !important; 
        margin-top: 15px !important; 
        display: flex !important; 
        flex-direction: column !important; 
        align-items: center !important; 
        text-align: center !important; 
        transform: none !important; 
        transition: none !important;
        cursor: default !important;
    }

    .card-active { box-shadow: 0 0 30px rgba(0, 110, 255, 0.178) !important; }
    .card-active:hover { transform: none !important; transition: none !important; }
    .products-wrapper::-webkit-scrollbar { height: 3px; }
    .products-wrapper::-webkit-scrollbar-track { background: transparent; margin: 0 100px; }
    .products-wrapper::-webkit-scrollbar-thumb { background: #3b71e3; border-radius: 10px; }
    .soon-glow { transform: none !important; transition: none !important; }
    .coming-soon { min-height: 250px !important; display: flex !important; align-items: center !important; justify-content: center !important; }
    .coming-soon:hover { transform: none !important; transition: none !important; }

    /* ==========================================================
       МОБИЛЬНАЯ СЕКЦИЯ "КТО МЫ?"
       ========================================================== */
    #ktomi { display: none !important; } 

    #ktomi-mobile { 
        display: block !important; 
        padding: 60px 0; 
        background: #000; 
        border-top: 4px solid #ffffff !important;
        border-bottom: 4px solid #ffffff !important;
        box-shadow: 0px 0px 100px 50px rgba(0, 0, 0, 0.5);
        overflow: hidden;
    }

    .onas-m-head { text-align: center; margin-bottom: 35px; }
    .onas-m-head h3 { color: #fff; font-size: 24px; text-transform: uppercase !important; letter-spacing: 2px; text-shadow: 0 0 10px rgba(255, 255, 255, 0.5); margin: 0; }
    .onas-m-head p { color: #666; font-size: 13px; margin-top: 10px; text-decoration: underline !important; font-family: 'Jost', sans-serif; letter-spacing: 1px; display: inline-block; }

    .m-bento-slider { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 0; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding-bottom: 50px; }
    .m-bento-slider::-webkit-scrollbar { display: none; }

    .m-bento-item { min-width: 75vw; max-width: 75vw; margin: 0 12.5vw; height: auto; flex-shrink: 0; scroll-snap-align: center; padding: 25px; margin-bottom: -45px; border-radius: 24px; box-sizing: border-box; border: 1px solid rgba(255, 255, 255, 0.15) !important; opacity: 0.2; transform: scale(0.88); transition: transform 0.5s ease, opacity 0.5s ease, box-shadow 0.5s ease !important; -webkit-tap-highlight-color: transparent; }
    .m-bento-item.active-card { opacity: 1; transform: scale(1); }
    .m-bento-item.blue   { background: linear-gradient(120deg, #000, #052146) !important; box-shadow: 0 0 35px rgba(5, 33, 70, 0.8) !important; }
    .m-bento-item.yellow { background: linear-gradient(30deg, #000, #443505) !important; box-shadow: 0 0 35px rgba(68, 53, 5, 0.6) !important; }
    .m-bento-item.green  { background: linear-gradient(150deg, #04381f, #000000) !important; box-shadow: 0 0 35px rgba(4, 56, 31, 0.6) !important; }
    .m-bento-item.red    { background: linear-gradient(150deg, #380404, #000000) !important; box-shadow: 0 0 35px rgba(56, 4, 4, 0.6) !important; }

    .m-bento-item h1 { color: #fff; font-size: 22px; margin: 0 0 12px 0; text-align: left; }
    .m-bento-item p { color: #777; font-size: 15px; line-height: 1.4; text-align: left; margin: 0; }

    /* ОПЛАТА */
    .modal-overlay { position: fixed !important; inset: 0 !important; width: 100vw !important; height: 100vh !important; display: none; align-items: center !important; justify-content: center !important; z-index: 10000 !important; background: rgba(0, 0, 0, 0.85) !important; }
    .modal-overlay[style*="display: block"], .modal-overlay[style*="display: flex"] { display: flex !important; }
    .modal-card { width: 90% !important; max-width: 360px !important; max-height: 85vh !important; padding: 30px 20px !important; border-radius: 20px !important; background: #0d0d0d !important; border: 1px solid rgba(255, 255, 255, 0.05) !important; display: flex !important; flex-direction: column !important; align-items: flex-start !important; box-sizing: border-box !important; position: relative !important; top: auto !important; left: auto !important; transform: none !important; margin: 0 !important; overflow-y: auto !important; overscroll-behavior: contain !important; }
    .modal-grid { display: flex !important; flex-direction: column !important; align-items: flex-start !important; width: 100% !important; margin: 0 !important; padding: 0 !important; }
    .modal-left { min-width: 250px !important; max-width: 250px !important; display: flex !important; flex-direction: column !important; align-items: flex-start !important; text-align: left !important; padding: 0 !important; border-right: none !important; }
    .modal-title { align-self: flex-start !important; text-align: left !important; width: 100% !important; margin-bottom: 20px !important; margin-top: 40px !important; }
    .close-modal { margin-right: -12px !important; }
    .payment-methods { position: relative !important; display: flex !important; flex-direction: column !important; align-items: flex-start !important; width: 100% !important; gap: 0 !important; margin: 0 !important; padding: 0 !important; }
    .pay-item { width: 100% !important; display: flex !important; justify-content: flex-start !important; align-items: center !important; padding: 5px 0 !important; border-radius: 12px !important; box-sizing: border-box !important; margin: 0 !important; }
    .pay-content { display: flex !important; justify-content: flex-start !important; align-items: center !important; gap: 12px !important; width: 100% !important; }
    .currency-toggle { display: flex !important; justify-content: flex-start !important; align-items: center !important; width: 100% !important; gap: 8px !important; margin: 15px 0 !important; }
    .checkout-footer { width: 100% !important; text-align: left !important; }
    .price-display { text-align: left !important; width: 100% !important; margin-top: -40px !important; font-size: 1.1rem !important; }
    .custom-checkbox { align-self: flex-start !important; }
    #finalBuyBtn { width: 100% !important; margin-top: 15px !important; }

    .rules-mobile-trigger { display: flex !important; position: absolute; top: 25px; color: white; background: rgba(255,255,255,0.07); padding: 5px 12px; border-radius: 8px; z-index: 5; }
    .modal-right { position: absolute !important; top: 0 !important; right: -100% !important; width: 100% !important; height: 100% !important; background: #000000 !important; z-index: 100 !important; transition: right 0.4s ease !important; padding: 25px 20px !important; box-sizing: border-box !important; display: flex !important; flex-direction: column !important; }
    .modal-right.open { right: 0 !important; }
    .rules-back-btn { display: block !important; color: #3b71e3; font-weight: bold; margin-bottom: 20px; font-size: 14px; }

    /* ФУТЕР */
    .main-footer { padding: 40px 20px 20px 20px !important; background: #080808 !important; border-top: 4px solid #ffffff !important; }
    .footer-content { display: grid !important; grid-template-columns: repeat(2, 1fr) !important; gap: 30px 15px !important; text-align: center !important; }
    .footer-column { display: flex !important; flex-direction: column !important; align-items: center !important; }
    .footer-column h3 { font-size: 16px !important; margin-bottom: 15px !important; color: #ffffff !important; text-transform: uppercase; letter-spacing: 1px; }
    .footer-column ul { padding: 0 !important; margin: 0 !important; list-style: none !important; }
    .footer-column ul li { margin-bottom: 10px !important; }
    .footer-column ul li a { font-size: 14px !important; color: #888 !important; text-decoration: none !important; transition: color 0.3s ease; display: block; padding: 5px 0; }
    .footer-column ul li a:active { color: #3b71e3 !important; }
    .footer-bottom { margin-top: 40px !important; padding-top: 20px !important; border-top: 1px solid #1a1a1a !important; text-align: center !important; }
    .footer-bottom p { font-size: 12px !important; color: #555 !important; line-height: 1.6 !important; margin-bottom: 5px !important; }

    /* АВТОРИЗАЦИЯ */
    html body .auth-container { 
        width: 92vw !important; 
        max-width: none !important; 
        padding: 40px 20px !important; 
        border-radius: 24px !important; 
        
        /* Возвращаем плашку ровно в центр экрана */
        position: absolute !important; 
        top: 50% !important; 
        left: 50% !important; 
        transform: translate(-50%, -50%) !important; 
        margin: 0 !important;
        
        /* МАГИЯ: Ограничиваем высоту экраном и включаем внутренний скролл */
        max-height: 85vh !important; 
        height: auto !important;
        overflow-y: auto !important; 
        overscroll-behavior: contain !important;
    }
    
    html body #authForm { width: 100% !important; }
    html body #authTitle { font-size: 44px !important; margin-bottom: 30px !important; text-align: center !important; }
    html body #authForm input { height: 65px !important; font-size: 18px !important; padding: 0 20px !important; margin-bottom: 20px !important; border-radius: 16px !important; }
    html body .send-btn2, html body #authBtn { height: 70px !important; font-size: 22px !important; border-radius: 16px !important; margin-top: 10px !important; }
    html body .verny { font-size: 20px !important; margin-bottom: 40px !important; }
    html body .captcha-container { transform: scale(1.1) !important; margin-bottom: 25px !important; }
    
    html body #toast-container { width: 94vw !important; left: 3vw !important; right: auto !important; top: 20px !important; position: fixed !important; z-index: 99999 !important; }
    html body #toast-container > div { width: 100% !important; min-height: 70px !important; font-size: 18px !important; padding: 20px !important; border-radius: 16px !important; display: flex !important; align-items: center !important; justify-content: center !important; text-align: center !important; box-sizing: border-box !important; }
    .modal-ball { display: none !important }
    .glass-tg-card { width: 290px; }

    /* ==========================================================
       ФОРМА ТИКЕТОВ (FORMA.HTML) — СТРОГО ДЛЯ МОБИЛОК
       ========================================================== */
    /* 1. Настройка шапки: Прилипает к верху (fixed) */
    html body.tickets-main-layout header.container {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        position: fixed !important; 
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        z-index: 1000 !important;
        padding: 0 15px !important;
        box-sizing: border-box !important;
        background-color: #000000 !important; 
        border-bottom: 1px solid #1a1a1a !important;
    }

    html body.tickets-main-layout header.container nav {
        order: 1 !important;
        margin: 0 !important;
        padding: 0 !important;
        margin-right: 1px !important;
        margin-left: -5px !important;
    }

    html body.tickets-main-layout header.container img {
        display: block !important; 
        position: absolute !important;
        left: calc(50% - 65px) !important; 
        top: 50% !important;
        transform: translateY(-50%) !important;
        width: 22px !important;
        height: 22px !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    html body.tickets-main-layout header.container .logo {
        position: absolute !important;
        left: calc(50% - 35px) !important; 
        top: 50% !important;
        transform: translateY(-50%) !important;
        font-size: 16px !important;
        margin: 0 !important;
        white-space: nowrap !important; 
    }

    html body.tickets-main-layout header.container #auth-container {
        order: 2 !important;
        margin-left: -15px !important; 
    }

    html body.tickets-main-layout header.container .header-tg-btn {
        order: 3 !important;
        margin-left: 10px !important;
    }

    /* 2. БРОНЕБОЙНЫЕ ОТСТУПЫ И РАСПОЛОЖЕНИЕ (Убиваем inline-стили) */
    html body.tickets-main-layout .poderka {
        justify-content: flex-start !important; 
        min-height: 100vh !important;
        /* Отступ сверху 75px (60px шапка + 15px зазор), снизу 40px до футера */
        padding: 1px 20px 40px 20px !important; 
        box-sizing: border-box !important;
        display: flex !important;
        flex-direction: column !important;
    }

    /* Жестко скрываем тег <br>, который делает дыру сверху */
    html body.tickets-main-layout .poderka > br {
        display: none !important;
    }

    /* Находим контейнер с margin-bottom: 150px и убиваем его */
    html body.tickets-main-layout .poderka > div:not(#dbStatus) {
        margin-top: 0 !important;
        margin-bottom: 50px !important; /* Тот самый отступ снизу */
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        height: auto !important; 
    }

    /* Находим саму плашку с width: 650px и сжимаем её */
    html body.tickets-main-layout .poderka > div:not(#dbStatus) > div {
        width: 100% !important;
        max-width: 400px !important; 
        padding: 25px 20px !important; 
        margin: 0 !important;
        box-sizing: border-box !important;
        height: auto !important; 
    }

    /* 3. Фикс полей и кнопки Отправить */
    html body.tickets-main-layout #supportForm,
    html body.tickets-main-layout #supportForm select,
    html body.tickets-main-layout #supportForm textarea {
        width: 100% !important;
        box-sizing: border-box !important;
    }

    html body.tickets-main-layout .send-btn1 {
        width: 100% !important;
        max-width: 100% !important;
        height: 55px !important; 
        font-size: 16px !important; 
        white-space: nowrap !important; 
        margin: 15px 0 0 0 !important; 
        padding: 0 10px !important;
        box-sizing: border-box !important;
    }

    /* ==========================================================
       АДМИН-ПАНЕЛЬ (ADMIN.HTML) — СУПЕР ФИКС (DATA-LABEL)
       ========================================================== */
    
    /* 1. Настройка контента под шапку */
    html body.tickets-main-layout .admin-page-container {
        margin-top: 80px !important; 
        padding: 0 15px 40px 15px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* 2. Ломаем структуру таблицы, превращая её в карточки */
    .admin-table, .admin-table thead, .admin-table tbody, .admin-table th, .admin-table td, .admin-table tr { 
        display: block !important; 
        width: 100% !important;
    }

    /* Скрываем оригинальную шапку таблицы */
    .admin-table thead tr {
        position: absolute !important;
        top: -9999px !important;
        left: -9999px !important;
    }

    /* Каждая строка tr становится отдельной карточкой */
    .admin-table tr {
        background: rgba(255, 255, 255, 0.05) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        border-radius: 16px !important;
        padding: 15px !important;
        margin-bottom: 20px !important;
        box-sizing: border-box !important;
    }

    /* Оформляем ячейки внутри карточки */
    .admin-table td {
        border: none !important; /* Убиваем инлайн-границы из JS */
        position: relative !important;
        padding: 35px 0 10px 0 !important; /* Даем место сверху под заголовок */
        text-align: left !important;
        font-size: 16px !important;
        color: #fff !important;
    }

    /* МАГИЯ: Вставляем название колонки из data-label */
    .admin-table td::before {
        content: attr(data-label); /* Берет текст из JS (data-label) */
        position: absolute !important;
        top: 10px !important;
        left: 0 !important;
        width: 100% !important;
        font-size: 11px !important;
        font-weight: 700 !important;
        text-transform: uppercase !important;
        color: #555 !important; /* Серый цвет заголовка */
        letter-spacing: 1px !important;
    }

    /* Последняя ячейка с кнопкой */
    .admin-table td:last-child {
        padding-bottom: 0 !important;
    }

    /* Кнопка удаления на весь экран карточки */
    .admin-table .delete-user-btn {
        height: 50px !important;
        background: #ff4b4b !important; /* Сделаем кнопку удаления заметной на мобилке */
        color: white !important;
        border: none !important;
        border-radius: 10px !important;
        font-weight: bold !important;
        margin-top: 5px !important;
    }

    /* ==========================================================
       СПИСОК ТИКЕТОВ (TICKETS.HTML) — СТРОГО ДЛЯ МОБИЛОК
       ========================================================== */
    
    /* 1. Отступ контента под фиксированную шапку */
    html body.tickets-main-layout .support-wrapper {
        margin-top: 80px !important; 
        padding: 0 15px 40px 15px !important;
        box-sizing: border-box !important;
    }

    /* 2. Компактные фильтры */
    html body.tickets-main-layout .search-section {
        padding: 15px !important;
        margin-bottom: 20px !important;
        border-radius: 15px !important;
    }

    html body.tickets-main-layout .filter-row {
        flex-direction: column !important; /* Складываем элементы в колонку */
        align-items: stretch !important;
        gap: 10px !important;
    }

    html body.tickets-main-layout #searchInput {
        width: 100% !important;
        height: 45px !important;
        font-size: 14px !important;
        padding: 10px 15px !important;
    }

    html body.tickets-main-layout .filter-row {
        flex-wrap: wrap !important;
    }

    html body.tickets-main-layout .checkbox-container {
        font-size: 13px !important;
        justify-content: center !important;
        margin-top: 5px !important;
    }

    /* 3. Компактные карточки тикетов */
    html body.tickets-main-layout .tickets-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 15px !important;
        padding: 0 !important;
    }

    /* Стили для самой карточки (предполагаем класс ticket-card или glass-card) */
    html body.tickets-main-layout .tickets-grid > div {
        padding: 15px !important;
        border-radius: 15px !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
    }

    html body.tickets-main-layout .tickets-grid h3 {
        font-size: 16px !important;
        margin-bottom: 8px !important;
    }

    html body.tickets-main-layout .tickets-grid p {
        font-size: 13px !important;
        line-height: 1.4 !important;
        margin-bottom: 10px !important;
    }

    /* Кнопки действий внутри карточки */
    html body.tickets-main-layout .tickets-grid .card-actions {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
    }

    html body.tickets-main-layout .tickets-grid button {
        width: auto !important;
        min-width: 100px;
    }
}