:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --ink: #111827;
  --muted: #64748b;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --blue: #111827;
  --blue-dark: #0b1120;
  --blue-soft: #fff3e5;
  --orange: #f4a261;
  --orange-soft: #fff3e5;
  --green: #16a34a;
  --shadow: 0 18px 45px rgba(17, 24, 39, 0.12);
  --shadow-soft: 0 8px 22px rgba(17, 24, 39, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 0%, rgba(244, 162, 97, 0.28), transparent 26rem),
    radial-gradient(circle at 92% 8%, rgba(17, 24, 39, 0.14), transparent 28rem),
    linear-gradient(180deg, #ffffff 0%, #fff8f0 22rem, var(--bg) 48rem);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.page {
  width: min(1120px, calc(100% - 32px));
  margin: 28px auto 56px;
}

.page-enter {
  animation: page-enter 240ms ease both;
}

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

.topbar-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 0;
  font-size: 1rem;
  font-weight: 800;
}

.brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--orange), #ffd7ad);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(244, 162, 97, 0.3), 0 12px 26px rgba(244, 162, 97, 0.36);
  animation: icon-glow 2.8s ease-in-out infinite;
}

.topbar-note,
.home-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.home-link {
  border-color: rgba(244, 162, 97, 0.42);
  background: var(--orange-soft);
  color: var(--blue);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.home-link:hover {
  background: var(--orange);
  box-shadow: 0 12px 24px rgba(244, 162, 97, 0.3);
  transform: translateY(-2px);
}

.hero-panel,
.search-card,
.listing-card,
.detail-hero,
.content-card,
.application-card,
.empty-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
}

.hero-panel {
  padding: clamp(28px, 5vw, 56px);
  border-color: rgba(244, 162, 97, 0.22);
  background:
    radial-gradient(circle at 88% 12%, rgba(244, 162, 97, 0.2), transparent 20rem),
    rgba(255, 255, 255, 0.94);
}

.eyebrow {
  margin: 0 0 10px;
  color: #c46f2f;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.hero-panel h1,
.detail-hero h1 {
  max-width: 800px;
  margin-bottom: 16px;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.hero-panel p:last-child {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.search-card {
  display: grid;
  gap: 16px;
  margin-top: 22px;
  padding: 22px;
}

.search-input {
  position: relative;
  display: block;
}

.search-input i {
  position: absolute;
  top: 50%;
  left: 16px;
  color: var(--muted);
  font-size: 1.25rem;
  transform: translateY(-50%);
}

.search-input input {
  width: 100%;
  min-height: 54px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--surface-soft);
  color: var(--ink);
  padding: 0 16px 0 46px;
  outline: none;
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

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

.filter-field {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.filter-field select,
.application-card input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  padding: 0 13px;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.search-input input:focus,
.filter-field select:focus,
.application-card input:focus {
  border-color: var(--orange);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(244, 162, 97, 0.18);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  border: 1px solid rgba(244, 162, 97, 0.45);
  border-radius: 999px;
  background: var(--orange-soft);
  color: var(--blue);
  padding: 7px 12px;
  font-weight: 800;
}

.filter-chip span {
  font-size: 1rem;
}

.info-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid rgba(244, 162, 97, 0.45);
  border-radius: 14px;
  background: linear-gradient(135deg, #fff7ed, #fff3e5);
  color: var(--blue);
  font-weight: 700;
}

.info-banner i {
  color: var(--orange);
  font-size: 1.35rem;
}

.results-section {
  margin-top: 30px;
}

.results-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.results-heading h2 {
  margin-bottom: 0;
  font-size: 1.8rem;
}

#resultCount {
  color: var(--muted);
  font-weight: 800;
}

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

.listing-card {
  display: grid;
  gap: 18px;
  padding: 22px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.listing-card:hover,
.listing-card:focus {
  border-color: rgba(244, 162, 97, 0.6);
  box-shadow: 0 18px 45px rgba(17, 24, 39, 0.13), 0 0 24px rgba(244, 162, 97, 0.18);
  outline: none;
  transform: translateY(-3px);
}

.listing-main {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.listing-card h3 {
  margin-bottom: 6px;
  font-size: 1.25rem;
}

.job-id {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}

.arrow-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--orange-soft);
  color: var(--blue);
  font-size: 1.45rem;
}

.location-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-weight: 700;
}

.location-line i {
  color: var(--orange);
}

.badge-row,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.badge,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  padding: 6px 11px;
  font-size: 0.86rem;
  font-weight: 800;
}

.badge-blue {
  background: var(--orange-soft);
  color: var(--blue);
  border: 1px solid rgba(244, 162, 97, 0.35);
}

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  padding: 0 15px;
  font-weight: 800;
  transition: border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.back-button:hover {
  border-color: var(--orange);
  color: var(--blue);
  transform: translateX(-2px);
}

.home-back {
  margin-left: 8px;
  border-color: rgba(244, 162, 97, 0.4);
  background: var(--orange-soft);
}

.detail-hero {
  padding: clamp(28px, 5vw, 52px);
  background:
    radial-gradient(circle at 88% 10%, rgba(244, 162, 97, 0.24), transparent 22rem),
    #fff;
  border-color: rgba(244, 162, 97, 0.24);
}

.detail-hero-top {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  color: var(--muted);
  font-weight: 800;
}

.detail-tabs {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  gap: 6px;
  margin: 18px 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(248, 250, 252, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-soft);
}

.tab-button {
  min-width: 130px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  padding: 12px 18px;
  font-weight: 900;
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.tab-button:hover {
  background: var(--orange-soft);
  color: var(--blue);
}

.tab-button.active {
  background: #fff;
  color: var(--blue);
  box-shadow: 0 8px 18px rgba(244, 162, 97, 0.2);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
  animation: page-enter 220ms ease both;
}

.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(280px, 0.82fr);
  gap: 18px;
}

.content-card {
  padding: 24px;
}

.summary-card {
  grid-row: span 2;
}

.content-card h2,
.application-card h2 {
  margin-bottom: 12px;
  font-size: 1.45rem;
}

.content-card p {
  color: var(--muted);
  line-height: 1.7;
}

.fact-grid {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
}

.fact-grid div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
}

.fact-grid dt {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.fact-grid dd {
  margin: 0;
  font-weight: 900;
}

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

.qualification-list li {
  position: relative;
  padding-left: 26px;
  color: var(--muted);
  line-height: 1.5;
}

.qualification-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 900;
}

.stepper {
  position: relative;
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0 0 0 22px;
  list-style: none;
}

.stepper::before {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 6px;
  width: 2px;
  background: var(--line);
}

.stepper li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  font-weight: 700;
}

.stepper li::before {
  content: "";
  position: absolute;
  top: 3px;
  left: -21px;
  width: 12px;
  height: 12px;
  border: 4px solid var(--orange-soft);
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 16px rgba(244, 162, 97, 0.45);
}

.primary-cta,
.submit-button,
.resume-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  border-radius: 14px;
  font-weight: 900;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.primary-cta,
.submit-button {
  width: 100%;
  margin-top: 18px;
  border: 0;
  background: linear-gradient(135deg, var(--orange), #f7be87);
  color: var(--blue);
  box-shadow: 0 14px 28px rgba(244, 162, 97, 0.32);
  animation: button-glow 2.8s ease-in-out infinite;
}

.primary-cta:hover,
.submit-button:hover {
  background: linear-gradient(135deg, #f19643, var(--orange));
  box-shadow: 0 18px 34px rgba(244, 162, 97, 0.42);
  transform: translateY(-2px);
}

.application-card {
  width: min(720px, 100%);
  margin: 0 auto;
  padding: clamp(22px, 4vw, 34px);
}

.form-heading {
  margin-bottom: 22px;
}

.resume-box {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  padding: 16px;
  border: 1px dashed rgba(244, 162, 97, 0.5);
  border-radius: 16px;
  background: var(--orange-soft);
}

.resume-button {
  border: 1px solid rgba(244, 162, 97, 0.5);
  background: #fff;
  color: var(--blue);
  padding: 0 16px;
}

.resume-button:hover {
  background: #f8fafc;
  transform: translateY(-1px);
}

#resumeName {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.application-card label {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--ink);
  font-weight: 900;
}

.application-card input[readonly] {
  background: var(--surface-soft);
  color: var(--blue);
  font-weight: 900;
}

.empty-card {
  padding: 32px;
  color: var(--muted);
  text-align: center;
}

.detail-empty h1 {
  font-size: 2rem;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
  width: min(360px, calc(100% - 44px));
  padding: 16px 18px;
  border-radius: 16px;
  background: #0f2f22;
  color: #fff;
  box-shadow: var(--shadow);
  animation: page-enter 220ms ease both;
}

@keyframes page-enter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes icon-glow {
  0%,
  100% {
    box-shadow: 0 0 0 1px rgba(244, 162, 97, 0.3), 0 12px 26px rgba(244, 162, 97, 0.32);
  }

  50% {
    box-shadow: 0 0 0 5px rgba(244, 162, 97, 0.1), 0 18px 34px rgba(244, 162, 97, 0.48);
  }
}

@keyframes button-glow {
  0%,
  100% {
    box-shadow: 0 14px 28px rgba(244, 162, 97, 0.28);
  }

  50% {
    box-shadow: 0 18px 36px rgba(244, 162, 97, 0.46), 0 0 22px rgba(244, 162, 97, 0.24);
  }
}

@media (max-width: 860px) {
  .filter-grid,
  .overview-grid {
    grid-template-columns: 1fr;
  }

  .summary-card {
    grid-row: auto;
  }
}

@media (max-width: 620px) {
  .page {
    width: min(100% - 22px, 680px);
    margin-top: 14px;
  }

  .topbar,
  .results-heading,
  .listing-main {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar-actions {
    justify-content: flex-start;
  }

  .hero-panel,
  .search-card,
  .listing-card,
  .detail-hero,
  .content-card,
  .application-card {
    border-radius: 14px;
    padding: 18px;
  }

  .hero-panel h1,
  .detail-hero h1 {
    font-size: 2.2rem;
  }

  .detail-tabs {
    top: 0;
  }

  .tab-button {
    flex: 1;
    min-width: 0;
    padding: 11px 10px;
  }

  .badge,
  .detail-meta span,
  .location-line {
    width: 100%;
  }
}
