@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');
@import url('https://fonts.googleapis.com/css2?family=Play:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Climate+Crisis:YEAR@1979&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Google+Sans+Flex:opsz,wght@6..144,1..1000&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Flow+Circular&display=swap');

/* ========================================================================== */
/* 1. ГЛОБАЛЬНЫЕ ПЕРЕМЕННЫЕ И ТЕМЫ САЙТА */
/* ========================================================================== */
:root, body.theme-gemini {
    --theme-color: #8ab4f8;
    --theme-color-rgb: 138, 180, 248;
    --bg-image: black;
    --card-bg: rgba(255, 255, 255, 0.03);
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --border-color: rgba(255, 255, 255, 0.1);
}
body.theme-spotify { --theme-color: #1db954; --theme-color-rgb: 29, 185, 84; }
body.theme-chatgpt { --theme-color: #10a37f; --theme-color-rgb: 16, 163, 127; }
body.theme-grok { --theme-color: #00d1ff; --theme-color-rgb: 0, 209, 255; }
body.theme-capcut { --theme-color: #ffffff; --theme-color-rgb: 255, 255, 255; }

/* ========================================================================== */
/* 2. БАЗОВЫЕ СТИЛИ (BODY, АНИМАЦИИ, СКРОЛЛБАРЫ) */
/* ========================================================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }

/* Черный фон держим ТОЛЬКО на html */
html { 
    background-color: #0c0c0c !important; 
    scroll-behavior: smooth; 
    scrollbar-width: none; 
    -ms-overflow-style: none; 
    perspective: none !important; 
}
html::-webkit-scrollbar { display: none; }
a { text-decoration: none; }
img { max-width: 100%; content-visibility: auto; }
textarea, input, select { font-family: "Play", sans-serif; }

/* body делаем прозрачным, чтобы сквозь него светил канвас */
body {
    background-color: transparent !important; 
    font-family: "Jost", sans-serif;
    opacity: 0; 
    visibility: hidden; 
    padding-top: 130px;
    transition: opacity 0.8s ease, filter 0.8s ease, visibility 0.8s;
    overflow-x: hidden; 
    overflow-y: visible;
    filter: none !important; 
    transform: none !important; 
    perspective: none !important;
}
body.ready { opacity: 1 !important; visibility: visible !important; transition: opacity 0.6s ease; display: block !important; }
body.page-exit { opacity: 0 !important; filter: blur(10px) !important; transition: opacity 0.4s ease, filter 0.4s ease !important; }
body.no-scroll, body.banned { overflow: hidden !important; height: 100vh !important; }

/* Канвас партиклов фиксируем под всем контентом, но поверх черного фона html */
#particles-canvas {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: -1 !important;
    pointer-events: none !important;
}

/* ========================================================================== */
/* 3. ШАПКА САЙТА (HEADER, БАЛАНС, ЯЗЫК, ТГ) */
/* ========================================================================== */
.container { width: 100%; margin: 0 auto; position: fixed; }

/* Десктопный хедер */
header.container.desktop-only-header,
header.container:not(.mobile-only-header) {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    background: rgba(0, 0, 0, 0.85) center center !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0px 0px 100px 25px rgba(0, 0, 0);
    padding: 10px 0;
    border-bottom: 1px solid #242424;
    z-index: 9999 !important;
    display: flex !important;
    justify-content: center;
    align-items: center;
    white-space: nowrap;
}

/* На ПК скрываем мобильный хедер и боковое меню */
.mobile-only-header, #mobile-nav, #mobile-menu-overlay { display: none !important; }

/* Логотип */
header > a > img { width: 50px; padding-right: 15px; padding-bottom: 1px; margin-left: 70px; }
header .logo { font-size: 30px; font-weight: 500; margin-left: 100px; font-family: "Train One", sans-serif; background: linear-gradient(90deg, #ffffff 0%, #ffffff 50%, #aa1313 50%, #ee9323 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); transition: 0.5s ease; }
header .logo:hover { background-position: 100% center; text-shadow: 0 0 20px #aa1313, 0 0 40px #ee9323; cursor: default; }
.gradient-text { background: linear-gradient(90deg, #aa1313, #ee9323); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; display: inline-block; }

/* Навигация десктопа */
header nav { width: 100%; }
header nav ul { list-style: none; display: flex; justify-content: center; align-items: center; gap: 67px; margin: 0; padding: 0; }

/* Выравнивание кнопок и SVG строго по одной линии */
header nav ul a,
.gradidi1, .gradidi2, .gradidi4, .gradidi5, .gradidi6, .gradididi, .gradidi7 {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    text-decoration: none;
    white-space: nowrap;
    padding: 9px 0;
    font-size: 20px;
    font-weight: 500;
    font-family: "Play", sans-serif;
    background: linear-gradient(90deg, #ffffff 0%, #dddddd 50%, #cccccc 50%, #aaaaaa 100%);
    background-size: 300% auto;
    background-position: 0% center;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.5s ease;
    position: relative;
    cursor: pointer;
    vertical-align: middle !important;
    line-height: 1 !important;
}

.gradidi1:hover, .gradidi2:hover, .gradidi4:hover, .gradidi5:hover, .gradidi6:hover, .gradididi:hover, .gradidi7:hover {
    background-position: 100% center;
    transform: translateY(-1px);
}

.gradidi1::after, .gradidi2::after, .gradidi4::after, .gradidi5::after, .gradidi6::after, .gradididi::after, .gradidi7::after {
    content: '';
    position: absolute;
    bottom: 2px;
    right: 0;
    width: 0;
    height: 1px;
    background-color: #aaaaaa;
    transition: width 0.3s ease;
}

.gradidi1:hover::after, .gradidi2:hover::after, .gradidi4:hover::after, .gradidi5:hover::after, .gradidi6:hover::after, .gradididi:hover::after {
    width: 100%;
}

/* Иконки в кнопках навигации (без кривых смещений) */
.gradi {
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
    flex-shrink: 0 !important;
    color: #dddddd;
    transition: 0.3s ease;
}
.gradi:hover { color: #ffffff; }

/* Фикс цвета иконки "Назад" */
.f-back-icon { 
    transition: transform 0.3s ease; 
    color: #dddddd !important; /* Принудительно делаем базовый цвет серым/белым */
    fill: currentColor !important; /* Заставляем наследовать цвет от родителя */
}
header nav ul a:hover .f-back-icon { 
    transform: translateX(-3px); 
    color: #ffffff !important; /* Ярко-белая при наведении */
}

/* Правый блок (Баланс, Язык, Профиль, ТГ) */
header.container > div[style*="align-items: center"] {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

/* Баланс */
.header-balance-wrap { display: flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.06); padding: 6px 12px 6px 16px; border-radius: 14px; font-size: 14.5px; font-weight: 600; color: #fff; transition: all 0.3s ease; margin-right: 4px; }
.header-balance-wrap:hover { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.1); }
.header-balance-amount { color: #fff !important; font-weight: bold; }
.header-balance-btn { background: transparent !important; color: var(--theme-main, #ff7043) !important; border: none; padding: 0 5px; font-size: 26px !important; line-height: 1; font-weight: 300; cursor: pointer; transition: 0.2s cubic-bezier(0.25, 1, 0.5, 1); box-shadow: none !important; display: flex; align-items: center; justify-content: center; }
.header-balance-btn:hover { transform: scale(1.2); text-shadow: 0 0 15px var(--theme-main, #ff7043); }

/* Язык */
.lang-switch-wrapper { position: relative; margin: 0; font-family: 'Play', sans-serif; z-index: 100; }
.header-lang-btn { display: flex; align-items: center; justify-content: center; gap: 8px; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.06); color: #fff; padding: 10px 16px; border-radius: 14px; font-size: 14px; font-weight: bold; cursor: pointer; transition: 0.3s ease; user-select: none; min-width: 95px; }
.header-lang-btn:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.15); }
.lang-arrow { font-size: 10px; transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1); color: #888; }
.lang-dropdown { position: absolute; top: calc(100% + 10px); left: 0; width: 100%; min-width: 110px; background: rgba(17, 17, 17, 0.95); backdrop-filter: blur(20px); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; opacity: 0; visibility: hidden; transform: translateY(-10px); transition: 0.3s cubic-bezier(0.25, 1, 0.5, 1); box-shadow: 0 15px 35px rgba(0,0,0,0.6); }
.lang-dropdown.open { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-option { padding: 12px 16px; color: #ccc; font-size: 14px; font-weight: bold; cursor: pointer; transition: 0.2s ease; display: flex; align-items: center; justify-content: flex-start; gap: 12px; }
.lang-option:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.lang-flag-img { 
    width: 20px !important; 
    height: 20px !important; 
    min-width: 20px !important; 
    min-height: 20px !important; 
    padding: 0 !important; /* Убиваем паразитный отступ от шапки */
    margin: 0 !important;
    border-radius: 50% !important; 
    object-fit: cover !important; 
    aspect-ratio: 1 / 1 !important;
    display: block !important; 
    flex-shrink: 0 !important; 
}

/* Точечный зум флага РФ, чтобы он идеально заполнил круг */
img[src*="rf.jpg"] {
    transform: scale(1.8) !important;
    transform-origin: center center !important;
}

/* Кнопка с человечком (центровка и белый контур) */
#auth-container {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
}

#auth-container a.send-btn,
#auth-container a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
    text-decoration: none !important;
}

#auth-container a svg, 
#user-name-btn svg {
    width: 20px !important;
    height: 20px !important;
    box-sizing: content-box !important;
    padding: 8px !important;
    border: 2px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.03) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    stroke: #ffffff !important;
    color: #ffffff !important;
    fill: none !important;
    transition: all 0.3s ease !important;
}

#auth-container a:hover svg, 
#user-name-btn:hover svg {
    border-color: var(--theme-main, #ff7043) !important;
    background: rgba(var(--theme-rgb, 255, 112, 67), 0.1) !important;
    transform: scale(1.08) !important;
}

/* Telegram в десктопной шапке */
.header-tg-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 38px !important;
    height: 38px !important;
    margin: 0 35px 0 0 !important;
    padding: 0 !important;
    background: rgba(36, 161, 222, 0.15) !important;
    border: 1px solid rgba(36, 161, 222, 0.4) !important;
    border-radius: 50% !important;
    flex-shrink: 0 !important;
    transition: all 0.3s ease !important;
    cursor: pointer;
}

.header-tg-btn:hover {
    background: #24a1de !important;
    border-color: #24a1de !important;
    transform: scale(1.08) !important;
    box-shadow: 0 0 15px rgba(36, 161, 222, 0.5) !important;
}

.header-tg-btn svg {
    width: 20px !important;
    height: 20px !important;
    padding: 0 !important;
    margin: 0 !important;
    fill: #24a1de !important;
    display: block !important;
    transition: 0.3s ease;
}

.header-tg-btn:hover svg {
    fill: #fff !important;
    filter: brightness(1.2);
}

/* ========================================================================== */
/* 4. ГЛАВНАЯ СТРАНИЦА (HERO, СТАТИСТИКА, БЕНТО) */
/* ========================================================================== */
.hero { margin-top: 150px; margin-bottom: 320px; position: relative; line-height: 1.1; margin-left: 100px; z-index: 4;}
.hero--info { width: 700px; z-index: 2; position: relative; }
.nasvanie { color: rgb(255, 255, 255); font-size: 57px; width: 1300px; letter-spacing: -2px; font-family: "Climate Crisis", sans-serif; font-weight: 500; }
.textik { color: rgb(63, 63, 63); margin-top: 20px; font-size: 25px; width: 210px; cursor: pointer; transition: all 0.4s ease; display: inline-block; font-family: 'Play', sans-serif;}
.textik:hover { text-shadow: 0 0 15px #a7a7a7; transform: translateX(8px); color: rgb(255, 255, 255); }
.ryka img{ width: 1200px; position: absolute; margin-top: -80px; padding-left: 200px; margin-left: 200px; right: 0px; top: 70px; pointer-events: none; user-select: none; z-index: 1; }

.stats-banner { width: 100%; background: rgba(0, 0, 0, 0.171) !important; backdrop-filter: blur(10px) !important; -webkit-backdrop-filter: blur(10px) !important; margin: -60px 0 !important; padding: 120px 40px; box-sizing: border-box; display: flex; justify-content: center; position: relative; z-index: 4; -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 120px, #000 calc(100% - 120px), transparent 100%); mask-image: linear-gradient(to bottom, transparent 0%, #000 120px, #000 calc(100% - 120px), transparent 100%); }
.bento-stat-grid { display: flex; flex-direction: row; gap: 20px; width: 100%; max-width: 1720px; justify-content: space-between; }
.bento-stat-item { flex: 1; min-width: 0; background: rgba(255, 255, 255, 0.02); border: 1px solid rgba(255, 255, 255, 0.05); border-radius: 20px; padding: 32px 28px; display: flex; flex-direction: row; justify-content: space-between; align-items: center; box-sizing: border-box; gap: 20px; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important; }
.bento-stat-item:hover { background: rgba(255, 255, 255, 0.04) !important; border-color: rgba(var(--theme-color-rgb), 0.2) !important; transform: translateY(-2px); }
.bento-stat-content { display: flex; flex-direction: column; gap: 6px; text-align: left; }
.bento-stat-title { font-size: 24px; font-weight: 800; color: #ffffff; line-height: 1.2; }
.bento-stat-desc { font-size: 13.5px; color: #747474; line-height: 1.45; font-family: 'Play', sans-serif;}
.bento-stat-icon { flex: 0 0 42px; width: 42px; height: 42px; color: rgba(255, 255, 255, 0.35); display: flex; align-items: center; justify-content: center; transition: color 0.3s ease; }
.bento-stat-icon svg { width: 100%; height: 100%; display: block; }
.bento-review-arrow { width: 28px; height: 28px; border-radius: 50%; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.1); color: #747474; display: flex; align-items: center; justify-content: center; transition: all 0.3s ease; }
.bento-stat-item:hover .bento-review-arrow { color: var(--theme-color) !important; background: rgba(var(--theme-color-rgb), 0.1) !important; border-color: var(--theme-color) !important; box-shadow: 0 0 10px rgba(var(--theme-color-rgb), 0.3); transform: translateX(3px); }

/* ========================================================================== */
/* 5. КАТАЛОГ ТОВАРОВ И ПАРТИКЛЫ */
/* ========================================================================== */
.features { position: relative; overflow: hidden; background: rgba(0, 0, 0, 0.562) !important; backdrop-filter: blur(10px) !important; -webkit-backdrop-filter: blur(10px) !important; border-top: 1px solid rgba(39, 39, 39, 0.5); border-bottom: 1px solid rgba(39, 39, 39, 0.5); padding: 60px 0; width: 100%; z-index: 4; display: flex; justify-content: center; box-shadow: 0px -60px 100px -20px rgba(0, 0, 0, 0.5) !important; border-radius: 7%; }
.features-container { display: flex !important; flex-direction: row !important; align-items: flex-start !important; justify-content: space-between !important; gap: 103px !important; width: 100%; position: relative; z-index: 2; }
.features-info { flex: 0 0 20px !important; display: flex !important; flex-direction: column !important; margin-left: 100px; }
.features-products { flex: 1 !important; min-width: 0 !important; display: flex !important; flex-direction: column !important; }
.products-wrapper { display: flex; flex-direction: row; gap: 30px; flex: 0 0 auto; }

.premium-title, .premium-title1 { font-size: 28px; font-weight: 700; background: linear-gradient(135deg, #ffffff 0%, #a3a3a3 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 24px; filter: drop-shadow(0px 4px 12px rgba(255, 255, 255, 0.15)); font-family: 'Play', sans-serif; }
.faq-mini-btn { display: inline-block; margin-top: 10px; padding: 6px 16px; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 20px; color: rgba(255, 255, 255, 0.6); text-decoration: none; font-size: 13px; transition: all 0.3s ease; }
.faq-mini-btn:hover { border-color: var(--theme-color) !important; color: white !important; background: rgba(var(--theme-color-rgb), 0.1) !important; }

/* Категории */
.catalog-menu { display: flex; flex-direction: row; flex-wrap: wrap; gap: 15px; margin-bottom: 25px; justify-content: flex-start; }
.catalog-btn { padding: 12px 20px; border-radius: 12px; font-weight: bold; font-size: 14px; transition: all 0.3s ease; display: flex; align-items: center; justify-content: center; user-select: none; width: auto; box-sizing: border-box; background: #111; color: #ccc; border: 1px solid #333; cursor: pointer !important; font-family: 'Google Sans Flex', sans-serif;}
.catalog-btn.active { border: 2px solid var(--theme-color) !important; background: rgba(var(--theme-color-rgb), 0.1) !important; color: white !important; box-shadow: 0 0 15px rgba(var(--theme-color-rgb), 0.3) !important; cursor: default !important; pointer-events: none !important; }
.catalog-btn:hover { border: 1px solid rgb(80, 80, 80) !important; }
.catalog-btn.disabled { border: 1px solid #333; background: #111; color: #666; cursor: not-allowed; }

/* Карточки Товаров */
.knopkas { background: #2e2e2e1e; border-radius: 25px; padding: 0 !important; width: 390px; min-height: 520px; display: flex; flex-direction: column; box-sizing: border-box; overflow: hidden; }
.card-v1 { border: 1px solid rgba(var(--theme-color-rgb), 0.3) !important; box-shadow: none !important; transition: none !important; }
.card-v1:hover { border-color: rgba(var(--theme-color-rgb), 0.3) !important; box-shadow: none !important; transform: none !important; }
.card-image-box { width: 100%; margin: 0; padding: 0; }
.card-image-box img { width: 100%; height: 180px; object-fit: cover; display: block; }
.card-info-box { padding: 25px 20px 20px 20px; display: flex; flex-direction: column; flex-grow: 1; text-align: left; }
.knopkas h1 { color: #fff; font-size: 26px; font-weight: 800; margin: 0; margin-bottom: 10px; letter-spacing: 0.5px; font-family: "Play", sans-serif; }
.card-divider { height: 1px; background: rgba(255, 255, 255, 0.08); width: 92%; margin: 12px 0; }
.product-price { margin-bottom: 20px; text-align: left; }
.new-price { color: var(--theme-color) !important; font-size: 26px; font-weight: bold; transition: color 0.4s ease; }
.price-note { color: #555; font-size: 14px; font-weight: normal; letter-spacing: 0.5px; }

/* Баннеры-Обложки */
.premium-banner { width: 100%; height: 100%; background: linear-gradient(to bottom, #050505 0%, #0a0a0a 100%); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.premium-banner::before { content: ''; position: absolute; width: 150%; height: 150%; background: radial-gradient(circle at center, rgba(var(--theme-color-rgb), 0.2) 0%, transparent 60%); top: -25%; left: -25%; z-index: 0; }
.premium-banner::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-image: radial-gradient(circle, rgba(255,255,255,0.15) 1px, transparent 1px); background-size: 22px 22px; opacity: 0.3; z-index: 1; }
.banner-text-wrapper { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; -webkit-box-reflect: below -5px linear-gradient(transparent, transparent 50%, rgba(255,255,255,0.3)); margin-bottom: 15px; }
.banner-months { font-size: 65px; font-weight: 900; color: #ffffff; line-height: 0.9; margin: 0; letter-spacing: -2px; margin-top: 10px; text-shadow: 0 0 30px rgba(var(--theme-color-rgb), 0.9); }
.banner-subtitle { font-size: 13px; color: var(--theme-color); text-transform: uppercase; letter-spacing: 6px; font-weight: bold; margin-top: 5px; margin-right: -6px; }
.banner-floor { position: absolute; bottom: 0; left: 0; width: 100%; height: 1px; background: linear-gradient(90deg, transparent, var(--theme-color), transparent); box-shadow: 0 -5px 25px 2px var(--theme-color); z-index: 3; opacity: 0.8; }

/* Фичи */
.feature-badges-container { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.feature-badge-item { background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.05); border-radius: 10px; padding: 10px 14px; color: #aaa; font-size: 13px; line-height: 1.3; text-align: left; }
.card-v1 .btn-purchase { margin-top: auto; background: var(--theme-color) !important; color: #fff !important; border: none; padding: 16px; border-radius: 12px; font-weight: bold; font-size: 16px; cursor: pointer; box-shadow: none !important; transition: all 0.45s cubic-bezier(0.25, 1, 0.5, 1); }
.card-v1 .btn-purchase:hover { opacity: 0.85; transform: translateY(-3px); }
.card-v1 .btn-purchase:active { transform: translateY(1px); opacity: 1; transition: all 0.1s ease; }

/* Скидки */
.discount-accordion-wrapper { margin-bottom: 20px; width: 100%; }
.discount-accordion-toggle { display: flex; justify-content: space-between; align-items: center; background: rgba(var(--theme-rgb, 255,112,67), 0.08); border: 1px solid rgba(var(--theme-rgb, 255,112,67), 0.3); color: var(--theme-main); padding: 12px 18px; border-radius: 14px; font-size: 13px; font-weight: bold; cursor: pointer; transition: all 0.3s ease; user-select: none; font-family: "Google Sans Flex", sans-serif; }
.discount-accordion-toggle:hover { background: rgba(var(--theme-rgb, 255,112,67), 0.15); box-shadow: 0 5px 15px rgba(var(--theme-rgb, 255,112,67), 0.2); }
.discount-arrow { transition: transform 0.3s ease; font-size: 10px; }
.discount-accordion-wrapper.open .discount-arrow { transform: rotate(180deg); }
.discount-accordion-content { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.4s cubic-bezier(0.25, 1, 0.5, 1); opacity: 0; }
.discount-accordion-wrapper.open .discount-accordion-content { grid-template-rows: 1fr; opacity: 1; margin-top: 10px; }
.discount-badges-container { overflow: hidden; display: flex; flex-direction: column; gap: 8px; }
.discount-badge-item { background: rgba(var(--theme-rgb, 255,112,67), 0.04); border: 1px dashed rgba(var(--theme-rgb, 255,112,67), 0.4); border-radius: 12px; padding: 12px 16px; display: flex; align-items: center; gap: 14px; text-align: left; }
.discount-badge-item .disc-icon { font-size: 20px; display: flex; align-items: center; justify-content: center; }
.discount-badge-item .disc-text { display: flex; flex-direction: column; gap: 3px; }
.discount-badge-item .disc-title { color: #fff; font-size: 13.5px; font-weight: bold; }
.discount-badge-item .disc-timer { color: var(--theme-main); font-size: 11.5px; font-weight: 600; opacity: 0.9; }

/* Карточки "Скоро..." */
.knopkas.coming-soon {
    border: 1px dashed rgba(255, 255, 255, 0.15) !important;
    border-radius: 25px !important;
    background: rgba(255, 255, 255, 0.015) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    opacity: 0.45;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    padding: 40px 30px !important;
    box-sizing: border-box !important;
    width: 390px;
    flex-shrink: 0; /* Запрещаем сжиматься в шпроты */
    min-height: 520px !important;
    transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1) !important;
    cursor: default;
}

/* Жестко уважаем скрытие карточек скриптом */
.knopkas.coming-soon[style*="display: none"] {
    display: none !important;
}

/* Включаем flex ТОЛЬКО тогда, когда карточка активна для выбранной категории */
.knopkas.coming-soon:not([style*="display: none"]) {
    display: flex !important;
}

.knopkas.coming-soon:hover {
    opacity: 0.85;
    border-color: rgba(var(--theme-color-rgb), 0.4) !important;
    background: rgba(255, 255, 255, 0.03) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(var(--theme-color-rgb), 0.05);
}

.knopkas.coming-soon h1 {
    color: #888 !important;
    font-size: 30px !important;
    font-weight: 800 !important;
    margin: 0 !important;
    font-family: "Play", sans-serif !important;
    letter-spacing: 1px !important;
    transition: color 0.3s ease;
}

.knopkas.coming-soon:hover h1 {
    color: #fff !important;
}

.knopkas.coming-soon p {
    color: #555 !important;
    font-size: 14.5px !important;
    margin: 12px 0 0 0 !important;
    font-family: "Play", sans-serif !important;
    line-height: 1.5 !important;
    max-width: 240px !important;
    transition: color 0.3s ease;
}

.knopkas.coming-soon:hover p {
    color: #888 !important;
}

/* Динамические шары на фоне */
.features-bg-spheres { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.f-sphere { position: absolute; border-radius: 50%; background: var(--theme-color); filter: blur(140px); opacity: 0.18; transition: background 0.6s ease; }
.sphere-1 { width: 450px; height: 450px; top: -10%; left: 5%; animation: floatSpheres 18s ease-in-out infinite alternate; }
.sphere-2 { width: 500px; height: 500px; bottom: -15%; right: 2%; animation: floatSpheres 25s ease-in-out infinite alternate-reverse; animation-delay: -3s; }
@keyframes floatSpheres { 0% { transform: translate(0, 0) scale(1); } 33% { transform: translate(40px, -60px) scale(1.05); } 66% { transform: translate(-30px, 30px) scale(0.95); } 100% { transform: translate(20px, -20px) scale(1.02); } }

/* ========================================================================== */
/* 6. БЛОК "О НАС" (БЕНТО-СЕТКА И ПАРТИКЛЫ) */
/* ========================================================================== */
#ktomi, .fonkrytoi { position: relative !important; width: 100%; height: auto; background: rgba(0, 0, 0, 0.562) !important; backdrop-filter: blur(10px) !important; -webkit-backdrop-filter: blur(10px) !important; border-radius: 7% !important; border-top: 1px solid rgba(39, 39, 39, 0.5) !important; border-bottom: 1px solid rgba(39, 39, 39, 0.5) !important; box-shadow: 0px 40px 100px -20px rgba(0, 0, 0, 0.5) !important; padding: 50px 20px 80px 20px !important; margin: 5px 0 !important; z-index: 4 !important; }
.onas1 { display: flex; flex-direction: column; align-items: center; width: 100%; }
.onas1 h3 { color: #fff; text-align: center !important; font-size: 42px; 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: 0 auto !important; max-width: 600px; font-family: "Play", sans-serif; }
.onas1 p { color: rgb(73, 73, 73); font-size: 19px; text-align: center !important; text-decoration: underline; text-decoration-skip-ink: none; text-underline-offset: 4px; margin: 5px auto 60px auto !important; font-family: "Play", sans-serif; }
.viewport-container { width: 100%; max-width: 1740px; margin: 0 auto; position: relative; }
.bento-screen { display: flex; width: 100%; height: 600px; gap: 40px; }
.bento-item { position: relative; border-radius: 40px; background: rgba(255, 255, 255, 0.015) !important; border: 1px solid rgb(255, 255, 255) !important; backdrop-filter: blur(25px) !important; -webkit-backdrop-filter: blur(25px) !important; cursor: default; box-shadow: none !important; overflow: hidden !important; display: flex; flex-direction: column; justify-content: center; transition: border-color 0.4s ease !important; }
.bento-item:hover { background: rgba(255, 255, 255, 0.015) !important; border-color: rgba(255, 255, 255, 0.8) !important; }
.plate-content { position: relative; z-index: 3; pointer-events: none; }
.blue, .red { flex: 1.3; } .bento-center { flex: 3; display: flex; flex-direction: column; gap: 40px; } .yellow, .green { flex: 1; }
.bento-item h1 { color: #ffffff !important; font-size: 42px !important; font-weight: 800 !important; margin: 0 0 22px 0 !important; letter-spacing: 0.5px; text-align: left; font-family: "Play", sans-serif; }
.bento-item p { color: #888888 !important; font-size: 19px !important; line-height: 1.7 !important; margin: 0 !important; text-align: left; font-family: "Play", sans-serif; }
.bento-item.blue .plate-content, .bento-item.red .plate-content { padding: 75px 60px; } .bento-item.yellow .plate-content, .bento-item.green .plate-content { padding: 60px 65px; } .bento-item.green h1, .bento-item.green p { text-align: right !important; }

/* Глоу и частицы */
.plate-glow-effects { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.blue .plate-sphere { position: absolute; width: 120%; height: 80%; background: radial-gradient(ellipse at center, rgba(var(--theme-rgb, 255, 112, 67), 0.27) 0%, transparent 75%) !important; top: -20%; left: -10%; filter: blur(60px); }
.red .plate-sphere { position: absolute; width: 120%; height: 80%; background: radial-gradient(ellipse at center, rgba(var(--theme-rgb, 255, 112, 67), 0.27) 0%, transparent 75%) !important; bottom: -20%; left: -10%; filter: blur(60px); }
.yellow .plate-sphere { position: absolute; width: 80%; height: 120%; background: radial-gradient(ellipse at center, rgba(var(--theme-rgb, 255, 112, 67), 0.27) 0%, transparent 75%) !important; top: -10%; left: -20%; filter: blur(60px); }
.green .plate-sphere { position: absolute; width: 80%; height: 120%; background: radial-gradient(ellipse at center, rgba(var(--theme-rgb, 255, 112, 67), 0.27) 0%, transparent 75%) !important; top: -10%; right: -20%; left: auto; filter: blur(60px); }
.plate-dust { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.plate-dust span { position: absolute; width: calc(3px + sin(var(--i) * 77deg) * 2px); height: calc(3px + sin(var(--i) * 77deg) * 2px); background: rgba(var(--theme-rgb, 255, 112, 67), 0.65); border-radius: 50%; animation-play-state: paused !important; }
.bento-item:hover .plate-dust span { animation-play-state: running !important; }
.blue .plate-dust span { top: -30px; left: calc(50% + sin(var(--i) * 137.5deg) * 45%); animation: flyDown calc(8s + var(--i) * 0.2s) infinite linear; animation-delay: calc(var(--i) * -0.9s) !important; }
.red .plate-dust span { bottom: -30px; top: auto; left: calc(50% + sin(var(--i) * 137.5deg) * 45%); animation: flyUp calc(8s + var(--i) * 0.2s) infinite linear; animation-delay: calc(var(--i) * -0.9s) !important; }
.yellow .plate-dust span { left: -30px; top: calc(50% + sin(var(--i) * 137.5deg) * 45%); animation: flyRight calc(12s + var(--i) * 0.2s) infinite linear; animation-delay: calc(var(--i) * -0.9s) !important; }
.green .plate-dust span { right: -30px; left: auto; top: calc(50% + sin(var(--i) * 137.5deg) * 45%); animation: flyLeft calc(12s + var(--i) * 0.2s) infinite linear; animation-delay: calc(var(--i) * -0.9s) !important; }

@keyframes flyDown { 0% { transform: translateY(0) scale(1.2); opacity: 0; } 10% { opacity: 0.8; } 55% { opacity: 0.8; } 75% { transform: translateY(600px) scale(0); opacity: 0; } 100% { transform: translateY(800px) scale(0); opacity: 0; } }
@keyframes flyUp { 0% { transform: translateY(0) scale(1.2); opacity: 0; } 10% { opacity: 0.8; } 55% { opacity: 0.8; } 75% { transform: translateY(-600px) scale(0); opacity: 0; } 100% { transform: translateY(-800px) scale(0); opacity: 0; } }
@keyframes flyRight { 0% { transform: translateX(0) scale(1.2); opacity: 0; } 10% { opacity: 0.8; } 55% { opacity: 0.8; } 75% { transform: translateX(900px) scale(0); opacity: 0; } 100% { transform: translateX(1200px) scale(0); opacity: 0; } }
@keyframes flyLeft { 0% { transform: translateX(0) scale(1.2); opacity: 0; } 10% { opacity: 0.8; } 55% { opacity: 0.8; } 75% { transform: translateX(-900px) scale(0); opacity: 0; } 100% { transform: translateX(-1200px) scale(0); opacity: 0; } }

/* ========================================================================== */
/* 7. ФУТЕР (ПРЕМИУМ) */
/* ========================================================================== */
.sw-footer { width: 100% !important; margin-top: 150px !important; background: #030303 !important; box-shadow: 0px 0px 100px 50px rgba(0, 0, 0, 0.5); padding-top: 60px; padding-bottom: 40px; position: relative; z-index: 10; font-family: 'Google Sans Flex', sans-serif; }
.footer-top-fade { position: absolute; top: -150px; left: 0; width: 100%; height: 150px; background: linear-gradient(to bottom, transparent 0%, #030303 100%); pointer-events: none; }
.footer-content-wrapper { max-width: 1650px; margin: 0 auto; padding: 0 20px; position: relative; z-index: 5; }
.footer-header { display: flex; justify-content: space-between; align-items: center; position: relative; min-height: 50px; }
.f-logo { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: 28px; font-weight: 900; letter-spacing: 2px; text-transform: uppercase; background: linear-gradient(45deg, var(--theme-main), var(--theme-grad)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; text-shadow: 0 0 30px rgba(255, 112, 67, 0.2); }
.f-contact-btn { display: inline-flex; align-items: center; gap: 12px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); padding: 12px 24px; border-radius: 12px; color: #aaa; font-size: 14.5px; text-decoration: none; transition: all 0.3s ease; position: relative; z-index: 2; }
.f-tg-btn { background: rgba(51, 144, 236, 0.1); color: #3390ec; border-color: rgba(51, 144, 236, 0.25); padding: 12px 18px; }
.f-contact-btn:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.f-tg-btn:hover { background: rgba(51, 144, 236, 0.2); color: #fff; box-shadow: 0 0 20px rgba(51, 144, 236, 0.4); }
.f-divider { width: 100%; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05) 15%, rgba(255, 255, 255, 0.05) 85%, transparent); margin: 35px 0; }
.footer-nav { display: flex; gap: 120px; justify-content: flex-start; margin-bottom: 40px; }
.f-col h4 { color: #ffffff; font-size: 1.1rem; margin-bottom: 25px; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; font-family: "Play", sans-serif; }
.f-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 15px; font-family: "Play", sans-serif; }
.f-col ul li a { color: #888; text-decoration: none; font-size: 15px; cursor: pointer; position: relative; display: inline-block; transition: color 0.3s ease; font-family: "Play", sans-serif; }
.f-col ul li a::after { content: ''; position: absolute; width: 0; height: 2px; bottom: -6px; left: 0; background: #ffffff; transition: width 0.3s cubic-bezier(0.25, 1, 0.5, 1); box-shadow: 0 0 10px rgba(255, 255, 255, 0.6); }
.f-col ul li a:hover { color: #ffffff; }
.f-col ul li a:hover::after { width: 100%; }
.footer-legal-bar { display: flex; gap: 30px; margin-bottom: 25px; }
.footer-legal-bar a { color: #444; font-size: 13.5px; text-decoration: none; cursor: pointer; transition: color 0.3s ease; font-family: "Play", sans-serif; }
.footer-legal-bar a:hover { color: #fff; }
.footer-copyright { color: #444; font-size: 0.8rem; text-align: center; letter-spacing: 0.5px; line-height: 1.8; }
.footer-copyright p { margin: 4px 0; font-family: "Play", sans-serif;}
.footer-emblem-container { position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; pointer-events: none; z-index: 1; }
.footer-bg-emblem { position: absolute; right: 12%; top: 55%; width: 280px; transform: translateY(-50%); opacity: 0.35; mix-blend-mode: screen; -webkit-mask-image: radial-gradient(circle at 50% 50%, rgba(0,0,0,1) 25%, transparent 65%); mask-image: radial-gradient(circle at 50% 50%, rgba(0,0,0,1) 25%, transparent 65%); }
.footer-bg-emblem img { width: 100%; height: auto; display: block; filter: contrast(1.1) brightness(0.7); }

/* ========================================================================== */
/* 8. МОДАЛЬНЫЕ ОКНА И КОМПОНЕНТЫ (ПРОФИЛЬ, ТОП-АП, ОПЛАТА, ТОСТЫ, ЛИГАЛ) */
/* ========================================================================== */
/* ПРОФИЛЬ (ОСНОВНЫЕ СТИЛИ) */
.profile-modal-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0, 0, 0, 0.85); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); z-index: 999999 !important; display: flex; justify-content: center; align-items: center; opacity: 0; pointer-events: none; transition: all 0.3s ease; }
.profile-modal-overlay.active { opacity: 1; pointer-events: auto; }

.profile-card { 
    background: rgba(12, 12, 12, 0.95) !important; 
    border: 1px solid rgba(var(--theme-rgb, 255, 112, 67), 0.35); 
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(var(--theme-rgb, 255, 112, 67), 0.15); 
    border-radius: 24px; 
    width: 90%; 
    max-width: 850px; 
    height: 580px; 
    display: flex; 
    overflow: hidden; 
    position: relative; 
    font-family: 'Play', sans-serif; 
}

.profile-sidebar { width: 260px; background: rgba(255, 255, 255, 0.02); border-right: 1px solid rgba(255, 255, 255, 0.08); padding: 25px 15px; display: flex; flex-direction: column; justify-content: space-between; }

/* Шапка сайдбара на ПК */
.sidebar-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 0 5px;
}

/* Возвращаем сочный стиль слову "Профиль" */
.profile-header-title {
    font-size: 18px;
    font-weight: bold;
    color: var(--theme-main, #ff7043);
    letter-spacing: 0.5px;
}

/* Стрелочка и оверлей на ПК скрыты */
.sidebar-toggle-btn { display: none !important; }
.profile-backdrop-mobile { display: none; }

/* Объединенная кнопка меню */
.profile-nav-btn { 
    width: 100%; 
    padding: 12px 16px; 
    margin-bottom: 8px; 
    border-radius: 12px; 
    background: transparent; 
    border: 1px solid transparent; 
    color: #aaa; 
    text-align: left; 
    font-size: 15px; 
    font-weight: 600; 
    cursor: pointer; 
    transition: all 0.25s ease; 
    display: flex !important; 
    align-items: center !important; 
    gap: 12px !important; 
    font-family: 'Play', sans-serif; 
}

.profile-nav-btn:hover { color: #fff; background: rgba(255, 255, 255, 0.05); }
.profile-nav-btn.active { color: #fff; background: rgba(var(--theme-rgb, 255, 112, 67), 0.15); border-color: rgba(var(--theme-rgb, 255, 112, 67), 0.4); }

.profile-nav-btn .nav-icon {
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.profile-nav-btn .nav-text {
    display: inline-block;
    white-space: nowrap;
}

.profile-bottom-nav { border-top: 1px solid rgba(255, 255, 255, 0.08); padding-top: 15px; display: flex; flex-direction: column; gap: 8px; }
.admin-nav-btn { background: rgba(255, 59, 48, 0.15) !important; color: #ff4d4d !important; border: 1px solid rgba(255, 77, 77, 0.3) !important; }
.admin-nav-btn:hover { background: rgba(255, 59, 48, 0.3) !important; color: #fff !important; }
.logout-nav-btn { background: rgba(255, 59, 48, 0.08) !important; border: 1px solid rgba(255, 59, 48, 0.25) !important; color: #ff6b6b !important; transition: all 0.3s ease !important; }
.logout-nav-btn:hover { background: rgba(255, 59, 48, 0.22) !important; border-color: rgba(255, 59, 48, 0.6) !important; color: #ffffff !important; box-shadow: 0 0 20px rgba(255, 59, 48, 0.4) !important; }

.profile-content { flex: 1; padding: 30px; overflow-y: auto; color: #fff; position: relative; }
.profile-tab-page { display: none; } 
.profile-tab-page.active { display: block; animation: fadeIn 0.3s ease; }
.profile-stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; margin-top: 20px; }
.profile-stat-box { background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 16px; padding: 18px; }
.profile-stat-box .title { color: #888; font-size: 13px; margin-bottom: 6px; }
.profile-stat-box .value { color: #fff; font-size: 20px; font-weight: bold; }
/* Анимация подсветки карточки баланса при клике на "+" */
@keyframes balanceGlowPulse {
    0% {
        border-color: rgba(255, 255, 255, 0.08) !important;
        box-shadow: 0 0 0px rgba(var(--theme-rgb, 255, 112, 67), 0), inset 0 0 0px rgba(var(--theme-rgb, 255, 112, 67), 0) !important;
        transform: scale(1);
    }
    50% {
        border-color: var(--theme-main, #ff7043) !important;
        box-shadow: 0 0 30px rgba(var(--theme-rgb, 255, 112, 67), 0.8), inset 0 0 15px rgba(var(--theme-rgb, 255, 112, 67), 0.25) !important;
        transform: scale(1.02);
    }
    100% {
        border-color: rgba(255, 255, 255, 0.08) !important;
        box-shadow: 0 0 0px rgba(var(--theme-rgb, 255, 112, 67), 0), inset 0 0 0px rgba(var(--theme-rgb, 255, 112, 67), 0) !important;
        transform: scale(1);
    }
}

.balance-highlight-active {
    animation: balanceGlowPulse 1.2s ease-in-out forwards !important;
    z-index: 10;
}
.clickable-stat { cursor: pointer; transition: all 0.3s ease; position: relative; }
.clickable-stat:hover { background: rgba(255, 255, 255, 0.06); border-color: rgba(var(--theme-rgb, 255, 112, 67), 0.4); }
.stat-arrow { position: absolute; right: 18px; bottom: 22px; width: 20px; height: 20px; stroke: #666; transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1); }
.clickable-stat:hover .stat-arrow { transform: translateX(6px); stroke: var(--theme-main, #ff7043); }



.close-profile-btn { position: absolute; top: 20px; right: 20px; z-index: 10; background: transparent; border: none; color: #888; cursor: pointer; padding: 6px; display: flex; align-items: center; justify-content: center; border-radius: 10px; transition: all 0.25s cubic-bezier(0.25, 1, 0.5, 1); }
.close-profile-btn:hover { color: var(--theme-main, #ff7043); background: rgba(var(--theme-rgb, 255, 112, 67), 0.15); transform: scale(1.1); }

/* Оплата и пополнение */
#pb-expanded-view input[type="radio"], #pb-expanded-view input[type="checkbox"], input.tu-method-radio, input.tu-currency-radio, input#tuAgreeCheckbox { display: none !important; opacity: 0 !important; visibility: hidden !important; position: absolute !important; left: -9999px !important; appearance: none !important; }
#pb-expanded-view { display: none; opacity: 0; position: absolute !important; top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important; width: 100% !important; height: 100% !important; background: #111 !important; z-index: 999 !important; padding: 35px 40px !important; box-sizing: border-box !important; border-radius: inherit !important; flex-direction: column; transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1) !important; }
.tu-amount-input { width: 100%; box-sizing: border-box; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; color: #fff; padding: 14px 40px 14px 16px; font-size: 16px; font-weight: bold; outline: none; transition: 0.3s; -moz-appearance: textfield; }
.tu-amount-input:focus { border-color: var(--theme-main); background: rgba(255,255,255,0.05); }
.tu-amount-input::-webkit-outer-spin-button, .tu-amount-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.tu-quick-btn { flex: 1; background: rgba(255,255,255,0.03); color: #aaa; border: 1px solid rgba(255,255,255,0.08); padding: 12px; border-radius: 10px; font-weight: bold; cursor: pointer; transition: 0.2s; font-size: 13px; font-family: 'Play', sans-serif; }
.tu-quick-btn:hover { background: rgba(var(--theme-rgb, 255,112,67), 0.1); color: var(--theme-main); border-color: var(--theme-main); transform: translateY(-2px); }
input.tu-method-radio:checked + .pm-pay-content { background: rgba(var(--theme-rgb, 255,112,67), 0.08) !important; border-color: var(--theme-main) !important; box-shadow: 0 10px 25px rgba(var(--theme-rgb, 255,112,67), 0.15) !important; transform: translateY(-2px) !important; }
input.tu-method-radio:checked + .pm-pay-content .pm-pay-icon { background: rgba(var(--theme-rgb, 255,112,67), 0.15) !important; color: var(--theme-main) !important; }
input.tu-method-radio:checked + .pm-pay-content .pm-pay-title { color: #fff !important; }
input.tu-currency-radio:checked + .pm-currency-btn { background: var(--theme-main) !important; color: #fff !important; border-color: var(--theme-main) !important; box-shadow: 0 5px 15px rgba(var(--theme-rgb, 255,112,67), 0.3) !important; }
input#tuAgreeCheckbox:checked + .pm-checkmark { background: var(--theme-main) !important; border-color: var(--theme-main) !important; }
input#tuAgreeCheckbox:checked + .pm-checkmark::after { content: '✔'; color: #fff; font-size: 13px; font-weight: bold; }
input#tuAgreeCheckbox:checked ~ .pm-label-text { color: #fff; }

/* =========================================================
   СИСТЕМА УВЕДОМЛЕНИЙ (TOASTS) — СВЕРХУ ПО ЦЕНТРУ
   ========================================================= */
#toastContainer, 
#toast-container, 
.toast-container, 
html > #toast-container {
    position: fixed !important;
    top: 25px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    bottom: auto !important;
    right: auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 12px !important;
    z-index: 2147483647 !important;
    pointer-events: none !important;
    margin: 0 !important;
    padding: 0 !important;
    width: auto !important;
    max-width: 90vw !important;
}

/* Сама плашка тоста (поддерживает ВСЕ классы сайта: toast-item, sw-toast, toast-notification) */
.sw-toast, 
.toast-item, 
.toast-notification {
    pointer-events: auto !important;
    min-width: 280px !important;
    max-width: 440px !important;
    width: fit-content !important;
    background: rgba(14, 14, 18, 0.95) !important;
    backdrop-filter: blur(25px) !important;
    -webkit-backdrop-filter: blur(25px) !important;
    border-radius: 16px !important;
    padding: 14px 22px !important;
    font-family: 'Play', sans-serif !important;
    font-size: 14.5px !important;
    font-weight: 600 !important;
    color: #ffffff !important; /* Ярко-белый читаемый текст */
    text-align: center !important;
    position: relative !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    border: 1px solid var(--theme-main, #ff7043) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 15px rgba(var(--theme-rgb, 255, 112, 67), 0.25) !important;
    animation: toastSlideDown 0.35s cubic-bezier(0.25, 1, 0.5, 1) forwards !important;
}

/* Текст и значки внутри */
.toast-item span, 
.sw-toast span, 
.toast-notification span,
.toast-notification {
    color: #ffffff !important;
    letter-spacing: 0.3px !important;
}

.close-toast {
    color: #888 !important;
    transition: all 0.2s ease !important;
    margin-left: 12px !important;
    cursor: pointer !important;
}
.close-toast:hover {
    color: #ffffff !important;
    transform: scale(1.15) !important;
}

/* 1. ОШИБКА (КРАСНАЯ РАМКА И СВЕЧЕНИЕ) */
.toast-item.error, 
.sw-toast.error, 
.toast-notification.error,
.toast-notification:not(.toast-success):not(.toast-info) {
    border: 1px solid #ff4d4d !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(255, 77, 77, 0.35) !important;
}

/* 2. УСПЕШНО (ЗЕЛЕНАЯ РАМКА И СВЕЧЕНИЕ) */
.toast-item.success, 
.sw-toast.success, 
.toast-notification.toast-success, 
.toast-notification.success {
    border: 1px solid #00ff88 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 255, 136, 0.35) !important;
}

/* 3. ИНФО / ПРОПУЩЕННЫЕ (СИНИЙ НЕОН) */
.toast-item.info, 
.sw-toast.info, 
.toast-notification.toast-info, 
.toast-notification.info {
    border: 1px solid #00d1ff !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 209, 255, 0.35) !important;
}

/* Анимация плавного вылета сверху вниз */
@keyframes toastSlideDown { 
    from { transform: translateY(-40px); opacity: 0; } 
    to { transform: translateY(0); opacity: 1; } 
}

/* Анимация исчезновения вверх */
.sw-toast.fade-out, 
.toast-item.fade-out, 
.toast-notification.fade-out { 
    animation: toastSlideUp 0.3s cubic-bezier(0.25, 1, 0.5, 1) forwards !important; 
}
@keyframes toastSlideUp { 
    from { transform: translateY(0); opacity: 1; } 
    to { transform: translateY(-40px); opacity: 0; } 
}

/* Текст и крестик внутри */
.toast-item span, .sw-toast span {
    color: #ffffff !important;
    letter-spacing: 0.3px !important;
}

.close-toast {
    color: #888 !important;
    transition: all 0.2s ease !important;
}
.close-toast:hover {
    color: #ffffff !important;
    transform: scale(1.15) !important;
}

/* 1. ОШИБКА (КРАСНЫЙ КОНТУР И СВЕЧЕНИЕ) */
.toast-item.error, .sw-toast.error {
    border: 1px solid #ff4d4d !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(255, 77, 77, 0.35) !important;
}

/* 2. УСПЕШНО (ЗЕЛЕНЫЙ КОНТУР И СВЕЧЕНИЕ) */
.toast-item.success, .sw-toast.success {
    border: 1px solid #00ff88 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 255, 136, 0.35) !important;
}

/* 3. ИНФО / ПРОПУЩЕННЫЕ (СИНИЙ КОНТУР И СВЕЧЕНИЕ) */
.toast-item.info, .sw-toast.info {
    border: 1px solid #00d1ff !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 209, 255, 0.35) !important;
}

/* Анимация появления и плавного исчезновения */
@keyframes slideInRight { 
    from { transform: translateX(120%); opacity: 0; } 
    to { transform: translateX(0); opacity: 1; } 
}

.sw-toast.fade-out, .toast-item.fade-out { 
    animation: fadeOutRight 0.4s cubic-bezier(0.25, 1, 0.5, 1) forwards !important; 
}
@keyframes fadeOutRight { 
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(120%); opacity: 0; } 
}

/* Контакты ТГ Оверлей */
.contact-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); display: none; 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: relative; width: 340px; padding: 40px 20px; z-index: 10005; background: rgba(255, 255, 255, 0.05) !important; 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 0.4s ease, transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); transform: scale(0.8) translateY(20px); opacity: 0; overflow: hidden;}
.contact-overlay.active .contact-modal { transform: scale(1) translateY(0) !important; opacity: 1; }
.tg-3d-inner { background: transparent !important; padding: 0; position: relative; z-index: 2; }
.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-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-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; 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); } }

/* ========================================================================== */
/* 9. ВНУТРЕННИЕ СТРАНИЦЫ (АВТОРИЗАЦИЯ, ТИКЕТЫ, АДМИНКА) */
/* ========================================================================== */
.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; background-color: var(--input-bg); }
.hidden { display: none !important; }

/* Поддержка (чаты) */
.poderka { width: 100%; height: auto; display: flex; flex-direction: column; align-items: center; position: relative; top: 60px; margin-top: 10px !important; }
.support-chat-container { position: relative; width: 100%; max-width: 900px !important; height: 700px; overflow: hidden; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(25px); border-radius: 32px; border: 1px solid rgba(255, 255, 255, 0.15); box-shadow: 0 30px 60px rgba(0,0,0,0.8); z-index: 1; }
.chats-wrapper { display: flex; width: 200%; height: 100%; transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1); }
.chat-panel { width: 50%; height: 100%; flex-shrink: 0; display: flex; flex-direction: column; box-sizing: border-box; position: relative; }
.chat-header { border-bottom: 1px solid rgba(255, 255, 255, 0.08); padding: 25px 30px; background: rgba(255,255,255,0.02); display: flex; justify-content: space-between; align-items: center; }
.chat-messages-box { flex: 1 1 auto !important; height: 100% !important; max-height: none !important; overflow-y: auto !important; display: flex !important; flex-direction: column !important; gap: 15px !important; padding: 25px 30px !important; -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 5%, black 95%, transparent 100%); mask-image: linear-gradient(to bottom, transparent 0%, black 5%, black 95%, transparent 100%); }
.chat-msg-wrapper { display: flex; flex-direction: column; width: fit-content !important; max-width: 85% !important; animation: msgFadeInUp 0.3s ease-out forwards; }
.chat-msg-wrapper.user { align-self: flex-end; align-items: flex-end; }
.chat-msg-wrapper.system { align-self: flex-start; align-items: flex-start; }
.chat-msg { padding: 14px 18px; border-radius: 18px; font-size: 15px; line-height: 1.5; font-family: "Google Sans Flex", sans-serif; box-shadow: 0 4px 15px rgba(0,0,0,0.2); word-break: normal !important; overflow-wrap: break-word !important; white-space: pre-wrap !important; position: relative; }
.system-msg.ai { background: rgba(255, 255, 255, 0.05); color: #fff; border-bottom-left-radius: 4px; border: 1px solid rgba(255, 255, 255, 0.08); }
.system-msg.admin { background: rgba(255, 77, 77, 0.1); color: #fff; border-bottom-left-radius: 4px; border: 1px solid rgba(255, 77, 77, 0.3); }
.user-msg { background: linear-gradient(135deg, var(--theme-main) 0%, var(--theme-grad) 100%); color: #fff; border-bottom-right-radius: 4px; border: none; }
.chat-input-area { flex: 0 0 auto !important; padding: 20px 30px; background: rgba(0,0,0,0.4); border-top: 1px solid rgba(255,255,255,0.08); display: flex; flex-direction: column; gap: 15px; }

/* Админка */
.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: 40px; color: #fff; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5); max-width: 1200px; margin: 0 auto 100px auto; }
.admin-table { width: 100%; border-collapse: collapse; margin-top: 20px; background: rgba(0, 0, 0, 0.397); border: 1px solid rgba(255,255,255,0.1); }
.admin-table th, .admin-table td { border: 1px solid rgb(49, 49, 49); padding: 12px; text-align: left; }
.admin-table th { border-bottom: 1px solid rgb(136, 136, 136); background: rgba(70, 70, 70, 0.315); }

/* Бан-плашка */
.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; display: none; align-items: center !important; justify-content: center !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; } }

/* ========================================================================== */
/* 10. СТРАНИЦА ПОДДЕРЖКИ (ЧАТЫ, ТИКЕТЫ) */
/* ========================================================================== */

.poderka { display: flex !important; justify-content: center !important; max-width: 1000px !important; width: 100% !important; margin: 90px auto 40px auto !important; padding: 0 20px !important; box-sizing: border-box !important; position: relative !important; flex: 1 0 auto; }
.poderka::before { content: "" !important; position: absolute !important; top: 5% !important; left: 10% !important; right: 10% !important; bottom: 5% !important; background: linear-gradient(135deg, rgba(var(--theme-rgb, 255, 112, 67), 0.15) 0%, transparent 100%) !important; border-radius: 40px !important; filter: blur(80px) !important; z-index: 0 !important; pointer-events: none !important; }

/* Переключатель чатов */
.chat-switcher { position: absolute; top: -65px; left: 50%; transform: translateX(-50%); background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.15); color: #ccc; padding: 12px 24px; border-radius: 20px; cursor: pointer; z-index: 10; font-family: 'Play', sans-serif; font-size: 15px; font-weight: bold; transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1); backdrop-filter: blur(10px); white-space: nowrap; }
.chat-switcher:hover { background: rgba(var(--theme-rgb, 255, 112, 67), 0.15); border-color: var(--theme-main, #ff7043); color: #fff; box-shadow: 0 5px 20px rgba(var(--theme-rgb, 255, 112, 67), 0.3); }

/* Контейнер чатов */
.support-chat-container { position: relative; width: 100%; max-width: 900px !important; height: 700px; overflow: hidden; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(25px); border-radius: 32px; border: 1px solid rgba(255, 255, 255, 0.15); box-shadow: 0 30px 60px rgba(0,0,0,0.8); z-index: 1; transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1) !important; }
.support-chat-container:hover { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important; }
.chats-wrapper { display: flex; width: 200%; height: 100%; transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1); }
.chat-panel { width: 50%; height: 100%; flex-shrink: 0; display: flex; flex-direction: column; box-sizing: border-box; position: relative;}

/* Шапка чата */
.chat-header { border-bottom: 1px solid rgba(255, 255, 255, 0.08); padding: 25px 30px; background: rgba(255,255,255,0.02); display: flex; justify-content: space-between; align-items: center; }
.chat-header h3 { margin: 0; font-size: 22px; font-weight: 700; color: #fff; font-family: "Play", sans-serif; display: flex; align-items: center; gap: 10px; }
.chat-subtitle { color: #888; font-size: 14px; margin: 5px 0 0 0; font-family: "Play", sans-serif; }

/* Статус онлайн */
.chat-status-indicator { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: bold; color: #00ff88; background: rgba(0, 255, 136, 0.1); padding: 6px 12px; border-radius: 20px; border: 1px solid rgba(0, 255, 136, 0.2); }
.status-dot { width: 8px; height: 8px; background: #00ff88; border-radius: 50%; box-shadow: 0 0 8px #00ff88; animation: pulseDot 2s infinite; }
@keyframes pulseDot { 0%, 100% { opacity: 0.5; transform: scale(0.8); } 50% { opacity: 1; transform: scale(1.2); } }

/* Инфо иконка AI */
.ai-info-icon { display: inline-flex; align-items: center; justify-content: center; width: 14px; height: 14px; background: rgba(255, 255, 255, 0.1); color: #ccc; border-radius: 50%; font-size: 10px; font-weight: bold; margin-left: 6px; cursor: help; border: 1px solid rgba(255, 255, 255, 0.2); position: relative; transition: all 0.2s; }
.ai-info-icon:hover { color: #fff; background: var(--theme-main, #ff7043); border-color: var(--theme-main, #ff7043); }
.ai-info-icon::after { content: "Это виртуальный AI-ассистент (на базе DeepSeek). Он анализирует ваши вопросы и отвечает на основе базы знаний. Если он не поможет — переключитесь на живую поддержку."; position: absolute; top: 150%; left: 50%; transform: translateX(-50%); width: 220px; background: #111; color: #fff; padding: 10px 12px; border-radius: 10px; font-size: 12px; font-family: 'Play', sans-serif; font-weight: normal; line-height: 1.4; border: 1px solid var(--theme-main, #ff7043); box-shadow: 0 10px 25px rgba(0,0,0,0.6); z-index: 100; text-align: center; opacity: 0; visibility: hidden; transition: 0.2s; pointer-events: none; }
.ai-info-icon:hover::after { opacity: 1; visibility: visible; }

/* Кнопка очистки */
.clear-chat-btn { background: rgba(255, 77, 77, 0.1); border: 1px solid rgba(255, 77, 77, 0.3); color: #ff4d4d; border-radius: 10px; padding: 6px 12px; font-size: 12px; font-weight: bold; cursor: pointer; transition: 0.2s; font-family: 'Play', sans-serif; }
.clear-chat-btn:hover { background: #ff4d4d; color: #fff; box-shadow: 0 0 10px rgba(255,77,77,0.5); }

/* Зона сообщений */
.chat-messages-box { flex: 1 1 auto !important; height: 100% !important; max-height: none !important; overflow-y: auto !important; display: flex !important; flex-direction: column !important; gap: 15px !important; padding: 25px 30px !important; -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 5%, black 95%, transparent 100%); mask-image: linear-gradient(to bottom, transparent 0%, black 5%, black 95%, transparent 100%); }
.chat-messages-box::-webkit-scrollbar { width: 6px; }
.chat-messages-box::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 10px; }

/* Сообщения */
.chat-msg-wrapper { display: flex; flex-direction: column; width: fit-content !important; max-width: 85% !important; animation: msgFadeInUp 0.3s ease-out forwards; }
.chat-msg-wrapper.user { align-self: flex-end; align-items: flex-end; }
.chat-msg-wrapper.system { align-self: flex-start; align-items: flex-start; }
.chat-sender-name { font-size: 11px; font-weight: bold; color: #888; margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.5px; }
.chat-msg { padding: 14px 18px; border-radius: 18px; font-size: 15px; line-height: 1.5; font-family: "Google Sans Flex", sans-serif; box-shadow: 0 4px 15px rgba(0,0,0,0.2); word-break: normal !important; overflow-wrap: break-word !important; white-space: pre-wrap !important; position: relative; }
.system-msg.ai { background: rgba(255, 255, 255, 0.05); color: #fff; border-bottom-left-radius: 4px; border: 1px solid rgba(255, 255, 255, 0.08); }
.system-msg.admin { background: rgba(255, 77, 77, 0.1); color: #fff; border-bottom-left-radius: 4px; border: 1px solid rgba(255, 77, 77, 0.3); }
.user-msg { background: linear-gradient(135deg, var(--theme-main, #ff7043) 0%, var(--theme-grad, #ee9323) 100%); color: #fff; border-bottom-right-radius: 4px; border: none; }
.chat-msg img { max-width: 100%; border-radius: 8px; margin-top: 10px; cursor: zoom-in; border: 1px solid rgba(255,255,255,0.1); }
.msg-time { font-size: 10px; color: rgba(255,255,255,0.4); float: right; margin-left: 12px; margin-top: 6px; display: flex; align-items: center;}
.msg-edited-icon { display: inline-flex; align-items: center; margin-left: 5px; color: rgba(255,255,255,0.4); }

/* Анимации сообщений */
@keyframes msgFadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes msgFadeOutDown { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(-10px); } }
.typing-wrapper.removing { animation: msgFadeOutDown 0.2s ease-in forwards; }
@keyframes tgHighlightAnim { 0% { background-color: rgba(255,255,255,0.15); border-radius: 8px; box-shadow: 0 0 0 6px rgba(255,255,255,0.15); } 100% { background-color: transparent; border-radius: 8px; box-shadow: 0 0 0 0 transparent; } }
.msg-highlighted .chat-msg { animation: tgHighlightAnim 2s ease-out forwards !important; }

/* Печатает... */
.typing-indicator { display: inline-flex; align-items: center; gap: 4px; padding: 16px 18px !important; }
.typing-dot { width: 6px; height: 6px; background: #fff; border-radius: 50%; animation: typingDotAnim 1.4s infinite ease-in-out; opacity: 0.5;}
.typing-dot:nth-child(1) { animation-delay: 0s; } .typing-dot:nth-child(2) { animation-delay: 0.2s; } .typing-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingDotAnim { 0%, 100% { transform: translateY(0); opacity: 0.5; } 50% { transform: translateY(-4px); opacity: 1; } }

/* Разделитель даты */
.chat-date-separator { text-align: center; margin: 15px 0; position: relative; z-index: 1; }
.chat-date-separator span { background: rgba(255, 255, 255, 0.05); color: #888; padding: 4px 12px; border-radius: 12px; font-size: 11px; font-weight: bold; text-transform: uppercase; letter-spacing: 0.5px; font-family: 'Play', sans-serif; }

/* Зона ввода */
.chat-input-area { flex: 0 0 auto !important; padding: 20px 30px; background: rgba(0,0,0,0.4); border-top: 1px solid rgba(255,255,255,0.08); display: flex; flex-direction: column; gap: 15px; z-index: 5;}
/* Зона ввода */
.chat-input-wrapper { 
    display: flex; 
    align-items: center !important; /* ВАЖНО: Выравниваем кнопку и текст строго по центру (было flex-end) */
    gap: 12px; 
    background: rgba(255,255,255,0.03); 
    border: 1px solid rgba(255,255,255,0.1); 
    border-radius: 20px; 
    padding: 10px 15px; 
    transition: all 0.3s; 
}
.chat-input-wrapper:focus-within { border-color: var(--theme-main, #ff7043); box-shadow: inset 0 2px 10px rgba(0,0,0,0.3), 0 0 15px rgba(var(--theme-rgb, 255, 112, 67), 0.2); background: rgba(255,255,255,0.05); }
#liveInput, #adminChatInput, #aiInput { 
    font-size: 16px !important; 
    font-family: 'Play', sans-serif !important; 
    flex: 1; 
    background: transparent; 
    border: none; 
    color: #fff; 
    outline: none; 
    resize: none; 
    padding: 0 !important; /* ВАЖНО: Убиваем кривые отступы, зашитые в HTML */
    margin: 0 !important;
    line-height: normal !important;
}
#liveInputWrapper, #adminChatInputWrapper { border-top-left-radius: 0 !important; border-top-right-radius: 0 !important; }

/* Кнопки ввода */
.send-btn-chat, .attach-btn { width: 44px; height: 44px; border-radius: 50%; background: transparent !important; border: none !important; color: #888 !important; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.2s ease !important; flex-shrink: 0; box-shadow: none !important; }
.send-btn-chat:hover:not(:disabled), .attach-btn:hover { color: var(--theme-main, #ff7043) !important; background: rgba(255,255,255,0.08) !important; transform: none !important; filter: none !important; }

/* Быстрые ответы AI */
.chat-opt-btn { background: rgba(255, 255, 255, 0.02); border: 1px solid rgba(255, 255, 255, 0.07); color: #b5b5c0; padding: 12px 16px; border-radius: 12px; cursor: pointer; font-size: 14px; text-align: left; transition: all 0.2s; font-family: "Play", sans-serif; }
.chat-opt-btn:hover { background: linear-gradient(90deg, rgba(var(--theme-rgb, 255, 112, 67), 0.1) 0%, rgba(var(--theme-rgb, 255, 112, 67), 0.05) 100%); border-color: rgba(var(--theme-rgb, 255, 112, 67), 0.4); color: #fff; }
.chat-options-container { display: flex !important; flex-direction: column !important; gap: 8px !important; margin-top: auto !important; }
.wide-mode .chat-options-container { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 10px !important; }

/* Вложения и превью (Стиль TG) */
.chat-attachments-bar { display: none; flex-direction: column; gap: 10px; padding: 10px 15px; background: rgba(0,0,0,0.5); border-bottom: 1px solid rgba(255,255,255,0.05); width: 100%; box-sizing: border-box; border-top-left-radius: 16px; border-top-right-radius: 16px; }
.chat-attachments-bar.active { display: flex; }
.preview-reply-block { display: flex; align-items: center; justify-content: space-between; background: rgba(var(--theme-rgb, 255, 112, 67), 0.1); border-left: 3px solid var(--theme-main, #ff7043); padding: 8px 12px; border-radius: 6px; width: 100%; box-sizing: border-box;}
.preview-reply-content { display: flex; flex-direction: column; overflow: hidden; flex: 1; padding-right: 10px; }
.preview-reply-text { color: #ccc; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 90%; }
.cancel-reply-btn { color: #888; cursor: pointer; font-size: 22px; transition: 0.2s; display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; }
.cancel-reply-btn:hover { color: #ff4d4d; background: rgba(255,77,77,0.1); }
.msg-reply-block { background: rgba(0,0,0,0.2); border-left: 3px solid var(--theme-main, #ff7043); padding: 6px 10px; border-radius: 6px; margin-bottom: 6px; cursor: pointer; display: flex; flex-direction: column; overflow: hidden; transition: 0.2s; }
.msg-reply-block:hover { background: rgba(255,255,255,0.05); }
.msg-reply-name { font-size: 11px; color: var(--theme-main, #ff7043); font-weight: bold; margin-bottom: 2px; display: flex; align-items: center; gap: 6px; }
.msg-reply-block .msg-reply-text { font-size: 12px; color: #bbb; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

/* Сетка картинок */
.preview-images-grid { display: flex; gap: 10px; overflow-x: auto; margin-top: 5px; }
.preview-img-item { position: relative; width: 60px; height: 60px; border-radius: 8px; overflow: hidden; border: 1px solid rgba(255,255,255,0.2); flex-shrink: 0; }
.preview-img-item img { width: 100%; height: 100%; object-fit: cover; }
.preview-img-remove { position: absolute; top: 2px; right: 2px; background: rgba(0,0,0,0.7); color: white; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; cursor: pointer; transition: 0.2s; }
.preview-img-remove:hover { background: #ff4d4d; }
.tg-grid { display: grid; gap: 2px; border-radius: 12px; overflow: hidden; margin-top: 8px; width: 100%; max-width: 320px; }
.tg-grid img { width: 100%; height: 100%; object-fit: cover; cursor: pointer; transition: 0.2s; }
.tg-grid img:hover { filter: brightness(1.1); }
.tg-grid-1 { grid-template-columns: 1fr; } .tg-grid-2 { grid-template-columns: 1fr 1fr; height: 160px; } .tg-grid-3 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; height: 220px; } .tg-grid-3 img:nth-child(1) { grid-row: 1 / span 2; } .tg-grid-4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; height: 220px; }

/* Лайтбокс */
.image-lightbox { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.9); backdrop-filter: blur(5px); z-index: 9999999; align-items: center; justify-content: center; }
.image-lightbox img { max-width: 90vw; max-height: 90vh; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,0.8); object-fit: contain; }
.image-lightbox-close { position: absolute; top: 20px; right: 30px; font-size: 40px; color: #fff; cursor: pointer; transition: 0.2s; }
.image-lightbox-close:hover { color: #ff4d4d; transform: scale(1.1); }

/* Тосты подтверждения очистки чата и удаления сообщений (спрятаны за экраном до клика) */
#aiClearConfirmToast,
#chatDeleteConfirmToast { 
    position: fixed !important; 
    bottom: 30px !important; 
    right: -450px !important; 
    width: 320px !important; 
    background: rgba(10, 10, 15, 0.95) !important; 
    backdrop-filter: blur(20px) !important; 
    border: 1px solid rgba(255, 77, 77, 0.4) !important; 
    border-radius: 16px !important; 
    padding: 20px !important; 
    box-shadow: 0 15px 35px rgba(0,0,0,0.8) !important; 
    z-index: 999999 !important; 
    transition: right 0.4s cubic-bezier(0.25, 1, 0.5, 1) !important; 
    font-family: 'Play', sans-serif !important; 
    overflow: hidden !important; 
}

#aiClearConfirmToast.show,
#chatDeleteConfirmToast.show { 
    right: 30px !important; 
}

#aiClearConfirmToast .toast-timer-bar { 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    height: 3px; 
    background: #ff4d4d; 
    width: 100%; 
    box-shadow: 0 0 10px #ff4d4d; 
}

/* ========================================================================== */
/* 11. СТРАНИЦА FAQ (БАЗА ЗНАНИЙ SPLIT-VIEW) */
/* ========================================================================== */

.faq-wrapper {
    background: rgba(10, 10, 14, 0.72) !important;
    backdrop-filter: blur(28px) !important;
    -webkit-backdrop-filter: blur(28px) !important;
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.85);
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    max-width: 1280px;
    width: 94%;
    margin: 60px auto 60px auto;
    padding: 45px;
    box-sizing: border-box;
    position: relative;
    z-index: 2;
}

.faq-header {
    text-align: left;
    color: white;
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.faq-header h1 {
    font-size: 38px;
    font-weight: 800;
    margin: 0 0 8px 0;
    font-family: "Play", sans-serif;
    letter-spacing: 0.5px;
}
.faq-header p {
    color: #888;
    font-size: 16px;
    margin: 0;
    font-family: "Play", sans-serif;
}

/* Двухколоночная сетка: Вопросы слева, Ответ справа */
.faq-split-layout {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 35px;
    align-items: start;
}

/* Левая колонка со списком вопросов */
.faq-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-height: 680px;
    overflow-y: auto;
    padding-right: 10px;
}
.faq-sidebar-nav::-webkit-scrollbar { width: 5px; }
.faq-sidebar-nav::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.12); border-radius: 10px; }

.faq-nav-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.faq-group-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--theme-main, #ff7043);
    font-size: 12.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
    padding-left: 6px;
    font-family: "Play", sans-serif;
}

.faq-nav-item {
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 13px 16px;
    color: #aaa;
    font-size: 14.5px;
    font-weight: 600;
    font-family: "Play", sans-serif;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.25s cubic-bezier(0.25, 1, 0.5, 1);
}

.faq-item-svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: #666;
    transition: color 0.25s ease, transform 0.25s ease;
}

.faq-nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateX(3px);
}
.faq-nav-item:hover .faq-item-svg {
    color: #fff;
}

.faq-nav-item.active {
    background: rgba(var(--theme-rgb, 255, 112, 67), 0.12);
    border-color: var(--theme-main, #ff7043);
    color: #ffffff;
    box-shadow: 0 8px 25px rgba(var(--theme-rgb, 255, 112, 67), 0.18);
}
.faq-nav-item.active .faq-item-svg {
    color: var(--theme-main, #ff7043);
    transform: scale(1.1);
}

/* Правая колонка с оформленным текстом */
.faq-display-pane {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 40px;
    min-height: 520px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: sticky;
    top: 110px;
}

.faq-article {
    display: none;
    animation: faqFadeIn 0.3s ease forwards;
}
.faq-article.active {
    display: block;
}

@keyframes faqFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.faq-article-badge {
    display: inline-block;
    background: rgba(var(--theme-rgb, 255, 112, 67), 0.12);
    color: var(--theme-main, #ff7043);
    border: 1px solid rgba(var(--theme-rgb, 255, 112, 67), 0.3);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 18px;
    font-family: "Play", sans-serif;
}

.faq-article h2 {
    color: #fff;
    font-size: 28px;
    font-weight: 800;
    margin: 0 0 20px 0;
    line-height: 1.25;
    font-family: "Play", sans-serif;
}

.faq-article p {
    color: #bbb;
    font-size: 16px;
    line-height: 1.75;
    margin: 0 0 18px 0;
    font-family: 'Google Sans Flex', sans-serif;
}

.faq-article ul {
    margin: 0 0 20px 0;
    padding-left: 20px;
    color: #bbb;
    font-size: 15.5px;
    line-height: 1.75;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faq-article a {
    color: var(--theme-main, #ff7043);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: opacity 0.2s;
}
.faq-article a:hover { opacity: 0.8; }

.faq-article code {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    padding: 3px 8px;
    border-radius: 6px;
    font-family: monospace;
}

/* Выделенные информационные блоки внутри ответа */
.faq-callout {
    padding: 20px 24px;
    border-radius: 16px;
    margin: 20px 0;
    font-size: 15px;
    line-height: 1.65;
    color: #ddd;
}
.faq-callout strong {
    display: block;
    color: #fff;
    font-size: 16px;
    margin-bottom: 8px;
    font-family: "Play", sans-serif;
}
.faq-callout ul { margin-bottom: 0; }

.faq-callout.info {
    background: rgba(var(--theme-rgb, 255, 112, 67), 0.06);
    border: 1px solid rgba(var(--theme-rgb, 255, 112, 67), 0.25);
}
.faq-callout.warning {
    background: rgba(238, 147, 35, 0.08);
    border: 1px solid rgba(238, 147, 35, 0.3);
}
.faq-callout.danger {
    background: rgba(255, 77, 77, 0.08);
    border: 1px solid rgba(255, 77, 77, 0.3);
}

/* Кнопки действий внизу ответа */
.faq-article-actions {
    display: flex;
    gap: 14px;
    margin-top: 28px;
    flex-wrap: wrap;
}
.faq-action-btn {
    padding: 13px 24px;
    border-radius: 12px;
    font-family: "Play", sans-serif;
    font-size: 14.5px;
    font-weight: 700;
    text-decoration: none !important;
    transition: all 0.25s ease;
}
.faq-action-btn.primary {
    background: var(--theme-main, #ff7043);
    color: #fff !important;
    box-shadow: 0 8px 20px rgba(var(--theme-rgb, 255, 112, 67), 0.3);
}
.faq-action-btn.primary:hover { transform: translateY(-2px); filter: brightness(1.1); }
.faq-action-btn.secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #ccc !important;
    border: 1px solid rgba(255, 255, 255, 0.12);
}
.faq-action-btn.secondary:hover { background: rgba(255, 255, 255, 0.1); color: #fff !important; }

/* ========================================================================== */
/* 12. ПАНЕЛЬ АДМИНИСТРАТОРА (ADMIN-PANEL) */
/* ========================================================================== */

/* Каркас админки */
.admin-wrapper { max-width: 1300px; margin: 120px auto 40px; padding: 0 20px; box-sizing: border-box; }
.admin-header-block { margin-bottom: 40px; }
.admin-header-block h1 { font-size: 38px; font-weight: 800; color: #fff; margin: 0 0 10px 0; font-family: "Play", sans-serif; text-shadow: 0 0 30px rgba(255, 255, 255, 0.15); }
.admin-header-block p { color: #666; font-size: 16px; margin: 0; font-family: "Play", sans-serif; }

/* Bento-статистика в админке */
.admin-stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-bottom: 40px; }
.bento-stat-card { background: rgba(0, 0, 0, 0.562); backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 24px; padding: 25px; display: flex; align-items: center; justify-content: space-between; transition: all 0.4s ease; }
.bento-stat-card:hover { border-color: rgba(var(--theme-color-rgb, 255, 112, 67), 0.4); transform: translateY(-2px); }
.stat-card-info h3 { margin: 0 0 6px 0; font-size: 13px; color: #777; text-transform: uppercase; letter-spacing: 1px; font-family: "Play", sans-serif; }
.stat-card-info .stat-value { font-size: 28px; font-weight: 800; color: #fff; font-family: "Play", sans-serif; }
.stat-card-icon { width: 48px; height: 48px; background: rgba(255, 255, 255, 0.02); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 14px; display: flex; align-items: center; justify-content: center; color: var(--theme-main, #ff7043); }

/* Основные Bento-секции админки */
.admin-bento-section { background: rgba(0, 0, 0, 0.562); backdrop-filter: blur(25px); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 28px; padding: 30px; margin-bottom: 30px; }
.admin-bento-section h2 { margin-top: 0; margin-bottom: 25px; font-size: 22px; font-weight: 700; color: #fff; font-family: "Play", sans-serif; }

/* Элементы управления */
.admin-input-group { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.admin-input { background: rgba(255, 255, 255, 0.03) !important; border: 1px solid rgba(255, 255, 255, 0.08) !important; color: #fff !important; padding: 14px 18px !important; border-radius: 12px !important; font-size: 15px; flex: 1; min-width: 200px; box-sizing: border-box; }
.admin-input:focus { border-color: rgba(var(--theme-color-rgb, 255, 112, 67), 0.5) !important; outline: none; }
.admin-btn { background: var(--theme-main, #ff7043) !important; color: #fff !important; border: 1px solid var(--theme-main, #ff7043) !important; padding: 14px 28px !important; border-radius: 12px !important; font-size: 15px; font-weight: 600; cursor: pointer; font-family: "Play", sans-serif; transition: all 0.3s; }
.admin-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(var(--theme-color-rgb, 255, 112, 67), 0.4); }
.admin-btn-secondary { background: rgba(255,255,255,0.04) !important; border: 1px solid rgba(255,255,255,0.1) !important; color: #ccc !important; }

/* Таблицы админки */
.admin-table-wrapper { width: 100%; overflow-x: auto; border-radius: 16px; border: 1px solid rgba(255,255,255,0.06); }
.admin-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 14.5px; }
.admin-table th { background: rgba(255,255,255,0.02); color: #fff; padding: 16px 20px; font-weight: 700; border-bottom: 1px solid rgba(255,255,255,0.08); font-family: "Play", sans-serif; }
.admin-table td { padding: 16px 20px; color: #aaa; border-bottom: 1px solid rgba(255,255,255,0.04); font-family: "Play", sans-serif; }
.admin-table tr:hover td { background: rgba(255,255,255,0.01); color: #fff; }
.action-btn { padding: 6px 12px; border-radius: 6px; cursor: pointer; font-weight: bold; font-size: 12px; border: none; transition: 0.2s; font-family: "Play", sans-serif; }
.action-btn:hover { opacity: 0.8; }
.action-link { color: var(--theme-main, #ff7043); text-decoration: none; font-weight: 600; cursor: pointer; transition: color 0.2s; }
.action-link:hover { color: #fff; text-decoration: underline; }
.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); }

/* Модалка Токенов в админке */
#tokensModal { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0,0,0,0.8); backdrop-filter: blur(20px); z-index: 99999; display: none; align-items: center; justify-content: center; }
.tokens-modal-content { background: #0c0c0c; border: 1px solid rgba(255,255,255,0.15); border-radius: 24px; width: 95%; max-width: 1400px; height: 85vh; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 30px 70px rgba(0,0,0,0.8); }
.tokens-header { padding: 20px 30px; border-bottom: 1px solid rgba(255,255,255,0.08); display: flex; justify-content: space-between; align-items: center; background: rgba(255,255,255,0.02); }
.tokens-body { display: flex; flex: 1; overflow: hidden; }
.tokens-sidebar { width: 380px; border-right: 1px solid rgba(255,255,255,0.08); display: flex; flex-direction: column; background: rgba(255,255,255,0.01); }
.tokens-search { padding: 15px; border-bottom: 1px solid rgba(255,255,255,0.05); }
.tokens-list { flex: 1; overflow-y: auto; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.token-item { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.05); border-radius: 12px; padding: 15px; cursor: pointer; transition: 0.2s; display: flex; flex-direction: column; gap: 10px; }
.token-item:hover, .token-item.active { border-color: var(--theme-main, #ff7043); background: rgba(var(--theme-color-rgb, 255, 112, 67), 0.05); }
.tokens-viewer { flex: 1; padding: 30px; overflow-y: auto; color: #ccc; }
.close-tokens-btn { background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.1); color: #888; width: 38px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1); }
.close-tokens-btn:hover { background: rgba(255, 77, 77, 0.15); border-color: #ff4d4d; color: #ff4d4d; transform: scale(1.05); box-shadow: 0 0 15px rgba(255, 77, 77, 0.5); }

/* Универсальная админская мини-модалка */
.admin-modal { position: fixed !important; top:0; left:0; width:100vw; height:100vh; background:rgba(0,0,0,0.7); backdrop-filter:blur(15px); z-index:99999; display:flex; align-items:center; justify-content:center; }
.admin-modal-card { background:#111; border:1px solid rgba(255,255,255,0.15); border-radius:24px; padding:35px; width:90%; max-width:460px; }
.admin-modal-card select { width:100%; padding:14px; background:rgba(255,255,255,0.03); border:1px solid rgba(255,255,255,0.08); color:white; border-radius:12px; margin-bottom:20px; font-family: "Play", sans-serif;}

/* Цвета баблов в админке */
.admin-chat-box { flex: 1; overflow-y: auto; padding: 25px; display: flex; flex-direction: column; gap: 15px; }
.admin-chat-box::-webkit-scrollbar { width: 6px; }
.admin-chat-box::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 10px; }
.msg-admin-bg { background: linear-gradient(135deg, var(--theme-main, #ff7043) 0%, var(--theme-grad, #ee9323) 100%); color: #fff; border-bottom-right-radius: 4px; border: none; }
.msg-user-bg { background: rgba(255, 255, 255, 0.05); color: #fff; border-bottom-left-radius: 4px; border: 1px solid rgba(255, 255, 255, 0.08); }
.msg-ai-bg { background: rgba(0, 209, 255, 0.05); color: #00d1ff; border-bottom-left-radius: 4px; border: 1px dashed rgba(0, 209, 255, 0.3); }

/* ========================================================================== */
/* 13. СТРАНИЦА АВТОРИЗАЦИИ (LOGIN) */
/* ========================================================================== */

/* Убираем глобальный отступ шапки (130px), если на странице есть .page-wrapper */
body:has(.page-wrapper) {
    padding-top: 0 !important;
    min-height: 100vh !important;
    overflow: hidden !important;
}

#network-canvas { 
    position: fixed !important; 
    top: 0 !important; 
    left: 0 !important; 
    width: 100vw !important; 
    height: 100vh !important; 
    z-index: 1 !important; 
    pointer-events: none !important; 
}

/* Растягиваем обертку строго на весь экран, чтобы центровка была идеальной */
.page-wrapper { 
    display: flex !important; 
    width: 100vw !important; 
    min-height: 100vh !important; 
    height: 100vh !important;
    position: relative !important; 
    z-index: 2 !important; 
    overflow: hidden !important;
}

/* Левая часть — приветствие (ровно по центру вертикали) */
.left-content { 
    flex: 1 !important; 
    display: flex !important; 
    flex-direction: column !important; 
    justify-content: center !important; 
    align-items: flex-start !important; 
    padding: 0 8% 0 10% !important; 
    position: relative !important; 
    z-index: 5 !important; 
    max-width: 1300px !important;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.5s ease !important;
}

/* Когда панель справа открыта на ПК — чуть сдвигаем левый текст для баланса */
body.form-open .left-content {
    transform: translateX(-25px);
}

.auth-back-nav { margin-bottom: 28px !important; }
.auth-back-nav a { 
    color: #888 !important; 
    text-decoration: none !important; 
    font-size: 15px !important; 
    cursor: pointer !important; 
    position: relative !important; 
    display: inline-flex !important; 
    align-items: center !important; 
    gap: 8px !important; 
    transition: color 0.3s ease !important; 
    font-family: "Play", sans-serif !important; 
}
.auth-back-nav a::after { 
    content: ''; 
    position: absolute; 
    width: 0; 
    height: 2px; 
    bottom: -6px; 
    left: 0; 
    background: #ffffff; 
    transition: width 0.3s cubic-bezier(0.25, 1, 0.5, 1); 
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.6); 
}
.auth-back-nav a:hover { color: #ffffff !important; }
.auth-back-nav a:hover::after { width: 100%; }
.auth-back-nav a:hover .f-back-icon { transform: translateX(-3px); }

.brand-logo { 
    font-size: 28px !important; 
    font-weight: 900 !important; 
    letter-spacing: 2px !important; 
    text-transform: uppercase !important; 
    background: linear-gradient(45deg, var(--theme-main, #ff7043), var(--theme-grad, #ee9323)) !important; 
    -webkit-background-clip: text !important; 
    -webkit-text-fill-color: transparent !important; 
    margin-bottom: 16px !important; 
    font-family: "Play", sans-serif !important; 
}

/* ФИКС: Белый цвет заголовка (был черным) + ровный межстрочный интервал */
.hero-title { 
    color: #ffffff !important; 
    font-size: 54px !important; 
    font-weight: 800 !important; 
    margin: 0 0 20px 0 !important; 
    line-height: 1.12 !important; 
    letter-spacing: -0.5px !important;
    font-family: "Play", sans-serif !important; 
    text-shadow: 0 0 35px rgba(255, 255, 255, 0.15) !important;
}

.hero-subtitle { 
    font-size: 17px !important; 
    color: #999 !important; 
    max-width: 520px !important; 
    line-height: 1.65 !important; 
    margin-bottom: 38px !important; 
    font-family: 'Google Sans Flex', sans-serif !important;
}

#open-auth-btn { 
    background: var(--theme-main, #ff7043) !important; 
    color: #fff !important; 
    border: none !important; 
    padding: 16px 38px !important; 
    border-radius: 14px !important; 
    font-size: 16px !important; 
    font-weight: 700 !important; 
    cursor: pointer !important; 
    transition: all 0.3s ease !important; 
    box-shadow: 0 10px 30px rgba(var(--theme-rgb, 255, 112, 67), 0.4) !important; 
    font-family: "Play", sans-serif !important; 
}
#open-auth-btn:hover { 
    transform: translateY(-2px) !important; 
    box-shadow: 0 15px 40px rgba(var(--theme-rgb, 255, 112, 67), 0.6) !important; 
}

/* Боковая панель авторизации (прибита к правому краю от самого верха до самого низа) */
.auth-side-panel { 
    position: fixed !important; 
    right: 0 !important; 
    top: 0 !important; 
    bottom: 0 !important;
    width: 460px !important; 
    height: 100vh !important; 
    background: rgba(0, 0, 0, 0.82) !important; 
    backdrop-filter: blur(30px) !important; 
    -webkit-backdrop-filter: blur(30px) !important; 
    transform: translateX(100%) !important; 
    transition: transform 0.55s cubic-bezier(0.25, 1, 0.5, 1) !important; 
    z-index: 100 !important; 
    display: flex !important; 
    flex-direction: column !important; 
    border-left: 1px solid rgba(255, 255, 255, 0.12) !important; 
    box-shadow: -25px 0 70px rgba(0, 0, 0, 0.85) !important; 
}
body.form-open .auth-side-panel { 
    transform: translateX(0) !important; 
}

.panel-header { 
    display: flex !important; 
    justify-content: flex-end !important; 
    align-items: center !important; 
    padding: 28px 40px 10px !important; 
}
.close-panel-btn { 
    background: rgba(255, 255, 255, 0.05) !important; 
    border: 1px solid rgba(255, 255, 255, 0.1) !important; 
    color: #fff !important; 
    width: 38px !important; 
    height: 38px !important; 
    border-radius: 50% !important; 
    display: flex !important; 
    align-items: center !important; 
    justify-content: center !important; 
    cursor: pointer !important; 
    transition: all 0.2s ease !important; 
}
.close-panel-btn:hover { 
    background: rgba(255, 112, 67, 0.15) !important; 
    border-color: var(--theme-main, #ff7043) !important;
    color: var(--theme-main, #ff7043) !important;
    transform: scale(1.08);
}

.auth-content { 
    padding: 10px 40px 35px !important; 
    flex-grow: 1 !important; 
    overflow-y: auto !important; 
    display: flex !important; 
    flex-direction: column !important; 
}
.auth-content::-webkit-scrollbar { width: 4px; }
.auth-content::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 4px; }

/* ФИКС: Белый цвет заголовка "Вход" / "Регистрация" */
.auth-title { 
    color: #ffffff !important; 
    font-size: 32px !important; 
    font-weight: 800 !important; 
    margin: 0 0 8px 0 !important; 
    font-family: "Play", sans-serif !important;
}
.auth-subtitle { 
    color: #888 !important; 
    font-size: 14px !important; 
    margin-bottom: 26px !important; 
    font-family: 'Google Sans Flex', sans-serif !important;
}

/* Переключатель Вход / Регистрация */
.auth-toggle-group { 
    display: flex !important; 
    background: rgba(255, 255, 255, 0.03) !important; 
    border-radius: 14px !important; 
    padding: 4px !important; 
    margin-bottom: 26px !important; 
    border: 1px solid rgba(255, 255, 255, 0.08) !important; 
    flex-shrink: 0 !important; 
}
.toggle-btn { 
    flex: 1 !important; 
    background: transparent !important; 
    color: #888 !important; 
    border: none !important; 
    padding: 11px !important; 
    border-radius: 10px !important; 
    font-weight: 700 !important; 
    font-size: 14px !important;
    cursor: pointer !important; 
    transition: all 0.3s ease !important; 
    font-family: "Play", sans-serif !important; 
}
.toggle-btn.active { 
    background: rgba(255, 255, 255, 0.1) !important; 
    color: #fff !important; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.3) !important; 
}

/* Форма ввода */
#auth-form { display: flex; flex-direction: column; flex-shrink: 0; }
.input-group { margin-bottom: 18px; position: relative; text-align: left; }
.input-group label { 
    display: block !important; 
    color: #aaa !important; 
    font-size: 12.5px !important; 
    font-weight: 700 !important; 
    margin-bottom: 8px !important; 
    text-transform: uppercase !important; 
    letter-spacing: 0.6px !important; 
    font-family: "Play", sans-serif !important; 
}
.m-input { 
    width: 100% !important; 
    background: rgba(255, 255, 255, 0.03) !important; 
    border: 1px solid rgba(255, 255, 255, 0.09) !important; 
    padding: 14px 16px !important; 
    border-radius: 12px !important; 
    color: #fff !important; 
    font-size: 15px !important; 
    box-sizing: border-box !important; 
    transition: all 0.3s ease !important; 
    font-family: 'Google Sans Flex', sans-serif !important; 
}
.m-input:focus { 
    background: rgba(255, 255, 255, 0.06) !important; 
    border-color: var(--theme-main, #ff7043) !important; 
    outline: none !important; 
    box-shadow: 0 0 15px rgba(var(--theme-rgb, 255, 112, 67), 0.2) !important; 
}

.password-wrapper { position: relative; }
.password-wrapper .m-input { padding-right: 44px !important; }
.toggle-password { 
    position: absolute !important; 
    right: 14px !important; 
    top: 50% !important; 
    transform: translateY(-50%) !important; 
    background: none !important; 
    border: none !important; 
    color: #888 !important; 
    cursor: pointer !important; 
    padding: 4px !important; 
    display: flex !important; 
    align-items: center !important; 
    justify-content: center !important; 
}
.toggle-password:hover { color: #fff !important; }

/* Кнопка отправки формы */
.auth-btn { 
    width: 100% !important; 
    background: var(--theme-main, #ff7043) !important; 
    color: #fff !important; 
    border: 1px solid var(--theme-main, #ff7043) !important; 
    padding: 15px !important; 
    border-radius: 12px !important; 
    font-size: 16px !important; 
    font-weight: 700 !important; 
    cursor: pointer !important; 
    transition: all 0.3s ease !important; 
    margin-top: 10px !important; 
    font-family: "Play", sans-serif !important; 
    box-shadow: 0 8px 25px rgba(var(--theme-rgb, 255, 112, 67), 0.3) !important;
}
.auth-btn:hover { 
    filter: brightness(1.1);
    box-shadow: 0 12px 30px rgba(var(--theme-rgb, 255, 112, 67), 0.45) !important; 
    transform: translateY(-1px) !important; 
}

.divider { display: flex; align-items: center; text-align: center; color: #555; margin: 22px 0; font-size: 12.5px; font-weight: 600; }
.divider::before, .divider::after { content: ''; flex: 1; border-bottom: 1px solid rgba(255,255,255,0.06); }
.divider:not(:empty)::before { margin-right: .75em; }
.divider:not(:empty)::after { margin-left: .75em; }

/* Кнопка Google (Недоступно) */
.google-btn { width: 100%; background: rgba(255, 255, 255, 0.02); color: #ccc; border: 1px solid rgba(255, 255, 255, 0.08); padding: 14px; border-radius: 12px; font-size: 15px; font-weight: 600; cursor: not-allowed; opacity: 0.6; display: flex; align-items: center; justify-content: center; gap: 10px; position: relative; font-family: "Play", sans-serif; }
.pm-soon-btn-google { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; background: rgba(255, 255, 255, 0.1); color: #888; border-radius: 50%; font-size: 12px; font-weight: bold; margin-left: auto; cursor: help; border: 1px solid rgba(255, 255, 255, 0.2); position: relative; }
.pm-soon-btn-google:hover::after { content: "Скоро..."; position: absolute; bottom: 130%; right: 0; background: #222; color: #fff; padding: 4px 8px; border-radius: 4px; font-size: 11px; white-space: nowrap; border: 1px solid #444; z-index: 100; }

.forgot-link { display: block; text-align: right; color: #888; font-size: 13px; margin-top: 8px; text-decoration: none; transition: color 0.2s; }
.forgot-link:hover { color: var(--theme-main, #ff7043); }

/* Футер в боковой панели */
.auth-footer { margin-top: auto; padding-top: 25px; text-align: center; width: 100%; color: #555; font-size: 12px; }
.auth-footer-line { width: 80%; height: 1px; background: rgba(255, 255, 255, 0.08); margin: 0 auto 15px auto; }

/* ========================================================================== */
/* 15. СТРАНИЦА ТЕСТОВОЙ ОПЛАТЫ (MOCK PAYMENT) */
/* ========================================================================== */

/* Железобетонное центрирование */
.payment-wrapper { 
    position: absolute !important; 
    top: 50% !important; 
    left: 50% !important; 
    transform: translate(-50%, -50%) !important; 
    width: 100% !important; 
    display: flex !important; 
    justify-content: center !important; 
    align-items: center !important; 
    z-index: 10 !important; 
}

/* Интерфейс тестовой карточки (Bento-стиль) */
.payment-card { 
    background: rgba(12, 12, 12, 0.85) !important; /* Делаем фон темнее, чтобы текст не сливался */
    backdrop-filter: blur(25px) !important; 
    -webkit-backdrop-filter: blur(25px) !important; 
    border: 1px solid rgba(var(--theme-rgb, 255, 112, 67), 0.3) !important; 
    padding: 40px !important; 
    border-radius: 28px !important; 
    text-align: center !important; 
    max-width: 450px !important; 
    width: 90% !important; 
    box-shadow: 0 25px 60px rgba(var(--theme-rgb, 255, 112, 67), 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.05) !important; 
    transition: border-color 0.3s ease, box-shadow 0.3s ease !important; 
    max-height: 90vh !important; 
    overflow-y: auto !important; 
    box-sizing: border-box !important;
}
.payment-card:hover { 
    border-color: rgba(var(--theme-rgb, 255, 112, 67), 0.6) !important; 
    box-shadow: 0 25px 80px rgba(var(--theme-rgb, 255, 112, 67), 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.05) !important; 
}
.payment-card::-webkit-scrollbar { width: 0; }

/* Логотип и тексты */
.payment-card .brand-logo {
    font-size: 28px !important;
    font-weight: 900 !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    background: linear-gradient(45deg, var(--theme-main, #ff7043), var(--theme-grad, #ee9323)) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    margin-bottom: 10px !important;
    font-family: "Play", sans-serif !important;
}

.payment-card .payment-title { 
    margin: 0 0 10px 0 !important; 
    color: #fff !important; 
    font-size: 24px !important; 
    font-weight: 700 !important; 
    font-family: "Play", sans-serif !important;
}
.payment-card .payment-desc { 
    color: #888 !important; 
    font-size: 13.5px !important; 
    margin-bottom: 25px !important; 
    line-height: 1.6 !important; 
}

/* Поля эмуляции и инпуты */
.payment-card .dummy-input { 
    background: rgba(255, 255, 255, 0.03) !important; 
    border: 1px solid rgba(255, 255, 255, 0.08) !important; 
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.3) !important; 
    padding: 14px 16px !important; 
    width: 100% !important; 
    box-sizing: border-box !important; 
    border-radius: 12px !important; 
    margin-bottom: 15px !important; 
    color: #fff !important; 
    text-align: left !important; 
    font-size: 14.5px !important; 
    font-family: 'Google Sans Flex', sans-serif !important; 
    transition: border-color 0.3s !important; 
}
.payment-card .dummy-input:focus { 
    outline: none !important; 
    border-color: var(--theme-main, #ff7043) !important; 
}
.payment-card select.dummy-input option { 
    background: #111 !important; 
    color: #fff !important; 
}

.payment-card .input-label { 
    color: #aaa !important; 
    font-size: 12px !important; 
    font-weight: bold !important; 
    margin-bottom: 6px !important; 
    display: block !important; 
    text-transform: uppercase !important; 
    text-align: left !important; 
}

/* Кнопка транзакции (динамический цвет) */
.payment-card .mock-btn { 
    background: var(--theme-main, #ff7043) !important; 
    border: 1px solid var(--theme-main, #ff7043) !important; 
    color: #fff !important; 
    padding: 16px !important; 
    width: 100% !important; 
    border-radius: 14px !important; 
    cursor: pointer !important; 
    font-size: 16px !important; 
    font-weight: 600 !important; 
    transition: all 0.3s ease !important; 
    margin-top: 10px !important; 
    font-family: "Play", sans-serif !important; 
    box-shadow: 0 10px 20px rgba(var(--theme-rgb, 255, 112, 67), 0.3) !important; 
}
.payment-card .mock-btn:hover:not(:disabled) { 
    transform: translateY(-2px) !important; 
    box-shadow: 0 15px 30px rgba(var(--theme-rgb, 255, 112, 67), 0.5) !important; 
    filter: brightness(1.1) !important; 
}
.payment-card .mock-btn:disabled { 
    background: rgba(255, 255, 255, 0.05) !important; 
    color: #666 !important; 
    border-color: rgba(255,255,255,0.05) !important; 
    cursor: not-allowed !important; 
    box-shadow: none !important; 
    transform: none !important; 
}

/* Ссылка отмены */
.payment-card .cancel-link { 
    display: inline-block !important; 
    color: #666 !important; 
    text-decoration: none !important; 
    font-size: 13.5px !important; 
    transition: color 0.2s ease !important; 
    margin-top: 25px !important; 
}
.payment-card .cancel-link:hover { 
    color: var(--theme-main, #ff7043) !important; 
    text-decoration: underline !important; 
}

/* Футер с копирайтом (специально для этой страницы) */
.mock-footer { 
    position: absolute !important; 
    bottom: 20px !important; 
    left: 0 !important; 
    width: 100% !important; 
    text-align: center !important; 
    color: #444 !important; 
    font-size: 12px !important; 
    z-index: 5 !important; 
    font-family: "Play", sans-serif !important; 
    line-height: 1.6 !important; 
}
.mock-footer p { margin: 4px 0 !important; }

/* ТУМБЛЕР "ОФОРМИТЬ НА СВОЙ АККАУНТ" И ВЫПАДАЮЩЕЕ ПОЛЕ */
.pm-custom-acc-label { display: flex !important; align-items: center !important; gap: 15px !important; background: rgba(255, 255, 255, 0.03) !important; border: 1px solid rgba(255, 255, 255, 0.08) !important; border-radius: 16px !important; padding: 16px 20px !important; cursor: pointer !important; transition: all 0.3s ease !important; position: relative !important; z-index: 2 !important; margin-top: 15px !important; }
.pm-custom-acc-icon { background: rgba(255, 255, 255, 0.05) !important; width: 40px !important; height: 40px !important; border-radius: 12px !important; display: flex !important; align-items: center !important; justify-content: center !important; color: #aaa !important; transition: all 0.3s ease !important; flex-shrink: 0 !important; }
.pm-custom-acc-icon svg { width: 22px !important; height: 22px !important; margin: 0 !important; padding: 0 !important; }
.pm-custom-acc-text { flex: 1 !important; display: flex !important; flex-direction: column !important; gap: 4px !important; text-align: left !important; }
.pm-custom-acc-title { color: #fff !important; font-size: 15px !important; font-weight: 700 !important; transition: all 0.3s ease !important; line-height: 1.2 !important; font-family: "Play", sans-serif !important;}
.pm-custom-acc-desc { color: #888 !important; font-size: 12px !important; margin: 0 !important; line-height: 1.2 !important; font-family: "Play", sans-serif !important;}
.pm-custom-acc-toggle { width: 44px !important; height: 24px !important; background: rgba(255,255,255,0.1) !important; border-radius: 12px !important; position: relative !important; transition: all 0.3s ease !important; flex-shrink: 0 !important; }
.pm-toggle-knob { width: 18px !important; height: 18px !important; background: #fff !important; border-radius: 50% !important; position: absolute !important; top: 3px !important; left: 3px !important; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important; box-shadow: 0 2px 5px rgba(0,0,0,0.3) !important; }

.payment-card #customAccountEmail {
    padding-left: 44px !important;
}

/* Состояние: ВКЛЮЧЕНО */
input#customAccountCheckbox:checked + .pm-custom-acc-label { background: rgba(var(--theme-rgb, 255, 112, 67), 0.08) !important; border-color: var(--theme-main, #ff7043) !important; box-shadow: 0 10px 25px rgba(var(--theme-rgb, 255, 112, 67), 0.15) !important; }
input#customAccountCheckbox:checked + .pm-custom-acc-label .pm-custom-acc-icon { background: rgba(var(--theme-rgb, 255, 112, 67), 0.15) !important; color: var(--theme-main, #ff7043) !important; }
input#customAccountCheckbox:checked + .pm-custom-acc-label .pm-custom-acc-title { color: #fff !important; }
input#customAccountCheckbox:checked + .pm-custom-acc-label .pm-custom-acc-toggle { background: var(--theme-main, #ff7043) !important; }
input#customAccountCheckbox:checked + .pm-custom-acc-label .pm-toggle-knob { left: 23px !important; }

/* Выпадающее поле Email */
.pm-custom-email-box { max-height: 0 !important; opacity: 0 !important; overflow: hidden !important; transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1) !important; background: rgba(0,0,0,0.2) !important; border-radius: 0 0 16px 16px !important; margin-top: -10px !important; padding: 0 20px !important; border: 1px solid transparent !important; border-top: none !important; }
input#customAccountCheckbox:checked ~ .pm-custom-email-box { max-height: 150px !important; opacity: 1 !important; padding: 25px 20px 20px 20px !important; border-color: rgba(var(--theme-rgb, 255, 112, 67), 0.3) !important; border-top: none !important; box-shadow: inset 0 -10px 20px rgba(0,0,0,0.2) !important; margin-bottom: 20px !important; }

/* ========================================================================== */
/* 15. СТРАНИЦА ИСТОРИИ ПОКУПОК (PURCHASES) */
/* ========================================================================== */

.content-wrapper { flex: 1 0 auto !important; width: 100%; display: flex; flex-direction: column; align-items: center; padding: 20px; box-sizing: border-box; }
.purchases-container { width: 100%; max-width: 1000px; margin-top: 50px; margin-bottom: 50px; min-height: calc(70vh - 250px); position: relative; z-index: 2; }
.page-title { color: #fff; margin-bottom: 35px; font-size: 36px; font-weight: 800; font-family: "Play", sans-serif; text-align: left; text-shadow: 0 0 30px rgba(255, 255, 255, 0.2); }

/* Премиальная карточка покупки */
.bento-purchase-card { background: rgba(0, 0, 0, 0.562); backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px); border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 28px; padding: 30px; margin-bottom: 25px; display: flex; flex-direction: column; gap: 25px; transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1); position: relative; overflow: hidden; }
.bento-purchase-card:hover { border-color: rgba(var(--theme-color-rgb, 255, 112, 67), 0.4); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(var(--theme-color-rgb, 255, 112, 67), 0.05); transform: translateY(-3px); }

.purchase-top { display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 1px solid rgba(255, 255, 255, 0.08); padding-bottom: 20px; }
.purchase-icon-title { display: flex; align-items: center; gap: 18px; }
.p-icon { width: 48px; height: 48px; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 14px; display: flex; align-items: center; justify-content: center; color: var(--theme-main, #ff7043); }
.p-title { font-size: 22px; font-weight: 700; color: #fff; font-family: "Play", sans-serif; letter-spacing: 0.5px; }

.purchase-dates { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.date-badge { background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.05); padding: 8px 14px; border-radius: 10px; font-size: 13.5px; color: #aaa; display: flex; align-items: center; gap: 8px; font-family: "Play", sans-serif; }
.date-badge span { color: #fff; font-weight: 700; letter-spacing: 0.5px; }
.date-badge.end-date span { color: var(--theme-main, #ff7043); text-shadow: 0 0 10px rgba(var(--theme-color-rgb, 255, 112, 67), 0.4); }

.purchase-credentials { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.cred-box { background: rgba(255, 255, 255, 0.02); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 16px; padding: 16px 20px; display: flex; align-items: center; transition: border-color 0.3s ease; }
.cred-box:hover { border-color: rgba(var(--theme-color-rgb, 255, 112, 67), 0.4); background: rgba(255, 255, 255, 0.04); }
.cred-label { color: #777; font-size: 14px; font-weight: 600; width: 70px; font-family: "Play", sans-serif; text-transform: uppercase; letter-spacing: 1px; }
.cred-value { color: #fff; font-family: monospace; font-size: 17px; flex-grow: 1; letter-spacing: 1px; overflow-wrap: break-word; }
.cred-copy { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 10px; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.2s ease; color: #aaa; }
.cred-copy:hover { background: #fff; color: #000; transform: scale(1.05); }
.cred-copy svg { width: 18px; height: 18px; fill: currentColor; }

.no-purchases { text-align: center; padding: 60px 20px; color: #aaa; font-size: 18px; background: rgba(0, 0, 0, 0.562); backdrop-filter: blur(25px); border: 1px dashed rgba(255, 255, 255, 0.2); border-radius: 28px; font-family: "Play", sans-serif; }

/* Красивое окно отзыва (Модалка) */
.review-modal { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0, 0, 0, 0.85); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); display: none; justify-content: center; align-items: center; z-index: 999999; opacity: 0; transition: opacity 0.3s ease; }
.review-modal.active { display: flex; opacity: 1; }
.review-card { background: rgba(20, 20, 20, 0.95); border: 1px solid rgba(var(--theme-color-rgb, 255, 112, 67), 0.3); border-radius: 24px; padding: 30px; width: 90%; max-width: 450px; box-shadow: 0 20px 50px rgba(0,0,0,0.8), inset 0 0 20px rgba(var(--theme-color-rgb, 255, 112, 67), 0.05); transform: scale(0.9); transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1); }
.review-modal.active
.review-title { font-size: 20px; font-weight: bold; margin-bottom: 15px; color: #fff; font-family: 'Play', sans-serif; }

/* Звёздочки отзыва */
.stars-rating { display: flex; gap: 8px; margin-bottom: 20px; }
.star-item { font-size: 28px; cursor: pointer; color: rgba(255,255,255,0.2); transition: 0.2s; }
.star-item.active, .star-item:hover { color: var(--theme-main, #ff7043); filter: drop-shadow(0 0 5px rgba(var(--theme-color-rgb, 255, 112, 67), 0.5)); }

/* Поле ввода отзыва */
.review-textarea { width: 100%; height: 100px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; padding: 14px; color: white; font-size: 14px; resize: none; outline: none; transition: 0.3s; box-sizing: border-box; margin-bottom: 15px; font-family: 'Google Sans Flex', sans-serif; }
.review-textarea:focus { border-color: var(--theme-main, #ff7043); background: rgba(255,255,255,0.05); }

/* Кнопки модалки отзыва */
.review-actions { display: flex; gap: 10px; }
.rev-btn { flex: 1; padding: 14px; border-radius: 12px; font-weight: bold; font-size: 14px; cursor: pointer; transition: 0.2s; border: none; font-family: 'Play', sans-serif; }
.rev-btn-submit { background: var(--theme-main, #ff7043); color: white; }
.rev-btn-submit:hover { filter: brightness(1.1); transform: translateY(-2px); }
.rev-btn-cancel { background: rgba(255,255,255,0.05); color: #aaa; border: 1px solid rgba(255,255,255,0.1); }
.rev-btn-cancel:hover { background: rgba(255,255,255,0.1); color: #fff; }

.review-btn-container { width: 100%; display: block; margin-top: 15px; clear: both; }

/* ========================================================================== */
/* 16. СТРАНИЦА ОТЗЫВОВ (REVIEWS) */
/* ========================================================================== */

.reviews-container { max-width: 1300px; margin: 0 auto; padding: 0 20px; }

/* Верхняя Bento-плашка со статистикой */
.stats-bento {
    background: rgba(0, 0, 0, 0.562);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 28px;
    padding: 40px;
    margin-bottom: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    margin-top: 50px; /* Отступ от шапки */
}

.stats-left { flex: 1; min-width: 300px; }
.stats-right { flex: 0 0 300px; display: flex; flex-direction: column; align-items: flex-end; }

/* Блок оценки и звезд */
.rating-block { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; }
.rating-score { font-size: 48px; font-weight: 900; color: #fff; line-height: 1; font-family: "Play", sans-serif; }
.stars-container { display: flex; flex-direction: column; }
.stars { color: var(--theme-main, #ff7043); font-size: 22px; letter-spacing: 2px; }
.total-reviews-text { color: #888; font-size: 14px; margin-top: 2px; font-family: "Play", sans-serif;}

/* Полоса соотношения (Прогресс бар) */
.ratio-wrapper { width: 100%; max-width: 500px; }
.ratio-labels { display: flex; justify-content: space-between; font-size: 13px; font-weight: bold; margin-bottom: 8px; font-family: "Play", sans-serif; }
.ratio-bar { width: 100%; height: 10px; background: rgba(255,255,255,0.05); border-radius: 5px; display: flex; overflow: hidden; box-shadow: inset 0 2px 5px rgba(0,0,0,0.5); }
.ratio-green { background: #00ff88; height: 100%; width: 96%; box-shadow: 0 0 10px rgba(0,255,136,0.5); }
.ratio-red { background: #ff4d4d; height: 100%; width: 4%; box-shadow: 0 0 10px rgba(255,77,77,0.5); }

/* Кнопка "Оставить отзыв" и Ошибки */
.leave-btn {
    background: var(--theme-main, #ff7043) !important; color: #fff !important; border: none; padding: 16px 30px; border-radius: 14px;
    font-size: 16px; font-weight: bold; cursor: pointer; transition: all 0.3s ease; width: 100%; font-family: "Play", sans-serif;
    box-shadow: 0 10px 20px rgba(var(--theme-rgb, 255, 112, 67), 0.3);
}
.leave-btn:hover { transform: translateY(-2px); box-shadow: 0 15px 30px rgba(var(--theme-rgb, 255, 112, 67), 0.5); filter: brightness(1.1); }

.error-msg {
    display: none; background: rgba(255, 77, 77, 0.1); border: 1px solid rgba(255, 77, 77, 0.3);
    color: #ff4d4d; padding: 12px; border-radius: 10px; font-size: 13px; font-weight: bold;
    margin-top: 15px; text-align: center; width: 100%; box-sizing: border-box;
    animation: fadeIn 0.3s ease forwards; font-family: "Play", sans-serif;
}

/* СЕТКА ОТЗЫВОВ И КАРТОЧКИ (BENTO) */
.reviews-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); 
    gap: 20px; 
}

/* ЖЕСТКО перехватываем отзывы, которые генерирует JS (со старым классом review-card) */
.reviews-grid .review-card {
    background: rgba(12, 12, 12, 0.7) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(25px) !important;
    -webkit-backdrop-filter: blur(25px) !important;
    border-radius: 20px !important; 
    padding: 25px !important; 
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1) !important; 
    
    /* ВАЖНО: заставляем контент внутри идти строго сверху вниз */
    display: flex !important; 
    flex-direction: column !important;
    justify-content: flex-start !important;
    
    min-height: 160px !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important; /* Убиваем лимиты, доставшиеся от модального окна */
    box-shadow: none !important;
    transform: none !important;
    margin: 0 !important;
}

/* ЖЕСТКО уважаем скрытие карточек скриптом при фильтрации */
.reviews-grid .review-card[style*="display: none"] {
    display: none !important;
}

/* Упрощенный ховер (без яркого цветного свечения, просто легкий подъем) */
.reviews-grid .review-card:hover { 
    border-color: rgba(255, 255, 255, 0.2) !important; 
    box-shadow: 0 15px 30px rgba(0,0,0,0.5) !important; 
    transform: translateY(-3px) !important; 
}

/* Шапка отзыва: Ник+Дата слева, Оценка справа */
.reviews-grid .r-header { 
    display: flex !important; 
    justify-content: space-between !important; 
    align-items: flex-start !important; 
    width: 100% !important;
    margin-bottom: 0 !important;
}

.reviews-grid .r-user { 
    display: flex !important; 
    align-items: center !important; 
    gap: 15px !important; 
}

.reviews-grid .r-avatar { 
    width: 46px !important; 
    height: 46px !important; 
    border-radius: 50% !important; 
    background: linear-gradient(135deg, var(--theme-main, #ff7043), var(--theme-grad, #ee9323)) !important; 
    display: flex !important; 
    align-items: center !important; 
    justify-content: center !important; 
    font-weight: 800 !important; 
    font-size: 18px !important; 
    color: white !important; 
    font-family: "Play", sans-serif !important;
    flex-shrink: 0 !important;
}

.reviews-grid .r-info { 
    display: flex !important; 
    flex-direction: column !important; 
    gap: 4px !important;
    align-items: flex-start !important;
}

.reviews-grid .r-name { 
    font-weight: 800 !important; 
    font-size: 16px !important; 
    color: #fff !important; 
    letter-spacing: 0.5px !important;
    font-family: "Play", sans-serif !important;
}

.reviews-grid .r-date { 
    font-size: 12px !important; 
    color: #777 !important; 
}

/* Звезды уводим вправо */
.reviews-grid .r-stars { 
    color: var(--theme-main, #ff7043) !important; 
    font-size: 16px !important; 
    letter-spacing: 2px !important;
    white-space: nowrap !important;
    margin-left: auto !important; /* Гарантирует, что звезды прилипнут к правому краю */
}

/* Текст отзыва (без рамок, просто текст внизу) */
.reviews-grid .r-text { 
    color: #ddd !important; 
    font-size: 14.5px !important; 
    line-height: 1.6 !important; 
    font-family: 'Google Sans Flex', sans-serif !important;
    margin-top: auto !important; /* Мощный пинок текста в самый низ карточки */
    padding-top: 15px !important; 
    background: transparent !important; /* Убили фон-коробку */
    border: none !important; /* Убили рамку */
}























#profileAdminBtn {
    display: none !important;
}
#headerBalanceBlock, #mobileBalanceBlock {
    display: none !important;
}
/* Прячем мобильные элементы модалки оплаты на ПК */
.mobile-rules-toggle, .mobile-rules-btn, .close-mobile-rules { display: none !important; }
/* ========================================================================== */
/* УЛЬТИМАТИВНАЯ МОБИЛЬНАЯ АДАПТАЦИЯ (ДО 850px) */
/* ========================================================================== */
@media (max-width: 850px) {
    /* --- КАРКАС И ШАПКА --- */
    html, body { overflow-x: hidden !important; height: auto !important; min-height: 100vh !important; }
    body { padding-top: 65px !important; } 
    
    /* Жестко скрываем ПК хедер */
    header.desktop-only-header { display: none !important; }
    
    /* Показываем и настраиваем Мобильный хедер */
    header.mobile-only-header {
        display: grid !important; grid-template-columns: 80px 1fr 80px !important; align-items: center !important;
        padding: 0 10px !important; height: 65px !important; position: fixed !important; top: 0 !important; left: 0 !important;
        width: 100% !important; background: rgba(0,0,0,0.95) !important; backdrop-filter: blur(15px) !important;
        border-bottom: 1px solid rgba(255,255,255,0.05) !important; z-index: 9999 !important; box-sizing: border-box !important;
    }

    .mobile-only-header .header-left, .mobile-only-header .header-center, .mobile-only-header .header-right { display: flex !important; align-items: center !important; }
    .mobile-only-header .header-left { justify-content: flex-start !important; }
    .mobile-only-header .header-center { justify-content: center !important; }
    .mobile-only-header .header-right { justify-content: flex-end !important; gap: 8px !important; }
    .mobile-only-header .inner-logo { height: 28px !important; width: auto !important; }
    .mobile-only-header .mobile-back-arrow { justify-content: center !important; width: 40px !important; height: 40px !important; color: #ffffff !important; }
    .mobile-only-header #auth-container { margin: 0 !important; padding: 0 !important; }
    
    .mobile-only-header .header-tg-btn, .mobile-only-header #auth-container a.send-btn, .mobile-only-header #auth-container a[href*="Authentication"], .mobile-only-header #auth-container a {
        width: 36px !important; height: 36px !important; min-width: 36px !important; min-height: 36px !important;
        border-radius: 50% !important; display: flex !important; align-items: center !important; justify-content: center !important;
        padding: 0 !important; margin: 0 !important; box-sizing: border-box !important; font-size: 0 !important;
    }
    .mobile-only-header #auth-container a { background: rgba(255,255,255,0.05) !important; border: 1px solid rgba(255,255,255,0.15) !important; }
    .mobile-only-header .header-tg-btn { background: rgba(51, 144, 236, 0.1) !important; border: 1px solid rgba(51, 144, 236, 0.25) !important; }
    .mobile-only-header #auth-container svg, .mobile-only-header .header-tg-btn svg { width: 18px !important; height: 18px !important; margin: 0 !important; padding: 0 !important; }
    .mobile-only-header #auth-container svg { color: #fff !important; } .mobile-only-header .header-tg-btn svg { fill: #3390ec !important; }

    /* --- ВЫЕЗЖАЮЩЕЕ БОКОВОЕ МЕНЮ --- */
    .mobile-menu-btn { display: block !important; cursor: pointer; color: white;}
    #mobile-menu-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.8) !important; backdrop-filter: blur(5px); z-index: 9998 !important; transition: opacity 0.3s ease !important; opacity: 0; }
    #mobile-menu-overlay.active { opacity: 1; }
    nav#mobile-nav { position: fixed !important; top: 0 !important; left: -100% !important; width: 280px !important; height: 100vh !important; background: #0a0a0a !important; border-right: 1px solid rgba(255,255,255,0.05) !important; z-index: 10001 !important; transition: left 0.3s cubic-bezier(0.25, 1, 0.5, 1) !important; padding: 25px 20px !important; display: flex !important; flex-direction: column !important; box-sizing: border-box !important; }
    nav#mobile-nav.open { left: 0 !important; }
    .mobile-back-btn { display: block !important; color: #ffffff !important; font-weight: bold; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 15px !important; margin-bottom: 15px !important; font-size: 18px !important; text-align: center; cursor: pointer;}
    nav#mobile-nav ul { display: flex !important; flex-direction: column !important; gap: 12px !important; padding: 0 !important; margin: 0 !important; }
    /* Ссылки внутри выезжающего меню */
    nav#mobile-nav ul a { 
        display: flex !important; 
        flex-direction: row !important; 
        align-items: center !important; 
        justify-content: center !important; 
        gap: 14px !important; 
        width: 100% !important; 
        background: rgba(255, 255, 255, 0.03) !important; 
        border: 1px solid rgba(255, 255, 255, 0.06) !important; 
        border-radius: 14px !important; 
        padding: 14px !important;
        text-decoration: none !important;
        /* Жестко сбрасываем прозрачность и клиппинг текста от .gradidi */
        color: #ffffff !important;
        -webkit-text-fill-color: #ffffff !important;
        -webkit-background-clip: initial !important;
        background-clip: initial !important;
    }
    /* Убираем десктопную полоску подчеркивания снизу */
    nav#mobile-nav ul a::after {
        display: none !important;
    }
    /* Текст внутри кнопок */
    nav#mobile-nav ul a span { 
        display: inline-block !important; 
        font-size: 16px !important; 
        color: #ffffff !important; 
        -webkit-text-fill-color: #ffffff !important; /* Убивает прозрачность */
        font-weight: 600 !important; 
        font-family: 'Play', sans-serif !important; 
        opacity: 1 !important; 
        visibility: visible !important; 
        line-height: 1 !important; 
    }

    /* Иконки SVG */
    nav#mobile-nav ul a svg { 
        width: 22px !important; 
        height: 22px !important; 
        flex-shrink: 0 !important; 
        color: #ffffff !important;
        stroke: #ffffff !important;
    }
    nav#mobile-nav .mobile-menu-bottom { 
        display: grid !important; 
        grid-template-columns: 1fr 1fr !important; 
        gap: 12px !important; 
        width: 100% !important; 
        box-sizing: border-box !important; 
        padding: 20px 15px !important; 
        border-top: 1px solid rgba(255, 255, 255, 0.05) !important; 
        margin-top: auto !important; 
    }
    .mobile-menu-top-row {
        display: flex !important;
        flex-direction: row !important;
        gap: 12px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    #mobileLangWrapper {
        flex: 1 !important;
        min-width: 0 !important;
    }
    
    #mobileBalanceBlock {
        flex: 1 !important;
        min-width: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 0 14px !important;
        box-sizing: border-box !important;
    }
    nav#mobile-nav .mobile-menu-bottom > a.header-tg-btn { 
        grid-column: 1 / -1 !important; 
        grid-row: 2 !important; 
        margin: 0 !important; 
        width: 100% !important; 
        background: rgba(51, 144, 236, 0.15) !important; 
        border: 1px solid rgba(51, 144, 236, 0.3) !important; 
        color: #3390ec !important; 
    }
    nav#mobile-nav .mobile-menu-bottom #mobileLangBtn, 
    nav#mobile-nav .mobile-menu-bottom #mobileBalanceBlock, 
    nav#mobile-nav .mobile-menu-bottom a.header-tg-btn { 
        display: flex !important; 
        justify-content: center !important; 
        align-items: center !important; 
        height: 48px !important; 
        border-radius: 12px !important; 
        box-sizing: border-box !important; 
        gap: 8px !important; 
        padding: 0 10px !important; 
    }
    nav#mobile-nav .mobile-menu-bottom span { 
        font-size: 14px !important; font-weight: bold !important; white-space: nowrap !important; color: inherit !important; 
    }
    nav#mobile-nav .mobile-menu-bottom #mobileBalanceValue { color: #fff !important; }
    nav#mobile-nav .mobile-menu-bottom .header-balance-btn { 
        font-size: 22px !important; padding: 0 !important; color: var(--theme-main) !important; background: transparent !important; border: none !important; 
    }
    nav#mobile-nav .mobile-menu-bottom a.header-tg-btn svg { 
        width: 18px !important; height: 18px !important; flex-shrink: 0 !important; fill: currentColor !important; 
    }
    #headerBalanceBlock, #mobileBalanceBlock {
    display: none !important;
    }

    /* --- ГЛАВНАЯ СТРАНИЦА --- */
    .hero { margin-top: 180px !important; margin-bottom: 150px !important; margin-left: 0 !important; padding: 0 10px !important; width: 100% !important; box-sizing: border-box !important; display: flex !important; flex-direction: column !important; align-items: center !important; }
    .hero--info { width: 100% !important; max-width: 100% !important; text-align: center !important; display: flex !important; flex-direction: column !important; align-items: center !important; }
    .nasvanie { font-size: 42px !important; width: 100% !important; letter-spacing: -1px !important; line-height: 1.05 !important; margin: 0 auto 15px auto !important; text-align: center !important; }
    .textik { font-size: 18px !important; width: 100% !important; text-align: center !important; margin: 0 auto !important; }
    
    .stats-banner { padding: 150px 20px !important; box-sizing: border-box !important; }
    .bento-stat-grid { display: flex !important; flex-direction: column !important; align-items: center !important; gap: 15px !important; width: 100% !important; margin: 0 !important; }
    .bento-stat-item { display: flex !important; flex-direction: row !important; align-items: center !important; justify-content: space-between !important; text-align: left !important; width: 100% !important; max-width: 380px !important; padding: 25px 20px !important; margin: 0 !important; box-sizing: border-box !important; }
    .bento-stat-content { display: flex !important; flex-direction: column !important; align-items: flex-start !important; order: 1 !important; flex: 1 !important; }
    .bento-stat-item > div:not(.bento-stat-content) { order: 2 !important; margin-bottom: 0 !important; flex-shrink: 0 !important; display: flex !important; flex-direction: column !important; align-items: center !important; }
    .bento-stat-title { font-size: 32px !important; margin-bottom: 5px !important; line-height: 1.1 !important; text-align: left !important; }
    .bento-stat-desc { font-size: 14px !important; line-height: 1.4 !important; color: #999 !important; text-align: left !important; }
    .bento-stat-icon svg { width: 32px !important; height: 32px !important; color: rgba(255, 255, 255, 0.3) !important; }

    .features { padding: 90px 0 70px 0 !important; border: none !important; border-radius: 0 !important; background: rgba(0, 0, 0, 0.4) !important; backdrop-filter: blur(15px) !important; -webkit-backdrop-filter: blur(15px) !important; -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%) !important; mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%) !important; box-shadow: none !important; }
    .features-container { display: flex !important; flex-direction: column !important; align-items: center !important; gap: 0 !important; width: 100% !important; }
    .features-info, .premium-title { display: none !important; }
    
    .catalog-menu { display: flex !important; flex-direction: column !important; flex-wrap: nowrap !important; background: rgba(255, 255, 255, 0.02) !important; border: 1px solid rgba(255, 255, 255, 0.15) !important; border-radius: 14px !important; height: 56px !important; overflow: hidden !important; position: relative !important; width: 280px !important; max-width: 280px !important; margin: 0 auto !important; padding-top: 56px !important; transition: height 0.6s ease-in-out, border-color 0.6s ease !important; box-shadow: 0 5px 20px rgba(0,0,0,0.5) !important; box-sizing: border-box !important; z-index: 10 !important; cursor: pointer !important; order: 1 !important; }
    .catalog-menu::before { content: "ВЫБОР КАТЕГОРИИ ▾" !important; display: flex !important; align-items: center !important; justify-content: center !important; position: absolute !important; top: 0 !important; left: 0 !important; width: 100% !important; height: 56px !important; background: transparent !important; color: #fff !important; font-family: 'Google Sans Flex', sans-serif !important; font-size: 16px !important; font-weight: 600 !important; z-index: 5 !important; pointer-events: none !important; }
    .catalog-menu.open { height: 380px !important; } .catalog-menu.open::before { content: "ВЫБОР КАТЕГОРИИ ▴" !important; border-bottom: 1px solid rgba(255,255,255,0.08) !important; }
    .catalog-btn { border: none !important; border-radius: 0 !important; background: transparent !important; padding: 16px !important; margin: 0 !important; border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important; justify-content: center !important; font-size: 16px !important; width: 100% !important; color: #aaa !important; box-shadow: none !important; }
    .catalog-btn:last-child { border-bottom: none !important; }
    .catalog-btn.active { background: rgba(255, 255, 255, 0.05) !important; color: #fff !important; border: none !important; border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important; box-shadow: none !important; }
    .catalog-btn:last-child.active { border-bottom: none !important; }
    
    .premium-title1 { display: block !important; text-align: center !important; width: 100% !important; margin-top: 25px !important; margin-bottom: 10px !important; font-size: 0 !important; order: 2 !important; }
    .premium-title1::before { content: "ТОВАРЫ:" !important; font-size: 18px !important; font-weight: 700 !important; letter-spacing: 1px !important; color: #fff !important; text-transform: uppercase !important; display: block !important; }
    
    .products-wrapper { width: 100vw !important; padding: 10px 20px 25px 20px !important; gap: 15px !important; overflow-x: auto !important; scroll-snap-type: x mandatory !important; -webkit-overflow-scrolling: touch !important; box-sizing: border-box !important; order: 3 !important; }
    .products-wrapper::-webkit-scrollbar { display: block !important; height: 6px !important; -webkit-appearance: none !important; }
    .products-wrapper::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.05) !important; border-radius: 10px !important; margin: 0 40px !important; }
    .products-wrapper::-webkit-scrollbar-thumb { background: var(--theme-color) !important; border-radius: 10px !important; box-shadow: 0 0 10px rgba(var(--theme-color-rgb), 0.5) !important; }
    .knopkas { min-width: 280px !important; max-width: 280px !important; scroll-snap-align: center !important; margin: 0 !important; flex-shrink: 0 !important;}

    #ktomi { display: block !important; padding: 90px 15px 80px 15px !important; margin: 0 !important; border: none !important; border-radius: 0 !important; background: rgba(0, 0, 0, 0.4) !important; backdrop-filter: blur(15px) !important; -webkit-backdrop-filter: blur(15px) !important; -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%) !important; mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%) !important; box-shadow: none !important; }
    .onas1 h3 { font-size: 38px !important; line-height: 1.1 !important; max-width: 100% !important;}
    .onas1 p { font-size: 16px !important; margin-bottom: 30px !important; max-width: 100% !important;}
    .bento-screen { display: flex !important; flex-direction: column !important; height: auto !important; gap: 20px !important; }
    .bento-center { display: flex !important; flex-direction: column !important; height: auto !important; gap: 20px !important; flex: none !important; }
    .bento-item { width: 100% !important; height: auto !important; min-height: 220px !important; border-radius: 24px !important; box-sizing: border-box !important; flex: none !important; }
    .bento-item.blue .plate-content, .bento-item.red .plate-content, .bento-item.yellow .plate-content, .bento-item.green .plate-content { padding: 35px 20px !important; display: flex !important; flex-direction: column !important; align-items: center !important; justify-content: center !important; text-align: center !important; height: 100% !important; }
    .bento-item h1 { font-size: 32px !important; text-align: center !important; margin-bottom: 12px !important; width: 100% !important; }
    .bento-item p { font-size: 15px !important; text-align: center !important; line-height: 1.5 !important; width: 100% !important; }

    /* --- МОДАЛКИ (Профиль, Оплата) --- */
    .profile-card { flex-direction: column !important; height: 90vh !important; width: 95% !important; overflow-y: auto !important; border-radius: 20px !important; }
    .profile-sidebar { width: 100% !important; border-right: none !important; border-bottom: 1px solid rgba(255,255,255,0.1) !important; padding: 20px !important; display: flex !important; flex-direction: column !important; gap: 8px !important; }
    .profile-content { padding: 20px !important; }
    .profile-stat-grid { grid-template-columns: 1fr !important; gap: 12px !important; }
    .pm-modal-card, .sw-modal-card, .admin-modal-card, .contact-modal, .review-card { width: 95% !important; max-width: 400px !important; padding: 25px 20px !important; max-height: 85vh !important; overflow-y: auto !important; border-radius: 20px !important; box-sizing: border-box !important; }
    .pm-modal-grid { flex-direction: column !important; }
    .pm-modal-left { padding: 0 !important; min-width: 100% !important; border-right: none !important; }
    
    /* Скрываем дефолтное поведение для ПК */
    .pm-modal-card.expanded .pm-modal-right {
        display: flex !important;
    }

    /* Кнопка "Обязательно к прочтению" на мобилках */
    .mobile-rules-btn {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        background: rgba(255, 255, 255, 0.04) !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        padding: 14px 16px !important;
        border-radius: 12px !important;
        margin-bottom: 20px !important;
        cursor: pointer !important;
        color: #ccc !important;
        font-family: 'Play', sans-serif !important;
        font-size: 14px !important;
        font-weight: bold !important;
        transition: all 0.2s ease !important;
    }
    .mobile-rules-btn span { flex: 1 !important; margin-left: 10px !important; text-align: left !important; }
    .mobile-rules-btn:active { background: rgba(255, 255, 255, 0.08) !important; }

    /* Сама шторка с правилами на мобилках */
    .pm-modal-right { 
        display: flex !important;
        position: absolute !important;
        top: 0 !important;
        right: -100% !important; /* Прячем за правый край модалки */
        width: 100% !important;
        min-width: 100% !important;
        height: 100% !important;
        background: rgba(15, 15, 18, 0.98) !important; /* Непрозрачный фон, чтобы перекрыть левую часть */
        backdrop-filter: blur(30px) !important;
        -webkit-backdrop-filter: blur(30px) !important;
        z-index: 50 !important;
        padding: 25px 20px !important;
        box-sizing: border-box !important;
        border-left: 1px solid var(--theme-main, #ff7043) !important;
        box-shadow: -15px 0 35px rgba(0,0,0,0.8) !important;
        transition: right 0.4s cubic-bezier(0.25, 1, 0.5, 1) !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }

    /* Магия открытия шторки (если чекбокс нажат) */
    .mobile-rules-toggle:checked ~ .pm-modal-right,
    .mobile-rules-toggle:checked ~ * .pm-modal-right { /* Перестраховка селектора */
        right: 0 !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    /* Так как шторка лежит на одном уровне с footer-ом (или выше в DOM), 
       мы выносим хак с :has, чтобы найти шторку в любом месте модалки */
    .pm-modal-card:has(.mobile-rules-toggle:checked) .pm-modal-right {
        right: 0 !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    /* Крестик закрытия шторки внутри правил */
    .close-mobile-rules {
        position: absolute !important;
        top: 15px !important;
        left: 15px !important; /* Размещаем слева сверху */
        font-size: 32px !important;
        color: #888 !important;
        cursor: pointer !important;
        z-index: 60 !important;
        width: 40px !important;
        height: 40px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 50% !important;
        background: rgba(255, 255, 255, 0.05) !important;
        transition: 0.2s ease !important;
    }
    .close-mobile-rules:active {
        background: rgba(255, 112, 67, 0.15) !important;
        color: var(--theme-main, #ff7043) !important;
    }

    /* Сдвигаем заголовок правил вправо, чтобы крестик не мешал */
    .pm-modal-right .pm-rules-header {
        margin-left: 50px !important;
        margin-top: 10px !important;
        font-size: 14px !important;
    }
    .pm-modal-title { font-size: 22px !important; text-align: center !important; margin-bottom: 15px !important; margin-top: 20px !important;}
    .close-modal, .close-review-modal, .sw-close-x { top: 15px !important; right: 20px !important; font-size: 28px !important; }

    /* --- ЧАТЫ (Поддержка) --- */
    .poderka { margin-top: 30px !important; padding: 0 10px !important; }
    .support-chat-container { height: 82vh !important; width: 100% !important; border-radius: 20px !important; }
    .chat-header { padding: 15px !important; flex-direction: column !important; align-items: flex-start !important; gap: 5px !important;}
    .chat-header h3 { font-size: 18px !important; }
    .chat-messages-box { padding: 15px !important; }
    .chat-msg { max-width: 90% !important; font-size: 14px !important; }
    .chat-input-area { padding: 15px !important; }

    /* --- ОТЗЫВЫ --- */
    .reviews-container { padding: 0 10px !important; }
    .stats-bento { display: flex !important; flex-direction: column !important; gap: 25px !important; padding: 25px 20px !important; border-radius: 20px !important; }
    .stats-bento > div { width: 100% !important; align-items: center !important; text-align: center !important; }
    .stats-bento .page-title, .stats-bento .page-subtitle { text-align: center !important; }
    .stats-bento div[style*="display: flex; align-items: baseline"] { justify-content: center !important; }
    #dynamicStarsRow { justify-content: center !important; }
    .stats-bento div[style*="display: flex; flex-direction: column; gap: 10px"], .stats-bento div[style*="display: flex; align-items: center; gap: 12px"] { width: 100% !important; }
    .stats-bento .leave-btn { width: 100% !important; box-sizing: border-box !important; }
    .stats-bento div[style*="max-width: 260px"] { max-width: 100% !important; }
    .reviews-grid { grid-template-columns: 1fr !important; gap: 15px !important; }

    .review-card-item {
        width: 100% !important;
        min-width: 100% !important;
    }

    /* --- ФУТЕР --- */
    .sw-footer { margin-top: 80px !important; padding: 40px 15px 30px 15px !important; }
    .footer-header { flex-direction: column !important; gap: 20px !important; }
    .f-logo { position: static !important; transform: none !important; margin: 10px 0 !important; font-size: 24px !important;}
    .footer-nav { flex-direction: column !important; gap: 30px !important; align-items: center !important; text-align: center !important; }
    .f-col ul { align-items: center !important; }
    .footer-emblem-container, .f-tg-btn { display: none !important; }
    .footer-content-wrapper { display: block !important; }
    .f-divider { display: block !important; } 
    .footer-legal-bar { display: grid !important; grid-template-columns: 1fr 1fr !important; row-gap: 15px !important; column-gap: 10px !important; margin-top: 10px !important; margin-bottom: 25px !important; width: 100% !important; }
    .footer-legal-bar a { font-size: 15px !important; color: #555 !important; text-align: center !important; margin: 0 !important; }
    .footer-legal-bar a:nth-child(1) { order: 1 !important; }
    .footer-legal-bar a:nth-child(3) { order: 2 !important; }
    .footer-legal-bar a:nth-child(2) { order: 3 !important; grid-column: 1 / -1 !important; }

    /* --- ТОСТЫ НА ТЕЛЕФОНАХ (СТРОГО СВЕРХУ) --- */
    #toast-container, 
    #toastContainer, 
    .toast-container, 
    html > #toast-container { 
        top: 20px !important; 
        bottom: auto !important; 
        left: 50% !important; 
        right: auto !important; 
        transform: translateX(-50%) !important; 
        width: 90% !important; 
        max-width: 380px !important;
        align-items: center !important; 
    }
    .sw-toast, .toast-notification, .toast-item { 
        width: 100% !important; 
        box-sizing: border-box !important; 
    }

    /* Прячем тосты очистки/удаления за экран на телефонах */
    #aiClearConfirmToast, 
    #chatDeleteConfirmToast { 
        right: -150% !important; 
        width: 90% !important; 
        bottom: 20px !important; 
    }

    /* Выдвигаем только тогда, когда JS добавил класс .show */
    #aiClearConfirmToast.show, 
    #chatDeleteConfirmToast.show { 
        right: 5% !important; 
    }

    /* --- СТРАНИЦА ПОДДЕРЖКИ (ЧАТЫ) --- */
    .poderka { margin-top: 30px !important; padding: 0 10px !important; }
    .support-chat-container { height: 82vh !important; width: 100% !important; border-radius: 20px !important; }
    .chat-header { padding: 15px !important; flex-direction: column !important; align-items: flex-start !important; gap: 5px !important;}
    .chat-header h3 { font-size: 18px !important; }
    .chat-messages-box { padding: 15px !important; }
    .chat-msg { max-width: 90% !important; font-size: 14px !important; }
    .chat-input-area { padding: 15px !important; }
    .chat-switcher { top: -50px !important; font-size: 13px !important; padding: 10px 20px !important; }

    /* --- СТРАНИЦА FAQ (МОБИЛКИ) --- */
    .faq-wrapper { margin-top: 25px !important; padding: 25px 18px !important; width: 95% !important; border-radius: 22px !important; }
    .faq-header h1 { font-size: 28px !important; }
    .faq-header p { font-size: 14px !important; }
    .faq-split-layout { grid-template-columns: 1fr !important; gap: 20px !important; }
    .faq-sidebar-nav { max-height: 340px !important; padding-right: 5px !important; }
    .faq-display-pane { padding: 24px 18px !important; min-height: auto !important; position: static !important; border-radius: 18px !important; }
    .faq-article h2 { font-size: 22px !important; }
    .faq-article p, .faq-article ul { font-size: 14.5px !important; }

    /* --- ПРОФИЛЬ, ОПЛАТА, ОТЗЫВЫ И АДМИНКА --- */
    /* ========================================================
       МОБИЛЬНЫЙ ПРОФИЛЬ: САЙДБАР СЛЕВА СО СМАЙЛИКАМИ + КОНТЕНТ СПРАВА
       ======================================================== */
    .profile-card { 
        flex-direction: row !important; /* Строго в строку, а не столбиком! */
        height: 85vh !important; 
        max-height: 650px !important;
        width: 95% !important; 
        overflow: hidden !important; 
        border-radius: 24px !important;
        position: relative !important;
    }

    /* Сайдбар по умолчанию (свернут: видны ТОЛЬКО смайлики и стрелочка) */
    .profile-sidebar { 
        width: 62px !important; 
        min-width: 62px !important;
        border-right: 1px solid rgba(255,255,255,0.08) !important; 
        border-bottom: none !important; 
        padding: 15px 6px !important; 
        display: flex !important; 
        flex-direction: column !important; 
        justify-content: space-between !important;
        background: rgba(14, 14, 18, 0.98) !important;
        transition: width 0.3s cubic-bezier(0.25, 1, 0.5, 1), background 0.3s ease !important;
        z-index: 30 !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
    }

    /* Шапка сайдбара на мобилке */
    .sidebar-header-row {
        margin-bottom: 12px !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        min-height: 36px !important;
    }
    .profile-sidebar #profileHeaderName {
        display: none !important; /* Прячем текст ника в свернутом виде */
    }

    /* Кнопка-стрелочка раскрытия */
    .sidebar-toggle-btn {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 36px !important;
        height: 36px !important;
        background: rgba(255, 255, 255, 0.05) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        border-radius: 10px !important;
        color: var(--theme-main, #ff7043) !important;
        cursor: pointer !important;
        padding: 0 !important;
        transition: transform 0.3s ease, background 0.2s !important;
    }
    .sidebar-toggle-btn:hover {
        background: rgba(var(--theme-rgb, 255, 112, 67), 0.15) !important;
    }

    /* Кнопки в свернутом виде — центрируем смайлик, скрываем текст */
    .profile-sidebar .profile-nav-btn {
        justify-content: center !important;
        padding: 12px 0 !important;
        gap: 0 !important;
        border-radius: 12px !important;
        margin-bottom: 6px !important;
    }
    .profile-sidebar .profile-nav-btn .nav-icon {
        font-size: 20px !important;
        margin: 0 !important;
    }
    .profile-sidebar .profile-nav-btn .nav-text {
        display: none !important; /* Текст спрятан! */
    }
    .profile-sidebar .soon-badge {
        display: none !important;
    }

    /* --------------------------------------------------------
       РАЗВЕРНУТЫЙ САЙДБАР (при нажатии на стрелочку)
       -------------------------------------------------------- */
    .profile-sidebar.expanded {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        bottom: 0 !important;
        width: 220px !important;
        min-width: 220px !important;
        padding: 15px 12px !important;
        background: #0d0d12 !important;
        border-right: 1px solid rgba(var(--theme-rgb, 255, 112, 67), 0.35) !important;
        box-shadow: 15px 0 35px rgba(0, 0, 0, 0.85) !important;
    }
    .profile-sidebar.expanded .sidebar-header-row {
        justify-content: space-between !important;
        padding: 0 4px !important;
    }
    .profile-sidebar.expanded #profileHeaderName {
        display: block !important;
        font-size: 15px !important;
        font-weight: bold !important;
        color: var(--theme-main, #ff7043) !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: 140px !important;
    }
    /* Стрелочка поворачивается влево (<) при открытии */
    .profile-sidebar.expanded .sidebar-toggle-btn svg {
        transform: rotate(180deg) !important;
    }
    .profile-sidebar.expanded .profile-nav-btn {
        justify-content: flex-start !important;
        padding: 12px 14px !important;
        gap: 12px !important;
    }
    .profile-sidebar.expanded .profile-nav-btn .nav-text {
        display: inline-block !important; /* Текст вернулся! */
        font-size: 14px !important;
    }
    .profile-sidebar.expanded .soon-badge {
        display: inline-flex !important;
    }

    /* Затемнение контента справа, пока сайдбар открыт на весь экран */
    .profile-sidebar.expanded ~ .profile-backdrop-mobile {
        display: block !important;
        position: absolute !important;
        inset: 0 !important;
        background: rgba(0, 0, 0, 0.6) !important;
        backdrop-filter: blur(3px) !important;
        z-index: 25 !important;
    }

    /* Контентная зона справа */
    .profile-content { 
        flex: 1 !important; 
        padding: 20px 15px !important; 
        overflow-y: auto !important;
        min-width: 0 !important;
    }

    .pm-modal-card, .sw-modal-card, .admin-modal-card, .contact-modal, .review-card { 
        width: 95% !important; max-width: 400px !important; padding: 25px 20px !important; 
        max-height: 85vh !important; overflow-y: auto !important; border-radius: 20px !important; box-sizing: border-box !important;
    }
    .pm-modal-grid { flex-direction: column !important; }
    .pm-modal-title { font-size: 22px !important; text-align: center !important; margin-bottom: 15px !important; margin-top: 20px !important;}
    .close-modal, .close-review-modal, .sw-close-x, .close-adm-disc { top: 15px !important; right: 20px !important; font-size: 28px !important; }

    /* Админка (Адаптация) */
    .admin-wrapper { margin-top: 40px !important; padding: 0 10px !important; }
    .admin-header-block h1 { font-size: 32px !important; }
    .admin-stats-grid { grid-template-columns: 1fr !important; }
    .admin-bento-section { padding: 20px !important; border-radius: 20px !important; }
    #profileAdminBtn {
    display: none !important;
    }
    
    /* Таблицы превращаем в карточки на телефонах */
    .admin-table thead { display: none !important; }
    .admin-table tr { display: flex !important; flex-direction: column !important; margin-bottom: 15px !important; background: rgba(255,255,255,0.03) !important; border-radius: 12px !important; padding: 15px !important; border: 1px solid rgba(255,255,255,0.05) !important;}
    .admin-table td { padding: 8px 0 !important; display: flex !important; justify-content: space-between !important; align-items: center !important; text-align: right !important; border: none !important; font-size: 14px !important;}
    .admin-table td::before { content: attr(data-label); font-weight: bold; color: #888; text-transform: uppercase; font-size: 11px; text-align: left; margin-right: 10px; }

    /* --- МОБИЛЬНЫЙ ФИКС ОПЛАТЫ --- */
    .payment-card { padding: 30px 20px !important; }

    /* --- ИСТОРИЯ ПОКУПОК --- */
    .purchases-container { margin-top: 100px !important; }
    .page-title { font-size: 28px !important; text-align: center !important; }
    .bento-purchase-card { padding: 20px !important; border-radius: 20px !important; gap: 20px !important; }
    .purchase-top { flex-direction: column !important; gap: 15px !important; align-items: flex-start !important; }
    .purchase-dates { align-items: flex-start !important; }
    .purchase-credentials { grid-template-columns: 1fr !important; gap: 12px !important; }
    .cred-box { padding: 12px 15px !important; }
    .cred-value { font-size: 15px !important; }

    /* --- СТРАНИЦА АВТОРИЗАЦИИ (LOGIN НА МОБИЛКАХ) --- */
    body:has(.page-wrapper) {
        padding-top: 0 !important;
        overflow-y: auto !important;
        height: auto !important;
    }

    .page-wrapper {
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        min-height: 100vh !important;
        height: auto !important;
        padding: 25px 15px !important;
        box-sizing: border-box !important;
    }

    /* На телефонах прячем длинное левое приветствие и сразу показываем карточку входа */
    .left-content {
        display: none !important;
    }

    .auth-side-panel {
        position: relative !important;
        right: auto !important;
        top: auto !important;
        bottom: auto !important;
        width: 100% !important;
        max-width: 420px !important;
        height: auto !important;
        min-height: auto !important;
        transform: none !important;
        background: rgba(0, 0, 0, 0.88) !important;
        backdrop-filter: blur(25px) !important;
        -webkit-backdrop-filter: blur(25px) !important;
        border: 1px solid rgba(255, 112, 67, 0.3) !important;
        border-radius: 26px !important;
        box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 30px rgba(255, 112, 67, 0.12) !important;
        margin: auto !important;
        overflow: hidden !important;
    }

    /* Прячем крестик закрытия шторки на мобилке (так как форма является главным экраном) */
    .panel-header {
        display: none !important;
    }

    .auth-content {
        padding: 32px 22px 28px !important;
    }

    .auth-title {
        text-align: center !important;
        font-size: 28px !important;
    }

    .auth-subtitle {
        text-align: center !important;
        margin-bottom: 22px !important;
    }
}