:root {
  color-scheme: light;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #f7f9fd;
  color: #111827;
  font-size: 16px;
  line-height: 1.6;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top, rgba(59,130,246,0.08), transparent 32%),
    linear-gradient(180deg, #ffffff 0%, #f7f9fd 100%);
}

img {
  max-width: 100%;
  display: block;
}

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

.page-shell {
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 24px 48px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0 16px;
}

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

.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: #2563eb;
  color: white;
  font-weight: 700;
  font-size: 1.25rem;
}

.brand-logo {
  height: 120px;
  width: auto;
  display: block;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #2563eb;
  font-size: 0.78rem;
  font-weight: 700;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

.site-nav a {
  color: #4b5563;
  font-size: 0.95rem;
  font-weight: 600;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.btn-primary {
  background: #2563eb;
  color: white;
}

.btn-primary:hover {
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.16);
}

.btn-secondary {
  background: #eef2ff;
  color: #1d4ed8;
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(37, 99, 235, 0.18);
  color: #2563eb;
}

.nav-user {
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  color: #1d4ed8;
  font-weight: 700;
}

.auth-banner {
  margin-bottom: 18px;
  padding: 18px 24px;
  background: #eff6ff;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 18px;
  color: #1d4ed8;
  font-weight: 600;
}

.auth-banner a,
.auth-banner .text-link {
  color: #1d4ed8;
  font-weight: 700;
  text-decoration: underline;
  background: none;
  border: none;
  cursor: pointer;
}

.hidden {
  display: none !important;
}

.profile-card {
  max-width: 640px;
  margin: 0 auto;
  padding: 32px;
  background: #ffffff;
  border-radius: 28px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.08);
}

.profile-card h1 {
  margin-top: 0;
}

.profile-card p {
  margin: 14px 0;
  color: #475569;
}

@media (max-width: 960px) {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  align-items: center;
  gap: 40px;
  margin-top: 48px;
  padding: 40px 0 36px;
}

.hero-copy h2 {
  font-size: clamp(2.7rem, 4vw, 4rem);
  line-height: 1.02;
  margin: 18px 0 18px;
}

.hero-text {
  color: #475569;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.hero-stat {
  margin: 16px 0 0;
  font-size: 3.75rem;
  color: #475569;
}

.hero-stat span {
  font-weight: 700;
  color: #2563eb;
  font-size: 4.2rem;
}

.hero-visual {
  position: relative;
}

.status-card {
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 28px;
  padding: 28px;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.08);
}

.status-label {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 0.78rem;
  font-weight: 700;
}

.status-card h3 {
  margin: 18px 0 10px;
  font-size: 1.35rem;
}

.status-card p {
  margin: 0;
  color: #475569;
}

.status-meta {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: #2563eb;
  font-weight: 700;
}

.section {
  padding: 64px 0;
}

.section-header {
  max-width: 640px;
}

.section-header h2 {
  font-size: 2.35rem;
  margin: 16px 0 0;
}

.cards-grid,
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.card,
.benefit-card,
.feature-box {
  background: #ffffff;
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  padding: 28px;
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.06);
}

.card h3,
.benefit-card h3,
.feature-box h3 {
  margin-top: 0;
  margin-bottom: 16px;
}

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 34px;
  align-items: start;
}

.steps-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 18px;
}

.steps-list li {
  padding: 20px;
  border-radius: 20px;
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.steps-list strong {
  display: inline-block;
  width: 28px;
  margin-right: 10px;
  color: #2563eb;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  background: #2563eb;
  color: white;
  border-radius: 32px;
  padding: 34px 38px;
  margin-top: 32px;
}

.site-footer h2 {
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 2.2vw, 2.4rem);
}

.site-footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  background: white;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: #111827;
  display: block;
  border-radius: 999px;
}

.site-nav {
  transition: max-height 0.3s ease, opacity 0.3s ease;
}

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

@media (max-width: 960px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    width: 100%;
    max-height: 0;
    overflow: hidden;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    opacity: 0;
  }

  .site-nav-open {
    max-height: 500px;
    opacity: 1;
    padding-top: 16px;
  }
  .hero {
    grid-template-columns: 1fr;
    margin-top: 36px;
  }

  .cards-grid,
  .benefit-grid,
  .split {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  .site-header {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .site-nav {
    width: 100%;
    order: 3;
    justify-content: flex-start;
  }

  .hero-copy h2 {
    font-size: 2.4rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }
}

.auth-page {
  max-width: 560px;
  margin: 60px auto;
  padding: 32px;
  background: #ffffff;
  border-radius: 28px;
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.08);
}

.auth-page h1 {
  margin-top: 0;
  font-size: 2rem;
}

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

.auth-form label {
  display: grid;
  gap: 8px;
  font-weight: 600;
  color: #111827;
}

.auth-form input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid #cbd5e1;
  font-size: 1rem;
}

.auth-form button {
  margin-top: 8px;
}

.auth-footer {
  margin-top: 22px;
  color: #475569;
}

.auth-footer a {
  color: #2563eb;
  font-weight: 700;
}
.app-footer {
  max-width: 1260px;
  margin: 0 auto;
  padding: 18px 24px 36px;
  text-align: left;
  color: #475569;
  font-size: 0.95rem;
}

@media (max-width: 720px) {
  .app-footer {
    padding: 18px 16px 32px;
  }
}

.profile-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  margin-top: 32px;
}

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

.profile-form fieldset {
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 18px;
  padding: 20px;
  background: #ffffff;
}

.profile-form legend {
  padding: 0 10px;
  font-weight: 700;
  color: #2563eb;
  font-size: 0.95rem;
}

.profile-form label {
  display: grid;
  gap: 8px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 16px;
}

.profile-form input,
.profile-form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  font-size: 1rem;
  font-family: inherit;
}

.profile-form input:focus,
.profile-form textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.profile-form input:disabled {
  background: #f1f5f9;
  color: #64748b;
  cursor: not-allowed;
}

.profile-form textarea {
  resize: vertical;
  line-height: 1.5;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-row label {
  margin-bottom: 0;
}

.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.cv-card {
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.06);
  height: fit-content;
  position: sticky;
  top: 20px;
}

.cv-card h2 {
  margin-top: 0;
  margin-bottom: 18px;
  font-size: 1.35rem;
}

.cv-preview {
  background: #f8fafc;
  padding: 18px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.1);
}

.cv-preview h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  color: #2563eb;
}

.cv-preview p {
  margin: 8px 0;
  font-size: 0.95rem;
  color: #475569;
}

.cv-preview a {
  color: #2563eb;
  text-decoration: underline;
  font-weight: 600;
}

.cv-preview h4 {
  margin: 16px 0 8px;
  font-size: 1rem;
  color: #111827;
}

#profile-message {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 600;
}

#profile-message.success {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
}

#profile-message.error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

.listings-status {
  margin: 8px 0 0;
  color: #475569;
}

.listings-status a {
  color: #2563eb;
  font-weight: 700;
  text-decoration: underline;
}

.listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.listing-card {
  background: #ffffff;
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  padding: 24px 28px;
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.listing-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.listing-title {
  margin: 0;
  font-size: 1.05rem;
  color: #111827;
  line-height: 1.3;
}

.listing-employer {
  color: #2563eb;
  font-weight: 600;
  font-size: 0.92rem;
}

.listing-location {
  margin: 0;
  color: #64748b;
  font-size: 0.9rem;
}

.listing-meta {
  margin: 0;
  font-size: 0.82rem;
  color: #2563eb;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.listing-desc {
  margin: 0;
  color: #475569;
  font-size: 0.88rem;
  line-height: 1.55;
  flex: 1;
}

.listing-apply {
  align-self: flex-start;
  margin-top: 6px;
  padding: 10px 18px;
  font-size: 0.9rem;
}

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

.listings-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}

.listings-search {
  flex: 1;
  min-width: 200px;
  padding: 11px 18px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  font-size: 0.95rem;
  font-family: inherit;
  background: #fff;
}

.listings-search:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.listings-filter-select {
  padding: 11px 16px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  font-size: 0.9rem;
  font-family: inherit;
  background: #fff;
  color: #111827;
  cursor: pointer;
}

.listings-filter-select:focus {
  outline: none;
  border-color: #2563eb;
}

.filter-chip {
  padding: 11px 18px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #fff;
  font-size: 0.9rem;
  font-family: inherit;
  font-weight: 600;
  color: #4b5563;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.filter-chip:hover {
  border-color: #2563eb;
  color: #2563eb;
}

.filter-chip.active {
  background: #2563eb;
  color: #fff;
  border-color: #2563eb;
}

.listings-empty {
  color: #64748b;
  padding: 32px 0;
  font-size: 0.95rem;
  grid-column: 1 / -1;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 24px;
}

.modal {
  background: #fff;
  border-radius: 28px;
  padding: 40px;
  max-width: 440px;
  width: 100%;
  box-shadow: 0 40px 80px rgba(15, 23, 42, 0.2);
  position: relative;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #94a3b8;
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
}

.modal-close:hover {
  color: #111827;
}

.modal h2 {
  margin: 12px 0 10px;
  font-size: 1.6rem;
}

.modal-body {
  color: #475569;
  margin: 0 0 28px;
}

.modal-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.modal-actions .btn {
  flex: 1;
  justify-content: center;
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 1024px) {
  .profile-container {
    grid-template-columns: 1fr;
  }

  .cv-card {
    position: static;
  }

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