:root {
  --bg: #ffffff;
  --text: #0f172a;
  --muted: #5d6475;
  --line: #d7def0;
  --brand: #0d6eff;
  --brand-soft: #dce9ff;
  --accent: #ff7a1a;
  --accent-soft: #ffe9d8;
  --card: #ffffff;
  --shadow: 0 24px 60px rgba(16, 25, 52, 0.08);
  --radius-lg: 22px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 2% 15%, rgba(13, 110, 255, 0.11), transparent 34%),
    radial-gradient(circle at 96% 0%, rgba(255, 122, 26, 0.12), transparent 28%),
    linear-gradient(180deg, #fcfdff 0%, #ffffff 100%);
  position: relative;
}

.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(
      90deg,
      rgba(17, 24, 39, 0.03) 1px,
      transparent 1px
    ),
    linear-gradient(0deg, rgba(17, 24, 39, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent 80%);
  z-index: -1;
}

.site-header {
  width: min(1200px, 94%);
  margin: 22px auto 0;
  padding: 14px 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  position: sticky;
  top: 14px;
  z-index: 5;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  box-shadow: 0 0 0 7px rgba(13, 110, 255, 0.12);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-text strong {
  font-family: "Sora", sans-serif;
  font-size: 1.06rem;
  letter-spacing: 0.07em;
  color: #081233;
}

.brand-text em {
  font-style: normal;
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.16em;
}

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

.main-nav a {
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  color: #10213f;
  transition: color 0.2s ease;
}

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

.btn {
  border: none;
  border-radius: 999px;
  padding: 12px 18px;
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  cursor: pointer;
  letter-spacing: 0.01em;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn.primary {
  background: linear-gradient(135deg, #0d6eff, #4b4dff);
  color: #fff;
  box-shadow: 0 12px 24px rgba(13, 110, 255, 0.3);
}

.btn.ghost {
  background: #ffffff;
  color: #1e2b4a;
  border: 1px solid #c8d2eb;
}

.btn.full {
  width: 100%;
}

.hero {
  width: min(1200px, 94%);
  margin: 26px auto 22px;
  border: 1px solid #dce4f4;
  border-radius: 24px;
  padding: 40px 30px;
  background:
    linear-gradient(120deg, rgba(13, 110, 255, 0.08), transparent 50%),
    linear-gradient(220deg, rgba(255, 122, 26, 0.09), transparent 45%),
    #fff;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 24px;
  box-shadow: var(--shadow);
}

.hero-kicker {
  margin: 0 0 10px;
  color: #2b4ec9;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.74rem;
}

.hero h1 {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: clamp(1.9rem, 2.9vw, 2.8rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero p {
  margin: 14px 0 0;
  color: var(--muted);
  max-width: 56ch;
  line-height: 1.6;
}

.hero-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.hero-cards article {
  border: 1px solid #dce6fa;
  border-radius: var(--radius-md);
  background: #fff;
  padding: 16px;
}

.hero-cards h3 {
  margin: 0;
  font-size: 1.3rem;
  color: #0e2256;
}

.hero-cards p {
  margin: 6px 0 0;
  color: #5f6883;
  font-size: 0.9rem;
}

.search-shell {
  width: min(1200px, 94%);
  margin: 0 auto;
}

.search-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  border: 1px solid #d5def2;
  border-radius: 18px;
  background: #fff;
  padding: 12px;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.06);
}

.search-row input {
  border: none;
  outline: none;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f6f8fc;
  font-size: 0.98rem;
}

.layout {
  width: min(1200px, 94%);
  margin: 18px auto 30px;
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 16px;
}

.sidebar {
  border: 1px solid #d9e2f4;
  border-radius: var(--radius-lg);
  background: #fff;
  padding: 20px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
  align-self: start;
}

.sidebar h2 {
  margin: 0 0 16px;
  font-family: "Sora", sans-serif;
  font-size: 1.1rem;
}

.sidebar label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 12px;
  color: #334167;
  font-weight: 700;
  font-size: 0.92rem;
}

.sidebar input,
.sidebar select,
.modal-card input,
.modal-card select,
.modal-card textarea {
  border: 1px solid #ced8ee;
  border-radius: 12px;
  padding: 11px 12px;
  font-size: 0.95rem;
  font-family: "Manrope", sans-serif;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sidebar input:focus,
.sidebar select:focus,
.modal-card input:focus,
.modal-card select:focus,
.modal-card textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(13, 110, 255, 0.12);
}

.sidebar-actions {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.jobs {
  border: 1px solid #d9e2f4;
  border-radius: var(--radius-lg);
  background: #fff;
  padding: 20px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

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

.jobs-head h2 {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: 1.26rem;
}

#jobCountBadge {
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 800;
  color: #1f3171;
  background: #e8efff;
}

.job-grid {
  display: grid;
  gap: 12px;
}

.job-card {
  border: 1px solid #dbe3f7;
  border-radius: 16px;
  padding: 18px;
  background:
    linear-gradient(120deg, rgba(13, 110, 255, 0.06), transparent 45%),
    linear-gradient(220deg, rgba(255, 122, 26, 0.06), transparent 50%),
    #fff;
  display: grid;
  gap: 10px;
}

.job-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.job-top h3 {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: 1.1rem;
  letter-spacing: -0.015em;
}

.job-company {
  margin: 3px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  text-transform: uppercase;
  font-weight: 800;
  background: #f0f4ff;
  color: #2a3f87;
}

.job-summary {
  margin: 0;
  color: #45506f;
  line-height: 1.45;
}

.job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  border-radius: 10px;
  background: #f5f8ff;
  border: 1px solid #d7e1f6;
  color: #2e3c64;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 9px;
}

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

.job-actions .btn {
  padding: 10px 14px;
}

.empty-state {
  border: 1px dashed #cad6f1;
  border-radius: 14px;
  padding: 28px;
  text-align: center;
  color: #50608e;
  background: #f9fbff;
  font-weight: 700;
}

.site-footer {
  width: min(1200px, 94%);
  margin: 0 auto 24px;
  padding: 18px 22px;
  border-radius: 16px;
  border: 1px solid #d9e2f4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  color: #41507c;
}

.site-footer p {
  margin: 0;
  font-weight: 700;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: rgba(7, 13, 31, 0.58);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-card {
  width: min(760px, 100%);
  max-height: calc(100vh - 60px);
  overflow: auto;
  border-radius: 20px;
  border: 1px solid #d3def2;
  background: #fff;
  padding: 22px;
  box-shadow: 0 32px 70px rgba(8, 12, 28, 0.35);
  position: relative;
}

.details-card {
  width: min(900px, 100%);
}

.modal-close {
  position: absolute;
  right: 14px;
  top: 14px;
  border: none;
  background: #edf2ff;
  color: #243368;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 1.12rem;
}

.modal h3 {
  margin: 0 0 14px;
  font-family: "Sora", sans-serif;
}

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

.modal-card label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 12px;
  color: #334167;
  font-weight: 700;
  font-size: 0.92rem;
}

.modal-card textarea {
  resize: vertical;
}

.muted {
  margin: -6px 0 14px;
  color: var(--muted);
}

.details-title {
  margin: 0 0 6px;
  font-family: "Sora", sans-serif;
}

.details-company {
  margin: 0;
  color: #4e5c85;
  font-weight: 700;
}

.details-section {
  margin-top: 14px;
}

.details-section h4 {
  margin: 0 0 8px;
  color: #1c2957;
  font-family: "Sora", sans-serif;
  font-size: 1rem;
}

.details-section p {
  margin: 0;
  color: #3f4a69;
  line-height: 1.6;
  white-space: pre-wrap;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  background: #10192e;
  color: #fff;
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 700;
  box-shadow: 0 16px 40px rgba(7, 13, 29, 0.3);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: all 0.28s ease;
  z-index: 30;
  max-width: 360px;
}

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

.toast.error {
  background: #a11a1a;
}

.toast.warn {
  background: #a05800;
}

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

.pagination button {
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid #ddd;
  background: white;
  cursor: pointer;
  font-weight: 500;
}

.pagination button.active {
  background: #0f172a;
  color: white;
  border-color: #0f172a;
}

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

@media (max-width: 1040px) {
  .hero {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 780px) {
  .site-header {
    flex-wrap: wrap;
    justify-content: center;
  }

  .main-nav {
    order: 3;
    width: 100%;
    justify-content: center;
  }

  .search-row {
    grid-template-columns: 1fr;
  }

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

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

  .site-footer {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}
