:root {
  --bg: #1F2138;
  --bg-soft: #23253E;
  --surface: #2B3163;
  --surface-2: #343B75;
  --header: #373B6B;
  --primary: #5E6CF6;
  --primary-hover: #7683FF;
  --cyan: #6FD6EE;
  --text: #F5F6FA;
  --text-muted: #9AA0C3;
  --border: rgba(255,255,255,0.08);
  --sale: #FF4D6D;
  --hot: #FF8A3D;
  --success: #73FF3C;
  --danger: #FF5E5E;
  --radius-l: 18px;
  --radius-m: 12px;
  --radius-s: 8px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Manrope', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; }
input { font-family: inherit; }

.mp-container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

/* HEADER */
.mp-header {
  background: var(--header);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
}
.mp-header__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
}

.mp-logo { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 18px; }
.mp-logo__img { height: 26px; flex-shrink: 0; }

.mp-btn {
  padding: 10px 18px;
  border-radius: var(--radius-s);
  font-weight: 700;
  font-size: 14px;
  transition: background .15s, transform .1s;
}
.mp-btn:active { transform: scale(0.97); }
.mp-btn--primary { background: var(--primary); color: #fff; }
.mp-btn--primary:hover { background: var(--primary-hover); }
.mp-btn--block { width: 100%; padding: 14px; font-size: 15px; }

/* HERO */
.mp-hero { position: relative; overflow: hidden; background: #1c1f3d; }
.mp-hero__slider {
  position: relative;
  width: 100%;
  max-width: 750px;
  margin: 0 auto;
  aspect-ratio: 750 / 420;
}
.mp-hero__slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity .5s ease;
}
.mp-hero__slide.is-active { opacity: 1; }
.mp-hero__slide--a { background: #1c1f3d url("../assets/img/hero-best-offers.jpg") center/cover no-repeat; }
.mp-hero__slide--b { background: #1c1f3d url("../assets/img/hero-exclusive-offers.jpg") center/cover no-repeat; }
.mp-hero__slide--c { background: #1c1f3d url("../assets/img/hero-grand-debut.jpg") center/cover no-repeat; }

.mp-hero__dots {
  position: absolute;
  bottom: 12px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px; z-index: 3;
}
.mp-hero__dots span {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,0.35);
  cursor: pointer;
  transition: background .2s, width .2s;
}
.mp-hero__dots span.is-active { background: #fff; width: 18px; border-radius: 4px; }

/* STEPS */
.mp-step { margin-top: 32px; }
.mp-step__title {
  display: flex; align-items: center; gap: 10px;
  font-size: 17px;
  margin: 0 0 14px;
}
.mp-step__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  font-size: 12px; font-weight: 800;
  flex-shrink: 0;
}
.mp-step__num--star { background: linear-gradient(135deg, #FFC94D, #FF8A3D); }
.mp-step__desc { color: var(--text-muted); font-size: 13px; line-height: 1.6; margin: -6px 0 16px; }

/* CARD */
.mp-card {
  background: var(--surface);
  border-radius: var(--radius-l);
  border: 1px solid var(--border);
  padding: 18px;
}

.mp-id-card { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; }
.mp-id-card__fields { display: flex; gap: 14px; flex: 1; min-width: 260px; }
.mp-id-card__result { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.mp-id-card__hint { color: var(--text-muted); font-size: 12px; display: flex; align-items: center; gap: 6px; transition: color .15s; }
.mp-id-card__hint.is-success { color: var(--success); font-weight: 600; }
.mp-id-card__hint.is-error { color: var(--danger); font-weight: 700; }

.mp-field input.is-valid { border-color: var(--success); }
.mp-field input.is-invalid { border-color: var(--danger); }

.mp-field { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 140px; }
.mp-field__label { font-size: 12px; color: var(--text-muted); font-weight: 600; }
.mp-field input {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius-s);
  color: var(--text);
  padding: 12px 14px;
  font-size: 14px;
  outline: none;
  transition: border-color .15s;
}
.mp-field input:focus { border-color: var(--primary); }
.mp-field input::placeholder { color: #6C74A0; }

/* PRODUCT GRIDS */
.mp-grid { display: grid; gap: 14px; }
.mp-grid--products { grid-template-columns: repeat(4, 1fr); }

.mp-product {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 16px 14px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: border-color .15s, transform .1s;
}
.mp-product:hover { border-color: var(--primary); transform: translateY(-2px); }
.mp-product.is-selected { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }

.mp-product__badge {
  position: absolute;
  font-size: 11px; font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  color: #fff;
}
.mp-product__badge--sale {
  top: -10px; right: -8px;
  background: #2FBE6E;
  color: #0C2415;
}
.mp-product__badge--hot {
  top: -10px; right: -8px;
  background: none;
  padding: 0;
  display: flex; align-items: center; justify-content: center;
}
.mp-product__badge--hot img { width: 26px; height: 26px; display: block; }

.mp-product__icon-slot {
  height: 80px;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.mp-product__icon {
  height: 59px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
}
.mp-product__icon--gem-xs { height: 45px; }
.mp-product__icon--gem-s { height: 50px; }
.mp-product__icon--gem-m { height: 56px; }
.mp-product__icon--gem-l { height: 62px; }
.mp-product__icon--chest-s { height: 62px; }
.mp-product__icon--chest-m { height: 67px; }
.mp-product__icon--chest-l { height: 73px; }
.mp-product__icon--chest-xl { height: 78px; }
.mp-product__icon--twilight {
  width: auto;
  max-width: 100%;
  height: 100%;
  max-height: 80px;
  object-fit: contain;
  border-radius: var(--radius-s);
}

.mp-product__amount, .mp-product__name {
  font-size: 13px; font-weight: 700;
}
.mp-product__amount b, .mp-product__name b { color: var(--cyan); font-weight: 800; }
.mp-product__price { font-size: 13px; font-weight: 800; color: var(--text); }
.mp-product__price s { color: var(--text-muted); font-weight: 500; margin-right: 4px; }


/* PAYMENT */
.mp-card-pay { display: flex; flex-direction: column; gap: 16px; }
.mp-pay-row {
  display: flex; align-items: center; gap: 12px;
  cursor: pointer;
}
.mp-pay-row input { accent-color: var(--primary); }
.mp-pay-row__icon {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 60px; height: 32px;
  border-radius: 6px;
  padding: 4px 8px;
  background: #fff;
}
.mp-pay-row__icon img { max-width: 100%; max-height: 100%; object-fit: contain; }
.mp-pay-row__name { flex: 1; font-size: 13px; font-weight: 600; }
.mp-pay-row__prices { display: flex; align-items: center; gap: 8px; }
.mp-pay-row__badge {
  background: rgba(150,46,210,0.18);
  color: #C46BEF;
  font-size: 11px; font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
}
.mp-pay-row__price { font-size: 13px; font-weight: 800; }

/* CHECKOUT */
.mp-checkout-card { display: flex; flex-direction: column; gap: 12px; }
.mp-checkout-card__terms { font-size: 12px; color: var(--text-muted); line-height: 1.6; margin: 0; }
.mp-checkout-card__terms a { color: var(--primary); }

/* PROMO BANNER */
.mp-promo-banner {
  margin-top: 40px;
  display: flex;
  border-radius: var(--radius-l);
  overflow: hidden;
  background: linear-gradient(120deg, #2A2F63, #1c1f3d);
  border: 1px solid var(--border);
}
.mp-promo-banner__art {
  flex: 0 0 220px;
  background: #1c1f3d url("../assets/img/promo-banner-mlbb.jpg") 68% center/cover no-repeat;
}
.mp-promo-banner__copy { padding: 24px; flex: 1; }
.mp-promo-banner__copy h4 { margin: 0 0 8px; font-size: 18px; }
.mp-promo-banner__copy p { margin: 0 0 16px; color: var(--text-muted); font-size: 13px; line-height: 1.6; max-width: 480px; }
.mp-store-badges { display: flex; gap: 10px; }
.mp-store-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border);
  padding: 8px 14px;
  border-radius: var(--radius-s);
  font-size: 12px; font-weight: 700;
}
.mp-store-badge svg { flex-shrink: 0; }

/* FOOTER */
.mp-footer { margin-top: 48px; border-top: 1px solid var(--border); background: var(--bg-soft); }
.mp-footer__inner {
  max-width: var(--max); margin: 0 auto; padding: 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  flex-wrap: wrap;
}
.mp-footer__social { display: flex; gap: 10px; }
.mp-footer__social a {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.mp-footer__social a img { width: 100%; height: 100%; object-fit: cover; }
.mp-footer__copy { color: var(--text-muted); font-size: 12px; margin: 0; }
.mp-footer__share { font-size: 12px; color: var(--text-muted); font-weight: 600; }

/* LEGAL PAGES */
.mp-legal { padding: 32px 20px 60px; }
.mp-legal__back {
  display: inline-block;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 18px;
}
.mp-legal__back:hover { color: var(--primary); }
.mp-legal h1 { font-size: 26px; margin: 0 0 6px; }
.mp-legal__updated { color: var(--text-muted); font-size: 13px; margin: 0 0 20px; }
.mp-legal__card { display: flex; flex-direction: column; gap: 6px; }
.mp-legal__card h2 { font-size: 16px; margin: 18px 0 4px; }
.mp-legal__card h2:first-child { margin-top: 0; }
.mp-legal__card p, .mp-legal__card li { color: var(--text-muted); font-size: 14px; line-height: 1.7; }
.mp-legal__card ul { margin: 4px 0 8px; padding-left: 20px; }

.mp-visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.mp-seo__title { font-size: 20px; margin: 0 0 12px; }

/* RESPONSIVE */
@media (max-width: 900px) {
  .mp-grid--products { grid-template-columns: repeat(3, 1fr); }
  .mp-promo-banner { flex-direction: column; }
  .mp-promo-banner__art { flex-basis: 140px; }
}

@media (max-width: 700px) {
  .mp-grid--products { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .mp-id-card__fields { flex-direction: column; }
}
