/* =========================================================
   PayPal — iOS web app styles
   Official typeface: PayPal Sans (paypalobjects.com)
   ========================================================= */
@font-face { font-family: "PayPal Sans Big"; src: url("assets/fonts/PayPalSansBig-Light.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "PayPal Sans Big"; src: url("assets/fonts/PayPalSansBig-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "PayPal Sans Big"; src: url("assets/fonts/PayPalSansBig-Medium.woff2") format("woff2"); font-weight: 500 700; font-style: normal; font-display: swap; }
@font-face { font-family: "PayPal Sans Small"; src: url("assets/fonts/PayPalSansSmall-Regular.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }

:root {
  --pp-blue: #0070E0;
  --pp-blue-d: #0059b3;
  --pp-navy: #003087;
  --pp-dark: #001C64;
  --pp-sky: #60CDFF;
  --bg: #eef1f6;
  --surface: #ffffff;
  --ink: #0b1b3a;
  --ink-2: #33415c;
  --muted: #6b7a90;
  --muted-2: #93a1b5;
  --line: #e4e8f0;
  --line-soft: #eef1f6;
  --green: #00875a;
  --green-bg: #e6f6ef;
  --amber: #9a6700;
  --danger: #c0392b;
  --shadow-sm: 0 1px 2px rgba(11, 27, 58, .06), 0 2px 8px rgba(11, 27, 58, .05);
  --shadow-md: 0 10px 30px -14px rgba(11, 27, 58, .35);
  --shadow-lg: 0 36px 80px -30px rgba(11, 27, 58, .5);
  --radius: 16px;
  --font: "PayPal Sans Big", "PayPal Sans Small", -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Roboto, system-ui, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink);
  background: #d9dee7;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}
h1, h2, h3, p, ul, dl, dd, figure { margin: 0; }
ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: var(--pp-blue); text-decoration: none; }
strong { font-weight: 650; }

.icon { width: 20px; height: 20px; flex: none; display: block; }
[hidden] { display: none !important; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent;
  background: transparent; font-weight: 650; font-size: 16px; transition: transform .1s ease, background .16s ease, opacity .16s ease;
}
.btn:active { transform: scale(.985); }
.btn--primary { background: var(--pp-blue); color: #fff; }
.btn--primary:hover { background: var(--pp-blue-d); }
.btn--ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.chip { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 9px 16px; font-size: 14px; font-weight: 600; }
.chip:hover { border-color: var(--pp-blue); color: var(--pp-blue); }
.link-btn { background: none; border: 0; color: var(--pp-blue); font-weight: 650; font-size: 14.5px; padding: 0; }

/* =========================================================
   Login
   ========================================================= */
.login { min-height: 100dvh; background: #fff; display: flex; flex-direction: column; max-width: 480px; margin: 0 auto; padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom); }
.login-top { padding: 26px 24px 0; }
.login-logo { width: 138px; height: auto; display: block; }
.login-body { padding: 26px 24px; flex: 1; }
.login-body h1 { font-size: 30px; letter-spacing: -.6px; color: var(--pp-dark); }
.login-sub { color: var(--muted); font-size: 15px; margin-top: 4px; }
.login-form { margin-top: 22px; display: grid; gap: 16px; }
.fld { display: grid; gap: 7px; }
.fld > span { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.fld input { height: 52px; border: 1px solid var(--line); border-radius: 12px; padding: 0 15px; font-size: 16px; background: #fff; }
.fld input:focus { outline: none; border-color: var(--pp-blue); box-shadow: 0 0 0 3px rgba(0, 112, 224, .16); }
.pw { position: relative; }
.pw input { width: 100%; padding-right: 46px; }
.pw-eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: none; padding: 8px; color: var(--muted); }
.remember { display: inline-flex; align-items: center; gap: 9px; font-size: 14.5px; color: var(--ink-2); }
.remember input { width: 20px; height: 20px; accent-color: var(--pp-blue); }
.login-link { text-align: center; font-size: 14.5px; font-weight: 600; margin-top: 2px; }
.login-or { display: flex; align-items: center; gap: 14px; color: var(--muted-2); font-size: 13px; margin: 22px 0; }
.login-or::before, .login-or::after { content: ""; height: 1px; background: var(--line); flex: 1; }
.apple-btn { width: 100%; height: 50px; border-radius: 999px; border: 0; background: #000; color: #fff; font-weight: 650; font-size: 16px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; }
.apple-btn .icon { width: 20px; height: 20px; }
.login-signup { text-align: center; margin-top: 22px; font-size: 15px; color: var(--ink-2); }
.login-signup a { font-weight: 650; }
.login-foot { display: flex; gap: 22px; justify-content: center; padding: 20px; border-top: 1px solid var(--line); font-size: 13px; }
.login-foot a { color: var(--muted); }

/* =========================================================
   App shell
   ========================================================= */
.app {
  max-width: 480px; margin: 0 auto; min-height: 100dvh; background: var(--bg);
  display: flex; flex-direction: column; position: relative;
  padding-top: env(safe-area-inset-top);
}
.appbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px; background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.appbar-brand { width: 108px; height: auto; display: block; flex: 1; }
.appbar-tools { display: flex; align-items: center; gap: 2px; }
.avatar {
  width: 36px; height: 36px; border-radius: 50%; border: 0; flex: none;
  background: var(--pp-blue); color: #fff; font-weight: 700; font-size: 13px;
  display: grid; place-items: center; letter-spacing: .3px;
}
.avatar--lg { width: 52px; height: 52px; font-size: 18px; }
.icon-btn { width: 42px; height: 42px; border: 0; background: none; border-radius: 50%; display: grid; place-items: center; color: var(--ink-2); position: relative; }
.icon-btn:hover { background: var(--line-soft); }
.icon-btn .icon { width: 22px; height: 22px; }
.has-dot::after { content: ""; position: absolute; top: 9px; right: 9px; width: 9px; height: 9px; border-radius: 50%; background: #e5484d; border: 2px solid #fff; }

.screens { flex: 1; padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
.screen { display: none; padding: 16px; }
.screen.is-active { display: block; animation: screenIn .26s ease; }
@keyframes screenIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Balance card ---------- */
.balance-card {
  position: relative; overflow: hidden;
  border-radius: 22px; padding: 22px 20px 20px; color: #fff;
  background: linear-gradient(135deg, #0070E0 0%, #003087 60%, #001C64 100%);
  box-shadow: 0 22px 44px -22px rgba(0, 48, 135, .7);
}
.balance-mark { position: absolute; right: 14px; top: 12px; width: 54px; opacity: .16; }
.balance-label { font-size: 13px; opacity: .85; font-weight: 600; letter-spacing: .02em; }
.balance-amount { display: block; font-size: 40px; font-weight: 750; letter-spacing: -1.4px; margin: 6px 0 2px; }
.balance-avail { font-size: 12.5px; opacity: .8; }
.balance-actions { display: flex; gap: 10px; margin-top: 18px; }
.bbtn { flex: 1; height: 42px; border-radius: 999px; border: 0; background: rgba(255,255,255,.16); color: #fff; font-weight: 650; font-size: 14.5px; }
.bbtn:hover { background: rgba(255,255,255,.26); }
.bbtn--ghost { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.4); }

/* ---------- Quick actions ---------- */
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 18px 0 4px; }
.quick-btn { display: grid; justify-items: center; gap: 7px; border: 0; background: none; font-size: 12.5px; font-weight: 600; color: var(--ink-2); padding: 4px 0; }
.qi { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: #fff; color: var(--pp-blue); box-shadow: var(--shadow-sm); }
.quick-btn:hover .qi { color: var(--pp-blue-d); }
.qi .icon { width: 24px; height: 24px; }

/* ---------- Promo ---------- */
.promo-card { display: flex; align-items: center; gap: 13px; margin-top: 18px; padding: 15px 16px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); cursor: pointer; }
.promo-ico { width: 42px; height: 42px; border-radius: 12px; background: #eaf3ff; color: var(--pp-blue); display: grid; place-items: center; flex: none; }
.promo-card strong { display: block; font-size: 14.5px; }
.promo-card p { font-size: 13px; color: var(--muted); margin-top: 2px; }
.promo-go { color: var(--muted-2); }

/* ---------- Section head + list card ---------- */
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin: 24px 2px 10px; }
.section-head h2 { font-size: 17px; font-weight: 700; }
.list-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.list-card + .list-card { margin-top: 14px; }

/* ---------- Transactions ---------- */
.txn { display: flex; align-items: center; gap: 13px; padding: 13px 15px; border-bottom: 1px solid var(--line-soft); cursor: pointer; }
.txn:last-child { border-bottom: 0; }
.txn:hover { background: #fafbfe; }
.txn-av { width: 42px; height: 42px; border-radius: 50%; flex: none; display: grid; place-items: center; background: #eaf3ff; color: var(--pp-navy); font-weight: 700; font-size: 14px; overflow: hidden; }
.txn-av.is-in { background: var(--green-bg); color: var(--green); }
.txn-body { flex: 1; min-width: 0; }
.txn-name { font-weight: 600; font-size: 14.5px; color: var(--ink); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.txn-meta { font-size: 12.5px; color: var(--muted); margin-top: 2px; display: block; }
.txn-side { text-align: right; flex: none; }
.txn-amt { font-weight: 700; font-size: 15px; letter-spacing: -.2px; }
.txn-amt.is-in { color: var(--green); }
.txn-date { font-size: 12px; color: var(--muted-2); margin-top: 2px; display: block; }
.txn.tag { padding: 2px 7px; border-radius: 6px; background: #fff4e5; color: var(--amber); font-size: 11px; font-weight: 700; margin-left: 6px; }

.empty { padding: 34px 16px; text-align: center; color: var(--muted); font-size: 14px; }

/* ---------- Page head / search / segmented ---------- */
.page-head { display: flex; align-items: center; justify-content: space-between; margin: 6px 2px 12px; }
.page-head h1 { font-size: 26px; letter-spacing: -.6px; color: var(--pp-dark); }
.searchbar { display: flex; align-items: center; gap: 9px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0 13px; height: 46px; margin-bottom: 12px; }
.searchbar .icon { color: var(--muted-2); width: 19px; height: 19px; }
.searchbar input { border: 0; outline: none; flex: 1; height: 100%; font-size: 16px; background: none; }
.segmented { display: flex; gap: 4px; background: #e2e6ee; border-radius: 12px; padding: 4px; margin-bottom: 14px; }
.seg { flex: 1; border: 0; background: none; border-radius: 9px; padding: 8px 4px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.seg.is-active { background: #fff; color: var(--pp-blue); box-shadow: var(--shadow-sm); }
.list-foot { text-align: center; color: var(--muted-2); font-size: 13px; padding: 18px 0; }

/* ---------- Send / Request flow ---------- */
.flow-head { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.flow-head h1 { font-size: 22px; letter-spacing: -.4px; color: var(--pp-dark); flex: 1; text-align: center; }
.flow-back { width: 40px; height: 40px; border: 0; background: none; border-radius: 50%; display: grid; place-items: center; color: var(--pp-blue); }
.flow-back:hover { background: var(--line-soft); }
.flow-spacer { width: 40px; flex: none; }
.flow-hint { color: var(--muted); font-size: 14px; margin: 0 4px 12px; }

.contact-row { display: flex; align-items: center; gap: 13px; width: 100%; text-align: left; padding: 12px 14px; border: 0; border-bottom: 1px solid var(--line-soft); background: #fff; }
.contact-row:last-child { border-bottom: 0; }
.contact-row:hover { background: #fafbfe; }
.contact-row .txn-av { font-size: 15px; }
.contact-row strong { font-size: 14.5px; display: block; }
.contact-row em { font-style: normal; font-size: 12.5px; color: var(--muted); }

.flow-amount { text-align: center; padding: 18px 0 8px; }
.flow-amount .amt { font-size: 56px; font-weight: 750; letter-spacing: -2px; color: var(--pp-dark); }
.flow-amount .amt.to { color: var(--ink); }
.flow-to { display: flex; align-items: center; justify-content: center; gap: 9px; color: var(--muted); font-size: 14px; margin-bottom: 4px; }
.flow-av { width: 30px; height: 30px; border-radius: 50%; background: var(--pp-blue); color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 700; }

.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 4px 0; }
.key { height: 58px; border: 0; background: #fff; border-radius: 14px; font-size: 24px; font-weight: 600; color: var(--ink); box-shadow: var(--shadow-sm); }
.key:hover { background: #f6f8fc; }
.key--fn { font-size: 18px; color: var(--ink-2); }

.note-input { width: 100%; height: 48px; border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; font-size: 16px; margin-top: 14px; background: #fff; }
.note-input:focus { outline: none; border-color: var(--pp-blue); box-shadow: 0 0 0 3px rgba(0,112,224,.15); }
.flow-cta { margin-top: 16px; }

/* success */
.success { text-align: center; padding: 30px 20px 10px; }
.success-check { width: 84px; height: 84px; border-radius: 50%; background: var(--green-bg); color: var(--green); display: grid; place-items: center; margin: 0 auto 18px; animation: pop .4s cubic-bezier(.2,.8,.2,1.2); }
.success-check .icon { width: 42px; height: 42px; }
@keyframes pop { 0% { transform: scale(.5); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.success h2 { font-size: 22px; color: var(--pp-dark); }
.success .amt { font-size: 30px; font-weight: 750; letter-spacing: -.8px; margin: 8px 0; }
.success p { color: var(--muted); font-size: 14.5px; }

/* ---------- Wallet ---------- */
.wallet-balance { background: #fff; border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm); }
.wallet-balance > span { color: var(--muted); font-size: 13.5px; }
.wallet-balance > strong { display: block; font-size: 32px; font-weight: 750; letter-spacing: -1px; margin: 4px 0 12px; color: var(--pp-dark); }
.wallet-balance-actions { display: flex; gap: 10px; }
.method { display: flex; align-items: center; gap: 13px; padding: 13px 15px; border-bottom: 1px solid var(--line-soft); }
.method:last-child { border-bottom: 0; }
.method-ico { width: 42px; height: 42px; border-radius: 11px; background: #eef3fb; color: var(--pp-navy); display: grid; place-items: center; flex: none; }
.method-main { flex: 1; min-width: 0; }
.method-main strong { display: block; font-size: 14.5px; }
.method-main em { font-style: normal; font-size: 12.5px; color: var(--muted); }
.method-badge { font-size: 11px; font-weight: 700; color: var(--green); background: var(--green-bg); padding: 3px 8px; border-radius: 999px; }

.debit-card { position: relative; border-radius: 18px; padding: 18px; color: #fff; margin-bottom: 12px; background: linear-gradient(135deg, #003087, #001c64 70%); box-shadow: var(--shadow-md); }
.debit-top { display: flex; align-items: center; justify-content: space-between; }
.debit-top img { width: 30px; opacity: .95; }
.debit-top span { font-size: 12px; font-weight: 700; letter-spacing: .12em; opacity: .85; }
.debit-num { font-family: ui-monospace, "SF Mono", Consolas, monospace; font-size: 19px; letter-spacing: .08em; margin: 26px 0 14px; }
.debit-bottom { display: flex; align-items: center; justify-content: space-between; font-size: 12px; letter-spacing: .05em; opacity: .9; }

/* ---------- Account ---------- */
.profile-card { display: flex; align-items: center; gap: 14px; background: #fff; border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow-sm); }
.profile-card > div { flex: 1; min-width: 0; }
.profile-card strong { display: block; font-size: 16px; }
.profile-card span { font-size: 13px; color: var(--muted); }
.list-item { display: flex; align-items: center; gap: 13px; width: 100%; text-align: left; padding: 14px 15px; border: 0; border-bottom: 1px solid var(--line-soft); background: #fff; }
.list-item:last-child { border-bottom: 0; }
.list-item:hover { background: #fafbfe; }
.li-ico { width: 36px; height: 36px; border-radius: 10px; background: #eef3fb; color: var(--pp-blue); display: grid; place-items: center; flex: none; }
.li-ico .icon { width: 19px; height: 19px; }
.li-main { flex: 1; min-width: 0; }
.li-main strong { display: block; font-size: 14.5px; font-weight: 600; }
.li-main em { font-style: normal; font-size: 12.5px; color: var(--muted); }
.li-go { color: var(--muted-2); width: 18px; height: 18px; }
.list-item.danger { margin-top: 14px; border-radius: var(--radius); color: var(--danger); box-shadow: var(--shadow-sm); }
.list-item.danger .li-ico { background: #fdeceb; color: var(--danger); }
.account-fine { text-align: center; color: var(--muted-2); font-size: 12.5px; margin-top: 18px; }
.home-legal { color: var(--muted-2); font-size: 12px; margin: 18px 4px 0; line-height: 1.5; }

/* ---------- Tab bar ---------- */
.tabbar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px; z-index: 45;
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: rgba(255,255,255,.94); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  border-top: 1px solid var(--line); padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
}
.tab { display: grid; justify-items: center; gap: 3px; border: 0; background: none; color: var(--muted); font-size: 10.5px; font-weight: 600; padding: 6px 2px; border-radius: 10px; }
.tab .icon { width: 23px; height: 23px; }
.tab.is-active { color: var(--pp-blue); }
.tab--send .tab-send-ico { width: 46px; height: 46px; margin-top: -18px; border-radius: 50%; background: var(--pp-blue); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 22px -8px rgba(0,112,224,.8); border: 3px solid #fff; }
.tab--send .tab-send-ico .icon { width: 22px; height: 22px; }

/* =========================================================
   Overlay, modal, drawer + notifications
   ========================================================= */
.td-overlay { position: fixed; inset: 0; z-index: 900; background: rgba(11,27,58,.5); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); opacity: 0; pointer-events: none; transition: opacity .18s ease; }
.td-overlay.is-open { opacity: 1; pointer-events: auto; }
.toast-stack { z-index: 950; }

.td-modal {
  position: fixed; z-index: 910; left: 50%; top: 50%;
  width: min(440px, calc(100vw - 24px)); max-height: min(84vh, 820px);
  background: #fff; border-radius: 20px; box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; overflow: hidden;
  opacity: 0; pointer-events: none; transform: translate(-50%,-48%) scale(.98);
  transition: opacity .18s ease, transform .18s ease;
}
.td-modal.is-open { opacity: 1; pointer-events: auto; transform: translate(-50%,-50%) scale(1); }
.td-modal-head, .td-drawer-head { display: flex; align-items: center; gap: 11px; padding: 15px 18px; border-bottom: 1px solid var(--line); flex: none; }
.td-modal-logo { width: 28px; height: auto; flex: none; }
.td-modal-title { font-size: 16.5px; font-weight: 700; color: var(--pp-dark); margin: 0; flex: 1; min-width: 0; }
.td-modal-close { border: 0; background: none; width: 34px; height: 34px; border-radius: 50%; color: var(--muted); display: grid; place-items: center; flex: none; }
.td-modal-close:hover { background: var(--line-soft); color: var(--ink); }
.td-modal-close .icon { width: 18px; height: 18px; }
.td-modal-body { padding: 18px; overflow: auto; -webkit-overflow-scrolling: touch; }
.td-modal-foot { padding: 13px 18px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; flex: none; background: #f7f9fc; }

.td-drawer { position: fixed; z-index: 910; top: 0; right: 0; height: 100dvh; width: min(420px, 94vw); background: #fff; box-shadow: -30px 0 80px -40px rgba(11,27,58,.55); display: flex; flex-direction: column; transform: translateX(103%); transition: transform .22s ease; }
.td-drawer.is-open { transform: translateX(0); }
.td-drawer-body { flex: 1; overflow: auto; -webkit-overflow-scrolling: touch; }

.notif { display: flex; gap: 13px; width: 100%; text-align: left; padding: 15px 18px; border: 0; border-bottom: 1px solid var(--line-soft); background: #fff; position: relative; }
.notif:hover { background: #fafbfe; }
.notif.is-unread { background: #eef5ff; }
.notif-ico { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #eaf3ff; color: var(--pp-blue); flex: none; }
.notif-ico .icon { width: 20px; height: 20px; }
.notif-body { display: grid; gap: 3px; min-width: 0; }
.notif-title { font-weight: 650; font-size: 14px; }
.notif-text { font-size: 13px; color: var(--muted); line-height: 1.45; }
.notif-time { font-size: 12px; color: var(--muted-2); }
.notif-dot { position: absolute; top: 17px; right: 16px; width: 9px; height: 9px; border-radius: 50%; background: var(--pp-blue); }

.os-row { display: flex; align-items: center; gap: 13px; padding: 13px 2px; border-bottom: 1px solid var(--line-soft); }
.os-row:last-child { border-bottom: 0; }
.os-ico { width: 40px; height: 40px; border-radius: 11px; background: #eef3fb; color: var(--pp-blue); display: grid; place-items: center; flex: none; }
.os-ico .icon { width: 20px; height: 20px; }
.os-main { flex: 1; min-width: 0; }
.os-title { font-weight: 600; font-size: 14.5px; }
.os-sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; line-height: 1.4; }
.os-side { text-align: right; flex: none; }

.td-info-card { background: #f5f8fc; border: 1px solid var(--line); border-radius: 13px; padding: 14px 15px; margin-top: 14px; }
.td-info-card strong { display: block; color: var(--pp-dark); font-size: 14px; margin-bottom: 4px; }
.td-info-card p { font-size: 13.5px; color: var(--muted); line-height: 1.5; }

.td-field { display: grid; gap: 7px; margin-bottom: 14px; }
.td-field > span { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.td-field input, .td-field select { height: 50px; border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; font-size: 16px; background: #fff; width: 100%; }
.td-field input:focus, .td-field select:focus { outline: none; border-color: var(--pp-blue); box-shadow: 0 0 0 3px rgba(0,112,224,.15); }

.td-reveal { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 11px; }
.td-reveal .cap { font-size: 12px; color: var(--muted-2); display: block; margin-bottom: 3px; }
.td-reveal .val { font-family: ui-monospace, "SF Mono", Consolas, monospace; font-size: 15px; letter-spacing: .04em; }

.td-menu-list { display: grid; }
.td-menu-item { display: flex; align-items: center; gap: 13px; padding: 14px 6px; border: 0; border-bottom: 1px solid var(--line-soft); background: none; text-align: left; font: inherit; width: 100%; color: var(--ink); }
.td-menu-item:last-child { border-bottom: 0; }
.td-menu-item:hover { color: var(--pp-blue); }
.td-menu-item > .icon { width: 20px; height: 20px; color: var(--pp-blue); flex: none; }
.td-menu-item .os-sub { margin-top: 3px; }

/* toasts */
.toast-stack { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(96px + env(safe-area-inset-bottom)); width: min(440px, calc(100vw - 24px)); display: grid; gap: 8px; z-index: 950; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; background: rgba(11,27,58,.94); color: #fff; padding: 12px 16px; border-radius: 13px; font-size: 14px; box-shadow: var(--shadow-md); pointer-events: auto; animation: toastIn .2s ease; }
.toast .icon { width: 18px; height: 18px; color: var(--pp-sky); }
.toast.is-out { opacity: 0; transform: translateY(6px); transition: opacity .2s ease, transform .2s ease; }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* iOS switch rows */
.switch-row { display: flex; align-items: center; gap: 12px; padding: 13px 2px; border-bottom: 1px solid var(--line-soft); cursor: pointer; }
.switch-row:last-of-type { border-bottom: 0; }
.switch-row > span:first-child { flex: 1; }
.switch-row strong { display: block; font-size: 14.5px; font-weight: 600; }
.switch-row em { font-style: normal; font-size: 12.5px; color: var(--muted); }
.switch-row input { position: absolute; opacity: 0; pointer-events: none; }
.switch { width: 50px; height: 30px; border-radius: 999px; background: #cbd3e0; position: relative; transition: background .18s ease; flex: none; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .18s ease; }
.switch-row input:checked ~ .switch { background: var(--pp-blue); }
.switch-row input:checked ~ .switch::after { transform: translateX(20px); }

@media (max-width: 400px) {
  .balance-amount { font-size: 34px; }
  .quick-btn { font-size: 11.5px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
