/* =========================================================
   Пополнение BC — экран
   Использует .page-wrap / .page из base.css + tokens.css
   Дизайн Figma: 1772 × 997
   ========================================================= */

.topup-page { background: #252525; }

/* =========================================================
   ВЕРХНЯЯ ПАНЕЛЬ
   ========================================================= */
.topup-topbar {
  position: absolute;
  inset: 0 0 auto 0;
  height: 100px;
  z-index: 5;
}

.topup-nav {
  position: absolute;
  left: 97px;
  top: 38px;
  display: flex;
  gap: 65px;
}

.topup-nav__item {
  font: 700 21px/1.15 var(--font-family);
  color: #737373;
  text-decoration: none;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: color var(--transition-fast);
}
.topup-nav__item:hover { color: #fff; }

/* Balance pill (₽ / BC) — растягивается по содержимому */
.topup-balance {
  position: absolute;
  top: 0;
  height: 100px;
  display: flex;
  align-items: stretch;
  padding-left: 33px; /* место под плюс-кнопку, перекрывающую начало */
}

.topup-balance--rub { left: 914px; }
.topup-balance--bc  { left: 1275px; }

.topup-balance__amount {
  height: 100px;
  background: #38383D;
  border-bottom-left-radius: 10px;
  color: #fff;
  font: 700 31px/1 var(--font-family);
  display: flex;
  align-items: center;
  padding: 0 18px 0 46px;
  white-space: nowrap;
  min-width: 88px;
}

.topup-balance__currency {
  height: 100px;
  background: #4D5877;
  border-bottom-right-radius: 10px;
  color: #fff;
  font: 700 25px/1 var(--font-family);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  min-width: 48px;
  white-space: nowrap;
}

.topup-balance__plus {
  position: absolute;
  left: 0;
  top: 17px;
  width: 66px;
  height: 66px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
  z-index: 2;
}
.topup-balance__plus img { width: 100%; height: 100%; display: block; }

.topup-exit {
  position: absolute;
  top: 0;
  left: 1675px;
  width: 97px;
  height: 96px;
  display: block;
}
.topup-exit img { width: 100%; height: 100%; object-fit: contain; display: block; }

/* =========================================================
   ЛЕВАЯ ПАНЕЛЬ — СУПЕР ПРЕДЛОЖЕНИЯ
   ========================================================= */
.topup-promo {
  position: absolute;
  left: 66px;
  top: 335px;
  width: 787px;
}

.topup-promo__header {
  width: 100%;
  height: 87px;
  background: #FFBA08;
  border-radius: 26px 26px 0px 0px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.topup-promo__title {
  color: #252525;
  font: 700 36px/1.15 var(--font-family);
  letter-spacing: 0.01em;
  margin: 0;
}

.topup-promo__body {
  position: relative;
  width: 100%;
  height: 339px;
  background: #4D5877;
  border-radius: 0 0 26px 26px;
  padding: 36px 40px 36px 50px;
}

.topup-promo__offers {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.topup-promo__offer {
  display: flex;
  align-items: center;
  gap: 24px;
}

.topup-promo__flame {
  width: 44px;
  height: 55px;
  flex: 0 0 auto;
}

.topup-promo__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.topup-promo__line {
  color: #fff;
  font: 700 26px/1.15 var(--font-family);
  letter-spacing: 0.01em;
}

.topup-hl {
  color: #f5e84a;
}

/* =========================================================
   ПРАВАЯ ПАНЕЛЬ — КУПИТЬ BLACK COINS
   ========================================================= */
.topup-buy {
  position: absolute;
  left: 920px;
  top: 276px;
  width: 785px;
  height: 555px;
  background: #4D5877;
  border-radius: 25px;
  border-top: 12px solid #9DA8C7;
}

.topup-buy__title {
  position: absolute;
  left: 0;
  right: 0;
  top: 60px;
  text-align: center;
  color: #fff;
  font: 700 46px/1.15 var(--font-family);
  margin: 0;
  letter-spacing: 0.01em;
}

/* Inputs */
.topup-buy__field {
  position: absolute;
  left: 66px;
  width: 653px;
  height: 87px;
  border-radius: 22px;
  background: #6D7999;
  overflow: hidden;
}

.topup-buy__field--bc    { top: 191px; }
.topup-buy__field--email { top: 347px; }

.topup-buy__field input {
  width: 100%;
  height: 100%;
  padding: 0 32px;
  background: transparent;
  border: 0;
  outline: 0;
  color: #fff;
  font: 500 29px/1.15 var(--font-family);
  text-align: center;
}

.topup-buy__field input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

/* Promo line between inputs */
.topup-buy__promo-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 290px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 21px;
}
.topup-buy__promo-line[hidden] { display: none; }

.topup-buy__frz {
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  object-fit: contain;
}

.topup-buy__promo-text {
  color: #fff;
  font: 700 32px/1 var(--font-family);
}

/* Submit button — min 146x104, ширина растёт под сумму */
.topup-buy__submit {
  position: absolute;
  left: 50%;
  top: 504px;
  transform: translateX(-50%);
  min-width: 146px;
  height: 104px;
  padding: 0 28px;
  border: 0;
  cursor: pointer;
  border-radius: 0 0 10px 10px;
  background: #5B5B68;
  color: #fff;
  overflow: hidden;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.topup-buy__submit::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.95) 50%, rgba(255,255,255,0) 100%);
}

.topup-buy__submit.is-active {
  background: #E2310C;
  box-shadow: 0 6px 22px rgba(226, 49, 12, 0.55);
}

.topup-buy__submit.is-success {
  background: #2E8B30;
  box-shadow: 0 6px 22px rgba(46, 139, 48, 0.55);
}

.topup-buy__submit-amount {
  font: 700 34px/1 var(--font-family);
  text-align: center;
  color: #fff;
  letter-spacing: 0.02em;
}

.topup-buy__submit:hover  { filter: brightness(1.05); }
.topup-buy__submit:active { filter: brightness(0.92); transform: translateX(-50%) translateY(1px); }
