.sms-topup-fab {
  position: fixed;
  z-index: 40;
  top: 82px;
  right: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  background: #4665f6;
  color: #fff;
  box-shadow: 0 10px 28px rgba(30, 54, 132, 0.28);
  font: 700 14px/1.1 system-ui, sans-serif;
  cursor: pointer;
}
.sms-topup-fab[hidden] { display: none !important; }
.sms-topup-fab:hover { background: #3454ef; transform: translateY(-1px); }
.sms-topup-fab svg { width: 20px; height: 20px; fill: currentColor; }
.sms-topup-fab small { font: 600 12px/1 system-ui, sans-serif; opacity: 0.85; }
.sms-topup-backdrop {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(8, 16, 33, 0.58);
  backdrop-filter: blur(5px);
}
.sms-topup-backdrop[hidden] { display: none; }
.sms-topup-modal {
  width: min(760px, 100%);
  max-height: min(720px, calc(100vh - 36px));
  overflow: auto;
  border-radius: 24px;
  background: #fff;
  color: #101828;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.32);
  font-family: system-ui, sans-serif;
}
.sms-topup-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 26px 18px;
  border-bottom: 1px solid #e4e9f1;
}
.sms-topup-head h2 { margin: 0 0 5px; font-size: 26px; }
.sms-topup-head p { margin: 0; color: #5d6b82; }
.sms-topup-close {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #eef2f7;
  color: #172033;
  font-size: 25px;
  cursor: pointer;
}
.sms-topup-body { padding: 22px 26px 26px; }
.sms-topup-balance {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 18px;
  padding: 13px 16px;
  border-radius: 14px;
  background: #f2f5ff;
  color: #3045a6;
}
.sms-topup-balance strong { font-size: 22px; }
.sms-topup-packages {
  display: grid;
  grid-template-columns: repeat(5, minmax(105px, 1fr));
  gap: 10px;
}
.sms-topup-package {
  position: relative;
  min-height: 132px;
  padding: 16px 10px 12px;
  border: 1px solid #d7dfeb;
  border-radius: 16px;
  background: #fff;
  color: #101828;
  text-align: center;
  cursor: pointer;
}
.sms-topup-package:hover,
.sms-topup-package:focus-visible { border-color: #4665f6; box-shadow: 0 8px 22px rgba(70, 101, 246, 0.14); }
.sms-topup-package:disabled { opacity: 0.6; cursor: wait; }
.sms-topup-package strong { display: block; margin: 10px 0 5px; font-size: 20px; }
.sms-topup-package span { display: block; color: #526178; font-weight: 600; }
.sms-topup-package em {
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  padding: 3px 7px;
  border-radius: 999px;
  background: #4665f6;
  color: #fff;
  font: 700 10px/1.2 system-ui, sans-serif;
  white-space: nowrap;
}
.sms-topup-consent { display: flex; gap: 10px; margin: 20px 0 12px; color: #435169; font-size: 13px; }
.sms-topup-consent input { width: 18px; height: 18px; flex: 0 0 auto; }
.sms-topup-message { min-height: 21px; margin: 0; color: #b42318; font-weight: 650; }
.sms-topup-message.ok { color: #18794e; }
.sms-topup-signin { color: #405eea; font-weight: 750; }
body.sms-topup-open { overflow: hidden; }
@media (max-width: 760px) {
  .sms-topup-fab { top: auto; right: 14px; bottom: 16px; }
  .sms-topup-packages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sms-topup-head, .sms-topup-body { padding-left: 18px; padding-right: 18px; }
}
