/* Onchain Talent styles: shared layout and components first, then the Terminal look at the end. */
:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f5f5f5;
  --text: #111111;
  --muted: #666666;
  --border: #e5e5e5;
  --accent: #2756f5;
  --accent-text: #ffffff;
  --accent-soft: #eef2ff;
  --featured-bg: #f5f8ff;
  --ok: #0f7b4b;
  --warn: #9a6100;
  --bad: #b42318;
  --radius: 12px;
  --radius-sm: 8px;
  --font-body: system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: var(--font-body);
  --font-meta: var(--font-body);
  --hero-bg: transparent;
  --hero-text: var(--text);
  --hero-muted: var(--muted);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9em; word-break: break-all; }
h1, h2 { font-family: var(--font-display); }
h1 { font-size: 2rem; line-height: 1.15; margin: 0 0 0.4rem; }
h2 { font-size: 1.1rem; margin: 0; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.inline { display: inline; }
.main { padding-bottom: 48px; min-height: 40vh; }

/* Header */
.site-header { border-bottom: 1px solid var(--border); background: var(--bg); position: sticky; top: 0; z-index: 20; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1rem; color: var(--text); font-family: var(--font-display); }
.brand:hover { text-decoration: none; }
/* Wordmark: "> onchain_talent" + block cursor */
:root { --brand-green: #3ddc84; }
.logo-mark { display: inline-flex; align-items: center; gap: 0.45em; font: 700 1.15rem/1 "JetBrains Mono", ui-monospace, monospace; letter-spacing: -0.02em; white-space: nowrap; }
.lm-prompt, .lm-under { color: var(--brand-green); }
.lm-word { color: var(--text); }
.lm-cursor { display: inline-block; width: 0.55em; height: 1.05em; background: var(--brand-green); margin-left: 0.05em; }
.nav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; font-weight: 500; }
.nav > a:not(.button), .nav .link-button { color: var(--muted); }
.nav > a:not(.button):hover, .nav .link-button:hover { color: var(--text); text-decoration: none; }
@media (max-width: 600px) {
  .nav { gap: 12px; font-size: 0.9rem; }
  .nav > a[href="/"] { display: none; }
  .nav .button { padding: 7px 12px; }
}
body { overflow-x: hidden; }

/* Buttons and inputs */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  padding: 9px 16px; border-radius: var(--radius-sm); font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.button:hover { text-decoration: none; border-color: var(--text); }
.button-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.button-primary:hover { border-color: var(--accent); filter: brightness(1.08); }
.button:disabled { opacity: 0.6; cursor: progress; }
.link-button { background: none; border: 0; color: var(--accent); font: inherit; cursor: pointer; padding: 0; }
input, select, textarea {
  font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 9px 11px; width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; }
textarea { resize: vertical; }
.field { display: flex; flex-direction: column; gap: 5px; flex: 1; min-width: 0; }
.field span { font-size: 0.78rem; font-weight: 600; color: var(--muted); }
.check { display: flex; gap: 8px; align-items: center; font-size: 0.9rem; cursor: pointer; }
.check input { width: auto; accent-color: var(--accent); }

/* Hero */
.hero { background: var(--hero-bg); color: var(--hero-text); border-bottom: 1px solid var(--border); }
.hero-inner { padding-top: 56px; padding-bottom: 28px; }
.hero-compact .hero-inner { padding-top: 40px; padding-bottom: 32px; }
.eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 14px; font: 500 0.82rem/1.4 var(--font-meta); color: var(--hero-muted); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 20%, transparent); }
.hero-title { font-size: clamp(2.2rem, 5.5vw, 4rem); line-height: 1.04; letter-spacing: -0.02em; margin: 0; max-width: 16ch; color: var(--hero-text); }
.hero-sub { font-size: 1.1rem; color: var(--hero-muted); margin: 14px 0 0; max-width: 52ch; }
.hero-search {
  display: flex; align-items: center; gap: 8px; margin-top: 28px; max-width: 720px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 6px;
}
.hero-search input[type="search"] { border: 0; background: transparent; font-size: 1rem; padding: 10px 12px; }
.hero-search input[type="search"]:focus { outline: none; }
.hero-search:focus-within { outline: 2px solid var(--accent); outline-offset: 1px; }
.hero-remote { color: var(--muted); padding: 0 8px; flex: none; }
@media (max-width: 600px) {
  .hero-inner { padding-top: 36px; }
  .hero-search { flex-wrap: wrap; }
  .hero-search input[type="search"] { flex: 1 1 100%; }
  .hero-search .button { flex: 1; }
}
.pills { display: flex; gap: 8px; margin-top: 22px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.pills::-webkit-scrollbar { display: none; }
.pill {
  flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--border); color: var(--text); background: var(--surface); font-size: 0.86rem; font-weight: 500;
}
.pill:hover { text-decoration: none; border-color: var(--text); }
.pill.is-active { background: var(--text); color: var(--bg); border-color: var(--text); }
.pill-count { color: var(--muted); font: 0.78rem var(--font-meta); }
.pill.is-active .pill-count { color: inherit; opacity: 0.7; }

/* Board */
.featured-strip { margin-top: 32px; }
.section-head, .results-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.board { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 32px; align-items: start; margin-top: 32px; }
@media (max-width: 860px) { .board { grid-template-columns: minmax(0, 1fr); } .board aside { order: 2; } }
.board aside { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 84px; }
@media (max-width: 860px) { .board aside { position: static; } }
.filters { display: flex; flex-direction: column; gap: 14px; }
.filters-title { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-family: var(--font-meta); }
.filter-actions { display: flex; gap: 14px; align-items: center; }
.side-cta { border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; background: var(--surface-2); display: flex; flex-direction: column; gap: 8px; }
.side-cta p { margin: 0; color: var(--muted); font-size: 0.88rem; }
.side-cta .button { align-self: flex-start; }

.job-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.job-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s; }
.job-card:hover { border-color: var(--text); }
.job-card.featured { background: var(--featured-bg); border-color: var(--accent); }
.job-link { display: flex; align-items: center; gap: 14px; padding: 14px 16px; color: var(--text); }
.job-link:hover { text-decoration: none; }
.job-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.job-title { font-weight: 600; font-size: 1rem; line-height: 1.3; }
.job-sub { display: flex; gap: 6px; color: var(--muted); font-size: 0.88rem; min-width: 0; }
.job-company { font-weight: 500; color: var(--text); white-space: nowrap; }
.job-location { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.job-meta { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; justify-content: flex-end; }
.job-age { font: 0.8rem var(--font-meta); color: var(--muted); min-width: 64px; text-align: right; }
.job-arrow { color: var(--muted); transition: transform 0.15s; }
.job-card:hover .job-arrow { transform: translateX(3px); color: var(--text); }
@media (max-width: 700px) {
  .job-link { flex-wrap: wrap; align-items: flex-start; }
  .job-main { flex: 1 1 0; }
  .job-meta { flex-basis: 100%; justify-content: flex-start; }
  .job-age { min-width: 0; text-align: left; }
  .job-arrow { display: none; }
}
.chip { font: 500 0.75rem/1.2 var(--font-meta); border: 1px solid var(--border); border-radius: 999px; padding: 4px 9px; white-space: nowrap; color: var(--muted); }
.chip-featured { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }
.chip-remote { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 40%, transparent); }

.logo { width: 44px; height: 44px; border-radius: 10px; flex: none; object-fit: contain; background: #fff; border: 1px solid var(--border); }
.logo-letter {
  display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.1rem;
  background: hsl(var(--hue) 55% 92%); color: hsl(var(--hue) 45% 32%); border-color: transparent;
}
.logo-lg { width: 72px; height: 72px; border-radius: 16px; font-size: 1.8rem; }

.empty { padding: 40px; text-align: center; color: var(--muted); border: 1px dashed var(--border); border-radius: var(--radius); }
.pager { display: flex; justify-content: center; align-items: center; gap: 16px; padding: 28px 0 0; }

/* Panels and forms */
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin-top: 32px; }
.panel.narrow { max-width: 640px; margin-left: auto; margin-right: auto; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 14px; margin: 18px 0; }
.row { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; }
.error { color: var(--bad); font-weight: 600; }
.notice { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; background: var(--surface-2); }
.notice-paid { border-color: var(--ok); color: var(--ok); }
.notice-pending { border-color: var(--warn); color: var(--warn); }
.notice-invalid { border-color: var(--bad); color: var(--bad); }
.cta { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.cta p { margin: 6px 0 0; }

.table { width: 100%; border-collapse: collapse; margin-top: 12px; }
.table th, .table td { text-align: left; padding: 12px 8px; border-bottom: 1px solid var(--border); vertical-align: top; }
.table th { font-size: 0.78rem; color: var(--muted); font-family: var(--font-meta); }
.actions { display: flex; gap: 12px; align-items: center; justify-content: flex-end; }
.status { font-size: 0.8rem; font-weight: 600; text-transform: capitalize; }
.status-active { color: var(--ok); }
.status-pending_payment { color: var(--warn); }
.status-expired, .status-closed { color: var(--muted); }
@media (max-width: 600px) { .table thead { display: none; } .table td { display: block; border: 0; padding: 4px 0; } .table tr { display: block; border-bottom: 1px solid var(--border); padding: 8px 0; } .actions { justify-content: flex-start; } }

.pay-details { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; margin: 18px 0; }
.pay-details dt { color: var(--muted); font-weight: 600; font-size: 0.85rem; }
.pay-details dd { margin: 0; min-width: 0; }
.copy { cursor: pointer; border-bottom: 1px dashed var(--muted); }
details { margin-top: 16px; }
summary { cursor: pointer; color: var(--accent); }

.job-detail { max-width: 780px; margin: 32px auto 0; }
.job-detail .apply { margin: 20px 0; }
.detail-head { display: flex; gap: 18px; align-items: center; margin-top: 20px; }
.detail-head .job-company { margin: 0; color: var(--muted); }
.description { white-space: pre-wrap; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; line-height: 1.65; }
.job-detail .job-meta { justify-content: flex-start; margin-top: 12px; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 28px 0 80px; font-size: 0.85rem; }
.footer-row { display: flex; gap: 16px; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.small-brand .logo-mark { font-size: 0.95rem; }


/* Hiring ticker: logos scroll like a news crawl; hover pauses it. */
.ticker {
  /* full-bleed: break out of the centred content column */
  margin: 26px calc(50% - 50vw) 0; overflow: hidden; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.ticker-track { display: flex; width: max-content; animation: ticker 90s linear infinite; }
.ticker:hover .ticker-track, .ticker:focus-within .ticker-track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }
.ticker-list { display: flex; list-style: none; margin: 0; padding: 0; }
.ticker-item {
  display: flex; align-items: center; gap: 9px; padding: 11px 22px; white-space: nowrap;
  color: var(--hero-text); border-right: 1px solid var(--border); font-size: 0.88rem;
}
.ticker-item:hover { text-decoration: none; background: var(--surface-2); }
.ticker-item img { width: 24px; height: 24px; border-radius: 6px; object-fit: contain; background: #fff; flex: none; }
.ticker-name { font-weight: 600; }
.ticker-count { font: 500 0.78rem var(--font-meta); color: var(--ok); }
@media (prefers-reduced-motion: reduce) {
  .ticker { overflow-x: auto; }
  .ticker-track { animation: none; }
}

/* Featured roles grid */
.featured-section { margin-top: 36px; }
.featured-section .section-head h2 { display: flex; align-items: center; gap: 8px; }
.feature-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.feature-grid-page { margin-top: 32px; }
@media (max-width: 960px) { .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .feature-grid { grid-template-columns: minmax(0, 1fr); } }
.feature-card {
  background: var(--featured-bg); border: 1px solid var(--accent); border-radius: var(--radius);
  transition: transform 0.15s, box-shadow 0.15s;
}
.feature-card:hover { transform: translateY(-2px); box-shadow: 0 10px 30px color-mix(in srgb, var(--accent) 18%, transparent); }
.feature-link { display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 18px; color: var(--text); }
.feature-link:hover { text-decoration: none; }
.feature-top { display: flex; align-items: center; gap: 10px; }
.feature-top .chip-featured { margin-left: auto; }
.feature-company { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feature-title { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; line-height: 1.25; }
.feature-facts { display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--muted); font-size: 0.88rem; }
.feature-salary { color: var(--ok); font-weight: 600; }
/* One line of tags per card: chips that would wrap onto a second line are hidden, so card heights match. */
.feature-tags { display: flex; flex-wrap: wrap; gap: 6px; max-height: 1.6rem; overflow: hidden; }
.feature-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 6px; }
.feature-bottom .job-age { min-width: 0; text-align: left; }
.feature-cta { font-weight: 600; color: var(--accent); font-size: 0.9rem; }
.feature-sell { background: transparent; border-style: dashed; border-color: var(--border); }
.feature-sell:hover { border-color: var(--accent); }
.feature-plus {
  width: 44px; height: 44px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px dashed var(--accent); color: var(--accent); font-size: 1.5rem;
}
.feature-sell .muted { font-size: 0.88rem; }
.button[aria-disabled="true"] { opacity: 0.6; cursor: not-allowed; }

/* Job page: at-a-glance facts, quick summary, full description */
.back-link { color: var(--muted); font-size: 0.9rem; }
.detail-titles h1 { margin: 2px 0 0; }
.glance { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1px; margin: 22px 0; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.glance > div { background: var(--surface); padding: 12px 14px; }
.glance dt { font: 600 0.72rem var(--font-meta); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.glance dd { margin: 4px 0 0; font-weight: 600; }
.glance-salary { color: var(--ok); }
.summary { margin-top: 26px; padding: 22px 24px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.summary-label { margin: 0 0 8px; font: 600 0.75rem var(--font-meta); text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); }
.summary-about { font-size: 1.05rem; line-height: 1.6; margin: 0 0 4px; }
.summary-section { margin-top: 18px; }
.summary-section h2 { font-size: 0.95rem; margin-bottom: 8px; }
.summary-section ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; line-height: 1.5; }
.summary-section li::marker { color: var(--accent); }
.summary-missing { margin-top: 24px; color: var(--muted); }
.full-description { margin-top: 18px; border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 18px; }
.full-description summary { font-weight: 600; }
.description-body { margin-top: 12px; line-height: 1.6; color: var(--text); }
.description-body h3 { font-size: 1rem; margin: 18px 0 6px; }
.description-body p { margin: 0 0 10px; }
.desc-bullet { padding-left: 18px; position: relative; }
.desc-bullet::before { content: "•"; position: absolute; left: 4px; color: var(--accent); }
.detail-apply-bottom { margin-top: 24px; }
.more-jobs { margin-top: 44px; }
.more-jobs h2 { margin-bottom: 12px; }

/* Sign-up wall after the first roles for signed-out visitors */
.job-list.is-gated { position: relative; }
.job-list.is-gated::after {
  content: ""; position: absolute; left: -1px; right: -1px; bottom: -1px; height: 260px; pointer-events: none;
  background: linear-gradient(to bottom, transparent, var(--bg) 92%);
}
.gate { position: relative; margin-top: -40px; padding-top: 10px; }
.gate-ghosts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; filter: blur(3px); opacity: 0.35; }
.gate-ghosts li { display: flex; align-items: center; gap: 14px; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.ghost-logo { width: 40px; height: 40px; border-radius: 10px; background: var(--border); flex: none; }
.ghost-lines { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.ghost-lines span { height: 10px; border-radius: 4px; background: var(--border); width: 55%; }
.ghost-lines span + span { width: 30%; }
.gate-card {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(520px, calc(100% - 24px));
  text-align: center; padding: 28px 24px; border: 1px solid var(--accent); border-radius: var(--radius);
  background: var(--surface); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}
.gate-lock { font-size: 1.6rem; }
.gate-card h2 { font-size: 1.35rem; margin: 8px 0 8px; }
.gate-card p { color: var(--muted); margin: 0 0 18px; }
.gate-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
@media (max-width: 600px) { .gate-card { position: relative; left: auto; top: auto; transform: none; width: 100%; margin-top: -120px; } }

/* Log in / sign up pop-up */
.auth-dialog {
  width: min(420px, calc(100vw - 32px)); padding: 28px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); color: var(--text); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}
.auth-dialog::backdrop { background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(4px); }
.auth-dialog h2 { font-size: 1.4rem; margin: 18px 0 4px; }
.auth-dialog .muted { margin: 0; }
.auth-dialog .stack { margin: 18px 0 14px; }
.auth-dialog .button-primary { width: 100%; padding: 11px 16px; }
.auth-dialog .error { margin: 0; font-size: 0.88rem; }
.auth-brand .logo-mark { font-size: 1rem; }
.auth-switch { margin: 0; color: var(--muted); font-size: 0.9rem; text-align: center; }
.auth-close {
  position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border-radius: 8px; border: 0;
  background: transparent; color: var(--muted); font-size: 1.4rem; line-height: 1; cursor: pointer;
}
.auth-close:hover { background: var(--surface-2); color: var(--text); }
.code-input { font: 700 1.6rem/1 "JetBrains Mono", ui-monospace, monospace; letter-spacing: 0.4em; text-align: center; padding: 12px; }
.code-input::placeholder { color: var(--border); }
.auth-resend { display: flex; gap: 6px; justify-content: center; align-items: baseline; flex-wrap: wrap; font-size: 0.88rem; }

/* Category row with scroll arrows and edge fades */
.pills-wrap { position: relative; margin-top: 22px; }
.pills-wrap .pills { margin: -12px -8px; padding: 12px 8px; scroll-behavior: smooth; }
.pills-wrap.fade-right .pills { -webkit-mask-image: linear-gradient(90deg, #000 80%, transparent); mask-image: linear-gradient(90deg, #000 80%, transparent); }
.pills-wrap.fade-left .pills { -webkit-mask-image: linear-gradient(90deg, transparent, #000 20%); mask-image: linear-gradient(90deg, transparent, #000 20%); }
.pills-wrap.fade-left.fade-right .pills { -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); }
.pills-arrow {
  position: absolute; top: 0; z-index: 2; width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: 1.3rem; line-height: 1; cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}
.pills-arrow:hover { border-color: var(--accent); color: var(--accent); }
.pills-arrow-left { left: -6px; }
.pills-arrow-right { right: -6px; }
/* "For you": filled like the active pill, with a pulsing glow and a sweeping shine. */
.pill.pill-foryou {
  --glow: var(--accent);
  position: relative; overflow: hidden; font-weight: 800; letter-spacing: 0.01em;
  background: var(--accent); color: var(--accent-text); border-color: var(--accent);
  box-shadow: 0 0 10px color-mix(in srgb, var(--glow) 55%, transparent), 0 0 22px color-mix(in srgb, var(--glow) 25%, transparent);
  animation: foryou-glow 2.6s ease-in-out infinite;
}
.pill.pill-foryou::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -70%; width: 45%; pointer-events: none;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.75), transparent);
  transform: skewX(-20deg); animation: foryou-shine 3.2s ease-in-out infinite;
}
.pill.pill-foryou:hover { border-color: var(--accent); filter: brightness(1.08); }
.pill-foryou .pill-count { color: inherit; opacity: 0.7; }
/* While its filter is on, add a ring so it reads as selected. */
.pill.pill-foryou.is-active { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--glow), 0 0 22px color-mix(in srgb, var(--glow) 45%, transparent); }
@keyframes foryou-glow {
  50% { box-shadow: 0 0 16px color-mix(in srgb, var(--glow) 75%, transparent), 0 0 34px color-mix(in srgb, var(--glow) 35%, transparent); }
}
@keyframes foryou-shine { 0% { left: -70%; } 55%, 100% { left: 140%; } }
@media (prefers-reduced-motion: reduce) {
  .pill.pill-foryou, .pill.pill-foryou::after { animation: none; }
  .pill.pill-foryou::after { display: none; }
}
.foryou-bar { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; margin: 14px 0 0; font-size: 0.9rem; color: var(--hero-muted); }
.foryou-label { color: var(--accent); font-weight: 600; font-family: var(--font-meta); }

/* Profile form */
.profile-dialog { width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 40px); overflow-y: auto; }
.profile-dialog h2 { margin-top: 0; }
.profile-form { display: flex; flex-direction: column; gap: 16px; margin-top: 18px; }
.profile-form fieldset { border: 0; padding: 0; margin: 0; }
.profile-form legend, .profile-form .field > span { font-size: 0.78rem; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.profile-form em { font-style: normal; font-weight: 400; opacity: 0.8; }
.choice-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.choice-chip { cursor: pointer; }
.choice-chip input { position: absolute; opacity: 0; pointer-events: none; }
.choice-chip span { display: inline-block; padding: 7px 12px; border: 1px solid var(--border); border-radius: 999px; font-size: 0.86rem; }
.choice-chip input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.choice-chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.profile-form .button-primary { width: 100%; padding: 11px 16px; }

/* ---------------------------------------------------------------- Terminal look */
/* Terminal: dark, monospace details, signal green. Dense list like a block explorer. */
:root {
  --bg: #08090b;
  --surface: #0e1013;
  --surface-2: #121519;
  --text: #e7eaee;
  --muted: #7f8792;
  --border: #1d2127;
  --accent: #3ef08b;
  --accent-text: #03140a;
  --featured-bg: #0d1a12;
  --ok: #3ef08b;
  --warn: #f5c451;
  --bad: #ff6b6b;
  --radius: 6px;
  --radius-sm: 4px;
  --font-body: "Inter", system-ui, sans-serif;
  --font-display: "JetBrains Mono", ui-monospace, monospace;
  --font-meta: "JetBrains Mono", ui-monospace, monospace;
  color-scheme: dark;
}

body { font-size: 14.5px; }
.site-header { background: rgba(8, 9, 11, 0.85); backdrop-filter: blur(10px); }
.lm-cursor { box-shadow: 0 0 12px rgba(61, 220, 132, 0.45); }
.nav { font-family: var(--font-meta); font-size: 0.85rem; }

.hero {
  background:
    linear-gradient(transparent 0 calc(100% - 1px), var(--border) 0) 0 0 / 100% 32px,
    linear-gradient(90deg, transparent 0 calc(100% - 1px), var(--border) 0) 0 0 / 32px 100%,
    var(--bg);
  background-blend-mode: normal;
  position: relative;
}
.hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 20% 0%, transparent 0, var(--bg) 70%); pointer-events: none; }
.hero-inner { position: relative; z-index: 1; }
.hero-title { font-size: clamp(1.9rem, 4.6vw, 3.4rem); font-weight: 700; letter-spacing: -0.04em; max-width: 22ch; }
.hero-title::before { content: "> "; color: var(--accent); }
.hero-title::after { content: "_"; color: var(--accent); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hero-title::after { animation: none; } }
.hero-sub { font-size: 1rem; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.75rem; color: var(--accent); }
.hero-search { background: var(--surface); }
.pill { border-radius: 4px; font-family: var(--font-meta); font-size: 0.78rem; background: transparent; }
.pill.is-active { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }

/* One bordered table instead of separate cards */
.job-list { gap: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.job-card { border: 0; border-radius: 0; border-bottom: 1px solid var(--border); background: transparent; }
.job-card:last-child { border-bottom: 0; }
.job-card:hover { background: #12161b; }
.job-card.featured { background: var(--featured-bg); box-shadow: inset 3px 0 0 var(--accent); }
.job-link { padding: 12px 16px; }
.job-title { font-weight: 500; }
.job-sub { font-size: 0.84rem; }
.job-company { color: var(--accent); font-family: var(--font-meta); font-size: 0.8rem; }
.chip { border-radius: 3px; background: var(--surface-2); }
.chip-featured { color: var(--accent-text); }
.job-arrow { font-family: var(--font-meta); }
.logo { width: 36px; height: 36px; border-radius: 6px; border-color: #2a2f37; }
.logo-letter { background: hsl(var(--hue) 30% 16%); color: hsl(var(--hue) 70% 72%); }

.results-head h2, .section-head h2 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.side-cta { background: var(--featured-bg); border-color: #1d3b29; }
.button { font-family: var(--font-meta); font-size: 0.85rem; }
.button-primary:hover { filter: none; box-shadow: 0 0 18px rgba(62, 240, 139, 0.35); }
input, select, textarea { background: var(--bg); }
.panel { background: var(--surface); }
.description { background: var(--surface); }
.ticker { background: rgba(14, 16, 19, 0.7); }
.ticker-name { font-family: var(--font-meta); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.03em; }
.feature-card { box-shadow: inset 0 1px 0 rgba(62, 240, 139, 0.15); }
.feature-card:hover { box-shadow: 0 0 0 1px var(--accent), 0 0 28px rgba(62, 240, 139, 0.18); }
.feature-title { font-family: var(--font-body); font-weight: 600; font-size: 1.1rem; }
.feature-company { font-family: var(--font-meta); font-size: 0.82rem; color: var(--accent); }
.feature-sell { border-color: #2a3a30; }
.chip-featured { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }
.logo-lg { width: 72px; height: 72px; border-radius: 14px; }
.summary { box-shadow: inset 3px 0 0 var(--accent); }
.summary-section h2 { font-family: var(--font-meta); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.glance dd { font-family: var(--font-meta); font-size: 0.9rem; }
.gate-card { box-shadow: 0 0 0 1px var(--accent), 0 0 40px rgba(62, 240, 139, 0.15); }
.gate-card h2 { font-family: var(--font-meta); font-size: 1.15rem; }
.auth-dialog { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 60px rgba(62, 240, 139, 0.12); }
.auth-dialog h2 { font-family: var(--font-meta); }
.pills-arrow { border-radius: 4px; font-family: var(--font-meta); }
.choice-chip span { border-radius: 4px; font-family: var(--font-meta); font-size: 0.8rem; }
.job-skills { display: flex; flex-wrap: wrap; gap: 6px; margin: -8px 0 20px; }

.feature-sell .feature-bottom { justify-content: flex-end; }

/* Payment choices */
.pay-panel { max-width: 940px; margin-left: auto; margin-right: auto; }
.pay-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin: 20px 0; align-items: start; }
.pay-option { border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; background: var(--surface-2); display: flex; flex-direction: column; gap: 10px; }
.pay-option-recommended { border-color: var(--accent); box-shadow: 0 0 24px rgba(62, 240, 139, 0.12); }
.pay-option-label { margin: 0; font: 600 0.75rem var(--font-meta); text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); }
.pay-option-price { margin: 0; font: 700 1.6rem var(--font-meta); }
.pay-option-price span { font-size: 0.85rem; font-weight: 400; color: var(--muted); }
.pay-option-points { margin: 0; padding-left: 18px; color: var(--muted); font-size: 0.9rem; display: flex; flex-direction: column; gap: 4px; }
.pay-option .pay-details { margin: 6px 0; }
.pay-option .button { align-self: flex-start; }
.listing-renewal { display: block; margin-top: 4px; font-size: 0.8rem; color: var(--muted); }
.listing-renewal.is-warning { color: var(--warn); }

/* Free-listing code */
.promo-box { margin: 4px 0 18px; border: 1px dashed var(--border); border-radius: var(--radius); padding: 14px 18px; }
.promo-box summary { font-weight: 600; }
.promo-form { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.promo-form input { flex: 1; min-width: 200px; font-family: var(--font-meta); text-transform: uppercase; letter-spacing: 0.06em; }
.promo-box .error { margin: 10px 0 0; }
.pay-pickers { margin: 4px 0; }

/* Form messages, in the site's style (replacing the browser's validation bubbles) */
.field-error {
  margin: 2px 0 0; font: 500 0.78rem/1.4 var(--font-meta); color: var(--bad);
  display: flex; gap: 6px; align-items: baseline;
}
.field-error::before { content: ">"; font-weight: 700; }
.field-error[hidden] { display: none; }
input.is-invalid, select.is-invalid, textarea.is-invalid {
  border-color: var(--bad); box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.12);
}
input.is-invalid:focus, select.is-invalid:focus, textarea.is-invalid:focus { outline-color: var(--bad); }
.field-hint { margin: 2px 0 0; font: 0.75rem var(--font-meta); color: var(--muted); }
.field-hint.is-done { color: var(--accent); }
.field-hint.is-done::before { content: "✓ "; }
/* Server-side messages at the top of a form */
.error, .form-alert {
  margin: 12px 0; padding: 10px 12px; border: 1px solid rgba(255, 107, 107, 0.35); border-left: 3px solid var(--bad);
  border-radius: var(--radius-sm); background: rgba(255, 107, 107, 0.06); color: var(--bad);
  font: 500 0.85rem/1.45 var(--font-meta);
}
.error[hidden] { display: none; }

/* Connect-and-pay */
.wallet-step { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.wallet-account { margin: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 0.9rem; }
.wallet-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.wallet-option {
  width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 12px; cursor: pointer;
  border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); font: inherit; text-align: left;
}
.wallet-option:hover { border-color: var(--accent); }
.wallet-option img { width: 24px; height: 24px; border-radius: 6px; }
.owner-bar { margin: 14px 0 0; padding: 8px 12px; border: 1px dashed var(--accent); border-radius: var(--radius-sm); font: 0.85rem var(--font-meta); color: var(--muted); }

/* Apply method choice and screening questions */
.apply-mode, .questions { border: 0; padding: 0; margin: 0; }
.apply-mode legend, .questions legend { font-size: 0.78rem; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.questions em { font-style: normal; font-weight: 400; opacity: 0.8; }
.choice-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.choice-card { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer; background: var(--surface-2); }
.choice-card input { width: auto; margin-top: 3px; accent-color: var(--accent); }
.choice-card span { display: flex; flex-direction: column; gap: 4px; font-size: 0.86rem; color: var(--muted); }
.choice-card strong { color: var(--text); font-size: 0.95rem; }
.choice-card:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 18px rgba(62, 240, 139, 0.1); }
.question-row { display: grid; grid-template-columns: 1fr 150px auto; gap: 8px; align-items: center; margin-top: 8px; }
.question-row .field-error { grid-column: 1 / -1; }
@media (max-width: 600px) { .question-row { grid-template-columns: 1fr 1fr; } .question-row > input { grid-column: 1 / -1; } }
.button.is-applied { color: var(--accent); border-color: var(--accent); }

/* Applicants */
.status-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 16px 0 6px; }
.status-tabs a { padding: 6px 10px; border: 1px solid var(--border); border-radius: 4px; font: 0.8rem var(--font-meta); color: var(--muted); }
.status-tabs a span { opacity: 0.7; margin-left: 4px; }
.status-tabs a[aria-current] { border-color: var(--accent); color: var(--accent); }
.status-tabs a:hover { text-decoration: none; border-color: var(--text); }
.table tr.is-new td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
.app-status { font: 600 0.75rem var(--font-meta); text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.app-status-new, .app-status-shortlisted, .app-status-hired { color: var(--accent); }
.app-status-rejected { color: var(--bad); }
.new-badge { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: var(--accent); color: var(--accent-text); font: 700 0.7rem var(--font-meta); }
.status-form { display: flex; gap: 8px; align-items: flex-end; }
.resume-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 4px 0 8px; }
.answer { margin-top: 14px; }
.answer h2 { font-size: 0.9rem; margin: 0 0 4px; color: var(--muted); font-family: var(--font-meta); }
.answer p, .answer-text { margin: 0; white-space: pre-wrap; line-height: 1.6; }
.field em { font-style: normal; font-weight: 400; opacity: 0.8; }
input[type="file"] { padding: 8px; }
.question-row[hidden] { display: none; }
input[type="file"]::file-selector-button {
  margin-right: 12px; padding: 6px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface-2); color: var(--text); font: 600 0.8rem var(--font-meta); cursor: pointer;
}
input[type="file"]::file-selector-button:hover { border-color: var(--accent); }

/* Anything marked hidden stays hidden, whatever its display style. */
[hidden] { display: none !important; }
/* Table action cells stay table cells, so row borders run the full width. */
td.actions { display: table-cell; text-align: right; white-space: nowrap; vertical-align: middle; }
td.actions > * { margin-left: 10px; vertical-align: middle; }
td.actions > *:first-child { margin-left: 0; }
@media (max-width: 600px) { td.actions { text-align: left; white-space: normal; } }

/* My applications */
.my-apps { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.my-app { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--text); }
.my-app:hover { text-decoration: none; border-color: var(--accent); }
.my-app-main { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.my-app-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.nav-badge { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: var(--accent-text); font: 700 0.7rem/18px var(--font-meta); text-align: center; }

/* Message thread */
.thread { margin-top: 24px; padding: 20px 22px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.thread-list { list-style: none; margin: 8px 0 16px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.message { max-width: 85%; padding: 10px 14px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface-2); }
.message.is-mine { align-self: flex-end; border-color: rgba(62, 240, 139, 0.35); background: rgba(62, 240, 139, 0.06); }
.message-meta { margin: 0 0 4px; font: 0.72rem var(--font-meta); color: var(--muted); }
.message-body { margin: 0; white-space: pre-wrap; line-height: 1.55; overflow-wrap: anywhere; }
.thread-form { display: flex; flex-direction: column; gap: 10px; }
.thread-form .button { align-self: flex-start; }
.forgot-link { align-self: flex-end; margin-top: -6px; font-size: 0.82rem; }
.page-notice { margin: 20px 0 0; }

/* Feedback: round chat button floating in the bottom-right corner */
.feedback {
  /* Centered in the empty strip between the content column (max 1180px wide) and the screen's right edge;
     never closer than 16px to the edge. */
  --gutter: calc((100vw - 1180px) / 2);
  position: fixed; right: max(16px, calc(var(--gutter) / 2 - 28px)); bottom: 14px; z-index: 60;
  display: flex; flex-direction: column; align-items: flex-end; gap: 12px;
}
.feedback-tab {
  width: 56px; height: 56px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--accent); background: var(--accent); color: var(--accent-text); cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), 0 0 22px rgba(62, 240, 139, 0.3);
  transition: transform 0.15s, box-shadow 0.15s;
}
.feedback-tab:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5), 0 0 30px rgba(62, 240, 139, 0.45); }
.feedback-tab:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
.feedback.is-open .feedback-tab { display: none; }
.feedback-panel {
  width: min(340px, calc(100vw - 32px)); padding: 16px; border: 1px solid var(--accent);
  border-radius: var(--radius); background: var(--surface); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 30px rgba(62, 240, 139, 0.1);
}
.feedback-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-family: var(--font-meta); }
.feedback-head .auth-close { position: static; }
.feedback-panel form { display: flex; flex-direction: column; gap: 12px; }
.feedback-ratings { display: flex; justify-content: space-between; }
.feedback-ratings label { cursor: pointer; }
.feedback-ratings input { position: absolute; opacity: 0; pointer-events: none; }
.feedback-ratings span { display: inline-flex; width: 48px; height: 44px; align-items: center; justify-content: center; font-size: 1.4rem;
  border: 1px solid var(--border); border-radius: var(--radius-sm); filter: grayscale(0.6); transition: filter 0.15s, border-color 0.15s; }
.feedback-ratings input:checked + span, .feedback-ratings label:hover span { filter: none; border-color: var(--accent); }
.feedback-ratings input:focus-visible + span { outline: 2px solid var(--accent); }
.feedback-trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.feedback-thanks { margin: 6px 0 0; color: var(--accent); font-family: var(--font-meta); }
.feedback .button-primary { width: 100%; }
@media (max-width: 600px) {
  .feedback { right: 16px; bottom: 14px; }
  .feedback-tab { width: 50px; height: 50px; }
}

/* Legal pages */
.legal { max-width: 780px; margin-left: auto; margin-right: auto; line-height: 1.65; }
.legal h2 { font-size: 1.05rem; margin: 26px 0 8px; }
.legal ul { padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.legal li::marker { color: var(--accent); }
.placeholder { background: rgba(245, 196, 81, 0.15); color: var(--warn); padding: 0 4px; border-radius: 3px; font: 0.85em var(--font-meta); }

/* Featured cards line up: titles get exactly two lines, facts one line (long locations end in "…"). */
.feature-card .feature-title {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
  min-height: calc(2 * 1.25em);
}
.feature-facts { flex-wrap: nowrap; min-width: 0; }
.feature-location { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feature-salary { flex: none; white-space: nowrap; }
.feature-sell .feature-title { min-height: 0; }
.share-rejection { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 16px 0 0; padding: 12px 14px; border: 1px dashed var(--border); border-radius: var(--radius-sm); }
.share-rejection p { margin: 0; color: var(--muted); font-size: 0.9rem; }
.app-status-reviewing { color: var(--accent); }
.promo-confirm { margin-top: 12px; }
.promo-confirm p { margin: 0 0 10px; }
.promo-actions { display: flex; gap: 14px; align-items: center; }
.employer-brand { display: flex; align-items: center; gap: 12px; }
.employer-brand h1 { margin: 0; }
.logo-change { margin: 4px 0 18px; }
.logo-change summary { cursor: pointer; color: var(--muted); font-size: 0.9em; }
.logo-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 10px; }
.logo-field small { display: block; margin-top: 4px; }
