/* ═══════════════════════════════════════════════════════════
   BOOST OVERLAY
═══════════════════════════════════════════════════════════ */

#boost-overlay {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: flex;
  align-items: flex-end;        /* slides up from bottom on mobile */
  justify-content: center;
  padding: 0;
}

@media (min-width: 540px) {
  #boost-overlay {
    align-items: center;
    padding: 16px;
  }
}

/* ── Backdrop ── */
.boost-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .65);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  opacity: 0;
  transition: opacity .28s ease;
}

/* ── Box ── */
.boost-box {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--border-md);
  border-radius: var(--r) var(--r) 0 0;
  padding: 28px 24px 32px;
  box-shadow: 0 -8px 40px rgba(0, 0, 0, .5);

  transform: translateY(100%);
  opacity: 0;
  transition: transform .28s cubic-bezier(.4, 0, .2, 1),
              opacity   .28s ease;
}
@media (max-width: 726px) {
 .boost-box {
  position: relative;
  z-index: 1;
  width: 80%;
   
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--border-md);
  border-radius: var(--r) var(--r) 0 0;
  padding: 28px 24px 32px;
  box-shadow: 0 -8px 40px rgba(0, 0, 0, .5);

  transform: translateY(100%);
  opacity: 0;
  transition: transform .28s cubic-bezier(.4, 0, .2, 1),
              opacity   .28s ease;
} 
}

@media (min-width: 540px) {
  .boost-box {
    border-radius: var(--r);
    transform: translateY(20px) scale(.97);
    box-shadow: 0 24px 64px rgba(0, 0, 0, .6);
  }
}

/* Animate in */
#boost-overlay.boost-overlay--open .boost-backdrop { opacity: 1; }
#boost-overlay.boost-overlay--open .boost-box {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* ── Close button ── */
.boost-close {
  position: absolute;
  top: 12px; right: 14px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 16px;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: var(--r-xs);
  transition: color .15s, background .15s;
  line-height: 1;
}
.boost-close:hover { color: var(--text); background: var(--panel); }

/* ── Header ── */
.boost-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.boost-rocket {
  font-size: 36px;
  line-height: 1;
  flex-shrink: 0;
}

.boost-title {
  font-family: var(--font-display);
  font-size: clamp(17px, 2.5vw, 20px);
  font-weight: 800;
  font-style: italic;
  color: var(--text);
  margin-bottom: 3px;
}

.boost-title em { color: var(--gold); font-style: italic; }

.boost-subtitle {
  font-size: clamp(11px, 1vw, 12px);
  color: var(--muted);
}

/* ── Quantity picker ── */
.boost-qty-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 18px;
}

.boost-qty-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--panel);
  border: 1px solid var(--border-md);
  color: var(--text);
  font-size: 22px;
  font-weight: 300;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .15s, border-color .15s;
  line-height: 1;
  -webkit-tap-highlight-color: transparent;
}
.boost-qty-btn:hover { background: var(--card); border-color: var(--gold-glow); }

.boost-qty-display {
  text-align: center;
  min-width: 60px;
}

.boost-qty-display span:first-child {
  display: block;
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}

.boost-qty-label {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ── Summary ── */
.boost-summary {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 12px 16px;
  margin-bottom: 18px;
}

.boost-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: clamp(12px, 1vw, 13px);
  color: var(--muted);
  padding: 3px 0;
}

.boost-summary-total {
  border-top: 1px solid var(--border);
  margin-top: 6px;
  padding-top: 8px;
  font-size: clamp(13px, 1.1vw, 15px);
  color: var(--text);
}

.boost-summary-total strong { color: var(--gold); font-size: 1.1em; }

/* ── Fields ── */
.boost-field { margin-bottom: 14px; }

.boost-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--muted);
  margin-bottom: 7px;
}

.boost-phone-row {
  display: flex;
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--border-md);
  border-radius: var(--r-sm);
  overflow: hidden;
  transition: border-color .2s;
}
.boost-phone-row:focus-within { border-color: var(--gold-glow); }

.boost-flag {
  padding: 0 12px;
  font-size: 13px;
  color: var(--muted);
  border-right: 1px solid var(--border);
  white-space: nowrap;
  flex-shrink: 0;
}

.boost-input {
  flex: 1;
  padding: 12px 14px;
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-family: var(--font-ui);
  font-size: clamp(14px, 1.1vw, 15px);
}
.boost-input::placeholder { color: var(--muted); }

/* ── Network selector ── */
.boost-network-row {
  display: flex;
  gap: 10px;
}

.boost-network-opt {
  cursor: pointer;
}

.boost-network-opt input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0; height: 0;
}

.boost-network-pill {
  display: block;
  padding: 8px 20px;
  border-radius: 50px;
  border: 1.5px solid var(--border-md);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all .15s;
  -webkit-tap-highlight-color: transparent;
}

.boost-network-opt input:checked + .boost-network-mtn {
  background: #ffcc00;
  border-color: #ffcc00;
  color: #000;
}

.boost-network-opt input:checked + .boost-network-airtel {
  background: #e03030;
  border-color: #e03030;
  color: #fff;
}

.boost-network-mtn  { color: var(--text-2); }
.boost-network-airtel { color: var(--text-2); }

/* ── Error ── */
.boost-error {
  font-size: 12px;
  color: #ef4444;
  min-height: 18px;
  margin-bottom: 8px;
}

/* ── Pay button ── */
.boost-pay-btn {
  width: 100%;
  padding: 14px;
  background: var(--gold);
  color: #000;
  border: none;
  border-radius: var(--r-sm);
  font-family: var(--font-ui);
  font-size: clamp(14px, 1.1vw, 16px);
  font-weight: 700;
  cursor: pointer;
  transition: opacity .18s, transform .18s;
  margin-bottom: 10px;
  -webkit-tap-highlight-color: transparent;
}
.boost-pay-btn:hover  { opacity: .9; transform: translateY(-1px); }
.boost-pay-btn:active { transform: scale(.98); }
.boost-pay-btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* ── Note ── */
.boost-note {
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  line-height: 1.5;
}

/* ── Step visibility ── */
.boost-step-hidden { display: none !important; }

/* ── Waiting step ── */
.boost-waiting-icon {
  font-size: 52px;
  text-align: center;
  margin-bottom: 14px;
  animation: phone-pulse 1.5s ease-in-out infinite;
}

@keyframes phone-pulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.08); }
}

.boost-waiting-text {
  text-align: center;
  font-size: clamp(13px, 1vw, 14px);
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.boost-spinner-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--muted);
}

.boost-spinner {
  width: 18px; height: 18px;
  border: 2px solid var(--border-md);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  flex-shrink: 0;
}

@keyframes spin { to { transform: rotate(360deg); } }

.boost-cancel-btn {
  display: block;
  margin: 0 auto;
  background: none;
  border: 1px solid var(--border-md);
  border-radius: var(--r-sm);
  color: var(--muted);
  font-size: 13px;
  padding: 8px 20px;
  cursor: pointer;
  transition: color .15s, border-color .15s;
}
.boost-cancel-btn:hover { color: var(--text); border-color: var(--text-2); }

/* ── Success step ── */
.boost-success-anim {
  font-size: 64px;
  text-align: center;
  margin-bottom: 14px;
  display: block;
}

.boost-anim--launch {
  animation: rocket-launch 1s cubic-bezier(.4, 0, .2, 1) forwards;
}

@keyframes rocket-launch {
  0%   { transform: translateY(0)   scale(1);    opacity: 1; }
  40%  { transform: translateY(-30px) scale(1.3); opacity: 1; }
  70%  { transform: translateY(-60px) scale(1.5); opacity: .6; }
  100% { transform: translateY(-100px) scale(2);  opacity: 0; }
}

.boost-title-success { color: var(--gold); text-align: center; }

.boost-success-text {
  text-align: center;
  font-size: clamp(13px, 1vw, 15px);
  color: var(--muted);
  margin-top: 8px;
}

/* ── Failed step ── */
.boost-fail-icon {
  font-size: 52px;
  text-align: center;
  margin-bottom: 14px;
}

.boost-fail-text {
  text-align: center;
  font-size: clamp(13px, 1vw, 14px);
  color: var(--muted);
  margin-bottom: 20px;
}

.boost-retry-btn {
  display: block;
  margin: 0 auto;
  padding: 10px 28px;
  background: var(--gold-dim);
  border: 1.5px solid var(--gold);
  border-radius: var(--r-sm);
  color: var(--gold);
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s;
}
.boost-retry-btn:hover { background: rgba(232, 184, 75, .2); }

/* ── Light theme ── */
[data-theme="light"] .boost-box {
  box-shadow: 0 -4px 24px rgba(0, 0, 0, .12);
}

[data-theme="light"] .boost-backdrop {
  background: rgba(0, 0, 0, .4);
}
