/* SnapDance Venues: shared stylesheet for every venues page
 * (/v/<code> guest flow, /v/review/<code>, /venues/sponsor, and the
 * landing + business dashboard). WHITE theme, mobile first, Inter (as the
 * rest of SnapDance), system fonts as the fallback.
 * Contract: docs/venues-spec.md section 9.
 *
 * Naming: every class is prefixed `vn-` so it can never collide with
 * styles.css or the events stylesheets if a page loads both.
 */
:root {
  --vn-bg: #fff;
  --vn-surface: #fff;
  --vn-surface-2: #f6f6f8;
  --vn-border: #e6e6ea;
  --vn-border-strong: #cfcfd6;
  --vn-text: #111;
  --vn-text-2: #44444c;
  --vn-text-3: #6b6b75;
  --vn-accent: #ff2d55;
  --vn-accent-d: #e0123f;
  --vn-accent-soft: #fff0f3;
  --vn-green: #00a84a;
  --vn-green-soft: #ebf8f0;
  --vn-amber: #b26a00;
  --vn-amber-soft: #fff6e5;
  --vn-red: #c8102e;
  --vn-red-soft: #fdecef;
  --vn-radius: 14px;
  --vn-radius-sm: 10px;
  --vn-maxw: 520px;
  --vn-maxw-wide: 960px;
  --vn-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --vn-shadow: 0 6px 22px rgba(17, 17, 17, .08);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.vn {
  margin: 0;
  background: var(--vn-bg);
  color: var(--vn-text);
  font-family: var(--vn-font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv11", "ss01";
  overflow-x: hidden;
}
.vn img, .vn video { display: block; max-width: 100%; }
.vn a:not([class]) { color: var(--vn-accent); }
/* :where() keeps this reset at zero specificity, so a class's own margin
   (.vd-sub, .vl-p, .vl-h2 ...) wins. As `.vn p` it outranked every one of
   them and the pages lost all their heading and paragraph spacing. */
:where(.vn) :where(h1, h2, h3, p) { margin: 0; }
.vn [hidden] { display: none !important; }

/* ---------- layout ---------- */
.vn-wrap { max-width: var(--vn-maxw); margin: 0 auto; padding: 0 16px; }
.vn-wrap-wide { max-width: var(--vn-maxw-wide); }
/* Vertical only: a shorthand here used to zero the side padding .vn-wrap gives,
   so every page body touched the screen edge on a phone. */
.vn-main { padding-top: 20px; padding-bottom: 48px; }
.vn-stack > * + * { margin-top: 12px; }
.vn-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.vn-row > .vn-grow { flex: 1; min-width: 0; }
.vn-center { text-align: center; }
.vn-muted { color: var(--vn-text-3); }
.vn-small { font-size: 13px; }
.vn-tiny { font-size: 12px; }

/* ---------- top bar ---------- */
.vn-top { border-bottom: 1px solid var(--vn-border); background: var(--vn-surface); position: sticky; top: 0; z-index: 30; }
.vn-top .vn-wrap { display: flex; align-items: center; gap: 10px; height: 56px; }
.vn-logo { display: flex; align-items: center; gap: 8px; font-weight: 800; color: var(--vn-text); text-decoration: none; }
.vn-logo img { width: 28px; height: 28px; border-radius: 8px; }
.vn-logo { min-width: 0; white-space: nowrap; }

/* ---------- signed-in account (right of the top bar) ---------- */
.vn-account { margin-left: auto; display: flex; align-items: center; gap: 10px; min-width: 0; }
.vn-account .vn-btn { white-space: nowrap; flex: none; }
@media (max-width: 559px) { .vn-account { gap: 6px; } .vn-account .vn-btn-sm { padding: 8px 12px; } }
.vn-top-link { font-size: 14px; font-weight: 600; color: var(--vn-text-2); text-decoration: none; white-space: nowrap; }
.vn-top-link:hover { color: var(--vn-accent); }
.vn-who { font-size: 13px; color: var(--vn-text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
.vn-avatar-link { display: flex; align-items: center; flex: none; text-decoration: none; }
.vn-avatar-link[hidden] { display: none; }
.vn-avatar { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; overflow: hidden;
  background: var(--vn-accent-soft); color: var(--vn-accent); border: 2px solid var(--vn-border); font-weight: 700; }
.vn-avatar-link:hover .vn-avatar { border-color: var(--vn-accent); }
/* The business name and the email crowd a phone's top bar; the avatar menu carries the name there. */
@media (max-width: 559px) { .vn-account .vn-who, .vn-account .vd-bizname { display: none; } }
/* The shared avatar menu and bell (/js/nav-auth.js) are dark by default; white here, like the page. */
/* nav-auth adds a public "Business" link beside the bell on every page; on the
   venues pages that IS the business area, so it only points somewhere else. */
.vn #navBusiness { display: none !important; }
.vn .sd-nav-dd { background: #fff; border-color: var(--vn-border); box-shadow: var(--vn-shadow); }
.vn .sd-nav-dd-name { color: var(--vn-text); border-bottom-color: var(--vn-border); }
.vn .sd-nav-dd-item { color: var(--vn-text-2); }
.vn .sd-nav-dd-item:hover { background: var(--vn-surface-2); color: var(--vn-text); }
.vn .sd-nav-dd-signout { color: var(--vn-accent); }
.vn .sd-nav-bell { color: var(--vn-text-3); }
.vn .sd-nav-bell:hover { color: var(--vn-text); background: var(--vn-surface-2); }
.vn .sd-nav-bellmenu { background: #fff; border-color: var(--vn-border); box-shadow: var(--vn-shadow); }
.vn .sd-nav-bellmenu-head { border-bottom-color: var(--vn-border); }
.vn .sd-nav-bellmenu-title { color: var(--vn-text); }
.vn .sd-nav-bellrow:hover { background: var(--vn-surface-2); }
.vn .sd-nav-bellrow-body, .vn .sd-nav-bellempty { color: var(--vn-text-3); }

/* ---------- typography ---------- */
.vn-h1 { font-size: 26px; line-height: 1.15; font-weight: 800; letter-spacing: -.025em; text-wrap: balance; }
.vn-h2 { font-size: 20px; line-height: 1.25; font-weight: 800; letter-spacing: -.015em; }
.vn-lead { color: var(--vn-text-2); font-size: 15px; line-height: 1.55; margin-top: 8px; }
@media (min-width: 760px) { .vn-h1 { font-size: 32px; } .vn-h2 { font-size: 22px; } .vn-lead { font-size: 16px; } }
/* Anything scrolled into view lands below the sticky top bar, not under it. */
.vn [id] { scroll-margin-top: 72px; }

/* ---------- buttons ---------- */
.vn-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 12px 20px; border-radius: 999px; border: 0;
  font: inherit; font-weight: 800; font-size: 16px; cursor: pointer;
  background: var(--vn-accent); color: #fff; text-decoration: none; text-align: center;
}
.vn-btn:hover { background: var(--vn-accent-d); }
.vn-btn:disabled, .vn-btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.vn-btn-block { display: flex; width: 100%; }
.vn-btn-sec { background: var(--vn-surface-2); color: var(--vn-text); border: 1px solid var(--vn-border); }
.vn-btn-sec:hover { background: #ececf0; }
.vn-btn-ghost { background: none; color: var(--vn-text-2); border: 1px solid var(--vn-border); }
.vn-btn-ghost:hover { background: var(--vn-surface-2); }
.vn-btn-green { background: var(--vn-green); }
.vn-btn-green:hover { background: #008f3f; }
.vn-btn-sm { min-height: 38px; padding: 8px 14px; font-size: 14px; }
.vn-link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--vn-accent); font-weight: 700; cursor: pointer; text-decoration: underline; }

/* ---------- cards ---------- */
.vn-card { background: var(--vn-surface); border: 1px solid var(--vn-border); border-radius: var(--vn-radius); padding: 14px; }
.vn-card-soft { background: var(--vn-surface-2); border-color: transparent; }
.vn-card-trust { background: var(--vn-green-soft); border-color: #bfe8cf; color: #0b4d27; }
.vn-card-warn { background: var(--vn-amber-soft); border-color: #f2d49b; color: #5a3a00; }
.vn-card-error { background: var(--vn-red-soft); border-color: #f4b8c3; color: #7a0a1c; }

/* ---------- steps bar ---------- */
.vn-steps { display: flex; gap: 4px; margin: 4px 0 14px; }
.vn-steps i { flex: 1; height: 4px; border-radius: 4px; background: var(--vn-border); }
.vn-steps i.on { background: var(--vn-accent); }

/* ---------- screens ---------- */
.vn-screen { display: none; }
.vn-screen.is-active { display: block; }

/* ---------- forms ---------- */
.vn-label { display: block; font-size: 14px; font-weight: 600; margin: 14px 0 6px; color: var(--vn-text); }
.vn-label .vn-opt { font-weight: 500; color: var(--vn-text-3); }
.vn-input, .vn-select, .vn-textarea {
  width: 100%; min-height: 48px; padding: 11px 12px; font: inherit; font-size: 16px;
  color: var(--vn-text); background: #fff; border: 1px solid var(--vn-border-strong); border-radius: var(--vn-radius-sm);
}
.vn-input:focus, .vn-select:focus, .vn-textarea:focus { outline: 2px solid var(--vn-accent); outline-offset: 0; border-color: var(--vn-accent); }
.vn-input[aria-invalid="true"] { border-color: var(--vn-red); }
.vn-help { font-size: 13px; color: var(--vn-text-3); margin-top: 6px; }
.vn-error { font-size: 14px; color: var(--vn-red); margin-top: 8px; font-weight: 600; }
.vn-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--vn-text-2); margin: 12px 0; cursor: pointer; }
.vn-check input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--vn-accent); }
.vn-check b { color: var(--vn-text); }
.vn-check .vn-req { color: var(--vn-accent); font-weight: 800; }

/* ---------- pills ---------- */
.vn-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--vn-border); color: var(--vn-text-2); background: #fff; }
.vn-pill-green { color: #0b4d27; border-color: #bfe8cf; background: var(--vn-green-soft); }
.vn-pill-amber { color: #5a3a00; border-color: #f2d49b; background: var(--vn-amber-soft); }
.vn-pill-accent { color: #fff; border-color: var(--vn-accent); background: var(--vn-accent); }

/* ---------- sponsor brand bar (one renderer for every place it appears) ---------- */
.vn-brandbar { display: flex; align-items: center; gap: 10px; border-radius: 12px; padding: 10px 12px; color: #fff; background: #111; min-width: 0; }
.vn-brandbar-logo { width: 40px; height: 40px; border-radius: 10px; flex: none; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 17px; background: rgba(255, 255, 255, .2); overflow: hidden; }
.vn-brandbar-logo img { width: 100%; height: 100%; object-fit: cover; }
.vn-brandbar-text { min-width: 0; line-height: 1.25; }
.vn-brandbar-text b, .vn-brandbar-text span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vn-brandbar-text b { font-size: 15px; }
.vn-brandbar-text span { font-size: 13px; opacity: .92; }
.vn-brandbar-label { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--vn-text-3); margin-bottom: 6px; }

/* ---------- chooser cards ---------- */
.vn-choice { display: flex; gap: 12px; align-items: center; padding: 16px; border: 2px solid var(--vn-border); border-radius: var(--vn-radius); background: #fff; color: var(--vn-text); text-decoration: none; cursor: pointer; width: 100%; font: inherit; text-align: left; }
.vn-choice:hover { border-color: var(--vn-accent); }
.vn-choice-tag { flex: none; width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-weight: 900; color: #fff; font-size: 13px; }
.vn-choice-tag.pay { background: var(--vn-accent); }
.vn-choice-tag.free { background: var(--vn-green); }
.vn-choice-tag.biz { background: #4f6bff; }
.vn-choice b { display: block; font-size: 17px; color: var(--vn-text); }
.vn-choice > .vn-grow { display: block; flex: 1; min-width: 0; }
.vn-choice > .vn-grow > span { display: block; font-size: 14px; color: var(--vn-text-3); }
.vn-choice-price { margin-left: auto; font-weight: 800; white-space: nowrap; color: var(--vn-text); }

/* ---------- dance grid ---------- */
/* Three across on a phone: two made a dozen dances a very long scroll with the
   Next button far below them. */
.vn-dances { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
@media (min-width: 700px) { .vn-dances { grid-template-columns: repeat(4, 1fr); gap: 10px; } }
/* The step's main button stays reachable while the list scrolls. */
.vn-sticky-cta { position: sticky; bottom: 0; z-index: 10; padding: 12px 0 calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #fff 30%); }
.vn-dance { position: relative; aspect-ratio: 9 / 15; border-radius: 12px; overflow: hidden; border: 3px solid transparent; background: #1a1a22; cursor: pointer; padding: 0; font: inherit; }
.vn-dance.on { border-color: var(--vn-accent); }
.vn-dance video, .vn-dance img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vn-dance span { position: absolute; left: 7px; right: 7px; bottom: 7px; color: #fff; font-size: 12px; line-height: 1.2; font-weight: 800; text-align: left; text-shadow: 0 1px 4px rgba(0, 0, 0, .8); }
.vn-dance .vn-dance-check { position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border-radius: 50%; background: var(--vn-accent); color: #fff; display: none; align-items: center; justify-content: center; font-weight: 900; font-size: 14px; }
.vn-dance.on .vn-dance-check { display: flex; }

/* ---------- selfie ---------- */
.vn-selfie-preview { position: relative; aspect-ratio: 3 / 4; max-height: 52vh; margin: 0 auto; border-radius: var(--vn-radius); overflow: hidden; background: var(--vn-surface-2); }
.vn-selfie-preview img { width: 100%; height: 100%; object-fit: cover; }
.vn-selfie-tips { margin: 0; padding-left: 18px; color: var(--vn-text-2); font-size: 14px; }
.vn-selfie-tips li { margin: 3px 0; }
.vn-camera { position: fixed; inset: 0; z-index: 80; background: #000; display: flex; flex-direction: column; }
.vn-camera video { flex: 1; width: 100%; object-fit: cover; min-height: 0; }
.vn-camera-bar { display: flex; align-items: center; justify-content: space-around; padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); background: #000; }
.vn-shutter { width: 72px; height: 72px; border-radius: 50%; border: 5px solid #fff; background: var(--vn-accent); cursor: pointer; }
.vn-camera-btn { background: rgba(255, 255, 255, .15); color: #fff; border: 0; border-radius: 999px; padding: 10px 16px; font: inherit; font-weight: 700; cursor: pointer; }

/* ---------- video result ---------- */
.vn-video { position: relative; aspect-ratio: 9 / 16; max-height: 70vh; margin: 0 auto; border-radius: var(--vn-radius); overflow: hidden; background: #111; }
.vn-video video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.vn-video-tag { position: absolute; top: 10px; left: 10px; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #fff; background: rgba(0, 0, 0, .6); padding: 4px 9px; border-radius: 999px; }
.vn-video .vn-brandbar { position: absolute; left: 8px; right: 8px; bottom: 8px; }

/* ---------- progress ---------- */
.vn-progress { height: 8px; border-radius: 8px; background: var(--vn-border); overflow: hidden; margin: 14px 0 8px; }
.vn-progress i { display: block; height: 100%; width: 4%; background: linear-gradient(90deg, var(--vn-accent), #8a4dff); transition: width .6s ease; }
.vn-spin { width: 40px; height: 40px; border-radius: 50%; border: 4px solid var(--vn-border); border-top-color: var(--vn-accent); animation: vn-spin 0.9s linear infinite; margin: 40px auto; }
@keyframes vn-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .vn-spin { animation-duration: 3s; } }

/* ---------- review offer ---------- */
.vn-offer { border: 2px solid var(--vn-green); background: var(--vn-green-soft); border-radius: var(--vn-radius); padding: 14px; color: #0b3d20; }
.vn-offer h3 { font-size: 17px; font-weight: 800; margin-bottom: 6px; }
.vn-offer ol { margin: 8px 0 0; padding-left: 20px; }
.vn-offer li { margin: 6px 0; }
.vn-code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-weight: 800; background: #fff; border: 1px dashed var(--vn-green); border-radius: 6px; padding: 1px 6px; color: var(--vn-text); white-space: nowrap; }

/* ---------- payment ---------- */
.vn-paybox { border: 1px solid var(--vn-border); border-radius: var(--vn-radius); padding: 14px; }
.vn-paybox-line { display: flex; justify-content: space-between; gap: 10px; font-size: 15px; }
.vn-paybox-line b { white-space: nowrap; }
.vn-paybox-total { border-top: 1px solid var(--vn-border); margin-top: 10px; padding-top: 10px; font-size: 17px; font-weight: 800; }
.vn-stripe { min-height: 60px; margin-top: 12px; }

/* ---------- sponsor: locations + package ---------- */
.vn-loc { display: flex; gap: 10px; align-items: flex-start; border: 2px solid var(--vn-border); border-radius: 12px; padding: 12px; cursor: pointer; background: #fff; }
.vn-loc + .vn-loc { margin-top: 8px; }
.vn-loc.on { border-color: var(--vn-accent); background: var(--vn-accent-soft); }
.vn-loc.full { opacity: .55; cursor: not-allowed; }
.vn-loc input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: var(--vn-accent); }
.vn-loc b { display: block; }
.vn-stepper { display: flex; align-items: center; gap: 10px; }
.vn-stepper button { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--vn-border-strong); background: #fff; font-size: 22px; font-weight: 800; cursor: pointer; color: var(--vn-text); }
.vn-stepper button:disabled { opacity: .35; cursor: not-allowed; }
.vn-stepper input { width: 110px; text-align: center; font-weight: 800; font-size: 20px; }
.vn-swatches { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.vn-swatches button { width: 34px; height: 34px; border-radius: 9px; border: 3px solid transparent; cursor: pointer; padding: 0; }
.vn-swatches button.on { border-color: var(--vn-text); }
.vn-swatches input[type="color"] { width: 40px; height: 34px; border: 1px solid var(--vn-border-strong); border-radius: 9px; padding: 2px; background: #fff; }
.vn-split { display: grid; gap: 16px; }
@media (min-width: 760px) { .vn-split { grid-template-columns: 1fr 260px; align-items: start; } }

/* ---------- done ---------- */
.vn-ok { width: 64px; height: 64px; border-radius: 50%; background: var(--vn-green-soft); border: 2px solid var(--vn-green); color: var(--vn-green); display: flex; align-items: center; justify-content: center; font-size: 30px; font-weight: 900; margin: 20px auto 12px; }

/* ---------- toast ---------- */
.vn-toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); transform: translateX(-50%); max-width: calc(100% - 32px); background: #111; color: #fff; border-radius: 10px; padding: 10px 14px; font-size: 14px; z-index: 100; opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.vn-toast.show { opacity: 1; }

/* ---------- footer ---------- */
.vn-foot { border-top: 1px solid var(--vn-border); padding: 16px 0 calc(24px + env(safe-area-inset-bottom)); font-size: 12px; color: var(--vn-text-3); text-align: center; }
.vn .vn-foot a { color: var(--vn-text-3); }
