/* Улучшенные стили оформления для menucol из Next.js */
/* Размеры и расположение остаются без изменений */

/* Стили для oRating */
.rating-text {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 35px;
}

.rating-text .orating {
  margin: 0;
  float: none;
}

/* Замена иконки спойлера на Font Awesome */
/* Скрываем все изображения спойлера полностью */
img[src*="spoiler-plus.gif"],
img[src*="spoiler-minus.gif"],
img[id^="image-sp"] {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  visibility: hidden !important;
  opacity: 0 !important;
  position: absolute !important;
  left: -9999px !important;
  pointer-events: none !important;
}

/* Скрываем изображения внутри ссылок со спойлером */
a[href*="ShowOrHide"] img,
a[href*="ShowHide"] img {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  visibility: hidden !important;
  opacity: 0 !important;
  position: absolute !important;
  left: -9999px !important;
  pointer-events: none !important;
}

/* Иконка Font Awesome для ссылок со спойлером - только один раз */
/* Приоритет: ShowOrHide имеет приоритет, чтобы избежать дублирования */
a[href*="ShowOrHide"]:not(:has(img[src*="spoiler-minus"])):before {
  content: "\f067"; /* Font Awesome fa-plus icon (Unicode: \f067) */
  font-family: "Font Awesome 5 Free", "Font Awesome 5 Pro", "FontAwesome", "Font Awesome 6 Free", "Font Awesome 6 Pro", "Font Awesome 6 Brands";
  font-weight: 900;
  font-style: normal;
  display: inline-block;
  vertical-align: middle;
  margin-right: 5px;
  color: #98FB98;
  font-size: 14px;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
}

/* Только для ссылок, которые НЕ содержат ShowOrHide, чтобы избежать дублирования */
a[href*="ShowHide"]:not([href*="ShowOrHide"]):not(:has(img[src*="spoiler-minus"])):before {
  content: "\f067"; /* Font Awesome fa-plus icon (Unicode: \f067) */
  font-family: "Font Awesome 5 Free", "Font Awesome 5 Pro", "FontAwesome", "Font Awesome 6 Free", "Font Awesome 6 Pro", "Font Awesome 6 Brands";
  font-weight: 900;
  font-style: normal;
  display: inline-block;
  vertical-align: middle;
  margin-right: 5px;
  color: #98FB98;
  font-size: 14px;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
}

/* Иконка минуса для открытого спойлера - переопределяет плюс */
a[href*="ShowOrHide"]:has(img[src*="spoiler-minus"]):before,
a[href*="ShowHide"]:has(img[src*="spoiler-minus"]):before {
  content: "\f068" !important; /* Font Awesome fa-minus icon (Unicode: \f068) */
}

/* Улучшенные стили для сайдбара menucol */
.menucol {
  /* Расположение из zombiemod_default */
  padding: 3px !important;
  width: 280px !important;
  float: left !important;
  margin: 28px 0 0 !important;
  /* Визуальные стили (сохраняем оформление) */
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(20, 20, 20, 0.5) 100%);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border-radius: 8px;
  -webkit-border-radius: 8px;
  -moz-border-radius: 8px;
  -khtml-border-radius: 8px;
}

.menutop {
  height: 4px;
  background: linear-gradient(90deg, 
    rgba(0, 255, 127, 0.8) 0%, 
    rgba(152, 251, 152, 0.8) 50%, 
    rgba(0, 255, 127, 0.8) 100%);
  border-radius: 8px 8px 0 0;
  margin-bottom: 2px;
    box-shadow: 0 2px 8px rgba(0, 255, 127, 0.4);
}

.menutext {
  /* Расположение из zombiemod_default */
  padding: 10px 10px 15px !important;
  /* Визуальные стили (сохраняем оформление) */
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(21, 21, 21, 0.95) 0%, rgba(15, 15, 15, 0.95) 100%);
  border-radius: 5px !important;
  -webkit-border-radius: 5px !important;
  -moz-border-radius: 5px !important;
  -khtml-border-radius: 5px !important;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
}

#block_title {
  background-color: rgba(24, 24, 24, 0.6);
  color: #98FB98;
  border: 1px solid rgba(152, 251, 152, 0.3);
  border-left: 3px solid #00FF7F;
  border-top: 1px solid rgba(152, 251, 152, 0.3);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8), 0 0 10px rgba(152, 251, 152, 0.3);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  filter: brightness(1.3) contrast(1.1);
}

#block_title::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 255, 127, 0.15) 0%, rgba(152, 251, 152, 0.15) 100%);
  pointer-events: none;
  z-index: 0;
}

#block_title > * {
  position: relative;
  z-index: 1;
}

#block_title::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

#block_title:hover::before {
  left: 100%;
}

#block_title:hover {
  filter: brightness(1.5) contrast(1.2);
  border-color: rgba(152, 251, 152, 0.5);
    box-shadow: 0 3px 12px rgba(0, 255, 127, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transform: translateX(2px);
}

#block_title:hover::after {
  background: linear-gradient(135deg, rgba(0, 255, 127, 0.25) 0%, rgba(152, 251, 152, 0.25) 100%);
}

/* Улучшенные стили для меню категорий в menucol */
.cat_menu a {
  background: linear-gradient(135deg, rgba(13, 11, 9, 0.3) 0%, rgba(20, 18, 16, 0.4) 100%);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5), 0 1px 0 rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.cat_menu a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(152, 251, 152, 0.1), transparent);
  transition: left 0.5s ease;
}

.cat_menu a:hover::before {
  left: 100%;
}

.cat_menu a:hover {
  background: linear-gradient(135deg, rgba(0, 255, 127, 0.2) 0%, rgba(152, 251, 152, 0.25) 100%);
  color: #FFF;
  transform: translateX(4px);
  box-shadow: 
    inset 0 1px 2px rgba(0, 0, 0, 0.6), 
    0 2px 8px rgba(0, 255, 127, 0.3),
    0 0 15px rgba(152, 251, 152, 0.2);
  border: none;
  outline: none;
  text-decoration: none !important;
}

.cat_menu a.subcat::after {
  content: '▶';
  float: right;
  color: #98FB98;
  font-size: 10px;
  margin-left: 8px;
  transition: transform 0.3s ease;
  opacity: 0.7;
}

.cat_menu a.subcat:hover::after {
  transform: translateX(3px);
  opacity: 1;
  color: #00FF7F;
}

.cat_menu a.subcat,
.cat_menu a.subcat:hover {
  text-decoration: none !important;
}

/* Улучшенные подменю */
.cat_menu li ul {
  background: linear-gradient(180deg, rgba(26, 26, 26, 0.98) 0%, rgba(20, 20, 20, 0.98) 100%);
  border: 1px solid rgba(152, 251, 152, 0.2);
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.7),
    0 0 30px rgba(0, 255, 127, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.cat_menu li ul a {
  background: linear-gradient(135deg, rgba(13, 11, 9, 0.4) 0%, rgba(20, 18, 16, 0.5) 100%);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.cat_menu li ul a:hover {
  background: linear-gradient(135deg, rgba(0, 255, 127, 0.25) 0%, rgba(152, 251, 152, 0.3) 100%);
  text-decoration: none !important;
}
  border: none;
  outline: none;
}

/* Улучшенная форма входа в menucol */
.menutext form {
  background: rgba(13, 11, 9, 0.2);
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.menutext input[type="text"],
.menutext input[type="password"] {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(152, 251, 152, 0.2);
  border-radius: 4px;
  color: #DDD;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.menutext input[type="text"]:focus,
.menutext input[type="password"]:focus {
  outline: none;
  border-color: rgba(152, 251, 152, 0.5);
  background: rgba(0, 0, 0, 0.6);
  box-shadow: 0 0 10px rgba(152, 251, 152, 0.3);
}

.menutext input[type="submit"] {
  background: linear-gradient(135deg, rgba(0, 255, 127, 0.8) 0%, rgba(152, 251, 152, 0.8) 100%);
  border: 1px solid rgba(152, 251, 152, 0.4);
  border-radius: 4px;
  color: #FFF;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    box-shadow: 0 2px 8px rgba(0, 255, 127, 0.4);
}

.menutext input[type="submit"]:hover {
  background: linear-gradient(135deg, rgba(152, 251, 152, 0.9) 0%, rgba(0, 255, 127, 0.9) 100%);
  transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 255, 127, 0.6);
}

.menutext input[type="submit"]:active {
  transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 255, 127, 0.4);
}

.hlmrh {
  color: #AAA;
  background: rgba(13, 11, 9, 0.3);
  border-radius: 4px;
  border-left: 3px solid rgba(152, 251, 152, 0.5);
}

.hlmrh a {
  color: #98FB98;
  text-decoration: none;
  transition: color 0.3s ease;
}

.hlmrh a:hover {
  color: #00FF7F;
  text-decoration: underline;
}

.menutext center a {
  color: #AAA;
  text-decoration: none;
  transition: color 0.3s ease;
}

.menutext center a:hover {
  color: #98FB98;
  text-decoration: underline;
}

/* Эффект свечения для активных элементов */
.cat_menu a:active {
  box-shadow: 
    inset 0 1px 2px rgba(0, 0, 0, 0.6), 
    0 0 20px rgba(152, 251, 152, 0.4);
}

/* Улучшенные стили для блока новостей #dle-content */
#dle-content > div {
  /* Сохраняем оригинальные размеры и позиционирование */
  /* Добавляем только визуальные улучшения */
  background: linear-gradient(135deg, rgba(21, 21, 21, 0.95) 0%, rgba(15, 15, 15, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  box-shadow: 
    0 4px 15px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

#dle-content > div::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, 
    rgba(0, 255, 127, 0.8) 0%, 
    rgba(152, 251, 152, 0.8) 50%, 
    rgba(0, 255, 127, 0.8) 100%);
    box-shadow: 0 2px 8px rgba(0, 255, 127, 0.4);
}

/* Улучшенная дата новости */
.newsdate {
  /* Сохраняем оригинальные размеры и позиционирование */
  /* Добавляем только визуальные улучшения */
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

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

.newsdate span {
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
  position: relative;
  z-index: 1;
}

.newsdate i {
  position: relative;
  z-index: 1;
}

/* Улучшенный заголовок новости */
#dle-content h2 {
  /* Сохраняем оригинальные размеры и позиционирование */
  /* Добавляем только визуальные улучшения */
  background: linear-gradient(135deg, rgba(32, 32, 32, 0.4) 0%, rgba(24, 24, 24, 0.4) 100%);
  border-left: 4px solid rgba(152, 251, 152, 0.3);
  border-radius: 4px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  padding: 8px 12px;
}

#dle-content h2::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(152, 251, 152, 0.1), transparent);
  transition: left 0.6s ease;
}

#dle-content h2 a {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  position: relative;
  z-index: 1;
}


/* Улучшенный текст новости */
.newstext {
  /* Сохраняем оригинальные размеры и позиционирование */
  /* Добавляем только визуальные улучшения */
  background: rgba(0, 0, 0, 0.2);
  border-radius: 6px;
  transition: all 0.3s ease;
  padding: 12px;
  margin: 15px 0;
}

.newstext img,
.newstext .fr-dib {
  display: block;
  margin: 0 auto;
  border-radius: 5px;
  max-width: 100%;
  height: auto;
}

.newstext img {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: block;
  margin: 0 auto;
  border-radius: 5px;
}


/* Стили для блока мониторинга серверов */
.server-list {
  margin: 15px 0 !important;
}

.server-item {
  margin-bottom: 12px !important;
  padding: 8px !important;
  background: rgba(0, 0, 0, 0.2) !important;
  border-radius: 4px !important;
  border: 1px solid rgba(152, 251, 152, 0.1) !important;
  transition: all 0.3s ease !important;
}

.server-item:hover {
  background: rgba(0, 0, 0, 0.3) !important;
  border-color: rgba(152, 251, 152, 0.2) !important;
  transform: translateX(2px) !important;
}

.server-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin-bottom: 6px !important;
  font-size: 11px !important;
}

.server-name {
  color: #DDD !important;
  font-weight: 600 !important;
  flex: 1 !important;
}

.server-online {
  color: #98FB98 !important;
  font-weight: bold !important;
  font-size: 10px !important;
  white-space: nowrap !important;
  margin-left: 8px !important;
}

.server-progress {
  width: 100% !important;
  height: 6px !important;
  background: rgba(0, 0, 0, 0.4) !important;
  border-radius: 3px !important;
  overflow: hidden !important;
  position: relative !important;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5) !important;
  display: block !important;
  margin-top: 6px !important;
  clear: both !important;
}

.server-progress-bar {
  height: 100% !important;
  min-height: 6px !important;
  background: linear-gradient(90deg, 
    rgba(0, 255, 127, 0.8) 0%, 
    rgba(152, 251, 152, 0.8) 50%,
    rgba(0, 255, 127, 0.8) 100%) !important;
  border-radius: 3px !important;
  transition: width 0.5s ease !important;
  position: relative !important;
  overflow: hidden !important;
    box-shadow: 0 0 8px rgba(0, 255, 127, 0.4) !important;
  display: block !important;
  float: left !important;
  min-width: 1px !important;
}

.server-progress-bar::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: -100% !important;
  width: 100% !important;
  height: 100% !important;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent) !important;
  animation: progressShine 2s infinite !important;
}

.server-progress-bar-full {
  background: linear-gradient(90deg, 
    rgba(76, 175, 80, 0.8) 0%, 
    rgba(139, 195, 74, 0.8) 50%,
    rgba(76, 175, 80, 0.8) 100%) !important;
  box-shadow: 0 0 8px rgba(76, 175, 80, 0.4) !important;
}

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

/* Стили для кнопки скачивания файлов (как в Next.js) */
.attachment-download-wrapper {
  text-align: center;
  margin: 20px 0;
}

.button-bevel {
  vertical-align: top;
  border-radius: 4px;
  border: none;
  padding: 10px 25px 12px;
  display: inline-block;
  color: #fff;
  font-weight: bold;
  text-align: center;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  position: relative;
  text-decoration: none;
}

.button-bevel.orange {
  background: rgb(127, 255, 0);
  background: -moz-linear-gradient(top, rgba(127,255,0,1) 0%, rgba(0,255,127,1) 100%);
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, rgba(152, 251, 152, 1)), color-stop(100%, rgba(0, 255, 127, 1)));
  background: -webkit-linear-gradient(top, rgba(152, 251, 152, 1) 0%, rgba(0, 255, 127, 1) 100%);
  background: -o-linear-gradient(top, rgba(127,255,0,1) 0%,rgba(0,255,127,1) 100%);
  background: -ms-linear-gradient(top, rgba(127,255,0,1) 0%,rgba(0,255,127,1) 100%);
  background: linear-gradient(to bottom, rgba(152, 251, 152, 1) 0%, rgba(0, 255, 127, 1) 100%);
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#98FB98', endColorstr='#00FF7F',GradientType=0 );
  border: 1px solid #00FF7F;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
  cursor: pointer;
}

.button-bevel.orange:hover {
  background: rgba(0, 255, 127, 1);
  background: -moz-linear-gradient(top, rgba(0,255,127,1) 0%, rgba(127,255,0,1) 100%);
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, rgba(0, 255, 127, 1)), color-stop(100%, rgba(152, 251, 152, 1)));
  background: -webkit-linear-gradient(top, rgba(0, 255, 127, 1) 0%, rgba(152, 251, 152, 1) 100%);
  background: -o-linear-gradient(top, rgba(0,255,127,1) 0%,rgba(127,255,0,1) 100%);
  background: -ms-linear-gradient(top, rgba(0,255,127,1) 0%,rgba(127,255,0,1) 100%);
  background: linear-gradient(to bottom, rgba(0, 255, 127, 1) 0%, rgba(152, 251, 152, 1) 100%);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.button-bevel.orange:active {
  transform: translateY(2px) scale(0.98);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.button-bevel .download {
  display: inline-block;
  margin-right: 5px;
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  vertical-align: middle;
}

/* Альтернативный вариант с Font Awesome (если подключен) */
.button-bevel .download.fa {
  background-image: none;
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
}

.button-bevel .download.fa::before {
  content: "\f019"; /* fa-download */
}

.attachment-download-info {
  margin-top: 8px;
  color: #666;
  font-size: 12px;
  line-height: 1.6;
}

.attachment-error {
  color: #00FF7F;
  font-size: 14px;
  padding: 10px;
  background: rgba(0, 255, 127, 0.1);
  border: 1px solid rgba(0, 255, 127, 0.3);
  border-radius: 4px;
  display: inline-block;
}

.attachment-download-info .online-view-link {
  color: #98FB98;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.attachment-download-info .online-view-link:hover {
  color: #00FF7F;
}

/* Стили для ссылок с счетчиком (zm_count) - как у файлов */
.zm-link-wrapper {
  text-align: center;
  margin: 20px 0;
}

.zm-link-wrapper a.button-bevel {
  vertical-align: top;
  border-radius: 4px;
  border: none;
  padding: 10px 25px 12px;
  display: inline-block;
  color: #fff;
  font-weight: bold;
  text-align: center;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  position: relative;
  text-decoration: none;
  background: linear-gradient(to bottom, rgba(0, 255, 127, 1) 0%, rgba(60, 179, 113, 1) 100%);
  border: 1px solid #3CB371;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
  cursor: pointer;
}

.zm-link-wrapper a.button-bevel:hover {
  background: linear-gradient(to bottom, rgba(60, 179, 113, 1) 0%, rgba(0, 255, 127, 1) 100%);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.zm-link-wrapper a.button-bevel:active {
  transform: translateY(2px) scale(0.98);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.zm-link-wrapper .attachment-download-info {
  margin-top: 8px;
  color: #666;
  font-size: 12px;
  line-height: 1.6;
}

/* Стили для ссылок с do=go (leech ссылки) */
a[href*="do=go"] {
  display: inline-block;
  margin: 20px 0;
}

/* Обертка для ссылок с do=go */
.dle-leech-link-wrapper {
  text-align: center;
  margin: 20px 0;
}

.dle-leech-link-wrapper a {
  display: inline-block;
  padding: 10px 25px 12px;
  background: linear-gradient(to bottom, rgba(0, 255, 127, 1) 0%, rgba(60, 179, 113, 1) 100%);
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  border-radius: 4px;
  border: 1px solid #3CB371;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  position: relative;
}

.dle-leech-link-wrapper a::before {
  content: '';
  display: inline-block;
  margin-right: 5px;
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  vertical-align: middle;
}

.dle-leech-link-wrapper a:hover {
  background: linear-gradient(to bottom, rgba(60, 179, 113, 1) 0%, rgba(0, 255, 127, 1) 100%);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.dle-leech-link-wrapper a:active {
  transform: translateY(2px) scale(0.98);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.dle-leech-link-info {
  margin-top: 8px;
  color: #666;
  font-size: 12px;
  line-height: 1.6;
}

/* Стили для профиля пользователя */
.profile-header {
  margin-bottom: 12px;
}

.profile-title {
  font-size: 20px;
  color: #ddd;
  margin: 0;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.profile-username {
  color: #98FB98;
  text-shadow: 0 0 10px rgba(152, 251, 152, 0.5);
}

.profile-card {
  background: linear-gradient(145deg, #1a1a1a 0%, #2d2d2d 100%);
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 15px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.05);
  display: flex;
  gap: 15px;
  position: relative;
  overflow: hidden;
}

.profile-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #98FB98 0%, #00FF7F 50%, #98FB98 100%);
  background-size: 200% 100%;
  animation: profileGradient 3s ease infinite;
}

@keyframes profileGradient {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.profile-avatar-section {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.profile-avatar-wrapper {
  position: relative;
  width: 100px;
  height: 100px;
}

.profile-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 3px solid #98FB98;
  box-shadow: 0 0 15px rgba(152, 251, 152, 0.5), inset 0 0 15px rgba(0, 0, 0, 0.3);
  object-fit: cover;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-avatar:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(152, 251, 152, 0.7), inset 0 0 15px rgba(0, 0, 0, 0.3);
}

.profile-avatar-badge {
  position: absolute;
  bottom: 3px;
  right: 3px;
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, #98FB98 0%, #00FF7F 100%);
  border-radius: 50%;
  border: 2px solid #1a1a1a;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.profile-rating-section {
  text-align: center;
}

.profile-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.profile-main-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.profile-name-section {
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(152, 251, 152, 0.3);
}

.profile-fullname {
  font-size: 22px;
  color: #fff;
  margin: 0 0 6px 0;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.profile-group {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.profile-group-label {
  color: #aaa;
  font-weight: 600;
}

.profile-group-value {
  color: #98FB98;
  font-weight: 700;
  text-shadow: 0 0 8px rgba(152, 251, 152, 0.5);
  padding: 4px 12px;
  background: rgba(152, 251, 152, 0.15);
  border-radius: 6px;
  border: 1px solid rgba(152, 251, 152, 0.3);
}

.profile-time-limit {
  color: #888;
  font-size: 12px;
  margin-left: 10px;
}

.profile-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.profile-stat-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.profile-stat-item:hover {
  background: rgba(152, 251, 152, 0.1);
  border-color: rgba(152, 251, 152, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.profile-stat-icon {
  font-size: 16px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(152, 251, 152, 0.2);
  border-radius: 6px;
  flex-shrink: 0;
}

.profile-stat-icon i {
  color: #98FB98;
}

.profile-stat-content {
  flex: 1;
  min-width: 0;
}

.profile-stat-label {
  color: #aaa;
  font-size: 11px;
  margin-bottom: 3px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.profile-stat-value {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  word-break: break-word;
}

.profile-about-section {
  padding: 12px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 6px;
  border-left: 3px solid #98FB98;
}

.profile-section-title {
  font-size: 14px;
  color: #ddd;
  margin: 0 0 8px 0;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.profile-about-content {
  color: #ccc;
  line-height: 1.5;
  font-size: 13px;
}

.profile-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-actions a {
  padding: 6px 12px;
  background: linear-gradient(135deg, #98FB98 0%, #00FF7F 100%);
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  font-size: 13px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(152, 251, 152, 0.3);
}

.profile-actions a:hover {
  background: linear-gradient(135deg, #00FF7F 0%, #98FB98 100%);
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(152, 251, 152, 0.5);
}

@media (max-width: 768px) {
  .profile-card {
    flex-direction: column;
    align-items: center;
    padding: 12px;
    gap: 12px;
  }
  
  .profile-stats-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  
  .profile-avatar-wrapper {
    width: 80px;
    height: 80px;
  }
  
  .profile-fullname {
    font-size: 18px;
  }
}

/* Стили для формы редактирования профиля */
#options {
  margin-top: 20px;
  padding: 20px;
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
  border: 1px solid rgba(152, 251, 152, 0.2);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

#options h2 {
  margin: 0 0 20px 0;
  padding-bottom: 12px;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  border-bottom: 2px solid rgba(152, 251, 152, 0.5);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

#options table {
  width: 100%;
  max-width: 600px;
  border-collapse: separate;
  border-spacing: 0;
}

#options table td {
  padding: 10px 0;
  vertical-align: middle;
}

#options table td:first-child {
  width: 140px;
  min-width: 140px;
  padding-right: 15px;
  color: #ccc;
  font-weight: 500;
  font-size: 14px;
}

#options table td:last-child {
  width: auto;
}

#options .f_input,
#options .f_textarea {
  width: 100%;
  max-width: 400px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(152, 251, 152, 0.3);
  border-radius: 6px;
  color: #fff;
  font-size: 14px;
  font-family: "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif;
  transition: all 0.3s ease;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

#options .f_input:focus,
#options .f_textarea:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.08);
  border-color: #98FB98;
  box-shadow: 0 0 0 3px rgba(152, 251, 152, 0.2), inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

#options .f_textarea {
  min-height: 80px;
  resize: vertical;
  font-family: "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

#options input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-right: 8px;
  cursor: pointer;
  accent-color: #98FB98;
}

#options label {
  color: #ccc;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
}

#options input[type="file"] {
  padding: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(152, 251, 152, 0.3);
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
}

#options input[type="file"]::-webkit-file-upload-button {
  padding: 6px 12px;
  margin-right: 10px;
  background: linear-gradient(135deg, #7CFC00 0%, #98FB98 100%);
  border: none;
  border-radius: 4px;
  color: #000;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
}

#options input[type="file"]::-webkit-file-upload-button:hover {
  background: linear-gradient(135deg, #98FB98 0%, #7CFC00 100%);
}

#options input[type="image"] {
  margin-top: 15px;
  cursor: pointer;
  transition: transform 0.2s ease;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

#options input[type="image"]:hover {
  transform: translateY(-2px);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
}

#options strong {
  color: #fff;
  font-weight: 600;
}

#options font[style*="color:red"] {
  color: #ff6b6b !important;
  font-size: 11px;
  line-height: 1.5;
  display: block;
  margin-top: 8px;
}

#options b {
  color: #fff;
  font-weight: 600;
  display: block;
  margin-bottom: 15px;
  padding: 8px 12px;
  background: rgba(152, 251, 152, 0.2);
  border-left: 3px solid #98FB98;
  border-radius: 4px;
}

@media (max-width: 768px) {
  #options {
    padding: 15px;
  }
  
  #options table {
    max-width: 100%;
  }
  
  #options table td {
    display: block;
    width: 100% !important;
    padding: 8px 0;
  }
  
  #options table td:first-child {
    width: 100% !important;
    margin-bottom: 5px;
    font-weight: 600;
  }
  
  #options .f_input,
  #options .f_textarea {
    max-width: 100%;
  }
}

/* Стили для textarea комментариев */
.wseditor textarea#comments,
.wseditor textarea.ajaxwysiwygeditor,
#comments.ajaxwysiwygeditor {
  width: 659px !important;
}

/* Стили для формы комментариев */
.comments-form-wrapper {
  max-width: 700px;
  padding: 20px;
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
  border: 1px solid rgba(152, 251, 152, 0.2);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  margin-top: 15px;
}

.comments-form-row {
  display: flex;
  flex-direction: column;
  margin-bottom: 15px;
  gap: 8px;
}

.comments-form-row:last-child {
  margin-bottom: 0;
}

.comments-form-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ccc;
  font-weight: 500;
  font-size: 14px;
  font-family: "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.comments-form-label i {
  color: #98FB98;
  font-size: 14px;
  width: 16px;
  text-align: center;
}

.comments-form-input {
  width: 100%;
  max-width: 500px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(152, 251, 152, 0.3);
  border-radius: 6px;
  color: #fff;
  font-size: 14px;
  font-family: "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif;
  transition: all 0.3s ease;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.comments-form-input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.08);
  border-color: #98FB98;
  box-shadow: 0 0 0 3px rgba(152, 251, 152, 0.2), inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.comments-form-code {
  max-width: 200px;
}

.comments-form-editor {
  margin: 20px 0;
}

.comments-captcha-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.comments-captcha-wrapper a {
  display: inline-block;
  transition: transform 0.2s ease;
}

.comments-captcha-wrapper a:hover {
  transform: scale(1.05);
}

.comments-captcha-wrapper img {
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.comments-recaptcha-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.comments-form-submit {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.comments-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(135deg, #7CFC00 0%, #98FB98 100%);
  border: none;
  border-radius: 6px;
  color: #000;
  font-weight: 600;
  font-size: 14px;
  font-family: "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(124, 252, 0, 0.4);
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
}

.comments-submit-btn:hover {
  background: linear-gradient(135deg, #98FB98 0%, #7CFC00 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(124, 252, 0, 0.6);
}

.comments-submit-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(124, 252, 0, 0.4);
}

.comments-submit-btn i {
  font-size: 14px;
}

#block_comment {
  background: linear-gradient(135deg, rgba(152, 251, 152, 0.2) 0%, rgba(124, 252, 0, 0.2) 100%);
  border-left: 3px solid #98FB98;
  padding: 12px 15px;
  border-radius: 6px;
  margin-bottom: 15px;
  font-weight: 600;
  font-size: 16px;
  color: #fff;
  font-family: "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

@media (max-width: 768px) {
  .comments-form-wrapper {
    padding: 15px;
  }
  
  .comments-form-input {
    max-width: 100%;
  }
  
  .comments-form-code {
    max-width: 150px;
  }
}

/* Стили для блока действий комментариев (.comed) */
.comed {
  line-height: 16px !important;
  height: auto !important;
}

.comed a {
  line-height: 16px !important;
  height: 20px !important;
  min-height: 20px !important;
  padding: 2px 8px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.2s ease;
}

.comed a:hover {
  background: rgba(152, 251, 152, 0.3) !important;
  transform: translateY(-1px);
}

.comed a i,
.comed i {
  font-size: 12px;
  color: #ccc;
  transition: color 0.2s ease;
  display: inline-block;
}

.comed a:hover i {
  color: #98FB98;
}

.comed img {
  display: none !important;
}

/* Стили для блока навигации (Полезные статьи) - расположение как в default */
.menutext .navigation {
  text-align: left !important;
  color: #777 !important;
  border: 0 !important;
  line-height: 20px !important;
  margin: 0 !important;
}
