.topbar { height: 96px; }
.street { inset: 96px 0 56px; }

.nav-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.quick-vip {
  position: relative;
  flex: 1 1 520px;
  min-width: 350px;
  max-width: 610px;
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(120px, 1fr) auto;
  grid-template-rows: 18px 42px;
  gap: 7px;
  align-items: center;
}

.quick-power {
  grid-column: 1 / -1;
  overflow: hidden;
  color: var(--gold);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .035em;
  line-height: 18px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: opacity .24s ease, transform .24s ease;
}

.quick-power.changing { opacity: 0; transform: translateY(4px); }

.quick-vip > input:not([type="hidden"]) {
  width: 100%;
  min-width: 0;
  height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 10px;
  outline: 0;
  color: #fff;
  background: rgba(1,8,22,.78);
  font-size: .82rem;
}

.quick-vip > input:not([type="hidden"]):focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 2px rgba(78,215,255,.12);
}

.quick-vip > input::placeholder { color: #9ba9bc; }

.quick-vip > button {
  height: 42px;
  padding: 0 15px;
  border: 1px solid var(--gold);
  border-radius: 10px;
  color: #061227;
  background: linear-gradient(135deg, #fff0ab, var(--gold));
  font-size: .72rem;
  font-weight: 950;
  letter-spacing: .05em;
  cursor: pointer;
}

.quick-vip > button:disabled { cursor: wait; opacity: .65; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
.quick-status {
  position: fixed;
  z-index: 80;
  top: 92px;
  left: 50%;
  min-height: 0;
  margin: 0;
  padding: 9px 14px;
  border: 1px solid rgba(78,215,255,.45);
  border-radius: 999px;
  color: var(--cyan);
  background: rgba(3,10,27,.96);
  font-size: .78rem;
  font-weight: 850;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -8px);
  transition: opacity .2s ease, transform .2s ease;
}
.quick-status:not(:empty) { opacity: 1; transform: translate(-50%, 0); }
.quick-status.error { border-color: rgba(255,77,184,.5); color: #ff8abe; }

.top-action {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  border: 1px solid rgba(78, 215, 255, .55);
  border-radius: 999px;
  color: var(--cyan);
  background: rgba(4, 13, 31, .76);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .04em;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}

.top-action:hover,
.top-action:focus-visible {
  color: #061227;
  background: var(--cyan);
  transform: translateY(-2px);
}

.business-mega {
  position: fixed;
  z-index: 56;
  top: 92px;
  left: 50%;
  width: min(1180px, calc(100vw - 28px));
  max-height: calc(100vh - 112px);
  overflow: hidden;
  border: 1px solid rgba(78, 215, 255, .52);
  border-radius: 0 0 24px 24px;
  color: var(--white);
  background: linear-gradient(145deg, rgba(7,20,43,.99), rgba(2,9,24,.99));
  box-shadow: 0 30px 90px rgba(0,0,0,.72), 0 0 42px rgba(78,215,255,.12);
  transform: translateX(-50%);
}

.business-mega[hidden] { display: none; }

.business-mega-shell {
  max-height: calc(100vh - 112px);
  padding: 22px 24px 24px;
  overflow: auto;
}

.business-mega-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.business-mega-header h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.65rem, 3vw, 2.65rem);
  letter-spacing: -.045em;
  line-height: 1;
}

.business-mega-header .utility-close { position: static; flex: 0 0 auto; }

.business-mega-intro {
  margin: 10px 0 16px;
  color: #afbed1;
  font-size: .9rem;
  line-height: 1.45;
}

.vip-action {
  border-color: rgba(255, 211, 106, .75);
  color: var(--gold);
  box-shadow: 0 0 22px rgba(255, 211, 106, .12);
}

.vip-action:hover,
.vip-action:focus-visible {
  color: #061227;
  background: var(--gold);
}

.fast-button {
  border-color: rgba(255, 77, 184, .65) !important;
  color: var(--pink) !important;
  font-size: 1.6rem !important;
}

.fast-button:hover,
.fast-button:focus-visible {
  color: #fff !important;
  background: rgba(255, 77, 184, .2) !important;
}

.even-side .intro {
  background: #020818;
}

.even-side .intro::after { display: none; }
.even-side .intro-card { z-index: 4; }

.street-scene {
  transition: opacity .55s ease;
}

.street-scene-day { opacity: 1; }
.street-scene-night { opacity: 1; }
body[data-street-mode="night"] .street-scene-day { opacity: 0; }

.street-mode-switch {
  position: fixed;
  z-index: 47;
  top: 112px;
  right: 24px;
  display: flex;
  gap: 8px;
  padding: 7px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  background: rgba(3,10,27,.72);
  box-shadow: 0 12px 38px rgba(0,0,0,.38);
  backdrop-filter: blur(12px);
}

.street-mode-button {
  min-width: 78px;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #dce7f4;
  background: transparent;
  font-size: .72rem;
  font-weight: 950;
  letter-spacing: .08em;
  cursor: pointer;
  transition: color .2s ease, background .2s ease, box-shadow .2s ease, transform .2s ease;
}

.street-mode-button:hover,
.street-mode-button:focus-visible { transform: translateY(-2px); }
.street-mode-button .mode-icon { font-size: 1.45rem; line-height: 1; }
.sun-mode.active {
  color: #4a2a00;
  border-color: #fff3b0;
  background: linear-gradient(135deg, #fff8bf, #ffc83d);
  box-shadow: 0 0 24px rgba(255,200,61,.48);
}
.moon-mode.active {
  color: #fff;
  border-color: #78d7ff;
  background: linear-gradient(135deg, #2e6dcb, #142b6c);
  box-shadow: 0 0 24px rgba(78,215,255,.42);
}
body.even-side[data-street-mode="day"] .intro-card {
  color: var(--white);
  background: rgba(3,10,27,.78);
}

/* Carry the chosen lighting through the complete even and odd street walks. */
body[data-street-mode="day"] {
  color: #07152b;
  background: #dff3ff;
}

body[data-street-mode="day"] .topbar {
  color: #07152b;
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(226,244,255,.92));
  border-bottom-color: rgba(18,104,157,.28);
  box-shadow: 0 10px 34px rgba(42,88,118,.18);
}

body[data-street-mode="day"] .brand small { color: #506479; }
body[data-street-mode="day"] .network { color: #075d91; }

body[data-street-mode="day"] .walkway {
  background-image:
    linear-gradient(180deg, rgba(223,245,255,.02), rgba(223,245,255,.02) 70%, rgba(19,70,105,.18)),
    url('DavieStreet-Horizontal-Street-Day.webp');
}

body.odd-side[data-street-mode="day"] .intro {
  background:
    linear-gradient(90deg, rgba(225,246,255,.1), rgba(225,246,255,.03)),
    url('DavieStreet-Horizontal-Street-Day.webp') center / cover no-repeat;
}

body.odd-side[data-street-mode="day"] .intro::after {
  background: linear-gradient(90deg, rgba(3,10,27,.42) 0%, rgba(3,10,27,.05) 56%, rgba(3,10,27,.18) 100%);
}

body.odd-side[data-street-mode="day"] .intro-card { color: var(--white); }

body[data-street-mode="day"] .side-marker {
  color: #07152b;
  border-color: rgba(18,104,157,.28);
  background: rgba(255,255,255,.9);
  box-shadow: 0 10px 30px rgba(42,88,118,.18);
}

body[data-street-mode="day"] .shop { color: #07152b; }
body[data-street-mode="day"] .shop-sign {
  border-color: rgba(18,104,157,.28);
  background: rgba(255,255,255,.9);
  box-shadow: 0 12px 34px rgba(42,88,118,.22), inset 0 0 24px rgba(78,215,255,.08);
}

body[data-street-mode="day"] .shop:hover .shop-sign,
body[data-street-mode="day"] .shop:focus-visible .shop-sign {
  border-color: #0879b8;
  box-shadow: 0 14px 38px rgba(42,88,118,.26), 0 0 24px rgba(0,150,214,.2);
}

body[data-street-mode="day"] .address { color: #8a5300; }
body[data-street-mode="day"] .shop-type { color: #4a5d70; }
body[data-street-mode="day"] .door {
  background: linear-gradient(135deg, rgba(78,215,255,.2), rgba(255,77,184,.16));
  box-shadow: inset 0 0 24px rgba(78,215,255,.16), 0 6px 22px rgba(18,104,157,.25);
}
body[data-street-mode="day"] .play { color: #fff; }

body[data-street-mode="day"] .nav-button {
  color: #07152b;
  border-color: rgba(18,104,157,.3);
  background: rgba(255,255,255,.9);
  box-shadow: 0 8px 24px rgba(42,88,118,.22);
}

body[data-street-mode="day"] .progressbar {
  color: #07152b;
  background: rgba(250,253,255,.96);
  border-top-color: rgba(18,104,157,.25);
  box-shadow: 0 -8px 26px rgba(42,88,118,.12);
}

body[data-street-mode="day"] .counter { color: #4a5d70; }
body[data-street-mode="day"] .track { background: rgba(7,21,43,.14); }

.founder-video-stage {
  position: absolute;
  z-index: 5;
  left: calc(clamp(24px, 6vw, 100px) + min(620px, 74vw) + 14px);
  bottom: 1%;
  height: min(76vh, 660px);
  aspect-ratio: 1 / 2;
  margin: 0;
  filter: drop-shadow(0 18px 15px rgba(0,0,0,.55));
}

.founder-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
}

.founder-video-stage figcaption {
  position: absolute;
  left: 50%;
  bottom: 3%;
  transform: translateX(-50%);
  padding: 7px 12px;
  border: 1px solid rgba(78,215,255,.72);
  border-radius: 999px;
  color: #dbe8f7;
  background: rgba(3,10,27,.88);
  font-size: .66rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
}
.founder-video-stage figcaption strong { color: var(--cyan); }

.door-map {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.hero-door {
  cursor: pointer;
  outline: none;
  pointer-events: all;
}

.door-frame {
  fill: rgba(0,239,255,.14);
  stroke: #00efff;
  stroke-width: 8;
  stroke-opacity: 1;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 4px #fff) drop-shadow(0 0 10px #00efff) drop-shadow(0 0 22px #ff2faf);
  animation: doorGlow 1.65s ease-in-out infinite;
  transition: fill .2s ease, stroke .2s ease;
}

.door-play-disc {
  fill: #ff2faf;
  stroke: #fff;
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 5px #fff) drop-shadow(0 0 13px #ff2faf);
}

.door-play-icon {
  fill: #fff;
  font-size: 18px;
  font-weight: 900;
  text-anchor: middle;
  pointer-events: none;
}

.hero-door:hover .door-frame,
.hero-door:focus .door-frame {
  fill: rgba(255,77,184,.18);
  stroke: var(--cyan);
}

.hero-door:hover .door-play-disc,
.hero-door:focus .door-play-disc { fill: var(--pink); }

.demo-video {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  background: #01040d;
}

@keyframes doorGlow {
  0%, 100% { filter: drop-shadow(0 0 4px #fff) drop-shadow(0 0 9px #00efff) drop-shadow(0 0 18px #ff2faf); }
  50% { filter: drop-shadow(0 0 7px #fff) drop-shadow(0 0 16px #00efff) drop-shadow(0 0 30px #ff2faf); }
}

.utility-dialog {
  width: min(1060px, calc(100vw - 28px));
  max-height: min(860px, calc(100vh - 28px));
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(78, 215, 255, .45);
  border-radius: 24px;
  color: var(--white);
  background: #07142b;
  box-shadow: 0 28px 100px rgba(0, 0, 0, .8), 0 0 45px rgba(78, 215, 255, .12);
}

.utility-dialog::backdrop {
  background: rgba(0, 4, 14, .88);
  backdrop-filter: blur(8px);
}

.utility-shell {
  position: relative;
  padding: clamp(24px, 4vw, 46px);
}

.directory-shell {
  max-height: min(860px, calc(100vh - 28px));
  overflow: auto;
}

.vip-shell {
  width: min(680px, 100%);
  margin: 0 auto;
}

.utility-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 50%;
  color: #fff;
  background: rgba(255,255,255,.05);
  font-size: 1.45rem;
  cursor: pointer;
}

.utility-kicker {
  margin: 0 52px 8px 0;
  color: var(--pink);
  font-size: .76rem;
  font-weight: 950;
  letter-spacing: .16em;
}

.utility-shell h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.6rem);
  letter-spacing: -.05em;
  line-height: 1;
}

.utility-intro {
  max-width: 760px;
  margin: 14px 0 22px;
  color: #bdc9da;
  font-size: 1rem;
  line-height: 1.55;
}

.search-box {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  border: 1px solid rgba(78, 215, 255, .48);
  border-radius: 16px;
  color: var(--cyan);
  background: rgba(1, 8, 22, .76);
  font-size: 1.45rem;
}

.search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: #fff;
  background: transparent;
  font-size: 1rem;
}

.search-box input::placeholder { color: #8f9eb2; }

.category-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 16px 0;
}

.category-filter button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 11px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  color: #cad4e3;
  background: rgba(255,255,255,.04);
  font-size: .76rem;
  font-weight: 900;
  cursor: pointer;
}

.category-filter button strong {
  min-width: 23px;
  padding: 3px 6px;
  border-radius: 999px;
  color: var(--gold);
  background: rgba(255,211,106,.1);
  font-size: .68rem;
  text-align: center;
}

.category-filter button:hover,
.category-filter button.active {
  border-color: var(--pink);
  color: #fff;
  background: rgba(255, 77, 184, .18);
}

.directory-summary {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 2px;
  color: #8f9eb2;
  font-size: .78rem;
}

.directory-summary strong { color: var(--gold); }

.directory-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.directory-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 76px;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  color: #fff;
  background: rgba(255,255,255,.035);
  text-decoration: none;
}

.directory-item:hover,
.directory-item:focus-visible {
  border-color: var(--cyan);
  background: rgba(78,215,255,.08);
}

.directory-name {
  min-width: 0;
  overflow: hidden;
  font-size: .94rem;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.directory-name-row {
  display: flex;
  align-items: center;
  gap: 9px;
}

.directory-rating {
  flex: 0 0 auto;
  padding: 4px 7px;
  border: 1px solid rgba(255,211,106,.35);
  border-radius: 999px;
  color: var(--gold);
  background: rgba(255,211,106,.08);
  font-size: .7rem;
  font-weight: 900;
  white-space: nowrap;
}

.directory-rating.pending {
  border-color: rgba(255,255,255,.14);
  color: #92a1b5;
  background: rgba(255,255,255,.04);
}

.directory-type {
  display: block;
  margin-top: 5px;
  overflow: hidden;
  color: #9fadc0;
  font-size: .76rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.directory-address {
  color: var(--gold);
  font-size: .76rem;
  font-weight: 900;
  text-align: right;
  white-space: nowrap;
}

.directory-address span { color: var(--cyan); }

.empty-results {
  grid-column: 1 / -1;
  padding: 38px 20px;
  border: 1px dashed rgba(255,255,255,.2);
  border-radius: 14px;
  color: #bdc9da;
  text-align: center;
}

.power-rotator {
  min-height: 108px;
  display: grid;
  align-content: center;
  gap: 8px;
  margin: 22px 0;
  padding: 20px;
  border: 1px solid rgba(255, 211, 106, .42);
  border-radius: 17px;
  background: linear-gradient(135deg, rgba(255,211,106,.12), rgba(255,77,184,.08));
}

.power-label {
  color: var(--gold);
  font-size: .7rem;
  font-weight: 950;
  letter-spacing: .16em;
}

.power-rotator strong {
  font-size: clamp(1.15rem, 3vw, 1.5rem);
  line-height: 1.25;
  transition: opacity .22s ease, transform .22s ease;
}

.power-rotator strong.changing { opacity: 0; transform: translateY(5px); }

.vip-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.vip-fields label > span {
  display: block;
  margin: 0 0 7px 3px;
  color: #d5ddec;
  font-size: .82rem;
  font-weight: 800;
}

.vip-fields input {
  width: 100%;
  min-height: 54px;
  padding: 0 15px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 13px;
  outline: 0;
  color: #fff;
  background: rgba(1,8,22,.7);
  font-size: 1rem;
}

.vip-fields input:focus { border-color: var(--cyan); }

.consent {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
  margin: 18px 0;
  color: #b8c4d5;
  font-size: .8rem;
  line-height: 1.45;
}

.consent input { width: 18px; height: 18px; accent-color: var(--pink); }
.honey { position: absolute !important; left: -10000px !important; }

.join-vip {
  width: 100%;
  min-height: 56px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  color: #061227;
  background: linear-gradient(135deg, #fff0ab, var(--gold));
  font-weight: 950;
  letter-spacing: .035em;
  cursor: pointer;
  box-shadow: 0 0 28px rgba(255,211,106,.2);
}

.join-vip:disabled { cursor: wait; opacity: .65; }
.form-status { min-height: 22px; margin: 12px 0 0; color: var(--cyan); font-weight: 800; }
.form-status.error { color: #ff8abe; }
.privacy-note { margin: 16px 0 0; color: #8292a8; font-size: .72rem; line-height: 1.45; }

@media (max-width: 1380px) {
  .topbar .network { display: none; }
}

@media (max-width: 820px) {
  .topbar { height: 146px; gap: 8px; flex-wrap: wrap; align-content: center; }
  .street { inset: 146px 0 50px; }
  .brand { flex: 1 1 auto; }
  .nav-tools { gap: 5px; }
  .quick-vip { order: 3; flex: 1 1 100%; min-width: 100%; max-width: none; }
  .quick-status { top: 154px; }
  .top-action { min-height: 38px; padding: 0 10px; }
  .topbar .network { display: none; }
  .controls { gap: 5px; }
  .directory-results { grid-template-columns: 1fr; }
  .business-mega { top: 142px; max-height: calc(100vh - 154px); }
  .business-mega-shell { max-height: calc(100vh - 154px); }
  .even-side .intro-card { width: calc(100vw - 36px); padding-right: min(31vw, 230px); }
  .even-side .intro-card h1 { font-size: clamp(2.1rem, 7vw, 3.5rem); }
  .founder-video-stage {
    left: auto;
    right: 20px;
    height: min(54vh, 430px);
  }
  .street-mode-switch { top: 158px; right: 12px; }
}

@media (max-width: 560px) {
  .top-action span { display: none; }
  .top-action { width: 40px; justify-content: center; padding: 0; font-size: 1rem; }
  .utility-shell { padding: 28px 18px 22px; }
  .vip-fields { grid-template-columns: 1fr; }
  .directory-summary span { display: none; }
  .business-mega { width: calc(100vw - 14px); border-radius: 0 0 18px 18px; }
  .business-mega-shell { padding: 17px 14px 18px; }
  .business-mega-intro { font-size: .82rem; }
  .category-filter { max-height: 92px; overflow: auto; }
  .category-filter button { min-height: 34px; padding: 0 9px; font-size: .7rem; }
  .directory-item { padding: 12px; }
  .directory-rating { font-size: .64rem; }
  .quick-vip > input:not([type="hidden"]) { height: 40px; padding: 0 9px; font-size: .75rem; }
  .quick-vip > button { height: 40px; padding: 0 10px; font-size: .66rem; }
  .even-side .intro-card {
    top: 48%;
    width: calc(100vw - 24px);
    left: 12px;
    padding: 18px 112px 18px 18px;
  }
  .even-side .intro-card h1 { font-size: clamp(1.9rem, 9vw, 2.75rem); }
  .even-side .intro-card > p:not(.eyebrow) { margin: 14px 0 18px; font-size: .82rem; line-height: 1.4; }
  .founder-video-stage {
    right: 7px;
    bottom: 6%;
    height: min(34vh, 250px);
    max-width: 30vw;
    overflow: visible;
  }
  .founder-video {
    object-fit: contain;
    background: transparent;
  }
  .founder-video-stage figcaption { padding: 5px 8px; font-size: .55rem; }
  .street-mode-switch { padding: 5px; gap: 4px; }
  .street-mode-button { min-width: 46px; min-height: 42px; padding: 0 9px; }
  .street-mode-button > span:last-child { display: none; }
  .even-side .intro-card .start-walk,
  .even-side .intro-card .cross-street { min-height: 44px; padding: 0 13px; font-size: .66rem; }
  .even-side .intro-card .cross-street { margin-left: 5px; }
}
