/* Realistic credit cards shared by the landing page, wallet and dashboard */
.tbc{position:relative;width:100%;aspect-ratio:1.586/1;container-type:inline-size;perspective:1100px;cursor:pointer;border-radius:14px;-webkit-tap-highlight-color:transparent}
.tbc:focus-visible{outline:3px solid #2563EB;outline-offset:4px;border-radius:16px}
.tbc-in{position:absolute;inset:0;transform-style:preserve-3d;transition:transform .7s cubic-bezier(.3,.8,.3,1)}
.tbc.flip .tbc-in{transform:rotateY(180deg)}
.tbc-f,.tbc-b{position:absolute;inset:0;border-radius:3.7cqw;overflow:hidden;backface-visibility:hidden;-webkit-backface-visibility:hidden;color:var(--ink,#fff);
 background:linear-gradient(125deg,var(--hi) 0%,var(--base) 42%,var(--lo) 100%);
 box-shadow:0 1px 1px rgba(10,16,36,.25),0 6px 14px rgba(10,16,36,.18),0 22px 44px rgba(10,16,36,.22)}
.tbc-b{transform:rotateY(180deg)}
/* fine grain */
.tbc-f::before,.tbc-b::before{content:"";position:absolute;inset:0;opacity:.16;mix-blend-mode:overlay;pointer-events:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1.4 -.3'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E")}
/* light sweep and the thin lit edge of a plastic card */
.tbc-f::after,.tbc-b::after{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;background:linear-gradient(112deg,rgba(255,255,255,.20) 0%,rgba(255,255,255,.05) 26%,transparent 38%,transparent 60%,rgba(255,255,255,.09) 78%,transparent 92%);box-shadow:inset 0 1px 0 rgba(255,255,255,.35),inset 0 -1px 0 rgba(0,0,0,.35),inset 1px 0 0 rgba(255,255,255,.12),inset -1px 0 0 rgba(0,0,0,.15)}
.tbc-art{position:absolute;inset:0;width:100%;height:100%;opacity:.13;pointer-events:none}
.tbc-f>*:not(.tbc-art),.tbc-b>*{position:absolute}
.tbc-name{left:6.2%;top:8%;max-width:66%;font:700 5cqw/1.15 Sora,Inter,system-ui,sans-serif;letter-spacing:.01em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tbc-kind{right:6.2%;top:9.2%;font:600 3.1cqw/1 Inter,system-ui,sans-serif;letter-spacing:.14em;text-transform:uppercase;opacity:.75}
.tbc-chip{left:6.2%;top:31%;width:14.2%;filter:drop-shadow(0 .4cqw .5cqw rgba(0,0,0,.35))}
.tbc-nfc{left:23%;top:34.5%;width:6%;opacity:.85}
.tbc-num{left:6.2%;right:6.2%;top:57%;font:500 6.1cqw/1 "SF Mono","Roboto Mono",Menlo,Consolas,monospace;letter-spacing:.07em;white-space:nowrap;text-shadow:0 -.15cqw .1cqw rgba(0,0,0,.45),0 .2cqw .15cqw rgba(255,255,255,.22)}
.tbc-num span{display:inline-block;margin-right:3cqw}
.tbc-l{left:6.2%;bottom:8%}
.tbc-m{left:38%;bottom:8%}
.tbc-cap{display:block;font:600 3.2cqw/1 Inter,system-ui,sans-serif;letter-spacing:.06em;text-transform:uppercase;opacity:.82;margin-bottom:1.5cqw}
.tbc-val{display:block;font:700 4.5cqw/1 Inter,system-ui,sans-serif;font-variant-numeric:tabular-nums}
.tbc-net{right:6.2%;bottom:7.4%;height:15%;display:flex;align-items:center}
.tbc-net svg{height:100%;width:auto;display:block}
.tbc-net b{font:italic 800 8cqw/1 Inter,Arial,sans-serif;letter-spacing:-.03em}
.tbc-net b.s{font:800 4.6cqw/1 Inter,Arial,sans-serif;letter-spacing:.06em}
.tbc-flag{right:6.2%;top:20%;padding:1.5cqw 3cqw;border-radius:99px;font:700 3.3cqw/1 Inter,system-ui,sans-serif;background:#FCD34D;color:#1F2937;box-shadow:0 .5cqw 1.4cqw rgba(0,0,0,.25);z-index:1}
.tbc-flag.red{background:#DC2626;color:#fff}
.tbc-b .stripe{left:0;right:0;top:9%;height:19%;background:linear-gradient(#17171b,#2a2a30 45%,#101013)}
.tbc-b dl{left:6.2%;right:6.2%;top:36%;margin:0;display:grid;grid-template-columns:repeat(3,1fr);gap:4.6cqw 3cqw}
.tbc-b dl div{min-width:0}
.tbc-b dt{font:600 3.2cqw/1 Inter,system-ui,sans-serif;opacity:.85;margin-bottom:1.4cqw}
.tbc-b dd{margin:0;font:700 4.4cqw/1.1 Inter,system-ui,sans-serif;font-variant-numeric:tabular-nums;white-space:nowrap}
.tbc-b .hint{left:6.2%;bottom:6.5%;font:500 2.9cqw/1 Inter,system-ui,sans-serif;opacity:.85}
@media(hover:hover){.tbc:not(.flip):hover .tbc-in{transform:rotateX(4deg) rotateY(-6deg) translateY(-3px)}}
@media(prefers-reduced-motion:reduce){.tbc-in{transition:none!important}.tbc:hover .tbc-in{transform:none}.tbc.flip:hover .tbc-in{transform:rotateY(180deg)}}
/* The app theme recolors generic text tags; card text always uses the card's own ink */
.tbc .tbc-in :is(div,span,dt,dd,b):not(.tbc-flag){color:var(--ink,#fff)!important}
.tbc .tbc-flag{color:#1F2937!important}.tbc .tbc-flag.red{color:#fff!important}
