/* Workup — modern rebuild. Design tokens first, then layout, then components. */
:root {
  --brand: #1f6fef;
  --brand-600: #1559cc;
  --brand-50: #eef4ff;
  --accent: #10b981;
  --danger: #ef4444;
  --warn: #f59e0b;
  --bg: #f7f8fb;
  --surface: #ffffff;
  --surface-2: #f1f4f9;
  --text: #0f1b2d;
  --muted: #5b6b7f;
  --border: #e3e8ef;
  --shadow-sm: 0 1px 2px rgb(15 27 45 / .06);
  --shadow: 0 8px 24px -8px rgb(15 27 45 / .14);
  --shadow-lg: 0 24px 48px -16px rgb(15 27 45 / .25);
  --radius: 14px;
  --radius-sm: 10px;
  --max: 1200px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: light;
}
[data-theme='dark'] {
  --brand: #4c8dff;
  --brand-600: #3a7af0;
  --brand-50: #14233d;
  --bg: #0b1220;
  --surface: #111a2b;
  --surface-2: #18233a;
  --text: #e8eef8;
  --muted: #97a6bc;
  --border: #22304a;
  --shadow: 0 8px 24px -8px rgb(0 0 0 / .5);
  --shadow-lg: 0 24px 48px -16px rgb(0 0 0 / .6);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.6; font-size: 15px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 750; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.container { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; }
.section-head p { color: var(--muted); margin: 0; }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: .5rem; }
.muted { color: var(--muted); }
.grid { display: grid; gap: 1.25rem; }
.g-2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }
.g-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.g-4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.row { display: flex; align-items: center; gap: .75rem; }
.wrap { flex-wrap: wrap; }
.between { justify-content: space-between; }
.stack > * + * { margin-top: 1rem; }

/* Header */
.header { position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(180%) blur(14px); background: color-mix(in srgb, var(--surface) 82%, transparent); border-bottom: 1px solid var(--border); }
.header .container { display: flex; align-items: center; gap: 1.5rem; height: 68px; }
.logo { display: flex; align-items: center; gap: .55rem; font-weight: 800; font-size: 1.3rem; letter-spacing: -.03em; }
.logo-mark { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--brand), #7c3aed); display: grid; place-items: center; color: #fff; }
.logo-img { height: 38px; width: auto; max-width: 200px; object-fit: contain; display: block; }
.nav { display: flex; gap: .25rem; margin-right: auto; }
.nav a { white-space: nowrap; padding: .5rem .8rem; border-radius: 8px; color: var(--muted); font-weight: 550; }
.nav a:hover, .nav a.active { color: var(--text); background: var(--surface-2); }
.header-actions { display: flex; align-items: center; gap: .5rem; }
.menu-btn { display: none; }
@media (max-width: 920px) {
  .nav { position: fixed; inset: 68px 0 auto 0; flex-direction: column; background: var(--surface); padding: 1rem; border-bottom: 1px solid var(--border); transform: translateY(-120%); transition: transform .25s; box-shadow: var(--shadow); }
  .nav.open { transform: none; }
  .menu-btn { display: inline-grid; }
  .header-actions .hide-sm { display: none; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .7rem 1.15rem; border-radius: 10px; border: 1px solid transparent; font-weight: 650; cursor: pointer; transition: background .15s, transform .05s, box-shadow .15s, border-color .15s; white-space: nowrap; background: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--brand) 70%, transparent); }
.btn-primary:hover { background: var(--brand-600); }
.btn-ghost { border-color: var(--border); background: var(--surface); }
.btn-ghost:hover { border-color: color-mix(in srgb, var(--brand) 50%, var(--border)); color: var(--brand); }
.btn-soft { background: var(--brand-50); color: var(--brand); }
.btn-soft:hover { background: color-mix(in srgb, var(--brand) 18%, var(--surface)); }
.btn-danger { background: color-mix(in srgb, var(--danger) 12%, var(--surface)); color: var(--danger); }
.btn-sm { padding: .45rem .75rem; font-size: .88rem; border-radius: 8px; }
.btn-lg { padding: .95rem 1.5rem; font-size: 1.02rem; }
.btn-block { width: 100%; }
.icon-btn { width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; }
.icon-btn:hover { color: var(--brand); border-color: var(--brand); }
.icon-btn.on { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, var(--border)); background: color-mix(in srgb, var(--danger) 8%, var(--surface)); }
.icon { width: 18px; height: 18px; flex: none; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 96px 0 120px; background:
  radial-gradient(1000px 500px at 85% -10%, color-mix(in srgb, #7c3aed 22%, transparent), transparent 60%),
  radial-gradient(900px 500px at 0% 0%, color-mix(in srgb, var(--brand) 22%, transparent), transparent 60%); }
.hero h1 span { background: linear-gradient(90deg, var(--brand), #7c3aed); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: 1.15rem; color: var(--muted); max-width: 620px; }
.search-bar { margin-top: 2rem; display: grid; grid-template-columns: 1.4fr 1fr 1fr auto; gap: .5rem; background: var(--surface); padding: .5rem; border-radius: 16px; box-shadow: var(--shadow-lg); border: 1px solid var(--border); max-width: 920px; }
.search-bar .field { display: flex; align-items: center; gap: .5rem; padding: 0 .85rem; border-radius: 10px; }
.search-bar .field + .field { border-left: 1px solid var(--border); }
.search-bar input, .search-bar select { border: 0; background: transparent; padding: .8rem 0; width: 100%; outline: none; }
@media (max-width: 800px) { .search-bar { grid-template-columns: 1fr; } .search-bar .field + .field { border-left: 0; border-top: 1px solid var(--border); } }
.hero-tags { margin-top: 1.25rem; display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; color: var(--muted); font-size: .9rem; }
.stats-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 3.5rem; max-width: 760px; }
.stats-strip b { display: block; font-size: 1.8rem; font-weight: 800; letter-spacing: -.03em; }
.stats-strip span { color: var(--muted); font-size: .9rem; }
@media (max-width: 640px) { .stats-strip { grid-template-columns: repeat(2, 1fr); } }

/* Cards */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.35rem; box-shadow: var(--shadow-sm); transition: border-color .2s, box-shadow .2s, transform .2s; }
.card.hover:hover { border-color: color-mix(in srgb, var(--brand) 40%, var(--border)); box-shadow: var(--shadow); transform: translateY(-2px); }
.card-title { font-weight: 700; font-size: 1.05rem; margin: 0; }
.card-title a:hover { color: var(--brand); }
.avatar { width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; color: #fff; flex: none; font-size: 1.05rem; }
.avatar.round { border-radius: 50%; }
.avatar.lg { width: 96px; height: 96px; font-size: 1.9rem; border-radius: 20px; }
.avatar.round.lg { border-radius: 50%; }
.meta { display: flex; flex-wrap: wrap; gap: .4rem 1rem; color: var(--muted); font-size: .88rem; }
.meta span { display: inline-flex; align-items: center; gap: .35rem; }
.meta .icon { width: 15px; height: 15px; }
.badge { display: inline-flex; align-items: center; gap: .3rem; font-size: .75rem; font-weight: 700; padding: .25rem .6rem; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.badge.blue { background: var(--brand-50); color: var(--brand); }
.badge.green { background: color-mix(in srgb, var(--accent) 14%, var(--surface)); color: var(--accent); }
.badge.red { background: color-mix(in srgb, var(--danger) 12%, var(--surface)); color: var(--danger); }
.badge.amber { background: color-mix(in srgb, var(--warn) 16%, var(--surface)); color: #b45309; }
[data-theme='dark'] .badge.amber { color: var(--warn); }
.chip { display: inline-flex; padding: .35rem .75rem; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-size: .85rem; cursor: pointer; }
.chip:hover { border-color: var(--brand); color: var(--brand); }

.job-card { display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: start; }
.job-card .actions { display: flex; flex-direction: column; align-items: end; gap: .6rem; }
.job-card .salary { font-weight: 700; }
.job-grid .job-card { grid-template-columns: auto 1fr; }
.job-grid .job-card .actions { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; border-top: 1px solid var(--border); padding-top: .9rem; }
@media (max-width: 640px) { .job-card { grid-template-columns: auto 1fr; } .job-card .actions { grid-column: 1/-1; flex-direction: row; justify-content: space-between; align-items: center; } }

.cat-card { display: flex; gap: 1rem; align-items: center; }
.cat-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; transition: background .2s, color .2s; }
.cat-card:hover .cat-icon { background: var(--brand); color: #fff; }
.cat-icon .icon { width: 24px; height: 24px; }

.steps { counter-reset: step; }
.step { position: relative; }
.step-num { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--brand); color: #fff; font-weight: 800; margin-bottom: 1rem; }

.cta { border-radius: 24px; padding: clamp(2rem, 5vw, 4rem); background: linear-gradient(120deg, var(--brand), #6d28d9); color: #fff; display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; justify-content: space-between; position: relative; overflow: hidden; }
.cta p { opacity: .85; margin: 0; }
.cta .btn-ghost { background: #fff; color: #1e293b; border: 0; }
.cta .btn-outline { border: 1px solid rgb(255 255 255 / .5); color: #fff; }

.stars { color: #f59e0b; display: inline-flex; gap: 1px; }
.stars .icon { width: 14px; height: 14px; }
.quote { font-size: 1.02rem; }

/* Pricing */
.price-card { display: flex; flex-direction: column; position: relative; }
.price-card.popular { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), var(--shadow); }
.price-card .price { font-size: 2.6rem; font-weight: 800; letter-spacing: -.04em; margin: .5rem 0 0; }
.price-card ul { list-style: none; padding: 0; margin: 1.25rem 0 1.5rem; flex: 1; }
.price-card li { display: flex; gap: .5rem; padding: .35rem 0; }
.price-card li .icon { color: var(--accent); margin-top: 3px; }
.price-card .ribbon { position: absolute; top: 1rem; right: 1rem; }
.tabs { display: inline-flex; background: var(--surface-2); border-radius: 12px; padding: 4px; gap: 4px; flex-wrap: wrap; }
.tabs button { border: 0; background: none; padding: .55rem 1rem; border-radius: 9px; font-weight: 600; color: var(--muted); cursor: pointer; }
.tabs button.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }

/* Listing page */
.page-head { padding: 48px 0 36px; background: radial-gradient(800px 300px at 80% 0, color-mix(in srgb, var(--brand) 14%, transparent), transparent 70%); border-bottom: 1px solid var(--border); }
.crumbs { font-size: .85rem; color: var(--muted); display: flex; gap: .4rem; margin-bottom: .5rem; }
.crumbs a:hover { color: var(--brand); }
.layout { display: grid; grid-template-columns: 290px 1fr; gap: 2rem; align-items: start; }
.layout.right { grid-template-columns: 1fr 340px; }
@media (max-width: 960px) { .layout, .layout.right { grid-template-columns: 1fr; } .sidebar-sticky { position: static !important; } }
.sidebar-sticky { position: sticky; top: 88px; }
.filters h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 1.25rem 0 .6rem; }
.filters h4:first-child { margin-top: 0; }
.check { display: flex; align-items: center; gap: .55rem; padding: .25rem 0; cursor: pointer; font-size: .93rem; }
.check input { accent-color: var(--brand); width: 16px; height: 16px; }
.check .count { margin-left: auto; color: var(--muted); font-size: .8rem; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.seg { display: inline-flex; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.seg button { border: 0; background: var(--surface); padding: .5rem .7rem; cursor: pointer; color: var(--muted); }
.seg button.active { background: var(--brand-50); color: var(--brand); }
.pagination { display: flex; gap: .35rem; justify-content: center; margin-top: 2rem; }
.pagination button { min-width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; font-weight: 600; }
.pagination button.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.pagination button:disabled { opacity: .4; cursor: default; }
.empty { text-align: center; padding: 3rem 1rem; color: var(--muted); }
.empty .icon { width: 44px; height: 44px; margin: 0 auto 1rem; opacity: .5; }

/* Forms */
.input, select.input, textarea.input { width: 100%; padding: .72rem .9rem; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); outline: none; transition: border-color .15s, box-shadow .15s; }
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 15%, transparent); }
textarea.input { min-height: 130px; resize: vertical; }
label.lbl { display: block; font-weight: 600; font-size: .88rem; margin-bottom: .35rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.25rem; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
input[type=range] { width: 100%; accent-color: var(--brand); }
.hint { font-size: .8rem; color: var(--muted); margin-top: .3rem; }

/* Detail pages */
.detail-head { padding: 48px 0; border-bottom: 1px solid var(--border); background: radial-gradient(900px 300px at 10% 0, color-mix(in srgb, var(--brand) 12%, transparent), transparent 70%); }
.detail-head .row-main { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; }
.detail-head .grow { flex: 1; min-width: 260px; }
.prose h3 { margin-top: 1.8rem; }
.prose ul { padding-left: 1.1rem; }
.prose li { margin: .35rem 0; }
.info-list { list-style: none; margin: 0; padding: 0; }
.info-list li { display: flex; gap: .8rem; padding: .7rem 0; border-bottom: 1px dashed var(--border); }
.info-list li:last-child { border: 0; }
.info-list .icon { color: var(--brand); margin-top: 3px; }
.info-list small { display: block; color: var(--muted); font-size: .8rem; }
.map { height: 220px; border-radius: var(--radius-sm); background:
  linear-gradient(0deg, color-mix(in srgb, var(--brand) 8%, transparent), transparent),
  repeating-linear-gradient(0deg, var(--surface-2) 0 1px, transparent 1px 28px),
  repeating-linear-gradient(90deg, var(--surface-2) 0 1px, transparent 1px 28px), var(--surface);
  border: 1px solid var(--border); display: grid; place-items: center; color: var(--brand); position: relative; }
.map .pin { width: 40px; height: 40px; background: var(--brand); color: #fff; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); display: grid; place-items: center; box-shadow: var(--shadow); }
.map .pin .icon { transform: rotate(45deg); }
.timeline { position: relative; padding-left: 1.5rem; border-left: 2px solid var(--border); }
.timeline .t-item { position: relative; padding-bottom: 1.5rem; }
.timeline .t-item::before { content: ''; position: absolute; left: calc(-1.5rem - 7px); top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 3px solid var(--brand); }
.timeline .period { font-size: .8rem; font-weight: 700; color: var(--brand); }
.skill-bar { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; margin-top: .35rem; }
.skill-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), #7c3aed); border-radius: inherit; }
.photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.photos div { aspect-ratio: 4/3; border-radius: 10px; }

/* Dashboard */
.dash { display: grid; grid-template-columns: 260px 1fr; gap: 2rem; padding: 32px 0 80px; align-items: start; }
@media (max-width: 960px) { .dash { grid-template-columns: 1fr; } }
.dash-nav { padding: .75rem; }
.dash-nav a { display: flex; align-items: center; gap: .7rem; padding: .65rem .8rem; border-radius: 10px; color: var(--muted); font-weight: 550; }
.dash-nav a:hover { background: var(--surface-2); color: var(--text); }
.dash-nav a.active { background: var(--brand-50); color: var(--brand); }
.dash-nav .count { margin-left: auto; font-size: .75rem; background: var(--surface-2); border-radius: 99px; padding: 0 .5rem; }
.kpi { display: flex; gap: 1rem; align-items: center; }
.kpi .k-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; }
.kpi b { font-size: 1.7rem; font-weight: 800; display: block; line-height: 1.1; }
.chart { width: 100%; height: 240px; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: .7rem .75rem; border-bottom: 1px solid var(--border); }
.table td { padding: .85rem .75rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; }

/* Messages */
.messenger { display: grid; grid-template-columns: 300px 1fr; height: 560px; padding: 0; overflow: hidden; }
@media (max-width: 760px) { .messenger { grid-template-columns: 1fr; height: auto; } .messenger .threads { max-height: 220px; } }
.threads { border-right: 1px solid var(--border); overflow-y: auto; }
.thread { display: flex; gap: .75rem; padding: .9rem 1rem; cursor: pointer; border-bottom: 1px solid var(--border); }
.thread.active, .thread:hover { background: var(--surface-2); }
.thread .avatar { width: 40px; height: 40px; font-size: .9rem; }
.convo { display: flex; flex-direction: column; min-height: 0; }
.convo-body { flex: 1; overflow-y: auto; padding: 1.25rem; display: flex; flex-direction: column; gap: .6rem; min-height: 300px; }
.bubble { max-width: 72%; padding: .65rem .9rem; border-radius: 14px; background: var(--surface-2); }
.bubble.me { align-self: end; background: var(--brand); color: #fff; border-bottom-right-radius: 4px; }
.bubble.them { border-bottom-left-radius: 4px; }
.convo-input { display: flex; gap: .5rem; padding: .75rem; border-top: 1px solid var(--border); }

/* Auth */
.auth { min-height: calc(100vh - 68px); display: grid; grid-template-columns: 1fr 1fr; }
.auth-art { background: linear-gradient(140deg, var(--brand), #6d28d9); color: #fff; padding: 4rem; display: flex; flex-direction: column; justify-content: end; }
.auth-art p { opacity: .85; }
.auth-form { display: grid; place-items: center; padding: 3rem 1.25rem; }
.auth-form .card { width: min(100%, 440px); padding: 2rem; }
@media (max-width: 860px) { .auth { grid-template-columns: 1fr; } .auth-art { display: none; } }

/* Modal & toast */
.modal-back { position: fixed; inset: 0; background: rgb(8 12 24 / .55); backdrop-filter: blur(4px); z-index: 100; display: grid; place-items: center; padding: 1rem; animation: fade .15s; }
.modal { width: min(100%, 560px); max-height: 90vh; overflow-y: auto; background: var(--surface); border-radius: 18px; padding: 1.75rem; box-shadow: var(--shadow-lg); animation: pop .2s; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.toasts { position: fixed; bottom: 1.25rem; right: 1.25rem; z-index: 200; display: flex; flex-direction: column; gap: .5rem; }
.toast { background: var(--text); color: var(--bg); padding: .8rem 1.1rem; border-radius: 12px; box-shadow: var(--shadow-lg); display: flex; gap: .6rem; align-items: center; animation: pop .2s; font-weight: 550; }

/* Blog */
.post-thumb { aspect-ratio: 16/9; border-radius: 10px; margin: -0.35rem -0.35rem 1rem; display: grid; place-items: center; color: #fff; }
.post-thumb .icon { width: 40px; height: 40px; opacity: .85; }

/* Footer */
.footer { border-top: 1px solid var(--border); background: var(--surface); padding: 64px 0 28px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr) 1.4fr; gap: 2rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer h4 { font-size: .9rem; margin-bottom: 1rem; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin: .45rem 0; }
.footer li a { color: var(--muted); }
.footer li a:hover { color: var(--brand); }
.footer-bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--border); display: flex; justify-content: space-between; color: var(--muted); font-size: .88rem; flex-wrap: wrap; gap: 1rem; }

.notfound { text-align: center; padding: 120px 0; }
.notfound .big { font-size: clamp(5rem, 18vw, 10rem); font-weight: 900; letter-spacing: -.06em; line-height: 1; background: linear-gradient(90deg, var(--brand), #7c3aed); -webkit-background-clip: text; background-clip: text; color: transparent; }

.reveal { animation: rise .45s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* Mobile refinements: collapsible filters, horizontal dashboard nav */
.show-sm { display: none; }
@media (max-width: 960px) {
  .show-sm { display: inline-flex; }
  .filters-panel { display: none; }
  .filters-panel.open { display: block; }
  .dash-nav { display: flex; overflow-x: auto; gap: .25rem; scrollbar-width: none; }
  .dash-nav a { flex: none; }
}

/* Loading, unread badge, resume editor */
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--border); border-top-color: var(--brand); margin: 2rem auto; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.badge-host { position: relative; }
.badge-host .dot:empty { display: none; }
.badge-host .dot { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--danger); color: #fff; font-size: .7rem; font-weight: 700; display: grid; place-items: center; }
.btn:disabled { opacity: .6; cursor: not-allowed; }
.dash > *, .layout > * { min-width: 0; }
