/* cards-v2.css — Virtual Dollar Card control page */
/* ─── Header ─────────────────────────────────────────── */
.cards-header{display:flex;align-items:center;gap:12px;padding:16px 0 12px}
.cards-back{background:none;border:none;cursor:pointer;color:#6b7280;display:flex;padding:4px}
.cards-back:hover{color:#e1147a}
.cards-title{flex:1;font-size:17px;font-weight:800;color:#111827;margin:0}
.cards-new-btn{background:#fff1f2;color:#e1147a;border:1px solid #fecdd3;padding:7px 14px;border-radius:16px;font-size:12px;font-weight:800;cursor:pointer;white-space:nowrap}
.cards-new-btn:hover{background:#e1147a;color:#fff}

/* ─── Empty state ─────────────────────────────────────── */
.cards-empty{text-align:center;padding:60px 20px}
.cards-empty-icon{width:64px;height:64px;margin:0 auto 16px;background:#f3f4f6;border-radius:16px;display:flex;align-items:center;justify-content:center;color:#9ca3af}
.cards-empty-icon svg{width:32px;height:32px}
.cards-empty h3{font-size:16px;font-weight:800;color:#111827;margin:0 0 6px}
.cards-empty p{font-size:13px;color:#6b7280;margin:0 0 20px}
.cards-create-btn{background:#e1147a;color:#fff;border:none;padding:12px 24px;border-radius:12px;font-size:13px;font-weight:800;cursor:pointer}
.cards-create-btn:hover{background:#be123c}

/* ─── Content wrapper ─────────────────────────────────── */
.cards-content{display:flex;flex-direction:column;gap:16px}

/* ─── 3D Virtual Dollar Card ──────────────────────────── */
.vc-container{width:100%;perspective:1000px}
.vc-card{width:100%;aspect-ratio:1.586;background:linear-gradient(135deg,#0f172a 0%,#1e293b 50%,#334155 100%);border-radius:20px;padding:22px 24px;color:#fff;display:flex;flex-direction:column;justify-content:space-between;box-shadow:0 12px 28px -6px rgba(15,23,42,.35);position:relative;overflow:hidden;border:1px solid rgba(255,255,255,.15);transition:background .3s}
.vc-card.frozen{background:linear-gradient(135deg,#475569 0%,#64748b 100%)}
.vc-ambient{position:absolute;top:-50px;right:-50px;width:150px;height:150px;background:radial-gradient(circle,rgba(225,20,122,.25) 0%,rgba(255,255,255,0) 70%);border-radius:50%;pointer-events:none}
.vc-top-row{display:flex;justify-content:space-between;align-items:center}
.vc-issuer{font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:rgba(255,255,255,.7)}
.vc-brand{font-size:18px;font-weight:800;font-style:italic;letter-spacing:-.04em}
.vc-balance-section{margin-top:4px}
.vc-balance-label{font-size:11px;color:rgba(255,255,255,.7);font-weight:600}
.vc-balance-amount{font-size:28px;font-weight:800;letter-spacing:-.02em}
.vc-pan-row{display:flex;align-items:center;justify-content:space-between}
.vc-pan{font-family:'JetBrains Mono',monospace;font-size:16px;font-weight:700;letter-spacing:.12em;text-shadow:0 1px 2px rgba(0,0,0,.5)}
.vc-eye{background:none;border:none;cursor:pointer;color:rgba(255,255,255,.7);padding:2px;display:flex}
.vc-eye:hover{color:#fff}
.vc-eye svg{width:18px;height:18px}
.vc-bottom-row{display:flex;justify-content:space-between;align-items:flex-end}
.vc-field-label{font-size:9px;color:rgba(255,255,255,.6);display:block;margin-bottom:2px}
.vc-holder{font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:rgba(255,255,255,.9)}
.vc-exp-cvv{display:flex;gap:16px;font-size:12px;font-weight:700;color:rgba(255,255,255,.9)}

/* ─── Quick Actions ───────────────────────────────────── */
.vc-actions{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.vc-action-btn{background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:14px 8px;display:flex;flex-direction:column;align-items:center;gap:7px;cursor:pointer;transition:all .15s}
.vc-action-btn:hover{border-color:#fecdd3;transform:translateY(-1px)}
.vc-action-icon{width:36px;height:36px;border-radius:10px;display:flex;align-items:center;justify-content:center;background:#fff1f2;color:#e1147a}
.vc-action-icon svg{width:18px;height:18px}
.vc-action-btn span{font-size:11.5px;font-weight:700;color:#111827}
.vc-action-icon.frozen-state{background:#fee2e2;color:#ef4444}

/* ─── Sections (address, transactions) ────────────────── */
.vc-section{background:#fff;border:1px solid #e5e7eb;border-radius:20px;padding:16px;box-shadow:0 4px 20px -2px rgba(15,23,42,.04);display:flex;flex-direction:column;gap:12px}
.vc-section-head{display:flex;align-items:center;justify-content:space-between}
.vc-section-title{font-size:13px;font-weight:800;color:#111827;display:flex;align-items:center;gap:6px}
.vc-section-title svg{width:15px;height:15px}
.vc-section-sub{font-size:11px;color:#9ca3af;font-weight:600}
.vc-copy-link{background:none;border:none;color:#e1147a;font-size:12px;font-weight:700;cursor:pointer}

/* ─── Address grid ────────────────────────────────────── */
.vc-address-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;background:#fafafb;border-radius:12px;padding:12px;border:1px solid #e5e7eb}
.vc-addr-field .lbl{font-size:10px;color:#9ca3af;font-weight:600;display:block;margin-bottom:2px}
.vc-addr-field .val{font-size:12px;font-weight:700;color:#374151}

/* ─── Transactions ────────────────────────────────────── */
.vc-tx-list{display:flex;flex-direction:column;gap:0}
.vc-tx-item{display:flex;align-items:center;justify-content:space-between;padding:10px 0;border-bottom:1px solid #f3f4f6}
.vc-tx-item:last-child{border-bottom:none}
.vc-tx-merchant{display:flex;align-items:center;gap:10px}
.vc-tx-icon{width:34px;height:34px;border-radius:8px;background:#f3f4f6;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:11px;color:#374151;flex-shrink:0}
.vc-tx-icon.declined{background:#fee2e2;color:#ef4444}
.vc-tx-info h4{font-size:13px;font-weight:700;color:#111827;margin:0 0 2px}
.vc-tx-info span{font-size:10.5px;color:#9ca3af}
.vc-tx-amount{text-align:right}
.vc-tx-amount strong{font-size:13px;font-weight:800;color:#111827;display:block}
.vc-tx-amount strong.declined{color:#ef4444}
.vc-tx-amount .vc-tx-status{font-size:10px;font-weight:700;color:#10b981}
.vc-tx-amount .vc-tx-status.declined{color:#ef4444}
.vc-tx-empty{padding:20px;text-align:center;font-size:13px;color:#9ca3af}

/* ─── Modal (shared gift-cards modal classes) ─────────── */
.gc-modal-overlay{position:fixed;inset:0;background:rgba(15,23,42,.5);backdrop-filter:blur(2px);z-index:1200;display:none;align-items:flex-end;justify-content:center}
.gc-modal-sheet{width:100%;max-width:480px;background:#fff;border-radius:20px 20px 0 0;padding:20px;display:flex;flex-direction:column;gap:14px;box-shadow:0 -10px 30px rgba(0,0,0,.15);max-height:90vh;overflow-y:auto}
.gc-modal-head{display:flex;justify-content:space-between;align-items:center}
.gc-modal-title{font-size:16px;font-weight:800;color:#111827}
.gc-modal-close{background:#f3f4f6;border:none;width:44px;height:44px;border-radius:50%;cursor:pointer;display:flex;align-items:center;justify-content:center;color:#4b5563;font-size:16px;font-weight:700}

/* ─── Fund / New Card form ────────────────────────────── */
.vc-form-label{font-size:11px;font-weight:800;color:#6b7280;text-transform:uppercase;letter-spacing:.03em;margin-bottom:6px;display:block}
.vc-modal-input{width:100%;background:#fafafb;border:1px solid #e5e7eb;border-radius:8px;padding:11px 14px;font-size:14px;font-weight:700;color:#111827;outline:none}
.vc-modal-input:focus{border-color:#e1147a;background:#fff}
.vc-fund-rate{font-size:12px;color:#6b7280;margin-top:6px}
.vc-fund-total{display:flex;justify-content:space-between;align-items:center;padding:12px 0;border-top:1px dashed #e5e7eb;margin-top:8px;font-size:14px;font-weight:800;color:#111827}
.vc-receipt-line{display:flex;justify-content:space-between;color:#6b7280}
.vc-receipt-total{border-top:1px dashed #e5e7eb;padding-top:8px;font-weight:800;font-size:14px;color:#111827}

/* ─── Catalog (new) ───────────────────────────────────────────────── */
#vc-root{padding:0 16px 32px}
.vc-hero{display:flex;align-items:center;gap:14px;padding:16px 18px;background:linear-gradient(135deg,#fff1f2 0%,#ffe4e6 100%);border:1px solid #fecdd3;border-radius:16px;margin:16px 0 8px}
.vc-hero-icon{width:44px;height:44px;background:#e1147a;border-radius:12px;display:flex;align-items:center;justify-content:center;color:#fff;flex-shrink:0}
.vc-hero-icon svg{width:22px;height:22px;stroke:#fff}
.vc-hero-text h2{font-size:16px;font-weight:800;color:#111827;margin:0 0 2px}
.vc-hero-text p{font-size:12px;color:#6b7280;margin:0;line-height:1.4}
.vc-catalog-search{position:relative;margin-bottom:16px}
.vc-catalog-search svg{position:absolute;left:14px;top:50%;transform:translateY(-50%);width:18px;height:18px;color:#9ca3af;pointer-events:none}
.vc-catalog-search input{width:100%;padding:12px 14px 12px 44px;border:1px solid #e5e7eb;border-radius:12px;background:#f9fafb;font-size:13px;color:#111827;outline:none}
.vc-catalog-search input:focus{border-color:#e1147a;background:#fff}
.vc-brand-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.vc-brand-tile{display:flex;flex-direction:column;align-items:center;gap:8px;padding:14px 10px;background:#fff;border:1px solid #e5e7eb;border-radius:14px;cursor:pointer;transition:all .15s}
.vc-brand-tile:hover{border-color:#fecdd3;background:#fff1f2}
.vc-avatar{width:44px;height:44px;border-radius:12px;background:linear-gradient(135deg,#0ea5a4 0%,#14b8a6 100%);color:#fff;font-weight:800;font-size:18px;display:flex;align-items:center;justify-content:center}
.vc-brand-tile strong{font-size:13px;font-weight:700;color:#111827;text-align:center}
.vc-brand-count{font-size:11px;color:#9ca3af;text-align:center}
.vc-brand-price{font-size:12px;font-weight:700;color:#e1147a;text-align:center;margin-top:2px}
.vc-empty{text-align:center;padding:40px 20px;color:#9ca3af;font-size:13px}

/* Brand sheet options */
.vc-option-row{display:flex;align-items:center;justify-content:space-between;width:100%;padding:14px 16px;border:1px solid #e5e7eb;border-radius:10px;background:#fff;cursor:pointer;transition:all .1s}
.vc-option-row:hover{background:#fafafa;border-color:#fecdd3}
.vc-option-face{font-weight:800;color:#111827;font-size:14px}
.vc-option-meta{color:#6b7280;font-size:12px;flex:1;text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.vc-option-price{font-weight:800;color:#e1147a;font-size:14px}
.vc-var-row{margin-top:12px;padding:12px;background:#f9fafb;border-radius:10px;border:1px dashed #e5e7eb;display:flex;flex-direction:column;gap:8px}
.vc-var-row .vc-form-label{font-size:12px;font-weight:700;color:#374151}
.vc-var-row .vc-modal-input{padding:12px;border-radius:10px;border:1px solid #e5e7eb;font-size:13px}
.vc-var-row .vc-submit-btn{margin-top:4px}

/* Result modal */
.vc-result-label{font-weight:800;color:#111827;font-size:15px;margin-bottom:6px}
.vc-result-total{font-size:18px;font-weight:800;color:#e1147a;margin-bottom:4px}
.vc-result-ref{font-size:11px;color:#9ca3af;margin-bottom:12px}
.vc-result-details{border-top:1px solid #e5e7eb;padding-top:12px;margin-top:12px}
.vc-result-line{display:flex;justify-content:space-between;padding:8px 0;border-bottom:1px solid #f3f4f6}
.vc-result-line .lbl{color:#6b7280}
.vc-result-line strong{color:#111827;font-weight:800;font-family:JetBrains Mono,monospace}
.vc-result-note{font-size:11px;color:#9ca3af;margin:12px 0 0}

/* Small avatar for boost/quick */
.vc-avatar{width:44px;height:44px;border-radius:12px;background:linear-gradient(135deg,#0ea5a4 0%,#14b8a6 100%);color:#fff;font-weight:800;font-size:18px;display:flex;align-items:center;justify-content:center}

/* ============ v2.1 — My Cards + redesigned layout ============ */
#app-content > #alert{margin:0 16px}
.cards-header{padding:16px 16px 8px}

/* Section shells */
.vc-section-mine,.vc-section-browse{max-width:720px;margin:0 auto;padding:0 0 32px}
.vc-section-browse{border-top:1px solid #f1dce8;margin-top:20px;padding-top:18px}
.vc-section-head{display:flex;align-items:baseline;justify-content:space-between;margin-bottom:12px}
.vc-section-title{font-size:17px;font-weight:800;color:#171217;margin:0}
.vc-section-count{font-size:12px;color:#918793;font-weight:600}
.vc-section-sub{font-size:11px;color:#918793;font-weight:600;background:#f8fafc;border:1px solid #eef2f7;border-radius:999px;padding:3px 10px}

/* Hero */
.vc-hero{display:flex;align-items:center;gap:14px;padding:16px 18px;background:linear-gradient(135deg,#fff1f2 0%,#ffe4e6 100%);border:1px solid #fecdd3;border-radius:16px;margin-bottom:14px}
.vc-hero-icon{width:44px;height:44px;background:#e1147a;border-radius:12px;display:flex;align-items:center;justify-content:center;color:#fff;flex-shrink:0}
.vc-hero-icon svg{width:22px;height:22px}
.vc-hero-text h2{font-size:15px;font-weight:800;color:#171217;margin:0 0 2px}
.vc-hero-text p{font-size:12px;color:#6b7280;margin:0;line-height:1.4}

/* Search */
.vc-catalog-search{position:relative;margin-bottom:14px}
.vc-catalog-search svg{position:absolute;left:14px;top:50%;transform:translateY(-50%);width:17px;height:17px;color:#9ca3af;pointer-events:none}
.vc-catalog-search input{width:100%;box-sizing:border-box;padding:12px 14px 12px 44px;border:1px solid #e5e7eb;border-radius:12px;background:#f9fafb;font-size:13px;font-weight:600;color:#171217;outline:none}
.vc-catalog-search input:focus{border-color:#e1147a;background:#fff}

/* Brand grid */
.vc-brand-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:10px}
.vc-brand-tile{display:flex;flex-direction:column;align-items:center;gap:7px;padding:16px 10px 13px;background:#fff;border:1px solid #ececf1;border-radius:14px;cursor:pointer;transition:border-color .15s,background .15s;text-align:center;min-width:0}
.vc-brand-tile:hover{border-color:#fecdd3;background:#fffafa}
.vc-brand-tile strong{font-size:13px;font-weight:700;color:#171217;line-height:1.25;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.vc-brand-count{font-size:10.5px;color:#9ca3af;font-weight:500}
.vc-brand-price{font-size:11.5px;font-weight:700;color:#e1147a}
.vc-avatar{width:42px;height:42px;border-radius:12px;background:linear-gradient(135deg,#0d9488 0%,#14b8a6 100%);color:#fff;font-weight:800;font-size:17px;display:flex;align-items:center;justify-content:center}

/* Empty states */
.vc-empty-state{text-align:center;padding:36px 16px;background:#fafafa;border:1px dashed #e5e7eb;border-radius:16px}
.vc-empty-state.hidden{display:none}
.vc-empty-icon{width:52px;height:52px;margin:0 auto 12px;background:#fff;border:1px solid #eee;border-radius:14px;display:flex;align-items:center;justify-content:center;color:#c4c9d4}
.vc-empty-icon svg{width:26px;height:26px}
.vc-empty-state h3{font-size:14px;font-weight:800;color:#374151;margin:0 0 4px}
.vc-empty-state p{font-size:12px;color:#9ca3af;margin:0 0 14px}
.vc-browse-btn{background:#e1147a;color:#fff;border:none;border-radius:10px;padding:9px 18px;font-size:12px;font-weight:800;cursor:pointer}
.vc-empty{grid-column:1/-1;text-align:center;padding:40px 16px;color:#9ca3af;font-size:13px}

/* My Cards grid */
.vc-mine-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:12px}
.vc-my-card{position:relative;display:flex;flex-direction:column;gap:14px;padding:16px;border-radius:18px;border:none;cursor:pointer;color:#fff;text-align:left;min-height:150px;transition:transform .15s,box-shadow .15s}
.vc-my-card:hover{transform:translateY(-2px);box-shadow:0 12px 24px -8px rgba(17,24,39,.35)}
.vc-card-top{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}
.vc-card-brand{display:flex;align-items:center;gap:8px;font-size:12.5px;font-weight:700;color:#fff;min-width:0}
.vc-card-brand .vc-avatar{width:30px;height:30px;border-radius:9px;font-size:13px;flex-shrink:0}
.vc-card-brand span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.vc-card-status{font-size:10px;font-weight:800;padding:3px 9px;border-radius:999px;white-space:nowrap}
.vc-card-pan{font-family:'JetBrains Mono',monospace;font-size:16px;font-weight:700;letter-spacing:.08em;color:#f9fafb}
.vc-card-meta{display:flex;justify-content:space-between;font-size:11px;color:#d1d5db;font-weight:600}

/* Brand sheet options */
.vc-sheet-sub{font-size:12px;color:#9ca3af;margin:-6px 0 12px;font-weight:600}
#vc-sheet-options{display:flex;flex-direction:column;gap:8px;max-height:320px;overflow-y:auto}
.vc-option-row{display:flex;align-items:center;justify-content:space-between;width:100%;padding:13px 16px;border:1px solid #ececf1;border-radius:11px;background:#fff;cursor:pointer;transition:background .1s,border-color .1s;font-family:inherit}
.vc-option-row:hover{background:#fffafa;border-color:#fecdd3}
.vc-option-face{font-weight:800;color:#171217;font-size:14px}
.vc-option-price{font-weight:800;color:#e1147a;font-size:13.5px}

/* Detail / result modals */
.vc-detail-row{display:flex;align-items:center;justify-content:space-between;padding:10px 0;border-bottom:1px solid #f3f4f6;font-size:13px}
.vc-detail-row span:first-child{color:#6b7280;font-weight:600}
.vc-detail-row strong{color:#171217;font-weight:800}
.vc-detail-status{font-size:11px;font-weight:800;padding:3px 10px;border-radius:999px}
.vc-detail-code-block{margin-top:14px;padding:13px 14px;background:#f8fafc;border:1px solid #ececf1;border-radius:12px;display:flex;flex-direction:column;gap:8px}
.vc-detail-code-block .lbl{font-size:10px;font-weight:800;letter-spacing:.08em;color:#9ca3af}
.vc-detail-code-block code{font-family:'JetBrains Mono',monospace;font-size:15px;font-weight:700;color:#111827;word-break:break-all}
.vc-code-actions{display:flex;gap:8px}
.vc-copy-mini{background:#fff1f2;color:#e1147a;border:1px solid #fecdd3;border-radius:8px;padding:5px 12px;font-size:11px;font-weight:800;cursor:pointer}
.vc-copy-mini:hover{background:#e1147a;color:#fff}
.vc-detail-ref{font-size:11px;color:#9ca3af;margin-top:14px}

/* Result modal */
.vc-result-label{font-weight:800;color:#171217;font-size:15px;margin-bottom:6px}
.vc-result-total{font-size:19px;font-weight:800;color:#e1147a;margin-bottom:4px}
.vc-result-total span{font-size:11px;color:#9ca3af;font-weight:600}
.vc-result-ref{font-size:11px;color:#9ca3af;margin-top:12px}
.vc-result-note{font-size:11px;color:#9ca3af;margin:12px 0 0;line-height:1.5}

/* v2.1 loading */
.vc-loading{display:flex;flex-direction:column;align-items:center;gap:10px;padding:40px 16px;color:#9ca3af;font-size:12px;font-weight:600}
.vc-loading.hidden{display:none}
