:root {
  --primary: #0a4b78;
  --primary-700: #073955;
  --primary-50: #eef6fb;
  --secondary: #087b6a;
  --accent: #f1a51f;
  --accent-700: #bd7300;
  --ink: #142330;
  --muted: #63717c;
  --line: #dbe3e8;
  --surface: #ffffff;
  --soft: #f4f7f9;
  --danger: #b42318;
  --success: #067647;
  --warning: #b54708;
  --shadow-sm: 0 8px 24px rgba(21, 45, 65, .08);
  --shadow-lg: 0 24px 70px rgba(15, 43, 63, .22);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --container: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--surface); font-family: Inter, "Segoe UI", Arial, sans-serif; line-height: 1.55; }
body.modal-open { overflow: hidden; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
img { max-width: 100%; }
.hidden { display: none !important; }
.container { width: min(calc(100% - 32px), var(--container)); margin-inline: auto; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 9999; background: #fff; color: var(--primary); padding: 10px 14px; border-radius: 8px; box-shadow: var(--shadow-sm); }
.skip-link:focus { top: 12px; }

.top-strip { background: var(--primary-700); color: #dcecf6; font-size: .82rem; }
.top-strip__inner { min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.connection-pill { padding: 3px 9px; border-radius: 999px; background: rgba(255,255,255,.12); }
.connection-pill.offline { background: #7a2e0e; }
.site-header { position: sticky; top: 0; z-index: 80; background: rgba(255,255,255,.97); backdrop-filter: blur(16px); box-shadow: 0 1px 0 var(--line); }
.navbar { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; position: relative; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand span { display: grid; line-height: 1.05; }
.brand strong { font-size: 1.05rem; color: var(--primary); }
.brand small { margin-top: 4px; color: var(--secondary); font-weight: 800; letter-spacing: .18em; font-size: .66rem; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links > a { text-decoration: none; color: #344753; font-weight: 650; font-size: .92rem; }
.nav-links > a:hover { color: var(--primary); }
.menu-toggle { display: none; border: 0; background: transparent; font-size: 1.5rem; }

.btn { border: 0; border-radius: 11px; min-height: 42px; padding: 10px 16px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 760; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid rgba(241,165,31,.38); outline-offset: 2px; }
.btn--primary { background: var(--primary); color: #fff; box-shadow: 0 10px 22px rgba(10,75,120,.2); }
.btn--primary:hover { background: var(--primary-700); }
.btn--accent { background: var(--accent); color: #2c210d; box-shadow: 0 10px 22px rgba(241,165,31,.2); }
.btn--accent:hover { background: #dda01f; }
.btn--ghost { background: var(--primary-50); color: var(--primary); }
.btn--light { background: #fff; color: var(--primary); }
.btn--outline { background: #fff; color: var(--primary); border: 1px solid #b8c9d4; }
.btn--danger { background: #fff0ee; color: var(--danger); border: 1px solid #fecdc7; }
.btn--success { background: #ecfdf3; color: var(--success); border: 1px solid #abefc6; }
.btn--block { width: 100%; }
.btn--large { padding: 13px 20px; min-height: 50px; }

.user-menu { position: relative; }
.user-chip { border: 1px solid var(--line); background: #fff; border-radius: 14px; padding: 6px 10px 6px 7px; display: flex; align-items: center; gap: 9px; color: var(--ink); }
.user-chip > span:nth-child(2) { display: grid; text-align: left; line-height: 1.1; }
.user-chip small { color: var(--muted); margin-top: 4px; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-weight: 800; }
.user-dropdown { position: absolute; right: 0; top: calc(100% + 10px); width: 190px; background: #fff; border: 1px solid var(--line); border-radius: 13px; box-shadow: var(--shadow-lg); overflow: hidden; }
.user-dropdown button { width: 100%; text-align: left; padding: 11px 14px; border: 0; background: #fff; }
.user-dropdown button:hover { background: var(--soft); }

.hero { background: radial-gradient(circle at 80% 15%, rgba(241,165,31,.2), transparent 30%), linear-gradient(135deg, #073955 0%, #0a4b78 55%, #087b6a 120%); color: #fff; overflow: hidden; }
.hero__grid { min-height: 570px; display: grid; grid-template-columns: 1.25fr .75fr; gap: 64px; align-items: center; padding-block: 72px; }
.hero__content h1 { margin: 14px 0 18px; font-size: clamp(2.3rem, 5vw, 4.4rem); letter-spacing: -.045em; line-height: 1.02; max-width: 820px; }
.hero__content p { max-width: 720px; font-size: 1.08rem; color: #dcebf4; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: #ffe3ad; font-size: .78rem; font-weight: 850; text-transform: uppercase; letter-spacing: .13em; }
.eyebrow:before { content: ""; width: 22px; height: 2px; background: currentColor; }
.eyebrow--dark { color: var(--secondary); }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.trust-row { margin-top: 30px; display: flex; gap: 20px; flex-wrap: wrap; color: #dcebf4; font-size: .88rem; }
.hero-card { background: #fff; color: var(--ink); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 25px; position: relative; }
.hero-card:after { content: ""; position: absolute; inset: 12px -12px -12px 12px; border: 1px solid rgba(255,255,255,.25); border-radius: inherit; z-index: -1; }
.hero-card__head { display: flex; gap: 12px; align-items: center; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.hero-card__head > div { display: grid; }
.hero-card__head small { color: var(--muted); }
.hero-card__icon { width: 44px; height: 44px; border-radius: 12px; background: var(--primary-50); color: var(--primary); display: grid; place-items: center; font-size: 1.6rem; }
.quick-search { display: grid; gap: 13px; margin-top: 17px; }
label { display: grid; gap: 6px; color: #3f505b; font-weight: 700; font-size: .86rem; }
input, select, textarea { width: 100%; border: 1px solid #cdd9e0; background: #fff; color: var(--ink); border-radius: 10px; padding: 11px 12px; min-height: 44px; }
textarea { min-height: 110px; resize: vertical; }
.hero-card__note { margin-top: 12px; color: var(--muted); font-size: .79rem; text-align: center; }

.stats-band { background: #fff; border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stats-grid article { padding: 24px 18px; text-align: center; border-right: 1px solid var(--line); }
.stats-grid article:last-child { border-right: 0; }
.stats-grid strong { display: block; color: var(--primary); font-size: 1.9rem; line-height: 1; }
.stats-grid span { display: block; color: var(--muted); margin-top: 7px; font-size: .88rem; }

.section { padding: 88px 0; scroll-margin-top: 110px; }
.section--soft { background: var(--soft); }
.section-heading { margin-bottom: 32px; }
.section-heading h2 { margin: 9px 0 7px; font-size: clamp(1.9rem, 3vw, 2.8rem); letter-spacing: -.035em; line-height: 1.1; }
.section-heading p { color: var(--muted); max-width: 720px; margin: 0; }
.centered { text-align: center; }
.centered .eyebrow { justify-content: center; }
.split-heading { display: flex; justify-content: space-between; align-items: end; gap: 22px; }

.jobs-layout { display: grid; grid-template-columns: 270px 1fr; gap: 28px; align-items: start; }
.filters-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: grid; gap: 15px; position: sticky; top: 126px; box-shadow: var(--shadow-sm); }
.filters-card__head { display: flex; justify-content: space-between; align-items: center; }
.filters-card__head button { border: 0; background: transparent; color: var(--primary); font-weight: 800; }
.check-row { display: flex; grid-template-columns: auto 1fr; align-items: center; gap: 8px; font-weight: 600; }
.check-row input { width: 17px; height: 17px; min-height: 0; }
.check-row--top { align-items: flex-start; }
.results-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 16px; }
.results-toolbar p { color: var(--muted); margin: 0; }
.results-toolbar label { display: flex; align-items: center; gap: 9px; white-space: nowrap; }
.results-toolbar select { min-height: 38px; padding-block: 7px; }
.jobs-grid { display: grid; gap: 14px; }
.job-card { border: 1px solid var(--line); background: #fff; border-radius: var(--radius); padding: 20px; display: grid; grid-template-columns: auto 1fr auto; gap: 16px; transition: box-shadow .2s ease, border-color .2s ease, transform .2s ease; }
.job-card:hover { border-color: #a9c0cf; box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.job-logo { width: 58px; height: 58px; border-radius: 14px; background: linear-gradient(135deg, var(--primary-50), #e7f8f3); display: grid; place-items: center; color: var(--primary); font-weight: 900; font-size: 1.1rem; }
.job-card__head { display: flex; justify-content: space-between; gap: 12px; }
.job-card h3 { margin: 0; font-size: 1.18rem; }
.job-company { color: var(--muted); font-size: .9rem; margin-top: 2px; }
.verified { display: inline-flex; color: var(--success); font-size: .78rem; font-weight: 800; margin-left: 5px; }
.job-meta { display: flex; flex-wrap: wrap; gap: 7px; margin: 13px 0; }
.tag { display: inline-flex; align-items: center; border-radius: 999px; padding: 5px 9px; background: var(--soft); color: #40535f; font-size: .75rem; font-weight: 720; }
.tag--accent { background: #fff4dd; color: #8a5200; }
.tag--green { background: #eafaf4; color: #067647; }
.job-description { color: var(--muted); font-size: .9rem; margin: 0; }
.job-salary { margin-top: 13px; font-weight: 850; color: var(--primary); }
.job-actions { display: flex; flex-direction: column; justify-content: space-between; align-items: end; min-width: 140px; }
.save-btn { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; background: #fff; font-size: 1.1rem; }
.save-btn.saved { background: #fff4dd; color: var(--accent-700); border-color: #f3cf88; }
.job-date { color: var(--muted); font-size: .76rem; }
.empty-state { text-align: center; padding: 55px 20px; border: 1px dashed #b8c9d4; border-radius: var(--radius); color: var(--muted); }
.empty-state span { font-size: 2.5rem; color: var(--primary); }
.empty-state h3 { color: var(--ink); margin-bottom: 5px; }

.company-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.company-card { width: 100%; text-align: left; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: 0 10px 22px rgba(33,63,83,.04); }
.company-card__top { display: flex; align-items: center; gap: 12px; }
.company-card h3 { font-size: 1rem; margin: 0; }
.company-card p { color: var(--muted); font-size: .86rem; min-height: 43px; }
.company-card__stats { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 12px; color: var(--muted); font-size: .8rem; }

.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: item; }
.steps-grid article { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: relative; overflow: hidden; }
.steps-grid article > span { position: absolute; right: 15px; top: 5px; color: #ecf1f4; font-size: 3.7rem; font-weight: 900; line-height: 1; }
.step-icon { width: 46px; height: 46px; border-radius: 13px; background: var(--primary-50); color: var(--primary); display: grid; place-items: center; font-size: 1.4rem; }
.steps-grid h3 { margin: 18px 0 7px; }
.steps-grid p { color: var(--muted); font-size: .9rem; margin: 0; }

.security-section { padding: 88px 0; background: #082f47; color: #fff; }
.security-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 70px; align-items: center; }
.security-grid h2 { font-size: clamp(2rem, 3.2vw, 3.1rem); line-height: 1.1; margin: 12px 0; }
.security-grid p { color: #d1e1eb; }
.feature-list { list-style: none; padding: 0; margin: 27px 0 0; display: grid; gap: 16px; }
.feature-list li { display: flex; align-items: flex-start; gap: 12px; }
.feature-list li > span { width: 25px; height: 25px; border-radius: 50%; background: var(--secondary); display: grid; place-items: center; flex: 0 0 auto; }
.feature-list li div { display: grid; }
.feature-list small { color: #b8cedb; margin-top: 3px; }
.security-panel { background: #fff; color: var(--ink); border-radius: var(--radius-lg); padding: 27px; box-shadow: var(--shadow-lg); }
.shield { width: 56px; height: 56px; border-radius: 18px; background: var(--primary-50); color: var(--primary); display: grid; place-items: center; font-size: 1.7rem; }
.security-panel h3 { margin: 15px 0 18px; }
.trust-level { display: flex; gap: 10px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.trust-level > div { display: grid; }
.trust-level small { color: var(--muted); }
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot--green { background: #12b76a; }.dot--amber { background: #f79009; }.dot--red { background: #f04438; }
.security-panel .btn { margin-top: 15px; background: var(--primary-50); }

.cta-section { padding: 70px 0; background: var(--soft); }
.cta-card { background: linear-gradient(135deg, var(--primary), var(--secondary)); color: #fff; border-radius: var(--radius-lg); padding: 42px; display: flex; align-items: center; justify-content: space-between; gap: 30px; box-shadow: var(--shadow-lg); }
.cta-card h2 { margin: 10px 0 5px; font-size: clamp(1.8rem, 3vw, 2.7rem); }
.cta-card p { margin: 0; color: #d9ecea; }
.cta-card__actions { display: flex; gap: 10px; flex-wrap: wrap; flex-shrink: 0; }

.site-footer { background: #061f2f; color: #c2d0d8; padding: 54px 0 20px; font-size: .88rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 45px; }
.brand--footer strong { color: #fff; }
.footer-grid > div { display: flex; flex-direction: column; gap: 9px; }
.footer-grid p { max-width: 350px; color: #9eb2be; }
.footer-grid > div > strong { color: #fff; margin-bottom: 5px; }
.footer-grid a, .footer-grid button { color: #c2d0d8; text-decoration: none; border: 0; background: none; padding: 0; text-align: left; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 36px; padding-top: 18px; display: flex; justify-content: space-between; gap: 20px; }

.modal-backdrop { position: fixed; inset: 0; z-index: 180; background: rgba(3,20,31,.72); backdrop-filter: blur(5px); }
.modal { position: fixed; z-index: 190; left: 50%; top: 50%; transform: translate(-50%,-50%); width: min(calc(100% - 28px), 540px); max-height: 92vh; overflow: auto; background: #fff; border-radius: 22px; padding: 28px; box-shadow: var(--shadow-lg); }
.modal--wide { width: min(calc(100% - 28px), 1000px); }
.modal-close { position: sticky; float: right; top: 0; margin: -8px -8px 0 0; width: 37px; height: 37px; border-radius: 50%; border: 0; background: var(--soft); font-size: 1.5rem; z-index: 2; }
.modal-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 18px; }
.modal-brand div { display: grid; }
.modal-brand small { color: var(--muted); }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 12px; background: var(--soft); margin-bottom: 22px; }
.auth-tabs button { border: 0; border-radius: 9px; background: transparent; padding: 10px; font-weight: 800; color: var(--muted); }
.auth-tabs button.active { background: #fff; color: var(--primary); box-shadow: 0 3px 10px rgba(24,51,70,.08); }
.auth-form h2 { margin: 0 0 4px; }
.auth-form > p { color: var(--muted); margin: 0 0 18px; }
.auth-form { display: grid; gap: 14px; }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 45px; }
.password-wrap button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: var(--muted); }
.link-button { border: 0; background: transparent; color: var(--primary); font-weight: 800; }
.demo-box { display: grid; grid-template-columns: 1fr repeat(3, auto); gap: 7px; align-items: center; border: 1px dashed #b8c9d4; background: var(--soft); padding: 10px; border-radius: 10px; font-size: .75rem; }
.demo-box button { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 6px 8px; color: var(--primary); font-weight: 800; }
.role-selector { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.role-selector label input { position: absolute; opacity: 0; pointer-events: none; }
.role-selector label span { border: 1px solid var(--line); border-radius: 13px; padding: 14px; display: grid; cursor: pointer; }
.role-selector label input:checked + span { border-color: var(--primary); background: var(--primary-50); box-shadow: inset 0 0 0 1px var(--primary); }
.role-selector b { font-size: 1.4rem; color: var(--primary); }
.role-selector small { color: var(--muted); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-full { grid-column: 1 / -1; }
.uppercase { text-transform: uppercase; }
.validation-card { border: 1px solid #c7d7e1; background: var(--primary-50); border-radius: 11px; padding: 11px; display: flex; gap: 10px; align-items: flex-start; }
.validation-card.valid { border-color: #abefc6; background: #ecfdf3; }
.validation-card.invalid { border-color: #fecdc7; background: #fff0ee; }
.status-icon { width: 24px; height: 24px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; flex: 0 0 auto; }
.validation-card div { display: grid; }
.validation-card small { color: var(--muted); }

.job-detail__hero { padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.job-detail__top { display: flex; align-items: flex-start; gap: 15px; }
.job-detail__top h2 { margin: 0; font-size: 1.8rem; }
.job-detail__grid { display: grid; grid-template-columns: 1fr 310px; gap: 28px; padding-top: 22px; }
.job-detail__section { margin-bottom: 25px; }
.job-detail__section h3 { margin-bottom: 8px; }
.job-detail__section p, .job-detail__section li { color: var(--muted); }
.job-detail__sidebar { border-left: 1px solid var(--line); padding-left: 22px; }
.summary-card { border: 1px solid var(--line); border-radius: 15px; padding: 17px; display: grid; gap: 11px; }
.summary-row { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--line); padding-bottom: 9px; }
.summary-row:last-child { border-bottom: 0; padding-bottom: 0; }
.summary-row span { color: var(--muted); }
.apply-form { display: grid; gap: 12px; margin-top: 15px; }

.dashboard-shell { min-height: 550px; }
.dashboard-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.dashboard-head h2 { margin: 0; }
.dashboard-head p { color: var(--muted); margin: 4px 0 0; }
.status-badge { border-radius: 999px; padding: 6px 10px; font-size: .78rem; font-weight: 800; }
.status-badge--verified { background: #ecfdf3; color: var(--success); }
.status-badge--pending { background: #fff6e8; color: var(--warning); }
.status-badge--restricted { background: #fff0ee; color: var(--danger); }
.dashboard-tabs { display: flex; gap: 6px; overflow-x: auto; padding: 17px 0; }
.dashboard-tabs button { border: 0; background: var(--soft); color: var(--muted); border-radius: 9px; padding: 9px 12px; white-space: nowrap; font-weight: 800; }
.dashboard-tabs button.active { background: var(--primary); color: #fff; }
.dashboard-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.metric-card { border: 1px solid var(--line); border-radius: 14px; padding: 15px; }
.metric-card strong { display: block; font-size: 1.65rem; color: var(--primary); }
.metric-card span { color: var(--muted); font-size: .82rem; }
.panel-card { border: 1px solid var(--line); border-radius: 15px; overflow: hidden; margin-bottom: 16px; }
.panel-card__head { padding: 14px 16px; background: var(--soft); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.panel-card__body { padding: 16px; }
.data-table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; min-width: 720px; }
.data-table th, .data-table td { padding: 11px 10px; border-bottom: 1px solid var(--line); text-align: left; font-size: .82rem; vertical-align: top; }
.data-table th { color: var(--muted); background: #fbfcfd; }
.table-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.table-actions button { border: 0; border-radius: 7px; padding: 6px 8px; font-weight: 760; font-size: .75rem; }
.profile-progress { height: 9px; border-radius: 999px; background: var(--soft); overflow: hidden; }
.profile-progress span { display: block; height: 100%; background: var(--secondary); }
.profile-editor { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.profile-editor .field-full { grid-column: 1/-1; }
.checkbox-cloud { display: flex; gap: 8px; flex-wrap: wrap; }
.checkbox-cloud label { display: block; }
.checkbox-cloud input { position: absolute; opacity: 0; }
.checkbox-cloud span { display: block; border: 1px solid var(--line); border-radius: 999px; padding: 7px 10px; font-size: .78rem; cursor: pointer; }
.checkbox-cloud input:checked + span { background: var(--primary-50); border-color: var(--primary); color: var(--primary); }
.pipeline { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.pipeline article { border-radius: 12px; background: var(--soft); padding: 12px; min-height: 95px; }
.pipeline strong { display: block; color: var(--primary); font-size: 1.4rem; }
.pipeline span { color: var(--muted); font-size: .78rem; }
.document-list { display: grid; gap: 8px; }
.document-item { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.document-item > div { display: grid; }
.document-item small { color: var(--muted); }
.review-card { border: 1px solid var(--line); border-radius: 14px; padding: 15px; display: grid; grid-template-columns: 1fr auto; gap: 12px; margin-bottom: 10px; }
.review-card p { color: var(--muted); margin: 5px 0; }

.info-content h2 { margin-top: 0; }
.info-content p, .info-content li { color: var(--muted); }
.info-content section { margin-bottom: 20px; }

.toast-region { position: fixed; z-index: 250; right: 18px; bottom: 18px; display: grid; gap: 10px; width: min(360px, calc(100% - 36px)); }
.toast { background: #fff; border-left: 5px solid var(--primary); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 13px 14px; animation: toast-in .2s ease; }
.toast.success { border-left-color: var(--success); }.toast.error { border-left-color: var(--danger); }.toast.warning { border-left-color: var(--warning); }
.toast strong { display: block; }
.toast small { color: var(--muted); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

@media (max-width: 980px) {
  .menu-toggle { display: block; }
  .nav-links { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; padding: 18px; border: 1px solid var(--line); box-shadow: var(--shadow-sm); flex-direction: column; align-items: stretch; }
  .nav-links.open { display: flex; }
  .hero__grid { grid-template-columns: 1fr; gap: 34px; }
  .hero__content h1 { max-width: 800px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid article:nth-child(2) { border-right: 0; }
  .stats-grid article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .jobs-layout { grid-template-columns: 1fr; }
  .filters-card { position: static; grid-template-columns: repeat(2, 1fr); }
  .filters-card__head { grid-column: 1/-1; }
  .company-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .security-grid { grid-template-columns: 1fr; gap: 35px; }
  .cta-card { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .job-detail__grid { grid-template-columns: 1fr; }
  .job-detail__sidebar { border-left: 0; border-top: 1px solid var(--line); padding: 20px 0 0; }
  .dashboard-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 650px) {
  .container { width: min(calc(100% - 22px), var(--container)); }
  .top-strip__inner > span:first-child { display: none; }
  .top-strip__inner { justify-content: flex-end; }
  .navbar { min-height: 68px; }
  .brand img { width: 42px; }
  .hero__grid { padding-block: 48px; min-height: auto; }
  .hero__content h1 { font-size: 2.35rem; }
  .hero-card { padding: 18px; }
  .section { padding: 62px 0; }
  .split-heading { align-items: flex-start; flex-direction: column; }
  .filters-card { grid-template-columns: 1fr; }
  .filters-card__head { grid-column: auto; }
  .results-toolbar { align-items: stretch; flex-direction: column; }
  .results-toolbar label { justify-content: space-between; }
  .job-card { grid-template-columns: auto 1fr; }
  .job-actions { grid-column: 1/-1; flex-direction: row; align-items: center; min-width: 0; }
  .job-card__head { display: block; }
  .company-grid, .steps-grid { grid-template-columns: 1fr; }
  .cta-card { padding: 27px 20px; }
  .cta-card__actions, .cta-card__actions .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; }
  .modal { padding: 20px; }
  .role-selector, .form-grid, .profile-editor { grid-template-columns: 1fr; }
  .field-full, .profile-editor .field-full { grid-column: auto; }
  .demo-box { grid-template-columns: 1fr; }
  .job-detail__top { flex-direction: column; }
  .dashboard-head { flex-direction: column; }
  .dashboard-grid { grid-template-columns: 1fr 1fr; }
  .pipeline { grid-template-columns: 1fr 1fr; }
  .review-card { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* Integración Supabase */
.setup-banner { background: #fff3cd; color: #664d03; border-bottom: 1px solid #ffecb5; padding: 12px 0; font-size: .9rem; }
.setup-banner code { background: rgba(255,255,255,.7); padding: 2px 5px; border-radius: 4px; }
.auth-help { display: block; text-align: center; color: var(--muted); line-height: 1.5; margin-top: 12px; }
.dashboard-loading { min-height: 420px; display: grid; place-content: center; justify-items: center; gap: 14px; color: var(--muted); }
.loader { width: 36px; height: 36px; border: 4px solid var(--line); border-top-color: var(--primary); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.status-badge { display: inline-flex; align-items: center; width: fit-content; padding: 4px 8px; border-radius: 999px; font-size: .72rem; font-weight: 800; background: var(--soft); color: var(--muted); }
.status-badge.verified { background: #e8f7ef; color: #11643b; }
.status-badge.pending { background: #fff4d8; color: #7a5500; }
.status-badge.restricted { background: #fdecec; color: #a12626; }
.metric-card { border: 1px solid var(--line); border-radius: 14px; padding: 16px; background: #fff; }
.metric-card strong { display: block; font-size: 1.65rem; color: var(--primary); }
.metric-card span { color: var(--muted); font-size: .82rem; }
.quick-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.upload-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.file-status { border: 1px dashed var(--line); border-radius: 12px; padding: 14px; margin-bottom: 14px; background: #fbfcfd; }
.file-status.ready { border-style: solid; border-color: #a9dbc0; background: #f1fbf5; }
.file-status strong, .file-status small { display: block; }
.file-status small { color: var(--muted); margin-top: 4px; }
.compact-job-list { display: grid; gap: 10px; }
.compact-job-list article { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.compact-job-list strong, .compact-job-list small { display: block; }
.compact-job-list small { color: var(--muted); margin-top: 4px; }
.table-actions .approve, .approve { background: #daf3e5 !important; color: #11643b !important; }
.table-actions .danger-soft, .danger-soft { background: #fde7e7 !important; color: #9b2424 !important; }
.data-table select { min-width: 135px; padding: 7px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.info-content code, .data-table code { word-break: break-all; }
.validation-card.invalid { border-color: #efb5b5; background: #fff5f5; }
.validation-card.valid { border-color: #abd9bf; background: #f1fbf5; }
button:disabled { opacity: .55; cursor: not-allowed; }

@media (max-width: 820px) {
  .upload-grid { grid-template-columns: 1fr; }
  .quick-actions { flex-direction: column; }
  .quick-actions .btn { width: 100%; }
}
