.block_btn_forum_top {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
}

.btn_add_forum {
  flex: 1;
  background: linear-gradient(135deg, var(--color-red-light), var(--color-red));
  color: var(--text-light);
  padding: 15px 25px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
}

.btn_add_forum:hover {
  background: linear-gradient(135deg, var(--color-red), var(--color-red-light));
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(215, 31, 44, 0.3);
  color: var(--text-light);
}

/* Модальные окна */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.visible {
  opacity: 1;
  visibility: visible;
}

.modal-window {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 30px;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(-20px);
  transition: all 0.3s ease;
}

.modal-overlay.visible .modal-window {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 24px;
  cursor: pointer;
  padding: 5px;
  border-radius: 50%;
  transition: all 0.3s ease;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close-btn:hover {
  background: var(--bg-card-light);
  color: var(--text-light);
}

/* Заголовок модального окна */
.modal_head {
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--bg-card-light);
}

.flex_modal_head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-light);
  font-size: 18px;
  font-weight: 600;
}

.line_title {
  display: flex;
  align-items: center;
  gap: 5px;
}

.line_purse {
  width: 30px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-red-light), var(--color-red));
  border-radius: 2px;
}

.line_purse1 {
  width: 8px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-red-light), var(--color-red));
  border-radius: 2px;
}

/* Формы */
.form-group {
  margin-bottom: 20px;
}

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

.custom-input > input {
  width: 100%;
  padding: 15px 20px 15px 50px;
  background: var(--bg-card-light);
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--text-light);
  font-size: 14px;
  transition: all 0.3s ease;
}

.custom-input > input:focus {
  outline: none;
  border-color: var(--color-red-light);
  background: var(--bg-card);
}

.custom-input > input.input_error {
  border-color: var(--color-red);
  background: rgba(215, 31, 44, 0.1);
}

.custom-input > input.input_success {
  border-color: var(--color-green);
  background: rgba(107, 183, 82, 0.1);
}

.custom-input > input::placeholder {
  color: var(--text-muted);
}

.custom-input i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 18px;
  z-index: 2;
}

.custom-input.with-title > input {
  padding-top: 25px;
  padding-bottom: 10px;
}

.custom-input.with-title > span {
  position: absolute;
  left: 50px;
  top: 15px;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  transition: all 0.3s ease;
  pointer-events: none;
}

.custom-input.with-title > input:focus + span,
.custom-input.with-title > input:not(:placeholder-shown) + span {
  top: 8px;
  font-size: 11px;
  color: var(--color-red-light);
}

.custom-input.with-title > input.input_error + span {
  color: var(--color-red);
}

.custom-input.with-title > input.input_success + span {
  color: var(--color-green);
}

/* Селект */
.custom-select {
  position: relative;
  width: 100%;
  margin-bottom: 20px;
}

.custom-select > select {
  width: 100%;
  padding: 20px 20px 8px 50px;
  background: var(--bg-card-light);
  border: 2px solid transparent;
  border-radius: 10px;
  color: var(--text-light);
  font-size: 15px;
  font-weight: 500;
  transition: all 0.3s ease;
  box-sizing: border-box;
  appearance: none;
  cursor: pointer;
}

.custom-select > select:hover {
  background: var(--bg-card);
  border-color: rgba(215, 31, 44, 0.3);
}

.custom-select > select:focus {
  outline: none;
  border-color: var(--color-red-light);
  background: var(--bg-card);
  box-shadow: 0 0 0 4px rgba(215, 31, 44, 0.1);
}

.custom-select > select.input_error {
  border-color: var(--color-red);
  background: rgba(215, 31, 44, 0.1);
}

.custom-select > select.input_success {
  border-color: var(--color-green);
  background: rgba(107, 183, 82, 0.1);
}

.custom-select.with-title > select {
  padding-top: 25px;
  padding-bottom: 10px;
}

.custom-select.with-title > span {
  position: absolute;
  top: 8px;
  left: 50px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
  transition: all 0.3s ease;
  pointer-events: none;
}

.custom-select.with-title > select:focus + span,
.custom-select.with-title > select:not([value=""]) + span {
  top: 8px;
  font-size: 11px;
  color: var(--color-red-light);
}

.custom-select.with-title > select.input_error + span {
  color: var(--color-red);
}

.custom-select.with-title > select.input_success + span {
  color: var(--color-green);
}

.custom-select > i {
  position: absolute;
  top: 50%;
  left: 20px;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 18px;
  transition: all 0.3s ease;
}

.custom-select:hover > i {
  color: var(--color-red-light);
}

/* Секции - стили удалены, так как иконка теперь позиционируется через .custom-select i */

/* Изображение форума */
.row_img_edit_forum {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 25px;
}

.img_add_forum {
  width: 120px;
  height: 120px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--bg-card-light);
  border: 2px solid var(--bg-card-light);
  transition: all 0.3s ease;
}

.img_add_forum:hover {
  border-color: var(--color-red-light);
}

/* Загрузка файлов */
.custom-file {
  position: relative;
  width: 100%;
}

.custom-file-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.custom-file-label {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  background: var(--bg-card-light);
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--text-light);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  height: 45px;
}

.custom-file-label:hover {
  background: var(--bg-card);
  border-color: var(--color-red-light);
  transform: translateY(-1px);
}

.custom-file-label::after {
  content: "";
  display: none;
}

/* Кнопки */
.btn_avatar_setting {
  background: linear-gradient(135deg, var(--color-red-light), var(--color-red));
  color: var(--text-light);
  border: none;
  padding: 12px 25px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 15px;
  display: inline-block;
  text-align: center;
  min-width: 120px;
}

.btn_avatar_setting:hover {
  background: linear-gradient(135deg, var(--color-red), var(--color-red-light));
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(215, 31, 44, 0.3);
}

.btn_upload_image {
  background: linear-gradient(135deg, var(--color-red-light), var(--color-red));
  color: var(--text-light);
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
  text-align: center;
  min-width: 100px;
}

.btn_upload_image:hover {
  background: linear-gradient(135deg, var(--color-red), var(--color-red-light));
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(215, 31, 44, 0.3);
}

.modal_btn_forum {
  background: linear-gradient(135deg, var(--color-red-light), var(--color-red));
  color: var(--text-light);
  border: none;
  padding: 12px 30px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.modal_btn_forum:hover {
  background: linear-gradient(135deg, var(--color-red), var(--color-red-light));
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(215, 31, 44, 0.3);
}

.flex_btn_modal_forum {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid var(--bg-card-light);
  text-align: right;
}

/* Стили для отображения ошибок и успешных сообщений */
.input_error {
  border-color: var(--color-red) !important;
  background: rgba(215, 31, 44, 0.1) !important;
}

.input_success {
  border-color: var(--color-green) !important;
  background: rgba(107, 183, 82, 0.1) !important;
}

.error_message,
.success_message {
  margin-top: 8px;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  display: block;
}

.error_message {
  background: rgba(215, 31, 44, 0.1);
  border: 1px solid var(--color-red);
  color: var(--color-red);
}

.success_message {
  background: rgba(107, 183, 82, 0.1);
  border: 1px solid var(--color-green);
  color: var(--color-green);
}

/* Группы доступа - исправленные стили */
.btn-group-toggle {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.btn-group-toggle input[type="checkbox"] {
  display: none;
}

.btn-group-toggle label {
  background: var(--bg-card-light);
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 8px 15px;
  color: var(--text-light);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s ease;
  user-select: none;
}

.btn-group-toggle label:hover {
  background: var(--bg-card);
  border-color: var(--color-red-light);
}

.btn-group-toggle input[type="checkbox"]:checked + label,
.btn-group-toggle label.active {
  background: var(--color-red);
  border-color: var(--color-red);
  color: var(--text-light);
  box-shadow: 0 4px 15px rgba(215, 31, 44, 0.3);
}

/* Результаты */
#add_forum_result,
#img_result,
#img_result * {
  margin-top: 15px;
  padding: 15px;
  border-radius: 8px;
  font-size: 14px;
  display: block;
}

#add_forum_result.success,
#img_result .alert-success,
.alert-success {
  background: rgba(107, 183, 82, 0.1);
  border: 1px solid var(--color-green);
  color: var(--color-green);
}

#add_forum_result.error,
#img_result .alert-danger,
.alert-danger {
  background: rgba(215, 31, 44, 0.1);
  border: 1px solid var(--color-red);
  color: var(--color-red);
}

#add_forum_result.info,
#img_result .alert-info,
.alert-info {
  background: rgba(0, 123, 255, 0.1);
  border: 1px solid #007bff;
  color: #007bff;
}

/* Стили для результатов загрузки изображений */
.mt-1 {
  margin-top: 10px;
}

#img_result .alert,
.alert {
  padding: 12px 15px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 10px;
  border: 1px solid transparent;
}

#img_result .alert-success,
.alert-success {
  background: rgba(107, 183, 82, 0.1);
  border-color: var(--color-green);
  color: var(--color-green);
}

#img_result .alert-danger,
.alert-danger {
  background: rgba(215, 31, 44, 0.1);
  border-color: var(--color-red);
  color: var(--color-red);
}

#img_result .alert-info,
.alert-info {
  background: rgba(0, 123, 255, 0.1);
  border-color: #007bff;
  color: #007bff;
}

/* Стили для forum_section.tpl */
.block {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 25px;
  border: 1px solid var(--bg-card-light);
}

/* Заголовки блоков */
.flex_head_block_forum {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  align-items: center;
  justify-content: space-between;
}

.flex_head_l {
  display: flex;
  gap: 15px;
  align-items: center;
}

.flex_head_block_forum i {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  height: 40px;
  color: var(--text-light);
  background: linear-gradient(135deg, var(--color-red-light), var(--color-red));
  width: 40px;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.flex_head_block_forum i:hover {
  transform: scale(1.05);
}

.flex_top_usr {
  display: flex;
  flex-direction: column;
  line-height: 1.4;
}

.name_top_usr {
  color: var(--text-light);
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 2px;
}

.desp_top_usr {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 12px;
}

/* Кнопки управления форумом */
.forum_btn_flex_theme {
  display: flex;
  gap: 8px;
  margin-top: 15px;
  margin-bottom: 25px;
  align-items: center;
}

.btn_forum_setting_mini {
  border: none;
  width: 45px;
  height: 45px;
  transition: all 0.3s ease;
  background: var(--bg-card-light);
  color: var(--text-muted);
  border-radius: 8px;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.btn_forum_setting_mini:hover {
  background: var(--bg-card);
  color: var(--text-light);
  transform: translateY(-2px);
}

.btn_forum_setting_min {
  border: none;
  width: 45px;
  height: 45px;
  background: linear-gradient(135deg, var(--color-red-light), var(--color-red));
  transition: all 0.3s ease;
  color: var(--text-light);
  border-radius: 8px;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.btn_forum_setting_min:hover {
  background: linear-gradient(135deg, var(--color-red), var(--color-red-light));
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(215, 31, 44, 0.3);
}

.btn_forum_setting_min.disabled {
  background: var(--bg-card-light);
  color: var(--text-muted);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn_forum_setting_min.disabled:hover {
  background: var(--bg-card-light);
  transform: none;
  box-shadow: none;
}

.btn_forum_setting_delete {
  border: none;
  width: 45px;
  height: 45px;
  transition: all 0.3s ease;
  background: linear-gradient(135deg, #dc3545, #c82333);
  color: var(--text-light);
  border-radius: 8px;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.btn_forum_setting_delete:hover {
  background: linear-gradient(135deg, #c82333, #dc3545);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(220, 53, 69, 0.3);
}

/* Стили для forum.tpl */
.block_forum_item {
  background: var(--bg-card);
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--bg-card-light);
  transition: all 0.3s ease;
}

.block_forum_item:hover {
  border-color: var(--color-red-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Левая часть форума */
.flex_forum_info_left {
  display: flex;
  gap: 18px;
  align-items: center;
  flex: 1;
}

.forum_img {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--bg-card-light);
  border: 2px solid var(--bg-card-light);
  transition: all 0.3s ease;
}

.forum_img:hover {
  border-color: var(--color-red-light);
}

.flex_info_forum {
  display: flex;
  flex-direction: column;
  line-height: 1.4;
  justify-content: center;
}

.name_forum {
  font-size: 16px;
  color: var(--text-light);
  font-weight: 600;
  margin-bottom: 4px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.name_forum:hover {
  color: var(--color-red-light);
}

.desp_forum {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 13px;
}

/* Правая часть форума */
.flex_forum_info_right {
  display: flex;
  border-radius: 12px;
  gap: 15px;
  align-items: center;
}

/* Пустой форум */
.forum_empty {
  border-radius: 8px;
  display: flex;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-card-light);
  font-size: 12px;
  padding: 12px 20px;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--bg-card-light);
}

/* Информация о пользователе */
.user_info_forum {
  display: flex;
  gap: 10px;
  transition: all 0.3s ease;
  border-radius: 25px;
  padding: 8px 12px;
  background: var(--bg-card-light);
  align-items: center;
  text-decoration: none;
}

.user_info_forum:hover {
  background: var(--bg-card);
  transform: translateY(-2px);
}

.forum_name_user {
  font-size: 16px;
  color: var(--color-red-light);
}

.forum_img_user {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--bg-card-light);
  transition: all 0.3s ease;
}

.user_info_forum:hover .forum_img_user {
  border-color: var(--color-red-light);
}

/* Информация о теме */
.theme_info_forum {
  width: 160px;
}

.flex_forum_user {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.forum_name_theme {
  color: var(--text-light);
  text-overflow: ellipsis;
  width: 100%;
  display: block;
  overflow: hidden;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.forum_name_theme:hover {
  color: var(--color-red-light);
}

.forum_date {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 11px;
  margin-top: 2px;
}

/* Стили для add_topic.tpl */
/* Основной контейнер */
.block_solution {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 25px;
  border: 1px solid var(--bg-card-light);
}

/* Заголовок блока */
.heading_block {
  margin-bottom: 30px;
  background: var(--bg-card);
  border-radius: 12px;
  padding: 25px;
  border: 1px solid var(--bg-card-light);
}

.double_heading {
  display: flex;
  align-items: center;
  gap: 20px;
}

.double_heading i {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--color-red-light), var(--color-red));
  color: var(--text-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 4px 15px rgba(215, 31, 44, 0.3);
  transition: all 0.3s ease;
}

.double_heading i:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(215, 31, 44, 0.4);
}

.heading_cap {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.heading {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-light);
  margin: 0;
}

.second_heading {
  font-size: 16px;
  color: var(--text-muted);
  font-weight: 500;
  margin: 0;
}

/* Формы */
.form-group {
  margin-bottom: 30px;
  /* padding: 20px; */
  /* background: var(--bg-card-light); */
  border-radius: 10px;
  border: 1px solid transparent;
  transition: all 0.3s ease;
}

/* Кастомные инпуты */
.custom-input {
  position: relative;
  width: 100%;
  display: block;
  margin-bottom: 20px;
}

.custom-input.with-title {
  margin-top: 25px;
}

.custom-input > input {
  width: 100%;
  padding: 20px 20px 8px 50px;
  background: var(--bg-card-light);
  border: 2px solid transparent;
  border-radius: 10px;
  color: var(--text-light);
  font-size: 15px;
  font-weight: 500;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.custom-input > input:hover {
  background: var(--bg-card);
  border-color: rgba(215, 31, 44, 0.3);
}

.custom-input > input:focus {
  outline: none;
  border-color: var(--color-red-light);
  background: var(--bg-card);
  box-shadow: 0 0 0 4px rgba(215, 31, 44, 0.1);
}

.custom-input > span {
  position: absolute;
  top: 8px;
  left: 50px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
  transition: all 0.3s ease;
  pointer-events: none;
}

.custom-input > input:focus + span,
.custom-input > input:not([value=""]) + span {
  top: 8px;
  font-size: 11px;
  color: var(--color-red-light);
}

.custom-input > i {
  position: absolute;
  top: 50%;
  left: 20px;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 18px;
  transition: all 0.3s ease;
}

.custom-input:hover > i {
  color: var(--color-red-light);
}

.custom-input > input::placeholder {
  color: transparent;
}

.custom-input > span {
  position: absolute;
  left: 50px;
  top: 8px;
  font-size: 12px;
  color: var(--color-red-light);
  font-weight: 600;
  transition: all 0.3s ease;
  pointer-events: none;
  z-index: 2;
  /* background: var(--bg-card-light); */
  padding: 0 5px;
}

.custom-input i {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 18px;
  z-index: 2;
  transition: all 0.3s ease;
}

.custom-input:hover i {
  color: var(--color-red-light);
}

/* Заголовок textarea */
.textarea-header {
  margin-bottom: 15px;
}

.textarea-title {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.title-text {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-light);
}

.title-description {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.forum-textarea {
  width: 100%;
  padding: 20px;
  background: var(--bg-card-light);
  border: 2px solid transparent;
  border-radius: 10px;
  color: var(--text-light);
  font-size: 15px;
  font-weight: 500;
  transition: all 0.3s ease;
  resize: vertical;
  min-height: 250px;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
}

.forum-textarea:hover {
  background: var(--bg-card);
  border-color: rgba(215, 31, 44, 0.3);
  transform: translateY(-1px);
}

.forum-textarea:focus {
  outline: none;
  border-color: var(--color-red-light);
  background: var(--bg-card);
  box-shadow: 0 0 0 4px rgba(215, 31, 44, 0.1);
  transform: translateY(-1px);
}

.forum-textarea::placeholder {
  color: var(--text-muted);
  font-weight: 400;
  font-style: italic;
}

.forum-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 30px;
  padding-top: 25px;
  border-top: 1px solid var(--bg-card-light);
}

.create-topic-btn {
  background: linear-gradient(135deg, var(--color-red-light), var(--color-red));
  color: var(--text-light);
  border: none;
  padding: 18px 35px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 180px;
  box-shadow: 0 4px 15px rgba(215, 31, 44, 0.2);
  position: relative;
  overflow: hidden;
}

.create-topic-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.create-topic-btn:hover::before {
  left: 100%;
}

.create-topic-btn:hover {
  background: linear-gradient(135deg, var(--color-red), var(--color-red-light));
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(215, 31, 44, 0.4);
}

.create-topic-btn:active {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(215, 31, 44, 0.3);
}

.create-topic-btn i {
  font-size: 18px;
  transition: transform 0.3s ease;
}

.create-topic-btn:hover i {
  transform: scale(1.1);
}

.smile-btn {
  width: 50px;
  height: 50px;
  background: var(--bg-card-light);
  border: 2px solid transparent;
  border-radius: 10px;
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.smile-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--color-red-light), var(--color-red));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.smile-btn i {
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}

.smile-btn:hover {
  background: var(--bg-card);
  border-color: var(--color-red-light);
  color: var(--text-light);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(215, 31, 44, 0.3);
}

.smile-btn:hover::before {
  opacity: 1;
}

.smile-btn:hover i {
  transform: scale(1.1);
}

.smile-btn:active {
  transform: translateY(-1px) scale(1.02);
}

/* Результаты */
#topic_result {
  margin-top: 20px;
}

#topic_result .alert {
  padding: 15px 20px;
  border-radius: 8px;
  margin-bottom: 15px;
  border: 1px solid transparent;
  font-weight: 500;
}

#topic_result .alert-success {
  background-color: rgba(107, 183, 82, 0.1);
  border-color: var(--color-green);
  color: var(--color-green);
}

#topic_result .alert-danger {
  background-color: rgba(215, 31, 44, 0.1);
  border-color: var(--color-red);
  color: var(--color-red);
}

#topic_result .alert-info {
  background-color: rgba(0, 123, 255, 0.1);
  border-color: var(--color-blue);
  color: var(--color-blue);
}

/* Утилитарные классы */
.mt-1 {
  margin-top: 10px;
}

.mt-2 {
  margin-top: 20px;
}

.mt-3 {
  margin-top: 30px;
}

.mb-0 {
  margin-bottom: 0;
}



/* Стили для select с title */
.custom-select {
  position: relative;
  width: 100%;
  display: block;
  margin-bottom: 20px;
}

.custom-select > select {
  width: 100%;
  padding: 20px 20px 8px 50px;
  background: var(--bg-card-light);
  border: 2px solid transparent;
  border-radius: 10px;
  color: var(--text-light);
  font-size: 15px;
  font-weight: 500;
  transition: all 0.3s ease;
  box-sizing: border-box;
  appearance: none;
  cursor: pointer;
}

.custom-select > select:hover {
  background: var(--bg-card);
  border-color: rgba(215, 31, 44, 0.3);
}

.custom-select > select:focus {
  outline: none;
  border-color: var(--color-red-light);
  background: var(--bg-card);
  box-shadow: 0 0 0 4px rgba(215, 31, 44, 0.1);
}

.custom-select > span {
  position: absolute;
  top: 8px;
  left: 50px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
  transition: all 0.3s ease;
  pointer-events: none;
}

.custom-select > i {
  position: absolute;
  top: 50%;
  left: 20px;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 18px;
  transition: all 0.3s ease;
}

.custom-select:hover > i {
  color: var(--color-red-light);
}

/* Кнопка изменения статуса */
.status-change-btn {
  background: linear-gradient(135deg, #28a745, #20c997);
  color: var(--text-light);
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
  margin-top: 15px;
}

.status-change-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.status-change-btn:active {
  transform: translateY(0);
}

.status-change-btn i {
  font-size: 16px;
}

/* Кнопка редактирования темы */
.edit-topic-btn {
  background: linear-gradient(135deg, var(--color-red-light), var(--color-red));
  color: var(--text-light);
  border: none;
  padding: 15px 30px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 15px rgba(215, 31, 44, 0.3);
  position: relative;
  overflow: hidden;
}

.edit-topic-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.edit-topic-btn:hover::before {
  left: 100%;
}

.edit-topic-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(215, 31, 44, 0.4);
}

.edit-topic-btn:active {
  transform: translateY(0);
}

.edit-topic-btn i {
  font-size: 18px;
  transition: transform 0.3s ease;
}

.edit-topic-btn:hover i {
  transform: scale(1.1);
}

/* Стили для группы пользователя */
.group_user_forum[data-color] {
  color: inherit;
}

/* Стили для заголовка темы и кнопок администрирования */
.topic_header_flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.topic_admin_actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.topic_delete_btn,
.topic_edit_btn {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 16px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.topic_delete_btn {
  background: linear-gradient(135deg, #dc3545, #c82333);
  color: var(--text-light);
  box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.topic_delete_btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
  color: var(--text-light);
}

.topic_delete_btn:active {
  transform: translateY(0);
}

.topic_edit_btn {
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: var(--text-light);
  box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.topic_edit_btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.4);
  color: var(--text-light);
  text-decoration: none;
}

.topic_edit_btn:active {
  transform: translateY(0);
}

/* Анимация иконок */
.topic_delete_btn i,
.topic_edit_btn i {
  transition: transform 0.3s ease;
}

.topic_delete_btn:hover i,
.topic_edit_btn:hover i {
  transform: scale(1.1);
}

/* Эффект волны при клике */
.topic_delete_btn::before,
.topic_edit_btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease;
}

.topic_delete_btn:active::before,
.topic_edit_btn:active::before {
  width: 40px;
  height: 40px;
}
.topic_header_flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.topic_admin_actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.topic_delete_btn,
.topic_edit_btn {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 16px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.topic_delete_btn {
  background: linear-gradient(135deg, #dc3545, #c82333);
  color: var(--text-light);
  box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.topic_delete_btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
  color: var(--text-light);
}

.topic_delete_btn:active {
  transform: translateY(0);
}

.topic_edit_btn {
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: var(--text-light);
  box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.topic_edit_btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.4);
  color: var(--text-light);
  text-decoration: none;
}

.topic_edit_btn:active {
  transform: translateY(0);
}

/* Анимация иконок */
.topic_delete_btn i,
.topic_edit_btn i {
  transition: transform 0.3s ease;
}

.topic_delete_btn:hover i,
.topic_edit_btn:hover i {
  transform: scale(1.1);
}

/* Эффект волны при клике */
.topic_delete_btn::before,
.topic_edit_btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease;
}

.topic_delete_btn:active::before,
.topic_edit_btn:active::before {
  width: 40px;
  height: 40px;
}



/* Загрузка аватара */
.avatar_edit {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 25px;
}

.avatar_edit_result {
  width: 100px;
  height: 100px;
  border-radius: 12px;
  object-fit: cover;
  border: 3px solid var(--bg-card-light);
  transition: all 0.3s ease;
}

.avatar_edit_result:hover {
  border-color: var(--color-red-light);
  transform: scale(1.05);
}

.flex_user_avatar_edit {
  flex: 1;
}

.custom-file {
  margin-bottom: 15px;
}

.custom-file-input {
  display: none;
}

.custom-file-label {
  display: block;
  padding: 12px 20px;
  background: var(--bg-card-light);
  border: 2px dashed var(--text-muted);
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.custom-file-label:hover {
  border-color: var(--color-red-light);
  background: var(--bg-card);
  color: var(--text-light);
}

.load_image_edit {
  background: linear-gradient(135deg, var(--color-red-light), var(--color-red));
  color: var(--text-light);
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 8px rgba(215, 31, 44, 0.3);
}

.load_image_edit:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(215, 31, 44, 0.4);
}

.load_image_edit:active {
  transform: translateY(0);
}

/* Результаты операций */
#login_result,
#password_result {
  margin-top: 10px;
  padding: 10px 15px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
}

#login_result.success,
#password_result.success {
  background: rgba(40, 167, 69, 0.1);
  color: #28a745;
  border: 1px solid rgba(40, 167, 69, 0.2);
}

#login_result.error,
#password_result.error {
  background: rgba(220, 53, 69, 0.1);
  color: #dc3545;
  border: 1px solid rgba(220, 53, 69, 0.2);
}
.block_edit_user {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 25px;
  border: 1px solid var(--bg-card-light);
}

/* Кнопки администрирования */
.admin-action-btn {
  background: linear-gradient(135deg, var(--color-red-light), var(--color-red));
  color: var(--text-light);
  border: none;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(215, 31, 44, 0.3);
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  min-height: 48px;
  text-decoration: none;
  outline: none;
  user-select: none;
}

.admin-action-btn.delete-btn {
  background: linear-gradient(135deg, #dc3545, #c82333);
  box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
  border: 1px solid rgba(220, 53, 69, 0.2);
}

.admin-action-btn.edit-btn {
  background: linear-gradient(135deg, #007bff, #0056b3);
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
  border: 1px solid rgba(0, 123, 255, 0.2);
}

.admin-action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(215, 31, 44, 0.4);
  filter: brightness(1.1);
}

.admin-action-btn.delete-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(220, 53, 69, 0.4);
  filter: brightness(1.1);
}

.admin-action-btn.edit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4);
  filter: brightness(1.1);
}

.admin-action-btn:active {
  transform: translateY(0);
}

.admin-action-btn:focus {
  outline: 2px solid var(--color-red);
  outline-offset: 2px;
}

.admin-action-btn:focus:not(:focus-visible) {
  outline: none;
}

.admin-action-btn:disabled,
.admin-action-btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.admin-action-btn:disabled:hover,
.admin-action-btn[disabled]:hover {
  transform: none;
  box-shadow: none;
  filter: none;
}

/* Группировка кнопок */
.admin-action-btn + .admin-action-btn {
  margin-left: 15px;
}

/* Кнопки в строку */
.admin-actions-row {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  align-items: center;
}

.admin-actions-row .admin-action-btn {
  margin-bottom: 0;
  flex-shrink: 0;
}

/* Специальные стили для кнопок в формах */
.form-group .admin-action-btn {
  margin-bottom: 15px;
  width: 100%;
  justify-content: center;
}

.form-group .admin-action-btn:last-child {
  margin-bottom: 0;
}

/* Анимация появления кнопок */
.admin-action-btn {
  animation: fadeInUp 0.5s ease forwards;
}

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

.admin-action-btn i {
  font-size: 14px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
}

.admin-action-btn:hover i {
  transform: scale(1.1);
  color: var(--text-light);
}

.admin-action-btn:active i {
  transform: scale(0.95);
}

/* Эффект волны при клике */
.admin-action-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease;
  pointer-events: none;
}

.admin-action-btn:active::before {
  width: 50px;
  height: 50px;
  opacity: 0;
}

/* Информационные блоки */
.info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--bg-card-light);
  transition: all 0.3s ease;
}

.info-item:hover {
  background: rgba(215, 31, 44, 0.05);
  padding-left: 15px;
  padding-right: 15px;
  margin-left: -15px;
  margin-right: -15px;
  border-radius: 8px;
}

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

.info-label {
  font-weight: 600;
  color: var(--text-muted);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.info-label::before {
  content: '';
  width: 4px;
  height: 4px;
  background: var(--color-red-light);
  border-radius: 50%;
  opacity: 0.7;
}

.info-value {
  font-weight: 500;
  color: var(--text-light);
  font-size: 14px;
  text-align: right;
  max-width: 60%;
  padding: 8px 12px;
  background: var(--bg-card-light);
  border-radius: 6px;
  border: 1px solid transparent;
  transition: all 0.3s ease;
}

.info-value:hover {
  border-color: var(--color-red-light);
  background: var(--bg-card);
}

.status-success {
  color: #28a745;
  font-weight: 600;
}

.status-danger {
  color: #dc3545;
  font-weight: 600;
}

.user-link {
  color: var(--color-red-light);
  text-decoration: none;
  transition: color 0.3s ease;
}

.user-link:hover {
  color: var(--color-red);
  text-decoration: underline;
}

/* Мульти-аккаунты */
.multi-accounts-block {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 25px;
  border: 1px solid var(--bg-card-light);
}

.no-accounts {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  padding: 40px 20px;
  color: var(--text-muted);
}

.no-accounts i {
  font-size: 48px;
  opacity: 0.5;
}

.no-accounts span {
  font-size: 16px;
  font-weight: 500;
}

.accounts-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.account-item {
  background: var(--bg-card-light);
  border-radius: 8px;
  padding: 20px;
  border: 1px solid var(--bg-card-light);
  transition: all 0.3s ease;
}

.account-item:hover {
  border-color: var(--color-red-light);
  box-shadow: 0 4px 12px rgba(215, 31, 44, 0.1);
}

.account-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.account-name {
  font-weight: 600;
  color: var(--text-light);
}

.account-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.action-text {
  font-size: 12px;
  color: var(--text-muted);
}

.action-btn {
  background: none;
  border: none;
  color: var(--color-red-light);
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.action-btn:hover {
  background: rgba(215, 31, 44, 0.1);
  color: var(--color-red);
}

.separator {
  color: var(--text-muted);
  font-size: 12px;
}

.account-match {
  display: flex;
  align-items: center;
  gap: 10px;
}

.match-type {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-light);
}

.match-type.ip {
  background: rgba(40, 167, 69, 0.2);
  color: #28a745;
}

.match-type.os {
  background: rgba(255, 193, 7, 0.2);
  color: #ffc107;
}

.match-type.full {
  background: rgba(220, 53, 69, 0.2);
  color: #dc3545;
}

.match-label {
  font-size: 12px;
  color: var(--text-muted);
}

/* Транзакции */
.transactions-block {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 25px;
  border: 1px solid var(--bg-card-light);
}

.transactions-table {
  overflow-x: auto;
}

.transactions-table table {
  width: 100%;
  border-collapse: collapse;
}

.transactions-table th {
  background: var(--bg-card-light);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 14px;
  padding: 15px;
  text-align: left;
  border-bottom: 2px solid var(--bg-card-light);
}

.transactions-table td {
  padding: 15px;
  border-bottom: 1px solid var(--bg-card-light);
  color: var(--text-light);
}

.transactions-table tr:hover {
  background: var(--bg-card-light);
}

.loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  padding: 40px 20px;
  color: var(--text-muted);
}

.loader i {
  font-size: 32px;
  animation: spin 1s linear infinite;
}

.loader span {
  font-size: 14px;
  font-weight: 500;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Стили для кнопок действий в мульти-аккаунтах */
.action-btn {
  background: none;
  border: none;
  color: var(--color-red-light);
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.action-btn:hover {
  background: rgba(215, 31, 44, 0.1);
  color: var(--color-red);
  transform: translateY(-1px);
}

.action-btn.link-btn {
  color: var(--color-red-light);
}

.action-btn.profile-btn {
  color: var(--color-red);
}

.separator {
  color: var(--text-muted);
  font-size: 12px;
  margin: 0 4px;
}

/* Стили для типов совпадений */
.match-type {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-light);
  display: inline-block;
}

.match-type.ip {
  background: rgba(40, 167, 69, 0.2);
  color: #28a745;
  border: 1px solid rgba(40, 167, 69, 0.3);
}

.match-type.os {
  background: rgba(255, 193, 7, 0.2);
  color: #ffc107;
  border: 1px solid rgba(255, 193, 7, 0.3);
}

.match-type.full {
  background: rgba(220, 53, 69, 0.2);
  color: #dc3545;
  border: 1px solid rgba(220, 53, 69, 0.3);
}

.match-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-left: 8px;
}

/* Стили для таблицы транзакций */
.table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border-radius: 8px;
  overflow: hidden;
}

.table th {
  background: var(--bg-card-light);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 14px;
  padding: 15px;
  text-align: left;
  border-bottom: 2px solid var(--bg-card-light);
}

.table td {
  padding: 15px;
  border-bottom: 1px solid var(--bg-card-light);
  color: var(--text-light);
}

.table tr:hover {
  background: var(--bg-card-light);
}

.table tbody tr:last-child td {
  border-bottom: none;
}

/* Стили для загрузчика */
.loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  padding: 40px 20px;
  color: var(--text-muted);
}

.loader i {
  font-size: 32px;
  animation: spin 1s linear infinite;
}

.loader span {
  font-size: 14px;
  font-weight: 500;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Дополнительные стили для таблиц */
.table-responsive {
  border-radius: 8px;
  overflow: hidden;
}

.table-bordered {
  border: 1px solid var(--bg-card-light);
}

.table-bordered th,
.table-bordered td {
  border: 1px solid var(--bg-card-light);
}

/* Стили для статусов в таблице */
.status-success,
.status-danger,
.status-warning {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}

.status-success {
  background: rgba(40, 167, 69, 0.1);
  color: #28a745;
  border: 1px solid rgba(40, 167, 69, 0.2);
}

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

.status-warning {
  background: rgba(255, 193, 7, 0.1);
  color: #ffc107;
  border: 1px solid rgba(255, 193, 7, 0.2);
}

/* Утилитарные классы */
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }

.mt-1 { margin-top: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 3rem !important; }

.mb-0 { margin-bottom: 0 !important; }
.mt-0 { margin-top: 0 !important; }

/* Bootstrap grid классы */
.col-3 {
  flex: 0 0 25%;
  max-width: 25%;
}

.col-lg-6 {
  flex: 0 0 50%;
  max-width: 50%;
}

.col-lg-12 {
  flex: 0 0 100%;
  max-width: 100%;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;
}

.row > * {
  padding-right: 15px;
  padding-left: 15px;
}

/* Стили для popover смайликов */
.popover {
  border-radius: 10px !important;
  border: 1px solid var(--bg-card-light) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2) !important;
  background: var(--bg-card) !important;
}

/* Стили для блока информации о теме */
.topic-info-block {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 20px;
  border: 1px solid var(--bg-card-light);
  margin-bottom: 20px;
}

.topic-header {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.topic-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.title-text {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-light);
}

.topic-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: center;
}

.topic-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.topic-status.fixed {
  background: linear-gradient(135deg, #ffd700, #ffed4e);
  color: #333;
}

.topic-status.closed {
  background: linear-gradient(135deg, #dc3545, #c82333);
  color: var(--text-light);
}

.topic-stats {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: var(--bg-card-light);
  border-radius: 6px;
  font-size: 11px;
  color: var(--text-muted);
  transition: all 0.3s ease;
}

.topic-stats:hover {
  background: var(--bg-card);
  transform: translateY(-1px);
}

.topic-stats i {
  font-size: 12px;
  color: var(--color-red);
}

/* Кнопка редактирования сообщения */
.edit-message-btn {
  background: linear-gradient(135deg, var(--color-red-light), var(--color-red));
  color: var(--text-light);
  border: none;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(215, 31, 44, 0.3);
  text-decoration: none;
  outline: none;
  user-select: none;
  min-height: 48px;
}

.edit-message-btn:hover {
  background: linear-gradient(135deg, var(--color-red), var(--color-red-light));
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(215, 31, 44, 0.4);
  color: var(--text-light);
  text-decoration: none;
}

.edit-message-btn:active {
  transform: translateY(0);
}

.edit-message-btn:focus {
  outline: 2px solid var(--color-red);
  outline-offset: 2px;
}

.edit-message-btn:focus:not(:focus-visible) {
  outline: none;
}

.edit-message-btn i {
  font-size: 14px;
  transition: transform 0.3s ease;
}

.edit-message-btn:hover i {
  transform: scale(1.1);
}





.user-info-section .heading_block,
.transactions-section .heading_block {
  margin-bottom: 20px;
}

/* Стили для аватара пользователя */
.avatar_edit {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 25px;
  background: var(--bg-card);
  border-radius: 12px;
  padding: 20px;
  border: 1px solid var(--bg-card-light);
}

.avatar_edit_result {
  width: 100px;
  height: 100px;
  border-radius: 12px;
  object-fit: cover;
  border: 3px solid var(--bg-card-light);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.avatar_edit_result:hover {
  border-color: var(--color-red-light);
  transform: scale(1.05);
}

.flex_user_avatar_edit {
  flex: 1;
}

.custom-file {
  margin-bottom: 15px;
}

.custom-file-input {
  display: none;
}

.custom-file-label {
  display: block;
  padding: 12px 20px;
  background: var(--bg-card-light);
  border: 2px dashed var(--text-muted);
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.custom-file-label:hover {
  border-color: var(--color-red-light);
  background: var(--bg-card);
  color: var(--text-light);
}

.load_image_edit {
  background: linear-gradient(135deg, var(--color-red-light), var(--color-red));
  color: var(--text-light);
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 8px rgba(215, 31, 44, 0.3);
}

.load_image_edit:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(215, 31, 44, 0.4);
}

.load_image_edit:active {
  transform: translateY(0);
}

.popover-body {
  background: var(--bg-card) !important;
  color: var(--text-light) !important;
  border-radius: 8px !important;
}

.popover-header {
  background: var(--bg-card-light) !important;
  color: var(--text-muted) !important;
  border-bottom: 1px solid var(--bg-card-light) !important;
}

/* Стили для смайликов */
.g_smile {
  border-radius: 4px;
  transition: transform 0.3s ease;
}

.g_smile:hover {
  transform: scale(1.1);
}

.popover-body {
  background: var(--bg-card) !important;
  color: var(--text-light) !important;
  border-radius: 10px !important;
  padding: 15px !important;
}

/* Стили для forum_settings.tpl */
.new_table_forum {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 15px;
  border: 1px solid var(--bg-card-light);
  transition: all 0.3s ease;
}

.new_table_forum:hover {
  border-color: var(--color-red-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.new_tr_forum_flex {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-bottom: 20px;
}

.new_tr_forum {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
}

.img_forum_setting {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--bg-card-light);
  border: 2px solid var(--bg-card-light);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.img_forum_setting:hover {
  border-color: var(--color-red-light);
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.new_tr_forum_btn {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 0;
}

/* Адаптивность */
@media (max-width: 768px) {
  .block_btn_forum_top {
    flex-direction: column;
    gap: 15px;
  }
  
  /* Адаптивность для add_topic.tpl */
  .forum-actions {
    flex-direction: column;
    gap: 15px;
    align-items: stretch;
  }
  
  .create-topic-btn {
    width: 100%;
    justify-content: center;
  }
  
  .smile-btn {
    align-self: center;
  }
  
  .forum-textarea {
    min-height: 150px;
    padding: 15px;
  }
  
  .double_heading {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
  
  .heading {
    font-size: 20px;
  }
  
  .second_heading {
    font-size: 14px;
  }
  
  .block_solution {
    padding: 20px;
  }
  
  .modal-window {
    width: 95%;
    padding: 20px;
  }
  
  .row_img_edit_forum {
    flex-direction: column;
    align-items: center;
  }
  
  .img_add_forum {
    width: 100px;
    height: 100px;
  }
  
  .btn-group-toggle {
    flex-direction: column;
  }
  
  .forum_btn_flex_theme {
    flex-wrap: wrap;
    gap: 6px;
  }
  
  /* Адаптивность для новых элементов */
  .custom-select > select {
    padding: 15px 15px 6px 40px;
    font-size: 14px;
  }
  
  .custom-select > span {
    left: 40px;
    font-size: 11px;
  }
  
  .custom-select > i {
    left: 15px;
    font-size: 16px;
  }
  
  .status-change-btn {
    padding: 10px 20px;
    font-size: 13px;
  }
  
  .edit-topic-btn {
    padding: 12px 24px;
    font-size: 14px;
  }
  
  /* Адаптивность для кнопок темы */
  .topic_header_flex {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }
  
  .topic_admin_actions {
    align-self: flex-end;
    gap: 6px;
  }
  
  .topic_delete_btn,
  .topic_edit_btn {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }
  
  .btn_forum_setting_mini,
  .btn_forum_setting_min,
  .btn_forum_setting_delete {
    width: 40px;
    height: 40px;
    font-size: 14px;
  }
  
  .block_forum_item {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }
  
  .flex_forum_info_right {
    width: 100%;
    justify-content: space-between;
  }
  
  .theme_info_forum {
    width: auto;
    flex: 1;
  }
  
  .new_tr_forum_flex {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }
  
  .new_tr_forum {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }
  
  .new_tr_forum_btn {
    justify-content: center;
    width: 100%;
  }
  
  /* Адаптивность для страницы редактирования пользователя */
  .block_edit_user {
    padding: 20px;
  }
  
  .admin-action-btn {
    padding: 8px 16px;
    font-size: 13px;
    min-height: 40px;
    margin-bottom: 15px;
  }
  
  .admin-action-btn.delete-btn {
    background: linear-gradient(135deg, #dc3545, #c82333);
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
  }
  
  .admin-action-btn.edit-btn {
    background: linear-gradient(135deg, #007bff, #0056b3);
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
  }
  
  .admin-action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(215, 31, 44, 0.4);
  }
  
  .admin-action-btn.delete-btn:hover {
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
  }
  
  .admin-action-btn.edit-btn:hover {
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.4);
  }
  
  .admin-action-btn i {
    font-size: 12px;
    width: 14px;
    height: 14px;
  }
  
  /* Адаптивность для группировки кнопок */
  .admin-action-btn + .admin-action-btn {
    margin-left: 10px;
  }
  
  .admin-actions-row {
    gap: 10px;
  }
  
  .admin-actions-row .admin-action-btn {
    margin-bottom: 10px;
  }
  
  /* Адаптивность для кнопок в формах */
  .form-group .admin-action-btn {
    margin-bottom: 10px;
    padding: 10px 20px;
    font-size: 12px;
  }
  
  /* Адаптивность для анимации */
  .admin-action-btn {
    animation: fadeInUp 0.3s ease forwards;
  }
  
  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(15px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .info-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .info-value {
    max-width: 100%;
    text-align: left;
  }
  
  .account-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .account-actions {
    width: 100%;
    justify-content: flex-start;
  }
  
  .transactions-table th,
  .transactions-table td {
    padding: 10px;
    font-size: 13px;
  }
  
  /* Адаптивность для загрузки аватара */
  .avatar_edit {
    flex-direction: column;
    gap: 15px;
    align-items: center;
  }
  
  .avatar_edit_result {
    width: 80px;
    height: 80px;
  }
  
  .custom-file-label {
    padding: 10px 15px;
    font-size: 13px;
  }
  
  .load_image_edit {
    padding: 10px 20px;
    font-size: 13px;
  }
  
  /* Адаптивность для заголовков и форм */
  .heading_block {
    padding: 20px;
  }
  
  .double_heading {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
  
  .double_heading i {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }
  
  .heading {
    font-size: 20px;
  }
  
  .second_heading {
    font-size: 14px;
  }
  
  .form-group {
    padding: 15px;
    margin-bottom: 20px;
  }
  
  .info-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    text-align: left;
  }
  
  .info-value {
    max-width: 100%;
    text-align: left;
  }
  
  /* Адаптивность для новых элементов */
  .action-btn {
    padding: 6px 10px;
    font-size: 11px;
  }
  
  .match-type {
    font-size: 10px;
    padding: 3px 6px;
  }
  
  .table th,
  .table td {
    padding: 10px;
    font-size: 13px;
  }
  
  .col-3 {
    flex: 0 0 100%;
    max-width: 100%;
  }
  
  .col-lg-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }
  
  /* Адаптивность для блока информации о теме */
  .topic-info-block {
    padding: 15px;
    margin-bottom: 15px;
  }
  
  .topic-header {
    gap: 12px;
  }
  
  .topic-title .title-text {
    font-size: 16px;
  }
  
  .topic-meta {
    gap: 10px;
  }
  
  .topic-status {
    padding: 6px 10px;
    font-size: 11px;
  }
  
  .topic-stats {
    padding: 5px 8px;
    font-size: 10px;
  }
  
  .topic-stats i {
    font-size: 11px;
  }
  
  /* Адаптивность для кнопки редактирования сообщения */
  .edit-message-btn {
    padding: 10px 20px;
    font-size: 13px;
    min-height: 42px;
  }
  
  .edit-message-btn i {
    font-size: 13px;
  }
  
  /* Адаптивность для секций пользователя */
  .user-info-section,
  .transactions-section {
    margin-top: 20px;
  }
  
  .user-info-section .heading_block,
  .transactions-section .heading_block {
    margin-bottom: 15px;
  }
  
  /* Адаптивность для аватара пользователя */
  .avatar_edit {
    flex-direction: column;
    gap: 15px;
    align-items: center;
    padding: 15px;
  }
  
  .avatar_edit_result {
    width: 80px;
    height: 80px;
  }
  
  .custom-file-label {
    padding: 10px 15px;
    font-size: 13px;
  }
  
  .load_image_edit {
    padding: 10px 20px;
    font-size: 13px;
  }
  

}
