:root {
  --ink: #1a1228;
  --muted: #6b6280;
  --fog: #9a92ad;
  --line: #e8e2f4;
  --line-soft: #f4f0fb;
  --bg: #faf8ff;
  --panel: #ffffff;
  --teal: #9d75ef;
  --teal-deep: #7a49c9;
  --teal-soft: #f3eefe;
  --sky: #e8fcfa;
  --sky-ink: #7a49c9;
  --orange: #ffe76a;
  --orange-soft: #fffadb;
  --green: #7eede5;
  --green-soft: #e8fcfa;
  --toolbar: #f4f0fb;
  --toggle-off: #ddd6eb;
  --shadow: 0 1px 2px rgba(26, 18, 40, 0.04), 0 8px 24px rgba(122, 73, 201, 0.1);
  --radius: 14px;
  --radius-sm: 10px;
  --font: "Plus Jakarta Sans", "Avenir Next", sans-serif;
  --sidebar-w: 232px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  font-family: var(--font);
  background: var(--bg);
}

button,
input {
  font: inherit;
}

.app {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  min-height: 100vh;
}

/* —— Sidebar —— */
.sidebar {
  background: var(--panel);
  border-right: 1px solid var(--line);
  padding: 1.15rem 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: sticky;
  top: 0;
  height: 100vh;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0.55rem;
  text-decoration: none;
  color: var(--ink);
}

.logo-mark {
  width: 1.55rem;
  height: 1.55rem;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--teal-soft);
  color: var(--teal-deep);
  font-size: 0.7rem;
  line-height: 1;
}

.logo-text {
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: -0.03em;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.62rem 0.75rem;
  border-radius: 10px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-item svg {
  width: 1.05rem;
  height: 1.05rem;
  fill: currentColor;
  flex-shrink: 0;
  opacity: 0.85;
}

.nav-item:hover {
  background: var(--line-soft);
  color: var(--ink);
}

.nav-item.active {
  background: var(--teal-soft);
  color: var(--teal-deep);
}

.nav-item[aria-disabled="true"] {
  opacity: 0.45;
  pointer-events: none;
}

.sidebar-foot {
  margin-top: auto;
  display: grid;
  gap: 0.85rem;
}

.beta-box {
  background: var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.8rem;
}

.beta-box strong {
  display: inline-block;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: var(--teal);
  margin-bottom: 0.25rem;
}

.beta-box p {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--muted);
}

.user-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.35rem 0.45rem;
}

.avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal);
  display: grid;
  place-items: center;
  font-size: 0.68rem;
  font-weight: 700;
}

.user-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.user-name {
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-sub {
  font-size: 0.72rem;
  color: var(--fog);
}

.user-signout {
  appearance: none;
  border: 0;
  background: none;
  padding: 0;
  margin: 0;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: var(--peach-deep, var(--teal-deep));
  font-weight: 600;
}

.user-signout:hover {
  color: var(--ink);
}

/* —— Main —— */
.main {
  padding: 1.5rem 1.75rem 2.25rem;
  min-width: 0;
  animation: fade 0.35s ease both;
}

.page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.page-head h1 {
  margin: 0;
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.search {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  min-width: min(280px, 100%);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.search:focus-within {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-soft);
}

.search svg {
  width: 1rem;
  height: 1rem;
  fill: var(--fog);
  flex-shrink: 0;
}

.search input {
  border: 0;
  outline: none;
  background: transparent;
  width: 100%;
  font-size: 0.9rem;
  color: var(--ink);
}

.tabs {
  display: flex;
  gap: 1.35rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1rem;
}

.tab {
  appearance: none;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  padding: 0.55rem 0.1rem 0.7rem;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
}

.tab.active {
  color: var(--ink);
  border-bottom-color: var(--teal);
}

.tab-count::before {
  content: "(";
}
.tab-count:empty {
  display: none;
}
.tab-count:not(:empty)::after {
  content: ")";
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  background: var(--toolbar);
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
  margin-bottom: 0.75rem;
}

.tag-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin-left: auto;
}

.tag-filter-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
}

.tag-filter select {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.45rem 2rem 0.45rem 0.85rem;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  min-width: min(240px, 70vw);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b6280' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  cursor: pointer;
}

.tag-filter-clear {
  font-size: 0.8rem;
  margin-left: auto;
}

.filter-panel {
  margin: 0 0 1.15rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
}

.filter-panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.filter-panel-head strong {
  font-size: 0.86rem;
  letter-spacing: -0.01em;
}

.filter-panel-hint {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 600;
}

.filter-chip-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.filter-toggle {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--line-soft);
  color: var(--ink-soft, #2d2440);
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 650;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.filter-toggle:hover {
  border-color: #cfc6de;
  background: #fff;
}

.filter-toggle.is-on {
  background: #1a1228;
  border-color: #1a1228;
  color: #fff;
  box-shadow: 2px 2px 0 #ffe76a;
}

.filter-toggle.is-loc.is-on {
  box-shadow: 2px 2px 0 #7eede5;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 1rem;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.55rem 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--ink);
}

.filter-chip button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 0 0.15rem;
}

.filter-chip button:hover {
  color: var(--ink);
}

.toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.86rem;
  color: var(--ink);
  font-weight: 500;
  cursor: pointer;
  user-select: none;
}

.toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.toggle-ui {
  width: 2.35rem;
  height: 1.3rem;
  border-radius: 999px;
  background: var(--toggle-off);
  position: relative;
  transition: background 0.2s ease;
  flex-shrink: 0;
}

.toggle-ui::after {
  content: "";
  position: absolute;
  top: 0.15rem;
  left: 0.15rem;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease;
}

.toggle input:checked + .toggle-ui {
  background: var(--teal);
}

.toggle input:checked + .toggle-ui::after {
  transform: translateX(1.05rem);
}

.btn-primary {
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal-deep);
  padding: 0.65rem 1.05rem;
  font-weight: 600;
  font-size: 0.86rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease, color 0.15s ease;
}

.btn-primary svg {
  width: 0.95rem;
  height: 0.95rem;
  fill: currentColor;
}

.btn-primary:hover {
  background: var(--teal);
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: wait;
  transform: none;
}

/* —— Cards —— */
.job-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.job-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem 1.05rem 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  min-height: 220px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  animation: rise 0.4s ease both;
  cursor: pointer;
}

.job-card:hover {
  transform: translateY(-2px);
  border-color: #e4ddd4;
  box-shadow: 0 2px 4px rgba(44, 42, 39, 0.04), 0 14px 28px rgba(44, 42, 39, 0.07);
}

.job-card:focus-visible {
  outline: 2px solid var(--teal-deep, #0f766e);
  outline-offset: 2px;
}

.job-card:nth-child(1) { animation-delay: 0.02s; }
.job-card:nth-child(2) { animation-delay: 0.05s; }
.job-card:nth-child(3) { animation-delay: 0.08s; }
.job-card:nth-child(n + 4) { animation-delay: 0.1s; }

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.65rem;
}

.company-mark {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 10px;
  background: var(--line-soft);
  color: var(--teal);
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  flex-shrink: 0;
  overflow: hidden;
}

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

.badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  white-space: nowrap;
}

.badge-match {
  background: var(--teal-soft);
  color: var(--teal-deep);
}

.badge-direct {
  background: var(--teal-soft);
  color: var(--teal);
}

.badge-saved {
  background: var(--orange-soft);
  color: var(--orange);
}

.badge-applied {
  background: var(--green-soft);
  color: var(--green);
}

.card-title {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-company {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
}

.card-company.is-pixelated,
.job-modal-company.is-pixelated {
  filter: blur(5.5px) contrast(1.15);
  user-select: none;
  pointer-events: none;
  transform: scale(1.02);
  transform-origin: left center;
}

.company-mark.is-pixelated {
  filter: blur(4px) contrast(1.2);
  user-select: none;
}

.company-mark.is-pixelated img {
  filter: none;
}

.meta-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.meta-tag {
  background: var(--sky);
  color: var(--sky-ink);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
}

.meta-tag--interview.meta-tag--d1 {
  background: #e8faf3;
  color: #0f766e;
}

.meta-tag--interview.meta-tag--d2 {
  background: #eef2ff;
  color: #3730a3;
}

.meta-tag--interview.meta-tag--d3 {
  background: #fff4e5;
  color: #9a3412;
}

.meta-tag--interview.meta-tag--d4 {
  background: #fee2e2;
  color: #991b1b;
}

.meta-tag--chance {
  background: var(--line-soft);
  color: var(--ink-soft, #2d2440);
}

.card-excerpt {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  margin-top: auto;
  padding-top: 0.15rem;
}

.salary {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}

.salary.is-empty {
  color: var(--fog);
  font-weight: 500;
}

.salary-estimate {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.salary-estimate-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--teal-deep, #0f766e);
}

.salary-estimate-value {
  font-size: 0.8rem;
  font-weight: 650;
  color: var(--ink);
}

.card-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.icon-btn {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.icon-btn svg {
  width: 0.95rem;
  height: 0.95rem;
  fill: currentColor;
}

.icon-btn:hover {
  background: var(--line-soft);
  color: var(--ink);
}

.icon-btn.is-on {
  background: var(--orange-soft);
  border-color: transparent;
  color: var(--orange);
}

.icon-btn.apply {
  background: var(--teal-soft);
  border-color: transparent;
  color: var(--teal-deep);
}

.icon-btn.apply:hover {
  background: var(--teal);
  color: #ffffff;
}

.empty {
  text-align: center;
  color: var(--muted);
  padding: 3.5rem 1rem;
  background: var(--panel);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

.hidden {
  display: none !important;
}

.error {
  margin: 0;
  color: #b42318;
  font-size: 0.88rem;
  font-weight: 600;
}

.modal-card--plans {
  width: min(1120px, 98vw);
  max-height: min(88vh, 720px);
  overflow: auto;
  padding: 1.25rem 1.4rem 1.1rem;
  gap: 0.65rem;
}

.modal-card--plans h2 {
  font-size: 1.35rem;
  margin: 0;
}

.modal-card--plans #paywallBody {
  font-size: 0.92rem;
  line-height: 1.4;
  margin: 0;
}

.plan-grid--modal {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 0.15rem 0;
  align-items: stretch;
}

.plan-card-mini {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.95rem 0.9rem 0.85rem;
  display: grid;
  gap: 0.4rem;
  background: var(--panel);
  min-height: 0;
  align-content: start;
}

.plan-card-mini--featured {
  border-color: #1a1228;
  box-shadow: 3px 3px 0 #1a1228;
}

.plan-card-mini h3 {
  margin: 0;
  font-size: 1.05rem;
}

.plan-card-mini .plan-price {
  margin: 0;
  font-size: 1.05rem;
}

.plan-card-mini .plan-price strong {
  font-size: 1.4rem;
}

.plan-card-mini .plan-price span {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.85rem;
}

.plan-card-mini ul {
  margin: 0;
  padding-left: 1.05rem;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.plan-card-mini .plan-badge {
  position: absolute;
  top: -0.55rem;
  right: 0.55rem;
  background: #ffe76a;
  color: #1a1228;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  border: 1px solid #1a1228;
}

.plan-card-mini .plan-spots {
  margin: 0.15rem 0 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--coral, #c45c26);
}

.plan-card-mini--soldout {
  opacity: 0.72;
}

.plan-card-mini--soldout .plan-cta {
  cursor: not-allowed;
}

.plan-card-mini .plan-cta {
  width: 100%;
  margin-top: 0.35rem;
  min-height: 2.4rem;
  font-size: 0.9rem;
}

.app-quiz-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 0 0 1rem;
  padding: 0.9rem 1.05rem;
  border-radius: 14px;
  border: 1.5px solid #1a1228;
  background: linear-gradient(100deg, #f6f1ff 0%, #fffadb 55%, #e8fcfa 100%);
  box-shadow: 3px 3px 0 #1a1228;
}

.app-quiz-banner-copy {
  min-width: 0;
}

.app-quiz-banner-copy strong {
  display: block;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}

.app-quiz-banner-copy p {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

.app-quiz-banner-cta {
  flex-shrink: 0;
  text-decoration: none;
}

.app-quiz-banner--done {
  background: linear-gradient(100deg, #e8fcfa 0%, #f6f1ff 100%);
}

.unlock-overlay {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 50vh;
  z-index: 40;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1.25rem;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.72) 28%,
    rgba(250, 248, 255, 0.94) 55%,
    rgba(26, 18, 40, 0.88) 100%
  );
  backdrop-filter: blur(1.5px);
}

.unlock-overlay-panel {
  width: min(440px, 100%);
  margin-bottom: 1.5rem;
  padding: 1.25rem 1.35rem;
  border-radius: 16px;
  background: #fff;
  border: 2px solid #1a1228;
  box-shadow: 4px 4px 0 #1a1228;
  text-align: center;
  color: var(--ink);
  pointer-events: auto;
}

.unlock-kicker {
  margin: 0 0 0.25rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #7a49c9;
}

.unlock-overlay-panel h2 {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.unlock-overlay-panel p {
  margin: 0 0 0.9rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

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

  .modal-card--plans {
    width: min(560px, 96vw);
    max-height: min(92vh, 860px);
  }
}

.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.pager-btn {
  appearance: none;
  border: 0;
  background: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0.35rem 0.25rem;
}

.pager-btn:hover:not(:disabled) {
  color: var(--teal);
}

.pager-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.pager-label {
  font-size: 0.88rem;
  color: var(--ink);
  font-weight: 600;
}

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

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

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

  .sidebar {
    position: relative;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding-bottom: 0.85rem;
  }

  .nav {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .nav-item[aria-disabled="true"] {
    display: none;
  }

  .sidebar-foot {
    display: none;
  }

  .main {
    padding: 1.15rem 1rem 2rem;
  }
}

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

  .page-head {
    flex-direction: column;
    align-items: stretch;
  }

  .search {
    min-width: 0;
  }

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

  .btn-primary {
    justify-content: center;
  }
}

.plan-chip {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.75rem;
  background: var(--panel);
  display: grid;
  gap: 0.15rem;
}

.plan-chip strong {
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--teal-deep);
}

.plan-chip span {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.35;
}

.guest-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 0 0 1rem;
  padding: 0.95rem 1.05rem;
  background: linear-gradient(135deg, #f6f1ff, #fffadb);
  border: 1.5px solid var(--ink, #1a1228);
  border-radius: 12px;
}

.guest-banner-copy {
  min-width: 0;
}

.guest-banner-copy strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.guest-banner-copy p {
  margin: 0.2rem 0 0;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.35;
}

.guest-auth {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 0.35rem;
}

.guest-auth-cta {
  width: 100%;
  justify-content: center;
  text-decoration: none;
}

.guest-auth-note {
  margin: 0;
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.35;
}

body.is-guest .tab[data-tab="for-you"]::after {
  content: " · unlock";
  font-weight: 700;
  color: var(--muted);
  font-size: 0.78em;
}

.btn-link {
  appearance: none;
  border: 0;
  background: none;
  color: var(--teal-deep);
  font: 700 0.82rem/1.2 var(--font);
  text-align: left;
  padding: 0.15rem 0.1rem 0.55rem;
  cursor: pointer;
}

.btn-link:hover {
  color: var(--ink);
}

.btn-link:disabled {
  opacity: 0.5;
  cursor: default;
}

.badge-early {
  background: #fff4e8;
  color: #c9843f;
}

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

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(44, 42, 39, 0.42);
}

.modal-card {
  position: relative;
  width: min(420px, 100%);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem 1.2rem;
  box-shadow: var(--shadow);
  display: grid;
  gap: 0.75rem;
}

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

.modal-card--jd {
  width: min(720px, 100%);
  max-height: min(88vh, 900px);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  gap: 0.7rem;
}

.job-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.job-modal-company {
  margin: 0 0 0.2rem !important;
  font-weight: 600;
}

.job-modal-close {
  flex-shrink: 0;
}

.job-modal-meta {
  margin: 0;
}

.job-modal-pay {
  margin: 0;
}

.job-modal-body {
  overflow: auto;
  padding-right: 0.25rem;
  max-height: min(52vh, 520px);
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.55;
  border-top: 1px solid var(--line);
  padding-top: 0.85rem;
}

.job-modal-body h1,
.job-modal-body h2,
.job-modal-body h3,
.job-modal-body h4 {
  margin: 1rem 0 0.4rem;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.job-modal-body h1:first-child,
.job-modal-body h2:first-child,
.job-modal-body h3:first-child {
  margin-top: 0;
}

.job-modal-body p {
  margin: 0 0 0.7rem;
}

.job-modal-body ul,
.job-modal-body ol {
  margin: 0 0 0.8rem;
  padding-left: 1.2rem;
}

.job-modal-body li {
  margin: 0.25rem 0;
}

.job-modal-body a {
  color: var(--teal-deep, #0f766e);
}

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

.modal-card h2 {
  margin: 0;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.modal-sub {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.55rem;
  margin-top: 0.35rem;
}

.btn-secondary {
  appearance: none;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 10px;
  padding: 0.65rem 0.95rem;
  font: 700 0.86rem/1 var(--font);
  cursor: pointer;
  text-decoration: none;
}

.modal-actions .btn-primary {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.enhance-result {
  display: grid;
  gap: 0.75rem;
  max-height: min(50vh, 360px);
  overflow: auto;
  padding-right: 0.25rem;
}

.enhance-result h3 {
  margin: 0;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.enhance-result p,
.enhance-result li {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--ink);
}

.enhance-result ul {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.35rem;
}

.pack-result {
  display: grid;
  gap: 1rem;
  max-height: min(55vh, 420px);
  overflow: auto;
  padding-right: 0.25rem;
}

.pack-block h3 {
  margin: 0;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.pack-field-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.pack-pre {
  margin: 0;
  white-space: pre-wrap;
  font-family: inherit;
  font-size: 0.9rem;
  line-height: 1.45;
  background: var(--line-soft, #f4f0fb);
  border-radius: 10px;
  padding: 0.85rem 1rem;
}

.pack-fields {
  display: grid;
  gap: 0.65rem;
}

.pack-field-value {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink);
}

.pack-result ul {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.35rem;
}


.seo-foot { max-width: 1180px; margin: 40px auto 28px; padding: 22px 20px 0;
  border-top: 1px solid rgba(255,255,255,0.08); }
.seo-foot h2 { font-size: 12px; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; opacity: .55; margin: 0 0 12px; }
.seo-foot ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px;
  margin: 0; padding: 0; }
.seo-foot a { font-size: 13px; opacity: .7; text-decoration: none; }
.seo-foot a:hover { opacity: 1; text-decoration: underline; }
