/* ─────────────────────────────────────────────
   КАБИНЕТ ЛОЯЛЬНОСТИ — loyalty-cabinet.css
   Подключить в component/template.php в $css[] ПОСЛЕ style.css
───────────────────────────────────────────── */

/* ─────────────────────────────────────────────
   ОБЁРТКА
───────────────────────────────────────────── */
.lc-wrap {
  border-radius: 12px;
  padding: 0 0 24px;
  font-family: inherit;
  color: var(--main-color, #333);
}

/* ─────────────────────────────────────────────
   НАВИГАЦИЯ
───────────────────────────────────────────── */
.lc-nav {
  position: relative;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px 12px 0 0;
}
.lc-nav__scroll {
  display: flex;
  align-items: center;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 8px 12px 0;
}
.lc-nav__scroll::-webkit-scrollbar { display: none; }
.lc-nav__btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 12px 10px;
  border: none;
  background: none;
  font-size: 13px;
  font-weight: 500;
  color: #888;
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  font-family: inherit;
  flex-shrink: 0;
  border-radius: 6px 6px 0 0;
}
.lc-nav__btn:hover { color: var(--accent-color, #B39B6B); }
.lc-nav__btn.is-active {
  color: var(--accent-color, #B39B6B);
  border-bottom-color: var(--accent-color, #B39B6B);
  font-weight: 600;
}
.lc-nav__icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  stroke: currentColor;
}
.lc-nav__fade {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 32px;
  background: linear-gradient(to right, transparent, transparent);
  pointer-events: none;
  border-radius: 0 12px 0 0;
}

/* ─────────────────────────────────────────────
   СЕКЦИИ
───────────────────────────────────────────── */
.lc-section { padding: 20px 16px 0; }

/* ─────────────────────────────────────────────
   ЗАГОЛОВКИ СЕКЦИЙ — стиль прототипа
   serif, фиолетовый, нижняя граница
───────────────────────────────────────────── */
.lc-section__title {
  font-size: 17px;
  font-weight: 700;
  color: #6B4C8A;
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(0,0,0,0.08);
  font-family: Georgia, 'Times New Roman', serif;
  letter-spacing: -0.2px;
}
/* Заголовок профиля — в строку с кнопкой */
.lc-section__title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(0,0,0,0.08);
}
.lc-section__title-row .lc-section__title {
  margin: 0;
  padding: 0;
  border: none;
}
.lc-profile__edit-inline-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 500;
  color: #8B6914;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
  font-family: inherit;
  flex-shrink: 0;
}
.lc-profile__edit-inline-btn:hover {
  color: #B39B6A;
  background: rgba(179,155,106,0.08);
}
.lc-profile__edit-inline-btn svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
}

/* ─────────────────────────────────────────────
   КАРТА ЛОЯЛЬНОСТИ
───────────────────────────────────────────── */
.lc-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  min-height: 190px;
  max-width: 420px;           /* ограничение на ПК */
  cursor: default;
  transform-style: preserve-3d;
  will-change: transform;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  transition: transform 0.5s ease, box-shadow 0.3s ease;
  user-select: none;
}
.lc-card:hover { box-shadow: 0 16px 48px rgba(0,0,0,0.35); }
.lc-card__shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(
          105deg,
          transparent 20%,
          rgba(255,255,255,0.06) 40%,
          rgba(255,255,255,0.12) 50%,
          rgba(255,255,255,0.06) 60%,
          transparent 80%
  );
  pointer-events: none;
  z-index: 1;
}
.lc-card__content {
  position: relative;
  z-index: 2;
  padding: 18px 20px 16px;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 190px;
}
.lc-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.lc-card__logo-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.lc-card__logo-badge {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}
.lc-card__logo-img {
  /*width: 32px;*/
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
}
.lc-card__logo-name {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.3px;
}
.lc-card__program-tag {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
}
.lc-card__badges {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  flex: 1;
  align-items: center;
}
.lc-card__badge {
  display: flex;
  align-items: center;
  gap: 6px;
}
.lc-card__badge-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.lc-card__badge-icon--gold  { background: rgba(212,168,83,0.25); color: #D4A853; }
.lc-card__badge-icon--blue  { background: rgba(107,142,179,0.25); color: #8BB4D8; }
.lc-card__badge-icon--teal  { background: rgba(80,180,160,0.25); color: #50B4A0; }
.lc-card__badge-icon svg { width: 14px; height: 14px; stroke: currentColor; }
.lc-card__badge-value {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}
.lc-card__badge-unit {
  font-size: 11px;
  color: rgba(255,255,255,0.55);
  display: block;
  line-height: 1;
  margin-top: 2px;
}
.lc-card__bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}
.lc-card__owner { display: flex; flex-direction: row; flex-wrap: wrap; gap: 2px 6px; align-items: baseline; }
.lc-card__owner-label {
  flex: 0 0 100%;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.45);
}
.lc-card__owner-name {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.3px;
}
.lc-card__status-block { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.lc-card__status-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.45);
}
.lc-card__status-name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 1px;
  line-height: 1;
}

/* ─────────────────────────────────────────────
   ПРОГРЕСС-БАРЫ
───────────────────────────────────────────── */
.lc-progress {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 10px;
  padding: 14px 16px;
}
/* Строка со статусами: текущий слева, следующий справа */
.lc-progress__status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}
.lc-progress__status-left,
.lc-progress__status-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.lc-progress__status-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.3px;
  line-height: 1.4;
  color:#fff;
}
.lc-progress__status-tag {
  font-size: 12px;
  color: #888;
  font-weight: 400;
}
/* Строка метрики */
.lc-progress__bar-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: opacity 0.2s;
}
.lc-progress__bar-wrap.is-dimmed { opacity: 0.45; }
.lc-progress__bar-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.lc-progress__bar-label { font-size: 13px; color: #666; font-weight: 400; }
.lc-progress__bar-value { font-size: 13px; font-weight: 600; color: #444; }
.lc-progress__track {
  height: 7px;
  background: rgba(0,0,0,0.08);
  border-radius: 4px;
  overflow: hidden;
}
.lc-progress__fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.lc-progress__divider {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 2px 0;
}
.lc-progress__divider-line { flex: 1; height: 1px; background: rgba(0,0,0,0.1); }
.lc-progress__divider-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 2px 8px;
  border-radius: 10px;
}
.lc-progress__divider-label.is-or { background: rgba(179,155,107,0.15); color: var(--accent-color, #B39B6B); }
.lc-progress__divider-label.is-and { background: rgba(107,142,179,0.15); color: #B39B6B; }
.lc-progress__hint { font-size: 12px; color: #999; font-style: italic; margin-top: 2px; }

/* ─────────────────────────────────────────────
   СТАТИСТИКА — стиль прототипа
   border, rounded-xl, hover lift + gold shadow
───────────────────────────────────────────── */
.lc-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 14px;
}
.lc-stats__card {
  border: 1px solid rgba(0,0,0,0.09);
  border-radius: 12px;
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  background: #fff;
  cursor: default;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.lc-stats__card:hover {
  transform: translateY(-2px);
  border-color: rgba(212,197,160,0.7);
  box-shadow: 0 4px 12px rgba(179,155,106,0.18);
}
/* Выделенная карточка (баллы) */
.lc-stats__card--highlight {
  border-color: rgba(212,168,83,0.35);
  background: linear-gradient(to bottom, #FAF3E0, #fff);
  box-shadow: 0 2px 10px rgba(212,168,83,0.1);
}
.lc-stats__card--highlight:hover {
  box-shadow: 0 6px 18px rgba(212,168,83,0.22);
}
.lc-stats__icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.lc-stats__icon svg,
.lc-stat-icon {
  width: 22px;
  height: 22px;
  stroke: currentColor;
}
.lc-stats__icon--gold  { color: #8B6914; }
.lc-stats__icon--blue  { color: #1565C0; }
.lc-stats__icon--teal  { color: #00796B; }
.lc-stats__value {
  font-size: 22px;
  font-weight: 700;
  color: var(--main-color, #333);
  line-height: 1.1;
}
.lc-stats__label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #999;
  font-weight: 500;
}

/* ─────────────────────────────────────────────
   СТАТУСЫ ПРОГРАММЫ
───────────────────────────────────────────── */
.lc-statuses { display: flex; flex-direction: column; gap: 10px; }
.lc-statuses__item {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.07);
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  display: flex;
}
.lc-statuses__item.is-locked { opacity: 0.65; }
.lc-statuses__accent-bar { width: 4px; flex-shrink: 0; }
.lc-statuses__item-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  gap: 12px;
}
.lc-statuses__item-info { flex: 1; min-width: 0; }
.lc-statuses__item-header { display: flex; align-items: center; gap: 8px; margin-bottom: 3px; }
.lc-statuses__item-name { font-size: 16px; font-weight: 700; color: var(--main-color, #333); }
.lc-statuses__current-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 10px;
  background: rgba(179,155,107,0.15);
  color: var(--accent-color, #B39B6B);
  letter-spacing: 0.3px;
}
.lc-statuses__item-benefit { font-size: 13px; color: #555; margin-bottom: 3px; }
.lc-statuses__item-threshold { font-size: 12px; color: #999; }
.lc-statuses__item-right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex-shrink: 0; }
.lc-statuses__item-progress { font-size: 11px; color: #888; text-align: right; max-width: 160px; line-height: 1.4; }
.lc-statuses__icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.lc-statuses__icon svg { width: 13px; height: 13px; stroke: currentColor; }
.lc-statuses__icon.is-current { color: #fff; }
.lc-statuses__icon.is-unlocked { background: rgba(76,175,80,0.12); color: #4CAF50; }
.lc-statuses__icon.is-locked { background: rgba(0,0,0,0.07); color: #bbb; }

/* ─────────────────────────────────────────────
   БРОНИРОВАНИЯ
───────────────────────────────────────────── */
.lc-bookings { display: flex; flex-direction: column; gap: 12px; }
.lc-booking-card {
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 12px;
  padding: 16px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.lc-booking-card:hover {
  border-color: rgba(212,197,160,0.7);
  box-shadow: 0 2px 8px rgba(179,155,106,0.15);
}
.lc-booking-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.lc-booking-card__id { font-size: 12px; color: #aaa; font-family: monospace; }
.lc-booking-card__body { margin-bottom: 12px; }
.lc-booking-card__room { font-size: 15px; font-weight: 600; color: var(--main-color, #333); margin-bottom: 4px; }
.lc-booking-card__dates { font-size: 13px; color: #666; margin-bottom: 4px; }
.lc-booking-card__price { font-size: 16px; font-weight: 700; color: var(--main-color, #333); }
.lc-booking-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.lc-booking-card__earn { display: flex; gap: 6px; flex-wrap: wrap; }
.lc-booking-card__actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* ─────────────────────────────────────────────
   ИСТОРИЯ БРОНИРОВАНИЙ — стиль прототипа
   карточки с hover-эффектом, "Детали →"
───────────────────────────────────────────── */
.lc-history {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 700px;
  overflow-y: auto;
}
.lc-history-item {
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  padding: 14px 16px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.lc-history-item:hover {
  border-color: rgba(212,197,160,0.7);
  box-shadow: 0 2px 8px rgba(179,155,106,0.15);
}
.lc-history-item__main { flex: 1; min-width: 0; }
.lc-history-item__room { font-size: 14px; font-weight: 600; color: var(--main-color, #333); margin-bottom: 3px; }
.lc-history-item__dates { font-size: 12px; color: #888; }
.lc-history-item__aside { display: flex; align-items: center; gap: 10px; flex-shrink: 0; flex-wrap: wrap; justify-content: flex-end; }
.lc-history-item__nights { font-size: 12px; color: #888; }
.lc-history-item__badge { /* reuse lc-badge */ }
.lc-history-item__detail-btn {
  font-size: 12px;
  font-weight: 500;
  color: #8B6914;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s;
  font-family: inherit;
  white-space: nowrap;
}
.lc-history-item__detail-btn:hover { color: #B39B6A; }

/* ─────────────────────────────────────────────
   ТРАНЗАКЦИИ — стиль прототипа
   таблица с цветными бейджами Начислено/Списано
───────────────────────────────────────────── */
.lc-transactions {
  max-height: 700px;
  overflow-x: auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.lc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
.lc-table thead tr { background: rgba(245,240,232,0.8); }
.lc-table th {
  text-align: left;
  padding: 10px 14px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #888;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  white-space: nowrap;
}
.lc-table td {
  padding: 11px 14px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  color: var(--main-color, #333);
  vertical-align: middle;
}
.lc-table tr:last-child td { border-bottom: none; }
.lc-table tr:hover td { background: rgba(245,240,232,0.5); transition: background 0.15s; }
.lc-table__num { text-align: right; white-space: nowrap; }
.lc-table__date { white-space: nowrap; color: #888; font-size: 12px; }
.lc-table__booking { font-family: monospace; font-size: 12px; color: #aaa; }
.lc-table__amount { font-weight: 600; }
/* Бейджи операций в первой колонке */
.lc-tx-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.lc-tx-badge--credit { background: #f0fdf4; color: #166534; }
.lc-tx-badge--debit  { background: #fef2f2; color: #991b1b; }
/* Сумма */
.lc-table tr.is-credit .lc-table__amount { color: #166534; }
.lc-table tr.is-debit  .lc-table__amount { color: #991b1b; }

/* ─────────────────────────────────────────────
   ПРОФИЛЬ — стиль прототипа
   сетка 2 колонки, поля с bg-secondary
───────────────────────────────────────────── */
.lc-profile { max-width: 600px; }
.lc-profile__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}
/* Ячейка просмотра */
.lc-profile__cell {
  background: rgba(245,240,232,0.7);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border: 1px solid rgba(0,0,0,0.07);
}
.lc-profile__cell-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #999;
  font-weight: 600;
}
.lc-profile__cell-value {
  font-size: 14px;
  font-weight: 500;
  color: var(--main-color, #333);
}
/* Режим редактирования */
.lc-profile__field { display: flex; flex-direction: column; gap: 4px; }
.lc-profile__field-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #888;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}
.lc-profile__lock-icon { display: inline-flex; align-items: center; }
.lc-profile__lock-icon svg { width: 11px; height: 11px; stroke: #bbb; }
.lc-profile__input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  color: var(--main-color, #333);
  background: #fff;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}
.lc-profile__input:focus {
  border-color: #B39B6A;
  box-shadow: 0 0 0 2px rgba(179,155,106,0.15);
}
.lc-profile__field.is-readonly .lc-profile__input {
  background: rgba(0,0,0,0.03);
  color: #999;
  cursor: not-allowed;
}
.lc-profile__select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 30px;
}
.lc-profile__readonly-note {
  font-size: 12px;
  color: #aaa;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.lc-profile__readonly-note svg { width: 12px; height: 12px; stroke: #bbb; }
.lc-profile__save-btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: #B39B6A;
  color: #fff;
  transition: background 0.2s;
}
.lc-profile__save-btn:hover { background: #8B6914; }

/* ─────────────────────────────────────────────
   РЕФЕРАЛЬНАЯ ПРОГРАММА
───────────────────────────────────────────── */
.lc-referral {
  display: grid;
  gap: 14px;
}
.lc-referral__hero {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px;
  border-radius: 16px;
  background:
    radial-gradient(circle at 12% 10%, rgba(179,155,106,0.22), transparent 32%),
    linear-gradient(135deg, rgba(107,76,138,0.10), rgba(179,155,106,0.12));
  border: 1px solid rgba(107,76,138,0.12);
}
.lc-referral__hero-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8B6914;
  background: rgba(255,255,255,0.78);
  box-shadow: 0 8px 24px rgba(107,76,138,0.12);
  flex-shrink: 0;
}
.lc-referral__hero-icon svg {
  width: 21px;
  height: 21px;
  stroke: currentColor;
}
.lc-referral__eyebrow {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8B6914;
  margin-bottom: 4px;
}
.lc-referral__title {
  font-size: 17px;
  font-weight: 700;
  color: var(--main-color, #333);
  margin-bottom: 4px;
}
.lc-referral__text {
  font-size: 13px;
  line-height: 1.45;
  color: #666;
}
.lc-referral__links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}
.lc-referral-link {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,0.04);
}
.lc-referral-link__head {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.lc-referral-link__icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6B4C8A;
  background: rgba(107,76,138,0.08);
  flex-shrink: 0;
}
.lc-referral-link__icon svg,
.lc-referral-link__actions svg,
.lc-referral-code .lc-btn svg,
.lc-referral-qr .lc-btn svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
}
.lc-referral-link__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--main-color, #333);
}
.lc-referral-link__module {
  font-size: 11px;
  color: #999;
  margin-top: 1px;
}
.lc-referral-link__url {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 8px 10px;
  border-radius: 9px;
  background: #f8f7f4;
  color: #6b5a34;
  font-size: 12px;
  direction: ltr;
}
.lc-referral-link__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.lc-referral-code {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #1f2937;
  color: #fff;
}
.lc-referral-code__label {
  font-size: 11px;
  color: rgba(255,255,255,0.62);
  margin-bottom: 4px;
}
.lc-referral-code__value {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.lc-btn.is-copied {
  background: #166534;
  border-color: #166534;
  color: #fff;
}
.lc-referral-qr {
  padding: 24px;
  text-align: center;
}
.lc-referral-qr__title {
  font-size: 17px;
  font-weight: 700;
  color: var(--main-color, #333);
  padding-right: 28px;
}
.lc-referral-qr__subtitle {
  font-size: 13px;
  color: #777;
  margin-top: 4px;
}
.lc-referral-qr__box {
  width: 230px;
  max-width: 100%;
  margin: 18px auto 12px;
  padding: 14px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 12px 36px rgba(0,0,0,0.08);
}
.lc-referral-qr__box img {
  display: block;
  width: 100%;
  height: auto;
}
.lc-referral-qr__url {
  overflow-wrap: anywhere;
  padding: 9px 10px;
  border-radius: 10px;
  background: #f8f7f4;
  color: #6b5a34;
  font-size: 12px;
  line-height: 1.35;
  margin-bottom: 12px;
}

/* ─────────────────────────────────────────────
   БЕЙДЖИ
───────────────────────────────────────────── */
.lc-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.lc-badge--bonus   { background: #f0fdf4; color: #166534; }
.lc-badge--discount { background: #fff7ed; color: #9a3412; }

/* ─────────────────────────────────────────────
   СТАТУСЫ БРОНИРОВАНИЯ
───────────────────────────────────────────── */
.lc-booking-card__status, .lc-status--new,.lc-status--accept { color: #166534; font-size: 12px; font-weight: 600; }
.lc-status--pending   { color: #92400e; font-size: 12px; font-weight: 600; }
.lc-status--cancelled, .lc-status--cancel { color: #991b1b; font-size: 12px; font-weight: 600; }

/* ─────────────────────────────────────────────
   КНОПКИ
───────────────────────────────────────────── */
.lc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
  text-decoration: none;
}
.lc-btn--sm { padding: 5px 10px; font-size: 12px; }
.lc-btn--primary { background: var(--accent-color, #B39B6B); color: #fff; border-color: var(--accent-color, #B39B6B); }
.lc-btn--primary:hover { filter: brightness(0.92); }
.lc-btn--outline { background: transparent; color: var(--accent-color, #B39B6B); border-color: var(--accent-color, #B39B6B); }
.lc-btn--outline:hover { background: rgba(179,155,107,0.08); }
.lc-btn--ghost { background: transparent; color: var(--accent-color, #B39B6B); border-color: rgba(0,0,0,0.12); }
.lc-btn--ghost:hover { background: rgba(245,240,232,0.8); }
.lc-btn--danger { background: transparent; color: #991b1b; border-color: rgba(0,0,0,0.12); }
.lc-btn--danger:hover { background: #fef2f2; border-color: #991b1b; }

/* ─────────────────────────────────────────────
   ОВЕРЛЕЙ ДЕТАЛЕЙ
───────────────────────────────────────────── */
.lc-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.lc-overlay__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  cursor: pointer;
}
.lc-overlay__card {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: 14px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  overflow: hidden;
}
.lc-overlay--anchored {
  position: absolute;
  inset: 0;
  align-items: flex-start;
  padding: 8px 16px 24px;
}
.lc-overlay--anchored .lc-overlay__card {
  margin: 0 auto;
  box-shadow: 0 18px 54px rgba(31,41,55,0.22);
}
.lc-detail { padding: 24px; }
.lc-detail__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 28px;
  height: 28px;
  border: none;
  background: none;
  cursor: pointer;
  color: #888;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
}
.lc-detail__close:hover { background: rgba(0,0,0,0.06); }
.lc-detail__close svg { width: 16px; height: 16px; stroke: currentColor; }
.lc-detail__title { font-size: 16px; font-weight: 700; color: var(--main-color, #333); margin: 0 0 20px; padding-right: 32px; }
.lc-detail__row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid rgba(0,0,0,0.06); gap: 12px; }
.lc-detail__row:last-child { border-bottom: none; }
.lc-detail__row--total {padding-top: 14px; border-top: 2px solid rgba(0,0,0,0.08); border-bottom: none; }
.lc-detail__row--total .lc-detail__value { font-size: 18px; font-weight: 700; }
.lc-detail__label { font-size: 12px; color: #888; flex-shrink: 0; }
.lc-detail__value { font-size: 14px; font-weight: 500; color: var(--main-color, #333); text-align: right; }

/* ─────────────────────────────────────────────
   ЗАГРУЗКА
───────────────────────────────────────────── */
.lc-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  background: transparent;
  border-radius: 12px;
}
.lc-loading__spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(0,0,0,0.1);
  border-top-color: var(--accent-color, #B39B6B);
  border-radius: 50%;
  animation: lc-spin 0.7s linear infinite;
}
@keyframes lc-spin { to { transform: rotate(360deg); } }

/* Aeroflot Bonus card in the guest profile */
.lc-aeroflot {
  margin-top: 24px;
  padding: 22px;
  border: 1px solid rgba(0, 54, 130, 0.14);
  border-radius: 14px;
  background: linear-gradient(135deg, #f7faff 0%, #fff 72%);
}
.lc-aeroflot__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.lc-aeroflot__head-content { flex: 1 1 auto; min-width: 0; }
.lc-aeroflot__logo { width: 180px; max-width: 42%; height: auto; flex: 0 1 auto; }
.lc-aeroflot__title { color: #003682; font-size: 17px; font-weight: 700; }
.lc-aeroflot__text { margin-top: 4px; color: #667085; font-size: 13px; line-height: 1.45; }
.lc-aeroflot__connected {
  margin-top: 18px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 4px 18px rgba(0, 54, 130, 0.07);
}
.lc-aeroflot__status { color: #178246; font-size: 12px; font-weight: 700; }
.lc-aeroflot__number { margin-top: 3px; color: #1d2939; font-family: monospace; font-size: 16px; letter-spacing: .08em; }
.lc-aeroflot__connected-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.lc-aeroflot__form { margin-top: 18px; }
.lc-aeroflot__form-row { display: flex; align-items: center; gap: 8px; }
.lc-aeroflot__form-row .lc-profile__input { flex: 1 1 220px; min-width: 0; }
.lc-aeroflot__form-row .lc-btn { flex: 0 0 auto; }
.lc-aeroflot__error { min-height: 18px; margin-top: 7px; color: #d92d20; font-size: 12px; }

/* ─────────────────────────────────────────────
   ПУСТЫЕ СОСТОЯНИЯ
───────────────────────────────────────────── */
.lc-empty {
  padding: 32px 16px;
  text-align: center;
  color: #aaa;
  font-size: 14px;
  border: 1px dashed rgba(0,0,0,0.12);
  border-radius: 10px;
  background: #fff;
}

/* ─────────────────────────────────────────────
   АДАПТИВ
───────────────────────────────────────────── */
@media (max-width: 600px) {
  .lc-card { min-height: 170px; max-width: 100%; }
  .lc-card__status-name { font-size: 18px; }
  .lc-stats { grid-template-columns: repeat(2, 1fr); }
  .lc-profile__grid { grid-template-columns: 1fr; }
  .lc-aeroflot { padding: 18px; }
  .lc-aeroflot__connected { align-items: flex-start; flex-direction: column; }
  .lc-aeroflot__form-row { align-items: stretch; flex-direction: column; }
  .lc-aeroflot__form-row .lc-profile__input { flex-basis: auto; }
  .lc-aeroflot__form-row .lc-btn { width: 100%; }
  .lc-statuses__item-progress { display: none; }
  .lc-booking-card__footer { flex-direction: column; align-items: flex-start; }
  .lc-history-item { flex-direction: column; align-items: flex-start; }
  .lc-history-item__aside { justify-content: flex-start; }
  .lc-detail { padding: 18px; }
  .lc-referral__hero { flex-direction: column; }
  .lc-referral-code { flex-direction: column; align-items: flex-start; }
  .lc-referral-link__actions { flex-direction: column; }
  .lc-referral-link__actions .lc-btn,
  .lc-referral-code .lc-btn { width: 100%; }
  .lc-referral-qr { padding: 20px; }
  .lc-overlay__card { max-width: 100%; border-radius: 14px 14px 0 0; position: fixed; bottom: 0; left: 0; right: 0; max-height: 85vh; overflow-y: auto; }
  .lc-overlay { align-items: flex-end; padding: 0; }
  .lc-overlay--anchored {
    position: absolute;
    inset: 0;
    align-items: flex-start;
    padding: 8px 12px 24px;
  }
  .lc-overlay--anchored .lc-overlay__card {
    position: relative;
    bottom: auto;
    left: auto;
    right: auto;
    border-radius: 14px;
    max-height: none;
  }
}

.lc-card__number {
  display: block;
  font-family: monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.65);
}
