:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-soft: #eef6f3;
  --text: #172033;
  --muted: #667085;
  --border: #dfe6ee;
  --white: #ffffff;
  --primary: #2158d8;
  --primary-dark: #183f9e;
  --accent: #12a594;
  --accent-warm: #f6a723;
  --ink: #111827;
  --gradient-hero: linear-gradient(135deg, #13213f 0%, #2158d8 54%, #12a594 100%);
  --gradient-soft: linear-gradient(135deg, #f7fbff 0%, #eef6f3 100%);
  --shadow-card: 0 14px 36px rgba(23, 32, 51, 0.08);
  --shadow-soft: 0 18px 46px rgba(33, 88, 216, 0.18);
  --shadow-hover: 0 24px 60px rgba(23, 32, 51, 0.14);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Inter, Segoe UI, Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(18, 165, 148, 0.09), transparent 30rem),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 34rem);
  color: var(--text);
  line-height: 1.55;
}

body.auth-page {
  background:
    radial-gradient(circle at top right, rgba(33, 88, 216, 0.08), transparent 28rem),
    linear-gradient(180deg, #f7faff 0%, #eef3fb 100%);
  min-height: 100vh;
}

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

.container {
  width: min(1180px, 92%);
  margin: 0 auto;
}

main { min-height: 70vh; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid var(--border);
}

.nav {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0;
}

.logo strong { color: var(--primary); }

.logo-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  color: #fff;
  font-weight: 800;
  background: var(--gradient-hero);
}

.logo-mark-image {
  padding: 0;
  overflow: hidden;
  background: #eef2ff;
}

.logo-mark-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.main-nav {
  display: inline-flex;
  align-items: center;
  gap: 24px;
}

.main-nav a {
  color: var(--muted);
  font-weight: 650;
  position: relative;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  border-radius: 999px;
  background: var(--accent);
  opacity: 0;
  transform: scaleX(.55);
  transition: all .2s ease;
}

.main-nav a:hover {
  color: var(--text);
}

.main-nav a:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.nav-actions {
  display: inline-flex;
  gap: 8px;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: all .2s ease;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #1746b8);
  box-shadow: 0 10px 24px rgba(33, 88, 216, 0.22);
}

.btn-primary:hover {
  box-shadow: var(--shadow-soft);
  transform: translateY(-1px);
}

.btn-ghost {
  color: var(--text);
  border-color: var(--border);
  background: transparent;
}

.btn-ghost:hover { background: #eef3ff; }

.btn-outline {
  border-color: var(--border);
  color: var(--text);
  background: var(--white);
}

.btn-outline:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.btn-soft {
  background: #ffffff;
  color: #173b8f;
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.12);
}

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.btn-outline-light:hover { background: rgba(255, 255, 255, 0.12); }

.hero-wrap {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
}

.hero-bg::before,
.hero-bg::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.hero-bg::before {
  width: 34rem;
  height: 34rem;
  right: -11rem;
  top: -12rem;
}

.hero-bg::after {
  width: 22rem;
  height: 22rem;
  left: 48%;
  bottom: -12rem;
  background: rgba(246, 167, 35, 0.16);
}

.hero-content {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  align-items: center;
  gap: 40px;
  padding: 86px 0 96px;
  color: #fff;
}

.hero-content h1 {
  margin: 0;
  font-size: clamp(2.3rem, 5vw, 4.4rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-content h1 span { color: #7fe7d8; }

.hero-content p {
  margin: 16px 0 0;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 620px;
}

.hero-kicker,
.page-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 6px 12px;
  color: rgba(255, 255, 255, 0.92);
  font-size: .82rem;
  font-weight: 750;
  text-transform: uppercase;
}

.hero-image { display: flex; justify-content: flex-end; }

.hero-image-inner {
  width: min(520px, 100%);
  aspect-ratio: 4 / 3;
  border-radius: 28px;
  background-color: #1e3a8a;
  background-image:
    linear-gradient(145deg, rgba(23, 41, 80, 0.35), rgba(18, 165, 148, 0.25)),
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.18), transparent 45%),
    linear-gradient(160deg, #1e3a8a 0%, #2158d8 50%, #12a594 100%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: var(--shadow-soft);
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-proof span {
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  padding: 7px 12px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.1);
}

.search-form {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
}

.search-form input,
.search-form select,
.search-form button {
  min-height: 48px;
  border-radius: 999px;
  border: 1px solid var(--border);
  padding: 0 14px;
  font-size: 0.95rem;
  font-family: inherit;
}

.search-form button {
  border: 0;
  color: #fff;
  font-weight: 700;
  background: var(--gradient-hero);
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(33, 88, 216, 0.22);
}

.search-form button:hover { filter: brightness(1.03); }

.search-form-wide {
  grid-template-columns: minmax(180px, 1fr) minmax(160px, .8fr) 130px 150px 150px 150px auto;
}

.company-candidate-filters {
  grid-template-columns: minmax(220px, 1fr) 180px 150px auto;
}

.btn:disabled,
button:disabled {
  cursor: not-allowed;
  opacity: .55;
  transform: none;
  box-shadow: none;
}

.search-hero {
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 24px;
  padding: 10px;
  box-shadow: var(--shadow-soft);
}

.hero-actions {
  margin-top: 16px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-actions.center { justify-content: center; }

.stats-strip {
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.84);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  text-align: center;
  padding: 28px 0;
}

.stats-grid strong {
  display: block;
  color: var(--primary-dark);
  font-size: 1.7rem;
  margin-bottom: 4px;
}

.stats-grid span { color: var(--muted); }

.section { padding: 64px 0; }

.flash-stack {
  margin-top: 16px;
  display: grid;
  gap: 8px;
}

.flash {
  border-radius: 10px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  font-weight: 500;
}

.flash-success {
  background: #effaf3;
  border-color: #b9e8c6;
  color: #166534;
}

.flash-error {
  background: #fff2f4;
  border-color: #fecdd3;
  color: #9f1239;
}

.flash-info {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}

body.flash-popup-open {
  overflow: hidden;
}

.flash-popup-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.52);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, visibility .2s ease;
}

.flash-popup-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.flash-popup {
  width: min(420px, 100%);
  background: #fff;
  border-radius: 20px;
  padding: 28px 24px 22px;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.28);
  text-align: center;
  transform: translateY(12px) scale(.98);
  transition: transform .22s ease;
}

.flash-popup-backdrop.is-open .flash-popup {
  transform: translateY(0) scale(1);
}

.flash-popup-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border-radius: 18px;
  display: grid;
  place-items: center;
}

.flash-popup-icon svg {
  width: 28px;
  height: 28px;
}

.flash-popup-success .flash-popup-icon {
  background: #dcfce7;
  color: #166534;
}

.flash-popup-error .flash-popup-icon {
  background: #ffe4e6;
  color: #be123c;
}

.flash-popup-info .flash-popup-icon {
  background: #dbeafe;
  color: #1d4ed8;
}

.flash-popup h2 {
  margin: 0 0 10px;
  font-size: 1.35rem;
  color: var(--ink);
}

.flash-popup-messages {
  display: grid;
  gap: 8px;
  margin-bottom: 20px;
}

.flash-popup-messages p {
  margin: 0;
  color: var(--muted);
  font-size: .98rem;
  line-height: 1.5;
}

.flash-popup-close {
  min-width: 140px;
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 12px;
}

.section-title h2,
.cta-company h2,
.detail-card h2 {
  margin: 0;
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.section-title p,
.panel p,
.form-card p {
  max-width: 760px;
}

.muted { color: var(--muted); }

.jobs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 16px;
}

.list-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.job-card {
  display: block;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px;
  box-shadow: var(--shadow-card);
  transition: all .25s ease;
}

.job-card:hover {
  border-color: rgba(33, 88, 216, 0.34);
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.job-card h3 {
  margin: 0;
  font-size: 1.1rem;
}

.job-card-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.company-initial {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #0f766e;
  background: #dcf8f2;
}

.job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0;
  font-size: .9rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.tag {
  background: #f5f8fb;
  border: 1px solid #e3e9f0;
  color: #42526b;
  border-radius: 999px;
  font-size: .82rem;
  padding: 4px 10px;
}

.posted-at { font-size: .82rem; margin: 8px 0 0; }

.cta-company {
  text-align: center;
  border-radius: 28px;
  color: #fff;
  background: var(--gradient-hero);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  position: relative;
  padding-inline: 24px;
}

.cta-company p {
  max-width: 760px;
  margin: 10px auto 0;
  color: rgba(255, 255, 255, 0.9);
}

.search-panel {
  border-bottom: 1px solid var(--border);
  background: var(--gradient-soft);
  padding: 48px 0 30px;
}

.search-panel h1 { margin: 0 0 10px; }

.page-hero {
  position: relative;
  overflow: hidden;
  background: var(--gradient-hero);
  color: #fff;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 82% 12%, rgba(255, 255, 255, 0.18), transparent 18rem),
    radial-gradient(circle at 12% 88%, rgba(246, 167, 35, 0.16), transparent 16rem);
}

.page-hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, .75fr);
  gap: 32px;
  align-items: center;
  padding: 64px 0;
}

.page-hero h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.08;
}

.page-hero p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.05rem;
}

.page-hero-card {
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 24px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.15);
}

.page-hero-card strong {
  display: block;
  font-size: 2rem;
  line-height: 1;
}

.page-hero-card span,
.page-hero-card p {
  color: rgba(255, 255, 255, 0.82);
}

.feature-grid,
.metric-grid {
  display: grid;
  gap: 16px;
}

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

.feature-stack {
  grid-template-columns: 1fr;
}

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

.feature-card,
.metric-card,
.contact-card {
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 22px;
  background: #fff;
  box-shadow: var(--shadow-card);
}

.feature-card strong,
.metric-card strong,
.contact-card strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 1.05rem;
}

.metric-card strong {
  color: var(--primary-dark);
  font-size: 1.8rem;
}

.feature-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 14px;
  color: #0f766e;
  background: #def7f0;
  font-weight: 800;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .72fr);
  gap: 18px;
  align-items: start;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.chips {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  color: var(--muted);
  font-size: .9rem;
}

.chips a {
  display: inline-block;
  border: 1px solid #d8e4ee;
  background: #fff;
  color: #334155;
  border-radius: 999px;
  padding: 4px 10px;
}

.chips a:hover { background: #eef3ff; }

.detail-card,
.empty-state,
.error-box,
.modern-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow-card);
}

.form-card,
.panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow-card);
  margin-bottom: 16px;
}

.form-card {
  width: min(560px, 100%);
  margin-inline: auto;
}

.form-card-wide {
  width: min(920px, 100%);
}

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

.form-card h1,
.panel h1,
.panel h2 {
  margin-top: 0;
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  font-weight: 600;
}

.field input,
.field textarea,
.field select {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.field input:focus,
.field textarea:focus,
.field select:focus,
.search-form input:focus {
  border-color: rgba(33, 88, 216, 0.55);
  box-shadow: 0 0 0 4px rgba(33, 88, 216, 0.1);
  outline: none;
}

.field textarea {
  resize: vertical;
  min-height: 110px;
}

.btn-full {
  width: 100%;
}

.helper-text {
  margin-top: 12px;
  font-size: .93rem;
}

.helper-text a {
  color: #26429b;
  text-decoration: underline;
}

.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.status-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 16px;
}

.status-pill,
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  border: 1px solid var(--border);
  padding: 5px 10px;
  font-size: .83rem;
  font-weight: 700;
  white-space: nowrap;
}

.status-badge {
  border: 0;
}

.status-info { color: #1d4ed8; background: #eff6ff; }
.status-neutral { color: #475569; background: #f1f5f9; }
.status-warning { color: #92400e; background: #fef3c7; }
.status-primary { color: #173b8f; background: #e9efff; }
.status-success { color: #166534; background: #dcfce7; }
.status-danger { color: #9f1239; background: #ffe4e6; }
.status-muted { color: #64748b; background: #f8fafc; }

.table-actions {
  display: table-cell;
  vertical-align: middle;
  white-space: nowrap;
}

td.table-actions {
  width: auto;
  min-width: 210px;
  white-space: nowrap;
}

.table-actions-group {
  display: inline-flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
}

.dashboard-body .table-actions-group {
  display: inline-flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
}

.table-action-spacer {
  display: inline-block;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
}

.table-action-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #334155;
  text-decoration: none;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.table-action-btn,
a.table-action-btn,
button.table-action-btn,
.dashboard-body .table-action-btn,
.dashboard-body a.table-action-btn,
.dashboard-body button.table-action-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  box-sizing: border-box;
  min-width: 92px;
  width: auto;
  height: 34px !important;
  min-height: 34px !important;
  max-height: 34px !important;
  padding: 0 12px !important;
  margin: 0;
  border-radius: 8px;
  border: 1px solid #dbe3ee;
  background: #fff;
  color: #1e3a8a;
  text-decoration: none;
  font-size: .82rem !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: none;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.table-action-btn:hover,
a.table-action-btn:hover,
button.table-action-btn:hover {
  background: #f0f7ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}

.table-action-btn.danger,
button.table-action-btn.danger {
  color: #be123c;
  border-color: #fecdd3;
  background: #fff;
}

.table-action-btn.danger:hover,
button.table-action-btn.danger:hover {
  background: #fff1f2;
  border-color: #fda4af;
  color: #9f1239;
}

.table-action-icon svg {
  width: 18px;
  height: 18px;
}

.table-action-icon:hover {
  background: #f0f7ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}

.table-action-icon.danger:hover {
  background: #fff1f2;
  border-color: #fecdd3;
  color: #be123c;
}

button.table-action-icon {
  padding: 0;
  cursor: pointer;
  font: inherit;
}

.table-actions-wrap {
  flex-wrap: wrap;
}

.table-actions form,
.table-actions-group form {
  margin: 0;
  display: inline-flex;
  width: auto;
  flex: 0 0 auto;
}

.link-button {
  border: 0;
  padding: 0;
  background: transparent;
  color: #26429b;
  cursor: pointer;
  font: inherit;
}

.link-button.danger {
  color: #be123c;
}

.saved-jobs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.saved-job-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  background: #fff;
}

.saved-job-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.plan-card {
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 22px;
  background: #fff;
  box-shadow: var(--shadow-card);
}

.plan-card h2 {
  margin: 0 0 10px;
}

.plan-price {
  display: block;
  margin-bottom: 10px;
  color: var(--primary-dark);
  font-size: 1.7rem;
}

.plan-price span {
  color: var(--muted);
  font-size: .9rem;
  font-weight: 600;
}

.application-form {
  width: min(620px, 100%);
}

.candidate-list {
  display: grid;
  gap: 16px;
}

.candidate-card {
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 22px;
  background: #fff;
  box-shadow: var(--shadow-card);
}

.candidate-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.candidate-card h2 {
  margin: 0 0 6px;
}

.candidate-card h3 {
  margin: 0 0 10px;
}

.candidate-resume-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .7fr);
  gap: 18px;
  align-items: start;
}

.candidate-table-hint {
  margin: 0 0 12px;
  font-size: .92rem;
}

.candidate-table-card {
  margin-bottom: 0;
}

.table-scroll {
  overflow-x: auto;
}

.candidate-table tbody tr.candidate-table-row {
  cursor: pointer;
  transition: background .15s ease;
}

.candidate-table tbody tr.candidate-table-row:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: -2px;
}

.candidate-table tbody tr.candidate-table-row.is-active,
.candidate-table tbody tr.candidate-table-row:hover {
  background: #f0f7ff;
}

.candidate-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  z-index: 1200;
}

.candidate-drawer-backdrop[hidden] {
  display: none !important;
}

.candidate-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(560px, 100vw);
  height: 100vh;
  background: #fff;
  z-index: 1201;
  box-shadow: -10px 0 40px rgba(15, 23, 42, 0.14);
  transform: translateX(100%);
  transition: transform .28s ease;
  display: flex;
  flex-direction: column;
  visibility: hidden;
  pointer-events: none;
}

.candidate-drawer.is-open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

body.candidate-drawer-open {
  overflow: hidden;
}

.candidate-drawer-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--border);
  background: #f8fafc;
}

.candidate-drawer-header h2 {
  margin: 0 0 6px;
  font-size: 1.35rem;
}

.candidate-drawer-subtitle {
  margin: 0;
  font-size: .9rem;
}

.candidate-drawer-close {
  border: 0;
  background: #e2e8f0;
  color: #334155;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}

.candidate-drawer-close:hover {
  background: #cbd5e1;
}

.candidate-drawer-body {
  padding: 20px 24px 28px;
  overflow-y: auto;
  display: grid;
  gap: 16px;
}

.candidate-drawer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.candidate-drawer-section h3 {
  margin: 0 0 12px;
}

.candidate-drawer-list {
  margin: 0 0 14px;
  padding-left: 18px;
  display: grid;
  gap: 12px;
}

.candidate-drawer-list-item p {
  margin: 6px 0 0;
}

.candidate-action-form {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
  background: #f8fafc;
}

@media print {
  .site-header,
  .site-footer,
  .no-print {
    display: none !important;
  }

  body {
    background: #fff;
  }

  .panel,
  .metric-card,
  .detail-card {
    box-shadow: none;
  }
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.page-link {
  display: inline-flex;
  min-width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  font-weight: 700;
}

.page-link.active {
  color: #fff;
  border-color: var(--primary);
  background: var(--primary);
}

.info-box {
  border-radius: 16px;
  border: 1px solid #d7ece7;
  background: #f5fbf9;
  padding: 12px;
  margin-bottom: 12px;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  padding: 10px;
  border-bottom: 1px solid var(--border);
  font-size: .93rem;
}

th {
  color: var(--muted);
  font-weight: 600;
}

.detail-head h1 { margin: 0 0 8px; }

.back-link {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: .95rem;
}

.meta-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.list {
  color: var(--muted);
  margin: 8px 0 16px;
  padding-left: 18px;
}

.list li { margin-bottom: 8px; }

.detail-actions {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.error-box code {
  display: block;
  white-space: pre-wrap;
  background: #fff1f2;
  color: #9f1239;
  border-radius: 10px;
  padding: 12px;
}

.hint { margin-top: 10px; }

.empty-state.success {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.site-footer {
  margin-top: 72px;
  border-top: 1px solid var(--border);
  background: #ffffff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 22px;
  padding: 38px 0;
}

.footer-logo { margin-bottom: 10px; }

.site-footer h4 {
  margin: 0 0 10px;
  font-size: .95rem;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li {
  margin-bottom: 8px;
  color: var(--muted);
}

.site-footer li a:hover { color: var(--text); }

.footer-bottom {
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: .9rem;
  color: var(--muted);
  padding: 18px 0;
}

@media (max-width: 980px) {
  .main-nav { display: none; }
  .search-form-wide {
    grid-template-columns: 1fr 1fr;
  }
  .company-candidate-filters {
    grid-template-columns: 1fr 1fr;
  }
  .search-form-wide button {
    grid-column: 1 / -1;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .candidate-resume-grid,
  .form-grid-two {
    grid-template-columns: 1fr;
  }
  .hero-content {
    grid-template-columns: 1fr;
    padding: 56px 0 64px;
  }
  .hero-image { display: none; }
  .page-hero-inner,
  .split-layout {
    grid-template-columns: 1fr;
  }
  .feature-grid,
  .metric-grid,
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  .search-form { grid-template-columns: 1fr; }
  .search-form-wide { grid-template-columns: 1fr; }
  .company-candidate-filters { grid-template-columns: 1fr; }
  .list-toolbar { display: block; }
  .nav-actions { display: none; }
  .section-title { flex-direction: column; align-items: flex-start; }
  .page-hero-inner {
    padding: 46px 0;
  }
  .feature-grid,
  .metric-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid { grid-template-columns: 1fr; }
}

.auth-shell {
  min-height: 100vh;
}

.auth-login-shell {
  display: grid;
  grid-template-columns: minmax(320px, 1.05fr) minmax(360px, 1fr);
}

.auth-side {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 44px;
  color: #fff;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.18), transparent 28%),
    radial-gradient(circle at 88% 78%, rgba(18, 165, 148, 0.35), transparent 34%),
    var(--gradient-hero);
  overflow: hidden;
}

.auth-side::after {
  content: "";
  position: absolute;
  inset: auto -10% -18% auto;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.auth-brand,
.auth-mobile-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  position: relative;
  z-index: 1;
}

.auth-brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.2);
}

.auth-side-content {
  position: relative;
  z-index: 1;
  max-width: 520px;
}

.auth-eyebrow {
  display: inline-flex;
  margin: 0 0 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.92);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .02em;
}

.auth-side h2 {
  margin: 0;
  font-size: clamp(1.9rem, 3.6vw, 2.75rem);
  line-height: 1.12;
  max-width: 520px;
  letter-spacing: -0.02em;
}

.auth-side p {
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.9);
  max-width: 460px;
  font-size: 1.02rem;
}

.auth-side-list {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.auth-side-list li {
  position: relative;
  padding-left: 28px;
  color: rgba(255, 255, 255, 0.92);
  font-size: .95rem;
}

.auth-side-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .35rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background:
    linear-gradient(#fff, #fff) center / 7px 2px no-repeat,
    linear-gradient(#fff, #fff) center / 2px 7px no-repeat,
    rgba(255, 255, 255, 0.22);
}

.auth-copy {
  position: relative;
  z-index: 1;
  font-size: .9rem;
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
}

.auth-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
}

.auth-main-single {
  padding-block: 54px;
}

.auth-card {
  width: min(460px, 100%);
}

.auth-card-panel {
  width: min(460px, 100%);
  border: 1px solid rgba(223, 230, 238, 0.95);
  background: rgba(255, 255, 255, 0.96);
  border-radius: 24px;
  padding: 36px 32px;
  box-shadow: 0 24px 60px rgba(23, 32, 51, 0.1);
  backdrop-filter: blur(10px);
}

.auth-card-wide {
  width: min(620px, 100%);
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  box-shadow: var(--shadow-card);
}

.auth-card-head {
  margin-bottom: 4px;
}

.auth-card h1 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.15rem);
  letter-spacing: -0.02em;
  color: var(--ink);
}

.auth-card-head .muted {
  margin: 10px 0 0;
  font-size: .98rem;
}

.auth-form {
  margin-top: 24px;
  display: grid;
  gap: 16px;
}

.auth-form .field {
  margin: 0;
}

.field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.field-link {
  color: var(--primary);
  font-size: .86rem;
  font-weight: 600;
  text-decoration: none;
}

.field-link:hover {
  text-decoration: underline;
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 88px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: var(--primary);
  font: inherit;
  font-size: .84rem;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 8px;
}

.auth-submit {
  margin-top: 6px;
  min-height: 48px;
  font-weight: 700;
}

.auth-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin: 26px 0 18px;
  color: #94a3b8;
  font-size: .82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  background: #e2e8f0;
}

.auth-links {
  display: grid;
  gap: 10px;
}

.auth-link-card {
  display: grid;
  gap: 2px;
  padding: 14px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #f8fafc;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}

.auth-link-card strong {
  color: var(--ink);
  font-size: .95rem;
}

.auth-link-card span {
  color: var(--muted);
  font-size: .84rem;
}

.auth-link-card:hover {
  border-color: #bfdbfe;
  background: #f0f7ff;
  transform: translateY(-1px);
}

.auth-mobile-brand {
  display: none;
  margin-bottom: 26px;
}

.auth-mobile-brand .auth-brand-icon {
  background: var(--gradient-hero);
}

.auth-center-text {
  text-align: center;
}

.auth-center-text a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
}

.auth-tight {
  margin-top: 6px;
}

.auth-back-link {
  margin-top: 22px;
}

@media (max-width: 980px) {
  .auth-login-shell {
    grid-template-columns: 1fr;
  }

  .auth-side {
    display: none;
  }

  .auth-mobile-brand {
    display: inline-flex;
  }

  .auth-main {
    padding: 28px 16px 40px;
  }

  .auth-card-panel {
    padding: 28px 22px;
  }
}

.register-page {
  max-width: 760px;
}

.register-card {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  box-shadow: var(--shadow-card);
}

.register-card h1 {
  margin: 0;
  font-size: 2rem;
}

.register-form {
  margin-top: 24px;
}

.register-grid-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 700px) {
  .register-card {
    padding: 22px;
  }

  .register-grid-two {
    grid-template-columns: 1fr;
  }
}

.company-register-page {
  max-width: 760px;
}

.admin-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 252px 1fr;
  background: linear-gradient(135deg, #eef2ff 0%, #f8fafc 45%, #f1f5f9 100%);
}

body.admin-body {
  background: #f1f5f9;
}

.admin-sidebar {
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  color: #cbd5e1;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #334155;
  box-shadow: 4px 0 24px rgba(15, 23, 42, 0.15);
}

.admin-sidebar-top {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

.admin-badge {
  display: inline-block;
  margin-top: 6px;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: 999px;
  padding: 3px 8px;
}

.admin-logo {
  color: #fff;
  margin-bottom: 4px;
}

.admin-user {
  font-size: .78rem;
  color: #94a3b8;
  margin: 6px 0 0;
  word-break: break-all;
  line-height: 1.35;
}

.admin-menu {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  overflow-y: auto;
  padding-right: 2px;
}

.admin-menu-group {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.admin-menu-label {
  margin: 0 0 4px 10px;
  padding: 0;
  font-size: .64rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #64748b;
}

.admin-menu-group + .admin-menu-group .admin-menu-label {
  padding-top: 2px;
}

.admin-menu a {
  color: #e2e8f0;
  border-radius: 8px;
  padding: 7px 10px;
  border: 1px solid transparent;
  font-size: .88rem;
  font-weight: 500;
  line-height: 1.25;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.admin-menu a:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.1);
  transform: none;
}

.admin-menu a.active {
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
}

.admin-sidebar-footer {
  margin-top: auto;
  display: grid;
  gap: 6px;
  padding-top: 12px;
  border-top: 1px solid rgba(148, 163, 184, 0.15);
}

.admin-btn-dark {
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
  border-color: #475569;
}

.admin-btn-dark:hover {
  background: rgba(255, 255, 255, 0.12);
}

.admin-main {
  padding: 28px 32px 40px;
  overflow-x: auto;
}

.admin-page {
  max-width: 1280px;
}

.admin-page-header {
  margin-bottom: 20px;
}

.admin-page-header h1 {
  margin: 0 0 6px;
  font-size: 1.85rem;
  color: #0f172a;
}

.admin-filter-card,
.admin-table-card,
.admin-form-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
  margin-bottom: 18px;
}

.admin-filters {
  display: grid;
  grid-template-columns: repeat(5, minmax(140px, 1fr)) auto;
  gap: 12px;
  align-items: end;
}

.admin-filter-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.admin-table thead th {
  background: #f8fafc;
  color: #64748b;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 12px 14px;
  border-bottom: 1px solid #e2e8f0;
}

.admin-table tbody td {
  padding: 14px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

.admin-table tbody tr:hover {
  background: #f8fbff;
}

.table-sub {
  font-size: .82rem;
  margin-top: 2px;
}

.admin-empty {
  text-align: center;
  color: #94a3b8;
  padding: 32px !important;
}

.badge {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}

.badge-candidate {
  background: #dbeafe;
  color: #1d4ed8;
}

.badge-company {
  background: #ede9fe;
  color: #6d28d9;
}

.badge-muted {
  background: #f1f5f9;
  color: #64748b;
}

.badge-success {
  background: #dcfce7;
  color: #166534;
}

.btn-sm {
  padding: 6px 10px;
  font-size: .82rem;
}

.admin-inline-plan-form {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}

.admin-inline-plan-form select {
  min-width: 140px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 8px;
  font-size: .85rem;
}

.admin-small-input {
  width: 150px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 8px;
  font-size: .85rem;
}

.admin-content {
  max-width: 1280px;
}

.admin-plan-layout {
  align-items: start;
}

.admin-plans-lists {
  display: grid;
  gap: 16px;
}

.admin-plans-lists h3 {
  margin: 0 0 12px;
  font-size: 1rem;
}

.admin-row-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.admin-toggle-form {
  display: inline;
}

.login-type-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 20px;
}

.login-type-card {
  display: block;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  background: #fff;
  transition: all .2s ease;
}

.login-type-card:hover {
  border-color: #93c5fd;
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
  text-decoration: none;
}

.login-type-card h3 {
  margin: 8px 0 6px;
}

.login-type-icon {
  font-size: 1.6rem;
}

.auth-side-candidate {
  background: linear-gradient(135deg, #405ecf 0%, #516de0 55%, #58c3d9 100%);
}

.auth-side-company {
  background: linear-gradient(135deg, #5b21b6 0%, #7c3aed 55%, #a78bfa 100%);
}

.admin-stats {
  margin: 16px 0;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
}

.admin-stats article {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow-card);
  padding: 14px;
}

.admin-stats strong {
  display: block;
  font-size: 1.4rem;
  color: #1d4ed8;
}

.admin-stats span {
  color: var(--muted);
  font-size: .9rem;
}

.admin-test-users,
.setup-test-users {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 12px;
}

.admin-test-users article {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  padding: 14px;
}

.admin-test-users article p,
.setup-test-users p {
  margin: 6px 0 0;
}

.setup-test-users {
  margin: 16px 0;
  text-align: left;
}

.admin-logo-preview {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.admin-logo-preview img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.admin-hero-preview {
  margin: 8px 0 14px;
}

.admin-hero-preview img {
  display: block;
  width: min(420px, 100%);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border);
  margin-bottom: 10px;
}

.admin-color-picker {
  display: none;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px;
  background: #fff;
}

.admin-color-picker input[type="color"] {
  width: 58px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
}

.admin-color-picker strong,
.admin-color-picker small {
  display: block;
}

.admin-color-picker small {
  margin-top: 2px;
}

.admin-color-picker:has(input[name="theme_color"]) {
  display: none;
}

label.field:has(.admin-color-picker input[name="theme_color"]) {
  display: none;
}

.admin-theme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.admin-theme-card {
  position: relative;
  display: grid;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 14px;
  background: #fff;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.admin-theme-card:hover,
.admin-theme-card.active,
.admin-theme-card:has(input:checked) {
  border-color: var(--primary);
  box-shadow: 0 14px 30px rgba(23, 32, 51, 0.1);
  transform: translateY(-1px);
}

.admin-theme-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.admin-theme-preview {
  display: grid;
  grid-template-columns: 1.4fr .7fr .7fr;
  gap: 6px;
  min-height: 56px;
}

.admin-theme-preview span {
  border-radius: 12px;
}

.admin-theme-preview span:nth-child(1) {
  background: linear-gradient(135deg, var(--preview-deep), var(--preview-primary));
}

.admin-theme-preview span:nth-child(2) {
  background: var(--preview-primary);
}

.admin-theme-preview span:nth-child(3) {
  background: var(--preview-accent);
}

.admin-theme-card strong,
.admin-theme-card small {
  display: block;
}

.admin-divider {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 18px 0 14px;
}

.field-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.job-options-box {
  display: grid;
  gap: 10px;
  margin: 4px 0 18px;
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #f8fafc;
}

.field-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  cursor: pointer;
  font-weight: 500;
}

.field-check input {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.field-check strong {
  display: block;
  color: var(--ink);
  font-size: .95rem;
}

.field-check small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 500;
}

.salary-fields.is-disabled {
  opacity: .55;
  pointer-events: none;
}

.admin-grid-2,
.admin-grid-3 {
  display: grid;
  gap: 12px;
}

.admin-grid-2 {
  grid-template-columns: 1fr 1fr;
}

.admin-grid-3 {
  grid-template-columns: 1fr 1fr 1fr;
}

.admin-edit-card {
  max-width: 920px;
}

.admin-edit-form {
  display: grid;
  gap: 18px;
}

.admin-form-section {
  display: grid;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.admin-form-section:last-of-type {
  border-bottom: 0;
  padding-bottom: 0;
}

.admin-form-section h2 {
  margin: 0;
  font-size: 1.05rem;
}

.admin-form-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-settings-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.admin-settings-tab {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px;
  text-decoration: none;
  color: var(--muted);
  background: #fff;
  font-weight: 500;
}

.admin-settings-tab.active {
  border-color: #2563eb;
  color: #1d4ed8;
  background: #eff6ff;
}

.admin-checkbox-field {
  margin: 4px 0 8px;
}

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
}

.admin-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.admin-email-template {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px 8px;
  margin: 0 0 14px;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.admin-email-template.is-previewing {
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .08);
}

.admin-email-template legend {
  padding: 0 6px;
  font-weight: 600;
}

.admin-email-template-tab {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

.admin-email-template textarea,
.admin-email-editor textarea {
  width: 100%;
  min-height: 140px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.45;
  resize: vertical;
}

.admin-email-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-email-list-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  width: 100%;
  text-align: left;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.admin-email-list-item:hover {
  border-color: #93c5fd;
  box-shadow: 0 8px 20px rgba(15, 23, 42, .06);
  transform: translateY(-1px);
}

.admin-email-list-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 700;
}

.admin-email-list-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.admin-email-list-copy strong {
  font-size: 15px;
  color: #0f172a;
}

.admin-email-list-copy .muted {
  font-size: 13px;
  line-height: 1.4;
}

.admin-email-list-arrow {
  color: #94a3b8;
  font-size: 18px;
  font-weight: 700;
}

.admin-email-detail-top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
}

.admin-email-detail-top h2 {
  margin: 0;
}

.admin-email-detail-top .muted {
  margin: 4px 0 0;
}

.admin-email-editor-pane {
  min-width: 0;
}

.admin-email-editor {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  padding: 16px;
}

.is-hidden {
  display: none !important;
}

.admin-email-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 18px;
  align-items: start;
}

.admin-email-preview-panel {
  position: sticky;
  top: 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #f8fafc;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 640px;
}

.admin-email-preview-toolbar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 14px 10px;
  border-bottom: 1px solid var(--border);
  background: #fff;
}

.admin-email-preview-toolbar .muted {
  margin: 2px 0 0;
  font-size: 12px;
}

.admin-email-preview-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.admin-email-preview-chip {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--muted);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.admin-email-preview-chip.active {
  border-color: #2563eb;
  color: #1d4ed8;
  background: #eff6ff;
}

.admin-email-preview-subject {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: #fff;
}

.admin-email-preview-subject span {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
  margin-bottom: 4px;
}

.admin-email-preview-subject strong {
  display: block;
  font-size: 13px;
  line-height: 1.4;
  color: #0f172a;
  word-break: break-word;
}

.admin-email-preview-frame-wrap {
  flex: 1;
  min-height: 520px;
  background: #eef2f7;
}

.admin-email-preview-frame-wrap iframe {
  width: 100%;
  height: 100%;
  min-height: 520px;
  border: 0;
  background: #eef2f7;
}

@media (max-width: 1100px) {
  .admin-email-workspace {
    grid-template-columns: 1fr;
  }

  .admin-email-preview-panel {
    position: static;
    min-height: 560px;
  }
}

@media (max-width: 900px) {
  .admin-form-grid {
    grid-template-columns: 1fr;
  }

  .admin-email-list-item {
    grid-template-columns: 1fr auto;
  }

  .admin-email-list-badge {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

.admin-inline-form {
  display: flex;
  gap: 10px;
  align-items: end;
}

.admin-inline-form input {
  width: min(380px, 100%);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 12px;
}

@media (max-width: 980px) {
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: sticky;
    top: 0;
    z-index: 20;
  }

  .admin-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .admin-grid-2,
  .admin-grid-3 {
    grid-template-columns: 1fr;
  }

  .admin-filters {
    grid-template-columns: 1fr;
  }

  .login-type-grid {
    grid-template-columns: 1fr;
  }
}

.company-register-card {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  box-shadow: var(--shadow-card);
}

.company-register-card h1 {
  margin: 0;
  font-size: 2rem;
}

.company-register-form {
  margin-top: 24px;
}

.company-register-grid-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Authenticated dashboards */
.dashboard-body {
  min-height: 100vh;
  overflow-x: hidden;
  background: #f4f7fb;
}

.dashboard-body .site-footer,
.dashboard-body .site-header {
  display: none;
}

.dashboard-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 272px minmax(0, 1fr);
}

.dashboard-sidebar {
  position: sticky;
  top: 0;
  z-index: 80;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-right: 1px solid #e6ebf2;
  background:
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  color: #334155;
  padding: 18px 14px;
  transition: width .2s ease, transform .2s ease;
}

.dashboard-company .dashboard-sidebar,
.dashboard-candidate .dashboard-sidebar {
  background:
    radial-gradient(circle at top left, rgba(33, 88, 216, 0.06), transparent 42%),
    linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
}

.dashboard-sidebar-head,
.dashboard-topbar,
.dashboard-user-card,
.dashboard-sidebar-footer {
  display: flex;
  align-items: center;
}

.dashboard-sidebar-head {
  justify-content: space-between;
  gap: 10px;
  padding: 2px 4px 14px;
  border-bottom: 1px solid #eef2f7;
  margin-bottom: 12px;
}

.dashboard-brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  font-size: .98rem;
}

.dashboard-brand-text,
.dashboard-menu-label,
.dashboard-user-meta,
.dashboard-secondary-link,
.dashboard-menu-title {
  transition: opacity .15s ease, width .15s ease;
}

.dashboard-collapse,
.dashboard-mobile-menu {
  display: grid;
  place-items: center;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  color: #475569;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.dashboard-collapse:hover,
.dashboard-mobile-menu:hover {
  border-color: #bfdbfe;
  color: var(--primary);
  background: #f0f7ff;
}

.dashboard-collapse {
  width: 34px;
  height: 34px;
}

.dashboard-collapse svg,
.dashboard-mobile-menu svg,
.dashboard-menu-icon svg {
  width: 16px;
  height: 16px;
}

.dashboard-user-card {
  gap: 12px;
  margin: 0 0 16px;
  padding: 12px;
  border: 1px solid #e8eef6;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.dashboard-user-avatar {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, #2158d8, #12a594);
  font-weight: 800;
  font-size: 1rem;
}

.dashboard-user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dashboard-company .dashboard-user-avatar {
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
}

.dashboard-company .dashboard-user-avatar img {
  object-fit: contain;
  background: #fff;
  padding: 4px;
}

.dashboard-user-meta {
  min-width: 0;
}

.dashboard-user-meta strong,
.dashboard-user-meta span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-user-meta strong {
  color: var(--ink);
  font-size: .92rem;
}

.dashboard-user-meta span {
  color: #64748b;
  font-size: .78rem;
  margin-top: 2px;
}

.dashboard-menu-title {
  margin: 0 8px 8px;
  color: #94a3b8;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.dashboard-menu {
  display: grid;
  gap: 4px;
  flex: 1 1 auto;
  align-content: start;
  align-items: stretch;
  overflow-y: auto;
  min-height: 0;
  padding-right: 2px;
}

.dashboard-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  min-height: 40px;
  max-height: 40px;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 0 10px;
  color: #475569;
  font-weight: 600;
  font-size: .88rem;
  line-height: 1.2;
  position: relative;
  transition: background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}

.dashboard-menu a:hover {
  color: var(--primary-dark);
  border-color: #e2e8f0;
  background: #fff;
}

.dashboard-menu a.active {
  color: var(--primary-dark);
  border-color: #dbeafe;
  background: linear-gradient(135deg, #eff6ff 0%, #f0fdfa 100%);
  box-shadow: 0 8px 18px rgba(33, 88, 216, 0.08);
}

.dashboard-menu a.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 999px;
  background: var(--primary);
}

.dashboard-menu-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 8px;
  background: #f1f5f9;
  color: #64748b;
}

.dashboard-menu a:hover .dashboard-menu-icon {
  background: #e8f0fe;
  color: var(--primary);
}

.dashboard-menu a.active .dashboard-menu-icon {
  color: #fff;
  background: linear-gradient(135deg, #2158d8, #12a594);
}

.dashboard-sidebar-footer {
  margin-top: auto;
  display: grid;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid #eef2f7;
}

.dashboard-secondary-link,
.dashboard-logout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  height: 38px;
  border-radius: 10px;
  padding: 0 12px;
  font-weight: 700;
  font-size: .84rem;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.dashboard-secondary-link {
  color: #475569;
  border: 1px solid #e2e8f0;
  background: #fff;
}

.dashboard-secondary-link:hover {
  border-color: #bfdbfe;
  color: var(--primary);
  background: #f8fbff;
}

.dashboard-logout {
  justify-content: flex-start;
  color: #b91c1c;
  border: 1px solid #fecdd3;
  background: #fff1f2;
}

.dashboard-logout .dashboard-menu-icon {
  background: #ffe4e6;
  color: #be123c;
}

.dashboard-logout:hover {
  background: #ffe4e6;
  border-color: #fda4af;
}

.dashboard-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.dashboard-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 92px;
  gap: 16px;
  border-bottom: 1px solid #e2e8f0;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(16px);
  padding: 20px clamp(18px, 3vw, 34px);
}

.dashboard-topbar h1 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
}

.dashboard-topbar p {
  margin: 4px 0 0;
  color: #64748b;
}

.dashboard-kicker {
  display: inline-flex;
  color: #2563eb;
  font-size: .75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.dashboard-mobile-menu {
  display: none;
  width: 44px;
  height: 44px;
  color: #0f172a;
  border-color: #dbe3ee;
  background: #fff;
}

.dashboard-content {
  width: min(1240px, 100%);
  margin: 0 auto;
  padding: clamp(18px, 3vw, 34px);
}

.dashboard-body .container {
  width: 100%;
}

.dashboard-body .section {
  padding: 0;
}

.dashboard-body .panel,
.dashboard-body .form-card,
.dashboard-body .detail-card,
.dashboard-body .empty-state,
.dashboard-body .metric-card,
.dashboard-body .plan-card,
.dashboard-body .candidate-card,
.dashboard-body .saved-job-card {
  border-color: #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .06);
}

.dashboard-body .panel,
.dashboard-body .form-card {
  margin-bottom: 18px;
}

.dashboard-body .metric-card {
  min-height: 118px;
}

.dashboard-body .table-wrap {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
}

.dashboard-body table {
  min-width: 760px;
}

.dashboard-body th {
  background: #f8fafc;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.dashboard-overlay {
  display: none;
}

.dashboard-collapsed {
  grid-template-columns: 92px minmax(0, 1fr);
}

.dashboard-collapsed .dashboard-sidebar {
  align-items: center;
  padding-inline: 14px;
}

.dashboard-collapsed .dashboard-brand-text,
.dashboard-collapsed .dashboard-menu-label,
.dashboard-collapsed .dashboard-user-meta,
.dashboard-collapsed .dashboard-secondary-link,
.dashboard-collapsed .dashboard-menu-title {
  width: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  white-space: nowrap;
}

.dashboard-collapsed .dashboard-user-card {
  justify-content: center;
  padding: 10px;
}

.dashboard-collapsed .dashboard-menu a,
.dashboard-collapsed .dashboard-logout {
  justify-content: center;
  padding-inline: 8px;
}

.dashboard-collapsed .dashboard-collapse {
  transform: rotate(180deg);
}

.dashboard-collapsed .dashboard-menu a:hover {
  transform: none;
}

.dashboard-collapsed .dashboard-logout .dashboard-menu-label {
  display: none;
}

.dashboard-search-panel {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .06);
  margin-bottom: 18px;
  padding: 28px 28px 24px;
}

.dashboard-search-panel > .container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.dashboard-search-panel h1 {
  margin: 0 0 16px;
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  color: var(--ink);
}

.dashboard-search-panel .search-form {
  margin-top: 0;
}

.dashboard-search-panel .chips {
  margin-top: 16px;
  padding-top: 4px;
}

@media (max-width: 720px) {
  .dashboard-search-panel {
    padding: 20px 16px 18px;
  }
}

.profile-form {
  display: grid;
  gap: 24px;
}

.profile-form-company {
  margin-inline: 0;
}

.profile-form .field {
  margin-bottom: 0;
}

.profile-form-head {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-bottom: 8px;
  border-bottom: 1px solid #eef2f7;
}

.profile-form-head h2 {
  margin: 0 0 6px;
}

.profile-form-head p {
  margin: 0;
}

.profile-section {
  display: grid;
  gap: 14px;
}

.profile-section h3 {
  margin: 0;
  font-size: 1rem;
  color: #334155;
}

.profile-logo-field {
  max-width: 420px;
}

.profile-photo-preview {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(135deg, #0f766e, #2563eb);
  color: #fff;
  font-size: 1.6rem;
  font-weight: 900;
}

.profile-photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-logo-preview {
  border-radius: 16px;
  background: #eef2ff;
  color: #1d4ed8;
  border: 1px solid #dbeafe;
}

.profile-logo-preview img {
  object-fit: contain;
  background: #fff;
  padding: 6px;
}

.field-hint {
  display: block;
  margin-top: 6px;
  font-size: .82rem;
  font-weight: 500;
}

.file-input-pt {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.file-input-pt-native {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.file-input-pt-button {
  min-height: 42px;
  padding-inline: 16px;
  font-weight: 600;
}

.file-input-pt-name {
  font-size: .9rem;
  font-weight: 500;
  max-width: min(100%, 320px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.company-public-head {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.company-public-logo {
  width: 72px;
  height: 72px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  font-size: 1.6rem;
  font-weight: 800;
}

.company-public-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
  padding: 8px;
}

.profile-password-box {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  padding: 18px;
  display: grid;
  gap: 14px;
}

.profile-password-box h3 {
  margin: 0;
}

.profile-password-box > .muted {
  margin: 0;
}

.profile-password-box .form-grid-two {
  margin-top: 2px;
}

.profile-alert-frequency-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.profile-alert-frequency-option {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  padding: 12px 14px;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.profile-alert-frequency-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.profile-alert-frequency-option strong {
  color: #0f172a;
  font-size: 14px;
}

.profile-alert-frequency-option span {
  color: #64748b;
  font-size: 12px;
  line-height: 1.4;
}

.profile-alert-frequency-option.is-selected,
.profile-alert-frequency-option:has(input:checked) {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .1);
  background: #eff6ff;
}

.profile-alert-frequency-option:has(input[value="none"]:checked) {
  border-color: #fca5a5;
  background: #fff1f2;
  box-shadow: 0 0 0 3px rgba(244, 63, 94, .08);
}

@media (max-width: 700px) {
  .profile-alert-frequency-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .profile-form-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .profile-form-company .form-grid-two {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .dashboard-shell {
    display: block;
  }

  .dashboard-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(86vw, 320px);
    transform: translateX(-105%);
    box-shadow: 28px 0 70px rgba(15, 23, 42, .28);
  }

  .dashboard-menu-open .dashboard-sidebar {
    transform: translateX(0);
  }

  .dashboard-menu-open .dashboard-overlay {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 70;
    background: rgba(15, 23, 42, .42);
  }

  .dashboard-collapse {
    display: none;
  }

  .dashboard-mobile-menu {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
  }

  .dashboard-topbar {
    min-height: 76px;
    align-items: flex-start;
  }

  .dashboard-content {
    padding: 16px;
  }

  .dashboard-body .dashboard-grid,
  .dashboard-body .plans-grid,
  .dashboard-body .saved-jobs-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-body .table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 640px) {
  .dashboard-topbar {
    padding: 14px;
  }

  .dashboard-content {
    padding: 12px;
  }

  .dashboard-body .panel,
  .dashboard-body .form-card,
  .dashboard-body .candidate-card {
    padding: 16px;
  }

  .dashboard-body .quick-actions,
  .dashboard-body .detail-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .dashboard-body .table-actions {
    min-width: 210px;
  }

  .dashboard-body .table-actions-group {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
  }

  .dashboard-body .btn,
  .dashboard-body button,
  .dashboard-body input,
  .dashboard-body select,
  .dashboard-body textarea {
    min-height: 44px;
  }

  .dashboard-body .table-action-btn,
  .dashboard-body button.table-action-btn,
  .dashboard-body .table-action-icon,
  .dashboard-body button.table-action-icon {
    min-height: 34px;
    height: 34px;
  }
}

@media (max-width: 700px) {
  .company-register-card {
    padding: 22px;
  }

  .company-register-grid-two {
    grid-template-columns: 1fr;
  }
}

.resume-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.resume-mode-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.resume-mode-card {
  display: grid;
  gap: 6px;
  padding: 18px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}

.resume-mode-card strong {
  color: var(--ink);
  font-size: 1.05rem;
}

.resume-mode-card span {
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.4;
}

.resume-mode-card:hover {
  border-color: #bfdbfe;
  background: #f8fbff;
}

.resume-mode-card.is-active {
  border-color: #2563eb;
  background: #eff6ff;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.08);
}

.resume-mode-card.is-active strong {
  color: #1d4ed8;
}

.resume-form-card {
  margin-inline: 0;
  width: min(920px, 100%);
}

.resume-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.resume-tab {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px;
  color: var(--muted);
  text-decoration: none;
  background: #fff;
}

.resume-tab.active {
  border-color: #2563eb;
  color: #1d4ed8;
  background: #eff6ff;
  font-weight: 600;
}

.resume-status-box,
.evaluation-preview-box {
  margin-bottom: 16px;
}

.resume-wizard-card {
  margin-top: 8px;
}

.resume-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.resume-step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 12px;
  text-decoration: none;
  color: var(--muted);
  font-size: .9rem;
}

.resume-step span {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  font-size: .8rem;
}

.resume-step.active {
  border-color: #2563eb;
  color: #1d4ed8;
  background: #eff6ff;
}

.resume-step.done span {
  background: #dbeafe;
  color: #1d4ed8;
}

.repeatable-list {
  display: grid;
  gap: 16px;
  margin-bottom: 12px;
}

.repeatable-item {
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 14px;
  background: #fafafa;
}

.resume-wizard-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.resume-review p {
  margin: 8px 0;
}

.evaluation-page .evaluation-benefits {
  margin: 12px 0 0 18px;
}

.evaluation-result {
  margin-top: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  background: #f8fafc;
  line-height: 1.6;
  white-space: pre-wrap;
}

.payment-box {
  margin-top: 16px;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  padding: 16px;
  background: #eff6ff;
}

.evaluation-new-order {
  margin-top: 16px;
}

.admin-help-list {
  margin: 0;
  padding-left: 20px;
  line-height: 1.7;
}

.error-box {
  border-color: #fecaca;
  background: #fef2f2;
}

@media (max-width: 700px) {
  .resume-page-header {
    flex-direction: column;
  }

  .resume-mode-cards {
    grid-template-columns: 1fr;
  }

  .resume-wizard-actions {
    flex-direction: column;
  }
}

/* ===== Instalador ===== */
.installer-body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(160deg, #0f172a 0%, #1e3a8a 45%, #eff6ff 45%);
  font-family: Arial, Helvetica, sans-serif;
  color: #0f172a;
}

.installer-shell {
  display: grid;
  grid-template-columns: minmax(260px, 360px) 1fr;
  min-height: 100vh;
}

.installer-side {
  padding: 36px 28px;
  color: #e2e8f0;
}

.installer-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #2563eb;
  color: #fff;
  font-weight: 800;
  margin-bottom: 18px;
  font-size: 12px;
}

.installer-side h1 {
  margin: 0 0 10px;
  font-size: 28px;
  line-height: 1.2;
  color: #fff;
}

.installer-side > p {
  margin: 0 0 24px;
  color: #bfdbfe;
  line-height: 1.5;
}

.installer-steps {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
  color: #94a3b8;
}

.installer-steps .is-done {
  color: #86efac;
}

.installer-steps .is-current {
  color: #fff;
  font-weight: 700;
}

.installer-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 20px;
}

.installer-card {
  width: min(720px, 100%);
  background: #fff;
  border: 1px solid #dbe3ef;
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, .12);
}

.installer-card h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.installer-card > .muted {
  margin: 0 0 18px;
}

.installer-form,
.installer-checklist {
  margin: 0;
}

.installer-checklist {
  padding-left: 18px;
  display: grid;
  gap: 8px;
  margin-bottom: 20px;
  color: #334155;
}

.installer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 14px;
  margin-bottom: 12px;
}

.installer-grid-full {
  grid-column: 1 / -1;
}

.installer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.installer-req-list {
  display: grid;
  gap: 8px;
  margin-bottom: 8px;
}

.installer-req-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}

.installer-req-item.is-ok {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.installer-req-item.is-fail {
  border-color: #fecaca;
  background: #fef2f2;
}

.installer-req-item span {
  color: #64748b;
  font-size: 13px;
  text-align: right;
}

.installer-success-box {
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  border-radius: 12px;
  padding: 14px 16px;
  margin: 12px 0 4px;
}

.installer-success-box ol {
  margin: 8px 0 0;
  padding-left: 18px;
  color: #334155;
}

.installer-success-box li {
  margin-bottom: 6px;
}

@media (max-width: 900px) {
  .installer-shell {
    grid-template-columns: 1fr;
  }

  .installer-side {
    padding-bottom: 12px;
  }

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