.purchase-dialog {
  width: min(660px, calc(100% - 28px));
  max-height: min(84vh, 720px);
  padding: 0;
  overflow: hidden;
  border: 1px solid #4a4a61;
  border-radius: 20px;
  background: #1d202b;
  color: #f8f8fb;
  box-shadow: 0 30px 90px #000b;
}

.purchase-dialog[open] { display: flex; flex-direction: column; }
.purchase-dialog::backdrop { background: #05070cc9; backdrop-filter: blur(5px); }

.purchase-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 27px 30px 24px;
  border-bottom: 1px solid #ffffff14;
  background: radial-gradient(circle at 5% 0%, #35304a 0%, #222431 38%, #1d202b 78%);
}

.purchase-kicker, .purchase-list-kicker {
  display: block;
  color: #b7a5f2;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .18em;
}

.purchase-dialog .purchase-head h2 {
  margin: 8px 0 0;
  padding: 0;
  font-family: Manrope, sans-serif;
  font-size: clamp(24px, 3vw, 29px);
  line-height: 1.2;
  letter-spacing: -.04em;
}

.purchase-head p { margin: 9px 0 0; color: #acafbd; font-size: 13px; line-height: 1.5; }
.purchase-close {
  display: grid;
  flex: none;
  place-items: center;
  width: 34px;
  height: 34px;
  margin: -5px -7px 0 0;
  border: 1px solid #ffffff20;
  border-radius: 50%;
  background: #ffffff0d;
  color: #d9d8e1;
  font-size: 24px;
  line-height: 1;
}
.purchase-close:hover { background: #ffffff1c; color: white; }

.purchase-body { min-height: 0; padding: 22px 30px 23px; overflow-y: auto; scrollbar-color: #5b5b6e transparent; }
.purchase-original {
  display: flex;
  align-items: center;
  gap: 15px;
  min-height: 82px;
  padding: 15px 18px;
  border: 1px solid #aa97e9;
  border-radius: 14px;
  background: linear-gradient(105deg, #3b3355, #2a2a3d 80%);
  transition: border-color .2s, transform .2s, background .2s;
}
.purchase-original:hover { transform: translateY(-2px); border-color: #d0c1ff; background: linear-gradient(105deg, #4b3d71, #323047 80%); }
.purchase-original-mark {
  display: grid;
  flex: none;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  overflow: hidden;
  background: #f4f2f8;
}
.purchase-original-mark img { width: 100%; height: 100%; object-fit: contain; }
.purchase-original-copy { display: grid; gap: 3px; min-width: 0; }
.purchase-original-copy strong { font-size: 17px; }
.purchase-original-copy small { color: #c5c0d4; font-size: 11px; }
.purchase-original-arrow { margin-left: auto; color: #e0d2ff; font-size: 22px; }

.purchase-list-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin: 28px 0 14px; }
.purchase-list-head h3 { margin: 5px 0 0; font-size: 16px; font-weight: 750; letter-spacing: -.02em; }
.purchase-list-head h3 span { margin-left: 3px; color: #9c9cab; font-size: 12px; font-weight: 500; }
.purchase-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(245px, 48%);
  height: 38px;
  padding: 0 11px;
  border: 1px solid #444655;
  border-radius: 9px;
  background: #171a24;
  color: #aaaaba;
}
.purchase-search:focus-within { border-color: #a590e4; box-shadow: 0 0 0 3px #a590e426; }
.purchase-search svg { flex: none; width: 17px; height: 17px; }
.purchase-search input { width: 100%; min-width: 0; padding: 0; border: 0; outline: 0; background: transparent; color: white; font-size: 12px; }
.purchase-search input::placeholder { color: #8f91a0; }

.purchase-platform-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.purchase-platform {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  min-height: 49px;
  padding: 8px 11px;
  border: 1px solid #363945;
  border-radius: 10px;
  background: #252936;
  color: #e8e8ee;
  font-size: 13px;
  font-weight: 650;
  transition: border-color .18s, background .18s;
}
.purchase-platform:hover { border-color: #9583cd; background: #303246; }
.purchase-platform[hidden], .purchase-empty[hidden] { display: none; }
.purchase-platform-mark {
  display: grid;
  flex: none;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  overflow: hidden;
  background: #f4f2f8;
}
.purchase-platform-mark img { width: 100%; height: 100%; object-fit: contain; }
.purchase-platform-mark--gtbuy img { width: auto; max-width: none; height: 100%; }
.purchase-platform-arrow { margin-left: auto; color: #aaa0c5; font-size: 17px; }
.purchase-empty { padding: 30px 0; color: #a7a9b5; text-align: center; font-size: 13px; }

.purchase-foot {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 13px 30px;
  border-top: 1px solid #ffffff14;
  color: #a4a6b1;
  font-size: 11px;
  line-height: 1.4;
}
.purchase-foot-icon { color: #bdacef; font-size: 16px; }

@media (max-width: 560px) {
  .purchase-dialog { max-height: min(88vh, 780px); border-radius: 16px; }
  .purchase-head { padding: 22px 20px 19px; }
  .purchase-head p { font-size: 12px; }
  .purchase-body { padding: 18px 20px 20px; }
  .purchase-list-head { align-items: stretch; flex-direction: column; gap: 11px; margin-top: 24px; }
  .purchase-search { width: 100%; }
  .purchase-platform-list { grid-template-columns: 1fr; }
  .purchase-foot { padding: 12px 20px; }
}
