/* ===== Новый дизайн магазина привилегий (зелёная тема) ===== */
.shop {
  --ac: #22c55e;
  --ac-d: #16a34a;
  --ac-l: #6ee7a8;
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px 20px 64px;
  color: #eef7f1;
  font-family: "Segoe UI", Inter, system-ui, sans-serif;
}
.shop [hidden] { display: none !important; }

/* Промо со скидками */
.shop-promo {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 0 0 30px;
  padding: 22px 26px;
  border-radius: 22px;
  background:
    radial-gradient(90% 180% at 100% 0%, rgba(132, 204, 22, .22), transparent 60%),
    linear-gradient(120deg, #071a12 0%, #08130e 60%, #0b1a12 100%);
  border: 1px solid rgba(34, 197, 94, .38);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .45), inset 0 0 0 1px rgba(255, 255, 255, .03);
}
.shop-promo::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -80px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 197, 94, .24), transparent 70%);
  pointer-events: none;
}
.shop-promo__icon {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #34d399, #047857);
  box-shadow: 0 8px 26px rgba(16, 185, 129, .45);
}
.shop-promo__icon svg { width: 30px; height: 30px; }
.shop-promo__label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ac-l);
  margin-bottom: 8px;
}
.shop-promo__list { display: flex; gap: 10px; flex-wrap: wrap; }
.shop-promo__item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(34, 197, 94, .28);
  font-size: 14px;
  color: #c4d8cb;
}
.shop-promo__item b {
  font-size: 24px;
  line-height: 1;
  color: #fff;
  text-shadow: 0 0 18px rgba(34, 197, 94, .85);
}

/* Вкладки */
.shop__top { margin-bottom: 22px; }
.shop-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 8px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .035);
  border: 1px solid rgba(255, 255, 255, .07);
}
.shop-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: #92a89a;
  font: 600 14px "Segoe UI", Inter, system-ui, sans-serif;
  cursor: pointer;
  transition: .2s;
}
.shop-tab svg { width: 17px; height: 17px; }
.shop-tab:hover { color: #fff; background: rgba(34, 197, 94, .09); }
.shop-tab.is-active {
  color: #fff;
  background: linear-gradient(135deg, rgba(34, 197, 94, .32), rgba(34, 197, 94, .08));
  border-color: rgba(34, 197, 94, .45);
  box-shadow: 0 8px 24px rgba(16, 185, 129, .22);
}

/* Сетка */
.shop__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 26px;
  align-items: start;
}
.shop-category { margin-bottom: 30px; }
.shop-category__title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #fff;
}
.shop-category__title::before {
  content: "";
  width: 5px;
  height: 24px;
  border-radius: 3px;
  background: var(--ac);
  box-shadow: 0 0 14px var(--ac);
}
.shop-category__discount {
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #34d399, #047857);
  box-shadow: 0 0 16px rgba(16, 185, 129, .55);
}
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px;
}
.shop-product {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: 236px;
  padding: 0 0 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, .08);
  background: linear-gradient(180deg, #10251a 0%, #08130d 100%);
  color: #eef7f1;
  text-align: left;
  font: inherit;
  cursor: pointer;
  overflow: hidden;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.shop-product:hover { transform: translateY(-3px); border-color: rgba(34, 197, 94, .5); box-shadow: 0 16px 40px rgba(0, 0, 0, .45); }
.shop-product.is-chosen {
  border-color: var(--ac);
  box-shadow: 0 0 0 2px rgba(34, 197, 94, .3), 0 16px 44px rgba(6, 78, 59, .35);
}
/* Картинка теперь фон верхней части карточки, а не квадратная вставка */
.shop-product__art, .shop-product__mark {
  width: 100%;
  height: 124px;
  object-fit: cover;
  object-position: center 42%;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .5)) brightness(.8);
  transition: transform .25s, filter .25s;
  background: linear-gradient(180deg, #123020, #0a1710);
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
}
.shop-product:hover .shop-product__art, .shop-product.is-chosen .shop-product__art,
.shop-product:hover .shop-product__mark, .shop-product.is-chosen .shop-product__mark {
  transform: scale(1.06);
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .5)) brightness(1);
}
.shop-product__info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 18px;
  margin-top: -22px;
  position: relative;
}
.shop-product__title { font-size: 16px; font-weight: 800; color: #fff; line-height: 1.25; }
.shop-product__badge {
  align-self: flex-start;
  padding: 4px 9px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ac-l);
  background: rgba(34, 197, 94, .1);
  border: 1px solid rgba(34, 197, 94, .3);
}
.shop-product__price { font-size: 13px; color: #92a89a; }
.shop-product__price b { font-size: 20px; color: #fff; }
.shop-old { color: #6d8577; margin-right: 6px; }
.shop-product__sale {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 7px 12px;
  border-radius: 10px;
  font-size: 17px;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, #34d399, #047857);
  box-shadow: 0 6px 20px rgba(16, 185, 129, .55), 0 0 0 1px rgba(255, 255, 255, .16) inset;
  transform: rotate(3deg);
}

/* Панель выбранной привилегии */
.shop__right { position: sticky; top: 18px; }
.shop-details {
  padding: 24px;
  border-radius: 22px;
  border: 1px solid rgba(34, 197, 94, .25);
  background:
    radial-gradient(100% 60% at 100% 0%, rgba(34, 197, 94, .14), transparent 60%),
    linear-gradient(180deg, #0d2118 0%, #08120d 100%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
}
.shop-details__title { font-size: 24px; font-weight: 800; color: #fff; margin-bottom: 18px; }
.shop-details__price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 18px;
  padding: 18px;
  border-radius: 16px;
  background: rgba(0, 0, 0, .35);
  border: 1px solid rgba(255, 255, 255, .06);
}
.shop-details__value { font-size: 38px; font-weight: 900; color: #fff; line-height: 1; text-shadow: 0 0 24px rgba(34, 197, 94, .3); }
.shop-details__old { font-size: 17px; color: #7f9a89; }
.shop-details__duration { font-size: 14px; color: #92a89a; }
.shop-details__sale {
  order: -1;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, #34d399, #047857);
  box-shadow: 0 0 20px rgba(16, 185, 129, .6);
}
.shop-acc__head { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 14px 0; color: #fff; background: none; border: 0; border-bottom: 1px solid rgba(255, 255, 255, .07); font: 700 15px "Segoe UI", Inter, sans-serif; cursor: pointer; }
.shop-acc__body { padding: 12px 0 4px; }
.shop-list { list-style: none; display: grid; gap: 9px; }
.shop-list li { display: flex; align-items: flex-start; gap: 9px; font-size: 14px; color: #c1d5c8; }
.shop-list svg { width: 17px; height: 17px; flex: 0 0 17px; color: var(--ac); margin-top: 2px; }
.shop-servers, .shop-terms__list { display: grid; gap: 8px; }
.shop-server, .shop-term {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 10px;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .03);
  font-size: 14px;
  color: #c1d5c8;
  cursor: pointer;
  transition: .2s;
}
.shop-server:hover, .shop-term:hover { border-color: rgba(34, 197, 94, .4); color: #fff; }
.shop-server:has(input:checked), .shop-term:has(input:checked) {
  border-color: var(--ac);
  background: linear-gradient(135deg, rgba(34, 197, 94, .2), rgba(34, 197, 94, .04));
  color: #fff;
  box-shadow: 0 8px 22px rgba(6, 78, 59, .22);
}
.shop-term b {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px 8px;
  min-width: 0;
  color: #fff;
  white-space: normal;
}
.shop-term__sale {
  flex: 0 0 auto;
  padding: 3px 8px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
  color: #fff;
  white-space: nowrap;
  background: linear-gradient(135deg, #34d399, #047857);
}
.shop-terms { margin: 20px 0; }
.shop-terms__label { display: block; margin-bottom: 10px; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ac-l); }
.shop-details__hint { font-size: 13px; color: #92a89a; margin: 10px 0 0; }
.shop-details__action { margin-top: 24px; }
.shop-buy { width: 100%; padding: 16px 22px; font-size: 17px; border-radius: 14px; }
.shop-details__warn { color: var(--ac-l); font-size: 14px; margin-bottom: 10px; }

@media (max-width: 1023px) {
  .shop__layout { grid-template-columns: 1fr; }
  .shop__right { position: static; }
}
@media (max-width: 600px) {
  .shop { padding: 16px 12px 48px; }
  .shop-promo { padding: 18px; gap: 14px; }
  .shop-promo__icon { flex-basis: 48px; width: 48px; height: 48px; }
  .shop-promo__item b { font-size: 20px; }
  .shop-details__value { font-size: 32px; }
  .shop-term { align-items: flex-start; }
  .shop-term b { flex-direction: column; align-items: flex-end; width: 100%; }
  .shop-term__sale { align-self: flex-end; }
}
