/* Career Bridge - Premium dark professional theme. */

:root {
  color-scheme: dark;

  --bg-main: #05070d;
  --bg-page: #0b1018;
  --bg-panel: #101722;
  --bg-card: #111927;
  --bg-card-hover: #162132;
  --bg-muted: #1b2635;
  --bg-input: #0c121c;
  --bg-overlay: rgba(5, 7, 13, 0.82);

  --border-muted: #223044;
  --border-default: #2d3a4e;
  --border-strong: #43516a;

  --text-primary: #f7f9fc;
  --text-secondary: #d6deea;
  --text-muted: #9aa8ba;
  --text-subtle: #738195;

  --accent-blue: #6aa8ff;
  --accent-blue-strong: #2f75e0;
  --accent-green: #19a463;
  --accent-green-hover: #26bd76;
  --accent-red: #f85149;
  --accent-yellow: #d29922;
  --accent-purple: #a371f7;

  --ink: var(--text-primary);
  --muted: var(--text-muted);
  --subtle: var(--text-subtle);
  --bg: var(--bg-main);
  --bg-2: var(--bg-page);
  --surface: var(--bg-card);
  --surface-strong: var(--bg-card);
  --surface-soft: var(--bg-muted);
  --line: var(--border-default);
  --line-strong: var(--border-strong);
  --primary: var(--accent-blue);
  --primary-strong: var(--accent-blue-strong);
  --accent: var(--accent-purple);
  --accent-2: var(--accent-yellow);
  --success: var(--accent-green-hover);
  --danger: var(--accent-red);

  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius: 10px;
  --radius-md: 12px;
  --radius-lg: 16px;

  --shadow-card: 0 18px 46px rgba(1, 4, 9, 0.38);
  --shadow-card-hover: 0 24px 64px rgba(1, 4, 9, 0.48);
  --shadow-float: 0 30px 90px rgba(1, 4, 9, 0.74);
  --focus: 0 0 0 3px rgba(88, 166, 255, 0.32);
  --control-height: 2.75rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg-main);
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  color: var(--text-primary);
  background:
    radial-gradient(circle at 16% -8%, rgba(47, 117, 224, 0.18), transparent 31rem),
    radial-gradient(circle at 86% 4%, rgba(25, 164, 99, 0.08), transparent 29rem),
    linear-gradient(180deg, #05070d 0%, #0a1019 42%, #05070d 100%);
  font-family: "Sora", -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif;
  font-size: 15.5px;
  line-height: 1.68;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -4;
  pointer-events: none;
  background:
    linear-gradient(rgba(106, 168, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(106, 168, 255, 0.07) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.45), transparent 68%);
}

.background-mesh {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 14%, rgba(106, 168, 255, 0.11), transparent 28rem),
    radial-gradient(circle at 82% 12%, rgba(25, 164, 99, 0.07), transparent 27rem),
    linear-gradient(180deg, rgba(11, 16, 24, 0.42), rgba(5, 7, 13, 0.82));
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--text-primary);
  line-height: 1.1;
  letter-spacing: 0;
  font-weight: 800;
}

h1 {
  font-size: 4.1rem;
}

h2 {
  font-size: 2.4rem;
}

h3 {
  font-size: 1.08rem;
}

p,
li {
  font-weight: 400;
}

p {
  overflow-wrap: anywhere;
}

article,
section,
form,
label,
td,
th {
  min-width: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
  text-wrap: balance;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  border-color: var(--accent-blue);
}

.container {
  width: min(1200px, calc(100% - 2rem));
  margin-inline: auto;
}

.section {
  padding: 5.8rem 0;
}

.kicker,
.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--accent-blue);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 1.8rem;
}

.section-heading p {
  margin: 0.82rem 0 0;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.75;
}

.section-heading .kicker {
  margin: 0 0 0.58rem;
}

.job-seeker-dashboard-heading,
.employer-dashboard-heading {
  display: flex;
  max-width: none;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.job-seeker-dashboard-actions,
.employer-dashboard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  justify-content: flex-end;
}

.inline-meta,
.helper-note,
.auth-quick-status {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.helper-note {
  margin: 0.75rem 0 1rem;
}

/* Header / navigation */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(5, 7, 13, 0.82);
  border-bottom: 1px solid rgba(67, 81, 106, 0.46);
  backdrop-filter: blur(20px) saturate(1.25);
  box-shadow: 0 12px 36px rgba(1, 4, 9, 0.18);
}

.nav-wrap {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.78rem;
  font-weight: 800;
}

.brand-mark {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(106, 168, 255, 0.95), rgba(25, 164, 99, 0.9));
  border: 1px solid rgba(214, 222, 234, 0.2);
  box-shadow: 0 10px 26px rgba(47, 117, 224, 0.2), inset 0 0 0 1px rgba(247, 249, 252, 0.18);
  font-size: 0.78rem;
  letter-spacing: 0;
}

.brand-text {
  color: var(--text-primary);
  font-size: 1rem;
}

.header-right {
  margin-left: auto;
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.24rem;
  font-size: 0.88rem;
  font-weight: 700;
}

.site-nav a {
  position: relative;
  color: var(--text-secondary);
  border-radius: 999px;
  padding: 0.56rem 0.82rem;
  transition: color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--text-primary);
  background: rgba(106, 168, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(106, 168, 255, 0.08);
}

.site-nav a.active::after {
  content: "";
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: -1.12rem;
  height: 2px;
  background: var(--accent-blue);
  border-radius: 999px;
}

.auth-corner {
  display: inline-flex;
  align-items: center;
  gap: 0.62rem;
}

.auth-quick-status {
  margin: 0;
  white-space: nowrap;
}

.menu-button {
  display: none;
  min-height: 2.55rem;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.62rem 0.8rem;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  background: rgba(17, 25, 39, 0.86);
  font-weight: 800;
}

.menu-button:hover {
  color: var(--text-primary);
  background: var(--bg-card-hover);
}

/* Buttons */

.btn,
.btn-action,
.close-modal,
.auth-role-tab,
.filter-chip {
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  background: linear-gradient(180deg, rgba(35, 48, 68, 0.96), rgba(27, 38, 53, 0.96));
  font-weight: 700;
  line-height: 1.15;
  transition:
    background-color 150ms ease,
    border-color 150ms ease,
    color 150ms ease,
    transform 150ms ease,
    box-shadow 150ms ease;
}

.btn {
  position: relative;
  min-height: var(--control-height);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.58rem;
  padding: 0.78rem 1.12rem;
  text-align: center;
  white-space: nowrap;
}

.btn > i:first-child {
  display: none;
}

.btn:hover,
.btn-action:hover,
.filter-chip:hover,
.auth-role-tab:hover {
  background: rgba(45, 58, 78, 0.96);
  border-color: var(--border-strong);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(1, 4, 9, 0.22);
}

.btn-primary {
  background: linear-gradient(180deg, #27bd77, #168f57);
  border-color: rgba(38, 189, 118, 0.62);
  color: #fff;
  box-shadow: 0 12px 28px rgba(25, 164, 99, 0.22);
}

.btn-primary:hover {
  background: linear-gradient(180deg, #32cf87, #19a463);
  border-color: rgba(63, 185, 80, 0.85);
}

.btn-secondary {
  background: linear-gradient(180deg, rgba(35, 48, 68, 0.96), rgba(20, 30, 45, 0.96));
  border-color: var(--border-default);
  color: var(--text-primary);
}

.btn-ghost {
  background: rgba(106, 168, 255, 0.04);
  color: var(--accent-blue);
}

.btn-ghost:hover {
  color: var(--text-primary);
  background: rgba(88, 166, 255, 0.12);
  border-color: rgba(88, 166, 255, 0.35);
}

.btn-link {
  width: fit-content;
  padding: 0;
  border: 0;
  color: var(--accent-blue);
  background: transparent;
  font: inherit;
  font-weight: 800;
  text-align: left;
}

.btn-link:hover {
  color: var(--text-primary);
  text-decoration: underline;
}

.btn-action {
  position: relative;
  min-height: 2.32rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  padding: 0.58rem 0.72rem;
  font-size: 0.84rem;
  text-align: center;
  white-space: nowrap;
}

.btn-action > i:first-child {
  display: none;
}

.btn-action.strong {
  background: var(--accent-green);
  border-color: rgba(46, 160, 67, 0.65);
  color: #fff;
}

.btn-action.strong:hover {
  background: var(--accent-green-hover);
}

.btn-action.danger,
.danger {
  color: var(--accent-red);
}

.btn-action.danger:hover {
  color: #fff;
  background: rgba(248, 81, 73, 0.15);
  border-color: rgba(248, 81, 73, 0.42);
}

.btn-action.applied {
  color: #aff5b4;
  background: rgba(46, 160, 67, 0.12);
  border-color: rgba(46, 160, 67, 0.38);
}

/* Hero */

.hero {
  position: relative;
  padding-top: 6.6rem;
  padding-bottom: 6.9rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
}

.hero-copy h1 {
  max-width: 820px;
  margin: 0.18rem 0 1.2rem;
  font-size: 4.65rem;
  line-height: 1.06;
}

.hero-copy > p:not(.kicker) {
  max-width: 720px;
  margin: 0;
  color: var(--text-secondary);
  font-size: 1.06rem;
  line-height: 1.78;
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  border-radius: 999px;
  padding: 0.34rem 0.66rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
  color: var(--text-secondary);
  background: rgba(27, 38, 53, 0.86);
  border: 1px solid rgba(67, 81, 106, 0.78);
  white-space: nowrap;
  overflow-wrap: normal;
}

.badge.success,
.success {
  color: #aff5b4;
  background: rgba(35, 134, 54, 0.18);
  border-color: rgba(46, 160, 67, 0.42);
}

.badge.error,
.error {
  color: #ffdcd7;
  background: rgba(248, 81, 73, 0.14);
  border-color: rgba(248, 81, 73, 0.42);
}

.dashboard-preview,
.hero-panel,
.panel,
.card,
.job-card,
.salary-card,
.listing-item,
.application-item,
.empty-state {
  background:
    linear-gradient(180deg, rgba(247, 249, 252, 0.035), transparent 38%),
    var(--bg-card);
  border: 1px solid rgba(67, 81, 106, 0.72);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.dashboard-preview {
  padding: 1.1rem;
}

.dashboard-preview-header,
.salary-card-top,
.job-card-top,
.listing-top,
.application-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.dashboard-preview-header {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-muted);
}

.match-card {
  margin: 1.1rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem;
  border: 1px solid var(--border-default);
  border-radius: var(--radius);
  background: var(--bg-page);
}

.match-score {
  display: block;
  color: var(--text-primary);
  font-size: 2rem;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
}

.match-card p {
  margin: 0.25rem 0 0;
  color: var(--text-muted);
}

.panel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.panel-grid article {
  min-height: 9rem;
  padding: 1.05rem;
  border: 1px solid var(--border-default);
  border-radius: var(--radius);
  background: var(--bg-page);
}

.panel-grid i,
.icon-bubble {
  color: var(--accent-blue);
}

.stat {
  margin: 0.8rem 0 0.12rem;
  color: var(--text-primary);
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 0;
}

.panel-grid article p:last-child {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.activity-strip {
  margin-top: 1rem;
  display: grid;
  gap: 0.45rem;
}

.activity-strip span {
  height: 0.62rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--bg-muted), rgba(67, 81, 106, 0.85), var(--bg-muted));
}

.activity-strip span:nth-child(2) {
  width: 74%;
}

.activity-strip span:nth-child(3) {
  width: 52%;
}

/* Panels / grids */

.card-grid,
.job-grid,
.listing-grid,
.application-grid {
  display: grid;
  gap: 1.3rem;
}

.card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.job-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.listing-grid,
.application-grid {
  margin-top: 1.25rem;
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 1.15rem;
  align-items: start;
}

.panel,
.card,
.salary-card,
.job-card,
.listing-item,
.application-item,
.empty-state {
  padding: 1.35rem;
}

.card:hover,
.salary-card:hover,
.job-card:hover,
.listing-item:hover,
.application-item:hover,
.panel:hover {
  border-color: var(--border-strong);
}

.job-card,
.salary-card,
.listing-item,
.application-item {
  transition: transform 150ms ease, border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}

.job-card:hover,
.salary-card:hover,
.listing-item:hover,
.application-item:hover {
  transform: translateY(-2px);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-card-hover);
}

.job-card h3,
.listing-item h3,
.application-item h3,
.salary-card h3 {
  margin: 0;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.job-card p,
.listing-item p,
.application-item p,
.salary-card p,
.panel p {
  color: var(--text-muted);
  line-height: 1.65;
}

.job-card-top > div,
.salary-card-top > div,
.listing-top > div,
.application-top > div {
  min-width: 0;
}

.job-card p strong,
.application-item p strong {
  color: var(--text-secondary);
}

.icon-bubble {
  width: 2.55rem;
  height: 2.55rem;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  background:
    linear-gradient(135deg, rgba(106, 168, 255, 0.24), rgba(25, 164, 99, 0.1)),
    var(--bg-muted);
  border: 1px solid rgba(106, 168, 255, 0.2);
  font-weight: 900;
}

.job-meta-list,
.application-contact,
.inline-actions,
.job-actions,
.listing-actions,
.application-actions,
.cv-modal-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.job-meta-list {
  margin: 0.95rem 0;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 1.95rem;
  padding: 0.38rem 0.62rem;
  color: var(--text-secondary);
  background: rgba(12, 18, 28, 0.74);
  border: 1px solid rgba(34, 48, 68, 0.92);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.meta-pill i {
  color: var(--text-subtle);
}

.job-salary,
.salary-value {
  color: var(--text-primary) !important;
  font-weight: 900;
}

.salary-value {
  margin: 1.05rem 0 0.36rem;
  font-size: 1.55rem;
  letter-spacing: 0;
}

.requirements-preview,
.cover-preview {
  min-height: 3.2rem;
}

.job-actions,
.listing-actions,
.application-actions {
  margin-top: 1.3rem;
  align-items: stretch;
}

.empty-state {
  display: grid;
  place-items: center;
  gap: 0.6rem;
  min-height: 9rem;
  text-align: center;
  color: var(--text-muted);
  background:
    linear-gradient(180deg, rgba(33, 38, 45, 0.55), rgba(13, 17, 23, 0.85)),
    var(--bg-card);
}

.empty-state p {
  margin: 0;
}

.product-strip .panel ul {
  color: var(--text-secondary);
}

/* Search / filters */

.search-panel {
  min-height: 3.35rem;
  margin: 0 0 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.72rem;
  padding: 0.48rem 0.92rem;
  color: var(--text-muted);
  background: rgba(12, 18, 28, 0.86);
  border: 1px solid rgba(67, 81, 106, 0.78);
  border-radius: var(--radius-md);
  box-shadow: inset 0 1px 0 rgba(247, 249, 252, 0.03);
}

.search-panel:focus-within {
  border-color: var(--accent-blue);
  box-shadow: var(--focus);
}

.search-panel input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--text-primary);
  background: transparent;
}

.search-panel input::placeholder {
  color: var(--text-subtle);
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.58rem;
  margin: 0 0 1.25rem;
}

.filter-chip {
  min-height: 2.35rem;
  padding: 0.6rem 0.84rem;
  color: var(--text-secondary);
  font-size: 0.84rem;
  border-radius: 999px;
}

.filter-chip.active {
  color: #fff;
  background: linear-gradient(180deg, rgba(39, 189, 119, 0.95), rgba(22, 143, 87, 0.95));
  border-color: rgba(38, 189, 118, 0.68);
  box-shadow: 0 10px 24px rgba(25, 164, 99, 0.18);
}

/* Forms */

.stack-form {
  display: grid;
  gap: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

label {
  display: grid;
  gap: 0.44rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  color: var(--text-primary);
  background: var(--bg-input);
  border: 1px solid rgba(67, 81, 106, 0.82);
  border-radius: var(--radius-sm);
  padding: 0.82rem 0.9rem;
  outline: 0;
  line-height: 1.3;
  transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}

input,
select {
  min-height: var(--control-height);
}

textarea {
  line-height: 1.6;
  resize: vertical;
}

input:hover,
select:hover,
textarea:hover {
  border-color: var(--border-strong);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent-blue);
  background: #0f1724;
  box-shadow: var(--focus);
}

input::placeholder,
textarea::placeholder {
  color: var(--text-subtle);
}

select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--text-muted) 50%),
    linear-gradient(135deg, var(--text-muted) 50%, transparent 50%);
  background-position:
    calc(100% - 17px) calc(50% + 1px),
    calc(100% - 12px) calc(50% + 1px);
  background-size: 5px 5px;
  background-repeat: no-repeat;
}

input[type="file"] {
  cursor: pointer;
}

input[type="file"]::file-selector-button {
  margin-right: 0.75rem;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xs);
  color: var(--text-primary);
  background: linear-gradient(180deg, rgba(35, 48, 68, 0.96), rgba(27, 38, 53, 0.96));
  padding: 0.58rem 0.78rem;
  font-weight: 800;
  line-height: 1.15;
}

.form-status {
  min-height: 1.4rem;
  margin: 0.15rem 0 0;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.form-status.success {
  color: #aff5b4;
}

.form-status.error {
  color: #ffdcd7;
}

.field-helper {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
}

.password-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.5rem;
  align-items: center;
}

.password-field .btn-action {
  min-height: 100%;
  white-space: nowrap;
}

.auth-secondary-panel {
  margin-top: 0.75rem;
}

.auth-link-row {
  display: flex;
  justify-content: flex-end;
}

.password-recovery-panel {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.development-reset-panel {
  display: grid;
  gap: 0.45rem;
  padding: 0.85rem;
  background: rgba(210, 153, 34, 0.1);
  border: 1px solid rgba(210, 153, 34, 0.32);
  border-radius: var(--radius-sm);
}

.development-reset-panel strong,
.development-reset-panel p {
  margin: 0;
}

.development-reset-panel p {
  color: var(--text-muted);
  font-size: 0.86rem;
}

.development-reset-panel code {
  display: block;
  max-height: 6rem;
  overflow: auto;
  padding: 0.65rem;
  color: var(--text-primary);
  background: var(--bg-main);
  border: 1px solid var(--border-muted);
  border-radius: var(--radius-xs);
  overflow-wrap: anywhere;
}

.auth-back-link {
  margin-top: 0.25rem;
}

.cv-mode-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  padding: 0.32rem;
  border: 1px solid var(--border-muted);
  border-radius: var(--radius);
  background: rgba(1, 4, 9, 0.45);
}

.cv-method-panel {
  display: grid;
  gap: 0.85rem;
}

.cv-builder-toolbar,
.cv-builder-section-heading {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
}

.cv-builder-section {
  display: grid;
  gap: 0.85rem;
  padding-block: 0.75rem;
  border-top: 1px solid var(--border-muted);
}

.cv-builder-section-heading h4 {
  margin: 0;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.cv-repeatable-list {
  display: grid;
  gap: 0.85rem;
}

.cv-repeatable-item {
  display: grid;
  gap: 0.75rem;
  padding: 0.85rem;
  background: rgba(1, 4, 9, 0.32);
  border: 1px solid var(--border-muted);
  border-radius: var(--radius-sm);
}

.cv-repeatable-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.cv-repeatable-fields label:has(textarea),
.cv-repeatable-fields label:nth-child(7) {
  grid-column: 1 / -1;
}

.cv-remove-item {
  justify-self: end;
}

.cv-builder-actions,
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.cv-builder-preview {
  overflow: auto;
  padding: 1rem;
  color: #111;
  background: #d8dee4;
  border: 1px solid var(--border-muted);
  border-radius: var(--radius-sm);
}

.cv-document {
  position: relative;
  width: min(100%, 794px);
  min-height: 1123px;
  margin-inline: auto;
  padding: 70px 70px 64px;
  color: #111;
  background: #fff;
  font-family: "Times New Roman", Times, serif;
  font-size: 13.5px;
  line-height: 1.25;
  box-shadow: 0 12px 28px rgba(1, 4, 9, 0.22);
}

.cv-document h3,
.cv-document h4,
.cv-document p,
.cv-document ul {
  margin: 0;
}

.cv-doc-header {
  display: flex;
  justify-content: space-between;
  gap: 1.2rem;
  min-height: 118px;
  padding-bottom: 1rem;
}

.cv-doc-header h3 {
  color: #111;
  font-size: 1.75rem;
  line-height: 1.1;
}

.cv-doc-header p {
  margin-top: 0.24rem;
  color: #111;
}

.cv-doc-header a,
.cv-doc-reference a {
  color: #0b4f8a;
  text-decoration: none;
}

.cv-photo-preview {
  width: 88px;
  height: 112px;
  flex: 0 0 auto;
  object-fit: cover;
  object-position: center 42%;
  border: 1px solid #d0d7de;
}

.cv-doc-section {
  margin-top: 0.65rem;
}

.cv-doc-section h4 {
  padding-bottom: 0.28rem;
  color: #111;
  font-size: 1.08rem;
  border-bottom: 1px solid #6b7280;
}

.cv-doc-entry {
  margin-top: 0.55rem;
}

.cv-doc-entry-head,
.cv-doc-entry-sub,
.cv-doc-activity {
  display: flex;
  gap: 1rem;
  align-items: baseline;
  justify-content: space-between;
}

.cv-doc-entry-head span,
.cv-doc-entry-sub span {
  flex: 0 0 auto;
  text-align: right;
}

.cv-doc-entry-sub {
  margin-top: 0.08rem;
  color: #111;
}

.cv-doc-entry ul {
  margin-top: 0.28rem;
  padding-left: 1.05rem;
}

.cv-doc-entry li {
  margin: 0.14rem 0;
}

.cv-doc-skill-row {
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr);
  gap: 0.75rem;
  margin-top: 0.1rem;
}

.cv-doc-reference-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
  margin-top: 0.55rem;
}

.cv-doc-reference {
  display: grid;
  gap: 0.12rem;
}

.cv-doc-footer {
  position: absolute;
  right: 70px;
  bottom: 24px;
  left: 70px;
  color: #8c959f;
  font-size: 0.78rem;
  font-style: italic;
  text-align: center;
}

.notice-panel {
  margin: 0.75rem 0;
  padding: 0.9rem;
  color: var(--text-secondary);
  background: rgba(46, 160, 67, 0.1);
  border: 1px solid rgba(46, 160, 67, 0.32);
  border-radius: var(--radius-sm);
}

.notice-panel strong,
.notice-panel p {
  margin: 0;
}

.notice-panel p {
  margin-top: 0.25rem;
  color: var(--text-muted);
}

.auth-inline-status {
  margin-top: 0.9rem;
}

.auth-role-switch {
  margin: 1.1rem 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  padding: 0.36rem;
  border: 1px solid rgba(67, 81, 106, 0.78);
  border-radius: var(--radius);
  background: rgba(5, 7, 13, 0.46);
}

.auth-role-tab {
  min-height: 2.5rem;
  color: var(--text-muted);
  background: transparent;
  border-radius: var(--radius-sm);
  padding: 0.58rem 0.72rem;
}

.auth-role-tab.active {
  color: var(--text-primary);
  background: rgba(35, 48, 68, 0.92);
  border-color: rgba(106, 168, 255, 0.18);
}

.auth-panel[hidden] {
  display: none;
}

/* Details / modal */

.job-detail-panel h2 {
  margin-right: 2.6rem;
}

.apply-job-summary {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-muted);
}

.apply-job-summary h2 {
  font-size: 2.55rem;
}

.job-detail-list {
  margin: 1rem 0 1.35rem;
  padding-left: 1.15rem;
  color: var(--text-secondary);
}

.job-detail-list li {
  margin: 0.32rem 0;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.modal[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 7, 13, 0.78);
  backdrop-filter: blur(12px) saturate(1.15);
  animation: fadeIn 160ms ease both;
}

.modal-dialog {
  position: relative;
  z-index: 1;
  width: min(720px, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  overflow: auto;
  padding: 1.45rem;
  background:
    linear-gradient(180deg, rgba(247, 249, 252, 0.035), transparent 28%),
    var(--bg-card);
  border: 1px solid rgba(67, 81, 106, 0.82);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-float);
  animation: modalIn 190ms ease both;
  scrollbar-gutter: stable;
}

.modal-dialog > h3,
.modal-dialog > .kicker {
  margin-right: 2.9rem;
}

.modal-dialog .stack-form {
  margin-top: 1rem;
}

.auth-modal-dialog {
  width: min(520px, calc(100vw - 2rem));
}

.cv-modal-dialog {
  width: min(1040px, calc(100vw - 2rem));
}

.salary-insight-modal-dialog {
  width: min(640px, calc(100vw - 2rem));
}

.profile-modal-dialog,
.company-modal-dialog,
.post-job-modal-dialog {
  width: min(680px, calc(100vw - 2rem));
}

.salary-insight-add-button {
  margin-top: 1rem;
  width: 100%;
}

.cv-modal-details {
  margin: 0.75rem 0 1rem;
}

.application-submission-summary {
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
  color: var(--text-secondary);
  background: rgba(5, 7, 13, 0.32);
  border: 1px solid rgba(34, 48, 68, 0.9);
  border-radius: var(--radius-sm);
}

.application-submission-summary h4,
.application-submission-summary p {
  margin: 0;
}

.application-submission-summary dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem 1rem;
  margin: 0;
}

.application-submission-summary div {
  min-width: 0;
}

.application-submission-summary dt {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.application-submission-summary dd {
  margin: 0.15rem 0 0;
  color: var(--text-primary);
  overflow-wrap: anywhere;
}

.close-modal {
  position: absolute;
  top: 0.95rem;
  right: 0.95rem;
  width: 2.35rem;
  height: 2.35rem;
  display: grid;
  place-items: center;
  padding: 0;
  color: var(--text-muted);
  background: rgba(27, 38, 53, 0.96);
  font-size: 1rem;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}

.close-glyph {
  display: block;
  color: var(--text-primary);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.45rem;
  line-height: 1;
  font-weight: 500;
}

.close-modal:hover {
  color: var(--text-primary);
  background: rgba(45, 58, 78, 0.96);
}

body.modal-open {
  overflow: hidden;
}

.cv-preview-frame {
  width: 100%;
  min-height: 70vh;
  margin-top: 0.9rem;
  border: 1px solid var(--border-default);
  border-radius: var(--radius);
  background: #fff;
}

.cover-preview {
  color: var(--text-muted);
}

.cv-link {
  color: var(--accent-blue);
}

/* Footer */

.site-footer {
  border-top: 1px solid rgba(67, 81, 106, 0.48);
  background: rgba(5, 7, 13, 0.92);
}

.footer-wrap {
  min-height: 6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text-muted);
}

.footer-wrap p {
  margin: 0;
}

/* Animations */

.reveal {
  opacity: 1;
  transform: translateY(0);
}

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 420ms ease, transform 420ms ease;
}

.js .reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Accessibility */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Responsive layout */

@media (max-width: 1120px) {
  .card-grid,
  .job-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-grid,
  .two-col {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 1060px) {
  .site-nav {
    position: absolute;
    top: calc(100% + 0.55rem);
    right: 0;
    min-width: 240px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.65rem;
    border: 1px solid rgba(67, 81, 106, 0.82);
    border-radius: var(--radius-md);
    background: rgba(11, 16, 24, 0.98);
    box-shadow: var(--shadow-float);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a.active::after {
    display: none;
  }

  .menu-button {
    display: inline-flex;
  }

  .auth-quick-status {
    display: none;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 1.25rem, 1200px);
  }

  .section {
    padding: 4rem 0;
  }

  .hero {
    padding-top: 4.4rem;
    padding-bottom: 4.6rem;
  }

  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2rem;
  }

  .hero-copy h1 {
    font-size: 3.05rem;
  }

  .hero-copy > p:not(.kicker),
  .section-heading p {
    font-size: 0.96rem;
    line-height: 1.68;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .job-seeker-dashboard-heading,
  .employer-dashboard-heading,
  .dashboard-panel-heading {
    align-items: flex-start;
  }

  .job-seeker-dashboard-actions,
  .employer-dashboard-actions,
  .dashboard-panel-heading > .btn,
  .dashboard-panel-heading > a.btn,
  .dashboard-panel-heading > button {
    width: 100%;
  }

  .admin-filter-bar,
  .form-row,
  .password-field {
    grid-template-columns: 1fr;
  }

  .panel-grid,
  .form-row,
  .card-grid,
  .job-grid {
    grid-template-columns: 1fr;
  }

  .brand-text {
    max-width: 9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .auth-open-btn span {
    display: none;
  }

  .auth-open-btn {
    min-width: 2.58rem;
    padding-inline: 0.86rem;
  }

  .auth-open-btn > i:first-child {
    position: static;
    display: inline-block;
  }

  #loginButton i,
  #logoutButton i {
    display: inline-block;
  }

  .modal {
    padding: 0.55rem;
  }

  .modal-dialog {
    width: 100%;
    max-height: calc(100vh - 1.1rem);
    border-radius: var(--radius);
    padding: 1.05rem;
  }

  .modal-dialog > h3,
  .modal-dialog > .kicker {
    margin-right: 2.55rem;
  }

  .cv-preview-frame {
    min-height: 52vh;
  }

  .footer-wrap {
    min-height: auto;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 1rem 0;
  }
}

@media (max-width: 520px) {
  .nav-wrap {
    min-height: 64px;
  }

  .header-right {
    gap: 0.45rem;
  }

  .brand-mark {
    width: 2rem;
    height: 2rem;
  }

  .btn {
    min-height: 2.58rem;
    padding-inline: 0.86rem;
  }

  .btn-action {
    min-height: 2.25rem;
  }

  h1,
  .hero-copy h1 {
    font-size: 2.42rem;
  }

  h2 {
    font-size: 1.72rem;
  }

  .apply-job-summary h2 {
    font-size: 1.92rem;
  }

  .panel,
  .card,
  .salary-card,
  .job-card,
  .listing-item,
  .application-item,
  .empty-state,
  .dashboard-preview {
    padding: 0.95rem;
  }

  .dashboard-stat-grid {
    gap: 0.75rem;
  }

  .stat-card {
    min-height: 5.9rem;
    padding: 0.9rem;
  }

  .filter-chip {
    min-height: 2.28rem;
    padding-inline: 0.72rem;
  }

  .table-actions .btn-action {
    flex: 1 1 8rem;
  }

  .pagination-bar {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Role-based dashboards */

[hidden] {
  display: none !important;
}

.dashboard-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin: 0 0 1.45rem;
}

.stat-card {
  min-height: 6.75rem;
  display: flex;
  align-items: center;
  gap: 0.95rem;
  padding: 1.08rem;
  background:
    linear-gradient(180deg, rgba(247, 249, 252, 0.035), transparent 44%),
    var(--bg-card);
  border: 1px solid rgba(67, 81, 106, 0.72);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.stat-card > div {
  width: 100%;
}

.stat-card p {
  margin: 0 0 0.15rem;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.45;
}

.stat-card strong {
  display: block;
  color: var(--text-primary);
  font-size: 1.55rem;
  line-height: 1;
}

.stat-card.success {
  background: rgba(35, 134, 54, 0.13);
}

.notice-panel {
  margin-bottom: 1.15rem;
  padding: 1.05rem;
  color: var(--text-secondary);
  background: rgba(210, 153, 34, 0.12);
  border: 1px solid rgba(210, 153, 34, 0.36);
  border-radius: var(--radius-md);
}

.notice-panel strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
}

.notice-panel p {
  margin: 0;
}

.dashboard-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
  align-items: start;
}

.dashboard-panel-spaced {
  margin-top: 1.45rem;
}

.dashboard-panel-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.15rem;
  margin-bottom: 1.35rem;
}

.dashboard-panel-heading h2,
.dashboard-panel-heading p {
  margin: 0;
}

.dashboard-panel-heading > .btn,
.dashboard-panel-heading > a.btn,
.dashboard-panel-heading > button {
  flex: 0 0 auto;
  margin-bottom: 0.1rem;
}

.dashboard-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.05rem;
  margin-bottom: 1.35rem;
}

.panel > .kicker + h2 {
  margin-top: 0.05rem;
}

.dashboard-panel-heading + .dashboard-filter-tabs {
  margin-top: 0;
}

.compact-grid {
  grid-template-columns: 1fr;
}

.compact-list {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
}

.compact-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.05rem;
  padding: 1rem;
  background: rgba(12, 18, 28, 0.78);
  border: 1px solid rgba(34, 48, 68, 0.9);
  border-radius: var(--radius-sm);
}

.compact-list-item strong {
  color: var(--text-primary);
}

.compact-list-item p {
  margin: 0.2rem 0 0;
  color: var(--text-muted);
}

.status-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin: 1.25rem 0;
}

.admin-filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(180px, 240px);
  gap: 1rem;
  align-items: end;
  margin: 1.1rem 0;
}

.compact-grid {
  margin: 0;
}

.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.admin-application-data-row td {
  border-bottom: 0;
}

.admin-application-action-row td {
  padding-top: 0;
  padding-bottom: 1rem;
  background: rgba(5, 7, 13, 0.18);
}

.admin-application-action-row .table-actions {
  gap: 0.4rem;
  align-items: center;
}

.admin-application-action-row .btn-action {
  min-height: 2.12rem;
  padding: 0.46rem 0.62rem;
  font-size: 0.8rem;
}

#adminApplicationsTable .data-table {
  min-width: 860px;
}

#adminApplicationsTable .data-table th:nth-child(2),
#adminApplicationsTable .data-table td:nth-child(2) {
  width: 23%;
  white-space: nowrap;
  overflow-wrap: normal;
}

#adminApplicationsTable .data-table th:nth-child(1),
#adminApplicationsTable .data-table td:nth-child(1) {
  width: 21%;
}

#adminApplicationsTable .data-table th:nth-child(5),
#adminApplicationsTable .data-table td:nth-child(5) {
  width: 12%;
  white-space: nowrap;
  overflow-wrap: normal;
}

.pagination-bar {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-top: 0.75rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--border-muted);
}

.pagination-summary {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.pagination-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.pagination-button {
  min-width: 1.85rem;
  min-height: 1.85rem;
  padding: 0.28rem 0.5rem;
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(27, 38, 53, 0.9);
  border: 1px solid rgba(34, 48, 68, 0.92);
  border-radius: var(--radius-xs);
}

.pagination-button:hover:not(:disabled),
.pagination-button.active {
  color: #fff;
  background: var(--accent-blue-strong);
  border-color: var(--accent-blue);
}

.pagination-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.pagination-ellipsis {
  display: inline-grid;
  place-items: center;
  min-width: 1.1rem;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.compact-select-label {
  min-width: 10rem;
  display: grid;
  gap: 0.35rem;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid rgba(34, 48, 68, 0.82);
  border-radius: var(--radius-md);
  background: rgba(12, 18, 28, 0.44);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
  table-layout: auto;
}

.data-table th,
.data-table td {
  padding: 0.86rem 0.9rem;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--border-muted);
}

.data-table th {
  color: var(--text-secondary);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(27, 38, 53, 0.58);
  white-space: nowrap;
}

.data-table td {
  color: var(--text-secondary);
  overflow-wrap: anywhere;
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.data-table tbody tr:hover {
  background: rgba(106, 168, 255, 0.045);
}

.data-table select,
.compact-select-label select,
.application-management select,
.application-management textarea {
  color: var(--text-primary);
  background: var(--bg-input);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  padding: 0.62rem 0.72rem;
}

.data-table select {
  appearance: none;
  width: auto;
  min-width: 7.1rem;
  max-width: 12rem;
  padding-inline: 0.72rem;
  text-align: center;
  text-align-last: center;
  background-image: none;
}

.compact-select-label select,
.application-management select,
.application-management textarea {
  width: 100%;
}

.application-management {
  display: grid;
  grid-template-columns: minmax(7.5rem, 8.75rem) minmax(220px, 1fr);
  gap: 0.85rem;
  align-items: start;
  margin-top: 1rem;
}

.application-management label {
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.application-status-control {
  max-width: 8.75rem;
}

.application-management .application-status-select {
  min-height: 2.8rem;
  padding: 0.45rem 2rem 0.45rem 0.6rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%238b949e' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-position: right 0.65rem center;
  background-size: 0.95rem;
  background-repeat: no-repeat;
}

.status-badge {
  text-transform: capitalize;
}

.status-submitted,
.status-active,
.status-open,
.status-verified {
  color: #aff5b4;
  background: rgba(35, 134, 54, 0.18);
  border-color: rgba(46, 160, 67, 0.42);
}

.status-reviewed,
.status-shortlisted,
.status-interview {
  color: #d2a8ff;
  background: rgba(163, 113, 247, 0.15);
  border-color: rgba(163, 113, 247, 0.34);
}

.status-rejected,
.status-inactive,
.status-closed,
.status-unverified {
  color: #ffdcd7;
  background: rgba(248, 81, 73, 0.14);
  border-color: rgba(248, 81, 73, 0.42);
}

.status-hired {
  color: #f8e3a1;
  background: rgba(210, 153, 34, 0.16);
  border-color: rgba(210, 153, 34, 0.42);
}

.toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 80;
  max-width: min(28rem, calc(100vw - 2rem));
  padding: 0.95rem 1.05rem;
  color: var(--text-primary);
  background:
    linear-gradient(180deg, rgba(247, 249, 252, 0.04), transparent 40%),
    var(--bg-card);
  border: 1px solid rgba(67, 81, 106, 0.82);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-float);
}

.toast.success {
  border-color: rgba(46, 160, 67, 0.42);
}

.toast.error {
  border-color: rgba(248, 81, 73, 0.42);
}

@media (max-width: 980px) {
  .dashboard-stat-grid,
  .dashboard-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .job-seeker-dashboard-heading,
  .employer-dashboard-heading {
    display: grid;
  }

  .job-seeker-dashboard-actions,
  .employer-dashboard-actions {
    justify-content: flex-start;
  }

  .dashboard-stat-grid,
  .dashboard-layout,
  .application-management,
  .application-submission-summary dl,
  .cv-repeatable-fields,
  .cv-doc-reference-grid,
  .cv-doc-skill-row {
    grid-template-columns: 1fr;
  }

  .dashboard-panel-heading,
  .compact-list-item {
    align-items: flex-start;
    flex-direction: column;
  }

  .cv-document {
    min-height: auto;
    padding: 42px 32px 58px;
    font-size: 12.5px;
  }

  .cv-doc-header,
  .cv-doc-entry-head,
  .cv-doc-entry-sub,
  .cv-doc-activity {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.2rem;
  }

  .cv-doc-entry-head span,
  .cv-doc-entry-sub span {
    text-align: left;
  }

  .cv-doc-footer {
    right: 32px;
    left: 32px;
  }
}

@page {
  size: A4;
  margin: 0;
}

@media print {
  body * {
    visibility: hidden;
  }

  #cvBuilderPreview,
  #cvBuilderPreview * {
    visibility: visible;
  }

  #cvBuilderPreview {
    position: absolute;
    inset: 0 auto auto 0;
    width: 210mm;
    padding: 0;
    overflow: visible;
    background: #fff;
    border: 0;
    border-radius: 0;
  }

  .cv-document {
    width: 210mm;
    min-height: 297mm;
    margin: 0;
    padding: 18mm 18mm 16mm;
    box-shadow: none;
  }

  .cv-doc-footer {
    position: fixed;
    bottom: 7mm;
  }
}
