
.header-lang-flag {
	border-radius: 5px;
}

.footer-link {
	margin: 10px;
}

.footer-link:hover {
	color: #dad0a4;
	transition: color 0.5s ease;
}

.footer-socials__link--cyan { --hover-bg: #A06897 !important; }
.footer-socials__link--dark-blue { --hover-bg: #2f33409e !important; }
.footer-socials__link--green {--hover-bg: #0ae97a9e !important; }

.footer-socials {
	grid-template-columns: repeat(5, 1fr) !important;
}

body {
    -webkit-user-select: none;
    -moz-user-select: none; 
    -ms-user-select: none;  
    user-select: none;  
}

.logo-main {
	height: 24px;
	width: 24px;
	opacity: 0.75;
}

.logo-main:hover {
	opacity: 1;
}

.footer-socials__link::after {
    top: calc(50% + 2px) !important;
    left: calc(50% - 8px) !important;
}

@media (max-width: 1280px) {
    .footer-socials__link::after {
        top: calc(50% + 1px) !important;
        left: calc(50% - 6px) !important;
    }

    .footer-socials__link img, .footer-socials__link svg {
        max-height: 28px !important;
    }
}

.header .navigation__contact__language {
    padding: 10px 10px !important;
    overflow: visible;
}
.header,
.header .navigation,
.header .navigation__contact,
.header .navigation__contact__language .language-selector {
    overflow: visible;
}

/* Click-to-toggle для селектора языка (работает на мобильных, где :hover не срабатывает) */
.header .navigation__contact__language.language-open .language-options,
.header .navigation__contact__language:hover .language-options {
    display: flex !important;
    flex-direction: column;
}
.header .navigation__contact__language.language-open .arrow-icon {
    transform: rotate(-180deg);
}

/* Исправление выпадающего списка языков: позиционирование как на скрине 2 */
.header .navigation__contact__language .language-selector {
    position: relative;
}
.header .navigation__contact__language .language-options {
    margin-top: 0;
    background: rgba(19, 20, 28, 0.95);
    backdrop-filter: blur(12px);
    min-width: 130px;
    width: fit-content;
    z-index: 9999;
    padding: 6px 8px;
    overflow: visible !important;
    border-radius: 10px;
    border: 1px solid rgba(218, 208, 164, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 1px rgba(218, 208, 164, 0.1);
}
.header .navigation__contact__language .language-options::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: -4px;
    right: -4px;
    height: 12px;
}
.header .navigation__contact__language .language-selector .language-option {
    display: flex !important;
    align-items: center !important;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
    padding: 8px 12px;
    white-space: nowrap;
    text-decoration: none;
    color: #e8e4d8;
    border-radius: 6px;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.header .navigation__contact__language .language-selector .language-option img {
    width: 24px;
    min-width: 24px;
    height: 16px;
    min-height: 16px;
    object-fit: contain;
    border-radius: 4px;
    flex-shrink: 0;
}
.header .navigation__contact__language .language-selector .language-option:hover {
    background-color: rgba(170, 132, 93, 0.35) !important;
    color: #dad0a4 !important;
    transform: none !important;
}

.header .navigation__contact {
    gap: 20px !important;
}

.button-primary-w {
    min-height: 132px;
    font-size: var(--root-button-text-size_primary);
    background-image: url(../img/global/button-bg.png);
    background-size: 100% 100%;
    background-repeat: no-repeat;
    min-width: var(--root-button-min-w_primary);

}


/* === DOWNLOAD PAGE SECTION === */
.download {
  padding: 90px 0;
  color: #f3e9d2;
  font-family: 'Philosopher', sans-serif;
  text-align: center;
}

.download .container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-header {
  margin-bottom: 70px;
}

.heading-title {
  font-family: 'Philosopher', sans-serif;
  font-size: 48px;
  text-transform: uppercase;
  color: #fff;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.heading-subheading {
  font-size: 17px;
  color: #c5bca4;
  max-width: 700px;
  margin: 0 auto;
}

.download-group {
  margin-bottom: 50px;
  padding: 40px 30px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 215, 128, 0.2);
  border-radius: 12px;
  box-shadow: inset 0 0 10px rgba(255, 230, 160, 0.05);
}

.group-title {
  font-family: 'Philosopher', sans-serif;
  font-size: 30px;
  color: #f5d67a;
  text-transform: uppercase;
  margin-bottom: 15px;
}

.download-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.launcher-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  color: #f7e7c0;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 15px;
  letter-spacing: 0.5px;
  border: 1px solid rgba(255, 215, 128, 0.4);
  border-radius: 6px;
  background: rgba(255, 215, 128, 0.07);
  position: relative;
  text-decoration: none;
  transition: all 0.25s ease;
}

.launcher-btn::before {
  content: '';
  position: absolute;
  inset: -4px;
  border: 1px solid rgba(255, 215, 128, 0.2);
  border-radius: 10px;
  pointer-events: none;
}

.launcher-btn:hover {
  color: #fff6d2;
  border-color: #ffdc91;
  background: rgba(255, 230, 160, 0.1);
  box-shadow: 0 0 15px rgba(255, 215, 128, 0.25);
}

.launcher-btn i {
  font-size: 16px;
  color: #ffdc91;
}

.launcher-btn.disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.download-info {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: 70px;
}





/* Объединённые блоки */
.info-pair {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 215, 128, 0.15);
  border-radius: 12px;
  padding: 40px 30px;
  box-shadow: 0 0 25px rgba(255, 230, 160, 0.05);
  margin: 50px 0;
}

.info-block {
  margin-bottom: 25px;

}

.info-block:last-child {
  margin-bottom: 0;
}

.section-title {
  font-family: 'Philosopher', sans-serif;
  font-size: 30px;
  color: #ffdc91;
  margin: 10px 0;
  text-transform: uppercase;
}

.info-block p,
.info-block ul {
  line-height: 1.6;
  color: #c5bca4;
  font-size: 15px;
  margin: 8px 0;
}

.info-block a {
  color: #ffdc91;
  /* text-decoration: underline; */
}

main section::before {
 background-image: none !important;
}

.info-block a:hover {
  color: #fff7d9;
}

/* === LISTS === */
.faq-list,
.extra-files-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.faq-list li,
.extra-files-list li {
  margin: 25px;
}

/* === ANIMATION === */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.6s ease forwards;
}

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

/* === MOBILE === */
@media (max-width: 768px) {
  .heading-title {
    font-size: 34px;
  }

  .download-group {
    padding: 20px;
  }

  .launcher-btn {
    width: 100%;
  }

  .info-pair {
    padding: 25px 18px;
  }
}

.extra-files-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.extra-files-list li {
  position: relative;
  font-size: 15px;
  color: #d9ceb0;
}

.extra-files-list li::after {
  content: "•";
  color: #ffdc91;
  margin-left: 12px;
}

.extra-files-list li:last-child::after {
  content: "";
}

.extra-files-list a {
  color: #ffdc91;
  text-decoration: none;
  transition: color 0.2s ease;
}

.extra-files-list a:hover {
  color: #fff6d2;
  text-decoration: underline;
}




/* === СТРАНИЦА НОВОСТЕЙ === */

.section-header {
  margin-bottom: 60px;
  text-align: center;
}

.heading-title {
  font-family: 'Philosopher', sans-serif;
  font-size: 48px;
  color: #fff;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.heading-subheading {
  font-size: 17px;
  color: #c5bca4;
}

/* === Фильтры === */
.events-filters { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px; width: 100%; margin-bottom: 40px; }
.filter-select { 
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;

  background: #241b3f00; 
  color: #ddddddb5; 
  border: 2px solid #ddddddb5; 
  border-radius: 6px; 
  padding: 12px 16px; 
  font-size: 16px; 
  cursor: pointer;
  min-width: 180px; 
  transition: border-color 0.2s; 

  /* своя стрелка */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: calc(100% - 10px) center !important; /* ← расстояние от правого края */
  background-size: 16px !important;
}
.filter-select:hover { border-color: #fff; color: #fff;}

/* === Поиск === */
.events-search { flex: 1; position: relative; display: flex; align-items: center; max-width: none; }
.events-search input { width: 100%; padding: 14px 55px 14px 20px; border: 2px solid #ddddddb5; border-radius: 6px; background: transparent; color: #fff; font-size: 16px; }
.events-search:hover input { border-color: #dddddd; }
.events-search input::placeholder {color: rgba(255,255,255,0.6);}
.events-search button { position: absolute; right: 10px; background: #ddddddb5; border: none; padding: 10px; border-radius: 4px; cursor: pointer; }
.events-search button:hover { background: #ffffff; }
.events-search button svg { width: 20px; height: 20px; fill: #1b1440; }


/* === Сетка === */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  width: 100%;
}

/* === Карточка === */
.event-card {
  background: #4949492e;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  will-change: transform;
  /* Подготовка для стабильного рендеринга */
  backface-visibility: hidden;
  transform: translateZ(0);
  transition: filter 0.3s ease;
  box-shadow: 0 0 0 0 rgba(250, 204, 21, 0);
}

/* Подсветка без сдвига */
.event-card:hover {
  filter: brightness(1.15);
  /* box-shadow: inset 0 0 0 1px rgba(250, 204, 21, 0.4); */
  z-index: 1;
}

/* === Картинка увеличивается === */
.event-image {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.event-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  will-change: transform;
}

.event-card:hover .event-image img {
  transform: scale(1.08);
}

/* === Метки === */
.event-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #367cff;
  color: #fff;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
}

/* === Контент === */
.event-body {
  padding: 16px;
  text-align: left;
}

.event-category {
  color: #d6bf84;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.event-title {
  color: #ffffffbd;
  font-weight: 600;
  font-size: 20px;
  margin: 6px 0;
  transition: color 0.3s ease;
}

.event-card:hover .event-title {
  color: #ffffff;
}

.event-date {
  color: #aaa;
  font-size: 13px;
}

/* === Адаптив === */
@media (max-width: 768px) {
  .events-filters {
    flex-direction: column;
    align-items: stretch;
  }
  .filter-select,
  .events-search {
    width: 100%;
  }
  .heading-title {
    font-size: 36px;
  }
}

.filter-select option {
  background-color: #1b1440;
  color: #fff;
}

/* =================== */

/* === Страница полной новости === */
.news-full-page {
  width: 100vw;
  min-height: 100vh;
  color: #fff;
  font-family: 'Philosopher', sans-serif;
  padding: 80px 0;
}

/* Контейнер и базовые отступы */
.news-full-page .container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px 80px;
  background: #4949492e;
  border-radius: 12px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
}

/* === Хлебные крошки === */
.breadcrumb {
  font-size: 14px;
  color: #b8accd;
  margin-bottom: 25px;
  text-align: left;
}
.breadcrumb a {
  color: #facc15;
  text-decoration: none;
  transition: color 0.2s;
}
.breadcrumb a:hover {
  color: #fff;
}
.breadcrumb span {
  margin: 0 6px;
  color: #b3a7d6;
}

/* === Заголовок и метаданные === */
.news-header {
  text-align: center;
  margin-bottom: 30px;
}
.news-title {
  font-family: 'Philosopher', sans-serif;
  font-size: 44px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}
.news-meta {
  font-size: 14px;
  color: #b3a7d6;
}
.news-meta .divider {
  margin: 0 6px;
  color: #777;
}
.news-server {
  color: #facc15;
  font-weight: bold;
  text-transform: uppercase;
}

/* === Обложка === */
.news-cover {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 40px;
  box-shadow: 0 0 20px rgba(250, 204, 21, 0.25);
}
.news-cover img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.news-cover:hover img {
  transform: scale(1.05);
}



/* === Нижний блок === */
.news-footer {
  margin-top: 50px;
  text-align: center;
  border-top: 1px solid rgba(250, 204, 21, 0.3);
  padding-top: 30px;
}
.btn-back {
  display: inline-block;
  background: #facc15;
  color: #1b1440;
  font-weight: bold;
  text-transform: uppercase;
  padding: 10px 24px;
  border-radius: 6px;
  transition: background 0.2s, transform 0.2s;
  text-decoration: none;
}
.btn-back:hover {
  background: #ffea7c;
  transform: translateY(-2px);
}

/* === Адаптив === */
@media (max-width: 768px) {
  .news-full-page .container {
    padding: 24px 16px 60px;
  }
  .news-title {
    font-size: 32px;
  }
}

/* === Бейдж === */
.event-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 6px 12px;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  border-radius: 6px;
  text-transform: uppercase;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  z-index: 2;
}

/* === Закреплённый пост (звезда) === */
.event-featured {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 20px;
  color: #facc15;
    text-shadow:
    0 0 6px rgba(0, 0, 0, 0.6),
    0 0 12px rgba(0, 0, 0, 0.5),
    0 0 18px rgba(0, 0, 0, 0.4);
  z-index: 3;
}


/* --- Админские посты (status = 0) --- */
.event-card.admin-only {
  position: relative;
  opacity: 0.85;
  filter: grayscale(35%);
  transition: opacity 0.3s ease, filter 0.3s ease;
}

.event-card.admin-only:hover {
  opacity: 1;
  filter: grayscale(0%);
}

.event-image.admin-only {
  /* filter: grayscale(1) brightness(1); */
  position: relative;
}

/* --- Метка "только для админов" --- */
.event-admin-lock {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(40, 40, 40, 0.85);
  color: #fff;
  font-size: 12px;
  padding: 3px 6px;
  border-radius: 3px;
}


/* Кнопка "Создать пост" справа от поиска */
.create-post-btn {
  padding: 16px 20px;
  background: #ddddddb5;
  color: #1b1440;
  font-weight: bold;
  text-transform: uppercase;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.create-post-btn:hover {
  background: #fff;

}

@media (max-width: 768px) {
  .create-post-btn {
    width: 100%;
    text-align: center;
  }
}

/* === Исправленный бейдж "ЗАВЕРШЕНО" === */
.event-image {
  position: relative;
  overflow: hidden;
}

.event-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0) no-repeat center;
  transition: background-color 0.3s ease;
  pointer-events: none;
  z-index: 10;
}

.event-image:has(.event-finished)::after {
  background-color: rgba(0, 0, 0, 0.35);
}

.event-finished {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-6deg);
  display: inline-block;
  background: rgba(250, 204, 21, 0.95);
  color: #2b1c00;
  font-weight: 800;
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 18px;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
  pointer-events: none;
  z-index: 15;
  width: auto;
  height: auto;
  line-height: 1.2;
  max-width: 80%;
  text-align: center;
  letter-spacing: 0.5px;
}

/* новости */
  .news-create {
    padding: 90px 0;
    max-width: 1100px;
    margin: 0 auto;
  }

  .form-block {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,215,128,0.25);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 0 25px rgba(255,230,160,0.05);
  }

  label {
    color: #dcd3b3;
    font-size: 15px;
    display: block;
    margin-bottom: 6px;
  }


  .checkbox-group {
    display: flex;
    align-items: center;
    gap: 24px;
    height: 44px;
  }

  .checkbox-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
  }

  .two-col {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
  }

  .two-col > div {
    flex: 1;
    min-width: 320px;
  }

  .select-row {
    display: flex;
    align-items: center;
    gap: 16px;
  }

  .select-row select {
    flex: 1;
    height: 44px;
  }

  .badge-row {
    display: flex;
    align-items: center;
    gap: 16px;
  }

  .badge-row input[type="text"] {
    flex: 1;
    height: 44px;
  }

  .badge-row input[type="color"] {
    width: 44px;
    height: 44px;
    border-radius: 6px;
    border: 1px solid rgba(255,215,128,0.4);
    background: transparent;
    cursor: pointer;
    padding: 0;
  }

  .preview-box {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,215,128,0.3);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
  }

  .preview-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .submit-btn {
    background: #ddddddb5;
    color: #1b1440;
    font-weight: bold;
    text-transform: uppercase;
    padding: 12px 28px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
  }

  .submit-btn:hover {
    background: #fff;
    transform: translateY(-2px);
  }

  .back-link {
    display: inline-block;
    margin-bottom: 30px;
    color: #ddddddb5;
    text-decoration: none;
    transition: color 0.2s;
  }

  .back-link:hover {
    color: #fff;
  }


  @media (max-width: 768px) {
    .checkbox-group { flex-wrap: wrap; }
    .select-row, .badge-row { flex-direction: column; align-items: stretch; }
  }






  /* === FORM INPUTS & SELECTS (ArcaneWorld unified style) === */

.news-create input[type="text"],
.news-create select {
  width: 100% !important;
  height: 44px !important;
  background: #222f3e;
  border: 1px solid rgba(255, 215, 128, 0.25) !important;
  border-radius: 8px !important;
  color: #f3e9d2 !important;
  font-family: 'Philosopher', sans-serif !important;
  font-size: 15px !important;
  padding: 10px 14px !important;
  transition: all 0.25s ease !important;
  outline: none !important;
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.4) !important;
  appearance: none !important;
}

/* Фокус — золотое свечение */
.news-create input[type="text"]:focus,
.news-create select:focus {
  border-color: #facc15 !important;
  box-shadow: 0 0 12px rgba(250, 204, 21, 0.25) !important;
  background: rgba(24, 32, 55, 0.95) !important;
}

/* Hover — мягкий подсвет */
.news-create input[type="text"]:hover,
.news-create select:hover {
  border-color: rgba(250, 204, 21, 0.45) !important;
}

/* Placeholder */
.news-create input::placeholder {
  color: #a5adb5 !important;
}

/* Стрелка у select */
.news-create select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23facc15' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  background-size: 18px !important;
  padding-right: 42px !important;
  cursor: pointer !important;
}

/* Опции селекта */
.news-create select option {
  background: #0f172a !important;
  color: #f3e9d2 !important;
  font-family: 'Philosopher', sans-serif !important;
  font-size: 15px !important;
  padding: 10px 12px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

/* Label */
.news-create label {
  color: #dcd3b3 !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  margin-bottom: 6px !important;
  display: block !important;
}

/* Выравнивание селектов */
.news-create .select-row {
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
}

.news-create .select-row select {
  flex: 1 !important;
}

/* Glow при наведении (лёгкий) */
.news-create input[type="text"]:hover,
.news-create select:hover {
  box-shadow: 0 0 8px rgba(250, 204, 21, 0.15) !important;
}

/* Адаптив */
@media (max-width: 768px) {
  .news-create .select-row {
    flex-direction: column !important;
    align-items: stretch !important;
  }
}




/* === ARCANEWORLD STYLE: CHECKBOX, COVER & BADGE (Font Awesome) === */

.checkbox-group {
  display: flex !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
}

/* === COVER BUTTON === */
/* === COVER BUTTON WITH HOVER PREVIEW === */
.cover-toggle {
  position: relative !important;
  display: inline-block !important;
  --cover-preview: none;
}

.cover-toggle input[type="file"] {
  display: none !important;
}

.cover-toggle label {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 38px !important;
  height: 38px !important;
  background: rgba(15, 23, 42, 0.85) !important;
  border: 1px solid rgba(255, 215, 128, 0.25) !important;
  border-radius: 10px !important;
  cursor: pointer !important;
  transition: all 0.25s ease !important;
  color: #94a3b8 !important;
  font-size: 16px !important;
  position: relative !important;
}

.cover-toggle label:hover {
  border-color: #facc15 !important;
  color: #facc15 !important;
  background: rgba(30, 41, 59, 0.9) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 0 12px rgba(250, 204, 21, 0.25) !important;
}

/* Превью при наведении */
.cover-toggle::before {
  content: '' !important;
  position: absolute !important;
  top: -160px !important; /* Располагаем над кнопкой */
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 140px !important;
  height: 140px !important;
  background: var(--cover-preview, url('../img/placeholder.png')) center/cover no-repeat !important;
  border: 2px solid rgba(255, 215, 128, 0.3) !important;
  border-radius: 8px !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6) !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transition: all 0.3s ease !important;
  z-index: 1000 !important;
  pointer-events: none !important;
}

/* Стрелка к превью */
.cover-toggle::after {
  content: '' !important;
  position: absolute !important;
  top: -20px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  border: 8px solid transparent !important;
  border-top-color: rgba(255, 215, 128, 0.3) !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transition: all 0.3s ease !important;
  z-index: 1001 !important;
  pointer-events: none !important;
}

/* Показываем превью при наведении */
.cover-toggle:hover::before,
.cover-toggle:hover::after {
  opacity: 1 !important;
  visibility: visible !important;
}

/* Активный файл */
.cover-toggle:has(input[type="file"]:valid) label {
  background: rgba(250, 204, 21, 0.15) !important;
  border-color: #facc15 !important;
  color: #facc15 !important;
  box-shadow: 0 0 15px rgba(250, 204, 21, 0.35) !important;
}

/* Tooltip */
.cover-toggle .tooltip {
  content: attr(data-tooltip) !important;
  position: absolute !important;
  bottom: -32px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  background: rgba(15, 23, 42, 0.95) !important;
  color: #e2e8f0 !important;
  padding: 5px 8px !important;
  border-radius: 4px !important;
  font-size: 12px !important;
  border: 1px solid rgba(255, 215, 128, 0.25) !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transition: all 0.3s ease !important;
  pointer-events: none !important;
  white-space: nowrap !important;
}

.cover-toggle:hover .tooltip {
  opacity: 1 !important;
  visibility: visible !important;
}







/* === GENERIC CHECKBOX TOGGLE === */
.checkbox-toggle {
  position: relative !important;
  display: inline-block !important;
}

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

.checkbox-toggle label {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 38px !important;
  height: 38px !important;
  background: #222f3e;
  border: 1px solid rgba(255, 215, 128, 0.25) !important;
  border-radius: 10px !important;
  cursor: pointer !important;
  transition: all 0.25s ease !important;
  color: #94a3b8 !important;
  font-size: 16px !important;
}

.checkbox-toggle label:hover {
  border-color: #facc15 !important;
  color: #facc15 !important;
  box-shadow: 0 0 10px rgba(250, 204, 21, 0.25) !important;
}

.checkbox-toggle input[type="checkbox"]:checked + label {
  background: rgba(250, 204, 21, 0.15) !important;
  border-color: #facc15 !important;
  color: #facc15 !important;
  box-shadow: 0 0 15px rgba(250, 204, 21, 0.35) !important;
}

/* Initial checked state for adminOnly */
#adminOnly:checked + label {
  background: rgba(250, 204, 21, 0.15) !important;
  border-color: #facc15 !important;
  color: #facc15 !important;
  box-shadow: 0 0 15px rgba(250, 204, 21, 0.35) !important;
}

/* Tooltip */
.checkbox-toggle::after {
  content: attr(data-tooltip) !important;
  position: absolute !important;
  /* bottom: -32px !important; */
  left: 50% !important;
  transform: translateX(-50%) !important;
  background: rgba(15, 23, 42, 0.95) !important;
  color: #e2e8f0 !important;
  padding: 5px 8px !important;
  border-radius: 4px !important;
  font-size: 12px !important;
  border: 1px solid rgba(255, 215, 128, 0.25) !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transition: all 0.3s ease !important;
}

.checkbox-toggle:hover::after {
  opacity: 1 !important;
  visibility: visible !important;
}

/* === BADGE TOGGLE === */




/* Адаптив */
@media (max-width: 768px) {
  .checkbox-group {
    justify-content: center !important;
  }
  .checkbox-toggle label,
  .cover-toggle label,
  .badge-toggle label {
    width: 36px !important;
    height: 36px !important;
  }
  .badge-panel {
    width: 240px !important;
  }
}

.form-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin-bottom: 30px !important;
  gap: 20px !important;
}

.heading-title {
  margin: 0 !important;
}

@media (max-width: 768px) {
  .form-header {
    flex-direction: column !important;
    text-align: center !important;
  }
}


#categorySelect {
  transition: opacity 0.25s ease;
}

#categorySelect[style*="display: none"] {
  opacity: 0;
  pointer-events: none;
}

.no-posts {
  text-align: center;
  color: #f3e9d2;
  opacity: 0.8;
  font-size: 24px;
  font-family: 'Philosopher', sans-serif;
  margin-top: 40px;
  transition: opacity 0.3s ease;
}



/* === Badge toggle button === */
.badge-toggle{
  position: relative;
  display: inline-flex;
}

.badge-toggle > label{
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 38px !important;
  height: 38px !important;
  background: #222f3e;
  border: 1px solid rgba(255,215,128,.25) !important;
  border-radius: 10px !important;
  cursor: pointer !important;
  transition: border-color .2s ease, box-shadow .2s ease, color .2s ease, background .2s ease !important;
  color: #94a3b8 !important;
  font-size: 16px !important;
}

.badge-toggle > label:hover{
  border-color: #facc15 !important;
  color: #facc15 !important;
  box-shadow: 0 0 12px rgba(250,204,21,.25) !important;
}

.badge-toggle.active > label{
  background: rgba(250,204,21,.14) !important;
  border-color: #facc15 !important;
  color: #facc15 !important;
  box-shadow: 0 0 14px rgba(250,204,21,.32) !important;
}

/* === Badge panel === */
.badge-panel{
  position: absolute !important;
  top: 46px !important;                 /* чётко под кнопкой */
  left: 50% !important;
  transform: translateX(-50%) translateY(-6px) !important;
  width: 300px !important;
  padding: 14px !important;
  background: linear-gradient(180deg,#0f172a,#0b1222) !important;
  border: 1px solid rgba(255,215,128,.28) !important;
  border-radius: 12px !important;
  box-shadow: 0 12px 28px rgba(0,0,0,.45), inset 0 0 0 1px rgba(255,255,255,.04) !important;
  color: #e5e7eb !important;
  z-index: 3000 !important;

  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: opacity .18s ease, transform .18s ease, visibility .18s linear !important;
}

.badge-toggle.active .badge-panel{
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translateX(-50%) translateY(0) !important;
}

/* Внутри панели */
.badge-panel__header{
  display:flex; align-items:center; justify-content:space-between;
  font-weight:600; color:#facc15; margin-bottom:10px;
}
.badge-panel__close{
  background:transparent; border:0; color:#94a3b8; cursor:pointer; font-size:16px; line-height:1;
}

.badge-field{ display:block; margin-bottom:10px; }
.badge-field__label{ display:block; font-size:.85rem; color:#cbd5e1; margin-bottom:4px; }
.badge-input{
  width:100%; padding:10px 12px; border-radius:8px;
  background:#111827; color:#e5e7eb; border:1px solid rgba(148,163,184,.35);
  outline:none;
}
.badge-input:focus{ border-color:#facc15; box-shadow:0 0 0 2px rgba(250,204,21,.25); }

.badge-row{ display:flex; gap:10px; align-items:flex-end; }
.badge-color{
  width:54px; height:34px; padding:0;
  background:transparent; border:1px solid rgba(255,255,255,.2); border-radius:8px;
  -webkit-appearance: none; appearance: none;
}

.badge-swatches{ display:flex; gap:6px; margin-left:auto; flex-wrap:wrap; }
.badge-swatches button{
  width:28px; height:28px; border-radius:6px;
  border:1px solid rgba(255,255,255,.2); background:var(--c); cursor:pointer;
}

.badge-preview{ margin:12px 0; }
.badge-chip{
  --badge-bg:#facc15; --badge-fg:#111827;
  display:inline-block; padding:6px 10px; border-radius:999px;
  background:var(--badge-bg); color:var(--badge-fg); font-weight:700; font-size:.8rem; letter-spacing:.3px;
}

.badge-actions{ display:flex; gap:8px; justify-content:flex-end; }
.badge-btn{
  padding:8px 12px; border-radius:8px; border:1px solid rgba(250,204,21,.35);
  background:#1f2937; color:#facc15; cursor:pointer; font-weight:600;
}
.badge-btn--ghost{ background:transparent; color:#cbd5e1; border-color:rgba(148,163,184,.35); }

/* Включаем выделение текста внутри панели,
   даже если глобально стоит user-select: none */
.badge-panel, .badge-panel *{ user-select: text !important; }

/* На всякий случай, чтобы панель не обрезалась контейнером */
.checkbox-group{ overflow: visible; }

/* Активная иконка, когда есть текст */
.badge-toggle.has-badge > label{
  background: rgba(250,204,21,.14) !important;
  border-color: #facc15 !important;
  color: #facc15 !important;
  box-shadow: 0 0 14px rgba(250,204,21,.32) !important;
}

/* Неактивная — базовый вид уже есть, но на всякий случай жёстко снимаем подсветку */
.badge-toggle:not(.has-badge) > label{
  background: #222f3e !important;
  border-color: rgba(255, 215, 128, 0.25) !important;
  color: #94a3b8 !important;
  box-shadow: none !important;
}

/* Кнопка "Готово" блокируется, если текста нет */
.badge-btn[disabled]{
  opacity: .5;
  cursor: not-allowed;
  pointer-events: none;
}

