:root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#14344c;background:#f2f6fb;--blue:#087cc3;--muted:#7c8da1;--safe-top:env(safe-area-inset-top,0px);--safe-bottom:env(safe-area-inset-bottom,0px);font-synthesis:none;color-scheme:light}*{box-sizing:border-box}body{margin:0;-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{font:inherit;cursor:pointer}button:disabled{opacity:.55;cursor:wait}button:focus-visible,a:focus-visible{outline:3px solid #58bdf3;outline-offset:4px}.wallet-app{max-width:520px;margin:auto;padding:calc(24px + var(--safe-top)) 22px calc(110px + var(--safe-bottom));min-height:100svh}.topbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:39px}.wordmark{font-weight:750;letter-spacing:-.8px;font-size:23px;text-decoration:none;color:#0b5889;display:flex;gap:8px;align-items:center}.brand-dots{display:flex;gap:3px;transform:rotate(-24deg);margin-top:2px}.brand-dots i{display:block;width:5px;height:12px;background:#55b9f0;border-radius:5px}.brand-dots i+i{margin-top:7px}.avatar{width:37px;height:37px;display:grid;place-items:center;border-radius:50%;background:#dceefa;color:#1778b0;border:1px solid #cee6f6;font-size:14px;font-weight:600}h1{margin:0;font-size:36px;font-weight:730;letter-spacing:-1.55px;line-height:1.13}h2{font-size:25px;letter-spacing:-.8px;margin:0 0 14px}p{line-height:1.5}.intro{color:var(--muted);font-size:14px;margin:11px 0 26px}.section-label{font-size:12px;letter-spacing:.2px;font-weight:600;color:#76889d;display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}.count{color:#2383bc;background:#e1f0fb;border-radius:8px;min-width:24px;padding:3px 7px;text-align:center;font-size:11px}.stack{padding:0 0 13px}/* Matte graphite coupon: actual terms, quiet embossing, corner-only glass. */
.pass{width:100%;height:auto;aspect-ratio:1.95;min-height:165px;border:1px solid #ffffff0e;border-radius:20px;padding:21px 22px;text-align:left;position:relative;display:flex;flex-direction:column;align-items:stretch;justify-content:space-between;color:#f0f0f1;background:radial-gradient(ellipse at 12% -25%,#a8c7f32b 0%,#7b9bc210 36%,transparent 68%),repeating-linear-gradient(132deg,transparent 0,transparent 3px,#e0ecff04 3.5px,#00000008 4px,transparent 4.5px,transparent 7px),linear-gradient(120deg,#2c323c 0%,#242a33 52%,#181d25 100%);overflow:hidden;box-shadow:0 -1px 0 #ffffff18,0 9px 23px #10141b1b,inset 0 1px 0 #ffffff0a,inset 0 -1px 0 #00000055;isolation:isolate;transform-origin:50% 90%;transition:transform .25s ease,box-shadow .25s ease;animation:card-settle .4s cubic-bezier(.2,.7,.3,1) both}
.pass:not(:first-child){margin-top:-99px}.pass:nth-child(2){animation-delay:.045s}.pass:nth-child(3){animation-delay:.09s}
.pass::before{content:"";position:absolute;inset:0;pointer-events:none;background:repeating-linear-gradient(0deg,#ffffff04 0,#ffffff04 .5px,transparent .5px,transparent 2px),repeating-linear-gradient(90deg,#00000009 0,#00000009 .5px,transparent .5px,transparent 3px);mix-blend-mode:soft-light;z-index:0}
.pass::after{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;box-shadow:inset 0 0 0 1px #e2edff1c,inset 0 1px 0 #f0f7ff22,inset -1px -1px 0 #90b4e510;background:linear-gradient(115deg,#eef6ff0c,transparent 22%,transparent 78%,#c4dcff06);z-index:0}
.pass-head,.pass-copy,.pass-foot{position:relative;z-index:1}.pass-head{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;min-height:20px}.merchant-name{font-size:12px;font-weight:540;letter-spacing:.05px;line-height:1.4;max-width:72%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:#e6e6e8;text-shadow:0 1px 1px #00000070}.pass-status{font-size:9px;font-weight:400;color:#b7b8bc;white-space:nowrap;line-height:1.7;letter-spacing:.15px}.pass-copy{margin:auto 0;padding:15px 0 13px}.pass-benefit{font-size:22px;font-weight:510;letter-spacing:-.7px;line-height:1.15;margin:0 0 6px;max-width:100%;text-shadow:0 1px 1px #00000075;overflow-wrap:anywhere}.pass-caption{font-size:11px;font-weight:400;color:#b9babf;line-height:1.4;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pass-foot{display:flex;justify-content:space-between;align-items:flex-end;gap:18px;font-size:11px;line-height:1.4;color:#e1e1e4;font-variant-numeric:tabular-nums}.card-expiry,.card-distance{display:flex;flex-direction:column;gap:4px}.card-distance{text-align:right}.card-micro{font-size:8px;line-height:1.3;letter-spacing:.25px;color:#b2b3b9}.glass-corner{position:absolute;pointer-events:none;width:47px;height:47px;z-index:0;opacity:.6;background:linear-gradient(135deg,#ffffff24 0%,#dfeaff10 27%,#ffffff04 50%,transparent 72%);border-top:1px solid #ffffff30;border-right:1px solid #ffffff24;box-shadow:inset -1px 1px 0 #ffffff0b;backdrop-filter:blur(1px);-webkit-backdrop-filter:blur(1px);animation:corner-glint 8s ease-in-out infinite alternate}.glass-top{right:0;top:0;border-radius:0 19px 0 40px;mask-image:linear-gradient(135deg,#000 15%,transparent 83%)}.glass-bottom{left:0;bottom:0;transform:rotate(180deg);border-radius:0 19px 0 40px;opacity:.4;animation-delay:-4s;mask-image:linear-gradient(135deg,#000,transparent 78%)}
@media(hover:hover){button.pass:hover{transform:translateY(-2px);box-shadow:0 -1px 0 #ffffff20,0 12px 28px #10141b26,inset 0 1px 0 #ffffff0d}button.pass:hover .glass-corner{opacity:.85}}
button.pass:active{transform:scale(.992)}.pass-summary{margin:0!important;animation:none;box-shadow:0 6px 18px #11151c1c}.sheet-pass{margin:0 0 18px}.sr-only{position:absolute!important;width:1px;height:1px;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@keyframes card-settle{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}@keyframes corner-glint{from{opacity:.35}to{opacity:.7}}
.qr-icon{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:2}.helper{display:flex;justify-content:center;gap:6px;font-size:11px;color:#8c9bac;margin:18px 0 32px}.helper svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:1.6}.local-note{display:flex;gap:13px;padding:19px 16px;background:#e8f0f8;border:1px solid #e0ebf5;border-radius:16px;color:#658098;font-size:12px;line-height:1.55}.local-note strong{display:block;color:#3c6685;font-size:12px;margin-bottom:3px}.local-note svg{flex-shrink:0;width:22px;height:22px;stroke:#6ba8cd;fill:none;stroke-width:1.5}.bottom-nav{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:100%;max-width:520px;display:flex;justify-content:space-evenly;gap:20px;padding:12px 24px calc(14px + var(--safe-bottom));background:#f2f6fbef;backdrop-filter:blur(18px);border-top:1px solid #dfe9f2;z-index:10}.bottom-nav button{border:0;background:none;color:#8a9bad;display:flex;flex-direction:column;align-items:center;gap:5px;font-size:10px;min-width:90px;padding:2px 20px}.bottom-nav button svg{width:24px;height:24px;stroke:currentColor;stroke-width:1.7}.bottom-nav button.selected{color:#087cc3}.empty{padding:40px 22px;border:1px dashed #c8dded;border-radius:22px;text-align:center;background:#ffffff70}.empty-icon{width:62px;height:62px;margin:0 auto 20px;background:#e1f2ff;border-radius:20px;display:grid;place-items:center;color:#238ecb;font-size:28px}.empty h2{font-size:20px}.empty p{font-size:13px;color:var(--muted)}.primary,.secondary{width:100%;border:0;border-radius:14px;padding:16px 18px;font-size:15px;font-weight:650;display:block;text-align:center;text-decoration:none}.primary{background:#0879ba;color:white}.secondary{background:#e7f3fc;color:#1679b4}.sheet{position:fixed;inset:auto 0 0;margin:0 auto;max-width:520px;width:100%;max-height:93svh;border:0;border-radius:27px 27px 0 0;padding:11px 24px calc(25px + var(--safe-bottom));background:#f5f8fc;color:#153a54;overflow-y:auto;overscroll-behavior:contain;box-shadow:0 -20px 80px #123c5620;animation:slide-in .22s ease-out}.sheet::backdrop{background:#0b233953;backdrop-filter:blur(4px)}.sheet-handle{width:32px;height:4px;border-radius:4px;background:#ced9e4;margin:0 auto 27px}.sheet-close{position:absolute;right:14px;top:12px;width:30px;height:30px;border-radius:50%;border:0;background:#e5edf5;color:#70879b;font-size:23px;line-height:1}.sheet-title{padding-right:20px}.sheet-merchant{font-size:13px;color:#658198;margin:0 0 10px}.sheet-title h2{font-size:28px;line-height:1.16;letter-spacing:-.9px}.sheet-subtitle{font-size:12px;line-height:1.6;color:#8393a3;margin:0 0 18px}.qr-panel{background:white;border:1px solid #e0ebf4;border-radius:21px;padding:17px;margin:20px 0 17px;text-align:center}.qr-panel img{display:block;width:218px;max-width:100%;height:auto;margin:0 auto}.qr-panel p{font-size:12px;color:#7a90a4;margin:10px 0 5px}.qr-panel code{font:10px ui-monospace,monospace;color:#56748e;overflow-wrap:anywhere;display:block;margin-top:9px}.detail-group{border-bottom:1px solid #e0eaf2;padding:16px 0}.detail-group .label{font-size:10px;text-transform:uppercase;letter-spacing:.8px;color:#93a2af;margin-bottom:7px}.detail-group p{font-size:13px;margin:0;white-space:pre-line}.sheet-actions{margin-top:22px;display:grid;gap:10px}.fineprint{font-size:11px;color:#8a9baa;text-align:center;line-height:1.5;margin:12px 0 0}.history-item{background:#fff;border:1px solid #e1ebf3;border-radius:17px;padding:18px;margin-bottom:12px;display:flex;gap:13px;align-items:center;text-align:left;width:100%;color:inherit}.history-icon{width:41px;height:41px;border-radius:13px;background:#e8f3fb;color:#4397c5;display:grid;place-items:center;font-weight:700;flex-shrink:0}.history-item strong{font-size:13px;display:block;font-weight:650}.history-item small{display:block;margin-top:5px;color:#91a0af;font-size:11px}.history-item .chevron{margin-left:auto;color:#a6b9c8;font-size:20px}.history-filter{display:flex;gap:6px;margin:23px 0 22px;overflow-x:auto;padding-bottom:2px}.history-filter button{border:0;background:#e5edf5;color:#7d93a5;white-space:nowrap;border-radius:10px;font-size:11px;padding:9px 13px}.history-filter button.selected{background:#d8edfc;color:#157cb8}.profile-stats{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:24px 0}.profile-stat{padding:20px;background:white;border-radius:16px;border:1px solid #e0ebf4}.profile-stat b{font-size:27px;font-weight:650;display:block}.profile-stat span{color:#879cae;font-size:11px;display:block;margin-top:7px}.link-field{width:100%;border:1px solid #d4e5f2;background:white;border-radius:12px;padding:13px;font:12px inherit;color:#426f8d;margin:15px 0}.welcome-card{padding:25px;background:#dcefff;border-radius:20px;margin:25px 0}.welcome-card p{font-size:13px;color:#5d86a4}.notice{font-size:12px;line-height:1.5;padding:14px;background:#e2f1fc;border-radius:12px;color:#4b7b9c;margin:16px 0}.connection-message{padding:30px 0}.connection-message p{font-size:14px;color:#7e94a6}#toast{position:fixed;bottom:calc(92px + var(--safe-bottom));left:50%;transform:translateX(-50%);max-width:calc(100% - 40px);width:max-content;padding:13px 18px;border-radius:13px;background:#194f72f2;color:white;box-shadow:0 6px 25px #153a5420;font-size:12px;line-height:1.4;display:none;z-index:30}.skeleton-heading{height:36px;width:65%;background:#e4edf6;border-radius:12px;margin-bottom:50px}.skeleton-card{height:225px;border-radius:22px;background:linear-gradient(100deg,#dcebf8,#eaf3fa,#dcebf8);background-size:200%;animation:shimmer 1.4s infinite}.preview-label{font-size:10px;color:#7b9bb1;text-align:center;margin:20px 0 0}@keyframes shimmer{to{background-position:-200%}}@keyframes slide-in{from{transform:translateY(30px);opacity:.5}to{transform:translateY(0);opacity:1}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}@media(min-width:700px){.wallet-app{padding-top:35px}.sheet{bottom:24px;border-radius:27px;max-height:calc(100svh - 48px)}.bottom-nav{border-radius:22px 22px 0 0}}@media(max-width:360px){.wallet-app{padding-left:16px;padding-right:16px}.pass{padding:18px}.pass-benefit{font-size:19px}.card-micro{font-size:8px}.merchant-name{font-size:11px}}

/* Wide card with an independent, keyboard-accessible reverse action. */
.card-open{position:absolute;inset:0;width:100%;border:0;padding:0;background:none;border-radius:inherit;z-index:2}.pass-head,.pass-copy,.pass-foot{pointer-events:none}.pass-flip{position:absolute;right:13px;bottom:11px;z-index:3;width:38px;height:38px;display:grid;place-items:center;border:1px solid #e0ecff17;background:linear-gradient(135deg,#e9f3ff09,#a7caff03);color:#c8d4e5;border-radius:12px;box-shadow:inset 0 1px 0 #ffffff0a;transition:background .2s,transform .2s}.pass-flip svg{width:17px;height:17px;stroke:currentColor;stroke-width:1.3;stroke-linecap:round;stroke-linejoin:round}.pass-flip:hover{background:#d3e7ff11}.pass-flip:active{transform:scale(.94)}.pass:has(.card-open:hover){box-shadow:0 -1px 0 #ffffff20,0 11px 25px #10141b25,inset 0 1px 0 #ffffff10}.pass-copy{padding:9px 0}.pass-benefit{font-size:21px}.pass-caption{font-size:10px}.merchant-name{max-width:100%}.card-expiry{gap:2px}.coupon-turn{transform-origin:center center}.coupon-turn [hidden]{display:none!important}.pass-back{display:block;aspect-ratio:auto;min-height:185px;margin:0 0 18px!important;padding:22px;animation:none}.reverse-head{display:flex;justify-content:space-between;align-items:center;gap:16px;position:relative;z-index:1;font-size:12px;min-height:30px}.reverse-head .pass-flip{position:relative;right:auto;bottom:auto;flex-shrink:0}.pass-back h3{position:relative;z-index:1;font-size:18px;font-weight:500;margin:15px 0 6px;letter-spacing:-.4px}.reverse-status{position:relative;z-index:1;color:#bac8da;font-size:10px;margin:0 0 10px}.pass-back .detail-group{position:relative;z-index:1;border-color:#c6daf71a;padding:13px 0}.pass-back .detail-group:last-child{border:0;padding-bottom:0}.pass-back .detail-group .label{color:#a8b7cb;font-size:8px;letter-spacing:.5px}.pass-back .detail-group p{color:#e0e7f2;font-size:12px;line-height:1.6}.pass-back .pass-flip{pointer-events:auto}

/* Soft physical controls and floating glass, following the wallet references. */
:root{background:#eef0f7;color:#263345;--muted:#8590a2}
body{background:radial-gradient(ellipse at 94% 2%,#d6e6fb9c,transparent 48%),radial-gradient(ellipse at 4% 48%,#e5e2f58f,transparent 48%),linear-gradient(150deg,#f3f4f9,#eaeef6);background-attachment:fixed}
.wallet-app{padding-top:calc(26px + var(--safe-top));padding-bottom:calc(125px + var(--safe-bottom))}.topbar{margin-bottom:34px}.wordmark{color:#31405a;font-size:22px;letter-spacing:-.75px}.brand-dots i{background:linear-gradient(150deg,#a8d8ff,#4894cd);box-shadow:inset 0 1px 0 #ffffffae,0 2px 3px #5c8dac25}
.avatar{width:43px;height:43px;border:1px solid #ffffffd9;background:linear-gradient(140deg,#f7fbff,#d8e8f5);color:#5382a8;box-shadow:5px 7px 13px #8195b52a,-4px -4px 11px #ffffffea,inset 0 1px 0 #fff;transition:transform .2s,box-shadow .2s}.avatar:hover{transform:translateY(-1px)}.avatar:active{transform:translateY(1px);box-shadow:inset 2px 2px 5px #8195b529,inset -2px -2px 5px #fff}
h1{font-size:31px;font-weight:650;letter-spacing:-1.2px;color:#263244}.intro{font-size:12px;color:#8a93a3;margin:10px 0 28px}.section-label{font-size:11px;color:#8a94a5;letter-spacing:.1px;margin-bottom:17px}.count{padding:3px 8px;background:linear-gradient(145deg,#f8faff,#e7edf7);border:1px solid #ffffffdb;box-shadow:2px 3px 6px #8394b21c,inset 0 1px 0 #fff;color:#6e879f}
.stack{padding-bottom:15px;perspective:1000px}.pass{border-color:#e2efff12;background:radial-gradient(ellipse at 0% -25%,#c2dcff38,transparent 62%),radial-gradient(ellipse at 100% 110%,#3d72a118,transparent 58%),repeating-linear-gradient(132deg,transparent 0,transparent 3px,#e0ecff04 3.5px,#00000008 4px,transparent 4.5px,transparent 7px),linear-gradient(120deg,#303c4d,#222a36 52%,#181e28);box-shadow:0 2px 1px #0c14281a,0 12px 20px -9px #17273d54,0 28px 35px -20px #30435f47,inset 0 1px 0 #edf6ff38,inset 1px 0 0 #d9ebff12,inset -1px 0 0 #00000038,inset 0 -2px 0 #070d1675;transition:transform .28s ease,box-shadow .28s ease}
.pass:not(:first-child){box-shadow:0 -2px 8px #0d15282b,0 -1px 0 #d4e6ff25,0 2px 1px #0c14281a,0 12px 20px -9px #17273d54,0 28px 35px -20px #30435f47,inset 0 1px 0 #edf6ff38,inset 1px 0 0 #d9ebff12,inset 0 -2px 0 #070d1675}
.pass::after{inset:0;padding:1px;box-shadow:none;background:linear-gradient(130deg,#f3f9ff69 0%,#b5d5ff13 20%,#d2e4ff0a 56%,#83a9d62c 80%,#edf6ff39);-webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);-webkit-mask-composite:xor;mask-composite:exclude}.glass-corner{width:55px;height:55px;background:linear-gradient(135deg,#ffffff36,#d0e4ff12 32%,transparent 70%);backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px)}.pass-flip{background:linear-gradient(135deg,#d4e7ff16,#c1ddff05);border-color:#d7e7ff1e;box-shadow:0 3px 7px #080e1926,inset 0 1px 0 #eff8ff1c,inset 0 -1px 0 #00000020;backdrop-filter:blur(9px);-webkit-backdrop-filter:blur(9px)}.pass:has(.card-open:hover){transform:translateY(-2px);box-shadow:0 2px 1px #0c14281a,0 14px 22px -8px #17273d66,0 31px 39px -20px #30435f52,inset 0 1px 0 #edf6ff48,inset 0 -2px 0 #070d1675}
.helper{font-size:10px;color:#9aa2af;margin:18px 0 25px}.quick-actions{display:flex;justify-content:center;gap:27px;margin:0 auto 24px}.quick-actions>button{border:0;background:none;padding:0;display:flex;align-items:center;flex-direction:column;gap:11px;color:#67768a;font-size:10px;min-width:65px}.action-tile{width:61px;height:61px;display:grid;place-items:center;border-radius:20px;background:linear-gradient(140deg,#ffffffeb 0%,#f4f6fceb 48%,#e7ebf5ed 100%);border:1px solid #ffffffed;box-shadow:6px 9px 16px #7b89a32e,-4px -4px 12px #ffffffec,inset 0 1px 0 #fff,inset 0 -1px 0 #a2b4d020;transition:transform .22s ease,box-shadow .22s ease}.action-tile svg{height:24px;width:24px;stroke:#46546b;stroke-width:1.35;stroke-linecap:round;stroke-linejoin:round}.action-primary{background:radial-gradient(ellipse at 35% 0%,#637185aa,transparent 65%),linear-gradient(160deg,#364252,#151e2b 85%);border-color:#3e4b5d;box-shadow:5px 8px 14px #34466438,-3px -3px 10px #ffffffdb,inset 0 1px 0 #9eafc442,inset 0 -1px 0 #07101d80}.action-primary svg{stroke:#e7effa}.quick-actions>button:hover .action-tile{transform:translateY(-3px);box-shadow:6px 12px 18px #7b89a338,-4px -4px 12px #ffffffec,inset 0 1px 0 #fff}.quick-actions>button:active .action-tile{transform:translateY(1px) scale(.97)}
.bottom-nav{width:calc(100% - 36px);max-width:476px;bottom:calc(17px + var(--safe-bottom));padding:7px 12px;gap:8px;border:1px solid #ffffffde;border-radius:30px!important;background:linear-gradient(130deg,#ffffffc7,#f9faff94 55%,#edf2fbaf);box-shadow:0 12px 27px #69799136,0 3px 6px #8a99b51a,inset 0 1px 0 #fff,inset 0 -1px 0 #b4c3db24;backdrop-filter:blur(24px);-webkit-backdrop-filter:blur(24px)}.bottom-nav button{min-width:0;flex:1;padding:8px 12px;gap:4px;border-radius:23px;color:#8d95a4;font-size:9px;transition:background .2s,box-shadow .2s}.bottom-nav button svg{height:23px;width:23px;stroke-width:1.5}.bottom-nav button.selected{color:#3c6787;background:linear-gradient(140deg,#ffffffc9,#e2eaf785);box-shadow:inset 0 1px 0 #fff,0 2px 5px #9baac225}
.sheet{background:linear-gradient(145deg,#f8fafffa,#eef2faf5);box-shadow:0 -12px 60px #132b4c26,inset 0 1px 0 #fff;border:1px solid #ffffffdc;border-bottom:0;backdrop-filter:blur(22px);-webkit-backdrop-filter:blur(22px)}.sheet-close{background:linear-gradient(140deg,#fcfdff,#e2eaf5);border:1px solid #ffffffde;box-shadow:2px 3px 6px #8598b32a,inset 0 1px 0 #fff;color:#8495aa}.qr-panel{background:#fff;border:1px solid #fff;box-shadow:0 8px 22px #758aab18,inset 0 0 0 1px #e8eef8}.primary{background:linear-gradient(145deg,#478fbd,#24658f);border:1px solid #397ca7;box-shadow:0 6px 12px #326c9230,inset 0 1px 0 #b8e0fa50,inset 0 -1px 0 #15496b33}.secondary{background:linear-gradient(145deg,#f8fcff,#dceaf8);color:#507c9c;border:1px solid #ffffffed;box-shadow:3px 5px 12px #7d9cbb20,inset 0 1px 0 #fff}.history-item,.profile-stat{background:linear-gradient(135deg,#ffffffed,#f8faffc4);border-color:#ffffffef;box-shadow:0 7px 17px #7f91ae14,inset 0 1px 0 #fff}.history-icon{background:linear-gradient(145deg,#f5fbff,#dfeaf6);border:1px solid #ffffffd1;box-shadow:2px 3px 7px #8199b222,inset 0 1px 0 #fff;color:#7696b2}.history-filter button{background:linear-gradient(145deg,#f7f9fe,#e5eaf4);border:1px solid #ffffffbb;box-shadow:2px 3px 6px #8291ab17,inset 0 1px 0 #fff}.history-filter button.selected{background:linear-gradient(145deg,#eaf5fe,#dae8f7);color:#4a7ca2}
@media(max-width:360px){.quick-actions{gap:20px}.action-tile{width:56px;height:56px}.bottom-nav{width:calc(100% - 26px)}}
/* Only the exposed business header stays visible on cards behind the top one. */
.stack>.pass:not(:last-child) .pass-copy,.stack>.pass:not(:last-child) .pass-foot{opacity:0}
/* Reference background belongs to the coupon; the application shell stays light. */
.pass{background:linear-gradient(120deg,#c9dfff08,transparent 60%),url('/static/card-waves.svg') center/cover no-repeat,#1e252e}
/* A closed wallet deck opens into individually accessible coupons. */
.stack{display:grid;align-items:start;padding:var(--deck-peek) 0 0;gap:16px}
.coupon-slot{min-width:0;position:relative;transform-origin:center top}
.coupon-slot .pass{margin:0!important;animation:none}
.coupon-slot [hidden]{display:none!important}
.stack.is-collapsed{gap:0}
.is-collapsed .coupon-slot{grid-area:1/1;align-self:start;z-index:var(--order);transform:translateY(calc(var(--depth)*-10px)) scale(calc(1 - var(--depth)*.035))}
.is-collapsed .coupon-slot[inert]{pointer-events:none;max-height:190px;overflow:hidden;border-radius:20px}
.stack.is-expanded{padding-top:0}
.stack.is-expanded .coupon-slot{transform:none}
.stack .pass-copy,.stack .pass-foot{opacity:1!important}
/* Tint the whole material, including the exposed edge in the closed deck. */

.pass-back{overflow:visible}.pass-back .detail-group{overflow-wrap:anywhere}
.is-flipped .pass-back{margin:0!important}
.collapse-deck{display:block;margin:0 auto 24px;padding:10px 18px;border:1px solid #ffffffd9;border-radius:14px;background:#ffffff65;color:#788a9f;font-size:11px;box-shadow:0 3px 10px #617a9810}
.collapse-deck[hidden]{display:none}
.modal-open{overflow:hidden}
.sheet.qr-screen{inset:0;bottom:0;margin:0;width:100%;max-width:none;height:100dvh;max-height:none;border:0;border-radius:0;padding:0;background:#f4f6fb;animation:none;box-shadow:none;backdrop-filter:none}
.qr-screen .sheet-handle{display:none}
.qr-screen .sheet-close{top:calc(20px + var(--safe-top));right:22px;width:36px;height:36px;z-index:2}
.qr-screen #sheet-content{height:100%;min-height:350px}
.qr-view{position:relative;min-height:100%;padding:calc(32px + var(--safe-top)) 26px calc(40px + var(--safe-bottom));display:flex;flex-direction:column;align-items:center;max-width:520px;margin:auto}
.qr-merchant{font-size:10px;font-weight:500;letter-spacing:.1px;color:#8793a3;margin:0;padding:0 45px;text-align:center;line-height:1.4;max-width:100%;overflow-wrap:anywhere}
.qr-stage{flex:1;width:100%;display:flex;align-items:center;justify-content:center;padding:50px 0}
.qr-stage img{display:block;width:min(100%,310px);height:auto;aspect-ratio:1;background:white;border:14px solid white;border-radius:18px;box-shadow:0 12px 40px #526e9110}
.qr-transfer{display:flex;align-items:center;justify-content:center;gap:10px;width:auto;min-width:190px;font-size:13px;font-weight:500;padding:15px 24px}
.qr-transfer svg{height:18px;width:18px;stroke:currentColor;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}
@media(max-height:500px){.qr-stage{padding:20px 0}.qr-stage img{width:190px}.qr-view{padding-bottom:18px}}
/* Compact header reserves a quiet spot for the future brand mark. */
.topbar{display:grid;grid-template-columns:30px minmax(0,1fr) 40px;gap:12px;align-items:center;margin:0 -22px 29px;padding:0 22px 25px;border-bottom:1px solid #ffffffaa}
.logo-space{width:30px;height:36px}
.header-copy{min-width:0}.header-copy h1{font-size:24px;line-height:1.15;letter-spacing:-.8px;font-weight:650}.header-copy p{font-size:10px;line-height:1.5;color:#8a93a3;margin:7px 0 0;max-width:220px}
.topbar .avatar{width:40px;height:40px}
.qr-view{max-width:none;padding-left:8px;padding-right:8px}
.qr-stage{padding:24px 0}
.qr-stage img{width:min(100%,calc(100dvh - var(--safe-top) - var(--safe-bottom) - 200px));border:10px solid white;border-radius:14px}
.coupon-slot .pass{transform-origin:center center;backface-visibility:hidden;-webkit-backface-visibility:hidden}
.coupon-slot:has([aria-busy=true]) .card-open:hover,.coupon-slot[aria-busy=true] .pass:has(.card-open:hover){transform:none}
@media(max-width:360px){.topbar{margin-left:-16px;margin-right:-16px;padding-left:16px;padding-right:16px;gap:9px;grid-template-columns:25px minmax(0,1fr) 36px}.logo-space{width:25px}.header-copy h1{font-size:22px}.topbar .avatar{width:36px;height:36px}}
