/* GOT3D — liquid glass, hard edges, retro digital */
:root {
  /* RETRO (default for everyone) */
  --font-display: "VT323", ui-monospace, monospace;
  --font-body: "Share Tech Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --bg: #07031a;
  --text: #e6f1ff;
  --dim: #8a97b4;
  --accent: #00f0ff;
  --accent-ink: #001014;
  --accent-2: #ff2bd6;
  --hl: #00f0ff;
  --glow: rgba(0, 240, 255, .55);
  --danger: #ff4d6d;
  --ok: #3dff9a;
  --warn: #ffc24d;
  --glass: rgba(20, 12, 52, 0.42);
  --glass-strong: rgba(24, 14, 60, 0.66);
  --glass-edge: rgba(255, 255, 255, 0.22);
  --glass-edge-2: rgba(255, 255, 255, 0.05);
  --sheen: linear-gradient(135deg, rgba(255,255,255,.18) 0%, rgba(255,255,255,0) 35%, rgba(255,255,255,0) 72%, rgba(255,255,255,.08) 100%);
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, .8), inset 0 1px 0 var(--glass-edge), inset 1px 0 0 var(--glass-edge);
  --field: rgba(0, 0, 0, 0.30);
  --field-shadow: none;
  --btn-bg: rgba(24, 14, 60, 0.66);
  --btn-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
  --btn-accent-bg: #00f0ff;
  --btn-accent-shadow: 0 0 24px -6px #00f0ff;
  --blob-1: #0077ff;
  --blob-2: #c400ff;
  --blob-3: #00c4a0;
  --blob-3-opacity: .35;
  --gridline: rgba(0, 240, 255, 0.06);
  color-scheme: dark;
}

/* ---------- reset: everything square ---------- */
*, *::before, *::after { box-sizing: border-box; }
:root:not([data-theme="light"]) :not(.bg > i), :root:not([data-theme="light"]) ::before, :root:not([data-theme="light"]) ::after { border-radius: 0 !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh;
  background: var(--bg); color: var(--text);
  font: 15px/1.55 var(--font-body);
  letter-spacing: .02em;
  overflow-x: hidden;
  transition: background .3s, color .3s;
}
a { color: inherit; text-decoration-color: color-mix(in srgb, var(--accent) 60%, transparent); text-underline-offset: 3px; }
a:hover { color: var(--hl); }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1; letter-spacing: .04em; margin: 0 0 .4em; }
h1 { font-size: clamp(40px, 7vw, 76px); }
h2 { font-size: 30px; }
h3 { font-size: 26px; }
p { margin: 0 0 .8em; }
.dim { color: var(--dim); }
.accent { color: var(--hl); text-shadow: 0 0 18px color-mix(in srgb, var(--hl) 40%, transparent); }
.blink { animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.inline { display: inline; margin: 0; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.hp { position: absolute !important; left: -9999px; }
:focus-visible { outline: 2px solid var(--hl); outline-offset: 2px; }

/* ---------- background ---------- */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg i { position: absolute; width: 60vmax; height: 60vmax; filter: blur(90px); opacity: .55; border-radius: 50%; animation: drift 28s ease-in-out infinite alternate; }
.bg i:nth-child(1) { background: var(--blob-1); top: -25vmax; left: -15vmax; }
.bg i:nth-child(2) { background: var(--blob-2); bottom: -30vmax; right: -20vmax; animation-delay: -9s; }
.bg i:nth-child(3) { background: var(--blob-3); top: 8%; left: 30%; width: 40vmax; height: 30vmax; opacity: var(--blob-3-opacity); animation-delay: -17s; }
.bg .grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--gridline) 1px, transparent 1px), linear-gradient(90deg, var(--gridline) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 80%);
}
@keyframes drift { to { transform: translate(8vmax, 6vmax) scale(1.1); } }
@media (prefers-reduced-motion: reduce) { .bg i, .blink { animation: none; } }

/* ---------- liquid glass ---------- */
.glass {
  position: relative;
  background: var(--glass);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid var(--glass-edge);
  border-right-color: var(--glass-edge-2);
  border-bottom-color: var(--glass-edge-2);
  box-shadow: var(--shadow);
  isolation: isolate;
}
.glass::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: var(--sheen);
}

/* ---------- layout ---------- */
.wrap { width: min(1240px, 100% - 32px); margin-inline: auto; }
main.wrap { padding: 28px 0 40px; }

.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 16px;
  padding: 10px max(16px, calc((100% - 1240px) / 2));
  border-left: 0; border-right: 0; border-top: 0;
}
.brand { font-family: var(--font-display); font-size: 34px; text-decoration: none; white-space: nowrap; letter-spacing: .06em; }
.brand b { color: var(--hl); font-weight: 400; text-shadow: 0 0 14px color-mix(in srgb, var(--hl) 50%, transparent); }
.brand-mark { color: var(--accent-2); }
.search { flex: 1; min-width: 0; }
.search input { width: 100%; }
.nav { display: flex; gap: 8px; align-items: center; }

/* ---------- controls ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 14px; min-height: 40px;
  font: 16px/1 var(--font-display); letter-spacing: .08em; white-space: nowrap;
  color: var(--text); text-decoration: none; cursor: pointer;
  background: var(--btn-bg);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--btn-shadow);
  transition: transform .12s, background .2s, color .2s, box-shadow .2s;
}
.btn:hover { color: var(--hl); box-shadow: var(--btn-shadow), 0 0 0 1px var(--hl); }
.btn:active { transform: translateY(1px); }
.btn-accent { background: var(--btn-accent-bg); color: var(--accent-ink); border-color: transparent; box-shadow: var(--btn-accent-shadow); }
.btn-accent:hover { color: var(--accent-ink); filter: brightness(1.15); box-shadow: var(--btn-accent-shadow), 0 0 36px -6px var(--glow); }
.btn-ghost { background: transparent; border-color: transparent; box-shadow: none; }
.btn-danger:hover { color: var(--danger); box-shadow: 0 0 0 1px var(--danger); }
.btn-lg { font-size: 22px; padding: 12px 20px; min-height: 50px; }
.btn-sm { font-size: 15px; min-height: 32px; padding: 6px 10px; }
.btn-block { width: 100%; }
.btn-icon { width: 40px; padding: 0; font-size: 18px; }
.i-moon { display: none; }
:root[data-theme="light"] .i-sun { display: none; }
:root[data-theme="light"] .i-moon { display: inline; }

input, textarea {
  width: 100%; padding: 10px 12px; min-height: 42px;
  font: 15px/1.4 var(--font-body); color: var(--text);
  background: var(--field);
  border: 1px solid var(--glass-edge);
  border-bottom-color: color-mix(in srgb, var(--text) 25%, transparent);
  box-shadow: var(--field-shadow);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: border-color .2s, box-shadow .2s;
}
input::placeholder, textarea::placeholder { color: var(--dim); opacity: .8; }
input:focus, textarea:focus { outline: none; border-color: var(--hl); box-shadow: var(--field-shadow), 0 0 0 1px var(--hl), 0 0 22px -6px var(--glow); }
textarea { resize: vertical; }

.chip, .tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; font: 16px/1.2 var(--font-display); letter-spacing: .06em;
  text-decoration: none; background: var(--btn-bg);
  border: 1px solid var(--glass-edge); box-shadow: var(--btn-shadow);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.chip.on { background: var(--btn-accent-bg); color: var(--accent-ink); border-color: transparent; box-shadow: var(--btn-accent-shadow); }
.chip.on .dim { color: inherit; opacity: .7; }
.tags, .filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters { margin-bottom: 18px; }
.tag:hover, .chip:hover { color: var(--hl); }
.chip.on:hover { color: var(--accent-ink); }

/* ---------- hero ---------- */
.hero { padding: clamp(28px, 6vw, 64px); margin-bottom: 36px; overflow: hidden; }
.hero::after {
  content: "3D"; position: absolute; right: -2%; bottom: -18%; z-index: -1;
  font: 400 clamp(180px, 34vw, 420px)/1 var(--font-display);
  color: transparent; -webkit-text-stroke: 1px color-mix(in srgb, var(--accent) 40%, transparent);
  pointer-events: none;
}
.kicker { font-family: var(--font-display); font-size: 20px; color: var(--hl); letter-spacing: .1em; }
.lede { max-width: 620px; font-size: 17px; color: var(--dim); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 28px; }
.stats { display: flex; gap: 0; flex-wrap: wrap; }
.stats div { padding: 8px 22px 8px 0; margin-right: 22px; border-right: 1px solid var(--glass-edge); }
.stats div:last-child { border-right: 0; }
.stats b { display: block; font: 400 44px/1 var(--font-display); color: var(--hl); }
.stats span { font-size: 12px; letter-spacing: .15em; color: var(--dim); }

/* ---------- sections & cards ---------- */
.section { margin: 36px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.section-head h1, .section-head h2 { margin: 0; }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 18px; }

.card { display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow), 0 0 0 1px var(--hl), 0 0 40px -10px var(--glow); }
.card-media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; border-bottom: 1px solid var(--glass-edge); }
.card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; transition: transform .5s; }
.card:hover .card-media img { transform: scale(1.04); }
.card-media .chip-provider { position: absolute; left: 10px; top: 10px; z-index: 2; }
.card-body { padding: 14px 16px 16px; }
.card-body h3 { margin-bottom: 6px; }
.card-body h3 a { text-decoration: none; }
.meta { font-size: 13px; margin: 0 0 4px; letter-spacing: .06em; text-transform: uppercase; }

.poster {
  position: absolute; inset: 0; display: grid; place-items: center;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--blob-1) 55%, transparent), color-mix(in srgb, var(--blob-2) 45%, transparent)),
    repeating-linear-gradient(0deg, transparent 0 19px, var(--gridline) 19px 20px),
    repeating-linear-gradient(90deg, transparent 0 19px, var(--gridline) 19px 20px);
}
.poster span {
  font: 400 72px/1 var(--font-display); color: #fff;
  text-shadow: 0 0 24px rgba(255,255,255,.6);
  padding: 4px 16px; border: 1px solid rgba(255,255,255,.6);
  background: rgba(255,255,255,.12); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}

.chip-provider { background: rgba(0,0,0,.55); color: #fff; border-color: rgba(255,255,255,.3); font-size: 15px; }
.p-matterport { box-shadow: inset 3px 0 0 #ff5a36; }
.p-zillow { box-shadow: inset 3px 0 0 #1277e1; }
.p-realsee { box-shadow: inset 3px 0 0 #ffb800; }
.p-iguide { box-shadow: inset 3px 0 0 #1bb66b; }
.p-google { box-shadow: inset 3px 0 0 #fbbc04; }
.p-kuula { box-shadow: inset 3px 0 0 #7c4dff; }
.p-youtube { box-shadow: inset 3px 0 0 #ff0033; }
.p-other { box-shadow: inset 3px 0 0 var(--accent); }

.pager { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 24px; }
.empty { padding: 48px 24px; text-align: center; font-family: var(--font-display); font-size: 24px; }

/* ---------- tour page ---------- */
.viewer { aspect-ratio: 16 / 9; max-height: 78vh; width: 100%; overflow: hidden; margin-bottom: 18px; padding: 6px; }
.viewer iframe { width: 100%; height: 100%; border: 0; display: block; background: #000; }
.viewer-launch { position: relative; display: block; width: 100%; height: 100%; }
.viewer-launch img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.launch-label { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2; }
.tour-grid { display: grid; grid-template-columns: 1fr 320px; gap: 18px; align-items: start; }
.panel { padding: 22px; }
.panel h1 { font-size: clamp(36px, 5vw, 56px); margin-top: 12px; }
.desc { margin: 14px 0 18px; white-space: normal; max-width: 70ch; }
.side { display: flex; flex-direction: column; gap: 10px; position: sticky; top: 80px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 10px 0 0; font-size: 13px; }
.kv dt { color: var(--dim); letter-spacing: .1em; }
.kv dd { margin: 0; text-align: right; }
.lcd { font-family: var(--font-display); font-size: 22px; color: var(--hl); letter-spacing: .12em; text-shadow: 0 0 10px color-mix(in srgb, var(--hl) 45%, transparent); }
.lcd.big { font-size: 140px; }

/* ---------- profile ---------- */
.profile { display: flex; gap: 24px; padding: 28px; align-items: flex-start; }
.avatar {
  flex: none; width: 96px; height: 96px; display: grid; place-items: center;
  font: 400 64px/1 var(--font-display); color: var(--accent-ink); background: var(--btn-accent-bg);
  box-shadow: var(--btn-accent-shadow); overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-lg { width: 110px; height: 110px; font-size: 72px; }
.avatar-xs { width: 22px; height: 22px; font-size: 16px; box-shadow: none; display: inline-grid; vertical-align: middle; }
.byline { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; margin: 8px 0 0; }
.byline a, .who { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }

/* ---------- forms / auth ---------- */
.auth { max-width: 460px; margin: 20px auto; padding: 30px; }
.auth.wide { max-width: 720px; }
.auth h1 { font-size: 52px; }
.form { display: grid; gap: 16px; margin: 20px 0; }
.form label { display: grid; gap: 6px; font-family: var(--font-display); font-size: 18px; letter-spacing: .08em; }
.form label .dim { font-family: var(--font-body); font-size: 12px; letter-spacing: .04em; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hint { font-family: var(--font-body); font-size: 13px; color: var(--hl); min-height: 1em; }

.flash { padding: 12px 16px; margin-bottom: 18px; font-family: var(--font-display); font-size: 19px; letter-spacing: .06em; border-left: 3px solid var(--ok) !important; }
.flash-warn { border-left-color: var(--warn) !important; }
.flash-err { border-left-color: var(--danger) !important; color: var(--danger); background: color-mix(in srgb, var(--danger) 8%, transparent); }

/* ---------- dashboard table ---------- */
.table { padding: 4px 0; }
.tr { display: grid; grid-template-columns: 1fr auto auto; gap: 16px; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--glass-edge-2); }
.tr:last-child { border-bottom: 0; }
.td-main { display: grid; gap: 2px; min-width: 0; }
.td-main a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.td-main .dim { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }

.footer { padding-bottom: 28px; }
.footer-in { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 16px 20px; font-size: 12px; letter-spacing: .1em; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .tour-grid { grid-template-columns: 1fr; }
  .side { position: static; }
}
@media (max-width: 760px) {
  .topbar { flex-wrap: wrap; gap: 10px; }
  .brand { font-size: 28px; }
  .nav { margin-left: auto; }
  .search { order: 3; flex-basis: 100%; }
  .nav .btn-ghost { display: none; }
  .nav .btn:not(.btn-accent):not(.btn-icon) { display: none; }
  .two { grid-template-columns: 1fr; }
  .tr { grid-template-columns: 1fr; gap: 8px; }
  .profile { flex-direction: column; }
  .viewer { aspect-ratio: 4 / 5; }
  .auth { padding: 22px; }
}

/* ---------- fullscreen viewer ---------- */
.viewer { position: relative; }
.viewer-close { display: none; position: absolute; top: 10px; right: 10px; z-index: 5; }
.viewer.is-full { position: fixed; inset: 0; z-index: 1000; max-height: none; aspect-ratio: auto; width: 100vw; height: 100dvh; padding: 0; margin: 0; background: #000; }
.viewer.is-full .viewer-close { display: inline-flex; top: max(10px, env(safe-area-inset-top)); }
.viewer:fullscreen { padding: 0; background: #000; }
body.no-scroll { overflow: hidden; }

/* ---------- photo upload fields ---------- */
.cover-field { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.cover-field legend { font-family: var(--font-display); font-size: 18px; letter-spacing: .08em; padding: 0; margin-bottom: 6px; }
.cover-field legend .dim { font-family: var(--font-body); font-size: 12px; letter-spacing: .04em; }
.cover-row { display: flex; gap: 14px; align-items: center; }
.cover-inputs { display: grid; gap: 8px; flex: 1; min-width: 0; }
.cover-preview { flex: none; width: 150px; aspect-ratio: 16 / 10; overflow: hidden; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--blob-1), var(--blob-2)); box-shadow: var(--btn-shadow); }
.cover-preview img { width: 100%; height: 100%; object-fit: cover; }
.cover-preview span { font: 400 40px/1 var(--font-display); color: #fff; }
.file-btn { position: relative; overflow: hidden; justify-self: start; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.check { display: flex !important; grid-auto-flow: column; align-items: center; gap: 8px; font-family: var(--font-body) !important; font-size: 14px !important; }
.check input { width: auto; min-height: 0; }
@media (max-width: 760px) { .cover-row { flex-direction: column; align-items: stretch; } .cover-preview { width: 100%; } }

/* ---------- tour viewer: click-to-load ---------- */
button.viewer-launch { all: unset; position: relative; display: block; width: 100%; height: 100%; cursor: pointer; }
button.viewer-launch:focus-visible { outline: 2px solid var(--hl); outline-offset: -4px; }
.viewer.is-loaded .viewer-launch { display: none; }
.viewer iframe { width: 100%; height: 100%; border: 0; display: block; background: #000; }
.back-link { display: inline-block; margin-bottom: 12px; font-size: 14px; text-decoration: none; color: var(--dim); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- theme switches ---------- */
.modern-only { display: none !important; }
:root[data-theme="light"] .modern-only { display: revert !important; }
:root[data-theme="light"] :is(.retro-only, .rt) { display: none !important; }

/* retro keeps its all-caps terminal voice */
:root:not([data-theme="light"]) :is(.btn, .chip:not(.chip-provider), h1:not(.keep-case), h2, .form label, .cover-field legend,
  .kv dt, .empty p, .section-head .dim, .pager .dim, .footer-in .dim, .tile span) { text-transform: uppercase; }
:root:not([data-theme="light"]) :is(.form label .dim, .cover-field legend .dim, .form label .hint) { text-transform: none; }
:root:not([data-theme="light"]) .search input::placeholder { text-transform: uppercase; }
:root:not([data-theme="light"]) .btn-post::before { content: "+ "; }
:root:not([data-theme="light"]) .back-link { display: none; }

/* =====================================================================
   MODERN (the "light" toggle) — soft 3D UI: navy surround, frosted
   rounded shell, raised tiles, dark featured card, blue/pink bloom.
   ===================================================================== */
:root[data-theme="light"] {
  --font-display: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --ink: #070918;
  --ink-raised: #0D1125;
  --paper: #F7F9FF;
  --frost: rgba(237, 243, 255, .88);
  --frost-muted: rgba(220, 231, 250, .75);
  --text-dark: #0B1021;
  --text-light: #F8FAFF;
  --muted-dark: #586174;
  --muted-light: #A9B3CC;
  --glow-blue: rgba(124, 164, 255, .38);
  --glow-pink: rgba(255, 174, 203, .20);
  --hairline: rgba(255, 255, 255, .34);
  --focus: #86A8FF;
  --lift: 0 1px 0 rgba(255,255,255,.9) inset, 0 2px 6px rgba(13, 17, 37, .08), 0 22px 44px -22px rgba(13, 17, 37, .45);

  --bg: var(--ink);
  --text: var(--text-dark);
  --dim: var(--muted-dark);
  --hl: #3552d8;
  --accent: var(--ink);
  --accent-ink: var(--text-light);
  --danger: #c0264a;
  --ok: #1d7a4e;
  --warn: #8a5a00;
  color-scheme: light;
}
:root[data-theme="light"] body {
  background: var(--ink);
  color: var(--text-dark);
  font: 16px/1.55 var(--font-body);
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}
:root[data-theme="light"] :focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
:root[data-theme="light"] :is(h1, h2, h3) { font-family: var(--font-display); font-weight: 600; letter-spacing: -.02em; line-height: 1.15; }
:root[data-theme="light"] h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
:root[data-theme="light"] h2 { font-size: 1.35rem; }
:root[data-theme="light"] h3 { font-size: 1.15rem; }
:root[data-theme="light"] a:hover { color: var(--hl); }
:root[data-theme="light"] .accent { color: var(--text-dark); text-shadow: none; }
:root[data-theme="light"] .blink { animation: none; }

/* ambient light behind the shell */
:root[data-theme="light"] .bg .grid { display: none; }
:root[data-theme="light"] .bg i { filter: blur(110px); animation-duration: 40s; }
:root[data-theme="light"] .bg i:nth-child(1) { background: var(--glow-blue); opacity: 1; top: -10vmax; left: -10vmax; width: 55vmax; height: 55vmax; }
:root[data-theme="light"] .bg i:nth-child(2) { background: var(--glow-pink); opacity: 1; bottom: -15vmax; right: -10vmax; }
:root[data-theme="light"] .bg i:nth-child(3) { background: rgba(124, 164, 255, .22); opacity: 1; top: 25%; left: 35%; width: 40vmax; height: 30vmax; }

/* glass → soft raised light surfaces */
:root[data-theme="light"] .glass {
  background: var(--paper);
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 28px;
  box-shadow: var(--lift);
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
:root[data-theme="light"] .glass::before { display: none; }

/* header: floating frosted bar on the dark canvas */
:root[data-theme="light"] .topbar {
  position: sticky; top: 12px;
  width: min(1120px, 100% - 24px); margin: 12px auto 0;
  padding: 10px 12px 10px 20px;
  border-radius: 22px;
  background: var(--frost);
  -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 1px 0 rgba(255,255,255,.8) inset, 0 20px 50px -20px rgba(0, 0, 0, .7);
}
@supports not (backdrop-filter: blur(1px)) { :root[data-theme="light"] .topbar { background: #EDF3FF; } }
:root[data-theme="light"] .brand { font-family: var(--font-display); font-size: 1.25rem; letter-spacing: -.02em; }
:root[data-theme="light"] .wordmark { font-weight: 700; color: var(--text-dark); }
:root[data-theme="light"] .wordmark sup { font-size: .5em; font-weight: 500; margin-left: 1px; }
:root[data-theme="light"] .nav-explore { font-weight: 500; font-size: .95rem; text-decoration: none; color: var(--text-dark); padding: 8px 6px; }
:root[data-theme="light"] .nav-me { display: inline-flex !important; align-items: center; gap: 8px; }

/* the frosted shell */
:root[data-theme="light"] main.shell {
  width: min(1120px, 100% - 32px);
  margin: 24px auto 0;
  padding: clamp(20px, 4vw, 44px);
  border-radius: 40px;
  background: var(--frost);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 var(--hairline) inset, 0 60px 120px -40px rgba(0, 0, 0, .85), 0 0 120px -30px var(--glow-blue);
  animation: rise .24s ease-out both;
}
@supports not (backdrop-filter: blur(1px)) { :root[data-theme="light"] main.shell { background: #EDF3FF; } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* controls */
:root[data-theme="light"] .btn {
  font: 600 .95rem/1 var(--font-body); letter-spacing: 0; text-transform: none;
  min-height: 44px; padding: 10px 18px; border-radius: 14px;
  color: var(--text-dark); background: var(--paper);
  border: 1px solid rgba(11, 16, 33, .08);
  box-shadow: 0 1px 0 #fff inset, 0 6px 16px -8px rgba(13, 17, 37, .35);
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
:root[data-theme="light"] .btn:hover { color: var(--text-dark); transform: translateY(-1px); box-shadow: 0 1px 0 #fff inset, 0 10px 22px -10px rgba(13, 17, 37, .45); }
:root[data-theme="light"] .btn-accent { background: var(--ink); color: var(--text-light); border-color: transparent; box-shadow: 0 1px 0 rgba(255,255,255,.12) inset, 0 10px 24px -10px rgba(7, 9, 24, .8); }
:root[data-theme="light"] .btn-accent:hover { color: var(--text-light); filter: none; background: var(--ink-raised); box-shadow: 0 1px 0 rgba(255,255,255,.14) inset, 0 14px 30px -10px rgba(7, 9, 24, .85), 0 0 30px -8px var(--glow-blue); }
:root[data-theme="light"] .btn-ghost { background: transparent; box-shadow: none; border-color: transparent; }
:root[data-theme="light"] .btn-lg { font-size: 1rem; min-height: 50px; padding: 12px 22px; border-radius: 16px; }
:root[data-theme="light"] .btn-sm { min-height: 36px; font-size: .875rem; padding: 6px 12px; border-radius: 12px; }
:root[data-theme="light"] .btn-icon { width: 44px; padding: 0; font-size: 1.05rem; }

:root[data-theme="light"] :is(input, textarea) {
  font: 1rem/1.4 var(--font-body); color: var(--text-dark);
  background: #fff; border: 1px solid rgba(11, 16, 33, .12);
  border-radius: 16px; min-height: 46px; padding: 11px 14px;
  box-shadow: 0 1px 2px rgba(13, 17, 37, .06) inset;
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
:root[data-theme="light"] :is(input, textarea):focus { border-color: var(--focus); box-shadow: 0 0 0 3px rgba(134, 168, 255, .35); }
:root[data-theme="light"] .search input { background: rgba(255,255,255,.7); border-radius: 14px; min-height: 44px; }

:root[data-theme="light"] :is(.chip, .tag) {
  font: 500 .875rem/1.2 var(--font-body); letter-spacing: 0;
  padding: 7px 14px; border-radius: 999px;
  background: #fff; border: 1px solid rgba(11, 16, 33, .08);
  box-shadow: 0 4px 12px -8px rgba(13, 17, 37, .35);
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
:root[data-theme="light"] .chip.on { background: var(--ink); color: var(--text-light); border-color: transparent; box-shadow: 0 8px 18px -10px rgba(7, 9, 24, .8); }
:root[data-theme="light"] .chip-provider { background: rgba(7, 9, 24, .62); color: #fff; border: 0; font-size: .75rem; font-weight: 600; padding: 5px 10px; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: none !important; }

/* intro, three tiles, dark featured card */
:root[data-theme="light"] .m-intro { display: block !important; margin-bottom: 40px; }
:root[data-theme="light"] .m-intro h1 { margin-bottom: 8px; }
:root[data-theme="light"] .lede { color: var(--muted-dark); font-size: 1.05rem; max-width: 52ch; }
.tiles { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 28px 0 22px; isolation: isolate; }
.tiles::before {
  content: ""; position: absolute; inset: -10% 5%; z-index: -1; pointer-events: none;
  background: radial-gradient(40% 70% at 30% 60%, var(--glow-blue), transparent 70%), radial-gradient(35% 60% at 70% 40%, var(--glow-pink), transparent 70%);
  filter: blur(24px);
}
.tile {
  display: grid; place-items: center; align-content: center; gap: 12px; aspect-ratio: 1.15 / 1; padding: 18px;
  border-radius: 26px; text-decoration: none; color: var(--text-dark);
  background: var(--frost-muted);
  border: 1px solid rgba(255, 255, 255, .8);
  box-shadow: 0 1px 0 #fff inset, 0 3px 8px rgba(13, 17, 37, .06), 0 26px 50px -26px rgba(13, 17, 37, .55);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.tile-bright { background: #fff; box-shadow: 0 1px 0 #fff inset, 0 3px 8px rgba(13, 17, 37, .06), 0 30px 60px -26px rgba(13, 17, 37, .55), 0 0 60px -10px rgba(255, 174, 203, .55); }
.tile:hover, .tile:focus-visible { color: var(--text-dark); transform: translateY(-3px); background: #fff; box-shadow: 0 1px 0 #fff inset, 0 4px 10px rgba(13, 17, 37, .08), 0 34px 60px -26px rgba(13, 17, 37, .6); }
.tile svg { width: 40px; height: 40px; fill: none; stroke: var(--text-dark); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tile span { font-weight: 600; font-size: 1rem; }

.featured {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px;
  padding: 16px 20px 16px 16px; border-radius: 28px; text-decoration: none;
  background: linear-gradient(180deg, #111632, var(--ink));
  color: var(--text-light);
  box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 30px 60px -28px rgba(7, 9, 24, .9);
  transition: transform .2s ease, box-shadow .2s ease;
}
.featured:hover, .featured:focus-visible { color: var(--text-light); transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255,255,255,.1) inset, 0 36px 70px -28px rgba(7, 9, 24, .95), 0 0 40px -12px var(--glow-blue); }
.featured-thumb { position: relative; width: 132px; aspect-ratio: 16 / 10; border-radius: 18px; overflow: hidden; }
.featured-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.featured-text { display: grid; gap: 3px; min-width: 0; }
.featured-kicker { font-size: .8rem; color: var(--muted-light); }
.featured-text strong { font-size: 1.15rem; font-weight: 600; letter-spacing: -.01em; }
.featured-cap { font-size: .9rem; color: var(--muted-light); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.featured-play { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid rgba(248, 250, 255, .7); }
.featured-play svg { width: 20px; height: 20px; fill: none; stroke: var(--text-light); stroke-width: 1.8; stroke-linejoin: round; margin-left: 2px; }

/* feed */
:root[data-theme="light"] .section-head h2, :root[data-theme="light"] .section-head h1 { margin: 0; }
:root[data-theme="light"] .section-head .dim { font-size: .875rem; }
:root[data-theme="light"] .grid-cards { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 24px; }
:root[data-theme="light"] .card { border-radius: 28px; overflow: hidden; }
:root[data-theme="light"] .card:hover { transform: translateY(-3px); box-shadow: 0 1px 0 #fff inset, 0 4px 10px rgba(13, 17, 37, .08), 0 34px 60px -28px rgba(13, 17, 37, .6); }
:root[data-theme="light"] .card:hover .card-media img { transform: scale(1.02); }
:root[data-theme="light"] .card-media { border-bottom: 0; }
:root[data-theme="light"] .card-body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; flex: 1; }
:root[data-theme="light"] .card-body h3 { margin: 0; }
:root[data-theme="light"] .card .meta { text-transform: none; letter-spacing: 0; font-size: .875rem; color: var(--muted-dark); margin: 0; }
:root[data-theme="light"] .caption { font-size: .9rem; color: var(--muted-dark); margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
:root[data-theme="light"] .byline.modern-only { display: flex !important; margin: 0; font-size: .875rem; font-weight: 500; }
:root[data-theme="light"] .card-cta { margin-top: auto; display: inline-flex !important; }
:root[data-theme="light"] .card-body .caption + .card-cta, :root[data-theme="light"] .card-body h3 + .card-cta { margin-top: 10px; }

:root[data-theme="light"] .poster {
  background: radial-gradient(60% 80% at 30% 30%, #dfe8ff, transparent 70%), radial-gradient(60% 80% at 80% 80%, #ffe3ee, transparent 70%), #eef2fb;
}
:root[data-theme="light"] .poster span {
  font: 700 2.25rem/1 var(--font-display); letter-spacing: -.03em; color: var(--text-dark); text-shadow: none;
  background: rgba(255,255,255,.75); border: 1px solid #fff; border-radius: 18px; padding: 10px 18px;
  box-shadow: 0 16px 30px -16px rgba(13, 17, 37, .45);
}

/* avatars go round */
:root[data-theme="light"] .avatar { border-radius: 50%; background: var(--ink); color: var(--text-light); box-shadow: 0 8px 20px -10px rgba(7, 9, 24, .7); font-family: var(--font-display); font-weight: 600; }
:root[data-theme="light"] .avatar-lg { font-size: 44px; }
:root[data-theme="light"] .avatar-xs { font-size: 11px; box-shadow: none; }

/* tour page */
:root[data-theme="light"] .viewer { border-radius: 32px; padding: 0; overflow: hidden; background: var(--ink); }
:root[data-theme="light"] .viewer.is-full { border-radius: 0; }
:root[data-theme="light"] .panel { padding: 26px; }
:root[data-theme="light"] .panel h1 { margin-top: 12px; }
:root[data-theme="light"] .meta { text-transform: none; letter-spacing: 0; font-size: .9rem; color: var(--muted-dark); }
:root[data-theme="light"] .kv { font-size: .875rem; }
:root[data-theme="light"] .kv dt { letter-spacing: 0; }
:root[data-theme="light"] .lcd { font: 600 1rem/1.4 var(--font-body); color: var(--text-dark); letter-spacing: 0; text-shadow: none; }
:root[data-theme="light"] .lcd.big { font-size: 5rem; letter-spacing: -.04em; }
:root[data-theme="light"] .back-link { font-weight: 500; }

/* profile, forms, dashboard */
:root[data-theme="light"] .profile { padding: 28px; border-radius: 32px; }
:root[data-theme="light"] .auth { border-radius: 32px; padding: 32px; }
:root[data-theme="light"] .auth h1 { font-size: clamp(1.75rem, 4vw, 2.25rem); }
:root[data-theme="light"] .form label, :root[data-theme="light"] .cover-field legend { font: 600 .9rem/1.3 var(--font-body); letter-spacing: 0; }
:root[data-theme="light"] .form label .dim, :root[data-theme="light"] .cover-field legend .dim { font-weight: 400; font-size: .85rem; }
:root[data-theme="light"] .hint { color: var(--hl); font-family: var(--font-body); }
:root[data-theme="light"] .cover-preview { border-radius: 18px; background: #eef2fb; }
:root[data-theme="light"] .cover-preview span { color: var(--text-dark); font-weight: 700; }
:root[data-theme="light"] .flash { font: 500 .95rem/1.4 var(--font-body); letter-spacing: 0; border-radius: 16px; border-left-width: 0 !important; padding: 14px 18px; }
:root[data-theme="light"] .flash-err { color: var(--danger); background: #fff0f3; }
:root[data-theme="light"] .empty { font: 500 1.05rem/1.4 var(--font-body); }
:root[data-theme="light"] .table { border-radius: 24px; }
:root[data-theme="light"] .tr { border-bottom-color: rgba(11, 16, 33, .06); }
:root[data-theme="light"] .td-main .dim { text-transform: none; letter-spacing: 0; }
:root[data-theme="light"] .hero::after { display: none; }

/* footer sits on the dark canvas */
:root[data-theme="light"] .footer { width: min(1120px, 100% - 32px); }
:root[data-theme="light"] .footer-in { background: transparent; border: 0; box-shadow: none; color: var(--muted-light); font-size: .85rem; letter-spacing: 0; padding: 24px 8px; }
:root[data-theme="light"] .footer-in .dim { color: var(--muted-light); opacity: .8; }

@media (max-width: 900px) {
  :root[data-theme="light"] .grid-cards { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
}
@media (max-width: 760px) {
  :root[data-theme="light"] .topbar { top: 8px; width: calc(100% - 16px); margin-top: 8px; border-radius: 20px; padding: 8px 8px 8px 16px; }
  :root[data-theme="light"] .nav-explore { display: none !important; }
  :root[data-theme="light"] main.shell { width: calc(100% - 16px); margin-top: 12px; border-radius: 28px; padding: 18px 14px; }
  :root[data-theme="light"] .grid-cards { grid-template-columns: 1fr; gap: 18px; }
  .tiles { gap: 10px; margin: 20px 0 16px; }
  .tile { aspect-ratio: auto; padding: 16px 6px; border-radius: 20px; gap: 6px; }
  .tile svg { width: 28px; height: 28px; }
  .tile span { font-size: .85rem; }
  .featured { grid-template-columns: 1fr auto; gap: 12px; padding: 12px; border-radius: 24px; }
  .featured-thumb { grid-column: 1 / -1; width: 100%; }
  :root[data-theme="light"] .viewer { border-radius: 24px; }
  :root[data-theme="light"] .panel, :root[data-theme="light"] .auth, :root[data-theme="light"] .profile { padding: 20px; border-radius: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  :root[data-theme="light"] main.shell { animation: none; }
  .tile, .featured, .card { transition: none; }
}

/* fullscreen viewer must escape the frosted shell (backdrop-filter traps fixed children) */
body.no-scroll main.shell { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; animation: none !important; transform: none !important; }
body.no-scroll .topbar { visibility: hidden; }


/* =====================================================================
   RETRO = full synthwave: neon grid floor, rotating point cloud, scanlines
   ===================================================================== */
.bg .sky, .bg .floor, .bg .scan, #cloud { display: none; }
:root:not([data-theme="light"]) .bg i, :root:not([data-theme="light"]) .bg .grid { display: none; }
:root:not([data-theme="light"]) .bg .sky {
  display: block; position: absolute; inset: 0;
  background:
    radial-gradient(120% 60% at 50% 62%, rgba(255, 43, 214, .28), transparent 60%),
    radial-gradient(80% 50% at 50% 100%, rgba(0, 240, 255, .12), transparent 70%),
    linear-gradient(180deg, #05021a 0%, #0d0630 45%, #2a0a4a 62%, #07031a 63%);
}
:root:not([data-theme="light"]) #cloud { display: block; position: absolute; inset: 0 0 37% 0; width: 100%; height: 63%; }
:root:not([data-theme="light"]) .bg .floor {
  display: block; position: absolute; left: 0; right: 0; bottom: 0; height: 37%;
  perspective: 320px; perspective-origin: 50% 0%; overflow: hidden;
}
:root:not([data-theme="light"]) .bg .floor::before { /* horizon line */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; z-index: 2;
  background: linear-gradient(90deg, transparent, #ff2bd6 20%, #fff 50%, #ff2bd6 80%, transparent);
  box-shadow: 0 0 18px 4px rgba(255, 43, 214, .6), 0 0 60px 10px rgba(255, 43, 214, .25);
}
:root:not([data-theme="light"]) .floor-plane {
  position: absolute; left: -100%; right: -100%; top: 0; height: 300%;
  transform-origin: 50% 0; transform: rotateX(72deg);
  background-image:
    linear-gradient(90deg, rgba(255, 43, 214, .75) 2px, transparent 2px),
    linear-gradient(180deg, rgba(0, 240, 255, .7) 2px, transparent 2px);
  background-size: 80px 80px;
  filter: drop-shadow(0 0 4px rgba(255, 43, 214, .8));
  animation: floor-run 1.6s linear infinite;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 12%); mask-image: linear-gradient(180deg, transparent 0%, #000 12%);
}
@keyframes floor-run { to { background-position: 0 80px; } }
:root:not([data-theme="light"]) .bg .scan {
  display: block; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background: repeating-linear-gradient(180deg, rgba(0, 0, 0, .22) 0 1px, transparent 1px 3px);
}
@media (prefers-reduced-motion: reduce) { .floor-plane { animation: none !important; } }

/* neon edges on panels + glowing type */
:root:not([data-theme="light"]) .glass {
  border-color: rgba(0, 240, 255, .28);
  border-right-color: rgba(255, 43, 214, .18); border-bottom-color: rgba(255, 43, 214, .18);
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 43, 214, .06), 0 0 32px -12px rgba(255, 43, 214, .35), inset 0 1px 0 rgba(0, 240, 255, .25);
}
:root:not([data-theme="light"]) :is(h1, h2) { text-shadow: 0 0 10px rgba(0, 240, 255, .35), 0 0 30px rgba(255, 43, 214, .25); }
:root:not([data-theme="light"]) .hero h1 { text-shadow: 0 0 14px rgba(0, 240, 255, .55), 0 0 40px rgba(255, 43, 214, .45); }
:root:not([data-theme="light"]) .hero .accent {
  background: linear-gradient(180deg, #ffffff 0%, #9ff8ff 40%, #ff2bd6 60%, #ffb3f1 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: none; filter: drop-shadow(0 0 12px rgba(255, 43, 214, .55));
}
:root:not([data-theme="light"]) .brand-mark { text-shadow: 0 0 10px #ff2bd6; }
:root:not([data-theme="light"]) .hero::after { -webkit-text-stroke: 1px rgba(255, 43, 214, .45); }
:root:not([data-theme="light"]) .card:hover { box-shadow: 0 0 0 1px #00f0ff, 0 0 30px -6px rgba(0, 240, 255, .6), 0 0 60px -20px rgba(255, 43, 214, .7); }

/* ---------- shared new blocks ---------- */
.cta-3dmb { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding: 22px 24px; margin: 36px 0 8px; }
.cta-3dmb p { margin: 0; }
.cta-kicker { font-family: var(--font-display); font-size: 24px; letter-spacing: .04em; margin-bottom: 4px !important; }
:root:not([data-theme="light"]) .cta-kicker { text-transform: uppercase; color: var(--hl); }
.side-note { font-size: 13px; margin: 6px 0 0; }
.small { font-size: 13px; }
.verify-banner { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer-in { display: grid !important; grid-template-columns: 1fr auto; gap: 10px 24px; align-items: start; }
.footer-col { display: grid; gap: 4px; }
.footer-brand { font-family: var(--font-display); font-size: 22px; letter-spacing: .06em; }
.footer-cta { text-align: right; }
.footer-cta a { color: var(--hl); }
.footer-legal { grid-column: 1 / -1; padding-top: 10px; border-top: 1px solid var(--glass-edge-2); }
@media (max-width: 760px) { .footer-in { grid-template-columns: 1fr; } .footer-cta { text-align: left; } }

/* ---------- modern: wider canvas, dark cards that pop ---------- */
:root[data-theme="light"] .topbar, :root[data-theme="light"] main.shell, :root[data-theme="light"] .footer { width: min(1440px, 100% - 48px); }
:root[data-theme="light"] .grid-cards { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
:root[data-theme="light"] .card {
  background: linear-gradient(180deg, #121733, var(--ink));
  border-color: rgba(255, 255, 255, .06);
  color: var(--text-light);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .08) inset, 0 26px 50px -26px rgba(7, 9, 24, .85);
}
:root[data-theme="light"] .card:hover { box-shadow: 0 1px 0 rgba(255, 255, 255, .1) inset, 0 34px 64px -28px rgba(7, 9, 24, .95), 0 0 40px -14px var(--glow-blue); }
:root[data-theme="light"] .card h3 a, :root[data-theme="light"] .card .byline a { color: var(--text-light); }
:root[data-theme="light"] .card :is(.meta, .caption) { color: var(--muted-light); }
:root[data-theme="light"] .card .card-cta { background: var(--paper); color: var(--text-dark); box-shadow: 0 8px 20px -10px rgba(0, 0, 0, .6); }
:root[data-theme="light"] .card .card-cta:hover { background: #fff; color: var(--text-dark); }
:root[data-theme="light"] .card .avatar { background: var(--paper); color: var(--text-dark); }
:root[data-theme="light"] .cta-kicker { font-weight: 600; font-size: 1.15rem; letter-spacing: -.01em; }
:root[data-theme="light"] .footer-brand { font-weight: 700; font-size: 1.05rem; letter-spacing: -.01em; color: var(--text-light); }
:root[data-theme="light"] .footer-cta a { color: #b9cbff; }
:root[data-theme="light"] .footer-legal { border-top-color: rgba(255, 255, 255, .08); }
@media (max-width: 760px) {
  :root[data-theme="light"] .topbar, :root[data-theme="light"] main.shell, :root[data-theme="light"] .footer { width: calc(100% - 16px); }
}

/* tiles stay compact on wide screens */
.tile { aspect-ratio: auto; min-height: 170px; }

/* ---------- hero headline on one line ---------- */
.hero-title { font-size: clamp(34px, 6.2vw, 86px); white-space: nowrap; }
@media (max-width: 760px) { .hero-title { white-space: normal; font-size: clamp(40px, 12vw, 56px); } }

/* ---------- social + moderation ---------- */
.feed-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: -4px 0 16px; }
.toggle-form { margin: 0; }
.btn.is-on { color: var(--accent-2); border-color: color-mix(in srgb, var(--accent-2) 60%, transparent); }
:root[data-theme="light"] .btn.is-on { color: #c2255c; border-color: rgba(194, 37, 92, .35); }
.badge { display: inline-block; padding: 2px 8px; margin-left: 6px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; vertical-align: middle;
  color: var(--warn); border: 1px solid color-mix(in srgb, var(--warn) 60%, transparent); }
:root[data-theme="light"] .badge { border-radius: 999px; }
.stats-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-bottom: 20px; }
.stat { padding: 14px 16px; display: grid; gap: 4px; }
.stat b { font-size: 34px; line-height: 1; }
.stat span { font-size: 12px; color: var(--dim); letter-spacing: .06em; }
:root:not([data-theme="light"]) .stat span { text-transform: uppercase; }
.choices { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
.choices legend { font-family: var(--font-display); font-size: 18px; letter-spacing: .08em; margin-bottom: 8px; padding: 0; }
:root:not([data-theme="light"]) .choices legend { text-transform: uppercase; }
:root[data-theme="light"] .choices legend { font: 600 .9rem/1.3 var(--font-body); letter-spacing: 0; }
.td-main .note { font-style: italic; text-transform: none !important; }
.tr .row { flex-wrap: wrap; justify-content: flex-end; }

/* ---------- listings, status, visibility ---------- */
select {
  width: 100%; min-height: 42px; padding: 9px 12px; font: 15px/1.4 var(--font-body); color: var(--text);
  background: var(--field); border: 1px solid var(--glass-edge); border-bottom-color: color-mix(in srgb, var(--text) 25%, transparent);
}
select option { color: #111; }
:root[data-theme="light"] select { font: 1rem/1.4 var(--font-body); background: #fff; border: 1px solid rgba(11, 16, 33, .12); border-radius: 16px; min-height: 46px; padding: 10px 14px; }
.req { color: var(--hl); }
.re-box, .links-box { border: 1px solid var(--glass-edge-2); padding: 16px; margin: 0; display: grid; gap: 14px; }
:root:not([data-theme="light"]) .re-box { border-color: rgba(255, 43, 214, .35); box-shadow: inset 0 0 30px -18px rgba(255, 43, 214, .6); }
:root[data-theme="light"] :is(.re-box, .links-box) { border-radius: 20px; background: rgba(255, 255, 255, .5); }
.re-box legend, .links-box legend { font-family: var(--font-display); font-size: 18px; letter-spacing: .08em; padding: 0 6px; }
:root:not([data-theme="light"]) :is(.re-box, .links-box) legend { text-transform: uppercase; }
:root[data-theme="light"] :is(.re-box, .links-box) legend { font: 600 .9rem/1.3 var(--font-body); letter-spacing: 0; }
:is(.re-box, .links-box) legend .dim { font-family: var(--font-body); font-size: 12px; letter-spacing: .02em; text-transform: none; }
.facts-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 12px; }
.link-row { display: grid; grid-template-columns: 180px 1fr; gap: 10px; }
.inline-label { display: grid !important; grid-template-columns: 110px 1fr; align-items: center; gap: 10px; }
.vis-option { align-items: flex-start !important; }
.vis-option input { margin-top: 4px; }
@media (max-width: 760px) { .facts-grid { grid-template-columns: 1fr 1fr; } .link-row, .inline-label { grid-template-columns: 1fr; } }

.chip.status { font-weight: 700; }
.card-media .chip.status { position: absolute; right: 10px; top: 10px; z-index: 2; }
.s-for_sale { background: #00c46a !important; color: #001a0d !important; border-color: transparent !important; }
.s-coming_soon { background: #ffb800 !important; color: #1a1200 !important; border-color: transparent !important; }
.s-pocket { background: #1b1033 !important; color: #ff9bf0 !important; border-color: #ff2bd6 !important; }
.s-pending { background: #ff8a00 !important; color: #1a0d00 !important; border-color: transparent !important; }
.s-sold { background: #ff2b5e !important; color: #fff !important; border-color: transparent !important; }
.s-for_rent { background: #00b7ff !important; color: #00131a !important; border-color: transparent !important; }
.s-buyer_need { background: #b36bff !important; color: #fff !important; border-color: transparent !important; }
.chips-row { display: flex; gap: 8px; flex-wrap: wrap; }
.facts { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin: 4px 0 10px; }
.facts .price { font-family: var(--font-display); font-size: 34px; color: var(--hl); }
:root[data-theme="light"] .facts .price { font-size: 1.6rem; font-weight: 700; color: var(--text-dark); }
.card-price { margin: 0 0 4px; font-size: 14px; }
.card-price b { font-family: var(--font-display); font-size: 24px; color: var(--hl); margin-right: 6px; }
:root[data-theme="light"] .card-price b { font-size: 1.1rem; font-weight: 700; color: var(--text-light); }
:root[data-theme="light"] .card-price span { color: var(--muted-light); }
.extra-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.poster-card { display: grid; gap: 10px; padding: 12px 0; border-top: 1px solid var(--glass-edge-2); border-bottom: 1px solid var(--glass-edge-2); }
.poster-card .who { align-items: center; }
.poster-card .who span { display: grid; line-height: 1.3; }
.poster-card small { font-size: 12px; }
.avatar-sm { width: 42px; height: 42px; font-size: 26px; flex: none; }
.profile-role { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 8px; }
.badge-vis { color: var(--hl); border-color: color-mix(in srgb, var(--hl) 60%, transparent); }
.badge-status { color: var(--dim); border-color: var(--glass-edge-2); }

/* ---------- pop-up link viewer ---------- */
.popup { position: fixed; inset: 0; z-index: 1100; display: grid; grid-template-rows: auto 1fr auto; background: rgba(4, 2, 16, .96); }
.popup[hidden] { display: none; }
.popup-bar { display: flex; align-items: center; gap: 10px; padding: 10px max(12px, env(safe-area-inset-left)); padding-top: max(10px, env(safe-area-inset-top)); }
.popup-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font-display); font-size: 22px; color: #fff; }
.popup-body iframe { width: 100%; height: 100%; border: 0; background: #fff; }
.popup-hint { margin: 0; padding: 6px 12px 10px; font-size: 12px; text-align: center; }

/* ---------- join prompt (log in to see more) ---------- */
.gate { position: fixed; inset: 0; z-index: 1200; display: grid; place-items: center; padding: 16px; background: rgba(4, 2, 16, .72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.gate[hidden] { display: none; }
.gate-card { max-width: 440px; width: 100%; padding: 28px; text-align: center; display: grid; gap: 12px; justify-items: center; }
.gate-card h2 { margin: 0; }
.gate-card .row { justify-content: center; }
:root[data-theme="light"] .gate-card { border-radius: 32px; }

/* the hidden attribute always wins over layout rules (fixes DRE field showing for everyone) */
[hidden] { display: none !important; }

/* ---------- retro logo: GOT3D?_ ---------- */
.logo { display: inline-flex; align-items: baseline; gap: 0; }
.logo .brand-mark { margin-right: 8px; }
.logo-got { color: #fff; text-shadow: 0 0 8px rgba(255, 255, 255, .45); }
.logo b { color: #00f0ff; text-shadow: 0 0 10px rgba(0, 240, 255, .8), 0 0 24px rgba(0, 240, 255, .4); }
.logo-q { color: #ff2bd6; text-shadow: 0 0 10px rgba(255, 43, 214, .9), 0 0 26px rgba(255, 43, 214, .45); }
.logo-cursor { color: #00f0ff; text-shadow: 0 0 10px rgba(0, 240, 255, .8); margin-left: 1px; }
.footer-brand .blink { color: var(--hl); }

/* ---------- cities + invites ---------- */
.city-hero { padding: clamp(22px, 4vw, 40px); margin-bottom: 8px; }
.city-hero h1 { margin: 6px 0 10px; }
.city-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.city-tile { display: grid; gap: 4px; padding: 18px; text-decoration: none; transition: transform .15s; }
.city-tile:hover { transform: translateY(-2px); }
.city-tile b { font-family: var(--font-display); font-size: 24px; letter-spacing: .03em; }
:root[data-theme="light"] .city-tile b { font-size: 1.1rem; font-weight: 600; letter-spacing: -.01em; }
.section-head a.dim { text-decoration: none; }
.invite { display: grid; grid-template-columns: 1fr minmax(260px, 420px); gap: 16px; align-items: center; padding: 18px 22px; margin-bottom: 18px; }
.invite p { margin: 0; }
.invite-link { display: flex; gap: 8px; }
.invite-link input { flex: 1; min-width: 0; }
@media (max-width: 760px) { .invite { grid-template-columns: 1fr; } }

:root:not([data-theme="light"]) .kicker { text-transform: uppercase; }

/* ---------- share window ---------- */
.share { position: fixed; inset: 0; z-index: 1150; display: grid; place-items: center; padding: 16px; background: rgba(4, 2, 16, .75); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); overflow-y: auto; }
.share-card { width: min(560px, 100%); padding: 20px; display: grid; gap: 12px; max-height: calc(100dvh - 32px); overflow-y: auto; }
.share-head { display: flex; justify-content: space-between; align-items: center; }
.share-head h2 { margin: 0; }
.share-preview { width: 100%; height: auto; border: 1px solid var(--glass-edge); }
.share-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.share-grid .btn-accent { grid-column: 1 / -1; }
.share-label { margin: 6px 0 0; font-family: var(--font-display); font-size: 20px; letter-spacing: .05em; }
:root:not([data-theme="light"]) .share-label { text-transform: uppercase; color: var(--hl); }
:root[data-theme="light"] .share-label { font: 600 .95rem/1.3 var(--font-body); }
.embed-code { font-size: 12px; font-family: ui-monospace, Menlo, monospace; }
:root[data-theme="light"] .share-card { border-radius: 28px; }
:root[data-theme="light"] .share-preview { border-radius: 16px; }

/* ---------- retro hero: floats over the synthwave scene (no box) ---------- */
.hero-x {
  min-height: min(78vh, 760px); display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 14px; padding: 40px 0 56px; margin-bottom: 12px;
}
.hero-x .kicker { margin: 0; font-size: 22px; color: var(--hl); text-shadow: 0 0 12px rgba(0, 240, 255, .7); }
.hero-x .hero-title { margin: 0; font-size: clamp(40px, 7.4vw, 104px); text-shadow: 0 0 18px rgba(0, 240, 255, .6), 0 0 50px rgba(255, 43, 214, .5), 0 4px 0 #07031a; }
.hero-slogan { margin: 0; font-family: var(--font-display); font-size: clamp(22px, 3vw, 34px); letter-spacing: .18em; }
.hero-slogan b { font-weight: 400; color: #fff; text-shadow: 0 0 12px rgba(255, 43, 214, .9); }
.hero-slogan i { font-style: normal; color: var(--accent-2); margin: 0 .5em; opacity: .8; }
.hero-lede { max-width: 620px; margin: 0; color: #cfd8f0; font-size: 16px; text-shadow: 0 2px 12px #07031a, 0 0 2px #07031a; }
.hero-x .hero-cta { margin: 10px 0 6px; justify-content: center; }
.hud { display: flex; gap: 0; border: 1px solid rgba(0, 240, 255, .45); background: rgba(7, 3, 26, .55); box-shadow: 0 0 24px -8px rgba(0, 240, 255, .6), inset 0 0 18px -8px rgba(255, 43, 214, .6);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.hud div { display: grid; gap: 2px; padding: 8px 22px; border-right: 1px solid rgba(0, 240, 255, .25); }
.hud div:last-child { border-right: 0; }
.hud span { font-size: 11px; letter-spacing: .2em; color: var(--dim); }
.hud b { font: 400 34px/1 var(--font-display); color: var(--hl); letter-spacing: .1em; text-shadow: 0 0 10px rgba(0, 240, 255, .7); }
@media (max-width: 760px) {
  .hero-x { min-height: 70vh; padding: 28px 0 40px; }
  .hero-slogan { letter-spacing: .1em; }
  .hud div { padding: 8px 14px; }
  .hud b { font-size: 28px; }
}

/* ---------- install app ---------- */
.footer-app { grid-column: 1 / -1; }
.install-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.ios-install { position: fixed; inset: 0; z-index: 1300; display: grid; place-items: end center; padding: 16px; background: rgba(4, 2, 16, .7); }
.ios-install-card { width: min(420px, 100%); padding: 22px; display: grid; gap: 12px; }
.ios-install-card h2 { margin: 0; }
.ios-install-card ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
:root[data-theme="light"] .ios-install-card { border-radius: 28px; }

/* ---------- footer always at the bottom ---------- */
body { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
body > main { flex: 1 0 auto; width: 100%; }
body > .footer { margin-top: auto; }

/* ---------- Find a 3D Pro ---------- */
.pro-badge { display: inline-block; padding: 1px 7px; margin-left: 4px; font: 400 14px/1.4 var(--font-display); letter-spacing: .1em; vertical-align: middle;
  color: #001014; background: var(--hl); box-shadow: 0 0 14px -3px var(--hl); }
:root[data-theme="light"] .pro-badge { font: 700 .7rem/1.6 var(--font-body); color: #fff; background: var(--ink); border-radius: 999px; box-shadow: none; }
.pro-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.pro-card { padding: 18px; display: grid; gap: 12px; align-content: start; }
.pro-head { display: flex; gap: 12px; align-items: center; text-decoration: none; }
.pro-head > span { display: grid; gap: 2px; }
.pro-head small { font-size: 12px; }
.avatar-md { width: 52px; height: 52px; font-size: 32px; flex: none; }
.pro-blurb { margin: 0; font-size: 14px; }
.svc { display: flex; flex-wrap: wrap; gap: 6px; }
.svc .chip { font-size: 13px; padding: 2px 8px; }
.svc-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 6px 12px; }
.pro-search { display: flex; gap: 8px; margin-top: 14px; max-width: 560px; }
.pro-search input { flex: 1; min-width: 0; }
.footer-cta { display: grid; gap: 4px; }
.leads .note { white-space: normal; }
:root[data-theme="light"] .pro-card { border-radius: 24px; }
.pro-head > span > .pro-badge { justify-self: start; margin-left: 0; }

/* ---------- a car heading for the city ---------- */
.bg .car { display: none; }
:root:not([data-theme="light"]) .bg .car {
  display: block; position: absolute; left: 50%; bottom: 0; width: 120px; height: 42px; z-index: 3;
  transform-origin: 50% 100%; animation: drive 16s cubic-bezier(.2, .6, .4, 1) infinite;
}
:root:not([data-theme="light"]) .bg .car::before {                 /* body: 80s wedge from behind */
  content: ""; position: absolute; inset: 8px 0 0; background: linear-gradient(180deg, #1c0c3a, #0a0418);
  clip-path: polygon(14% 0, 86% 0, 100% 55%, 100% 100%, 0 100%, 0 55%);
  box-shadow: inset 0 1px 0 rgba(0, 240, 255, .6);
}
:root:not([data-theme="light"]) .bg .car i {                      /* full-width taillight bar */
  position: absolute; left: 6%; right: 6%; top: 50%; height: 5px; background: #ff2b5e;
  box-shadow: 0 0 10px 2px rgba(255, 43, 94, .9), 0 0 28px 6px rgba(255, 43, 94, .45);
}
@keyframes drive {
  0%   { transform: translate(-50%, -4%) scale(1);   opacity: 0; }
  6%   { opacity: 1; }
  80%  { opacity: .9; }
  100% { transform: translate(-50%, -94%) scale(.08); opacity: 0; }
}
@media (max-width: 760px) { :root:not([data-theme="light"]) .bg .car { width: 80px; height: 30px; } }
@media (prefers-reduced-motion: reduce) { .bg .car { animation: none !important; display: none !important; } }
.contact-box { padding: 14px 16px; margin: 10px 0; }
.contact-box p { margin: 0 0 6px; }
.plain-list { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 14px; }

/* ---------- 360° spins on the site ---------- */
.viewer-spin { aspect-ratio: auto; max-height: none; padding: 6px; display: grid; justify-items: center; }
.viewer-spin .spin { max-width: min(100%, 74vh); }
.spin-steps { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 4px 0 8px; }
.spin-steps li { padding: 6px 12px; border: 1px solid var(--glass-edge); font-size: 14px; }
.spin-steps b { color: var(--hl); margin-right: 6px; font-weight: 400; }
:root:not([data-theme="light"]) .spin-steps li { font-family: var(--font-display); font-size: 18px; letter-spacing: .08em; text-transform: uppercase; }
:root[data-theme="light"] .spin-steps li { border-radius: 999px; }
.spin-tips { border: 1px solid var(--glass-edge-2); padding: 12px 16px; margin: 6px 0 4px; }
.spin-tips summary { cursor: pointer; font-weight: 600; }
.spin-tips ul { margin: 10px 0 0; padding-left: 18px; display: grid; gap: 6px; font-size: 14px; }
:root[data-theme="light"] .spin-tips { border-radius: 16px; }
.swatches { display: flex; align-items: center; gap: 8px; }
.swatch { width: 36px; height: 36px; border: 1px solid var(--glass-edge); cursor: pointer; padding: 0; }
.swatch.on { outline: 2px solid var(--hl); outline-offset: 2px; }
.swatches input[type=color] { width: 44px; min-height: 36px; padding: 2px; }
.spin-drop { display: grid; gap: 6px; place-items: center; text-align: center; min-height: 170px; padding: 24px; cursor: pointer;
  border: 2px dashed color-mix(in srgb, var(--hl) 55%, transparent); background: color-mix(in srgb, var(--hl) 5%, transparent); }
.spin-drop b { font-family: var(--font-display); font-size: 30px; letter-spacing: .06em; }
.spin-drop span { font-size: 13px; color: var(--dim); }
.spin-drop.is-drag { background: color-mix(in srgb, var(--hl) 14%, transparent); }
:root:not([data-theme="light"]) .spin-drop b { text-transform: uppercase; }
:root[data-theme="light"] .spin-drop { border-radius: 20px; }
:root[data-theme="light"] .spin-drop b { font-size: 1.2rem; font-weight: 600; }
.spin-ready { display: grid; gap: 12px; }
.spin-ready-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.spin-count { margin: 0; font-family: var(--font-display); font-size: 30px; letter-spacing: .08em; color: var(--warn); }
.spin-count.is-ok { color: var(--hl); text-shadow: 0 0 12px color-mix(in srgb, var(--hl) 50%, transparent); }
:root[data-theme="light"] .spin-count { font-size: 1.1rem; font-weight: 700; letter-spacing: .04em; }
.spin-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 6px; max-height: 230px; overflow-y: auto; }
.spin-thumb { position: relative; aspect-ratio: 1; background: #111; border: 1px solid var(--glass-edge-2); }
.spin-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.spin-thumb i { position: absolute; left: 3px; top: 3px; font: 600 10px/1 ui-monospace, Menlo, monospace; font-style: normal; color: #fff; background: rgba(7, 3, 26, .75); padding: 2px 4px; }
.spin-thumb button { position: absolute; right: 2px; top: 2px; width: 20px; height: 20px; border: 0; padding: 0; cursor: pointer; color: #fff; background: rgba(255, 43, 94, .85); font-size: 14px; line-height: 1; }
.spin-preview .spin { max-width: 460px; margin-inline: auto; border: 1px solid var(--glass-edge); }
.spin-process { display: flex; align-items: center; gap: 28px; padding: 24px; margin-top: 18px; }
.spin-proc-ring { position: relative; display: grid; place-items: center; }
.spin-proc-ring svg { width: 120px; height: 120px; }
.spin-proc-ring b { position: absolute; font-family: var(--font-display); font-size: 30px; color: var(--hl); }
.spin-proc-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-family: var(--font-display); font-size: 24px; letter-spacing: .08em; color: var(--dim); }
:root:not([data-theme="light"]) .spin-proc-steps { text-transform: uppercase; }
:root[data-theme="light"] .spin-proc-steps { font: 600 1rem/1.3 var(--font-body); letter-spacing: 0; }
.spin-proc-steps li::before { content: "○ "; }
.spin-proc-steps li.is-on { color: var(--text); }
.spin-proc-steps li.is-on::before { content: "▸ "; color: var(--hl); }
.spin-proc-steps li.is-done { color: var(--hl); }
.spin-proc-steps li.is-done::before { content: "✓ "; }
.shopify-how { margin-top: 6px; font-size: 14px; }
.shopify-how summary { cursor: pointer; color: var(--hl); }
.shopify-how ol { margin: 8px 0; padding-left: 18px; display: grid; gap: 4px; }
.spin-cta { margin: 0; }
.profile-tabs { margin: 18px 0 0; }
:root[data-theme="light"] .spin { border-radius: 20px; }
@media (max-width: 760px) { .spin-process { flex-direction: column; text-align: center; } }
.share-grid .btn-wide { grid-column: 1 / -1; white-space: normal; text-align: center; }

/* ---------- My Zone: header button + menu on every account page ---------- */
.btn-zone { display: inline-flex !important; gap: 8px; }
.btn-zone .avatar-xs { width: 24px; height: 24px; font-size: 16px; box-shadow: none; }
.zone { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 12px 16px; margin-bottom: 22px; }
.zone-me { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.zone-me > span { display: grid; line-height: 1.2; }
.zone-me b { font-family: var(--font-display); font-size: 22px; font-weight: 400; letter-spacing: .06em; }
:root:not([data-theme="light"]) .zone-me b { text-transform: uppercase; color: var(--hl); }
:root[data-theme="light"] .zone-me b { font: 700 1rem/1.2 var(--font-body); }
.zone-me small { font-size: 12px; }
.zone-tabs { display: flex; gap: 4px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.zone-tabs::-webkit-scrollbar { display: none; }
.zone-tab { flex: none; padding: 8px 12px; text-decoration: none; white-space: nowrap; border: 1px solid transparent; background: none; color: var(--text);
  font: 400 18px/1 var(--font-display); letter-spacing: .08em; cursor: pointer; }
:root:not([data-theme="light"]) .zone-tab { text-transform: uppercase; }
:root[data-theme="light"] .zone-tab { font: 600 .9rem/1 var(--font-body); letter-spacing: 0; border-radius: 999px; }
.zone-tab:hover { color: var(--hl); }
.zone-tab.on { color: var(--hl); border-color: color-mix(in srgb, var(--hl) 60%, transparent); box-shadow: 0 0 14px -6px var(--hl); }
.zone-out { color: var(--dim); }
.zone-new { display: flex; gap: 8px; }
.btn-wrap { white-space: normal; text-align: left; line-height: 1.3; }
.pick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.pick { display: grid; gap: 12px; align-content: start; padding: 28px; text-decoration: none; transition: transform .15s; }
.pick:hover { transform: translateY(-3px); }
.pick-icon { font: 400 64px/1 var(--font-display); color: var(--hl); text-shadow: 0 0 16px color-mix(in srgb, var(--hl) 60%, transparent); }
.pick b { font-family: var(--font-display); font-size: 36px; font-weight: 400; letter-spacing: .04em; }
:root:not([data-theme="light"]) .pick b { text-transform: uppercase; }
:root[data-theme="light"] .pick b { font: 700 1.4rem/1.2 var(--font-body); }
:root[data-theme="light"] .pick-icon { font: 800 3rem/1 var(--font-body); color: var(--text-dark); text-shadow: none; }
:root[data-theme="light"] .pick { border-radius: 28px; }
.pick .btn { justify-self: start; }
@media (max-width: 760px) {
  .nav .btn-zone { display: inline-flex !important; padding: 0 8px; }
  .btn-zone .zone-label { display: none; }
  .nav .btn-login { display: inline-flex !important; }
  .zone { padding: 10px; gap: 10px; }
  .zone-me { display: none; }
  .zone-tabs { flex-basis: 100%; }
  .zone-new { flex-basis: 100%; }
  .zone-new .btn { flex: 1; }
  .pick-grid { grid-template-columns: 1fr; }
}

/* ---------- 360° spins wear hot pink ---------- */
:root { --spin: #ff2bd6; --spin-ink: #1a0014; }
:root[data-theme="light"] { --spin: #e2319a; --spin-ink: #ffffff; }
.btn-spin { background: var(--spin) !important; color: var(--spin-ink) !important; border-color: transparent !important; box-shadow: 0 0 22px -6px var(--spin); }
.btn-spin:hover { filter: brightness(1.12); color: var(--spin-ink) !important; }
.btn-spin:disabled { filter: saturate(.3); opacity: .6; }
.chip-provider.p-spin { box-shadow: inset 3px 0 0 var(--spin); }
.pick-spin .pick-icon { color: var(--spin); text-shadow: 0 0 16px color-mix(in srgb, var(--spin) 60%, transparent); }
.pick-spin:hover { box-shadow: var(--shadow), 0 0 0 1px var(--spin), 0 0 40px -10px var(--spin); }
.spin-badge { background: var(--spin); color: #1a0014; }
.spin-ring-fg { stroke: var(--spin, #ff2bd6); filter: drop-shadow(0 0 4px var(--spin, #ff2bd6)); }
.spin-count.is-ok { color: var(--spin); text-shadow: 0 0 12px color-mix(in srgb, var(--spin) 50%, transparent); }
.spin-drop { border-color: color-mix(in srgb, var(--spin) 60%, transparent); background: color-mix(in srgb, var(--spin) 5%, transparent); }
.card-media .poster span:only-child { }
.m-title { font-family: var(--font-display); font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 600; letter-spacing: -.02em; line-height: 1.15; margin: 0 0 8px; }

/* ---------- find the exact place ---------- */
.place-find { display: grid; gap: 8px; }
.place-row { display: flex; gap: 8px; }
.place-row input { flex: 1; min-width: 0; }
.place-results { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line, rgba(128,128,128,.35)); }
.place-results li { padding: 0; }
.place-results li.dim { padding: 10px 12px; }
.place-results button { display: grid; gap: 2px; width: 100%; text-align: left; padding: 10px 12px; background: none; border: 0; border-bottom: 1px solid var(--line, rgba(128,128,128,.25)); color: inherit; font: inherit; cursor: pointer; text-transform: none; }
.place-results button:hover, .place-results button:focus-visible { background: color-mix(in srgb, var(--accent, #00f0ff) 12%, transparent); }
.place-results button span { opacity: .75; font-size: .9em; }
.place-picked { margin: 0; text-transform: none; }
.linklike { background: none; border: 0; padding: 0; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; opacity: .75; }
.map-link { margin-left: 10px; white-space: nowrap; }

/* ---------- map / Street View on a tour page, autofill note ---------- */
.place-box { position: relative; margin: 14px 0; height: 76px; overflow: hidden; border: 1px solid var(--line, rgba(128,128,128,.35)); background: #0b0620; }
.place-box iframe { position: absolute; left: 0; top: 50%; width: 100%; height: 340px; transform: translateY(-50%); border: 0; pointer-events: none; }
:root:not([data-theme="light"]) .place-box:not(.is-open) iframe { filter: invert(.92) hue-rotate(215deg) saturate(1.7) contrast(1.05); }
.place-bar { position: absolute; inset: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 12px; background: linear-gradient(90deg, rgba(7,3,26,.9) 0%, rgba(7,3,26,.55) 55%, rgba(7,3,26,.15) 100%); }
:root[data-theme="light"] .place-bar { background: linear-gradient(90deg, rgba(255,255,255,.92) 0%, rgba(255,255,255,.6) 55%, rgba(255,255,255,.1) 100%); }
.place-box.is-open { height: auto; overflow: visible; display: grid; gap: 8px; border: 0; background: none; }
.place-box.is-open .place-bar { position: static; order: -1; padding: 0; background: none; }
.place-box.is-open iframe { position: static; transform: none; height: clamp(240px, 38vh, 360px); pointer-events: auto; border: 1px solid var(--line, rgba(128,128,128,.35)); }
.place-close { margin-left: auto; }
.autofill-note { margin: -6px 0 0; font-size: .85rem; text-transform: none; color: var(--spin); }

/* ---------- spin form polish ---------- */
.spin-steps li { padding: 3px 9px; font-size: 12px; }
:root:not([data-theme="light"]) .spin-steps li { font-size: 14px; }
.swatch { width: 64px; }
.swatch-pick { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px 0 6px; border: 1px solid var(--glass-edge); cursor: pointer; }
.swatch-pick i { width: 44px; height: 24px; border: 1px solid rgba(255,255,255,.5); background: conic-gradient(from 90deg, #ff2b5e, #ffd319, #3dff8b, #00f0ff, #4d5bff, #ff2bd6, #ff2b5e); }
.swatch-pick.on { outline: 2px solid var(--hl); outline-offset: 2px; }
.swatch-pick.on i { background: var(--picked); }
.swatch-pick b { font-weight: 400; font-size: .85rem; white-space: nowrap; }
.swatch-pick input[type=color] { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; padding: 0; opacity: 0; cursor: pointer; }
.btn-spin:disabled { filter: none; opacity: 1; background: transparent !important; color: var(--spin) !important; border: 1px dashed var(--spin) !important; box-shadow: none; cursor: not-allowed; }
.spin-qr { display: flex; gap: 16px; align-items: center; padding: 14px; margin: 0 0 10px; }
.spin-qr[hidden] { display: none; }
.spin-qr-code { flex: none; width: 150px; background: #fff; padding: 4px; line-height: 0; word-break: break-all; color: #000; }
.spin-qr-code svg { width: 100%; height: auto; display: block; }
.handoff-cover { width: 100%; max-height: 320px; object-fit: cover; display: block; }

/* ---------- drop photos / shoot now, side by side ---------- */
.spin-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 10px 0; }
.spin-inputs .spin-drop { margin: 0; min-height: 150px; width: 100%; color: inherit; font: inherit; }
.spin-inputs .spin-drop b { font-size: 24px; }
.spin-inputs .spin-shoot:hover, .spin-inputs .spin-drop:hover { background: color-mix(in srgb, var(--spin) 16%, transparent); box-shadow: 0 0 28px -10px var(--spin); }
.spin-inputs .spin-shoot[hidden] { display: none; }
.spin-inputs:has(.spin-shoot[hidden]) { grid-template-columns: 1fr; }
@media (max-width: 640px) { .spin-inputs { grid-template-columns: 1fr; } .spin-inputs .spin-drop { min-height: 110px; } }

/* ---------- retro only: status bar strip, My Zone label on phones ---------- */
.topbar { padding-top: calc(10px + env(safe-area-inset-top)); }
.topbar::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: env(safe-area-inset-top); pointer-events: none;
  background: linear-gradient(90deg, #2a0a4a, #4a0f63 50%, #0b2f4a); border-bottom: 1px solid rgba(255, 43, 214, .45); box-shadow: 0 0 14px rgba(255, 43, 214, .35); }
@media (max-width: 760px) {
  .btn-zone .avatar-xs { display: none; }
  .btn-zone .zone-label { display: inline; }
}
/* marketplace / site-builder how-tos in the share panel */
.store-how { display: grid; gap: 6px; margin-top: 8px; }
.store-how details { border: 1px solid var(--glass-edge); padding: 8px 12px; }
.store-how summary { cursor: pointer; }
.store-how ol { margin: 8px 0 0; padding-left: 20px; font-size: .9rem; }
/* forward motion: steeper floor, lines converge harder toward the city */
:root:not([data-theme="light"]) .bg .floor { perspective: 240px; }
:root:not([data-theme="light"]) .floor-plane { transform: rotateX(78deg); }

/* ---------- phone fixes ---------- */
@media (max-width: 760px) { input, textarea, select { font-size: 16px !important; } }   /* iOS zooms the page into anything smaller */
.bg { bottom: auto; height: 100lvh; }                                                      /* same size whether Safari's bars show or not */
.td-main > .badge { justify-self: start; width: auto; margin-left: 0; }
.btn-spin.is-waiting { filter: none; opacity: 1; background: transparent !important; color: var(--spin) !important; border: 1px dashed var(--spin) !important; box-shadow: none; }
/* the synthwave keeps rolling behind the status bar */
.topbar::before { background: linear-gradient(90deg, #2a0a4a, #5a0f73, #0b2f4a, #5a0f73, #2a0a4a); background-size: 200% 100%; animation: status-wave 14s linear infinite; }
@keyframes status-wave { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .topbar::before { animation: none; } }

/* ---------- legal pages + consent checkboxes ---------- */
.legal { max-width: 860px; line-height: 1.65; }
.legal h2 { margin: 28px 0 8px; font-size: 1.25rem; }
.legal ul { padding-left: 20px; } .legal li { margin: 6px 0; }
.legal p, .legal li { text-transform: none; }
.check.agree { align-items: flex-start !important; line-height: 1.5; text-transform: none; }
.check.agree input { width: 18px; height: 18px; min-height: 0; margin-top: 2px; flex: none; accent-color: var(--hl); }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px; }

/* ---------- alerts + badges ---------- */
.btn-zone { position: relative; }
.zone-dot { position: absolute; top: -7px; right: -7px; min-width: 20px; height: 20px; padding: 0 5px; display: grid; place-items: center; background: var(--spin); color: #1a0014; font: 700 12px/1 var(--font-body); box-shadow: 0 0 12px var(--spin); }
.alerts .alert { grid-template-columns: 1fr auto; text-decoration: none; color: inherit; text-transform: none; }
.alerts .alert.is-new { box-shadow: inset 3px 0 0 var(--spin); background: color-mix(in srgb, var(--spin) 7%, transparent); }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.gbadge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1px solid color-mix(in srgb, var(--hl) 50%, transparent); font-size: 14px; text-transform: none; box-shadow: 0 0 14px -6px var(--hl); }
.gbadge i { font-style: normal; }
.badge-board { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.badge-tile { display: grid; gap: 6px; justify-items: start; padding: 14px; opacity: .55; filter: grayscale(.8); text-transform: none; }
.badge-tile i { font-style: normal; font-size: 34px; line-height: 1; }
.badge-tile b { font-family: var(--font-display); font-size: 22px; font-weight: 400; letter-spacing: .04em; text-transform: uppercase; }
.badge-tile.is-earned { opacity: 1; filter: none; border-color: color-mix(in srgb, var(--hl) 60%, transparent); box-shadow: 0 0 26px -10px var(--hl); }
.badge-tile.is-prize.is-earned { border-color: var(--spin); box-shadow: 0 0 30px -8px var(--spin); }
.badge-bar { width: 100%; height: 6px; background: rgba(255,255,255,.1); }
.badge-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--hl), var(--spin)); }
.badge-when { font-size: 13px; color: var(--hl); }
.badge-board { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.badge-tile { opacity: 1; filter: none; padding: 12px; }
.badge-tile:not(.is-earned) i { filter: grayscale(1); opacity: .45; }
.badge-tile:not(.is-earned) b { color: var(--dim); }
.badge-tile b { font-size: 19px; }

/* ---------- 360° photos ---------- */
.viewer-pano { padding: 0; overflow: hidden; }
.pano { width: 100%; aspect-ratio: 16 / 9; min-height: 300px; background: #07031a; }
.pano-preview .pano { aspect-ratio: 2 / 1; min-height: 200px; margin: 8px 0; }
.pano-drop { cursor: pointer; }
.pick-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.pick-pano .pick-icon { color: var(--hl); }
.pnlm-container { font-family: var(--font-body); }

/* ---------- flip bar, magic window, spin video, pano replace ---------- */
.flip { position: sticky; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 40; display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; margin: 20px 0 0; }
.flip .btn { background: rgba(7, 3, 26, .88); }
.flip-next { justify-self: end; } .flip-prev { justify-self: start; }
.pano { position: relative; }
.pano-motion { position: absolute; right: 10px; bottom: 10px; z-index: 5; padding: 8px 12px; border: 1px solid #00f0ff; background: rgba(7,3,26,.85); color: #fff; font: 600 14px var(--font-body); cursor: pointer; }
.pano-motion.on { border-color: #ff2bd6; color: #ff2bd6; }
.pnlm-orientation-button, .pnlm-fullscreen-toggle-button { display: none !important; }
.spin-video { display: grid; gap: 10px; margin: 10px 0; }
.spin-video video { width: 100%; max-width: 420px; aspect-ratio: 1; background: #000; justify-self: center; }
.pano-replace { display: grid; gap: 8px; justify-items: start; }
.pano-replace .pano { aspect-ratio: 2 / 1; min-height: 180px; width: 100%; }

/* ---------- feed: All / 3D Tours / 360 Spins, and previews that move ---------- */
.kind-tabs { display: flex; gap: 0; margin: 4px 0 14px; border: 1px solid var(--glass-edge); width: max-content; max-width: 100%; }
.kind-tab { padding: 10px 18px; font-family: var(--font-display); font-size: 20px; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; color: var(--dim); }
.kind-tab + .kind-tab { border-left: 1px solid var(--glass-edge); }
.kind-tab.on { color: #07031a; background: var(--hl); box-shadow: 0 0 22px -6px var(--hl); }
.kind-tab.kind-360.on { background: var(--spin); box-shadow: 0 0 22px -6px var(--spin); }
@media (max-width: 480px) { .kind-tabs { width: 100%; } .kind-tab { flex: 1; text-align: center; padding: 10px 6px; font-size: 17px; } }
.card-media[data-live-spin] img { object-fit: contain; background: #f4f4f0; transition: none; }
.card-media[data-live-spin].is-live img, .card:hover .card-media[data-live-spin] img { transform: none; }
.live-pano { position: absolute; inset: 0; z-index: 1; background-repeat: repeat-x; background-size: auto 150%; background-position: 0 50%; opacity: 0; transition: opacity .6s; }
.is-live .live-pano { opacity: 1; animation: pano-pan 60s linear infinite; }
@keyframes pano-pan { to { background-position: -300% 50%; } }
.card-media[data-live-tour].is-live img { animation: tour-drift 14s ease-in-out infinite alternate; }
@keyframes tour-drift { from { transform: scale(1.02) translate(0, 0); } to { transform: scale(1.12) translate(-2%, -1%); } }
.card-media.is-live { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--spin) 50%, transparent); }
body.warp-out main { transition: transform .18s ease-in, opacity .18s; transform: scale(.85); opacity: 0; }
/* theater: the post's 3D takes the stage */
.tour .viewer { max-height: 82vh; box-shadow: 0 0 80px -20px rgba(255, 43, 214, .45), 0 0 140px -40px rgba(0, 240, 255, .35); }
@media (max-width: 760px) { .tour .viewer:not(.viewer-spin) { aspect-ratio: auto; height: calc(100svh - 230px); min-height: 320px; } .tour .viewer-pano .pano { height: 100%; aspect-ratio: auto; } }

/* ---------- home: three ways to show a place ---------- */
.three-ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 22px auto 6px; max-width: 860px; }
.way { display: grid; gap: 4px; justify-items: center; text-align: center; padding: 14px 12px; text-decoration: none; color: var(--text); border: 1px solid rgba(0, 240, 255, .35); background: rgba(7, 3, 26, .55); text-transform: none; }
.way:hover { border-color: var(--hl); box-shadow: 0 0 26px -8px var(--hl); }
.way-icon { font: 400 34px/1 var(--font-display); color: var(--hl); text-shadow: 0 0 14px color-mix(in srgb, var(--hl) 60%, transparent); }
.way b { font: 400 22px/1.1 var(--font-display); letter-spacing: .06em; text-transform: uppercase; }
.way span:last-child { font-size: 13px; color: var(--dim); line-height: 1.4; }
.way-spin { border-color: color-mix(in srgb, var(--spin) 50%, transparent); } .way-spin .way-icon { color: var(--spin); text-shadow: 0 0 14px var(--spin); }
.way-spin:hover { border-color: var(--spin); box-shadow: 0 0 26px -8px var(--spin); }
@media (max-width: 640px) { .three-ways { grid-template-columns: 1fr; } .way { grid-template-columns: auto 1fr; justify-items: start; text-align: left; column-gap: 12px; } .way-icon { grid-row: span 2; font-size: 28px; align-self: center; min-width: 52px; } }
