:root {
  --bg: #0f1117;
  --bg2: #161a23;
  --card: #1b202b;
  --line: #2a3140;
  --text: #e9ecf2;
  --muted: #9aa3b5;
  --accent: #ff5a6e;
  --accent2: #7b5cff;
  --discord: #5865f2;
  --ok: #3ccf8e;
  --warn: #f5b13d;
  --radius: 14px;
  font-family: "Segoe UI", "Rubik", system-ui, -apple-system, Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { min-height: 100vh; display: flex; flex-direction: column;
  background: radial-gradient(1200px 500px at 85% -10%, rgba(123,92,255,.18), transparent 60%),
              radial-gradient(900px 400px at 0% 0%, rgba(255,90,110,.12), transparent 60%), var(--bg); }
a { color: #b9a8ff; text-decoration: none; }
a:hover { text-decoration: underline; }
code { background: #0b0d12; border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; font-size: .9em; direction: ltr; unicode-bidi: embed; }

.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 28px;
  border-bottom: 1px solid var(--line); background: rgba(15,17,23,.7); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 5; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 1.1rem; }
.brand:hover { text-decoration: none; }
.brand span { direction: ltr; unicode-bidi: isolate; }
.nav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.nav a { color: var(--muted); font-weight: 600; }
.nav a:hover { color: var(--text); text-decoration: none; }
.who { display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 600; }
.who img { width: 28px; height: 28px; border-radius: 50%; }
.who small { color: var(--muted); font-weight: 500; border: 1px solid var(--line); border-radius: 99px; padding: 1px 8px; }
.nav form { margin: 0; }
button.link { background: none; border: 0; color: var(--muted); cursor: pointer; font: inherit; font-weight: 600; padding: 0; }
button.link:hover { color: var(--accent); }

main { width: 100%; max-width: 960px; margin: 0 auto; padding: 36px 24px 60px; flex: 1; }
main.wide { max-width: 1180px; }
h1 { font-size: 2rem; margin: .2em 0 .4em; }
h2 { font-size: 1.2rem; margin: 2em 0 .7em; color: #cfd5e2; }
.hint { color: var(--muted); font-size: .92rem; }
.empty { color: var(--muted); padding: 28px; border: 1px dashed var(--line); border-radius: var(--radius); text-align: center; }
.alert { background: rgba(255,90,110,.12); border: 1px solid rgba(255,90,110,.45); color: #ffd3d9; padding: 12px 16px; border-radius: 10px; }
.note { background: rgba(123,92,255,.1); border: 1px solid rgba(123,92,255,.35); padding: 10px 14px; border-radius: 10px; color: #d8d0ff; }

.hero { text-align: center; padding: 48px 12px 28px; }
.hero.small { padding-top: 24px; }
.hero-logo { filter: drop-shadow(0 10px 30px rgba(255,90,110,.35)); }
.hero h1 { font-size: 3rem; letter-spacing: -.5px; margin-top: .3em; direction: ltr; }
.foot, .lead { unicode-bidi: plaintext; }
.lead { font-size: 1.2rem; color: #c8cede; max-width: 620px; margin: 0 auto 26px; line-height: 1.6; }
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 18px 0 10px; }

.btn { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--card); color: var(--text); font-weight: 700; cursor: pointer; transition: transform .12s, box-shadow .12s, background .12s; }
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.btn.primary { background: linear-gradient(135deg, var(--accent), var(--accent2)); border-color: transparent; color: #fff; }
.btn.discord { background: var(--discord); border-color: transparent; color: #fff; font-size: 1.05rem; padding: 14px 26px; }
.btn.big { font-size: 1.15rem; padding: 16px 30px; }
.btn.small { padding: 6px 12px; font-size: .9rem; border-radius: 9px; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-top: 30px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.card h3 { margin: 0 0 8px; font-size: 1.05rem; }
.card h3 small { color: var(--muted); font-weight: 500; font-size: .8rem; }
.card p { margin: 0; color: #c2c9d6; line-height: 1.55; }

.steps { text-align: right; max-width: 560px; margin: 24px auto 0; line-height: 1.9; color: #c8cede; }

.table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.table th, .table td { padding: 12px 14px; text-align: right; border-bottom: 1px solid var(--line); }
.table th { color: var(--muted); font-weight: 600; font-size: .88rem; background: var(--bg2); }
.table tr:last-child td { border-bottom: 0; }
.table.compact td { padding: 7px 14px; }
.mono { font-family: Consolas, monospace; font-size: .85rem; direction: ltr; text-align: left !important; color: var(--muted); }

.pill { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: .82rem; font-weight: 700; border: 1px solid var(--line); }
.pill.ok { color: var(--ok); border-color: rgba(60,207,142,.4); background: rgba(60,207,142,.08); }
.pill.warn { color: var(--warn); border-color: rgba(245,177,61,.4); background: rgba(245,177,61,.08); }
.pill.live { color: #fff; background: var(--accent); border-color: transparent; }
.pill.wait { color: #cfc6ff; border-color: rgba(123,92,255,.4); }
.pill.muted { color: var(--muted); }

.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; margin-top: 18px; }
.player audio { width: 100%; margin: 6px 0; }

.timeline { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.lane { display: grid; grid-template-columns: 170px 1fr; align-items: center; gap: 12px; margin-bottom: 10px; }
.lane-name { font-weight: 600; font-size: .92rem; }
.lane-name small { color: var(--muted); font-weight: 500; }
.lane-track { position: relative; height: 22px; background: #10141c; border-radius: 6px; overflow: hidden; }
.seg { position: absolute; top: 3px; bottom: 3px; border-radius: 3px; }
.seg.staff { background: #6c8cff; }
.seg.applicant { background: var(--accent); }
.axis { display: flex; justify-content: space-between; color: var(--muted); font-size: .8rem; margin-right: 182px; direction: ltr; flex-direction: row-reverse; }
.bar { display: inline-block; height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--accent2), var(--accent)); }
.consent { line-height: 1.9; color: #c8cede; }

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

/* access-code step */
.avatar-big { border-radius: 50%; border: 3px solid var(--line); }
.code-form { max-width: 460px; margin: 10px auto 0; display: flex; flex-direction: column; gap: 14px; text-align: right; }
.roles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.role-card { position: relative; cursor: pointer; }
.role-card input { position: absolute; opacity: 0; }
.role-body { display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: 12px; border: 2px solid var(--line); background: var(--card); transition: border-color .12s, background .12s; }
.role-body b { font-size: 1.1rem; }
.role-body small { color: var(--muted); }
.role-card input:checked + .role-body { border-color: var(--accent2); background: rgba(123,92,255,.12); }
.role-card input:focus-visible + .role-body { outline: 2px solid var(--accent); outline-offset: 2px; }
.role-card.disabled { cursor: not-allowed; opacity: .5; }
.code-label { font-weight: 700; margin-bottom: -6px; }
.code-input { padding: 14px; border-radius: 12px; border: 1px solid var(--line); background: #0b0d12; color: var(--text); font-size: 1.25rem; letter-spacing: 2px; text-align: center; direction: ltr; font-family: Consolas, monospace; text-transform: uppercase; }
.code-input:focus { outline: none; border-color: var(--accent2); box-shadow: 0 0 0 3px rgba(123,92,255,.25); }
.code-form .btn { justify-content: center; }

/* AI-detection results */
.score-card { display: flex; align-items: center; gap: 24px; padding: 22px 26px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); flex-wrap: wrap; }
.score-card.live { border-color: rgba(255,90,110,.6); background: linear-gradient(135deg, rgba(255,90,110,.14), var(--card) 60%); }
.score-card.warn { border-color: rgba(245,177,61,.55); background: linear-gradient(135deg, rgba(245,177,61,.12), var(--card) 60%); }
.score-card.ok { border-color: rgba(60,207,142,.5); background: linear-gradient(135deg, rgba(60,207,142,.1), var(--card) 60%); }
.score-num { font-size: 3.4rem; font-weight: 800; letter-spacing: -1px; direction: ltr; }
.score-card.live .score-num { color: var(--accent); } .score-card.warn .score-num { color: var(--warn); } .score-card.ok .score-num { color: var(--ok); }
.score-meta { flex: 1; min-width: 240px; }
.score-label { font-size: 1.4rem; font-weight: 800; }
.disclaimer { margin-top: 8px; color: #d8d0ff; font-weight: 600; }
form.inline { margin: 0; }
.analysis-empty { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.meter { height: 6px; background: #10141c; border-radius: 3px; overflow: hidden; margin: 8px 0; }
.meter span { display: block; height: 100%; background: linear-gradient(90deg, var(--ok), var(--warn), var(--accent)); background-size: 300px 100%; }
.qas { display: flex; flex-direction: column; gap: 10px; }
.qa { background: var(--card); border: 1px solid var(--line); border-right: 4px solid var(--line); border-radius: 12px; padding: 12px 16px; }
.qa.live { border-right-color: var(--accent); } .qa.warn { border-right-color: var(--warn); } .qa.ok { border-right-color: var(--ok); }
.qa-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: var(--muted); font-size: .88rem; }
.qa-n { font-weight: 800; color: var(--text); } .qa-score { margin-right: auto; }
.qa-q { color: var(--muted); margin: 6px 0 4px; }
.qa-a { line-height: 1.7; }
.signal-head { display: flex; justify-content: space-between; align-items: center; }
.evidence { margin: 8px 0 0; padding-right: 18px; color: #c8cede; line-height: 1.6; }
.evidence li { margin-bottom: 8px; }
.ev-time { font-family: Consolas, monospace; color: var(--accent2); font-size: .85rem; }
.ev-quote { color: var(--muted); font-size: .9rem; margin-top: 2px; }
.transcript { max-height: 520px; overflow-y: auto; }
.tline { display: grid; grid-template-columns: 54px 120px 1fr; gap: 10px; padding: 6px 4px; border-bottom: 1px solid rgba(42,49,64,.5); }
.tline:last-child { border-bottom: 0; }
.t-time { font-family: Consolas, monospace; color: var(--muted); font-size: .85rem; direction: ltr; }
.t-who { font-weight: 700; font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tline.staff .t-who { color: #8fa6ff; } .tline.applicant .t-who { color: var(--accent); }
.t-text { line-height: 1.6; }

/* ---- Yuval Dora branding ---- */
.brand .avatar { position: relative; display: inline-block; width: 38px; height: 38px; }
.brand .avatar img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover;
  box-shadow: 0 0 0 2px #0f1117, 0 0 0 4px #ff5a6e; }
.badge16 { position: absolute; bottom: -6px; left: -8px; font-size: .62rem; font-weight: 800; line-height: 1;
  padding: 3px 5px; border-radius: 999px; color: #fff; direction: ltr;
  background: linear-gradient(135deg, #ff5a6e, #7b5cff); box-shadow: 0 0 0 2px #0f1117; }
.badge16.big { font-size: 1.05rem; padding: 6px 11px; bottom: 2px; left: -6px; box-shadow: 0 0 0 4px #0f1117; }
.brand-name { direction: ltr; unicode-bidi: isolate; font-size: 1.2rem; letter-spacing: .3px;
  background: linear-gradient(90deg, #ffd166, #ff8fa3 55%, #b69cff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-avatar { position: relative; display: inline-block; width: 148px; height: 148px; border-radius: 50%; padding: 5px;
  background: conic-gradient(from 200deg, #ffd166, #ff5a6e, #7b5cff, #4cc9f0, #ffd166);
  box-shadow: 0 18px 60px rgba(255, 90, 110, .35), 0 0 0 1px rgba(255,255,255,.06); animation: floaty 6s ease-in-out infinite; }
.hero-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; border: 4px solid #0f1117; box-sizing: border-box; }
.hero .hero-title { font-size: 3.4rem; margin: .35em 0 0; direction: ltr; letter-spacing: -.5px;
  background: linear-gradient(90deg, #ffd166, #ff8fa3 50%, #b69cff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-kicker { margin: .2em 0 .6em; color: #c9b6ff; font-weight: 600; letter-spacing: .2px; }
@keyframes floaty { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-6px) } }
@media (prefers-reduced-motion: reduce) { .hero-avatar { animation: none } }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.nav .rec-link { color: #fff; background: linear-gradient(135deg, #ff5a6e, #7b5cff); padding: 6px 12px; border-radius: 999px; font-weight: 700; }
.nav .rec-link:hover { text-decoration: none; filter: brightness(1.1); }

/* signal cards: "not enough data" state + reliability line */
.signal.nodata { opacity: .72; }
.signal.nodata .signal-head h3 { color: var(--muted); }
.sig-rel { margin-top: 6px; font-size: .85rem; color: var(--muted); }
.tip { background: rgba(123,92,255,.12); border: 1px solid rgba(123,92,255,.4); padding: 12px 16px; border-radius: 10px; margin: 0 0 14px; line-height: 1.6; }
