/* BoothKits Booth cloud — "Studio" theme.
   Near-black stage, warm off-white ink, soft glass, iridescent accent used sparingly. */

:root {
  --bg0: #0d0b12;
  --bg1: #14121a;
  --bg2: #1a1722;
  --ink: #f5f3ee;
  --ink-2: rgba(245, 243, 238, .72);
  --ink-3: rgba(245, 243, 238, .52);
  --glass: rgba(255, 255, 255, .05);
  --glass-2: rgba(255, 255, 255, .08);
  --glass-3: rgba(255, 255, 255, .12);
  --line: rgba(255, 255, 255, .1);
  --line-2: rgba(255, 255, 255, .18);
  --lilac: #c9a7ff;
  --pink: #ffb8dc;
  --sky: #9fe6ff;
  --mint: #b8ffd9;
  --peach: #ffe2b0;
  --iri: linear-gradient(115deg, #ffb8dc 0%, #c9a7ff 26%, #9fe6ff 52%, #b8ffd9 76%, #ffe2b0 100%);
  --ok: #8ff0bf;
  --warn: #ffd79a;
  --bad: #ff9fb6;
  --r: 20px;
  --r-sm: 14px;
  --r-xs: 10px;
  --display: "Bodoni Moda", "Bodoni 72", Didot, "Playfair Display", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --gutter: 16px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg0);
  background-image: linear-gradient(180deg, var(--bg0) 0%, var(--bg1) 60%, var(--bg0) 100%);
  background-attachment: fixed;
  color: var(--ink);
  font: 400 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: rgba(201, 167, 255, .35); color: var(--ink); }
[hidden] { display: none !important; }

/* Ambient glow behind everything */
.aura { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.aura::before, .aura::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(100px);
  width: 80vmax; height: 80vmax;
}
.aura::before { top: -52vmax; left: -30vmax; background: radial-gradient(circle, rgba(201, 167, 255, .34), transparent 62%); }
.aura::after { bottom: -58vmax; right: -34vmax; background: radial-gradient(circle, rgba(159, 230, 255, .2), transparent 60%); }
.grain {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
main, .topbar, .footer { position: relative; z-index: 1; }
main { flex: 1 0 auto; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.wrap-narrow { max-width: 560px; }
.wrap-mid { max-width: 880px; }
@media (min-width: 720px) { :root { --gutter: 28px; } }
@media (min-width: 1100px) { :root { --gutter: 40px; } }

/* ---------------------------------------------------------------- type */
h1, h2, h3, .display {
  font-family: var(--display); font-weight: 500; letter-spacing: -.015em; line-height: 1.02; margin: 0;
  font-optical-sizing: auto; text-wrap: balance;
}
h1 { font-size: clamp(40px, 11vw, 92px); }
h2 { font-size: clamp(26px, 6vw, 38px); }
h3 { font-size: 22px; }
p { margin: 0; }
.eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3);
}
.lede { color: var(--ink-2); font-size: clamp(16px, 2.4vw, 19px); line-height: 1.6; max-width: 46ch; }
.muted { color: var(--ink-2); }
.faint { color: var(--ink-3); }
.small { font-size: 13px; }
.mono { font-family: var(--mono); font-size: .92em; letter-spacing: .02em; }
.italic { font-style: italic; }
.iri-text { background: var(--iri); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nowrap { white-space: nowrap; }
.tnum { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Iridescent underline that draws in under display headlines */
.iri-line { position: relative; display: block; height: 2px; width: min(240px, 46%); margin-top: 18px; border-radius: 2px; overflow: hidden; }
.iri-line::before {
  content: ""; position: absolute; inset: 0; background: var(--iri);
  transform-origin: left center; animation: draw 1.1s .15s var(--ease-out) both;
}
.center .iri-line { margin-left: auto; margin-right: auto; }
.center .iri-line::before { transform-origin: center; }
@keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------------------------------------------------------------- top bar & footer */
.topbar { padding-top: max(18px, env(safe-area-inset-top)); padding-bottom: 6px; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  font-size: 11px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-2);
  border-radius: 999px;
}
.brand svg { width: 26px; height: 26px; flex: none; }
.brand b { color: var(--ink); font-weight: 800; }
.topbar-actions { display: flex; align-items: center; gap: 8px; min-width: 0; }
.brand { white-space: nowrap; flex: none; }
.topbar-who { overflow: hidden; text-overflow: ellipsis; max-width: 260px; }
@media (max-width: 639px) { .topbar-who { display: none; } }

.footer { padding: 56px 0 calc(28px + var(--safe-b)); }
.footer .wrap { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.footer-rule { width: 100%; height: 1px; background: linear-gradient(90deg, transparent, var(--line), transparent); margin-bottom: 14px; }
.powered {
  display: inline-flex; align-items: center; gap: 9px; text-decoration: none;
  font-size: 11px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-3);
  transition: color .25s; border-radius: 999px; padding: 4px 6px;
}
.powered:hover { color: var(--ink); }
.powered .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--iri); box-shadow: 0 0 12px rgba(201, 167, 255, .7); }

/* ---------------------------------------------------------------- glass */
.card {
  position: relative;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 20px;
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  backdrop-filter: blur(16px) saturate(1.15);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 30px 60px -40px rgba(0, 0, 0, .8);
}
@media (min-width: 720px) { .card { padding: 24px; } }
.card-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.card-title h3 { font-size: 22px; }

/* ---------------------------------------------------------------- buttons */
.btn {
  --h: 48px;
  position: relative; isolation: isolate;
  appearance: none; -webkit-appearance: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h); padding: 0 20px;
  border-radius: 999px; border: 1px solid var(--line);
  background: var(--glass-2); color: var(--ink);
  font: 700 15px/1.1 var(--sans); letter-spacing: .01em; text-decoration: none; text-align: center; white-space: nowrap;
  cursor: pointer; user-select: none; -webkit-user-select: none;
  transition: transform .16s var(--ease), background-color .25s, border-color .25s, box-shadow .3s, opacity .2s;
}
.btn:hover { background: var(--glass-3); border-color: var(--line-2); }
.btn:active { transform: scale(.97); }
.btn svg { width: 19px; height: 19px; flex: none; }
.btn-primary {
  background: var(--iri); background-size: 160% 100%; background-position: 0% 50%;
  color: #17121f; border-color: transparent;
  box-shadow: 0 16px 36px -18px rgba(201, 167, 255, .9), 0 0 0 1px rgba(255, 255, 255, .25) inset;
  transition: transform .16s var(--ease), background-position .6s var(--ease), box-shadow .3s, opacity .2s;
}
.btn-primary:hover { background: var(--iri); background-size: 160% 100%; background-position: 100% 50%; box-shadow: 0 20px 44px -18px rgba(159, 230, 255, .9), 0 0 0 1px rgba(255, 255, 255, .3) inset; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--glass); color: var(--ink); border-color: var(--line); }
.btn-lg { --h: 60px; font-size: 17px; padding: 0 26px; }
.btn-sm { --h: 36px; font-size: 13px; padding: 0 14px; gap: 7px; }
.btn-sm svg { width: 15px; height: 15px; }
.btn-icon { width: var(--h); padding: 0; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-busy { opacity: .55; pointer-events: none; }
.btn.is-busy::after {
  content: ""; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Iridescent focus ring */
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--lilac); outline-offset: 3px; }
.btn:focus-visible, .chip:focus-visible, .switch:focus-visible, .tile:focus-visible, .brand:focus-visible, .powered:focus-visible { outline: none; }
.btn:focus-visible::before, .chip:focus-visible::before, .tile:focus-visible::before, .brand:focus-visible::before, .powered:focus-visible::before, .switch:focus-visible::before {
  content: ""; position: absolute; inset: -5px; border-radius: inherit; padding: 2px; z-index: 3;
  background: var(--iri);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.brand, .powered { position: relative; }

/* ---------------------------------------------------------------- forms */
.field { display: grid; gap: 8px; }
.field label { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.input {
  width: 100%; min-height: 54px; padding: 0 16px;
  border-radius: var(--r-sm); border: 1px solid var(--line); background: rgba(0, 0, 0, .3); color: var(--ink);
  font: 500 16px var(--sans); transition: border-color .2s, box-shadow .25s, background-color .2s;
}
.input::placeholder { color: rgba(245, 243, 238, .3); }
.input:hover { border-color: var(--line-2); }
.input:focus { outline: none; border-color: rgba(201, 167, 255, .7); box-shadow: 0 0 0 4px rgba(201, 167, 255, .16), 0 0 24px -6px rgba(159, 230, 255, .5); background: rgba(0, 0, 0, .4); }
.input.mono { font-family: var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.form-error {
  display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-sm);
  background: rgba(255, 159, 182, .1); border: 1px solid rgba(255, 159, 182, .3); color: #ffd3de; font-size: 14px;
}

/* ---------------------------------------------------------------- chips, pills, switch */
.pill {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px;
  font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  background: var(--glass-2); border: 1px solid var(--line); color: var(--ink-2); white-space: nowrap;
}
.pill .d { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill-ok { color: var(--ok); background: rgba(143, 240, 191, .08); border-color: rgba(143, 240, 191, .25); }
.pill-warn { color: var(--warn); background: rgba(255, 215, 154, .08); border-color: rgba(255, 215, 154, .25); }
.pill-bad { color: var(--bad); background: rgba(255, 159, 182, .08); border-color: rgba(255, 159, 182, .25); }
.pill-iri { color: #17121f; background: var(--iri); border-color: transparent; }
.live-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; }
.live-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--ok); animation: ping 2.2s var(--ease-out) infinite; }
@keyframes ping { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(1.8); opacity: 0; } }

.switch {
  position: relative; flex: none; appearance: none; -webkit-appearance: none; cursor: pointer;
  width: 46px; height: 28px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(0, 0, 0, .35);
  transition: background-color .3s var(--ease), border-color .3s;
}
.switch::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--ink-3); transition: transform .3s var(--ease), background-color .3s;
}
.switch:checked { background: rgba(184, 255, 217, .16); border-color: rgba(184, 255, 217, .5); }
.switch:checked::after { transform: translateX(18px); background: var(--mint); box-shadow: 0 0 14px rgba(184, 255, 217, .7); }
.switch:disabled { opacity: .5; cursor: progress; }
.switch-row { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-2); cursor: pointer; }

/* ---------------------------------------------------------------- toast */
.toasts {
  position: fixed; left: 50%; bottom: calc(22px + var(--safe-b)); z-index: 200; transform: translateX(-50%);
  display: grid; gap: 8px; justify-items: center; pointer-events: none; width: calc(100% - 32px); max-width: 420px;
}
.toast {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 999px;
  background: rgba(28, 25, 36, .92); border: 1px solid var(--line-2); color: var(--ink);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  font-size: 14px; font-weight: 600; box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .9);
  animation: toast-in .45s var(--ease-out) both;
}
.toast .d { width: 8px; height: 8px; border-radius: 50%; background: var(--iri); flex: none; }
.toast.out { animation: toast-out .35s var(--ease) both; }
@keyframes toast-in { from { opacity: 0; transform: translateY(14px) scale(.96); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(8px) scale(.98); } }

/* ---------------------------------------------------------------- states */
.state { display: grid; justify-items: center; text-align: center; gap: 14px; padding: 56px 20px; }
.state-icon {
  position: relative; width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center;
  background: var(--glass); border: 1px solid var(--line); margin-bottom: 6px;
}
.state-icon::before { content: ""; position: absolute; inset: -1px; border-radius: 50%; padding: 1px; background: var(--iri); opacity: .6;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.state-icon svg { width: 30px; height: 30px; color: var(--ink-2); }
.state h2 { font-size: clamp(28px, 7vw, 40px); }
.state p { color: var(--ink-2); max-width: 38ch; }

.skeleton {
  background: linear-gradient(100deg, rgba(255, 255, 255, .04) 30%, rgba(255, 255, 255, .09) 50%, rgba(255, 255, 255, .04) 70%);
  background-size: 300% 100%; animation: shimmer 1.6s linear infinite; border-radius: var(--r-sm);
}
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -50% 0; } }

.fade-up { animation: fade-up .8s var(--ease-out) both; }
.fade-up.d1 { animation-delay: .06s; } .fade-up.d2 { animation-delay: .12s; } .fade-up.d3 { animation-delay: .18s; } .fade-up.d4 { animation-delay: .24s; }
@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } }

/* ================================================================= GALLERY */
.g-head { padding: 34px 0 30px; }
@media (min-width: 720px) { .g-head { padding: 64px 0 44px; } }
.g-head h1 { margin-top: 14px; max-width: 16ch; overflow-wrap: anywhere; }
.g-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 22px; color: var(--ink-2); font-size: 15px; }
.g-meta .sep { width: 4px; height: 4px; border-radius: 50%; background: var(--ink-3); }
.g-meta .grp { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.g-meta .count b { color: var(--ink); font-weight: 700; }
@media (max-width: 639px) { .g-meta { flex-direction: column; align-items: flex-start; gap: 8px; } .g-meta > .sep { display: none; } }
.g-meta .live { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }

.masonry { column-count: 2; column-gap: 8px; }
@media (min-width: 640px) { .masonry { column-count: 3; column-gap: 12px; } }
@media (min-width: 1100px) { .masonry { column-count: 4; column-gap: 14px; } }
@media (min-width: 1500px) { .masonry { column-count: 5; } }
.tile {
  position: relative; display: block; width: 100%; margin: 0 0 8px; padding: 0; border: 0; cursor: zoom-in;
  border-radius: var(--r-sm); overflow: visible; background: none; break-inside: avoid; -webkit-column-break-inside: avoid;
  text-align: left;
}
@media (min-width: 640px) { .tile { margin-bottom: 12px; } }
@media (min-width: 1100px) { .tile { margin-bottom: 14px; } }
.tile-media {
  position: relative; overflow: hidden; border-radius: var(--r-sm); background: rgba(255, 255, 255, .04);
  aspect-ratio: var(--ar, 3 / 4); transform: translateZ(0);
}
.tile-media::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 1px rgba(255, 255, 255, .07) inset; pointer-events: none; }
.tile:not(.is-loaded) .tile-media { background: linear-gradient(100deg, rgba(255, 255, 255, .035) 30%, rgba(255, 255, 255, .08) 50%, rgba(255, 255, 255, .035) 70%); background-size: 300% 100%; animation: shimmer 1.6s linear infinite; }
.tile-media img, .tile-media video {
  width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.03);
  transition: opacity .7s var(--ease), transform 1.2s var(--ease-out);
}
.tile.is-loaded .tile-media img, .tile.is-loaded .tile-media video { opacity: 1; transform: none; }
@media (hover: hover) {
  .tile:hover .tile-media img, .tile:hover .tile-media video { transform: scale(1.035); }
  .tile .tile-media::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, transparent 55%, rgba(13, 11, 18, .45)); opacity: 0; transition: opacity .4s; pointer-events: none; }
  .tile:hover .tile-media::before { opacity: 1; }
}
.tile-badge {
  position: absolute; z-index: 2; top: 8px; left: 8px; display: inline-flex; align-items: center; gap: 5px;
  height: 24px; padding: 0 9px; border-radius: 999px; font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  background: rgba(13, 11, 18, .55); color: var(--ink); border: 1px solid rgba(255, 255, 255, .16);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.tile-badge svg { width: 11px; height: 11px; }
.tile.is-new { animation: tile-in .9s var(--ease-out) both; }
.tile.is-new .tile-media { box-shadow: 0 0 0 1px rgba(201, 167, 255, .0); animation: new-glow 2.6s var(--ease) both; }
@keyframes tile-in { from { opacity: 0; transform: translateY(-10px) scale(.94); } }
@keyframes new-glow { 0% { box-shadow: 0 0 0 2px rgba(201, 167, 255, .9), 0 0 30px rgba(159, 230, 255, .5); } 100% { box-shadow: 0 0 0 0 rgba(201, 167, 255, 0); } }

.new-banner {
  position: fixed; top: calc(14px + env(safe-area-inset-top)); left: 50%; z-index: 60; transform: translateX(-50%);
}

/* ---------------------------------------------------------------- lightbox */
.lb {
  position: fixed; inset: 0; z-index: 100; display: grid; grid-template-rows: auto 1fr auto;
  background: rgba(8, 7, 12, .94); -webkit-backdrop-filter: blur(24px) saturate(1.1); backdrop-filter: blur(24px) saturate(1.1);
  animation: lb-in .35s var(--ease-out) both; touch-action: pan-y;
  overscroll-behavior: contain;
}
.lb.closing { animation: lb-out .25s var(--ease) both; }
@keyframes lb-in { from { opacity: 0; } }
@keyframes lb-out { to { opacity: 0; } }
.lb-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: max(12px, env(safe-area-inset-top)) var(--gutter) 8px; }
.lb-count { font-size: 13px; font-weight: 700; letter-spacing: .14em; color: var(--ink-2); }
.lb-stage { position: relative; min-height: 0; display: grid; place-items: center; overflow: hidden; padding: 0 var(--gutter); }
.lb-track { position: relative; width: 100%; height: 100%; display: grid; place-items: center; will-change: transform; }
.lb-track > img, .lb-track > video {
  max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 12px;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .9); user-select: none; -webkit-user-drag: none;
  animation: lb-media .5s var(--ease-out) both;
}
.lb-track.from-left > * { animation-name: lb-from-left; }
.lb-track.from-right > * { animation-name: lb-from-right; }
@keyframes lb-media { from { opacity: 0; transform: scale(.97); } }
@keyframes lb-from-right { from { opacity: 0; transform: translateX(40px); } }
@keyframes lb-from-left { from { opacity: 0; transform: translateX(-40px); } }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; display: none; }
.lb-prev { left: var(--gutter); } .lb-next { right: var(--gutter); }
@media (hover: hover) and (min-width: 720px) { .lb-nav { display: inline-flex; } }
.lb-bar {
  display: flex; justify-content: center; gap: 8px; flex-wrap: wrap;
  padding: 14px var(--gutter) calc(16px + var(--safe-b));
}
.lb-bar .btn { flex: 1 1 0; max-width: 200px; min-width: 0; }
@media (max-width: 380px) { .lb-bar .btn { padding: 0 12px; font-size: 14px; } }
.lb-spinner { position: absolute; width: 28px; height: 28px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .2); border-top-color: var(--lilac); animation: spin .9s linear infinite; }
body.lb-open { overflow: hidden; }

/* ================================================================= SHARE */
.share-main { padding-top: 4px; }
.share-layout { display: grid; grid-template-areas: "head" "hero" "actions"; }
.share-layout > .share-head { grid-area: head; }
.share-layout > .share-hero { grid-area: hero; }
.share-layout > .share-actions-wrap, .share-layout > .share-actions { grid-area: actions; }
.share-head .iri-line { margin-left: auto; margin-right: auto; margin-top: 14px; width: 120px; }
.share-hero { position: relative; isolation: isolate; margin: 14px auto 0; width: 100%; max-width: 520px; display: grid; justify-items: center; }
.share-hero .frame {
  position: relative; border-radius: 24px; overflow: hidden; background: rgba(255, 255, 255, .04);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 50px 100px -40px rgba(0, 0, 0, .95);
  width: fit-content; max-width: 100%; animation: hero-in .9s var(--ease-out) both;
}
.share-hero .frame.is-loading { width: min(100%, 340px); aspect-ratio: 2 / 3; max-height: 56vh; animation: none; }
@keyframes hero-in { from { opacity: 0; transform: translateY(10px) scale(.985); } }
.share-hero img, .share-hero video { display: block; width: auto; height: auto; max-width: 100%; max-height: 56vh; }
.share-actions-wrap { width: 100%; max-width: 520px; margin: 0 auto; }
@media (min-width: 960px) {
  .share-main { padding-top: 24px; }
  .share-layout { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); grid-template-rows: 1fr auto auto 1fr; grid-template-areas: "hero ." "hero head" "hero actions" "hero ."; column-gap: 72px; min-height: min(78vh, 820px); }
  .share-layout > .share-head { text-align: left; padding: 0; }
  .share-head h1 { font-size: clamp(40px, 4vw, 60px); }
  .share-layout > .share-head .iri-line { margin-left: 0; }
  .share-hero { margin: 0; max-width: none; align-self: center; }
  .share-hero img, .share-hero video { max-height: 76vh; }
  .share-hero .frame.is-loading { max-height: 76vh; width: min(100%, 460px); }
  .share-actions-wrap { margin: 0; }
  .share-actions-wrap .share-actions, .share-actions-wrap .gallery-link { margin-left: 0; }
}
.share-hero .halo {
  position: absolute; inset: 8% 2% -3%; z-index: -1; border-radius: 40px; background: var(--iri); filter: blur(60px); opacity: .28;
  animation: halo 9s ease-in-out infinite alternate;
}
@keyframes halo { from { transform: rotate(-3deg) scale(.96); opacity: .22; } to { transform: rotate(3deg) scale(1.02); opacity: .34; } }
.share-head { text-align: center; padding: 18px 0 4px; }
.share-head h1 { font-size: clamp(30px, 8.5vw, 48px); margin-top: 10px; overflow-wrap: anywhere; }
.share-actions { display: grid; gap: 10px; max-width: 520px; margin: 22px auto 0; }
.share-actions .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.share-hint {
  display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); padding: 12px 14px;
  border-radius: var(--r-sm); background: var(--glass); border: 1px dashed var(--line-2);
}
.share-hint svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--sky); }
.wa { color: #b8ffd9; }
.gallery-link {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 18px auto 0; max-width: 520px;
  padding: 18px 20px; text-decoration: none; transition: border-color .25s, background-color .25s, transform .2s var(--ease);
}
.gallery-link:hover { border-color: var(--line-2); background: var(--glass-2); }
.gallery-link:active { transform: scale(.99); }
.gallery-link .t { font-family: var(--display); font-size: 21px; line-height: 1.15; }
.gallery-link .arrow { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--iri); color: #17121f; flex: none; transition: transform .3s var(--ease); }
.gallery-link:hover .arrow { transform: translateX(3px); }
.gallery-link .arrow svg { width: 18px; height: 18px; }

/* ================================================================= DASHBOARD */
.login-wrap { min-height: calc(100dvh - 220px); display: grid; place-items: center; padding: 28px 0 10px; }
.login-card { width: 100%; max-width: 440px; padding: 28px 22px; }
@media (min-width: 720px) { .login-card { padding: 38px 36px; } }
.login-card h1 { font-size: clamp(36px, 9vw, 48px); }
.login-card form { display: grid; gap: 16px; margin-top: 26px; }

.dash-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 28px 0 24px; }
@media (min-width: 720px) { .dash-head { padding: 44px 0 30px; } }
.dash-head h1 { font-size: clamp(36px, 8vw, 64px); margin-top: 10px; overflow-wrap: anywhere; }
.dash-section { margin-top: 16px; }
@media (min-width: 720px) { .dash-section { margin-top: 20px; } }
.section-label { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 40px 2px 14px; }
.section-label h2 { font-size: clamp(26px, 5vw, 32px); }

.top-grid { display: grid; gap: 16px; }
@media (min-width: 980px) { .top-grid { grid-template-columns: minmax(320px, 400px) 1fr; gap: 20px; } }

.lic-card { overflow: hidden; display: grid; gap: 18px; align-content: start; }
.lic-card::after {
  content: ""; position: absolute; width: 260px; height: 260px; right: -110px; top: -130px; border-radius: 50%;
  background: var(--iri); filter: blur(50px); opacity: .22; pointer-events: none;
}
.lic-plan { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.lic-plan .name { font-family: var(--display); font-size: 40px; line-height: 1; text-transform: capitalize; }
.lic-rows { display: grid; gap: 12px; }
.lic-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.lic-row span:first-child { color: var(--ink-3); }
.lic-row span:last-child { text-align: right; font-weight: 600; }
.meter { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .08); overflow: hidden; margin-top: 8px; }
.meter > i { display: block; height: 100%; border-radius: 6px; background: var(--iri); transform-origin: left; animation: draw 1s .2s var(--ease-out) both; }
.lic-key { font-family: var(--mono); font-size: 13px; letter-spacing: .06em; color: var(--ink-2); }

.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 640px) { .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; } }
.stat { padding: 16px 16px 18px; border-radius: var(--r); display: grid; gap: 4px; align-content: space-between; min-height: 112px; }
@media (min-width: 720px) { .stat { padding: 20px 22px; min-height: 128px; } }
.stat .k { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); display: flex; align-items: center; gap: 8px; }
.stat .k svg { width: 15px; height: 15px; color: var(--ink-3); }
.stat .v { font-family: var(--display); font-size: clamp(34px, 6vw, 48px); line-height: 1; font-variant-numeric: lining-nums tabular-nums; }

.mid-grid { display: grid; gap: 16px; }
@media (min-width: 980px) { .mid-grid { grid-template-columns: 1fr minmax(300px, 380px); gap: 20px; } }

/* bar chart */
.chart { position: relative; }
.chart svg { width: 100%; height: 220px; overflow: visible; }
@media (min-width: 720px) { .chart svg { height: 240px; } }
.chart .grid line { stroke: rgba(255, 255, 255, .07); stroke-width: 1; }
.chart .grid text, .chart .x text { fill: var(--ink-3); font: 600 11px var(--sans); font-variant-numeric: tabular-nums; }
.chart .bar { fill: var(--lilac); transition: fill .2s, opacity .2s; }
.chart .bar.zero { fill: rgba(255, 255, 255, .1); }
.chart .hit { fill: transparent; cursor: default; }
.chart .col:hover .bar, .chart .col.is-active .bar { fill: var(--sky); }
.chart .col:hover .bar.zero { fill: rgba(255, 255, 255, .22); }
.chart-tip {
  position: absolute; z-index: 5; pointer-events: none; transform: translate(-50%, calc(-100% - 10px));
  padding: 8px 12px; border-radius: 12px; background: rgba(28, 25, 36, .96); border: 1px solid var(--line-2);
  font-size: 13px; white-space: nowrap; box-shadow: 0 16px 30px -12px rgba(0, 0, 0, .9);
}
.chart-tip b { display: block; font-size: 16px; }
.chart-tip span { color: var(--ink-3); font-size: 12px; }
.chart-total { font-family: var(--display); font-size: 28px; line-height: 1; }
.chart-table { margin-top: 12px; }
.chart-table summary { cursor: pointer; font-size: 13px; color: var(--ink-3); width: max-content; border-radius: 6px; }
.chart-table summary:hover { color: var(--ink-2); }
.chart-table .tbl-wrap { max-height: 240px; overflow: auto; margin-top: 10px; }

/* modes */
.modes { display: grid; gap: 14px; }
.mode-row { display: grid; gap: 7px; }
.mode-row .top { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.mode-row .top span:first-child { text-transform: capitalize; font-weight: 600; }
.mode-row .top span:last-child { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.mode-row .track { height: 8px; border-radius: 8px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.mode-row .track i { display: block; height: 100%; border-radius: 8px; background: var(--lilac); transform-origin: left; animation: draw .9s var(--ease-out) both; }

/* devices */
.devices { display: grid; gap: 12px; }
@media (min-width: 720px) { .devices { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; } }
.device { display: grid; gap: 14px; align-content: start; }
.kv .wide { grid-column: 1 / -1; }
.device-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.device-name { font-weight: 700; font-size: 17px; line-height: 1.3; overflow-wrap: anywhere; }
.device-sub { font-size: 13px; color: var(--ink-3); margin-top: 3px; }
.kv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; }
.kv div { min-width: 0; }
.kv dt { font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.kv dd { margin: 2px 0 0; font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kv { margin: 0; }

/* table → stacked cards on phones */
.table-card { padding: 6px 0; overflow: hidden; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); padding: 14px 16px 10px; white-space: nowrap; }
.tbl td { padding: 14px 16px; border-top: 1px solid var(--line); vertical-align: middle; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl tbody tr { transition: background-color .2s; }
.tbl tbody tr:hover { background: rgba(255, 255, 255, .025); }
.ev-name { font-family: var(--display); font-size: 19px; line-height: 1.2; text-decoration: none; display: inline-block; border-radius: 4px; }
.ev-name:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: var(--lilac); }
.link-cell { display: flex; align-items: center; gap: 6px; min-width: 0; }
.link-cell a { color: var(--ink-2); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; font-size: 13px; }
.link-cell a:hover { color: var(--ink); }

@media (max-width: 859px) {
  .tbl.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tbl.stack, .tbl.stack tbody, .tbl.stack tr, .tbl.stack td { display: block; width: 100%; }
  .tbl.stack tr { padding: 16px 18px; border-top: 1px solid var(--line); }
  .tbl.stack tbody tr:first-child { border-top: 0; }
  .tbl.stack td { border: 0; padding: 5px 0; display: flex; justify-content: space-between; align-items: center; gap: 14px; text-align: right; }
  .tbl.stack td::before { content: attr(data-label); font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); text-align: left; flex: none; }
  .tbl.stack td.cell-title { display: block; text-align: left; padding-bottom: 8px; }
  .tbl.stack td.cell-title::before { display: none; }
  .tbl.stack .link-cell { justify-content: flex-end; }
  .tbl.stack .link-cell a { max-width: 52vw; }
}

/* event detail */
.back { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); text-decoration: none; font-size: 14px; font-weight: 600; border-radius: 999px; padding: 6px 2px; }
.back:hover { color: var(--ink); }
.back svg { width: 16px; height: 16px; }
.ev-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ev-grid { display: grid; gap: 16px; }
@media (min-width: 980px) { .ev-grid { grid-template-columns: 1fr minmax(300px, 360px); gap: 20px; align-items: start; } }
.dmedia { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 640px) { .dmedia { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; } }
@media (min-width: 1200px) { .dmedia { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.dm { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: rgba(255, 255, 255, .04); }
.dm img, .dm video { width: 100%; height: 100%; object-fit: cover; transition: opacity .3s, filter .3s; }
.dm.is-hidden img, .dm.is-hidden video { opacity: .28; filter: grayscale(1); }
.dm .hide-btn {
  position: absolute; right: 6px; bottom: 6px; z-index: 2; height: 30px; padding: 0 10px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .2);
  background: rgba(13, 11, 18, .7); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-size: 12px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: 5px;
  transition: background-color .2s, opacity .2s;
}
.dm .hide-btn svg { width: 13px; height: 13px; }
.dm .hide-btn:hover { background: rgba(13, 11, 18, .9); }
.dm .hide-btn:disabled { opacity: .5; }
.dm .flag { position: absolute; left: 6px; top: 6px; z-index: 2; }
.dm .tile-badge { top: 6px; left: 6px; height: 22px; padding: 0 8px; font-size: 9px; }
.dm.is-hidden .tile-badge { display: none; }

.qr-card { display: grid; gap: 16px; justify-items: center; text-align: center; }
.qr-box { width: 100%; max-width: 260px; aspect-ratio: 1; padding: 16px; background: #fff; border-radius: 18px; box-shadow: 0 30px 60px -30px rgba(201, 167, 255, .55); }
.qr-box svg { width: 100%; height: 100%; }
.mini-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 640px) { .mini-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .mini-stats { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.mini-stats .stat { min-height: 96px; }
.mini-stats .stat .v { font-size: clamp(28px, 5vw, 38px); }
.leads-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.leads-wrap .tbl { min-width: 640px; }
.empty-inline { padding: 28px 8px; text-align: center; color: var(--ink-3); font-size: 14px; }
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-sm); font-size: 13px; color: #ffe9c9; background: rgba(255, 215, 154, .08); border: 1px solid rgba(255, 215, 154, .25); text-align: left; }
.notice svg { width: 16px; height: 16px; flex: none; margin-top: 1px; }

/* ================================================================= PAID / LANDING */
.center-stage { min-height: calc(100dvh - 200px); display: grid; place-items: center; padding: 28px 0; }
.paid-card { max-width: 520px; width: 100%; text-align: center; padding: 40px 24px 34px; display: grid; justify-items: center; gap: 16px; }
.paid-card h1 { font-size: clamp(38px, 10vw, 56px); }
.paid-card p { color: var(--ink-2); font-size: 17px; max-width: 34ch; }
.seal { position: relative; width: 104px; height: 104px; display: grid; place-items: center; margin-bottom: 8px; }
.seal::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, #ffb8dc, #c9a7ff, #9fe6ff, #b8ffd9, #ffe2b0, #ffb8dc); animation: spin 8s linear infinite; filter: blur(.3px); }
.seal::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--bg1); }
.seal .glow { position: absolute; inset: -18px; border-radius: 50%; background: var(--iri); filter: blur(30px); opacity: .3; }
.seal svg { position: relative; z-index: 1; width: 42px; height: 42px; }
.seal svg path { stroke-dasharray: 60; stroke-dashoffset: 60; animation: tick .8s .35s var(--ease-out) forwards; }
.seal.is-muted::before { background: conic-gradient(from 0deg, rgba(255,255,255,.35), rgba(255,255,255,.08), rgba(255,255,255,.35)); }
.seal.is-muted .glow { opacity: .08; }
@keyframes tick { to { stroke-dashoffset: 0; } }
.steps { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 4px; }
.steps .chip-step { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 999px; background: var(--glass-2); border: 1px solid var(--line); font-weight: 700; font-size: 14px; }
.steps svg { width: 14px; height: 14px; color: var(--ink-3); }

.hero { padding: 40px 0 20px; display: grid; gap: 40px; align-items: center; }
@media (min-width: 980px) { .hero { grid-template-columns: 1.05fr .95fr; padding: 80px 0 40px; gap: 56px; } }
.hero h1 { font-size: clamp(46px, 12vw, 104px); line-height: .98; }
.hero h1 em { font-style: italic; }
.hero .lede { margin-top: 22px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.collage { position: relative; height: 360px; max-width: 520px; width: 100%; margin: 0 auto; }
@media (min-width: 720px) { .collage { height: 460px; } }
.polaroid {
  position: absolute; border-radius: 18px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .95); animation: float 9s ease-in-out infinite alternate;
}
.polaroid i { position: absolute; inset: 0; }
.polaroid .cap { position: absolute; left: 12px; right: 12px; bottom: 10px; font-family: var(--display); font-style: italic; font-size: 18px; color: rgba(255, 255, 255, .9); text-shadow: 0 2px 12px rgba(0, 0, 0, .5); }
.p1 { width: 52%; height: 70%; left: 2%; top: 10%; transform: rotate(-6deg); }
.p1 i { background: radial-gradient(120% 90% at 30% 20%, #ffb8dc, transparent 55%), radial-gradient(100% 90% at 90% 90%, #9fe6ff, transparent 60%), linear-gradient(160deg, #3a2550, #120f1a); }
.p2 { width: 46%; height: 58%; right: 2%; top: 0; transform: rotate(5deg); animation-delay: -3s; }
.p2 i { background: radial-gradient(110% 80% at 70% 15%, #ffe2b0, transparent 55%), radial-gradient(100% 100% at 10% 100%, #c9a7ff, transparent 60%), linear-gradient(200deg, #2a2133, #0f0d15); }
.p3 { width: 44%; height: 46%; right: 10%; bottom: 0; transform: rotate(-2deg); animation-delay: -6s; z-index: 2; }
.p3 i { background: radial-gradient(110% 90% at 20% 20%, #b8ffd9, transparent 50%), radial-gradient(100% 100% at 100% 80%, #c9a7ff, transparent 60%), linear-gradient(140deg, #1c2a2a, #0f0d15); }
.qr-float {
  position: absolute; left: 34%; bottom: 4%; z-index: 3; width: 92px; height: 92px; padding: 10px; background: #fff; border-radius: 16px;
  box-shadow: 0 20px 40px -14px rgba(0, 0, 0, .8); transform: rotate(4deg);
}
@keyframes float { from { translate: 0 0; } to { translate: 0 -12px; } }
.features { display: grid; gap: 14px; margin-top: 40px; }
@media (min-width: 820px) { .features { grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 70px; } }
.feature { display: grid; gap: 12px; align-content: start; }
.feature .ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--glass-2); border: 1px solid var(--line); }
.feature .ic svg { width: 20px; height: 20px; }
.feature h3 { font-size: 26px; }
.feature p { color: var(--ink-2); font-size: 15px; }
.feature code { font-family: var(--mono); font-size: 12.5px; color: var(--ink-3); }

/* ================================================================= WHITE-LABEL (guest pages + dashboard preview)
   brand.js sets .branded plus --accent (button fill), --accent-ink (readable text on it),
   --accent-rgb (raw brand color, for glows) and --accent-line (accent lifted to 3:1 on the dark stage). */
.brand-op { min-width: 0; flex: 0 1 auto; gap: 12px; color: var(--ink); text-decoration: none; }
.brand-op .brand-logo { display: inline-flex; align-items: center; flex: none; border-radius: 10px; transition: background-color .3s, padding .3s; }
.brand-op .brand-logo img { height: 34px; width: auto; max-width: min(150px, 38vw); object-fit: contain; }
.brand-op .brand-logo.plate { background: rgba(245, 243, 238, .94); padding: 5px 9px; }
.brand-op .brand-logo.plate img { height: 26px; }
.brand-op .brand-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: 12px; font-weight: 800; letter-spacing: .2em; color: var(--ink); }
@media (min-width: 720px) { .brand-op .brand-logo img { height: 40px; max-width: 200px; } .brand-op .brand-logo.plate img { height: 30px; } .brand-op .brand-name { font-size: 13px; } }
a.brand-op:hover .brand-name { color: var(--ink); }
.footer.is-bare { padding-top: 40px; }

.branded ::selection { background: rgba(var(--accent-rgb), .4); }
.branded .btn-primary, .branded .btn-primary:hover {
  background: var(--accent); color: var(--accent-ink);
  box-shadow: 0 16px 36px -18px rgba(var(--accent-rgb), .85), 0 0 0 1px rgba(255, 255, 255, .16) inset;
}
.branded .btn-primary:hover { filter: brightness(1.07) saturate(1.04); box-shadow: 0 20px 44px -18px rgba(var(--accent-rgb), .95), 0 0 0 1px rgba(255, 255, 255, .22) inset; }
.branded .iri-line::before, .branded .powered .dot, .branded .toast .d { background: var(--accent-line); }
.branded .powered .dot { box-shadow: 0 0 12px rgba(var(--accent-line-rgb), .6); }
.branded .iri-text { background: none; color: var(--accent-line); }
.branded :focus-visible { outline-color: var(--accent-line); }
.branded .btn:focus-visible::before, .branded .chip:focus-visible::before, .branded .tile:focus-visible::before, .branded .brand:focus-visible::before,
.branded .powered:focus-visible::before, .branded .switch:focus-visible::before { background: var(--accent-line); }
.branded .input:focus { border-color: rgba(var(--accent-line-rgb), .75); box-shadow: 0 0 0 4px rgba(var(--accent-line-rgb), .18); }
.branded .state-icon::before { background: var(--accent-line); opacity: .7; }
.branded .gallery-link .arrow { background: var(--accent); color: var(--accent-ink); }
.branded .share-hero .halo { background: rgb(var(--accent-rgb)); opacity: .3; }
.branded .lb-spinner { border-top-color: var(--accent-line); }
.branded .aura::before { background: radial-gradient(circle, rgba(var(--accent-rgb), .3), transparent 62%); }
.branded .aura::after { background: radial-gradient(circle, rgba(var(--accent-rgb), .14), transparent 60%); }
.branded .tile.is-new .tile-media { animation-name: new-glow-brand; }
@keyframes new-glow-brand { 0% { box-shadow: 0 0 0 2px var(--accent-line), 0 0 30px rgba(var(--accent-line-rgb), .5); } 100% { box-shadow: 0 0 0 0 transparent; } }

/* ================================================================= DASHBOARD v0.5 */
/* shared form bits */
select.input {
  appearance: none; -webkit-appearance: none; padding-right: 42px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f5f3ee' stroke-opacity='.6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
}
select.input option { background: var(--bg2); color: var(--ink); }
.input:disabled, fieldset:disabled .input { opacity: .5; cursor: not-allowed; }
.input-sm { min-height: 48px; font-size: 16px; } /* ≥16px: phones don't zoom into the field */
.hint { font-size: 13px; color: var(--ink-3); line-height: 1.45; }
.field-row { display: grid; gap: 14px; }
@media (min-width: 560px) { .field-row.two { grid-template-columns: 1fr 1fr; } }
.money { position: relative; }
.money > span { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--ink-3); font-weight: 700; pointer-events: none; }
.money .input { padding-left: 32px; }
.toggle-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line);
  cursor: pointer; font-size: 15px; font-weight: 600;
}
.toggle-row .sub { display: block; font-size: 13px; font-weight: 500; color: var(--ink-3); margin-top: 2px; }
fieldset:disabled .toggle-row, fieldset:disabled .cchip { cursor: not-allowed; opacity: .55; }

/* checkbox chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cchip { position: relative; display: inline-flex; cursor: pointer; }
.cchip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: inherit; }
.cchip span {
  display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 15px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--glass); color: var(--ink-2); font-size: 14px; font-weight: 700;
  transition: background-color .2s, border-color .2s, color .2s, transform .15s var(--ease);
}
.cchip span::before {
  content: ""; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--line-2); flex: none;
  transition: background-color .2s, border-color .2s, box-shadow .2s;
}
.cchip:hover span { border-color: var(--line-2); color: var(--ink); }
.cchip input:checked + span { background: rgba(184, 255, 217, .1); border-color: rgba(184, 255, 217, .45); color: var(--ink); }
.cchip input:checked + span::before {
  border-color: transparent; background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2317121f' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 10px no-repeat;
  box-shadow: 0 0 10px rgba(184, 255, 217, .55);
}
.cchip input:focus-visible + span { outline: 2px solid var(--lilac); outline-offset: 3px; }
.cchip input:active + span { transform: scale(.97); }

/* license card: plan note + upgrade */
.lic-note { font-size: 14px; color: var(--ink-2); margin-top: 6px; }
.upgrade { display: grid; gap: 10px; }
.upgrade .btn { justify-content: space-between; padding: 0 18px 0 20px; }
.upgrade .btn small { font-size: 12.5px; font-weight: 600; opacity: .8; }
.upgrade .btn .lbl { display: grid; text-align: left; gap: 2px; line-height: 1.15; }
.upgrade .btn { --h: 58px; white-space: normal; }

/* branding panel */
.brand-grid { display: grid; gap: 22px; }
@media (min-width: 980px) { .brand-grid { grid-template-columns: minmax(0, 1fr) minmax(360px, 440px); gap: 36px; align-items: start; } }
.brand-form { display: grid; gap: 20px; align-content: start; }
.color-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.color-pick {
  position: relative; width: 54px; height: 54px; border-radius: var(--r-sm); border: 1px solid var(--line-2); overflow: hidden; flex: none;
  background: var(--iri);
}
.color-pick input { position: absolute; inset: -8px; width: calc(100% + 16px); height: calc(100% + 16px); border: 0; padding: 0; cursor: pointer; opacity: 0; }
.color-pick:focus-within { outline: 2px solid var(--lilac); outline-offset: 3px; }
.color-row .input { width: 140px; flex: none; font-family: var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch {
  width: 34px; height: 34px; border-radius: 50%; border: 2px solid transparent; padding: 0; cursor: pointer;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .18) inset; transition: transform .15s var(--ease), border-color .2s;
}
.swatch:hover { transform: scale(1.08); }
.swatch[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 0 0 2px var(--bg0) inset; }
.swatch.iri { background: var(--iri); }
.logo-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.logo-box {
  width: 120px; height: 64px; border-radius: var(--r-sm); border: 1px dashed var(--line-2); display: grid; place-items: center;
  background: rgba(0, 0, 0, .25); overflow: hidden; flex: none; color: var(--ink-3); font-size: 12px; font-weight: 700;
}
.logo-box img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.logo-box.has-logo { border-style: solid; }
.file-btn { position: relative; overflow: hidden; }
.field label.btn { font-size: 13px; font-weight: 700; letter-spacing: .01em; text-transform: none; color: var(--ink); }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 0; }
.file-btn:focus-within { outline: 2px solid var(--lilac); outline-offset: 3px; }
.save-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding-top: 6px; }
.save-note { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ok); font-weight: 600; }
.save-note svg { width: 17px; height: 17px; flex: none; }
.contrast-note { font-size: 13px; color: var(--ink-3); display: flex; align-items: center; gap: 8px; }
.contrast-note i { width: 18px; height: 18px; border-radius: 6px; display: inline-grid; place-items: center; font-style: normal; font-size: 11px; font-weight: 800; border: 1px solid var(--line); }

/* live preview (a tiny guest gallery header) */
.bp {
  position: relative; isolation: isolate; overflow: hidden; border-radius: 18px; border: 1px solid var(--line-2);
  background: linear-gradient(180deg, var(--bg0), var(--bg1)); padding: 16px 18px 14px; margin-top: 10px;
  --accent: #c9a7ff; --accent-ink: #17121f; --accent-rgb: 201, 167, 255; --accent-line: #c9a7ff;
}
.bp::before { content: ""; position: absolute; z-index: -1; width: 260px; height: 260px; top: -150px; left: -90px; border-radius: 50%; filter: blur(50px); background: radial-gradient(circle, rgba(201, 167, 255, .45), transparent 65%); }
.bp.branded::before { background: radial-gradient(circle, rgba(var(--accent-rgb), .5), transparent 65%); }
.bp-top { display: flex; align-items: center; min-height: 34px; }
.bp-top .brand-op .brand-logo img { height: 28px; max-width: 130px; }
.bp-top .brand-op .brand-logo.plate img { height: 22px; }
.bp-top .brand-op .brand-name { font-size: 11px; }
.bp-top .bp-empty { font-size: 12px; color: var(--ink-3); font-style: italic; }
.bp-body { padding: 18px 0 4px; }
.bp-h { font-family: var(--display); font-size: 30px; line-height: 1.05; margin-top: 8px; overflow-wrap: anywhere; }
.bp .iri-line { margin-top: 12px; width: 110px; }
.bp .iri-line::before { animation: none; }
.bp-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 16px; }
.bp-tiles i { aspect-ratio: 3 / 4; border-radius: 9px; background: linear-gradient(160deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .03)); }
.bp-tiles i:nth-child(2) { aspect-ratio: auto; background: linear-gradient(200deg, rgba(var(--accent-rgb), .35), rgba(255, 255, 255, .03)); }
.bp-actions { display: flex; gap: 8px; margin-top: 14px; }
.bp-actions .btn { pointer-events: none; --h: 38px; font-size: 13px; padding: 0 14px; }
.bp-actions .btn svg { width: 15px; height: 15px; }
.bp-foot { margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--line); text-align: center; min-height: 34px; display: grid; place-items: center; }
.bp-foot .powered { pointer-events: none; font-size: 10px; }
.bp-foot .bp-none { font-size: 11px; color: var(--ink-3); letter-spacing: .04em; }

/* booth settings editor */
.cfg-card { display: grid; gap: 4px; }
.cfg-grid { display: grid; }
@media (min-width: 980px) { .cfg-grid { display: block; column-count: 2; column-gap: 56px; } }
.cfg-group { display: grid; gap: 14px; align-content: start; padding: 22px 0 10px; border-top: 1px solid var(--line); break-inside: avoid; -webkit-column-break-inside: avoid; }

.cfg-group > h4 { margin: 0 0 2px; font-family: var(--display); font-weight: 500; font-size: 22px; line-height: 1.1; letter-spacing: -.005em; color: var(--ink); }
.cfg-group > h4 + .toggle-row { border-top: 0; padding-top: 0; }
.cfg-group .toggle-row { padding: 12px 0; }
.cfg-locked .cfg-set { max-height: 320px; overflow: hidden; pointer-events: none; -webkit-mask-image: linear-gradient(#000 30%, transparent); mask-image: linear-gradient(#000 30%, transparent); }
fieldset.cfg-set { border: 0; margin: 14px 0 0; padding: 0; min-width: 0; }
.cfg-save {
  z-index: 5; margin-top: 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 8px 8px 18px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, .03);
}
/* Only follows you down the page while there is something to save. */
.cfg-save.is-dirty {
  position: sticky; bottom: calc(10px + var(--safe-b));
  border-color: var(--line-2); background: #1c1925; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .95);
}
.cfg-save .state-txt { flex: 1 1 auto; font-size: 14px; color: var(--ink-2); min-width: 0; }
.cfg-save .state-txt .save-note { font-size: 14px; }
.cfg-save.is-dirty .state-txt { color: var(--warn); }
.cfg-save .btn { flex: none; }
@media (max-width: 559px) {
  .cfg-save { border-radius: 20px; padding: 8px 8px 8px 14px; }
  .cfg-save .state-txt, .cfg-save .state-txt .save-note { font-size: 13px; line-height: 1.35; }
  .cfg-save .btn { --h: 44px; padding: 0 16px; font-size: 14px; }
}

/* landing additions */
.web-booth { display: grid; gap: 22px; align-items: center; margin-top: 18px; padding: 26px 22px; overflow: hidden; }
@media (min-width: 820px) { .web-booth { grid-template-columns: 1fr auto; padding: 36px 40px; gap: 40px; margin-top: 26px; } }
.web-booth h2 { font-size: clamp(30px, 6vw, 44px); margin-top: 12px; }
.web-booth p { color: var(--ink-2); margin-top: 12px; max-width: 52ch; }
.web-booth::after { content: ""; position: absolute; width: 320px; height: 320px; right: -120px; bottom: -180px; border-radius: 50%; background: var(--iri); filter: blur(70px); opacity: .18; pointer-events: none; }
.devices-strip { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.section-gap { margin-top: 56px; }
@media (min-width: 820px) { .section-gap { margin-top: 90px; } }
.pricing { display: grid; gap: 18px; padding: 26px 22px; }
@media (min-width: 820px) { .pricing { grid-template-columns: auto 1fr auto; align-items: center; gap: 40px; padding: 32px 40px; } }
.price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price b { font-family: var(--display); font-weight: 500; font-size: clamp(48px, 10vw, 68px); line-height: .9; letter-spacing: -.02em; }
.price span { color: var(--ink-2); font-size: 15px; }
.price-alt { color: var(--ink-3); font-size: 14px; margin-top: 8px; }
.price-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 560px) and (max-width: 819px) { .price-list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 820px) { .price-list { gap: 8px; justify-self: center; } .price-list li { white-space: nowrap; } }
.price-list li { display: flex; gap: 10px; align-items: center; font-size: 15px; font-weight: 600; }
.price-list svg { width: 18px; height: 18px; flex: none; color: var(--mint); }
.pricing .cta { display: grid; gap: 10px; justify-items: stretch; }
.pricing .cta .faint { text-align: center; }

/* ---------------------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
  .live-dot::after, .seal::before, .share-hero .halo, .polaroid { animation: none !important; }
  .tile-media img, .tile-media video { transform: none !important; }
}

/* ---------------------------------------------------------------- print (QR sheets) */
@media print {
  body { background: #fff; color: #000; }
  .aura, .grain, .topbar, .footer { display: none; }
}
