/* ═══════════════════════════════════════════════════════════════════════════
   vouchers.css — Prinda Vouchers System
   Covers:
     1. Admin modal form styles (.vc-modal-*, .vc-form-*)
     2. User-facing Voucher Browser overlay (.vb-*)
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Admin voucher stat cards ─────────────────────────────────────────────── */
.vc-stat-card {
  padding: 14px 16px;
  text-align: left;
}
.vc-stat-card .admin-stat-value {
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.1;
  transition: color 0.2s;
}
.vc-stat-card .admin-stat-label {
  font-size: 0.73rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted, #5f7890);
  margin-top: 3px;
}

/* ── Admin voucher modal overlay & container ─────────────────────────────── */
.vc-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  z-index: 9100;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 12px;
  overflow-y: auto;
}
.vc-modal {
  background: var(--surface, #fff);
  border-radius: 18px;
  width: 100%;
  max-width: 780px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: vcModalIn 0.22s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes vcModalIn {
  from { opacity: 0; transform: translateY(-18px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)     scale(1);    }
}
.vc-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 16px;
  border-bottom: 1px solid var(--border-light, #e8edf2);
  background: linear-gradient(135deg, #0077b6 0%, #00b4d8 100%);
  color: #fff;
}
.vc-modal-header h3 { color: #fff; }
.vc-modal-header .admin-close-btn { color: #fff; opacity: 0.85; }
.vc-modal-header .admin-close-btn:hover { opacity: 1; }
.vc-modal-body {
  padding: 20px;
  overflow-y: auto;
  max-height: 70vh;
}
.vc-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 20px;
  border-top: 1px solid var(--border-light, #e8edf2);
  background: var(--surface2, #f8fafc);
}

/* ── Form layout ─────────────────────────────────────────────────────────── */
.vc-form-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.vc-form-section {
  border: 1px solid var(--border-light, #e8edf2);
  border-radius: 12px;
  padding: 16px;
  background: var(--surface2, #f8fafc);
}
.vc-form-section-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted, #5f7890);
  margin-bottom: 12px;
}
.vc-form-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.vc-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted, #5f7890);
}
.vc-form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.vc-form-row-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}
@media (max-width: 560px) {
  .vc-form-row-2, .vc-form-row-3 { grid-template-columns: 1fr; }
}
.vc-toggle-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.83rem;
  color: var(--text, #12324a);
  cursor: pointer;
  font-weight: 500;
}
.vc-toggle-label input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: var(--blue, #0077b6);
}

/* ═══════════════════════════════════════════════════════════════════════════
   USER-FACING VOUCHER BROWSER
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Full-screen overlay ─────────────────────────────────────────────────── */
.vb-overlay {
  position: fixed;
  inset: 0;
  background: var(--surface, #fff);
  z-index: 8500;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: vbSlideIn 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes vbSlideIn {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0);    }
}

/* ── Header ──────────────────────────────────────────────────────────────── */
.vb-header {
  background: linear-gradient(135deg, #0077b6 0%, #00b4d8 50%, #48cae4 100%);
  color: #fff;
  padding: env(safe-area-inset-top, 0) 0 0;
  flex-shrink: 0;
}
.vb-header-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px 0;
}
.vb-back-btn {
  background: rgba(255,255,255,0.18);
  border: none;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s;
}
.vb-back-btn:hover { background: rgba(255,255,255,0.28); }
.vb-header-text { flex: 1; }
.vb-header-text h2 {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
}
.vb-header-text p {
  margin: 2px 0 0;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.82);
}
.vb-wallet-btn {
  background: rgba(255,255,255,0.18);
  border: none;
  border-radius: 12px;
  padding: 8px 14px;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 5px;
}
.vb-wallet-btn:hover { background: rgba(255,255,255,0.28); }
.vb-wallet-badge {
  background: #ff6b35;
  color: #fff;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 0.68rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* ── Hero stats bar ──────────────────────────────────────────────────────── */
.vb-stats-bar {
  display: flex;
  gap: 0;
  padding: 10px 16px 14px;
  overflow-x: auto;
  scrollbar-width: none;
  gap: 20px;
}
.vb-stats-bar::-webkit-scrollbar { display: none; }
.vb-stat {
  text-align: center;
  flex-shrink: 0;
}
.vb-stat-value {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}
.vb-stat-label {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.75);
  margin-top: 2px;
}

/* ── Search & filter bar ─────────────────────────────────────────────────── */
.vb-search-bar {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 12px 16px;
  background: var(--surface2, #f8fafc);
  border-bottom: 1px solid var(--border-light, #e8edf2);
  flex-shrink: 0;
}
.vb-search-wrap {
  position: relative;
  flex: 1;
}
.vb-search-wrap svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted, #5f7890);
  pointer-events: none;
}
.vb-search-input {
  width: 100%;
  padding: 10px 12px 10px 38px;
  border: 1.5px solid var(--border-light, #dee3ea);
  border-radius: 12px;
  font-size: 0.9rem;
  background: var(--surface, #fff);
  color: var(--text, #12324a);
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.vb-search-input:focus { border-color: var(--blue, #0077b6); }
.vb-sort-select {
  padding: 10px 10px;
  border: 1.5px solid var(--border-light, #dee3ea);
  border-radius: 12px;
  font-size: 0.82rem;
  background: var(--surface, #fff);
  color: var(--text, #12324a);
  outline: none;
  cursor: pointer;
  flex-shrink: 0;
}

/* ── Category pills ──────────────────────────────────────────────────────── */
.vb-cats {
  display: flex;
  gap: 7px;
  padding: 10px 16px;
  overflow-x: auto;
  scrollbar-width: none;
  flex-shrink: 0;
  background: var(--surface, #fff);
  border-bottom: 1px solid var(--border-light, #e8edf2);
}
.vb-cats::-webkit-scrollbar { display: none; }
.vb-cat-pill {
  flex-shrink: 0;
  padding: 7px 15px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  border: 1.5px solid var(--border-light, #dee3ea);
  background: var(--surface, #fff);
  color: var(--muted, #5f7890);
  cursor: pointer;
  transition: all 0.18s;
  white-space: nowrap;
}
.vb-cat-pill:hover {
  border-color: var(--blue, #0077b6);
  color: var(--blue, #0077b6);
}
.vb-cat-pill.active {
  background: var(--blue, #0077b6);
  border-color: var(--blue, #0077b6);
  color: #fff;
}

/* ── Scrollable content ──────────────────────────────────────────────────── */
.vb-content {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 16px;
  padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 16px);
}

/* ── Section headings ────────────────────────────────────────────────────── */
.vb-section-heading {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text, #12324a);
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.vb-section-heading span.vb-count {
  font-size: 0.75rem;
  color: var(--muted, #5f7890);
  font-weight: 500;
}

/* ── Featured row (horizontal scroll) ───────────────────────────────────── */
.vb-featured-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
  margin-bottom: 20px;
}
.vb-featured-row::-webkit-scrollbar { display: none; }

/* ── Featured card ───────────────────────────────────────────────────────── */
.vb-featured-card {
  flex-shrink: 0;
  width: 240px;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, #0077b6, #00b4d8);
  color: #fff;
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.18s;
  box-shadow: 0 4px 14px rgba(0,119,182,0.25);
  position: relative;
}
.vb-featured-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,119,182,0.35);
}
.vb-featured-card-body {
  padding: 16px;
}
.vb-featured-logo {
  font-size: 2rem;
  margin-bottom: 8px;
  display: block;
}
.vb-featured-vendor {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  opacity: 0.85;
  margin-bottom: 4px;
}
.vb-featured-title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 10px;
}
.vb-featured-discount {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 10px;
}
.vb-featured-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.vb-btn-get {
  flex: 1;
  background: rgba(255,255,255,0.22);
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 10px;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 10px;
  cursor: pointer;
  transition: background 0.18s;
  backdrop-filter: blur(4px);
}
.vb-btn-get:hover { background: rgba(255,255,255,0.32); }
.vb-btn-save-sm {
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 10px;
  color: #fff;
  font-size: 0.82rem;
  padding: 8px 10px;
  cursor: pointer;
  transition: background 0.18s;
}
.vb-btn-save-sm:hover, .vb-btn-save-sm.saved { background: rgba(255,255,255,0.32); }

/* Expiry strip on featured card */
.vb-featured-expiry {
  background: rgba(0,0,0,0.18);
  font-size: 0.72rem;
  padding: 6px 16px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.vb-featured-expiry.urgent { background: rgba(239,68,68,0.35); }

/* Exclusive badge on featured card */
.vb-exclusive-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #ff6b35;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 20px;
}

/* ── Main voucher card grid ───────────────────────────────────────────────── */
.vb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
@media (max-width: 480px) {
  .vb-grid { grid-template-columns: 1fr; }
}

/* ── Voucher card ────────────────────────────────────────────────────────── */
.vb-card {
  background: var(--surface, #fff);
  border: 1.5px solid var(--border-light, #e8edf2);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
  position: relative;
}
.vb-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.09);
  border-color: var(--blue-light, #90e0ef);
}
.vb-card.is-saved { border-color: #22c55e; }

/* Badges row at top of card */
.vb-card-badges {
  display: flex;
  gap: 5px;
  padding: 10px 12px 0;
  flex-wrap: wrap;
  min-height: 26px;
}
.vb-badge {
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  border-radius: 20px;
  white-space: nowrap;
}
.vb-badge-new       { background: #dbeafe; color: #1d4ed8; }
.vb-badge-hot       { background: #fde8d8; color: #c2410c; }
.vb-badge-exclusive { background: #fce7f3; color: #be185d; }
.vb-badge-expiring  { background: #fee2e2; color: #b91c1c; }

/* Card main body */
.vb-card-body {
  padding: 10px 14px 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.vb-card-vendor-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.vb-card-logo {
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
}
.vb-card-vendor-info { flex: 1; min-width: 0; }
.vb-card-vendor-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text, #12324a);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vb-card-category {
  font-size: 0.7rem;
  color: var(--muted, #5f7890);
  margin-top: 1px;
}

/* Discount block */
.vb-card-discount {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0077b6;
  line-height: 1;
}
.vb-card-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text, #12324a);
  line-height: 1.3;
}
.vb-card-min-spend {
  font-size: 0.73rem;
  color: var(--muted, #5f7890);
}

/* Social proof */
.vb-card-social {
  font-size: 0.72rem;
  color: var(--muted, #5f7890);
  display: flex;
  align-items: center;
  gap: 8px;
}
.vb-card-social span { display: flex; align-items: center; gap: 3px; }

/* Expiry countdown */
.vb-card-expiry {
  font-size: 0.73rem;
  font-weight: 600;
  color: var(--muted, #5f7890);
  display: flex;
  align-items: center;
  gap: 4px;
}
.vb-card-expiry.urgent { color: #ef4444; }

/* Code reveal strip */
.vb-card-code-strip {
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  border: 1px dashed #86efac;
  border-radius: 10px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.vb-code-text {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.9rem;
  font-weight: 700;
  color: #166534;
  letter-spacing: 0.1em;
  flex: 1;
  text-align: center;
}
.vb-copy-btn {
  background: #22c55e;
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 10px;
  cursor: pointer;
  transition: background 0.18s, transform 0.12s;
  white-space: nowrap;
  flex-shrink: 0;
}
.vb-copy-btn:hover { background: #16a34a; }
.vb-copy-btn.copied { background: #16a34a; transform: scale(0.95); }

/* Action row */
.vb-card-actions {
  padding: 0 14px 14px;
  display: flex;
  gap: 8px;
}
.vb-btn-deal {
  flex: 1;
  background: linear-gradient(135deg, #0077b6, #00b4d8);
  border: none;
  border-radius: 12px;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 11px 10px;
  cursor: pointer;
  transition: opacity 0.18s, transform 0.12s;
}
.vb-btn-deal:hover { opacity: 0.9; transform: translateY(-1px); }
.vb-btn-deal:active { transform: translateY(0); }
.vb-btn-save {
  background: var(--surface2, #f8fafc);
  border: 1.5px solid var(--border-light, #dee3ea);
  border-radius: 12px;
  color: var(--muted, #5f7890);
  font-size: 0.9rem;
  padding: 11px 13px;
  cursor: pointer;
  transition: all 0.18s;
  flex-shrink: 0;
}
.vb-btn-save:hover  { border-color: #22c55e; color: #22c55e; }
.vb-btn-save.saved  { background: #f0fdf4; border-color: #22c55e; color: #22c55e; }

/* ── Voucher detail modal ─────────────────────────────────────────────────── */
.vb-detail-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 8600;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.vb-detail-sheet {
  background: var(--surface, #fff);
  border-radius: 24px 24px 0 0;
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  animation: vbSheetUp 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
  padding-bottom: env(safe-area-inset-bottom, 16px);
}
@keyframes vbSheetUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0);    }
}
.vb-detail-handle {
  width: 40px;
  height: 4px;
  background: var(--border-light, #dee3ea);
  border-radius: 2px;
  margin: 12px auto 16px;
}
.vb-detail-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 20px 16px;
  border-bottom: 1px solid var(--border-light, #e8edf2);
}
.vb-detail-logo {
  font-size: 2.5rem;
  flex-shrink: 0;
}
.vb-detail-vendor { font-size: 0.8rem; color: var(--muted, #5f7890); font-weight: 600; }
.vb-detail-title  { font-size: 1rem; font-weight: 700; color: var(--text, #12324a); margin: 3px 0 0; }
.vb-detail-body {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.vb-detail-discount-block {
  text-align: center;
  padding: 18px;
  background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
  border-radius: 16px;
}
.vb-detail-discount-value {
  font-size: 2.5rem;
  font-weight: 800;
  color: #0077b6;
  line-height: 1;
}
.vb-detail-discount-sub {
  font-size: 0.82rem;
  color: var(--muted, #5f7890);
  margin-top: 4px;
}
.vb-detail-code-block {
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  border: 2px dashed #86efac;
  border-radius: 14px;
  padding: 14px 16px;
  text-align: center;
}
.vb-detail-code-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #166534;
  margin-bottom: 6px;
}
.vb-detail-code-value {
  font-family: 'Courier New', Courier, monospace;
  font-size: 1.4rem;
  font-weight: 800;
  color: #15803d;
  letter-spacing: 0.12em;
}
.vb-detail-copy-btn {
  margin-top: 10px;
  width: 100%;
  background: #22c55e;
  border: none;
  border-radius: 12px;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 12px;
  cursor: pointer;
  transition: background 0.18s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.vb-detail-copy-btn:hover { background: #16a34a; }
.vb-detail-copy-btn.copied { background: #059669; }
.vb-detail-desc {
  font-size: 0.88rem;
  color: var(--text, #12324a);
  line-height: 1.55;
}
.vb-detail-meta {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 0.82rem;
  color: var(--muted, #5f7890);
  background: var(--surface2, #f8fafc);
  border-radius: 12px;
  padding: 12px 14px;
}
.vb-detail-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.vb-detail-meta-label { font-weight: 600; }
.vb-detail-terms {
  font-size: 0.78rem;
  color: var(--muted, #5f7890);
  line-height: 1.5;
  border-top: 1px solid var(--border-light, #e8edf2);
  padding-top: 12px;
}
.vb-detail-terms summary {
  cursor: pointer;
  font-weight: 600;
  margin-bottom: 6px;
}
.vb-detail-footer {
  padding: 0 20px 8px;
  display: flex;
  gap: 10px;
}
.vb-detail-btn-deal {
  flex: 1;
  background: linear-gradient(135deg, #0077b6, #00b4d8);
  border: none;
  border-radius: 14px;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
  padding: 14px;
  cursor: pointer;
  transition: opacity 0.18s;
}
.vb-detail-btn-deal:hover { opacity: 0.9; }
.vb-detail-btn-save {
  background: var(--surface2, #f8fafc);
  border: 1.5px solid var(--border-light, #dee3ea);
  border-radius: 14px;
  color: var(--muted, #5f7890);
  font-size: 0.92rem;
  padding: 14px 16px;
  cursor: pointer;
  transition: all 0.18s;
}
.vb-detail-btn-save.saved { border-color: #22c55e; color: #22c55e; background: #f0fdf4; }

/* ── My Wallet section ───────────────────────────────────────────────────── */
.vb-wallet-section {
  margin-bottom: 24px;
}
.vb-wallet-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.vb-wallet-card {
  background: var(--surface, #fff);
  border: 1.5px solid var(--border-light, #e8edf2);
  border-radius: 14px;
  padding: 13px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}
.vb-wallet-card.expired-card {
  opacity: 0.55;
  border-style: dashed;
}
.vb-wallet-logo { font-size: 1.8rem; flex-shrink: 0; }
.vb-wallet-info { flex: 1; min-width: 0; }
.vb-wallet-vendor { font-size: 0.75rem; font-weight: 600; color: var(--muted, #5f7890); }
.vb-wallet-title  { font-size: 0.88rem; font-weight: 700; color: var(--text, #12324a); }
.vb-wallet-discount { font-size: 1.1rem; font-weight: 800; color: #0077b6; }
.vb-wallet-expiry { font-size: 0.72rem; color: var(--muted, #5f7890); margin-top: 2px; }
.vb-wallet-expiry.urgent { color: #ef4444; }
.vb-wallet-use-btn {
  background: linear-gradient(135deg, #0077b6, #00b4d8);
  border: none;
  border-radius: 10px;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 9px 13px;
  cursor: pointer;
  flex-shrink: 0;
  transition: opacity 0.18s;
}
.vb-wallet-use-btn:hover { opacity: 0.85; }

/* ── Empty state ─────────────────────────────────────────────────────────── */
.vb-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--muted, #5f7890);
}
.vb-empty-icon { font-size: 3rem; margin-bottom: 12px; display: block; }
.vb-empty-title { font-size: 1rem; font-weight: 700; color: var(--text, #12324a); margin: 0 0 6px; }
.vb-empty-sub   { font-size: 0.85rem; line-height: 1.5; }

/* ── Loading skeleton ────────────────────────────────────────────────────── */
.vb-skeleton {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: vbSkeleton 1.4s ease-in-out infinite;
  border-radius: 8px;
}
@keyframes vbSkeleton {
  0%   { background-position: 200% center; }
  100% { background-position: -200% center; }
}
.vb-skeleton-card {
  height: 200px;
  border-radius: 16px;
}

/* ── Toast-style copy confirmation ───────────────────────────────────────── */
.vb-copy-toast {
  position: fixed;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 80px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: #15803d;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 24px;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.vb-copy-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── Dark mode support ───────────────────────────────────────────────────── */
@media (prefers-color-scheme: dark) {
  .vb-overlay,
  .vb-card,
  .vb-detail-sheet,
  .vb-wallet-card {
    background: var(--surface, #1a2535);
    border-color: var(--border-light, #2a3a4a);
  }
  .vb-search-input, .vb-sort-select {
    background: var(--surface, #1a2535);
    color: var(--text, #e2e8f0);
    border-color: var(--border-light, #2a3a4a);
  }
  .vb-cat-pill {
    background: var(--surface, #1a2535);
    border-color: var(--border-light, #2a3a4a);
  }
  .vc-modal, .vc-form-section {
    background: var(--surface, #1a2535);
    border-color: var(--border-light, #2a3a4a);
  }
}
