/* The new Wallet look (2026-11-30, js/wallet2.js): dark money app, white sheet, yellow / mint / blue cards, white calculator keypad, green Sent. */
.phone .screen:has(.w2) .bd { padding: 0 !important; }
.phone .screen:has(.w2dark), .phone .screen:has(.w2dark) .hd2 { background: #121418; color: #f3f4f6; }
.phone .screen:has(.w2dark) .hd2 { border-bottom: 0; box-shadow: none; }
.phone .screen:has(.w2dark) .hd2 h2, .phone .screen:has(.w2dark) .hd2 .back { color: #f3f4f6; }
.phone .screen:has(.w2light), .phone .screen:has(.w2light) .hd2 { background: #fff; color: #111; }
.phone .screen:has(.w2done) .hd2 { display: none; }
.phone .screen:has(.w2key) .hd2 { display: none; }
.phone .screen:has(.w2key) .bd { display: flex; flex-direction: column; }
.phone .screen:has(.w2key) .w2key { flex: 1 0 auto; }
.w2key .w2swipe { margin-top: auto; }

.w2 { --w2y: #f8e425; --w2g: #3df5b0; --w2b: #2d9cf0; min-height: 100%; box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif; -webkit-tap-highlight-color: transparent; }
.w2 button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
.w2 button:focus-visible { outline: 2px solid #3df5b0; outline-offset: 2px; }
.w2dark { display: flex; flex-direction: column; }
.w2dark > .w2sheet { flex: 1 0 auto; }
.phone .screen:has(.w2home) .pbtm, .phone .screen:has(.w2ppl) .pbtm { background: #fff; }
.phone .screen:has(.w2home) .bd, .phone .screen:has(.w2ppl) .bd { background: linear-gradient(#121418 50%, #fff 50%); }
html.dark .phone .screen:has(.w2home) .bd, html.dark .phone .screen:has(.w2ppl) .bd { background: linear-gradient(#121418 50%, #1b1e23 50%); }
html.dark .phone .screen:has(.w2home) .pbtm, html.dark .phone .screen:has(.w2ppl) .pbtm { background: #1b1e23; }
.w2dark { background: radial-gradient(120% 60% at 0% 0%, #1d3533 0%, rgba(18, 20, 24, 0) 60%), #121418; color: #f3f4f6; padding: 6px 16px 96px; position: relative; }

/* top row: picture, currency, bell */
.w2top { display: flex; align-items: center; gap: 10px; margin: 2px 0 18px; }
.w2me { width: 38px; height: 38px; border-radius: 50%; overflow: hidden; background: #2a2e35; flex: none; }
.w2me svg, .w2me img, .w2pav svg, .w2pav img, .w2ico.av svg, .w2ico.av img, .w2kav svg, .w2kav img { width: 100%; height: 100%; display: block; }
.w2cur { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 99px; background: rgba(255, 255, 255, .09); font-size: 13px; font-weight: 700; letter-spacing: .02em; margin-right: auto; }
.w2cur span { font-size: 16px; line-height: 1; }
.w2cur svg { opacity: .7; }
.w2cur.lite { background: #f1f2f4; color: #555; height: 26px; font-size: 12px; margin: 0; }
.w2bell { position: relative; width: 36px; height: 36px; display: grid; place-items: center; color: #cfd3da; }
.w2bell i { position: absolute; top: 2px; right: 0; min-width: 17px; height: 17px; border-radius: 9px; background: #ff3b30; color: #fff; font: 700 10px/17px system-ui; font-style: normal; text-align: center; padding: 0 4px; }

/* the balance and the stack of cards */
.w2balrow { display: flex; align-items: stretch; gap: 8px; }
.w2bal { flex: 1; min-width: 0; }
.w2lab { font-size: 14px; color: #a3a8b1; margin-bottom: 4px; }
.w2amt { display: flex; align-items: baseline; gap: 6px; font-weight: 600; letter-spacing: -.02em; white-space: nowrap; }
.w2amt em { font-style: normal; font-size: 30px; }
.w2amt b { font-size: 40px; font-weight: 600; }
.w2amt small { font-size: 20px; color: #8b9099; font-weight: 500; }
.w2amt.l2 b { font-size: 31px; } .w2amt.l2 em { font-size: 24px; }
.w2amt.l3 b { font-size: 23px; } .w2amt.l3 em { font-size: 19px; }
.w2pills { display: flex; gap: 6px; margin-top: 14px; }
.w2pill { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px 0 8px; border-radius: 99px; font-size: 14px; font-weight: 600; color: #e5e7eb !important; }
.w2pill.on { background: #fff !important; color: #111 !important; }
.w2pill.on svg { color: #111; }
.w2pill:not(.on) { padding-left: 12px; }
.w2stack { position: relative; width: 52px; flex: none; margin-right: -16px; height: 118px; }
.w2stack i { position: absolute; top: 0; bottom: 0; border-radius: 14px 0 0 14px; }
.w2stack i:nth-child(1) { left: 0; right: 0; background: var(--w2y); }
.w2stack i:nth-child(2) { left: 14px; right: 0; background: var(--w2g); }
.w2stack i:nth-child(3) { left: 28px; right: 0; background: var(--w2b); }

/* spending */
.w2spend { width: 100%; display: flex; align-items: center; justify-content: space-between; margin: 22px 0 16px; padding: 14px 14px; border-radius: 18px; background: rgba(255, 255, 255, .06); text-align: left; }
.w2sl { display: flex; flex-direction: column; gap: 2px; }
.w2sl small { font-size: 13px; color: #a3a8b1; }
.w2sl b { font-size: 17px; font-weight: 600; }
.w2bub { position: relative; display: flex; align-items: center; }
.w2bub i { width: 32px; height: 32px; margin-left: -8px; border-radius: 50%; background: #2a2e35; border: 2px solid #1b1e23; display: grid; place-items: center; font-style: normal; font-size: 16px; }
.w2bub i.b0 { background: #fb923c; } .w2bub i.b1 { background: #0b0b0b; } .w2bub i.b2 { background: #fff; } .w2bub i.b3 { background: #3f6212; }
.w2bub i.bn { font: 700 11px system-ui; color: #e5e7eb; background: #3a3f47; }

/* the white sheet */
.w2sheet { margin: 0 -16px; padding: 8px 16px 18px; background: #fff; color: #111; border-radius: 26px 26px 0 0; min-height: 260px; }
.w2grab { display: block; width: 36px; height: 4px; border-radius: 4px; background: #e2e4e8; margin: 0 auto 8px; }
.w2sh { display: flex; align-items: center; justify-content: space-between; padding: 4px 0 8px; }
.w2sh b { font-size: 16px; font-weight: 600; }
.w2sh button { width: 34px; height: 34px; display: grid; place-items: center; color: #8b9099; border-radius: 50%; }
.w2q { width: 100%; box-sizing: border-box; height: 38px; border-radius: 12px; border: 0; background: #f1f2f4; padding: 0 12px; font-size: 15px; margin-bottom: 6px; color: #111; }
.w2tx { display: flex; flex-direction: column; }
.w2row { display: flex; align-items: center; gap: 12px; padding: 9px 0; width: 100%; text-align: left; }
.w2ico { position: relative; width: 38px; height: 38px; flex: none; border-radius: 50%; background: #f1f2f4; display: grid; place-items: center; font-size: 19px; }
.w2ico.av { overflow: visible; }
.w2ico.av svg, .w2ico.av img { border-radius: 50%; overflow: hidden; }
.w2ico i { position: absolute; right: -1px; bottom: -1px; width: 11px; height: 11px; border-radius: 50%; border: 2px solid #fff; background: #ef4444; }
.w2ico i.in { background: #22c55e; }
.w2l { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.w2l b { font-size: 15px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w2l small { font-size: 12px; color: #9ca3af; }
.w2a { font-size: 15px; font-weight: 500; white-space: nowrap; color: #111; }
.w2a.in { color: #16a34a; }
.w2tag { font-size: 12px; color: #9ca3af; }
.w2empty { padding: 18px 4px; color: #6b7280; font-size: 14px; text-align: center; }
.w2empty.dark { color: #a3a8b1; }
.w2wait { width: 100%; display: flex; align-items: center; gap: 8px; padding: 12px 14px; margin: 4px 0 6px; border-radius: 14px; background: #fff7d6 !important; color: #4a3800 !important; font-size: 14px; text-align: left; }
.w2wait span { margin-left: auto; font-weight: 700; }
.w2acc { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px 0 8px; }
.w2acc div { background: #f5f6f8; border-radius: 16px; padding: 12px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.w2acc small { font-size: 12px; color: #6b7280; }
.w2acc b { font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w2wide { width: 100%; height: 46px; margin-top: 8px; border-radius: 14px; background: #111 !important; color: #fff !important; font-weight: 600 !important; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.w2wide.alt { background: #f1f2f4 !important; color: #111 !important; font-weight: 500 !important; font-size: 14px; }
.w2wide:disabled { opacity: .4; }

/* the floating tab bar */
.w2nav { position: sticky; bottom: 14px; z-index: 3; width: max-content; margin: 18px auto 0; display: flex; gap: 4px; padding: 5px; border-radius: 99px; background: #0b0c0e; box-shadow: 0 8px 26px rgba(0, 0, 0, .35); }
.w2nav button { width: 54px; height: 38px; border-radius: 99px; display: grid; place-items: center; color: #8b9099; }
.w2nav button.on { background: #fff; color: #111; }
.w2home .w2nav, .w2ppl .w2nav { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(16px + env(safe-area-inset-bottom)); }
.phone .w2home .w2nav, .phone .w2ppl .w2nav, .phone .w2cardsv .w2nav { position: sticky; left: auto; transform: none; }
.w2home, .w2ppl { padding-bottom: 0; }
.w2home .w2sheet, .w2ppl .w2sheet { padding-bottom: 80px; margin-bottom: -60px; }

/* Cards */
.w2hd { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 16px; }
.w2hd h3 { margin: 0; font-size: 26px; font-weight: 600; letter-spacing: -.01em; color: #f3f4f6; }
.w2add { height: 30px; padding: 0 14px !important; border-radius: 99px; background: #fff !important; color: #111 !important; font-size: 13px !important; font-weight: 600 !important; }
.w2cards { display: flex; flex-direction: column; gap: 18px; }
.w2card { position: relative; border-radius: 18px; padding: 14px 14px 12px; min-height: 128px; box-sizing: border-box; display: flex; flex-direction: column; color: #10202a; overflow: visible; text-align: left; width: 100%; }
.w2card.y { background: var(--w2y); box-shadow: 0 14px 30px -10px rgba(248, 228, 37, .55); }
.w2card.g { background: var(--w2g); box-shadow: 0 14px 30px -10px rgba(61, 245, 176, .5); }
.w2card.b { background: linear-gradient(120deg, #2d9cf0, #3aa7f5 60%, #59b6f7); color: #fff; box-shadow: 0 14px 30px -10px rgba(45, 156, 240, .55); }
.w2card.cr { box-shadow: 0 14px 30px -10px var(--glow, rgba(52, 211, 153, .5)); overflow: hidden; }
.w2card.addc { border: 2px dashed rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .04) !important; color: #f3f4f6 !important; justify-content: center; gap: 6px; }
.w2card.addc b { font-size: 16px; }
.w2card.addc small { font-size: 13px; color: #a3a8b1; line-height: 1.4; }
.w2ct { display: flex; justify-content: space-between; font-size: 13px; font-weight: 500; opacity: .85; }
.w2cv { font-size: 24px; font-weight: 600; margin: 10px 0 auto; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w2cn { margin: 14px 0 auto; max-width: 64%; display: flex; flex-direction: column; gap: 2px; position: relative; z-index: 1; }
.w2cn b { font-size: 20px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w2cn small { font-size: 12px; }
.w2pop { position: absolute; right: 8px; bottom: 0; height: 118%; max-height: 150px; pointer-events: none; }
.w2pop img { height: 100%; display: block; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .35)); }
.w2pop.box { height: 64px; width: 64px; bottom: 34px; right: 14px; border-radius: 16px; overflow: hidden; }
.w2pop.box img { width: 100%; }
.w2cb { display: flex; align-items: center; gap: 8px; margin-top: 12px; position: relative; z-index: 1; }
.w2cb button:not(.w2tog) { width: 32px; height: 32px; border-radius: 50%; background: rgba(0, 0, 0, .14); display: grid; place-items: center; }
.w2card.cr .w2cb button:not(.w2tog), .w2card.b .w2cb button:not(.w2tog) { background: rgba(255, 255, 255, .2); }
.w2since { font-size: 12px; opacity: .85; margin-left: 4px; }
.w2tog { margin-left: auto; width: 40px; height: 24px; border-radius: 99px; background: rgba(0, 0, 0, .22) !important; position: relative; }
.w2tog i { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: rgba(255, 255, 255, .85); transition: left .18s; }
.w2tog.on i { left: 19px; }
.w2cardsv .w2nav { margin-top: 26px; }

/* Recipients */
.w2grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 6px; margin: 6px 0 22px; }
.w2grid button { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
.w2pav { width: 58px; height: 58px; border-radius: 50%; overflow: hidden; background: #2a2e35; }
.w2grid b { font-size: 14px; font-weight: 500; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w2grid small { font-size: 11px; color: #8b9099; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w2seg { display: flex; align-items: center; gap: 6px; margin: 2px 0 8px; }
.w2seg button { height: 30px; padding: 0 12px; border-radius: 99px; font-size: 13px; color: #9ca3af; }
.w2seg button.on { background: #f1f2f4; color: #111; font-weight: 600; }
.w2seg input { flex: 1; min-width: 0; height: 30px; border: 0; border-radius: 99px; background: #f5f6f8; padding: 0 12px; font-size: 14px; color: #111; }

/* the keypad */
.w2light { background: #fff; color: #111; padding: 10px 18px 16px; display: flex; flex-direction: column; }
.w2kt { display: grid; grid-template-columns: 36px 1fr 36px; align-items: center; }
.w2kback { width: 36px; height: 36px; display: grid; place-items: center; color: #111; }
.w2seg3 { justify-self: center; display: flex; gap: 4px; padding: 3px; border-radius: 99px; }
.w2seg3 button { height: 30px; padding: 0 14px; border-radius: 99px; font-size: 15px; color: #9ca3af; }
.w2seg3 button.on { color: #111; font-weight: 600; }
.w2kto { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 4px; font-size: 13px; color: #6b7280; }
.w2kto > button { display: inline-flex; align-items: center; gap: 4px; color: #6b7280; }
.w2bigwrap { position: relative; display: flex; justify-content: center; align-items: center; margin: 34px 0 4px; min-height: 64px; }
.w2kav { position: absolute; right: 0; width: 34px; height: 34px; border-radius: 50%; overflow: hidden; background: #eee; }
.w2big { font-size: 52px; font-weight: 700; letter-spacing: -.03em; white-space: nowrap; max-width: 82%; overflow: hidden; text-overflow: ellipsis; text-align: center; }
.w2big em { font-style: normal; margin-right: 4px; }
.w2big i { font-style: normal; font-weight: 500; color: #b4b8bf; font-size: .55em; margin: 0 6px; vertical-align: middle; }
.w2big .w2zero { color: #d6d8dc; }
.w2big.l2 { font-size: 40px; } .w2big.l3 { font-size: 30px; }
.w2eq { align-self: center; padding: 4px 14px; border-radius: 99px; background: #f1f2f4; color: #6b7280; font-size: 14px; font-weight: 600; margin-top: 2px; }
.w2eq[hidden] { display: none; }
.w2avail { text-align: center; font-size: 13px; color: #9ca3af; margin-top: 8px; }
.w2avail b { color: #6b7280; font-weight: 600; }
.w2err { text-align: center; min-height: 18px; font-size: 13px; color: #dc2626; margin-top: 4px; }
.w2swipe { position: relative; height: 52px; border-radius: 99px; background: #f1f2f4; margin: 6px 0 10px; display: flex; align-items: center; justify-content: center; touch-action: none; user-select: none; -webkit-user-select: none; overflow: hidden; }
.w2swipe::before { content: ""; position: absolute; inset: 0; background: #22e33a; opacity: calc(var(--p, 0) * .9); border-radius: inherit; }
.w2swipe span { position: relative; font-size: 14px; color: #6b7280; font-weight: 500; opacity: calc(1 - var(--p, 0)); }
.w2knob { position: absolute; left: 4px; top: 4px; width: 44px; height: 44px; border-radius: 50%; background: #111; color: #fff; display: grid; place-items: center; transition: transform .25s; z-index: 1; }
.w2swipe.off .w2knob { background: #c8cbd0; }
.w2swipe.off span { color: #b4b8bf; }
.w2ops { display: flex; justify-content: space-around; padding: 6px 14px; }
.w2ops button { width: 52px; height: 40px; font-size: 24px; color: #374151; border-radius: 14px; }
.w2ops button:active { background: #f1f2f4; }
.w2pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 8px; border-radius: 26px; background: #f7f7f8; margin-top: 6px; }
.w2pad button { height: 54px; border-radius: 16px; font-size: 24px; font-weight: 500; color: #111; display: grid; place-items: center; }
.w2pad button:active { background: #e9eaec; }
.w2pad button:disabled { opacity: .25; }

/* Sent */
.w2done { position: absolute; inset: 0; z-index: 5; width: 100%; display: flex !important; flex-direction: column; align-items: center; justify-content: center; gap: 6px; background: #22e33a !important; color: #fff !important; text-align: center; animation: w2pop .35s ease-out; }
.w2tick svg { stroke-width: 2.6; }
.w2done b { font-size: 34px; font-weight: 700; letter-spacing: -.02em; }
.w2done > span:not(.w2tick) { font-size: 15px; opacity: .92; }
.w2done small { position: absolute; bottom: calc(26px + env(safe-area-inset-bottom)); font-size: 13px; opacity: .7; }
@keyframes w2pop { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
.phone .screen:has(.w2done) .bd { position: relative; }

/* the currency picker */
.w2curs { display: flex; flex-direction: column; gap: 6px; max-height: 52vh; overflow: auto; }
.w2curs button { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--surface2, #f3f4f6); border: 2px solid transparent; text-align: left; color: inherit; font: inherit; cursor: pointer; }
.w2curs button.on { border-color: #22c55e; }
.w2curs .f { font-size: 24px; }
.w2curs .t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.w2curs .t b { font-size: 14px; }
.w2curs .t small { font-size: 12px; opacity: .65; }
.w2curs .v { font-size: 13px; white-space: nowrap; max-width: 40%; overflow: hidden; text-overflow: ellipsis; }

/* dark mode: the home stays dark (as designed); the white parts go to deep grey */
html.dark .w2sheet, html.dark .w2light, html.dark .phone .screen:has(.w2light), html.dark .phone .screen:has(.w2light) .hd2 { background: #1b1e23; color: #f3f4f6; }
html.dark .w2a, html.dark .w2kback, html.dark .w2seg3 button.on, html.dark .w2pad button, html.dark .w2seg button.on { color: #f3f4f6; }
html.dark .w2a.in { color: #4ade80; }
html.dark .w2ico, html.dark .w2q, html.dark .w2acc div, html.dark .w2wide.alt, html.dark .w2seg input, html.dark .w2seg button.on, html.dark .w2eq, html.dark .w2swipe, html.dark .w2cur.lite { background: #262a31 !important; color: #e5e7eb !important; }
html.dark .w2ico i { border-color: #1b1e23; }
html.dark .w2pad { background: #23272d; }
html.dark .w2pad button:active, html.dark .w2ops button:active { background: #2f343c; }
html.dark .w2ops button { color: #d1d5db; }
html.dark .w2wide { background: #f3f4f6 !important; color: #111 !important; }
html.dark .w2knob { background: #f3f4f6; color: #111; }
html.dark .w2big .w2zero { color: #4b5058; }
html.dark .w2grab { background: #3a3f47; }
html.dark .w2curs button { background: #262a31; }
html.dark .w2wait { background: #3b2f0a !important; color: #fde68a !important; }
@media (prefers-reduced-motion: reduce) { .w2done { animation: none; } .w2knob, .w2tog i { transition: none; } }
