body {
    margin: 0; /* Убираем стандартные отступы */
    padding: 0; /* Убираем стандартные отступы */
    height: 100%; /* Устанавливаем высоту на 100% для всей страницы */
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    font-family: 'Arial', sans-serif;
    zoom: 85%;
}

.profile-message {
    width: 100%;
    max-width: 420px;
    padding: 14px 18px;
    margin-bottom: 12px;
    display: none;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    opacity: 1;
    transition: opacity 0.3s, transform 0.3s;
}

.name-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.name-modal.hidden {
    display: none;
}

.name-modal-content {
    background: #1e1b2e;
    padding: 25px;
    border-radius: 12px;
    width: 320px;
    text-align: center;
    color: #fff;
}

.name-modal-content input {
    width: 100%;
    padding: 10px;
    margin-top: 12px;
    border-radius: 6px;
    border: none;
}

.name-modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.name-modal-actions button {
    flex: 1;
    padding: 10px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
}

#nameTimer {
    margin-top: 12px;
    font-size: 0.85rem;
    color: #a78bfa;
}

.username-edit-input {
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: 1px solid #a78bfa;
    border-radius: 6px;
    padding: 3px 6px;
    font-size: 13px;
    width: 120px;
}

.username-tag.editable {
    cursor: pointer;
    -webkit-text-decoration: underline dotted;
            text-decoration: underline dotted;
}

.username-tag.editable:hover {
    background: rgba(0, 184, 148, 0.8);
}

.username-edit-input {
    position: absolute;
    bottom: 5px;
    left: 5px;
    width: calc(100% - 15px);
    padding: 2px 5px;
    border: 1px solid #00b894;
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    font-size: 12px;
    z-index: 100;
}

/* Когда кнопка должна быть показана (у админа) */

#freezeRoomBtn.show {
    display: block !important;
}

#freezeRoomBtn.active {
    background: linear-gradient(135deg, #dc2626, #ef4444);
}

.app_profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;                    /* расстояние между секциями */
    padding: 40px 32px;
}

/* Заголовок */

.app_profile h1 {
    color: #b8a6ff;
    font-size: 1.6rem;
    font-weight: 600;
    text-align: center;

    margin: 0 14px; /* ⬅ слева и справа */

    text-shadow: 0 0 10px rgba(167,139,250,0.6);
}

.game-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    overflow: hidden;
    padding: 40px;
    position: relative;
}

/* Добавьте эти стили для отступов внутри формы */

.game-card form {
    margin-top: 20px; /* Отступ от заголовка до формы */
}

.game-card .form-group {
    margin-bottom: 25px; /* Увеличиваем отступ между полями */
}

.game-card .input-wrapper {
    margin-bottom: 5px; /* Небольшой отступ под полем ввода */
}

/* Или более конкретно для инпутов */

.game-card input[type="text"],
.game-card input[type="email"],
.game-card input[type="password"],
.game-card .form-control {
    margin: 8px 0; /* Отступ сверху и снизу для каждого инпута */
    width: 100%;
    box-sizing: border-box;
}

/* Для капчи добавим отступы */

.game-card .captcha {
    margin: 30px 0; /* Больше отступов вокруг капчи */
    padding: 25px; /* Внутренние отступы капчи */
}

/* Для кнопок действий */

.game-card .actions {
    margin: 35px 0 25px 0; /* Отступы вокруг кнопок */
}

/* Для сообщений об ошибках */

.game-card .field-error {
    margin-top: 5px;
    padding-left: 10px;
}

/* Альтернативный вариант с контейнером для инпутов */

.game-card .form-inputs-container {
    padding: 15px 0; /* Отступ сверху и снизу для всех инпутов */
}

.game-card .form-inputs-container > * {
    margin-bottom: 20px; /* Отступ между элементами */
}

.game-card .form-inputs-container > *:last-child {
    margin-bottom: 0; /* Убираем отступ у последнего элемента */
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(to right, #ff416c, #ff4b2b);
}

.game-header {
    text-align: center;
    margin-bottom: 30px;
    background: linear-gradient(to right, #4a00e0, #8e2de2);
    padding: 40px;
    border-radius: 20px; /* Стандартное округление */
    color: white;
}

.game-logo {
    font-size: 3rem;
    color: #4a00e0;
    margin-bottom: 15px;
}

.game-header h1 {
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 2.2rem;
}

.game-header p {
    color: #666;
    font-size: 1.1rem;
}

/* Стили формы */

.form-group {
    margin-bottom: 20px;
}

.input-wrapper {
    position: relative;
    width: 100%;
}

.form-control {
    width: 100%;
    padding: 12px 45px 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s;
    background: #fff;
}

.form-control:focus {
    outline: none;
    border-color: #4a00e0;
    box-shadow: 0 0 0 3px rgba(74, 0, 224, 0.1);
}

.form-control::-moz-placeholder {
    color: #999;
}

.form-control::placeholder {
    color: #999;
}

/* Кнопки */

.actions {
    display: flex;
    gap: 15px;
    margin: 25px 0;
}

.btn-primary {
    flex: 1;
    background: linear-gradient(to right, #ff416c, #ff4b2b);
    border: none;
    color: white;
    padding: 15px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 65, 108, 0.3);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-ghost {
    flex: 1;
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
    padding: 15px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s;
}

.btn-ghost:hover {
    background: #4a00e0;
    color: white;
    transform: translateY(-3px);
}

.toggle-password {
    position: absolute;
    right: 2px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s;
}

.toggle-password:hover {
    color: #4a00e0;
}

.password-strength {
    margin-top: 8px;
}

.strength-meter {
    height: 5px;
    background: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 5px;
}

/* Контейнер для чекбокса "Запомни меня" */

.remember-container {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.remember-container input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    margin: 0;
    flex-shrink: 0;
}

.remember-container label {
    color: var(--muted);
    cursor: pointer;
    white-space: nowrap;
    margin: 0;
}

.forgot-password {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s;
    white-space: nowrap;
    margin-left: auto;
}

.forgot-password:hover {
    color: var(--accent);
}

.strength-fill {
    height: 100%;
    width: 0%;
    transition: width 0.3s, background-color 0.3s;
    border-radius: 3px;
}

.strength-text {
    font-size: 12px;
    color: #666;
    text-align: right;
}

.game-logo img {
    width:120px;
    height: 120px;
    border-radius: 20%;
}

/* Общие секции */

.app_profile .card
{
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-bottom:15px;
    padding: 24px 20px;

    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(167, 139, 250, 0.25);  /* мягкая обводка */
    border-radius: 16px;

    box-shadow:
        inset 0 0 0 1px rgba(167,139,250,0.08),
        0 8px 24px rgba(0,0,0,0.35);
}

.app_profile .profile-divider {
    width: 80%;
    height: 1px;
    margin: 12px auto;

    background: linear-gradient(
        90deg,
        transparent,
        rgba(167,139,250,0.6),
        transparent
    );
}

/* Аватар */

.app_profile .avatar-preview {
    width: 140px;
    height: 140px;
    min-width: 140px;
    min-height: 140px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 3px solid rgba(167,139,250,0.9);
    background-size: cover;
    background-position: center;
    box-shadow:
        0 0 0 4px rgba(167,139,250,0.15),
        0 6px 20px rgba(120, 80, 255, 0.55);

    transition: transform 0.3s, box-shadow 0.3s;
}

.app_profile .avatar-preview:hover {
    transform: scale(1.06);
    box-shadow:
        0 0 0 6px rgba(167,139,250,0.25),
        0 10px 30px rgba(120, 80, 255, 0.8);
}

/* Hidden input file */

.app_profile input[type="file"] {
    display: none;
}

/* Input field */

.avatar-section input {
    width: 100%;
    max-width: 320px;

    padding: 12px 16px;
    border-radius: 14px;
    border: 1px solid rgba(167,139,250,0.5);

    background: #1e1e32;
    color: #fff;

    font-size: 15px;
    outline: none;

    transition: 0.25s;
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.35);
}

.avatar-section input:focus {
    border-color: #a78bfa;
    background: #252544;
    box-shadow:
        0 0 0 2px rgba(167,139,250,0.25),
        inset 0 2px 6px rgba(0,0,0,0.35);
}

/* Save button */

.app_profile .saveBut {
    margin-top: 8px;
    padding: 14px 28px;
    border-radius: 14px;
    border: none;
    background: linear-gradient(90deg, #6d28d9, #7c3aed);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.25s, box-shadow 0.25s;
    box-shadow: 0 6px 16px rgba(120, 80, 255, 0.55);
}

.app_profile .saveBut:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 10px 24px rgba(120, 80, 255, 0.75);
}

.app_profile .saveBut:active {
    transform: scale(0.97);
}

/* ===== LOGO ===== */

.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.logo-text {
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: #ddd6fe;
    text-shadow:
        0 0 12px rgba(168,85,247,0.6),
        0 0 24px rgba(124,58,237,0.4);
}

.logo-icon {
    width: 72px;
    height: 72px;
}

.logo-icon line {
    stroke: #a78bfa;
    stroke-width: 1.4;
    opacity: 0.8;
}

.logo-icon .orbit {
    fill: #c4b5fd;
}

.logo-icon .core {
    filter:
        drop-shadow(0 0 10px #a855f7)
        drop-shadow(0 0 20px rgba(168,85,247,0.6));
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.15); opacity: .85; }
    100% { transform: scale(1); opacity: 1; }
}

/* Success */

.profile-message.success {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.45);
    color: #22c55e;
    box-shadow: 0 6px 18px rgba(34, 197, 94, 0.25);
}

/* Error */

.profile-message.error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.45);
    color: #ef4444;
    box-shadow: 0 6px 18px rgba(239, 68, 68, 0.25);
}

.profile-message.hidden {
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
}

.password-field {
    position: relative;
    width: 100%;
    max-width: 320px;
}

.password-strength {
    font-size: 13px;
    color: #aaa;
}

.password-strength.weak { color: #ff7a7a; }

.password-strength.medium { color: #facc15; }

.password-strength.strong { color: #4ade80; }

.password-field {
    position: relative;
    width: 100%;
    max-width: 320px;
}

.password-field input {
    width: 100%;
    padding: 12px 44px 12px 16px;
    border-radius: 14px;
    border: 1px solid rgba(167,139,250,0.5);
    background: #1e1e32;
    color: #fff;
    font-size: 15px;
}

.app_main {
    position: relative;
    flex-direction: column;
    border-radius: 18px;
    box-shadow:
        0 0 0 1px rgba(167,139,250,0.1),
        0 20px 60px rgba(0,0,0,0.6);
}

.page-compact .app_main {
    box-shadow:
        0 10px 30px rgba(0,0,0,0.45);
    max-width: 900px;
    margin: 40px auto;
}

.name-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
}

.name-modal-content {
    background: linear-gradient(145deg, #2d2b42, #1f1d35);
    padding: 30px;
    border-radius: 15px;
    width: 400px;
    max-width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid #4a456e;
    color: white;
}

.name-modal-content h3 {
    margin-bottom: 20px;
    color: #b8a6ff;
    text-align: center;
    font-size: 1.4rem;
}

.name-modal-content input {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    border: 1px solid #4a456e;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 16px;
    box-sizing: border-box;
}

.name-modal-content input:focus {
    outline: none;
    border-color: #b8a6ff;
    background: rgba(255, 255, 255, 0.15);
}

.name-modal-content button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(90deg, #8b5cf6, #6366f1);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.name-modal-content button:hover {
    background: linear-gradient(90deg, #7c3aed, #4f46e5);
    transform: translateY(-2px);
}

.topic-input::-moz-placeholder {
    color: #b8a6ff;
    opacity: 0.7;
}

.topic-input::placeholder {
    color: #b8a6ff;
    opacity: 0.7;
}

header {
    background: rgba(25,25,40,0.8);
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

header h1 {
    font-size: 1.6rem;
    color: #b8a6ff;
    font-weight: 600;
}

#roomLink {
    font-size: 0.85rem;
    color: #a78bfa;
    word-break: break-all;
    opacity: 0.9;
}

/* 🔹 СТИЛИ ДЛЯ ВИДЕО КОНТЕЙНЕРОВ (КВАДРАТНЫЕ) */

main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 20px;
    overflow-y: auto;
    max-width: 100%;
    margin: 0 auto;
}

#videos {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.video-page-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
    padding: 20px;
    justify-content: center;
    align-items: start;
    max-width: 100%;
    margin: 0 auto;
    min-height: 300px;
    width: 100%;
}

.video-container {
    position: relative;
    background: #0a0a17;
    border-radius: 16px;
    width: 220px;
    height: 220px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s, opacity 0.3s, box-shadow 0.3s;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    margin: 0;
}

.video-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

video {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
       object-fit: cover;
    border-radius: 16px;
}

.username-edit-icon svg {
    stroke: #b8a6ff;
    width: 12px;
    height: 12px;
}

.placeholder-text {
    font-size: 14px;
    opacity: 0.8;
}

.nav-btn:hover:not(:disabled) {
    background: #5a5a8d;
    transform: scale(1.05);
}

.nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-indicator {
    color: white;
    font-size: 14px;
    font-weight: 500;
    min-width: 60px;
    text-align: center;
}

/* Сообщение когда нет видео */

.no-videos-message {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: #a78bfa;
    font-size: 16px;
    opacity: 0.7;
    background: rgba(20,20,35,0.3);
    border-radius: 12px;
    width: 100%;
}

/* 🔹 Панель задач */

.task-panel {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: rgba(30, 30, 55, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: -6px 0 25px rgba(0, 0, 0, 0.6);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    transition: right 0.4s ease;
    z-index: 200;
    padding: 24px 20px;
    border-radius: 12px 0 0 12px;
    gap: 16px;
}

.task-panel.open {
    right: 0;
}

.task-panel h2 {
    font-size: 1.3rem;
    color: #b8a6ff;
    margin-bottom: 10px;
    font-weight: 600;
}

.task-input {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(167,139,250,0.3);
    border-radius: 10px;
    padding: 10px 12px;
    color: #fff;
    margin-bottom: 10px;
    font-size: 0.95rem;
    outline: none;
}

.task-input::-moz-placeholder {
    color: #b8a6ff;
    opacity: 0.7;
}

.task-input::placeholder {
    color: #b8a6ff;
    opacity: 0.7;
}

.task-list {
    flex: 1;
    overflow-y: auto;
    padding-right: 5px;
}

.task-item {
    background: rgba(255,255,255,0.05);
    padding: 10px 12px;
    border-radius: 10px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(255,255,255,0.05);
}

.task-item span {
    flex: 1;
    white-space: pre-wrap;
    word-break: break-word;
    font-size: 0.95rem;
    line-height: 1.3;
}

.remove-task {
    background: none;
    border: none;
    color: #ff8888;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0 5px;
    transition: transform 0.2s;
}

.remove-task:hover {
    transform: scale(1.2);
}

.task-panel .small-btn {
    background: linear-gradient(90deg, #7c3aed, #a78bfa);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s ease, transform 0.25s;
    box-shadow: 0 6px 16px rgba(120, 80, 255, 0.45);
    margin-top: 10px;
}

.task-panel .small-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(120, 80, 255, 0.6);
}

.task-toggle {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    background: linear-gradient(90deg, #6d28d9, #7c3aed);
    color: #fff;
    border-radius: 12px 0 0 12px;
    padding: 12px 8px;
    cursor: pointer;
    font-weight: bold;
    z-index: 210;
    transition: 0.3s;
    border: none;
    font-size: 1.2rem;
    width: 40px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.task-toggle:hover {
    background: linear-gradient(90deg, #7e3ff2, #8b5cf6);
    width: 45px;
}

#activityPanel.open {
    transform: translateY(-50%) translateX(0);
}

#activityToggle {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(90deg, #10b981, #34d399);
    color: white;
    border: none;
    border-radius: 10px 0 0 10px;
    padding: 15px 8px;
    cursor: pointer;
    font-size: 1.2rem;
    z-index: 251;
    transition: all 0.3s ease;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    height: 120px;
    width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3);
}

#activityToggle:hover {
    background: linear-gradient(90deg, #34d399, #10b981);
    transform: translateY(-50%) scale(1.05);
    box-shadow: -2px 0 15px rgba(16, 185, 129, 0.4);
}

#activityPanel.open + #activityToggle {
    right: 520px;
}

#activityHeader {
    background: linear-gradient(90deg, #1e3a8a, #3b82f6);
    padding: 12px 16px;
    color: white;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

#activityHeader span {
    font-size: 1.1rem;
}

#activityCollapseBtn {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0 5px;
    transition: transform 0.2s;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

#activityCollapseBtn:hover {
    background: rgba(255,255,255,0.1);
    transform: scale(1.1);
}

#activityContent {
    flex: 1;
    padding: 12px;
    overflow-y: auto;
}

#activityTable {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

#activityTable th {
    text-align: left;
    padding: 12px 10px;
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
    font-weight: 600;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-size: 0.95rem;
}

#activityTable td {
    padding: 12px 10px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    vertical-align: middle;
}

#activityTable tr:hover {
    background: rgba(59, 130, 246, 0.1);
}

.task-toast.show {
    opacity: 1;
}

/* 🔹 Adaptive for phones */

@media (max-width: 768px) {
    body {
        overflow-x: hidden;
        zoom: 30%;
    }

    main {
        padding: 10px;
    }

    .video-page-container {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 12px;
        padding: 15px;
    }

    .video-container {
        width: 160px;
        height: 160px;
        border-radius: 12px;
    }

    .username-tag {
        font-size: 11px;
        padding: 4px 8px;
        bottom: 6px;
        left: 6px;
        right: 6px;
    }

    .admin-badge {
        font-size: 10px;
        padding: 3px 6px;
        top: 6px;
        right: 6px;
    }

    .delete-user-btn {
        width: 26px;
        height: 26px;
        font-size: 12px;
        top: 6px;
        left: 6px;
    }


    .topic-title {
        font-size: 1rem;
        padding: 0 35px;
    }

    .topic-input {
        width: 70%;
        font-size: 1rem;
        padding: 6px 40px 6px 10px;
    }

    header {
        padding: 12px 15px;
        flex-direction: column;
        gap: 5px;
    }

    header h1 {
        font-size: 1.3rem;
    }

    #roomLink {
        font-size: 0.75rem;
    }

    ._messenger-panel {
        padding: 10px 15px;
        gap: 8px;
        height: 65px;
    }

    ._messenger {
        padding: 10px 12px;
        font-size: 0.9rem;
        min-width: 90px;
        gap: 4px;
    }

    ._messenger svg {
        width: 16px;
        height: 16px;
    }

    .task-panel {
        width: 260px;
        padding: 20px 15px;
    }

    .task-toggle {
        width: 35px;
        height: 50px;
        font-size: 1rem;
    }

    #chatPanel {
        width: 280px;
        height: calc(100vh - 65px);
        bottom: 65px;
    }

    #chatToggle {
        width: 35px;
        height: 50px;
        font-size: 1rem;
    }

    #activityPanel {
        width: 300px;
        height: 60vh;
        max-height: 500px;
    }

    #activityPanel.open + #activityToggle {
        right: 300px;
    }

    #activityToggle {
        width: 40px;
        height: 100px;
        font-size: 1rem;
        padding: 12px 6px;
    }

    .video-navigation {
        margin: 15px auto;
        gap: 15px;
    }

    .nav-btn {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }

    .page-indicator {
        font-size: 13px;
        min-width: 50px;
    }
}

@media (max-width: 480px) {
    body {
        zoom: 55%;
    }

    .video-page-container {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 10px;
        padding: 10px;
    }

    .video-container {
        width: 140px;
        height: 140px;
    }

    ._messenger-panel {
        flex-wrap: wrap;
        height: auto;
        padding: 10px;
    }

    ._messenger {
        flex: 1 1 calc(50% - 10px);
        max-width: none;
        margin-bottom: 5px;
    }

    #activityPanel {
        width: 280px;
    }

    #activityPanel.open + #activityToggle {
        right: 280px;
    }
    .site-footer {
        padding: 32px 16px;
    }

    .footer-block h4 {
        font-size: 15px;
    }

    .footer-block p,
    .footer-info-links a {
        font-size: 13px;
    }
}

/* ---------- FOOTER ---------- */

.site-footer {
    margin-top: auto;
    padding: 40px 20px;

    background: linear-gradient(
        180deg,
        rgba(18,20,38,0.95),
        rgba(14,16,30,0.98)
    );

    border-top: 1px solid rgba(167,139,250,0.15);
    box-shadow: 0 -10px 40px rgba(0,0,0,0.6);
}

.site-footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
    text-align: center;
}

/* ---------- БЛОКИ ---------- */

.footer-block {
    padding: 12px;
}

.footer-block h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #ddd6fe;
    text-shadow: 0 0 6px rgba(167,139,250,0.35);
}

.footer-block p {
    font-size: 14px;
    color: #9ca3af;
    line-height: 1.5;
    margin-bottom: 8px;
}

/* ---------- ССЫЛКИ ---------- */

.footer-info-links a {
    color: #a78bfa;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s, text-shadow 0.2s;
}

.footer-info-links a:hover {
    color: #c4b5fd;
    text-shadow: 0 0 8px rgba(167,139,250,0.6);
}

/* ---------- ACTION BLOCKS ---------- */

.footer-contact-action,
.footer-support-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

/* ---------- КНОПКИ ---------- */

.footer-contact-btn,
.footer-support-btn {
    margin-top: 6px;
    padding: 10px 24px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 999px;
    text-decoration: none;
    transition: all 0.25s ease;
    display: inline-block;
    letter-spacing: 0.3px;
}

/* Связаться */

.footer-contact-btn {
    background: linear-gradient(90deg, #16a34a, #22c55e);
    color: #fff;
    box-shadow: 0 6px 18px rgba(34,197,94,0.35);
}

.footer-contact-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 10px 26px rgba(34,197,94,0.55);
}

/* Поддержка */

.footer-support-btn {
    background: linear-gradient(90deg, #6d28d9, #7c3aed);
    color: #fff;
    box-shadow: 0 6px 18px rgba(124,58,237,0.45);
}

.footer-support-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 10px 30px rgba(124,58,237,0.6);
}

/* ---------- COPYRIGHT ---------- */

.footer-copy p {
    font-size: 13px;
    color: #6b7280;
    margin-top: 6px;
}

/* ---------- support ---------- */

.container_support {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    padding: 30px;
    background: rgba(30, 41, 59, 0.85);
    backdrop-filter: blur(10px);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

/* Header */

.container_support .header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border);
    position: relative;
}

.container_support  .header h1 {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(196, 181, 253, 0.3);
}

.container_support .header h1 i {
    margin-right: 15px;
    color: var(--primary-light);
}

.container_support   .header .subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Form */

.container_support   .form-container {
    margin-top: 20px;
}

.container_support   .form-group {
    margin-bottom: 25px;
}

.container_support    .form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

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

.container_support label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--secondary-light);
}

.container_support   label i {
    margin-right: 8px;
    color: var(--primary-light);
}

.container_support  .required::after {
    content: " *";
    color: var(--danger);
}

.container_support input, select, textarea {
    width: 100%;
    padding: 15px;
    background: rgba(15, 23, 42, 0.7);
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 1rem;
    transition: all 0.3s;
}

.container_support  input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

.container_support  input:hover, select:hover, textarea:hover {
    border-color: var(--primary-light);
}

.container_support   select {
    -webkit-appearance: none;
       -moz-appearance: none;
            appearance: none;
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 20px;
    padding-right: 45px;
    cursor: pointer;
}

.container_support   .select-wrapper {
    position: relative;
}

.container_support .select-wrapper i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-light);
    pointer-events: none;
}

/* Стили для опций выпадающего списка */

.container_support   option {
    background-color: var(--dark-light);
    color: var(--text);
    padding: 10px;
}

.container_support  option:checked {
    background-color: var(--primary);
    color: white;
}

.container_support  option:hover {
    background-color: var(--primary-light);
}

.container_support .option i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.container_support  textarea {
    min-height: 150px;
    resize: vertical;
}

/* File Upload */

.container_support  .file-upload {
    position: relative;
    overflow: hidden;
}

.container_support   .file-upload input[type="file"] {
    position: absolute;
    top: 0;
    right: 0;
    min-width: 100%;
    min-height: 100%;
    font-size: 100px;
    text-align: right;
    filter: alpha(opacity=0);
    opacity: 0;
    outline: none;
    background: white;
    cursor: pointer;
    display: block;
}

.container_support   .file-upload-label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    background: rgba(15, 23, 42, 0.7);
    border: 2px dashed var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    height: 120px;
}

.container_support   .file-upload-label:hover {
    border-color: var(--primary);
    background: rgba(139, 92, 246, 0.1);
}

.container_support   .file-upload-label i {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--primary-light);
}

.container_support  .file-info {
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Priority */

.container_support    .priority-group {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.container_support   .priority-option {
    flex: 1;
    position: relative;
}

.container_support .priority-option input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.container_support    .priority-label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    background: rgba(15, 23, 42, 0.7);
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    text-align: center;
}

.container_support .priority-low .priority-label {
    color: #10b981;
}

.container_support .priority-medium .priority-label {
    color: #f59e0b;
}

.container_support  .priority-high .priority-label {
    color: #ef4444;
}

.container_support .priority-option input:checked + .priority-label {
    background: rgba(15, 23, 42, 0.9);
    border-color: currentColor;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

/* Submit Button */

.container_support  .submit-container {
    text-align: center;
    margin-top: 40px;
}

.container_support  .submit-btn {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    padding: 18px 45px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(139, 92, 246, 0.4);
}

.container_support    .submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.6);
}

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

.container_support    .submit-btn i {
    margin-right: 10px;
}

/* Success Message */

.success-message {
    display: none;
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.4);
    border-radius: var(--radius);
    padding: 25px;
    text-align: center;
    margin-top: 30px;
    animation: fadeIn 0.5s;
}

.success-message i {
    font-size: 3rem;
    color: var(--success);
    margin-bottom: 20px;
}

.success-message h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text);
}

.success-message p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* Footer */

.container_support    .footer {
    text-align: center;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.9rem;
}

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

.container_support    .footer a:hover {
    text-decoration: underline;
}

/* Responsive */

@media (max-width: 768px) {
    .container_support {
        padding: 20px;
    }

    .container_support   .header h1 {
        font-size: 2rem;
    }

    .container_support   .form-row {
        flex-direction: column;
        gap: 0;
    }

    .container_support .priority-group {
        flex-direction: column;
    }
}

@media (max-width: 480px) {

    .container_support {
        padding: 15px;
    }

    .container_support  .header h1 {
        font-size: 1.7rem;
    }
}

/* Animations */

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

/* Validation Styles */

.error {
    border-color: var(--danger) !important;
}

.error-message {
    color: var(--danger);
    font-size: 0.85rem;
    margin-top: 5px;
    display: none;
}

/* Toast Notification */

.success-notification-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    padding: 1px;
    animation: slideDown 0.4s ease-out;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
}

.success-notification {
    background: #0f172a;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    border-radius: 12px;
    min-height: 70px;
    box-sizing: border-box;
    flex-wrap: wrap;
}

.notification-header {
    display: flex;
    align-items: center;
    width: 100%;
    margin-bottom: 10px;
}

.notification-icon {
    color: #10b981;
    font-size: 22px;
    margin-right: 12px;
}

.notification-title {
    color: #f8fafc;
    font-size: 16px;
    font-weight: 600;
    flex: 1;
    margin: 0;
}

.notification-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    color: #cbd5e1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.notification-close:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #f8fafc;
    transform: rotate(90deg);
}

.notification-body {
    width: 100%;
    color: #cbd5e1;
    line-height: 1.5;
}

.notification-body p {
    margin: 5px 0;
    font-size: 20px;
}

.notification-body p:first-child {
    color: #10b981;
    font-weight: 500;
}

.notification-footer {
    width: 100%;
    text-align: right;
    margin-top: 10px;
}

.notification-action-btn {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-size: 14px;
}

.notification-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.4);
}

/* 🔹 Кнопка жалобы в контейнере видео */

.complaint-user-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 193, 7, 0.9);
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s, background 0.3s;
}

.video-container:hover .complaint-user-btn {
    opacity: 1;
}

.complaint-user-btn:hover {
    background: rgba(255, 193, 7, 1);
    transform: scale(1.1);
}

/* 🔹 Модальное окно жалобы */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.modal-overlay.show {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

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

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #eaeaea;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 18px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: #333;
}

.modal-body {
    padding: 20px;
}

.complaint-user-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #ffc107;
}

.complaint-user-info p {
    margin: 5px 0;
    font-size: 14px;
}

.form-group {
    margin-bottom: 20px;
}

.form-select, .form-textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
}

.form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
}

.form-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 30px;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover {
    background: #5a6fd8;
}

.btn-primary:disabled {
    background: #a0a7d0;
    cursor: not-allowed;
}


