.topbar-inner,
.container {
  max-width: 960px;
}

.container {
  padding: .5rem 1.5rem 4rem;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  height: 46px;
  padding: 0 1rem;
  border: 0;
  border-radius: 10px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-strong);
  box-shadow: var(--shadow-hover);
}

.btn-secondary {
  background: var(--code-bg);
  color: var(--text);
}

.btn-secondary:hover {
  background: var(--border);
  box-shadow: var(--shadow-hover);
}

.wide { width: 100%; }

.store-hero {
  text-align: center;
  padding: .25rem 0 1.5rem;
}

.store-hero h1 {
  font-size: 2rem;
  font-weight: 800;
  margin: 0 0 .75rem;
  color: var(--text);
}

.store-hero .hero-brand {
  color: inherit;
  font-size: inherit;
}

.store-hero-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: .9rem;
  margin-top: 1.4rem;
}

.store-hero .ip-text {
  flex-direction: row;
  align-items: center;
  gap: .6rem;
  padding: .55rem 1.1rem;
}

.store-hero .ip-text code {
  font-size: 1.05rem;
}

.store-hero .player-count {
  margin-top: 1rem;
}

.discord-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  transition: background .15s, border-color .15s, color .15s;
}

.discord-link:hover {
  border-color: #5865f2;
  color: #5865f2;
}

.discord-link svg {
  width: 20px;
  height: 20px;
}

.pkg-section {
  margin-top: 1.5rem;
}

.pkg-section-title {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: 1.35rem;
  font-weight: 800;
  margin: 2rem 0 1rem;
}

.pkg-section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.pkg-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}

@media (max-width: 640px) {
  .pkg-grid { grid-template-columns: 1fr; }
}

.pkg-card {
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
}

.pkg-head {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.pkg-image-frame {
  box-sizing: border-box;
  display: grid;
  place-items: center;
  width: 116px;
  height: 116px;
  overflow: hidden;
  flex-shrink: 0;
  border-radius: 18px;
  background: linear-gradient(140deg, var(--pkg-from), var(--pkg-to));
  color: #fff;
}

.pkg-image-frame svg {
  width: 54%;
  height: 54%;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .25));
}

.pkg-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0;
}

.pkg-price {
  display: inline-flex;
  align-items: baseline;
  gap: .5rem;
  margin: .3rem 0 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
}

.pkg-price .pkg-from {
  color: var(--text-muted);
  font-size: .78em;
  font-weight: 700;
}

.pkg-price .pkg-currency {
  color: var(--text-muted);
  font-size: .78em;
  font-weight: 700;
  letter-spacing: .04em;
}

.pkg-desc {
  margin-top: 1rem;
  flex: 1;
}

.pkg-desc p {
  margin: .5rem 0;
}

.pkg-desc ul {
  margin: .6rem 0 0;
  padding-left: 1.5rem;
  color: var(--text-muted);
}

.pkg-desc li {
  display: list-item;
  margin: .35rem 0;
}

.pkg-desc .pkg-note {
  margin: .5rem 0;
  padding: .5rem .85rem;
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  background: var(--accent-soft);
  font-size: .9rem;
  font-weight: 600;
}

.pkg-periods {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin-top: 1rem;
}

.pkg-period {
  display: inline-flex;
  align-items: baseline;
  gap: .3rem;
  padding: .2rem .6rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  font-size: .78rem;
  font-weight: 600;
}

.pkg-period b {
  color: var(--text);
  font-weight: 800;
}

.pkg-card .product-actions {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.product-actions .add {
  flex: 1;
  text-align: center;
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(15, 15, 18, .55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, visibility .2s ease;
}

.overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 430px;
  max-height: calc(100dvh - 2.5rem);
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 12px 48px rgba(0, 0, 0, .28);
  transform: translateY(10px) scale(.98);
  transition: transform .22s cubic-bezier(.34, 1.3, .64, 1);
}

.overlay.open .modal { transform: none; }

.m-head {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 1rem;
  border-bottom: 1px solid var(--border);
}

.m-title {
  flex: 1;
  text-align: center;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: .01em;
}

.btn-back,
.m-close {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  transition: color .15s ease, border-color .15s ease;
}

.btn-back:hover,
.m-close:hover {
  color: var(--text);
  border-color: var(--text-muted);
}

.btn-back svg,
.m-close svg {
  width: 16px;
  height: 16px;
}

.m-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 1.1rem 1.15rem;
}

.modal-step { display: none; }

.modal-step.active { display: block; }

.step-lbl {
  margin: 0 0 .55rem;
  color: var(--text-muted);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.modal-product-info {
  margin-bottom: 1.15rem;
  padding: .9rem 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--accent-bg, var(--code-bg));
}

.mpi-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--accent);
}

.mpi-price-row {
  display: flex;
  align-items: baseline;
  gap: .4rem;
  margin-top: .15rem;
}

.mpi-price {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -.02em;
}

.mpi-price-old {
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: line-through;
  opacity: 0;
  transition: opacity .2s ease;
}

.mpi-price-old-visible { opacity: 1; }

.mpi-price-pop { animation: mpi-pop .35s cubic-bezier(.34, 1.56, .64, 1); }

.mpi-price-reveal { animation: mpi-pop .35s cubic-bezier(.34, 1.56, .64, 1); }

@keyframes mpi-pop {
  0% { transform: scale(.8); }
  60% { transform: scale(1.08); }
  to { transform: scale(1); }
}

.mpi-price-fx {
  color: var(--text-muted);
  font-size: .78rem;
  margin-top: .1rem;
  min-height: 1.1em;
}

.mpi-period {
  color: var(--text-muted);
  font-size: .82rem;
  font-weight: 600;
}

.mpi-desc {
  margin-top: .5rem;
  color: var(--text-muted);
  font-size: .87rem;
  line-height: 1.5;
}

.periods {
  display: grid;
  gap: .5rem;
}

.p-opt {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .7rem .85rem;
  border: 2px solid var(--border);
  border-radius: 11px;
  background: var(--surface);
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}

.p-opt:hover { border-color: var(--text-muted); }

.p-opt.selected {
  border-color: var(--accent);
  background: var(--accent-bg, var(--accent-soft));
}

.p-opt-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  color: var(--accent);
}

.p-opt-icon svg {
  width: 18px;
  height: 18px;
}

.p-name {
  flex: 1;
  font-weight: 700;
  font-size: .95rem;
}

.p-price {
  font-weight: 800;
  font-size: .95rem;
}

.nick-icon-wrap {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin: 0 auto .8rem;
  border-radius: 50%;
  background: var(--accent-bg, var(--accent-soft));
  color: var(--accent);
}

.nick-icon-wrap svg {
  width: 26px;
  height: 26px;
}

.inp-grp { margin-top: .2rem; }

.inp-lbl {
  display: block;
  margin-bottom: .35rem;
  font-size: .85rem;
  font-weight: 700;
}

.inp-lbl small {
  color: var(--text-muted);
  font-weight: 500;
}

.text-inp {
  width: 100%;
  padding: .7rem .85rem;
  border: 2px solid var(--border);
  border-radius: 11px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  transition: border-color .15s ease;
}

.text-inp::placeholder {
  color: var(--text-muted);
  font-weight: 500;
}

.text-inp:focus {
  outline: none;
  border-color: var(--accent);
}

.text-inp.ok { border-color: #22a06b; }

.text-inp.err { border-color: #e0384a; }

.summary {
  margin-bottom: 1.15rem;
  padding: .85rem 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--code-bg);
}

.sum-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .2rem 0;
  font-size: .9rem;
}

.sum-lbl { color: var(--text-muted); }

.sum-val { font-weight: 700; }

.sum-val-old {
  color: var(--text-muted);
  font-weight: 600;
  text-decoration: line-through;
}

.sum-total {
  margin-top: .4rem;
  padding-top: .55rem;
  border-top: 1px solid var(--border);
  font-size: 1rem;
}

.sum-fx {
  display: block;
  color: var(--text-muted);
  font-size: .78rem;
  font-weight: 500;
  margin-top: .15rem;
}

.pay-methods {
  display: grid;
  gap: .5rem;
}

.pay-method {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .65rem .8rem;
  border: 2px solid var(--border);
  border-radius: 11px;
  background: var(--surface);
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}

.pay-method:hover { border-color: var(--text-muted); }

.pay-method.selected {
  border-color: var(--accent);
  background: var(--accent-bg, var(--accent-soft));
}

.pay-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--code-bg);
  color: var(--text);
}

.pay-info {
  flex: 1;
  min-width: 0;
}

.pay-name {
  font-size: .9rem;
  font-weight: 700;
}

.pay-desc {
  color: var(--text-muted);
  font-size: .76rem;
  line-height: 1.35;
}

.pay-cur {
  flex-shrink: 0;
  color: var(--text-muted);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .03em;
}

.pay-cur-crypto svg {
  width: 18px;
  height: 18px;
  display: block;
}

.p-radio {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border: 2px solid var(--border);
  border-radius: 50%;
  transition: border-color .15s ease, background .15s ease;
}

.p-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  opacity: 0;
  transition: opacity .15s ease;
}

.divider {
  height: 1px;
  margin: 1.1rem 0;
  background: var(--border);
}

.m-foot {
  padding: .85rem 1.15rem 1.1rem;
  border-top: 1px solid var(--border);
}

.btn-next {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  width: 100%;
  padding: .75rem 1rem;
  border: 0;
  border-radius: 11px;
  background: var(--code-bg);
  color: var(--text-muted);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}

.btn-next.ready,
.btn-next.ok {
  background: var(--accent);
  color: #fff;
}

.btn-next.error {
  background: rgba(224, 56, 74, .12);
  color: #e0384a;
}

.btn-next:disabled { cursor: not-allowed; }

.m-legal {
  margin: .65rem 0 0;
  text-align: center;
  font-size: .78rem;
  color: var(--text-muted);
}

.m-legal a {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.m-legal a:hover { color: var(--accent); }

.btn-price-tag {
  padding: .1rem .45rem;
  border-radius: 7px;
  background: rgba(255, 255, 255, .22);
  font-size: .85rem;
}

.spin {
  width: 15px;
  height: 15px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.err-msg {
  margin: 0 1.15rem .7rem;
  padding: .6rem .8rem;
  border-radius: 10px;
  background: rgba(224, 56, 74, .12);
  color: #e0384a;
  font-size: .85rem;
  font-weight: 600;
  text-align: center;
}

@media (max-width: 700px) {
  .pkg-card { padding: 1.25rem 1.1rem; }
  .pkg-image-frame {
    width: 84px;
    height: 84px;
    border-radius: 15px;
  }
  .modal { max-height: calc(100dvh - 1.5rem); }
  .overlay { padding: .75rem; }
}

.footer .we-accept {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}

.footer .we-accept li {
  display: flex;
  align-items: center;
  gap: .35rem;
  height: 26px;
  padding: 0 .6rem;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface);
  color: var(--text-muted);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .02em;
}

.footer .we-accept svg {
  width: 14px;
  height: 14px;
}

.footer p { margin: .25rem 0; }

.platega-verify {
  font-size: .72rem;
  opacity: .55;
}
