/* ============================================================
   MUISE Billing — пополнение баланса (двухколоночная раскладка).
   Анимированный фон как на /character. Лаймовый акцент, золотая монетка.
   ============================================================ */

/* ── Анимированный фон (перенос из character.css) ── */
.bl-bganim { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
  background: linear-gradient(120deg, #0a0812, #0d0a18, #0a0d18, #0c0a14);
  background-size: 300% 300%; animation: blBgShift 24s ease-in-out infinite; }
.bl-bganim::before {
  content: ""; position: absolute; inset: -20%;
  background:
    radial-gradient(700px 520px at 20% 25%, rgba(124,92,255,.30), transparent 60%),
    radial-gradient(650px 500px at 80% 70%, rgba(228,244,130,.14), transparent 60%),
    radial-gradient(600px 480px at 60% 20%, rgba(80,160,255,.18), transparent 60%);
  animation: blBgFloat 28s ease-in-out infinite alternate;
}
.bl-bganim::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,7,12,.45), rgba(8,7,12,.82));
}
@keyframes blBgShift { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes blBgFloat {
  0%   { transform: translate3d(0,0,0) scale(1); }
  50%  { transform: translate3d(3%, -2%, 0) scale(1.08); }
  100% { transform: translate3d(-3%, 2%, 0) scale(1.04); }
}
@media (prefers-reduced-motion: reduce) { .bl-bganim, .bl-bganim::before { animation: none; } }

/* ── Раскладка ── */
.billing { position: relative; z-index: 2; max-width: 980px; margin: 0 auto; padding: 54px 20px 90px; }
.bl-hero { text-align: center; margin-bottom: 24px; }
.bl-hero h1 { font-family: 'Unbounded', sans-serif; font-weight: 700; font-size: 30px; margin: 0 0 8px; color: #fff; }
.bl-sub { font-size: 14px; color: #9a9aa2; margin: 0; }

/* Двухколоночная оболочка (980×~561) */
.bl-shell {
  display: flex; background: rgba(16,16,22,.72); backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.08); border-radius: 22px; overflow: hidden;
}

/* ЛЕВО: форма (440) */
.bl-card { width: 440px; flex: none; padding: 26px; border-right: 1px solid rgba(255,255,255,.06); }
.bl-head { padding: 4px 0 18px; border-bottom: 1px solid rgba(255,255,255,.06); margin-bottom: 18px; }
.bl-bal { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.bl-bal-label { font-size: 12px; color: #7a7a82; text-transform: uppercase; letter-spacing: .05em; }
.bl-bal-val { display: flex; align-items: center; gap: 9px; }
.bl-bal-val b { font-size: 34px; font-weight: 700; color: #fff; line-height: 1; }

/* Золотая монетка — как в навбаре (.credits .coin) */
.coin {
  width: 24px; height: 24px; border-radius: 50%;
  background: linear-gradient(160deg, #f0d97a, #c79a2e);
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.35);
  display: inline-block; flex: 0 0 auto;
}
.coin.sm { width: 18px; height: 18px; }

.bl-label { font-size: 13px; color: #9a9aa0; margin-bottom: 12px; }

.bl-presets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin-bottom: 18px; }
.bl-preset {
  padding: 11px 0; border: 1px solid rgba(255,255,255,.1); border-radius: 12px;
  background: transparent; color: #fff; font-size: 13px; font-weight: 600;
  cursor: pointer; transition: all .14s; font-family: inherit;
}
.bl-preset:hover { border-color: rgba(255,255,255,.24); }
.bl-preset.active { background: rgba(228,244,130,.13); border-color: #E4F482; color: #E4F482; }

.bl-range {
  width: 100%; -webkit-appearance: none; appearance: none;
  height: 6px; border-radius: 6px; background: #242430; outline: none;
  margin: 0 0 18px; cursor: pointer;
}
.bl-range::-webkit-slider-thumb {
  -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%;
  background: #E4F482; cursor: pointer; border: 3px solid #12121a; box-shadow: 0 0 0 1px #E4F482;
}
.bl-range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #E4F482; cursor: pointer; border: 3px solid #12121a; }

.bl-io { display: flex; align-items: stretch; gap: 10px; margin-bottom: 18px; }
.bl-rub {
  flex: 1; display: flex; align-items: center; height: 50px;
  border: 1px solid rgba(255,255,255,.16); border-radius: 13px; padding: 0 15px; background: rgba(0,0,0,.28);
}
.bl-rub input { border: none; background: transparent; font-size: 19px; font-weight: 700; width: 100%; outline: none; color: #fff; font-family: inherit; }
.bl-rub-cur { font-size: 16px; color: #8a8a90; }
.bl-arrow { display: flex; align-items: center; color: #5a5a62; font-size: 18px; }
.bl-tok {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 9px; height: 50px;
  background: rgba(228,244,130,.1); border: 1px solid rgba(228,244,130,.25); border-radius: 13px;
}
.bl-tok b { font-size: 21px; font-weight: 700; color: #E4F482; }

.bl-promo { display: flex; gap: 8px; margin-bottom: 12px; }
.bl-promo input {
  flex: 1; height: 44px; border: 1px solid rgba(255,255,255,.1); border-radius: 12px;
  background: rgba(0,0,0,.28); color: #fff; padding: 0 15px; font-size: 14px;
  text-transform: uppercase; outline: none; font-family: inherit;
}
.bl-promo input::placeholder { text-transform: none; color: #666; }
.bl-promo input:focus { border-color: rgba(228,244,130,.5); }
.bl-promo button {
  height: 44px; padding: 0 18px; border: 1px solid rgba(255,255,255,.16); border-radius: 12px;
  background: transparent; color: #fff; font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit;
}
.bl-promo button:hover { border-color: #E4F482; color: #E4F482; }
.bl-promo-note { font-size: 13px; margin-bottom: 12px; }
.bl-promo-note.ok { color: #9fe0a0; }
.bl-promo-note.err { color: #e08a8a; }

.bl-total-row {
  display: flex; align-items: baseline; justify-content: space-between;
  padding-top: 15px; border-top: 1px solid rgba(255,255,255,.06); margin: 4px 0 16px;
}
.bl-total-row span { font-size: 14px; color: #9a9aa0; }
.bl-total-row b { font-size: 23px; font-weight: 700; color: #fff; }
.bl-strike { text-decoration: line-through; color: #666; font-weight: 400; font-size: .7em; margin-right: 8px; }

.bl-pay {
  width: 100%; height: 52px; background: #E4F482; border: none; border-radius: 14px;
  font-size: 16px; font-weight: 700; color: #2e3400; cursor: pointer; font-family: inherit;
  transition: filter .14s, transform .1s;
}
.bl-pay:hover { filter: brightness(1.06); }
.bl-pay:active { transform: scale(.99); }

/* ПРАВО: УТП-шейпы */
.bl-usp { flex: 1; padding: 26px; display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: min-content; gap: 12px; align-content: center; }
.bl-shape {
  background: rgba(21,21,28,.6); border: 1px solid rgba(255,255,255,.07); border-radius: 15px;
  padding: 18px; display: flex; flex-direction: column; justify-content: center; min-height: 132px;
}
.bl-shape-wide { grid-column: 1 / -1; min-height: auto; }
.bl-shape-ic {
  width: 38px; height: 38px; border-radius: 10px; background: rgba(228,244,130,.12);
  display: flex; align-items: center; justify-content: center; margin-bottom: 11px; color: #E4F482;
}
.bl-shape-ic svg { width: 22px; height: 22px; }
.bl-shape h4 { font-size: 14px; font-weight: 600; color: #fff; margin: 0 0 4px; }
.bl-shape p { font-size: 12px; color: #8a8a90; margin: 0; line-height: 1.45; }
.bl-pays { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.bl-pays img { width: 30px; height: 30px; border-radius: 7px; display: block; }

/* ── Мобилка ── */
@media (max-width: 900px) {
  .billing { max-width: 480px; padding: 30px 14px 100px; }
  .bl-hero h1 { font-size: 24px; }
  .bl-shell { flex-direction: column; }
  .bl-card { width: auto; border-right: none; border-bottom: 1px solid rgba(255,255,255,.06); padding: 20px; }
  .bl-usp { padding: 18px; }
  .bl-bal-val b { font-size: 28px; }
}
@media (max-width: 520px) {
  .bl-io { flex-direction: column; gap: 8px; }
  .bl-rub, .bl-tok { width: 100%; }
  .bl-arrow { transform: rotate(90deg); justify-content: center; }
  .bl-usp { grid-template-columns: 1fr; }
  .bl-shape { min-height: auto; }
}
