/* Archive SCP — магазин привилегий */
.shop-page {
  --shop-blue: #5b9dff;
  --shop-blue-strong: #3478e5;
  --shop-green: #52e0a0;
  --shop-panel: rgba(13, 22, 38, 0.88);
  --shop-panel-soft: rgba(255, 255, 255, 0.035);
  --shop-border: rgba(133, 171, 225, 0.18);
  --shop-muted: #aab8ce;
  padding: clamp(28px, 5vw, 58px) 16px;
  color: var(--text-color, #edf4ff);
}

.shop-shell {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
}

.shop-frame {
  position: relative;
  overflow: hidden;
  padding: clamp(18px, 3vw, 34px);
  border: 1px solid var(--shop-border);
  border-radius: 24px;
  background:
    radial-gradient(ellipse at 0% 0%, rgba(52, 120, 229, .12), transparent 45%),
    radial-gradient(ellipse at 100% 100%, rgba(82, 224, 160, .07), transparent 42%),
    var(--shop-panel);
  box-shadow: 0 18px 60px rgba(0, 0, 0, .24);
}

.shop-frame__inner {
  width: 100%;
}

.shop-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 28px;
}

.shop-title {
  margin: 0 0 12px;
  color: #f4f8ff;
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  line-height: 1.2;
  font-weight: 850;
  letter-spacing: -.035em;
}

.shop-sub {
  color: var(--shop-muted);
  font-size: .96rem;
  line-height: 1.7;
}

.shop-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.faq-link-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 8px 12px;
  border: 1px solid rgba(91, 157, 255, .26);
  border-radius: 10px;
  background: rgba(52, 120, 229, .08);
  color: #b8d5ff;
  text-decoration: none;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.faq-link-inline:hover {
  background: rgba(52, 120, 229, .17);
  border-color: rgba(91, 157, 255, .52);
  color: #fff;
  transform: translateY(-1px);
}

.faq-link-icon {
  display: block;
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  min-width: 0;
  min-height: 0;
}

.shop-page svg {
  max-width: 100%;
}

.donate-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.donate-card {
  display: flex;
  min-width: 0;
  height: 100%;
  border: 1px solid var(--shop-border);
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(255,255,255,.045), rgba(255,255,255,.018));
  box-shadow: 0 8px 24px rgba(0, 0, 0, .13);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.donate-card:hover {
  transform: translateY(-3px);
  border-color: rgba(91, 157, 255, .48);
  box-shadow: 0 14px 32px rgba(0, 0, 0, .23), 0 0 22px rgba(52, 120, 229, .07);
}

.donate-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  padding: 22px;
}

.donate-name {
  margin: 0 0 12px;
  color: #f3f7ff;
  font-size: 1.18rem;
  line-height: 1.35;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.donate-card .small {
  color: var(--shop-muted);
  font-size: .9rem;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.donate-card .small p {
  margin: 0 0 8px;
}

.donate-card .small ul {
  padding-left: 20px;
  margin: 8px 0;
}

.donate-card .small li + li {
  margin-top: 5px;
}

.donate-card--empty {
  grid-column: 1 / -1;
  border-style: dashed;
  background: rgba(255, 255, 255, .015);
  box-shadow: none;
}

.donate-card--empty:hover {
  transform: none;
  border-color: var(--shop-border);
  box-shadow: none;
}

.donate-card--empty .donate-card__body {
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 22px;
}

.donate-card--empty .donate-name {
  color: #aab8ce;
  font-weight: 650;
}

.donate-card--empty .shop-sub {
  max-width: 46ch;
  text-align: center;
}

.donate-bottom {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
  padding-top: 20px;
}

.field-label {
  margin: 0;
  color: #d8e5f8;
  font-size: .84rem;
  font-weight: 750;
}

.donate-select {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid rgba(133, 171, 225, .24);
  border-radius: 10px;
  outline: none;
  background: #101a2b;
  color: #edf4ff;
  font: inherit;
  font-size: .9rem;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.donate-select:focus {
  border-color: var(--shop-blue);
  box-shadow: 0 0 0 3px rgba(91, 157, 255, .13);
}

.donate-select option {
  background: #101a2b;
  color: #edf4ff;
}

input.donate-select {
  box-sizing: border-box;
}

.price-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 7px;
  margin: 5px 0 2px;
  color: var(--shop-muted);
  font-size: .9rem;
}

.price-val {
  color: var(--shop-green);
  font-size: 1.12rem;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 8px;
}

.btn-min {
  display: inline-flex;
  flex: 1 1 110px;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: 10px;
  font: inherit;
  font-size: .88rem;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, filter .18s ease, background .18s ease, border-color .18s ease;
}

.btn-buy {
  border-color: rgba(91, 157, 255, .5);
  background: linear-gradient(135deg, #3478e5, #4a91fa);
  color: #fff;
  box-shadow: 0 5px 15px rgba(52, 120, 229, .18);
}

.btn-buy:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
  color: #fff;
}

.btn-gift {
  border-color: rgba(82, 224, 160, .38);
  background: rgba(82, 224, 160, .08);
  color: #7be9b7;
}

.btn-gift:hover {
  transform: translateY(-1px);
  background: rgba(82, 224, 160, .15);
  color: #a7f5d0;
}

.btn-disabled,
.btn-disabled:hover {
  border-color: rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .045);
  color: #78869b;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
  filter: none;
  pointer-events: none;
}

.prefix {
  min-height: 46px;
}

#prefix-error {
  line-height: 1.5;
}

.donate-card form {
  width: 100%;
}

.donate-card form .actions button {
  font-family: inherit;
}

@media (max-width: 1000px) {
  .donate-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .shop-page { padding: 24px 12px; }
  .shop-frame { padding: 16px; border-radius: 17px; }
  .shop-head { margin-bottom: 20px; }
  .donate-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .donate-card__body { padding: 18px; }
  .actions { gap: 8px; }
  .btn-min { flex-basis: 100%; }
  .faq-link-inline { font-size: .85rem; }
}

@media (prefers-reduced-motion: reduce) {
  .donate-card,
  .faq-link-inline,
  .btn-min {
    transition: none;
  }
}