/* === VioRoom — ЧИСТЫЙ, СОВРЕМЕННЫЙ СТИЛЬ === */

/* === ROOT ПЕРЕМЕННЫЕ === */
:root {
  --bg: #0f0f10;
  --accent-color: #a855f7; 
  --accent-hover: #c084fc;
  --card: #161616;
  --panel: #151515;
  --text: #e6e6e6;
  --muted: #9aa0a6;
  --accent: #00c2ff;
  --accent-dark: #00a6d9;
  --danger: #ff6b6b;
  --border: rgba(255, 255, 255, 0.08);
}

/* === ТЁМНАЯ ТЕМА === */
.dark-theme {
  --bg: #ffffff;
  --card: #f8f9fa;
  --panel: #f1f3f5;
  --text: #212529;
  --muted: #6c757d;
  --accent: #007acc;
  --accent-dark: #0060a8;
  --danger: #dc3545;
  --border: rgba(0, 0, 0, 0.12);
}

/* === ОСНОВНЫЕ СТИЛИ === */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; font-family: 'Inter', sans-serif; }
body {
  background: var(--bg);
  color: var(--text);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: background 0.3s, color 0.3s;
}

/* === ГЛАВНЫЙ КОНТЕНТ === */
.content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 20px;
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}

/* === ШАПКА === */
.logo {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 800;
  margin: 10px 0;
}
.logo .vio { color: var(--accent); }

.page-title {
  text-align: center;
  color: var(--muted);
  font-size: 1.2rem;
  font-weight: 600;
}

/* === СОЦСЕТИ === */
.social-links {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 15px 0;
}
.social-links img {
  width: 28px;
  height: 28px;
  opacity: 0.7;
  filter: grayscale(100%);
  transition: 0.2s;
}
.social-links a:hover img {
  opacity: 1;
  filter: grayscale(0%);
  transform: scale(1.1);
}

/* === АВАТАР + КОЛОКОЛЬЧИК === */
#avatar {
  position: fixed;
  top: 16px;
  left: 16px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  cursor: pointer;
  z-index: 1000;
  transition: 0.2s;
}
#avatar:hover { transform: scale(1.05); }

#notificationBell {
  position: fixed;
  top: 20px;
  right: 20px;
  font-size: 1.5rem;
  color: var(--text);
  cursor: pointer;
  z-index: 1000;
}
#notificationCount {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #ff4444;
  color: white;
  font-size: 0.7rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

/* === САЙДБАР === */
.sidebar {
  position: fixed;
  top: 0;
  left: -280px;
  width: 280px;
  height: 100%;
  background: var(--panel);
  padding: 20px;
  transition: left 0.35s ease;
  z-index: 999;
  box-shadow: 0 0 30px rgba(0,0,0,0.5);
}
.sidebar.visible { left: 0; }

#usernameDisplay {
  text-align: center;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
}

.menu-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}
.btn:hover { background: rgba(255,255,255,0.1); transform: translateY(-1px); }

#adminSupportBtn {
  background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
  color: white;
  display: none;
}
#adminSupportBtn:hover { background: linear-gradient(135deg, #ff5252, #ff7a7a); }

/* === ФОРМА СОЗДАНИЯ ТРЕДА === */
#createThreadSection {
  background: var(--card);
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.thread-form input,
.thread-form textarea {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(0,0,0,0.2);
  color: var(--text);
  margin-bottom: 12px;
  font-size: 1rem;
}

.thread-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.file-label {
  background: rgba(255,255,255,0.1);
  padding: 8px 16px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.9rem;
}

.btn-publish {
  background: var(--accent);
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
}

/* === ПОИСК === */
.search-bar {
  text-align: center;
  margin: 20px 0;
}
#searchInput {
  width: 100%;
  max-width: 500px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.05);
  color: var(--text);
  font-size: 1rem;
}

/* === ТРЕДЫ === */
.threads-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.thread {
  background: var(--card);
  padding: 18px;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  border: 1px solid var(--border);
}

.thread-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.9rem;
}

.thread-title {
  font-size: 1.3rem;
  font-weight: bold;
  color: var(--accent);
  margin: 8px 0;
}

.thread-content {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
}

.thread-img {
  max-width: 180px;
  max-height: 180px;
  border-radius: 12px;
  object-fit: cover;
}

.thread-description {
  flex: 1;
  line-height: 1.6;
}

/* === РЕАКЦИИ === */
.reactions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 15px 0;
}

.reaction-btn {
  background: rgba(255,255,255,0.1);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px 12px;
  color: var(--text);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: 0.2s;
}

.reaction-btn:hover { background: rgba(255,255,255,0.2); }
.reaction-btn.active {
  background: rgba(0,194,255,0.3) !important;
  border-color: var(--accent) !important;
  color: var(--accent);
  font-weight: bold;
}

/* === КОММЕНТАРИИ === */
.comment {
  padding: 12px 0;
  border-top: 1px solid var(--border);
  font-size: 0.95rem;
  color: var(--muted);
}
.comment b { color: var(--text); font-weight: 700; }

.commentForm {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.commentForm input { flex: 1; }
.commentForm button {
  background: var(--accent);
  color: white;
  padding: 8px 12px;
  border: none;
  border-radius: 10px;
}

/* === ПРЕВЬЮ ИЗОБРАЖЕНИЯ === */
.image-preview img {
  max-width: 100%;
  max-height: 300px;
  border-radius: 12px;
  border: 1px solid var(--border);
  margin-top: 10px;
}

/* === УТИЛИТЫ === */
.hidden { display: none !important; }
.crown { color: #ffd700; margin-left: 6px; }

/* === АДАПТИВ === */
@media (max-width: 768px) {
  .content { padding: 16px; }
  .sidebar { width: 100%; left: -100%; }
  .thread-content { flex-direction: column; }
  .thread-img { max-width: 100%; }
}

.reaction-btn.active {
  box-shadow: 0 0 10px var(--accent);
}

.reaction-btn:active i {
  transform: scale(1.3);
  transition: transform 0.1s;
}

.reaction-btn[data-type="thumbsup"].active { color: #4ef58b; border-color: #4ef58b; }
.reaction-btn[data-type="thumbsdown"].active { color: #ff4e4e; border-color: #ff4e4e; }
.reaction-btn[data-type="heart"].active { color: #ff6b9b; border-color: #ff6b9b; }
.reaction-btn[data-type="laugh"].active { color: #ffd93d; border-color: #ffd93d; }
.reaction-btn[data-type="wow"].active { color: #4fc3f7; border-color: #4fc3f7; }

.logo .vio {
  text-shadow: 0 0 12px var(--accent);
}

.thread {
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
  transition: transform 0.2s;
}
.thread:hover {
  transform: translateY(-3px);
}

.thread {
  animation: fadeIn 0.4s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.reaction-btn.active i {
  animation: pop 0.25s ease;
}
@keyframes pop {
  0% { transform: scale(1); }
  50% { transform: scale(1.6); }
  100% { transform: scale(1); }
}

#notificationCount:not(.hidden) {
  animation: pulse 1s infinite alternate;
}
@keyframes pulse {
  from { transform: scale(1); }
  to { transform: scale(1.3); }
}

#avatar:hover {
  box-shadow: 0 0 10px var(--accent);
}

/* === ЧАТ ПОДДЕРЖКИ === */
#support-chat-input {
  width: 90%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  color: white;
  padding: 6px 10px;
  font-size: 0.95em;
  outline: none;
  transition: all 0.2s ease;
  margin: 10px auto;
  display: block;
}

#support-chat-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

#support-chat-input:focus {
  background: rgba(0, 194, 255, 0.15);
  border-color: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

#supportBtn {
  background: linear-gradient(90deg, #007bff, #00c6ff);
  border: none;
  border-radius: 10px;
  color: white;
  font-weight: bold;
  font-size: 0.95em;
  padding: 10px 12px;
  width: 90%;
  margin: 10px auto;
  display: block;
  cursor: pointer;
  text-align: center;
  transition: all 0.25s ease;
  box-shadow: 0 0 8px rgba(0, 194, 255, 0.4);
}

/* При наведении */
#supportBtn:hover {
  background: linear-gradient(90deg, #00c6ff, #007bff);
  box-shadow: 0 0 14px rgba(0, 194, 255, 0.8);
  transform: scale(1.05);
}

/* При нажатии */
#supportBtn:active {
  transform: scale(0.96);
  filter: brightness(1.2);
}

/* Если хочешь добавить эффект "мигания" как будто кнопка активна */
#supportBtn.active {
  animation: pulseBlue 1.6s infinite;
}

@keyframes pulseBlue {
  0%, 100% {
    box-shadow: 0 0 8px rgba(0, 194, 255, 0.6);
  }
  50% {
    box-shadow: 0 0 16px rgba(0, 194, 255, 1);
  }
}

/* === ОБЩИЙ СТИЛЬ КНОПОК === */
#supportBtn,
#adminSupportBtn {
  border: none;
  border-radius: 10px;
  color: white;
  font-weight: bold;
  font-size: 0.95em;
  padding: 10px 12px;
  width: 90%;
  margin: 10px auto;
  display: block;
  cursor: pointer;
  text-align: center;
  transition: all 0.25s ease;
}

/* === ЧАТ ПОДДЕРЖКИ (синий неон) === */
#supportBtn {
  background: linear-gradient(90deg, #007bff, #00c6ff);
  box-shadow: 0 0 8px rgba(0, 194, 255, 0.4);
}
#supportBtn:hover {
  background: linear-gradient(90deg, #00c6ff, #007bff);
  box-shadow: 0 0 14px rgba(0, 194, 255, 0.8);
  transform: scale(1.05);
}
#supportBtn:active {
  transform: scale(0.96);
  filter: brightness(1.2);
}
#supportBtn.active {
  animation: pulseBlue 1.6s infinite;
}

/* === ПАНЕЛЬ ПОДДЕРЖКИ (красный неон) === */
#adminSupportBtn {
  background: linear-gradient(90deg, #ff4444, #ff6b6b);
  box-shadow: 0 0 8px rgba(255, 100, 100, 0.4);
}
#adminSupportBtn:hover {
  background: linear-gradient(90deg, #ff6b6b, #ff4444);
  box-shadow: 0 0 14px rgba(255, 100, 100, 0.8);
  transform: scale(1.05);
}
#adminSupportBtn:active {
  transform: scale(0.96);
  filter: brightness(1.2);
}
#adminSupportBtn.active {
  animation: pulseRed 1.6s infinite;
}

/* === ЭФФЕКТЫ СВЕЧЕНИЯ === */
@keyframes pulseBlue {
  0%, 100% { box-shadow: 0 0 8px rgba(0, 194, 255, 0.6); }
  50% { box-shadow: 0 0 16px rgba(0, 194, 255, 1); }
}

@keyframes pulseRed {
  0%, 100% { box-shadow: 0 0 8px rgba(255, 80, 80, 0.6); }
  50% { box-shadow: 0 0 16px rgba(255, 100, 100, 1); }
}

/* === AUTH MODAL (Вход / Регистрация) === */
.auth-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 10, 0.92);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  backdrop-filter: blur(6px);
  transition: opacity 0.3s ease;
}

.auth-container.hidden {
  display: none;
}

.auth-container h2 {
  font-size: 2.3rem;
  font-weight: 800;
  margin-bottom: 25px;
  color: white;
  text-shadow: 0 0 10px rgba(0, 194, 255, 0.7);
  letter-spacing: 1px;
}

/* Контейнер форм */
.auth-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(25, 25, 25, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 40px 50px;
  width: 350px;
  box-shadow: 0 0 30px rgba(0, 194, 255, 0.25);
  animation: fadeInUp 0.5s ease;
}

.auth-form.hidden {
  display: none;
}

/* Поля */
.auth-form input {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
  color: white;
  font-size: 1rem;
  transition: all 0.25s ease;
}

.auth-form input:focus {
  border-color: var(--accent, #00c2ff);
  box-shadow: 0 0 10px rgba(0, 194, 255, 0.6);
  background: rgba(255, 255, 255, 0.12);
  outline: none;
}

/* Кнопка */
.auth-form button {
  width: 100%;
  padding: 12px;
  margin-top: 6px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--accent, #00c2ff), #0080ff);
  color: white;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(0, 194, 255, 0.3);
  transition: all 0.25s ease;
}

.auth-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(0, 194, 255, 0.5);
}

/* Ссылки */
.auth-form p {
  margin-top: 14px;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
}

.auth-form a {
  color: var(--accent, #00c2ff);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: 0.2s;
}

.auth-form a:hover {
  text-decoration: underline;
  color: #33d4ff;
}

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

/* Контейнер формы */
.commentForm {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
  background: #1c1c1c;
  padding: 8px;
  border-radius: 8px;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.3);
}

/* Поле ввода комментария */
.commentForm input[type="text"] {
  flex: 1;
  padding: 10px;
  background: #111;
  color: #fff;
  border: 1px solid #333;
  border-radius: 6px;
  font-size: 14px;
  outline: none;
  transition: border 0.2s, background 0.2s;
}

.commentForm input[type="text"]:focus {
  border-color: #b100ff;
  background: #1a1a1a;
}

/* Кнопка отправки */
.commentForm button {
  background: #b100ff;
  border: none;
  color: white;
  padding: 10px 16px;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.commentForm button:hover {
  background: #9c00e6;
  transform: scale(1.05);
}

.commentForm button:active {
  transform: scale(0.97);
}

/* Кнопка удаления треда */
.delete-thread {
  background: #ff4444;
  color: #fff;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.2s;
}

.delete-thread:hover {
  background: #e03030;
}

/* Отключаем ч/б фильтр только для реакций */
.reactions,
.reactions *,
.reaction-btn,
.reaction-btn * {
  filter: none !important;
  color: inherit !important;
}

/* Для иконок Font Awesome — вернуть исходный цвет */
.reaction-btn i {
  filter: none !important;
  color: initial !important;
}

/* При наведении можно добавить лёгкое свечение */
.reaction-btn:hover i {
  transform: scale(1.1);
  transition: transform 0.2s ease;
}

/* Общие настройки для реакций */
.reaction-btn {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 4px 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: transform 0.2s ease, background 0.2s ease;
  filter: none !important;
  color: inherit !important;
}

/* Цвета для разных иконок */
.reaction-btn[data-type="thumbsup"] i {
  color: #ffff93 !important; /* зелёный */
}

.reaction-btn[data-type="thumbsdown"] i {
  color: #ffff93 !important; /* красный */
}

.reaction-btn[data-type="heart"] i {
  color: #e91e63 !important; /* розовый */
}

.reaction-btn[data-type="laugh"] i {
  color: #ffeb3b !important; /* жёлтый */
}

.reaction-btn[data-type="wow"] i {
  color: #ffeb3b !important; /* голубой */
}

/* Эффект при наведении */
.reaction-btn:hover {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.1);
}

/* Число рядом с иконкой */
.reaction-btn span {
  color: #ddd !important;
}

.hidden {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* === ФИОЛЕТОВАЯ СВЕТЛАЯ ТЕМА === */
body.light-theme {
  /* Фон — мягкий лавандово-фиолетовый, НЕ белый! */
  --bg: #f5f0ff;
  --card: #ffffff;
  --panel: #f8f5ff;
  --text: #2d1b4f;        /* Тёмно-фиолетовый текст — отлично читается */
  --muted: #7c6ab8;
  --border: rgba(168, 85, 247, 0.25);

  /* Акцент остаётся тот же яркий фиолетовый */
  --accent: #a855f7;
  --accent-hover: #9333ea;
  --accent-light: #e9d5ff;
  --accent-bg: rgba(168, 85, 247, 0.18);

  --danger: #dc3545;
}

/* === ПЕРЕОПРЕДЕЛЕНИЕ ЭЛЕМЕНТОВ В СВЕТЛОЙ ТЕМЕ === */
body.light-theme .thread,
body.light-theme .sidebar,
body.light-theme #createThreadSection,
body.light-theme .commentForm {
  background: var(--card) !important;
  border: 1px solid var(--border);
  box-shadow: 0 4px 16px rgba(168, 85, 247, 0.15);
}

body.light-theme .btn,
body.light-theme .reaction-btn,
body.light-theme .file-label {
  background: var(--accent-bg) !important;
  color: var(--accent) !important;
  border: 1px solid var(--accent-light) !important;
}

body.light-theme .btn:hover,
body.light-theme .reaction-btn:hover {
  background: var(--accent) !important;
  color: white !important;
  transform: translateY(-2px);
}

body.light-theme .btn-publish,
body.light-theme .commentForm button,
body.light-theme #supportBtn {
  background: var(--accent) !important;
  color: white !important;
  box-shadow: 0 4px 12px rgba(168, 85, 247, 0.4);
}

body.light-theme .btn-publish:hover,
body.light-theme .commentForm button:hover {
  background: var(--accent-hover) !important;
  transform: scale(1.05);
}

/* Логотип — чтобы "VioRoom" не пропадал */
.logo {
  color: var(--text);
  text-shadow: none;
}
.logo .vio {
  color: var(--accent);
  font-weight: 900;
  text-shadow: 0 0 12px rgba(168, 85, 247, 0.5);
}

/* Инпуты в светлой теме */
body.light-theme input,
body.light-theme textarea {
  background: rgba(168, 85, 247, 0.08) !important;
  border: 1px solid var(--accent-light) !important;
  color: var(--text) !important;
}

body.light-theme input:focus,
body.light-theme textarea:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.25);
  background: rgba(168, 85, 247, 0.15) !important;
}

/* Реакции — чтобы иконки были видны */
body.light-theme .reaction-btn {
  color: var(--accent) !important;
}
body.light-theme .reaction-btn.active {
  background: var(--accent) !important;
  color: white !important;
}

/* Убираем случайные белые фоны */
body.light-theme .commentForm input {
  background: rgba(168, 85, 247, 0.1) !important;
  color: var(--text) !important;
}

/* ПОЧИНИТЬ ЦИФРЫ РЕАКЦИЙ — ОБЯЗАТЕЛЬНО ВСТАВЬ В КОНЕЦ CSS */
.reaction-btn span {
  display: inline-block !important;
  min-width: 18px;
  font-weight: 600 !important;
  color: inherit !important;
  opacity: 1 !important;
  margin-left: 4px;
}
.reaction-btn {
  gap: 6px !important;
  padding: 6px 12px !important;
}

.banner-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  margin-top: 30px;
  flex-wrap: wrap; /* чтобы не ломалось на телефоне */
}

/* === ЛОГОТИП VIO ROOM — КРАСИВО В ЛЮБОЙ ТЕМЕ === */
.logo {
  font-size: 3.2rem !important;
  font-weight: 900 !important;
  letter-spacing: -1px;
  text-align: center;
  margin: 20px 0 10px;
  background: linear-gradient(135deg, #a855f7, #e879f9, #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none !important;
  position: relative;
  z-index: 1;
}

/* Подсветка только для "Vio" — ещё ярче */
.logo .vio {
  font-size: 1.1em;
  background: linear-gradient(135deg, #c084fc, #a855f7, #ec4899);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 20px rgba(168, 85, 247, 0.6);
}

/* В светлой теме — чуть потемнее градиент, чтобы не сливалось с фоном */
body.light-theme .logo {
  background: linear-gradient(135deg, #7c3aed, #a855f7, #c084fc);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.banner {
  display: block;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.banner img {
  width: 220px;        /* размер баннера */
  height: 80px;        /* высота баннера */
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.4);
}

.banner:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

/* Для мобильных устройств — баннеры скрываются */
@media (max-width: 768px) {
  .banner {
    display: none;
  }
}

/* Добавь в конец CSS */
.social-fixed-bottom {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(20,20,20,0.8);
  backdrop-filter: blur(10px);
  padding: 12px 20px;
  border-radius: 50px;
  display: flex;
  gap: 20px;
  z-index: 997;
  border: 1px solid rgba(168,85,247,0.3);
  box-shadow: 0 8px 32px rgba(0,0,0,0.6);
}

.social-fixed-bottom a img {
  width: 32px;
  height: 32px;
  opacity: 0.7;
  transition: 0.3s;
}

.social-fixed-bottom a:hover img {
  opacity: 1;
  transform: scale(1.3);
  filter: hue-rotate(90deg) brightness(1.5);
}

#donateBtn {
      position: fixed;
      bottom: 20px;
      right: 20px;
      background: linear-gradient(135deg, #a855f7, #c084fc);
      color: white;
      padding: 12px 20px;
      border: none;
      border-radius: 50px;
      font-weight: bold;
      font-size: 1rem;
      cursor: pointer;
      box-shadow: 0 0 15px rgba(168, 85, 247, 0.6);
      z-index: 999;
      transition: all 0.3s ease;
    }
    #donateBtn:hover {
      transform: scale(1.1);
      box-shadow: 0 0 25px rgba(168, 85, 247, 1);
    }
    #donateBtn:active {
      transform: scale(0.95);
    }
    body.light-theme #donateBtn {
      background: linear-gradient(135deg, #9333ea, #a855f7);
      box-shadow: 0 0 15px rgba(168, 85, 247, 0.4);
    }

/* КНОПКА КОММЕНТАРИЕВ — красиво и как в ТГ */
.comments-section {
  margin: 12px 0;
  text-align: left;
}

.open-comments-btn {
  background: rgba(168, 85, 247, 0.15);
  color: #a855f7;
  border: 1px solid rgba(168, 85, 247, 0.4);
  border-radius: 12px;
  padding: 10px 16px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  backdrop-filter: blur(4px);
}

.open-comments-btn:hover {
  background: rgba(168, 85, 247, 0.25);
  border-color: #a855f7;
  transform: translateY(-1px);
}

.open-comments-btn:active {
  transform: translateY(0);
}

/* Если хочешь ещё круче — неоновая обводка при наведении */
.open-comments-btn:hover {
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.5);
}

/* === МОДАЛКА КОММЕНТАРИЕВ — безопасная надстройка === */
#commentsModal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--bg, #0f0f1a);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.35s ease;
}
#commentsModal.visible { transform: translateY(0); }

#commentsHeader {
  padding: 16px;
  background: rgba(168, 85, 247, 0.15);
  border-bottom: 1px solid rgba(168, 85, 247, 0.3);
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: bold;
  color: var(--accent, #a855f7);
}
#closeCommentsBtn {
  background: none; border: none; font-size: 1.8rem; cursor: pointer; color: var(--text);
}
#commentsList {
  flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px;
}
.comment-bubble {
  max-width: 80%; padding: 12px 16px; border-radius: 18px; background: var(--card, #1a1a2e);
  align-self: flex-start;
}
.comment-bubble.mine {
  align-self: flex-end;
  background: linear-gradient(135deg, #a855f7, #c084fc);
  color: white;
}
#modalCommentForm {
  padding: 16px; background: var(--panel, #16213e); border-top: 1px solid var(--border, #333);
  display: flex; gap: 10px;
}
#modalCommentForm input {
  flex: 1; padding: 14px; border-radius: 25px; border: none; background: rgba(255,255,255,0.1); color: white;
}
#modalCommentForm button {
  width: 50px; height: 50px; border-radius: 50%; background: #a855f7; border: none; color: white; font-size: 1.3rem;
}

/* МОДАЛКА КОММЕНТАРИЕВ — делаем видимой */
#commentsModal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(10px);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s ease;
}

#commentsModal.visible {
  opacity: 1;
  visibility: visible;
}

/* Заголовок модалки */
#commentsHeader {
  padding: 16px;
  background: rgba(168, 85, 247, 0.2);
  border-bottom: 1px solid rgba(168, 85, 247, 0.4);
  display: flex;
  align-items: center;
  gap: 12px;
  color: #a855f7;
  font-weight: bold;
  font-size: 1.3rem;
}

#closeCommentsBtn {
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: #ccc;
}

/* Список комментариев */
#commentsList {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.comment-bubble {
  max-width: 80%;
  padding: 12px 16px;
  border-radius: 18px;
  background: #1a1a2e;
  align-self: flex-start;
  color: white;
}

.comment-bubble.mine {
  align-self: flex-end;
  background: linear-gradient(135deg, #a855f7, #e0aaff);
}

/* Форма отправки */
#modalCommentForm {
  padding: 16px;
  background: #111;
  border-top: 1px solid #333;
  display: flex;
  gap: 10px;
}

#modalCommentForm input {
  flex: 1;
  padding: 14px;
  border-radius: 25px;
  border: none;
  background: rgba(255,255,255,0.1);
  color: white;
  font-size: 16px;
}

#modalCommentForm button {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #a855f7;
  border: none;
  color: white;
  font-size: 1.4rem;
  cursor: pointer;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.3); }
}
.vip-crown { filter: drop-shadow(0 0 10px #ff00ff); }
.unified-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 8px;
  margin-top: 15px;
}

.control-left {
  flex: 1;
}

.unified-file-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #a855f7;
  font-weight: 500;
}

.unified-file-label:hover {
  background: rgba(168, 85, 247, 0.2);
  border-color: #a855f7;
}

.file-icon {
  font-size: 1.1em;
}

.file-text {
  font-size: 0.95em;
}

.unified-publish-btn {
  background: linear-gradient(135deg, #a855f7, #c084fc);
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 120px;
}

.unified-publish-btn:hover {
  background: linear-gradient(135deg, #9333ea, #a855f7);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(168, 85, 247, 0.4);
}

.unified-publish-btn:active {
  transform: translateY(0);
}

/* Адаптивность */
@media (max-width: 480px) {
  .unified-controls {
    flex-direction: column;
    gap: 8px;
  }
  
  .control-left {
    width: 100%;
  }
  
  .unified-file-label {
    justify-content: center;
  }
  
  .unified-publish-btn {
    width: 100%;
  }
}

/* Превью изображения */
.image-preview {
  margin-top: 15px;
  text-align: center;
}

.image-preview img {
  max-width: 200px;
  max-height: 200px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal { display: none;
 position: fixed;
 inset: 0; background: rgba(0,0,0,0.9);
 z-index: 9999;
 align-items: center;
 justify-content: center;
}
.modal.visible { 
display: flex;
 }
.profile-modal { 
background: #0f0f1e;
 border: 2px solid #ff00ff;
 border-radius: 20px;
 padding: 30px;
 max-width: 500px;
 width: 90%;
 position: relative;
 box-shadow: 0 0 50px #ff00ff;
}
.profile-avatar { 
width: 120px; height: 120px;
 border-radius: 50%;
 border: 4px solid #ff00ff;
 box-shadow: 0 0 30px #ff00ff;
}
.profile-header { 
display: flex;
 align-items: center;
 gap: 20px;
 margin-bottom: 20px;
}
.profile-info h2 { 
margin: 0;
 color: #ff00ff;
 text-shadow: 0 0 10px #ff00ff;
}
.profile-bio { 
font-size: 16px;
 line-height: 1.6;
 margin: 20px 0;
 padding: 15px;
 background: rgba(255,0,255,0.1);
 border-radius: 12px;
 min-height: 80px;
}
#bioInput { 
width: 100%;
 height: 100px;
 background: #1a1a2e;
 border: 2px solid #ff00ff;
 color: white;
 border-radius: 12px;
 padding: 12px;
 margin: 10px 0;
}
#saveBioBtn { 
background: linear-gradient(135deg, #ff00ff, #00ffff);
 color: black;
 font-weight: bold;
 padding: 12px 24px;
 border: none;
 border-radius: 12px;
 cursor: pointer;
}
.profile-stats {
 display: grid;
 grid-template-columns: 1fr 1fr;
 gap: 15px;
 margin-top: 20px;
 font-size: 14px;
}
.close { 
position: absolute;
 top: 15px;
 right: 20px;
 font-size: 32px;
 cursor: pointer;
 color: #ff00ff; 
}

.footer {
  margin-top: 80px;
  padding: 40px 20px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  border-top: 2px solid #ff00ff33;
  text-align: center;
  font-size: 14px;
  color: #ccc;
}

.footer-content {
  max-width: 1000px;
  margin: 0 auto;
}

.footer-links {
  margin: 16px 0;
}

.footer-links a {
  color: #ff00ff;
  text-decoration: none;
  margin: 0 12px;
  font-weight: 500;
  transition: all 0.3s;
}

.footer-links a:hover {
  color: #fff;
  text-shadow: 0 0 10px #ff00ff;
}

.small-text {
  font-size: 12px;
  color: #888;
  margin-top: 20px;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .footer-links a {
    display: block;
    margin: 8px 0;
  }
}
