.editmod-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
}

.editmod-window {
  background: var(--bbb2);
  color: var(--white);
  border-radius: 16px;
  padding: 24px;
  width: 860px;
  max-width: 95vw;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.6);
  font-family: var(--bulma-family-primary);
  position: relative;
  animation: fadeIn 0.2s ease-out;
  display: flex;
  flex-direction: column;
}

@keyframes fadeIn {
  from {
    transform: scale(0.95);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.editmod-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: transparent;
  color: var(--white);
  font-size: 24px;
  border: none;
  cursor: pointer;
}
.editmod-close:hover {
  color: var(--red);
}

.editmod-header {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 16px;
}

.editmod-content {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.editmod-left,
.editmod-right {
  flex: 1 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 300px;
}

.editmod-window input,
.editmod-window textarea,
.editmod-window select {
  background: var(--dark2);
  color: var(--white);
  border: 1px solid var(--outline-main);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  outline: none;
  transition: border 0.2s ease;
}

.editmod-window textarea {
  resize: vertical;
  min-height: 100px;
}

.editmod-window input:focus,
.editmod-window textarea:focus,
.editmod-window select:focus {
  border-color: var(--dslite);
}

.editmod-checkboxes {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  justify-content: center;
}

.editmod-checkboxes label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .5rem;
  font-size: 14px;
}

/* Стили для кастомного чекбокса */
.editmod-checkboxes input[type="checkbox"] {
  appearance: none; /* Убираем стандартный стиль чекбокса */
  width: 45px; /* Ширина слайдера */
  height: 25px; /* Высота слайдера */
  background-color: var(--dark2); /* Цвет фона по умолчанию */
  border-radius: 50px; /* Скругляем углы */
  position: relative;
  transition: background-color 0.3s ease; /* Плавный переход фона */
  cursor: pointer;
  outline: 1px solid var(--outline-main);
}

/* Ползунок слайдера */
.editmod-checkboxes input[type="checkbox"]:before {
  content: "";
  position: absolute;
  top: 4.5px;
  left: 4.5px;
  width: 15px;
  height: 15px;
  background-color: var(--white); /* Цвет ползунка */
  border-radius: 50%; /* Скругляем ползунок */
  transition: left 0.3s ease; /* Плавный переход ползунка */
}

/* Когда чекбокс активен, меняем фоновый цвет и передвигаем ползунок */
.editmod-checkboxes input[type="checkbox"]:checked {
  background-color: var(--dslite); /* Цвет фона, когда чекбокс выбран */
}

.editmod-checkboxes input[type="checkbox"]:checked:before {
  left: 26px; /* Перемещаем ползунок в правую часть */
}

/* При наведении на чекбокс */
.editmod-checkboxes input[type="checkbox"]:hover {
  background-color: var(--dark3); /* Цвет фона при наведении */
}

.editmod-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
}

.editmod-save, .replace-button {
  background: var(--dslite);
  color: var(--white);
  padding: 10px 24px;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.editmod-save:hover, .replace-button:hover {
  background: var(--ds);
}



.file-replace-section {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--white2);
}

.file-replace-section input[type="file"] {
  margin-top: 0.5rem;
  background: var(--overlay-dark);
  padding: 0.4rem;
  border-radius: 4px;
  border: 1px solid var(--outline-main);
  color: var(--white);
  width: 100%;
}
.comments-backdrop {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--ten); /* заменяем rgba(0,0,0,0.6) */
  backdrop-filter: blur(6px);
  display: flex;
  justify-content: center;
  align-items: center;
}

.comments-window {
  background: var(--bbb2);
  color: var(--white);
  border-radius: 14px;
  padding: 24px;
  width: 600px;
  max-width: 95%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 0 25px var(--ten); /* заменяем rgba(0,0,0,0.5) */
  position: relative;
}

.comments-close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 22px;
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
}

.comments-list {
  margin: 1rem 0;
}

.comment {
  border-bottom: 1px solid var(--outline-main);
  padding: 8px 0;
}

.comment-header {
  font-size: 14px;
  color: var(--pink); /* вместо var(--gray) - gray у тебя нет, можно добавить если надо */
  display: flex;
  justify-content: space-between;
}

.comment-body {
  padding-top: 4px;
  font-size: 15px;
  line-height: 1.4;
}

.comment-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.comment-form textarea {
  resize: vertical;
  background: var(--dark2);
  color: var(--white);
  border: 1px solid var(--outline-main);
  border-radius: 8px;
  padding: 10px;
  box-sizing: border-box;
}

.comment-form button {
  align-self: flex-end;
  padding: 8px 16px;
  background: var(--dslite);
  color: var(--white);
  border: none;
  border-radius: 8px;
  cursor: pointer;
}


.comment-form button:hover,
.comment-form button:focus {
  background: var(--ds);
  outline: none;
}
.confirm-modal-overlay {
  position: fixed;
  inset: 0;
  background-color: var(--ten); /* вместо rgba(0, 0, 0, 0.4) */
  backdrop-filter: blur(3px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.confirm-modal-content {
  background-color: var(--bbb2); /* вместо #626262cc (полупрозрачный серый) */
  border-radius: 8px;
  padding: 24px;
  color: var(--white);
  max-width: 400px;
  width: 100%;
  text-align: center;
  outline: 1px solid var(--outline-main); /* вместо #ffffff73 */
}

.confirm-modal-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 1rem;
}

.confirm-button,
.cancel-button {
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
}

/* Кнопки по цвету */

.confirm-button.default {
  background-color: var(--darklite); /* вместо #444 */
  color: var(--white);
}

.confirm-button.default:hover,
.confirm-button.default:focus {
  background-color: var(--ds);
  outline: none;
}

.confirm-button.success {
  background-color: var(--ds); /* вместо #28a745 — можно заменить на твой синий */
  color: var(--white);
}

.confirm-button.success:hover,
.confirm-button.success:focus {
  background-color: var(--dslite);
  outline: none;
}

.confirm-button.danger {
  background-color: var(--redopas); /* вместо #dc3545 */
  color: var(--white);
}

.confirm-button.danger:hover,
.confirm-button.danger:focus {
  background-color: var(--red);
  outline: none;
}

.cancel-button.default {
  background-color: var(--bbb); /* вместо #888 */
  color: var(--white);
}

.cancel-button.default:hover,
.cancel-button.default:focus {
  background-color: var(--bbb2);
  outline: none;
}

/* --- Общие стили кнопки --- */
.glow-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;

  border: none;
  border-radius: 0.5rem;
  color: var(--white);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;

  padding: 5px 10px;
  width: max-content;

  overflow: hidden;
  transition: all 0.3s ease;
}
/* 
.glow-button-wrapper {
  flex: 1;
} */

/* --- Disabled --- */
.glow-button.disabled {
  background: var(--gray);
  cursor: not-allowed;
}

/* --- Glow overlay --- */
.glow-button__overlay {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 1;
}

.glow-button:hover:not(.disabled) .glow-button__overlay {
  opacity: 1;
}

/* --- Line animation --- */
.glow-button__line {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s;
  z-index: 2;
}

.glow-button:hover:not(.disabled) .glow-button__line {
  transform: scaleX(1);
}

/* --- Flash --- */
.glow-button__flash {
  position: absolute;
  inset: 0;
  background: var(--white);
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 1;
}

.glow-button:active:not(.disabled) .glow-button__flash {
  opacity: 0.15;
  /* меньше слепящего эффекта */
}

/* --- Neon soft glow --- */
.glow-button__neon {
  position: absolute;
  inset: -8px;
  /* увеличим отступ, чтобы свечение было дальше от кнопки */
  filter: blur(20px);
  /* более мягкое рассеяние */
  opacity: 0;
  transition: opacity 0.5s, transform 0.5s;
  z-index: -1;
}

/* --- Hover Neon (мягкое) --- */
.glow-button:hover:not(.disabled) .glow-button__neon {
  opacity: 0.25;
  /* мягче чем было */
  transform: scale(1.1);
  /* немного увеличиваем для рассеивания */
}


/* --- Wave effect (полукруг) --- */
.glow-button__wave-wrapper {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.glow-button__wave {
  position: absolute;
  top: 0;
  left: 0;
  width: 2rem;
  height: 2rem;
  background: var(--white-transp);
  border-radius: 50%;
  transform: scale(0);
  transition: transform 0.6s, opacity 0.6s;
  opacity: 0;
  pointer-events: none;
}

/* --- При наведении волна увеличивается --- */
.glow-button.secondary:hover .glow-button__wave,
.glow-button.discord:hover .glow-button__wave,
.glow-button.telegram:hover .glow-button__wave {
  transform: scale(3);
  opacity: 0.15;
}

/* --- Контент --- */
.glow-button__label {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
  align-items: center;
}

/* --- Variants --- */

/* Primary */
.glow-button.primary {
  background: var(--dark);
}

.glow-button.primary:hover:not(.disabled) {
  background: var(--bbb);
  box-shadow: 0 0 20px var(--purple-soft);
}

.glow-button.primary .glow-button__overlay,
.glow-button.primary .glow-button__neon {
  background: linear-gradient(to right, var(--purple-soft), var(--pink-soft));
}

.glow-button.primary .glow-button__line {
  background: var(--purple);
}

/* Secondary */
.glow-button.secondary {
  background: var(--ds);
}

.glow-button.secondary:hover:not(.disabled) {
  background: var(--dslite);
  box-shadow: 0 0 20px var(--pink-soft);
}

.glow-button.secondary .glow-button__overlay,
.glow-button.secondary .glow-button__neon {
  background: linear-gradient(to right, var(--pink-soft), var(--purple-soft));
}

.glow-button.secondary .glow-button__line {
  background: var(--pink);
}

/* Discord */
.glow-button.discord {
  background: rgb(var(--discord));
}

.glow-button.discord:hover:not(.disabled) {
  background: rgb(var(--discord-lite));
  box-shadow: 0 0 20px rgba(var(--discord-lite), 0.4);
}

.glow-button.discord .glow-button__overlay,
.glow-button.discord .glow-button__neon {
  background: linear-gradient(to right, rgb(var(--discord)), rgb(var(--discord-lite)));
}

.glow-button.discord .glow-button__line {
  background: var(--white);
}

/* Telegram */
.glow-button.telegram {
  background: rgb(var(--telegram));
}

.glow-button.telegram:hover:not(.disabled) {
  background: rgb(var(--telegram-lite));
  box-shadow: 0 0 20px rgba(var(--telegram-lite), 0.4);
}

.glow-button.telegram .glow-button__overlay,
.glow-button.telegram .glow-button__neon {
  background: linear-gradient(to right, rgb(var(--telegram)), rgb(var(--telegram-lite)));
}

.glow-button.telegram .glow-button__line {
  background: var(--white);
}
/* src/components/modals/LoginModal.css */

.login-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--ten);
  backdrop-filter: blur(6px);
  display: flex;
  justify-content: center;
  align-items: center;
}

.login-modal-window {
  background: var(--bbb2);
  color: var(--white);
  border-radius: 14px;
  padding: 28px 24px;
  width: 380px;
  max-width: 90%;
  box-shadow: 0 0 25px var(--ten);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.login-modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 20px;
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  transition: color 0.2s;
}

.login-modal-close:hover {
  color: var(--pink);
}

.login-modal-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
  text-align: center;
  color: var(--white);
}

.login-modal-buttons {
  display: flex;
  flex-direction: row;
  gap: 12px;
  width: 100%;
  margin-bottom: 16px;
  justify-content: center;
}

.login-modal-button {
  padding: 8px 0;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
  color: var(--white);
  width: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.25);
}

.login-modal-button:disabled {
  opacity: .5;
  cursor: not-allowed;
}

/* Discord button */
.login-modal-button.discord {
  background: var(--dslite);
}

.login-modal-button.discord:hover {
  background: var(--ds);
  transform: translateY(-2px);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
}

/* Telegram button */
.login-modal-button.telegram {
  background: var(--ds);
}

.login-modal-button.telegram:hover {
  background: var(--dslite);
  transform: translateY(-2px);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
}

.login-modal-button i {
  font-size: 16px;
}

/* Блок "Нет аккаунта?" */
.login-modal-alt {
  margin-top: 12px;
  width: 100%;
  text-align: center;
  font-size: 12px;
  color: var(--white2);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.login-modal-alt .discord-small {
  background: var(--dslite);
  border-radius: 10px;
  padding: 6px 0;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  color: var(--white);
  transition: all 0.2s;
}

.login-modal-alt .discord-small:hover {
  background: var(--ds);
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}

/* Подпись для Telegram */
.login-modal-note {
  font-size: 10px;
  color: var(--white2);
  text-align: center;
  margin-top: 4px;
}

.email-subscription-message {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 16px;
  color: var(--white);
}

.email-subscription-select {
  padding: 6px;
  font-size: 16px;
  border-radius: 6px;
  border: 1px solid var(--outline-main);
  background-color: var(--bbb);
  color: var(--white);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.email-subscription-select:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.email-subscription-select:hover:not(:disabled),
.email-subscription-select:focus:not(:disabled) {
  background-color: var(--bbb2);
  outline: none;
}

