/* SnapDance Venues: landing (/venues, `vl-`) and business dashboard
 * (/venues/dashboard, `vd-`). Loads AFTER venues.css and only adds to it:
 * the tokens (--vn-*) and the shared pieces (.vn-btn, .vn-card, .vn-brandbar,
 * forms, pills) live there. White theme, mobile first.
 */

/* ---------- skeleton for numbers that come from /api/feature-flags ---------- */
[data-vl-money]:empty, [data-vl-pct]:empty, [data-vl-days]:empty, [data-vl-num]:empty, .vd-skel {
  display: inline-block; min-width: 3.2em; height: .95em; vertical-align: -1px;
  border-radius: 4px; background: linear-gradient(90deg, #ececf0 0%, #f6f6f8 50%, #ececf0 100%);
  background-size: 200% 100%; animation: vd-shimmer 1.2s linear infinite;
}
@keyframes vd-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ================================ LANDING ================================ */
.vl-logo-sub { color: var(--vn-accent); }
.vl-hero { padding: 32px 0 28px; background: linear-gradient(180deg, var(--vn-accent-soft) 0%, #fff 100%); }
.vl-eyebrow { font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--vn-accent); margin: 0 0 8px; }
.vl-h1 { font-size: 32px; line-height: 1.08; font-weight: 900; letter-spacing: -.03em; text-wrap: balance; margin: 0; max-width: 760px; }
.vl-lead { font-size: 17px; line-height: 1.55; color: var(--vn-text-2); margin: 16px 0 0; max-width: 720px; }
.vl-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.vl-cta-center { justify-content: center; }
.vl-cta[hidden] { display: none; }
.vl-soon { margin-top: 20px; max-width: 640px; }
.vl-sec { padding: 36px 0; }
.vl-sec-soft { background: var(--vn-surface-2); }
.vl-h2 { font-size: 24px; line-height: 1.2; font-weight: 800; margin: 0 0 12px; letter-spacing: -.02em; }
.vl-p { color: var(--vn-text-2); line-height: 1.6; margin: 0 0 14px; max-width: 760px; }
.vl-list { margin: 0; padding-left: 20px; color: var(--vn-text-2); }
.vl-list li { margin: 10px 0; line-height: 1.55; }
.vl-list b { color: var(--vn-text); }
.vl-qrs { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 8px; }
.vl-qr { position: relative; background: #fff; border: 1px solid var(--vn-border); border-radius: var(--vn-radius); padding: 16px 16px 16px 72px; min-height: 84px; }
.vl-qr b { display: block; font-size: 17px; }
.vl-qr p { margin: 4px 0 0; color: var(--vn-text-2); font-size: 15px; }
.vl-qr-tag { position: absolute; left: 14px; top: 16px; width: 46px; height: 46px; border-radius: 12px; color: #fff; font-weight: 900; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.vl-qr-tag.pay { background: var(--vn-accent); }
.vl-qr-tag.free { background: var(--vn-green); }
.vl-qr-tag.biz { background: #4f6bff; }
.vl-two { display: grid; grid-template-columns: 1fr; gap: 20px; align-items: start; }
.vl-two > * { min-width: 0; }
.vl-hold { color: var(--vn-text-2); }
.vl-hold-title { display: block; color: var(--vn-text); font-size: 16px; margin-bottom: 6px; }
.vl-hold p { margin: 0 0 14px; }
.vl-preview { max-width: 240px; margin: 0 auto; }
.vl-preview-video { position: relative; aspect-ratio: 9 / 16; border-radius: 16px; overflow: hidden; background: linear-gradient(160deg, #2a1440 0%, #120b1c 60%, #0b0b10 100%); margin-bottom: 8px; }
.vl-preview-video .vn-brandbar { position: absolute; left: 8px; right: 8px; bottom: 8px; }
.vl-preview-tag { position: absolute; top: 8px; right: 8px; font-size: 11px; font-weight: 700; color: #fff; background: rgba(0, 0, 0, .55); padding: 3px 8px; border-radius: 999px; }
.vl-faq details { border-bottom: 1px solid var(--vn-border); padding: 12px 0; }
.vl-faq summary { font-weight: 800; cursor: pointer; list-style-position: outside; }
.vl-faq p { margin: 8px 0 0; color: var(--vn-text-2); }
.vl-foot { border-top: 1px solid var(--vn-border); padding: 20px 0 32px; }
.vl-foot a { color: var(--vn-text-3); }
@media (min-width: 760px) {
  .vl-hero { padding: 56px 0 44px; }
  .vl-h1 { font-size: 52px; }
  .vl-h2 { font-size: 30px; }
  .vl-lead { font-size: 19px; }
  .vl-qrs { grid-template-columns: repeat(3, 1fr); }
  .vl-two { grid-template-columns: 1.4fr 1fr; gap: 36px; }
  .vl-sec { padding: 52px 0; }
}

/* =============================== DASHBOARD =============================== */
.vd-bizname { font-weight: 700; color: var(--vn-text-2); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 40vw; }
.vd-tabs { display: flex; gap: 0; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--vn-border); margin: 0 0 16px; position: sticky; top: 56px; background: #fff; z-index: 20; }
.vd-tabs::-webkit-scrollbar { display: none; }
.vd-tabs button { flex: 0 0 auto; background: none; border: 0; border-bottom: 2px solid transparent; padding: 12px 10px; font: inherit; font-weight: 600; font-size: 14px; color: var(--vn-text-3); cursor: pointer; white-space: nowrap; }
.vd-tabs button.on { color: var(--vn-text); border-bottom-color: var(--vn-accent); }
.vd-tabs button[hidden] { display: none; }
.vd-panel { display: none; }
.vd-panel.on { display: block; }
.vd-h2 { font-size: 21px; font-weight: 800; letter-spacing: -.015em; margin: 0 0 4px; }
.vd-h3 { font-size: 16px; font-weight: 800; margin: 0 0 10px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.vd-sub { color: var(--vn-text-3); font-size: 14px; line-height: 1.5; margin: 0 0 16px; }
.vd-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
.vd-grid > * { min-width: 0; }
.vd-kpis { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; margin-bottom: 14px; }
.vd-kpi { background: #fff; border: 1px solid var(--vn-border); border-radius: var(--vn-radius); padding: 12px; text-align: left; font: inherit; color: var(--vn-text); min-width: 0; }
button.vd-kpi { cursor: pointer; }
button.vd-kpi:hover { border-color: var(--vn-accent); }
.vd-kpi span { display: block; font-size: 12px; color: var(--vn-text-3); font-weight: 600; }
.vd-kpi b { display: block; font-size: 22px; font-weight: 800; letter-spacing: -.02em; margin-top: 4px; overflow-wrap: anywhere; }
.vd-kpi small { display: block; font-size: 11px; color: var(--vn-text-3); margin-top: 4px; }
.vd-kpi.green b { color: var(--vn-green); }
.vd-section { margin-top: 18px; }
.vd-tblwrap { overflow-x: auto; border: 1px solid var(--vn-border); border-radius: var(--vn-radius); background: #fff; }
.vd-tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.vd-tbl th, .vd-tbl td { text-align: left; padding: 10px; border-bottom: 1px solid var(--vn-border); vertical-align: top; }
.vd-tbl tr:last-child td { border-bottom: 0; }
.vd-tbl th { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--vn-text-3); font-weight: 700; background: var(--vn-surface-2); white-space: nowrap; }
.vd-tbl td.num, .vd-tbl th.num { text-align: right; white-space: nowrap; }
.vd-tbl tr[data-bd] { cursor: pointer; }
.vd-tbl tr[data-bd]:hover td { background: var(--vn-accent-soft); }
.vd-empty { padding: 18px; text-align: center; color: var(--vn-text-3); font-size: 14px; }
.vd-addr { font-size: 13px; color: var(--vn-text-3); }
.vd-loc { border: 1px solid var(--vn-border); border-radius: var(--vn-radius); padding: 14px; background: #fff; }
.vd-loc + .vd-loc { margin-top: 12px; }
.vd-loc-head { display: flex; gap: 10px; align-items: flex-start; flex-wrap: wrap; }
.vd-loc-head > div { flex: 1; min-width: 0; }
.vd-loc-head b { font-size: 16px; }
.vd-stations { margin-top: 12px; display: grid; gap: 8px; }
.vd-station { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; background: var(--vn-surface-2); border-radius: var(--vn-radius-sm); padding: 10px; }
.vd-station code { font-weight: 800; font-size: 15px; }
.vd-station .vd-grow { flex: 1; min-width: 0; }
.vd-pill-red { color: #7a0a1c; border-color: #f4b8c3; background: var(--vn-red-soft); }
.vd-bar { height: 8px; border-radius: 6px; background: var(--vn-border); overflow: hidden; margin-top: 8px; }
.vd-bar i { display: block; height: 100%; background: var(--vn-accent); }
.vd-note { font-size: 13px; color: var(--vn-text-2); background: var(--vn-surface-2); border-radius: var(--vn-radius-sm); padding: 10px 12px; margin-top: 10px; }
.vd-form-grid { display: grid; gap: 0 12px; grid-template-columns: 1fr; }
.vd-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; align-items: center; }
.vd-start { display: grid; gap: 12px; grid-template-columns: 1fr; margin-top: 20px; }
.vd-start .vn-choice { align-items: flex-start; }
.vd-brand-edit { display: grid; gap: 16px; grid-template-columns: 1fr; }
.vd-brand-preview { max-width: 230px; margin: 0 auto; width: 100%; }
.vd-brand-video { position: relative; aspect-ratio: 9 / 16; border-radius: 16px; overflow: hidden; background: linear-gradient(160deg, #2a1440 0%, #120b1c 60%, #0b0b10 100%); }
.vd-brand-video video { width: 100%; height: 100%; object-fit: cover; }
.vd-brand-video .vn-brandbar { position: absolute; left: 8px; right: 8px; bottom: 8px; }
.vd-brand-video .vd-tag { position: absolute; top: 8px; right: 8px; font-size: 11px; font-weight: 700; color: #fff; background: rgba(0, 0, 0, .55); padding: 3px 8px; border-radius: 999px; }
.vd-swatches { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.vd-swatches button { width: 32px; height: 32px; border-radius: 9px; border: 3px solid transparent; cursor: pointer; padding: 0; }
.vd-swatches button.on { border-color: #111; }
.vd-swatches input[type=color] { width: 40px; height: 34px; border: 1px solid var(--vn-border-strong); border-radius: 8px; padding: 2px; background: #fff; }
.vd-claim { display: flex; gap: 12px; flex-wrap: wrap; border: 1px solid var(--vn-border); border-radius: var(--vn-radius); padding: 12px; background: #fff; }
.vd-claim + .vd-claim { margin-top: 10px; }
.vd-claim img, .vd-claim video { width: 96px; height: 150px; object-fit: cover; border-radius: 10px; background: var(--vn-surface-2); }
.vd-claim > div { flex: 1; min-width: 180px; }
.vd-range { display: flex; gap: 6px; flex-wrap: wrap; }
.vd-range button { border: 1px solid var(--vn-border); background: #fff; border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; color: var(--vn-text-2); }
.vd-range button.on { background: var(--vn-text); color: #fff; border-color: var(--vn-text); }
.vd-center-msg { text-align: center; padding: 48px 0; }
.vd-hint { font-size: 11px; color: var(--vn-text-3); margin-top: 4px; }

/* modal (breakdowns + print kit) */
.vd-modal { position: fixed; inset: 0; background: rgba(17, 17, 17, .45); z-index: 100; display: none; align-items: flex-end; justify-content: center; padding: 0; }
.vd-modal.on { display: flex; }
.vd-modal-box { background: #fff; width: 100%; max-width: 640px; max-height: 88vh; overflow: auto; border-radius: 18px 18px 0 0; padding: 16px; }
.vd-modal-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.vd-modal-head h3 { margin: 0; font-size: 18px; flex: 1; min-width: 0; }
.vd-barcell { display: block; height: 6px; border-radius: 4px; background: var(--vn-accent); margin-top: 4px; }

/* print kit */
.vd-sheet { border: 1px dashed var(--vn-border-strong); border-radius: var(--vn-radius); padding: 16px; background: #fff; }
.vd-sheet-title { text-align: center; font-size: 20px; font-weight: 900; margin: 0; }
.vd-sheet-sub { text-align: center; color: var(--vn-text-2); margin: 4px 0 14px; font-size: 14px; }
.vd-qrs { display: grid; grid-template-columns: 1fr; gap: 12px; }
.vd-qr { border: 2px solid var(--vn-border); border-radius: 14px; padding: 12px; text-align: center; }
.vd-qr .vd-qr-img { width: 160px; height: 160px; margin: 6px auto; display: flex; align-items: center; justify-content: center; }
.vd-qr .vd-qr-img svg, .vd-qr .vd-qr-img img { width: 100%; height: 100%; }
.vd-qr b { display: block; font-size: 17px; }
.vd-qr .vd-qr-tag { display: inline-block; color: #fff; font-weight: 900; font-size: 12px; border-radius: 6px; padding: 2px 8px; }
.vd-qr .vd-qr-url { font-size: 10px; color: var(--vn-text-3); overflow-wrap: anywhere; margin-top: 4px; }
.vd-qr-fallback { font-size: 12px; color: var(--vn-text-3); border: 1px solid var(--vn-border); border-radius: 8px; padding: 8px; }
.vd-sheet-foot { text-align: center; font-size: 12px; color: var(--vn-text-3); margin-top: 12px; }
#vdPrintArea { display: none; }

@media (min-width: 760px) {
  .vd-kpis { grid-template-columns: repeat(4, 1fr); }
  .vd-grid.g2 { grid-template-columns: 1fr 1fr; }
  .vd-form-grid { grid-template-columns: 1fr 1fr; }
  .vd-start { grid-template-columns: 1fr 1fr; }
  .vd-brand-edit { grid-template-columns: 1.3fr 1fr; }
  .vd-modal { align-items: center; padding: 16px; }
  .vd-modal-box { border-radius: 18px; }
  .vd-qrs { grid-template-columns: repeat(3, 1fr); }
}

@media print {
  body.vd-printing > *:not(#vdPrintArea) { display: none !important; }
  body.vd-printing #vdPrintArea { display: block !important; }
  #vdPrintArea .vd-sheet { border: 0; padding: 0; page-break-after: always; }
  #vdPrintArea .vd-qrs { grid-template-columns: repeat(3, 1fr); }
  #vdPrintArea .vd-qr { break-inside: avoid; }
  #vdPrintArea .vd-qr .vd-qr-tag { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* A section header with its button: side by side on a wide screen, the button
   under the text on a phone (a squeezed paragraph beside a pill reads badly). */
@media (max-width: 559px) {
  .vd-headrow { flex-direction: column; align-items: stretch; }
  .vd-headrow > .vn-btn { align-self: flex-start; }
}

/* Landing buttons: full width and stacked on a phone, side by side above it. */
@media (max-width: 559px) {
  .vl-cta .vn-btn { flex: 1 1 100%; }
}

/* Tabs that do not fit on a phone fade out at the right edge, so it reads as
   "there is more, swipe" instead of a word cut in half. */
@media (max-width: 559px) {
  .vd-tabs { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
}

.vd-signedas { margin-top: 10px; }
