/* Vesper / Mizan inspired — indigo security console */
:root[data-appearance="dark"] {
  --bg: #070b14;
  --surface: #0f1628;
  --surface2: #151f35;
  --border: rgba(255,255,255,.08);
  --text: #f1f5f9;
  --muted: #94a3b8;
  --accent: #6366f1;
  --accent2: #38bdf8;
  --accent3: #a78bfa;
  --green: #34d399;
  --red: #f87171;
  --orange: #fb923c;
  --yellow: #fbbf24;
  --sidebar-w: 280px;
}
:root[data-appearance="light"] {
  --bg: #f1f5f9;
  --surface: #ffffff;
  --surface2: #e8eef7;
  --border: rgba(15,23,42,.1);
  --text: #0f172a;
  --muted: #64748b;
  --accent: #4f46e5;
  --accent2: #0284c7;
  --accent3: #7c3aed;
  --green: #059669;
  --red: #dc2626;
  --orange: #ea580c;
  --yellow: #d97706;
  --sidebar-w: 280px;
}
* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg); color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  font-size: 15px; line-height: 1.55;
  min-height: 100vh;
}
body.app-logged-in { font-size: 16px; line-height: 1.6; }
body { display: flex; animation: fadeIn .35s ease-out; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes panelIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
a { color: var(--accent2); text-decoration: none; }
a:hover { text-decoration: underline; }
code { background: var(--surface2); padding: 1px 6px; border-radius: 4px; font-size: 12px; }

.sidebar {
  width: var(--sidebar-w); min-width: var(--sidebar-w);
  background: var(--surface); border-right: 1px solid var(--border);
  padding: 1.25rem 1rem; display: flex; flex-direction: column; gap: .6rem;
  position: sticky; top: 0; align-self: flex-start; min-height: 100vh;
}
.sidebar-brand { display: flex; align-items: center; gap: .85rem; margin-bottom: .25rem; padding: .15rem 0; }
.sidebar-lean-logo {
  width: 52px; height: 52px; flex-shrink: 0;
  color: var(--accent2);
  filter: drop-shadow(0 0 14px rgba(56,189,248,.4));
}
.sidebar-brand-text { min-width: 0; }
.logo {
  font-weight: 800; font-size: 1.5rem; line-height: 1.15; letter-spacing: -.02em;
}
.logo-sub {
  font-size: .8rem; color: var(--muted);
  text-transform: none; letter-spacing: .03em; margin-top: .2rem; font-weight: 500;
}
/* Beacon wordmark — animated gradient shimmer */
@keyframes beacon-shimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes beacon-enter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.beacon-brand {
  background: linear-gradient(
    105deg,
    var(--text) 0%,
    var(--accent2) 38%,
    var(--accent3) 62%,
    var(--accent2) 100%
  );
  background-size: 220% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: beacon-shimmer 4.5s ease-in-out infinite;
}
.sidebar .logo.beacon-brand {
  animation: beacon-shimmer 5.5s ease-in-out infinite;
}
.role-badge {
  font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  padding: .25rem .5rem; border-radius: 6px; background: var(--surface2); color: var(--accent2);
  border: 1px solid var(--border); display: inline-block; margin-top: .35rem;
}
.role-badge.admin { color: var(--accent3); border-color: rgba(167,139,250,.35); }
.nav a {
  display: block; color: var(--muted); font-size: .88rem; padding: .5rem .6rem;
  border-radius: 8px; border: 1px solid transparent;
}
.nav a:hover { background: var(--surface2); color: var(--text); text-decoration: none; }
.nav a.active { background: var(--surface2); border-color: var(--border); color: var(--text); font-weight: 600; }
.theme-row { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: .75rem; border-top: 1px solid var(--border); font-size: .72rem; color: var(--muted); }
.theme-toggle { display: flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.theme-toggle button { background: var(--surface2); color: var(--muted); border: none; padding: .35rem .55rem; font-size: .65rem; cursor: pointer; }
.theme-toggle button.active { background: var(--accent); color: #fff; font-weight: 600; }

.main-wrap { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.topbar {
  background: var(--surface); border-bottom: 1px solid var(--border);
  padding: .85rem 1.75rem; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
}
.topbar h1 { margin: 0; font-size: 1.5rem; font-weight: 700; }
.topbar .meta { color: var(--muted); font-size: .9rem; }
main.content { flex: 1; padding: 1.6rem 1.85rem 2.5rem; overflow: auto; }

.btn {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .55rem 1rem; border-radius: 10px; border: 1px solid var(--border);
  background: var(--surface2); color: var(--text); font-size: .9rem;
  cursor: pointer; text-decoration: none; font-family: inherit; transition: background .12s;
}
.btn:hover { background: rgba(99,102,241,.15); text-decoration: none; }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border: none; color: #fff; font-weight: 600;
}
.btn-primary:hover { filter: brightness(1.08); }
.btn-danger { border-color: var(--red); color: var(--red); }
.btn-sm { padding: .3rem .55rem; font-size: .78rem; border-radius: 8px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.dast-inline { display: inline-block; margin: 0 4px 0 0; }
td.triage { white-space: nowrap; }
td.triage select { font-size: 12px; padding: 3px 6px; border-radius: 6px;
  background: var(--surface2); color: var(--text); border: 1px solid var(--border); }
tr.finding-row.fp { opacity: .55; }
tr.finding-row.fp td.title { text-decoration: line-through dashed rgba(255,255,255,.4); }
.row { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.spacer { flex: 1; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: .75rem; margin-bottom: 1.25rem; }
.stat {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 1rem; animation: panelIn .35s ease-out forwards;
}
.stat .n { font-size: 1.5rem; font-weight: 700; }
.stat .l { font-size: .62rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }

.panel {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 1.25rem; margin-bottom: 1.1rem;
  animation: panelIn .35s ease-out forwards;
}
.panel h2 { font-size: 1.05rem; margin: 0 0 .75rem; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 1rem 1.1rem; }
.card-title { font-weight: 600; font-size: 1.05rem; }
.card-meta { color: var(--muted); font-size: .88rem; margin: 4px 0 8px; }
.tag { display: inline-block; padding: 3px 9px; border-radius: 6px; font-size: .75rem; background: var(--surface2); border: 1px solid var(--border); color: var(--muted); }

.sev { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 700; text-transform: uppercase; color: #fff; }
.sev-critical { background: #7f1d1d; }
.sev-high { background: #be123c; }
.sev-medium { background: #c2410c; }
.sev-low { background: #a16207; color: #fff; }
.sev-info { background: #0369a1; }

.counts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.count-pill { padding: 4px 10px; border-radius: 14px; font-size: 12px; background: var(--surface2); border: 1px solid var(--border); color: var(--muted); }
.count-pill.has { color: #fff; border-color: transparent; font-weight: 600; }

table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
th, td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--border); font-size: .92rem; }
th { background: var(--surface2); color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; }
tr:last-child td { border-bottom: 0; }
tr:hover td { background: rgba(99,102,241,.06); }

.status-badge { padding: 2px 9px; border-radius: 4px; font-size: 11px; font-weight: 600; }
.status-running { background: rgba(56,189,248,.2); color: var(--accent2); }
.status-done { background: rgba(52,211,153,.15); color: var(--green); }
.status-failed { background: rgba(248,113,113,.2); color: var(--red); }

.empty { text-align: center; padding: 48px 24px; color: var(--muted); border: 1px dashed var(--border); border-radius: 12px; }
.skills-strip { font-size: .72rem; color: var(--muted); margin-top: .5rem; }
.skills-strip span { color: var(--accent2); }

.sched-form label { display: block; font-size: .65rem; color: var(--muted); margin: .35rem 0 .12rem; }
.sched-form input, .sched-form select {
  width: 100%; font-size: .75rem; padding: .35rem .45rem; border-radius: 6px;
  border: 1px solid var(--border); background: var(--surface2); color: var(--text);
}
.sched-row { display: flex; align-items: center; gap: .4rem; font-size: .72rem; color: var(--muted); margin: .2rem 0; }
.sched-status { font-size: .68rem; color: var(--yellow); min-height: 1rem; margin-top: .35rem; }

.live-log {
  background: #000; color: #cdd9e5; font-family: Menlo, Consolas, monospace;
  font-size: 12px; padding: 12px; border-radius: 8px; height: 280px; overflow-y: auto;
}

footer.page-foot { color: var(--muted); font-size: 12px; text-align: center; padding: 1rem; border-top: 1px solid var(--border); }

/* Login — enterprise DAST split layout (Invicti / Detectify style) */
body.login-only {
  min-height: 100vh; margin: 0; position: relative; overflow-x: hidden;
}
.login-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: var(--bg);
}
.login-mesh {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 90% 70% at 15% 20%, rgba(99,102,241,.18), transparent 50%),
    radial-gradient(ellipse 60% 50% at 85% 70%, rgba(56,189,248,.1), transparent 45%),
    radial-gradient(ellipse 40% 30% at 50% 100%, rgba(167,139,250,.08), transparent 40%);
}
.login-grid {
  position: absolute; inset: 0; opacity: .5;
  background-image:
    linear-gradient(rgba(99,102,241,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,102,241,.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}
.login-orb {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: .35;
}
.login-orb-1 { width: 320px; height: 320px; background: var(--accent); top: -80px; left: -60px; }
.login-orb-2 { width: 280px; height: 280px; background: var(--accent2); bottom: -40px; right: 10%; }

.login-page {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(380px, 0.85fr);
  min-height: 100vh; width: 100%; max-width: 1280px; margin: 0 auto;
}
@media (max-width: 960px) {
  .login-page { grid-template-columns: 1fr; max-width: 480px; padding: 1.5rem; }
  .login-hero { display: none; }
  .login-panel { min-height: auto; }
}

.login-hero {
  display: flex; flex-direction: column; justify-content: center;
  padding: 3rem 2.5rem 3rem 3rem;
}
.login-product-header {
  display: flex; align-items: center; gap: 1.15rem; margin-bottom: 1.35rem;
}
.login-product-logo {
  width: 64px; height: 64px;
  color: var(--accent2);
  filter: drop-shadow(0 0 20px rgba(56,189,248,.45));
  flex-shrink: 0;
}
.login-product-lockup { line-height: 1.1; }
.login-product-subtitle {
  margin: .4rem 0 0; font-size: 1.05rem; font-weight: 500;
  color: var(--muted); letter-spacing: .02em; text-transform: none;
}
.login-mobile-lockup {
  display: flex; flex-direction: column; align-items: flex-start; gap: .12rem;
}
.login-mobile-sub {
  display: block; font-weight: 500; color: var(--muted); font-size: .9rem;
  letter-spacing: .02em;
}
.login-product-name {
  margin: 0; font-size: clamp(2.25rem, 4.5vw, 3rem); font-weight: 800;
  letter-spacing: -.03em; line-height: 1.05;
}
.login-product-name.beacon-brand {
  animation: beacon-enter 0.65s ease-out, beacon-shimmer 4.5s ease-in-out 0.65s infinite;
  filter: drop-shadow(0 0 24px rgba(56, 189, 248, 0.22));
}
@media (prefers-reduced-motion: reduce) {
  .beacon-brand {
    animation: none;
    background-size: 100% auto;
    filter: none;
  }
}
.login-mobile-name.beacon-brand {
  font-size: 1.65rem; font-weight: 800; letter-spacing: -.02em;
  animation: beacon-shimmer 4.5s ease-in-out infinite;
}
.login-product-tagline {
  margin: 0 0 2rem; max-width: 420px;
  font-size: 1.05rem; line-height: 1.55; color: var(--muted); font-weight: 400;
}

.login-hero-visual {
  position: relative; width: 100%; max-width: 480px; margin-bottom: 2rem;
}
.login-hero-img {
  width: 100%; height: auto; display: block;
  max-height: 340px; object-fit: contain;
  filter: drop-shadow(0 24px 48px rgba(0,0,0,.4));
}
.login-hero-visual object.login-hero-img { border: none; pointer-events: none; }
.login-hero-float {
  position: absolute; display: flex; flex-direction: column; gap: .1rem;
  padding: .55rem .75rem; border-radius: 10px;
  background: rgba(15,22,40,.92); border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
  font-size: .65rem; backdrop-filter: blur(8px);
  animation: floatCard 4s ease-in-out infinite;
}
.login-hero-float-1 { top: 8%; right: -4%; animation-delay: 0s; }
.login-hero-float-2 { bottom: 28%; left: -6%; animation-delay: 1.2s; }
.login-hero-float-3 { bottom: 6%; right: 8%; animation-delay: 2.4s; }
@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.float-icon { color: var(--accent2); font-size: .75rem; }
.float-label { color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.float-value { color: var(--text); font-weight: 700; font-size: .78rem; }

.login-capabilities {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 1rem 1.75rem;
}
.login-capabilities li {
  display: flex; align-items: center; gap: .5rem;
  font-size: .88rem; color: var(--muted); font-weight: 500;
}
.login-capabilities svg { color: var(--accent2); flex-shrink: 0; opacity: .9; }

.login-panel {
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  padding: 2rem 2.5rem 2rem 1.5rem;
  border-left: 1px solid var(--border);
  background: rgba(15,22,40,.35);
  backdrop-filter: blur(16px);
}
@media (max-width: 960px) {
  .login-panel { border-left: none; background: transparent; padding: 0; }
}
.login-card {
  width: 100%; max-width: 400px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 2.25rem 2rem;
  box-shadow: 0 4px 6px rgba(0,0,0,.05), 0 24px 48px rgba(0,0,0,.2);
}
.login-card-head { margin-bottom: 1.75rem; }
.login-card-head h2 {
  margin: 0 0 .4rem; font-size: 1.35rem; font-weight: 700; letter-spacing: -.02em;
}
.login-card-head p { margin: 0; font-size: .9rem; color: var(--muted); line-height: 1.45; }
.login-card label {
  display: block; font-size: .8rem; color: var(--muted);
  margin-bottom: .4rem; font-weight: 600;
}
.login-card input {
  width: 100%; padding: .75rem .9rem; border-radius: 10px; margin-bottom: 1.15rem;
  border: 1px solid var(--border); background: var(--bg); color: var(--text);
  font-size: .95rem; transition: border-color .15s, box-shadow .15s;
}
.login-card input:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(99,102,241,.18);
}
.login-submit-btn {
  width: 100%; padding: .85rem 1rem; border: none; border-radius: 10px;
  font-weight: 600; font-size: .95rem; cursor: pointer; margin-top: .25rem;
  background: var(--accent); color: #fff;
  transition: background .15s, transform .12s, box-shadow .15s;
}
.login-submit-btn:hover:not(:disabled) {
  background: #5558e8; transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(99,102,241,.35);
}
.login-submit-btn:disabled { opacity: .7; cursor: wait; }
.login-err {
  color: var(--red); font-size: .88rem; margin-top: 1rem;
  padding: .65rem .75rem; border-radius: 8px;
  background: rgba(248,113,113,.08); border: 1px solid rgba(248,113,113,.2);
}
.login-panel-foot { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--border); }
.login-theme {
  display: flex; align-items: center; justify-content: space-between;
  margin: 0 0 .85rem; border: none; padding: 0;
}
.login-theme-label { font-size: .78rem; color: var(--muted); font-weight: 500; }
.login-secure-note {
  display: flex; align-items: center; gap: .4rem; margin: 0;
  font-size: .72rem; color: var(--muted);
}
.login-secure-note svg { opacity: .7; flex-shrink: 0; }
.login-copyright {
  margin: 1.5rem 0 0; font-size: .7rem; color: var(--muted);
  text-align: center; opacity: .75;
}
.login-mobile-brand { display: none; }
@media (max-width: 960px) {
  .login-mobile-brand {
    display: flex; align-items: center; gap: 1rem;
    margin-bottom: 1.5rem; width: 100%; max-width: 400px;
  }
  .login-mobile-brand img {
    width: 56px; height: 56px;
    color: var(--accent2); filter: drop-shadow(0 0 14px rgba(56,189,248,.4));
  }
}

/* Run scan — magic + dancing bot overlay */
body.scan-overlay-open { overflow: hidden; }
.scan-overlay {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  opacity: 0; pointer-events: all; transition: opacity .35s ease;
}
.scan-overlay.is-active { opacity: 1; }
.scan-overlay-backdrop {
  position: absolute; inset: 0;
  background: rgba(7,11,20,.88);
  backdrop-filter: blur(8px);
}
.scan-magic-ring {
  position: absolute; width: 280px; height: 280px; border-radius: 50%;
  border: 2px solid rgba(167,139,250,.4);
  box-shadow: 0 0 60px rgba(99,102,241,.5), inset 0 0 40px rgba(56,189,248,.15);
  animation: magicRing 2.2s ease-in-out infinite;
}
.scan-magic-ring-2 {
  width: 340px; height: 340px; border-color: rgba(56,189,248,.25);
  animation-duration: 3s; animation-direction: reverse;
}
@keyframes magicRing {
  0%, 100% { transform: scale(.92) rotate(0deg); opacity: .5; }
  50% { transform: scale(1.08) rotate(180deg); opacity: 1; }
}
.scan-sparks { position: absolute; width: 200px; height: 200px; }
.spark {
  position: absolute; left: 50%; top: 50%;
  width: 6px; height: 6px; border-radius: 50%;
  background: linear-gradient(var(--accent3), var(--accent2));
  box-shadow: 0 0 12px var(--accent2);
  animation: sparkFly 1.4s ease-out infinite;
  animation-delay: calc(var(--i) * 0.12s);
  transform: rotate(calc(var(--i) * 30deg)) translateY(-90px);
  opacity: 0;
}
@keyframes sparkFly {
  0% { opacity: 0; transform: rotate(calc(var(--i) * 30deg)) translateY(-20px) scale(0); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: rotate(calc(var(--i) * 30deg)) translateY(-120px) scale(1.2); }
}
.scan-bot-stage {
  position: relative; z-index: 2; margin-bottom: 1.5rem;
  width: 120px; height: 140px;
}
.scan-bot {
  position: relative; width: 80px; margin: 0 auto;
  animation: botDance 0.55s ease-in-out infinite alternate;
}
@keyframes botDance {
  0% { transform: translateY(0) rotate(-3deg); }
  100% { transform: translateY(-12px) rotate(3deg); }
}
.bot-antenna {
  width: 4px; height: 14px; background: var(--accent2); margin: 0 auto;
  border-radius: 2px; position: relative;
}
.bot-antenna::after {
  content: ""; position: absolute; top: -6px; left: 50%; transform: translateX(-50%);
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent3);
  box-shadow: 0 0 10px var(--accent3);
  animation: antennaBlink 0.8s ease-in-out infinite;
}
@keyframes antennaBlink {
  0%, 100% { opacity: 1; } 50% { opacity: .4; }
}
.bot-head {
  width: 56px; height: 44px; margin: 4px auto 0;
  background: linear-gradient(180deg, var(--surface2), var(--surface));
  border: 2px solid var(--accent); border-radius: 14px 14px 10px 10px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.bot-eye {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent2); box-shadow: 0 0 8px var(--accent2);
  animation: eyeBlink 2.5s infinite;
}
@keyframes eyeBlink {
  0%, 92%, 100% { transform: scaleY(1); }
  95% { transform: scaleY(.15); }
}
.bot-body {
  width: 48px; height: 36px; margin: 6px auto 0;
  background: var(--surface); border: 2px solid var(--border); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.bot-core {
  width: 16px; height: 16px; border-radius: 4px;
  background: linear-gradient(135deg, var(--accent), var(--accent3));
  animation: corePulse 0.6s ease-in-out infinite alternate;
}
@keyframes corePulse {
  0% { box-shadow: 0 0 8px var(--accent); }
  100% { box-shadow: 0 0 20px var(--accent2); transform: scale(1.1); }
}
.bot-arm, .bot-leg {
  position: absolute; width: 8px; background: var(--accent2); border-radius: 4px;
}
.bot-arm.left { left: 4px; top: 58px; height: 28px; transform-origin: top center; animation: armWaveL .5s ease-in-out infinite alternate; }
.bot-arm.right { right: 4px; top: 58px; height: 28px; transform-origin: top center; animation: armWaveR .5s ease-in-out infinite alternate; }
@keyframes armWaveL { 0% { transform: rotate(25deg); } 100% { transform: rotate(-15deg); } }
@keyframes armWaveR { 0% { transform: rotate(-25deg); } 100% { transform: rotate(15deg); } }
.bot-leg.left { left: 22px; bottom: 0; height: 22px; animation: legKickL .55s ease-in-out infinite alternate; }
.bot-leg.right { right: 22px; bottom: 0; height: 22px; animation: legKickR .55s ease-in-out infinite alternate; }
@keyframes legKickL { 0% { transform: rotate(-8deg); } 100% { transform: rotate(12deg); } }
@keyframes legKickR { 0% { transform: rotate(8deg); } 100% { transform: rotate(-12deg); } }
.scan-wand-trail {
  position: absolute; top: 20%; right: -20px; width: 80px; height: 4px;
  background: linear-gradient(90deg, transparent, var(--accent3), #fbbf24, transparent);
  border-radius: 2px; transform: rotate(-35deg);
  animation: wandSweep 1.2s ease-in-out infinite;
  box-shadow: 0 0 16px rgba(251,191,36,.6);
}
@keyframes wandSweep {
  0%, 100% { opacity: .3; transform: rotate(-35deg) scaleX(.6); }
  50% { opacity: 1; transform: rotate(-25deg) scaleX(1.2); }
}
.scan-overlay-title {
  position: relative; z-index: 2; margin: 0;
  font-size: 1.35rem; font-weight: 800;
  background: linear-gradient(90deg, var(--accent3), #fbbf24, var(--accent2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  animation: titleShimmer 2s ease-in-out infinite;
}
@keyframes titleShimmer {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.25); }
}
.scan-overlay-target {
  position: relative; z-index: 2; margin: .5rem 0 0; color: var(--muted); font-size: .95rem;
}
.scan-overlay-target strong { color: var(--text); }
.scan-overlay-hint {
  position: relative; z-index: 2; margin: .35rem 0 0;
  font-size: .78rem; color: var(--accent2); letter-spacing: .06em;
  animation: hintPulse 1.5s ease-in-out infinite;
}
@keyframes hintPulse { 0%, 100% { opacity: .6; } 50% { opacity: 1; } }
.btn.is-launching { pointer-events: none; opacity: .7; }
