  :root {
    --blue: #2186E5;
    --blue-soft: #E8F1FB;
    --yellow: #F5C518;
    --text: #1A1A1A;
    --muted: #8A8A8E;
    --border: #E5E5EA;
    --bg: #FFFFFF;
    --grass-top: #5fa540;
    --grass-mid: #7CC04F;
    --grass-bot: #A6D67E;
  }

  * { box-sizing: border-box; -webkit-tap-highlight-color: transparent; -webkit-touch-callout: none; }
  html, body {
    margin: 0; padding: 0; background: #f9f9f9;
    scrollbar-width: none; -ms-overflow-style: none;
    font-family: 'Barlow', -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
    color: var(--text); height: 100%; overflow: hidden;
    -webkit-user-select: none; user-select: none;
    -webkit-text-size-adjust: 100%;
    overscroll-behavior: none;
    touch-action: manipulation;
  }
  body { display: flex; align-items: stretch; justify-content: center; }
  html::-webkit-scrollbar, body::-webkit-scrollbar { display: none; }
  input, textarea {
    -webkit-user-select: auto;
    user-select: auto;
    /* Re-enable the iOS long-press callout so users can paste from the
       clipboard (the global rule above turns it off for the rest of the app). */
    -webkit-touch-callout: default;
  }

  /* App container — always renders at phone width even on desktop browsers
     (Netlify preview, sharing the link with a non-mobile audience, etc.). */
  .phone {
    width: 100%;
    max-width: 430px;
    height: 100vh;
    height: 100dvh;
    background: #f9f9f9;
    overflow: hidden;
    overscroll-behavior: none;
    position: relative;
  }
  @media (min-width: 600px) {
    body {
      background: #1A1A1A;
      align-items: center;
    }
    .phone {
      width: 430px;
      max-width: 430px;
      height: 932px;
      max-height: calc(100vh - 32px);
      border-radius: 36px;
      box-shadow: 0 18px 48px rgba(0,0,0,0.35);
      overflow: hidden;
    }
  }

  /* Status bar */
  .status {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 44px;
    padding: 0 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
    font-size: 15px;
    z-index: 10;
    pointer-events: none;
  }
  .status .right { display: flex; align-items: center; gap: 6px; }
  .status .battery {
    width: 26px; height: 13px; border: 1.2px solid currentColor; border-radius: 3px; position: relative;
    display: inline-block; vertical-align: middle;
  }
  .status .battery::after {
    content: ""; position: absolute; top: 3px; right: -3px; width: 2px; height: 5px; background: currentColor; border-radius: 1px;
  }
  .status .battery > span {
    display: block; height: 100%; width: 72%; background: currentColor; border-radius: 1.5px; margin: 0 1px;
  }
  .status.dark { color: #000; }
  .status.light { color: #000; }

  /* Screens */
  .screen {
    position: absolute; inset: 0;
    overflow-x: hidden; overflow-y: auto; -webkit-overflow-scrolling: touch;
    /* Prevent rubber-band / endless-scroll bounce on screens whose content fits
       the viewport. `auto` overflow already hides the scrollbar when not needed;
       `overscroll-behavior: none` stops the elastic pull-to-scroll past the edge. */
    overscroll-behavior: none;
    padding-bottom: calc(66px + env(safe-area-inset-bottom, 0px));
    opacity: 0;
    display: none;
    transition: opacity 0.2s ease;
  }
  .screen.active { display: block; opacity: 1; }
  .screen::-webkit-scrollbar { display: none; }
  .screen { scrollbar-width: none; -ms-overflow-style: none; }

  /* Bottom nav */
  .tabbar {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: calc(66px + env(safe-area-inset-bottom, 0px));
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-top: 0.5px solid rgba(0,0,0,0.12);
    display: flex;
    z-index: 20;
    padding-bottom: env(safe-area-inset-bottom, 18px);
  }
  .tab {
    flex: 1;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 4px;
    background: none; border: 0; cursor: pointer;
    color: #8E8E93;
    font-size: 10px;
    font-weight: 500;
    padding-top: 10px;
    justify-content: flex-start;
    transition: color 0.2s ease, transform 0.1s ease;
    position: relative;
  }
  .tab-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(6px);
    background: #FF3B30;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.4px;
    padding: 3px 8px;
    border-radius: 10px;
    line-height: 1;
    pointer-events: none;
    box-shadow: 0 0 0 2px rgba(255,255,255,0.95);
  }
  .tab-badge.hidden { display: none; }
  .tab:active { transform: scale(0.9); }
  .tab svg { width: 28px; height: 28px; transition: stroke 0.2s ease; margin-top: -2px; }
  .tab .nav-icon-svg { width: 24px; height: 24px; margin-top: 0; }
  .tab.active { color: var(--blue); }
  .tab.active svg { stroke: var(--blue); }

  /* ===== HOME ===== */
  .home-hero {
    position: relative;
    padding: 56px 20px 0;
    height: 320px;
    background:
      radial-gradient(120% 80% at 50% 0%, rgba(255,255,255,0.18), transparent 60%),
      linear-gradient(180deg, #6CB04A 0%, #88C25C 45%, #B8DC8E 80%, #E6F1D5 100%);
    overflow: hidden;
  }
  /* grass texture */
  .home-hero::before {
    content: "";
    position: absolute; inset: 0;
    background-image:
      repeating-linear-gradient(105deg, rgba(255,255,255,0.05) 0 2px, transparent 2px 6px),
      repeating-linear-gradient(75deg, rgba(0,0,0,0.04) 0 2px, transparent 2px 7px);
    opacity: 0.7;
    pointer-events: none;
  }
  .home-hero::after {
    content: "";
    position: absolute;
    left: -10%; right: -10%;
    bottom: -40%;
    height: 80%;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(255,255,255,0.35), transparent 70%);
    pointer-events: none;
  }

  .home-top {
    position: relative;
    display: flex; align-items: center; justify-content: space-between;
    z-index: 2;
  }
  .coins-pill {
    display: inline-flex; align-items: center; gap: 8px;
    background: #fff;
    border: 1.5px solid #F2C84B;
    border-radius: 999px;
    padding: 4px 10px 4px 6px;
    font-size: 13px;
    font-weight: 500;
    color: #1A1A1A;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  }
  .coins-pill .dot { width: 14px; height: 14px; border-radius: 50%; background: var(--yellow); display: inline-block; }
  .coins-pill .chev { color: #888; font-size: 14px; }
  .home-top .icons { display: flex; align-items: center; gap: 14px; }
  .icon-btn {
    width: 32px; height: 32px;
    display: inline-flex; align-items: center; justify-content: center;
    color: #111;
    position: relative;
  }
  .icon-btn .badge {
    position: absolute; top: 0px; right: 2px; width: 8px; height: 8px; border-radius: 50%; background: #E53935; border: 1.5px solid #C9E0A8;
  }

  .hero-title {
    margin-top: 8px;
    position: relative;
    z-index: 2;
  }
  .hero-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.3px; color: #1a1a1a; }
  .hero-h1 { font-size: 30px; line-height: 1.1; font-weight: 700; margin: 6px 0 0; color: #111; max-width: 65%; }
  .hero-link { color: #5851DB; font-weight: 600; font-size: 13px; margin-top: 12px; display: inline-block; }

  /* Soccer scene placeholder */
  .soccer {
    position: absolute;
    right: -20px;
    top: 50px;
    width: 230px;
    height: 230px;
    z-index: 1;
    pointer-events: none;
  }

  /* Visa card */
  .visa-card {
    position: absolute;
    right: 16px;
    top: 200px;
    width: 110px;
    height: 70px;
    border-radius: 10px;
    background: linear-gradient(135deg, #1A2A6C 0%, #2A3FAF 50%, #2456C7 100%);
    color: #fff;
    padding: 8px 10px;
    display: flex; flex-direction: column; justify-content: space-between;
    box-shadow: 0 6px 14px rgba(0,0,0,0.18);
    z-index: 3;
  }
  .visa-card .visa-logo {
    font-family: 'Barlow', sans-serif;
    font-style: italic; font-weight: 800;
    font-size: 18px; letter-spacing: 0.5px;
    align-self: flex-end;
  }
  .visa-card .visa-tag { font-size: 8px; font-weight: 600; letter-spacing: 0.5px; }
  .visa-card .visa-row { display: flex; align-items: flex-end; justify-content: space-between; }
  .visa-card .visa-emblem {
    width: 18px; height: 22px; border-radius: 3px;
    background: linear-gradient(180deg, #E6B432 0%, #B07A1B 100%);
    display: inline-block;
  }

  /* Search bar */
  .search-wrap {
    margin: -22px 16px 0;
    position: relative;
    z-index: 5;
  }
  .search {
    background: #fff;
    border: 1px solid #E5E5EA;
    border-radius: 999px;
    height: 44px;
    display: flex; align-items: center;
    padding: 0 14px;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  }
  .search input {
    border: 0; outline: 0; flex: 1; font-size: 14px; background: transparent; color: #1A1A1A;
  }
  .search input::placeholder { color: #9A9AA0; }
  .scan-btn {
    width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; color: #1A1A1A;
  }

  /* Quick action grid */
  .quick {
    margin: 14px 16px 0;
    display: grid;
    grid-template-columns: 173px 81px 81px;
    grid-template-rows: 81px 81px;
    gap: 9px;
    justify-content: center;
  }
  .qcard {
    border-radius: 13px;
    overflow: hidden;
    position: relative;
    background: #F2F2F4;
  }
  .qcard.fav { grid-row: span 2; height: 171px; }
  .qcard img { width: 100%; height: 100%; object-fit: cover; display: block; }

  /* Sections */
  .section-title {
    margin: 22px 16px 12px;
    font-size: 20px;
    font-weight: 700;
    color: #1A1A1A;
  }
  .market {
    margin: 0;
    padding: 4px 14px 4px;
    display: flex;
    gap: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .market::-webkit-scrollbar { display: none; }
  .market { scrollbar-width: none; -ms-overflow-style: none; }
  .mcard {
    flex: 0 0 106px;
    width: 106px;
    height: 106px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    scroll-snap-align: start;
    background: transparent;
  }
  .mcard img { width: 100%; height: 100%; object-fit: cover; display: block; }

  /* Offers carousel */
  .offers-carousel {
    position: relative;
    overflow: hidden;
    padding: 0 0 12px;
  }
  .offers-track {
    display: flex;
    transition: transform 0.35s ease;
    touch-action: pan-y;
  }
  .offer-slide {
    flex: 0 0 100%;
    width: 100%;
    padding: 0 14px;
    box-sizing: border-box;
  }
  .offer-slide img {
    width: 100%;
    display: block;
    border-radius: 14px;
  }
  .offers-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 10px 0 4px;
  }
  .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #C8C8C8;
    transition: background 0.2s;
  }
  .dot.active {
    background: #2186E5;
    width: 20px;
    border-radius: 4px;
  }
  /* hotel skyline silhouette */
  .offer-card::before {
    content: "";
    position: absolute;
    right: 0; top: 0; bottom: 0;
    width: 55%;
    background:
      linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.15) 100%),
      repeating-linear-gradient(90deg, rgba(255,255,255,0.06) 0 2px, transparent 2px 8px);
    clip-path: polygon(20% 100%, 22% 35%, 30% 30%, 32% 22%, 40% 18%, 48% 22%, 52% 28%, 60% 25%, 68% 30%, 75% 28%, 82% 35%, 90% 32%, 100% 38%, 100% 100%);
    opacity: 0.85;
  }
  .offer-card::after {
    content: "";
    position: absolute;
    right: 14px; top: 18px;
    width: 28px; height: 28px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #FFE9A8, #F2C84B);
    box-shadow: 0 0 18px rgba(255, 220, 120, 0.4);
    z-index: 1;
  }

  /* ===== HISTORY ===== */
  .hist-header {
    padding: 56px 20px 0;
    display: flex; align-items: center; justify-content: space-between;
  }
  .hist-title { font-size: 28px; font-weight: 700; }
  .coins-link {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 13px; color: #1A1A1A;
  }
  .coins-link .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--yellow); }
  .month-row {
    margin-top: 26px;
    padding: 0 20px;
    display: flex; align-items: center; justify-content: space-between;
  }
  .month-pick {
    display: inline-flex; align-items: center; gap: 12px;
    font-size: 16px;
  }
  .month-pick .arrow { color: #1A1A1A; }
  .month-pick .arrow.dim { color: #BFBFC5; }
  .month-pick .label { font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
  .chart-ico { color: var(--blue); }
  .empty {
    margin-top: 200px;
    text-align: center;
    color: #1A1A1A;
    font-size: 14px;
  }

  /* ===== ACCOUNT ===== */
  .acct {
    padding: 56px 24px 0;
  }
  .acct h1 {
    font-size: 26px; line-height: 1.25; font-weight: 700; margin: 0 0 6px;
  }
  .acct .complete {
    color: var(--blue); font-weight: 600; font-size: 14px;
  }
  .acct-list {
    margin-top: 22px;
    list-style: none; padding: 0; margin-bottom: 0;
  }
  .acct-list li {
    display: flex; align-items: center;
    padding: 14px 0;
    font-size: 17px;
    color: #1A1A1A;
    border-bottom: 1px solid #F1F1F3;
  }
  .acct-list li:last-child { border-bottom: 0; }
  .acct-list .ico { width: 28px; margin-right: 14px; display: inline-flex; align-items: center; justify-content: center; color: #1A1A1A; }
  .acct-list .label { flex: 1; }
  .acct-list .chev { color: #B0B0B5; }
  .acct-divider { height: 8px; background: transparent; border-top: 1px solid #ECECEE; margin: 12px 0 0; }
  .acct-list.secondary { margin-top: 0; }
  .acct-list.secondary li { padding: 14px 0; }


  /* ===== Vault working-prototype ===== */
  .vp { background: #fff; min-height: 100%; padding-top: 44px; padding-bottom: 80px; }

  /* Onboarding: flex layout so CTA stays pinned, content scrolls on small screens */
  #vault-onboarding { overflow: hidden !important; }
  #vault-onboarding .vp {
    display: flex; flex-direction: column;
    height: 100%; min-height: 0; padding-bottom: 0;
    box-sizing: border-box;
  }
  #vault-onboarding .vp-content {
    flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch;
    scrollbar-width: none; -ms-overflow-style: none;
  }
  #vault-onboarding .vp-content::-webkit-scrollbar { display: none; }
  #vault-onboarding .vp-cta-bar {
    flex-shrink: 0;
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  }
  .vp-nav {
    height: 44px;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 4px;
    background: #fff;
    position: sticky; top: 44px; z-index: 5;
    border-bottom: 0.5px solid rgba(0,0,0,0.06);
  }
  .vp-nav.no-border { border-bottom: 0; }
  .vp-nav-side { display: flex; align-items: center; gap: 4px; flex: 0 0 auto; }
  .vp-nav-side.right { justify-content: flex-end; }
  .vp-icon-btn {
    width: 44px; height: 44px;
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--blue); cursor: pointer;
    background: none; border: 0;
    -webkit-tap-highlight-color: transparent;
  }
  .vp-icon-btn svg { width: 22px; height: 22px; }
  .vp-icon-btn .label { font-size: 16px; margin-left: -2px; }
  .vp-nav-title {
    flex: 1; text-align: left;
    font-family: 'Barlow', sans-serif;
    font-size: 20px; font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.01em;
    padding: 0 4px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .vp-content { padding: 12px 20px 24px; }
  .vp-content.tight { padding: 0 20px 24px; }
  .vp-h1 { font-size: 26px; font-weight: 700; margin: 8px 0 8px; line-height: 1.2; letter-spacing: -0.3px; }
  .vp-h2 { font-size: 18px; font-weight: 600; margin: 16px 0 8px; }
  .vp-sub { color: var(--muted); font-size: 15px; margin: 0 0 20px; line-height: 1.45; }
  .vp-section-label { font-size: 16px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; margin: 22px 0 8px; padding: 0; display: flex; justify-content: space-between; align-items: center; }
  .vp-section-label .action { color: var(--blue); font-size: 13px; text-transform: none; letter-spacing: 0; font-weight: 500; cursor: pointer; }

  .vp-list {
    list-style: none; margin: 0; padding: 0;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 0 0.5px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.03);
    /* Force a new compositing layer + explicit clip so the colored swipe
       action buttons inside swipe-rows can never leak past the list's
       rounded corners (some browsers/screen DPRs render subpixel ghosts
       of those colors at the corner without this). */
    isolation: isolate;
    clip-path: inset(0 round 12px);
  }
  .vp-row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-top: 0.5px solid rgba(0,0,0,0.06); cursor: pointer; background: #fff; }
  .vp-row:first-child { border-top: 0; }
  .vp-row:active { background: #f5f5f7; }
  .vp-row .icon { width: 38px; height: 38px; border-radius: 10px; background: var(--blue-soft); color: var(--blue); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
  .vp-row .icon svg { width: 22px; height: 22px; }
  .vp-row .icon.folder-icon { width: 50px; height: 50px; background: #fff; border-radius: 10px; overflow: hidden; }
  .vp-row .icon.folder-icon img { width: 50px; height: 50px; object-fit: contain; mix-blend-mode: multiply; transform: scale(1.35); }
  .vp-row .body { flex: 1; min-width: 0; }
  .vp-row .title { font-size: 16px; font-weight: 600; line-height: 1.3; }
  .vp-row .meta { font-size: 13px; color: var(--muted); margin-top: 2px; }
  .vp-row .right-meta { font-size: 13px; color: var(--muted); text-align: right; }
  .vp-row .chev { color: #C5C7CC; font-size: 18px; line-height: 1; }
  .vp-row .price { font-size: 15px; font-weight: 600; color: var(--text); }

  /* All form controls inherit the global font (Barlow). */
  button, input, textarea, select { font-family: inherit; }

  /* Unified bottom CTA — Figma spec: 361 × 48, padding 18.5 24, gap 8, radius 24. */
  .vp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; max-width: 361px; height: 48px; padding: 18.5px 24px; margin: 0 auto; background: var(--blue); color: #fff; font-family: 'Barlow', sans-serif; font-size: 16px; font-weight: 600; border-radius: 24px; border: 0; cursor: pointer; text-align: center; box-sizing: border-box; line-height: 1; }
  .vp-btn svg { width: 18px; height: 18px; flex-shrink: 0; }
  .vp-warning .title svg { width: 16px; height: 16px; vertical-align: -2px; }
  .vp-btn:active { opacity: 0.85; }
  .vp-btn.secondary { background: transparent; color: var(--blue); }
  .vp-btn.outline { background: transparent; color: var(--blue); border: 1.5px solid var(--blue); }
  .vp-btn.danger { background: #FF3B30; }
  .vp-btn.dark { background: #1a1a1a; }
  .vp-btn:disabled { background: #C5C7CC; cursor: not-allowed; }
  .vp-cta-bar { padding: 12px 20px 16px; background: linear-gradient(to top, #fff 75%, rgba(255,255,255,0.85)); display: flex; flex-direction: column; align-items: center; }
  .vp-cta-stack { width: 100%; max-width: 361px; margin: 0 auto; display: flex; flex-direction: column; }
  .vp-cta-stack > * + * { margin-top: 10px; }
  #vault-account-details .vp-cta-bar { padding-bottom: 80px; }

  .vp-card { background: #fff; border-radius: 14px; padding: 16px; box-shadow: 0 0 0 0.5px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04); margin-bottom: 12px; }
  .vp-card-row { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 0; border-top: 0.5px solid rgba(0,0,0,0.06); gap: 12px; }
  .vp-card-row:first-child { border-top: 0; padding-top: 0; }
  .vp-card-row .k { color: var(--muted); font-size: 14px; flex-shrink: 0; }
  .vp-card-row .v { font-size: 15px; font-weight: 500; text-align: right; }

  /* SHARED badge overlay on a bill row when the bill is shared individually
     (bill.shared === true). Positioned inline with the account number that is
     baked into the bill PNG — just to the right of "8832822012". The left%
     is measured against bill_singtel@2x.png and matches the other bill PNGs
     since they share the same logo / account-number geometry. */
  .vp-bill-shared-overlay {
    position: absolute;
    top: 18%;
    left: 52%;
    z-index: 3;
    pointer-events: auto;
  }

  /* Live "Last paid …" strip overlaid on the bottom of the baked bill-row PNG.
     The image already contains a placeholder line; this overlay masks it with
     the bill's actual savedAt + amount so it stays in sync per instance. */
  .vp-bill-last-paid-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 28%;
    background: #fff;
    display: flex;
    align-items: center;
    /* Indent so the live text starts exactly at the logo box's left edge.
       12.25% is the measured X position of the logo in the baked PNGs
       (sampled from bill_singtel@2x.png and consistent across the other
       4 bill images, which share the same logo-box geometry). */
    padding: 0 16px 0 12.25%;
    font-family: 'Barlow', sans-serif;
    font-size: 13px;
    color: #1a1a1a;
    pointer-events: none;
    white-space: nowrap;
    overflow: hidden;
    box-sizing: border-box;
    z-index: 1;
  }

  /* Live "Last paid …" overlays for the My Favourites texture image. Each
     strip masks the baked "Last paid" line on its row. The favourites image
     keeps the logo / account / nickname baked in — only the date+amount line
     is dynamic. */
  .fav-last-paid-overlay {
    position: absolute;
    left: 13%;
    right: 8%;
    height: 2.4%;
    background: #fff;
    display: flex;
    align-items: center;
    font-family: 'Barlow', sans-serif;
    font-size: 11px;
    color: #1a1a1a;
    pointer-events: none;
    white-space: nowrap;
    overflow: hidden;
    z-index: 2;
  }

  /* ===== Bill detail — Next due date row ===== */
  .bd-next-due-label-wrap {
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }
  .bd-next-due-info {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
    color: var(--muted);
    font-family: 'Barlow', sans-serif;
    -webkit-tap-highlight-color: transparent;
  }
  .bd-next-due-info svg { width: 14px; height: 14px; }

  .vp-bill-accordion { list-style: none; background: #fff; border-radius: 14px; box-shadow: 0 0 0 0.5px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04); margin-bottom: 10px; overflow: hidden; }
  .vp-bill-accordion-head { padding: 12px 14px; cursor: pointer; align-items: flex-start; gap: 10px; }
  .vp-bill-accordion-chev { display: inline-flex; align-items: center; color: var(--muted); margin-left: 4px; }
  .vp-bill-accordion-chev svg { width: 18px; height: 18px; }

  .vp-biller-row { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
  .vp-biller-row .vp-h1 { margin: 0; flex: 1; }
  .vp-biller-edit { width: 40px; height: 40px; padding: 0; display: inline-flex; align-items: center; justify-content: center; background: transparent; border: 0; color: var(--blue); cursor: pointer; -webkit-tap-highlight-color: transparent; flex-shrink: 0; }
  .vp-biller-edit svg { width: 24px; height: 24px; }

  #vault-folder-detail #vault-bulk-bar { padding: 16px 20px 20px; display: flex; flex-direction: column; align-items: center; }

  #vault-main #vault-loose-bulk-bar {
    /* Stick to the bottom of the My Vault scroll container so the "Add to
       folder" CTA stays visible while the user picks bills. The white
       gradient fades the bills behind it so they don't visually clip. */
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 6;
    background: linear-gradient(to top, #fff 78%, rgba(255,255,255,0.85));
    padding: 14px 0 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  #vault-add-favourites .fav-check-overlay .vp-checkbox { width: 22px; height: 22px; border-radius: 6px; }

  .vp-input { width: 100%; padding: 12px 14px; font-size: 16px; font-family: inherit; background: #fff; border: 1px solid var(--border); border-radius: 10px; outline: none; -webkit-appearance: none; }
  .vp-input:focus { border-color: var(--blue); }
  .vp-label { font-size: 13px; font-weight: 600; color: var(--muted); margin: 14px 0 6px; display: block; }

  .vp-chip-input { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 46px; padding: 6px 8px; background: #fff; border: 1px solid var(--border); border-radius: 10px; cursor: text; box-sizing: border-box; }
  .vp-chip-input:focus-within { border-color: var(--blue); }
  .vp-chip-input-field { flex: 1 1 120px; min-width: 120px; border: 0; outline: none; padding: 6px 4px; font-size: 16px; font-family: inherit; background: transparent; }
  .vp-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 4px 3px 4px; background: #F1F4F8; border: 1px solid var(--border); border-radius: 999px; font-size: 13px; max-width: 100%; line-height: 1; }
  .vp-chip.invalid { background: #FDECEA; border-color: #F5B7B1; color: #B03A2E; }
  .vp-chip-avatar { width: 22px; height: 22px; border-radius: 50%; background: #6B7280; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; flex-shrink: 0; text-transform: uppercase; }
  .vp-chip.invalid .vp-chip-avatar { background: #B03A2E; }
  .vp-chip-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
  .vp-chip-remove { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; border: 0; background: transparent; color: inherit; cursor: pointer; padding: 0; opacity: 0.65; margin-right: 2px; }
  .vp-chip-remove:hover { opacity: 1; }
  .vp-chip-remove svg { width: 12px; height: 12px; }
  .vp-chip-hint { font-size: 12px; color: var(--muted); margin: 6px 2px 0; }

  .vp-or-divider { display: flex; align-items: center; gap: 10px; margin: 20px 0 12px; color: var(--muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
  .vp-or-divider::before, .vp-or-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
  .vp-or-divider span { white-space: nowrap; }

  .vp-link-share { display: flex; flex-direction: column; gap: 10px; }
  .vp-link-row { display: flex; align-items: center; gap: 8px; background: #F7F8FA; border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; }
  .vp-link-icon { width: 18px; height: 18px; color: var(--muted); flex-shrink: 0; }
  .vp-link-text { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; font-size: 13px; font-family: inherit; color: #1f2933; padding: 4px 0; text-overflow: ellipsis; }
  .vp-link-copy { display: inline-flex; align-items: center; gap: 4px; padding: 6px 10px; background: var(--blue); color: #fff; border: 0; border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer; flex-shrink: 0; font-family: inherit; }
  .vp-link-copy:active { opacity: 0.85; }
  .vp-link-copy.copied { background: #22A06B; }
  .vp-link-copy svg { width: 14px; height: 14px; }
  .vp-inline-send { margin: 18px auto 4px; display: flex; }

  .vp-empty { text-align: center; padding: 60px 24px 32px; }
  .vp-empty .vp-empty-icon { width: 96px; height: 96px; margin: 0 auto 24px; border-radius: 24px; background: var(--blue-soft); display: flex; align-items: center; justify-content: center; color: var(--blue); }
  .vp-empty .vp-empty-icon svg { width: 52px; height: 52px; }

  .vp-checkbox { width: 22px; height: 22px; border-radius: 50%; border: 1.8px solid #C5C7CC; display: flex; align-items: center; justify-content: center; flex-shrink: 0; background: #fff; transition: all 0.15s ease; }
  .vp-checkbox.checked { background: var(--blue); border-color: var(--blue); }
  .vp-checkbox.checked::after { content: ""; display: block; width: 5px; height: 9px; border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(45deg); margin-top: -2px; }
  .vp-checkbox.square { border-radius: 6px; }

  .vp-banner { background: var(--blue-soft); color: #1f4f80; padding: 12px 14px; border-radius: 10px; font-size: 14px; margin-bottom: 16px; line-height: 1.4; display: flex; gap: 10px; align-items: flex-start; }
  .vp-banner svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px; }
  .vp-warning { background: #FFF4E5; border: 1px solid #FFB759; padding: 14px; border-radius: 12px; margin-bottom: 16px; }
  .vp-warning .title { font-weight: 600; color: #92400E; margin-bottom: 6px; font-size: 15px; }
  .vp-warning .body { color: #6E3D04; font-size: 14px; line-height: 1.45; }

  .vp-tag { display: inline-flex; align-items: center; gap: 3px; padding: 2px 8px; border-radius: 999px; background: var(--blue-soft); color: var(--blue); font-size: 11px; font-weight: 600; vertical-align: middle; }
  #bill-detail-tags .vp-tag { font-size: 16px; font-weight: 700; line-height: 1.4; padding: 4px 12px; }
  #vault-bill-detail { background: #fff; }
  .vp-tag.shared { background: #FFF4E5; color: #B45309; }
  .vp-tag-info-btn { display: inline-flex; align-items: center; justify-content: center; background: transparent; border: 0; padding: 0; margin-left: 4px; cursor: pointer; color: inherit; vertical-align: middle; -webkit-tap-highlight-color: transparent; }
  .vp-tag-info-btn svg { width: 13px; height: 13px; }
  .vp-tag.paid { background: #E8F5E9; color: #1B5E20; }
  .vp-tag.due { background: #FCE4E4; color: #C62828; }
  .vp-tag.due-soon { background: #FFEDD5; color: #C2410C; }
  .vp-tag.recurring { background: var(--blue-soft); color: var(--blue); }
  .vp-tag svg { width: 11px; height: 11px; }
  .vp-tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }

  .vp-amount-big { font-size: 40px; font-weight: 700; text-align: center; letter-spacing: -0.5px; margin: 16px 0; }
  .vp-amount-big .currency { font-size: 22px; vertical-align: top; opacity: 0.6; margin-right: 4px; line-height: 2.2; display: inline-block; }

  .vp-link { color: var(--blue); cursor: pointer; font-weight: 500; }

  .vp-method-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0 16px; }
  .vp-method-card { background: #fff; border: 1.5px solid var(--border); border-radius: 14px; padding: 16px 12px; cursor: pointer; text-align: center; }
  .vp-method-card .icon-wrap { width: 44px; height: 44px; margin: 0 auto 10px; border-radius: 12px; background: var(--blue-soft); color: var(--blue); display: flex; align-items: center; justify-content: center; }
  .vp-method-card .icon-wrap svg { width: 24px; height: 24px; }
  .vp-method-card .name { font-size: 14px; font-weight: 600; }
  .vp-method-card .desc { font-size: 12px; color: var(--muted); margin-top: 3px; line-height: 1.3; }
  .vp-method-card:active { background: var(--blue-soft); border-color: var(--blue); }

  /* Message board (recipient notification screen) — no tab bar */
  #vault-recipient-notif { padding-bottom: 0 !important; }
  #vault-recipient-notif .vp { padding-top: 28px; padding-bottom: 24px; }
  .phone:has(#vault-recipient-notif.active) .tabbar { display: none; }
  .phone:has(#vault-payment-mode.active) .tabbar { display: none; }
  .vp-notif-header { position: relative; }
  .vp-notif-back { position: absolute; left: 0; top: 0; width: 70px; height: 100%; background: transparent; border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; opacity: 0; }
  .vp-msg-section-label { font-size: 12px; font-weight: 400; color: var(--muted); text-transform: uppercase; letter-spacing: 0.6px; margin: 22px 4px 10px; }
  .vp-msg-list { display: flex; flex-direction: column; }
  .vp-msg-row { display: block; width: 100%; text-align: left; background: transparent; border: 0; padding: 4px 16px 16px 16px; border-bottom: 0.5px solid rgba(0,0,0,0.08); cursor: default; font-family: 'Barlow', sans-serif; -webkit-tap-highlight-color: transparent; }
  .vp-msg-row:last-child { border-bottom: 0; }
  .vp-msg-row[data-action] { cursor: pointer; }
  .vp-msg-row[data-action]:active { background: rgba(0,0,0,0.03); }
  .vp-msg-row .date { font-family: 'Barlow', sans-serif; font-size: 14px; font-weight: 600; color: #1a1a1a; }
  .vp-msg-row .text { font-family: 'Barlow', sans-serif; font-size: 13px; font-weight: 600; color: #1a1a1a; line-height: 1.35; margin-top: 6px; }

  /* Add more bills — search + tile grid */
  .vp-search-bar { background: #ECECEE; border-radius: 12px; padding: 12px 14px; display: flex; align-items: center; gap: 10px; margin: 4px 0 18px; }
  .vp-search-bar svg { width: 18px; height: 18px; color: #6E6E73; flex-shrink: 0; }
  .vp-search-bar input { flex: 1; min-width: 0; background: transparent; border: 0; outline: none; font-size: 15px; font-family: inherit; color: #1a1a1a; }
  .vp-search-bar input::placeholder { color: #B0B0B5; }
  .vp-add-more-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .vp-add-more-tile { background: #fff; border-radius: 18px; box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 0 0 0.5px rgba(0,0,0,0.04); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 28px 14px; cursor: pointer; border: 0; font-family: inherit; -webkit-tap-highlight-color: transparent; }
  .vp-add-more-tile:active { background: #f7f7f8; }
  .vp-add-more-tile svg { width: 42px; height: 42px; color: #1A1A1A; }
  .vp-add-more-tile .name { font-size: 15px; font-weight: 500; color: #1A1A1A; }

  .vp-qa-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
  .vp-qa-tile { background: #fff; border-radius: 16px; box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 0 0 0.5px rgba(0,0,0,0.04); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 18px 10px; cursor: pointer; }
  .vp-qa-tile:active { background: #f7f7f8; }
  .vp-qa-tile svg { width: 36px; height: 36px; color: #1A1A1A; }
  .vp-qa-tile .name { font-size: 14px; font-weight: 500; color: #1A1A1A; }

  /* My Favourites screen */
  .vp-fav { background: linear-gradient(180deg, #E8C9DD 0%, #F0D9E5 18%, #F8EDF1 32%, #fff 60%); min-height: 100%; padding-top: 44px; padding-bottom: 80px; }
  .vp-fav-nav { display: flex; align-items: center; gap: 6px; padding: 8px 16px 16px; }
  .vp-fav-nav .back { color: #1A1A1A; background: none; border: 0; cursor: pointer; padding: 6px; display: inline-flex; }
  .vp-fav-nav .back svg { width: 22px; height: 22px; }
  .vp-fav-nav .title { font-size: 22px; font-weight: 700; color: #1A1A1A; }
  .vp-fav-list { padding: 0 16px; display: flex; flex-direction: column; gap: 14px; }
  .vp-fav-card { background: #fff; border-radius: 14px; box-shadow: 0 1px 4px rgba(0,0,0,0.06), 0 0 0 0.5px rgba(0,0,0,0.04); padding: 12px 14px 10px; cursor: pointer; }
  .vp-fav-card:active { background: #fafafa; }
  .vp-fav-top { display: flex; align-items: center; gap: 12px; }
  .vp-fav-logo { width: 56px; height: 40px; border-radius: 6px; background: #fff; border: 1px solid rgba(0,0,0,0.06); display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; }
  .vp-fav-info { flex: 1; min-width: 0; }
  .vp-fav-acct { font-size: 16px; font-weight: 600; color: #1A1A1A; letter-spacing: 0.5px; }
  .vp-fav-desc { font-size: 13px; color: #6E6E73; margin-top: 2px; }
  .vp-fav-card .chev { color: #C5C7CC; font-size: 20px; line-height: 1; }
  .vp-fav-foot { font-size: 12px; color: #8E8E93; margin-top: 10px; padding-top: 8px; border-top: 0.5px solid rgba(0,0,0,0.06); }
  /* Brand-mark mini logos (text-styled) */
  .vp-brand { display: flex; align-items: center; gap: 2px; font-family: -apple-system, sans-serif; font-weight: 700; }
  .vp-brand.singtel { font-size: 11px; color: #1A1A1A; position: relative; }
  .vp-brand.singtel::before { content: ""; position: absolute; top: -3px; right: -6px; width: 14px; height: 5px; background:
    radial-gradient(circle 1.6px at 2px 2px, #E60028 99%, transparent 100%) 0 0/4px 4px no-repeat,
    radial-gradient(circle 1.6px at 2px 2px, #E60028 99%, transparent 100%) 4px 0/4px 4px no-repeat,
    radial-gradient(circle 1.6px at 2px 2px, #E60028 99%, transparent 100%) 8px 0/4px 4px no-repeat,
    radial-gradient(circle 1.6px at 2px 2px, #E60028 99%, transparent 100%) 2px 4px/4px 4px no-repeat,
    radial-gradient(circle 1.6px at 2px 2px, #E60028 99%, transparent 100%) 6px 4px/4px 4px no-repeat;
  }
  .vp-brand.starhub { font-size: 8px; color: #00A14B; letter-spacing: 0.4px; gap: 2px; }
  .vp-brand.starhub svg { width: 9px; height: 9px; color: #00A14B; }
  .vp-brand.scb { font-size: 8px; color: #1A1A1A; line-height: 1.05; text-align: left; gap: 4px; }
  .vp-brand.scb .mark { display: inline-block; width: 12px; height: 12px; background: linear-gradient(135deg, #38B548 50%, #0473EA 50%); border-radius: 1px; flex-shrink: 0; }
  .vp-brand.scb .text { display: inline-block; }
  .vp-brand.amex { width: 100%; height: 100%; background: #006FCF; color: #fff; font-size: 7px; letter-spacing: 0.4px; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.05; padding: 2px; box-sizing: border-box; }
  /* Insurance */
  .vp-brand.aia { width: 100%; height: 100%; background: #D32F2F; color: #fff; font-size: 13px; letter-spacing: 1px; display: flex; align-items: center; justify-content: center; }
  .vp-brand.gel { font-size: 10px; color: #E65100; letter-spacing: 0.4px; }
  .vp-brand.income { font-size: 9px; color: #1565C0; letter-spacing: 0.3px; line-height: 1.05; text-align: center; }
  .vp-brand.hlassurance { font-size: 9px; color: #6A1B9A; letter-spacing: 0.3px; }
  /* Subscription */
  .vp-brand.netflix { width: 100%; height: 100%; background: #000; color: #E50914; font-size: 14px; font-style: italic; letter-spacing: 1px; display: flex; align-items: center; justify-content: center; }
  .vp-brand.spotify { width: 100%; height: 100%; background: #1DB954; color: #fff; font-size: 11px; letter-spacing: 0.3px; display: flex; align-items: center; justify-content: center; }
  .vp-brand.disney { width: 100%; height: 100%; background: #0E2A4A; color: #fff; font-size: 10px; letter-spacing: 0.3px; display: flex; align-items: center; justify-content: center; }
  .vp-brand.icloud { font-size: 10px; color: #1A73E8; letter-spacing: 0.3px; }
  /* Warranty */
  .vp-brand.applecare { font-size: 9px; color: #1A1A1A; letter-spacing: 0.3px; line-height: 1.05; text-align: center; }
  .vp-brand.samsungcare { width: 100%; height: 100%; background: #1428A0; color: #fff; font-size: 8px; letter-spacing: 0.3px; line-height: 1.05; text-align: center; display: flex; align-items: center; justify-content: center; padding: 2px; box-sizing: border-box; }
  .vp-brand.sonywarranty { width: 100%; height: 100%; background: #000; color: #fff; font-size: 13px; letter-spacing: 1px; font-style: italic; display: flex; align-items: center; justify-content: center; }

  .vp-folder-tile { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 0.5px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.03); cursor: pointer; margin-bottom: 10px; }
  .vp-folder-tile .folder-icon { width: 42px; height: 42px; border-radius: 11px; background: linear-gradient(135deg, #2186E5, #5fa540); color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
  .vp-folder-tile .folder-icon svg { width: 22px; height: 22px; }
  .vp-folder-tile .body { flex: 1; min-width: 0; }
  .vp-folder-tile .title { font-size: 16px; font-weight: 600; }
  .vp-folder-tile .meta { font-size: 13px; color: var(--muted); margin-top: 2px; }
  .vp-folder-tile .total { font-size: 15px; font-weight: 600; }

  .vp-success-circle { width: 96px; height: 96px; border-radius: 50%; background: #E8F5E9; color: #4CAF50; display: flex; align-items: center; justify-content: center; margin: 40px auto 16px; }
  .vp-success-circle svg { width: 52px; height: 52px; }

  /* ===== Payment Success (IMG_2049 style) ===== */
  #vault-payment-success { padding-bottom: 0 !important; overflow: hidden; }
  .phone:has(#vault-payment-success.active) .tabbar { display: none; }
  .vp-success-page { display: flex; flex-direction: column; height: 100%; padding: 0 !important; min-height: 0 !important; }

  .vp-success-header { background: linear-gradient(180deg, #2bc98c 0%, #27c48a 50%, #1fb982 100%); padding: 48px 24px 28px; text-align: center; flex-shrink: 0; }
  .vp-success-title { color: #fff; font-size: 22px; font-weight: 700; margin: 0 0 16px; }
  .vp-success-check { width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,0.25); display: flex; align-items: center; justify-content: center; margin: 0 auto; }
  .vp-success-check svg { width: 30px; height: 30px; }

  .vp-success-details { background: #fff; margin: 0 16px; border-radius: 10px; padding: 14px 16px; box-shadow: 0 1px 4px rgba(0,0,0,0.06); position: relative; top: -14px; flex-shrink: 0; }
  .vp-success-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; }
  .vp-success-cell .cell-label { font-size: 12px; color: #888; margin-bottom: 2px; }
  .vp-success-cell .cell-value { font-size: 14px; font-weight: 700; color: #1a1a1a; }

  .vp-success-ereceipt { text-align: center; font-size: 13px; color: #aaa; margin: 0 0 16px; flex-shrink: 0; }

  #success-bills-list { display: flex; flex-direction: column; gap: 8px; flex-shrink: 0; }
  .vp-success-bill { display: flex; align-items: center; gap: 12px; background: #fff; margin: 0 16px; border-radius: 10px; padding: 14px 16px; box-shadow: 0 1px 4px rgba(0,0,0,0.06); flex-shrink: 0; }
  .vp-success-bill-logo { width: 56px; height: 42px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: 8px; background: #fff; box-shadow: 0 0 0 0.5px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.04); padding: 4px; }
  .vp-success-bill-logo:has(> img) { padding: 0; background: none; box-shadow: none; }
  .vp-success-bill-logo .vp-biller-logo { width: 56px; height: 42px; border-radius: 8px; }
  .vp-success-bill-logo > img { width: 100%; height: 100%; object-fit: contain; }
  .vp-success-bill-acct { flex: 1; font-size: 15px; font-weight: 600; color: #1a1a1a; }
  .vp-success-bill-amt { font-size: 17px; font-weight: 700; color: #1a1a1a; flex-shrink: 0; }

  .vp-success-spacer { flex: 1; }
  .vp-success-cta { padding: 16px 20px 32px; flex-shrink: 0; }
  .vp-success-btn { width: 100%; padding: 16px; background: var(--blue); color: #fff; border: 0; border-radius: 28px; font-size: 16px; font-weight: 600; font-family: inherit; cursor: pointer; }
  .vp-success-btn:active { opacity: 0.85; }

  .vp-divider { height: 0.5px; background: rgba(0,0,0,0.08); margin: 16px 0; }

  .vp-camera-frame { background: #1c1c1e; border-radius: 14px; height: 440px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #888; margin-bottom: 16px; position: relative; overflow: hidden; }
  #vault-add-snap .vp { padding-bottom: 0; height: 100%; box-sizing: border-box; display: flex; flex-direction: column; }
  #vault-add-snap .vp-content { flex: 1; min-height: 0; }
  #vault-add-snap .vp-camera-frame { height: calc(100% - 36px); min-height: auto; border-radius: 0; background: #fff; }
  .vp-camera-frame::before, .vp-camera-frame::after { content: ""; position: absolute; width: 28px; height: 28px; border: 3px solid #000; z-index: 2; }
  .vp-camera-frame::before { top: 20px; left: 20px; border-right: 0; border-bottom: 0; border-top-left-radius: 6px; }
  .vp-camera-frame::after { bottom: 20px; right: 20px; border-left: 0; border-top: 0; border-bottom-right-radius: 6px; }
  .vp-camera-corner { position: absolute; width: 28px; height: 28px; border: 3px solid #000; z-index: 2; }
  .vp-camera-corner.tr { top: 20px; right: 20px; border-left: 0; border-bottom: 0; border-top-right-radius: 6px; }
  .vp-camera-corner.bl { bottom: 20px; left: 20px; border-right: 0; border-top: 0; border-bottom-left-radius: 6px; }
  .vp-camera-frame .hint { font-size: 14px; opacity: 0.7; }
  @keyframes scanZoom {
    0% { transform: scale(1.2); }
    100% { transform: scale(2.2); }
  }
  .vp-camera-frame img.scanning { animation: scanZoom 4s ease-in-out forwards; transform-origin: 50% 100%; }

  .vp-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: #f0f0f5; font-size: 13px; font-weight: 500; color: var(--text); }

  .vp-bullets { list-style: none; padding: 0; margin: 16px auto 24px; display: inline-flex; flex-direction: column; width: auto; }
  .vp-bullets li { display: flex; gap: 12px; padding: 4px 0; align-items: center; }
  .vp-bullets .b-icon { width: 56px; height: 56px; border-radius: 0; background: none; color: var(--blue); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
  .vp-bullets .b-icon svg { width: 34px; height: 34px; }
  .vp-bullets .b-body { flex: 1; }
  .vp-bullets .b-title { font-size: 16px; font-weight: 600; }
  .vp-bullets .b-desc { font-size: 13px; color: var(--muted); margin-top: 2px; line-height: 1.4; }

  .vp-avatar { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, #5851DB, #C13584); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; flex-shrink: 0; }
  .vp-avatar.mum { background: linear-gradient(135deg, #FF9A8B, #FF6B6B); }

  .vp-debug { position: absolute; top: 8px; right: 8px; font-size: 10px; color: #aaa; background: rgba(255,255,255,0.85); padding: 2px 6px; border-radius: 6px; cursor: pointer; z-index: 100; }


  /* ===== Vault Account Details (AXS Classic style) ===== */
  .vp-acct-header { display: flex; align-items: center; gap: 8px; padding: 8px 16px 16px; }
  .vp-acct-header h1 { font-size: 26px; font-weight: 700; margin: 0; letter-spacing: -0.3px; line-height: 1.1; }
  .vp-acct-header .vp-icon-btn { width: 36px; height: 36px; }
  .vp-acct-header .vp-icon-btn svg { width: 22px; height: 22px; }
  .vp-acct-logo-card { background: #fff; border-radius: 14px; box-shadow: 0 2px 14px rgba(0,0,0,0.08), 0 0 0 0.5px rgba(0,0,0,0.04); padding: 36px 24px; margin: 8px 20px 24px; display: flex; align-items: center; justify-content: center; min-height: 130px; }
  .vp-singtel-logo { text-align: center; }
  .vp-singtel-logo .dots { display: inline-flex; gap: 6px; align-items: flex-end; height: 18px; margin-bottom: 6px; }
  .vp-singtel-logo .dots span { width: 9px; height: 9px; border-radius: 50%; background: #E60012; display: inline-block; }
  .vp-singtel-logo .dots span:nth-child(1) { margin-bottom: 0; }
  .vp-singtel-logo .dots span:nth-child(2) { margin-bottom: 4px; }
  .vp-singtel-logo .dots span:nth-child(3) { margin-bottom: 8px; }
  .vp-singtel-logo .dots span:nth-child(4) { margin-bottom: 4px; }
  .vp-singtel-logo .dots span:nth-child(5) { margin-bottom: 0; }
  .vp-singtel-logo .name { font-size: 38px; font-weight: 800; letter-spacing: -1.4px; color: #000; line-height: 1; }
  .vp-acct-section-title { font-size: 22px; font-weight: 700; margin: 8px 0 16px; padding: 0 20px; }
  .vp-acct-form { padding: 0 20px; }
  .vp-acct-field-label { font-size: 15px; color: #1a1a1a; font-weight: 500; margin: 14px 0 8px; }
  .vp-acct-field-row { display: flex; gap: 8px; align-items: stretch; }
  .vp-acct-input-wrap { flex: 1; position: relative; background: #f1f1f4; border-radius: 8px; display: flex; align-items: center; height: 48px; }
  .vp-acct-input-wrap input { flex: 1; border: 0; background: transparent; padding: 0 38px 0 14px; font-size: 16px; font-family: inherit; outline: none; width: 100%; height: 100%; }
  .vp-acct-input-wrap .clear-btn { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; border-radius: 50%; background: #c5c5cc; color: #fff; border: 0; padding: 0; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
  .vp-acct-input-wrap .clear-btn svg { width: 12px; height: 12px; }
  .vp-acct-side-btn { background: var(--blue); color: #fff; border: 0; border-radius: 8px; padding: 0 18px; font-size: 16px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; min-width: 110px; height: 48px; justify-content: center; font-family: inherit; }
  .vp-acct-side-btn svg { width: 16px; height: 16px; flex-shrink: 0; }
  .vp-acct-side-btn:active { opacity: 0.85; }
  .vp-acct-input-wrap.full { flex: 1; }
  .vp-acct-page { display: flex; flex-direction: column; height: 100%; padding-bottom: 0 !important; box-sizing: border-box; }
  .vp-acct-spacer { flex: 1; }
  #vault-account-details { padding-bottom: 0 !important; }
  .phone:has(#vault-account-details.active) .tabbar { display: none; }
  .vp-acct-note { padding: 0 20px; margin-top: 28px; font-size: 14px; color: #1a1a1a; }
  .vp-acct-note .label { font-weight: 600; margin-bottom: 4px; }
  .vp-acct-note ul { list-style: disc; padding-left: 22px; margin: 6px 0; color: #2a2a2a; }
  .vp-acct-note ul li { margin-bottom: 8px; line-height: 1.45; }


  /* ===== Payment Summary (AXS Classic style) ===== */
  #vault-payment-summary { background: #f5f5f7; overflow: hidden !important; overscroll-behavior: none; }
  #vault-payment-summary .vp { background: #f5f5f7; padding-top: 44px; padding-bottom: 0; height: 100%; box-sizing: border-box; display: flex; flex-direction: column; overflow-x: hidden; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: none; scrollbar-width: none; -ms-overflow-style: none; }
  #vault-payment-summary .vp::-webkit-scrollbar { display: none; }
  .vp-ps-header-bar { display: flex; align-items: center; gap: 8px; padding: 16px 20px 24px; background: #f5f5f7; }
  .vp-ps-header-bar .vp-icon-btn { width: 36px; height: 36px; }
  .vp-ps-header-bar .vp-icon-btn svg { width: 22px; height: 22px; }
  .vp-ps-header-bar h1 { font-family: 'Barlow', sans-serif; font-size: 20px; font-weight: 600; margin: 0; letter-spacing: -0.01em; line-height: 1.3; text-align: left; }

  .vp-ps-bills { background: #f5f5f7; padding: 0 20px; flex-shrink: 0; }
  .vp-ps-cols { display: flex; justify-content: space-between; padding: 0 0 12px; }
  .vp-ps-cols span { font-size: 17px; font-weight: 700; color: #1a1a1a; }
  /* Fixed-height bill list so the screen layout stays identical regardless of bill count.
     Holds ~3 rows visibly; more rows scroll within. */
  #vp-ps-bill-list { min-height: 60px; max-height: 234px; overflow-y: auto; scrollbar-width: none; -ms-overflow-style: none; }
  #vp-ps-bill-list::-webkit-scrollbar { display: none; }
  .vp-ps-bill-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; }
  .vp-ps-swipe-row { position: relative; overflow: hidden; }
  .vp-ps-swipe-row .vp-swipe-content { background: #f5f5f7; }
  .vp-ps-swipe-row .vp-ps-bill-row { padding: 14px 0; }
  .vp-ps-divider { height: 0.5px; background: rgba(0,0,0,0.12); margin: 0; }
  .vp-ps-bill-logo { width: 56px; height: 42px; background: #fff; border-radius: 8px; box-shadow: 0 0 0 0.5px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.04); display: flex; align-items: center; justify-content: center; flex-shrink: 0; padding: 4px; overflow: hidden; }
  .vp-ps-bill-logo:has(> img) { padding: 4px; background: #fff; box-shadow: 0 0 0 0.5px rgba(0,0,0,0.1); }
  .vp-ps-bill-logo > img { width: 100%; height: 100%; object-fit: contain; }
  .vp-ps-bill-body { flex: 1; min-width: 0; }
  .vp-ps-bill-acct { font-size: 16px; font-weight: 700; color: #1a1a1a; letter-spacing: 0.4px; }
  .vp-ps-bill-name { font-size: 14px; color: #4a4a4a; margin-top: 2px; }
  .vp-ps-bill-amount { font-size: 18px; font-weight: 700; color: #1a1a1a; flex-shrink: 0; margin-left: auto; text-align: right; }

  .vp-ps-add-row { display: flex; justify-content: center; padding: 20px 0 28px; }
  .vp-ps-add-btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 20px; border: 1.5px solid var(--blue); color: var(--blue); background: #fff; border-radius: 999px; font-size: 15px; font-weight: 500; cursor: pointer; font-family: inherit; }
  .vp-ps-add-btn svg { width: 16px; height: 16px; }

  /* Fixed gap between bills section and fraud banner — keeps following sections at the same Y. */
  .vp-ps-spacer { flex: 1; background: #f5f5f7; }

  /* Fraud Protect banner */
  .vp-ps-fraud { background: #d8e8f6; padding: 16px 20px 18px; }
  .vp-ps-fraud-row { display: flex; gap: 12px; align-items: flex-start; }
  .vp-ps-fraud-logo { width: 76px; height: 56px; background: #fff; border-radius: 8px; box-shadow: 0 0 0 0.5px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.04); display: flex; flex-direction: column; align-items: center; justify-content: center; flex-shrink: 0; padding: 6px; }
  .vp-ps-fraud-logo .hl-mark { display: flex; gap: 1px; height: 16px; align-items: center; }
  .vp-ps-fraud-logo .hl-mark span { width: 6px; height: 12px; background: #E60000; clip-path: polygon(40% 0, 100% 0, 60% 100%, 0 100%); display: block; }
  .vp-ps-fraud-logo .hl-mark span:nth-child(2) { background: #B71C1C; }
  .vp-ps-fraud-logo .hl-mark span:nth-child(3) { background: #E60000; }
  .vp-ps-fraud-logo .hl-name { font-size: 9px; font-weight: 700; color: #1a1a1a; margin-top: 2px; line-height: 1.1; }
  .vp-ps-fraud-logo .hl-sub { font-size: 6px; color: #666; line-height: 1.1; margin-top: 1px; }
  .vp-ps-fraud-content { flex: 1; min-width: 0; }
  .vp-ps-fraud-title { font-size: 16px; font-weight: 700; color: #1a1a1a; }
  .vp-ps-fraud-desc { font-size: 13px; color: #1a1a1a; margin-top: 4px; line-height: 1.4; }
  .vp-ps-fraud-learn { color: var(--blue); font-size: 13px; font-weight: 600; margin-top: 6px; display: inline-block; cursor: pointer; }
  .vp-ps-fraud-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex-shrink: 0; }
  .vp-ps-fraud-amount { font-size: 18px; font-weight: 700; color: #1a1a1a; }

  /* iOS toggle */
  .vp-toggle { position: relative; width: 44px; height: 26px; background: #c5c5cc; border-radius: 999px; cursor: pointer; transition: background 0.2s ease; flex-shrink: 0; }
  .vp-toggle.on { background: #34C759; }
  .vp-toggle::after { content: ""; position: absolute; width: 22px; height: 22px; border-radius: 50%; background: #fff; top: 2px; left: 2px; transition: left 0.2s ease; box-shadow: 0 2px 3px rgba(0,0,0,0.2); }
  .vp-toggle.on::after { left: 20px; }

  .vp-ps-fraud-disclaimer { font-size: 12px; color: #1a1a1a; line-height: 1.4; margin-top: 12px; }
  .vp-ps-fraud-disclaimer a { color: var(--blue); text-decoration: underline; }

  /* Bottom rows: vouchers, total, ereceipt */
  .vp-ps-bottom { background: #fff; }
  .vp-ps-vouchers { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; background: #f1f1f4; margin: 0 16px; border-radius: 10px; margin-top: 12px; }
  .vp-ps-vouchers .label { font-size: 16px; font-weight: 600; color: #1a1a1a; }
  .vp-ps-vouchers .value { font-size: 15px; font-weight: 500; color: var(--muted); }
  .vp-ps-row-divider { height: 0.5px; background: rgba(0,0,0,0.12); margin: 16px 20px 0; }
  .vp-ps-total { display: flex; justify-content: space-between; align-items: baseline; padding: 18px 20px 6px; }
  .vp-ps-total .label { font-size: 22px; font-weight: 700; color: #1a1a1a; }
  .vp-ps-total .amount { font-size: 26px; font-weight: 700; color: #1a1a1a; letter-spacing: -0.5px; }
  .vp-ps-ereceipt { display: flex; justify-content: space-between; align-items: center; padding: 6px 20px 16px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .vp-ps-ereceipt:active { opacity: 0.6; }
  .vp-ps-ereceipt .label { font-size: 14px; color: #4a4a4a; }
  .vp-ps-ereceipt .value { font-size: 14px; color: #4a4a4a; display: inline-flex; align-items: center; gap: 4px; }
  .vp-ps-ereceipt .chev { color: #C5C7CC; font-size: 16px; }

  .vp-ps-pay-bar { padding: 8px 20px 20px; background: #fff; display: flex; justify-content: center; }
  .vp-ps-pay-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; max-width: 361px; height: 48px; padding: 18.5px 24px; margin: 0 auto; background: var(--blue); color: #fff; font-family: 'Barlow', sans-serif; font-size: 16px; font-weight: 600; border: 0; border-radius: 24px; cursor: pointer; box-sizing: border-box; line-height: 1; }
  .vp-ps-pay-btn:active { opacity: 0.85; }
  .vp-ps-pay-btn:disabled { background: #c5c5cc; cursor: not-allowed; }

  /* eReceipt email bottom sheet */
  .vp-ps-email-wrap { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 90; }
  .vp-ps-email-wrap:has(.vp-ps-email-overlay.active) { pointer-events: auto; }
  .vp-ps-email-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0); z-index: 90; pointer-events: none; transition: background 0.3s ease; }
  .vp-ps-email-overlay.active { background: rgba(0,0,0,0.4); pointer-events: auto; }
  .vp-ps-email-sheet { position: absolute; bottom: 0; left: 0; right: 0; background: #fff; border-radius: 14px 14px 0 0; z-index: 91; padding: 12px 24px 120px; box-shadow: 0 -4px 20px rgba(0,0,0,0.12); transform: translateY(100%); transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1); }
  .vp-ps-email-sheet.active { transform: translateY(0); }
  .vp-ps-email-handle { width: 36px; height: 4px; background: #c7c7cc; border-radius: 2px; margin: 0 auto 20px; }
  .vp-ps-email-title { font-size: 20px; font-weight: 700; text-align: center; margin: 0 0 14px; color: #1a1a1a; }
  .vp-ps-email-desc { font-size: 15px; color: #4a4a4a; text-align: center; line-height: 1.5; margin: 0 0 24px; }
  .vp-ps-email-input { width: 100%; padding: 14px 16px; border: 1px solid #ddd; border-radius: 8px; font-size: 16px; font-family: inherit; box-sizing: border-box; margin-bottom: 20px; outline: none; }
  .vp-ps-email-input:focus { border-color: var(--blue); }
  .vp-ps-email-confirm { width: 100%; padding: 14px; background: var(--blue); color: #fff; border: 0; border-radius: 24px; font-size: 16px; font-weight: 600; font-family: inherit; cursor: pointer; margin-bottom: 12px; }
  .vp-ps-email-confirm:active { opacity: 0.85; }
  .vp-ps-email-cancel { width: 100%; padding: 10px; background: none; border: 0; color: var(--blue); font-size: 16px; font-weight: 500; font-family: inherit; cursor: pointer; }

  /* Per-biller mini logos */
  .vp-biller-logo { display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
  .vp-biller-logo.singtel .dots { display: inline-flex; gap: 2px; align-items: flex-end; height: 7px; margin-bottom: 2px; }
  .vp-biller-logo.singtel .dots span { width: 3px; height: 3px; border-radius: 50%; background: #E60012; display: inline-block; }
  .vp-biller-logo.singtel .dots span:nth-child(2) { margin-bottom: 1px; }
  .vp-biller-logo.singtel .dots span:nth-child(3) { margin-bottom: 3px; }
  .vp-biller-logo.singtel .dots span:nth-child(4) { margin-bottom: 1px; }
  .vp-biller-logo.singtel .name { font-size: 14px; font-weight: 800; color: #000; letter-spacing: -0.5px; }
  .vp-biller-logo.text-only .name { font-size: 13px; font-weight: 800; letter-spacing: 0; text-align: center; }
  .vp-biller-logo.sp .name { color: #F57F17; }
  .vp-biller-logo.starhub .name { color: #2E7D32; }
  .vp-biller-logo.nea .name { color: #1565C0; }
  .vp-biller-logo.generic .name { color: #1a1a1a; }


  /* ===== Payment Mode Selection ===== */
  #vault-payment-mode { background: #f4f5f7; padding-bottom: 0 !important; overflow: hidden; }
  #vault-payment-mode .vp { background: #f4f5f7; padding-top: 44px; padding-bottom: 0; display: flex; flex-direction: column; height: 100%; min-height: 0; box-sizing: border-box; overflow: hidden; }
  .vp-pm-list { background: #fff; border-top: 0.5px solid rgba(0,0,0,0.06); border-bottom: 0.5px solid rgba(0,0,0,0.06); flex: 1; overflow-y: auto; scrollbar-width: none; -ms-overflow-style: none; }
  .vp-pm-list::-webkit-scrollbar { display: none; }
  .vp-pm-row { display: flex; align-items: center; gap: 14px; padding: 14px 20px; background: #fff; border-top: 0.5px solid rgba(0,0,0,0.06); cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .vp-pm-row:first-child { border-top: 0; }
  .vp-pm-row:active { background: #f5f5f7; }
  .vp-pm-logo { width: 60px; height: 44px; background: #fff; border-radius: 8px; box-shadow: 0 0 0 0.5px rgba(0,0,0,0.1), 0 1px 3px rgba(0,0,0,0.05); display: flex; align-items: center; justify-content: center; flex-shrink: 0; padding: 4px; overflow: hidden; }
  .vp-pm-body { flex: 1; min-width: 0; }
  .vp-pm-title { font-size: 16px; color: #1a1a1a; line-height: 1.25; }
  .vp-pm-sub { font-size: 13px; color: var(--blue); margin-top: 2px; line-height: 1.2; }
  .vp-pm-sub.muted { color: #999; }
  .vp-pm-chev { color: #C5C7CC; flex-shrink: 0; display: inline-flex; }
  .vp-pm-chev svg { width: 14px; height: 14px; stroke-width: 2.4; }

  /* Brand logo recreations (small) */
  .pm-nets { font-size: 14px; font-weight: 900; letter-spacing: 0.5px; line-height: 1; }
  .pm-nets .red { color: #E60012; }
  .pm-nets .blue { color: #003C7E; }
  .pm-paylah { display: inline-flex; gap: 2px; font-size: 9px; font-weight: 800; line-height: 1; }
  .pm-paylah .dbs { background: #000; color: #fff; padding: 3px 4px; border-radius: 2px; letter-spacing: -0.3px; }
  .pm-paylah .pay { background: #E60012; color: #fff; padding: 3px 4px; border-radius: 2px; font-style: italic; }
  .pm-ocbc { width: 26px; height: 26px; background: #E60012; border-radius: 6px; position: relative; }
  .pm-ocbc::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 70% 32%, #fff 0 28%, transparent 30%); border-radius: 6px; }
  .pm-egiro { font-size: 12px; font-weight: 800; letter-spacing: -0.4px; line-height: 1; color: #B41464; display: inline-flex; align-items: center; gap: 1px; }
  .pm-egiro .e { font-style: italic; }
  .pm-egiro .check { width: 8px; height: 8px; border-radius: 50%; background: #B41464; display: inline-block; position: relative; }
  .pm-egiro .check::after { content: ""; position: absolute; left: 2px; top: 1px; width: 2px; height: 4px; border-right: 1.2px solid #fff; border-bottom: 1.2px solid #fff; transform: rotate(45deg); }
  .pm-card-icon { color: #555; }
  .pm-card-icon svg { width: 30px; height: 22px; stroke-width: 1.4; }
  .pm-cal-icon { color: #555; }
  .pm-cal-icon svg { width: 28px; height: 28px; stroke-width: 1.4; }
  .pm-paylater { color: #555; }
  .pm-paylater svg { width: 30px; height: 22px; stroke-width: 1.4; }
  .pm-crypto { width: 28px; height: 28px; border-radius: 50%; border: 1.4px solid #1a1a1a; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800; color: #1a1a1a; }
  .pm-axs { font-size: 14px; font-weight: 900; letter-spacing: -0.5px; color: #000; line-height: 1; font-style: italic; }

  /* Mastercard cards section */
  .vp-pm-cards { background: #fff; padding: 16px 0 24px; margin-top: 0; border-top: 0.5px solid rgba(0,0,0,0.06); flex-shrink: 0; }
  .vp-pm-cards-head { display: flex; align-items: center; justify-content: space-between; padding: 0 20px 12px; gap: 12px; }
  .vp-pm-cards-head .head-left { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; color: #1a1a1a; min-width: 0; }
  .vp-pm-cards-head .head-left svg { width: 32px; height: 20px; flex-shrink: 0; }
  .vp-pm-cards-head .head-left span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .vp-pm-cards-head .add { color: var(--blue); font-size: 14px; font-weight: 600; cursor: pointer; flex-shrink: 0; }

  .vp-pm-cards-scroll { display: flex; gap: 10px; padding: 4px 20px 12px; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; }
  .vp-pm-cards-scroll::-webkit-scrollbar { display: none; }

  .vp-pm-card { flex-shrink: 0; width: 192px; height: 124px; border-radius: 12px; padding: 14px; color: #fff; display: flex; flex-direction: column; position: relative; cursor: pointer; box-shadow: 0 4px 12px rgba(0,0,0,0.1); -webkit-tap-highlight-color: transparent; overflow: hidden; }
  .vp-pm-card.gold { background: linear-gradient(135deg, #DDB887 0%, #C9A06D 50%, #B68B58 100%); }
  .vp-pm-card.dark { background: linear-gradient(135deg, #7A7587 0%, #555160 60%, #3F3C49 100%); }
  .vp-pm-card.placeholder { background: #d8d8da; color: rgba(0,0,0,0.35); }
  .vp-pm-card .default-tag { position: absolute; top: 10px; right: 14px; font-size: 11px; font-weight: 600; color: #fff; }
  .vp-pm-card .name { font-size: 14px; font-weight: 700; line-height: 1.1; }
  .vp-pm-card .type { font-size: 12px; opacity: 0.85; margin-top: 1px; }
  .vp-pm-card .num { font-size: 13px; letter-spacing: 1.4px; margin-top: auto; font-weight: 600; }
  .vp-pm-card .holder { font-size: 11px; font-weight: 700; margin-top: 4px; letter-spacing: 0.5px; }
  .vp-pm-card .mc { position: absolute; bottom: 10px; right: 14px; }
  .vp-pm-card .mc svg { width: 32px; height: 20px; }

  /* ===== Payment Connecting ===== */
  #vault-payment-connecting { padding-bottom: 0 !important; overflow: hidden; }
  .phone:has(#vault-payment-connecting.active) .tabbar { display: none; }
  .vp-connecting { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; background: #f4f5f7; padding: 40px 24px; box-sizing: border-box; text-align: center; }

  .vp-conn-spinner { width: 80px; height: 80px; position: relative; margin-bottom: 28px; animation: spinnerRotate 1.2s linear infinite; }
  @keyframes spinnerRotate { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
  .conn-dot { position: absolute; width: 12px; height: 12px; border-radius: 50%; top: 50%; left: 50%; margin: -6px 0 0 -6px; }
  .conn-dot:nth-child(1)  { transform: rotate(0deg)   translateY(-34px); background: #2a2d6e; opacity: 1; }
  .conn-dot:nth-child(2)  { transform: rotate(30deg)  translateY(-34px); background: #2a2d6e; opacity: 0.9; }
  .conn-dot:nth-child(3)  { transform: rotate(60deg)  translateY(-34px); background: #2a2d6e; opacity: 0.75; }
  .conn-dot:nth-child(4)  { transform: rotate(90deg)  translateY(-34px); background: #888; opacity: 0.6; }
  .conn-dot:nth-child(5)  { transform: rotate(120deg) translateY(-34px); background: #999; opacity: 0.5; }
  .conn-dot:nth-child(6)  { transform: rotate(150deg) translateY(-34px); background: #aaa; opacity: 0.4; }
  .conn-dot:nth-child(7)  { transform: rotate(180deg) translateY(-34px); background: #bbb; opacity: 0.35; }
  .conn-dot:nth-child(8)  { transform: rotate(210deg) translateY(-34px); background: #ccc; opacity: 0.3; }
  .conn-dot:nth-child(9)  { transform: rotate(240deg) translateY(-34px); background: #ccc; opacity: 0.25; }
  .conn-dot:nth-child(10) { transform: rotate(270deg) translateY(-34px); background: #ddd; opacity: 0.2; }
  .conn-dot:nth-child(11) { transform: rotate(300deg) translateY(-34px); background: #ddd; opacity: 0.15; }
  .conn-dot:nth-child(12) { transform: rotate(330deg) translateY(-34px); background: #ddd; opacity: 0.1; }

  .vp-conn-title { font-size: 20px; font-weight: 800; color: #2a2d6e; letter-spacing: 0.5px; line-height: 1.35; margin: 0 0 20px; }
  .vp-conn-desc { font-size: 15px; color: #4a4a4a; line-height: 1.5; margin: 0 0 32px; }
  .vp-conn-ref { background: #fff; border-radius: 16px; padding: 18px 24px; margin-bottom: 32px; width: 100%; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
  .vp-conn-ref-label { font-size: 15px; font-weight: 700; color: #1a1a1a; margin-bottom: 4px; }
  .vp-conn-ref-num { font-size: 17px; font-weight: 700; color: #1a1a1a; }
  .vp-conn-footer { font-size: 13px; color: #888; line-height: 1.55; margin: 0; }


  /* ===== Swipe-to-reveal actions (Edit / Delete) ===== */
  .vp-swipe-row { position: relative; overflow: hidden; -webkit-tap-highlight-color: transparent; isolation: isolate; }
  .vp-swipe-content { position: relative; z-index: 2; transition: transform 0.2s ease; will-change: transform; touch-action: pan-y; background: #fff; }
  /* Swipe actions sit BEHIND the content. Hide them entirely while the row
     is at rest so their orange/red backgrounds can never bleed past the
     rounded list corners on any browser. They flip back to display:flex
     while the user is actively swiping or has revealed the row. */
  .vp-swipe-actions { position: absolute; top: 0; right: 0; bottom: 0; display: none; z-index: 1; }
  .vp-swipe-row.swiping .vp-swipe-actions,
  .vp-swipe-row.swipe-open .vp-swipe-actions { display: flex; }
  .vp-swipe-btn { width: 70px; display: flex; align-items: center; justify-content: center; border: 0; cursor: pointer; padding: 0; -webkit-tap-highlight-color: transparent; color: #fff; font-family: inherit; }
  .vp-swipe-btn.edit { background: #F5A623; }
  .vp-swipe-btn.delete { background: #E74C3C; }
  .vp-swipe-btn:active { filter: brightness(0.92); }
  .vp-swipe-btn svg { width: 22px; height: 22px; }

  /* Folder tile: keep rounded corners + shadow on the wrapper, drop the inner shadow */
  .vp-swipe-row.folder { border-radius: 14px; margin-bottom: 10px; box-shadow: 0 0 0 0.5px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.03); background: #fff; }
  .vp-swipe-row.folder .vp-swipe-content { background: #fff; border-radius: 14px; }
  .vp-swipe-row.folder .vp-folder-tile { box-shadow: none; margin-bottom: 0; }

  /* Bill list rows: divider lives on the wrapper now */
  .vp-list .vp-swipe-row { background: #fff; border-top: 0.5px solid rgba(0,0,0,0.06); }
  .vp-list .vp-swipe-row:first-child { border-top: 0; }
  .vp-list .vp-swipe-row .vp-swipe-content { background: #fff; }
  .vp-list .vp-swipe-row .vp-row { border-top: 0; }


  /* ===== In-app modal (replaces window.confirm / prompt inside the phone frame) ===== */
  .vp-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.45); display: flex; align-items: center; justify-content: center; z-index: 1000; padding: 24px; }
  .vp-modal-backdrop[hidden] { display: none !important; }
  .vp-modal { background: #fff; border-radius: 14px; width: 100%; max-width: 280px; overflow: hidden; box-shadow: 0 12px 32px rgba(0,0,0,0.18); animation: vpModalIn 0.18s ease; }
  @keyframes vpModalIn { from { transform: scale(0.94); opacity: 0; } to { transform: scale(1); opacity: 1; } }
  .vp-modal-title { padding: 18px 18px 6px; text-align: center; font-weight: 700; font-size: 16px; color: #1a1a1a; line-height: 1.3; }
  .vp-modal-message { padding: 0 18px 16px; text-align: center; font-size: 13px; color: #4a4a4a; line-height: 1.45; white-space: pre-line; }
  .vp-modal-message[hidden] { display: none; }
  .vp-modal-input { display: block; margin: 4px 18px 16px; width: calc(100% - 36px); padding: 10px 12px; font-size: 15px; font-family: inherit; border: 1px solid var(--border); border-radius: 8px; outline: none; box-sizing: border-box; }
  .vp-modal-input:focus { border-color: var(--blue); }
  .vp-modal-input[hidden] { display: none; }
  .vp-modal-actions { display: flex; border-top: 0.5px solid rgba(0,0,0,0.12); }
  .vp-modal-btn { flex: 1; padding: 13px 10px; background: transparent; border: 0; font-size: 16px; font-family: inherit; cursor: pointer; color: var(--blue); -webkit-tap-highlight-color: transparent; }
  .vp-modal-btn:active { background: #f5f5f7; }
  .vp-modal-btn + .vp-modal-btn { border-left: 0.5px solid rgba(0,0,0,0.12); }
  .vp-modal-btn.danger { color: #FF3B30; font-weight: 600; }
  .vp-modal-btn.confirm { font-weight: 600; }

  /* Sheet modal (custom-body version) */
  .vp-sheet-modal { max-width: 320px; }
  .vp-sheet-body { padding: 6px 18px 14px; }
  .vp-sheet-body .vp-modal-input { margin-left: 0; margin-right: 0; width: 100%; }
  .vp-sheet-body .vp-modal-input + .vp-modal-input { margin-top: 8px; }
  .vp-sheet-textarea { resize: vertical; min-height: 110px; line-height: 1.4; }
  .vp-pick-list { display: flex; flex-direction: column; }
  .vp-pick-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; background: #fff; border: 0; border-top: 0.5px solid rgba(0,0,0,0.06); font-size: 15px; font-family: inherit; cursor: pointer; text-align: left; color: #1a1a1a; -webkit-tap-highlight-color: transparent; width: 100%; }
  .vp-pick-row:first-child { border-top: 0; }
  .vp-pick-row:active { background: #f5f5f7; }
  .vp-pick-row.selected { color: var(--blue); font-weight: 600; }
  .vp-pick-row .check { color: var(--blue); font-weight: 700; }
  .vp-doc-list { list-style: none; padding: 0; margin: 0 0 10px; }
  .vp-doc-list li { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 0.5px solid rgba(0,0,0,0.06); font-size: 14px; }
  .vp-doc-list .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
  .vp-doc-remove { background: none; border: 0; color: #FF3B30; font-size: 13px; cursor: pointer; font-family: inherit; }
  .vp-doc-empty { color: var(--muted); font-size: 13px; padding: 4px 0 12px; text-align: center; }

  /* Insurance details — inline form */
  .vp-ins-form { display: flex; flex-direction: column; gap: 18px; padding-bottom: 8px; }
  .vp-ins-field { display: flex; flex-direction: column; gap: 8px; }
  .vp-ins-field label { font-size: 15px; color: #1a1a1a; font-weight: 400; }
  .vp-ins-input { background: #ECECEE; border-radius: 10px; min-height: 48px; padding: 12px 14px; display: flex; align-items: center; box-sizing: border-box; }
  .vp-ins-input input,
  .vp-ins-input select,
  .vp-ins-input textarea { flex: 1; min-width: 0; background: transparent; border: 0; outline: none; font-size: 15px; font-family: inherit; color: #1a1a1a; padding: 0; appearance: none; -webkit-appearance: none; }
  .vp-ins-input input::placeholder,
  .vp-ins-input textarea::placeholder { color: #B0B0B5; }
  .vp-ins-select { position: relative; padding-right: 40px; }
  .vp-ins-select select { cursor: pointer; }
  .vp-ins-select-arrow { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: #1a1a1a; font-size: 18px; pointer-events: none; line-height: 1; }
  .vp-ins-date { padding-right: 40px; position: relative; }
  .vp-ins-date input[type="date"] { color: #1a1a1a; min-height: 24px; }
  .vp-ins-date input[type="date"]::-webkit-calendar-picker-indicator { opacity: 0; position: absolute; right: 0; width: 40px; height: 100%; cursor: pointer; }
  .vp-ins-date-icon { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: #1a1a1a; pointer-events: none; }
  .vp-ins-date-icon svg { width: 22px; height: 22px; display: block; }
  .vp-ins-textarea-wrap { align-items: stretch; }
  .vp-ins-textarea-wrap textarea { resize: vertical; line-height: 1.45; min-height: 90px; }
  .vp-ins-attach { width: 100%; cursor: pointer; justify-content: space-between; -webkit-tap-highlight-color: transparent; font-family: inherit; text-align: left; border: 0; }
  .vp-ins-attach:active { background: #E0E0E3; }
  .vp-ins-attach-label { font-size: 15px; color: #1a1a1a; }
  .vp-ins-attach-label.has-files { color: var(--blue); font-weight: 500; }
  .vp-ins-attach-icon { color: #1a1a1a; }
  .vp-ins-attach-icon svg { width: 22px; height: 22px; display: block; }
  #vault-insurance-details .vp { padding-top: 0; padding-bottom: 24px; }
  #vault-insurance-details .vp-nav { top: 0; box-shadow: 0 1px 0 rgba(0,0,0,0.04); }
  #vault-bill-detail .vp { padding-top: 0; }
  #vault-bill-detail .vp-nav { top: 0; height: 78px; padding-top: 28px; box-shadow: 0 1px 0 rgba(0,0,0,0.04); }
  #vault-bill-detail .vp-content { padding-top: 16px; }
  #vault-insurance-details .vp-content { padding-top: 24px; }
  .vp-ins-submit { margin-top: 24px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
  .vp-ins-submit .vp-btn { width: 100%; max-width: 361px; }
  .vp-ins-helper { margin: 0 0 10px; font-size: 13px; color: var(--muted); text-align: center; line-height: 1.4; max-width: 361px; }
  .vp-ins-section-title { margin: 24px 0 14px; }
  #ins-bill-details > .vp-ins-field { margin-bottom: 18px; }
  #ins-bill-details > .vp-ins-field:last-of-type { margin-bottom: 0; }
  .vp-ins-form-helper { color: var(--muted); font-size: 15px; margin: 0 0 -10px; line-height: 1.45; }
  #ins-bill-details + .vp-ins-form-helper { margin-top: -20px; }
  .vp-bdi-tappable { cursor: pointer; }
  .vp-bdi-tappable:active { background: rgba(0,0,0,0.03); }

  /* Drag reorder mode */
  .vp-drag-row {
    display: flex; align-items: center; gap: 6px;
    padding: 10px 4px;
    border-bottom: 0.5px solid rgba(0,0,0,0.06);
    background: #fff;
    transition: background 0.15s ease;
    user-select: none; -webkit-user-select: none;
  }
  .vp-drag-handle {
    color: #C7C7CC; display: flex; align-items: center;
    cursor: grab; padding: 4px; touch-action: none;
    -webkit-tap-highlight-color: transparent;
  }
  .vp-drag-handle:active { cursor: grabbing; }
  .vp-dragging {
    position: fixed !important; z-index: 999;
    background: #fff; box-shadow: 0 8px 24px rgba(0,0,0,0.18);
    border-radius: 12px; opacity: 0.95;
    pointer-events: none;
  }
  .vp-drag-placeholder {
    background: var(--blue-soft); border-radius: 12px;
    border: 2px dashed var(--blue); opacity: 0.5;
    list-style: none;
  }
  .fav-card:active { background: #f0f0f2 !important; transform: scale(0.98); transition: transform 0.1s; }

  /* ── Folder bill card (reference style) ── */
  .vp-folder-bill {
    list-style: none;
    background: #fff;
    padding: 16px 16px 14px;
    cursor: pointer;
  }
  .vp-folder-bill:active {
    background: #f8f8fa;
  }
  .vp-folder-bill-top {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .vp-folder-bill-check {
    flex-shrink: 0;
  }
  .vp-folder-bill-logo {
    flex-shrink: 0;
    width: 64px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #e8e8ea;
    overflow: hidden;
  }
  .vp-folder-bill-logo .vp-biller-logo {
    transform: scale(0.7);
  }
  .vp-folder-bill-info {
    flex: 1;
    min-width: 0;
  }
  .vp-folder-bill-acct {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .vp-folder-bill-cat {
    font-size: 13px;
    color: var(--muted);
    margin-top: 2px;
  }
  .vp-folder-bill-badge {
    flex-shrink: 0;
  }
  .vp-folder-bill-badge .vp-tag {
    background: transparent;
    font-size: 13px;
    font-weight: 500;
    padding: 5px 14px;
    border-radius: 8px;
  }
  .vp-folder-bill-badge .vp-tag.due {
    color: #D94A3D;
    border: 1.5px solid #D94A3D;
    background: transparent;
  }
  .vp-folder-bill-badge .vp-tag.due-soon {
    color: #E08A2C;
    border: 1.5px solid #E08A2C;
    background: transparent;
  }
  .vp-folder-bill-badge .vp-tag.recurring {
    color: #2186E5;
    border: 1.5px solid #2186E5;
    background: transparent;
  }
  .vp-folder-bill-badge .vp-tag.paid {
    color: #34A853;
    border: 1.5px solid #34A853;
    background: transparent;
  }
  .vp-folder-bill-bottom {
    font-size: 12.5px;
    color: var(--muted);
    margin-top: 12px;
    padding-top: 0;
    border-top: none;
  }
  .vp-folder-bill-img {
    cursor: pointer;
    overflow: hidden;
    background: transparent;
  }
  .vp-folder-bill-img:active {
    opacity: 0.9;
  }
  .vp-folder-bill-img img {
    pointer-events: none;
  }
  #vault-folder-detail .vp-list { overflow: visible; border-radius: 0; box-shadow: none; background: transparent; }
  .vp-swipe-row.folder-bill { background: #fff; overflow: hidden; position: relative; }
  .vp-swipe-row.folder-bill .vp-swipe-content { background: #fff; position: relative; z-index: 2; }
  .vp-swipe-row.folder-bill .vp-swipe-actions { position: absolute; top: 0; right: 0; bottom: 0; z-index: 1; display: none; }
  .vp-swipe-row.folder-bill.swiping .vp-swipe-actions,
  .vp-swipe-row.folder-bill.swipe-open .vp-swipe-actions { display: flex; }
  .vp-swipe-row.folder-bill:first-child { border-top-left-radius: 16px; border-top-right-radius: 16px; }
  .vp-swipe-row.folder-bill:first-child .vp-swipe-content { border-top-left-radius: 16px; border-top-right-radius: 16px; }
  .vp-swipe-row.folder-bill:last-child { border-bottom-left-radius: 16px; border-bottom-right-radius: 16px; }
  .vp-swipe-row.folder-bill:last-child .vp-swipe-content { border-bottom-left-radius: 16px; border-bottom-right-radius: 16px; }
  .vp-swipe-row.folder-bill:last-child .vp-swipe-actions { border-bottom-right-radius: 16px; overflow: hidden; }
  #vault-folder-detail .vp {
    background: #f7f7f9;
    padding-top: 0;
    padding-bottom: 16px;
  }
  #vault-folder-detail .vp-nav {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #fff;
    padding-top: 44px;
    height: auto;
  }
  #vault-folder-detail .vp-content {
    background: #f7f7f9;
    position: relative;
    z-index: 1;
  }
  #folder-add-more-btn { color: var(--blue); font-weight: 500; cursor: pointer; }
  #folder-detail-label {
    text-transform: none;
    font-size: 14px;
    font-weight: 400;
    color: var(--text);
    letter-spacing: 0;
  }
  /* ── Folder summary pill ── */
  .vp-folder-summary-pill {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    border-radius: 28px;
    padding: 10px 20px;
    margin-bottom: 24px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.08);
  }
  .vp-fsp-left, .vp-fsp-right {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
  }
  .vp-fsp-left svg, .vp-fsp-right svg {
    opacity: 0.6;
  }

  /* ============ Vault welcome popup ============
     First-launch informational modal. All classes prefixed `vault-`. Vault icon
     palette tokens (--vault-icon-*) are LOCKED brand colors — do not override.
  */
  .vault-popup-overlay {
    --vault-bg-grad-1: #E5DFF5;
    --vault-bg-grad-2: #E7BADE;
    --vault-text-primary: #2a1a3d;
    --vault-text-secondary: #4a3960;
    --vault-feature-icon-stroke: #2a1a3d;
    --vault-icon-body: #7B6FE8;      /* LOCKED — original brand asset */
    --vault-icon-accent: #F4C842;    /* LOCKED — original brand asset */
    --vault-icon-outline: #1a1a1a;   /* LOCKED — original brand asset */

    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
    display: none;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.2s ease-out;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .vault-popup-overlay[data-open="true"] {
    display: block;
    opacity: 1;
  }
  .vault-popup-overlay[data-closing="true"] {
    opacity: 0;
    transition: opacity 0.15s ease-in;
  }

  .vault-popup-modal {
    position: absolute;
    top: calc(14vh + env(safe-area-inset-top, 0px));
    bottom: calc(14vh + env(safe-area-inset-bottom, 0px));
    left: 50%;
    transform: translateX(-50%);
    width: min(360px, calc(100vw - 40px));
    background: linear-gradient(135deg, var(--vault-bg-grad-1) 0%, var(--vault-bg-grad-2) 100%);
    border-radius: 20px;
    padding: 28px 24px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.35);
    font-family: 'Barlow', sans-serif;
    color: var(--vault-text-primary);
    display: flex;
    flex-direction: column;
    /* Center the content vertically so there is equal padding from top and
       bottom. If content overflows the modal it still scrolls naturally. */
    justify-content: center;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
  }

  .vault-popup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    z-index: 1;
  }
  .vault-popup-close::before {
    content: "";
    position: absolute;
    top: 6px;
    left: 6px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(42, 26, 61, 0.15);
  }
  .vault-popup-close svg {
    position: relative;
    width: 16px;
    height: 16px;
    color: var(--vault-text-primary);
  }
  .vault-popup-close,
  .vault-popup-close:focus,
  .vault-popup-close:focus-visible,
  .vault-popup-modal,
  .vault-popup-modal:focus,
  .vault-popup-modal:focus-visible { outline: none !important; box-shadow: none !important; }

  .vault-popup-icon-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 14px;
  }
  .vault-popup-icon {
    width: 92px;
    height: 92px;
    object-fit: contain;
    /* Locked brand colors — no filters. */
  }

  .vault-popup-ribbon {
    position: absolute;
    top: 22px;
    left: -42px;
    width: 160px;
    padding: 6px 0;
    background: linear-gradient(180deg, #EA496B 0%, #AF1B45 100%);
    color: #fff;
    text-align: center;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 2.4px;
    text-transform: uppercase;
    transform: rotate(-45deg);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    pointer-events: none;
    z-index: 2;
  }
  .vault-popup-ribbon span { display: inline-block; }

  .vault-popup-cta {
    align-self: center;
    width: 100%;
    max-width: 300px;
    margin-top: 22px;
    height: 48px;
    padding: 0 24px;
    background: var(--blue);
    color: #fff;
    border: 0;
    border-radius: 999px;
    font-family: 'Barlow', sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .vault-popup-cta:active { opacity: 0.85; }

  .vault-popup-title {
    margin: 0 0 8px;
    text-align: center;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.15;
    color: var(--vault-text-primary);
  }
  .vault-popup-subtitle {
    margin: 0 0 22px;
    text-align: center;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--vault-text-secondary);
  }

  .vault-popup-features {
    list-style: none;
    margin: 0 auto;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: fit-content;
  }
  .vault-popup-feature {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .vault-popup-feature-icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--vault-feature-icon-stroke);
  }
  .vault-popup-feature-icon svg {
    width: 28px;
    height: 28px;
  }
  .vault-popup-feature-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--vault-text-primary);
    line-height: 1.2;
  }
  .vault-popup-feature-desc {
    margin-top: 3px;
    font-size: 12px;
    font-weight: 400;
    color: var(--vault-text-secondary);
    line-height: 1.4;
  }

  @media (prefers-reduced-motion: reduce) {
    .vault-popup-overlay,
    .vault-popup-overlay[data-closing="true"] { transition: none; }
  }

  /* ============ Vault calendar (full screen) ============ */
  /* Pin the back-nav flush to the viewport top so content can never scroll
     above it. Matches the pattern used by vault-bill-detail / vault-folder-detail. */
  #vault-calendar .vp-nav { top: 0; box-shadow: 0 1px 0 rgba(0,0,0,0.04); }
  #vault-calendar .vp-content {
    font-family: 'Barlow', sans-serif;
    padding-top: 4px;
  }
  .vc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-bottom: 2px;
    flex-shrink: 0;
  }
  .vc-month-label {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
  }
  .vc-month-subtitle {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.3;
    margin: 0 0 10px;
    flex-shrink: 0;
  }
  .vc-header-actions {
    display: inline-flex;
    align-items: center;
    gap: 2px;
  }
  .vc-icon-btn {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
    color: var(--text);
    -webkit-tap-highlight-color: transparent;
  }
  .vc-icon-btn svg { width: 22px; height: 22px; }
  .vc-icon-btn.vc-close { margin-left: 6px; }

  .vc-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    padding: 4px 0 12px;
    flex-shrink: 0;
  }
  .vc-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 500;
    color: var(--text);
    white-space: nowrap;
  }
  .vc-swatch {
    width: 10px;
    height: 10px;
    border-radius: 2px;
    flex-shrink: 0;
  }
  .vc-swatch-due { background: #e74c3c; }
  .vc-swatch-soon { background: #f5a623; }
  .vc-swatch-predicted {
    background: transparent;
    border: 1.5px solid #999;
    border-radius: 50%;
  }

  .vc-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    padding: 4px 0 6px;
    flex-shrink: 0;
  }
  .vc-weekdays > div {
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
    letter-spacing: 0.4px;
  }

  .vc-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    row-gap: 6px;
    flex-shrink: 0;
  }
  .vc-cell {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    position: relative;
    border-radius: 6px;
    padding: 2px 0;
    box-sizing: border-box;
  }
  .vc-cell.vc-muted { color: var(--muted); opacity: 0.35; }
  .vc-cell.vc-bg-due  { background: #FCEBEB; }
  .vc-cell.vc-bg-soon { background: #FAEEDA; }
  /* Today + a due-today bill — red box around the today pill so it stands out
     even though the pill keeps the priority. The outline uses the same red
     as the legend swatch (.vc-swatch-due) for cross-surface consistency. */
  .vc-cell.vc-today-due {
    outline: 2px solid #E74C3C;
    outline-offset: -2px;
    border-radius: 8px;
  }
  .vc-cell.vc-bg-due  .vc-num { color: #501313; font-weight: 700; }
  .vc-cell.vc-bg-soon .vc-num { color: #633806; font-weight: 700; }
  .vc-cell .vc-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    line-height: 1;
  }
  .vc-cell .vc-num.vc-today-pill {
    background: #1a1a1a;
    color: #fff;
    border-radius: 50%;
    min-width: 26px;
    height: 26px;
    font-weight: 700;
  }
  .vc-dots {
    display: inline-flex;
    gap: 3px;
    margin-top: 3px;
    min-height: 6px;
  }
  .vc-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--vc-dot-color, #6E7780);
    display: inline-block;
  }
  .vc-dot.vc-dot-hollow {
    background: transparent;
    border: 1.5px solid var(--vc-dot-color, #6E7780);
    box-sizing: border-box;
  }

  /* Tappable cells (those with at least one bill) — outline on tap.
     Uses outline so it doesn't shift layout. Colour falls back to neutral
     for plain / today cells; matches the urgency text colour otherwise. */
  .vc-cell[data-has-bills="true"] { cursor: pointer; }
  .vc-cell.vc-selected {
    outline: 1.5px solid #1a1a1a;
    outline-offset: -1.5px;
  }
  .vc-cell.vc-bg-due.vc-selected  { outline-color: #501313; }
  .vc-cell.vc-bg-soon.vc-selected { outline-color: #633806; }

  /* Upcoming list rows */
  .vc-upcoming-row {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    margin-bottom: 8px;
    background: #f5f5f7;
  }
  .vc-upcoming-row.vc-row-due  { background: #FCEBEB; }
  .vc-upcoming-row.vc-row-due  .vc-row-title,
  .vc-upcoming-row.vc-row-due  .vc-row-sub,
  .vc-upcoming-row.vc-row-due  .vc-row-day,
  .vc-upcoming-row.vc-row-due  .vc-row-num { color: #501313; }
  .vc-upcoming-row.vc-row-soon { background: #FAEEDA; }
  .vc-upcoming-row.vc-row-soon .vc-row-title,
  .vc-upcoming-row.vc-row-soon .vc-row-sub,
  .vc-upcoming-row.vc-row-soon .vc-row-day,
  .vc-upcoming-row.vc-row-soon .vc-row-num { color: #633806; }
  .vc-row-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 44px;
    flex-shrink: 0;
  }
  .vc-row-day {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.4px;
    color: var(--muted);
  }
  .vc-row-num {
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
    color: var(--text);
    margin-top: 2px;
  }
  .vc-row-body { flex: 1; min-width: 0; }
  .vc-row-title-line {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
  }
  .vc-row-title { font-size: 15px; font-weight: 700; color: var(--text); }
  .vc-row-sub   { font-size: 13px; color: var(--muted); margin-top: 2px; }
  .vc-row-pred-sub {
    font-size: 11px;
    color: var(--muted);
    font-style: italic;
    margin-top: 2px;
  }

  /* Shared pill (inline next to the bill name). Uses the existing shared-tag palette
     so it matches other "shared" badges in the app. */
  .vc-shared-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 999px;
    background: #FFF4E5;
    color: #B45309;
    white-space: nowrap;
    border: 0;
    cursor: pointer;
    font-family: 'Barlow', sans-serif;
    -webkit-tap-highlight-color: transparent;
  }
  .vc-shared-pill svg { width: 10px; height: 10px; flex-shrink: 0; }
  .vc-shared-pill:active { opacity: 0.7; }

  /* Right-side status pill in upcoming rows */
  .vc-status-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
    white-space: nowrap;
    align-self: center;
  }
  /* Status pills use the same tint as the row + the legend swatch as a
     border, so the colour reads consistently across legend / cell / row / pill. */
  .vc-status-pill.vc-status-due  { background: #FCEBEB; color: #501313; border: 1px solid #E74C3C; }
  .vc-status-pill.vc-status-soon { background: #FAEEDA; color: #633806; border: 1px solid #F5A623; }

  /* In tinted rows, keep the pred-sub readable against the tint. */
  .vc-upcoming-row.vc-row-due  .vc-row-pred-sub { color: #8A4444; }
  .vc-upcoming-row.vc-row-soon .vc-row-pred-sub { color: #7A5520; }

  .vc-section-header {
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 16px 0 8px;
    flex-shrink: 0;
  }
  .vc-upcoming {
    list-style: none;
    margin: 0;
    padding: 0 0 12px;
    overflow-y: auto;
    flex: 1 1 auto;
    -webkit-overflow-scrolling: touch;
  }
  .vc-upcoming-empty {
    font-size: 13px;
    color: var(--muted);
    padding: 8px 0;
  }

  /* First-launch tooltip anchored near the Predicted legend chip. */
  .vc-tooltip {
    position: absolute;
    background: #1a1a1a;
    color: #fff;
    font-family: 'Barlow', sans-serif;
    font-size: 12px;
    line-height: 1.4;
    padding: 10px 14px;
    border-radius: 10px;
    max-width: 260px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.18);
    z-index: 1102;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
  }
  .vc-tooltip.vc-tooltip-show {
    opacity: 1;
    pointer-events: auto;
  }
  .vc-tooltip::before {
    content: "";
    position: absolute;
    top: -6px;
    left: var(--vc-tooltip-caret-left, 18px);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid #1a1a1a;
  }

  @media (prefers-reduced-motion: reduce) {
    .vc-sheet,
    .vc-sheet-overlay { transition: none; }
  }

  /* ============ Vault coach-mark tour ============ */
  .vt-overlay {
    position: fixed; inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 150ms ease;
  }
  .vt-overlay[data-open="true"] {
    pointer-events: auto;
    opacity: 1;
    visibility: visible;
  }
  /* Scrim covers the whole viewport and blocks clicks outside the spotlight.
     Pointer-events only become interactive when the overlay is open — otherwise
     the invisible scrim would silently swallow every click on the rest of the
     app. */
  .vt-scrim {
    position: absolute; inset: 0;
    background: rgba(0, 0, 0, 0.6);
    pointer-events: none;
  }
  .vt-overlay[data-open="true"] .vt-scrim { pointer-events: auto; }
  /* Spotlight is a transparent rectangle positioned over the anchor. The
     scrim is masked using a CSS box-shadow that creates a "hole" effect:
     a huge shadow expands outward and is visible everywhere except the
     spotlight's own box. */
  .vt-spotlight {
    position: absolute;
    border-radius: 12px;
    box-shadow:
      0 0 0 9999px rgba(0, 0, 0, 0.6),
      0 0 0 4px rgba(255, 255, 255, 0.85);
    background: transparent;
    pointer-events: none;
    transition: top 200ms ease, left 200ms ease, width 200ms ease, height 200ms ease;
  }
  /* Transparent button overlaid on the spotlight to capture taps when a step
     opts in to "tap spotlight to advance" (positioned by JS). */
  .vt-spotlight-tap {
    position: absolute;
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
    pointer-events: none;
    -webkit-tap-highlight-color: transparent;
    display: none;
  }
  .vt-overlay[data-open="true"] .vt-spotlight-tap.vt-tap-active {
    display: block;
    pointer-events: auto;
  }
  /* Coach-mark card */
  .vt-card {
    position: absolute;
    width: calc(100% - 40px);
    max-width: 320px;
    background: #fff;
    border-radius: 14px;
    padding: 18px 18px 14px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
    font-family: 'Barlow', sans-serif;
    pointer-events: none;
    transition: top 200ms ease, left 200ms ease, opacity 150ms ease;
  }
  .vt-overlay[data-open="true"] .vt-card { pointer-events: auto; }
  .vt-caret {
    position: absolute;
    width: 14px; height: 14px;
    background: #fff;
    transform: rotate(45deg);
    box-shadow: -1px -1px 2px rgba(0,0,0,0.04);
  }
  .vt-caret[data-side="top"] { top: -7px; left: 24px; }
  .vt-caret[data-side="bottom"] { bottom: -7px; left: 24px; }
  .vt-title {
    margin: 0 0 6px;
    font-family: 'Barlow', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: #1A1A1A;
    line-height: 1.3;
  }
  .vt-body {
    margin: 0 0 14px;
    font-family: 'Barlow', sans-serif;
    font-size: 14px;
    color: #4a4a4a;
    line-height: 1.45;
  }
  .vt-dots {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin: 0 0 14px;
  }
  .vt-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.15);
  }
  .vt-dot.active { background: var(--blue); }
  .vt-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }
  .vt-actions-right { display: inline-flex; gap: 8px; }
  .vt-btn {
    font-family: 'Barlow', sans-serif;
    font-size: 14px;
    font-weight: 600;
    border: 0;
    border-radius: 999px;
    padding: 9px 16px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    line-height: 1.2;
    background: transparent;
  }
  .vt-skip { color: #6E6E73; padding-left: 0; }
  .vt-skip:active { color: #1A1A1A; }
  .vt-back {
    background: #F1F1F3;
    color: #1A1A1A;
    min-width: 64px;
  }
  .vt-next {
    background: #1A1A1A;
    color: #fff;
    min-width: 64px;
  }
  .vt-next:active { background: #333; }
  .vt-back[hidden] { display: none; }

  @media (prefers-reduced-motion: reduce) {
    .vt-overlay,
    .vt-spotlight,
    .vt-card { transition: none; }
  }

  /* ===== Recipient vault view ===== */
  .recip-preview-pill { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 0 16px 12px; padding: 10px 16px; background: #FFF8E1; border: 1px solid #FFE082; border-radius: 10px; font-size: 13px; font-weight: 500; color: #6D4C00; line-height: 1.4; }
  .recip-preview-pill svg { width: 16px; height: 16px; flex-shrink: 0; color: #F9A825; }

  /* ===== Toast ===== */
  #vp-toast {
    position: fixed; bottom: 100px; left: 50%; transform: translateX(-50%);
    background: rgba(0,0,0,0.82); color: #fff; font-size: 13px; font-weight: 500;
    padding: 10px 20px; border-radius: 20px; z-index: 9999;
    pointer-events: none; opacity: 0; transition: opacity 0.3s;
    max-width: 80%; text-align: center; white-space: nowrap;
  }
  #vp-toast.show { opacity: 1; }

  /* ===== Disabled fav item in PS add-mode ===== */
  .vp-fav-disabled { opacity: 0.38; }

  /* ===== Help / Account page ===== */
  #screen-account { position: absolute; inset: 0; }

