:root {
  --bg: #06060b;
  --bg2: #0d0d17;
  --bg3: #151522;
  --border: #1f1f30;
  --border-strong: #2c2c44;
  --text: #f3f3f9;
  --muted: #9494ae;
  --accent: #8b5cf6;
  --accent2: #a855f7;
  --accent3: #d946ef;
  --accent-glow: rgba(139, 92, 246, 0.25);
  --green: #34d399;
  --red: #fb7185;
  --orange: #fbbf24;
  --yellow: #facc15;
  --blue: #60a5fa;
  --cyan: #22d3ee;
  --radius: 12px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background-image:
    radial-gradient(1100px 520px at 50% -220px, rgba(139, 92, 246, 0.16), transparent 70%),
    radial-gradient(800px 400px at 85% -100px, rgba(217, 70, 239, 0.08), transparent 60%);
  background-repeat: no-repeat;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 10, 15, 0.97);
  border-bottom: 1px solid var(--border);
  padding: 0.7rem 1.5rem;
}
.nav-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text);
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 1.6rem; height: 1.6rem;
  border-radius: 6px;
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.4);
  flex-shrink: 0;
  display: block;
}
.nav-links { display: flex; align-items: center; gap: 1.1rem; }
.nav-links a { color: var(--muted); font-size: 0.95rem; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-links a.btn-primary { color: #fff; }
.nav-links a.btn-primary:hover { color: #fff; }

.container { max-width: 1000px; margin: 2rem auto; padding: 0 1.5rem; flex: 1; width: 100%; }

.footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
  padding: 2.5rem 1.5rem 1.5rem;
  font-size: 0.85rem;
  margin-top: 3rem;
}
.footer-inner {
  max-width: 1000px; margin: 0 auto;
  display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
}
.footer-brand { max-width: 340px; }
.footer-brand p { margin: 0.5rem 0 0; font-size: 0.85rem; }
.footer-links { display: flex; flex-direction: column; gap: 0.4rem; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--text); }
.footer-bottom { max-width: 1000px; margin: 2rem auto 0; padding-top: 1rem; border-top: 1px solid var(--border); text-align: center; }

/* ---------- landing sections ---------- */
.stats-bar {
  display: flex; justify-content: center; gap: 3.5rem; flex-wrap: wrap;
  margin: 2.5rem 0; padding: 1.5rem 0;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.stat { text-align: center; }
.stat .num { font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; letter-spacing: -0.02em; }
.stat .num .grad { background: linear-gradient(105deg, #a78bfa, #d946ef); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat .lbl { color: var(--muted); font-size: 0.82rem; }
.section-head { text-align: center; max-width: 640px; margin: 3.5rem auto 2rem; }
.section-head h2 { font-size: 2rem; font-weight: 700; letter-spacing: -0.03em; margin-bottom: 0.5rem; }
.section-head p { color: var(--muted); font-size: 1.05rem; margin: 0; }
.feature-icon {
  width: 2.4rem; height: 2.4rem; border-radius: 8px; margin-bottom: 1rem;
  display: flex; align-items: center; justify-content: center; color: var(--accent2);
  background: linear-gradient(135deg, rgba(139,92,246,0.18), rgba(217,70,239,0.12));
  border: 1px solid var(--border-strong);
}
.feature-icon svg { width: 1.2rem; height: 1.2rem; }
.report-preview {
  background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; margin: 0 auto; max-width: 720px;
  box-shadow: 0 20px 60px -20px rgba(0,0,0,0.7);
}
.report-preview .rp-head {
  display: flex; align-items: center; gap: 0.5rem; padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--border); font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted);
}
.rp-dot { width: 0.7rem; height: 0.7rem; border-radius: 50%; }
.cta-band {
  text-align: center; padding: 3.5rem 1.5rem; margin-top: 3.5rem;
  border: 1px solid var(--border-strong); border-radius: var(--radius);
  background: radial-gradient(600px 300px at 50% 0%, rgba(139, 92, 246, 0.12), transparent 70%);
}
.cta-band h2 { font-size: 1.9rem; margin-bottom: 0.5rem; }
.cta-band p { color: var(--muted); margin-bottom: 1.5rem; }

/* ---------- checkboxes + action dropdown ---------- */
input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 1.1rem; height: 1.1rem;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  background: var(--bg);
  cursor: pointer;
  position: relative;
  vertical-align: middle;
  transition: background 0.15s ease, border-color 0.15s ease;
}
input[type="checkbox"]:hover { border-color: var(--accent); }
input[type="checkbox"]:checked {
  background: linear-gradient(135deg, var(--accent), var(--accent3));
  border-color: var(--accent3);
}
input[type="checkbox"]:checked::after {
  content: "";
  position: absolute; left: 0.35rem; top: 0.08rem;
  width: 0.27rem; height: 0.52rem;
  border: solid #fff; border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.target-menu { position: relative; display: inline-block; }
.target-menu summary {
  list-style: none; cursor: pointer; user-select: none;
  display: inline-block; padding: 0.5rem 0.9rem; border-radius: 8px;
  background: var(--bg); color: var(--text); border: 1px solid var(--border-strong);
  font-size: 0.85rem;
}
.target-menu summary::-webkit-details-marker { display: none; }
.target-menu summary:hover { border-color: var(--accent); }
.target-menu-items {
  position: absolute; right: 0; top: calc(100% + 0.3rem);
  background: var(--bg3); border: 1px solid var(--border-strong);
  border-radius: 8px; padding: 0.35rem; min-width: 12rem; z-index: 30;
  display: flex; flex-direction: column; gap: 0.15rem;
  box-shadow: 0 12px 30px -8px rgba(0,0,0,0.6);
}
.target-menu-items form { margin: 0; }
.target-menu-items button {
  width: 100%; text-align: left; background: none; border: none;
  color: var(--text); padding: 0.45rem 0.7rem; border-radius: 6px;
  cursor: pointer; font-size: 0.88rem; font-family: inherit;
}
.target-menu-items button:hover { background: var(--bg2); }
.target-menu-items button.danger { color: var(--red); }
.target-menu.catalog-menu { display: block; margin-bottom: 0.5rem; }
.target-menu.catalog-menu summary { width: 100%; text-align: left; }
.catalog-list { position: static; width: 100%; max-height: 20rem; overflow-y: auto; }
.catalog-item {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.4rem 0.6rem; border-radius: 6px; cursor: pointer;
  font-size: 0.9rem;
}
.catalog-item:hover { background: var(--bg2); }

/* ---------- typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -0.02em; }
h1 { font-size: 1.9rem; margin-bottom: 0.75rem; font-weight: 700; }
h2 { font-size: 1.3rem; margin: 1.75rem 0 0.75rem; font-weight: 600; }
h3 { font-size: 1.05rem; margin: 1.25rem 0 0.5rem; font-weight: 600; }
p { margin-bottom: 0.75rem; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }

code, pre {
  font-family: var(--font-mono);
  font-size: 0.84rem;
}
code { background: var(--bg3); padding: 0.12rem 0.4rem; border-radius: 5px; border: 1px solid var(--border); }
pre {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  overflow-x: auto;
  margin: 0.75rem 0;
}

/* ---------- buttons ---------- */
.btn-primary {
  display: inline-block;
  background: linear-gradient(120deg, #7c3aed, #a855f7 50%, #d946ef);
  color: #fff;
  font-weight: 600;
  padding: 0.6rem 1.25rem;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1.4;
  text-align: center;
  white-space: nowrap;
  appearance: none;
  -webkit-appearance: none;
  box-shadow: 0 1px 0 rgba(255,255,255,0.08) inset, 0 6px 20px -6px rgba(139, 92, 246, 0.5);
  transition: transform 0.12s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.btn-primary:hover {
  text-decoration: none;
  filter: brightness(1.08);
  box-shadow: 0 1px 0 rgba(255,255,255,0.1) inset, 0 10px 28px -6px rgba(217, 70, 239, 0.55);
  transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); }
button.btn-primary, button.btn-ghost { font: inherit; }

.btn-ghost {
  display: inline-block;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--text);
  padding: 0.55rem 1.15rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.15s ease;
}
.btn-ghost:hover { border-color: var(--accent); text-decoration: none; }

.btn-lg { padding: 0.75rem 1.5rem; font-size: 1.05rem; }

.link-btn {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.95rem;
  font-family: inherit;
  padding: 0;
}
.link-btn:hover { color: var(--text); }

/* ---------- cards ---------- */
.card {
  background: linear-gradient(180deg, var(--bg2), var(--bg));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1rem;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 8px 30px -12px rgba(139, 92, 246, 0.18);
}

/* ---------- progress bar ---------- */
.progress-track {
  width: 100%; height: 12px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #a78bfa);
  border-radius: 999px;
  transition: width 0.5s ease;
}
.progress-label {
  display: flex; justify-content: space-between;
  margin-top: 0.6rem;
  font-size: 0.9rem;
}
#progress-stage { color: var(--text); font-weight: 600; }
#progress-pct { color: var(--accent); font-variant-numeric: tabular-nums; }

.auth-box { max-width: 400px; margin: 3rem auto; }
.auth-box h1 { font-size: 1.4rem; }

/* ---------- forms ---------- */
label { display: block; margin: 1rem 0 0.35rem; font-size: 0.9rem; color: var(--muted); font-weight: 500; }
input[type="text"], input[type="email"], input[type="password"], input[type="url"] {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 0.6rem 0.75rem;
  color: var(--text);
  font-size: 0.95rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.inline { display: inline; }

/* ---------- flash ---------- */
.flash {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  border: 1px solid;
}
.flash-error { background: rgba(248, 113, 113, 0.1); border-color: rgba(248, 113, 113, 0.35); color: #fca5a5; }
.flash-success { background: rgba(52, 211, 153, 0.1); border-color: rgba(52, 211, 153, 0.35); color: #6ee7b7; }

/* ---------- table ---------- */
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 0.65rem 0.75rem; border-bottom: 1px solid var(--border); }
th { color: var(--muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }
tbody tr:hover { background: var(--bg2); }

/* ---------- badges ---------- */
.badge {
  display: inline-block;
  padding: 0.18rem 0.55rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid;
}
.badge-queued { background: rgba(135, 148, 165, 0.12); color: var(--muted); border-color: var(--border-strong); }
.badge-running { background: rgba(96, 165, 250, 0.12); color: var(--blue); border-color: rgba(96, 165, 250, 0.3); }
.badge-completed { background: rgba(52, 211, 153, 0.12); color: var(--green); border-color: rgba(52, 211, 153, 0.3); }
.badge-failed { background: rgba(248, 113, 113, 0.12); color: var(--red); border-color: rgba(248, 113, 113, 0.3); }

/* ---------- hero ---------- */
.hero { text-align: center; padding: 5.5rem 0 3rem; position: relative; }
.hero h1 {
  font-family: var(--font-display);
  font-size: 3.4rem;
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 700;
}
.hero h1 .grad {
  background: linear-gradient(105deg, #a78bfa, #d946ef 60%, #f0abfc);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--bg3);
  border: 1px solid var(--border-strong);
  color: var(--muted);
  padding: 0.3rem 0.9rem;
  border-radius: 20px;
  font-size: 0.8rem;
  margin-bottom: 1.5rem;
}
.hero-badge .dot {
  width: 0.45rem; height: 0.45rem;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px #34d399;
  animation: dot-blink 1.6s ease-in-out infinite;
}
@keyframes dot-blink {
  0%, 100% { opacity: 1; box-shadow: 0 0 9px #34d399; }
  50% { opacity: 0.2; box-shadow: 0 0 1px #34d399; }
}
.hero-sub { color: var(--muted); font-size: 1.15rem; max-width: 640px; margin: 1rem auto 2rem; }
.hero-cta { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin: 1rem 0 2.5rem; }
.step {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  position: relative;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.step:hover { border-color: var(--accent3); transform: translateY(-2px); }
.step-num {
  width: 2rem; height: 2rem;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--accent3));
  color: #fff;
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}
.step h3 { margin: 0 0 0.4rem; font-size: 1rem; }
.step p { color: var(--muted); font-size: 0.87rem; margin: 0; }

/* ---------- features ---------- */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin: 2rem 0; }
.feature {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  transition: border-color 0.15s ease;
}
.feature:hover { border-color: var(--border-strong); }
.feature h3 { margin-top: 0; font-size: 1.05rem; }
.feature p { color: var(--muted); font-size: 0.9rem; margin: 0; }

/* ---------- report view ---------- */
.report-head { margin-bottom: 1.5rem; }
.report-meta { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 0.9rem; }
.report-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.report-actions .btn {
  background: var(--bg3);
  border: 1px solid var(--border-strong);
  color: var(--text);
  padding: 0.45rem 0.95rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  transition: border-color 0.15s ease;
}
.report-actions .btn:hover { border-color: var(--accent); text-decoration: none; }

.summary-bar { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.sev-pill {
  padding: 0.32rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid;
}
.sev-critical { background: rgba(248,113,113,0.12); color: #fca5a5; border-color: rgba(248,113,113,0.3); }
.sev-high { background: rgba(251,191,36,0.12); color: #fcd34d; border-color: rgba(251,191,36,0.3); }
.sev-medium { background: rgba(250,204,21,0.1); color: #fde047; border-color: rgba(250,204,21,0.3); }
.sev-low { background: rgba(96,165,250,0.12); color: #93c5fd; border-color: rgba(96,165,250,0.3); }
.sev-informational { background: rgba(135,148,165,0.12); color: var(--muted); border-color: var(--border-strong); }

.sev-head { display: flex; align-items: center; gap: 0.5rem; margin: 1.75rem 0 0.7rem; font-size: 1.2rem; font-weight: 700; }
.sev-count { background: var(--bg3); border-radius: 20px; padding: 0.1rem 0.6rem; font-size: 0.82rem; color: var(--muted); }
.sev-text-critical { color: #fca5a5; }
.sev-text-high { color: #fcd34d; }
.sev-text-medium { color: #fde047; }
.sev-text-low { color: #93c5fd; }
.sev-text-informational { color: var(--muted); }

.finding {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--border);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  margin-bottom: 0.6rem;
  transition: border-color 0.15s ease;
}
.finding:hover { border-color: var(--border-strong); }
.finding-top { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.finding-rule { font-weight: 650; }
.finding-tool { color: var(--muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; }
.finding-loc { margin: 0.3rem 0; }
.finding-loc code { font-size: 0.8rem; }
.finding-msg { color: var(--muted); font-size: 0.9rem; }

.sev-badge {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.12rem 0.5rem;
  border-radius: 4px;
  letter-spacing: 0.04em;
}
.sev-badge.sev-critical { background: var(--red); color: #1a0505; }
.sev-badge.sev-high { background: var(--orange); color: #1a1200; }
.sev-badge.sev-medium { background: var(--yellow); color: #1a1400; }
.sev-badge.sev-low { background: var(--blue); color: #050d1a; }
.sev-badge.sev-informational { background: var(--bg3); color: var(--muted); }
.finding:has(.sev-critical) { border-left-color: var(--red); }
.finding:has(.sev-high) { border-left-color: var(--orange); }
.finding:has(.sev-medium) { border-left-color: var(--yellow); }
.finding:has(.sev-low) { border-left-color: var(--blue); }

/* ---------- verdict + PoC ---------- */
.report-legend { margin-bottom: 1rem; }
.verdict {
  font-size: 0.66rem;
  font-weight: 800;
  padding: 0.12rem 0.45rem;
  border-radius: 4px;
  letter-spacing: 0.04em;
  border: 1px solid transparent;
}
.verdict-verified { background: rgba(52,211,153,0.14); color: var(--green); border-color: rgba(52,211,153,0.35); }
.verdict-likely { background: rgba(96,165,250,0.12); color: var(--blue); border-color: rgba(96,165,250,0.3); }
.verdict-unverified { background: rgba(251,191,36,0.12); color: var(--orange); border-color: rgba(251,191,36,0.3); }
.finding-evidence, .finding-impact, .finding-fix {
  font-size: 0.86rem;
  margin-top: 0.45rem;
  color: var(--muted);
}
.finding-impact { color: var(--text); }
.finding-fix { color: var(--green); }
.finding-evidence .k, .finding-impact .k, .finding-fix .k, .poc-expected .k {
  font-weight: 700;
  color: var(--text);
}
.poc {
  margin-top: 0.7rem;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.poc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.45rem 0.7rem;
  border-bottom: 1px solid var(--border);
}
.poc-title { font-size: 0.85rem; font-weight: 650; }
.poc-copy { font-size: 0.72rem; padding: 0.2rem 0.55rem; }
.poc-code {
  margin: 0;
  padding: 0.7rem 0.85rem;
  overflow-x: auto;
  font-size: 0.78rem;
  line-height: 1.5;
  color: #c7d2fe;
  background: #0d0d18;
  white-space: pre;
  tab-size: 2;
}
.poc-steps { margin: 0; padding: 0.7rem 0.85rem 0.7rem 2rem; font-size: 0.84rem; }
.poc-steps li { margin: 0.2rem 0; }
.poc-expected {
  padding: 0.5rem 0.85rem;
  font-size: 0.8rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

/* ---------- misc ---------- */
.qr-box { text-align: center; margin: 1rem 0; }
.qr-box img { background: #fff; padding: 0.75rem; border-radius: 10px; }

/* ---------- responsive / mobile ---------- */

code { overflow-wrap: anywhere; }

pre, .poc-code { max-width: 100%; -webkit-overflow-scrolling: touch; }

.hero h1 { font-size: clamp(2.1rem, 5vw, 3rem); }

.nav-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 42px;
  height: 42px;
  padding: 0 10px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--bg2);
  cursor: pointer;
}
.nav-burger span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle:checked ~ .nav-burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle:checked ~ .nav-burger span:nth-child(2) { opacity: 0; }
.nav-toggle:checked ~ .nav-burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 720px) {
  .nav { padding: 0.6rem 1rem; }
  .nav-inner { flex-wrap: wrap; }
  .nav-burger { display: flex; margin-left: auto; }
  .nav-links {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-top: 0.7rem;
    padding-top: 0.4rem;
    border-top: 1px solid var(--border);
  }
  .nav-toggle:checked ~ .nav-links { display: flex; }
  .nav-links a, .nav-links .link-btn {
    padding: 0.65rem 0;
    font-size: 1rem;
    text-align: left;
  }
  .nav-links .btn-primary { display: block; text-align: center; margin-top: 0.5rem; }

  .hero { padding: 2.5rem 0 2rem; }
  .hero h1 { font-size: 2rem; }
  .hero-sub { font-size: 1rem; margin: 0.75rem auto 1.5rem; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
  .btn-lg { padding: 0.7rem 1.25rem; font-size: 1rem; }

  .container { padding: 0 1rem; margin: 1.25rem auto; }
  h1 { font-size: 1.6rem; }
  .auth-box { margin: 1.5rem auto; }
}

@media (max-width: 640px) {
  input[type="text"], input[type="email"], input[type="password"], input[type="url"] { font-size: 16px; }
  .btn-primary, .btn-ghost { padding: 0.7rem 1.2rem; }

  /* dashboard table -> stacked cards */
  .reviews-table thead { display: none; }
  .reviews-table, .reviews-table tbody, .reviews-table tr, .reviews-table td { display: block; width: 100%; }
  .reviews-table tr {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-bottom: 0.75rem;
    padding: 0.35rem 0.85rem;
  }
  .reviews-table tbody tr:hover { background: var(--bg2); }
  .reviews-table td { border: none; padding: 0.45rem 0; }
  .reviews-table td::before {
    content: attr(data-label);
    display: block;
    color: var(--muted);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.15rem;
  }
  .reviews-table td.no-label::before { content: none; }
  .reviews-table td.no-label a { display: block; text-align: center; }
}

/* ---------- pricing / billing ---------- */
.credits-badge {
  background: var(--bg3);
  border: 1px solid var(--border-strong);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  white-space: nowrap;
}
.packages { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.package {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  position: relative;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.package:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.package-hot { border-color: var(--accent3); box-shadow: 0 0 24px var(--accent-glow); }
.package-tag {
  position: absolute;
  top: -0.6rem;
  right: 1rem;
  background: linear-gradient(135deg, var(--accent), var(--accent3));
  color: #fff;
  font-weight: 800;
  font-size: 0.7rem;
  padding: 0.15rem 0.6rem;
  border-radius: 20px;
}
.package-price { font-size: 2.2rem; font-weight: 800; letter-spacing: -0.02em; }
.package-price span { font-size: 1rem; color: var(--muted); font-weight: 600; }
.pay-box { max-width: 560px; margin: 0 auto; }
.pay-amount {
  text-align: center;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin: 1rem 0;
}
.pay-amount-label { display: block; color: var(--muted); font-size: 0.85rem; }
.pay-amount-value { font-size: 2.4rem; font-weight: 800; letter-spacing: -0.02em; color: var(--green); font-variant-numeric: tabular-nums; }
.pay-amount-cur { color: var(--muted); font-weight: 600; }
.pay-address { display: flex; align-items: center; gap: 0.6rem; }
.pay-address code { flex: 1; overflow-wrap: anywhere; word-break: break-all; }

@media (max-width: 640px) {
  .pay-address { flex-direction: column; align-items: stretch; }
  .package-price { font-size: 1.8rem; }
}

/* ---------- profile dropdown ---------- */
.profile { position: relative; }
.profile-toggle { position: absolute; opacity: 0; pointer-events: none; }
.profile-btn {
  display: flex; align-items: center; gap: 0.35rem;
  cursor: pointer;
  padding: 0.2rem;
  border-radius: 20px;
}
.profile-btn:hover { background: var(--bg3); }
.avatar {
  width: 1.7rem; height: 1.7rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent3));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.8rem;
  flex-shrink: 0;
}
.caret { color: var(--muted); font-size: 0.7rem; }
.profile-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  min-width: 210px;
  background: var(--bg2);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 0.4rem;
  z-index: 60;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}
.profile-toggle:checked ~ .profile-menu { display: block; }
.profile-menu-head {
  padding: 0.5rem 0.75rem 0.4rem;
  color: var(--muted);
  font-size: 0.78rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.3rem;
  overflow-wrap: anywhere;
}
.profile-menu a, .profile-menu .link-btn {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.5rem 0.75rem;
  color: var(--text);
  border-radius: 6px;
  font-size: 0.9rem;
}
.profile-menu a:hover { background: var(--bg3); text-decoration: none; }
.profile-menu .link-btn { color: var(--red); }
.profile-menu .link-btn:hover { background: rgba(248, 113, 113, 0.08); color: var(--red); }

@media (max-width: 720px) {
  .profile { width: 100%; }
  .profile-btn { justify-content: flex-start; padding: 0.65rem 0; width: 100%; }
  .profile-menu {
    position: static;
    box-shadow: none;
    border: none;
    border-left: 1px solid var(--border);
    margin: 0.25rem 0 0.5rem 0.5rem;
    min-width: 0;
  }
}

.check { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.9rem; color: var(--text); cursor: pointer; }
.check input {
  appearance: none;
  -webkit-appearance: none;
  width: 1.15rem;
  height: 1.15rem;
  margin: 0.1rem 0 0;
  flex-shrink: 0;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  background: var(--bg);
  cursor: pointer;
  position: relative;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.check input:hover { border-color: var(--accent); }
.check input:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--accent-glow); }
.check input:checked {
  background: linear-gradient(135deg, var(--accent), var(--accent3));
  border-color: var(--accent3);
}
.check input:checked::after {
  content: "";
  position: absolute;
  left: 0.38rem;
  top: 0.12rem;
  width: 0.28rem;
  height: 0.55rem;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.finding-feedback {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.8rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--border);
}
.finding-feedback .btn { padding: 0.25rem 0.6rem; font-size: 0.8rem; }

.miss-report { margin-top: 1.5rem; }
.miss-report > summary { cursor: pointer; font-weight: 700; color: var(--accent); }
.miss-form { display: flex; flex-direction: column; gap: 0.8rem; margin-top: 1rem; max-width: 720px; }
.miss-form label { display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.85rem; color: var(--muted); }
.miss-form textarea, .miss-form input, .miss-form select {
  background: var(--bg); color: var(--text); border: 1px solid var(--border-strong);
  border-radius: var(--radius); padding: 0.55rem 0.7rem; font: inherit;
}
.miss-row { display: flex; gap: 1rem; flex-wrap: wrap; }
.miss-row label { flex: 1; min-width: 180px; }
.miss-form .btn { align-self: flex-start; }
