/* Virtual card page */
.view { display: none; }
.view.on { display: block; animation: fadein .4s ease both; }
.card-stage { background: var(--ink); border-radius: 36px; padding: 40px; display: grid; place-items: center; gap: 30px; min-height: 380px; position: relative; overflow: hidden; }
.card-stage::before { content: ""; position: absolute; width: 360px; height: 360px; border-radius: 50%; background: var(--green); filter: blur(90px); opacity: .25; top: -120px; right: -80px; }
.card-stage .vcard { position: relative; z-index: 1; }
.preview-card { max-width: 360px; transform: rotate(-6deg); transition: transform .5s cubic-bezier(.3,1.3,.5,1); }
.card-stage:hover .preview-card { transform: rotate(-1deg) translateY(-4px); }
.perks { position: relative; z-index: 1; display: grid; gap: 6px; width: 100%; max-width: 360px; }
.perks div { display: flex; gap: 10px; align-items: center; font-weight: 700; color: #d4d6da; }
.perks div::before { content: "✓"; width: 22px; height: 22px; border-radius: 50%; background: var(--green); color: #0b0b0c; display: grid; place-items: center; font-size: 12px; flex: none; }
.amounts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px; }
.amounts .pill-opt { padding: 14px 0; }
.paywith { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.paywith .asset-picker-trigger { background: var(--bg); box-shadow: none; max-width: none; }
.breakdown { padding: 4px 18px; margin: 4px 0 12px; }
.total-row { display: flex; justify-content: space-between; align-items: baseline; font-weight: 800; margin: 0 4px 14px; }
.total-row strong { font-size: 30px; letter-spacing: -.04em; }
.status-line { font-weight: 700; color: var(--gray); text-align: center; margin: 12px 0 0; }
.status-line:empty { display: none; }
.status-line a { color: var(--green-d); }
.hidden { display: none !important; }
.card-row { display: grid; grid-template-columns: 1fr 440px; gap: 24px; align-items: start; margin-bottom: 28px; }
.card-stage.small { min-height: 300px; padding: 30px; }
.card-stage.small .vcard { max-width: 360px; }
.card-stage.frozen .vcard { filter: grayscale(1) brightness(.7); }
.frozen-tag { position: absolute; z-index: 3; background: #fff; color: #0b0b0c; padding: 8px 14px; border-radius: 999px; font-weight: 800; }
.balance { font-size: 48px; font-weight: 800; letter-spacing: -.05em; line-height: 1.05; }
.actions4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.act { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 4px; border-radius: 18px; background: var(--bg); font-weight: 800; font-size: 13px; transition: background .15s, transform .12s; }
.act:hover:not(:disabled) { background: var(--line); }
.act:active:not(:disabled) { transform: scale(.95); }
.act:disabled { opacity: .4; cursor: not-allowed; }
.act i { font-style: normal; font-size: 20px; }
.secret-grid { margin-top: 14px; background: var(--bg); border-radius: 18px; padding: 12px 16px; animation: fadein .3s ease both; }
.secret-grid .copy { width: 100%; font-size: 17px; letter-spacing: .08em; }
.empty-cards { text-align: center; padding: 48px 20px; }
@media (max-width: 960px) { .card-row { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .card-stage { padding: 26px 20px 30px; min-height: 0; } .amounts, .actions4 { grid-template-columns: repeat(2, 1fr); } .balance { font-size: 40px; } }
body.private .card-stage { background: #1b1c20; }
/* Pay-with pickers (rendered by virtual-card.js) */
.paywith .asset-picker { flex: 1 1 160px; min-width: 0; }
.paywith .asset-picker-trigger { width: 100%; justify-content: space-between; padding: 8px 14px 8px 8px; }
.paywith .asset-picker-current img, .vcard-choice img { width: 28px; height: 28px; border-radius: 50%; flex: none; }
.vcard-picker-portal { position: fixed; z-index: 70; display: none; background: var(--white); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: 10px; min-width: 240px; max-width: 92vw; }
.vcard-picker-portal.open { display: block; animation: fadein .2s ease both; }
.vcard-choice-list { max-height: 300px; overflow-y: auto; margin-top: 8px; display: grid; gap: 2px; }
.vcard-choice { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; text-align: left; width: 100%; }
.vcard-choice:hover, .vcard-choice.selected { background: var(--bg); }
.vcard-choice[hidden] { display: none; }
.vcard-choice span { display: flex; flex-direction: column; line-height: 1.15; }
.vcard-choice small { color: var(--gray); font-weight: 700; font-size: 12px; }
@media (max-width: 600px) { .vcard .num { font-size: 16px; letter-spacing: .1em; white-space: nowrap; } }
