/* ============================================================================
   ARNOUR — DESIGN SYSTEM (LinkedIn-inspired)
   ============================================================================ */

:root {
  --blue: #0A66C2;
  --blue-dark: #004182;
  --blue-darker: #00305e;
  --blue-soft: #E8F0F9;
  --bg: #F4F2EE;
  --card: #ffffff;
  --line: #E0E0E0;
  --line-soft: #EFEDE9;
  --ink: #191919;
  --mut: #666666;
  --green-bg: #D9F2E3;
  --green-ink: #1D6F42;
  --amber-bg: #FFF3D6;
  --amber-ink: #8A6100;
  --red: #CC1016;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(0,0,0,.05);
  --shadow-lg: 0 8px 24px rgba(0,0,0,.12);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { margin: 0 0 8px; line-height: 1.2; font-weight: 700; }
h1 { font-size: 28px; } h2 { font-size: 21px; } h3 { font-size: 16px; } h4 { font-size: 14px; }
p { margin: 0 0 10px; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; }
#app { min-height: 100vh; display: flex; flex-direction: column; }

.muted { color: var(--mut); }
.small { font-size: 12px; }
.center { text-align: center; }
.grow { flex: 1; }
.mt8 { margin-top: 8px; } .mt16 { margin-top: 16px; }

/* ------------------------------ layout ------------------------------ */

.main { flex: 1; width: 100%; max-width: 1120px; margin: 0 auto; padding: 24px 20px 64px; }
.narrow { max-width: 760px; margin: 0 auto; width: 100%; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.dash-grid { display: grid; grid-template-columns: 340px 1fr; gap: 20px; align-items: start; }
.dash-grid aside { display: flex; flex-direction: column; gap: 16px; }

.page-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.page-head h2 { margin: 0; }
.page-head p { margin: 0; }
.page-head .btn { margin-left: auto; }
.page-title { margin: 4px 0 16px; }
.crumb { margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }

/* ------------------------------ cards ------------------------------ */

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}
.card-h {
  display: flex; align-items: center; gap: 8px;
  font-weight: 700; margin-bottom: 12px; font-size: 14px;
}
.card-h .link { margin-left: auto; }
.empty { padding: 28px 16px; text-align: center; color: var(--mut); }
.empty.small { padding: 18px 12px; }

/* ------------------------------ buttons ------------------------------ */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 18px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 14px; cursor: pointer; text-decoration: none !important;
  background: none; color: var(--ink); white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s;
}
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); }
.btn-outline { border-color: #C9D6E3; color: var(--blue-dark); background: #fff; }
.btn-outline:hover { background: var(--blue-soft); text-decoration: none; }
.btn-ghost { color: var(--blue-dark); }
.btn-ghost:hover { background: var(--blue-soft); text-decoration: none; }
.btn-light { background: #fff; color: var(--blue-dark); }
.btn-light:hover { background: #EAF2FA; }
.btn-outline-light { border-color: rgba(255,255,255,.65); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,.12); }
.btn-lg { padding: 12px 24px; font-size: 15px; }
.btn-sm { padding: 6px 13px; font-size: 13px; }
.btn-block { width: 100%; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line);
  background: #fff; color: var(--mut); cursor: pointer; flex: none;
}
.icon-btn:hover { background: var(--blue-soft); color: var(--blue-dark); }
.icon-btn:disabled { opacity: .4; cursor: not-allowed; }
.link { background: none; border: none; color: var(--blue); cursor: pointer; font-size: 13px; font-weight: 600; padding: 0; }
.link:hover { text-decoration: underline; }

/* ------------------------------ chips / pills ------------------------------ */

.chip {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--blue-soft); color: var(--blue-dark);
  padding: 4px 11px; border-radius: 999px; font-size: 12px; font-weight: 600;
  border: 1px solid transparent; cursor: default;
}
.chip em { font-style: normal; opacity: .75; font-weight: 700; }
button.chip { cursor: pointer; }
.chip.chip-on { background: var(--blue); color: #fff; }
.chip.req { background: #F1EFEA; color: #444; }
.chip-wrap { display: flex; flex-wrap: wrap; gap: 7px; }
.pill {
  display: inline-block; background: var(--blue-soft); color: var(--blue-dark);
  font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 999px;
  vertical-align: middle;
}
.pill.muted-pill { background: #ECEAE5; color: var(--mut); }

/* ------------------------------ avatars ------------------------------ */

.avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%; color: #fff;
  font-weight: 700; font-size: 15px; flex: none; user-select: none;
}
.avatar.lg { width: 52px; height: 52px; font-size: 18px; }
.avatar.xl { width: 64px; height: 64px; font-size: 22px; }
button.avatar { border: none; cursor: pointer; background-image: none; }
.av-0 { background: #0A66C2; } .av-1 { background: #5B4ACF; }
.av-2 { background: #0F7B6C; } .av-3 { background: #B3541E; }
.av-4 { background: #8A2D5C; } .av-5 { background: #4E5BA6; }
.av-6 { background: #1F7A4D; } .av-7 { background: #7A6A2F; }

/* ------------------------------ navbar ------------------------------ */

.nav { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.nav-inner {
  max-width: 1120px; margin: 0 auto; padding: 0 20px; height: 58px;
  display: flex; align-items: center; gap: 16px;
}
.nav.pub .nav-inner { justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 19px; color: var(--ink); text-decoration: none !important; letter-spacing: -.2px; }
.brand.sm { font-size: 15px; }
.brand-logo {
  width: 30px; height: 30px; border-radius: 8px; color: transparent; flex: none;
  background-color: #fff;
  background-image: url('../assets/logo.png'), linear-gradient(135deg, var(--blue), var(--blue-darker));
  background-size: contain, cover;
  background-position: center;
  background-repeat: no-repeat;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 17px;
}
.brand-logo.lg { width: 46px; height: 46px; border-radius: 12px; font-size: 24px; }
.brand-logo.xl { width: 58px; height: 58px; border-radius: 14px; font-size: 30px; }
.nav-search {
  flex: 1; max-width: 420px; display: flex; align-items: center; gap: 8px;
  background: var(--bg); border: 1px solid transparent; border-radius: 999px; padding: 8px 14px;
}
.nav-search:focus-within { border-color: var(--blue); background: #fff; }
.nav-search-ico { color: var(--mut); display: inline-flex; }
.nav-search input { border: none; background: none; outline: none; width: 100%; font-size: 13.5px; color: var(--ink); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.nav-ico {
  position: relative; background: none; border: none; color: var(--ink);
  width: 40px; height: 40px; border-radius: 8px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.nav-ico:hover { background: var(--bg); }
.nav-ico .badge, .conv-meta .badge {
  position: absolute; top: 3px; right: 2px; background: var(--blue); color: #fff;
  font-size: 10.5px; font-weight: 700; min-width: 17px; height: 17px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center; padding: 0 4px;
}
.nav-user { position: relative; margin-left: 4px; }
.nav-user .avatar { width: 38px; height: 38px; font-size: 14px; border-radius: 50%; box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--line); }
.menu {
  display: none; position: absolute; right: 0; top: 48px; width: 240px;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: var(--shadow-lg); padding: 8px; z-index: 60;
}
.menu.open { display: block; }
.menu-head { padding: 8px 10px 10px; border-bottom: 1px solid var(--line-soft); margin-bottom: 6px; }
.menu-head small { display: block; color: var(--mut); margin-top: 2px; }
.menu-item {
  display: block; width: 100%; text-align: left; padding: 9px 10px; border-radius: 7px;
  border: none; background: none; color: var(--ink); font-size: 13.5px; cursor: pointer;
}
.menu-item:hover { background: var(--bg); text-decoration: none; }
.menu-item.danger { color: var(--red); }

/* notifications */
.notif-panel {
  display: none; position: fixed; right: 16px; top: 58px; width: 360px; max-height: 70vh;
  overflow: auto; background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow-lg); z-index: 70; padding: 8px;
}
.notif-panel.open { display: block; }
.notif { display: flex; gap: 10px; padding: 10px; border-radius: 8px; align-items: flex-start; }
.notif[data-action] { appearance: none; -webkit-appearance: none; background: none; border: 0; font: inherit; color: inherit; text-align: left; width: 100%; cursor: pointer; }
.notif[data-action]:hover { background: #EAF2FB; }
.notif.unread { background: #F5F9FE; }
.notif.mini { padding: 8px; }
.notif-ico {
  width: 30px; height: 30px; border-radius: 50%; background: var(--blue-soft); color: var(--blue-dark);
  display: inline-flex; align-items: center; justify-content: center; flex: none;
}
.notif-ico.n-app { background: var(--green-bg); color: var(--green-ink); }
.notif-tt { flex: 1; min-width: 0; }
.notif-tt p { margin: 0; font-size: 13px; }
.notif-tt small { color: var(--mut); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); flex: none; margin-top: 6px; }

/* ------------------------------ forms ------------------------------ */

.field { display: block; margin-bottom: 14px; }
.label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 6px; }
.field-hint { display: flex; align-items: center; gap: 6px; color: var(--mut); font-size: 12.5px; margin: 0 0 10px; }
.input {
  width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px;
  font: inherit; font-size: 13.5px; background: #fff; color: var(--ink); outline: none;
}
.input:focus { border-color: var(--blue); box-shadow: 0 0 0 2px rgba(10,102,194,.18); }
.input.sm { width: auto; min-width: 110px; padding: 7px 10px; font-size: 13px; }
select.input { appearance: auto; }
textarea.input { resize: vertical; }
.form-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 14px; }
.checkbox-field { display: flex; align-items: center; gap: 8px; }
.checkbox-field input { width: 16px; height: 16px; accent-color: var(--blue); }

.seg { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; width: fit-content; }
.seg-item {
  border: none; background: #fff; padding: 7px 16px; cursor: pointer; font-size: 13px; font-weight: 600;
  color: var(--mut);
}
.seg-item + .seg-item { border-left: 1px solid var(--line); }
.seg-item.active { background: var(--blue); color: #fff; }

.range { width: 100%; flex-basis: 100%; accent-color: var(--blue); }
.range-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0 10px; margin-bottom: 4px; }
.range-row output { font-weight: 700; color: var(--blue-dark); font-size: 13px; }

/* skill rows */
.skill-head { display: grid; grid-template-columns: 1fr 1fr 90px 34px; gap: 8px; padding: 0 2px 4px; text-transform: uppercase; letter-spacing: .4px; font-size: 10.5px; font-weight: 700; }
.skill-row { display: grid; grid-template-columns: 1fr 1fr 90px 34px; gap: 8px; margin-bottom: 8px; align-items: center; }
.skill-row .narrow { min-width: 0; }
.skill-row select { min-width: 0; }
.skill-head.with-cert, .skill-row.with-cert { grid-template-columns: 1fr 1fr 90px 56px 34px; }
.skill-cert { display: flex; align-items: center; justify-content: center; }
.skill-cert input { accent-color: var(--blue); width: 16px; height: 16px; cursor: pointer; margin: 0; }
.rate-box { display: flex; align-items: center; gap: 8px; }
.rate-box .input { flex: 1; min-width: 0; }
.rate-cur { flex: none; color: var(--mut); font-weight: 700; font-size: 13px; }
.skill-rows { margin: 6px 0 10px; }

/* CV */
.cv-box { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.cv-item {
  display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line);
  border-radius: 8px; padding: 8px 12px; font-size: 13px; background: #FAFAF8;
}
.cv-item.big { font-size: 14px; }
.cv-item em { font-style: normal; }
.cv-item.pending { border-color: var(--blue); background: var(--blue-soft); }
.cv-drop {
  display: inline-flex; align-items: center; gap: 8px; border: 1.5px dashed #B9C4CE;
  border-radius: 8px; padding: 10px 16px; cursor: pointer; color: var(--mut); font-weight: 600;
}
.cv-drop:hover { border-color: var(--blue); color: var(--blue-dark); background: var(--blue-soft); }
.cv-drop input { display: none; }
.small-drop { padding: 7px 12px; font-size: 13px; }
.review-box { border: 1px solid var(--line-soft); background: var(--bg); border-radius: 10px; padding: 12px 14px; margin-bottom: 14px; }

/* ------------------------------ landing ------------------------------ */

.hero {
  background:
    radial-gradient(900px 400px at 85% -10%, rgba(255,255,255,.18), transparent 60%),
    linear-gradient(135deg, #0A66C2 0%, #004182 55%, #002D5C 100%);
  color: #fff; padding: 72px 20px 84px; text-align: center;
}
.hero-inner { max-width: 780px; margin: 0 auto; }
.hero h1 { color: #fff; font-size: 44px; letter-spacing: -.8px; margin-bottom: 16px; }
.hero .hl { color: #A8D0F5; }
.hero-badge {
  display: inline-block; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3);
  padding: 5px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 600; margin-bottom: 18px;
}
.hero-sub { color: #D8E6F5; font-size: 16.5px; max-width: 620px; margin: 0 auto 26px; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; }
.hero-note { margin-top: 18px; font-size: 12.5px; color: rgba(255,255,255,.6); }
.hero-stats { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.stat-tile {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25);
  border-radius: 12px; padding: 12px 20px; min-width: 120px;
}
.stat-tile strong { display: block; font-size: 22px; }
.stat-tile small { color: #CFE2F3; }

.section { max-width: 1040px; margin: 0 auto; padding: 56px 20px; }
.section.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); max-width: none; }
.section.alt > * { max-width: 1040px; margin-left: auto; margin-right: auto; }
.section-head { margin-bottom: 24px; }
.section-head.center { text-align: center; }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.why-card h3 { margin-bottom: 6px; }
.why-card p { margin: 0; }
.why-ico {
  width: 42px; height: 42px; border-radius: 10px; background: var(--blue-soft); color: var(--blue);
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: 12px;
}
.how-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.how-title { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; margin-bottom: 14px; color: var(--blue-dark); }
.step { display: flex; gap: 12px; margin-bottom: 18px; }
.step-num {
  width: 26px; height: 26px; flex: none; border-radius: 50%; background: var(--blue); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px;
}
.step h4 { margin-bottom: 3px; }
.step p { margin: 0; font-size: 13px; }
.logo-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.logo-tile {
  border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 10px 18px;
  font-weight: 700; color: var(--mut); font-size: 13px;
}
.cta-band { background: linear-gradient(135deg, #0A66C2, #00386F); color: #fff; padding: 56px 20px; text-align: center; }
.cta-inner h2 { color: #fff; margin-bottom: 18px; font-size: 26px; }

/* ------------------------------ auth ------------------------------ */

.auth-wrap { display: flex; justify-content: center; padding-top: 8px; }
.auth-wrap.wide { display: block; }
.auth-card { max-width: 460px; width: 100%; text-align: center; }
.auth-card .brand-logo { margin: 0 auto 12px; }
.auth-card h1 { margin-bottom: 6px; }
.demo-acct {
  width: 100%; display: flex; align-items: center; gap: 12px; text-align: left;
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px;
  background: #fff; cursor: pointer; font: inherit;
}
.demo-acct:hover { border-color: var(--blue); background: #F7FAFD; }
.demo-acct span { flex: 1; display: flex; flex-direction: column; }
.demo-acct small { color: var(--mut); }
.demo-arrow { color: var(--blue); font-weight: 700; }
.or { display: flex; align-items: center; gap: 12px; color: var(--mut); margin: 14px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-card .btn-block { margin-top: 4px; }

.role-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 860px; margin: 0 auto; }
.role-card { cursor: pointer; text-align: left; }
.role-card:hover { border-color: var(--blue); box-shadow: var(--shadow-lg); }
.role-ico {
  width: 46px; height: 46px; border-radius: 12px; background: var(--blue-soft); color: var(--blue);
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: 12px;
}
.role-card p { margin-bottom: 14px; }
.role-cta { color: var(--blue); font-weight: 700; }

/* ------------------------------ wizard ------------------------------ */

.wizard-wrap { max-width: 660px; margin: 0 auto; }
.wizard-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.wizard-card h2 { margin-bottom: 18px; }
.wiz-progress { display: flex; gap: 6px; margin-bottom: 20px; }
.wiz-step { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px; position: relative; }
.wiz-dot {
  width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 1.5px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: var(--mut);
}
.wiz-step small { font-size: 11px; color: var(--mut); }
.wiz-step.active .wiz-dot { border-color: var(--blue); background: var(--blue); color: #fff; }
.wiz-step.active small { color: var(--ink); font-weight: 600; }
.wiz-step.done .wiz-dot { border-color: var(--green-ink); background: var(--green-bg); color: var(--green-ink); }
.wiz-nav { display: flex; align-items: center; gap: 10px; margin-top: 20px; }

/* ------------------------------ dashboard / profile ------------------------------ */

.profile-card-top { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.profile-name { font-size: 18px; margin-bottom: 2px; }
.profile-meta { display: flex; flex-direction: column; gap: 5px; color: var(--mut); font-size: 13px; }
.profile-meta span { display: flex; align-items: center; gap: 6px; }
.profile-head-card { display: flex; gap: 16px; align-items: center; }
.profile-head-card .grow h2 { margin-bottom: 2px; }
.strength { margin-top: 14px; }
.strength-row { display: flex; justify-content: space-between; margin-bottom: 5px; }
.strength-bar { height: 6px; border-radius: 999px; background: var(--line-soft); overflow: hidden; }
.strength-bar span { display: block; height: 100%; border-radius: 999px; background: var(--blue); }

.feed-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.feed-head h2, .feed-head h3 { margin: 0; }
.feed-head .link { margin-left: auto; }
.feed-note { display: flex; align-items: center; gap: 6px; margin: 0 0 14px; }
.results-count { margin: 0 0 12px; }

/* ------------------------------ jobs ------------------------------ */

.job-card { margin-bottom: 14px; }
a.job-card { cursor: pointer; display: block; }
a.job-card:hover { border-color: var(--blue); }
.job-top { display: flex; gap: 12px; align-items: flex-start; }
.job-tt { flex: 1; min-width: 0; }
.job-tt h3 { margin-bottom: 2px; }
.job-tt p { margin: 0; }
.match {
  flex: none; font-size: 12px; font-weight: 700; padding: 4px 11px; border-radius: 999px; white-space: nowrap;
}
.match.m-strong { background: var(--green-bg); color: var(--green-ink); }
.match.m-mid { background: var(--amber-bg); color: var(--amber-ink); }
.match.m-low { background: #EFEDE9; color: var(--mut); }
.job-meta { display: flex; flex-wrap: wrap; gap: 14px; color: var(--mut); font-size: 13px; margin-top: 12px; }
.job-meta span { display: inline-flex; align-items: center; gap: 6px; }
.job-reqs { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.job-desc { color: #333; margin-top: 12px; font-size: 13.5px; }
.job-foot { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line-soft); }

.filter-bar { margin-bottom: 16px; }
.filter-inline { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat-card { text-align: left; padding: 14px 16px; text-decoration: none !important; }
.stat-card:hover { border-color: var(--blue); }
.stat-card strong { display: block; font-size: 22px; margin-bottom: 2px; }
.stat-card small { color: var(--mut); }
.app-item {
  display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line-soft);
  border-radius: 10px; margin-bottom: 10px; background: #fff; text-decoration: none !important; color: var(--ink);
}
a.app-item:hover { border-color: var(--blue); }
.app-item.wide { align-items: flex-start; }
.app-item strong { display: flex; gap: 6px; align-items: center; }
.app-item small { display: block; margin-top: 2px; }
.tip-card { display: flex; gap: 10px; align-items: flex-start; }
.tip-card .muted { margin: 4px 0 0; }

/* ------------------------------ talent ------------------------------ */

.talent-card { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 14px; }
.talent-mid { flex: 1; min-width: 0; }
.talent-mid h3 { margin-bottom: 2px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.talent-mid p { margin-bottom: 5px; }
.talent-skills { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 8px; }
.talent-side { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; width: 190px; }
.talent-rate { font-weight: 800; font-size: 16px; color: var(--ink); }
.talent-rate small { font-weight: 600; color: var(--mut); font-size: 12px; }

.search-layout { display: grid; grid-template-columns: 280px 1fr; gap: 20px; align-items: start; }
.filters { position: sticky; top: 74px; }
.filters .field { margin-bottom: 12px; }

/* ------------------------------ messaging ------------------------------ */

.inbox { display: grid; grid-template-columns: 320px 1fr; gap: 16px; height: calc(100vh - 170px); min-height: 480px; }
.conv-list { display: flex; flex-direction: column; overflow: hidden; }
.conv-list .card-h { margin-bottom: 6px; }
.conv-item {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  padding: 11px 10px; border: none; border-radius: 9px; background: none; cursor: pointer; font: inherit;
}
.conv-item:hover { background: var(--bg); }
.conv-item.active { background: var(--blue-soft); }
.conv-item .avatar { width: 38px; height: 38px; font-size: 13px; }
.conv-tt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.conv-tt strong { font-size: 13.5px; }
.conv-tt small { color: var(--mut); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv-tt small.unread-txt { color: var(--ink); font-weight: 600; }
.conv-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: 11px; color: var(--mut); }

.chat { display: flex; flex-direction: column; overflow: hidden; }
.chat-head {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px;
  border-bottom: 1px solid var(--line-soft);
}
.chat-head .avatar { width: 36px; height: 36px; font-size: 13px; }
.chat-head .icon-btn { margin-left: auto; }
.chat-head small { display: block; font-size: 12px; }
.chat-scroll { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px; background: #FAFAF8; }
.msg-row { display: flex; flex-direction: column; }
.msg-row.me { align-items: flex-end; }
.msg-row.them { align-items: flex-start; }
.msg-bubble { max-width: 72%; padding: 9px 13px; border-radius: 12px; font-size: 13.5px; }
.msg-row.them .msg-bubble { background: #fff; border: 1px solid var(--line); border-radius: 12px 12px 12px 4px; }
.msg-row.me .msg-bubble { background: var(--blue); color: #fff; border-radius: 12px 12px 4px 12px; }
.msg-cv { display: flex; gap: 9px; align-items: center; background: #fff !important; border: 1px solid var(--blue) !important; color: var(--ink) !important; }
.msg-cv span { display: flex; flex-direction: column; }
.msg-cv strong { font-size: 13px; }
.msg-cv small { color: var(--mut); }
.msg-ts { font-size: 10.5px; color: var(--mut); margin-top: 3px; padding: 0 4px; }
.chat-input {
  display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--line-soft);
}
.chat-input .input { flex: 1; }
.chat-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--mut); gap: 10px; }

/* ------------------------------ company ------------------------------ */

.co-banner { height: 84px; background: linear-gradient(120deg, #0A66C2, #00386F 70%, #002D5C); border-radius: 10px 10px 0 0; margin: -16px -16px 12px; display: flex; align-items: flex-end; }
.co-banner .brand-logo { margin: 0 18px 0 18px; transform: translateY(50%); border: 3px solid #fff; }
.co-banner-body { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.co-id { flex: 1; min-width: 200px; }
.co-id h2 { margin-bottom: 3px; }
.co-id p { margin: 0; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.co-contact { display: flex; align-items: center; gap: 6px; }

/* ------------------------------ misc ------------------------------ */

.skill-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.skill-table th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--mut); padding: 6px 8px; border-bottom: 1px solid var(--line); }
.skill-table td { padding: 9px 8px; border-bottom: 1px solid var(--line-soft); }
.skill-table tr:last-child td { border-bottom: none; }

#toasts { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast {
  background: #222; color: #fff; padding: 10px 18px; border-radius: 999px; font-size: 13.5px;
  opacity: 0; transform: translateY(8px); transition: all .3s; box-shadow: var(--shadow-lg);
}
.toast.show { opacity: 1; transform: none; }

/* ------------------------------ community ------------------------------ */

.nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 12px; border-radius: 8px; font-size: 13.5px; font-weight: 600;
  color: var(--ink); text-decoration: none !important;
}
.nav-link:hover { background: var(--bg); text-decoration: none; }
.nav-link.active { background: var(--blue-soft); color: var(--blue-dark); }

.comm-head .btn-row { margin-left: auto; margin-top: 0; }
.comm-head .btn-row .btn { margin-left: 0; }

.q-card { margin-bottom: 14px; }
.q-card h3 { margin: 4px 0; }
.q-card h2 a, .q-card h3 a { color: var(--ink); }
.q-card h2 a:hover, .q-card h3 a:hover { color: var(--blue); text-decoration: none; }
.q-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.q-body { color: #333; font-size: 13.5px; white-space: pre-wrap; margin: 0 0 4px; }
.q-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; border-top: 1px solid var(--line-soft); padding-top: 10px; margin-top: 12px; }
.q-who { display: inline-flex; align-items: center; gap: 8px; }
.q-who .avatar { width: 34px; height: 34px; font-size: 12.5px; }
.q-who-name { display: flex; flex-direction: column; line-height: 1.25; }
.q-who-name strong { font-size: 13px; }
.q-who-name small { font-size: 12px; color: var(--mut); }
.q-ans { display: inline-flex; align-items: center; gap: 5px; color: var(--mut); font-size: 12.5px; }
.q-time { color: var(--mut); font-size: 12.5px; }

.a-item { border: 1px solid var(--line); border-radius: 10px; padding: 14px; margin-bottom: 12px; background: #fff; }
.a-item.accepted { border-color: #7CC6A0; background: #F4FBF7; }
.a-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.a-body { color: #333; font-size: 13.5px; white-space: pre-wrap; margin: 0 0 10px; }
.a-actions { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--mut); }

.upvote {
  display: inline-flex; align-items: center; gap: 5px; flex: none;
  border: 1px solid var(--line); border-radius: 999px; padding: 5px 11px;
  background: #fff; color: var(--mut); font-size: 12.5px; font-weight: 700; cursor: pointer;
}
.upvote:hover { background: var(--blue-soft); color: var(--blue-dark); border-color: #C9D6E3; }
.upvote.upvoted { background: var(--blue); border-color: var(--blue); color: #fff; }

.accepted-pill { background: var(--green-bg); color: var(--green-ink); display: inline-flex; align-items: center; gap: 4px; }

.clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.clamp3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.why-card a:hover { text-decoration: none; }

.source-link { display: flex; align-items: center; gap: 6px; color: var(--mut); font-size: 12.5px; margin: 0 0 10px; }

.notif-ico.n-comm { background: var(--amber-bg); color: var(--amber-ink); }

.filter-inline .input.grow { flex: 1; min-width: 150px; }

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

@media (max-width: 960px) {
  .nav-search { display: none; }
  .nav-link { padding: 8px 10px; }
  .comm-head .btn-row { margin-left: 0; }
  .filter-inline .input.grow { min-width: 120px; }
  .dash-grid, .search-layout, .how-grid, .role-grid, .why-grid, .grid-2, .stat-row { grid-template-columns: 1fr; }
  .inbox { grid-template-columns: 1fr; height: auto; }
  .conv-list { max-height: 260px; overflow-y: auto; }
  .chat { min-height: 480px; }
  .talent-card { flex-wrap: wrap; }
  .talent-side { width: 100%; align-items: flex-start; flex-direction: row; justify-content: space-between; }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 32px; }
  .filters { position: static; }
}
