@font-face {
  font-family: "Montserrat";
  src: url("../fonts/Montserrat-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/Montserrat-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/Montserrat-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --steam-bg: #050017;
  --steam-panel: #8665f040;
  --steam-border: #8665f066;
  --steam-primary: #8665f0;
  --steam-text: #ffffff;
  --steam-muted: rgba(255, 255, 255, 0.7);
  --steam-subtle: rgba(255, 255, 255, 0.5);
  --steam-error: #f06567;
  --steam-success: #00ff93;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--steam-bg);
  color: var(--steam-text);
  font-family: "Montserrat", sans-serif;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield;
}

.steam-page {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 16px 16px 96px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.steam-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.steam-logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.steam-logo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
}

.steam-title {
  margin: 0;
  font-size: 27px;
  font-weight: 700;
  line-height: 1.15;
}

.steam-title span {
  color: var(--steam-primary);
}

.steam-title small {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  font-weight: 500;
  color: var(--steam-muted);
}

.currency-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 4px;
  border-radius: 10px;
  background: var(--steam-panel);
  border: 1px solid rgba(134, 101, 240, 0.2);
}

.currency-tab {
  border: 0;
  border-radius: 8px;
  padding: 12px;
  background: transparent;
  color: var(--steam-text);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.currency-tab.active {
  background: var(--steam-primary);
}

.steam-note {
  margin: 0;
  font-size: 13px;
  line-height: 1.35;
  color: var(--steam-muted);
}

.steam-payment {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--steam-muted);
}

.form-field {
  width: 100%;
  min-height: 56px;
  border-radius: 8px;
  border: 1px solid rgba(134, 101, 240, 0.2);
  background: var(--steam-panel);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
}

.form-field input {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--steam-text);
  outline: none;
  font-size: 16px;
}

.form-field input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.currency-prefix {
  font-size: 18px;
  line-height: 1;
  color: var(--steam-muted);
}

.link-btn {
  flex-shrink: 0;
  border: 0;
  background: transparent;
  color: #a8abd3;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 12px;
  white-space: nowrap;
  cursor: pointer;
  padding: 0;
}

.form-field.is-error {
  border-color: var(--steam-error);
}

.form-field.is-active {
  border-color: var(--steam-primary);
}

.form-error,
.form-success {
  margin: 0;
  font-size: 13px;
  line-height: 1.35;
  min-height: 16px;
}

.form-error {
  color: var(--steam-error);
}

.form-success {
  color: var(--steam-success);
}

.price-presets {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.preset-btn {
  border: 1px solid var(--steam-border);
  background: transparent;
  color: var(--steam-text);
  border-radius: 8px;
  height: 44px;
  font-size: 15px;
  cursor: pointer;
}

.preset-btn:hover {
  background: rgba(134, 101, 240, 0.2);
}

.summary {
  border: 1px solid rgba(134, 101, 240, 0.35);
  border-radius: 10px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.summary h2 {
  margin: 0;
  font-size: 20px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 15px;
}

.summary-row span {
  color: var(--steam-muted);
}

.summary-row strong,
.summary-row strong span {
  color: var(--steam-text);
}

.pay-btn {
  width: 100%;
  border: 0;
  border-radius: 8px;
  height: 52px;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  background: var(--steam-primary);
  color: var(--steam-text);
}

.pay-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.pay-note {
  margin: 0;
  font-size: 13px;
  color: var(--steam-subtle);
}

.form-status {
  min-height: 16px;
}

.instruction,
.faq {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.instruction h2,
.faq h2 {
  margin: 0;
  font-size: 20px;
  text-transform: uppercase;
}

.instruction-card {
  border: 1px solid rgba(134, 101, 240, 0.5);
  border-radius: 8px;
  padding: 12px;
}

.instruction-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  color: var(--steam-muted);
}

.instruction-card a {
  color: var(--steam-primary);
}

.instruction-badge {
  margin-top: 10px;
  padding: 10px;
  border-radius: 8px;
  background: rgba(134, 101, 240, 0.2);
  color: var(--steam-text);
}

.banner {
  position: relative;
  border-radius: 12px;
  padding: 18px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  overflow: hidden;
}

.banner h3 {
  margin: 0;
  font-size: 18px;
}

.banner p {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--steam-muted);
  line-height: 1.35;
}

.banner a {
  margin-top: 12px;
  display: inline-block;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.banner img {
  width: 90px;
  height: 90px;
  object-fit: contain;
  align-self: center;
}

.banner-steam-cards {
  border: 2px solid rgba(0, 255, 147, 0.25);
  background: #121729;
}

.banner-steam-cards a {
  background: rgba(0, 255, 147, 0.12);
  color: #00ff93;
}

.banner-telegram {
  border: 2px solid #229ed9;
  background: #121729;
}

.banner-telegram a {
  background: #229ed9;
  color: white;
}

.banner-telegram img {
  width: 58px;
  height: 58px;
}

.faq-item {
  border-bottom: 1px solid rgba(134, 101, 240, 0.2);
  padding: 4px 0 12px;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding-right: 26px;
  position: relative;
  font-size: 15px;
  line-height: 1.35;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  font-size: 18px;
  color: var(--steam-primary);
}

.faq-item[open] summary::after {
  content: "-";
}

.faq-item p {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--steam-subtle);
}

.faq-item a {
  margin-top: 8px;
  display: inline-block;
  color: var(--steam-primary);
}

.steam-footer {
  margin-top: 8px;
  text-align: center;
}

.steam-footer p {
  margin: 0;
  color: var(--steam-muted);
  font-size: 14px;
}

.steam-footer a {
  color: var(--steam-text);
  margin-top: 8px;
  display: inline-block;
  text-decoration: underline;
}

.steam-modal {
  position: fixed;
  z-index: 99;
  inset: 0;
  background: rgba(5, 0, 23, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  flex-direction: column;
  gap: 10px;
}

.steam-modal img {
  width: 100%;
  max-width: 520px;
  border-radius: 10px;
  object-fit: contain;
}

.steam-modal-close {
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  color: var(--steam-text);
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
}

.hidden {
  display: none !important;
}

@media (max-width: 420px) {
  .steam-title {
    font-size: 24px;
  }

  .price-presets {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form-field {
    padding: 10px 12px;
  }

  .link-btn {
    font-size: 11px;
  }
}
