/* Aeris agent Topup page (restyle 2026-11-10): the topup.aerisresources.my layout (Eastel card,
   Choose · Pay · Done, form left, money right) in Aeris colours. Owner: keep the Aeris theme. */
.tp{--tu-ink:var(--ax-ink,#111114);--tu-head:var(--ax-ink,#111114);--tu-money:var(--ax-ink,#111114);--tu-muted:var(--ax-muted,#8a8a94);--tu-soft:var(--ax-ink-2,#3a3a42);--tu-faint:var(--ax-faint,#b0b0b8);
  --tu-line:var(--ax-line,#ececf0);--tu-chip-line:var(--ax-line-strong,#dcdce2);--tu-dark:var(--tp-dark,#0d0d10);--tu-accent:var(--ax-violet-500,#1d9e75);--tu-mint:var(--tp-mint,#9fe1cb);--tu-mint-soft:var(--tp-mint-soft,#e7f6ef);
  --tu-soft-bg:var(--ax-lilac-50,#f7f7f9);--tu-sunken:var(--ax-sunken,#efeff2);--tu-surface:var(--ax-surface,#fff);--tu-green-ink:var(--ax-plum-600,#0f6e56);--tu-green-line:#bfe6d5;--tu-ring:rgba(29,158,117,.18);
  display:grid;gap:16px;max-width:1015px;font-family:var(--ax-font-text,system-ui,sans-serif);color:var(--tu-ink)}
.tp svg{width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.tp-card{background:#fff;border:1px solid var(--tu-line);border-radius:var(--ax-r-lg,20px);box-shadow:var(--ax-shadow-1,0 1px 2px rgba(17,17,20,.04));padding:30px 32px 26px;display:grid;gap:22px;min-width:0}
.tp-top{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;flex-wrap:wrap}
.tp-logo{height:51px;width:auto;display:block}
.tp-top__right{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.tp-pill{font-size:10px;font-weight:700;letter-spacing:1.3px;text-transform:uppercase;padding:7px 10px;border-radius:6px;background:var(--tu-sunken);color:var(--tu-soft)}
.tp-live{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:700;padding:5px 10px;border-radius:999px;border:1px solid var(--tu-line);color:var(--tu-soft);background:#fff}
.tp-live::before{content:"";width:7px;height:7px;border-radius:50%;background:var(--tu-faint)}
.tp-live--ok::before{background:#22c55e}.tp-live--off::before{background:#ef4444}
/* Choose · Pay · Done */
.tp-stepper{list-style:none;margin:0;padding:0 0 22px;display:grid;grid-template-columns:repeat(3,1fr);border-bottom:1px solid var(--tu-line);position:relative}
.tp-stepper li{display:grid;justify-items:center;gap:8px;position:relative;font-size:10px;font-weight:600;color:var(--tu-muted)}
.tp-stepper li+li::before{content:"";position:absolute;top:12px;right:calc(50% + 20px);left:calc(-50% + 20px);height:1px;background:var(--tu-line)}
.tp-stepper i{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;border:1px solid var(--tu-line);background:#fff;font-style:normal;font-size:11px;font-weight:700;color:var(--tu-muted)}
.tp-stepper i svg{width:13px;height:13px;stroke-width:2.6}
.tp-stepper .is-now{color:var(--tu-ink)}
.tp-stepper .is-now i{background:var(--tu-dark);border-color:var(--tu-dark);color:#fff;box-shadow:0 0 0 4px var(--tu-ring)}
.tp-stepper .is-done{color:var(--tu-ink)}
.tp-stepper .is-done i{background:var(--tu-mint-soft);border-color:var(--tu-mint);color:var(--tu-green-ink)}
.tp-stepper .is-done+li::before,.tp-stepper .is-done+.is-now::before{background:var(--tu-dark)}
.tp-banner{margin:0;padding:12px 14px;border-radius:10px;background:var(--tu-soft-bg);border:1px solid var(--tu-line);color:var(--tu-soft);font-size:13px;font-weight:600}
.tp-banner--danger{background:#fff1ee;border-color:#f6cbc1;color:#9a2f1c}
/* Body: intro, then form or order on the left and money on the right. */
.tp-body{display:grid;gap:22px;min-width:0}
.tp-intro h2{margin:0;font-size:30px;font-weight:750;letter-spacing:-.8px;line-height:1.15;color:var(--tu-head);text-wrap:balance}
.tp-intro p{margin:8px 0 0;font-size:14px;color:var(--tu-muted)}
.tp-intro p b{color:var(--tu-ink)}
.tp-cols{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:36px;align-items:start}
.tp-main,.tp-side{display:grid;gap:16px;min-width:0}
.tp-side{border:1px solid var(--tu-line);border-radius:16px;padding:22px}
.tp-label{font-size:13px;font-weight:600;color:var(--tu-ink)}
.tp-field{display:grid;gap:10px}
.tp-field small,.tp-amounts legend small{font-size:12px;color:var(--tu-muted);font-weight:400}
.tp-phone{display:flex;align-items:center;gap:10px;min-height:54px;padding:0 18px;border:1px solid var(--tu-line);border-radius:12px;background:var(--tu-surface);color:var(--tu-faint)}
.tp-phone:focus-within,.tp-other:focus-within{border-color:var(--tu-accent);box-shadow:0 0 0 4px var(--tu-ring)}
.tp-phone input,.tp-other input{flex:1;min-width:0;border:0;outline:0;background:transparent;font:inherit;font-size:16px;color:var(--tu-ink);letter-spacing:.02em}
.tp-phone input::placeholder{color:var(--tu-faint)}
.tp-offer{margin:0;display:flex;align-items:center;gap:10px;padding:11px 13px;border-radius:10px;background:var(--tu-mint-soft);border:1px solid var(--tu-green-line);color:var(--tu-green-ink);font-size:12px;font-weight:600}
.tp-offer svg{width:15px;height:15px}
.tp-amounts{border:0;margin:0;padding:0;display:grid;gap:10px;min-width:0}
.tp-amounts legend{display:flex;justify-content:space-between;align-items:baseline;width:100%;padding:0;margin-bottom:10px}
.tp-chips{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.tp-chips button{position:relative;padding:16px 8px;border-radius:12px;border:1px solid var(--tu-chip-line);background:#fff;color:var(--tu-ink);font:inherit;font-size:16px;font-weight:600;cursor:pointer;transition:border-color .15s,box-shadow .15s}
.tp-chips button:hover:not(:disabled){border-color:var(--tu-ink)}
.tp-chips button[aria-pressed="true"]{color:#fff;background:var(--tu-dark);border-color:var(--tu-dark);box-shadow:0 4px 14px rgba(13,13,16,.14)}
.tp-chips button svg{position:absolute;top:7px;right:8px;width:13px;height:13px;stroke-width:2.4;color:var(--tu-mint)}
.tp-other{display:flex;align-items:center;gap:10px;min-height:48px;padding:0 14px;border:1px solid var(--tu-line);border-radius:12px;background:#fff}
.tp-other>span{font-size:13px;color:var(--tu-soft)}
.tp-other input{font-weight:700;font-size:15px}
.tp-other small{font-size:12px;color:var(--tu-faint);white-space:nowrap}
/* Money panel */
.tp-row{display:flex;justify-content:space-between;align-items:baseline;gap:12px}
.tp-row span{font-size:14px;color:var(--tu-soft)}
.tp-pay{padding-bottom:16px;border-bottom:1px solid var(--tu-line)}
.tp-pay b{font-size:30px;font-weight:700;letter-spacing:-.7px;color:var(--tu-money);font-variant-numeric:tabular-nums}
.tp-credit{display:grid;gap:10px;padding:13px;border-radius:10px;background:var(--tu-mint-soft);border:1px solid var(--tu-green-line);color:var(--tu-green-ink)}
.tp-credit .tp-row span{color:var(--tu-green-ink);font-weight:600;font-size:13px}
.tp-credit .tp-row b{font-size:24px;font-weight:700;letter-spacing:-.5px;font-variant-numeric:tabular-nums}
.tp-credit small{font-size:11px;color:var(--tu-green-ink);opacity:.85;line-height:1.5}
.tp-bonus-pill{justify-self:start;display:inline-flex;align-items:center;gap:6px;font-style:normal;font-size:11px;font-weight:700;padding:4px 10px;border-radius:999px;background:var(--tu-surface);border:1px solid var(--tu-green-line);color:var(--tu-green-ink)}
.tp-bonus-pill::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--tu-accent)}
.tp-note{display:grid;gap:6px;padding:10px 11px;border-radius:6px;background:var(--tu-soft-bg);border-left:3px solid var(--tu-mint);color:var(--tu-soft);font-size:11px;line-height:1.5}
.tp-note strong{font-size:11px;color:var(--tu-soft)}
.tp-hint{margin:0;font-size:12px;color:var(--tu-muted);line-height:1.5}
.tp-hint a{color:var(--tu-ink)}
.tp-cta{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:50px;padding:14px 12px;border:0;border-radius:11px;background:var(--tu-dark);color:#fff;font:inherit;font-size:14px;font-weight:600;letter-spacing:.2px;box-shadow:none;cursor:pointer}
.tp-cta:hover:not(:disabled){background:#26262c}
.tp-cta:disabled{background:var(--tu-sunken);color:var(--tu-faint);box-shadow:none;cursor:not-allowed}
.tp-secondary,.tp-ghost{display:flex;align-items:center;justify-content:center;width:100%;min-height:46px;padding:12px;border-radius:11px;border:1px solid var(--tu-chip-line);background:var(--tu-surface);color:var(--tu-ink);font:inherit;font-size:14px;font-weight:600;text-decoration:none;cursor:pointer;box-sizing:border-box}
.tp-ghost{border-color:transparent;color:var(--tu-soft);font-weight:400}
.tp-upload{position:relative;overflow:hidden}
.tp-upload input{position:absolute;inset:0;opacity:0;cursor:pointer}
.tp :focus-visible{outline:2px solid var(--tu-accent);outline-offset:2px}
/* Order: progress, QR, timer */
.tp-track{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
.tp-track li{padding-top:10px;border-top:3px solid var(--tu-line);font-size:11px;color:var(--tu-muted)}
.tp-track .is-done{border-top-color:var(--tu-dark);color:var(--tu-ink)}
.tp-track .is-now{border-top-color:var(--tu-accent);color:var(--tu-ink);font-weight:700}
.tp-bar{height:6px;border-radius:999px;background:var(--tu-sunken);overflow:hidden}
.tp-bar i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--tu-dark),var(--tu-accent));transition:width .3s ease}
.tp-step-label{margin:0;font-size:14px;font-weight:600;color:var(--tu-ink)}
.tp-message{margin:0;font-size:14px;color:var(--tu-soft)}
.tp-qr{margin:0;display:grid;justify-items:center;gap:10px;padding:18px;border-radius:16px;border:1px solid var(--tu-line);background:#fff}
.tp-qr img{width:min(280px,100%);height:auto;image-rendering:pixelated}
.tp-qr figcaption{font-size:12px;color:var(--tu-muted);text-align:center}
.tp-timer{margin:0;text-align:center;font-size:14px;color:var(--tu-soft)}
.tp-timer b{font-size:20px;color:var(--tu-money);font-variant-numeric:tabular-nums}
.tp-id{margin:0;font-size:11px;color:var(--tu-muted)}
.tp-id code{font-family:ui-monospace,monospace;user-select:all;overflow-wrap:anywhere;color:var(--tu-soft)}
.tp-state{display:inline-block;font-size:11px;font-weight:700;padding:3px 9px;border-radius:999px;background:var(--tu-sunken);color:var(--tu-soft);white-space:nowrap}
.tp-state--success{background:var(--tu-mint-soft);color:var(--tu-green-ink)}
.tp-state--danger{background:#fff1ee;color:#9a2f1c}
.tp-state--warning{background:#fff7e6;color:#8a5a00}
.tp-state--neutral{background:#f1eff4;color:var(--tu-soft)}
.tp-foot{margin:0;display:flex;justify-content:center;align-items:center;gap:8px;font-size:11px;color:var(--tu-muted)}
.tp-foot svg{width:14px;height:14px}
/* Earlier topups */
.tp-history{gap:12px;padding:22px 24px}
.tp-history h3{margin:0;font-size:16px;color:var(--tu-head)}
.tp-history ul{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.tp-history button{width:100%;display:flex;justify-content:space-between;align-items:center;gap:10px;min-height:54px;padding:10px 14px;border-radius:12px;border:1px solid var(--tu-line);background:#fff;color:var(--tu-ink);font:inherit;text-align:left;cursor:pointer}
.tp-history button:hover:not(:disabled){border-color:var(--tu-ink)}
.tp-history button span:first-child{display:grid;gap:3px;min-width:0}
.tp-history small{font-size:12px;color:var(--tu-muted)}
/* Aeris shell styles reach inputs, headings and links; keep the topup look inside .tp. */
/* The doubled id outranks the shell's #appView input and .main h2 rules without !important. */
#topup#topup .tp-phone input,#topup#topup .tp-other input{border:0;border-radius:0;box-shadow:none;background:transparent;padding:0;margin:0;min-height:0;height:auto;width:auto;max-width:none;font-size:16px;color:var(--tu-ink)}
#topup#topup .tp-other input{font-size:15px;font-weight:700}
#topup#topup .tp-intro h2,#topup#topup .tp-history h3{font-family:var(--ax-font-display,system-ui,sans-serif);color:var(--tu-head)}
#topup#topup .tp-intro h2{font-size:30px;font-weight:750;letter-spacing:-.8px;line-height:1.15}
#topup#topup .tp-history h3{font-size:16px;font-weight:700}
.tp a{text-decoration:underline;text-underline-offset:2px}
#topup#topup .tp-hint a{color:var(--tu-ink)}
.tp .tp-secondary{text-decoration:none}
@media (max-width:820px){.tp-cols{grid-template-columns:minmax(0,1fr);gap:20px}}
@media (max-width:560px){.tp-card{padding:20px 16px 18px;border-radius:16px;gap:18px}#topup#topup .tp-intro h2{font-size:24px}.tp-logo{height:40px}.tp-side{padding:16px}.tp-pay b{font-size:26px}.tp-other small{display:none}.tp-history{padding:16px}}
@media (prefers-reduced-motion:reduce){.tp *{transition:none!important}}
