/*
  Магазин LIFE DM — свой слой поверх собранного сайта.

  Сайт (папка «Life RP») — статическая сборка Nuxt: исходников нет, только
  минифицированный _nuxt/*.js. Поэтому магазин не встраивается в бандл, а
  живёт рядом отдельными файлами, как мост у интерфейсов Majestic в игре.

  Вид взят из самой сборки, чтобы магазин не выглядел приклеенным:
    — акцент проекта            #f2c230 (.nav-item.store в style.BFOjzaQc.css)
    — карточка товара           .donate-item: фон #111, радиус 8,
                                внутренняя рамка 1px #ffffff1a, картинка 160px
    — затемнение под окном      .modal: #121212e6 + blur(4px)
  Свои классы с приставкой lfs- (LIFE Shop), чтобы ничего не задеть в бандле.
*/

.lfs-root {
  --lfs-accent: #f2c230;
  --lfs-bg: #111;
  --lfs-bg-hover: #1c1c1c;
  --lfs-line: rgba(255, 255, 255, .1);
  --lfs-text: #fff;
  --lfs-text-dim: rgba(255, 255, 255, .75);
  --lfs-text-faint: rgba(255, 255, 255, .5);
}

/* ── Окно ──────────────────────────────────────────────────────────────── */

.lfs-overlay {
  position: fixed;
  inset: 0;
  /*
    Выше всего, что есть у сайта: у него свои плавающие блоки — стопка
    баннеров (z-index 9999) и всплывающие уведомления (99999). На 9000
    баннер «Ещё не купили GTA V?» закрывал кнопку «Оплатить».
  */
  z-index: 100000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  padding: 48px 20px;
  background-color: #121212e6;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity .2s ease;
}

.lfs-overlay.is-open {
  opacity: 1;
}

.lfs-win {
  width: 100%;
  max-width: 1120px;
  transform: translateY(12px);
  transition: transform .25s cubic-bezier(.2, .8, .2, 1);
}

.lfs-overlay.is-open .lfs-win {
  transform: none;
}

.lfs-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.lfs-title {
  margin: 0;
  color: var(--lfs-text);
  font-size: 32px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: .01em;
  text-transform: uppercase;
}

.lfs-title span {
  color: var(--lfs-accent);
}

.lfs-sub {
  margin: 6px 0 0;
  color: var(--lfs-text-faint);
  font-size: 14px;
  font-weight: 500;
}

.lfs-close {
  margin-left: auto;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, .06);
  color: var(--lfs-text-faint);
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}

.lfs-close:hover {
  background: rgba(255, 255, 255, .12);
  color: var(--lfs-text);
}

.lfs-close svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* ── Вкладки групп ─────────────────────────────────────────────────────── */

.lfs-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.lfs-tab {
  padding: 10px 18px;
  border: none;
  border-radius: 6px;
  background: linear-gradient(180deg, #272727, #1d1d1d);
  color: var(--lfs-text-dim);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .025em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color .2s ease, box-shadow .2s ease;
}

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

.lfs-tab.is-active {
  color: #191307;
  background: var(--lfs-accent);
}

/* ── Сетка товаров ─────────────────────────────────────────────────────── */

.lfs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.lfs-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  padding: 20px;
  border: none;
  border-radius: 8px;
  background: var(--lfs-bg);
  box-shadow: inset 0 0 0 1px var(--lfs-line);
  color: inherit;
  font-family: inherit;
  text-align: center;
  cursor: pointer;
  overflow: hidden;
  transition: background-color .2s ease, box-shadow .2s ease;
}

.lfs-card:hover {
  background-color: var(--lfs-bg-hover);
  box-shadow: inset 0 0 0 1px var(--lfs-accent);
}

/* Цветная полоска сверху слева — как у карточек редкости в сборке. */
.lfs-card__color {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 24px;
  height: 6px;
  border-radius: 2px;
  background-color: var(--lfs-color, #939393);
  box-shadow: 0 0 64px 8px var(--lfs-color, #939393);
}

.lfs-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 120px;
  margin-bottom: 16px;
}

.lfs-card__icon svg {
  width: 72px;
  height: 72px;
  fill: var(--lfs-color, #fff);
  transition: transform .25s ease-in-out;
}

.lfs-card:hover .lfs-card__icon svg {
  transform: scale(1.06);
}

.lfs-card__title {
  color: var(--lfs-text);
  font-size: 18px;
  font-weight: 700;
  line-height: 120%;
  text-wrap: balance;
}

.lfs-card__price {
  margin-top: 12px;
  color: var(--lfs-text-faint);
  font-size: 16px;
  font-weight: 600;
  line-height: 100%;
}

.lfs-card__price b {
  color: var(--lfs-text);
  font-weight: 700;
}

.lfs-badge {
  display: inline-block;
  margin-top: 10px;
  padding: 4px 8px;
  border-radius: 4px;
  background: var(--lfs-accent);
  color: #191307;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
}

/* ── Карточка покупки ──────────────────────────────────────────────────── */

.lfs-item {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  padding: 28px;
  border-radius: 8px;
  background: var(--lfs-bg);
  box-shadow: inset 0 0 0 1px var(--lfs-line);
}

.lfs-item__art {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, .03);
}

.lfs-item__art svg {
  width: 120px;
  height: 120px;
  fill: var(--lfs-color, #fff);
}

.lfs-item__name {
  margin: 0;
  color: var(--lfs-text);
  font-size: 24px;
  font-weight: 800;
  line-height: 1.15;
}

.lfs-item__note {
  margin: 8px 0 0;
  color: var(--lfs-text-faint);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}

.lfs-field {
  margin-top: 20px;
}

.lfs-label {
  display: block;
  margin-bottom: 8px;
  color: var(--lfs-text-faint);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.lfs-input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: none;
  border-radius: 6px;
  background: rgba(255, 255, 255, .06);
  box-shadow: inset 0 0 0 1px var(--lfs-line);
  color: var(--lfs-text);
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  outline: none;
  transition: box-shadow .2s ease;
}

.lfs-input:focus {
  box-shadow: inset 0 0 0 1px var(--lfs-accent);
}

.lfs-input::placeholder {
  color: rgba(255, 255, 255, .3);
  font-weight: 500;
}

/* Быстрый выбор суммы */
.lfs-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.lfs-chip {
  padding: 8px 12px;
  border: none;
  border-radius: 6px;
  background: rgba(255, 255, 255, .06);
  color: var(--lfs-text-dim);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}

.lfs-chip:hover {
  background: rgba(255, 255, 255, .12);
  color: var(--lfs-text);
}

/* Список моделей транспорта */
.lfs-models {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 8px;
  max-height: 260px;
  overflow-y: auto;
  padding-right: 4px;
}

.lfs-model {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 14px;
  border: none;
  border-radius: 6px;
  background: rgba(255, 255, 255, .06);
  color: var(--lfs-text-dim);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background-color .2s ease, box-shadow .2s ease, color .2s ease;
}

.lfs-model:hover {
  background: rgba(255, 255, 255, .12);
  color: var(--lfs-text);
}

.lfs-model.is-active {
  color: var(--lfs-text);
  box-shadow: inset 0 0 0 1px var(--lfs-accent);
}

.lfs-model__price {
  flex: 0 0 auto;
  color: var(--lfs-accent);
  font-weight: 700;
}

/* Цвет ника */
.lfs-colors {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lfs-color {
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}

.lfs-color:hover {
  transform: translateY(-2px);
}

.lfs-color.is-active {
  box-shadow: 0 0 0 2px #111, 0 0 0 4px var(--lfs-accent);
}

/* Итог и кнопка */
.lfs-total {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--lfs-line);
}

.lfs-total__label {
  color: var(--lfs-text-faint);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
}

.lfs-total__value {
  color: var(--lfs-text);
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
}

.lfs-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.lfs-btn {
  height: 48px;
  padding: 0 28px;
  border: none;
  border-radius: 6px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
  cursor: pointer;
  transition: filter .2s ease, background-color .2s ease, color .2s ease;
}

.lfs-btn--pay {
  background: var(--lfs-accent);
  color: #191307;
}

.lfs-btn--pay:hover {
  filter: brightness(1.08);
}

.lfs-btn--pay[disabled] {
  filter: grayscale(.6);
  cursor: default;
}

.lfs-btn--back {
  background: rgba(255, 255, 255, .06);
  color: var(--lfs-text-dim);
}

.lfs-btn--back:hover {
  background: rgba(255, 255, 255, .12);
  color: var(--lfs-text);
}

.lfs-error {
  margin-top: 14px;
  color: #ff6b6b;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.lfs-msg {
  padding: 40px 0;
  color: var(--lfs-text-faint);
  font-size: 16px;
  font-weight: 600;
  text-align: center;
}

.lfs-legal {
  margin-top: 16px;
  color: rgba(255, 255, 255, .35);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
}

/* ── Телефоны ──────────────────────────────────────────────────────────── */

@media (max-width: 860px) {
  .lfs-overlay { padding: 24px 14px; }
  .lfs-title { font-size: 24px; }
  .lfs-item { grid-template-columns: 1fr; gap: 20px; padding: 20px; }
  .lfs-item__art { height: 160px; }
  .lfs-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .lfs-card__icon { height: 88px; }
  .lfs-card__icon svg { width: 56px; height: 56px; }
  .lfs-card__title { font-size: 16px; }
}
