:root {
  --bg: #0a0612;
  --panel: rgba(255, 255, 255, 0.045);
  --panel-2: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);
  --text: #f4eefb;
  --muted: #a99bbd;
  --dim: #6f6385;
  --rose: #ff4f8b;
  --violet: #8b5cf6;
  --amber: #ffb35c;
  --mint: #4ade9f;
  --sky: #60a5fa;
  --grad: linear-gradient(120deg, #ff4f8b 0%, #c04cf2 50%, #7c5cff 100%);
  --radius: 18px;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.6);
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: Inter, system-ui, sans-serif; font-size: 15px; line-height: 1.55; }
h1, h2, h3, h4, .brand, .num { font-family: Outfit, Inter, sans-serif; letter-spacing: -0.01em; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
.hidden { display: none !important; }

/* background */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; filter: blur(110px); opacity: 0.35; animation: float 22s ease-in-out infinite alternate; }
.b1 { width: 520px; height: 520px; background: #ff4f8b; top: -160px; left: -120px; }
.b2 { width: 600px; height: 600px; background: #6d3bff; top: 30%; right: -220px; animation-delay: -6s; }
.b3 { width: 420px; height: 420px; background: #ff9f43; bottom: -200px; left: 30%; opacity: 0.18; animation-delay: -12s; }
@keyframes float { to { transform: translate(60px, 40px) scale(1.1); } }

/* top bar */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 28px; padding: 14px 32px; backdrop-filter: blur(18px); background: rgba(10, 6, 18, 0.65); border-bottom: 1px solid var(--border); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 22px; }
.logo { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--grad); font-size: 19px; box-shadow: 0 6px 24px -6px #ff4f8b; }
.nav { display: flex; gap: 6px; flex: 1; }
.nav a { padding: 8px 14px; border-radius: 10px; color: var(--muted); font-weight: 500; transition: 0.2s; }
.nav a:hover { color: var(--text); background: var(--panel); }
.nav a.active { color: var(--text); background: var(--panel-2); }
.space-switch { display: flex; padding: 4px; border-radius: 12px; background: var(--panel); border: 1px solid var(--border); }
.space-switch button { border: 0; background: none; padding: 6px 14px; border-radius: 9px; cursor: pointer; color: var(--muted); font-weight: 600; }
.space-switch button.on { background: var(--grad); color: white; }

.container { max-width: 1240px; margin: 0 auto; padding: 32px 28px 60px; min-height: 70vh; }
.footer { text-align: center; color: var(--dim); font-size: 13px; padding: 30px; border-top: 1px solid var(--border); }

/* job bar */
.jobbar { position: sticky; top: 65px; z-index: 15; margin: 0 auto; max-width: 1240px; padding: 10px 28px; }
.jobbar .inner { display: flex; align-items: center; gap: 14px; padding: 10px 16px; border-radius: 14px; background: rgba(139, 92, 246, 0.15); border: 1px solid rgba(139, 92, 246, 0.35); backdrop-filter: blur(12px); font-size: 14px; }
.progress { flex: 1; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--grad); transition: width 0.4s; }

/* generic */
.card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; backdrop-filter: blur(10px); }
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.row { display: flex; align-items: center; gap: 12px; }
.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.small { font-size: 13px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
h1 { font-size: 54px; line-height: 1.05; margin: 0 0 16px; font-weight: 800; }
h2 { font-size: 30px; margin: 0 0 14px; }
h3 { font-size: 18px; margin: 0 0 12px; }
.section-title { display: flex; align-items: center; gap: 10px; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; font-weight: 600; }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 12px; border: 1px solid var(--border); background: var(--panel-2); cursor: pointer; font-weight: 600; transition: 0.2s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); background: rgba(255, 255, 255, 0.11); }
.btn.primary { background: var(--grad); border: 0; color: #fff; box-shadow: 0 10px 30px -10px #ff4f8b; }
.btn.primary:hover { box-shadow: 0 14px 36px -10px #ff4f8b; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn.sm { padding: 7px 12px; font-size: 13px; border-radius: 10px; }

input, select, textarea { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); background: rgba(0, 0, 0, 0.3); outline: none; transition: 0.2s; }
input:focus, select:focus, textarea:focus { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2); }
select option { background: #1a1226; }
label { display: block; font-size: 13px; color: var(--muted); margin: 0 0 6px; font-weight: 500; }
.field { margin-bottom: 14px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); }
.check input { width: auto; margin-top: 3px; }

.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--border); font-size: 13px; }
.chip.rose { background: rgba(255, 79, 139, 0.13); border-color: rgba(255, 79, 139, 0.3); }
.chip.violet { background: rgba(139, 92, 246, 0.14); border-color: rgba(139, 92, 246, 0.32); }
.chip.amber { background: rgba(255, 179, 92, 0.12); border-color: rgba(255, 179, 92, 0.3); }
.chip.mint { background: rgba(74, 222, 159, 0.12); border-color: rgba(74, 222, 159, 0.3); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.src { font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 2px 7px; border-radius: 6px; }
.src.linkedin { background: rgba(10, 102, 194, 0.3); color: #8cc4ff; }
.src.instagram { background: rgba(225, 48, 108, 0.25); color: #ff9cc0; }
.src.both { background: rgba(139, 92, 246, 0.25); color: #c9b6ff; }

.badge { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.05em; }
.badge.ready { background: rgba(74, 222, 159, 0.15); color: var(--mint); }
.badge.analyzing, .badge.queued, .badge.live, .badge.debrief { background: rgba(255, 179, 92, 0.15); color: var(--amber); }
.badge.error, .badge.abandoned { background: rgba(255, 79, 79, 0.15); color: #ff8080; }
.badge.done { background: rgba(96, 165, 250, 0.15); color: var(--sky); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); display: inline-block; animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { opacity: 0.3; transform: scale(0.7); } }

.avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; display: grid; place-items: center; font-weight: 700; font-family: Outfit; color: #fff; border: 2px solid rgba(255, 255, 255, 0.12); }
.avatar.lg { width: 120px; height: 120px; font-size: 40px; border-width: 3px; }
.avatar.md { width: 64px; height: 64px; font-size: 22px; }
.avatar.sm { width: 30px; height: 30px; font-size: 12px; border-width: 1px; }

/* hero */
.hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: center; padding: 30px 0 40px; }
.hero p.lead { font-size: 19px; color: var(--muted); max-width: 560px; }
.stats { display: flex; gap: 28px; margin-top: 30px; }
.stat .num { font-size: 36px; font-weight: 800; }
.stat .lbl { color: var(--muted); font-size: 13px; }
.pipeline { display: grid; gap: 12px; }
.pipe { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 16px; background: var(--panel); border: 1px solid var(--border); animation: rise 0.6s both; }
.pipe .ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; background: var(--panel-2); flex: none; }
.pipe b { display: block; font-family: Outfit; font-size: 16px; }
.pipe span { color: var(--muted); font-size: 13px; }
.arrow { text-align: center; color: var(--dim); font-size: 14px; margin: -6px 0; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }

/* people grid */
.pcard { display: flex; flex-direction: column; gap: 12px; transition: 0.25s; cursor: pointer; position: relative; overflow: hidden; }
.pcard:hover { transform: translateY(-4px); border-color: rgba(255, 79, 139, 0.4); box-shadow: var(--shadow); }
.pcard .one { color: var(--muted); font-size: 13.5px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; min-height: 3.6em; }
.pcard h3 { margin: 0; font-size: 17px; }

/* profile */
.profile-head { display: grid; grid-template-columns: auto 1fr auto; gap: 26px; align-items: center; }
.profile-head h1 { font-size: 42px; margin: 0 0 4px; }
.oneliner { font-size: 19px; font-family: Outfit; margin: 10px 0 0; }
.layout { display: grid; grid-template-columns: 1fr 340px; gap: 22px; margin-top: 22px; align-items: start; }
.need { padding: 16px; border-radius: 14px; background: rgba(0, 0, 0, 0.22); border: 1px solid var(--border); }
.need b { font-family: Outfit; font-size: 16px; display: block; margin-bottom: 4px; }
.evidence { margin-top: 8px; font-size: 12.5px; color: var(--dim); display: flex; gap: 8px; align-items: baseline; }
.evidence i { color: var(--muted); }
.item { padding: 11px 13px; border-radius: 12px; background: rgba(0, 0, 0, 0.2); border: 1px solid var(--border); }
.item b { font-weight: 600; }
.bars .bar { display: grid; grid-template-columns: 150px 1fr 36px; gap: 10px; align-items: center; margin-bottom: 9px; font-size: 13px; color: var(--muted); }
.bars .track { height: 8px; border-radius: 8px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.bars .track i { display: block; height: 100%; background: var(--grad); border-radius: 8px; animation: grow 1s both; transform-origin: left; }
@keyframes grow { from { transform: scaleX(0); } }
.photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.photos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
.terminal { font-family: ui-monospace, 'Cascadia Code', Consolas, monospace; font-size: 12.5px; background: rgba(0, 0, 0, 0.45); border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; max-height: 420px; overflow: auto; }
.terminal div { padding: 3px 0; animation: rise 0.3s both; display: flex; gap: 10px; }
.terminal .t { color: var(--dim); flex: none; }
.terminal .ok { color: var(--mint); }
.terminal .warn { color: var(--amber); }
.terminal .error { color: #ff7a7a; }
.terminal .note { color: #d6c8ff; }
.terminal .done { color: var(--rose); font-weight: 700; }
.quote { font-size: 15px; font-style: italic; color: #e8dcff; border-left: 3px solid var(--rose); padding: 4px 0 4px 14px; margin: 0; }
details summary { cursor: pointer; color: var(--muted); }
pre.raw { white-space: pre-wrap; word-break: break-word; font-size: 12px; background: rgba(0, 0, 0, 0.35); padding: 12px; border-radius: 12px; max-height: 360px; overflow: auto; }

/* dates */
.dcard { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; cursor: pointer; transition: 0.2s; }
.dcard:hover { border-color: rgba(255, 79, 139, 0.4); transform: translateY(-2px); }
.pair { display: flex; }
.pair .avatar:last-child { margin-left: -14px; }
.score { font-family: Outfit; font-weight: 800; font-size: 28px; text-align: right; }
.score small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); letter-spacing: 0.05em; text-transform: uppercase; }
.heart { color: var(--rose); }

.theatre { max-width: 860px; margin: 0 auto; }
.venue { text-align: center; padding: 26px; border-radius: var(--radius); background: linear-gradient(135deg, rgba(255, 79, 139, 0.14), rgba(124, 92, 255, 0.14)); border: 1px solid var(--border); }
.venue .pair .avatar { width: 72px; height: 72px; font-size: 24px; }
.venue .pair { justify-content: center; margin-bottom: 12px; }
.venue h2 { margin: 6px 0; }
.chat { display: flex; flex-direction: column; gap: 14px; margin: 26px 0; }
.msg { display: flex; gap: 10px; max-width: 78%; animation: rise 0.45s both; }
.msg .bubble { padding: 12px 16px; border-radius: 18px; background: var(--panel-2); border: 1px solid var(--border); }
.msg .who { font-size: 12px; color: var(--muted); margin-bottom: 3px; font-weight: 600; }
.msg.right { align-self: flex-end; flex-direction: row-reverse; }
.msg.right .bubble { background: linear-gradient(135deg, rgba(255, 79, 139, 0.22), rgba(192, 76, 242, 0.2)); border-color: rgba(255, 79, 139, 0.3); }
.msg.left .bubble { background: linear-gradient(135deg, rgba(96, 165, 250, 0.16), rgba(124, 92, 255, 0.16)); border-color: rgba(124, 92, 255, 0.3); }
.msg .tag { font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--amber); font-weight: 700; }
.msg em { color: #c8b8e8; }
.scene { text-align: center; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber); margin: 10px 0; display: flex; align-items: center; gap: 14px; animation: rise 0.4s both; }
.scene::before, .scene::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 179, 92, 0.4), transparent); }
.typing { display: inline-flex; gap: 4px; padding: 14px 18px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: pulse 1s infinite; }
.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }
.verdict { border-top: 3px solid var(--violet); }
.verdict.right { border-top-color: var(--rose); }
.verdict .big { font-family: Outfit; font-size: 44px; font-weight: 800; line-height: 1; }
.match-hero { text-align: center; padding: 24px; }
.match-hero .num { font-size: 64px; font-weight: 800; }

/* rankings */
.rank-layout { display: grid; grid-template-columns: 290px 1fr; gap: 22px; align-items: start; }
.plist { max-height: 72vh; overflow: auto; display: flex; flex-direction: column; gap: 4px; padding: 10px; }
.plist a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; transition: 0.15s; }
.plist a:hover { background: var(--panel); }
.plist a.on { background: var(--panel-2); box-shadow: inset 3px 0 0 var(--rose); }
.rank { display: grid; grid-template-columns: 44px auto 1fr auto; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 16px; background: rgba(0, 0, 0, 0.22); border: 1px solid var(--border); margin-bottom: 10px; animation: rise 0.4s both; }
.rank .pos { font-family: Outfit; font-size: 24px; font-weight: 800; color: var(--dim); text-align: center; }
.rank:nth-child(1) .pos { color: #ffd166; }
.rank:nth-child(2) .pos { color: #d7dce6; }
.rank:nth-child(3) .pos { color: #e3a26b; }
.rank .why { font-size: 13px; color: var(--muted); }
.matrix { overflow: auto; }
.matrix table { border-collapse: separate; border-spacing: 2px; font-size: 11px; }
.matrix td { width: 30px; height: 30px; text-align: center; border-radius: 6px; cursor: pointer; }
.matrix th { font-weight: 500; color: var(--muted); padding: 2px; }
.matrix th.rot { height: 90px; vertical-align: bottom; }
.matrix th.rot div { writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; }
.matrix th.left { text-align: right; padding-right: 8px; white-space: nowrap; }

.empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 120px); padding: 12px 20px; border-radius: 12px; background: #23173a; border: 1px solid var(--border); box-shadow: var(--shadow); transition: 0.3s; z-index: 50; max-width: 90vw; }
.toast.show { transform: translate(-50%, 0); }
.ticker { display: flex; flex-direction: column; gap: 8px; max-height: 330px; overflow: hidden; }
.tick { display: flex; gap: 10px; align-items: center; font-size: 13.5px; padding: 9px 12px; border-radius: 12px; background: rgba(0, 0, 0, 0.2); animation: rise 0.4s both; }
.how p, .how li { color: var(--muted); }
.how h3 { color: var(--text); }
.kbd { font-family: ui-monospace, monospace; font-size: 12px; padding: 2px 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.08); }

@media (max-width: 960px) {
  .hero, .layout, .rank-layout, .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .nav { display: none; }
  h1 { font-size: 38px; }
  .profile-head { grid-template-columns: 1fr; }
}
