:root {
  --bg: #f2f4f7;
  --panel: #ffffff;
  --ink: #111827;
  --muted: #64748b;
  --line: #e2e8f0;
  --red: #da2128;
  --red-dark: #b5121b;
  --teal: #06b6b4;
  --gold: #f5b326;
  --green: #10a768;
  --shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
  --radius: 8px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}

/* Hide scrollbar for Chrome, Safari and Opera */
::-webkit-scrollbar {
  display: none;
}

a { color: inherit; text-decoration: none; }

button, input { font: inherit; }

.app-shell {
  width: 100%;
  max-width: 390px;
  min-height: 100vh;
  margin: 0 auto;
  background: #f7f8fb;
  box-shadow: 0 0 0 1px rgba(16, 24, 40, 0.06);
  overflow-x: hidden;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 3px solid var(--red);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-family: Outfit, sans-serif;
  font-weight: 900;
  box-shadow: 0 9px 18px rgba(218, 33, 40, 0.24);
}

.brand strong, .brand small {
  display: block;
  line-height: 1.08;
}

.brand strong {
  font-family: Outfit, sans-serif;
  font-size: 21px;
  color: #111827;
}

.brand small {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  text-transform: none;
}

.avatar-btn {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #edf2f7;
  cursor: pointer;
}

.avatar-btn svg { width: 27px; fill: #cbd5e1; }

main { padding: 18px; }

.hero-card {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.35);
  border-radius: 18px;
  background: #111827;
  box-shadow: var(--shadow);
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 34px 16px 18px;
  background:
    linear-gradient(90deg, rgba(8, 13, 24, 0.9), rgba(8, 13, 24, 0.28) 70%),
    linear-gradient(180deg, transparent, rgba(8, 13, 24, 0.72));
  color: white;
}

.live-pill,
.verified-badge,
.modal-head span,
.success-card > span {
  display: inline-flex;
  align-items: center;
  width: max-content;
  border-radius: 8px;
  background: rgba(218, 33, 40, 0.94);
  color: #fff;
  padding: 5px 9px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}

.hero-card h1 {
  max-width: 285px;
  margin: 12px 0 6px;
  font-family: Outfit, sans-serif;
  font-size: 31px;
  line-height: 1;
  letter-spacing: 0;
}

.hero-card p {
  max-width: 330px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

.dots {
  position: absolute;
  bottom: 10px;
  right: 14px;
  display: flex;
  gap: 5px;
}

.dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  opacity: 0.55;
}

.dots span:first-child { background: #fff; }

.dots span.active {
  background: #fff;
  opacity: 1;
  transform: scale(1.12);
}

.game-strip,
.user-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px -18px 22px;
  padding: 16px 18px;
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.62)),
    url("banner.jpg") center/cover;
  border-bottom: 5px solid #f59e0b;
  color: #fff;
}

.game-icon,
.mini-avatar,
.currency-icon {
  display: grid;
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #fff5f5, #fef2f2);
  color: var(--teal);
  font-weight: 900;
}

.game-strip strong,
.game-strip span,
.user-banner strong,
.user-banner span {
  display: block;
}

.game-strip span,
.user-banner span {
  margin-top: 2px;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.secure-badge-inline {
  display: inline-flex !important;
  align-items: center;
  gap: 5px;
  color: #059669 !important;
  font-weight: 800 !important;
}

.secure-badge-inline svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
}

.scenic-panel {
  position: relative;
  min-height: 520px;
  margin: 0 -18px -18px;
  padding: 34px 18px 22px;
  overflow: hidden;
  border-radius: 0;
  background: #eef2f7;
}

.scenic-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(248, 250, 252, 0.08), rgba(248, 250, 252, 0.2) 42%, rgba(248, 250, 252, 0.04)),
    url("home.jpg") center top/cover;
  filter: none;
  transform: none;
}

.view-link {
  position: absolute;
  top: 18px;
  left: 26px;
  right: auto;
  color: #fff;
  font-size: 21px;
  font-weight: 900;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.35);
  z-index: 1;
}

.section-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
}

.login-card {
  position: absolute;
  left: 34px;
  right: auto;
  top: 134px;
  bottom: auto;
  width: calc(100vw - 68px);
  max-width: 322px;
  padding: 0;
  overflow: hidden;
  z-index: 1;
}

.section-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 0;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.section-head span {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 8px;
  background: var(--red);
  color: #fff;
  font-size: 22px;
  font-weight: 900;
}

.section-head strong {
  font-family: Outfit, sans-serif;
  font-size: 26px;
}

.login-body,
.packages-body {
  padding: 22px 20px 24px;
}

.field-group label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  color: #394456;
  font-size: 20px;
  font-weight: 900;
}

.info-dot {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #edf2f7;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px;
  gap: 0;
}

.player-input {
  min-width: 0;
  height: 58px;
  border: 1px solid var(--line);
  border-radius: 14px 0 0 14px;
  padding: 0 16px;
  background: #fff;
  outline: none;
  font-size: 16px;
  font-weight: 800;
}

.player-input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(11, 183, 181, 0.15);
}

.primary-btn,
.wide-btn,
.secondary-btn {
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 900;
}

.primary-btn,
.wide-btn {
  background: var(--red);
  color: #fff;
  box-shadow: 0 10px 20px rgba(227, 39, 53, 0.22);
}

.primary-btn {
  min-width: 0;
  width: 100%;
  height: 58px;
  border-radius: 0 14px 14px 0;
  font-size: 16px;
}

.wide-btn {
  width: 100%;
  padding: 14px 16px;
  text-align: center;
  text-transform: uppercase;
}

.as-link { display: block; }

.secondary-btn {
  width: 100%;
  margin-top: 10px;
  padding: 13px 16px;
  background: #eef2f7;
  color: var(--muted);
}

.loader {
  display: none;
  align-items: center;
  gap: 9px;
  margin-top: 11px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.loader span {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(227, 39, 53, 0.18);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.error-msg {
  display: none;
  margin-top: 10px;
  padding: 10px;
  border-radius: 8px;
  background: #fff1f2;
  color: var(--red-dark);
  font-size: 12px;
  font-weight: 800;
}

@keyframes spin { to { transform: rotate(360deg); } }

.app-footer {
  padding: 24px 16px 34px;
  background: #171717;
  color: #fff;
  text-align: center;
}

.app-footer strong {
  font-family: Outfit, sans-serif;
  font-size: 23px;
  color: #fff;
}

.app-footer p {
  max-width: 320px;
  margin: 8px auto 14px;
  color: #aeb7c6;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.app-footer nav {
  display: flex;
  justify-content: center;
  gap: 18px;
  color: #d7deea;
  font-size: 12px;
  font-weight: 800;
}

.modal-overlay,
.checkout-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(11, 18, 32, 0.72);
  backdrop-filter: blur(8px);
}

.modal-overlay.active,
.checkout-overlay.active { display: flex; }

.verified-modal,
.checkout-modal,
.success-card {
  position: relative;
  width: min(420px, 100%);
  border-radius: 14px;
  background: #fff;
  padding: 24px;
  text-align: center;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
  animation: pop 0.28s ease both;
}

@keyframes pop {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.close-btn {
  position: absolute;
  top: 14px;
  right: 16px;
  border: 0;
  background: transparent;
  color: #9aa5b5;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.verified-badge {
  margin: 0 auto 16px;
  background: #eafaf1;
  color: var(--green);
}

.verified-badge svg { width: 17px; fill: currentColor; }

.big-avatar {
  display: grid;
  width: 62px;
  height: 62px;
  margin: 0 auto 12px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red), #ff6b35);
  color: #fff;
  font-family: Outfit, sans-serif;
  font-size: 28px;
  font-weight: 900;
  box-shadow: 0 0 0 6px #f2f6fb;
}

.eyebrow {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.verified-modal h2,
.checkout-modal h2,
.success-card h1 {
  margin: 5px 0 16px;
  font-family: Outfit, sans-serif;
  letter-spacing: 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 18px;
}

.stats-grid div,
.player-box,
.receipt {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fafc;
}

.stats-grid div {
  padding: 10px;
}

.stats-grid span,
.stats-grid strong {
  display: block;
}

.stats-grid span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.stats-grid strong {
  margin-top: 3px;
  font-size: 13px;
}

.link-btn {
  margin-top: 12px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
}

.toast-wrap {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 30;
  width: min(440px, calc(100% - 22px));
  transform: translateX(-50%);
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-left: 4px solid var(--red);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
  transform: translateY(26px);
  opacity: 0;
  transition: 0.3s ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast b,
.toast span,
.toast small { display: block; }

.toast span {
  color: #059669;
  font-size: 13px;
  font-weight: 800;
}

.toast small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.user-banner {
  margin-top: 0;
}

.user-banner > div:nth-child(2) {
  min-width: 0;
  flex: 1;
}

.user-banner a {
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.packages-card {
  padding: 13px;
}

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
  padding: 4px;
  border-radius: 8px;
  background: #f1f5f9;
}

.tab {
  height: 38px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 900;
}

.tab.active {
  background: #fff;
  color: var(--red);
  box-shadow: 0 5px 15px rgba(16, 24, 40, 0.08);
}

.package-grid,
.deal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.deal-grid {
  grid-template-columns: repeat(2, 1fr);
}

.package-card,
.deal-card {
  position: relative;
  min-height: 118px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  text-align: center;
  transition: 0.18s ease;
}

.package-card:hover,
.deal-card:hover,
.package-card.selected,
.deal-card.selected {
  border-color: var(--red);
  box-shadow: 0 10px 24px rgba(227, 39, 53, 0.14);
  transform: translateY(-1px);
}

.badge {
  position: absolute;
  top: 6px;
  right: 6px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  padding: 3px 6px;
  font-size: 9px;
  font-weight: 900;
}

.crystal {
  color: var(--teal);
  font-size: 24px;
  line-height: 1;
}

.package-card strong,
.deal-card strong {
  font-size: 13px;
}

.price-stack span,
.price-stack b {
  display: block;
}

.price-stack span {
  color: #9aa5b5;
  font-size: 10px;
  font-weight: 800;
  text-decoration: line-through;
}

.price-stack b {
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
}

.subhead {
  margin: 20px 0 10px;
  font-family: Outfit, sans-serif;
  font-size: 18px;
}

.modal-head span {
  margin: 0 auto 8px;
  background: #fff0f1;
  color: var(--red);
}

.selected-item {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fafc;
  text-align: left;
}

.selected-item strong,
.selected-item span {
  display: block;
}

.selected-item span {
  margin-top: 3px;
  color: var(--red);
  font-weight: 900;
}

.player-box,
.receipt {
  margin-bottom: 14px;
  padding: 14px;
  text-align: left;
}

.player-box > strong {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.player-box p,
.receipt p {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 7px 0;
  border-bottom: 1px solid #e9eef5;
  font-size: 13px;
}

.player-box p:last-child,
.receipt p:last-child { border-bottom: 0; }

.player-box span,
.receipt span {
  color: var(--muted);
  font-weight: 700;
}

.secure-note {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-bottom: 15px;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.secure-note svg {
  width: 15px;
  fill: currentColor;
}

.success-screen {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(9, 16, 29, 0.15), rgba(9, 16, 29, 0.82)),
    url("home.jpg") center/cover;
}

.success-card {
  max-width: 420px;
}

.success-icon {
  display: grid;
  width: 70px;
  height: 70px;
  margin: 0 auto 14px;
  place-items: center;
  border-radius: 50%;
  background: #eafaf1;
  color: var(--green);
}

.success-icon svg {
  width: 38px;
  fill: currentColor;
}

.success-card > span {
  margin: 0 auto 7px;
  background: #fff0f1;
  color: var(--red);
}

.success-card p {
  color: var(--muted);
  font-weight: 700;
}

@media (max-width: 360px) {
  main { padding: 10px; }
  .hero-card h1 { font-size: 25px; }
  .package-grid { gap: 7px; }
  .package-card, .deal-card { min-height: 112px; }
  .package-card strong, .deal-card strong { font-size: 12px; }
}

@media (max-width: 430px) {
  .hero-card h1 {
    max-width: 230px;
    font-size: 25px;
  }

  .input-row {
    grid-template-columns: minmax(0, 1fr) 92px;
  }

  .primary-btn {
    width: 100%;
  }

}

@media (max-width: 600px) {
  .app-shell {
    max-width: none;
  }
}

/* Screenshot-style refinement */
.page-home .input-row {
  grid-template-columns: minmax(0, 1fr) 92px;
}

.page-home .primary-btn {
  border-radius: 0 14px 14px 0;
}

.page-home .app-footer {
  margin-top: 0;
}

.page-topup main {
  padding: 0;
}

.page-topup .user-banner {
  position: relative;
  margin: 0;
  padding: 24px 92px 28px 18px;
  gap: 10px;
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.page-topup .user-banner span {
  color: var(--muted);
  font-size: 14px;
}

.page-topup .user-banner strong {
  font-size: 18px;
}

.page-topup .user-banner a {
  color: var(--red);
  position: absolute;
  right: 54px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
}

.page-topup .mini-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  color: var(--red);
  font-size: 22px;
  background: #fff1f2;
}

.packages-card {
  margin: 22px 18px 28px;
  padding: 0;
  overflow: hidden;
}

.packages-body {
  padding: 24px 18px 30px;
}

.packages-card .section-head {
  padding: 22px 20px;
}

.tabs {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
  padding: 0;
  background: transparent;
}

.tab {
  min-width: 108px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 18px;
}

.tab.active {
  border-color: var(--red);
  background: #fff1f2;
  color: var(--red);
  box-shadow: none;
}

.package-grid {
  grid-template-columns: repeat(3, 94px);
  gap: 8px;
  justify-content: start;
}

.deal-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.redeem-panel[hidden],
.purchase-panel[hidden] {
  display: none;
}

.redeem-title {
  margin: 4px 0 3px;
  font-family: Outfit, sans-serif;
  color: #111827;
  font-size: 24px;
  line-height: 1.1;
}

.redeem-offer {
  width: max-content;
  margin: 0 0 16px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #fff1f2;
  color: var(--red);
  font-weight: 900;
  letter-spacing: 1px;
}

.redeem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.redeem-card {
  position: relative;
  min-height: 142px;
  padding: 14px 6px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  text-align: center;
  transition: 0.18s ease;
}

.google-play-card-img {
  display: block;
  width: 74px;
  height: 48px;
  object-fit: contain;
  margin: 4px auto 6px;
}

.google-play-checkout-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.redeem-card:hover,
.redeem-card.selected {
  border-color: var(--red);
  border-width: 2px;
  background: #fff1f2;
}

.play-mark {
  display: grid;
  width: 38px;
  height: 38px;
  margin: 6px auto 8px;
  place-items: center;
  border-radius: 9px;
  background: linear-gradient(135deg, #19c37d, #4aa3ff 45%, #ffd43b 72%, #ef4444);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.48);
}

.play-mark::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 3px;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 14px solid #fff;
}

.play-mark.large {
  width: 50px;
  height: 50px;
  margin: 0;
}

.play-mark.large::before {
  border-top-width: 12px;
  border-bottom-width: 12px;
  border-left-width: 18px;
}

.redeem-card strong {
  display: block;
  font-family: Outfit, sans-serif;
  font-size: 20px;
}

.redeem-card em {
  display: block;
  min-height: 28px;
  margin: 3px 0 6px;
  color: var(--muted);
  font-style: normal;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.15;
}

.custom-redeem {
  margin-top: 18px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fafc;
}

.custom-redeem label {
  display: block;
  margin-bottom: 10px;
  color: #334155;
  font-size: 16px;
  font-weight: 900;
}

.custom-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 104px;
  gap: 8px;
}

.custom-amount-input {
  min-width: 0;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 13px;
  background: #fff;
  color: #111827;
  font-weight: 800;
  outline: none;
}

.custom-buy-btn {
  height: 46px;
  border: 0;
  border-radius: 8px;
  background: var(--red);
  color: #fff;
  cursor: pointer;
  font-weight: 900;
}

.custom-redeem small {
  display: block;
  margin-top: 9px;
  color: var(--muted);
  font-weight: 800;
}

.package-card {
  min-height: 132px;
  min-width: 0;
  padding: 12px 3px;
  border-radius: 10px;
}

.deal-card {
  min-height: 220px;
  padding: 16px 10px;
  border-radius: 10px;
}

.package-card:hover,
.deal-card:hover,
.package-card.selected,
.deal-card.selected {
  border-color: var(--red);
  border-width: 2px;
  background: #fff1f2;
  box-shadow: none;
}

.badge {
  top: 8px;
  right: 8px;
  padding: 4px 7px;
  font-size: 11px;
}

.crystal {
  color: #67d6f5;
  font-size: 31px;
}

.package-card strong,
.deal-card strong {
  font-family: Outfit, sans-serif;
  font-size: 18px;
}

.package-card .item-name {
  display: none;
}

.deal-card .deal-art {
  display: grid;
  width: 104px;
  height: 62px;
  place-items: center;
  margin-bottom: 8px;
  border-radius: 10px;
  background: linear-gradient(135deg, #ef54ff, #7c3aed);
  color: #fff;
  font-family: Outfit, sans-serif;
  font-size: 25px;
  font-weight: 900;
  box-shadow: 0 12px 20px rgba(124, 58, 237, 0.2);
}

.deal-card:nth-child(2) .deal-art {
  background: linear-gradient(135deg, #fde047, #f59e0b);
}

.deal-card:nth-child(3) .deal-art {
  background: linear-gradient(135deg, #93c5fd, #2563eb);
}

.deal-card:nth-child(n+4) .deal-art {
  background: linear-gradient(135deg, #ef4444, #b91c1c);
}

.price-stack span {
  font-size: 14px;
}

.price-stack b {
  font-size: 17px;
}

.subhead {
  margin: 28px 0 16px;
  padding-left: 12px;
  border-left: 4px solid var(--red);
  color: var(--muted);
  font-size: 24px;
}

.app-footer {
  padding: 56px 18px 46px;
  background: #111;
}

.app-footer strong {
  font-size: 34px;
}

.app-footer p {
  margin: 22px auto 26px;
  color: #858585;
  font-size: 16px;
}

.app-footer nav {
  gap: 22px;
  font-size: 16px;
  text-decoration: underline;
}

.checkout-modal {
  width: min(390px, 100%);
  padding: 38px 28px 28px;
  border-radius: 22px;
}

.checkout-modal h2 {
  font-size: 30px;
  line-height: 1.05;
}

.checkout-modal .modal-head span {
  padding: 8px 18px;
  border-radius: 999px;
  color: var(--red);
  letter-spacing: 2px;
}

.selected-item {
  gap: 18px;
  margin-bottom: 18px;
  padding: 18px;
  border-radius: 16px;
  background: #f5f7fb;
}

.selected-item .currency-icon {
  width: 74px;
  height: 74px;
  font-size: 36px;
  background: #fff;
}

.selected-item strong {
  font-size: 22px;
}

.selected-item span {
  font-size: 24px;
}

.player-box {
  padding: 18px;
  border-style: dashed;
  background: #fff;
}

.player-box > strong {
  font-size: 14px;
  letter-spacing: 1px;
}

.player-box p {
  padding: 10px 0;
  font-size: 17px;
}

.secure-note {
  margin-bottom: 22px;
  font-size: 15px;
}

.page-payment main.payment-main {
  padding: 18px;
}

.secure-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  background: #e9fbf2;
  color: #10a768;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.secure-chip svg {
  width: 14px;
  fill: currentColor;
}

.timer-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding: 18px 14px;
  border-left: 7px solid #f59e0b;
  border-radius: 8px;
  background: #111827;
  color: #fff;
}

.timer-card span {
  font-size: 16px;
  font-weight: 800;
}

.timer-card strong {
  border-radius: 8px;
  background: rgba(245, 158, 11, 0.13);
  color: #f59e0b;
  padding: 8px 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 21px;
}

.payment-card {
  margin-bottom: 18px;
  padding: 22px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.payment-card h1 {
  margin: 0 0 18px;
  color: var(--muted);
  font-family: Outfit, sans-serif;
  font-size: 24px;
  text-transform: uppercase;
}

.pay-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid #edf2f7;
}

.pay-diamond {
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fafc;
  font-size: 36px;
}

.pay-item strong,
.pay-item span {
  display: block;
  font-family: Outfit, sans-serif;
}

.pay-item strong {
  font-size: 24px;
}

.pay-item span {
  margin-top: 5px;
  color: var(--red);
  font-size: 25px;
  font-weight: 900;
}

.pay-info {
  margin-top: 18px;
  padding: 16px;
  border-radius: 14px;
  background: #f8fafc;
}

.pay-info p {
  display: flex;
  justify-content: space-between;
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.pay-info p:last-child {
  margin-bottom: 0;
}

.pay-info b {
  color: var(--ink);
  text-align: right;
}

.page-payment .brand strong {
  font-size: 18px;
}

.page-payment .brand small {
  font-size: 13px;
}

.qr-card {
  text-align: center;
}

.qr-card h2 {
  margin: 0 0 22px;
  font-family: Outfit, sans-serif;
  font-size: 25px;
}

.fake-qr {
  position: relative;
  display: grid;
  width: 230px;
  height: 230px;
  place-items: center;
  margin: 0 auto 14px;
  border: 14px solid #fff;
  border-radius: 24px;
  background:
    linear-gradient(90deg, #000 10px, transparent 10px) 0 0/24px 24px,
    linear-gradient(#000 10px, transparent 10px) 0 0/24px 24px,
    #fff;
  box-shadow: inset 0 0 0 1px var(--line), 0 0 0 1px var(--line);
}

.fake-qr span {
  display: grid;
  width: 88px;
  height: 38px;
  place-items: center;
  background: #fff;
  color: var(--red);
  font-family: Outfit, sans-serif;
  font-weight: 900;
}

.qr-card p {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

/* Final checkout page matching the provided screenshot */
.page-payment .app-shell {
  background: #f7f8fb;
}

.page-payment .app-header {
  min-height: 76px;
  padding: 15px 20px;
}

.page-payment .brand-logo {
  width: 50px;
  height: 50px;
}

.page-payment .brand strong {
  font-size: 19px;
}

.page-payment .brand small {
  font-size: 15px;
}

.page-payment main.payment-main {
  padding: 20px 16px 18px;
}

.payment-order-card {
  display: none;
}

.page-payment .qr-card {
  margin: 0 0 34px;
  padding: 22px 18px 26px;
  border-radius: 14px;
  text-align: center;
}

.page-payment .qr-card h2 {
  margin: 0 0 14px;
  font-size: 21px;
}

.page-payment .fake-qr {
  width: 246px;
  height: 246px;
  margin-bottom: 18px;
  border: 10px solid #fff;
  border-radius: 16px;
  background:
    linear-gradient(90deg, transparent 47%, rgba(218, 33, 40, 0.88) 47%, rgba(218, 33, 40, 0.88) 53%, transparent 53%) center/100% 100%,
    radial-gradient(circle at 18% 18%, #000 0 18px, transparent 19px),
    radial-gradient(circle at 82% 18%, #000 0 18px, transparent 19px),
    radial-gradient(circle at 18% 82%, #000 0 18px, transparent 19px),
    conic-gradient(from 90deg, #000 0 25%, #fff 0 50%, #000 0 75%, #fff 0) 0 0/28px 28px,
    #fff;
}

.page-payment .fake-qr span {
  width: 76px;
  height: 34px;
  font-size: 13px;
}

.download-qr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: min(248px, 100%);
  height: 56px;
  margin: 4px auto 22px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, #ef2330, #ba111b);
  color: #fff;
  font-family: Outfit, sans-serif;
  font-size: 20px;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(218, 33, 40, 0.22);
  cursor: pointer;
}

.download-qr-btn span {
  font-size: 24px;
  line-height: 1;
}

.upi-copy {
  display: none;
}

.payment-alert {
  display: grid;
  gap: 5px;
  width: min(330px, 100%);
  margin: 0 auto 18px;
  padding: 16px 14px;
  border: 1px solid #f6dd72;
  border-radius: 12px;
  background: #fff9dd;
  color: #8a4b08;
  text-align: center;
}

.payment-alert strong {
  color: #db6d05;
  font-family: Outfit, sans-serif;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.1;
}

.payment-alert > span {
  font-size: 15px;
  font-weight: 700;
}

.payment-alert > em {
  color: #8a6a45;
  font-size: 15px;
  font-style: italic;
  font-weight: 600;
}

.waiting-box {
  max-width: 330px;
  margin: 0 auto;
  padding: 17px 15px;
  border: 1px solid #fde68a;
  border-radius: 10px;
  background: #fffdf2;
  color: #a14200;
  font-family: Outfit, sans-serif;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.35;
}

.upi-app-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: min(330px, 100%);
  margin: 0 auto 16px;
}

.upi-app-options[hidden],
.upi-app-btn[hidden] {
  display: none !important;
}

.upi-app-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 70px;
  padding: 0 12px;
  border: 2px solid currentColor;
  border-radius: 12px;
  background: #fff;
  font-family: Outfit, sans-serif;
  font-size: 19px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.07);
  transition: transform 0.14s ease, box-shadow 0.14s ease, background 0.14s ease;
}

.upi-app-btn:hover {
  box-shadow: 0 11px 22px rgba(15, 23, 42, 0.1);
  transform: translateY(-1px);
}

.upi-app-btn:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 4px rgba(15, 23, 42, 0.08), 0 11px 22px rgba(15, 23, 42, 0.1);
}

.upi-app-btn:active {
  transform: translateY(1px) scale(0.99);
}

.upi-app-btn[aria-disabled="true"] {
  opacity: 0.55;
  pointer-events: none;
}

.paytm-btn {
  color: #10aee8;
  background: linear-gradient(180deg, #ffffff 0%, #f4fcff 100%);
  border-color: #21b8ed;
}

.phonepe-btn {
  color: #5f259f;
  background: linear-gradient(180deg, #ffffff 0%, #fbf8ff 100%);
  border-color: #5f259f;
}

.upi-icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 50%;
  overflow: hidden;
  background: transparent;
}

.upi-app-icon {
  display: block;
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.phonepe-btn .upi-app-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.upi-app-label {
  min-width: 0;
  white-space: nowrap;
}

.upi-icon-box:not(.fallback-only) .paytm-mark,
.upi-icon-box:not(.fallback-only) .phonepe-mark {
  display: none;
}

.paytm-mark {
  width: 26px;
  height: 18px;
  border-radius: 3px;
  background:
    linear-gradient(90deg, #f3c13a 0 50%, transparent 50%),
    linear-gradient(#002970 0 0) left 0 top 0 / 100% 5px no-repeat,
    #fff7d1;
  box-shadow: inset 0 0 0 1px rgba(0, 41, 112, 0.18);
}

.phonepe-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: #5f259f;
  font-size: 20px;
  line-height: 1;
}

.already-paid-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(330px, 100%);
  min-height: 72px;
  margin: 0 auto;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  background: #ef3434;
  color: #fff;
  font-family: Outfit, sans-serif;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(239, 52, 52, 0.2);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.already-paid-btn:hover {
  background: #e92929;
  box-shadow: 0 15px 30px rgba(239, 52, 52, 0.26);
}

.already-paid-btn:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 4px rgba(239, 52, 52, 0.16), 0 15px 30px rgba(239, 52, 52, 0.24);
}

.already-paid-btn:active {
  transform: translateY(1px) scale(0.995);
}

.utr-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.46);
}

.utr-overlay.active {
  display: flex;
}

.utr-modal {
  position: relative;
  width: min(352px, 100%);
  padding: 22px 20px 20px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
}

.utr-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #f2f4f8;
  color: #475569;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.utr-modal-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-right: 34px;
  margin-bottom: 20px;
}

.utr-modal-head > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #fff4e6;
  color: #ef3434;
  font-family: Outfit, sans-serif;
  font-size: 14px;
  font-weight: 900;
}

.utr-modal h3 {
  margin: 0 0 3px;
  color: #111827;
  font-family: Outfit, sans-serif;
  font-size: 22px;
  line-height: 1.1;
}

.utr-modal p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.utr-form {
  display: grid;
  gap: 10px;
}

.utr-form label {
  color: #334155;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.utr-form input {
  width: 100%;
  height: 52px;
  padding: 0 14px;
  border: 1px solid #d9e0ea;
  border-radius: 12px;
  color: #111827;
  font-family: Inter, sans-serif;
  font-size: 17px;
  font-weight: 800;
  outline: 0;
}

.utr-form input:focus {
  border-color: #ef3434;
  box-shadow: 0 0 0 4px rgba(239, 52, 52, 0.12);
}

.utr-error {
  min-height: 18px;
  color: #dc2626;
  font-size: 12px;
  font-weight: 800;
}

.utr-submit {
  height: 54px;
  border: 0;
  border-radius: 12px;
  background: #ef3434;
  color: #fff;
  font-family: Outfit, sans-serif;
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
}

.utr-success {
  display: none;
  padding: 17px 14px;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  background: #f0fdf4;
  color: #15803d;
  font-family: Outfit, sans-serif;
  font-size: 17px;
  font-weight: 900;
  text-align: center;
}

.utr-success.active {
  display: block;
}

.payment-footer {
  padding: 58px 18px 48px;
}

.payment-footer .footer-logo {
  width: min(176px, 62%);
  height: auto;
}

.payment-footer p {
  max-width: 330px;
  margin: 18px auto 0;
  font-size: 15px;
  line-height: 1.55;
}

.page-payment .brand strong {
  font-size: 17px;
}

.page-payment .brand small {
  font-size: 13px;
}

.page-payment .secure-chip {
  padding: 7px 9px;
  font-size: 11px;
}

.qr-image {
  display: block;
  width: 246px;
  height: 246px;
  margin: 0 auto 18px;
  border: 10px solid #fff;
  border-radius: 16px;
  box-shadow: inset 0 0 0 1px var(--line), 0 0 0 1px var(--line), 0 12px 24px rgba(15, 23, 42, 0.08);
}

.page-payment .app-header {
  padding-left: 14px;
  padding-right: 14px;
}

.page-payment .brand {
  gap: 7px;
}

.page-payment .brand-logo {
  width: 44px;
  height: 44px;
}

.page-payment .brand strong {
  font-size: 16px;
}

.page-payment .brand small {
  font-size: 12px;
}

.page-payment .secure-chip {
  padding: 7px 8px;
  font-size: 10px;
}

/* User-provided PNG/JPG placement */
.brand-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  flex: 0 0 auto;
}

.hero-card {
  min-height: 184px;
}

.hero-card .hero-overlay {
  display: none;
}

.game-strip {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.58)),
    url("banner.jpg") center/cover;
}

.game-icon img,
.currency-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.scenic-panel {
  background: #eef2f7;
}

.footer-logo {
  display: block;
  width: min(176px, 62%);
  height: auto;
  object-fit: contain;
  margin: 0 auto 20px;
}

.diamond-art {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.deal-card .deal-art {
  width: 118px;
  height: 76px;
  object-fit: contain;
  margin-bottom: 8px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.pay-diamond img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Final payment header fit override */
.page-payment .app-header {
  position: sticky;
  padding: 14px 92px 14px 14px;
}

.page-payment .app-shell {
  width: 100vw;
  max-width: 390px;
  overflow-x: hidden;
}

.page-payment .brand-logo {
  width: 44px;
  height: 44px;
}

.page-payment .secure-chip {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 86px;
  justify-content: center;
  padding: 7px 8px;
  font-size: 10px;
}

/* Final homepage compact override based on the two supplied screenshots */
.page-home .app-shell {
  max-width: 390px;
  background: #f4f6fa;
}

.page-home .app-header {
  min-height: 48px;
  padding: 5px 10px;
  border-bottom-width: 2px;
}

.page-home .brand {
  gap: 7px;
}

.page-home .brand-logo {
  width: 31px;
  height: 31px;
}

.page-home .brand strong {
  font-size: 12px;
  line-height: 1.02;
}

.page-home .brand small {
  font-size: 10px;
  line-height: 1.05;
}

.page-home .avatar-btn {
  width: 29px;
  height: 29px;
}

.page-home .avatar-btn svg {
  width: 21px;
}

.page-home main {
  padding: 7px 6px 0;
}

.page-home .hero-card {
  min-height: 128px;
  margin: 6px 0 8px;
  border-radius: 7px;
}

.page-home .dots {
  right: 9px;
  bottom: 6px;
}

.page-home .dots span {
  width: 7px;
  height: 7px;
}

.page-home .game-strip {
  min-height: 43px;
  margin: 0 -6px;
  padding: 5px 8px;
  gap: 8px;
  border-bottom-width: 4px;
}

.page-home .game-icon {
  width: 38px;
  height: 38px;
  border-radius: 5px;
}

.page-home .game-strip strong {
  font-size: 14px;
  line-height: 1.05;
}

.page-home .secure-badge-inline {
  gap: 3px;
  font-size: 9px !important;
  line-height: 1.1;
}

.page-home .secure-badge-inline svg {
  width: 9px;
  height: 9px;
}

.page-home .scenic-panel {
  min-height: 392px;
  margin: 0 -6px;
  padding: 0;
}

.page-home .scenic-bg {
  background:
    linear-gradient(180deg, rgba(248, 250, 252, 0.04), rgba(248, 250, 252, 0.13)),
    url("home.jpg") center top/cover;
}

.page-home .view-link {
  top: 31px;
  left: 11px;
  font-size: 15px;
  line-height: 1;
}

.page-home .login-card {
  top: 105px;
  left: 7px;
  width: calc(100% - 14px);
  max-width: none;
  border-radius: 6px;
}

.page-home .section-head {
  gap: 9px;
  padding: 10px 12px;
}

.page-home .section-head span {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  font-size: 12px;
}

.page-home .section-head strong {
  font-size: 14px;
}

.page-home .login-body {
  padding: 12px;
}

.page-home .field-group label {
  margin-bottom: 8px;
  font-size: 12px;
}

.page-home .info-dot {
  width: 15px;
  height: 15px;
  font-size: 9px;
}

.page-home .input-row {
  grid-template-columns: minmax(0, 1fr) 65px;
}

.page-home .player-input {
  height: 31px;
  border-radius: 6px 0 0 6px;
  padding: 0 11px;
  font-size: 11px;
}

.page-home .primary-btn {
  height: 31px;
  border-radius: 0 6px 6px 0;
  font-size: 11px;
}

.page-home .toast-wrap {
  bottom: 7px;
  width: calc(100% - 8px);
}

.page-home .toast {
  min-height: 52px;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 6px;
  border-left-width: 3px;
}

.page-home .toast .currency-icon {
  width: 42px;
  height: 42px;
  border-radius: 7px;
}

.page-home .toast b {
  font-size: 12px;
  line-height: 1.1;
}

.page-home .toast span {
  font-size: 11px;
  line-height: 1.1;
}

.page-home .toast small {
  font-size: 10px;
}

/* Final screenshot match: homepage sizing/positioning */
.page-home {
  width: 100vw;
  min-width: 0;
  background: #f4f6fa;
}

.page-home .app-shell {
  width: 100vw;
  max-width: 390px;
  min-width: 0;
  margin: 0;
  box-shadow: none;
}

.page-home .app-header {
  min-height: 56px;
  padding: 7px 10px;
}

.page-home .brand-logo {
  width: 35px;
  height: 35px;
}

.page-home .brand strong {
  font-size: 15px;
}

.page-home .brand small {
  font-size: 12px;
}

.page-home .avatar-btn {
  width: 34px;
  height: 34px;
}

.page-home main {
  padding: 8px 6px 0;
}

.page-home .hero-card {
  aspect-ratio: 2.05 / 1;
  min-height: 0;
  margin: 6px 0 8px;
  border-radius: 7px;
}

.page-home .hero-img {
  object-position: center center;
}

.page-home .game-strip {
  min-height: 43px;
  margin: 0 -6px;
  padding: 5px 8px;
}

.page-home .scenic-panel {
  min-height: 560px;
}

.page-home .scenic-bg {
  background:
    linear-gradient(180deg, rgba(248, 250, 252, 0.02), rgba(248, 250, 252, 0.12)),
    url("home.jpg") center top/cover;
}

.page-home .view-link {
  top: 34px;
  left: 12px;
  font-size: 15px;
}

.page-home .login-card {
  top: 116px;
  left: 28px;
  width: calc(100% - 56px);
}

.page-home .section-head {
  padding: 10px 12px;
}

.page-home .section-head span {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  font-size: 16px;
}

.page-home .section-head strong {
  font-size: 16px;
}

.page-home .login-body {
  padding: 14px 12px 12px;
}

.page-home .field-group label {
  font-size: 13px;
}

.page-home .input-row {
  grid-template-columns: minmax(0, 1fr) 65px;
}

.page-home .player-input,
.page-home .primary-btn {
  height: 32px;
  font-size: 11px;
}

.page-home .player-input::placeholder {
  font-size: 11px;
}

.page-home .toast-wrap {
  width: calc(100vw - 8px);
  max-width: 382px;
}

/* Final topup redeem layout */
.page-topup {
  width: 100vw;
  min-width: 0;
  overflow-x: hidden;
  background: #f4f6fa;
}

.page-topup .app-shell {
  width: 100%;
  max-width: 390px;
  min-width: 0;
  margin: 0 auto;
  overflow-x: hidden;
}

.page-topup .user-banner {
  padding-right: 76px;
}

.page-topup .user-banner a {
  right: 12px;
  max-width: 70px;
  overflow: hidden;
  text-align: right;
}

.page-topup .packages-body {
  overflow-x: hidden;
}

.page-topup .redeem-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.page-topup .redeem-card {
  min-width: 0;
  min-height: 156px;
  padding: 14px 8px 12px;
}

.page-topup .google-play-card-img {
  width: 88px;
  height: 54px;
}

.page-topup .redeem-card strong {
  font-size: 19px;
}

.page-topup .custom-row {
  grid-template-columns: minmax(0, 1fr) 92px;
}

.page-topup .custom-buy-btn {
  padding: 0 8px;
  font-size: 14px;
  white-space: nowrap;
}

@media (max-width: 330px) {
  .page-topup .redeem-grid {
    grid-template-columns: 1fr;
  }
}

/* Compact topup and checkout screens */
.page-topup .app-header,
.page-payment .app-header {
  min-height: 58px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.page-topup .brand-logo,
.page-payment .brand-logo {
  width: 36px;
  height: 36px;
}

.page-topup .brand strong,
.page-payment .brand strong {
  font-size: 16px;
}

.page-topup .brand small,
.page-payment .brand small {
  font-size: 12px;
}

.page-topup .user-banner {
  padding-top: 16px;
  padding-bottom: 16px;
}

.page-topup .mini-avatar {
  width: 42px;
  height: 42px;
  font-size: 18px;
}

.page-topup .user-banner strong {
  font-size: 16px;
}

.page-topup .user-banner span,
.page-topup .user-banner a {
  font-size: 12px;
}

.page-topup .packages-card {
  margin: 16px 18px 24px;
}

.page-topup .packages-card .section-head {
  padding: 16px 18px;
}

.page-topup .section-head span {
  width: 34px;
  height: 34px;
  font-size: 18px;
}

.page-topup .section-head strong {
  font-size: 23px;
}

.page-topup .packages-body {
  padding: 18px 16px 24px;
}

.page-topup .tab {
  min-width: 96px;
  height: 42px;
  font-size: 16px;
}

.page-topup .package-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.page-topup .package-card {
  min-height: 118px;
  padding: 10px 3px;
}

.page-topup .diamond-art {
  width: 34px;
  height: 34px;
}

.page-topup .package-card strong {
  font-size: 16px;
}

.page-topup .price-stack span {
  font-size: 12px;
}

.page-topup .price-stack b {
  font-size: 15px;
}

.page-topup .subhead {
  margin: 22px 0 12px;
  font-size: 20px;
}

.page-topup .deal-card {
  min-height: 184px;
  padding: 14px 8px;
}

.page-topup .deal-card .deal-art {
  width: 100px;
  height: 58px;
}

.page-topup .deal-card strong {
  font-size: 17px;
}

.checkout-modal {
  width: min(352px, calc(100% - 24px));
  padding: 30px 22px 22px;
  border-radius: 18px;
}

.checkout-modal h2 {
  font-size: 25px;
}

.checkout-modal .modal-head span {
  padding: 6px 14px;
  font-size: 11px;
}

.selected-item {
  gap: 14px;
  padding: 14px;
}

.selected-item .currency-icon {
  width: 62px;
  height: 62px;
}

.selected-item strong {
  font-size: 19px;
}

.selected-item span {
  font-size: 21px;
}

.player-box {
  padding: 14px;
}

.secure-note {
  font-size: 14px;
}

.wide-btn,
.secondary-btn {
  height: 54px;
  font-size: 16px;
}

.page-payment .secure-chip {
  width: 80px;
  font-size: 10px;
}

.page-payment main.payment-main {
  gap: 16px;
  padding: 18px 16px 24px;
}

.page-payment .payment-card {
  padding: 22px 18px;
  border-radius: 14px;
}

.page-payment .payment-card h1 {
  margin-bottom: 18px;
  font-size: 22px;
}

.pay-item {
  gap: 14px;
  margin-bottom: 18px;
}

.pay-diamond {
  width: 58px;
  height: 58px;
}

.pay-item strong {
  font-size: 22px;
}

.pay-item span {
  font-size: 21px;
}

.pay-info {
  padding: 14px 16px;
}

.pay-info p {
  font-size: 15px;
}

.page-payment .qr-card {
  padding: 24px 18px 22px;
}

.page-payment .qr-card h2 {
  margin-bottom: 18px;
  font-size: 24px;
}

.page-payment .qr-image {
  width: min(244px, 86%);
  padding: 12px;
}

.download-qr-btn {
  width: min(236px, 90%);
  height: 48px;
  font-size: 15px;
}

.qr-card p {
  max-width: 310px;
  font-size: 15px;
  line-height: 1.5;
}

.waiting-box {
  padding: 13px 14px;
  font-size: 15px;
}

.payment-footer {
  padding: 48px 18px 38px;
}

.payment-footer .footer-logo {
  width: min(176px, 62%);
  height: auto;
}

.payment-footer p {
  font-size: 14px;
}

.page-payment {
  width: 100vw;
  min-width: 0;
  overflow-x: hidden;
  background: #f4f6fa;
}

.page-payment .app-shell {
  width: 100%;
  max-width: 390px;
  min-width: 0;
  margin: 0 auto;
  box-shadow: none;
}

.page-payment .app-header {
  padding-right: 92px;
}

.page-payment .secure-chip {
  right: 8px;
  width: 76px;
}

/* Payment order information card */
.page-payment .payment-order-card {
  display: block;
  padding: 24px 24px 22px;
  border-radius: 16px;
}

.page-payment .payment-order-card h1 {
  margin: 0 0 22px;
  text-align: center;
  color: #111827;
  font-size: 24px;
  line-height: 1.15;
  text-transform: none;
}

.page-payment .payment-order-card .pay-item {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f7f9fc;
}

.page-payment .payment-order-card .pay-diamond {
  width: 58px;
  height: 58px;
  background: transparent;
}

.page-payment .payment-order-card .pay-item strong {
  font-size: 22px;
  line-height: 1.1;
}

.page-payment .payment-order-card .pay-item span {
  margin-top: 5px;
  font-size: 23px;
}

.page-payment .payment-order-card .pay-info {
  padding: 17px 18px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  background: #fff;
}

.page-payment .payment-order-card .pay-info p {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 0;
  border-bottom: 1px solid #edf1f7;
  color: #64748b;
  font-size: 16px;
  font-weight: 900;
}

.page-payment .payment-order-card .pay-info span {
  flex: 0 0 auto;
  white-space: nowrap;
}

.page-payment .payment-order-card .pay-info p:last-child {
  border-bottom: 0;
}

.page-payment .payment-order-card .pay-info b {
  color: #111827;
  text-align: right;
  font-size: 16px;
  word-break: keep-all;
}

@media (max-width: 360px) {
  .upi-app-options {
    gap: 10px;
  }

  .upi-app-btn {
    gap: 6px;
    min-height: 66px;
    padding: 0 8px;
    font-size: 17px;
  }

  .upi-icon-box,
  .upi-app-icon {
    width: 34px;
    height: 34px;
  }

  .phonepe-btn .upi-app-icon {
    width: 30px;
    height: 30px;
  }

  .payment-alert strong,
  .already-paid-btn {
    font-size: 18px;
  }
}

/* Mobile webview width fix */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.page-home {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  background: #f4f6fa;
}

.page-home .app-shell {
  width: 100%;
  max-width: none;
  margin: 0;
}

.page-home main,
.page-home .app-footer {
  width: 100%;
}

@media (min-width: 600px) {
  .page-home .app-shell {
    max-width: 430px;
    margin: 0 auto;
  }
}

.page-topup .user-banner.has-player-banner {
  min-height: 108px;
  padding: 10px 12px;
  background-color: #080b12;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  border: 0;
  overflow: hidden;
}

.page-topup .user-banner.has-player-banner .mini-avatar,
.page-topup .user-banner.has-player-banner > div:not(.mini-avatar) {
  display: none;
}

.page-topup .user-banner.has-player-banner a {
  margin-left: auto;
  align-self: flex-start;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.56);
  color: #fff;
  font-size: 12px;
  line-height: 1;
  text-decoration: none;
}

/* Premium dark gaming refresh */
:root {
  --game-bg: #080911;
  --game-panel: rgba(22, 20, 33, 0.78);
  --game-panel-strong: rgba(27, 24, 38, 0.94);
  --game-line: rgba(255, 255, 255, 0.12);
  --game-text: #fff7f8;
  --game-muted: #aaa5b8;
  --game-red: #ff3347;
  --game-orange: #ff7a1a;
  --game-pink: #ff0f78;
  --game-green: #2ee37c;
  --game-blue: #24d3ff;
  --game-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

body.page-home,
body.page-topup,
body.page-payment {
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% -8%, rgba(255, 69, 50, 0.28), transparent 34%),
    radial-gradient(circle at 90% 12%, rgba(255, 15, 120, 0.18), transparent 34%),
    linear-gradient(180deg, #14111d 0%, #080911 42%, #070810 100%);
  color: var(--game-text);
}

.page-home .app-shell,
.page-topup .app-shell,
.page-payment .app-shell {
  position: relative;
  width: 100%;
  max-width: 390px;
  min-height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(10, 10, 18, 0.64), rgba(8, 9, 17, 0.96)),
    url("home.jpg") center top / cover fixed;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 24px 80px rgba(0, 0, 0, 0.58);
}

.page-home .app-shell::before,
.page-topup .app-shell::before,
.page-payment .app-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  width: min(100%, 390px);
  margin: 0 auto;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(6, 7, 14, 0.18), rgba(6, 7, 14, 0.88)),
    radial-gradient(circle at 50% 48%, rgba(26, 211, 255, 0.08), transparent 36%);
  z-index: 0;
}

.page-home .app-shell > *,
.page-topup .app-shell > *,
.page-payment .app-shell > * {
  position: relative;
  z-index: 1;
}

.page-home .app-header,
.page-topup .app-header,
.page-payment .app-header {
  min-height: 92px;
  padding: 18px 16px 14px;
  border: 0;
  background: linear-gradient(180deg, rgba(9, 9, 16, 0.9), rgba(9, 9, 16, 0.58));
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

.page-home .brand,
.page-topup .brand,
.page-payment .brand {
  gap: 10px;
}

.page-home .brand-logo,
.page-topup .brand-logo,
.page-payment .brand-logo {
  width: 46px;
  height: 46px;
  filter: drop-shadow(0 8px 18px rgba(255, 51, 71, 0.26));
}

.page-home .brand strong,
.page-topup .brand strong,
.page-payment .brand strong {
  color: #fff;
  font-family: Outfit, Inter, sans-serif;
  font-size: 27px;
  line-height: 0.95;
  letter-spacing: 0;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.page-home .brand small,
.page-topup .brand small,
.page-payment .brand small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 21px;
  font-weight: 800;
  line-height: 1;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.theme-orb {
  width: 50px;
  height: 50px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: url("F image.png") center/cover no-repeat;
  box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.07), 0 18px 34px rgba(0, 0, 0, 0.28);
  cursor: pointer;
}

.menu-btn {
  display: grid;
  gap: 7px;
  width: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-btn span {
  display: block;
  height: 3px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.34);
}

.page-home .avatar-btn,
.page-topup .avatar-btn {
  display: none;
}

.page-home main,
.page-topup main,
.page-payment main.payment-main {
  padding: 0 16px 28px;
}

.page-home .topup-hero-strip {
  height: 58px;
  min-height: 58px;
  aspect-ratio: auto;
  margin: 0 -16px 34px;
  border: 0;
  border-radius: 0 0 20px 20px;
  background: #15111a;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.24);
}

.page-home .topup-hero-strip .hero-img {
  opacity: 0.94;
  object-position: center;
}

.page-home .topup-hero-strip .hero-overlay {
  display: flex;
  align-items: center;
  inset: 0;
  padding: 0 30px;
  background: linear-gradient(90deg, rgba(7, 8, 14, 0.2), rgba(7, 8, 14, 0.05));
}

.page-home .topup-hero-strip h1 {
  margin: 0;
  font-family: Outfit, Inter, sans-serif;
  font-size: 38px;
  line-height: 1;
  color: #16d8ff;
  text-shadow: 3px 3px 0 #ff3b45, 0 12px 24px rgba(0, 0, 0, 0.42);
}

.page-home .dots {
  right: 26px;
  bottom: 7px;
}

.page-home .game-strip {
  position: relative;
  min-height: 174px;
  margin: 0 0 58px;
  padding: 28px 20px;
  gap: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  background:
    linear-gradient(90deg, rgba(13, 8, 15, 0.92), rgba(27, 14, 18, 0.5)),
    url("banner.jpg") center / cover;
  box-shadow: var(--game-shadow);
}

.page-home .game-strip::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 85% 40%, rgba(255, 255, 255, 0.18), transparent 26%);
}

.page-home .game-icon {
  width: 82px;
  height: 82px;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.36);
}

.page-home .game-strip strong {
  color: #fff;
  font-family: Outfit, Inter, sans-serif;
  font-size: 34px;
  line-height: 1;
  text-shadow: 0 10px 22px rgba(0, 0, 0, 0.55);
}

.page-home .secure-badge-inline {
  display: inline-flex !important;
  width: min(100%, 236px);
  margin-top: 24px;
  padding: 10px 13px;
  border: 2px solid rgba(46, 227, 124, 0.68);
  border-radius: 999px;
  color: var(--game-green) !important;
  background: rgba(6, 35, 23, 0.54);
  font-size: 16px !important;
  white-space: nowrap;
  box-shadow: 0 0 22px rgba(46, 227, 124, 0.16);
}

.page-home .secure-badge-inline svg {
  width: 18px;
  height: 18px;
}

.page-home .scenic-panel {
  min-height: 690px;
  margin: 0 -16px;
  padding: 0 22px 56px;
  overflow: visible;
  background: transparent;
}

.page-home .scenic-bg {
  opacity: 0.34;
  background:
    linear-gradient(180deg, rgba(8, 9, 17, 0), rgba(8, 9, 17, 0.94) 48%, #080911),
    url("home.jpg") center top / cover;
}

.verify-copy {
  position: relative;
  z-index: 2;
  margin: 0 auto 40px;
  text-align: center;
}

.verify-copy h1 {
  margin: 0 0 18px;
  color: #fff;
  font-family: Outfit, Inter, sans-serif;
  font-size: 42px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  text-shadow: 0 16px 36px rgba(0, 0, 0, 0.62);
}

.verify-copy h1 span {
  color: #ff4b39;
}

.verify-copy p {
  max-width: 330px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.62);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.45;
}

.page-home .login-card {
  position: relative;
  inset: auto;
  width: 100%;
  max-width: none;
  padding: 0;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 22px;
  background:
    linear-gradient(var(--game-panel-strong), var(--game-panel-strong)) padding-box,
    linear-gradient(135deg, rgba(255, 122, 26, 0.72), rgba(255, 15, 120, 0.58), rgba(36, 211, 255, 0.18)) border-box;
  box-shadow: var(--game-shadow);
  backdrop-filter: blur(18px);
}

.page-home .login-body {
  padding: 28px 24px 30px;
}

.page-home .field-group label {
  margin-bottom: 14px;
  color: #fff;
  font-size: 21px;
  font-weight: 900;
}

.uid-glass-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  height: 76px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(9, 9, 18, 0.68);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.input-brand-mark img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: drop-shadow(0 7px 16px rgba(255, 51, 71, 0.38));
}

.page-home .player-input {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  padding: 0 0 0 8px;
  background: transparent;
  color: #fff;
  font-size: 23px;
  font-weight: 700;
}

.page-home .player-input::placeholder {
  color: rgba(255, 255, 255, 0.36);
  font-size: 23px;
}

.page-home .player-input:focus {
  box-shadow: none;
}

.uid-help {
  display: block;
  margin: 14px 0 24px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 17px;
  font-weight: 700;
}

.page-home .verify-btn,
.page-home .primary-btn {
  width: 100%;
  height: 76px;
  border-radius: 999px;
  background: linear-gradient(100deg, var(--game-orange), #ff4e28 46%, var(--game-pink));
  color: #fff;
  font-family: Outfit, Inter, sans-serif;
  font-size: 23px;
  font-weight: 900;
  box-shadow: 0 16px 34px rgba(255, 53, 76, 0.3), 0 0 36px rgba(255, 15, 120, 0.18);
}

.page-home .loader {
  color: rgba(255, 255, 255, 0.72);
}

.page-home .error-msg {
  background: rgba(255, 51, 71, 0.12);
  color: #ffb4bd;
  border: 1px solid rgba(255, 51, 71, 0.28);
}

.page-topup main {
  padding-top: 16px;
}

.page-topup .user-banner {
  margin: 0 0 18px;
  padding: 18px 18px;
  border: 1px solid var(--game-line);
  border-radius: 20px;
  background: rgba(12, 12, 22, 0.72);
  color: var(--game-text);
  box-shadow: var(--game-shadow);
  backdrop-filter: blur(18px);
}

.page-topup .mini-avatar {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--game-red), var(--game-orange));
  color: #fff;
  box-shadow: 0 12px 28px rgba(255, 51, 71, 0.24);
}

.page-topup .user-banner strong {
  color: #fff;
  font-size: 19px;
}

.page-topup .user-banner span {
  color: rgba(255, 255, 255, 0.6);
}

.page-topup .user-banner a {
  color: #ff7d8b;
}

.page-topup .packages-card,
.page-payment .payment-card {
  margin: 0 0 22px;
  overflow: hidden;
  border: 1px solid var(--game-line);
  border-radius: 22px;
  background: rgba(16, 16, 28, 0.84);
  color: #fff;
  box-shadow: var(--game-shadow);
  backdrop-filter: blur(18px);
}

.page-topup .section-head {
  border-bottom: 1px solid var(--game-line);
  background: linear-gradient(90deg, rgba(255, 51, 71, 0.14), transparent);
}

.page-topup .section-head span {
  background: linear-gradient(135deg, var(--game-red), var(--game-orange));
  color: #fff;
}

.page-topup .section-head strong {
  color: #fff;
}

.page-topup .tabs {
  gap: 10px;
  padding: 5px;
  border: 1px solid var(--game-line);
  border-radius: 999px;
  background: rgba(7, 8, 14, 0.56);
}

.page-topup .tab {
  min-width: 0;
  flex: 1;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.58);
}

.page-topup .tab.active {
  background: linear-gradient(100deg, var(--game-orange), var(--game-pink));
  color: #fff;
  box-shadow: 0 12px 28px rgba(255, 51, 71, 0.22);
}

.page-topup .package-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.page-topup .package-card,
.page-topup .deal-card,
.page-topup .redeem-card {
  min-height: 128px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background:
    radial-gradient(circle at 50% 12%, rgba(36, 211, 255, 0.16), transparent 36%),
    rgba(255, 255, 255, 0.055);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.page-topup .package-card:hover,
.page-topup .deal-card:hover,
.page-topup .redeem-card:hover,
.page-topup .package-card.selected,
.page-topup .deal-card.selected,
.page-topup .redeem-card.selected {
  border-color: rgba(255, 51, 71, 0.72);
  background:
    radial-gradient(circle at 50% 12%, rgba(36, 211, 255, 0.2), transparent 36%),
    rgba(255, 51, 71, 0.12);
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(255, 51, 71, 0.18);
}

.page-topup .badge {
  top: 8px;
  right: 8px;
  background: linear-gradient(135deg, var(--game-red), var(--game-pink));
  color: #fff;
  box-shadow: 0 8px 16px rgba(255, 51, 71, 0.28);
}

.page-topup .diamond-art {
  filter: drop-shadow(0 10px 18px rgba(36, 211, 255, 0.26));
}

.page-topup .package-card strong,
.page-topup .deal-card strong,
.page-topup .redeem-card strong {
  color: #fff;
}

.page-topup .item-name,
.page-topup .redeem-card em {
  color: rgba(255, 255, 255, 0.52);
}

.page-topup .price-stack span {
  color: rgba(255, 255, 255, 0.36);
}

.page-topup .price-stack b {
  color: #ff6a77;
}

.page-topup .subhead,
.page-topup .redeem-title {
  color: #fff;
}

.page-topup .subhead {
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-topup .subhead::before {
  content: "";
  width: 5px;
  height: 24px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--game-orange), var(--game-pink));
}

.page-topup .deal-card {
  min-height: 190px;
  justify-content: flex-start;
  padding-top: 18px;
}

.page-topup .custom-redeem {
  border-color: var(--game-line);
  background: rgba(255, 255, 255, 0.06);
}

.page-topup .custom-redeem label,
.page-topup .custom-redeem small {
  color: rgba(255, 255, 255, 0.7);
}

.page-topup .custom-amount-input {
  border-color: var(--game-line);
  background: rgba(7, 8, 14, 0.6);
  color: #fff;
}

.page-topup .custom-buy-btn,
.page-topup .wide-btn,
.checkout-modal .wide-btn,
.utr-submit {
  background: linear-gradient(100deg, var(--game-orange), var(--game-pink));
  color: #fff;
  box-shadow: 0 16px 32px rgba(255, 51, 71, 0.24);
}

.checkout-modal,
.verified-modal,
.utr-modal {
  border: 1px solid var(--game-line);
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 51, 71, 0.18), transparent 36%),
    rgba(17, 17, 28, 0.96);
  color: #fff;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.64);
}

.checkout-modal h2,
.verified-modal h2,
.utr-modal h3 {
  color: #fff;
}

.selected-item,
.player-box,
.stats-grid div {
  border-color: var(--game-line);
  background: rgba(255, 255, 255, 0.06);
}

.player-box span,
.stats-grid span,
.utr-modal p,
.link-btn {
  color: rgba(255, 255, 255, 0.62);
}

.player-box b,
.stats-grid strong {
  color: #fff;
}

.secondary-btn {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.72);
}

.secure-note,
.verified-badge {
  color: var(--game-green);
  background: rgba(46, 227, 124, 0.1);
}

.page-payment .app-header {
  padding-right: 100px;
}

.page-payment .secure-chip {
  border: 1px solid rgba(46, 227, 124, 0.32);
  background: rgba(46, 227, 124, 0.12);
  color: var(--game-green);
  right: 12px;
  width: 58px;
  padding: 7px 8px;
  font-size: 11px;
}

.page-payment main.payment-main {
  gap: 18px;
  padding-top: 20px;
}

.page-payment .payment-card h1,
.page-payment .payment-card h2 {
  color: #fff;
  font-family: Outfit, Inter, sans-serif;
}

.page-payment .payment-order-card .pay-item,
.page-payment .payment-order-card .pay-info {
  border-color: var(--game-line);
  background: rgba(255, 255, 255, 0.06);
}

.page-payment .payment-order-card .pay-info p {
  border-color: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.58);
}

.page-payment .payment-order-card .pay-info b,
.pay-item strong {
  color: #fff;
}

.pay-item span,
.selected-item span {
  color: #ff6576;
}

.qr-image-container {
  border: 10px solid #fff;
  border-radius: 20px !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34), 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.qr-card p,
.upi-copy {
  color: rgba(255, 255, 255, 0.68);
}

.payment-alert {
  border: 1px solid rgba(255, 193, 7, 0.34);
  background: rgba(255, 193, 7, 0.1);
  color: #ffd36b;
}

.payment-alert strong,
.payment-alert > em {
  color: #ffd36b;
}

.upi-app-btn {
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
}

.already-paid-btn {
  min-height: 62px;
  border-radius: 999px;
  background: linear-gradient(100deg, var(--game-orange), var(--game-pink));
  box-shadow: 0 16px 34px rgba(255, 51, 71, 0.24);
}

.app-footer {
  background: rgba(4, 5, 10, 0.9);
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.app-footer p,
.app-footer nav {
  color: rgba(255, 255, 255, 0.58);
}

.toast {
  border-color: var(--game-red);
  background: rgba(18, 18, 30, 0.94);
  color: #fff;
  backdrop-filter: blur(14px);
}

.toast span {
  color: var(--game-green);
}

.toast small {
  color: rgba(255, 255, 255, 0.58);
}

.utr-overlay {
  background: rgba(4, 5, 10, 0.72);
  backdrop-filter: blur(10px);
}

.utr-close,
.close-btn {
  color: rgba(255, 255, 255, 0.68);
}

.utr-form label {
  color: rgba(255, 255, 255, 0.72);
}

.utr-form input {
  border-color: var(--game-line);
  background: rgba(7, 8, 14, 0.7);
  color: #fff;
}

.utr-success {
  border-color: rgba(46, 227, 124, 0.32);
  background: rgba(46, 227, 124, 0.12);
  color: var(--game-green);
}

@media (max-width: 390px) {
  .page-home .brand strong,
  .page-topup .brand strong {
    font-size: 22px;
  }

  .page-home .brand small,
  .page-topup .brand small {
    font-size: 17px;
  }

  .theme-orb {
    width: 40px;
    height: 40px;
  }

  .menu-btn {
    width: 28px;
    gap: 5px;
  }

  .page-home .game-strip {
    min-height: 156px;
    padding: 24px 22px;
    gap: 20px;
  }

  .page-home .game-icon {
    width: 78px;
    height: 78px;
  }

  .page-home .game-strip strong {
    font-size: 32px;
  }

  .page-home .secure-badge-inline {
    margin-top: 18px;
    padding: 9px 14px;
    font-size: 16px !important;
  }

  .verify-copy h1 {
    font-size: 38px;
  }

  .verify-copy p {
    font-size: 18px;
  }

  .page-home .login-body {
    padding: 26px 20px 30px;
  }
}

@media (max-width: 600px) {
  .page-home .app-shell,
  .page-topup .app-shell,
  .page-payment .app-shell {
    width: min(100vw, 390px);
    max-width: 390px;
    margin: 0;
  }

  .page-home .app-shell::before,
  .page-topup .app-shell::before,
  .page-payment .app-shell::before {
    width: min(100vw, 390px);
    margin: 0;
  }

  .page-payment .app-header {
    padding-right: 78px;
  }

  .page-payment .brand strong {
    font-size: 22px;
  }

  .page-payment .brand small {
    font-size: 18px;
  }
}

.page-home .brand,
.page-topup .brand,
.page-payment .brand {
  min-width: 0;
}

.page-home .brand span,
.page-topup .brand span,
.page-payment .brand span {
  min-width: 0;
}

.page-home .brand strong,
.page-topup .brand strong,
.page-payment .brand strong,
.page-home .brand small,
.page-topup .brand small,
.page-payment .brand small {
  white-space: nowrap;
}

.page-topup .package-card,
.page-topup .deal-card,
.page-topup .redeem-card {
  width: 100%;
  min-width: 0;
}

.page-topup .deal-card strong {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.page-payment .payment-order-card .pay-info p {
  min-width: 0;
  align-items: flex-start;
}

.page-payment .payment-order-card .pay-info span {
  min-width: 92px;
  white-space: normal;
}

.page-payment .payment-order-card .pay-info b {
  min-width: 0;
  max-width: 185px;
  overflow-wrap: anywhere;
  word-break: break-word;
  font-size: 14px;
}

.page-payment .payment-order-card .pay-item {
  min-width: 0;
}

.page-payment .payment-order-card .pay-item > div:last-child {
  min-width: 0;
}

.page-payment .payment-order-card .pay-item strong {
  overflow-wrap: anywhere;
}

@media (max-width: 380px) {
  .page-home .brand strong,
  .page-topup .brand strong,
  .page-payment .brand strong {
    font-size: 20px;
  }

  .page-home .brand small,
  .page-topup .brand small,
  .page-payment .brand small {
    font-size: 16px;
  }

  .page-home .brand-logo,
  .page-topup .brand-logo,
  .page-payment .brand-logo {
    width: 40px;
    height: 40px;
  }

  .header-actions {
    gap: 8px;
  }
}

/* Professional compact correction */
body.page-home,
body.page-topup,
body.page-payment {
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 72, 40, 0.18), transparent 30%),
    linear-gradient(180deg, #101119 0%, #080911 100%);
}

.page-home .app-shell,
.page-topup .app-shell,
.page-payment .app-shell {
  width: min(100vw, 390px);
  max-width: 390px;
  margin: 0 auto;
  background:
    linear-gradient(180deg, rgba(8, 9, 16, 0.86), rgba(8, 9, 16, 0.96)),
    url("home.jpg") center top / cover;
}

.page-home .app-shell::before,
.page-topup .app-shell::before,
.page-payment .app-shell::before {
  width: min(100vw, 390px);
  background:
    linear-gradient(180deg, rgba(8, 9, 16, 0.08), rgba(8, 9, 16, 0.86)),
    radial-gradient(circle at 70% 42%, rgba(255, 50, 80, 0.08), transparent 34%);
}

.page-home .app-header,
.page-topup .app-header,
.page-payment .app-header {
  min-height: 64px;
  padding: 10px 16px;
  background: rgba(10, 11, 18, 0.88);
}

.page-home .brand-logo,
.page-topup .brand-logo,
.page-payment .brand-logo {
  width: 34px;
  height: 34px;
}

.page-home .brand strong,
.page-topup .brand strong,
.page-payment .brand strong {
  font-size: 20px;
  line-height: 1;
}

.page-home .brand small,
.page-topup .brand small,
.page-payment .brand small {
  font-size: 15px;
}

.header-actions {
  gap: 10px;
}

.theme-orb {
  width: 38px;
  height: 38px;
}

.menu-btn {
  width: 31px;
  gap: 5px;
}

.menu-btn span {
  height: 3px;
}

.page-home main,
.page-topup main,
.page-payment main.payment-main {
  padding: 0 14px 22px;
}

.page-home .topup-hero-strip {
  height: 86px;
  min-height: 86px;
  margin: 12px 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.26);
}

.page-home .topup-hero-strip .hero-overlay {
  padding: 0 18px;
}

.page-home .topup-hero-strip h1 {
  font-size: 29px;
  text-shadow: 2px 2px 0 #ff3b45, 0 10px 18px rgba(0, 0, 0, 0.32);
}

.page-home .dots {
  right: 13px;
  bottom: 8px;
}

.page-home .game-strip {
  min-height: 126px;
  margin: 0 0 24px;
  padding: 16px;
  gap: 14px;
  border-radius: 16px;
}

.page-home .game-icon {
  width: 66px;
  height: 66px;
  border-radius: 14px;
}

.page-home .game-strip strong {
  font-size: 26px;
}

.page-home .secure-badge-inline {
  width: max-content;
  max-width: 212px;
  margin-top: 12px;
  padding: 8px 12px;
  font-size: 13px !important;
}

.page-home .secure-badge-inline svg {
  width: 14px;
  height: 14px;
}

.page-home .scenic-panel {
  min-height: auto;
  margin: 0;
  padding: 0 0 22px;
  overflow: visible;
}

.page-home .scenic-bg {
  opacity: 0.28;
}

.verify-copy {
  margin: 0 0 18px;
  padding: 0 4px;
}

.verify-copy h1 {
  margin: 0 0 10px;
  font-size: 31px;
}

.verify-copy p {
  max-width: 318px;
  font-size: 14px;
  line-height: 1.5;
}

.page-home .login-card {
  margin: 0 8px;
  border-radius: 18px;
}

.page-home .login-body {
  padding: 20px 18px 20px;
}

.page-home .field-group label {
  margin-bottom: 10px;
  font-size: 16px;
}

.uid-glass-row {
  height: 54px;
  grid-template-columns: 30px minmax(0, 1fr);
  padding: 0 14px;
  border-radius: 12px;
}

.input-brand-mark img {
  width: 22px;
  height: 22px;
}

.page-home .player-input,
.page-home .player-input::placeholder {
  font-size: 16px;
}

.uid-help {
  margin: 10px 0 16px;
  font-size: 13px;
  line-height: 1.35;
}

.page-home .verify-btn,
.page-home .primary-btn {
  height: 54px;
  font-size: 18px;
}

.page-topup main {
  padding-top: 12px;
}

.page-topup .user-banner {
  margin: 0 0 14px;
  padding: 14px;
  border-radius: 16px;
}

.page-topup .mini-avatar {
  width: 44px;
  height: 44px;
  border-radius: 13px;
}

.page-topup .user-banner strong {
  font-size: 17px;
}

.page-topup .user-banner span,
.page-topup .user-banner a {
  font-size: 12px;
}

.page-topup .packages-card,
.page-payment .payment-card {
  margin-bottom: 16px;
  border-radius: 18px;
}

.page-topup .packages-card .section-head,
.page-topup .section-head {
  padding: 14px 16px;
}

.page-topup .section-head span {
  width: 34px;
  height: 34px;
  font-size: 18px;
}

.page-topup .section-head strong {
  font-size: 21px;
}

.page-topup .packages-body {
  padding: 16px;
}

.page-topup .tabs {
  margin-bottom: 16px;
  padding: 4px;
}

.page-topup .tab {
  height: 40px;
  font-size: 15px;
}

.page-topup .package-grid {
  gap: 10px;
}

.page-topup .package-card {
  min-height: 112px;
  padding: 10px 4px;
  border-radius: 14px;
}

.page-topup .diamond-art {
  width: 30px;
  height: 30px;
}

.page-topup .package-card strong {
  font-size: 15px;
}

.page-topup .price-stack span {
  font-size: 11px;
}

.page-topup .price-stack b {
  font-size: 14px;
}

.page-topup .badge {
  top: 7px;
  right: 6px;
  padding: 3px 6px;
  font-size: 10px;
}

.page-topup .subhead {
  margin: 18px 0 10px;
  font-size: 18px;
}

.page-topup .deal-grid,
.page-topup .redeem-grid {
  gap: 10px;
}

.page-topup .deal-card {
  min-height: 150px;
  padding: 12px 8px;
  border-radius: 14px;
}

.page-topup .deal-card .deal-art {
  width: 96px;
  height: 52px;
}

.page-topup .deal-card strong {
  font-size: 15px;
  line-height: 1.15;
}

.page-payment .app-header {
  min-height: 64px;
  padding: 10px 82px 10px 16px;
}

.page-payment .brand strong {
  font-size: 18px;
  line-height: 1.05;
}

.page-payment .brand small {
  font-size: 14px;
}

.page-payment .secure-chip {
  right: 14px;
  width: 58px;
  padding: 6px 8px;
  font-size: 10px;
}

.page-payment main.payment-main {
  padding-top: 14px;
  gap: 14px;
}

.page-payment .payment-card {
  padding: 18px 16px;
}

.page-payment .payment-card h1,
.page-payment .payment-card h2 {
  margin-bottom: 16px;
  font-size: 22px;
}

.page-payment .payment-order-card .pay-item {
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
}

.page-payment .payment-order-card .pay-diamond {
  width: 54px;
  height: 54px;
}

.page-payment .payment-order-card .pay-item strong {
  font-size: 20px;
}

.page-payment .payment-order-card .pay-item span {
  font-size: 20px;
}

.page-payment .payment-order-card .pay-info {
  padding: 12px 14px;
  border-radius: 14px;
}

.page-payment .payment-order-card .pay-info p {
  padding: 8px 0;
  gap: 10px;
  font-size: 13px;
}

.page-payment .payment-order-card .pay-info span {
  min-width: 88px;
}

.page-payment .payment-order-card .pay-info b {
  max-width: 168px;
  font-size: 13px;
}

.qr-image-container {
  width: min(292px, 100%) !important;
  padding: 10px !important;
  border-width: 0;
  border-radius: 16px !important;
}

.qr-image-container canvas,
.qr-image-container img {
  width: min(220px, 100%) !important;
  height: min(220px, 100%) !important;
}

.payment-alert {
  width: min(292px, 100%);
  margin: 0 auto;
  padding: 12px 14px;
  border-radius: 12px;
}

.payment-alert strong {
  font-size: 17px;
}

.payment-alert > span,
.payment-alert > em {
  font-size: 13px;
}

.already-paid-btn {
  min-height: 54px;
  font-size: 16px;
}

/* Reference-flow app UI */
:root {
  --ref-bg: #070b14;
  --ref-surface: rgba(13, 18, 31, 0.82);
  --ref-card: rgba(18, 23, 38, 0.9);
  --ref-line: rgba(255, 255, 255, 0.11);
  --ref-text: #f8fafc;
  --ref-muted: #9ca3af;
  --ref-orange: #ff7a1f;
  --ref-pink: #ff0f73;
  --ref-green: #40f66f;
  --ref-yellow: #ffd22e;
  --ref-blue: #35d9ff;
  --ref-radius: 14px;
}

body.page-home,
body.page-topup,
body.page-payment {
  background: #03060d;
  color: var(--ref-text);
}

.page-home .app-shell,
.page-topup .app-shell,
.page-payment .app-shell {
  width: min(100vw, 390px);
  max-width: 390px;
  min-height: 100vh;
  margin: 0 auto;
  padding-bottom: 78px;
  background:
    radial-gradient(circle at 80% 12%, rgba(255, 122, 31, 0.12), transparent 26%),
    radial-gradient(circle at 20% 45%, rgba(53, 217, 255, 0.08), transparent 30%),
    linear-gradient(180deg, rgba(5, 9, 17, 0.95), rgba(5, 8, 15, 0.98)),
    url("home.jpg") center top / cover;
  overflow-x: hidden;
}

.page-home .app-shell::before,
.page-topup .app-shell::before,
.page-payment .app-shell::before {
  display: none;
}

.page-home .app-header,
.page-topup .app-header,
.page-payment .app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 64px;
  padding: 12px 18px;
  background: rgba(3, 7, 14, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(14px);
}

.page-home .brand-logo,
.page-topup .brand-logo,
.page-payment .brand-logo {
  width: 34px;
  height: 34px;
}

.page-home .brand strong,
.page-topup .brand strong,
.page-payment .brand strong {
  color: #fff;
  font-family: Outfit, Inter, sans-serif;
  font-size: 18px;
  line-height: 1;
  text-transform: uppercase;
}

.page-home .brand small,
.page-topup .brand small,
.page-payment .brand small {
  display: none;
}

.header-actions {
  gap: 14px;
}

.theme-orb {
  width: 30px;
  height: 30px;
  border: 0;
  background: url("F image.png") center/cover no-repeat;
  box-shadow: none;
}

.menu-btn {
  width: 24px;
  gap: 5px;
}

.menu-btn span {
  height: 2px;
}

.page-home main,
.page-topup main,
.page-payment main.payment-main {
  padding: 14px 16px 18px;
}

.page-home .topup-hero-strip {
  display: none;
}

.hero-showcase {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  border-radius: 0;
  margin: -14px -16px 12px;
  background: #101827;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.3);
}

.hero-showcase img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.12) contrast(1.06);
}

.hero-showcase::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 8, 16, 0.82), rgba(5, 8, 16, 0.18) 72%),
    linear-gradient(180deg, transparent 45%, rgba(5, 8, 16, 0.3));
}

.hero-showcase div {
  position: absolute;
  z-index: 1;
  left: 20px;
  bottom: 24px;
}

.hero-showcase strong,
.hero-showcase span {
  display: block;
  font-family: Outfit, Inter, sans-serif;
  font-weight: 900;
  line-height: 0.96;
  text-transform: uppercase;
}

.hero-showcase strong {
  font-size: 27px;
  color: #fff;
}

.hero-showcase span {
  margin-top: 12px;
  max-width: 220px;
  font-size: 36px;
  color: #ff4c5e;
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-bottom: 12px;
}

.trust-row span {
  display: grid;
  min-height: 38px;
  place-items: center;
  border: 1px solid var(--ref-line);
  border-radius: 10px;
  background: rgba(13, 18, 31, 0.72);
  color: #e5e7eb;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}

.page-home .game-strip {
  min-height: 106px;
  margin: 0 0 20px;
  padding: 14px 16px;
  gap: 14px;
  border: 1px solid var(--ref-line);
  border-radius: var(--ref-radius);
  background:
    linear-gradient(90deg, rgba(11, 16, 28, 0.92), rgba(11, 16, 28, 0.56)),
    url("banner.jpg") center / cover;
  box-shadow: none;
}

.page-home .game-icon {
  width: 64px;
  height: 64px;
  border-radius: 13px;
}

.page-home .game-strip strong {
  font-size: 24px;
}

.page-home .secure-badge-inline {
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ref-green) !important;
  font-size: 13px !important;
  box-shadow: none;
}

.page-home .scenic-panel {
  padding: 0;
  margin: 0;
}

.page-home .scenic-bg {
  opacity: 0;
}

.verify-copy {
  margin-bottom: 18px;
  padding: 0 4px;
}

.verify-copy h1 {
  margin-bottom: 14px;
  font-size: 26px;
}

.verify-copy p {
  max-width: 324px;
  color: #cbd5e1;
  font-size: 13px;
}

.page-home .login-card {
  margin: 0 0 18px;
  border: 1px solid rgba(255, 122, 31, 0.32);
  border-radius: var(--ref-radius);
  background: rgba(18, 18, 30, 0.75);
  box-shadow: none;
}

.page-home .login-body {
  padding: 18px;
}

.page-home .field-group label {
  margin-bottom: 10px;
  color: #f8fafc;
  font-size: 14px;
}

.uid-glass-row {
  height: 48px;
  grid-template-columns: 26px minmax(0, 1fr);
  padding: 0 14px;
  border-radius: 10px;
  background: rgba(6, 9, 17, 0.8);
}

.input-brand-mark img {
  width: 20px;
  height: 20px;
}

.page-home .player-input,
.page-home .player-input::placeholder {
  font-size: 14px;
}

.uid-help {
  margin: 10px 0 16px;
  color: #aeb7c6;
  font-size: 12px;
}

.page-home .verify-btn,
.page-home .primary-btn,
.page-topup .wide-btn,
.custom-buy-btn,
.already-paid-btn,
.utr-submit {
  height: 50px;
  border-radius: 12px;
  background: linear-gradient(100deg, var(--ref-orange), var(--ref-pink));
  color: #fff;
  font-family: Outfit, Inter, sans-serif;
  font-size: 16px;
  font-weight: 900;
  text-transform: uppercase;
  box-shadow: 0 12px 28px rgba(255, 15, 115, 0.22);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 18px 0 0;
}

.feature-grid div {
  min-height: 86px;
  padding: 14px 8px;
  border: 1px solid var(--ref-line);
  border-radius: 10px;
  background: rgba(13, 18, 31, 0.72);
  text-align: center;
}

.feature-grid strong,
.feature-grid span {
  display: block;
}

.feature-grid strong {
  color: #fff;
  font-family: Outfit, Inter, sans-serif;
  font-size: 17px;
}

.feature-grid span {
  margin-top: 5px;
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 700;
}

.progress-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: start;
  gap: 8px;
  margin: 6px 0 16px;
}

.progress-steps div {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 6px;
  color: #aeb7c6;
  text-align: center;
}

.progress-steps div::before {
  content: "";
  position: absolute;
  top: 14px;
  right: 58%;
  width: 82%;
  height: 2px;
  background: rgba(255, 255, 255, 0.14);
}

.progress-steps div:first-child::before {
  display: none;
}

.progress-steps span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.26);
  border-radius: 50%;
  background: rgba(13, 18, 31, 0.9);
  color: #cbd5e1;
  font-family: Outfit, Inter, sans-serif;
  font-weight: 900;
}

.progress-steps strong {
  font-size: 11px;
  line-height: 1.15;
}

.progress-steps .done span {
  border-color: var(--ref-green);
  color: var(--ref-green);
}

.progress-steps .done::before {
  background: var(--ref-green);
}

.progress-steps .active::before {
  background: linear-gradient(90deg, var(--ref-green), var(--ref-orange));
}

.progress-steps .active span {
  border-color: var(--ref-pink);
  background: var(--ref-pink);
  color: #fff;
}

.payment-steps .active span {
  border-color: var(--ref-orange);
  background: var(--ref-orange);
}

.page-topup .user-banner,
.page-topup .packages-card,
.page-payment .payment-card,
.selected-package-bar {
  border: 1px solid var(--ref-line);
  border-radius: var(--ref-radius);
  background: var(--ref-surface);
  box-shadow: none;
  backdrop-filter: blur(14px);
}

.page-topup .user-banner {
  margin-bottom: 14px;
  padding: 14px;
}

.page-topup .mini-avatar {
  width: 48px;
  height: 48px;
  border-radius: 12px;
}

.page-topup .packages-card {
  margin-bottom: 14px;
}

.page-topup .section-head {
  padding: 14px 16px;
  background: transparent;
}

.page-topup .section-head span {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--ref-orange), var(--ref-pink));
}

.page-topup .section-head strong {
  font-size: 20px;
}

.page-topup .packages-body {
  padding: 16px;
}

.page-topup .tabs {
  margin-bottom: 16px;
}

.page-topup .package-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.page-topup .package-card {
  min-height: 164px;
  padding: 14px 10px 10px;
  border-radius: 10px;
}

.page-topup .package-card.selected {
  border-color: var(--ref-pink);
  box-shadow: inset 0 0 0 1px var(--ref-pink);
}

.page-topup .diamond-art {
  width: 58px;
  height: 58px;
  margin: 6px auto;
}

.page-topup .package-card strong {
  font-size: 20px;
}

.page-topup .item-name {
  display: block;
  margin-top: 2px;
  color: #cbd5e1;
  font-size: 13px;
}

.page-topup .price-stack {
  width: 100%;
  margin-top: auto;
  padding: 7px 8px;
  border-radius: 7px;
  background: linear-gradient(180deg, #ffde55, #ffbd25);
  color: #171717;
}

.page-topup .price-stack span {
  display: none;
}

.page-topup .price-stack b {
  color: #171717;
  font-size: 15px;
}

.page-topup .badge {
  background: var(--ref-pink);
}

.page-topup .subhead {
  margin-top: 18px;
}

.page-topup .deal-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.page-topup .deal-card {
  min-height: 150px;
  padding: 12px 8px;
}

.selected-package-bar {
  margin: 14px 0 10px;
  padding: 12px;
}

.selected-package-main {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.selected-package-main .currency-icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: rgba(53, 217, 255, 0.08);
}

.selected-package-main span {
  display: block;
  color: var(--ref-muted);
  font-size: 12px;
}

.selected-package-main strong {
  display: block;
  margin-top: 2px;
  color: #fff;
  font-size: 14px;
}

.selected-package-main b {
  color: #fff;
  font-family: Outfit, Inter, sans-serif;
  font-size: 25px;
}

.payment-method-card h2 {
  display: flex;
  align-items: center;
  gap: 8px;
}

.payment-method-card h2::before {
  content: "";
  width: 19px;
  height: 19px;
  background: url("dimond.png") center / contain no-repeat;
}

.method-list {
  display: grid;
  gap: 9px;
}

.method-option {
  display: grid;
  grid-template-columns: 48px 1fr 22px;
  align-items: center;
  gap: 10px;
  min-height: 62px;
  padding: 9px 11px;
  border: 1px solid var(--ref-line);
  border-radius: 10px;
  background: rgba(13, 18, 31, 0.74);
}

.method-option.selected {
  border-color: var(--ref-pink);
  box-shadow: inset 0 0 0 1px var(--ref-pink);
}

.method-logo,
.method-mark,
.method-qr {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.method-logo img {
  max-width: 34px;
  max-height: 34px;
  object-fit: contain;
}

.method-option strong,
.method-option small {
  display: block;
}

.method-option strong {
  font-size: 14px;
}

.method-option small {
  margin-top: 2px;
  color: var(--ref-muted);
  font-size: 11px;
  font-weight: 700;
}

.method-option i,
.method-option b {
  display: block;
  width: 19px;
  height: 19px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
}

.method-option b {
  border-color: var(--ref-pink);
  background: radial-gradient(circle, #fff 0 26%, var(--ref-pink) 28%);
}

.page-payment .payment-card h1,
.page-payment .payment-card h2 {
  font-size: 21px;
}

.page-payment .payment-order-card .pay-info p {
  font-size: 13px;
}

.qr-card {
  text-align: center;
}

.upi-app-options {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
}

.upi-app-btn {
  min-height: 58px;
  border-radius: 12px;
}

.already-paid-btn {
  width: 100%;
  margin-top: 12px;
}

.app-footer {
  padding: 28px 18px 88px;
  background: rgba(3, 6, 12, 0.92);
}

.app-footer nav {
  display: none;
}

.page-home .app-footer {
  margin-top: 0;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  z-index: 30;
  width: min(100vw, 390px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  min-height: 74px;
  padding: 10px 12px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px 14px 0 0;
  background: rgba(8, 12, 22, 0.96);
  backdrop-filter: blur(16px);
}

.bottom-nav a {
  display: grid;
  place-items: center;
  gap: 4px;
  color: #8f99aa;
  font-size: 11px;
  font-weight: 700;
}

.bottom-nav svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.bottom-nav a.active {
  color: var(--ref-orange);
}

.page-payment .bottom-nav a.active {
  color: var(--ref-pink);
}

@media (max-width: 360px) {
  .hero-showcase span {
    font-size: 31px;
  }

  .page-topup .package-card {
    min-height: 154px;
  }

  .page-topup .diamond-art {
    width: 50px;
    height: 50px;
  }
}

@media (max-width: 600px) {
  .page-home .app-shell,
  .page-topup .app-shell,
  .page-payment .app-shell {
    width: min(390px, 100vw);
    max-width: min(390px, 100vw);
    margin: 0;
  }

  .page-home .app-shell::before,
  .page-topup .app-shell::before,
  .page-payment .app-shell::before {
    width: min(390px, 100vw);
    margin: 0;
  }
}

@media (min-width: 601px) {
  .page-home .app-shell,
  .page-topup .app-shell,
  .page-payment .app-shell {
    width: 390px;
    margin: 0 auto;
  }
}

/* User cleanup requests */
.hero-showcase div,
.hero-showcase strong,
.hero-showcase span {
  display: none !important;
}

.hero-showcase::after {
  background: linear-gradient(180deg, rgba(5, 8, 16, 0.06), rgba(5, 8, 16, 0.16));
}

.hero-showcase {
  min-height: 176px;
  margin-bottom: 14px;
}

.hero-showcase img {
  object-position: center;
}

.app-footer {
  padding: 24px 18px 96px;
}

.app-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 16px;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 12px;
  font-weight: 800;
}

.bottom-nav {
  box-shadow: 0 -14px 36px rgba(0, 0, 0, 0.36);
}

.bottom-nav a {
  border-radius: 10px;
  padding: 5px 0;
}

.bottom-nav a.active {
  background: rgba(255, 122, 31, 0.08);
}

.page-payment .bottom-nav a.active {
  background: rgba(255, 15, 115, 0.08);
}

.qr-card .upi-app-options {
  display: none !important;
}

/* Final mobile app polish: top-fixed navigation, tappable UID field, asset feature tiles, redeem cleanup */
.page-home .app-header,
.page-topup .app-header,
.page-payment .app-header {
  position: sticky;
  top: 0;
  z-index: 40;
}

.page-home .bottom-nav,
.page-topup .bottom-nav,
.page-payment .bottom-nav {
  position: fixed;
  top: 66px;
  bottom: auto;
  left: 50%;
  z-index: 50;
  width: min(calc(100vw - 24px), 366px);
  min-height: 56px;
  padding: 7px 8px;
  border-radius: 14px;
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(8, 12, 22, 0.94);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.34);
}

.bottom-nav a {
  min-width: 0;
  min-height: 42px;
  padding: 4px 2px;
  border-radius: 11px;
  font-size: 10px;
  line-height: 1;
}

.bottom-nav svg {
  width: 19px;
  height: 19px;
}

.page-home main,
.page-topup main,
.page-payment main.payment-main {
  padding-top: 86px;
}

.app-footer {
  padding-bottom: 30px;
}

.page-home .scenic-panel,
.page-home .login-card,
.page-home .uid-glass-row {
  position: relative;
  z-index: 2;
}

.page-home .scenic-bg,
.page-home .input-brand-mark {
  pointer-events: none;
}

.page-home .uid-glass-row {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  align-items: center;
}

.page-home .input-brand-mark {
  grid-column: 1;
}

.page-home .player-input {
  position: relative;
  z-index: 3;
  grid-column: 2;
  display: block;
  width: 100%;
  min-width: 0;
  pointer-events: auto;
  caret-color: #fff;
  -webkit-user-select: text;
  user-select: text;
}

.page-home .player-input:focus {
  outline: none;
}

.feature-grid {
  gap: 10px;
  margin-top: 18px;
}

.feature-grid div {
  display: grid;
  justify-items: center;
  align-content: center;
  min-height: 112px;
  padding: 14px 8px 12px;
  border-radius: 12px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 122, 31, 0.12), transparent 54%),
    rgba(13, 18, 31, 0.82);
}

.feature-icon {
  display: block;
  width: 34px;
  height: 34px;
  margin: 0 auto 9px;
  object-fit: contain;
  filter: drop-shadow(0 9px 16px rgba(255, 122, 31, 0.2));
}

.feature-grid div:nth-child(2) .feature-icon,
.feature-grid div:nth-child(3) .feature-icon {
  border-radius: 9px;
}

.feature-grid strong {
  font-size: 16px;
  line-height: 1;
}

.feature-grid span {
  margin-top: 5px;
  font-size: 12px;
}

.page-topup .redeem-panel {
  min-width: 0;
}

.page-topup .redeem-title {
  margin: 14px 0 5px;
  font-size: 20px;
  line-height: 1.12;
}

.page-topup .redeem-offer {
  margin-bottom: 12px;
  border: 1px solid rgba(255, 122, 31, 0.32);
  background: rgba(255, 122, 31, 0.1);
  color: #ffb24a;
}

.page-topup .redeem-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.page-topup .redeem-card {
  display: grid;
  justify-items: center;
  align-content: start;
  min-height: 164px;
  padding: 14px 8px 12px;
  border-radius: 14px;
}

.page-topup .google-play-card-img {
  width: 92px;
  height: 54px;
  margin: 6px auto 8px;
}

.page-topup .redeem-card strong {
  font-size: 20px;
  line-height: 1;
}

.page-topup .redeem-card em {
  min-height: 28px;
  margin: 5px 0 8px;
  font-size: 11px;
  line-height: 1.2;
}

.page-topup .redeem-card .price-stack {
  width: 100%;
  margin-top: auto;
}

.page-topup .custom-redeem {
  margin-top: 12px;
  padding: 14px;
  border-radius: 14px;
}

.page-topup .custom-redeem label {
  margin-bottom: 9px;
  font-size: 13px;
}

.page-topup .custom-row {
  grid-template-columns: minmax(0, 1fr) 88px;
  gap: 8px;
}

.page-topup .custom-amount-input,
.page-topup .custom-buy-btn {
  height: 44px;
  border-radius: 10px;
}

.page-topup .custom-buy-btn {
  padding: 0 8px;
  font-size: 12px;
}

.page-topup .custom-redeem small {
  display: block;
  margin-top: 9px;
  font-size: 11px;
}

@media (max-width: 600px) {
  .page-home .bottom-nav,
  .page-topup .bottom-nav,
  .page-payment .bottom-nav {
    left: 12px;
    right: auto;
    width: min(calc(100vw - 24px), 366px);
    transform: none;
  }
}

@media (max-width: 340px) {
  .page-home .bottom-nav,
  .page-topup .bottom-nav,
  .page-payment .bottom-nav {
    left: 8px;
    width: min(calc(100vw - 16px), 374px);
    padding-inline: 6px;
  }

  .bottom-nav a {
    font-size: 9px;
  }

  .feature-grid {
    gap: 8px;
  }

  .feature-grid div {
    min-height: 104px;
    padding-inline: 6px;
  }

  .feature-icon {
    width: 30px;
    height: 30px;
  }

  .page-topup .redeem-grid {
    grid-template-columns: 1fr;
  }
}

/* Latest requested correction: bottom nav, modal package checkout, stronger discounts, payment app buttons */
.page-home .bottom-nav,
.page-topup .bottom-nav,
.page-payment .bottom-nav {
  position: fixed;
  top: auto;
  bottom: 0;
  left: 50%;
  right: auto;
  z-index: 70;
  width: min(100vw, 390px);
  min-height: 74px;
  padding: 9px 12px 12px;
  border-radius: 16px 16px 0 0;
  transform: translateX(-50%);
  box-shadow: 0 -18px 42px rgba(0, 0, 0, 0.42);
}

.page-home main,
.page-topup main,
.page-payment main.payment-main {
  padding-top: 14px;
  padding-bottom: 96px;
}

.app-footer {
  padding-bottom: 104px;
}

.selected-package-bar {
  display: none !important;
}

.page-topup .package-card,
.page-topup .deal-card,
.page-topup .redeem-card {
  position: relative;
  overflow: hidden;
}

.page-topup .badge {
  position: absolute;
  top: 9px;
  right: 9px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 24px;
  padding: 5px 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff7a1f, #ff0f73);
  color: #fff;
  font-family: Outfit, Inter, sans-serif;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 9px 18px rgba(255, 15, 115, 0.28);
}

.page-topup .price-stack {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.page-topup .price-stack span {
  display: inline !important;
  color: rgba(23, 23, 23, 0.54);
  font-size: 12px;
  font-weight: 900;
  text-decoration: line-through;
}

.page-topup .price-stack b {
  font-size: 15px;
}

.checkout-overlay {
  z-index: 120;
  padding: 18px;
  background:
    radial-gradient(circle at 50% 16%, rgba(255, 15, 115, 0.24), transparent 34%),
    rgba(3, 5, 12, 0.78);
  backdrop-filter: blur(14px);
}

.checkout-modal {
  width: min(360px, calc(100vw - 28px));
  max-height: calc(100vh - 28px);
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 122, 31, 0.16), transparent 38%),
    linear-gradient(180deg, rgba(18, 19, 31, 0.98), rgba(9, 11, 20, 0.98));
  color: #fff;
  padding: 20px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.66);
}

.checkout-modal .modal-head span {
  background: rgba(255, 122, 31, 0.14);
  color: #ffb24a;
}

.checkout-modal h2 {
  color: #fff;
  font-size: 24px;
}

.checkout-modal .selected-item,
.checkout-modal .player-box,
.checkout-modal .secure-note {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.055);
  color: #fff;
}

.checkout-modal .player-box p {
  border-color: rgba(255, 255, 255, 0.08);
}

.checkout-modal .player-box span,
.checkout-modal .secure-note {
  color: rgba(255, 255, 255, 0.68);
}

.checkout-modal .secondary-btn {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.82);
}

.method-option {
  width: 100%;
  border: 1px solid var(--ref-line);
  color: #fff;
  text-align: left;
  cursor: pointer;
  appearance: none;
}

.method-option:hover {
  border-color: rgba(255, 122, 31, 0.5);
  background: rgba(22, 27, 42, 0.92);
}

.method-option:disabled,
.method-option[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.55;
}

.method-dot {
  display: block;
  width: 19px;
  height: 19px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
}

.method-option.selected .method-dot {
  border-color: var(--ref-pink);
  background: radial-gradient(circle, #fff 0 26%, var(--ref-pink) 28%);
}

.method-option i,
.method-option b {
  display: none;
}

.theme-orb {
  background: url("F image.png") center / cover no-repeat;
}

.verified-modal .big-avatar {
  width: 48px;
  height: 48px;
  margin-bottom: 10px;
  font-size: 22px;
  box-shadow: 0 0 0 4px #f2f6fb;
}

.page-topup .user-banner.has-player-banner {
  min-height: 84px;
  padding: 8px 10px;
}

.page-topup .user-banner.has-player-banner {
  height: 78px !important;
  min-height: 78px !important;
  padding: 4px 8px !important;
  background-color: #0b0d13 !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-size: contain !important;
}

.page-topup .user-banner.has-player-banner a {
  padding: 5px 8px;
  font-size: 10px;
}

.page-home .toast-wrap {
  position: fixed !important;
  left: 50% !important;
  bottom: 88px !important;
  z-index: 95;
  width: min(calc(100vw - 24px), 366px) !important;
  transform: translateX(-50%) !important;
}

.page-home .toast {
  border-radius: 10px;
}
