:root {
  --bg: #06090e;
  --panel: #0b111a;
  --panel-hover: #0d1622;
  --border: #1b2a39;
  --text: #f3f6fa;
  --muted: #8799aa;
  --blue: #1fa7ff;
  --cyan: #58d7ff;
  --green: #42dda0;
  --gold: #ffc93c;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

.header {
  max-width: var(--max); height: 78px; margin: auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--border);
}
.logo { font-size: 20px; font-weight: 900; letter-spacing: -.04em; }
.logo span { color: var(--cyan); }
nav { display: flex; align-items: center; gap: 30px; }
nav a { font-size: 14px; color: #a8b6c4; font-weight: 650; transition: color .18s; }
nav a:hover { color: #fff; }

main { max-width: var(--max); margin: auto; padding: 0 24px; }

footer {
  max-width: var(--max); margin: auto; padding: 46px 24px 60px;
  border-top: 1px solid var(--border);
  display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center;
}
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 14px; color: #a8b6c4; font-weight: 650; }
.footer-links a:hover { color: #fff; }
footer p { max-width: 620px; margin: 0; color: #6f8296; font-size: 13px; }
footer small { color: #55697c; font-size: 12px; }

.shop-hero {
  min-height: 210px; padding: 54px 0 10px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.shop-hero-copy h1 {
  margin: 0; font-size: clamp(34px, 5.4vw, 54px); line-height: 1.05; letter-spacing: -.05em;
}
.shop-hero-copy h1 span { color: var(--cyan); }
.shop-hero-copy p { max-width: 520px; margin: 14px 0 0; color: var(--muted); font-size: 17px; }
.shop-hero-image img {
  display: block; width: 150px; height: 150px; object-fit: contain;
  filter: drop-shadow(0 18px 34px rgba(31, 167, 255, .22));
  animation: float 5s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

.icon {
  width: 1em; height: 1em; flex: none;
  fill: none; stroke: currentColor; vertical-align: -.12em;
}

.step { padding: 40px 0 20px; }
.step.is-hidden { display: none; }
.shop-hero.is-hidden { display: none; }

.section-heading {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 26px;
}
.section-heading h2 { font-size: 32px; line-height: 1.15; letter-spacing: -.04em; margin: 0; }
.section-heading p { margin: 0; color: var(--muted); font-size: 14px; }
.premium-heading { margin-top: 54px; }

.gem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

.gem-card {
  position: relative; padding: 22px 20px 20px;
  border: 1px solid var(--border); border-radius: 14px; background: var(--panel);
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  cursor: pointer; text-align: center;
  transition: transform .22s cubic-bezier(.22,1,.36,1), border-color .22s, background-color .22s, box-shadow .22s;
}
.gem-card:hover {
  transform: translateY(-4px); border-color: #2c5974;
  background: var(--panel-hover); box-shadow: 0 20px 44px rgba(0,0,0,.34);
}
.gem-card img {
  width: 96px; height: 96px; object-fit: contain; margin-bottom: 6px;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.4));
  transition: transform .22s cubic-bezier(.22,1,.36,1);
}
.gem-card:hover img { transform: scale(1.07); }
.gem-card .gem-count {
  font-size: 25px; font-weight: 800; letter-spacing: -.03em;
  display: inline-flex; align-items: center; gap: 7px;
}
.gem-card .gem-glyph { width: 22px; height: 22px; color: var(--cyan); }
.gem-card .gem-price { color: var(--cyan); font-size: 16px; font-weight: 750; }
.gem-card .gem-buy {
  margin-top: 12px; width: 100%; min-height: 42px;
  border: 0; border-radius: 9px; background: var(--blue); color: #fff;
  font-family: inherit; font-size: 14px; font-weight: 750; cursor: pointer; transition: background .18s;
}
.gem-card:hover .gem-buy { background: #42b6ff; }

.badge {
  position: absolute; top: 12px; right: 12px; padding: 3px 9px;
  border-radius: 999px; background: rgba(255,201,60,.14); border: 1px solid rgba(255,201,60,.32);
  color: var(--gold); font-size: 11px; font-weight: 750; letter-spacing: .03em;
}

.skeleton {
  min-height: 232px; border: 1px solid var(--border); border-radius: 14px;
  background: linear-gradient(100deg, #0b111a 30%, #101a26 50%, #0b111a 70%);
  background-size: 220% 100%; animation: shimmer 1.4s linear infinite;
}
@keyframes shimmer { to { background-position: -220% 0; } }

.custom-card {
  margin-top: 14px; padding: 24px;
  border: 1px solid var(--border); border-radius: 14px; background: var(--panel);
}
.custom-head h3 { margin: 0; font-size: 19px; letter-spacing: -.03em; }
.custom-head p { margin: 3px 0 0; color: var(--muted); font-size: 14px; }
.custom-body {
  margin-top: 18px; display: grid; grid-template-columns: 1fr auto auto; gap: 14px; align-items: center;
}
.custom-input { position: relative; }
.custom-input input {
  width: 100%; min-height: 52px; padding: 0 44px 0 16px;
  border: 1px solid #2a3a4a; border-radius: 10px; background: #080d14; color: var(--text);
  font-family: inherit; font-size: 17px; font-weight: 650; outline: none; transition: border-color .18s;
}
.custom-input input:focus { border-color: var(--blue); }
.custom-input input::-webkit-outer-spin-button,
.custom-input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.custom-input input[type=number] { -moz-appearance: textfield; appearance: textfield; }
.custom-suffix {
  position: absolute; right: 15px; top: 50%; transform: translateY(-50%);
  width: 20px; height: 20px; color: #4a6076; pointer-events: none;
}
.custom-price { text-align: right; min-width: 120px; }
.custom-price strong { display: block; font-size: 23px; color: var(--cyan); letter-spacing: -.03em; }
.custom-price small { color: #697d8f; font-size: 12px; }

.premium-card {
  padding: 26px; border: 1px solid #2c5974; border-radius: 16px;
  background: linear-gradient(135deg, #0c1520 0%, #0b111a 60%);
  display: grid; grid-template-columns: auto 1fr auto; gap: 26px; align-items: center;
}
.premium-image img {
  width: 132px; height: 132px; object-fit: contain;
  filter: drop-shadow(0 14px 26px rgba(0,0,0,.45));
}
.premium-copy h3 { margin: 0 0 12px; font-size: 22px; letter-spacing: -.03em; }
.perks { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; }
.perks li {
  display: grid; grid-template-columns: 20px 1fr; align-items: start; gap: 9px;
  color: #9babb9; font-size: 15px;
}
.perks .check-glyph {
  width: 18px; height: 18px; margin-top: 3px;
  color: var(--green); stroke-width: 2.8;
}
.premium-buy { text-align: center; display: grid; gap: 12px; justify-items: center; }
.premium-buy strong { font-size: 30px; color: var(--cyan); letter-spacing: -.03em; }

.primary-button, .secondary-button {
  min-height: 52px; padding: 0 26px; border-radius: 9px; border: 0;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: inherit; font-weight: 750; font-size: 15px; cursor: pointer; transition: .18s;
}
.primary-button { background: var(--blue); color: #fff; }
.primary-button:hover:not(:disabled) { background: #42b6ff; }
.primary-button:disabled { opacity: .45; cursor: not-allowed; }
.secondary-button { border: 1px solid #2a3a4a; background: #0a1018; color: var(--text); }
.secondary-button:hover { background: #101a25; border-color: #3d5367; }
.wide { width: 100%; }

.back-button {
  padding: 0; border: 0; background: none; color: #8799aa;
  font-family: inherit; font-size: 14px; font-weight: 650; cursor: pointer; transition: color .18s;
  display: inline-flex; align-items: center; gap: 5px;
}
.back-button .icon { width: 15px; height: 15px; }
.back-button:hover { color: var(--cyan); }
.back-button.center { margin: 18px auto 0; }

.step-bar { display: flex; align-items: center; margin-bottom: 18px; }

.panel {
  max-width: 620px; margin: 0 auto; padding: 34px;
  border: 1px solid var(--border); border-radius: 16px; background: var(--panel);
  animation: rise .38s cubic-bezier(.22,1,.36,1) both;
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.panel h2 { margin: 0; font-size: 26px; letter-spacing: -.04em; }
.panel-sub { margin: 8px 0 0; color: var(--muted); font-size: 15px; }
.panel-hint { margin: 14px 0 0; color: #697d8f; font-size: 13px; text-align: center; }

.tag-field {
  margin-top: 22px; display: flex; align-items: center;
  border: 1px solid #2a3a4a; border-radius: 11px; background: #080d14;
  overflow: hidden; transition: border-color .18s;
}
.tag-field:focus-within { border-color: var(--blue); }
.tag-hash {
  padding: 0 4px 0 18px; color: var(--cyan);
  font-size: 25px; font-weight: 800; user-select: none;
}
.tag-field input {
  flex: 1; min-height: 60px; padding: 0 16px 0 6px; border: 0; background: none; color: var(--text);
  font-family: inherit; font-size: 25px; font-weight: 750; letter-spacing: .06em; outline: none;
  text-transform: uppercase;
}
.tag-field input::placeholder { color: #3d4f61; letter-spacing: .06em; }

.field-error { margin: 12px 0 0; color: #ff8b7a; font-size: 14px; }
.field-error.is-hidden { display: none; }

.order-preview {
  margin-top: 20px; padding: 16px 18px;
  border: 1px solid var(--border); border-radius: 11px; background: #080d14;
  display: flex; align-items: center; gap: 14px;
}
.order-preview img { width: 46px; height: 46px; object-fit: contain; }
.order-preview .order-title { font-size: 16px; font-weight: 750; }
.order-preview .order-price { margin-left: auto; color: var(--cyan); font-size: 19px; font-weight: 800; }

.account-card {
  margin-top: 22px; border: 1px solid var(--border); border-radius: 11px;
  background: #080d14; overflow: hidden;
}
.account-row {
  padding: 15px 18px; display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid #131f2b;
}
.account-row:last-child { border-bottom: 0; }
.account-row span { color: #8ca0b3; font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.account-row strong { font-size: 18px; letter-spacing: -.02em; }
.account-row .with-icon { display: inline-flex; align-items: center; gap: 8px; }
.account-row .trophy { width: 19px; height: 19px; color: var(--gold); }
.account-row .with-icon em { font-style: normal; }

.confirm-actions { margin-top: 22px; display: grid; grid-template-columns: 1fr 1.4fr; gap: 12px; }

.methods { margin-top: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.method-card {
  padding: 24px 18px; border: 1px solid var(--border); border-radius: 13px; background: #080d14;
  display: grid; justify-items: center; gap: 6px; cursor: pointer;
  font-family: inherit; color: var(--text); text-align: center;
  transition: transform .2s cubic-bezier(.22,1,.36,1), border-color .2s, background-color .2s;
}
.method-card:hover { transform: translateY(-3px); border-color: #2c5974; background: var(--panel-hover); }
.method-card img {
  width: 44px; height: 44px; object-fit: contain; margin-bottom: 6px;
}
.method-name { font-size: 16px; font-weight: 750; }
.method-note { color: #697d8f; font-size: 12.5px; }
.method-card.is-busy { opacity: .5; pointer-events: none; }

.pay-panel { text-align: center; }
.pay-panel .order-preview { text-align: left; }
.pay-spinner {
  width: 44px; height: 44px; margin: 0 auto 18px;
  border: 3px solid #1b2a39; border-top-color: var(--blue); border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.pay-timer { margin: 16px 0 0; color: var(--muted); font-size: 14px; }
.pay-timer strong { color: var(--text); }
#pay-link { margin-top: 20px; }

.success-check { display: grid; place-items: center; margin-bottom: 8px; }
.check-circle {
  stroke: var(--green); stroke-width: 3; stroke-dasharray: 152; stroke-dashoffset: 152;
  animation: draw .55s cubic-bezier(.65,0,.45,1) forwards;
}
.check-mark {
  stroke: var(--green); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 48; stroke-dashoffset: 48;
  animation: draw .35s cubic-bezier(.65,0,.45,1) .5s forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }

.footer-legal {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 10px; margin-top: 2px;
}
.footer-legal a { color: #8799aa; font-size: 13px; transition: color .18s; }
.footer-legal a:hover { color: var(--cyan); }
.footer-dot { color: #3d4f61; font-size: 13px; }

.legal { max-width: 800px; margin: auto; padding: 0 24px 70px; }

.legal-back {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 34px 0 26px; padding: 11px 18px;
  border: 1px solid var(--border); border-radius: 10px; background: var(--panel);
  color: #a8b6c4; font-size: 14px; font-weight: 650;
  transition: color .18s, border-color .18s, background-color .18s, transform .18s;
}
.legal-back:hover {
  color: #fff; border-color: #2c5974; background: var(--panel-hover); transform: translateX(-3px);
}
.legal-back svg { flex: none; }

.legal-doc {
  padding: 38px 40px; border: 1px solid var(--border); border-radius: 16px; background: var(--panel);
}
.legal-doc h1 { margin: 0; font-size: clamp(26px, 4vw, 36px); letter-spacing: -.04em; line-height: 1.15; }
.legal-updated { margin: 10px 0 30px; color: #697d8f; font-size: 13px; }
.legal-lead {
  margin: 0 0 30px; padding: 18px 20px;
  border: 1px solid var(--border); border-left: 3px solid var(--blue); border-radius: 10px;
  background: #080d14; color: #9babb9; font-size: 15px; line-height: 1.65;
}
.legal-doc h2 {
  margin: 34px 0 14px; padding-top: 22px; border-top: 1px solid #131f2b;
  font-size: 20px; letter-spacing: -.03em; color: var(--text);
}
.legal-doc h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.legal-doc p { margin: 0 0 13px; color: #9babb9; font-size: 15px; line-height: 1.72; }
.legal-doc ul { margin: 0 0 15px; padding: 0; list-style: none; display: grid; gap: 8px; }
.legal-doc li {
  position: relative; padding-left: 20px; color: #9babb9; font-size: 15px; line-height: 1.65;
}
.legal-doc li::before {
  content: ""; position: absolute; left: 4px; top: 10px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--blue);
}

@media (max-width: 900px) {
  .gem-grid { grid-template-columns: repeat(2, 1fr); }
  .premium-card { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .premium-copy .perks { text-align: left; }
  .custom-body { grid-template-columns: 1fr; }
  .custom-price { text-align: left; }
}

@media (max-width: 600px) {
  nav { gap: 18px; }
  .legal { padding: 0 16px 50px; }
  .legal-doc { padding: 24px 20px; }
  .legal-doc h2 { font-size: 18px; }
  .footer-legal { gap: 7px; }
  .footer-legal a { font-size: 12.5px; }
  nav a { font-size: 13px; }
  main { padding: 0 16px; }
  .shop-hero { padding: 34px 0 6px; gap: 16px; }
  .shop-hero-image img { width: 96px; height: 96px; }
  .gem-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .gem-card { padding: 16px 12px 14px; }
  .gem-card img { width: 74px; height: 74px; }
  .gem-card .gem-count { font-size: 21px; }
  .skeleton { min-height: 190px; }
  .panel { padding: 24px 18px; }
  .panel h2 { font-size: 22px; }
  .confirm-actions { grid-template-columns: 1fr; }
  .methods { grid-template-columns: 1fr; }
  .section-heading { flex-direction: column; align-items: flex-start; gap: 6px; }
  .section-heading h2 { font-size: 26px; }
  .tag-field input { font-size: 21px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
