/* Общий стиль */
body {
  margin: 0;
  background-color: #0f0f0f;
  font-family: 'Segoe UI', sans-serif;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  overflow-x: hidden;
}
/* === АНИМИРОВАННЫЙ ТЁМНЫЙ ГРАДИЕНТ (БЫСТРЫЙ) === */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;

  background: linear-gradient(
    -45deg,
    #0f0f0f,
    #1a1a2e,
    #16213e,
    #0f3460,
    #533483
  );
  background-size: 400% 400%;
  animation: gradientShift 8s ease infinite; /* 🚀 ускорили до 8s */
}

@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Анимированный логотип */
.logo {
  font-size: 48px;
  font-weight: bold;
  background: linear-gradient(270deg, #0066FF, #00FF66, #FFFF00, #FF4444, #AA00AA, #FFFFFF);
  background-size: 1200% 1200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient 8s ease infinite;
  text-align: center;
}

@keyframes gradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Меню кнопок */
.menu {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.menu button {
  padding: 10px 16px;
  border: none;
  border-radius: 10px;
  background: #2a2a2a;
  color: white;
  cursor: pointer;
  font-size: 15px;
  transition: 0.2s ease;
}

.menu button:hover {
  background: #444;
}

/* Контент */
.content {
  margin-top: 30px;
  padding: 15px;
  text-align: center;
  width: 100%;
  max-width: 500px;
}

.page {
  display: none;
  font-size: 16px;
}

.page.active {
  display: block;
}

/* Форма входа */
.login-form {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.login-form input {
  padding: 10px;
  border-radius: 8px;
  border: none;
  width: 220px;
  font-size: 16px;
  text-align: center;
  background-color: #1f1f1f;
  color: white;
}

.login-form input::placeholder {
  color: #aaaaaa;
}

.login-form button {
  background: #2a2a2a;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.2s ease;
}

.login-form button:hover {
  background: #444;
}

/* Ошибка входа */
.error {
  color: #ff4d4d;
  margin-top: 5px;
  font-size: 14px;
  text-align: center;
}

/* Аккордеон */
.accordion-btn {
  background-color: #2a2a2a;
  color: white;
  cursor: pointer;
  padding: 12px 15px;
  width: 100%;
  text-align: left;
  border: none;
  outline: none;
  transition: background-color 0.2s ease;
  font-size: 16px;
  margin-top: 10px;
  border-radius: 8px;
}

.accordion-btn:hover {
  background-color: #444;
}
#activity .accordion-content {
  box-sizing: border-box;
  width: 100%;
  word-wrap: break-word;
}
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: #1f1f1f;
  border-radius: 0 0 8px 8px;
  margin-bottom: 10px;
  padding: 0 15px;
}

/* При открытии — делаем фиксированную высоту и скролл */
.accordion-btn.active + .accordion-content {
  padding: 10px 15px;
  max-height: 1000px; /* Увеличено — этого хватит для длинных текстов */
  overflow-y: auto;
}
#activity-content {
  max-width: 100%;
  padding: 0 15px;
  box-sizing: border-box;
}

#activity-report {
  margin-bottom: 20px;
}

.accordion {
  margin-bottom: 10px;
}
/* При открытой инструкции — скрываем меню */
#main-screen.instructions-active .menu-grid {
  display: none;
}
#main-screen.profile-active .menu-grid {
  display: none;
}

/* Профиль */
.profile-info {
  background-color: #1a1a1a;
  padding: 20px;
  border-radius: 12px;
  text-align: left;
  font-size: 16px;
  line-height: 1.6;
}
.profile-info b {
  color: #dddddd;
}

/* Аватар в профиле */
.avatar-placeholder, .moderator-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: #2a2a2a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin: 0 auto 15px auto;
  overflow: hidden;
}

.moderator-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Меню-грид */
.menu-grid {
  display: grid;
  grid-template-columns: 175px 175px; /* Чуть шире, как ты просил */
  gap: 10px;
  margin-top: 20px;
  width: 100%;
  justify-content: center;
}

.menu-grid button {
  background-color: #2a2a2a;
  color: white;
  border: none;
  padding: 12px;
  border-radius: 12px;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
  width: 100%; /* Растягиваем по колонке */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.menu-grid button:hover {
  background-color: #444;
}


/* Заголовок инструкций */
#instructions h3 {
  margin-bottom: 15px;
  text-align: center;
}

/* Модераторы */
.moderators-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.moderators-header h3 {
  font-size: 1.4rem;
  color: #fff;
}

#addModeratorBtn {
  background: #8b5cf6;
  color: white;
  border: none;
  font-size: 1rem; /* было 1.2rem — уменьшили */
  border-radius: 8px;
  padding: 4px 10px;
  margin-left: 8px; /* ➤ отступ слева для сдвига */
  cursor: pointer;
  transition: background 0.2s ease;
}

#addModeratorBtn:hover {
  background: #7c3aed;
}


.add-moderator-form {
  display: none;
  flex-direction: column;
  gap: 10px;
  margin-top: 15px;
  padding: 15px;
  background-color: #1e1e1e;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  max-width: 100%;
  box-sizing: border-box;
}

.add-moderator-form.active {
  display: flex;
}

.add-moderator-form input {
  background-color: #2c2c2c;
  border: none;
  padding: 10px;
  border-radius: 8px;
  color: white;
  width: 100%;
  box-sizing: border-box;
}

.add-moderator-form button {
  background-color: #444;
  color: white;
  padding: 12px;
  border: none;
  border-radius: 10px;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
  width: 100%;
  box-sizing: border-box;
}

.add-moderator-form button:hover {
  background-color: #5e5e5e;
}

.add-moderator-form button:active {
  transform: scale(0.97);
}

.add-moderator-form .error {
  color: #ff4c4c;
  font-size: 13px;
  margin-top: 8px;
}

/* Список модераторов */
.moderators-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

/* Карточка модератора */
.moderator-card {
  display: flex;
  align-items: center; /* Добавь это! */
  gap: 10px;
  background-color: #222;
  padding: 12px 16px;
  border-radius: 16px;
  color: white;
  width: 90%;
  max-width: 320px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  position: relative;
  padding-right: 36px;
}


.moderator-card:hover {
  transform: scale(1.02);
  cursor: pointer;
}

.moderator-avatar {
  width: 48px;
  height: 48px;
  background-color: #333;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  flex-shrink: 0;
  overflow: hidden;
}

.moderator-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.moderator-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}

.moderator-info p {
  margin: 0;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.4;
}

.moderator-info p b {
  font-size: 15px;
}
.moderator-info-centered {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.moderator-info-centered p {
  margin: 2px 0;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.player-avatar {
  width: 120px;
  height: 120px;
  background-color: #333;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  flex-shrink: 0;
  overflow: hidden;

  /* Центрирование */
  margin: 0 auto 15px;
}

.moder-name b {
  font-size: 16px;
}

.moder-rank {
  font-size: 13px;
  opacity: 0.9;
}

input, input[type="text"], input[type="password"] {
  background-color: #1f1f1f !important;
  color: white !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  caret-color: white;
}
.rank-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.rank-tabs button {
  background: #2a2a2a;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 15px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.rank-tabs button:hover {
  background: #444;
}
/* Кастомная прокрутка только для ПК */
@media (hover: hover) and (pointer: fine) {
  .accordion-content::-webkit-scrollbar {
    width: 6px;
  }

  .accordion-content::-webkit-scrollbar-track {
    background: transparent;
  }

  .accordion-content::-webkit-scrollbar-thumb {
    background-color: #7c3aed; /* фиолетовый акцент */
    border-radius: 6px;
  }

  .accordion-content::-webkit-scrollbar-thumb:hover {
    background-color: #9f53ff;
  }
}
.moderator-delete {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  font-size: 24px;
  color: #ff4d4d;
  cursor: pointer;
  transition: transform 0.2s;
}

.moderator-delete:hover {
  transform: scale(1.2);
}
.edit-controls {
  text-align: right;
  margin-top: 10px;
}

.edit-btn {
  background: none;
  border: none;
  color: #ffa500;
  cursor: pointer;
  font-size: 14px;
}

.edit-form {
  margin-top: 10px;
}

.edit-textarea {
  width: 100%;
  height: 100px;
  background: #111;
  color: #eee;
  border: 1px solid #333;
  padding: 8px;
  border-radius: 8px;
  resize: vertical;
}

#show-punish-btn.punish-submit {
  background-color: #2ecc71 !important;
  color: white !important;
  padding: 10px 16px !important;
  font-size: 15px !important;
  font-weight: bold !important;
  border-radius: 10px !important;
  border: none !important;
  cursor: pointer !important;
  transition: background-color 0.2s ease !important;
}

#show-punish-btn.punish-submit:hover {
  background-color: #27ae60 !important;
}
.punishment-form-wrapper {
  background-color: #1a1a1a;
  border-radius: 12px;
  margin-top: 12px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
}

.punishment-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.punishment-form select,
.punishment-form input {
  background-color: #2a2a2a;
  color: white;
  border: none;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
}

.punishment-form button {
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: bold;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.punishment-form button:first-of-type {
  background-color: #27ae60;
  color: white;
}

.punishment-form button:first-of-type:hover {
  background-color: #219150;
}

.punishment-form button:last-of-type {
  background-color: #c0392b;
  color: white;
}

.punishment-form button:last-of-type:hover {
  background-color: #a83224;
}
#punishment-form-container {
  background-color: #121212;
  border-radius: 12px;
  padding: 0 15px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
  margin-top: 10px;
}

.punishment-form-inner {
  padding: 15px 0;
}

.punishment-form-inner h4 {
  font-size: 16px;
  margin-bottom: 12px;
  color: #fff;
}

.punishment-form-inner label {
  font-size: 14px;
  margin: 8px 0 4px;
  display: block;
  color: #ccc;
}

.punish-type,
.punish-reason {
  background-color: #1f1f1f;
  color: white;
  border: none;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
  margin-bottom: 12px;
  width: 100%;
  box-sizing: border-box;
}

.punish-buttons {
  margin-top: 10px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.punish-submit {
  background-color: #27ae60;
  color: white;
  padding: 10px 16px;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.punish-submit:hover {
  background-color: #219150;
}

.punish-cancel {
  background-color: #c0392b;
  color: white;
  padding: 10px 16px;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.punish-cancel:hover {
  background-color: #a83224;
}

.avatar-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 10px;
}

.avatar-wrapper {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  background-color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-wrapper img,
.no-avatar {
  width: 100%;
  height: 100%;
  font-size: 30px;
  color: white;
}

.rank-button-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rank-btn {
  font-size: 16px;
  padding: 3px 8px;
  border: none;
  border-radius: 6px;
  background: #222;
  color: white;
  cursor: pointer;
}

.rank-btn:hover {
  background: #444;
}
.moderator-avatar {
  position: relative;
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}

.rank-buttons-corner {
  position: absolute;
  top: 5px;
  right: 5px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  z-index: 2;
}


.avatar-wrapper {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  background-color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-wrapper img,
.no-avatar {
  width: 100%;
  height: 100%;
  font-size: 30px;
  color: white;
}
.rank-buttons-corner {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 5;
}

.rank-buttons-corner .rank-btn {
  background: #2a2a2a;
  color: #ffffff;
  border: 1px solid #3c3c3c;
  padding: 5px 9px;
  font-size: 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
  box-shadow: 0 0 4px rgba(0,0,0,0.3);
}

.rank-buttons-corner .rank-btn:hover {
  background: #3a3a3a;
  transform: scale(1.05);
}

.rank-buttons-corner .rank-btn:active {
  transform: scale(0.95);
}
.rank-btn {
  font-size: 16px;
  padding: 3px 8px;
  border: none;
  border-radius: 6px;
  background: #222;
  color: white;
  cursor: pointer;
}

.rank-btn:hover {
  background: #444;
}
.profile-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 16px;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
}


#profile-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.curator-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  align-items: center;
}

.curator-form input {
  padding: 8px 12px;
  border-radius: 10px;
  background-color: #1e1e1e;
  border: none;
  color: #fff;
  font-size: 14px;
  outline: none;
  flex-grow: 1;
  min-width: 160px;
}

.curator-form .btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background-color: #2c2c2c;
  border: none;
  border-radius: 10px;
  color: white;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.curator-form .btn:hover {
  background-color: #3a3a3a;
}

.curator-form .btn-green {
  background-color: #28a745;
}
.curator-form .btn-green:hover {
  background-color: #218838;
}

.curator-form .btn-red {
  background-color: #dc3545;
}
.curator-form .btn-red:hover {
  background-color: #c82333;
}
.assign-curator-btn {
  background-color: #333;
  border: none;
  border-radius: 10px;
  padding: 6px 10px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.assign-curator-btn:hover {
  background-color: #444;
}

#assign-curator-container {
  margin-left: 8px;
  display: inline-block;
  vertical-align: middle;
}
.back-arrow {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 16px;
  color: #fff;
  background-color: #333;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  z-index: 1000;
  font-weight: 500;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  transition: background 0.2s;
}
.back-arrow:hover {
  background-color: #555;
}
.rank-info-box {
  background: #1a1a1a;
  border-left: 4px solid #4da3ff;
  padding: 16px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.6;
  margin-top: 10px;
  color: #ddd;
}

.rank-info-box ul {
  padding-left: 20px;
  margin-top: 4px;
  margin-bottom: 12px;
}

.rank-info-box b {
  color: #fff;
}
.menu-profile-v2 {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
  color: white;
  text-align: center;
}

.avatar-ring {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 12px;
  background: #222;
}

.avatar-ring img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.circular-text {
  position: absolute;
  width: 100%;
  top: -24px;
  font-size: 10px;
  text-align: center;
  color: red;
  pointer-events: none;
}

.profile-lines p {
  margin: 4px 0;
  font-size: 14px;
}

.profile-info-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 10px;
  padding: 0 20px;
}
.profile-left, .profile-right {
  flex: 1;
  min-width: 160px;
}
.profile-info-clean {
  display: flex;
  justify-content: start;       /* ✅ Больше не растягивает колонки */
  align-items: flex-start;
  gap: 2px;                    /* ✅ Точное расстояние между колонками */
  max-width: 360px;
  margin: 10px auto 0;
  padding: 0 20px;
}


.info-table {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.row {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.key {
  font-size: 13px;
  font-weight: 600;
  color: white;
  white-space: nowrap;
}

.val {
  font-size: 13px;
  color: white;
  white-space: nowrap;
}


.activity-column {
  margin-left: 12px;           /* ✅ подвинем ближе */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.activity-label {
  font-size: 12px;
  font-weight: 500;
  color: white;
  margin: 0 0 2px 0;
  white-space: nowrap;
}



#menu {
  max-width: 100%;
  margin: 0 auto;
}
.history-column {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-left: 20px;
}

.row-toggle {
  font-size: 13px;
  line-height: 1.4;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 4px 0;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}



.row-toggle:hover {
  opacity: 0.85;
}

.accordion-content {
  font-size: 14px;
  margin: 4px 0 10px 0;
  margin-top: 4px;
  color: #ccc;

  overflow: hidden;
  max-height: 0;
  padding: 0 15px;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

#vacation-form-container {
  background-color: #1a1a1a;
  padding: 15px;
  border-radius: 12px;
  margin-top: 10px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
}

#vacation-form-container input[type="date"] {
  background-color: #2a2a2a;
  color: white;
  border: none;
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 10px;
  font-size: 14px;
  margin-right: 6px;
  width: calc(100% - 12px);
  box-sizing: border-box;
}

#vacation-form-container button {
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: bold;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

#vacation-form-container button:first-of-type {
  background-color: #27ae60;
  color: white;
}

#vacation-form-container button:first-of-type:hover {
  background-color: #219150;
}

#vacation-form-container button:last-of-type {
  background-color: #c0392b;
  color: white;
  margin-left: 8px;
}

#vacation-form-container button:last-of-type:hover {
  background-color: #a83224;
}
.user-wrapper {
  margin-bottom: 12px;
}

.user-card {
  background: #222;
  padding: 10px;
  border-radius: 10px;
  transition: 0.2s;
}
.user-card:hover {
  background: #333;
}
.global-toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #4caf50;
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  font-size: 14px;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.3s ease;
}

.global-toast.show {
  opacity: 1;
  pointer-events: auto;
}
/* Модалка наказания — полное соответствие feedback */
#punishment-modal.modal {
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}


#punishment-modal .modal-content {
  background-color: #1e1e1e;
  color: white;
  border-radius: 16px;
  padding: 20px;
  width: 100%;
  max-width: 500px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
  animation: fadeIn 0.3s ease;
}



/* Заголовок */
#punishment-modal h4 {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 18px;
  font-weight: bold;
  color: #ccc;
  text-align: center;
}

/* Поля ввода */
#punishment-modal select,
#punishment-modal textarea {
  width: 100%;
  padding: 10px;
  background-color: #2a2a2a;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  box-sizing: border-box;
  margin-bottom: 12px;
}

#punishment-modal textarea {
  resize: vertical;
  min-height: 80px;
}

/* Кнопки */
#punishment-modal .modal-content > div:last-child {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}

#punishment-modal button {
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

#punishment-modal button:hover {
  opacity: 0.9;
}

#punishment-modal .btn-cancel {
  background-color: #c0392b;
  color: white;
}

#punishment-modal .btn-send {
  background-color: #2ecc71;
  color: white;
}

/* Крестик закрытия */
#punishment-modal .close {
  position: absolute;
  top: 20px;
  right: 28px;
  font-size: 24px;
  color: #aaa;
  cursor: pointer;
  transition: color 0.2s;
}

#punishment-modal .close:hover {
  color: white;
}

/* Плавное появление */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@media (max-width: 360px) {
  #punishment-modal .modal-content {
    max-width: 95%;
  }
}
#vacation-modal.modal {
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

#vacation-modal .modal-content {
  background-color: #1e1e1e;
  color: white;
  border-radius: 16px;
  padding: 20px;
  width: 100%;
  max-width: 500px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
  animation: fadeIn 0.3s ease;
}

#vacation-modal h3 {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 18px;
  font-weight: bold;
  color: #ccc;
  text-align: center;
}

#vacation-modal label {
  display: block;
  margin-bottom: 4px;
  color: #aaa;
  font-size: 14px;
}

#vacation-modal input[type="date"] {
  width: 100%;
  padding: 10px;
  background-color: #2a2a2a;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 12px;
}

#vacation-modal button {
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

#vacation-modal button:hover {
  opacity: 0.9;
}

#vacation-modal .btn-cancel {
  background-color: #c0392b;
  color: white;
}

#vacation-modal .btn-send {
  background-color: #2ecc71;
  color: white;
}

#vacation-modal .close {
  position: absolute;
  top: 20px;
  right: 28px;
  font-size: 24px;
  color: #aaa;
  cursor: pointer;
  transition: color 0.2s;
}

#vacation-modal .close:hover {
  color: white;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 360px) {
  #vacation-modal .modal-content {
    max-width: 95%;
  }
}
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 1000;
}

.modal-content {
  background-color: #1f1f1f;
  padding: 20px;
  border-radius: 12px;
  max-width: 400px;
  width: 90%;
  color: white;
}
/* === Активность: пилюля периода === */
.act-wrap{ display:grid; gap:12px; justify-items:center; }

.act-period{
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .2px;
  color: #fff;
  background: radial-gradient(120% 120% at 10% 0%, rgba(255,255,255,.14), rgba(255,255,255,.06));
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 6px 18px rgba(0,0,0,.22), inset 0 0 0 1px rgba(255,255,255,.04);
  transform: translateY(-4px);
  opacity: 0;
  transition: transform .5s cubic-bezier(.2,.8,.2,1), opacity .45s ease, box-shadow .3s ease, border-color .3s ease;
}
.act-period.show{ transform:none; opacity:1; }
.act-period .cal-ic{ font-size: 15px; }
.act-period .dot{
  width: 6px; height: 6px; border-radius: 50%;
  background: conic-gradient(#60a5fa,#a78bfa,#f472b6,#60a5fa);
  opacity: .9;
}

/* === Активность: сетка и карточки === */
/* Сетка активности — фиксируем колонки, чтобы не “скакали” */
#activity .act-grid{
  display:grid;
  gap:12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width:100%;
}
@media (max-width: 380px){
  #activity .act-grid{ grid-template-columns: 1fr; }
}
@media (min-width: 680px){
  #activity .act-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Карточки: никакой анимации размеров — только прозрачность/сдвиг */
.act-card{
  display:flex; align-items:center; gap:10px;
  padding:12px 14px; border-radius:14px;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border:1px solid rgba(255,255,255,.10);
  box-shadow:0 6px 18px rgba(0,0,0,.12);
  transform: translateY(6px);
  opacity:0;
  will-change: transform, opacity;
  transition: transform .45s cubic-bezier(.2,.8,.2,1), opacity .45s ease, box-shadow .25s ease, border-color .25s ease;
}
.act-card.show{ transform:none; opacity:1; }
.act-card:hover{ box-shadow:0 10px 24px rgba(0,0,0,.16); border-color: rgba(255,255,255,.16); }
.act-ic{ font-size:20px; line-height:1; }
.act-info{ display:grid; }
.act-label{ font-size:12px; opacity:.9; }
.act-val{ font-size:22px; font-weight:800; line-height:1.1; }

/* === БОНУСЫ — шапка-аккордеон === */
#activity .accordion-btn.bonus-toggle{
  background: radial-gradient(120% 120% at 10% -10%, rgba(255,255,255,.16), rgba(255,255,255,.06)) !important;
  border: 1px solid rgba(255,255,255,.14) !important;
  color:#fff !important;
  border-radius:14px !important;
}
#activity .accordion-btn.bonus-toggle:hover{
  background: radial-gradient(120% 120% at 10% -10%, rgba(255,255,255,.20), rgba(255,255,255,.08));
  border-color: rgba(255,255,255,.18);
}
/* chevron */
#activity .accordion-btn.bonus-toggle::after{
  content: "▾";
  margin-left: auto; opacity:.9;
  transition: transform .35s ease, opacity .2s ease;
}
#activity .accordion-btn.bonus-toggle.active::after{ transform: rotate(-180deg); }

/* === БОНУСЫ — панель (нет полосы, норм. паддинги) === */
#activity #bonuses-content{
  border:0 !important;
  box-shadow:none !important;
  margin-bottom:0 !important;   /* ← полосы снизу больше не будет */
}
#activity .accordion-btn.bonus-toggle.active + #bonuses-content{
  border: 1px solid rgba(255,255,255,.10) !important;
  box-shadow: 0 6px 18px rgba(0,0,0,.12) !important;
  max-height: 1600px;
  padding: 10px 14px 14px 14px;
}

/* === БОНУСЫ — карточки === */
.bonus-wrap{
  display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin: 6px 0 10px 0;
}
.bonus-card{
  display:grid; grid-template-columns: 40px 1fr;
  gap:10px; align-items:center;
  padding:12px 14px; border-radius:14px;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 6px 18px rgba(0,0,0,.12);
  transform: translateY(8px); opacity:0;
  transition: transform .45s cubic-bezier(.2,.8,.2,1), opacity .45s ease, box-shadow .25s ease, border-color .25s ease;
}
.bonus-card.show{ transform:none; opacity:1; }
.bonus-card:hover{ box-shadow:0 10px 24px rgba(0,0,0,.16); border-color: rgba(255,255,255,.16); }
.bonus-ic{
  width:40px; height:40px; border-radius:12px;
  display:flex; align-items:center; justify-content:center;
  background: radial-gradient(120% 120% at 10% -10%, rgba(255,255,255,.16), rgba(255,255,255,.06));
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.1);
  font-size:20px;
}
.bonus-title{ font-weight:700; font-size:14px; margin:0 0 2px 0; }
.bonus-text{ font-size:13px; opacity:.92; }

/* Заглушка «нет бонусов» */
.bonus-empty{
  margin: 8px 0 12px 0;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px dashed rgba(255,255,255,.22);
  background: rgba(255,255,255,.03);
  text-align: left;
  font-size: 14px;
  opacity: .9;
}

/* Контейнер бонусов под активом */
.activity-bonuses{ margin-top:14px; }
/* Кнопка "Бонусы" как у активности */
#activity #bonuses-btn {
  background: radial-gradient(120% 120% at 10% -10%, rgba(255,255,255,.16), rgba(255,255,255,.06)) !important;
  border: 1px solid rgba(255,255,255,.14) !important;
  color: #fff !important;
  border-radius: 14px !important;
  padding: 10px 14px !important;
  font-weight: 700;
  display: flex; align-items: center; gap: 8px;
  position: relative;
}
#activity #bonuses-btn:hover{
  background: radial-gradient(120% 120% at 10% -10%, rgba(255,255,255,.20), rgba(255,255,255,.08));
  border-color: rgba(255,255,255,.18);
}
/* chevron */
#activity #bonuses-btn::after{
  content:"▾"; margin-left:auto; opacity:.9;
  transition: transform .35s ease, opacity .2s ease;
}
#activity #bonuses-btn.active::after{ transform: rotate(-180deg); }

/* Панель бонусов: в закрытом виде — полностью прозрачная и без отступов,
   в открытом — такой же «карточный» фон и тень */
#activity #bonuses-content{
  margin: 0;                       /* убрать «полосу» снизу */
  background: transparent;         /* не рисовать фон, когда закрыта */
  border: 0; box-shadow: none;
  border-radius: 14px;
  overflow: hidden;
  max-height: 0;
  padding: 0 14px;
  transition: max-height .35s ease, padding .35s ease, border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
#activity #bonuses-btn.active + #bonuses-content{
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 6px 18px rgba(0,0,0,.12);
  max-height: 1600px;
  padding: 10px 14px 14px 14px;    /* снизу больше — ничего «впритык» */
  margin-top: 8px;
}
/* Кнопка "Бонусы" как у активности */
#activity #bonuses-btn {
  background: radial-gradient(120% 120% at 10% -10%, rgba(255,255,255,.16), rgba(255,255,255,.06)) !important;
  border: 1px solid rgba(255,255,255,.14) !important;
  color: #fff !important;
  border-radius: 14px !important;
  padding: 10px 14px !important;
  font-weight: 700;
  display: flex; align-items: center; gap: 8px;
  position: relative;
}
#activity #bonuses-btn:hover{
  background: radial-gradient(120% 120% at 10% -10%, rgba(255,255,255,.20), rgba(255,255,255,.08));
  border-color: rgba(255,255,255,.18);
}
/* chevron */
#activity #bonuses-btn::after{
  content:"▾"; margin-left:auto; opacity:.9;
  transition: transform .35s ease, opacity .2s ease;
}
#activity #bonuses-btn.active::after{ transform: rotate(-180deg); }

/* Панель бонусов: в закрытом виде — полностью прозрачная и без отступов,
   в открытом — такой же «карточный» фон и тень */
#activity #bonuses-content{
  margin: 0;                       /* убрать «полосу» снизу */
  background: transparent;         /* не рисовать фон, когда закрыта */
  border: 0; box-shadow: none;
  border-radius: 14px;
  overflow: hidden;
  max-height: 0;
  padding: 1 14px;
  transition: max-height .35s ease, padding .35s ease, border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
#activity #bonuses-btn.active + #bonuses-content{
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 6px 18px rgba(0,0,0,.12);
  max-height: 1600px;
  padding: 3px 14px;    /* снизу больше — ничего «впритык» */
  margin-top: 8px;
}
