/* ══════════════════════════════════════════════════════════════
   Dream Offer Matcher — Cinematic Edition
   Design: Liquid Glass · Instrument Serif · Starfield · Nebula
   ══════════════════════════════════════════════════════════════ */

/* ── Variables ──────────────────────────────────────────────── */
:root {
  --accent:       #8b7cf8;
  --accent-dim:   rgba(139,124,248,0.14);
  --accent2:      #00e5b8;
  --surface:      rgba(255,255,255,0.038);
  --border:       rgba(255,255,255,0.08);
  --border-hi:    rgba(255,255,255,0.13);
  --text:         #f2f3f8;
  --muted:        rgba(255,255,255,0.52);
  --subtle:       rgba(255,255,255,0.28);
  --success:      #10d990;
  --warn:         #f59e0b;
  --danger:       #f87171;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; scroll-behavior: smooth; }
body {
  font-family: 'Barlow', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: #000; color: var(--text);
  min-height: 100vh; overflow-x: hidden; line-height: 1.6;
}

/* ── Liquid Glass ────────────────────────────────────────────── */
.liquid-glass {
  background: rgba(255,255,255,0.04);
  background-blend-mode: luminosity;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: none;
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.1);
  position: relative; overflow: hidden;
}
.liquid-glass::before {
  content: ""; position: absolute; inset: 0;
  border-radius: inherit; padding: 1.4px;
  background: linear-gradient(180deg,
    rgba(255,255,255,0.45) 0%, rgba(255,255,255,0.15) 20%,
    rgba(255,255,255,0)    40%, rgba(255,255,255,0)    60%,
    rgba(255,255,255,0.15) 80%, rgba(255,255,255,0.45) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}
.liquid-glass-strong {
  background: rgba(255,255,255,0.06);
  background-blend-mode: luminosity;
  backdrop-filter: blur(50px);
  -webkit-backdrop-filter: blur(50px);
  border: none;
  box-shadow: 4px 4px 4px rgba(0,0,0,0.05), inset 0 1px 1px rgba(255,255,255,0.15);
  position: relative; overflow: hidden;
}
.liquid-glass-strong::before {
  content: ""; position: absolute; inset: 0;
  border-radius: inherit; padding: 1.4px;
  background: linear-gradient(180deg,
    rgba(255,255,255,0.5) 0%,  rgba(255,255,255,0.2)  20%,
    rgba(255,255,255,0)   40%, rgba(255,255,255,0)    60%,
    rgba(255,255,255,0.2) 80%, rgba(255,255,255,0.5)  100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}

/* ── Typography Helpers ──────────────────────────────────────── */
.font-serif-italic { font-family: 'Instrument Serif', serif; font-style: italic; }

/* ── Cinematic Background ────────────────────────────────────── */
.bg-scene {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none; background: #000;
}
.nebula {
  position: absolute; border-radius: 50%;
  filter: blur(90px); mix-blend-mode: screen;
}
.n1 {
  width: 800px; height: 800px; top: -250px; left: -200px;
  background: radial-gradient(circle, rgba(70,40,200,0.65) 0%, transparent 68%);
  animation: nebula-a 28s ease-in-out infinite;
}
.n2 {
  width: 650px; height: 650px; bottom: -180px; right: -180px;
  background: radial-gradient(circle, rgba(0,160,130,0.45) 0%, transparent 68%);
  animation: nebula-b 34s ease-in-out infinite;
}
.n3 {
  width: 450px; height: 450px; top: 45%; left: 42%;
  background: radial-gradient(circle, rgba(110,60,240,0.22) 0%, transparent 68%);
  animation: nebula-c 22s ease-in-out infinite;
}
#stars-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.55;
}
@keyframes nebula-a {
  0%,100%{ transform:translate(0,0) scale(1); }
  33%{ transform:translate(50px,-35px) scale(1.07); }
  66%{ transform:translate(-25px,25px) scale(0.96); }
}
@keyframes nebula-b {
  0%,100%{ transform:translate(0,0) scale(1); }
  40%{ transform:translate(-40px,25px) scale(1.1); }
  70%{ transform:translate(25px,-20px) scale(0.94); }
}
@keyframes nebula-c {
  0%,100%{ transform:translate(0,0); }
  50%{ transform:translate(35px,-45px); }
}

/* ── Fade-up Animation ───────────────────────────────────────── */
.fade-up {
  opacity: 0; transform: translateY(26px); filter: blur(12px);
  transition: opacity .75s ease, transform .75s ease, filter .75s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); filter: blur(0); }

/* ── Word-by-word title animation ────────────────────────────── */
.title-word {
  display: inline-block; margin-right: .22em;
  opacity: 0; transform: translateY(50px); filter: blur(10px);
  animation: word-in 0.7s ease forwards;
  animation-play-state: paused;
}
body.loaded .title-word { animation-play-state: running; }
@keyframes word-in {
  0%   { opacity:0; transform:translateY(50px); filter:blur(10px); }
  50%  { opacity:.5; transform:translateY(-5px); filter:blur(4px); }
  100% { opacity:1; transform:translateY(0); filter:blur(0); }
}

/* ── Navbar ──────────────────────────────────────────────────── */
.glass-nav {
  position: fixed; top: 16px; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px; pointer-events: none;
}
.glass-nav > * { pointer-events: all; }

.nav-logo {
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Instrument Serif', serif; font-style: italic;
  font-size: 1.25rem; color: white; cursor: default; flex-shrink: 0;
}
.nav-center {
  display: flex; align-items: center; gap: 2px;
  border-radius: 9999px; padding: 6px;
}
.nav-link {
  padding: 7px 14px; border-radius: 9999px;
  font-size: .84rem; font-weight: 400; color: rgba(255,255,255,.8);
  text-decoration: none; transition: color .2s, background .2s;
  white-space: nowrap;
}
.nav-link:hover { color: white; background: rgba(255,255,255,.07); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 6px;
  margin-left: 6px; padding: 7px 16px; border-radius: 9999px;
  background: white; color: #000;
  font-size: .82rem; font-weight: 600; text-decoration: none;
  white-space: nowrap; transition: opacity .2s;
}
.nav-cta:hover { opacity: .88; }
.nav-github {
  width: 40px; height: 40px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); flex-shrink: 0;
  transition: color .2s, background .2s;
  text-decoration: none;
}
.nav-github:hover { color: white; background: rgba(255,255,255,.1); }

@media (max-width: 820px) {
  .nav-center { display: none; }
  .glass-nav { padding: 0 16px; }
}

/* ── Hero Section ────────────────────────────────────────────── */
.hero-section {
  position: relative; z-index: 1;
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center;
  padding: 0 20px;
}
.hero-body {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; text-align: center;
  justify-content: center; gap: 26px;
  padding-top: 90px; padding-bottom: 40px;
}

/* Badge */
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  border-radius: 9999px; padding: 5px 18px 5px 5px; cursor: default;
}
.badge-new {
  background: white; color: #000;
  font-family: 'Barlow', sans-serif; font-size: .72rem; font-weight: 700;
  padding: 3px 10px; border-radius: 9999px;
}
.badge-label {
  font-size: .82rem; font-weight: 400; color: rgba(255,255,255,.82);
}

/* Hero Title */
.hero-title {
  font-family: 'Instrument Serif', serif; font-style: italic;
  font-size: clamp(3.8rem, 9vw, 7rem);
  line-height: 0.87; letter-spacing: -4px;
  color: white; max-width: 750px;
}

/* Sub */
.hero-sub {
  font-size: clamp(.9rem, 1.4vw, 1.05rem); font-weight: 300;
  color: rgba(255,255,255,.62); line-height: 1.75; max-width: 460px;
}

/* CTAs */
.hero-ctas { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; justify-content: center; }
.btn-primary-glass {
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: 9999px; padding: 13px 26px;
  font-family: 'Barlow', sans-serif; font-size: .92rem; font-weight: 500;
  color: white; text-decoration: none; border: none; cursor: pointer;
  transition: transform .22s ease, box-shadow .22s ease;
}
.btn-primary-glass:hover { transform: translateY(-2px); box-shadow: 0 10px 36px rgba(139,124,248,.3); }
.btn-primary-glass:active { transform: translateY(0); }
.btn-ghost-text {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: 'Barlow', sans-serif; font-size: .88rem; font-weight: 400;
  color: rgba(255,255,255,.65); background: none; border: none; cursor: pointer;
  transition: color .2s;
}
.btn-ghost-text:hover { color: white; }

/* Stat cards */
.hero-stats { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.stat-card {
  border-radius: 20px; padding: 18px 22px;
  width: 190px; display: flex; flex-direction: column; gap: 5px;
}
.stat-num {
  font-family: 'Instrument Serif', serif; font-style: italic;
  font-size: 2.5rem; color: white;
  line-height: 1; letter-spacing: -1px; margin-top: 8px;
}
.stat-sub { font-size: .72rem; font-weight: 300; color: rgba(255,255,255,.55); display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.live-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: .65rem; font-weight: 600; letter-spacing: .06em;
  color: #10d990; line-height: 1;
}
.live-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #10d990;
  box-shadow: 0 0 0 0 rgba(16,217,144,.5);
  animation: live-pulse 1.6s ease-out infinite;
}
@keyframes live-pulse {
  0%   { box-shadow: 0 0 0 0   rgba(16,217,144,.55); }
  60%  { box-shadow: 0 0 0 6px rgba(16,217,144,0);   }
  100% { box-shadow: 0 0 0 0   rgba(16,217,144,0);   }
}

/* Partners */
.partners-strip {
  display: flex; flex-direction: column; align-items: center; gap: 13px;
  padding-bottom: 36px;
}
.partners-chip {
  border-radius: 9999px; padding: 5px 16px;
  font-size: .75rem; font-weight: 400; color: rgba(255,255,255,.72);
}
.partners-row {
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap; justify-content: center;
}
.partners-row span {
  font-family: 'Instrument Serif', serif; font-style: italic;
  font-size: 1.7rem; color: white; opacity: .78; letter-spacing: -.3px;
}
.sep { font-style: normal !important; opacity: .3 !important; }

/* ── Tool Section ────────────────────────────────────────────── */
.tool-section {
  position: relative; z-index: 1;
  padding: 80px 32px 80px; max-width: 1340px; margin: 0 auto;
}
.tool-header { margin-bottom: 48px; }
.tool-kicker {
  font-size: .82rem; color: rgba(255,255,255,.42);
  letter-spacing: .06em; margin-bottom: 10px; font-weight: 400;
}
.tool-heading {
  font-family: 'Instrument Serif', serif; font-style: italic;
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: .9; letter-spacing: -3px; color: white;
}
.tool-layout {
  display: grid; grid-template-columns: 400px 1fr;
  gap: 18px; align-items: start;
}
.input-col { display: flex; flex-direction: column; gap: 12px; }
@media (max-width: 920px) {
  .tool-layout { grid-template-columns: 1fr; }
  .tool-section { padding: 60px 16px; }
}

/* ── Glass Card ──────────────────────────────────────────────── */
.glass-card {
  background: rgba(255,255,255,0.038);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border); border-radius: 20px; padding: 20px;
  transition: border-color .2s;
}
.glass-card:hover { border-color: var(--border-hi); }

/* Card Label */
.card-label {
  display: flex; align-items: center; gap: 8px;
  font-size: .68rem; font-weight: 600; letter-spacing: .09em;
  text-transform: uppercase; color: var(--subtle); margin-bottom: 13px;
}
.card-label.accent { color: var(--accent); }
.label-icon { width: 14px; height: 14px; flex-shrink: 0; }

/* Engine badge row */
.engine-row { display: flex; justify-content: flex-end; }
.engine-badge {
  font-size: .72rem; font-weight: 500; color: var(--muted);
  padding: 4px 14px; border-radius: 9999px; cursor: default;
}
.engine-badge.ai { color: var(--accent); }

/* Textarea */
textarea {
  width: 100%; min-height: 185px; resize: vertical;
  background: rgba(0,0,0,.28); border: 1px solid var(--border);
  border-radius: 12px; color: white;
  padding: 12px 14px; font-family: 'Barlow', sans-serif;
  font-size: .87rem; font-weight: 300; line-height: 1.72;
  outline: none; transition: border-color .2s, box-shadow .2s;
}
textarea::placeholder { color: rgba(255,255,255,.2); }
textarea:focus { border-color: rgba(139,124,248,.5); box-shadow: 0 0 0 3px rgba(139,124,248,.1); }

/* Sample JD Chips */
.sample-label {
  font-size: .72rem; font-weight: 500; color: var(--subtle);
  text-transform: uppercase; letter-spacing: .05em;
}
.sample-chips {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
}
.sample-chip {
  font-family: 'Barlow', sans-serif;
  font-size: .73rem; font-weight: 500;
  padding: 4px 13px; border-radius: 9999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color: var(--muted); cursor: pointer;
  transition: all .18s ease; white-space: nowrap;
}
.sample-chip:hover {
  border-color: rgba(139,124,248,.5);
  background: rgba(139,124,248,.1);
  color: var(--text);
}
.sample-chip.active {
  border-color: rgba(139,124,248,.7);
  background: rgba(139,124,248,.18);
  color: var(--accent);
  box-shadow: 0 0 8px rgba(139,124,248,.25);
}

/* Upload Zone */
.upload-zone {
  display: flex; flex-direction: column; align-items: center;
  gap: 8px; padding: 22px 16px;
  border: 1.5px dashed rgba(255,255,255,.1); border-radius: 12px;
  cursor: pointer; transition: all .2s;
}
.upload-zone input { display: none; }
.upload-zone:hover, .upload-zone.drag-over {
  border-color: rgba(139,124,248,.45); background: rgba(139,124,248,.055);
}
.upload-icon-wrap {
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(139,124,248,.1); border: 1px solid rgba(139,124,248,.2);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); transition: background .2s;
}
.upload-zone:hover .upload-icon-wrap { background: rgba(139,124,248,.2); }
.upload-text { font-size: .84rem; font-weight: 300; color: var(--subtle); }
.upload-chips { display: flex; gap: 6px; margin-top: 1px; }
.upload-chips span {
  font-size: .67rem; padding: 2px 9px; border-radius: 9999px;
  border: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.3);
}

/* Provider Tabs */
.provider-tabs {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
}
.provider-tab {
  font-family: 'Barlow', sans-serif;
  display: flex; align-items: center; gap: 9px;
  padding: 10px 12px; border-radius: 12px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.03);
  cursor: pointer; transition: all .18s ease; text-align: left;
}
.provider-tab:hover {
  border-color: rgba(255,255,255,.22);
  background: rgba(255,255,255,.07);
}
.provider-tab.active {
  border-color: rgba(139,124,248,.6);
  background: rgba(139,124,248,.12);
  box-shadow: 0 0 12px rgba(139,124,248,.18);
}
.provider-icon {
  width: 30px; height: 30px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: .95rem; flex-shrink: 0; color: white;
}
.provider-info {
  display: flex; flex-direction: column; gap: 1px;
}
.provider-name {
  font-size: .8rem; font-weight: 600; color: var(--text); line-height: 1;
}
.provider-desc {
  font-size: .65rem; font-weight: 300; color: var(--subtle); line-height: 1;
}
.provider-tab.active .provider-name { color: var(--accent); }
.provider-tab.active .provider-desc  { color: rgba(139,124,248,.65); }

/* Resume Badge */
.resume-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .72rem; padding: 3px 10px; border-radius: 9999px;
  background: rgba(16,217,144,.08); border: 1px solid rgba(16,217,144,.22);
  color: var(--success);
}

/* Collapse */
.collapse-header {
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer; user-select: none;
}
.collapse-title { font-size: .87rem; font-weight: 600; color: var(--text); }
.collapse-arrow { color: var(--subtle); transition: transform .25s; display: flex; align-items: center; }
.collapse-header.open .collapse-arrow { transform: rotate(180deg); }
.collapse-body { overflow: hidden; max-height: 0; transition: max-height .3s ease; }
.collapse-body.open { max-height: 250px; }
.collapse-inner {
  padding-top: 15px; display: flex; flex-direction: column; gap: 14px;
  border-top: 1px solid rgba(255,255,255,.06); margin-top: 14px;
}
.tag-opt {
  font-size: .6rem; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; padding: 2px 7px; border-radius: 9999px;
  border: 1px solid rgba(255,255,255,.1); color: var(--subtle);
}

/* Toggle */
.toggle-row {
  display: flex; align-items: center; gap: 10px;
  font-size: .87rem; font-weight: 300; color: var(--muted); cursor: pointer;
}
.toggle-wrap input { display: none; }
.toggle-track {
  display: inline-block; width: 38px; height: 22px;
  background: rgba(255,255,255,.12); border-radius: 9999px;
  position: relative; cursor: pointer; transition: background .2s;
}
.toggle-thumb {
  position: absolute; top: 3px; left: 3px;
  width: 16px; height: 16px; border-radius: 50%;
  background: rgba(255,255,255,.4); transition: transform .2s, background .2s;
}
#ai-toggle:checked + .toggle-track { background: var(--accent); }
#ai-toggle:checked + .toggle-track .toggle-thumb { transform: translateX(16px); background: white; }

/* Fields */
.field-group { display: flex; flex-direction: column; gap: 6px; }
.field-lbl { font-size: .78rem; font-weight: 500; color: var(--subtle); }
input[type=password], input[type=text] {
  width: 100%; background: rgba(0,0,0,.28); border: 1px solid var(--border);
  border-radius: 10px; color: white; padding: 9px 12px;
  font-family: 'Barlow', sans-serif; font-size: .87rem; font-weight: 300;
  outline: none; transition: border-color .2s, box-shadow .2s;
}
input:focus { border-color: rgba(139,124,248,.5); box-shadow: 0 0 0 3px rgba(139,124,248,.1); }
.field-hint { font-size: .72rem; color: rgba(255,255,255,.28); }

/* Buttons */
.action-row { display: flex; gap: 10px; }
.btn-run {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 9999px;
  font-family: 'Barlow', sans-serif; font-size: .92rem; font-weight: 600;
  color: white; border: none; cursor: pointer;
  transition: transform .22s ease, box-shadow .22s ease;
}
.btn-run:hover { transform: translateY(-2px); box-shadow: 0 10px 36px rgba(139,124,248,.3); }
.btn-run:active { transform: translateY(0); }
.btn-run:disabled { opacity: .32; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-outline {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 11px 18px; border-radius: 9999px;
  font-family: 'Barlow', sans-serif; font-size: .87rem; font-weight: 500;
  color: var(--muted); background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.09); cursor: pointer; transition: all .2s;
}
.btn-outline:hover { color: white; border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.08); }

/* ── Result Panel ────────────────────────────────────────────── */
.result-panel {
  min-height: calc(100vh - 200px);
  position: sticky; top: 80px;
  max-height: calc(100vh - 110px); overflow-y: auto;
}
.result-panel::-webkit-scrollbar { width: 3px; }
.result-panel::-webkit-scrollbar-track { background: transparent; }
.result-panel::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 2px; }

/* ── Empty State ─────────────────────────────────────────────── */
.empty-state {
  display: flex; flex-direction: column; align-items: center;
  padding: 52px 24px; text-align: center; gap: 18px;
}
.empty-orb {
  position: relative; width: 124px; height: 124px;
  display: flex; align-items: center; justify-content: center;
}
.orb-ring {
  position: absolute; border-radius: 50%;
  border: 1px solid rgba(139,124,248,.28);
  animation: ring-pulse 3.2s ease-out infinite;
}
.r1 { inset: 0; }
.r2 { inset: 15px; border-color: rgba(139,124,248,.18); animation-delay: .65s; }
.r3 { inset: 30px; border-color: rgba(139,124,248,.1); animation-delay: 1.3s; }
.orb-core { font-size: 2.1rem; z-index: 1; }
@keyframes ring-pulse {
  0%,100%{ transform:scale(1); opacity:.8; }
  50%{ transform:scale(1.08); opacity:.3; }
}
.empty-title {
  font-family: 'Instrument Serif', serif; font-style: italic;
  font-size: 1.35rem; color: white;
}
.empty-desc {
  font-size: .87rem; font-weight: 300; color: var(--subtle); line-height: 1.8;
}
.empty-steps {
  display: flex; align-items: center; gap: 9px;
  flex-wrap: wrap; justify-content: center; margin-top: 6px;
}
.e-step { display: flex; align-items: center; gap: 6px; font-size: .75rem; color: var(--subtle); }
.e-num {
  width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0;
  background: var(--accent-dim); border: 1px solid rgba(139,124,248,.28);
  color: var(--accent); font-size: .67rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.e-arr { font-size: .75rem; color: rgba(255,255,255,.18); }

/* ── Loading / Error ─────────────────────────────────────────── */
.status-bar {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 44px 24px; font-size: .9rem; font-weight: 300; color: var(--muted);
}
.spinner {
  width: 22px; height: 22px; flex-shrink: 0;
  border: 2.5px solid rgba(139,124,248,.15);
  border-top-color: var(--accent); border-radius: 50%;
  animation: spin .65s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.error-bar {
  background: rgba(248,113,113,.07); border: 1px solid rgba(248,113,113,.2);
  border-radius: 12px; padding: 12px 16px;
  color: var(--danger); font-size: .87rem; font-weight: 300;
}

/* ── Score Header ────────────────────────────────────────────── */
.score-header {
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  margin-bottom: 28px; padding: 20px;
  background: rgba(0,0,0,.22); border: 1px solid rgba(255,255,255,.06); border-radius: 16px;
}
.score-ring-wrap { position: relative; width: 128px; height: 128px; flex-shrink: 0; }
.score-ring-wrap svg { transform: rotate(-90deg); }
.score-ring-track { fill: none; stroke: rgba(255,255,255,.05); stroke-width: 9; }
.score-ring-fill {
  fill: none; stroke-width: 9; stroke-linecap: round;
  transition: stroke-dashoffset 1.5s cubic-bezier(.4,0,.2,1);
  filter: drop-shadow(0 0 9px currentColor);
}
.score-ring-text {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.score-ring-text .num {
  font-family: 'Instrument Serif', serif; font-style: italic;
  font-size: 2.6rem; line-height: 1;
}
.score-ring-text .label {
  font-size: .64rem; color: var(--subtle); margin-top: 3px; letter-spacing: .05em;
}
.score-summary { flex: 1; min-width: 0; }
.score-summary h2 {
  font-family: 'Instrument Serif', serif; font-style: italic;
  font-size: 1.42rem; color: white; margin-bottom: 6px; line-height: 1.2;
}
.jd-meta { font-size: .79rem; font-weight: 300; color: var(--subtle); line-height: 1.7; }
.score-badges { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 11px; }
.grade-badge {
  display: inline-flex; align-items: center;
  padding: 4px 12px; border-radius: 9999px; font-size: .78rem; font-weight: 600;
}
.grade-S { background:rgba(16,217,144,.09);  color:var(--success); border:1px solid rgba(16,217,144,.22); }
.grade-A { background:rgba(139,124,248,.09); color:var(--accent);  border:1px solid rgba(139,124,248,.22); }
.grade-B { background:rgba(245,158,11,.08);  color:var(--warn);    border:1px solid rgba(245,158,11,.2); }
.grade-C { background:rgba(248,113,113,.08); color:var(--danger);  border:1px solid rgba(248,113,113,.18); }
.engine-tag {
  display: inline-flex; align-items: center;
  font-size: .7rem; padding: 3px 10px; border-radius: 9999px;
  border: 1px solid var(--border); color: var(--subtle);
}
.engine-tag.ai { border-color: rgba(139,124,248,.25); color: var(--accent); }

/* ── Section Title ───────────────────────────────────────────── */
.section-title {
  font-size: .66rem; font-weight: 600; letter-spacing: .09em;
  text-transform: uppercase; color: var(--subtle); margin-bottom: 12px;
}

/* ── Dimension Bars ──────────────────────────────────────────── */
.dim-bars { display: flex; flex-direction: column; gap: 15px; }
.dim-row { display: flex; align-items: center; gap: 11px; }
.dim-label { width: 52px; font-size: .78rem; color: var(--subtle); text-align: right; flex-shrink: 0; }
.dim-bar-bg { flex: 1; height: 5px; background: rgba(255,255,255,.05); border-radius: 9999px; overflow: hidden; }
.dim-bar-fill { height: 100%; border-radius: 9999px; transition: width 1.15s cubic-bezier(.4,0,.2,1); }
.dim-score { width: 30px; font-size: .8rem; font-weight: 700; text-align: right; flex-shrink: 0; }
.dim-reason { font-size: .71rem; font-weight: 300; color: rgba(255,255,255,.28); margin-top: 4px; padding-left: 63px; }

/* ── Skill Tags ──────────────────────────────────────────────── */
.skill-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 3px; }
.skill-tag {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 12px; border-radius: 9999px;
  font-size: .75rem; font-weight: 500; border: 1px solid;
  transition: transform .15s;
}
.skill-tag:hover { transform: translateY(-1px); }
.skill-tag.match { background:rgba(16,217,144,.06); color:var(--success); border-color:rgba(16,217,144,.2); }
.skill-tag.miss  { background:rgba(248,113,113,.05); color:var(--danger);  border-color:rgba(248,113,113,.16); }

/* ── Insights ────────────────────────────────────────────────── */
.insights-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 700px) { .insights-grid { grid-template-columns: 1fr; } }
.insight-list { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.insight-list li {
  display: flex; align-items: flex-start; gap: 9px;
  font-size: .83rem; font-weight: 300; padding: 9px 12px;
  border-radius: 12px; background: rgba(0,0,0,.2);
  border: 1px solid rgba(255,255,255,.05); line-height: 1.55;
  color: rgba(255,255,255,.78);
}
.insight-list.strength li { border-left: 2px solid var(--success); }
.insight-list.suggest  li { border-left: 2px solid var(--warn); }
.insight-icon { flex-shrink: 0; font-size: .82rem; margin-top: 1px; }

/* ── AI Block ────────────────────────────────────────────────── */
.ai-block {
  padding: 16px 18px;
  background: linear-gradient(135deg, rgba(139,124,248,.06), rgba(0,229,184,.04));
  border: 1px solid rgba(139,124,248,.14); border-radius: 14px;
}
.ai-label {
  font-size: .64rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 8px;
}
.ai-block p { font-size: .86rem; font-weight: 300; line-height: 1.8; color: rgba(255,255,255,.78); }

/* ── FAQ Section ─────────────────────────────────────────────── */
.faq-section {
  position: relative; z-index: 2;
  padding: 80px 24px 100px; max-width: 760px; margin: 0 auto;
}
.faq-title {
  font-size: 2rem; color: white; margin-bottom: 32px; text-align: center;
}
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  border-radius: 14px; overflow: hidden;
}
.faq-item summary {
  font-size: .9rem; font-weight: 500; color: var(--text);
  padding: 16px 20px; cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; font-size: 1.2rem; color: var(--subtle);
  transition: transform .2s, color .2s; flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(45deg); color: var(--accent); }
.faq-item[open] summary { color: var(--accent); }
.faq-item p {
  font-size: .85rem; font-weight: 300; line-height: 1.8;
  color: rgba(255,255,255,.65); padding: 0 20px 18px;
}

/* ── Misc ────────────────────────────────────────────────────── */
hr { border: none; border-top: 1px solid rgba(255,255,255,.06); margin: 20px 0; }
.chart-wrap { position: relative; height: 200px; margin-top: 6px; }
.card-title {
  font-size: .66rem; font-weight: 600; letter-spacing: .09em;
  text-transform: uppercase; color: var(--subtle); margin-bottom: 11px;
}
.card-title.accent { color: var(--accent); }

/* ══════════════════════════════════════════════════════════════
   Harny — Akita Puppy Mascot & Onboarding Widget
   ══════════════════════════════════════════════════════════════ */

.harny-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.5s ease, transform 0.55s cubic-bezier(0.34,1.56,0.64,1);
  pointer-events: none;
}
.harny-widget > * { pointer-events: auto; }
.harny-widget.harny--visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Mascot icon container ───────────────────────────────────── */
.harny-icon {
  cursor: pointer;
  width: 92px;
  height: 100px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  filter: drop-shadow(0 0 20px rgba(255,140,80,0.55)) drop-shadow(0 6px 18px rgba(0,0,0,0.5));
  transition: filter 0.2s ease;
  animation: harny-float 3.5s ease-in-out infinite;
  will-change: transform;
}
.harny-icon:hover {
  filter: drop-shadow(0 0 26px rgba(224,120,69,0.75)) drop-shadow(0 6px 16px rgba(0,0,0,0.45));
}
.harny-icon svg {
  display: block;
  transition: transform 0.18s ease;
}
.harny-icon:hover svg { transform: scale(1.07); }

/* ── SVG inner animations ────────────────────────────────────── */
/* Tail wag — pivot at base of curly tail (SVG coords ~68,76) */
.ht-tail {
  transform-box: view-box;
  transform-origin: 68px 76px;
  animation: harny-tail 1.6s ease-in-out infinite;
}
/* Eye blink — pivot at eye-row center */
.he-normal {
  transform-box: view-box;
  transform-origin: 50px 46px;
  animation: harny-blink 5s infinite;
}

/* Hidden expression groups */
.he-happy, .he-analyzing, .he-sad { display: none; }
.hm-happy, .hm-sad                { display: none; }

/* ── Keyframes ───────────────────────────────────────────────── */
@keyframes harny-float {
  0%,100% { transform: translateY(0)    rotate(-1.5deg); }
  50%     { transform: translateY(-11px) rotate(1.5deg); }
}
@keyframes harny-tail {
  0%,100% { transform: rotate(-14deg); }
  50%     { transform: rotate(14deg);  }
}
@keyframes harny-blink {
  0%,86%,100% { transform: scaleY(1);    }
  91%         { transform: scaleY(0.07); }
}
@keyframes harny-jump {
  0%       { transform: translateY(0)    rotate(0deg); }
  22%      { transform: translateY(-20px) rotate(4deg); }
  44%      { transform: translateY(-6px)  rotate(-2deg); }
  66%      { transform: translateY(-16px) rotate(3deg); }
  82%      { transform: translateY(-4px)  rotate(-1deg); }
  100%     { transform: translateY(0)    rotate(0deg); }
}
@keyframes harny-wobble {
  0%,100% { transform: rotate(-5deg) translateY(-4px); }
  50%     { transform: rotate(5deg)  translateY(-4px); }
}
@keyframes harny-sway {
  0%,100% { transform: translateX(0)  rotate(-1.5deg); }
  33%     { transform: translateX(-7px) rotate(-3deg); }
  66%     { transform: translateX(7px)  rotate(0deg); }
}

/* ── Expression states ───────────────────────────────────────── */
.harny-widget.harny--happy .harny-icon {
  animation: harny-jump 0.75s cubic-bezier(0.34,1.56,0.64,1) 3,
             harny-float 3.5s ease-in-out 2.25s infinite;
}
.harny-widget.harny--happy .ht-tail  { animation: harny-tail 0.45s ease-in-out infinite; }
.harny-widget.harny--happy .he-normal { display: none; }
.harny-widget.harny--happy .he-happy  { display: block; }
.harny-widget.harny--happy .hm-normal { display: none; }
.harny-widget.harny--happy .hm-happy  { display: block; }

.harny-widget.harny--analyzing .harny-icon {
  animation: harny-wobble 1.1s ease-in-out infinite;
}
.harny-widget.harny--analyzing .he-normal    { display: none; }
.harny-widget.harny--analyzing .he-analyzing { display: block; }

.harny-widget.harny--sad .harny-icon {
  animation: harny-sway 2.2s ease-in-out infinite;
}
.harny-widget.harny--sad .he-normal { display: none; }
.harny-widget.harny--sad .he-sad    { display: block; }
.harny-widget.harny--sad .hm-normal { display: none; }
.harny-widget.harny--sad .hm-sad    { display: block; }

/* Excited — energetic bounce (used briefly for transitions) */
.harny-widget.harny--excited .harny-icon {
  animation: harny-bounce 0.45s cubic-bezier(0.34,1.56,0.64,1) infinite;
}
@keyframes harny-bounce {
  0%,100% { transform: translateY(0)    scale(1); }
  50%     { transform: translateY(-10px) scale(1.06); }
}

/* Brief micro-reactions: applied to inner SVG so container's
   float animation keeps running underneath. */
.harny-widget.harny--tilt   .harny-icon svg { animation: harny-tilt-svg   0.9s ease-in-out; }
.harny-widget.harny--twitch .harny-icon svg { animation: harny-twitch-svg 0.7s ease-in-out; }
.harny-widget.harny--pet    .harny-icon svg { animation: harny-pet-svg    0.65s ease-in-out; }

@keyframes harny-tilt-svg {
  0%,100% { transform: rotate(0); }
  30%     { transform: rotate(-12deg); }
  65%     { transform: rotate(8deg); }
}
@keyframes harny-twitch-svg {
  0%,100% { transform: scale(1) translateY(0); }
  40%     { transform: scale(1.04) translateY(-2px) rotate(2deg); }
  70%     { transform: scale(1.02) translateY(-1px) rotate(-2deg); }
}
@keyframes harny-pet-svg {
  0%,100% { transform: rotate(0)   scale(1); }
  20%     { transform: rotate(-10deg) scale(1.10); }
  50%     { transform: rotate(8deg)   scale(1.13); }
  80%     { transform: rotate(-4deg)  scale(1.07); }
}

/* ── Minimized state ─────────────────────────────────────────── */
.harny-widget.harny--minimized .harny-bubble { display: none !important; }
.harny-widget.harny--minimized .harny-icon {
  width: 60px;
  height: 70px;
  animation: harny-float 4s ease-in-out infinite;
}
.harny-widget.harny--minimized .harny-icon svg {
  width: 60px;
  height: 70px;
}

/* ── Chat bubble ─────────────────────────────────────────────── */
.harny-bubble {
  position: relative;
  background: rgba(10,7,24,0.92);
  border: 1px solid rgba(139,124,248,0.32);
  border-radius: 18px 18px 4px 18px;
  padding: 13px 15px 11px;
  max-width: 228px;
  min-width: 192px;
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  box-shadow:
    0 8px 32px rgba(0,0,0,0.6),
    0 0 0 1px rgba(255,255,255,0.04),
    inset 0 1px 0 rgba(255,255,255,0.07);
  animation: harny-bubble-in 0.45s cubic-bezier(0.34,1.56,0.64,1) both;
}
/* Pointer triangle at bottom-right */
.harny-bubble::after {
  content: '';
  position: absolute;
  bottom: -8px;
  right: 24px;
  width: 0; height: 0;
  border-left: 8px solid transparent;
  border-right: 0px solid transparent;
  border-top: 8px solid rgba(139,124,248,0.32);
}
.harny-bubble::before {
  content: '';
  position: absolute;
  bottom: -7px;
  right: 25px;
  width: 0; height: 0;
  border-left: 7px solid transparent;
  border-right: 0px solid transparent;
  border-top: 7px solid rgba(10,7,24,0.92);
  z-index: 1;
}

@keyframes harny-bubble-in {
  from { opacity: 0; transform: scale(0.55) translateY(14px); }
  to   { opacity: 1; transform: scale(1)    translateY(0);    }
}

.harny-msg {
  font-size: 13px;
  line-height: 1.58;
  color: rgba(255,255,255,0.9);
  margin-bottom: 10px;
  font-family: 'Barlow','PingFang SC',sans-serif;
}
.harny-msg b   { color: #a89ef8; font-weight: 600; }
.harny-msg small { font-size: 11px; }

.harny-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.harny-btn-primary {
  background: linear-gradient(135deg, #8b7cf8 0%, #6554e0 100%);
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 7px 16px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.3px;
  font-family: 'Barlow', sans-serif;
  transition: opacity 0.18s, transform 0.15s;
}
.harny-btn-primary:hover  { opacity: 0.82; transform: scale(1.05); }
.harny-btn-primary:active { transform: scale(0.96); }

.harny-btn-skip {
  background: none;
  border: none;
  color: rgba(255,255,255,0.35);
  font-size: 11.5px;
  cursor: pointer;
  padding: 4px 2px;
  font-family: 'Barlow', sans-serif;
  transition: color 0.18s;
}
.harny-btn-skip:hover { color: rgba(255,255,255,0.65); }

/* ── Mobile ──────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .harny-widget { bottom: 16px; right: 16px; }
  .harny-icon   { width: 72px; height: 82px; }
  .harny-icon svg { width: 72px !important; height: 82px !important; }
  .harny-bubble { max-width: 200px; min-width: 168px; }
  .harny-msg    { font-size: 12px; }
}

/* ══ NEW badge ══════════════════════════════════════════════════ */
.nav-new {
  display: inline-block;
  font-family: 'Barlow', sans-serif;
  font-size: .55rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  background: #ef4444; color: #fff;
  padding: 1px 5px; border-radius: 999px;
  vertical-align: middle; line-height: 1.6;
  animation: new-pulse 2.2s ease-in-out infinite;
}
.section-new {
  font-family: 'Barlow', sans-serif;
  font-size: .6rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  background: #ef4444; color: #fff;
  padding: 3px 9px; border-radius: 999px;
  vertical-align: middle; line-height: 1.6;
  animation: new-pulse 2.2s ease-in-out infinite;
}
@keyframes new-pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(239,68,68,.55); }
  50%      { box-shadow: 0 0 0 5px rgba(239,68,68,0); }
}

/* ══ Remote Work Hub Section ════════════════════════════════════ */
.remote-section {
  position: relative; z-index: 2;
  padding: 60px 32px 100px;
  max-width: 1100px; margin: 0 auto;
}
.remote-inner { display: flex; flex-direction: column; gap: 28px; }

/* Header */
.remote-header { text-align: center; }
.remote-heading {
  font-family: 'Instrument Serif', serif; font-style: italic;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.1; letter-spacing: -1px; color: white;
  margin-bottom: 12px;
}
.remote-sub {
  font-size: .95rem; font-weight: 300;
  color: var(--muted); max-width: 480px; margin: 0 auto;
}

/* Trend callout */
.remote-trend-box {
  border-left: 3px solid var(--accent);
  border-radius: 16px; padding: 20px 24px;
}
.remote-trend-label {
  font-size: .76rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .09em; color: var(--accent); margin-bottom: 14px;
}
.remote-label-chips {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.remote-label-chip {
  font-family: 'Barlow', sans-serif;
  font-size: .73rem; font-weight: 500;
  padding: 4px 13px; border-radius: 9999px;
  border: 1px solid rgba(139,124,248,.35);
  background: rgba(139,124,248,.08);
  color: rgba(255,255,255,.72);
  white-space: nowrap;
}

/* Filter tabs row */
.remote-filter-row {
  display: flex; flex-wrap: wrap; gap: 7px;
}

/* Platform grid */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 900px) {
  .platform-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .platform-section { padding: 40px 16px 80px; }
  .platform-grid { grid-template-columns: 1fr; }
}

/* Platform card */
.platform-card {
  display: flex; flex-direction: column; gap: 10px;
  padding: 18px; border-radius: 16px;
  transition: transform .22s ease, border-color .2s;
}
.platform-card:hover { transform: translateY(-4px); border-color: var(--border-hi); }
.platform-card.hidden { display: none !important; }

.platform-card-top {
  display: flex; align-items: center; gap: 10px;
}
.platform-icon {
  width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
  background: rgba(255,255,255,.07);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem; line-height: 1;
}
.platform-name {
  font-size: .95rem; font-weight: 600; color: var(--text);
}
.platform-tag-row {
  display: flex; flex-wrap: wrap; gap: 5px;
}
.platform-tag {
  font-family: 'Barlow', sans-serif;
  font-size: .68rem; font-weight: 500;
  padding: 2px 9px; border-radius: 9999px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.04);
  color: var(--subtle); white-space: nowrap;
}
.platform-desc {
  font-size: .8rem; font-weight: 300; line-height: 1.65;
  color: var(--muted); flex: 1;
}
.platform-link {
  display: flex; align-items: center; justify-content: center;
  gap: 5px; margin-top: auto; text-decoration: none;
  font-size: .82rem;
}

/* ── Status tag variants (游民社区 tab) ───────────────────────── */
.platform-tag.tag-open {
  background: rgba(16,217,144,.08);
  color: var(--success);
  border-color: rgba(16,217,144,.22);
}
.platform-tag.tag-beta {
  background: rgba(245,158,11,.08);
  color: var(--warn);
  border-color: rgba(245,158,11,.22);
}

/* ── Tab count badge ─────────────────────────────────────────── */
.tab-count {
  display: inline-block;
  font-size: .6rem; font-weight: 600;
  background: rgba(255,255,255,.12);
  color: var(--muted);
  padding: 0 5px; border-radius: 999px;
  margin-left: 4px; vertical-align: middle;
  line-height: 1.65;
}
.sample-chip.active .tab-count {
  background: rgba(139,124,248,.2);
  color: var(--accent);
}

/* ── Category description bar ───────────────────────────────── */
.remote-cat-desc {
  padding: 10px 16px;
  border-radius: 12px;
  background: rgba(139,124,248,.06);
  border: 1px solid rgba(139,124,248,.14);
  font-size: .82rem; color: var(--muted);
  line-height: 1.55;
}
.remote-cat-desc[hidden] { display: none; }

/* ── In-grid section divider (游民社区 in 全部 view) ─────────── */
.grid-section-label {
  grid-column: 1 / -1;
  display: flex; align-items: center; gap: 10px;
  padding: 14px 0 4px;
  border-top: 1px solid var(--border);
  font-size: .82rem; font-weight: 600; color: var(--accent);
}
.grid-section-label.hidden { display: none; }
.grid-section-sub {
  font-weight: 300; color: var(--muted); font-size: .78rem;
}
