:root {
    --primary: #00ff99;
    --primary-dark: #00cc77;
    --secondary: #0cf;
    --dark-bg: rgba(16, 16, 16, 0.93);
    --card-bg: rgba(20, 20, 20, 0.95);
    --card-border: #333;
    --text-light: #f0f0f0;
    --text-dim: #bbb;
}

body {
    background-color: #121212; /* Фолбэк, если изображение не загрузится */
    background-image: url("/static/images/background.jpg");
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: var(--text-light);
    font-family: "Segoe UI", sans-serif;
    padding-bottom: 40px;
}

/* Неоновые эффекты */
.neon-text {
    color: var(--primary);
    text-shadow: 0 0 5px rgba(0, 255, 153, 0.5), 0 0 10px rgba(0, 255, 153, 0.3);
}

.neon-border {
    border: 1px solid var(--primary);
    box-shadow: 0 0 5px rgba(0, 255, 153, 0.5), 0 0 10px rgba(0, 255, 153, 0.3);
}

/* Карточки */
.cyber-card {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    transition: transform 0.2s, box-shadow 0.2s;
}

.cyber-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 255, 153, 0.15);
}

.cyber-card-header {
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
}

.cyber-card-no-hover {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

/* Кнопки */
.cyber-btn {
    background: linear-gradient(to right, rgba(0, 255, 153, 0.1), rgba(0, 204, 119, 0.1));
    border: 1px solid var(--primary);
    color: var(--primary);
    border-radius: 4px;
    padding: 0.5rem 1.25rem;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
    z-index: 1;
    text-decoration: none;
}

.cyber-btn:hover {
    background: linear-gradient(to right, rgba(0, 255, 153, 0.2), rgba(0, 204, 119, 0.2));
    box-shadow: 0 0 10px rgba(0, 255, 153, 0.3);
    transform: translateY(-2px);
}

.cyber-btn:active {
    transform: translateY(1px);
}

/* Навигация */
.nav-button {
    display: inline-block;
    text-align: center;
    margin: 0 8px;
    transition: transform 0.2s ease-in-out;
    text-decoration: none !important;
}

.nav-button:hover {
    transform: scale(1.1);
}

.nav-icon {
    width: 32px;
    height: 32px;
    filter: brightness(1.2);
}

.icon-label {
    font-size: 0.85rem;
    color: var(--text-light);
    text-align: center;
    margin-top: 4px;
}

/* Часы */
.live-clock {
    border: 1px solid var(--primary);
    border-radius: 4px;
    background: linear-gradient(to right, rgba(0, 255, 153, 0.05), rgba(0, 204, 119, 0.05));
    padding: 7px 12px;
    color: var(--primary);
    font-family: "Courier New", monospace;
    font-weight: bold;
    box-shadow: 0 0 10px rgba(0, 255, 153, 0.2);
}

/* Формы */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="number"],
input[type="search"],
input[type="tel"],
input[type="url"],
textarea,
select,
.form-control,
.cyber-input {
    background-color: rgba(20, 20, 20, 0.8) !important;
    border: 1px solid #555 !important;
    color: #d0d0d0 !important; /* Приглушенный светлый цвет */
    border-radius: 6px;
    padding: 0.75rem;
    transition: all 0.3s ease;
}

/* Состояние фокуса */
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="date"]:focus,
input[type="number"]:focus,
input[type="search"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
textarea:focus,
select:focus,
.form-control:focus,
.cyber-input:focus {
    border-color: #00ff99 !important;
    box-shadow: 0 0 8px rgba(0, 255, 153, 0.4) !important;
    outline: none !important;
    background-color: rgba(50, 50, 50, 0.9) !important;
    color: #e0e0e0 !important; /* Чуть светлее при фокусе */
}

/* Placeholder текст */
input::placeholder,
textarea::placeholder,
.form-control::placeholder,
.cyber-input::placeholder {
    color: #999 !important; /* Приглушенный серый для placeholder */
    opacity: 1;
}

/* Футер */
.site-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to right, rgba(16, 16, 16, 0.80), rgba(24, 24, 24, 0.80));
    color: var(--text-dim);
    padding: 6px 10px;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.5);
    font-size: 14px;
    border-top: 1px solid #333;
}

.fixed-button {
    position: absolute;
    left: 10px; /* Отступ слева */
    top: 50%; /* Центрируем по вертикали */
    transform: translateY(-50%); /* Смещение на половину высоты кнопки */
}

/* Статусы компьютеров */
.status-free {
    color: var(--primary);
    font-weight: bold;
}

.status-busy {
    color: #ff5555;
    font-weight: bold;
}

/* Адаптивность */
@media (max-width: 768px) {
    .nav-button {
        margin: 0 4px;
    }

    .nav-icon {
        width: 28px;
        height: 28px;
    }

    .icon-label {
        font-size: 0.75rem;
    }
}


/*.vk-icon, .telegram-icon {*/
/*    width: 50px;*/
/*    margin-bottom: 10px;*/
/*}*/

/*.vk-icon:hover, .telegram-icon:hover {*/
/*    transform: scale(1.2); !* Увеличение иконки на 20% при наведении *!*/
/*}*/


form p {
    display: flex;
    flex-direction: column; /* или row, если хотите горизонтально */
    align-items: flex-start; /* выравнивание по левому краю */
    margin-bottom: 1rem;
}

/* Стиль для label внутри p */
form p label {
    font-weight: bold;
    margin-bottom: 0.2rem;
}

/* Стиль для input, textarea и select внутри p */
form p input,
form p textarea,
form p select {
    width: 30%;
    padding: 0.5rem;
    border-radius: 4px;
    border: 1px solid var(--primary);
    background-color: rgba(20, 20, 20, 0.8); /* Изменить на приглушенный */
    color: #d0d0d0; /* Изменить на приглушенный */
}

.cyber-card form p {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.cyber-card form p input,
.cyber-card form p select {
    width: 100%;
    max-width: 100%;
}


/* Error pages */
.neon-border-red {
    border: 1px solid #ff2a6d;
    box-shadow: 0 0 10px #ff2a6d, inset 0 0 10px #ff2a6d;
}

.neon-border-purple {
    border: 1px solid #9d00ff;
    box-shadow: 0 0 10px #9d00ff, inset 0 0 10px #9d00ff;
}

.neon-border-yellow {
    border: 1px solid #ffd300;
    box-shadow: 0 0 10px #ffd300, inset 0 0 10px #ffd300;
}

.neon-text-red {
    color: #ff2a6d;
    text-shadow: 0 0 5px #ff2a6d;
}

.neon-text-purple {
    color: #9d00ff;
    text-shadow: 0 0 5px #9d00ff;
}

.neon-text-yellow {
    color: #ffd300;
    text-shadow: 0 0 5px #ffd300;
}


.glitch {
    position: relative;
    font-size: 5rem;
    font-weight: bold;
    color: #fff;
    text-shadow: 0.05em 0 0 #00fffc, -0.03em -0.04em 0 #fc00ff;
    animation: glitch 725ms infinite;
}

@keyframes glitch {
    0% {
        text-shadow: 0.05em 0 0 #00fffc, -0.03em -0.04em 0 #fc00ff;
    }
    15% {
        text-shadow: 0.05em 0 0 #00fffc, -0.03em -0.04em 0 #fc00ff;
    }
    16% {
        text-shadow: -0.05em -0.025em 0 #00fffc, 0.025em 0.035em 0 #fc00ff;
    }
    49% {
        text-shadow: -0.05em -0.025em 0 #00fffc, 0.025em 0.035em 0 #fc00ff;
    }
    50% {
        text-shadow: 0.05em 0.035em 0 #00fffc, 0.03em 0 0 #fc00ff;
    }
    99% {
        text-shadow: 0.05em 0.035em 0 #00fffc, 0.03em 0 0 #fc00ff;
    }
    100% {
        text-shadow: -0.05em 0 0 #00fffc, -0.025em -0.04em 0 #fc00ff;
    }
}


/* Контейнер для изображения */
.news-image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Изображение с ограничением по высоте */
.news-image-constrained {
    max-width: 100%; /* Не превышает ширину карточки */
    max-height: 250px; /* Максимальная высота (примерно равна ширине карточки) */
    width: auto; /* Автоматическая ширина для сохранения пропорций */
    height: auto; /* Автоматическая высота для сохранения пропорций */
    object-fit: contain; /* Сохраняет пропорции без обрезки */
    transition: transform 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.news-image-constrained:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 12px rgba(0, 255, 153, 0.2);
}

/* Адаптивные размеры для разных экранов */
@media (max-width: 576px) {
    .news-image-constrained {
        max-height: 200px;
    }
}

@media (min-width: 577px) and (max-width: 768px) {
    .news-image-constrained {
        max-height: 220px;
    }
}

@media (min-width: 769px) and (max-width: 992px) {
    .news-image-constrained {
        max-height: 240px;
    }
}

@media (min-width: 993px) {
    .news-image-constrained {
        max-height: 260px;
    }
}


.filters-content {
    transition: all 0.3s ease;
    overflow: hidden;
}

.filters-content.show {
    display: block !important;
}

#toggleFilters {
    font-size: 12px;
    padding: 0.4rem 0.8rem;
}


/* Общие стили для всех полей ввода */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="number"],
input[type="search"],
input[type="tel"],
input[type="url"],
textarea,
select,
.form-control,
.cyber-input {
    background-color: rgba(20, 20, 20, 0.8) !important;
    border: 1px solid #555 !important;
    color: #d0d0d0 !important; /* Приглушенный светлый цвет */
    border-radius: 6px;
    padding: 0.75rem;
    transition: all 0.3s ease;
}

/* Состояние фокуса */
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="date"]:focus,
input[type="number"]:focus,
input[type="search"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
textarea:focus,
select:focus,
.form-control:focus,
.cyber-input:focus {
    border-color: #00ff99 !important;
    box-shadow: 0 0 8px rgba(0, 255, 153, 0.4) !important;
    outline: none !important;
    background-color: rgba(50, 50, 50, 0.9) !important;
    color: #e0e0e0 !important; /* Чуть светлее при фокусе */
}

/* Placeholder текст */
input::placeholder,
textarea::placeholder,
.form-control::placeholder,
.cyber-input::placeholder {
    color: #999 !important; /* Приглушенный серый для placeholder */
    opacity: 1;
}

/* Специальные стили для textarea */
textarea,
.comment-textarea {
    background-color: rgba(20, 20, 20, 0.8) !important;
    color: #d0d0d0 !important;
    border: 1px solid #555 !important;
    resize: vertical;
    line-height: 1.5;
}

textarea:focus,
.comment-textarea:focus {
    background-color: rgba(50, 50, 50, 0.9) !important;
    color: #e0e0e0 !important;
}

/* Стили для select */
select {
    background-color: rgba(20, 20, 20, 0.8) !important;
    color: #d0d0d0 !important;
    border: 1px solid #555 !important;
}

select:focus {
    background-color: rgba(50, 50, 50, 0.9) !important;
    color: #e0e0e0 !important;
}

/* Стили для option в select */
select option {
    background-color: rgba(40, 40, 40, 0.95);
    color: #d0d0d0;
}

/* Стили для полей в формах Django */
.form-group input,
.form-group textarea,
.form-group select {
    background-color: rgba(20, 20, 20, 0.8) !important;
    color: #d0d0d0 !important;
    border: 1px solid #555 !important;
}

/* Автозаполнение браузера */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px rgba(20, 20, 20, 0.8) inset !important;
    -webkit-text-fill-color: #d0d0d0 !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* Стили для disabled полей */
input:disabled,
textarea:disabled,
select:disabled,
.form-control:disabled {
    background-color: rgba(30, 30, 30, 0.7) !important;
    color: #888 !important;
    border-color: #444 !important;
    cursor: not-allowed;
}

/* Стили для readonly полей */
input[readonly],
textarea[readonly],
.form-control[readonly] {
    background-color: rgba(35, 35, 35, 0.8) !important;
    color: #bbb !important;
    border-color: #4a4a4a !important;
}

/* ========================================================
   📝 IMPROVED BOOKING FORM
   ======================================================== */

.booking-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 1px;
}

.form-group-wide {
    grid-column: 1 / -1;
}

.form-label-compact {
    display: block;
    color: #d0d0d0;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group select,
.form-group input,
.form-group textarea {
    width: 100%;
    background: rgba(30, 30, 30, 0.8);
    border: 1px solid #444;
    border-radius: 4px;
    color: #d0d0d0;
    padding: 8px 10px;
    font-size: 13px;
    transition: all 0.3s ease;
}

.form-group select:focus,
.form-group input:focus,
.form-group textarea:focus {
    border-color: #00ff99;
    box-shadow: 0 0 8px rgba(0, 255, 153, 0.3);
    outline: none;
}

.form-actions {
    position: relative;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px;
    flex-wrap: wrap;
}

.form-actions .cyber-btn {
    flex: 1;
    min-width: 100px;
    max-width: 230px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    /*font-size: 14px;*/
    padding: 0 10px;
}

.plus-btn {
    order: 1;
}

.create-btn {
    order: 2;
}

.manager-btn {
    order: 3;
    text-decoration: none;
}

.manager-btn:hover {
    text-decoration: none;
}

/* ========================================================
   💻 COMPACT COMPUTER STATUS CARDS
   ======================================================== */

.computer-status-card {
    min-height: 200px;
    position: relative;
}

.status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #333;
}

.computer-name {
    margin: 0;
    font-size: 16px;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-busy {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
    border: 1px solid #dc3545;
}

.status-free {
    background: rgba(0, 255, 153, 0.2);
    color: #00ff99;
    border: 1px solid #00ff99;
}

.current-session {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
}

.session-note {
    background: rgba(0, 255, 153, 0.1);
    border-left: 3px solid #00ff99;
    padding: 6px 8px;
    font-size: 12px;
    border-radius: 0 4px 4px 0;
    word-break: break-word; /* Главное свойство для переноса */
    white-space: pre-wrap; /* Сохраняет пробелы но переносит */
    overflow: hidden; /* На всякий случай */
}

.session-time {
    font-family: monospace;
    font-size: 14px;
    font-weight: 600;
    color: #00ff99;
    text-align: center;
    padding: 8px;
    background: rgba(0, 255, 153, 0.05);
    border-radius: 4px;
}

.session-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #bbb;
}

.session-price {
    color: #ffd700;
    font-weight: 600;
}

.session-controls {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid #333;
    align-items: center;
}

.time-adjust {
    display: flex;
    align-items: center;
    gap: 4px;
    overflow-x: auto;
}

@media (max-width: 767.98px) {
    .session-controls {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .time-adjust {
        -webkit-overflow-scrolling: touch;
        padding-bottom: 5px;
    }
}

.time-adjust {
    display: flex;
    align-items: center;
    gap: 4px;
}

.time-input {
    width: 60px;
    padding: 4px 6px;
    background: rgba(30, 30, 30, 0.8);
    border: 1px solid #444;
    border-radius: 3px;
    color: #d0d0d0;
    font-size: 12px;
    text-align: center;
}

.control-btn {
    width: 28px;
    height: 28px;
    border: 1px solid #444;
    background: rgba(30, 30, 30, 0.8);
    color: #d0d0d0;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 600;
}

.control-btn:hover {
    border-color: #00ff99;
    color: #00ff99;
    background: rgba(0, 255, 153, 0.1);
}

.control-btn.cancel {
    border-color: #dc3545;
    color: #dc3545;
}

.control-btn.cancel:hover {
    background: rgba(220, 53, 69, 0.2);
}

/* ========================================================
   📋 COMPACT BOOKINGS TOGGLE
   ======================================================== */

.bookings-toggle-menu {
    border-top: 1px solid #333;
    padding-top: 10px;
}

.bookings-toggle-btn {
    width: 100%;
    background: rgba(20, 20, 20, 0.6);
    border: 1px solid #444;
    border-radius: 4px;
    padding: 6px 10px;
    color: #d0d0d0;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    min-height: 32px;
}

.bookings-toggle-btn:hover {
    border-color: #00ff99;
    background: rgba(0, 255, 153, 0.1);
    color: #00ff99;
}

.bookings-toggle-btn.active {
    border-color: #00ff99;
    background: rgba(0, 255, 153, 0.15);
    color: #00ff99;
}

.toggle-content {
    display: flex;
    align-items: center;
    gap: 6px;
}

.toggle-arrow {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.bookings-toggle-btn.active .toggle-arrow {
    transform: rotate(180deg);
}

.toggle-text {
    font-size: 11px;
}

.bookings-count {
    background: rgba(0, 255, 153, 0.2);
    border: 1px solid #00ff99;
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

/* Компактный список */
.bookings-compact-list {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(10, 10, 10, 0.9);
    border-radius: 4px;
    margin-top: 8px;
}

.bookings-compact-list.active {
    max-height: 200px;
    border: 1px solid #333;
}

.booking-compact-item {
    padding: 8px 10px;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s ease;
}

.booking-compact-item:hover {
    background: rgba(0, 255, 153, 0.05);
}

.booking-compact-item:last-child {
    border-bottom: none;
}

.booking-compact-time {
    color: #00ff99;
    font-size: 11px;
    font-weight: 600;
    font-family: monospace;
}

.booking-compact-details {
    display: flex;
    align-items: center;
    gap: 8px;
}

.booking-compact-price {
    color: #ffd700;
    font-size: 11px;
    font-weight: 600;
}

.booking-compact-info {
    color: #0cf;
    font-size: 12px;
    cursor: help;
}

.booking-compact-cancel {
    background: rgba(220, 53, 69, 0.2);
    border: 1px solid #dc3545;
    border-radius: 3px;
    color: #dc3545;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.booking-compact-cancel:hover {
    background: rgba(220, 53, 69, 0.4);
    transform: scale(1.1);
}

/* ========================================================
   📱 RESPONSIVE DESIGN
   ======================================================== */

@media (max-width: 768px) {
    .booking-form-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .form-actions {
        flex-direction: column;
        gap: 8px;
        padding: 8px;
    }

    .form-actions .cyber-btn {
        width: 100%;
        max-width: none;
        min-width: 0;
    }

    .computer-status-card {
        min-height: 180px;
    }

    .status-header {
        margin-bottom: 10px;
    }

    .computer-name {
        font-size: 14px;
    }

    .session-controls {
        flex-direction: column;
        gap: 8px;
    }

    .time-adjust {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }

    .cyber-card {
        padding: 15px !important;
    }

    .booking-form-grid {
        gap: 8px;
    }

    .computer-status-card {
        min-height: 160px;
    }
}

/* ========================================================
   💬 COMMENTS SECTION STYLES
   ======================================================== */

.comment-item {
    background: rgba(25, 25, 25, 0.9);
    border: 1px solid #333;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.comment-item:hover {
    border-color: #00ff99;
    background: rgba(0, 255, 153, 0.05);
    transform: translateX(3px);
}

.comment-content {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.comment-body {
    flex: 1;
    min-width: 0; /* Позволяет тексту сжиматься */
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 8px;
}

.comment-author-link {
    text-decoration: none;
    transition: all 0.3s ease;
}

.comment-author-link:hover {
    text-decoration: none;
}

.comment-author {
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.comment-author-link:hover .comment-author {
    color: #0cf !important;
    text-shadow: 0 0 8px rgba(0, 204, 255, 0.5);
}

.comment-date {
    font-size: 12px;
    opacity: 0.7;
    white-space: nowrap;
}

.comment-text {
    color: #d0d0d0;
    font-size: 14px;
    line-height: 1.5;
    word-wrap: break-word;
}

.comment-text p {
    margin-bottom: 8px;
}

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

/* Аватар */
.comment-avatar {
    flex-shrink: 0;
}

.avatar-link {
    display: block;
    transition: all 0.3s ease;
}

.avatar-link:hover {
    transform: scale(1.05);
}

.avatar-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #444;
    transition: all 0.3s ease;
    background: rgba(40, 40, 40, 0.8);
}

.comment-item:hover .avatar-img {
    border-color: #00ff99;
    box-shadow: 0 0 10px rgba(0, 255, 153, 0.3);
}

/* Пустое состояние */
.no-comments {
    text-align: center;
    padding: 40px 20px;
    color: #888;
}

.no-comments-icon {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

/* Анимация появления комментариев */
.comment-item {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInComment 0.5s ease forwards;
}

.comment-item:nth-child(1) {
    animation-delay: 0.1s;
}

.comment-item:nth-child(2) {
    animation-delay: 0.2s;
}

.comment-item:nth-child(3) {
    animation-delay: 0.3s;
}

.comment-item:nth-child(4) {
    animation-delay: 0.4s;
}

.comment-item:nth-child(5) {
    animation-delay: 0.5s;
}

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

/* Адаптивность */
@media (max-width: 768px) {
    .comment-content {
        gap: 10px;
    }

    .avatar-img {
        width: 40px;
        height: 40px;
    }

    .comment-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .comment-date {
        font-size: 11px;
    }

    .comment-text {
        font-size: 13px;
    }
}

@media (max-width: 576px) {
    .comment-content {
        flex-direction: column-reverse;
        gap: 12px;
    }

    .comment-avatar {
        align-self: flex-start;
    }

    .avatar-img {
        width: 35px;
        height: 35px;
    }

    .comment-item {
        padding: 15px !important;
    }
}

/* Дополнительные эффекты */
.comment-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, #00ff99, transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.comment-item:hover::before {
    opacity: 1;
}

/* Статус онлайн (если есть такая функция) */
.avatar-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    background: #00ff99;
    border: 2px solid #1a1a1a;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.avatar-link.online::after {
    opacity: 1;
}

/* Эффект загрузки для аватаров */
.avatar-img {
    background: linear-gradient(90deg, #333 25%, #444 50%, #333 75%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

.avatar-img[src] {
    animation: none;
    background: rgba(40, 40, 40, 0.8);
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* ========================================================
   📱 FIXED MOBILE NAVIGATION
   ======================================================== */

/* Мобильная навигация */
.mobile-nav-layout {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mobile-nav-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-nav-bottom {
    display: flex;
    justify-content: center;
}

.logo-mobile {
    height: 60px;
    width: auto;
    max-width: 150px;
}

/* Адаптивные часы для мобильных */
.live-clock-mobile {
    border: 1px solid var(--primary);
    border-radius: 4px;
    background-color: rgba(0, 255, 153, 0.05);
    padding: 6px 12px;
    color: var(--primary);
    font-family: "Courier New", monospace;
    font-weight: bold;
    box-shadow: 0 0 10px rgba(0, 255, 153, 0.2);
    font-size: 14px;
    text-align: center;
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    overflow: hidden;
}

/* Десктопные часы остаются как есть */
.live-clock {
    border: 1px solid var(--primary);
    border-radius: 4px;
    background-color: rgba(0, 255, 153, 0.05);
    padding: 7px 12px;
    color: var(--primary);
    font-family: "Courier New", monospace;
    font-weight: bold;
    box-shadow: 0 0 10px rgba(0, 255, 153, 0.2);
}

/* ========================================================
   🦶 COMPACT FOOTER
   ======================================================== */

.site-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to right, rgba(16, 16, 16, 0.95), rgba(24, 24, 24, 0.95));
    color: var(--text-dim);
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.5);
    border-top: 1px solid #333;
    padding: 6px 16px;
    height: 40px;
    display: flex;
    align-items: center;
}

.footer-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between; /* или оставить так, если хотите равномерное распределение */
    align-items: center;
    gap: 16px;
    flex-wrap: nowrap; /* чтобы элементы не переносились */
}

.footer-notes-link {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 13px;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.left-buttons {
    display: flex;
    gap: 8px; /* расстояние между кнопками */
}

.footer-notes-link:hover {
    color: #00ff99;
    /*background: rgba(0, 255, 153, 0.1);*/
    text-decoration: none;
}

.footer-copyright {
    font-size: 13px;
    text-align: center;
    flex: 1; /* занимает всё доступное пространство */
    white-space: nowrap; /* не переносит текст */
    overflow: hidden; /* скрывает переполнение */
    text-overflow: ellipsis; /* добавляет троеточие при переполнении */
}

/* ========================================================
   💬 IMPROVED COMMENTS FOR MOBILE
   ======================================================== */

.comment-content {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.comment-body {
    flex: 1;
    min-width: 0;
}

.comment-avatar {
    flex-shrink: 0;
}

.avatar-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #444;
    transition: all 0.3s ease;
    background: rgba(40, 40, 40, 0.8);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
    gap: 8px;
}

.comment-author-link {
    text-decoration: none;
    transition: all 0.3s ease;
}

.comment-author {
    font-size: 14px;
    font-weight: 600;
}

.comment-date {
    font-size: 12px;
    opacity: 0.7;
    white-space: nowrap;
    flex-shrink: 0;
}

.comment-text {
    color: #d0d0d0;
    font-size: 14px;
    line-height: 1.5;
    word-wrap: break-word;
}

/* ========================================================
   📱 RESPONSIVE BREAKPOINTS
   ======================================================== */

/* Большие мобильные устройства */
@media (max-width: 991px) {
    .social-sidebar {
        display: none;
    }
}

/* Средние мобильные устройства */
@media (max-width: 768px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .mobile-nav-layout {
        gap: 8px;
    }

    .logo-mobile {
        height: 50px;
    }

    .live-clock-mobile {
        padding: 5px 10px;
        font-size: 13px;
        min-height: 28px;
    }

    .site-footer {
        padding: 4px 12px;
        height: 36px;
    }

    .footer-copyright {
        font-size: 12px;
    }

    .footer-notes-link {
        font-size: 12px;
        padding: 3px 6px;
    }

    /* Комментарии на планшетах */
    .comment-content {
        gap: 12px;
    }

    .avatar-img {
        width: 45px;
        height: 45px;
    }

    .comment-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .comment-date {
        font-size: 11px;
    }
}

/* Маленькие мобильные устройства */
@media (max-width: 576px) {
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }

    .mobile-nav-layout {
        gap: 6px;
    }

    .logo-mobile {
        height: 45px;
    }

    .live-clock-mobile {
        padding: 4px 8px;
        font-size: 12px;
        min-height: 26px;
    }

    .site-footer {
        padding: 3px 8px;
        height: 32px;
    }

    .footer-container {
        flex-direction: column;
        gap: 4px;
        justify-content: center;
    }

    .footer-copyright {
        font-size: 10px;
        order: 2;
    }

    .footer-notes-link {
        font-size: 10px;
        order: 1;
        padding: 2px 4px;
    }

    /* Комментарии на мобильных */
    .comment-content {
        flex-direction: column;
        gap: 10px;
    }

    .comment-avatar {
        align-self: flex-start;
        order: -1;
    }

    .avatar-img {
        width: 40px;
        height: 40px;
    }

    .comment-item {
        padding: 12px !important;
    }

    .comment-text {
        font-size: 13px;
    }
}

/* Очень маленькие устройства */
@media (max-width: 400px) {
    .logo-mobile {
        height: 40px;
    }

    .live-clock-mobile {
        font-size: 11px;
        padding: 3px 6px;
        min-height: 24px;
    }

    .site-footer {
        height: 28px;
        padding: 2px 6px;
    }

    .footer-copyright {
        font-size: 9px;
    }

    .footer-notes-link {
        font-size: 9px;
    }

    .avatar-img {
        width: 35px;
        height: 35px;
    }
}

/* ========================================================
   🔧 UTILITY CLASSES
   ======================================================== */

/* Отступ снизу для контента, чтобы футер не перекрывал */
body {
    padding-bottom: 50px;
}

@media (max-width: 768px) {
    body {
        padding-bottom: 46px;
    }
}

@media (max-width: 576px) {
    body {
        padding-bottom: 42px;
    }
}

@media (max-width: 400px) {
    body {
        padding-bottom: 38px;
    }
}

.desktop-nav-layout {
    position: relative;
    padding-top: 10px;
    padding-bottom: 10px;
}

.live-clock {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    white-space: nowrap;
}

/* Убедимся, что меню не перекрывает часы */
.desktop-nav {
    margin-left: auto;
}


/* Стили для уведомлений */
.cyber-notification {
    position: fixed;
    bottom: 50px;
    right: 20px;
    z-index: 9999;
    max-width: 350px;
    background: rgba(20, 20, 20, 0.95);
    border-left: 4px solid var(--primary);
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transform: translateX(120%);
    transition: transform 0.3s ease;
}

.cyber-notification.show {
    transform: translateX(0);
}

.cyber-notification.success {
    border-left-color: var(--primary);
}

.cyber-notification.error {
    border-left-color: #ff5555;
}

.cyber-notification.info {
    border-left-color: #0cf;
}

.notification-content {
    padding: 12px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.notification-close {
    background: none;
    border: none;
    color: #888;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.notification-close:hover {
    color: #fff;
}

/* Стили для ошибок формы */
.error-message {
    color: #ff5555;
    font-size: 12px;
    margin-top: 4px;
    margin-bottom: 8px;
}

input.error, textarea.error, select.error {
    border-color: #ff5555 !important;
    box-shadow: 0 0 5px rgba(255, 85, 85, 0.3) !important;
}


/* ========================================================
   🔲 CYBER MODAL STYLES
   ======================================================== */

/* Основные стили модального окна */
.modal-content {
    background: var(--card-bg) !important;
    border: 1px solid var(--card-border) !important;
    border-radius: 8px !important;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.8), 0 0 50px rgba(0, 255, 153, 0.1) !important;
    color: var(--text-light) !important;
    backdrop-filter: blur(10px);
}

/* Заголовок модального окна */
.modal-header {
    border-bottom: 1px solid var(--card-border) !important;
    background: rgba(0, 255, 153, 0.05);
    padding: 1rem 1.5rem;
}

.modal-title {
    color: var(--primary) !important;
    text-shadow: 0 0 5px rgba(0, 255, 153, 0.5);
    font-weight: 600;
    margin: 0;
}

/* Кнопка закрытия */
.btn-close {
    background: none !important;
    border: none !important;
    color: var(--text-dim) !important;
    opacity: 0.8 !important;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.btn-close:hover {
    color: var(--primary) !important;
    opacity: 1 !important;
    transform: scale(1.1);
    text-shadow: 0 0 8px rgba(0, 255, 153, 0.5);
}

.btn-close:focus {
    box-shadow: 0 0 8px rgba(0, 255, 153, 0.4) !important;
}

/* Тело модального окна */
.modal-body {
    padding: 1.5rem;
    color: var(--text-light);
    line-height: 1.6;
}

.modal-body p {
    margin-bottom: 1rem;
    color: #d0d0d0;
}

.modal-body strong {
    color: var(--primary);
    text-shadow: 0 0 3px rgba(0, 255, 153, 0.3);
}

/* Информационные блоки в модальных окнах */
.session-info,
.booking-info {
    background: rgba(0, 255, 153, 0.05);
    border-left: 3px solid var(--primary);
    padding: 12px 15px;
    margin-top: 15px;
    border-radius: 0 4px 4px 0;
    /*font-family: "Courier New", monospace;*/
}

.session-info small,
.booking-info small {
    color: #bbb !important;
    font-size: 13px;
    line-height: 1.4;
}

/* Футер модального окна */
.modal-footer {
    border-top: 1px solid var(--card-border) !important;
    background: rgba(0, 0, 0, 0.2);
    padding: 1rem 1.5rem;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* Кнопки в модальных окнах */
.modal-footer .cyber-btn {
    min-width: 100px;
    font-size: 14px;
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

/* Кнопка отмены */
.modal-footer .cyber-btn.cancel-btn,
.modal-footer .cyber-btn[data-bs-dismiss="modal"] {
    background: rgba(100, 100, 100, 0.1);
    border: 1px solid #666;
    color: #bbb;
}

.modal-footer .cyber-btn.cancel-btn:hover,
.modal-footer .cyber-btn[data-bs-dismiss="modal"]:hover {
    background: rgba(100, 100, 100, 0.2);
    border-color: #888;
    color: #fff;
    transform: translateY(-1px);
}

/* Кнопка подтверждения (опасное действие) */
.modal-footer .cyber-btn.danger-btn,
.modal-footer .cyber-btn[type="submit"] {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid #dc3545;
    color: #dc3545;
}

.modal-footer .cyber-btn.danger-btn:hover,
.modal-footer .cyber-btn[type="submit"]:hover {
    background: rgba(220, 53, 69, 0.2);
    border-color: #dc3545;
    color: #fff;
    box-shadow: 0 0 10px rgba(220, 53, 69, 0.3);
    transform: translateY(-2px);
}

/* Backdrop модального окна */
.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.7) !important;
    backdrop-filter: blur(3px);
}

/* Анимация появления модального окна */
.modal.fade .modal-dialog {
    transform: scale(0.8) translateY(-50px);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.modal.show .modal-dialog {
    transform: scale(1) translateY(0);
}

/* Эффект свечения для модального окна */
.modal-content::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, transparent, rgba(0, 255, 153, 0.1), transparent);
    border-radius: 10px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show .modal-content::before {
    opacity: 1;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .modal-dialog {
        margin: 1rem;
        max-width: calc(100% - 2rem);
    }

    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 1rem;
    }

    .modal-footer {
        flex-direction: column;
        gap: 8px;
    }

    .modal-footer .cyber-btn {
        width: 100%;
        min-width: auto;
    }
}

@media (max-width: 576px) {
    .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
    }

    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 0.75rem;
    }

    .modal-title {
        font-size: 1.1rem;
    }

    .session-info,
    .booking-info {
        padding: 8px 10px;
        margin-top: 10px;
    }
}

/* Специальные стили для разных типов модальных окон */

/* Модальное окно подтверждения удаления */
.modal-content.delete-modal {
    border-color: rgba(220, 53, 69, 0.3);
}

.modal-content.delete-modal .modal-header {
    background: rgba(220, 53, 69, 0.1);
    border-bottom-color: rgba(220, 53, 69, 0.2);
}

.modal-content.delete-modal .modal-title {
    color: #dc3545;
    text-shadow: 0 0 5px rgba(220, 53, 69, 0.5);
}

/* Модальное окно завершения сеанса */
.modal-content.session-modal {
    border-color: rgba(255, 193, 7, 0.3);
}

.modal-content.session-modal .modal-header {
    background: rgba(255, 193, 7, 0.1);
    border-bottom-color: rgba(255, 193, 7, 0.2);
}

.modal-content.session-modal .modal-title {
    color: #ffc107;
    text-shadow: 0 0 5px rgba(255, 193, 7, 0.5);
}

/* Эффект пульсации для критических действий */
@keyframes pulse-danger {
    0% {
        box-shadow: 0 0 5px rgba(220, 53, 69, 0.3);
    }
    50% {
        box-shadow: 0 0 15px rgba(220, 53, 69, 0.6);
    }
    100% {
        box-shadow: 0 0 5px rgba(220, 53, 69, 0.3);
    }
}

.modal-footer .cyber-btn.danger-btn:focus {
    animation: pulse-danger 1.5s infinite;
}

/* Стили для блокнота в карточке */
#booking-notes {
    background: rgba(20, 20, 20, 0.8) !important;
    border: 1px solid #444 !important;
    color: #d0d0d0 !important;
    font-family: 'Segoe UI', sans-serif;
    transition: all 0.3s ease;
}

#booking-notes:focus {
    border-color: #00ff99 !important;
    box-shadow: 0 0 8px rgba(0, 255, 153, 0.3) !important;
    background: rgba(30, 30, 30, 0.9) !important;
}

#booking-notes::placeholder {
    color: #888 !important;
    font-style: italic;
}

/* Кастомный скроллбар для textarea */
#booking-notes::-webkit-scrollbar {
    width: 6px;
}

#booking-notes::-webkit-scrollbar-track {
    background: rgba(40, 40, 40, 0.5);
    border-radius: 3px;
}

#booking-notes::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 153, 0.3);
    border-radius: 3px;
}

#booking-notes::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 255, 153, 0.5);
}

/* Анимация индикатора сохранения */
#save-indicator {
    transition: all 0.3s ease;
    font-weight: 500;
}

/* Адаптивность */
@media (max-width: 768px) {
    #booking-notes {
        font-size: 12px !important;
        min-height: 100px !important;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

.session-modal {
    background: #0d0d1a;
    border: 1px solid #00f0ff;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.5);
    color: white;
    border-radius: 5px;
}

.session-modal .modal-header {
    border-bottom: 1px solid #00f0ff;
    padding: 10px 15px;
}

.session-modal .modal-body {
    padding: 15px;
}

.session-modal .modal-footer {
    border-top: 1px solid #00f0ff;
    padding: 10px 15px;
    display: flex;
    justify-content: flex-end;
}

.messages {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1100;
    max-width: 400px;
    width: 100%;
}

.alert {
    opacity: 1;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
    margin-bottom: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    pointer-events: auto;
}

.alert-hide {
    opacity: 0;
    transform: translateX(100%);
}

/* Стили для перетаскивания */
.draggable-item {
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none
}

.draggable-item:hover {
    transform: translateY(-2px);
}

.dragging {
    opacity: 0.8;
    transform: scale(1.02);
    box-shadow: 0 0 5px rgba(0, 255, 153, 0.5), 0 0 10px rgba(0, 255, 153, 0.3);
    cursor: grabbing;
    z-index: 1000;
}

.drag-over {
    position: relative;
    animation: pulse-border 0.5s infinite alternate;
}

/* Стили для пустых мест */
.space-placeholder {
    transition: all 0.3s;
    opacity: 0.7;
}

/*.space-placeholder:hover {*/
/*    opacity: 1;*/
/*    box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);*/
/*}*/

/* Анимации */
@keyframes pulse-border {
    0% {
        box-shadow: 0 0 5px rgba(0, 255, 153, 0.5), 0 0 10px rgba(0, 255, 153, 0.3);
    }
    100% {
        box-shadow: 0 0 5px rgba(0, 255, 153, 0.5), 0 0 10px rgba(0, 255, 153, 0.3);
    }
}

/* Стили для Sortable.js */
.sortable-ghost {
    opacity: 0.5;
    background: rgba(0, 255, 153, 0.1);
    border: 2px dashed var(--primary) !important;
}

.sortable-chosen {
    opacity: 0.8;
    box-shadow: 0 0 15px rgba(0, 255, 153, 0.3);
}

.sortable-drag {
    opacity: 1;
    transform: scale(1.02);
    z-index: 1000;
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeSlideIn 0.4s ease-out;
}

/* Form styles */
.formset-form {
    position: relative;
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
}

.formset-form:not(.main-form) {
    border-left: 3px solid var(--primary);
}

.form-header {
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

/* Стили для кибер-таблицы */
.cyber-table-container {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    /*padding: 15px;*/
    margin-bottom: 20px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

.cyber-table-responsive {
    overflow-x: auto;
}

.cyber-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    color: var(--text-light);
}

.cyber-table-header {
    background: linear-gradient(to right, rgba(0, 255, 153, 0.1), rgba(0, 204, 119, 0.1));
    border-bottom: 1px solid var(--primary);
}

.cyber-table-header th {
    padding: 12px 15px;
    text-align: center;
    color: var(--primary);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.cyber-table-row {
    transition: all 0.2s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.cyber-table-row:hover {
    background-color: rgba(0, 255, 153, 0.05);
}

.cyber-table-row td {
    padding: 12px 5px;
    vertical-align: middle;
    text-align: center;
}

.cyber-table-empty {
    text-align: center;
    padding: 20px;
    color: var(--text-dim);
}

/* Стили для элементов управления в таблице */
.cyber-table .cyber-input {
    width: 100%;
    padding: 8px 10px;
    background-color: rgba(30, 30, 30, 0.8) !important;
    border: 1px solid #444 !important;
    color: var(--text-light) !important;
    border-radius: 4px;
    transition: all 0.3s;
}

.cyber-table .cyber-input:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 8px rgba(0, 255, 153, 0.3) !important;
    background-color: rgba(50, 50, 50, 0.9) !important;
}

/* ========================================================
   🎨 CUSTOM CYBER ICONS
   ======================================================== */

.cyber-icon {
    width: 24px;
    height: 24px;
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

.cyber-icon-sm {
    width: 18px;
    height: 18px;
}

.cyber-icon-lg {
    width: 32px;
    height: 32px;
}

.cyber-icon-xl {
    width: 40px;
    height: 40px;
}

/* Неоновое свечение для иконок */
.cyber-icon {
    filter: drop-shadow(0 0 5px rgba(0, 255, 153, 0.5)) drop-shadow(0 0 10px rgba(0, 255, 153, 0.3));
    transition: filter 0.3s ease;
}

.cyber-icon path,
.cyber-icon circle,
.cyber-icon rect,
.cyber-icon polygon,
.cyber-icon line {
    stroke: var(--primary);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: all 0.3s ease;
}

.cyber-icon.filled path,
.cyber-icon.filled circle,
.cyber-icon.filled rect,
.cyber-icon.filled polygon {
    fill: rgba(0, 255, 153, 0.15);
}

/* Hover-эффект для иконок */
.cyber-card:hover .cyber-icon {
    filter: drop-shadow(0 0 8px rgba(0, 255, 153, 0.7)) drop-shadow(0 0 15px rgba(0, 255, 153, 0.4));
}

/* Иконка заголовка */
.section-icon {
    margin-right: 12px;
}

/* Иконка чекбокса в списке */
.list-icon {
    margin-right: 8px;
    position: relative;
    top: -1px;
}

/* Голубые иконки */
.cyber-icon.secondary {
    filter: drop-shadow(0 0 5px rgba(0, 204, 255, 0.5)) drop-shadow(0 0 10px rgba(0, 204, 255, 0.3));
}

.cyber-icon.secondary path,
.cyber-icon.secondary circle,
.cyber-icon.secondary rect,
.cyber-icon.secondary polygon,
.cyber-icon.secondary line {
    stroke: var(--secondary);
}

.cyber-icon.secondary.filled path,
.cyber-icon.secondary.filled circle,
.cyber-icon.secondary.filled rect,
.cyber-icon.secondary.filled polygon {
    fill: rgba(0, 204, 255, 0.15);
}

/* Пульсирующая анимация для иконок */
@keyframes iconPulse {
    0%, 100% {
        filter: drop-shadow(0 0 5px rgba(0, 255, 153, 0.5)) drop-shadow(0 0 10px rgba(0, 255, 153, 0.3));
    }
    50% {
        filter: drop-shadow(0 0 10px rgba(0, 255, 153, 0.8)) drop-shadow(0 0 20px rgba(0, 255, 153, 0.5));
    }
}

.cyber-icon.pulse {
    animation: iconPulse 2s ease-in-out infinite;
}

/* Стрелка аккордеона */
.accordion-arrow {
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.cyber-btn[aria-expanded="true"] .accordion-arrow {
    transform: rotate(180deg);
}

/* Анимация вращения для иконок */
@keyframes iconSpin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.cyber-icon.spin {
    animation: iconSpin 3s linear infinite;
}

/* Видео контейнер */
/* Общий контейнер для всех видео */
.videos-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin: 2rem 0;
}

/* Контейнер для каждого отдельного видео */
.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 соотношение */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 255, 153, 0.3);
    background: #000;
}

.video-wrapper .video-player,
.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Изображения */
.news-image-container {
    margin: 2rem auto;
    text-align: center;
}

.news-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 255, 153, 0.3);
    transition: transform 0.3s ease;
}

.news-image:hover {
    transform: scale(1.02);
}

@media (min-width: 992px) {
    .news-image {
        max-width: 75%;
    }
}

@media (min-width: 1200px) {
    .news-image {
        max-width: 60%;
    }
}