/* ── Top Up / Pay Bill Widget ──────────────────────────────────────────────── */

:root {
    --tpb-primary: #FF6B00;
    --tpb-primary-dark: #E05E00;
    --tpb-primary-light: #FFF3EC;
    --tpb-border: #E0E0E0;
    --tpb-text: #4D4D4D;
    --tpb-muted: #777777;
    --tpb-error: #D93025;
}

/* ── Banner ─────────────────────────────────────────────────────────────────── */
.tpb-banner {
    background: linear-gradient(120deg, #CC5500 0%, #FF8C00 55%, #FFAC40 100%);
    padding: 0;
    overflow: hidden;
    margin-bottom: 0;
}
.tpb-banner__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 160px;
    padding-top: 32px;
    padding-bottom: 32px;
    gap: 24px;
}
.tpb-banner__content { flex: 1; }
.tpb-banner__title { font-size: 32px; font-weight: 700; color: #fff; margin: 0 0 8px; }
.tpb-banner__subtitle { font-size: 15px; color: rgba(255,255,255,.88); margin: 0; }
.tpb-banner__img {
    flex-shrink: 0;
    width: 180px;
    height: 160px;
    background: url('/images/tpb-banner-person.png') center bottom / contain no-repeat;
    opacity: .9;
}

/* ── Card ───────────────────────────────────────────────────────────────────── */
/* Defeat legacy 992px clamp that older crawled page HTML still injects via inline
   <style> on .section-main > .row:has(.widget-top-up-pay-bill). Existing blob HTML
   is not re-crawled (to preserve manually-pinned ABP widgets) so we override the
   clamp from here instead — later in source order than the inline <style>,
   `!important` to be safe. */
.section-main > .row:has([data-widget-type="top-up-pay-bill"]),
.section-main > .row:has(.widget-top-up-pay-bill) { max-width: none !important; }
/* Mirror .generic-container's responsive width ladder so the form aligns with the
   page banner at every breakpoint. The banner sits inside .generic-container, which
   caps at 640 / 768 / 1024 / 1280 — using a single max-width on .tpb-wrap means the
   form stays misaligned at any viewport where the active breakpoint is below the
   cap (e.g. ≥768 <1024 viewport → banner 768px but form 1024px). */
.tpb-wrap { background: #F5F5F5; padding-bottom: 60px; width: 100%; margin-left: auto; margin-right: auto; }
@media (min-width: 640px)  { .tpb-wrap { max-width: 640px; } }
@media (min-width: 768px)  { .tpb-wrap { max-width: 768px; } }
@media (min-width: 1024px) { .tpb-wrap { max-width: 1024px; } }
@media (min-width: 1280px) { .tpb-wrap { max-width: 1280px; } }
.tpb-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,.08);
    padding: 36px 40px 40px;
    margin: 0 16px;
}

/* ── Form groups ─────────────────────────────────────────────────────────────── */
.tpb-form-group { margin-bottom: 24px; }
.tpb-form-group--checkbox { margin-bottom: 12px; }
.tpb-label { display: block; font-size: 14px; font-weight: 600; color: var(--tpb-text); margin-bottom: 10px; }
.tpb-req { color: var(--tpb-primary); }
.tpb-section-label { font-size: 15px; font-weight: 700; color: var(--tpb-text); margin-bottom: 14px; }

/* ── Inputs ─────────────────────────────────────────────────────────────────── */
.tpb-input {
    width: 100%; padding: 12px 16px;
    border: 1.5px solid var(--tpb-border);
    border-radius: 8px; font-size: 15px;
    color: var(--tpb-text); outline: none;
    transition: border-color .15s; background: #fff;
    box-sizing: border-box;
}
.tpb-input:focus { border-color: var(--tpb-primary); }
.tpb-input:disabled { background: #F5F5F5; color: #999; cursor: not-allowed; }
.tpb-input.is-error { border-color: var(--tpb-error); }
.tpb-input-group:has(.tpb-input.is-error) .tpb-input-prefix { border-color: var(--tpb-error); }
.tpb-dd__trigger.is-error { border-color: var(--tpb-error); }
.tpb-cs__trigger.is-error { border-color: var(--tpb-error); }

.tpb-input-group { display: flex; align-items: stretch; }
.tpb-input-group .tpb-input { border-radius: 0 8px 8px 0; border-left: none; flex: 1; }
.tpb-input-prefix {
    display: flex; align-items: center; padding: 0 14px;
    background: transparent; border: 1.5px solid var(--tpb-border);
    border-right: none; border-radius: 8px 0 0 8px;
    font-size: 14px; color: #555; font-weight: 500; white-space: nowrap;
    transition: border-color .15s;
}
.tpb-input-group:focus-within .tpb-input-prefix { border-color: var(--tpb-primary); }

/* ── Select ─────────────────────────────────────────────────────────────────── */
.tpb-select {
    width: 100%; padding: 12px 40px 12px 16px;
    border: 1.5px solid var(--tpb-border);
    border-radius: 8px; font-size: 15px;
    color: var(--tpb-text); outline: none;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23777' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 14px center;
    -webkit-appearance: none; -moz-appearance: none; appearance: none;
    cursor: pointer; transition: border-color .15s;
}
.tpb-select:focus { border-color: var(--tpb-primary); }

/* ── Radio buttons ──────────────────────────────────────────────────────────── */
.tpb-radio-group { display: flex; align-items: center; gap: 28px; }
.tpb-radio-label {
    display: flex; align-items: center; gap: 10px;
    cursor: pointer; font-size: 15px; color: #333; user-select: none;
}
.tpb-radio { display: none; }
.tpb-radio-custom {
    width: 20px; height: 20px; border-radius: 50%;
    border: 2px solid #ccc; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    transition: border-color .15s;
    position: relative;
}
.tpb-radio:checked + .tpb-radio-custom { border-color: var(--tpb-primary); border-width: 2px; }
.tpb-radio:checked + .tpb-radio-custom::after {
    content: '';
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--tpb-primary);
    position: absolute;
}

/* ── Payment method cards ───────────────────────────────────────────────────── */
.tpb-payment-methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.tpb-method-card {
    border: 1.5px solid var(--tpb-border); border-radius: 10px;
    padding: 20px 16px 16px; cursor: pointer;
    transition: border-color .15s, box-shadow .15s;
    display: flex; flex-direction: column; gap: 10px;
    background: #fff;
}
.tpb-method-card:hover { border-color: var(--tpb-primary); box-shadow: 0 2px 8px rgba(255,107,0,.1); }
.tpb-method-card.is-selected { border-color: var(--tpb-primary); box-shadow: 0 2px 10px rgba(255,107,0,.15); }
.tpb-method-card__icon { color: #ccc; transition: color .15s; }
.tpb-method-card.is-selected .tpb-method-card__icon { color: var(--tpb-primary); }
.tpb-method-card__label { font-size: 13px; font-weight: 600; color: #555; line-height: 1.3; transition: color .15s; }
.tpb-method-card.is-selected .tpb-method-card__label { color: var(--tpb-primary); }

/* Sub-method (e.g. FPX shown under Online Banking) — compact icon-only card, smaller than parent payment-method cards */
.tpb-sub-methods { display: flex; flex-wrap: wrap; gap: 12px; }
.tpb-method-card--sub {
    cursor: default;
    width: 100px;
    min-height: 72px;
    padding: 14px 12px;
    align-items: center;
    justify-content: center;
}
.tpb-method-card--sub:hover { box-shadow: 0 2px 10px rgba(255,107,0,.15); border-color: var(--tpb-primary); }
.tpb-method-card--sub .tpb-method-card__icon { display: flex; align-items: center; justify-content: center; }
.tpb-method-card--sub .tpb-method-card__icon img { max-width: 80px; max-height: 44px; object-fit: contain; display: block; }

/* ── Custom searchable dropdown ─────────────────────────────────────────────── */
.tpb-dd { position: relative; }

.tpb-dd__trigger {
    width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px;
    padding: 12px 16px; background: #fff;
    border: 1.5px solid var(--tpb-border); border-radius: 8px;
    font-size: 15px; color: #aaa; cursor: pointer;
    text-align: left; transition: border-color .15s;
}
.tpb-dd__trigger:focus { outline: none; border-color: var(--tpb-primary); }
.tpb-dd__trigger.has-value { color: var(--tpb-text); }
.tpb-dd__trigger.is-open { border-color: var(--tpb-primary); border-radius: 8px 8px 0 0; border-bottom-color: transparent; }
.tpb-dd__value { flex: 1; overflow: hidden; display: flex; align-items: center; gap: 8px; height: 32px; }
.tpb-dd__selected-icon {
    height: 32px; min-width: 32px;
    flex-shrink: 0; display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 700; color: #fff; overflow: hidden;
}
.tpb-dd__selected-icon img { width: 100%; height: 100%; object-fit: contain; background: transparent; }
.tpb-dd__selected-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tpb-dd__chevron { flex-shrink: 0; color: #aaa; transition: transform .2s; }
.tpb-dd__trigger.is-open .tpb-dd__chevron { transform: rotate(180deg); }

.tpb-dd__panel {
    position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border: 1.5px solid var(--tpb-primary);
    border-top: none; border-radius: 0 0 8px 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    z-index: 100; overflow: hidden;
}

.tpb-dd__search-wrap {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 16px; border-bottom: 1px solid #F0F0F0;
}
.tpb-dd__search {
    flex: 1; border: none; outline: none;
    font-size: 16px; color: var(--tpb-text);
    background: transparent;
}
.tpb-dd__search::placeholder { color: #aaa; }

.tpb-dd__list { max-height: 260px; overflow-y: auto; }

.tpb-dd__item {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 16px; cursor: pointer;
    border-bottom: 1px solid #F5F5F5;
    transition: background .1s;
}
.tpb-dd__item:last-child { border-bottom: none; }
.tpb-dd__item:hover { background: #FFF8F4; }
.tpb-dd__item.is-selected { background: var(--tpb-primary-light); }
.tpb-dd__item.is-disabled { opacity: .4; pointer-events: none; }

.tpb-dd__item-logo {
    width: 48px; height: 32px;
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 700; color: #fff;
    overflow: hidden; border-radius: 4px;
}
.tpb-dd__item-logo img { width: 100%; height: 100%; object-fit: contain; background: transparent; border-radius: 4px; }
.tpb-dd__item-name { font-size: 14px; color: var(--tpb-text); font-weight: 500; }
.tpb-dd__item-badge { font-size: 11px; color: #aaa; margin-left: auto; }

.tpb-dd__empty { padding: 16px; text-align: center; font-size: 13px; color: #aaa; }

/* ── Divider ────────────────────────────────────────────────────────────────── */
.tpb-divider { border: none; border-top: 1px solid #EEEEEE; margin: 16px 0; }

/* ── Payment Method Note / FPX Note (sit alongside the T&C checkbox text) ───
   Font kept in sync with .tpb-checkbox-label (14px / 1.6) so all three blocks
   (T&C, Note, FPX Note) read at the same visual weight. */
.tpb-payment-method-tnc,
.tpb-fpx-note {
    font-size: 14px; color: #333; line-height: 1.6;
    margin: 8px 0 15px;
}
.tpb-payment-method-tnc:empty,
.tpb-fpx-note:empty { display: none; }
.tpb-payment-method-tnc p,
.tpb-payment-method-tnc ol,
.tpb-payment-method-tnc ul,
.tpb-fpx-note p,
.tpb-fpx-note ol,
.tpb-fpx-note ul { margin: 0 0 4px; font-size: inherit; line-height: inherit; }
.tpb-payment-method-tnc p:last-child,
.tpb-payment-method-tnc ol:last-child,
.tpb-payment-method-tnc ul:last-child,
.tpb-fpx-note p:last-child,
.tpb-fpx-note ol:last-child,
.tpb-fpx-note ul:last-child { margin-bottom: 0; }
.tpb-payment-method-tnc a,
.tpb-fpx-note a { color: var(--tpb-primary); text-decoration: underline; }

/* ── Checkbox ───────────────────────────────────────────────────────────────── */
.tpb-checkbox-label {
    display: flex; align-items: flex-start; gap: 10px;
    cursor: pointer; font-size: 14px; color: #333; line-height: 1.6;
}
.tpb-checkbox { display: none; }
.tpb-checkbox-custom {
    width: 18px; height: 18px; flex-shrink: 0;
    border: 2px solid #ccc; border-radius: 4px; margin-top: 3px;
    display: flex; align-items: center; justify-content: center;
    transition: border-color .15s, background .15s;
}
.tpb-checkbox:checked + .tpb-checkbox-custom { background: var(--tpb-primary); border-color: var(--tpb-primary); }
.tpb-checkbox:checked + .tpb-checkbox-custom::after {
    content: ''; display: block;
    width: 5px; height: 9px;
    border: 2px solid #fff; border-top: none; border-left: none;
    transform: rotate(45deg) translate(-1px, -1px);
}
.tpb-checkbox-label a { color: var(--tpb-primary); text-decoration: underline; }

/* ── Notification ───────────────────────────────────────────────────────────── */
.tpb-notification-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; margin-top: 12px; }
.tpb-notification-col { display: flex; flex-direction: column; }

/* ── Buttons ────────────────────────────────────────────────────────────────── */
.tpb-btn-primary {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 10px 28px; background: var(--tpb-primary); color: #fff;
    border: none; border-radius: 50px; font-size: 14px; font-weight: 700;
    cursor: pointer; transition: background .15s;
}
.tpb-btn-primary:hover { background: var(--tpb-primary-dark); }
.tpb-btn-primary:disabled { opacity: .5; pointer-events: none; }
.tpb-btn-primary--full { width: 100%; justify-content: center; }

.tpb-form-actions { display: flex; justify-content: center; margin-top: 8px; }

/* ── Field error ────────────────────────────────────────────────────────────── */
.tpb-field-error { font-size: 12px; color: var(--tpb-error); margin-top: 6px; }

/* ── Loading ────────────────────────────────────────────────────────────────── */
.tpb-loading-inline { display: flex; align-items: center; gap: 8px; color: #888; font-size: 13px; padding: 20px 16px; }

/* ── Spinners ───────────────────────────────────────────────────────────────── */
.tpb-spinner-sm {
    display: inline-block; width: 14px; height: 14px;
    border: 2px solid currentColor; border-right-color: transparent;
    border-radius: 50%; animation: tpb-spin .6s linear infinite;
}
.tpb-spinner-lg {
    width: 44px; height: 44px;
    border: 4px solid #EEE; border-top-color: var(--tpb-primary);
    border-radius: 50%; animation: tpb-spin .8s linear infinite; margin: 0 auto 20px;
}
@keyframes tpb-spin { to { transform: rotate(360deg); } }

/* ── Processing ─────────────────────────────────────────────────────────────── */
.tpb-processing { text-align: center; padding: 60px 20px; }
.tpb-processing p { color: #555; margin-bottom: 8px; }
.tpb-processing__note { font-size: 13px; color: #999; }

/* ── Modal ──────────────────────────────────────────────────────────────────── */
.tpb-modal {
    position: fixed; inset: 0; z-index: 9999;
    display: none;
    align-items: center; justify-content: center;
    padding: 16px;
}

.tpb-modal.is-open {
    display: flex;
}

body.modal-open {
    overflow: hidden;
}
.tpb-modal__backdrop {
    position: absolute; inset: 0;
    background: rgba(0,0,0,.5); backdrop-filter: blur(2px);
}
.tpb-modal__dialog {
    position: relative; background: #fff;
    border-radius: 20px; width: 100%; max-width: 480px;
    box-shadow: 0 8px 40px rgba(0,0,0,.2);
    display: flex; flex-direction: column;
    max-height: 90vh; overflow: hidden;
}
.tpb-modal__header {
    display: flex; align-items: flex-start; justify-content: space-between;
    padding: 24px 24px 12px;
}
.tpb-modal__title { font-size: 22px; font-weight: 700; color: #1A1A1A; line-height: 1.3; }
.tpb-modal__close {
    background: none; border: none; cursor: pointer;
    font-size: 24px; color: #555; padding: 0; line-height: 1;
    display: flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; flex-shrink: 0;
    transition: color .12s;
}
.tpb-modal__close:hover { color: #111; }
.tpb-modal__body { padding: 4px 24px 8px; overflow-y: auto; flex: 1; }
.tpb-modal__footer { padding: 16px 24px 28px; display: flex; justify-content: center; }

/* Modal confirmation rows */
.tpb-modal-row {
    display: flex; justify-content: space-between; align-items: flex-start;
    gap: 16px; padding: 10px 0; font-size: 15px;
}
.tpb-modal-row__label { color: var(--tpb-muted); flex-shrink: 0; font-weight: 400; }
.tpb-modal-row__value { font-weight: 700; color: #1A1A1A; text-align: right; }
.tpb-modal-section-label {
    font-size: 15px; font-weight: 700; color: #1A1A1A;
    margin: 8px 0 4px;
    padding-top: 20px;
    border-top: 1px solid #E8E8E8;
}

/* ── Custom Select (DSA style) ───────────────────────────────────────────────── */
.tpb-cs { position: relative; user-select: none; }
.tpb-cs__trigger {
    display: flex; justify-content: space-between; align-items: center;
    background: #fff; border: 1.5px solid var(--tpb-border); border-radius: 8px;
    padding: 12px 16px; cursor: pointer;
    font-size: 14px; font-weight: 500; color: #999;
    transition: all .3s cubic-bezier(.4,0,.2,1);
}
.tpb-cs__trigger:hover { border-color: var(--tpb-primary); }
.tpb-cs__trigger.has-value { color: var(--tpb-text); }
.tpb-cs__text { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tpb-cs__arrow {
    border: solid #999; border-width: 0 2px 2px 0;
    display: inline-block; padding: 3px; flex-shrink: 0;
    transform: rotate(45deg);
    transition: all .3s cubic-bezier(.4,0,.2,1);
    margin-left: 10px;
}
.tpb-cs__menu {
    position: absolute; top: calc(100% + 8px); left: 0; right: 0;
    background: #fff; border-radius: 10px; border: 1px solid #efefef;
    box-shadow: 0 10px 30px rgba(0,0,0,.15); z-index: 200;
    opacity: 0; visibility: hidden;
    transform: translateY(-15px);
    transition: all .3s cubic-bezier(.4,0,.2,1);
}
.tpb-cs__header {
    padding: 12px 16px; color: #8E95A2; font-size: 13px;
    border-bottom: 1px solid #F2F2F2; font-weight: 500;
}
.tpb-cs__list { max-height: 220px; overflow-y: auto; }
.tpb-cs__list::-webkit-scrollbar { width: 6px; }
.tpb-cs__list::-webkit-scrollbar-track { background: transparent; }
.tpb-cs__list::-webkit-scrollbar-thumb { background: #e0e0e0; border-radius: 10px; }
.tpb-cs__list::-webkit-scrollbar-thumb:hover { background: #ccc; }
.tpb-cs__option {
    padding: 12px 16px; font-size: 15px; font-weight: 500;
    color: #000; cursor: pointer; transition: background .2s;
    border-bottom: 1px solid #f5f5f5;
}
.tpb-cs__option:last-child { border-bottom: none; }
.tpb-cs__option:hover { background: #f8f9fa; color: var(--tpb-primary); }
.tpb-cs__option.is-active { color: var(--tpb-primary); background: var(--tpb-primary-light); }
.tpb-cs.is-open .tpb-cs__trigger {
    border-color: var(--tpb-primary);
    box-shadow: 0 0 0 3px rgba(255,107,0,.1);
}
.tpb-cs.is-open .tpb-cs__arrow { transform: rotate(-135deg); border-color: var(--tpb-primary); }
.tpb-cs.is-open .tpb-cs__menu { opacity: 1; visibility: visible; transform: translateY(0); }

/* Amount picker (U Mobile top-up style) */
.tpb-cs--amount .tpb-cs__trigger {
  width: 100%;
  border: 1.5px solid var(--tpb-border);
  border-radius: 8px;
  padding: 12px 14px 12px 16px;
  font-size: 15px;
  font-weight: 500;
  color: #999;
  background: #fff;
  font-family: inherit;
  text-align: left;
}

.tpb-cs--amount .tpb-cs__chev {
  display: flex;
  align-items: center;
  color: #999;
  transition: transform 0.2s ease, color 0.2s ease;
}

.tpb-cs--amount.is-open .tpb-cs__chev {
  transform: rotate(180deg);
  color: var(--tpb-primary);
}

.tpb-cs--amount .tpb-cs__menu {
  top: 100%;
  left: 0;
  right: 0;
  margin-top: -1px;
  border-radius: 0 0 10px 10px;
  border: 1.5px solid var(--tpb-primary);
  border-top: 1px solid #f0f0f0;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
  transform: translateY(0);
}

.tpb-cs--amount.is-open .tpb-cs__trigger {
  border-color: var(--tpb-primary);
  border-radius: 8px 8px 0 0;
  border-bottom-color: #f0f0f0;
  box-shadow: none;
}

.tpb-cs--amount .tpb-cs__header {
  padding: 10px 16px;
  color: #999;
  font-size: 14px;
  font-weight: 500;
}

.tpb-cs--amount .tpb-cs__option {
  display: block;
  width: 100%;
  border: 0;
  border-bottom: 1px solid #f0f0f0;
  background: #fff;
  text-align: left;
  font-size: 15px;
  font-weight: 700;
  color: #1a1a1a;
  cursor: pointer;
  font-family: inherit;
  padding: 12px 16px;
}

.tpb-cs--amount .tpb-cs__option:last-child {
  border-bottom: 0;
  border-radius: 0 0 8px 8px;
}

.tpb-cs--amount .tpb-cs__option:hover {
  background: #fff8f4;
  color: var(--tpb-primary);
}

.tpb-cs--amount .tpb-cs__option.is-active {
  background: var(--tpb-primary-light, #fff5ee);
  color: var(--tpb-primary);
}

/* ── Alert / Error Modal ─────────────────────────────────────────────────────── */
.tpb-alert-modal {
    position: fixed; inset: 0; z-index: 99999;
    display: flex; align-items: center; justify-content: center;
    padding: 16px;
}
.tpb-alert-modal__backdrop {
    position: absolute; inset: 0;
    background: rgba(0,0,0,.5); backdrop-filter: blur(2px);
}
.tpb-alert-modal__dialog {
    position: relative; background: #fff;
    border-radius: 20px; width: 100%; max-width: 360px;
    box-shadow: 0 12px 48px rgba(0,0,0,.22);
    padding: 36px 28px 28px;
    text-align: center;
    animation: tpb-alert-in .22s ease;
}
@keyframes tpb-alert-in { from { opacity: 0; transform: scale(.93); } to { opacity: 1; transform: scale(1); } }
.tpb-alert-modal__close {
    position: absolute; top: 14px; right: 16px;
    background: none; border: none; cursor: pointer;
    font-size: 22px; color: #bbb; padding: 0; line-height: 1;
    width: 32px; height: 32px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: background .12s, color .12s;
}
.tpb-alert-modal__close:hover { background: #F5F5F5; color: #555; }
.tpb-alert-modal__icon-wrap {
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
}
.tpb-alert-modal__icon-wrap img {
    width: 180px; height: auto; display: block;
}
.tpb-alert-modal__title {
    font-size: 17px; font-weight: 700; color: #111;
    margin: 0 0 10px; line-height: 1.35;
}
.tpb-alert-modal__msg {
    font-size: 14px; color: #666;
    margin: 0 0 28px; line-height: 1.5;
}
.tpb-alert-modal__btn {
    width: 50%; padding: 14px;
    background: var(--tpb-primary); color: #fff;
    border: none; border-radius: 50px;
    font-size: 15px; font-weight: 700; cursor: pointer;
    transition: background .15s;
}
.tpb-alert-modal__btn:hover { background: var(--tpb-primary-dark); }

/* ── Toast ──────────────────────────────────────────────────────────────────── */
.tpb-toast-container {
    position: fixed; top: 24px; left: 50%; transform: translateX(-50%);
    z-index: 99999; display: flex; flex-direction: column; align-items: center; gap: 10px;
    pointer-events: none;
}
.tpb-toast {
    display: flex; align-items: flex-start; gap: 10px;
    min-width: 280px; max-width: 480px; padding: 14px 16px;
    border-radius: 10px; box-shadow: 0 4px 20px rgba(0,0,0,.18);
    font-size: 14px; line-height: 1.45; font-weight: 500;
    pointer-events: all; cursor: default;
    animation: tpb-toast-in .25s ease;
}
.tpb-toast.is-hiding { animation: tpb-toast-out .25s ease forwards; }
.tpb-toast--error   { background: #fff1f0; color: #b91c1c; border: 1px solid #fecaca; }
.tpb-toast--success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.tpb-toast--info    { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }
.tpb-toast__icon { flex-shrink: 0; margin-top: 1px; }
.tpb-toast__msg  { flex: 1; }
.tpb-toast__close {
    flex-shrink: 0; background: none; border: none; cursor: pointer;
    font-size: 18px; line-height: 1; padding: 0; margin-left: 4px;
    color: inherit; opacity: .6;
}
.tpb-toast__close:hover { opacity: 1; }
@keyframes tpb-toast-in  { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes tpb-toast-out { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(-10px); } }

/* ── Account Number Info Tooltip ─────────────────────────────────────────────── */
.tpb-tooltip-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-left: 5px;
    vertical-align: middle;
}

.tpb-tooltip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    padding: 0;
    border: none;
    background: none;
    color: #aaa;
    cursor: pointer;
    transition: color 0.15s ease;
    border-radius: 50%;
    vertical-align: middle;
}

.tpb-tooltip-icon:hover,
.tpb-tooltip-icon:focus {
    color: var(--tpb-primary);
    outline: none;
}

.tpb-tooltip-box {
    position: absolute;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    z-index: 9999;
    bottom: calc(100% + 15px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 450px;
    max-width: calc(100vw - 32px);
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 8px 16px;
    font-size: 14px;
    color: var(--tpb-text);
    line-height: 1.5;
    text-align: left;
    white-space: normal;
    box-sizing: border-box;
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

.tpb-tooltip-wrap.is-open .tpb-tooltip-box {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.tpb-tooltip-box::after {
    content: '';
    position: absolute;
    top: 100%;
    left: var(--arrow-x, 50%);
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: #ffffff;
    filter: drop-shadow(0 2px 1px rgba(0, 0, 0, 0.05));
}

.tpb-tooltip-box.is-bottom {
    bottom: auto;
    top: calc(100% + 15px);
    transform: translateX(-50%) translateY(-10px);
}

.tpb-tooltip-box.is-bottom.is-open {
    transform: translateX(-50%) translateY(0);
}

.tpb-tooltip-box.is-bottom::after {
    top: auto;
    bottom: 100%;
    border-top-color: transparent;
    border-bottom-color: #ffffff;
}

.tpb-tooltip-box p {
    margin: 0 0 5px 0;
    font-weight: 400;
    font-size: 14px;
    color: #444;
}

.tpb-tooltip-box ul {
    margin: 0;
    padding-left: 18px;
    list-style-type: disc;
}

.tpb-tooltip-box ul li {
    margin-bottom: 5px;
    font-size: 13px;
    color: #333;
    font-weight: 400;
}

.tpb-tooltip-box ul li strong {
    color: #000;
}

.tpb-tooltip-box ul li:last-child {
    margin-bottom: 0;
}

@media (max-width: 480px) {
    .tpb-tooltip-box {
        position: fixed;
        padding: 12px 15px;
        width: calc(100vw - 32px);
        max-width: none;
        left: 16px;
        bottom: auto;
        transform: none;
        transition: opacity 0.2s ease, visibility 0.2s ease;
    }
    .tpb-tooltip-wrap.is-open .tpb-tooltip-box,
    .tpb-tooltip-box.is-bottom,
    .tpb-tooltip-box.is-bottom.is-open {
        transform: none;
    }
}

/* ── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .tpb-banner__title { font-size: 24px; }
    .tpb-banner__img { width: 120px; height: 120px; }
    .tpb-card { padding: 24px 16px 32px; border-radius: 0; box-shadow: none; }
    .tpb-notification-row { grid-template-columns: 1fr; }
    .tpb-form-actions { justify-content: center; }
}

@media (max-width: 480px) {
    .tpb-banner__img { display: none; }
    .tpb-payment-methods { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .tpb-method-card { padding: 14px 6px 12px; }
    .tpb-method-card__label { font-size: 11px; }
}

.generic-container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
  box-sizing: border-box;
}
@media (min-width: 640px)  { .generic-container { max-width: 640px; } }
@media (min-width: 768px)  { .generic-container { max-width: 768px; } }
@media (min-width: 1024px) { .generic-container { max-width: 1024px; } }
@media (min-width: 1280px) { .generic-container { max-width: 1280px; } }

/* ── Site shell (header / page / footer) ───────────────────────────────────── */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body.layout-body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: #f5f5f5;
  color: #4d4d4d;
  overflow-x: clip;
}

/* Orange top strip — Personal / Business / EIP / Wholesale + language */
.site-top,
.top-bar {
  background: var(--tpb-primary);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

.site-top__inner,
.top-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
  gap: 16px;
}

.site-top__segments {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px;
}

.site-top__item {
  color: rgba(255, 255, 255, 0.95);
  padding: 8px 14px;
  border-radius: 2px;
  white-space: nowrap;
  cursor: default;
  user-select: none;
}

.site-top__item.is-active {
  background: rgba(0, 0, 0, 0.14);
  color: #fff;
}

/* Language dropdown (orange bar) */
.lang-dropdown {
  position: relative;
}

.lang-dropdown__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 2px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
}

.lang-dropdown__toggle svg {
  flex-shrink: 0;
}

.lang-dropdown__current {
  min-width: 1.5em;
  text-align: left;
}

.lang-dropdown__panel {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 96px;
  background: #faf7f2;
  border: 1px solid #e6dfd6;
  border-radius: 2px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  z-index: 300;
  overflow: hidden;
}

.lang-dropdown__panel[hidden] {
  display: none;
}

.lang-dropdown__option {
  display: block;
  width: 100%;
  padding: 11px 20px;
  color: #222;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border: 0;
  border-bottom: 1px solid #ebe5dc;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}

.lang-dropdown__option:last-child {
  border-bottom: 0;
}

.lang-dropdown__option:hover {
  background: #fff;
}

.lang-dropdown__option.is-active {
  color: var(--tpb-primary);
}

.site-header-group {
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header {
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
}

.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 56px;
  padding: 10px 16px;
  flex-wrap: nowrap;
}

.site-header__logo {
  flex-shrink: 0;
  line-height: 0;
  position: relative;
  z-index: 2;
}

.site-header__logo img {
  height: 50px;
  width: auto;
  display: block;
}

@media (min-width: 768px) {
  .site-header__inner {
    min-height: 60px;
    padding: 12px 16px;
  }

  .site-header__logo img {
    height: 54px;
  }
}

.site-header__actions {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  z-index: 1;
  pointer-events: none;
}

.site-header__actions .header-action-btn {
  pointer-events: auto;
}

.header-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 100px;
  padding: 8px 22px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-radius: 999px;
  border: 2px solid var(--tpb-primary);
  color: var(--tpb-primary);
  background: #fff;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.header-action-btn:hover {
  background: #fff5ee;
}

.header-action-btn.is-active {
  background: var(--tpb-primary);
  color: #fff;
  border-color: var(--tpb-primary);
  box-shadow: 0 2px 8px rgba(255, 107, 0, 0.28);
}

.header-action-btn.is-active:hover {
  background: var(--tpb-primary-dark);
  border-color: var(--tpb-primary-dark);
}

@media (max-width: 480px) {
  .site-header__inner {
    min-height: 52px;
    padding: 8px 12px;
  }

  .site-header__logo img {
    height: 44px;
  }

  .site-header__actions {
    gap: 8px;
  }

  .header-action-btn {
    min-width: 88px;
    padding: 7px 16px;
    font-size: 11px;
  }
}

.page-main {
  min-height: 60vh;
}

/* ── Promo cards (above footer) ───────────────────────────────────────────── */
.promo-cards {
  background: #f5f5f5;
  padding: 48px 0 40px;
  margin-top: 8px;
}

.promo-cards__inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.promo-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
}

.promo-card__img {
  height: 160px;
  overflow: hidden;
  background: #f0f0f0;
}

.promo-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.promo-card__title {
  margin: 16px 16px 8px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #1a1a1a;
}

.promo-card__text {
  margin: 0 16px 12px;
  font-size: 0.85rem;
  line-height: 1.55;
  color: #666;
  flex: 1;
}

.promo-card__link {
  margin: 0 16px 18px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--tpb-primary);
  text-decoration: none;
}

.promo-card__link:hover {
  text-decoration: underline;
}

/* ── Site footer (topupmalay.com) ───────────────────────────────────────────── */
.site-footer {
  position: relative;
  background: #ececec;
  color: #444;
  font-size: 13px;
  margin-top: 0;
}

.btn-btt {
  position: absolute;
  right: max(20px, calc(50% - 640px));
  top: -22px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 6px;
  background: var(--tpb-primary);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(255, 107, 0, 0.35);
  z-index: 5;
}

.site-footer__main {
  padding: 36px 16px 28px;
}

.site-footer__cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.site-footer__heading {
  margin: 0 0 12px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #1a1a1a;
}

.site-footer__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer__col li {
  margin-bottom: 8px;
}

.site-footer__col a {
  color: #444;
  text-decoration: none;
}

.site-footer__col a:hover {
  color: var(--tpb-primary);
}

.site-footer__disclosure {
  margin: 0 0 10px;
  font-size: 12px;
  line-height: 1.55;
  color: #666;
}

.site-footer__contact-line {
  margin: 0;
  font-size: 12px;
}

.site-footer__contact-line a {
  color: var(--tpb-primary);
  font-weight: 600;
}

.site-footer__disclosure--full {
  margin: 20px 0 0;
  padding-top: 16px;
  border-top: 1px solid #d5d5d5;
  font-size: 12px;
  line-height: 1.55;
  color: #666;
}

.site-footer__disclosure--full a {
  color: var(--tpb-primary);
  font-weight: 600;
}

.site-footer__bar {
  background: #3a3a3a;
  color: #bbb;
  font-size: 11px;
  padding: 12px 16px;
}

.site-footer__bar-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
  text-align: center;
}

.site-footer__bar a {
  color: #ff9a4d;
}

/* Legal content pages */
.legal-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 16px 48px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.legal-page h1 {
  margin: 0 0 8px;
  font-size: 1.5rem;
  color: #1a1a1a;
}

.legal-page .brand-tag {
  color: var(--tpb-primary);
  font-weight: 700;
}

.legal-page p,
.legal-page li {
  font-size: 0.9rem;
  line-height: 1.65;
  color: #555;
}

.legal-page a {
  color: var(--tpb-primary);
}

.legal-page-wrap {
  padding: 24px 16px 48px;
  background: #f5f5f5;
}

@media (max-width: 900px) {
  .promo-cards__inner {
    grid-template-columns: 1fr;
  }

  .site-footer__cols {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer__col--wide {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .site-footer__cols {
    grid-template-columns: 1fr;
  }

  .site-footer__bar-inner {
    flex-direction: column;
    text-align: center;
  }
}

.legal-block {
  max-width: 1024px;
  margin: 24px auto 0;
  padding: 0 16px 40px;
  font-size: 11px;
  line-height: 1.65;
  color: #777;
}

.legal-block p {
  margin: 0 0 10px;
}

.legal-block a {
  color: var(--tpb-primary);
}

/* Account type pills */
.tpb-account-type {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.tpb-account-pill {
  flex: 1;
  min-width: 120px;
  text-align: center;
  padding: 12px 16px;
  border: 1.5px solid var(--tpb-border);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  background: #fff;
  color: #555;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.tpb-account-pill.is-active {
  border-color: var(--tpb-primary);
  background: var(--tpb-primary-light);
  color: var(--tpb-primary);
}

.tpb-account-pill:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.tpb-method-card__icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
}

.tpb-method-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.tpb-method-card {
  position: relative;
  cursor: pointer;
}

button.tpb-btn-primary {
  font-family: inherit;
  text-decoration: none;
}

a.tpb-btn-primary {
  text-decoration: none;
}

.tpb-payment-methods--single {
  grid-template-columns: 1fr;
  max-width: 240px;
}

.hero-carousel--single .hero-carousel__dots {
  display: none;
}

/* Content lane: banner + form same width as u.com.my (max 1280px) */
.content-lane {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
  box-sizing: border-box;
}

/* ── Hero carousel — ratio 2496×660 like official KV (~3.78:1) ─────────────── */
.hero-carousel {
  position: relative;
  padding-top: 20px;
}

.hero-carousel__frame {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.08);
  background: #cc5500;
}

/* Official desktop KV: 2496×660 → height ≈ width / 3.78 (e.g. 1280px → ~339px) */
.hero-carousel__track {
  position: relative;
  width: 100%;
  aspect-ratio: 2496 / 660;
  max-height: min(42vw, 340px);
}

.hero-slide {
  display: none;
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-slide.is-active {
  display: block;
}

.hero-slide__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% center;
}

.hero-slide--paybill .hero-slide__bg {
  object-position: 78% center;
}

.hero-slide__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  padding: 16px 28px;
  box-sizing: border-box;
}

.hero-slide__copy {
  max-width: 48%;
  padding: 0;
}

.hero-slide__copy--light .hero-slide__title,
.hero-slide__copy--light .hero-slide__subtitle {
  color: #1a1a1a;
  text-shadow: none;
}

.hero-slide__title {
  margin: 0 0 8px;
  font-size: clamp(1.15rem, 2.6vw, 1.85rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
}

.hero-slide--topup .hero-slide__overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 107, 0, 0.82) 0%, rgba(255, 140, 0, 0.5) 50%, transparent 70%);
  z-index: -1;
}

.hero-slide--paybill .hero-slide__overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(204, 85, 0, 0.75) 0%, rgba(255, 140, 0, 0.45) 45%, transparent 72%);
  z-index: -1;
}

.hero-slide--app .hero-slide__overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.55) 42%, transparent 68%);
  z-index: -1;
}

.hero-slide__subtitle {
  margin: 0;
  font-size: clamp(0.9rem, 2.2vw, 1.05rem);
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.5;
  max-width: 440px;
}

.hero-slide__cta {
  display: inline-block;
  margin-top: 16px;
  padding: 12px 28px;
  background: var(--tpb-primary);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  border-radius: 50px;
}

.hero-carousel__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 14px 0 6px;
  background: transparent;
}

.hero-dot {
  width: 36px;
  height: 4px;
  border: 0;
  border-radius: 2px;
  background: #d0d0d0;
  cursor: pointer;
  padding: 0;
}

.hero-dot.is-active {
  background: var(--tpb-primary);
}

.tpb-wrap {
  margin-top: 8px;
}

.tpb-card {
  margin-left: 0;
  margin-right: 0;
}

@media (max-width: 768px) {
  .hero-carousel__track {
    max-height: min(52vw, 280px);
    aspect-ratio: 650 / 400;
  }

  .hero-slide__overlay {
    padding: 12px 16px;
  }

  .hero-slide__copy {
    max-width: 55%;
  }
}

@media (max-width: 599px) {
  .site-header__inner {
    justify-content: space-between;
  }

  .hero-carousel {
    padding-top: 12px;
  }

  .hero-carousel__frame {
    border-radius: 10px;
  }

  .hero-slide__title {
    font-size: 1rem;
  }

  .hero-slide__subtitle {
    font-size: 0.72rem;
    line-height: 1.35;
  }

  .hero-slide__cta {
    display: none;
  }
}

/* ═══ Mobile optimization (touch targets, safe areas, compact layout) ═══ */

.site-header-group {
  padding-top: env(safe-area-inset-top, 0);
}

@media (max-width: 767px) {
  .generic-container,
  .content-lane {
    padding-left: max(12px, env(safe-area-inset-left, 0));
    padding-right: max(12px, env(safe-area-inset-right, 0));
  }

  .tpb-wrap {
    padding-bottom: 32px;
  }

  .tpb-input,
  .tpb-select,
  .tpb-dd__trigger,
  .tpb-cs__trigger,
  .tpb-dd__search {
    font-size: 16px;
    min-height: 48px;
  }

  .tpb-input-group .tpb-input {
    min-height: 48px;
  }

  .tpb-input-prefix {
    padding: 0 12px;
    font-size: 15px;
  }

  .tpb-btn-primary {
    min-height: 40px;
    width: auto;
    min-width: 132px;
    max-width: 100%;
    padding: 10px 24px;
    font-size: 14px;
  }

  .tpb-form-actions {
    justify-content: center;
    margin-top: 16px;
    padding: 0;
  }

  .tpb-radio-label {
    min-height: 44px;
    padding: 4px 0;
  }

  .tpb-radio-group {
    gap: 20px;
    flex-wrap: wrap;
  }

  .tpb-checkbox-label {
    font-size: 15px;
    gap: 12px;
  }

  .tpb-checkbox-custom {
    width: 22px;
    height: 22px;
    margin-top: 2px;
  }

  .tpb-payment-methods--single {
    max-width: none;
  }

  .tpb-method-card {
    min-height: 72px;
    padding: 16px;
  }

  .promo-cards {
    padding: 28px 0 24px;
  }

  .promo-card__img {
    height: 140px;
  }

  .legal-page-wrap {
    padding: 16px 0 32px;
  }

  .legal-page {
    border-radius: 0;
    box-shadow: none;
    padding: 24px max(12px, env(safe-area-inset-left, 0)) 32px;
  }

  .legal-block {
    padding: 0 12px 32px;
    font-size: 10px;
  }
}

@media (max-width: 640px) {
  .site-top__inner {
    min-height: 44px;
    gap: 8px;
  }

  .site-top__segments {
    flex: 1;
    min-width: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex-wrap: nowrap;
    gap: 0;
    mask-image: linear-gradient(90deg, #000 92%, transparent 100%);
  }

  .site-top__segments::-webkit-scrollbar {
    display: none;
  }

  .site-top__item {
    padding: 10px 11px;
    font-size: 11px;
    flex-shrink: 0;
  }

  .lang-dropdown__toggle {
    min-height: 44px;
    min-width: 44px;
    justify-content: flex-end;
    padding: 8px 6px;
  }

  .lang-dropdown__option {
    min-height: 44px;
    padding: 12px 20px;
  }
}

@media (max-width: 599px) {
  .hero-carousel__track {
    max-height: min(58vw, 220px);
    aspect-ratio: 16 / 10;
  }

  .hero-slide__overlay {
    padding: 10px 12px;
    align-items: flex-end;
  }

  .hero-slide__copy {
    max-width: 72%;
  }

  .hero-slide--topup .hero-slide__overlay::before,
  .hero-slide--paybill .hero-slide__overlay::before {
    background: linear-gradient(
      90deg,
      rgba(255, 107, 0, 0.9) 0%,
      rgba(255, 140, 0, 0.55) 55%,
      transparent 100%
    );
  }

  .hero-slide--paybill .hero-slide__overlay::before {
    background: linear-gradient(
      90deg,
      rgba(204, 85, 0, 0.88) 0%,
      rgba(255, 140, 0, 0.5) 55%,
      transparent 100%
    );
  }

  .tpb-modal {
    align-items: flex-end;
    padding: 0;
  }

  .tpb-modal__dialog {
    max-width: none;
    width: 100%;
    border-radius: 20px 20px 0 0;
    max-height: min(92dvh, 92vh);
  }

  .tpb-modal__header {
    padding: 20px 16px 8px;
  }

  .tpb-modal__title {
    font-size: 1.15rem;
    padding-right: 8px;
  }

  .tpb-modal__close {
    width: 44px;
    height: 44px;
    font-size: 28px;
  }

  .tpb-modal__body {
    padding: 4px 16px 8px;
  }

  .tpb-modal__footer {
    padding: 12px 16px max(20px, env(safe-area-inset-bottom, 0));
  }

  .tpb-modal-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    font-size: 14px;
  }

  .tpb-modal-row__value {
    font-weight: 600;
    word-break: break-word;
  }

  .btn-btt {
    right: max(12px, env(safe-area-inset-right, 12px));
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 380px) {
  .header-action-btn {
    min-width: 80px;
    padding: 6px 12px;
    font-size: 10px;
    letter-spacing: 0.02em;
  }

  .hero-slide__copy {
    max-width: 85%;
  }

  .hero-slide__title {
    font-size: 0.92rem;
  }

  .tpb-label {
    font-size: 13px;
  }

  .tpb-notification-row {
    gap: 12px;
  }
}
