/* ============================================
   СБРОС И БАЗОВЫЕ СТИЛИ (Reset & Base Styles)
   ============================================ */

/* Box-sizing для всех элементов */
*,
*::before,
*::after {
    box-sizing: border-box;
    list-style: none;
}

/* Сброс отступов по умолчанию */
* {
    margin: 0;
    padding: 0;
}

/* Базовые настройки html и body */
html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
}

/* Основные стили body */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
        Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue',
        sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
    color: #d6d9ff;
}

/* Изображения и медиа-элементы */
img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}

/* Наследование шрифтов для форм */
input,
button,
textarea,
select {
    font: inherit;
}

/* ============================================
   ЦВЕТОВАЯ ПАЛИТРА (Color Palette)
   ============================================ */
:root {
    /* Основные цвета */
    --primary-color: #667eea;
    --primary-dark: #5a67d8;
    --primary-light: #7c8ce4;

    /* Вторичные цвета */
    --secondary-color: #764ba2;
    --secondary-dark: #6b4390;
    --secondary-light: #8a5fb5;

    /* Фоновые цвета */
    --bg-dark: #0f1020;
    --bg-medium: #191a2d;
    --bg-light: rgba(25, 26, 45, 0.85);

    /* Текстовые цвета */
    --text-primary: #ffffff;
    --text-secondary: #d6d9ff;
    --text-muted: rgba(214, 217, 255, 0.55);

    /* Границы и тени */
    --border-color: rgba(143, 162, 255, 0.25);
    --border-light: rgba(214, 217, 255, 0.55);
    --shadow-color: rgba(102, 126, 234, 0.3);

    /* Состояния */
    --hover-bg: rgba(102, 126, 234, 0.1);
    --focus-border: rgb(102, 126, 234);
    --focus-shadow: rgba(0, 0, 0, 0.4);
}

/* ============================================
   ТИПОГРАФИКА (Typography)
   ============================================ */

/* Заголовки */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 0.5em;
    color: var(--text-primary);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1.1rem;
}

/* Параграфы */
p {
    margin-bottom: 1em;
    color: var(--text-secondary);
}

/* Ссылки */
a {
    color: var(--primary-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-color);
}

/* ============================================
   ОБЩИЕ СТИЛИ ДЛЯ КНОПОК (Buttons)
   ============================================ */
button,
.button,
input[type="submit"],
input[type="button"],
input[type="reset"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-primary);
    min-height: 40px;
}

/* Состояния кнопок */
button:hover,
.button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
input[type="reset"]:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--secondary-dark));
    transform: translateY(0);
    box-shadow: 0 4px 15px var(--shadow-color);
}

button:active,
.button:active,
input[type="submit"]:active,
input[type="button"]:active,
input[type="reset"]:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

button:focus,
.button:focus,
input[type="submit"]:focus,
input[type="button"]:focus,
input[type="reset"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
}

/* Отключенное состояние */
button:disabled,
.button:disabled,
input[type="submit"]:disabled,
input[type="button"]:disabled,
input[type="reset"]:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* ============================================
   ОБЩИЕ СТИЛИ ДЛЯ ФОРМ И ПОЛЕЙ ВВОДА
   ============================================ */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
input[type="search"],
input[type="url"],
textarea,
select {
    border: 1px solid transparent;
    color: var(--text-primary);
    padding: 7px 14px;
    width: 100%;
    outline: none;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    font-family: inherit;
    font-size: 1.1rem;
    min-height: 40px;
    box-sizing: border-box;
}

/* Текстовые области */
textarea {
    min-height: 100px;
    resize: vertical;
    line-height: 1.5;
}

/* Селекты */
select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='rgba(214, 217, 255, 0.55)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
    padding-right: 40px;
}

/* Состояние при наведении */
input[type="text"]:hover,
input[type="email"]:hover,
input[type="password"]:hover,
input[type="tel"]:hover,
input[type="number"]:hover,
input[type="search"]:hover,
input[type="url"]:hover,
textarea:hover,
select:hover {
    border-color: rgba(102, 126, 234, 0.5);
    background: rgba(255, 255, 255, 0.08);
}

/* Фокусное состояние */
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
input[type="search"]:focus,
input[type="url"]:focus,
textarea:focus,
select:focus {
    border-color: var(--focus-border);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1), inset 0 0 4px 4px var(--focus-shadow);
    background: rgba(255, 255, 255, 0.08);
}

/* Плейсхолдер */
input[type="text"]::placeholder,
input[type="email"]::placeholder,
input[type="password"]::placeholder,
input[type="tel"]::placeholder,
input[type="number"]::placeholder,
input[type="search"]::placeholder,
input[type="url"]::placeholder,
textarea::placeholder,
select::placeholder {
    color: var(--text-muted);
}

/* Отключенные поля */
input[type="text"]:disabled,
input[type="email"]:disabled,
input[type="password"]:disabled,
input[type="tel"]:disabled,
input[type="number"]:disabled,
input[type="search"]:disabled,
input[type="url"]:disabled,
textarea:disabled,
select:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.03);
}

/* Поле поиска */
input[type="search"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='rgba(214, 217, 255, 0.55)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 14px center;
    background-size: 16px;
    padding-left: 40px;
}

/* Убираем стандартные стили поиска */
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
    -webkit-appearance: none;
}

input[type="search"]::-ms-clear {
    display: none;
}

/* Радио и чекбоксы */
input[type="radio"],
input[type="checkbox"] {
    accent-color: var(--primary-color) !important;
    width: 18px !important;
    height: 18px !important;
    cursor: pointer !important;
    margin-right: 8px !important;
}

/* Группы форм */
.form-group {
    margin-bottom: 20px;
    width: 100%;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
}

/* Горизонтальные формы */
.form-inline {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.form-inline .form-group {
    flex: 1;
    margin-bottom: 0;
}

/* ============================================
   ШАПКА (Header)
   ============================================ */

/* Основной контейнер шапки */
header {
    display: flex;
    position: fixed;
    box-sizing: border-box;
    justify-content: center;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(125, 100, 255, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 80%, rgba(100, 200, 255, 0.1) 0%, transparent 60%),
        linear-gradient(135deg,
            var(--bg-dark) 0%,
            var(--bg-light) 50%,
            var(--bg-dark) 100%);

    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border-color);
    box-shadow:
        0 10px 30px rgba(5, 6, 20, 0.8),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0 20px;
    transform: translateZ(100px);
    /* Создаем новый контекст */
    isolation: isolate;
    /* Изолируем */
}

/* Контейнер содержимого шапки */
.header_box {
    display: flex;
    width: 100%;
    max-width: 1360px;
    justify-content: space-between;
    align-items: center;
}

/* Левая и правая части шапки */
.header_r,
.header_l {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* ============================================
   ЛОГОТИП (Logo)
   ============================================ */

/* Контейнер логотипа */
.logobox {
    display: flex;
    align-items: center;
}

/* Стили самого логотипа */
.logo {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 2.2rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    color: var(--text-primary);
    text-decoration: none;
    position: relative;
    padding: 5px 0px;
    display: inline-block;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: logoReveal 0.8s cubic-bezier(0.4, 0, 0.2, 1) backwards;
    animation-delay: 0.3s;
}

/* Часть логотипа с градиентом */
.logo span {
    font-weight: 300;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    margin-left: 2px;
}

/* Эффект свечения под логотипом */
.logo::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 20px;
    right: 20px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-color), var(--secondary-color), transparent);
    transform: scaleX(0);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

/* Ховер-эффекты логотипа */
.logo:hover {
    transform: translateY(-3px) scale(1.02);
    text-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
    text-decoration: underline;
}

.logo:hover::after {
    transform: scaleX(1);
}

/* Анимация появления логотипа */
@keyframes logoReveal {
    0% {
        opacity: 0;
        transform: translateY(-30px) scale(0.9);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ============================================
   ПОИСК (Search)
   ============================================ */

/* Контейнер поиска */
.search {
    display: flex;
    position: relative;
    align-items: center;
    border-radius: 6px;
    border: 1px solid transparent;
}

.search input[type="text"] {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    padding: 0 45px 0 14px;
    width: 100%;
}

.search input[type="text"]::placeholder {
    color: var(--text-muted);
}

/* Кнопка поиска */
.search button[type="submit"] {
    background: transparent;
    position: absolute;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    box-shadow: none;
}

.search button[type="submit"] svg {
    stroke: var(--border-light);
    transition: all 0.3s ease;
}

.search button[type="submit"]:hover svg {
    transform: scale(1.3) rotate(90deg);
    stroke-width: 2.5;
    stroke: white;
    filter: drop-shadow(0 0px 2px rgba(0, 0, 0, 0.8));
}

/* ============================================
   ПОЛЬЗОВАТЕЛЬ (User)
   ============================================ */

/* Контейнер пользователя */
.header_login {
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
}

/* Ссылка на профиль */
.profile_link {
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.profile_link:hover {
    text-shadow: 0 8px 25px rgba(102, 126, 234, 0.9);
}

/* Аватар пользователя */
.profile_foto {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 2px solid rgba(102, 126, 234, 0.6);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
}

.profile_foto:hover {
    transform: scale(1.1);
    border-color: var(--primary-color);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

/* Иконка администратора */
.admin-link {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 2rem;
    font-weight: normal;
    stroke-width: 1px !important;
    transition: all 0.3s ease;
}

.admin-link:hover {
    color: yellow;
    transform: scale(1.3);
}

/* ============================================
   МОДАЛЬНОЕ ОКНО (Modal Window)
   ============================================ */

/* Оверлей модального окна */
.login_modal_box {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
}

/* Анимация для модалки */
#login_modal_box {
    opacity: 0;
    transition: opacity 0.3s ease;
    display: none;
}

#login_modal_box .login_modal {
    transform: scale(0.95);
    opacity: 0;
    transition: all 0.3s ease;
}

/* Когда модалка открыта */
#login_modal_box[style*="display: flex"] .login_modal,
#login_modal_box[style*="display: flex"] {
    opacity: 1;
    transform: scale(1);
}

/* Контейнер модального окна */
.login_modal {
    position: relative;
    width: 100%;
    max-width: 400px;
    padding: 30px;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(125, 100, 255, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 80%, rgba(100, 200, 255, 0.1) 0%, transparent 60%),
        linear-gradient(135deg,
            var(--bg-dark) 0%,
            var(--bg-light) 50%,
            var(--bg-dark) 100%);

    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    box-shadow: 0 0px 15px rgba(102, 126, 234, 0.8);
}

/* Кнопка закрытия модалки */
.login_modal_close {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 10px;
    border-radius: 50%;
    z-index: 10;
}

.login_modal_close svg {
    transition: all 0.3s ease;
}

.login_modal_close:hover svg {
    transform: rotate(90deg);
}

/* Социальные кнопки */
.login_social {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 15px;
}

.login_social a {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.login_social a:hover {
    background: rgba(102, 126, 234, 0.3);
    border-color: rgba(102, 126, 234, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--shadow-color);
}

/* Кнопка в модалке */
.login_modal button {
    width: 100%;
    margin-top: 10px;
    padding: 12px;
    border-radius: 6px;
    border: none;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    min-height: 40px;
}

.login_modal button:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--secondary-dark));
    box-shadow: 0 4px 15px var(--shadow-color);
    transform: translateY(-2px);
}

/* Нижняя часть формы */
.login_form__foot {
    display: flex;
    width: 100%;
    justify-content: space-between;
    margin-top: 15px;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
}

.login_form__foot a {
    color: var(--primary-light);
    text-decoration: none;
}

.login_form__foot a:hover {
    color: var(--primary-color);
}

/* ============================================
   ОСНОВНОЙ КОНТЕНТ (Main Content)
   ============================================ */

main {
    display: flex;
    flex: 1 0 auto;
    flex-direction: column;
    width: 100%;
    background-attachment: fixed;
    background-image:
        radial-gradient(ellipse at 20% 20%, rgba(60, 45, 170, 0.17) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(45, 110, 170, 0.12) 0%, transparent 50%),
        linear-gradient(135deg,
            rgba(5, 5, 10, 0.985) 0%,
            rgba(12, 14, 25, 0.99) 50%,
            rgba(5, 5, 10, 0.985) 100%);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    padding: 0 20px;
    position: relative;
    
    align-items: center;
}

.main {
    display: flex;
    gap: 20px;
    width: 100%;
    max-width: 1360px;
}

.main_left {
    display: flex;
    position: relative;
    gap: 20px;
    flex: 1;
    padding: 20px 0;
    flex-direction: column;
    width: 100%;
}

.speedbar {
    display: inline-flex;
    width: 100%;
    background:
        radial-gradient(ellipse at 20% 15%, rgba(125, 100, 255, 0.18) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 85%, rgba(100, 200, 255, 0.12) 0%, transparent 60%),
        linear-gradient(135deg,
            var(--bg-dark) 0%,
            rgba(25, 26, 45, 0.9) 50%,
            var(--bg-dark) 100%);

    backdrop-filter: blur(22px) saturate(185%);
    -webkit-backdrop-filter: blur(22px) saturate(185%);
    border: 1px solid rgba(143, 162, 255, 0.18);
    box-shadow:
        0 14px 40px rgba(5, 6, 20, 0.85),
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        inset 0 -1px 0 rgba(0, 0, 0, 0.35);
    gap: 5px;
    padding: 5px;
    border-radius: 8px;
    margin-top: 20px;
}

.main_content_grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    width: 100%;
}

/* Обычный блок для остальных страниц */
.main_content_flex {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.main_right {
    display: flex;
    flex-direction: column;
    width: 320px;
    align-self: flex-start;
    padding: 20px 0;
}



/* ============================================
   КАТЕГОРИИ МЕНЮ (Category Menu)
   ============================================ */

.cat_menu {
    width: 100%;
    padding: 8px 0;
    border-radius: 10px;
    background:
        radial-gradient(ellipse at 20% 15%, rgba(125, 100, 255, 0.18) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 85%, rgba(100, 200, 255, 0.12) 0%, transparent 60%),
        linear-gradient(135deg,
            var(--bg-dark) 0%,
            rgba(25, 26, 45, 0.9) 50%,
            var(--bg-dark) 100%);

    backdrop-filter: blur(22px) saturate(185%);
    -webkit-backdrop-filter: blur(22px) saturate(185%);
    border: 1px solid rgba(143, 162, 255, 0.18);
    box-shadow:
        0 14px 40px rgba(5, 6, 20, 0.85),
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        inset 0 -1px 0 rgba(0, 0, 0, 0.35);
    overflow: hidden;
}

/* ---------- ITEM ---------- */
.cat_menu_link {
    display: flex;
    width: 100%;
    position: relative;
}

/* ---------- LINK ---------- */
.cat_menu_link a {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 10px;
    padding: 12px 22px;
    border-top: 1px solid transparent;
    border-bottom: 1px solid transparent;
    transition:
        background 0.3s ease,
        color 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.cat_menu_link a:hover {
    background:
        linear-gradient(135deg,
            rgba(102, 126, 234, 0.28) 0%,
            rgba(118, 75, 162, 0.28) 100%);
    color: #fff;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    box-shadow:
        inset 0 0 0 1px rgba(160, 180, 255, 0.15),
        inset 0 10px 20px rgba(102, 126, 234, 0.15);
}

/* ---------- ACTIVE ---------- */
.cat_menu_link_active a {
    position: relative;
    background:
        linear-gradient(135deg,
            rgba(140, 160, 255, 0.22),
            rgba(110, 130, 255, 0.18));
    color: #fff;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    box-shadow:
        inset 0 0 0 1px rgba(160, 180, 255, 0.18),
        inset 0 12px 24px rgba(102, 126, 234, 0.2);
}

/* ---------- ACTIVE INDICATOR ---------- */
.cat_menu_link_active a::before {
    content: '';
    position: absolute;
    right: 0;
    top: 6px;
    bottom: 6px;
    width: 5px;
    background:
        linear-gradient(180deg,
            rgba(140, 160, 255, 0.9),
            rgba(100, 200, 255, 0.9));
    border-radius: 4px 0 0 4px;
    box-shadow:
        0 0 12px rgba(120, 150, 255, 0.8);
}

/* ============================================
   КОРОТКАЯ НОВОСТЬ (Short Story)
   ============================================ */

/* Базовые стили для контейнера новости */
.shortstory {
    display: flex;
    overflow: hidden;
    flex-direction: column;
    width: 100%;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(125, 100, 255, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 80%, rgba(100, 200, 255, 0.1) 0%, transparent 60%),
        linear-gradient(135deg,
            var(--bg-dark) 0%,
            var(--bg-light) 50%,
            var(--bg-dark) 100%);

    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid transparent;
    border-radius: 6px;
    transition: all .2s ease;
    height: 100%;
    /* Занимает всю высоту ячейки */
}

.shortstory:hover {
    transform: scale(1.01);
    border: 1px solid var(--border-light);
    box-shadow: 0 0px 15px rgba(102, 126, 234, 0.8);
}

/* Контейнер для изображения */
.short_img {
    position: relative;
    display: flex;
    align-items: flex-end;
    /* якорь снизу */
    overflow: hidden;
    border-radius: 6px 6px 0 0;
    aspect-ratio: 16 / 9;
    background: rgba(15, 16, 32, 0.3);
}

.short_img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}



/* Заголовок поверх изображения */
.short_title {
    position: absolute;
    /* ❗ НЕ absolute */
    margin: 0;
    width: 100%;
    background: linear-gradient(to top, var(--bg-dark) 0%, rgba(15, 16, 32, 0.8) 40%, rgba(15, 16, 32, 0.5) 70%, transparent 100%);
    color: rgba(214, 217, 255, 0.95);

}

.short_title h2 {
    font-size: 1.5rem;
    font-weight: 300;
    /* ОБРЕЗКА В 2 СТРОКИ — РАБОЧИЙ ПОРЯДОК: */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    /* ← ЭТО СРАБОТАЕТ */
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 10px;
}

/* Контент карточки */
.short_content {
    padding: 18px 16px;
    flex-grow: 1;
    color: rgba(214, 217, 255, 0.75);
    font-size: 1rem;
    line-height: 1.3;
    border-bottom: 1px solid rgba(214, 217, 255, 0.08);
    cursor: default;
}

.short_content p {
    margin: 0 0 10px 0;
}

.short_content p:last-child {
    margin-bottom: 0;
}

/* Футер карточки */
.short_foot {
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

/* Цена */
.short_price {
    color: rgba(214, 217, 255, 0.9);
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Кнопка "Подробнее" */
.short_foot a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    color: rgba(214, 217, 255, 0.9);
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(102, 126, 234, 0.2);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

/* Бегущая линия сверху */
.short_foot a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), var(--secondary-color), transparent);
    animation: runningLine 3s infinite;
}

/* Бегущая линия снизу */
.short_foot a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #f093fb, #f5576c, transparent);
    animation: runningLine 3s infinite 1.5s;
    /* Задержка */
}

@keyframes runningLine {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

.short_foot a:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.25) 0%, rgba(118, 75, 162, 0.25) 100%);
    color: rgba(255, 255, 255, 1);
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 0 4px 15px var(--shadow-color);

    /* Ускоряем анимацию при наведении */
    &::before,
    &::after {
        animation-duration: 1s;
        height: 3px;
    }
}

/* Для иконки внутри кнопки */
.short_foot a svg {
    transition: transform 0.3s ease;
}

.short_foot a:hover svg {
    transform: translateX(3px) rotate(45deg);
}

/* Анимация появления */
@keyframes cardAppear {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.shortstory {
    animation: cardAppear 0.4s ease-out;
}

/* ============================================
   ДЛИННАЯ НОВОСТЬ (Full Story)
   ============================================ */

.fullstory {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 20px;
}

.full_img {
    display: flex;
    width: 100%;
    aspect-ratio: 16/9;
    position: relative;
    /* Для абсолютных детей */
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid rgba(143, 162, 255, 0.18);
    box-shadow:
        0 14px 40px rgba(5, 6, 20, 0.85),
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        inset 0 -1px 0 rgba(0, 0, 0, 0.35);
}

.full_img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.full_favorites {
    display: flex;
    width: 100%;
    position: absolute;
    justify-content: space-between;
    padding: 20px;
}

/* частицы */
.star-splash {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    pointer-events: none;
    background: radial-gradient(circle, #ffd54a 0%, #ffb300 70%, transparent 100%);
    opacity: 1;
    transform: translate(0, 0) scale(1);
    z-index: 9999;
    transition: transform 0.6s ease-out, opacity 0.6s ease-out;
}

/* кольцо всплеска */
.star-ring {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid #ffd54a;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.8;
    transform: scale(0);
    z-index: 9998;
    transition: transform 0.5s ease-out, opacity 0.5s ease-out;
}










.full_title {
    font-size: clamp(1.75rem, 6vw, 2.50rem);
    font-weight: 400;
    color: #fff;
    position: relative;
    border-top: 1px solid rgba(143, 162, 255, 0.25);
    border-bottom: 1px solid rgba(143, 162, 255, 0.25);
    line-height: auto;
}

.full_content {
    font-size: calc(1.1rem + 0.25vw);
    /* Адаптивный размер */
    font-weight: 300;
    color: #2d3748;
    font-family: system-ui, -apple-system, sans-serif;
}

.full_content p {
    margin: 0 0 1.5em 0;
}

.full_content h2 {
    font-size: 1.5em;
    margin: 2em 0 1em 0;
    font-weight: 600;
}

.full_content h3 {
    font-size: 1.25em;
    margin: 1.75em 0 0.875em 0;
    font-weight: 600;
}

.full_content img {
    max-width: 100%;
    height: auto;
    margin: 2em auto;
    display: block;
}

.full_content a {
    color: #3182ce;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.full_content a:hover {
    color: #2c5282;
}

/* Убираем горизонтальный скролл на мобильных */
.full_content {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* Основные контейнеры */
.full_tools {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 1rem;
}

.full_meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    border-top: 1px solid rgba(143, 162, 255, 0.1);
}

/* Категория */
.full_category {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font: 500 0.875rem/1 -apple-system, BlinkMacSystemFont, sans-serif;
    color: rgba(143, 162, 255, 0.9);
    text-decoration: none;
    padding: 0.5rem 1rem;
    background: rgba(125, 100, 255, 0.08);
    border-radius: 8px;
}

.full_category svg {
    width: 18px;
    height: 18px;
    stroke: rgba(125, 100, 255, 0.8);
}

/* Рейтинг */
.full_rate_like {
    display: flex;
    align-items: center;
    font: 600 0.875rem/1 -apple-system, BlinkMacSystemFont, sans-serif;
    color: #fff;
    background: rgba(255, 70, 70, 0.12);
    border-radius: 8px;
}

.full_rate_like svg {
    width: 18px;
    height: 18px;
    fill: rgba(255, 70, 70, 0.7);
    stroke: rgba(255, 70, 70, 0.9);
}

.full_rate_like a {
    display: flex;
    width: 100%;
    height: 100%;
    gap: 0.5rem;
    align-items: center;
    padding: 0.5rem 1rem;
}

/* Мета-информация */
.full_meta_left,
.full_meta_right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.full_views,
.full_com_num,
.full_author,
.full_time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font: 400 0.8125rem/1 -apple-system, BlinkMacSystemFont, sans-serif;
    color: rgba(255, 255, 255, 0.6);
}

.full_complaint {
    padding: 0.375rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    align-items: center;
    justify-content: center;
}

.full_complaint svg {
    width: 18px;
    height: 18px;
    stroke: rgba(255, 100, 100, 0.6);
}

/* Иконки */
.full_views svg,
.full_com_num svg {
    width: 16px;
    height: 16px;
    stroke: rgba(100, 200, 255, 0.6);
}

.full_author svg {
    width: 16px;
    height: 16px;
    stroke: rgba(255, 200, 100, 0.6);
}

.full_time svg {
    width: 16px;
    height: 16px;
    stroke: rgba(160, 220, 160, 0.6);
}

/* Комментарии */
.full_com_num a {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Акцентные элементы */
.full_category:hover {
    background: rgba(125, 100, 255, 0.12);
    color: rgba(143, 162, 255, 1);
}

.full_rate_like:hover {
    background: rgba(255, 70, 70, 0.18);
}

.full_com_num:hover {
    color: rgba(100, 200, 255, 0.9);
}

.full_author:hover {
    color: rgba(255, 200, 100, 0.9);
}

.full_time:hover {
    color: rgba(160, 220, 160, 0.9);
}

/* Навигация "Предыдущая/Следующая" */
.full_next_prev {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0;
    border-top: 1px solid rgba(143, 162, 255, 0.1);
    border-bottom: 1px solid rgba(143, 162, 255, 0.1);
    margin: 2rem 0;
}

.full_next_prev a {
    font: 500 0.875rem/1 -apple-system, BlinkMacSystemFont, sans-serif;
    color: rgba(143, 162, 255, 0.9);
    text-decoration: none;
    padding: 0.75rem 1.25rem;
    background: rgba(125, 100, 255, 0.08);
    border-radius: 8px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.full_next_prev a:hover {
    background: rgba(125, 100, 255, 0.12);
    color: rgba(143, 162, 255, 1);
    border-color: rgba(125, 100, 255, 0.2);
    transform: translateY(-1px);
}

.full_next_prev a:only-child {
    margin: 0 auto;
}

/* Блок комментариев */
.full_comments {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    padding: 20px 0;
}

.full_comments_head {
    font: 400 1.25rem/1.4 -apple-system, BlinkMacSystemFont, sans-serif;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.full_comments_head::before {
    content: '';
    display: block;
    width: 4px;
    height: 20px;
    background: rgba(125, 100, 255, 0.9);
}

/* Список комментариев */
.full_com_list {
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* ============================================
   КОММЕНТАРИИ (Comments)
   ============================================ */

/* Контейнер комментария */
.comment {
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin: 0;
    gap: 10px;
    padding: 10px 0;
}

/* Информация о комментаторе */
.com_info {
    display: flex;
    align-items: center;
    position: relative;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
}

/* Аватар */
.com_avatar {
    display: flex;
    align-items: center;
    position: relative;
    gap: 10px;
}

.com_profile_foto {
    width: 60px;
    height: 60px;
}

.com_online {
    display: flex;
    align-items: center;
    justify-content: center;
}

.com_author {
    display: flex;
    font: 600 0.875rem/1.4 -apple-system, BlinkMacSystemFont, sans-serif;
    color: #ffffff;
}

.com_date {
    font: 400 0.75rem/1 -apple-system, BlinkMacSystemFont, sans-serif;
    color: rgba(255, 255, 255, 0.4);
}

/* Контент комментария */
.com_content_box {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    position: relative;
    margin-top: 5px;
}

/* Основная стрелочка */
.com_content_box::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 20px;
    /* Позиционируем под аватаркой */
    width: 20px;
    height: 10px;
    background: rgba(255, 255, 255, 0.06);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    z-index: 20;
}

.com_content {
    padding: 10px 20px;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
}

.com_content_box .com_title {
    font-size: 1rem;
    font-weight: normal;
    color: rgba(255, 255, 255, 0.8);
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);

}

.com_content_box .com_title a {
    font-size: 1.1rem;
    font-weight: normal;
    color: rgba(143, 162, 255, 0.9);
}

/* Подпись и разделители */
.com_signature {
    display: inline-flex;
    justify-content: flex-end;
    font: 400 0.9rem;
    color: rgba(255, 255, 255, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 10px 20px;
}

/* Мета-действия */
.com_meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
}

.com_reply,
.com_complaint,
.com_edit,
.com_del {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font: 400 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    padding: 0.375rem 0.5rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.com_reply:hover {
    color: rgba(100, 200, 255, 0.9);
    background: rgba(100, 200, 255, 0.08);
}

.com_complaint:hover {
    color: rgba(35, 255, 35, 0.9);
    background: rgba(255, 100, 100, 0.08);
}

.com_edit:hover {
    color: rgba(255, 166, 0, 0.9);
    background: rgba(255, 200, 100, 0.08);
}

.com_del:hover {
    color: rgba(255, 50, 50, 0.9);
    background: rgba(255, 100, 100, 0.08);
}

/* Иконки в мета-действиях */
.com_meta svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    opacity: 0.7;
}

.com_edit svg,
.com_del svg {
    width: 16px;
    height: 16px;
}

/* Массовые действия */
.com_mass {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    /* Фиксируем ширину как у чекбокса */
    height: 18px;
    margin: 0;
    padding: 0;
    line-height: 0;
    box-sizing: border-box;
}

input.form-check-input {
    padding: 0 !important;
    margin: 0 !important;
}




#dle-comments-list>.mass_comments_action {
    display: flex;
    width: 100%;
}


/* ============================================
   ФУТЕР (Footer)
   ============================================ */

footer {
    display: flex;
    flex-shrink: 0;
    background: #1a1a1a;
    color: #b0b0b0;
    padding: 30px 0;
    border-top: 1px solid #333;
    width: 100%;
    justify-content: center;
}

.footer_box {
    display: flex;
    width: 100%;
    max-width: 1360px;
}

/* ============================================
   ИНФОРМАЦИОННЫЙ БЛОК (Info Box)
   ============================================ */

.info_box {
    position: fixed;
    top: 20px;
    right: 20px;
    max-width: 480px;
    padding: 16px 20px;
    border-radius: 14px;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(125, 100, 255, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 80%, rgba(100, 200, 255, 0.1) 0%, transparent 60%),
        linear-gradient(135deg,
            var(--bg-dark) 0%,
            var(--bg-light) 50%,
            var(--bg-dark) 100%);

    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--border-color);
    box-shadow:
        0 10px 30px rgba(5, 6, 20, 0.8),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3);
    color: var(--text-primary);

    z-index: 2147483647;

    /* стартовое состояние */
    transform: translateX(120%);
    opacity: 0;
    pointer-events: none;
    transition:
        transform .55s cubic-bezier(.22, .61, .36, 1),
        opacity .4s ease;
}

.info_box.is-show {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
}

/* заголовок */
.info_box b {
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
    color: var(--text-primary);
}

/* текст */
.info_box p {
    margin: 0;
    line-height: 1.45;
    color: var(--text-secondary);
}

.info_close {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 5px;
    right: 0;
    background: transparent;
    transition: .3a all;
}

.info_close:hover {
    background: transparent;
    box-shadow: none;
}

.info_close:hover svg {
    stroke: var(--border-color);
}

/* ============================================
   АДАПТИВНОСТЬ (Responsive)
   ============================================ */

/* Для шапки (планшеты) */
@media (max-width: 992px) {
    .header_box {
        padding: 0 20px;
    }

    .header_r input[type="text"] {
        width: 180px;
    }

    .header_r,
    .header_l {
        gap: 15px;
    }

    .header_login {
        gap: 15px;
    }

    .profile-link span[style*="background-image"] {
        width: 36px;
        height: 36px;
    }

    .admin-link {
        font-size: 1.8rem;
    }
}

/* Для шапки (мобильные) */
@media (max-width: 768px) {
    .header_box {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 15px;
        padding: 15px;
    }

    /* Логотип занимает левую часть */
    .header_l {
        flex: 1;
        min-width: 0;
        order: 1;
    }

    /* Поиск занимает всю ширину на второй строке */
    .header_r {
        width: 100%;
        order: 3;
        margin-top: 10px;
    }

    .header_r form {
        width: 100%;
    }

    .header_r input[type="text"] {
        width: 100%;
    }

    .logo {
        font-size: 1.8rem;
    }

    /* Блок пользователя в правой части верхней строки */
    .header_login {
        order: 2;
        gap: 12px;
        justify-content: flex-end;
    }

    /* Скрываем текст имени пользователя на мобильных */
    .profile-link span:not([style*="background-image"]) {
        display: none;
    }

    .profile-link span[style*="background-image"] {
        width: 35px;
        height: 35px;
    }

    .admin-link {
        font-size: 1.7rem;
    }
}

/* Для очень маленьких экранов */
@media (max-width: 480px) {
    .header_box {
        padding: 12px;
        gap: 12px;
    }

    .header_l {
        flex: 1;
    }

    .header_r {
        order: 3;
        margin-top: 8px;
    }

    .header_login {
        gap: 10px;
    }

    .profile-link span[style*="background-image"] {
        width: 32px;
        height: 32px;
    }

    .admin-link {
        font-size: 1.6rem;
    }

    .logo {
        font-size: 1.6rem;
    }

    .search input[type="text"] {
        padding: 10px 14px;
    }

    .search button[type="submit"] {
        width: 40px;
        height: 40px;
    }
}

/* Для поиска (отдельный медиа-запрос для ширины поля) */
@media (max-width: 768px) {
    .search input[type="text"] {
        width: 100%;
        min-width: auto;
    }
}

/* Для модального окна (мобильные) */
@media (max-width: 480px) {
    .login_modal {
        padding: 25px 20px;
        margin: 0 15px;
        border-radius: 10px;
    }

    .login_modal input[type="text"],
    .login_modal input[type="password"] {
        padding: 10px 14px;
    }

    .login_form__foot {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
}

/* Настройки для разных размеров экрана - основной контент */
@media (max-width: 768px) {
    .main_content_grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .main_content_grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* Адаптивность для мобильных - правый блок */
@media (max-width: 1100px) {
    .main {
        flex-direction: column;
    }

    .main_right {
        width: 100%;
        position: static;
        max-height: none;
        overflow-y: visible;
    }
}

/* Адаптивность - длинная новость */
@media (max-width: 768px) {
    .full_title {
        padding: 1.25rem;
        margin-bottom: 1.5rem;
        font-size: 1.75rem;
    }

    .full_content {
        padding: 1rem 0.5rem;
        font-size: 1rem;
    }

    .full_tools {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1.25rem;
    }

    .full_meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1rem 0;
    }

    .full_meta_left,
    .full_meta_right {
        width: 100%;
        justify-content: space-between;
    }

    .full_next_prev {
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem 0;
    }

    .full_next_prev a {
        width: 100%;
        text-align: center;
    }

    .full_comments .addcomments {
        padding: 1.5rem;
    }

    .full_comments_head {
        font-size: 1.125rem;
    }
}

@media (max-width: 576px) {
    .full_title {
        padding: 1rem;
        margin-bottom: 1rem;
        font-size: 1.5rem;
        line-height: 1.3;
        border-radius: 8px;
    }
}

/* Адаптивность - короткая новость */
@media (max-width: 768px) {
    .short_foot {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .short_foot a {
        width: 100%;
        justify-content: center;
    }

    .short_price {
        justify-content: center;
    }

    .short_title {
        font-size: 1.1rem;
        padding: 16px 12px 12px;
    }

    .short_content {
        padding: 14px 12px;
        font-size: 0.9rem;
    }
}

/* Адаптивность - комментарии */
@media (max-width: 768px) {
    .com_info {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .com_meta {
        width: 100%;
        justify-content: flex-start;
        margin-top: 0.5rem;
        padding-top: 0.5rem;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }

    .com_content {
        margin-left: 0;
        margin-top: 0.75rem;
    }

    .com_avatar_cover {
        width: 32px;
        height: 32px;
    }
}

/* ============================================
   АНИМАЦИИ (Animations)
   ============================================ */

/* Анимация появления элементов шапки */
.header_r,
.header_l {
    animation: slideIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}

.header_r {
    animation-delay: 0.2s;
}

@keyframes slideIn {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Блокировка скролла при открытой модалке */
body.modal-open {
    overflow: hidden;
}
























.DLEPush {
    z-index: 2001;
    position: fixed;
    right: 20px;
    top: 20px
}

@keyframes DLEPush-show {
    0% {
        transform: translateY(100%);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.DLEPush-notification.wrapper {
    animation-name: DLEPush-show;
    animation-duration: 1s;
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    color: #333;
    margin-bottom: 10px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 10px 15px rgb(0 0 0 / 20%);
    background-color: #fff;
    border-radius: 10px
}

.DLEPush-notification .DLEPush-icon {
    grid-column: 1;
    grid-row: 1 / span 2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    width: 45px;
    height: 100%;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
    text-align: center;
}

.DLEPush-notification .DLEPush-icon svg {
    scale: .8;
}

.DLEPush-notification .DLEPush-header {
    font-weight: 500;
    grid-column: 2;
    grid-row: 1;
    font-size: 1rem;
    margin-left: 1rem;
    margin-top: .5rem;
}

.DLEPush-notification .DLEPush-header:empty {
    margin-top: 0;
}

.DLEPush-notification .DLEPush-message {
    grid-column: 2;
    grid-row: 2;
    font-size: .875rem;
    margin: 1rem;
}

.DLEPush-notification .DLEPush-message li,
.DLEPush-notification .DLEPush-message ul {
    list-style-type: none;
    padding-left: 0;
}

.DLEPush-notification .DLEPush-close {
    position: absolute;
    top: 8px;
    right: 10px;
    font-weight: 300;
    background: none;
    border: 0;
    font-size: 1.15rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    color: inherit;
    outline: 0;
    opacity: 0.75;
}

@media only screen and (min-width: 601px) {
    .DLEPush-notification.wrapper {
        min-width: 400px;
    }
}

@media only screen and (min-width: 601px) {
    .DLEPush-notification.wrapper {
        min-width: 400px;
    }
}

@media only screen and (max-width: 600px) {
    .xfieldscolleft {
        float: none;
        width: 100%;
    }

    .xfieldscolright {
        float: none;
        width: 100%;
    }
}

.DLEPush-notification .DLEPush-close:hover {
    opacity: 1;
}

.DLEPush-notification.wrapper.push-success {
    background-color: #e0f2f1;
}

.DLEPush-notification.wrapper.push-success .DLEPush-icon {
    background-color: #00897b;
}

.DLEPush-notification.wrapper.push-warning {
    background-color: #FFF3E0;
}

.DLEPush-notification.wrapper.push-warning .DLEPush-icon {
    background-color: #FF9800;
}

.DLEPush-notification.wrapper.push-error {
    background-color: #FBE9E7;
}

.DLEPush-notification.wrapper.push-error .DLEPush-icon {
    background-color: #FF5722;
}





.profile_user_profile {
    display: flex;
    background: radial-gradient(ellipse at 20% 15%, rgba(125, 100, 255, 0.18) 0%, transparent 60%), radial-gradient(ellipse at 80% 85%, rgba(100, 200, 255, 0.12) 0%, transparent 60%), linear-gradient(135deg, var(--bg-dark) 0%, rgba(25, 26, 45, 0.9) 50%, var(--bg-dark) 100%);
    backdrop-filter: blur(22px) saturate(185%);
    -webkit-backdrop-filter: blur(22px) saturate(185%);
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    justify-content: space-between;
    gap: 20px;
}

.profile_user_left {
    display: flex;
    flex-direction: column;
    border-right: 1px solid #333;
    padding: 20px 0;
    position: relative;
    gap: 20px;
}

.profile_user_avabox {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.profile_user_avatar {
    width: 180px;
    height: 180px;
    margin: 0 20px;
}

.profile_user_avatar:hover {
    transform: none;
}

.profile_user_status {
    position: absolute;
    top: 10px;
    left: 10px;
}

/* стили SVG онлайн | оффлайн */
.interactive-glow {
    stroke-width: 1.5;
    cursor: pointer;
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 10px #00ff88) drop-shadow(0 0 20px rgba(0, 255, 136, 0.5));
}

.interactive-glow:hover {
    filter: drop-shadow(0 0 10px #00ff88) drop-shadow(0 0 20px rgba(0, 255, 136, 0.5));
    animation: hover-shake 0.5s ease-in-out;
}

.interactive-glow:active {
    transform: scale(0.95);
    filter: drop-shadow(0 0 15px #00ff88);
}

@keyframes hover-shake {

    0%,
    100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(5deg);
    }

    75% {
        transform: rotate(-5deg);
    }
}

.interactive-glow-red {
    stroke-width: 1.5;
    cursor: pointer;
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 10px #ff3333) drop-shadow(0 0 20px rgba(255, 51, 51, 0.5));
}

.interactive-glow-red:hover {
    filter: drop-shadow(0 0 10px #ff3333) drop-shadow(0 0 20px rgba(255, 51, 51, 0.5));
    animation: hover-shake-red 0.5s ease-in-out;
}

.interactive-glow-red:active {
    transform: scale(0.95);
    filter: drop-shadow(0 0 15px #ff3333);
}

@keyframes hover-shake-red {

    0%,
    100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(5deg);
    }

    75% {
        transform: rotate(-5deg);
    }
}

.profile_usertitle {
    display: flex;
    width: 100%;
    position: relative;
    justify-content: center;
    border-top: 1px solid #333;
    border-bottom: 1px solid #333;
}

.profile_usertitle::after {
    content: "логин";
    position: absolute;
    top: -8px;
    left: 50%;
    background: var(--bg-medium);
    transform: translateX(-50%);
    padding: 0 10px;
    font-size: 10px;
    color: #666;
    text-transform: uppercase;
    border: 1px solid #333;
    border-radius: 6px;
}

.profile_usertitle h1 {
    font-size: 1.5rem;
    font-weight: 200;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin: 0;
    padding: 10px 20px;
}

/* ТАБЫ В ПРОФИЛЕ */
.profile_user_menutab {
    display: flex;
    width: 100%;
    flex-direction: column;
}

.cat_menu_tab {
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
    gap: 10px;
    font-size: 1rem;
    padding: 6px 20px;
    border-top: 1px solid transparent;
    border-bottom: 1px solid transparent;
}

.cat_menu_tab:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.28) 0%, rgba(118, 75, 162, 0.28) 100%);
    color: #fff;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    box-shadow: inset 0 0 0 1px rgba(160, 180, 255, 0.15), inset 0 10px 20px rgba(102, 126, 234, 0.15);
}

/* ---------- ACTIVE ---------- */
.cat_menu_tab_active {
    position: relative;
    background: linear-gradient(135deg, rgba(140, 160, 255, 0.22), rgba(110, 130, 255, 0.18));
    color: #fff;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    box-shadow: inset 0 0 0 1px rgba(160, 180, 255, 0.18), inset 0 12px 24px rgba(102, 126, 234, 0.2);
}

/* ---------- ACTIVE INDICATOR ---------- */
.cat_menu_tab_active::before {
    content: '';
    position: absolute;
    right: 0;
    top: 6px;
    bottom: 6px;
    width: 5px;
    background: linear-gradient(180deg, rgba(140, 160, 255, 0.9), rgba(100, 200, 255, 0.9));
    border-radius: 4px 0 0 4px;
    box-shadow: 0 0 12px rgba(120, 150, 255, 0.8);
}

.profile_user_right {
    display: flex;
    width: 100%;
    position: relative;
    padding: 20px 0;
}

.profile_user_id {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #6b4390;
    border-radius: 4px;
    font-size: .8rem;
    padding: 0 10px;
}

/* Контент табов справа */
.profile_tab_pane {
    display: none;
    width: 100%;
    flex-direction: column;
}

.profile_tab_pane_active {
    display: flex;
}

.profile_user_tabbox {
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* =============================== PROFILE — INFO GRID ================================ */
.profile_info_grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.profile_info_row {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 20px;
    padding: 12px 16px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: background .25s ease, border-color .25s ease;
}

.profile_info_row:hover {
    background: rgba(120, 140, 255, 0.06);
    border-color: rgba(140, 160, 255, 0.25);
}

.profile_info_label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #8b90b5;
}

.profile_info_value {
    font-size: 14px;
    color: #f1f3ff;
    word-break: break-word;
}

/* =============================== DIVIDER ================================ */
.profile_divider {
    height: 1px;
    margin: 26px 0;
    background: linear-gradient(90deg, transparent, rgba(140, 160, 255, .35), transparent);
}

/* =============================== STATS ================================ */
.profile_stats_grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.profile_stat {
    padding: 18px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(140, 160, 255, 0.18), rgba(100, 200, 255, 0.12));
    border: 1px solid rgba(160, 180, 255, .25);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06), 0 8px 24px rgba(0, 0, 0, .35);
}


.profile_stat_label {
    font-size: 11px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #9aa0ff;
}

.profile_stat_value {
    font-size: 28px;
    font-weight: 500;
    color: #ffffff;
    margin-top: 6px;
}

.profile_stat_link {
    margin-top: 6px;
    font-size: 12px;
}

.profile_stat_link a {
    color: #7fd4ff;
    text-decoration: none;
}

.profile_stat_link a:hover {
    text-decoration: underline;
}

/* =============================== TEXT BLOCKS ================================ */
.profile_about,
.profile_signature {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.profile_block_title {
    font-size: 13px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #9aa0ff;
}

.profile_block_content {
    padding: 16px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    line-height: 1.6;
    color: #e8eaff;
}

/* =============================== FORM ================================ */
.profile_form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.profile_form_group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.profile_form_label {
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #8b90b5;
}



/* =============================== CHECKBOXES ================================ */
.profile_form_checkbox {
    font-size: 13px;
    color: #cfd3ff;
}

.profile_form_checkbox input {
    accent-color: #8fa2ff;
}

/* =============================== SEPARATORS ================================ */
.profile_form_separator {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(140, 160, 255, .3), transparent);
    margin: 10px 0;
}

/* =============================== ACTIONS ================================ */
.profile_form_actions {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-top: 10px;
}

.profile_form_submit {
    padding: 14px 26px;
    border-radius: 10px;
    background: linear-gradient(135deg, #7f9cff, #64c8ff);
    border: none;
    color: #0b0e1f;
    font-weight: 600;
    cursor: pointer;
}

.profile_form_submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(100, 200, 255, .5);
}

.profile_form_danger {
    display: flex;
    color: #ff6b6b;
    cursor: pointer;
}

.profile_form_danger:hover {
    text-decoration: underline;
}