/* Stall Spotlight — design tokens + components.
   Tailwind CDN handles layout (flex/grid/spacing). Colour, type, glass, and
   motion live here. Compose .glass with .card / .sheet / .toast in markup. */

:root{
  --bg:#0A1628;
  --bg-spot-1:rgba(245,166,35,.18);
  --bg-spot-2:rgba(255,107,74,.10);
  --surface:rgba(255,255,255,.07);
  --surface-strong:rgba(255,255,255,.12);
  --surface-solid:rgba(14,28,48,.92);
  --border:rgba(255,255,255,.14);
  --text:#F4F1EA;
  --muted:#9AA8BC;
  --accent:#F5A623;
  --accent-hot:#FF6B4A;
  --accent-ink:#0A1628;
  --success:#3DDC97;
  --danger:#FF6B6B;
  --radius:22px;
  --shadow:0 12px 40px rgba(0,0,0,.40);
  --ease:cubic-bezier(.16,1,.3,1);
  --font-display:"Syne", "Segoe UI", sans-serif;
  --font-body:"DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Visitor / light surfaces — readable under bright exhibition hall lights. */
:root[data-theme="light"]{
  --bg:#F7F3EB;
  --bg-spot-1:rgba(245,166,35,.22);
  --bg-spot-2:rgba(10,22,40,.06);
  --text:#0A1628;
  --muted:#5C6B7F;
  --surface:rgba(255,255,255,.88);
  --surface-strong:#fff;
  --surface-solid:#fff;
  --border:rgba(10,22,40,.10);
  --shadow:0 12px 36px rgba(10,22,40,.10);
}

*, *::before, *::after{
  box-sizing:border-box;
}

html, body{
  height:100%;
}

body{
  margin:0;
  background-color:var(--bg);
  background-image:
    radial-gradient(ellipse 80% 55% at 12% -10%, var(--bg-spot-1), transparent 55%),
    radial-gradient(ellipse 70% 50% at 100% 0%, var(--bg-spot-2), transparent 50%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(245,166,35,.08), transparent 55%);
  background-repeat:no-repeat;
  background-attachment:fixed;
  color:var(--text);
  font-family:var(--font-body);
  font-size:16px;
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
}

h1, h2, h3, h4, h5, h6{
  margin:0 0 .5em;
  font-family:var(--font-display);
  font-weight:700;
  letter-spacing:-0.03em;
  line-height:1.3;
}

.brand-mark{
  font-family:var(--font-display);
  font-weight:800;
  font-size:clamp(1.75rem, 5vw, 2.25rem);
  letter-spacing:-0.04em;
  line-height:1.05;
  margin:0;
}

.brand-mark span{
  color:var(--accent);
}

.eyebrow{
  display:inline-block;
  font-size:12px;
  font-weight:700;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--accent);
  margin-bottom:10px;
}

/* 16px floor — iOS Safari zooms inputs smaller than this. */
input, select, textarea, button{
  font-family:inherit;
  font-size:16px;
}

/* ---------------------------------------------------------------------------
   Glass
   ------------------------------------------------------------------------ */

.glass{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius);
  backdrop-filter:blur(18px) saturate(150%);
  -webkit-backdrop-filter:blur(18px) saturate(150%);
  box-shadow:var(--shadow);
}

.glass-solid{
  background:var(--surface-solid);
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}

/* ---------------------------------------------------------------------------
   Buttons
   ------------------------------------------------------------------------ */

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.5em;
  min-height:48px;
  padding:0 20px;
  border:1px solid var(--border);
  border-radius:14px;
  background:var(--surface-strong);
  color:var(--text);
  font-size:16px;
  font-weight:600;
  cursor:pointer;
  text-decoration:none;
  transition:transform 140ms var(--ease), box-shadow 140ms var(--ease), opacity 140ms var(--ease), background 140ms var(--ease);
}

.btn:active{
  transform:scale(.98);
}

.btn:disabled{
  opacity:.5;
  cursor:not-allowed;
}

.btn-primary{
  border:none;
  background:var(--accent);
  color:var(--accent-ink);
  box-shadow:0 10px 28px rgba(245,166,35,.35);
}

.btn-primary:hover{
  background:#ffb52e;
  box-shadow:0 12px 32px rgba(245,166,35,.45);
}

.btn-primary:disabled{
  background:#8a6a30;
  color:rgba(10,22,40,.55);
  box-shadow:none;
}

.btn-ghost{
  background:transparent;
  border:1px solid var(--border);
}

/* ---------------------------------------------------------------------------
   Form controls
   ------------------------------------------------------------------------ */

.label{
  display:block;
  margin-bottom:6px;
  color:var(--muted);
  font-size:13px;
  font-weight:600;
  letter-spacing:.02em;
}

.input{
  display:block;
  width:100%;
  min-height:48px;
  padding:0 16px;
  color:var(--text);
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:14px;
  font-size:16px;
  font-family:inherit;
  transition:border-color 120ms var(--ease), box-shadow 120ms var(--ease);
}

.input::placeholder{
  color:var(--muted);
}

.input:focus-visible,
.btn:focus-visible{
  outline:none;
  border-color:var(--accent);
  box-shadow:0 0 0 3px rgba(245,166,35,.28);
}

.code-box{
  font-family:var(--font-display);
  font-weight:700;
  font-size:20px !important;
}

/* ---------------------------------------------------------------------------
   Chips
   ------------------------------------------------------------------------ */

.chip{
  display:inline-flex;
  align-items:center;
  padding:7px 14px;
  border:1px solid var(--border);
  border-radius:999px;
  background:var(--surface);
  color:var(--muted);
  font-size:13px;
  font-weight:600;
  cursor:pointer;
  transition:background 120ms var(--ease), color 120ms var(--ease), border-color 120ms var(--ease), transform 120ms var(--ease);
}

.chip:active{
  transform:scale(.97);
}

.chip-active{
  border-color:transparent;
  background:linear-gradient(135deg, var(--accent), var(--accent-hot));
  color:var(--accent-ink);
}

.chip-count{
  background:rgba(245,166,35,.15);
  border-color:rgba(245,166,35,.35);
  color:var(--accent);
  cursor:default;
}

/* ---------------------------------------------------------------------------
   Avatar / status
   ------------------------------------------------------------------------ */

.avatar{
  width:72px;
  height:72px;
  border-radius:22px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-family:var(--font-display);
  font-weight:800;
  font-size:30px;
  color:var(--accent-ink);
  background:linear-gradient(145deg, var(--accent), var(--accent-hot));
  box-shadow:0 10px 28px rgba(245,166,35,.30);
}

.status-dot{
  width:8px;
  height:8px;
  border-radius:50%;
  background:var(--accent);
  display:inline-block;
  margin-right:6px;
  box-shadow:0 0 0 4px rgba(245,166,35,.18);
}

/* ---------------------------------------------------------------------------
   Card / sheet / toast
   ------------------------------------------------------------------------ */

.card{
  padding:24px;
}

.sheet{
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  z-index:40;
  padding:24px;
  border-bottom-left-radius:0;
  border-bottom-right-radius:0;
  animation:sheet-in 280ms var(--ease) both;
}

@keyframes sheet-in{
  from{ opacity:0; transform:translateY(100%); }
  to{ opacity:1; transform:translateY(0); }
}

.toast{
  position:fixed;
  top:max(16px, env(safe-area-inset-top));
  left:50%;
  z-index:50;
  padding:12px 20px;
  font-size:14px;
  font-weight:600;
  max-width:calc(100vw - 32px);
  box-sizing:border-box;
  animation:toast-in 260ms var(--ease) both;
}

.toast.toast-out{
  animation:toast-out 260ms var(--ease) both;
}

@keyframes toast-in{
  from{ opacity:0; transform:translate(-50%, -12px); }
  to{ opacity:1; transform:translate(-50%, 0); }
}

@keyframes toast-out{
  from{ opacity:1; transform:translate(-50%, 0); }
  to{ opacity:0; transform:translate(-50%, -12px); }
}

/* ---------------------------------------------------------------------------
   Motion
   ------------------------------------------------------------------------ */

@keyframes fade-up{
  from{ opacity:0; transform:translateY(14px); }
  to{ opacity:1; transform:none; }
}

@keyframes qr-pop{
  from{ opacity:0; transform:scale(.92); }
  to{ opacity:1; transform:scale(1); }
}

@keyframes pulse-ring{
  0%{ box-shadow:0 0 0 0 rgba(245,166,35,.45); }
  100%{ box-shadow:0 0 0 18px rgba(245,166,35,0); }
}

.fade-up{
  animation:fade-up 320ms var(--ease) both;
}

.qr-pop{
  animation:qr-pop 420ms var(--ease) both;
}

.success-pulse{
  animation:pulse-ring 700ms var(--ease) 1;
}

.stagger > *{
  animation-delay:calc(var(--i, 0) * 45ms);
}

.screen-out{
  animation:screen-out 260ms var(--ease) both;
}

.screen-in{
  animation:screen-in 280ms var(--ease) both;
}

@keyframes screen-out{
  from{ opacity:1; transform:translateY(0); }
  to{ opacity:0; transform:translateY(-8px); }
}

@keyframes screen-in{
  from{ opacity:0; transform:translateY(14px); }
  to{ opacity:1; transform:translateY(0); }
}

@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{
    animation:none !important;
    transition:none !important;
  }
}

/* ---------------------------------------------------------------------------
   Print
   ------------------------------------------------------------------------ */

@media print{
  .no-print{
    display:none !important;
  }

  html, body{
    background:#fff !important;
  }

  .glass, .glass-solid{
    background:#fff !important;
    border:none !important;
    box-shadow:none !important;
    backdrop-filter:none !important;
    -webkit-backdrop-filter:none !important;
  }
}

/* ---------------------------------------------------------------------------
   Landing / auth page (moved from index.html)
   ------------------------------------------------------------------------ */

body.auth-page{
  background:#070E18;
  background-image:none;
  color:#F4F1EA;
}
.spinner{
  display:inline-block; width:18px; height:18px;
  border:2px solid rgba(255,255,255,.28); border-top-color:var(--accent);
  border-radius:50%; animation:spin 700ms linear infinite;
}
@keyframes spin{ to{ transform:rotate(360deg); } }
.err-text{ color:var(--danger); font-size:13px; margin-top:4px; }
.link-btn{
  background:none; border:none; color:var(--accent); font-size:14px;
  font-weight:600; cursor:pointer; padding:4px;
}
.link-btn:disabled{ color:var(--muted); cursor:not-allowed; }
@keyframes shake{
  10%,90%{ transform:translateX(-2px); }
  20%,80%{ transform:translateX(4px); }
  30%,50%,70%{ transform:translateX(-8px); }
  40%,60%{ transform:translateX(8px); }
}
.shake{ animation:shake 400ms; }

/* —— Header —— */
.site-header{
  position:sticky; top:0; z-index:30;
  display:flex; align-items:center; justify-content:space-between;
  gap:16px; padding:14px 20px;
  background:rgba(7,14,24,.92);
  backdrop-filter:blur(14px);
  border-bottom:1px solid rgba(255,255,255,.08);
}
@media (min-width:900px){
  .site-header{ padding:14px 40px; }
}
.site-logo{
  display:inline-flex;
  align-items:center;
  gap:10px;
  min-width:0;
  font-family:var(--font-display);
  font-weight:800;
  font-size:1.15rem;
  letter-spacing:-0.03em;
  color:#F4F1EA;
  text-decoration:none;
}
.site-logo-mark{
  width:32px;
  height:32px;
  flex-shrink:0;
  display:block;
  object-fit:contain;
}
.site-logo-text{
  display:inline-flex;
  flex-wrap:wrap;
  align-items:baseline;
  gap:0 .28em;
  min-width:0;
  line-height:1.1;
}
.site-logo-text > span{ color:var(--accent); }
.btn-glow-short{ display:none; }
.site-nav{ display:flex; align-items:center; gap:8px; flex-shrink:0; }
.site-nav a{
  display:none;
  padding:8px 12px;
  color:#fff;
  font-size:14px;
  font-weight:600;
  text-decoration:none;
}
.site-nav .btn-glow{ display:inline-flex; }
@media (min-width:720px){
  .site-nav a{ display:inline-flex; }
}
.site-nav a:hover{ color:#fff; opacity:.85; }
.site-nav .btn-glow{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:40px;
  padding:0 16px;
  font-size:14px;
  font-weight:600;
  color:#fff;
  background:transparent;
  border:1.5px solid var(--accent);
  border-radius:999px;
  box-shadow:
    0 0 0 1px rgba(245,166,35,.25),
    0 0 14px rgba(245,166,35,.45),
    0 0 28px rgba(245,166,35,.22);
  animation:nav-glow 2.2s ease-in-out infinite;
  transition:background 160ms var(--ease), box-shadow 160ms var(--ease), transform 160ms var(--ease);
}
.site-nav .btn-glow:hover{
  background:rgba(245,166,35,.12);
  box-shadow:
    0 0 0 1px rgba(245,166,35,.4),
    0 0 18px rgba(245,166,35,.6),
    0 0 36px rgba(245,166,35,.3);
}
@keyframes nav-glow{
  0%,100%{
    box-shadow:
      0 0 0 1px rgba(245,166,35,.25),
      0 0 12px rgba(245,166,35,.35),
      0 0 24px rgba(245,166,35,.18);
  }
  50%{
    box-shadow:
      0 0 0 1px rgba(245,166,35,.45),
      0 0 18px rgba(245,166,35,.65),
      0 0 36px rgba(245,166,35,.32);
  }
}
@media (prefers-reduced-motion: reduce){
  .site-nav .btn-glow{ animation:none; }
}

/* —— Hero —— */
.hero{
  position:relative;
  min-height:min(58vh, 496px);
  display:grid;
  align-items:center;
  overflow:hidden;
  color:#fff;
}
.hero-media{
  position:absolute; inset:0;
  z-index:0;
}
.hero-media img{
  width:100%; height:100%;
  object-fit:cover;
  object-position:center 40%;
  display:block;
  filter:brightness(.72) contrast(1.05);
  animation:hero-ken 18s ease-in-out infinite alternate;
}
@keyframes hero-ken{
  from{ transform:scale(1); }
  to{ transform:scale(1.06); }
}
.hero-scrim{
  position:absolute; inset:0;
  background:
    linear-gradient(180deg, rgba(7,14,24,.55) 0%, rgba(7,14,24,.82) 55%, rgba(7,14,24,.96) 100%),
    linear-gradient(90deg, rgba(7,14,24,.7) 0%, transparent 58%);
}
.hero-content{
  position:relative; z-index:2;
  padding:25px 20px 32px;
  max-width:900px;
}
@media (min-width:900px){
  .hero-content{ padding:34px 40px 44px; }
}
.hero-content .eyebrow{ color:var(--accent); }
.hero-title{
  font-family:var(--font-display);
  font-weight:800;
  font-size:clamp(1.85rem, 4.2vw, 2.85rem);
  letter-spacing:-0.04em;
  line-height:1.08;
  margin:0 0 12px;
  color:#fff;
}
.hero-title .hero-line{
  display:block;
  white-space:nowrap;
}
@media (max-width:560px){
  .hero-title{
    font-size:clamp(1.55rem, 7.5vw, 2rem);
  }
  .hero-title .hero-line{ white-space:normal; }
}
.hero-title em{
  font-style:normal;
  color:var(--accent);
}
.hero-tag{
  margin:0;
  font-size:clamp(1rem, 2vw, 1.2rem);
  line-height:1.5;
  color:rgba(244,241,234,.88);
  max-width:38ch;
}
.hero-actions{
  display:flex; flex-wrap:wrap; gap:10px;
  margin-top:24px;
}

/* —— Floating feature icons —— */
.hero-floats{
  position:absolute; inset:0;
  z-index:1;
  pointer-events:none;
  overflow:hidden;
  --mx:0px;
  --my:0px;
}
.hero-float{
  position:absolute;
  display:grid;
  place-items:center;
  width:52px; height:52px;
  border-radius:16px;
  color:var(--accent);
  background:rgba(7,14,24,.55);
  border:1px solid rgba(245,166,35,.35);
  box-shadow:
    0 8px 24px rgba(0,0,0,.35),
    0 0 20px rgba(245,166,35,.18);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  pointer-events:auto;
  cursor:default;
  transform:
    translate3d(calc(var(--mx) * var(--depth, .4)), calc(var(--my) * var(--depth, .4)), 0)
    translate3d(0,0,0);
  animation:hero-float var(--dur, 7s) ease-in-out infinite;
  animation-delay:var(--delay, 0s);
  transition:
    box-shadow 220ms var(--ease),
    border-color 220ms var(--ease),
    background 220ms var(--ease),
    color 220ms var(--ease);
}
.hero-float::before{
  content:"";
  position:absolute;
  inset:-6px;
  border-radius:inherit;
  border:1px solid rgba(245,166,35,.28);
  opacity:0;
  transform:scale(.86);
  pointer-events:none;
  animation:hero-ring 3.4s ease-out infinite;
  animation-delay:var(--ring-delay, 0s);
}
.hero-float:hover{
  color:#fff;
  background:rgba(245,166,35,.22);
  border-color:rgba(245,166,35,.75);
  box-shadow:
    0 12px 28px rgba(0,0,0,.4),
    0 0 28px rgba(245,166,35,.45);
  z-index:3;
}
.hero-float:hover::before{
  opacity:1;
  animation:hero-ring-fast 1.1s ease-out infinite;
}
.hero-float:focus-visible{
  outline:2px solid var(--accent);
  outline-offset:4px;
}
.hero-float svg{
  width:24px; height:24px;
  transition:transform 280ms var(--ease);
}
.hero-float:hover svg{ transform:scale(1.08); }
.hero-float--spin svg{
  animation:hero-icon-spin 12s linear infinite;
}
.hero-float:hover.hero-float--spin svg{
  animation-duration:3.5s;
}
.hero-float--pulse-icon svg{
  animation:hero-icon-pulse 2.4s ease-in-out infinite;
}
.hero-float--lg{ width:60px; height:60px; border-radius:18px; }
.hero-float--lg svg{ width:28px; height:28px; }
.hero-float--sm{ width:44px; height:44px; border-radius:14px; }
.hero-float--sm svg{ width:20px; height:20px; }
.hero-float--a{ top:14%; right:16%; --dur:6.5s; --delay:0s; --depth:.55; --ring-delay:0s; }
.hero-float--b{ top:36%; right:6%; --dur:7.8s; --delay:-1.4s; --depth:.75; --ring-delay:.6s; }
.hero-float--c{ top:56%; right:20%; --dur:6.2s; --delay:-2.6s; --depth:.45; --ring-delay:1.2s; }
.hero-float--d{ top:20%; right:34%; --dur:8.4s; --delay:-0.8s; --depth:.3; --ring-delay:1.8s; }
.hero-float--e{ bottom:16%; right:10%; --dur:7.1s; --delay:-3.2s; --depth:.65; --ring-delay:2.2s; }
@media (max-width:720px){
  .hero-float--a{ top:10%; right:8%; opacity:.7; }
  .hero-float--b{ top:24%; right:3%; opacity:.65; }
  .hero-float--c,
  .hero-float--d,
  .hero-float--e{ display:none; }
}
@keyframes hero-float{
  0%,100%{ transform:translate3d(calc(var(--mx) * var(--depth, .4)), calc(var(--my) * var(--depth, .4)), 0) translate3d(0,0,0) rotate(-2deg); }
  35%{ transform:translate3d(calc(var(--mx) * var(--depth, .4)), calc(var(--my) * var(--depth, .4)), 0) translate3d(6px,-14px,0) rotate(2deg); }
  70%{ transform:translate3d(calc(var(--mx) * var(--depth, .4)), calc(var(--my) * var(--depth, .4)), 0) translate3d(-8px,-6px,0) rotate(-1deg); }
}
@keyframes hero-ring{
  0%{ opacity:.55; transform:scale(.88); }
  70%{ opacity:0; transform:scale(1.35); }
  100%{ opacity:0; transform:scale(1.35); }
}
@keyframes hero-ring-fast{
  0%{ opacity:.7; transform:scale(.9); }
  100%{ opacity:0; transform:scale(1.45); }
}
@keyframes hero-icon-spin{
  to{ transform:rotate(360deg); }
}
@keyframes hero-icon-pulse{
  0%,100%{ transform:scale(1); opacity:1; }
  50%{ transform:scale(1.12); opacity:.85; }
}

/* —— Feature strip (animated icons + text) —— */
.feature-strip{
  display:grid;
  grid-template-columns:1fr;
  gap:0;
  border-bottom:1px solid rgba(255,255,255,.08);
  background:#0A1628;
}
@media (min-width:800px){
  .feature-strip{ grid-template-columns:repeat(3,1fr); }
}
.feature-item{
  display:flex;
  gap:16px;
  align-items:flex-start;
  padding:28px 24px;
  border-bottom:1px solid rgba(255,255,255,.08);
}
@media (min-width:800px){
  .feature-item{
    border-bottom:none;
    border-right:1px solid rgba(255,255,255,.08);
    padding:32px 28px;
  }
  .feature-item:last-child{ border-right:none; }
}
.feature-icon{
  flex-shrink:0;
  width:52px; height:52px;
  border-radius:16px;
  background:rgba(245,166,35,.12);
  border:1px solid rgba(245,166,35,.28);
  display:grid; place-items:center;
  color:var(--accent);
}
.feature-icon svg{ width:26px; height:26px; }
.feature-item h3{
  margin:0 0 6px;
  font-size:1rem;
  font-family:var(--font-display);
  letter-spacing:-0.02em;
  color:#F4F1EA;
}
.feature-item p{
  margin:0;
  color:#9AA8BC;
  font-size:14px;
  line-height:1.45;
}

.icon-pulse{ animation:icon-pulse 2.4s var(--ease) infinite; }
.icon-scan{ animation:icon-scan 2s ease-in-out infinite; }
.icon-dash{ animation:icon-dash 2.6s ease-in-out infinite; }
@keyframes icon-pulse{
  0%,100%{ transform:scale(1); }
  50%{ transform:scale(1.08); }
}
@keyframes icon-scan{
  0%,100%{ transform:translateY(0); }
  50%{ transform:translateY(-3px); }
}
@keyframes icon-dash{
  0%,100%{ transform:rotate(0deg); }
  25%{ transform:rotate(-4deg); }
  75%{ transform:rotate(4deg); }
}

/* —— Split: story + auth —— */
.auth-layout{
  display:grid;
  grid-template-columns:1fr;
  padding-bottom:24px;
  background:#FAFAF8;
}
@media (min-width:960px){
  .auth-layout{
    grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);
    min-height:auto;
  }
}

.auth-pitch{
  padding:40px 20px 32px;
  border-bottom:1px solid rgba(10,22,40,.08);
  order:2;
  background:#fff;
  color:#0A1628;
}
@media (min-width:960px){
  .auth-pitch{
    order:0;
    padding:48px 40px 56px;
    border-bottom:none;
    border-right:1px solid rgba(10,22,40,.08);
  }
}

.auth-panel{
  padding:40px 20px 40px;
  display:flex;
  align-items:flex-start;
  justify-content:center;
  order:1;
  background:#FAFAF8;
}
.auth-panel-inner{
  width:100%;
  max-width:520px;
}
.auth-intro{
  margin-bottom:20px;
}
.auth-intro .eyebrow{
  color:#B45309;
  margin-bottom:8px;
}
.auth-intro h2{
  margin:0 0 8px;
  font-size:clamp(1.45rem, 3vw, 1.85rem);
  color:#0A1628;
}
.auth-intro p{
  margin:0;
  color:#5C6B7F;
  font-size:15px;
  line-height:1.5;
  max-width:40ch;
}
.auth-box{
  background:rgba(7,14,24,.92);
  border:1px solid rgba(255,255,255,.12);
  border-radius:var(--radius);
  box-shadow:0 16px 40px rgba(0,0,0,.28);
  padding:20px;
  color:#F4F1EA;
  overflow:visible;
  --text:#F4F1EA;
  --muted:#9AA8BC;
  --surface:rgba(255,255,255,.06);
  --surface-strong:rgba(255,255,255,.1);
  --surface-solid:rgba(14,28,48,.92);
  --border:rgba(255,255,255,.14);
}
.auth-box .label{ color:#9AA8BC; }
.auth-box .eyebrow{ color:var(--accent); }
.auth-box h2,
.auth-box .auth-title{
  color:#F4F1EA;
  margin:0 0 8px;
  font-family:var(--font-display);
  font-weight:700;
  font-size:1.35rem;
  letter-spacing:-0.03em;
  line-height:1.45;
  overflow:visible;
}
.auth-box .input,
.auth-box .glass-solid,
.auth-box .cc-trigger{
  background:rgba(255,255,255,.06);
  color:#F4F1EA;
  border-color:rgba(255,255,255,.14);
}
.auth-box .input::placeholder{ color:#9AA8BC; }
.auth-box .btn-ghost{
  color:#F4F1EA;
  border-color:rgba(255,255,255,.14);
}
.auth-box .text-sm,
.auth-box p{ color:#9AA8BC; }
.auth-card-body{
  padding-top:4px;
  overflow:visible;
  transform:none;
}
.phone-row{
  display:flex;
  gap:8px;
  align-items:stretch;
  position:relative;
}
.cc-picker{
  position:relative;
  flex:0 0 auto;
  min-width:118px;
}
@media (max-width:400px){
  .phone-row{ gap:6px; }
  .cc-picker{ min-width:96px; }
  .cc-trigger{ padding:0 8px; gap:4px; }
  .cc-dropdown{
    left:0;
    right:auto;
    width:min(300px, calc(100vw - 32px));
  }
}
.cc-trigger{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  width:100%;
  min-height:48px;
  padding:0 12px;
  cursor:pointer;
  font-weight:600;
  white-space:nowrap;
}
.cc-caret{ opacity:.7; font-size:12px; }
.cc-dropdown{
  position:absolute;
  top:calc(100% + 6px);
  left:0;
  z-index:40;
  width:min(320px, 78vw);
  background:#0E1C30;
  border:1px solid rgba(255,255,255,.14);
  border-radius:14px;
  box-shadow:0 16px 40px rgba(0,0,0,.4);
  padding:10px;
}
.cc-search{
  margin-bottom:8px;
  min-height:42px;
}
.cc-list{
  max-height:240px;
  overflow:auto;
  display:flex;
  flex-direction:column;
  gap:2px;
}
.cc-option{
  display:grid;
  grid-template-columns:28px 1fr auto;
  gap:10px;
  align-items:center;
  width:100%;
  padding:10px 10px;
  border:none;
  border-radius:10px;
  background:transparent;
  color:#F4F1EA;
  text-align:left;
  cursor:pointer;
  font-size:14px;
}
.cc-option:hover,
.cc-option[aria-selected="true"]{
  background:rgba(245,166,35,.16);
}
.cc-flag{ font-size:18px; line-height:1; }
.cc-name{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.cc-dial{ color:#9AA8BC; font-weight:600; }
.cc-empty{
  padding:12px;
  color:#9AA8BC;
  font-size:13px;
  text-align:center;
}
.auth-panel .mode-tabs{
  margin:0 0 18px;
  background:rgba(255,255,255,.06);
  border-color:rgba(255,255,255,.1);
  box-shadow:none;
}
.auth-panel .mode-tab{ color:#9AA8BC; }
.auth-panel .mode-tab.active{
  background:rgba(245,166,35,.18);
  color:var(--accent);
}
@media (min-width:960px){
  .auth-panel{
    order:0;
    align-items:flex-start;
    padding:48px 40px 48px;
    position:sticky;
    top:64px;
    align-self:start;
    min-height:0;
  }
}

.mode-tabs{
  display:flex; gap:8px; margin-bottom:20px; padding:4px;
  background:#F3F4F6; border:1px solid rgba(10,22,40,.1); border-radius:14px;
}
.mode-tab{
  flex:1; min-height:40px; border:none; border-radius:10px;
  background:transparent; color:#5C6B7F;
  font-weight:600; font-size:14px; cursor:pointer;
}
.mode-tab.active{
  background:rgba(245,166,35,.16); color:#B45309;
}

.pitch-grid{
  display:grid;
  gap:20px;
  margin-top:24px;
}
@media (min-width:640px){
  .pitch-grid{ grid-template-columns:1.1fr .9fr; align-items:stretch; }
}
.pitch-photo{
  margin:0;
  overflow:hidden;
  border-radius:18px;
  border:1px solid rgba(10,22,40,.1);
  min-height:220px;
}
.pitch-photo img{
  width:100%; height:100%; min-height:220px;
  object-fit:cover; display:block;
  filter:none;
}

.problem-list{
  list-style:none; margin:0; padding:0;
  display:flex; flex-direction:column; gap:18px;
  justify-content:space-between;
  height:100%;
}
.problem-item{
  display:grid; grid-template-columns:44px 1fr; gap:14px; align-items:start;
}
.problem-icon{
  width:44px; height:44px; border-radius:12px;
  display:flex; align-items:center; justify-content:center;
  background:#FFF6E8; border:1px solid rgba(245,166,35,.28);
}
.problem-icon svg{ width:22px; height:22px; }
.problem-item h3{
  margin:0 0 6px; font-size:17px;
  font-family:var(--font-body); font-weight:700; letter-spacing:0;
  color:#0A1628;
}
.problem-item p{ margin:0; color:#5C6B7F; font-size:15px; line-height:1.5; }
.section-label{
  margin:0 0 14px;
  font-size:13px; font-weight:700;
  letter-spacing:.12em; text-transform:uppercase; color:#5C6B7F;
}
.pitch-intro h2{
  font-size:clamp(1.55rem, 3vw, 2rem);
  margin:0 0 10px;
  color:#0A1628;
}
.pitch-intro p{
  margin:0; color:#5C6B7F; font-size:16px; max-width:42ch; line-height:1.55;
}

@media (prefers-reduced-motion: reduce){
  .hero-media img, .icon-pulse, .icon-scan, .icon-dash,
  .hero-float, .hero-float::before, .hero-float svg,
  .hero-float--spin svg, .hero-float--pulse-icon svg{
    animation:none !important;
  }
  .hero-float:hover{ filter:brightness(1.12); }
}

/* —— Footer —— */
.site-footer{
  background:#070E18;
  color:#9AA8BC;
  border-top:1px solid rgba(255,255,255,.08);
}
.footer-marquee{
  overflow:hidden;
  border-bottom:1px solid rgba(255,255,255,.08);
  background:rgba(245,166,35,.08);
  padding:12px 0;
}
.footer-marquee-track{
  display:flex;
  width:max-content;
  gap:0;
  animation:footer-marquee 40s linear infinite;
}
.footer-marquee-group{
  display:flex;
  align-items:center;
  gap:28px;
  padding-right:28px;
  white-space:nowrap;
  font-size:13px;
  font-weight:600;
  letter-spacing:.02em;
  color:#F4F1EA;
}
.footer-marquee-group span{
  display:inline-flex;
  align-items:center;
  gap:10px;
}
.footer-dot{
  width:6px;
  height:6px;
  border-radius:50%;
  background:var(--accent);
  box-shadow:0 0 10px rgba(245,166,35,.7);
  flex-shrink:0;
}
@keyframes footer-marquee{
  from{ transform:translateX(0); }
  to{ transform:translateX(-50%); }
}
.footer-bottom{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:12px 24px;
  padding:18px 20px;
  max-width:1120px;
  margin:0 auto;
  font-size:13px;
}
@media (min-width:900px){
  .footer-bottom{ padding:20px 40px; }
}
.footer-brand{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-family:var(--font-display);
  font-weight:700;
  color:#F4F1EA;
  letter-spacing:-0.02em;
}
.footer-brand-mark{
  width:22px;
  height:22px;
  flex-shrink:0;
  display:block;
  object-fit:contain;
}
.footer-brand span{ color:var(--accent); }
.footer-copy{ color:#9AA8BC; }
.footer-links{
  display:flex;
  flex-wrap:wrap;
  gap:14px;
}
.footer-links a{
  color:#9AA8BC;
  text-decoration:none;
  font-weight:600;
}
.footer-links a:hover{ color:var(--accent); }
@media (prefers-reduced-motion: reduce){
  .footer-marquee-track{ animation:none; }
}

/* ---------------------------------------------------------------------------
   Dashboard — enterprise console
   ------------------------------------------------------------------------ */

body.dash-page{
  background:#0B1220;
  background-image:
    linear-gradient(180deg, rgba(245,166,35,.04), transparent 220px);
  color:#E8EDF5;
  min-height:100%;
  font-size:14px;
}

body.dash-page .btn{
  min-height:40px;
  border-radius:8px;
  font-size:13px;
  font-weight:600;
}
body.dash-page .btn-primary{
  box-shadow:none;
}
body.dash-page .btn-primary:hover{
  box-shadow:none;
}
body.dash-page .input{
  min-height:40px;
  border-radius:8px;
  font-size:14px;
  background:#fff;
  color:#0A1628;
  border:1px solid rgba(10,22,40,.22);
}
body.dash-page .input::placeholder{ color:#64748B; }
body.dash-page .input:focus-visible{
  border-color:var(--accent);
  box-shadow:0 0 0 3px rgba(245,166,35,.28);
}
body.dash-page .chip{
  border-radius:6px;
  padding:6px 11px;
  font-size:12px;
  background:transparent;
  border-color:rgba(255,255,255,.14);
  color:#9AA8BC;
}
body.dash-page .chip-active{
  background:rgba(245,166,35,.14);
  border-color:rgba(245,166,35,.45);
  color:var(--accent);
  background-image:none;
}
body.dash-page .chip-count{
  background:rgba(245,166,35,.1);
  border-color:rgba(245,166,35,.28);
  color:#F4F1EA;
  cursor:default;
  border-radius:999px;
  padding:5px 12px;
}

.dash-app{
  display:flex;
  min-height:100vh;
  min-height:100dvh;
}
.dash-sidebar{
  position:fixed;
  inset:0 auto 0 0;
  z-index:30;
  width:248px;
  display:flex;
  flex-direction:column;
  background:#0A101C;
  border-right:1px solid rgba(255,255,255,.08);
  padding:16px 12px;
}
.dash-sidebar-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  padding:4px 8px 14px;
  border-bottom:1px solid rgba(255,255,255,.08);
}
.dash-product{
  display:inline-flex;
  align-items:center;
  gap:10px;
  min-width:0;
  font-family:var(--font-display);
  font-weight:800;
  font-size:14px;
  letter-spacing:-0.02em;
  color:#F4F1EA;
  line-height:1.15;
}
.dash-product-mark{
  width:28px;
  height:28px;
  flex-shrink:0;
  display:block;
  object-fit:contain;
}
.dash-product-text{
  display:flex;
  flex-direction:column;
  min-width:0;
}
.dash-product-text > span{
  color:var(--accent);
}
.dash-sidebar-close{
  display:none;
  width:32px;
  height:32px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:8px;
  background:transparent;
  color:#9AA8BC;
  cursor:pointer;
}
.dash-sidebar-stall{
  padding:14px 8px 8px;
  border-bottom:1px solid rgba(255,255,255,.08);
  margin-bottom:8px;
}
.dash-brand{
  font-family:var(--font-display);
  font-weight:800;
  font-size:1.05rem;
  letter-spacing:-0.03em;
  line-height:1.25;
  color:#F4F1EA;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.dash-expo{
  font-size:12px;
  color:#7F8DA3;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.dash-sidebar-nav{
  display:flex;
  flex-direction:column;
  gap:2px;
  flex:1;
  overflow:auto;
  padding:4px 0;
}
.dash-nav-label{
  margin:12px 8px 6px;
  font-size:10px;
  font-weight:700;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:#5C6B7F;
}
.dash-nav-item{
  display:flex;
  align-items:center;
  gap:10px;
  width:100%;
  min-height:40px;
  padding:0 10px;
  border:none;
  border-radius:8px;
  background:transparent;
  color:#9AA8BC;
  font-size:13px;
  font-weight:600;
  text-align:left;
  cursor:pointer;
  transition:background 140ms var(--ease), color 140ms var(--ease);
}
.dash-nav-item:hover{
  background:rgba(255,255,255,.05);
  color:#E8EDF5;
}
.dash-nav-item.active{
  background:rgba(245,166,35,.12);
  color:var(--accent);
}
.dash-nav-icon{
  width:18px;
  height:18px;
  display:grid;
  place-items:center;
  flex-shrink:0;
}
.dash-nav-icon svg{ width:18px; height:18px; }
.dash-sidebar-foot{
  margin-top:auto;
  padding:12px 8px 4px;
  border-top:1px solid rgba(255,255,255,.08);
}
.dash-version{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  font-size:11px;
  color:#7F8DA3;
}
.dash-version strong{
  font-family:ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight:600;
  color:#A8B4C6;
  font-size:11px;
}
.dash-sidebar-backdrop{
  display:none;
  position:fixed;
  inset:0;
  z-index:25;
  background:rgba(0,0,0,.5);
}
.dash-main{
  flex:1;
  min-width:0;
  margin-left:248px;
  display:flex;
  flex-direction:column;
  background:#F4F6F9;
}
.dash-topbar{
  display:flex;
  position:sticky;
  top:0;
  z-index:20;
  align-items:center;
  gap:12px 16px;
  min-height:64px;
  padding:10px 24px;
  background:rgba(11,18,32,.96);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  border-bottom:1px solid rgba(255,255,255,.08);
}
.dash-topbar-identity{
  flex:1;
  min-width:0;
}
.dash-topbar-title{
  flex:1;
  min-width:0;
  font-family:var(--font-display);
  font-weight:700;
  font-size:14px;
  letter-spacing:-0.02em;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.dash-menu-toggle{
  display:none;
  min-height:34px !important;
  padding:0 12px !important;
  gap:8px;
}
.dash-menu-icon{
  width:18px;
  height:18px;
  flex-shrink:0;
}
.dash-shell{
  width:100%;
  max-width:1200px;
  margin:0 auto;
  padding:20px 24px 80px;
  color:#0A1628;
}

/* Light working area — header/sidebar stay dark */
.dash-shell .dash-page-head h1{ color:#0A1628; }
.dash-shell .dash-page-head p{ color:#334155; }
.dash-shell .label{ color:#334155; }
.dash-shell .eyebrow{ color:#9A3412; }
.dash-shell .auth-title,
.dash-shell h2{ color:#0A1628; }
.dash-shell .text-sm{ color:#334155; }
.dash-shell .btn-ghost{
  color:#0A1628;
  border-color:rgba(10,22,40,.18);
  background:#fff;
}
.dash-shell .btn-ghost:hover{ background:#F3F4F6; }
.dash-shell .input,
body.dash-page .dash-shell .input{
  background:#fff;
  color:#0A1628;
  border:1px solid rgba(10,22,40,.22);
}
.dash-shell .input::placeholder{ color:#64748B; }
.dash-shell .chip{
  background:#fff;
  border-color:rgba(10,22,40,.16);
  color:#1E293B;
}
.dash-shell .chip-active{
  background:rgba(245,166,35,.18);
  border-color:rgba(180,83,9,.45);
  color:#9A3412;
}

body.dash-page .dash-shell .dash-stats{
  border-color:rgba(10,22,40,.12);
  background:#fff;
  box-shadow:0 1px 2px rgba(10,22,40,.04);
}
body.dash-page .dash-shell .dash-stat{
  border-right-color:rgba(10,22,40,.1);
}
@media (max-width:720px){
  body.dash-page .dash-shell .dash-stat:nth-child(n+4){
    border-top-color:rgba(10,22,40,.1);
  }
}
.dash-shell .dash-stat-label{
  color:#475569;
  font-size:11px;
  letter-spacing:.08em;
}
.dash-shell .dash-stat-value{ color:#0A1628; }
.dash-shell .dash-stat--accent .dash-stat-value{ color:#9A3412; }
.dash-shell .dash-stat--hot .dash-stat-value{ color:#C2410C; }
.dash-shell .dash-stat--warm .dash-stat-value{ color:#A16207; }
.dash-shell .dash-stat--new .dash-stat-value{ color:#1D4ED8; }

.dash-shell .dash-panel-card,
.dash-shell .dash-panel,
.dash-shell .dash-panel.glass,
.dash-shell .glass.card{
  background:#fff;
  border-color:rgba(10,22,40,.12);
  box-shadow:0 1px 2px rgba(10,22,40,.04);
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
  color:#0A1628;
}
.dash-shell .dash-toolbar{
  border-bottom-color:rgba(10,22,40,.1);
}
.dash-shell .leads-table th{
  color:#334155;
  background:#F1F5F9;
  border-bottom-color:rgba(10,22,40,.1);
}
.dash-shell .leads-table td{
  color:#0A1628;
  border-bottom-color:rgba(10,22,40,.08);
}
.dash-shell .leads-table tbody tr:hover{ background:rgba(245,166,35,.08); }
.dash-shell .lead-name-text strong{ color:#0A1628; }
.dash-shell .lead-name-text span{ color:#334155; }
.dash-shell .lead-mobile-link{ color:#9A3412; }
.dash-shell .lead-muted{ color:#334155; }
.dash-shell .lead-note-cell{ color:#334155; }
.dash-shell .dash-table-foot{
  border-top-color:rgba(10,22,40,.1);
  color:#334155;
  background:#F8FAFC;
}
.dash-shell .dash-empty h2{ color:#0A1628; }
.dash-shell .dash-empty p{ color:#334155; }
.dash-shell .dash-empty .eyebrow{ color:#9A3412; }
.dash-shell .dash-empty-icon{
  background:#FFF6E8;
  border-color:rgba(245,166,35,.35);
  color:#9A3412;
}
.dash-shell .dash-loading{ color:#334155; }
.dash-shell .sheet-meta{
  background:#F8FAFC;
  border-color:rgba(10,22,40,.12);
}
.dash-shell .sheet-meta-row{
  border-bottom-color:rgba(10,22,40,.08);
}
.dash-shell .sheet-meta-row dt{ color:#334155; }
.dash-shell .sheet-meta-row dd{ color:#0A1628; }
.dash-shell .status-badge--new{
  color:#1D4ED8;
  background:rgba(47,111,237,.12);
  border-color:rgba(47,111,237,.28);
}
.dash-shell .status-badge--hot{
  color:#C2410C;
  background:rgba(224,78,47,.12);
  border-color:rgba(224,78,47,.28);
}
.dash-shell .status-badge--warm{
  color:#9A3412;
  background:rgba(245,166,35,.16);
  border-color:rgba(245,166,35,.32);
}
.dash-shell .status-badge--cold{
  color:#334155;
  background:rgba(51,65,85,.1);
  border-color:rgba(51,65,85,.22);
}
.dash-shell .status-badge--done{
  color:#0F766E;
  background:rgba(15,118,110,.12);
  border-color:rgba(15,118,110,.28);
}
@media (max-width:900px){
  .dash-sidebar{
    width:min(248px, 86vw);
    transform:translateX(-105%);
    transition:transform 200ms var(--ease);
    box-shadow:8px 0 32px rgba(0,0,0,.4);
    padding-top:max(16px, env(safe-area-inset-top));
    padding-bottom:max(16px, env(safe-area-inset-bottom));
  }
  body.dash-sidebar-open{ overflow:hidden; }
  body.dash-sidebar-open .dash-sidebar{ transform:translateX(0); }
  body.dash-sidebar-open .dash-sidebar-backdrop{ display:block; }
  .dash-sidebar-close{ display:grid; place-items:center; }
  .dash-main{ margin-left:0; }
  .dash-menu-toggle{ display:inline-flex; }
  .dash-topbar{
    padding:10px 16px;
    padding-top:max(10px, env(safe-area-inset-top));
    min-height:56px;
  }
  .dash-brand{ font-size:1rem; }
  .dash-shell{ padding:16px 16px 80px; }
  .chip-count{ display:none; }
}

.dash-page-head{
  display:flex;
  flex-wrap:wrap;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px 20px;
  margin-bottom:16px;
}
.dash-page-head h1{
  margin:0;
  font-family:var(--font-display);
  font-weight:800;
  font-size:1.35rem;
  letter-spacing:-0.03em;
  line-height:1.25;
  color:#F4F1EA;
}
.dash-page-head p{
  margin:4px 0 0;
  font-size:13px;
  color:#7F8DA3;
}
.dash-page-actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

body.dash-page .dash-stats{
  display:grid;
  grid-template-columns:repeat(5, minmax(0, 1fr));
  gap:0;
  margin-bottom:16px;
  border:1px solid rgba(255,255,255,.1);
  border-radius:10px;
  overflow:hidden;
  background:#101827;
}
@media (max-width:720px){
  body.dash-page .dash-stats{ grid-template-columns:repeat(3, minmax(0, 1fr)); }
}
body.dash-page .dash-stat{
  padding:12px 14px;
  border-radius:0;
  background:transparent;
  border:none;
  border-right:1px solid rgba(255,255,255,.08);
}
body.dash-page .dash-stat:last-child{ border-right:none; }
@media (max-width:720px){
  body.dash-page .dash-stat:nth-child(3){ border-right:none; }
  body.dash-page .dash-stat:nth-child(n+4){
    border-top:1px solid rgba(255,255,255,.08);
  }
  body.dash-page .dash-stat:nth-child(5){ border-right:none; }
}
.dash-stat-label{
  margin:0 0 2px;
  font-size:10px;
  font-weight:700;
  letter-spacing:.1em;
  text-transform:uppercase;
  color:#7F8DA3;
}
.dash-stat-value{
  margin:0;
  font-family:var(--font-display);
  font-weight:800;
  font-size:1.25rem;
  letter-spacing:-0.03em;
  line-height:1.2;
  color:#F4F1EA;
}
.dash-stat--accent .dash-stat-value{ color:var(--accent); }
.dash-stat--hot .dash-stat-value{ color:#FF6B4A; }
.dash-stat--warm .dash-stat-value{ color:#F5A623; }
.dash-stat--new .dash-stat-value{ color:#5B9FFF; }

.dash-panel-card{
  border:1px solid rgba(255,255,255,.1);
  border-radius:10px;
  background:#101827;
  overflow:hidden;
}

.dash-toolbar{
  display:flex;
  flex-direction:column;
  gap:0;
  margin-bottom:0;
  border-bottom:1px solid rgba(255,255,255,.08);
}
.dash-toolbar-row{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px;
  padding:12px 14px;
}
.dash-toolbar-row .input{ flex:1; min-width:180px; }
.dash-filters{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  padding:0 14px 12px;
}

.status-badge{
  display:inline-flex;
  align-items:center;
  padding:2px 8px;
  border-radius:4px;
  font-size:11px;
  font-weight:700;
  letter-spacing:.04em;
  text-transform:uppercase;
  border:1px solid transparent;
}
.status-badge--new{
  color:#8EC0FF;
  background:rgba(91,159,255,.12);
  border-color:rgba(91,159,255,.22);
}
.status-badge--hot{
  color:#FF9A84;
  background:rgba(255,107,74,.12);
  border-color:rgba(255,107,74,.24);
}
.status-badge--warm{
  color:#F5A623;
  background:rgba(245,166,35,.12);
  border-color:rgba(245,166,35,.24);
}
.status-badge--cold{
  color:#9AA8BC;
  background:rgba(154,168,188,.1);
  border-color:rgba(154,168,188,.2);
}
.status-badge--done{
  color:#3DDC97;
  background:rgba(61,220,151,.1);
  border-color:rgba(61,220,151,.22);
}

.leads-table-wrap{ width:100%; overflow-x:auto; }
.leads-table{
  width:100%;
  border-collapse:collapse;
  min-width:720px;
}
.leads-table th{
  text-align:left;
  padding:10px 14px;
  font-size:11px;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:#7F8DA3;
  background:rgba(255,255,255,.02);
  border-bottom:1px solid rgba(255,255,255,.08);
  white-space:nowrap;
}
.leads-table td{
  padding:12px 14px;
  border-bottom:1px solid rgba(255,255,255,.06);
  vertical-align:middle;
  color:#E8EDF5;
  font-size:13px;
}
.leads-table tbody tr{
  cursor:pointer;
  transition:background 120ms var(--ease);
}
.leads-table tbody tr:hover{ background:rgba(245,166,35,.05); }
.leads-table tbody tr:last-child td{ border-bottom:none; }
.lead-name-cell{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}
.lead-avatar{
  flex-shrink:0;
  width:32px;
  height:32px;
  border-radius:8px;
  display:grid;
  place-items:center;
  font-family:var(--font-display);
  font-weight:800;
  font-size:12px;
  color:var(--accent-ink);
  background:linear-gradient(145deg, var(--accent), var(--accent-hot));
}
.lead-name-text{
  min-width:0;
}
.lead-name-text strong{
  display:block;
  font-family:var(--font-body);
  font-weight:600;
  font-size:13px;
  color:#F4F1EA;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.lead-name-text span{
  display:block;
  font-size:12px;
  color:#7F8DA3;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.lead-mobile-link{
  color:var(--accent);
  font-weight:600;
  text-decoration:none;
  font-variant-numeric:tabular-nums;
}
.lead-mobile-link:hover{ text-decoration:underline; }
.lead-muted{ color:#7F8DA3; }
.lead-note-cell{
  max-width:220px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:#A8B4C6;
}

.dash-empty{
  text-align:center;
  padding:48px 24px;
}
.dash-empty-icon{
  width:48px;
  height:48px;
  margin:0 auto 16px;
  border-radius:10px;
  display:grid;
  place-items:center;
  color:var(--accent);
  background:rgba(245,166,35,.1);
  border:1px solid rgba(245,166,35,.25);
}
.dash-empty-icon svg{ width:24px; height:24px; }
.dash-empty .eyebrow{ margin-bottom:8px; }
.dash-empty h2{
  margin:0 0 8px;
  font-size:1.15rem;
  line-height:1.35;
  overflow:visible;
  font-family:var(--font-display);
}
.dash-empty p{
  margin:0 auto 20px;
  color:#7F8DA3;
  max-width:42ch;
  font-size:13px;
  line-height:1.5;
}

.qr-frame{
  background:#fff;
  border-radius:12px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:12px;
  box-shadow:0 8px 24px rgba(0,0,0,.28);
  max-width:100%;
  box-sizing:border-box;
}
.qr-frame canvas,
.qr-frame svg{
  display:block;
  max-width:100%;
  height:auto;
}

.dash-panel{
  max-width:520px;
  margin:0 auto;
  border:1px solid rgba(255,255,255,.1);
  border-radius:10px;
  background:#101827;
  box-shadow:none;
  backdrop-filter:none;
}
.dash-panel-wide{ max-width:640px; }
.dash-panel.glass,
.dash-panel-card.glass{
  background:#101827;
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
  box-shadow:none;
}
.dash-panel .auth-title,
.dash-panel h2{
  line-height:1.35;
  overflow:visible;
}
.dash-split{
  display:grid;
  gap:20px;
  max-width:720px;
  margin:0;
  padding:24px;
}
@media (min-width:800px){
  .dash-split{
    grid-template-columns:280px 1fr;
    align-items:start;
  }
}
.dash-qr-side{
  text-align:center;
}
.dash-qr-meta label{
  display:block;
  text-align:left;
}
.qr-meta-title{
  margin-bottom:12px;
  font-size:1.2rem;
}
.qr-url-row{
  display:flex;
  align-items:stretch;
  gap:8px;
  margin-bottom:16px;
}
.qr-url-row .input{
  flex:1 1 auto;
  min-width:0;
  font-size:13px;
}
.qr-url-row .btn{
  flex:0 0 auto;
  min-width:88px;
}
.qr-action-row{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-bottom:8px;
}
.qr-action-row .btn{
  flex:1 1 140px;
  justify-content:center;
}

.sheet-meta{
  display:grid;
  gap:0;
  margin-bottom:16px;
  padding:0;
  border-radius:8px;
  background:rgba(255,255,255,.03);
  border:1px solid rgba(255,255,255,.1);
  overflow:hidden;
}
.sheet-meta-row{
  display:flex;
  justify-content:space-between;
  gap:12px;
  font-size:13px;
  padding:10px 12px;
  border-bottom:1px solid rgba(255,255,255,.06);
}
.sheet-meta-row:last-child{ border-bottom:none; }
.sheet-meta-row dt{
  color:#7F8DA3;
  margin:0;
  display:flex;
  align-items:center;
  gap:8px;
}
.sheet-meta-row dd{ margin:0; color:#F4F1EA; font-weight:600; text-align:right; }
.sheet-meta-icon{
  display:inline-flex;
  color:#9A3412;
  flex-shrink:0;
}

/* Lead detail — right full-height drawer */
.lead-drawer-backdrop{
  position:fixed;
  inset:0;
  z-index:42;
  background:rgba(7,14,24,.45);
  backdrop-filter:blur(2px);
}
.lead-drawer{
  position:fixed;
  top:0;
  right:0;
  bottom:0;
  z-index:43;
  width:min(420px, 100%);
  max-width:100%;
  display:flex;
  flex-direction:column;
  background:#fff;
  color:#0A1628;
  border-left:1px solid rgba(10,22,40,.12);
  box-shadow:-16px 0 48px rgba(10,22,40,.18);
  animation:lead-drawer-in 280ms var(--ease) both;
  padding-top:env(safe-area-inset-top, 0px);
  padding-bottom:env(safe-area-inset-bottom, 0px);
}
@keyframes lead-drawer-in{
  from{ opacity:0; transform:translateX(24px); }
  to{ opacity:1; transform:translateX(0); }
}
body.lead-drawer-open{ overflow:hidden; }

.lead-drawer-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  padding:20px 20px 16px;
  border-bottom:1px solid rgba(10,22,40,.08);
  background:linear-gradient(180deg, #FFF8EE 0%, #fff 100%);
}
.lead-drawer-identity{
  display:flex;
  gap:12px;
  min-width:0;
  align-items:center;
}
.lead-drawer-avatar{
  width:48px;
  height:48px;
  border-radius:12px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-family:var(--font-display);
  font-weight:800;
  font-size:16px;
  color:#9A3412;
  background:rgba(245,166,35,.18);
  border:1px solid rgba(245,166,35,.35);
  flex-shrink:0;
}
.lead-drawer-title{ min-width:0; }
.lead-drawer-title .eyebrow{
  margin:0 0 2px;
  color:#9A3412;
}
.lead-drawer-title .auth-title{
  margin:0;
  font-size:1.25rem;
  color:#0A1628;
  line-height:1.2;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.lead-drawer-sub{
  margin:4px 0 0;
  color:#64748B;
  font-size:13px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.lead-drawer-close{
  min-height:36px;
  padding:0 12px;
  color:#0A1628;
  border-color:rgba(10,22,40,.16);
  background:#fff;
  flex-shrink:0;
}

.lead-drawer-body{
  flex:1;
  overflow:auto;
  padding:18px 20px 12px;
}
.lead-drawer .sheet-meta{
  background:#F8FAFC;
  border-color:rgba(10,22,40,.1);
  margin-bottom:16px;
}
.lead-drawer .sheet-meta-row{
  border-bottom-color:rgba(10,22,40,.08);
}
.lead-drawer .sheet-meta-row dt{ color:#475569; }
.lead-drawer .sheet-meta-row dd{ color:#0A1628; }

.lead-drawer-actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
  margin-bottom:18px;
}
.lead-action{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:44px;
  border-radius:10px;
  font-weight:700;
  text-decoration:none;
}
.lead-action-icon{
  display:inline-flex;
  align-items:center;
}
.lead-action--call{
  color:#0A1628;
  background:#fff;
  border:1px solid rgba(10,22,40,.18);
}
.lead-action--call:hover{ background:#F3F4F6; }
.lead-action--wa{
  color:#fff;
  background:#25D366;
  border:1px solid #1EBE57;
  box-shadow:0 6px 16px rgba(37,211,102,.28);
}
.lead-action--wa:hover{ filter:brightness(1.04); }

.lead-drawer-field{ margin-bottom:16px; }
.lead-drawer-field .label{
  display:flex;
  align-items:center;
  gap:6px;
  color:#334155;
  margin-bottom:6px;
}
.lead-field-icon{
  color:#9A3412;
  font-size:11px;
}
.lead-drawer .input{
  background:#fff;
  color:#0A1628;
  border:1px solid rgba(10,22,40,.22);
}
.lead-drawer textarea.input{ min-height:140px; }

.lead-drawer-foot{
  padding:14px 20px 18px;
  border-top:1px solid rgba(10,22,40,.08);
  background:#fff;
}
.lead-delete-btn{
  width:100%;
  min-height:44px;
  color:#B91C1C;
  background:#FEF2F2;
  border:1px solid rgba(185,28,28,.22);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  font-weight:700;
}
.lead-delete-btn:hover{ background:#FEE2E2; }

@media (max-width:520px){
  .lead-drawer{ width:100%; left:0; right:0; border-left:none; }
}

.saved-tick{
  color:var(--success);
  font-size:12px;
  font-weight:600;
  opacity:0;
  transition:opacity 200ms;
}
.saved-tick.show{ opacity:1; }
textarea.input{
  min-height:96px;
  padding:12px 16px;
  resize:vertical;
}

.dash-loading{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:40px 20px;
  color:#7F8DA3;
  font-size:13px;
}

.dash-table-foot{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:10px 14px;
  border-top:1px solid rgba(255,255,255,.08);
  font-size:12px;
  color:#7F8DA3;
}

.stall-row{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:16px;
  border-bottom:1px solid rgba(10,22,40,.08);
}
.stall-row:last-child{ border-bottom:none; }
.stall-row-main{ flex:1; min-width:220px; }
.stall-row-meta{
  margin-top:8px;
  font-size:12px;
  color:#334155;
  line-height:1.45;
}
.stall-row-actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

/* Stall dialog + table */
.dash-dialog-backdrop{
  position:fixed;
  inset:0;
  z-index:45;
  background:rgba(7,14,24,.55);
  backdrop-filter:blur(2px);
}
.dash-dialog{
  position:fixed;
  left:50%;
  top:50%;
  z-index:46;
  display:flex;
  flex-direction:column;
  width:min(560px, calc(100vw - 32px));
  max-height:calc(100dvh - 32px);
  overflow-x:hidden;
  overflow-y:auto;
  -webkit-overflow-scrolling:touch;
  transform:translate(-50%, -50%);
  background:#fff;
  border:1px solid rgba(10,22,40,.12);
  border-radius:14px;
  box-shadow:0 24px 64px rgba(10,22,40,.28);
  padding:20px 22px 18px;
  color:#0A1628;
}
@media (max-width:560px){
  .dash-dialog{
    left:0;
    right:0;
    top:auto;
    bottom:0;
    width:100%;
    max-width:none;
    max-height:min(92dvh, calc(100dvh - env(safe-area-inset-top, 0px)));
    transform:none;
    border-radius:18px 18px 0 0;
    padding:18px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  }
  .dash-dialog-actions{
    flex-wrap:wrap;
    position:sticky;
    bottom:0;
    background:#fff;
    padding-bottom:env(safe-area-inset-bottom, 0px);
  }
  .dash-dialog-actions .btn{ flex:1 1 auto; min-height:44px; }
}
.dash-dialog-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom:16px;
  padding-bottom:14px;
  border-bottom:1px solid rgba(10,22,40,.08);
}
.dash-dialog-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
}
.dash-dialog-span{ grid-column:1 / -1; }
@media (max-width:560px){
  .dash-dialog-grid{ grid-template-columns:1fr; }
}
.dash-dialog-actions{
  display:flex;
  justify-content:flex-end;
  gap:8px;
  margin-top:18px;
  padding-top:14px;
  border-top:1px solid rgba(10,22,40,.08);
}
body.dash-dialog-open{ overflow:hidden; }
.dash-dialog .label{ color:#334155; }
.dash-dialog .input,
body.dash-page .dash-dialog .input,
.dash-dialog .flatpickr-input,
body.dash-page .dash-dialog .flatpickr-input{
  background:#fff !important;
  color:#0A1628;
  border:1px solid rgba(10,22,40,.22) !important;
  box-shadow:none;
}
.dash-dialog .input:focus-visible,
body.dash-page .dash-dialog .input:focus-visible,
.dash-dialog .flatpickr-input:focus,
.dash-dialog .flatpickr-input:focus-visible{
  border-color:var(--accent) !important;
  box-shadow:0 0 0 3px rgba(245,166,35,.28);
}
.dash-dialog .input::placeholder{ color:#64748B; }
.dash-dialog .eyebrow{ color:#9A3412; }
.dash-dialog .auth-title{ color:#0A1628; }
.dash-dialog .btn-ghost{
  color:#0A1628;
  border-color:rgba(10,22,40,.16);
  background:#fff;
}

.stalls-table{ min-width:860px; }
.stall-row-actions{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}

/* Flatpickr — match dashboard amber theme */
.flatpickr-calendar{
  font-family:var(--font-body);
  border:1px solid rgba(10,22,40,.12);
  box-shadow:0 16px 40px rgba(10,22,40,.18);
  border-radius:12px;
}
.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.selected:hover{
  background:var(--accent);
  border-color:var(--accent);
  color:#0A1628;
}
.flatpickr-months .flatpickr-month,
.flatpickr-current-month .flatpickr-monthDropdown-months,
span.flatpickr-weekday{
  color:#0A1628;
}
.flatpickr-day:hover{
  background:rgba(245,166,35,.16);
  border-color:transparent;
}

/* QR customize */
.qr-container{
  width:100%;
  max-width:220px;
  margin:0 auto;
  min-height:180px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.qr-container--preview{
  max-width:240px;
  min-height:240px;
}
.qr-placeholder{
  color:#64748B;
  font-size:13px;
  text-align:center;
  padding:24px 12px;
  line-height:1.4;
}
.dash-shell .qr-frame,
body.dash-page .qr-frame{
  border:1px solid rgba(10,22,40,.14);
  box-shadow:0 8px 24px rgba(10,22,40,.08);
  background:#fff;
}
.dash-dialog--qr{
  width:min(760px, calc(100vw - 24px));
  overflow:hidden;
}
.qr-editor{
  display:grid;
  gap:18px;
  flex:1;
  min-height:0;
  overflow-x:hidden;
  overflow-y:auto;
  -webkit-overflow-scrolling:touch;
  padding-bottom:4px;
}
@media (min-width:720px){
  .qr-editor{
    grid-template-columns:240px 1fr;
    align-items:start;
  }
}
.qr-editor-preview{ text-align:center; }
.qr-editor-hint{
  margin:10px 0 0;
  color:#64748B;
  font-size:12px;
  line-height:1.4;
}
.qr-dialog-actions{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
  flex-shrink:0;
  margin-top:12px;
  padding-top:14px;
  border-top:1px solid rgba(10,22,40,.08);
  background:#fff;
}
.qr-dialog-actions #qr-style-reset{ margin-right:auto; }
.qr-logo-row{
  display:flex;
  gap:8px;
  align-items:center;
}
.qr-logo-row input[type="file"]{
  flex:1;
  min-width:0;
  font-size:13px;
  color:#334155;
}
.input-color{
  padding:4px 8px !important;
  min-height:44px;
  cursor:pointer;
}

@media (max-width:720px){
  .dash-dialog--qr{
    width:100%;
    max-height:min(94dvh, calc(100dvh - env(safe-area-inset-top, 0px)));
    padding:14px 14px calc(12px + env(safe-area-inset-bottom, 0px));
    overflow:hidden;
  }
  .dash-dialog--qr .dash-dialog-head{
    flex-shrink:0;
    margin-bottom:12px;
    padding-bottom:10px;
    background:#fff;
  }
  .dash-dialog--qr .auth-title{ font-size:1.05rem !important; }
  .qr-editor{
    gap:12px;
    padding-bottom:12px;
  }
  .qr-editor-preview .qr-frame{ padding:8px; }
  .qr-container--preview{
    max-width:180px;
    min-height:180px;
    margin:0 auto;
  }
  .qr-editor-hint{
    margin-top:8px;
    font-size:11px;
    padding:0 4px;
  }
  .dash-dialog--qr .dash-dialog-grid{
    grid-template-columns:1fr 1fr;
    gap:10px;
  }
  .dash-dialog--qr .label{ margin-bottom:4px; }
  .qr-logo-row{
    flex-direction:row;
    align-items:center;
    flex-wrap:wrap;
  }
  .qr-logo-row .btn{
    min-height:40px;
    flex:0 0 auto;
  }
  .qr-dialog-actions{
    position:static;
    z-index:auto;
    margin-top:0;
    padding:12px 0 0;
    background:#fff;
    box-shadow:0 -8px 16px rgba(255,255,255,.9);
  }
  .qr-dialog-actions #qr-style-reset{
    margin-right:0;
    flex:1 1 100%;
    min-height:44px;
    order:3;
  }
  .qr-dialog-actions #qr-dialog-cancel,
  .qr-dialog-actions #qr-style-apply{
    flex:1 1 calc(50% - 4px);
    min-height:44px;
    justify-content:center;
  }
  .qr-dialog-actions #qr-dialog-cancel{ order:1; }
  .qr-dialog-actions #qr-style-apply{ order:2; }
}
.qr-side-actions{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:8px;
  margin-top:12px;
}

/* Visitor capture — /v/{slug} */
.visitor-body{
  min-height:100%;
  display:flex;
  flex-direction:column;
  background:#fff;
  background-image:none;
  background-attachment:scroll;
  --bg:#fff;
  --bg-spot-1:transparent;
  --bg-spot-2:transparent;
  --visitor-brand:#F5A623;
  --visitor-brand-rgb:245, 166, 35;
  --visitor-brand-soft:rgba(245,166,35,.12);
  --visitor-brand-soft-2:rgba(245,166,35,.22);
  --visitor-brand-ring:rgba(245,166,35,.28);
  --visitor-brand-glow:rgba(245,166,35,.32);
  --visitor-brand-ink:#0A1628;
}
.visitor-ambient{ display:none; }
.visitor-shell{
  position:relative;
  z-index:1;
  flex:1;
  width:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:28px 16px 32px;
}
.visitor-body .site-footer{
  flex-shrink:0;
  width:100%;
  margin-top:auto;
  --accent:#F5A623;
}
.visitor-card{
  position:relative;
  overflow:visible;
  width:100%;
  max-width:420px;
  background:#fff;
  border:1px solid rgba(10,22,40,.10);
  border-radius:24px;
  box-shadow:
    inset 0 4px 0 0 var(--visitor-brand),
    0 18px 48px rgba(10,22,40,.12);
  padding:28px 22px 22px;
}
.visitor-card-accent{ display:none; }
.visitor-head{
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  gap:6px;
  margin-bottom:8px;
}
.visitor-head .avatar:not(.avatar-img){
  margin-bottom:8px;
  background:linear-gradient(145deg, var(--visitor-brand), color-mix(in srgb, var(--visitor-brand) 55%, #0A1628));
  color:var(--visitor-brand-ink);
  box-shadow:0 10px 28px var(--visitor-brand-glow);
}
.visitor-head img.avatar.avatar-img{
  margin-bottom:8px;
  width:auto;
  max-width:140px;
  height:72px;
  border-radius:12px;
  background:transparent !important;
  background-image:none !important;
  box-shadow:none;
  padding:0;
  border:none;
  object-fit:contain;
}
.visitor-expo{
  margin:0;
  display:inline-flex;
  align-items:center;
  padding:4px 10px;
  border-radius:999px;
  background:var(--visitor-brand-soft);
  border:1px solid var(--visitor-brand-soft-2);
  color:var(--visitor-brand);
  font-size:11px;
  font-weight:700;
  letter-spacing:.06em;
  text-transform:uppercase;
}
.visitor-title{
  font-size:clamp(1.55rem, 6vw, 2rem);
  color:#0A1628;
}
.visitor-person{
  margin:0;
  color:#475569;
  font-size:14px;
  font-weight:500;
}
.visitor-about{
  margin:4px 0 0;
  max-width:34ch;
  color:#64748B;
  font-size:13px;
  line-height:1.45;
}
.visitor-prompt{
  margin:18px 0 16px;
  text-align:center;
  font-family:var(--font-display);
  font-weight:700;
  font-size:1.05rem;
  color:#0A1628;
}
.visitor-field{ margin-bottom:14px; }
.visitor-card .label{ color:#334155; }
.visitor-card .input{
  background:#fff;
  color:#0A1628;
  border:1px solid rgba(10,22,40,.22);
  border-radius:12px;
}
.visitor-card .input:focus-visible{
  border-color:var(--visitor-brand);
  box-shadow:0 0 0 3px var(--visitor-brand-ring);
}
.err-text{
  color:#B91C1C;
  font-size:13px;
  margin:6px 0 0;
  font-weight:500;
}
.visitor-more-btn{
  width:100%;
  margin-bottom:14px;
  min-height:44px;
  color:var(--visitor-brand);
  border-style:dashed;
  border-color:var(--visitor-brand-soft-2);
  background:var(--visitor-brand-soft);
}
.visitor-more-btn:hover{
  border-style:solid;
  background:var(--visitor-brand-soft-2);
}
.visitor-more-btn.is-open{
  border-style:solid;
  background:var(--visitor-brand-soft-2);
  color:#0A1628;
}
.visitor-more{
  padding:12px 12px 2px;
  margin-bottom:14px;
  border-radius:14px;
  background:var(--visitor-brand-soft);
  border:1px solid var(--visitor-brand-soft-2);
}
.visitor-consent{
  display:flex;
  align-items:flex-start;
  gap:12px;
  margin:4px 0 18px;
  padding:12px 14px;
  border-radius:12px;
  background:var(--visitor-brand-soft);
  border:1px solid var(--visitor-brand-soft-2);
  font-size:14px;
  line-height:1.45;
  color:#1E293B;
  cursor:pointer;
}
.visitor-consent input{
  width:18px;
  height:18px;
  margin-top:2px;
  accent-color:var(--visitor-brand);
  flex-shrink:0;
}
.visitor-submit{
  min-height:52px;
  font-size:16px;
  font-weight:800;
}
.visitor-card .btn-primary:disabled,
.visitor-card .btn-primary:disabled:hover{
  opacity:1;
  background:#E8E4DC;
  color:#64748B;
  box-shadow:none;
}
.visitor-card .btn-primary:not(:disabled),
.visitor-card .btn-primary:not(:disabled):hover{
  background:var(--visitor-brand);
  color:var(--visitor-brand-ink);
  box-shadow:0 10px 28px var(--visitor-brand-glow);
  filter:none;
}
.visitor-body .eyebrow{ color:var(--visitor-brand); }
.avatar-img{
  object-fit:contain;
  background:transparent;
  padding:0;
  box-shadow:none;
}
.visitor-body .cc-dropdown,
.dash-dialog .cc-dropdown{
  background:#fff;
  border:1px solid rgba(10,22,40,.14);
  box-shadow:0 16px 40px rgba(10,22,40,.16);
  z-index:60;
}
.visitor-body .cc-option,
.dash-dialog .cc-option{
  color:#0A1628;
}
.visitor-body .cc-dial,
.dash-dialog .cc-dial{
  color:#64748B;
}
.visitor-body .cc-empty,
.dash-dialog .cc-empty{
  color:#64748B;
}
.visitor-body .cc-trigger.input,
.dash-dialog .cc-trigger.input{
  background:#fff;
  color:#0A1628;
  border:1px solid rgba(10,22,40,.22);
}
.visitor-body .cc-option:hover,
.visitor-body .cc-option[aria-selected="true"],
.dash-dialog .cc-option:hover,
.dash-dialog .cc-option[aria-selected="true"]{
  background:var(--visitor-brand-soft, rgba(245,166,35,.12));
}

.brand-color-row{
  display:flex;
  align-items:center;
  gap:10px;
}
.brand-swatches{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}
.brand-swatch{
  width:28px;
  height:28px;
  border-radius:8px;
  border:1px solid rgba(10,22,40,.18);
  cursor:pointer;
  padding:0;
}
.stall-logo-picker{
  display:flex;
  gap:12px;
  align-items:center;
  margin-bottom:10px;
}
.stall-logo-preview{
  width:72px;
  height:72px;
  border-radius:12px;
  border:1px solid rgba(10,22,40,.16);
  background:#F8FAFC;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:11px;
  color:#64748B;
  overflow:hidden;
  flex-shrink:0;
}
.stall-logo-preview.has-logo{ padding:6px; background:#fff; }
.stall-logo-preview img{
  width:100%;
  height:100%;
  object-fit:contain;
}
.stall-logo-actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.stall-logo-lib-label{
  margin:8px 0 6px;
  font-size:12px;
  font-weight:600;
  color:#334155;
}
.stall-logo-library{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.stall-logo-empty{
  margin:0;
  font-size:12px;
  color:#64748B;
}
.stall-logo-thumb{
  width:52px;
  height:52px;
  padding:4px;
  border-radius:10px;
  border:1px solid rgba(10,22,40,.16);
  background:#fff;
  cursor:pointer;
}
.stall-logo-thumb.is-selected{
  border-color:#F5A623;
  box-shadow:0 0 0 2px rgba(245,166,35,.35);
}
.stall-logo-thumb img{
  width:100%;
  height:100%;
  object-fit:contain;
}
.visitor-loading,
.visitor-empty,
.visitor-success{
  padding:20px 4px 8px;
  text-align:center;
}
.visitor-loading p,
.visitor-copy{
  color:#64748B;
  margin:10px 0 18px;
}
.visitor-check{
  margin:0 auto 16px;
  font-size:28px;
  background:linear-gradient(145deg, #3DDC97, #F5A623);
}
.visitor-links{
  display:flex;
  flex-direction:column;
  gap:8px;
  margin:14px 0 0;
}
.hint-banner{
  background:#FFF3D6;
  color:#7A4E00;
  border-radius:12px;
  padding:12px 14px;
  font-size:13px;
  font-weight:500;
  margin:0 0 16px;
  text-align:left;
}
.visitor-body .toast{
  background:#0A1628;
  color:#F4F1EA;
  border:1px solid rgba(245,166,35,.35);
}

/* —— Mobile consistency pass —— */
@media (max-width:720px){
  .leads-table-wrap{ overflow:visible; }
  .leads-table,
  .stalls-table{
    min-width:0;
    border-collapse:separate;
    border-spacing:0 10px;
  }
  .leads-table thead,
  .stalls-table thead{ display:none; }
  .leads-table tbody,
  .stalls-table tbody{
    display:flex;
    flex-direction:column;
    gap:0;
  }
  .leads-table tbody tr,
  .stalls-table tbody tr{
    display:grid;
    grid-template-columns:1fr auto;
    gap:8px 12px;
    padding:14px;
    margin:0;
    border:1px solid rgba(255,255,255,.1);
    border-radius:14px;
    background:rgba(255,255,255,.03);
  }
  .dash-shell .leads-table tbody tr,
  .dash-shell .stalls-table tbody tr{
    border-color:rgba(10,22,40,.12);
    background:#fff;
    box-shadow:0 1px 2px rgba(10,22,40,.04);
  }
  .leads-table td,
  .stalls-table td{
    padding:0;
    border:none !important;
    background:transparent;
  }
  .leads-table tbody tr:hover,
  .stalls-table tbody tr:hover{ background:rgba(245,166,35,.06); }
  .dash-shell .leads-table tbody tr:hover,
  .dash-shell .stalls-table tbody tr:hover{ background:#FFFBF3; }

  /* Leads: name | status / mobile | time / notes */
  .leads-table td:nth-child(1){ grid-column:1; grid-row:1; min-width:0; }
  .leads-table td:nth-child(3){ grid-column:2; grid-row:1; align-self:start; }
  .leads-table td:nth-child(2){ grid-column:1; grid-row:2; }
  .leads-table td:nth-child(4){ grid-column:2; grid-row:2; align-self:center; text-align:right; }
  .leads-table td:nth-child(5){
    grid-column:1 / -1;
    grid-row:3;
    color:#7F8DA3;
    font-size:12px;
    line-height:1.4;
  }
  .dash-shell .leads-table td:nth-child(5){ color:#475569; }

  /* Stalls: name | status / expo+date / contact / actions */
  .stalls-table td:nth-child(1){ grid-column:1; grid-row:1; min-width:0; }
  .stalls-table td:nth-child(6){ grid-column:2; grid-row:1; align-self:start; }
  .stalls-table td:nth-child(2){ grid-column:1; grid-row:2; font-size:12px; }
  .stalls-table td:nth-child(3){ grid-column:2; grid-row:2; font-size:12px; text-align:right; }
  .stalls-table td:nth-child(4),
  .stalls-table td:nth-child(5){
    grid-column:1 / -1;
    font-size:12px;
    color:#7F8DA3;
  }
  .dash-shell .stalls-table td:nth-child(4),
  .dash-shell .stalls-table td:nth-child(5){ color:#475569; }
  .stalls-table td:nth-child(7){ grid-column:1 / -1; }
  .stall-row-actions{
    width:100%;
    flex-wrap:wrap;
  }
  .stall-row-actions .btn{
    flex:1 1 auto;
    min-height:40px;
  }

  .dash-toolbar-row .input{ min-width:0; width:100%; }
  .dash-page-actions{ width:100%; }
  .dash-page-actions .btn{ flex:1 1 auto; min-height:44px; }
  .dash-page-head h1{ font-size:1.2rem; }

  body.dash-page .dash-stats{ grid-template-columns:repeat(2, minmax(0, 1fr)); }
  body.dash-page .dash-stat:nth-child(2n){ border-right:none; }
  body.dash-page .dash-stat:nth-child(n+3){
    border-top:1px solid rgba(255,255,255,.08);
  }
  body.dash-page .dash-shell .dash-stat:nth-child(n+3){
    border-top-color:rgba(10,22,40,.1);
  }
  body.dash-page .dash-stat:last-child{
    grid-column:1 / -1;
  }
}

@media (max-width:560px){
  .site-header{
    padding:10px 16px;
    padding-top:max(10px, env(safe-area-inset-top));
    gap:12px;
  }
  .site-logo{ font-size:.95rem; gap:8px; }
  .site-logo-mark{ width:28px; height:28px; }
  .site-logo-text{
    flex-direction:column;
    gap:0;
    line-height:1.05;
  }
  .site-nav .btn-glow{
    min-height:36px;
    padding:0 12px;
    font-size:12px;
  }
  .btn-glow-full{ display:none; }
  .btn-glow-short{ display:inline; }
  .hero-content{ padding:20px 16px 28px; }
  .hero-actions .btn{ width:100%; justify-content:center; }
  .feature-item{ padding:22px 16px; }
  .auth-panel{
    padding:28px 16px 32px;
  }
  .auth-panel-inner{
    padding-left:0;
    padding-right:0;
    max-width:100%;
  }
  .auth-intro{
    margin-bottom:16px;
    padding:0;
  }
  .auth-intro h2{ font-size:1.35rem; }
  .auth-intro p{ font-size:14px; }
  .auth-box{ padding:16px; border-radius:18px; }
  .auth-pitch{ padding:28px 16px 28px; }
  .pitch-intro h2{ font-size:1.35rem; }
  .footer-marquee{ display:none; }
  .footer-bottom{
    flex-direction:column;
    align-items:flex-start;
    gap:10px;
    padding:16px;
    padding-bottom:max(16px, env(safe-area-inset-bottom));
  }
  .visitor-shell{ padding:20px 14px 24px; }
  .visitor-card{ padding:22px 16px 18px; border-radius:20px; }
  .visitor-body .site-footer .footer-links{ display:none; }
  .dash-dialog--qr{ width:100%; }
  .qr-editor{ grid-template-columns:1fr !important; }
}

@media (max-width:400px){
  .dash-topbar .dash-expo{ display:none; }
  .lead-drawer-actions{ grid-template-columns:1fr; }
}

@media (max-width:960px){
  body{
    background-attachment:scroll;
  }
}

@media (max-width:720px){
  .dash-split{
    padding:16px;
    gap:16px;
    max-width:none;
  }
  .qr-url-row{
    flex-direction:column;
  }
  .qr-url-row .btn{
    width:100%;
    min-height:44px;
  }
  .qr-action-row .btn,
  .qr-side-actions .btn{
    flex:1 1 100%;
    min-height:44px;
    justify-content:center;
  }
  .qr-side-actions{
    justify-content:stretch;
    margin-top:0;
    width:100%;
  }
  .qr-container{
    max-width:220px;
    margin:0 auto;
  }
  #tab-qr .dash-page-head h1{ font-size:1.2rem; }
  .qr-meta-title{ font-size:1.05rem; }
}

@media (max-width:480px){
  .dash-menu-label{ display:none; }
  .dash-menu-toggle{
    min-width:40px;
    padding:0 10px !important;
    justify-content:center;
  }
  .dash-topbar{ gap:10px; }
}
