/* ==================== БАЗА ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --gradient: linear-gradient(135deg, #b537f2, #ff2ecc);
  --bg: #0a0a14;
  --card: #16121f;
  --card-hover: #1e1828;
  --text: #ffffff;
  --text-muted: #b0a0c0;
  --border: #2a2035;
  --green: #3ddc84;
  --orange: #ff9500;
  --red: #ff3b5c;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

/* ==================== ШАПКА ==================== */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background: rgba(10, 10, 20, 0.9);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
}

.logo {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 2px;
}

.logo span {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.header nav {
  display: flex;
  align-items: center;
  gap: 25px;
}

.header nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 15px;
  transition: color 0.2s;
}

.header nav a:hover {
  color: var(--text);
}

.btn-login {
  background: var(--gradient);
  border: none;
  color: white;
  padding: 10px 22px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(181, 55, 242, 0.4);
}

.user-greeting {
  display: flex;
  align-items: center;
  gap: 12px;
}

.greeting-text {
  font-size: 14px;
  color: var(--text);
}

.btn-logout {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-logout:hover {
  border-color: var(--red);
  color: var(--red);
}

/* ==================== ГЕРОЙ ==================== */
.hero {
  padding: 100px 40px 80px;
  text-align: center;
  position: relative;
  background:
    linear-gradient(180deg, rgba(10, 10, 20, 0.7) 0%, var(--bg) 100%),
    url('images/hero-bg.jpg') center/cover no-repeat;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.hero h1 {
  font-size: 64px;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 1px;
  margin-bottom: 25px;
}

.hero h1 span {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 550px;
  margin-bottom: 40px;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-primary {
  background: var(--gradient);
  border: none;
  color: white;
  padding: 14px 32px;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(255, 46, 204, 0.4);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--text-muted);
  color: var(--text);
  padding: 12px 30px;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s;
}

.btn-outline:hover {
  border-color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

/* ==================== ПРИВЕТСТВИЕ ОТ ИРЭН ==================== */
.trainer-greeting {
  padding: 40px 40px 20px !important;
  max-width: 900px !important;
}

.trainer-greeting-inner {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 4px solid transparent;
  border-image: var(--gradient) 1;
  border-radius: 18px;
  padding: 26px 30px;
  position: relative;
  transition: border-color 0.3s, transform 0.3s;
}

.trainer-greeting-inner:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(181, 55, 242, 0.15);
}

.trainer-avatar {
  font-size: 42px;
  line-height: 1;
  flex-shrink: 0;
  filter: drop-shadow(0 0 12px rgba(255, 46, 204, 0.5));
}

.trainer-text {
  flex: 1;
}

.trainer-hello {
  font-size: 19px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.trainer-subtext {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 12px;
}

.trainer-motto {
  font-size: 14px;
  font-style: italic;
  font-weight: 600;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Мобильная адаптация */
@media (max-width: 600px) {
  .trainer-greeting {
    padding: 30px 20px 10px !important;
  }
  .trainer-greeting-inner {
    flex-direction: column;
    gap: 14px;
    padding: 22px 20px;
  }
  .trainer-avatar {
    font-size: 36px;
  }
}

/* ==================== СЕКЦИИ ==================== */
section {
  padding: 80px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

section h2 {
  font-size: 36px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 40px;
}

/* ==================== РАСПИСАНИЕ ==================== */
.schedule h2 {
  margin-bottom: 30px;
}

/* Табы недель */
.week-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.week-tab {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 12px 26px;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.week-tab:hover {
  border-color: var(--text-muted);
  color: var(--text);
}

.week-tab.active {
  background: var(--gradient);
  border-color: transparent;
  color: white;
  box-shadow: 0 6px 18px rgba(181, 55, 242, 0.35);
}

.week-range {
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 30px;
  min-height: 20px;
}

.schedule-loading {
  text-align: center;
  color: var(--text-muted);
  font-size: 15px;
  padding: 30px;
}

/* Сетка карточек */
.schedule-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

/* Карточка дня */
.day-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px;
  transition: transform 0.2s, border-color 0.2s;
}

.day-card:hover {
  border-color: rgba(181, 55, 242, 0.4);
}

.day-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}

.day-date {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* Занятие внутри дня */
.class-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.2s;
}

.class-item:last-child {
  margin-bottom: 0;
}

.class-item:hover {
  background: var(--card-hover);
  border-color: rgba(255, 46, 204, 0.3);
  transform: translateX(3px);
}

.class-item.cancelled {
  opacity: 0.5;
  cursor: not-allowed;
}

.class-item.cancelled:hover {
  transform: none;
}

.class-time {
  font-size: 13px;
  font-weight: 700;
  color: #ff2ecc;
  margin-bottom: 4px;
}

.class-name {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.class-spots {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  display: inline-block;
}

/* Цвета индикатора мест */
.spots-many {
  background: rgba(61, 220, 132, 0.15);
  color: var(--green);
}

.spots-few {
  background: rgba(255, 149, 0, 0.15);
  color: var(--orange);
}

.spots-almost {
  background: rgba(255, 59, 92, 0.15);
  color: var(--red);
}

.spots-none {
  background: rgba(255, 59, 92, 0.25);
  color: var(--red);
}

/* Статус «Записана» */
.class-booked {
  background: rgba(181, 55, 242, 0.1);
  border-color: rgba(181, 55, 242, 0.5);
}

.class-booked .class-name::after {
  content: ' ✅ записана';
  font-size: 12px;
  color: var(--green);
  font-weight: 600;
}

/* ==================== ОТПУСКНОЙ РЕЖИМ ==================== */
.vacation {
  text-align: center;
}

.vacation p {
  color: var(--text-muted);
  margin-bottom: 30px;
}

.vacation-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.vacation .tab {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 12px 26px;
  border-radius: 30px;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s;
}

.vacation .tab:hover {
  color: var(--text);
}

.vacation .tab.active {
  background: var(--gradient);
  color: white;
  border-color: transparent;
}

/* ---------- 8.6: прогресс ---------- */
.vacation-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.vacation-progress-bar {
  flex: 1;
  height: 8px;
  background: var(--border);      /* #2a2035 */
  border-radius: 4px;
  overflow: hidden;
}

.vacation-progress-fill {
  width: 0;
  height: 100%;
  background: var(--gradient);    /* #b537f2 -> #ff2ecc */
  border-radius: 4px;
  transition: width 0.3s ease;
}

.vacation-progress-text {
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ---------- 8.6: карточки упражнений ---------- */
.vacation-exercises {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
  text-align: left;               /* .vacation центрирует всё */
}

.vacation-exercise {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.vacation-exercise:hover {
  background: var(--card-hover);
  border-color: var(--text-muted);
}

.vacation-exercise-check {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border: 2px solid rgba(176, 160, 192, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
}

.vacation-exercise-check::after {
  content: '✓';
  font-size: 14px;
  font-weight: 700;
  color: white;
  opacity: 0;
  transition: opacity 0.2s;
}

.vacation-exercise-content {
  flex: 1;
  min-width: 0;
}

.vacation-exercise-title {
  font-size: 15px;
  font-weight: 700;
}

.vacation-exercise-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.vacation-exercise-done {
  opacity: 0.6;
}

.vacation-exercise-done .vacation-exercise-title {
  text-decoration: line-through;
}

.vacation-exercise-done .vacation-exercise-check {
  background: var(--gradient);
  border-color: transparent;
}

.vacation-exercise-done .vacation-exercise-check::after {
  opacity: 1;
}

.vacation-reset-btn {
  font-size: 14px;
  padding: 10px 24px;
}

@media (min-width: 768px) {
  .vacation-progress,
  .vacation-exercises {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
  }

  .vacation-exercise {
    padding: 18px 20px;
  }

  .vacation-exercise-title {
    font-size: 16px;
  }

  .vacation-exercise-check {
    width: 26px;
    height: 26px;
  }

  .vacation-reset-btn {
    font-size: 15px;
    padding: 12px 30px;
  }
}

/* ---------- 8.7: пустое состояние и модалка упражнения ----------
   Селекторы намеренно усилены (.vacation .x, .modal-content.x):
   иначе правила проигрывают каскаду старым .vacation p (475)
   и .modal-content p (739), у которых специфичность выше. */
.vacation .vacation-empty {
  font-size: 14px;
  font-style: italic;
  text-align: center;
  margin-bottom: 0;
}

.modal-content.vacation-modal-content {
  max-width: 480px;
}

.modal-content .vacation-modal-meta {
  font-size: 13px;
}

#vacation-modal-desc {
  color: var(--text);
  font-size: 14px;
  margin-bottom: 0;
}

.modal-content .vacation-modal-phrase {
  color: var(--text-muted);
  font-style: italic;
  border-left: 2px solid var(--border);
  padding-left: 12px;
  margin-top: 14px;
  margin-bottom: 0;
}

/* ---------- 8.8: финал программы (mobile-first) ---------- */
.vacation-finale {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 20, 0.92);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  /* выше .toast (2000) — иначе тост с фразой окажется ПОВЕРХ фейерверка */
  z-index: 3000;
  justify-content: center;
  align-items: center;
  padding: 20px;
  overflow: hidden;
}

.vacation-finale.active {
  display: flex;
}

.vacation-finale-particles {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  /* без этого частицы перекрывают кнопку «Продолжить» */
  pointer-events: none;
}

.vacation-particle {
  position: absolute;
  width: var(--size, 6px);
  height: var(--size, 6px);
  border-radius: 50%;
  opacity: 0;
  animation: vacationBurst 1.8s ease-out var(--delay, 0s) infinite;
}

@keyframes vacationBurst {
  0% {
    transform: translate(0, 0) scale(0.4);
    opacity: 0;
  }

  15% {
    opacity: 1;
  }

  100% {
    transform: translate(var(--tx), var(--ty)) scale(1);
    opacity: 0;
  }
}

.vacation-finale-content {
  position: relative;
  width: 100%;
  max-width: 420px;
  padding: 28px 22px;
  background: rgba(22, 18, 31, 0.9);
  border: 1px solid var(--border);
  border-radius: 20px;
  text-align: center;
  animation: modalIn 0.35s ease;
}

.vacation-finale-title {
  font-size: 22px;
  margin-bottom: 14px;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.vacation-finale-phrase {
  font-size: 15px;
  color: var(--text);
  margin-bottom: 24px;
}

.vacation-finale-btn {
  width: 100%;
}

@media (min-width: 768px) {
  .vacation-finale-content {
    max-width: 460px;
    padding: 34px 30px;
  }

  .vacation-finale-title {
    font-size: 26px;
  }
}

/* Системная настройка «уменьшить движение»: частицы статичны, без анимации */
@media (prefers-reduced-motion: reduce) {
  .vacation-particle {
    animation: none;
    opacity: 0.7;
    transform: translate(var(--tx), var(--ty));
  }
}

/* ==================== ФУТЕР ==================== */
.footer {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
  font-size: 14px;
  border-top: 1px solid var(--border);
  margin-top: 60px;
}

/* ==================== МОДАЛЬНЫЕ ОКНА ==================== */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(5px);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 35px;
  max-width: 450px;
  width: 100%;
  position: relative;
  animation: modalIn 0.25s ease;
}

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

.modal-content h3 {
  font-size: 22px;
  margin-bottom: 12px;
  padding-right: 30px;
}

.modal-content p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 10px;
}

.modal-time {
  color: #ff2ecc !important;
  font-weight: 600;
}

.modal-spots {
  font-size: 13px !important;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  display: inline-block;
  margin: 10px 0 20px;
}

/* ==================== БЛОК «ЗАПИСАЛИСЬ» (для админа) ==================== */
.session-attendees {
  margin-top: 20px;
  padding: 16px 18px;
  background: rgba(181, 55, 242, 0.06);
  border: 1px solid rgba(181, 55, 242, 0.25);
  border-radius: 14px;
}

.attendees-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.attendees-count {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 3px 10px;
  border-radius: 20px;
}

.attendees-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.attendee-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color 0.2s;
}

.attendee-row:hover {
  border-color: rgba(181, 55, 242, 0.4);
}

.attendee-info {
  flex: 1;
  min-width: 0;
}

.attendee-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}

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

.attendee-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.btn-attendee-small {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
}

.btn-attendee-small:hover {
  border-color: rgba(181, 55, 242, 0.5);
  background: rgba(181, 55, 242, 0.1);
}

.btn-attendee-small.btn-danger:hover {
  border-color: var(--red);
  background: rgba(255, 59, 92, 0.15);
  color: var(--red);
}

.attendees-empty {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
  padding: 12px 0;
}

.btn-add-attendee {
  width: 100%;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  background: rgba(181, 55, 242, 0.15);
  border: 1px dashed rgba(181, 55, 242, 0.5);
  color: #ff2ecc;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-add-attendee:hover {
  background: rgba(181, 55, 242, 0.25);
  border-style: solid;
}

.close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s;
  line-height: 1;
}

.close:hover {
  color: var(--text);
}

/* ==================== АВТОРИЗАЦИЯ ==================== */
.auth-modal-content {
  max-width: 420px;
}

.auth-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 25px;
  background: rgba(255, 255, 255, 0.03);
  padding: 5px;
  border-radius: 30px;
}

.auth-tab {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 10px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.auth-tab.active {
  background: var(--gradient);
  color: white;
}

.auth-modal-content form input,
.auth-modal-content form select,
.auth-modal-content form textarea {
  width: 100%;
  padding: 13px 16px;
  margin-bottom: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s;
}

.auth-modal-content form input:focus,
.auth-modal-content form select:focus,
.auth-modal-content form textarea:focus {
  outline: none;
  border-color: #b537f2;
}

.auth-modal-content form input::placeholder,
.auth-modal-content form textarea::placeholder {
  color: #665a78;
}

.auth-modal-content form h3 {
  margin-bottom: 20px;
  text-align: center;
}

.auth-label {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 6px;
  margin-top: 5px;
}

.remember-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin: 12px 0 20px;
  cursor: pointer;
}

.remember-label input {
  width: auto;
  margin: 0;
  accent-color: #b537f2;
}

.auth-modal-content .btn-primary {
  width: 100%;
  margin-top: 5px;
}

.auth-note,
.auth-warning {
  font-size: 12px !important;
  color: var(--text-muted);
  text-align: center;
  margin-top: 15px;
  line-height: 1.5;
}

.auth-warning {
  background: rgba(255, 149, 0, 0.08);
  border: 1px solid rgba(255, 149, 0, 0.2);
  border-radius: 10px;
  padding: 10px 14px;
  text-align: left;
}

/* ==================== TOAST ==================== */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 14px 26px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  z-index: 2000;
  animation: toastIn 0.3s ease;
  max-width: 90vw;
  text-align: center;
}

.toast.error {
  border-color: var(--red);
  color: var(--red);
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translate(-50%, 20px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* ==================== АДАПТИВ ==================== */
@media (max-width: 768px) {
  .header {
    padding: 15px 20px;
  }

  .header nav {
    gap: 12px;
  }

  .header nav a {
    font-size: 13px;
  }

  .hero {
    padding: 70px 20px 60px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero p {
    font-size: 16px;
  }

  section {
    padding: 60px 20px;
  }

  section h2 {
    font-size: 28px;
  }

  .schedule-list {
    grid-template-columns: 1fr;
  }

  .greeting-text {
    display: none;
  }
}


/* ==================== ЭТАП 6: ЛИЧНЫЙ КАБИНЕТ ==================== */

/* Кнопка «Мои записи» в шапке */
.btn-my-bookings {
  background: transparent;
  border: 1px solid rgba(181, 55, 242, 0.5);
  color: #ffffff;
  padding: 8px 18px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-my-bookings:hover {
  background: rgba(181, 55, 242, 0.15);
  border-color: #b537f2;
}

/* Модалка «Мои записи» — чуть шире стандартной */
.my-bookings-content {
  max-width: 500px;
  max-height: 85vh;
  overflow-y: auto;
}

.my-bookings-loading {
  text-align: center;
  color: #b0a0c0;
  font-size: 14px;
  padding: 30px;
}

/* Статистика — три плитки */
.my-bookings-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 25px;
  padding: 15px;
  background: rgba(181, 55, 242, 0.08);
  border-radius: 14px;
}

.stat-item {
  text-align: center;
}

.stat-value {
  font-size: 24px;
  font-weight: 800;
  background: linear-gradient(135deg, #b537f2, #ff2ecc);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 11px;
  color: #b0a0c0;
  line-height: 1.3;
}

/* Заголовки секций */
.my-bookings-section-title {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  margin: 20px 0 12px;
  letter-spacing: 0.3px;
}

/* Список записей */
.my-bookings-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Одна запись */
.booking-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid #2a2035;
  border-radius: 12px;
  transition: all 0.2s;
}

.booking-item:hover {
  border-color: rgba(181, 55, 242, 0.4);
}

.booking-item-past {
  opacity: 0.75;
}

.booking-item-cancelled {
  opacity: 0.55;
}

.booking-item-visited {
  border-left: 3px solid #3ddc84;
}

.booking-info {
  flex: 1;
  min-width: 0;
}

.booking-date {
  font-size: 12px;
  color: #ff2ecc;
  font-weight: 600;
  margin-bottom: 4px;
}

.booking-title {
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 6px;
}

/* Бейджи статуса */
.booking-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
}

.badge-visited {
  background: rgba(61, 220, 132, 0.15);
  color: #3ddc84;
}

.badge-cancelled {
  background: rgba(255, 59, 92, 0.15);
  color: #ff3b5c;
}

.badge-session-cancelled {
  background: rgba(255, 149, 0, 0.15);
  color: #ff9500;
}

.badge-missed {
  background: rgba(255, 149, 0, 0.15);
  color: #ff9500;
}

/* Кнопка «Отписаться» в записи */
.btn-unbook-small {
  flex-shrink: 0;
  background: transparent;
  border: 1px solid rgba(255, 59, 92, 0.5);
  color: #ff3b5c;
  padding: 7px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-unbook-small:hover {
  background: rgba(255, 59, 92, 0.15);
  border-color: #ff3b5c;
}

/* Пустое состояние */
.empty-note {
  text-align: center;
  color: #665a78;
  font-size: 13px;
  padding: 15px 0;
  font-style: italic;
}


/* Кнопка «Админ-панель» в шапке (только для owner) */
.btn-admin {
  background: linear-gradient(135deg, #b537f2, #ff2ecc);
  border: none;
  color: white;
  padding: 8px 18px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  margin-right: 6px;
}

.btn-admin:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(181, 55, 242, 0.4);
}



/* ==================== ЭТАП 7: АДМИН-ПАНЕЛЬ ==================== */

.admin-content {
  max-width: 700px;
  max-height: 85vh;
  overflow-y: auto;
}

/* Табы внутри админки */
.admin-tabs {
  display: flex;
  gap: 8px;
  margin: 20px 0 20px;
  background: rgba(255, 255, 255, 0.03);
  padding: 5px;
  border-radius: 30px;
}

.admin-tab {
  flex: 1;
  background: transparent;
  border: none;
  color: #b0a0c0;
  padding: 10px;
  border-radius: 25px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.admin-tab:hover {
  color: #ffffff;
}

.admin-tab.active {
  background: linear-gradient(135deg, #b537f2, #ff2ecc);
  color: white;
}

/* Контент вкладок */
.admin-panel {
  margin-top: 10px;
}

.admin-loading {
  text-align: center;
  color: #b0a0c0;
  font-size: 14px;
  padding: 30px;
}

/* Список клиентов */
.admin-clients-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-client-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid #2a2035;
  border-radius: 12px;
  transition: border-color 0.2s;
}

.admin-client-card:hover {
  border-color: rgba(181, 55, 242, 0.4);
}

.admin-client-card.is-cooling {
  border-left: 3px solid #ff3b5c;
}

.admin-client-card.is-owner {
  border-left: 3px solid #b537f2;
}

.admin-client-info {
  flex: 1;
  min-width: 0;
}

.admin-client-name {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 3px;
}

.admin-client-meta {
  font-size: 12px;
  color: #b0a0c0;
  line-height: 1.5;
}

.admin-client-meta .admin-phone {
  color: #ff2ecc;
}

.admin-client-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 6px;
}

.admin-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 12px;
}

.admin-badge-owner {
  background: rgba(181, 55, 242, 0.15);
  color: #b537f2;
}

.admin-badge-client {
  background: rgba(61, 220, 132, 0.15);
  color: #3ddc84;
}

.admin-badge-cooling {
  background: rgba(255, 59, 92, 0.15);
  color: #ff3b5c;
}

.admin-badge-active {
  background: rgba(61, 220, 132, 0.15);
  color: #3ddc84;
}

.admin-client-actions {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.btn-admin-small {
  background: transparent;
  border: 1px solid #2a2035;
  color: #b0a0c0;
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-admin-small:hover {
  border-color: #b537f2;
  color: #ffffff;
}


/* ==================== ЭТАП 7.6: УПРАВЛЕНИЕ РАСПИСАНИЕМ ==================== */

/* Универсальный класс «спрятать элемент» */
.hidden {
  display: none !important;
}

/* ---------- БАННЕР «РАСПИСАНИЕ НА ПАУЗЕ» ---------- */
.schedule-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 24px;
  background: linear-gradient(135deg, rgba(255, 149, 0, 0.15), rgba(255, 59, 92, 0.15));
  border-bottom: 1px solid rgba(255, 149, 0, 0.3);
  color: #ffffff;
  font-size: 14px;
  position: relative;
  z-index: 99;
}

.schedule-banner-icon {
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
}

.schedule-banner-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.35;
}

.schedule-banner-text strong {
  font-weight: 700;
  color: #ff9500;
  font-size: 14px;
}

.schedule-banner-text span {
  font-size: 13px;
  color: var(--text-muted);
}

/* ---------- ОТМЕНЁННЫЕ СЕССИИ В РАСПИСАНИИ ---------- */
.class-item.cancelled .class-time {
  color: #ff9500;
}

.class-item.cancelled .class-name {
  text-decoration: line-through;
  text-decoration-color: rgba(255, 149, 0, 0.6);
}

.class-reason-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(255, 149, 0, 0.15);
  color: #ff9500;
  margin-top: 6px;
}

/* ---------- ЭТАП 9: БЕЙДЖ «МЕСТО ОСВОБОДИЛОСЬ» ---------- */
.class-freed-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  margin-top: 6px;
  background: rgba(255, 149, 0, 0.15);
  color: var(--orange);
  animation: pulse-freed 2s ease-in-out infinite;
}

@keyframes pulse-freed {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.7; }
}

@media (prefers-reduced-motion: reduce) {
  .class-freed-badge { animation: none; }
}

/* ---------- ТЕХВКЛАДКА АДМИНКИ ---------- */

/* Блок в техвкладке */
.admin-tech-block {
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid #2a2035;
  border-radius: 14px;
  margin-bottom: 14px;
}

.admin-section-title {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.admin-section-hint {
  font-size: 12px;
  color: #b0a0c0;
  margin-bottom: 14px;
  line-height: 1.5;
}

/* Плашка «Расписание на паузе» */
.admin-pause-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px;
  background: rgba(255, 149, 0, 0.08);
  border: 1px solid rgba(255, 149, 0, 0.25);
  border-radius: 12px;
  margin-bottom: 12px;
}

.admin-pause-info {
  font-size: 13px;
  color: #ffffff;
  line-height: 1.5;
}

.admin-pause-info strong {
  color: #ff9500;
}

.admin-pause-input {
  width: 100%;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid #2a2035;
  border-radius: 10px;
  color: #ffffff;
  font-size: 13px;
  font-family: inherit;
  transition: border-color 0.2s;
}

.admin-pause-input:focus {
  outline: none;
  border-color: #b537f2;
}

.admin-pause-input::placeholder {
  color: #665a78;
}


/* ---------- ТЕХВКЛАДКА АДМИНКИ: СЕССИИ ---------- */

.admin-sessions-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 400px;
  overflow-y: auto;
  padding-right: 4px;
}

.admin-session-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid #2a2035;
  border-radius: 10px;
  transition: border-color 0.2s;
}

.admin-session-row:hover {
  border-color: rgba(181, 55, 242, 0.4);
}

.admin-session-row.admin-session-cancelled {
  border-left: 3px solid #ff3b5c;
  background: rgba(255, 59, 92, 0.05);
}

.admin-session-row.admin-session-past {
  opacity: 0.5;
}

.admin-session-info {
  flex: 1;
  min-width: 0;
}

.admin-session-date {
  font-size: 12px;
  color: #ff2ecc;
  font-weight: 600;
  margin-bottom: 3px;
}

.admin-session-title {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 4px;
}

.admin-session-meta {
  font-size: 12px;
  color: #b0a0c0;
  line-height: 1.5;
}

.admin-session-meta strong {
  color: #ff2ecc;
  font-weight: 600;
}

.admin-session-badge-cancelled {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 12px;
  background: rgba(255, 59, 92, 0.15);
  color: #ff3b5c;
  margin-left: 6px;
}

.admin-session-actions {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Красная кнопка «Отменить занятие» */
.btn-admin-warn {
  background: transparent;
  border: 1px solid rgba(255, 59, 92, 0.5);
  color: #ff3b5c;
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-admin-warn:hover {
  background: rgba(255, 59, 92, 0.15);
  border-color: #ff3b5c;
}

/* Зелёная кнопка «Вернуть занятие» */
.btn-admin-success {
  background: transparent;
  border: 1px solid rgba(61, 220, 132, 0.5);
  color: #3ddc84;
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-admin-success:hover {
  background: rgba(61, 220, 132, 0.15);
  border-color: #3ddc84;
}

/* Кнопка «Пауза» / «Возобновить» — большая */
.btn-admin-primary {
  background: linear-gradient(135deg, #b537f2, #ff2ecc);
  border: none;
  color: white;
  padding: 10px 20px;
  border-radius: 24px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
}

.btn-admin-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(181, 55, 242, 0.4);
}

.btn-admin-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}


/* ==================== ЭТАП 7.5: УПРАВЛЕНИЕ КЛИЕНТАМИ ==================== */

/* Красная кнопка «🔒 Заблокировать» (маленькая, для карточки клиента) */
.btn-admin-warn-small {
  background: transparent;
  border: 1px solid rgba(255, 59, 92, 0.5);
  color: #ff3b5c;
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-admin-warn-small:hover {
  background: rgba(255, 59, 92, 0.15);
  border-color: #ff3b5c;
}

/* Зелёная кнопка «🔓 Разблокировать» (маленькая, для карточки клиента) */
.btn-admin-success-small {
  background: transparent;
  border: 1px solid rgba(61, 220, 132, 0.5);
  color: #3ddc84;
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-admin-success-small:hover {
  background: rgba(61, 220, 132, 0.15);
  border-color: #3ddc84;
}

/* ==================== ЭТАП 7.8: СТАТИСТИКА ==================== */

/* ---------- 🏆 ЛИДЕРБОРД ---------- */
.admin-leaderboard {
  margin-bottom: 16px;
  padding: 16px 18px;
  background: linear-gradient(135deg, rgba(181, 55, 242, 0.08), rgba(255, 46, 204, 0.08));
  border: 1px solid rgba(181, 55, 242, 0.35);
  border-radius: 14px;
}

.admin-leaderboard-title {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
  letter-spacing: 0.3px;
}

.admin-leaderboard-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.leaderboard-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(181, 55, 242, 0.2);
  border-radius: 10px;
  transition: all 0.2s;
}

.leaderboard-row:hover {
  border-color: rgba(181, 55, 242, 0.5);
  background: rgba(255, 255, 255, 0.06);
}

.leaderboard-place-1 {
  border-color: rgba(255, 200, 60, 0.5);
  background: linear-gradient(90deg, rgba(255, 200, 60, 0.08), rgba(255, 255, 255, 0.03));
}

.leaderboard-place-1:hover {
  border-color: rgba(255, 200, 60, 0.8);
}

.leaderboard-place-2 {
  border-color: rgba(200, 200, 220, 0.4);
  background: linear-gradient(90deg, rgba(200, 200, 220, 0.06), rgba(255, 255, 255, 0.03));
}

.leaderboard-place-3 {
  border-color: rgba(205, 127, 50, 0.4);
  background: linear-gradient(90deg, rgba(205, 127, 50, 0.08), rgba(255, 255, 255, 0.03));
}

.leaderboard-medal {
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
}

.leaderboard-name {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.leaderboard-count {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
  color: #b537f2;
  background: rgba(181, 55, 242, 0.12);
  padding: 4px 10px;
  border-radius: 12px;
  white-space: nowrap;
}


/* ---------- 🔥 ОСТЫВАЮЩИЕ ---------- */
.admin-cooling {
  margin-bottom: 16px;
  padding: 16px 18px;
  background: linear-gradient(135deg, rgba(255, 149, 0, 0.08), rgba(255, 59, 92, 0.06));
  border: 1px solid rgba(255, 149, 0, 0.35);
  border-radius: 14px;
}

.admin-cooling-title {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
  letter-spacing: 0.3px;
}

.admin-cooling-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cooling-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 149, 0, 0.2);
  border-left: 3px solid rgba(255, 149, 0, 0.6);
  border-radius: 10px;
  transition: all 0.2s;
}

.cooling-row:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 149, 0, 0.5);
  border-left-color: rgba(255, 149, 0, 0.9);
}

.cooling-info {
  flex: 1;
  min-width: 0;
}

.cooling-name {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 3px;
}

.cooling-meta {
  font-size: 12px;
  color: #b0a0c0;
  line-height: 1.4;
}


/* ---------- 🎖 МЕДАЛИ В КАРТОЧКЕ КЛИЕНТА ---------- */
.admin-client-medals {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
}

.admin-medal {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(181, 55, 242, 0.15), rgba(255, 46, 204, 0.15));
  color: #ffffff;
  border: 1px solid rgba(181, 55, 242, 0.3);
  white-space: nowrap;
  letter-spacing: 0.2px;
}


/* ---------- АДАПТИВ ---------- */
@media (max-width: 768px) {
  .admin-leaderboard,
  .admin-cooling {
    padding: 12px 14px;
  }

  .leaderboard-medal {
    font-size: 18px;
  }

  .leaderboard-name {
    font-size: 13px;
  }

  .leaderboard-count {
    font-size: 11px;
    padding: 3px 8px;
  }
}

/* ==================== МОДАЛКА «ЗАПИСАТЬ КЛИЕНТА» (B7.2) ==================== */
.add-attendee-content {
  max-width: 480px;
}

.add-attendee-info {
  color: #ff2ecc !important;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 14px !important;
}

.add-attendee-search {
  width: 100%;
  padding: 11px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
  margin-bottom: 14px;
}

.add-attendee-search::placeholder {
  color: var(--text-muted);
}

.add-attendee-search:focus {
  border-color: rgba(181, 55, 242, 0.6);
}

.add-attendee-loading {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
  padding: 12px 0;
}

.add-attendee-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 46vh;
  overflow-y: auto;
  padding-right: 4px;
}

.add-attendee-row {
  cursor: default;
}

.add-attendee-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}

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

.btn-add-attendee-small {
  background: rgba(181, 55, 242, 0.15);
  border: 1px solid rgba(181, 55, 242, 0.45);
  color: #ff2ecc;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.btn-add-attendee-small:hover:not(:disabled) {
  background: rgba(181, 55, 242, 0.3);
  border-color: rgba(181, 55, 242, 0.7);
}

.btn-add-attendee-small:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.add-attendee-empty {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
  padding: 16px 0;
}

.add-attendee-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  margin-left: 6px;
}

/* ==================== C6.2: МОДАЛКА CRUD ЗАНЯТИЙ ==================== */

.admin-classes-content {
  max-width: 560px;
  max-height: 80vh;
  overflow-y: auto;
}

.btn-add-class {
  margin-bottom: 16px;
}

.admin-classes-loading {
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  font-style: italic;
  padding: 20px 0;
}

.admin-classes-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-class-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color 0.2s;
}

.admin-class-row:hover {
  border-color: rgba(181, 55, 242, 0.4);
}

.admin-class-main {
  flex: 1;
  min-width: 0;
}

.admin-class-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-class-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.admin-class-spots {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
  background: rgba(181, 55, 242, 0.12);
  color: #b537f2;
  white-space: nowrap;
}

.admin-class-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.btn-icon {
  width: 32px;
  height: 32px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-icon:hover {
  border-color: rgba(181, 55, 242, 0.5);
  background: rgba(181, 55, 242, 0.1);
}

.btn-icon.btn-danger:hover {
  border-color: var(--red);
  background: rgba(255, 59, 92, 0.15);
  color: var(--red);
}

/* Десктоп: строка шире, meta в одну строку с title */
@media (min-width: 768px) {
  .admin-classes-content {
    max-width: 640px;
  }

  .admin-class-row {
    padding: 14px 18px;
  }

  .admin-class-main {
    display: flex;
    align-items: baseline;
    gap: 10px;
  }

  .admin-class-title {
    flex: 0 1 auto;
    min-width: 0;
  }

  .admin-class-meta {
    margin-top: 0;
  }
}

/* ==================== C6.4: ФОРМА ЗАНЯТИЯ ==================== */

.class-form-content {
  max-width: 460px;
  max-height: 90vh;
  overflow-y: auto;
  color-scheme: dark;
}

.class-form-content form textarea {
  min-height: 74px;
  resize: vertical;
}

.class-form-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.class-form-actions .btn-outline,
.class-form-actions .btn-primary {
  flex: 1;
  width: auto;
  margin-top: 0;
}

/* ==================== C6.4.5: УДАЛЁННЫЕ ЗАНЯТИЯ В СПИСКЕ ==================== */

/* Приглушаем только текст, а не всю строку: иначе бейдж «Удалено»
   и кнопки становились бы нечитаемыми */
.admin-class-row.is-inactive {
  cursor: default;
}

.admin-class-row.is-inactive .admin-class-main,
.admin-class-row.is-inactive .admin-class-spots {
  opacity: 0.6;
}

.admin-class-row.is-inactive .admin-class-title {
  text-decoration: line-through;
}

.admin-badge-deleted {
  display: inline-block;
  flex-shrink: 0;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

.btn-icon:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Гасим hover: иначе заблокированная кнопка выглядит кликабельной */
.btn-icon:disabled:hover {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

/* ==================== C6.5: УДАЛЕНИЕ ЗАНЯТИЯ ==================== */

.delete-class-content {
  max-width: 420px;
}

.delete-class-title {
  font-weight: 700 !important;
  color: var(--text) !important;
  font-size: 16px !important;
  margin-bottom: 4px !important;
}

.delete-class-meta {
  font-size: 13px !important;
  color: var(--text-muted);
  margin-bottom: 18px !important;
}

.delete-class-warning {
  background: rgba(255, 149, 0, 0.1);
  border: 1px solid rgba(255, 149, 0, 0.35);
  border-left: 3px solid var(--orange);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13px;
  color: var(--orange);
  line-height: 1.5;
}

.delete-class-warning ul {
  margin: 6px 0 0;
  padding-left: 18px;
}

.delete-class-warning li {
  margin-bottom: 4px;
}

.delete-class-warning li:last-child {
  margin-bottom: 0;
}

.delete-class-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.delete-class-actions .btn-outline,
.delete-class-actions .btn-danger {
  width: 100%;
  margin-top: 0;
}

/* Красная кнопка действия. Селектор НЕ голый .btn-danger: в проекте
   .btn-danger — модификатор для .btn-icon и .btn-attendee-small,
   голое правило сломало бы те кнопки */
.delete-class-actions .btn-danger {
  background: var(--red);
  border: none;
  color: #fff;
  padding: 14px 32px;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
}

.delete-class-actions .btn-danger:hover {
  background: #ff5570;
  transform: translateY(-1px);
}

.delete-class-actions .btn-danger:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

@media (min-width: 768px) {
  .delete-class-actions {
    flex-direction: row-reverse;
    justify-content: flex-start;
  }

  .delete-class-actions .btn-outline,
  .delete-class-actions .btn-danger {
    width: auto;
    flex: 0 0 auto;
    padding-left: 26px;
    padding-right: 26px;
  }
}

/* ==================== C6.7: ВОССТАНОВЛЕНИЕ ЗАНЯТИЯ ==================== */

/* Кнопка ↩️ — зелёная, чтобы отличалась от ✏️ и 🗑 */
.btn-icon.btn-restore:hover {
  border-color: var(--green);
  background: rgba(61, 220, 132, 0.12);
  color: var(--green);
}