/* ================================================================
   Career Profile View Styles
   ================================================================ */

/* Career profile view itself does NOT scroll — inner scroll container handles it */
#careerProfileView {
  overflow: hidden;
}

/* Scroll container: sits below the topbar, scrolls independently */
.career-profile-scroll {
  position: absolute;
  left: 0;
  right: 0;
  top: 148px;          /* just below logo / lang toggle / login */
  bottom: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: 120px;
  scroll-behavior: smooth;
}

.career-profile-scroll::-webkit-scrollbar {
  width: 8px;
}

.career-profile-scroll::-webkit-scrollbar-track {
  background: rgba(2, 8, 24, 0.35);
}

.career-profile-scroll::-webkit-scrollbar-thumb {
  background: rgba(216, 180, 90, 0.45);
  border-radius: 999px;
}

.career-profile-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 240, 184, 0.65);
}

/* Firefox scrollbar */
.career-profile-scroll {
  scrollbar-width: thin;
  scrollbar-color: rgba(216, 180, 90, 0.45) rgba(2, 8, 24, 0.35);
}

.career-profile {
  z-index: var(--z-floating);
  width: min(1180px, calc(100vw - 72px));
  min-height: calc(100vh - 270px);
  margin: 0 auto;
  padding-bottom: 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}

.profile-left,
.profile-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.profile-card {
  position: relative;
  border-radius: 24px;
  background: rgba(3, 14, 38, 0.58);
  border: 1px solid rgba(132, 185, 255, 0.28);
  box-shadow: var(--shadow), inset 0 0 36px rgba(23, 105, 255, 0.10);
  backdrop-filter: blur(14px);
}

.profile-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 240, 184, 0.72), rgba(23, 105, 255, 0.18), rgba(216, 180, 90, 0.55));
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.76;
}

.profile-card-header {
  position: relative;
  padding: 32px 32px 20px;
  border-bottom: 1px solid rgba(132, 185, 255, 0.16);
}

.profile-card-header h2 {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, #FFF4C2 0%, #D8B45A 50%, #FFF0B8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.profile-card-header p {
  margin: 0;
  color: rgba(242, 247, 255, 0.62);
  font-size: 14px;
  line-height: 1.6;
}

.profile-card-body {
  position: relative;
  padding: 24px 32px 20px;
}

.profile-card-footer {
  position: relative;
  padding: 12px 32px 28px;
}

.profile-section-label {
  display: block;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: rgba(255, 240, 184, 0.82);
  text-transform: uppercase;
}

.profile-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  border-radius: 13px;
  border: 1px dashed rgba(132, 185, 255, 0.28);
  background: rgba(2, 10, 28, 0.28);
  color: rgba(242, 247, 255, 0.42);
  font-size: 14px;
  margin-bottom: 16px;
}

/* === Profile Form Fields === */
.profile-field {
  margin-bottom: 14px;
}

.profile-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: rgba(255, 240, 184, 0.88);
}

.profile-field input,
.profile-field select {
  width: 100%;
  border: 1px solid rgba(132, 185, 255, 0.28);
  background: rgba(2, 10, 28, 0.38);
  color: var(--white);
  border-radius: 13px;
  padding: 11px 14px;
  outline: none;
  font-size: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.profile-field input::placeholder {
  color: rgba(242, 247, 255, 0.32);
}

.profile-field input:focus,
.profile-field select:focus {
  border-color: rgba(216, 180, 90, 0.78);
  box-shadow: var(--focus-ring);
  outline: none;
}

.profile-field-row {
  display: flex;
  gap: 10px;
}

.profile-field-row .profile-field {
  flex: 1;
  margin-bottom: 0;
}

/* === Date Trio Selects === */
.date-selects {
  display: flex;
  gap: 10px;
}

.date-selects select {
  flex: 1;
  border: 1px solid rgba(132, 185, 255, 0.28);
  background: rgba(2, 10, 28, 0.38);
  color: var(--white);
  border-radius: 13px;
  padding: 11px 10px;
  outline: none;
  font-size: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.date-selects select:focus {
  border-color: rgba(216, 180, 90, 0.78);
  box-shadow: var(--focus-ring);
  outline: none;
}

/* Style the dropdown options for dark theme */
.profile-field select option,
.date-selects select option {
  background: #061636;
  color: var(--white);
}

/* === Education Section === */
.edu-section {
  margin-top: 8px;
}

.edu-section .profile-section-label {
  margin-bottom: 16px;
}

.edu-block {
  margin-bottom: 18px;
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(2, 10, 28, 0.22);
  border: 1px solid rgba(132, 185, 255, 0.14);
}

/* education-card is the semantic wrapper — same visual as edu-block */
.education-card.edu-block {
  /* inherits .edu-block styles above */
}

.edu-block .edu-block-title {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: rgba(255, 240, 184, 0.7);
}

/* Education card with field-error — highlight border */
.education-card.field-error,
.education-card .field-error {
  /* .field-error class already handles border-color in the global rule below */
}

.edu-period-selects {
  display: flex;
  align-items: center;
  gap: 8px;
}

.edu-period-selects select {
  flex: 1;
  border: 1px solid rgba(132, 185, 255, 0.28);
  background: rgba(2, 10, 28, 0.38);
  color: var(--white);
  border-radius: 13px;
  padding: 11px 10px;
  outline: none;
  font-size: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.edu-period-selects select:focus {
  border-color: rgba(216, 180, 90, 0.78);
  box-shadow: var(--focus-ring);
  outline: none;
}

.edu-period-selects select option {
  background: #061636;
  color: var(--white);
}

.edu-period-sep {
  color: rgba(242, 247, 255, 0.38);
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
  user-select: none;
}

/* === Research Type Toggle (Master) === */
.edu-research-toggle {
  margin-top: 14px;
}

.edu-research-toggle label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: rgba(255, 240, 184, 0.88);
}

.edu-research-toggle select {
  width: 100%;
  border: 1px solid rgba(132, 185, 255, 0.28);
  background: rgba(2, 10, 28, 0.38);
  color: var(--white);
  border-radius: 13px;
  padding: 11px 14px;
  outline: none;
  font-size: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.edu-research-toggle select:focus {
  border-color: rgba(216, 180, 90, 0.78);
  box-shadow: var(--focus-ring);
  outline: none;
}

.edu-research-toggle select option {
  background: #061636;
  color: var(--white);
}

/* === Research Content Area (Master/Ph.D.) === */
.edu-research-content {
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(2, 10, 28, 0.16);
  border: 1px solid rgba(132, 185, 255, 0.12);
}

.edu-research-content .profile-field {
  margin-bottom: 12px;
}

.edu-research-content .profile-field:last-child {
  margin-bottom: 0;
}

/* === Textarea for research / core courses === */
.profile-field textarea {
  width: 100%;
  border: 1px solid rgba(132, 185, 255, 0.28);
  background: rgba(2, 10, 28, 0.38);
  color: var(--white);
  border-radius: 13px;
  padding: 11px 14px;
  outline: none;
  font-size: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  resize: vertical;
  line-height: 1.6;
}

.profile-field textarea::placeholder {
  color: rgba(242, 247, 255, 0.32);
}

.profile-field textarea:focus {
  border-color: rgba(216, 180, 90, 0.78);
  box-shadow: var(--focus-ring);
  outline: none;
}

/* === Resume Upload Zone === */
.resume-upload-section {
  margin-top: 20px;
  margin-bottom: 8px;
}

.resume-upload-section .profile-section-label {
  margin-bottom: 4px;
}

.resume-upload-hint {
  margin: 0 0 14px;
  font-size: 12px;
  color: rgba(242, 247, 255, 0.48);
  line-height: 1.55;
}

.resume-upload-zone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  padding: 32px 24px;
  border: 2px dashed rgba(132, 185, 255, 0.28);
  border-radius: 16px;
  background: rgba(2, 10, 28, 0.22);
  cursor: pointer;
  transition: border-color var(--duration-fast) var(--ease-out),
              background-color var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out);
}

@media (hover: hover) {
  .resume-upload-zone:hover {
    border-color: rgba(216, 180, 90, 0.38);
    background: rgba(2, 10, 28, 0.32);
    box-shadow: 0 0 28px rgba(216, 180, 90, 0.08);
  }
}

.resume-upload-zone.drag-over {
  border-color: rgba(216, 180, 90, 0.82);
  background: rgba(216, 180, 90, 0.06);
  box-shadow: 0 0 38px rgba(216, 180, 90, 0.18), inset 0 0 28px rgba(216, 180, 90, 0.06);
}

.resume-upload-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(216, 180, 90, 0.1);
  border: 1px solid rgba(216, 180, 90, 0.28);
  color: var(--gold-light);
  font-size: 20px;
}

.resume-upload-text {
  font-size: 14px;
  font-weight: 700;
  color: rgba(242, 247, 255, 0.72);
  text-align: center;
}

.resume-upload-subtext {
  margin-top: 6px;
  font-size: 12px;
  color: rgba(242, 247, 255, 0.38);
}

.resume-upload-zone.uploaded {
  border-style: solid;
  border-color: rgba(216, 180, 90, 0.32);
  background: rgba(2, 10, 28, 0.28);
}

.resume-file-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.resume-file-icon {
  font-size: 18px;
  font-weight: 900;
  color: var(--gold-light);
}

.resume-file-name {
  font-size: 14px;
  font-weight: 700;
  color: rgba(242, 247, 255, 0.88);
  word-break: break-all;
  max-width: 100%;
}

.resume-file-size {
  font-size: 12px;
  color: rgba(242, 247, 255, 0.48);
}

.resume-success-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  color: rgba(216, 180, 90, 0.92);
}

.resume-success-badge::before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(216, 180, 90, 0.18);
  font-size: 10px;
}

.resume-reupload-btn {
  margin-top: 8px;
  height: 32px;
  padding: 0 16px;
  border-radius: 8px;
  border: 1px solid rgba(216, 180, 90, 0.48);
  background: rgba(216, 180, 90, 0.08);
  color: var(--gold-light);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: border-color var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out);
}

@media (hover: hover) {
  .resume-reupload-btn:hover {
    border-color: rgba(216, 180, 90, 0.82);
    box-shadow: 0 0 16px rgba(216, 180, 90, 0.14);
  }
}

.resume-reupload-btn:active {
  border-color: rgba(216, 180, 90, 0.82);
  box-shadow: 0 0 16px rgba(216, 180, 90, 0.14);
}

.resume-error-msg {
  margin-top: 10px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 180, 80, 0.88);
  display: none;
}

.resume-error-msg.visible {
  display: block;
}

/* === Planning Mode Selector === */
.planning-section {
  margin-top: 20px;
  margin-bottom: 8px;
}

.planning-section .profile-section-label {
  margin-bottom: 6px;
}

.planning-hint {
  margin: 0 0 16px;
  font-size: 12px;
  color: rgba(242, 247, 255, 0.48);
  line-height: 1.55;
}

.planning-question {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 700;
  color: rgba(242, 247, 255, 0.78);
}

.planning-cards {
  display: flex;
  gap: 14px;
}

.planning-card {
  flex: 1;
  position: relative;
  padding: 20px 18px;
  border-radius: 16px;
  border: 2px solid rgba(132, 185, 255, 0.18);
  background: rgba(2, 10, 28, 0.24);
  cursor: pointer;
  transition: border-color var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out),
              background-color var(--duration-fast) var(--ease-out),
              transform var(--duration-fast) var(--ease-out);
  user-select: none;
}

@media (hover: hover) {
  .planning-card:hover {
    border-color: rgba(216, 180, 90, 0.32);
    background: rgba(2, 10, 28, 0.38);
    transform: translateY(-1px);
  }
}

.planning-card:active {
  transform: scale(0.98);
}

.planning-card.active {
  border-color: rgba(216, 180, 90, 0.82);
  background: rgba(216, 180, 90, 0.07);
  box-shadow:
    0 0 32px rgba(216, 180, 90, 0.16),
    inset 0 0 24px rgba(216, 180, 90, 0.04);
}

.planning-card-icon {
  font-size: 22px;
  margin-bottom: 10px;
}

.planning-card-title {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: rgba(242, 247, 255, 0.88);
  margin-bottom: 6px;
}

.planning-card.active .planning-card-title {
  color: var(--gold-light);
}

.planning-card-desc {
  font-size: 11px;
  color: rgba(242, 247, 255, 0.48);
  line-height: 1.5;
}

.planning-card.active .planning-card-desc {
  color: rgba(242, 247, 255, 0.58);
}

/* Disabled / coming-soon state for the personalized card */
.planning-card.disabled {
  opacity: 0.48;
  cursor: not-allowed;
  border-color: rgba(132, 185, 255, 0.08);
  background: rgba(2, 10, 28, 0.12);
  filter: grayscale(0.4);
}

@media (hover: hover) {
  .planning-card.disabled:hover {
    border-color: rgba(132, 185, 255, 0.08);
    background: rgba(2, 10, 28, 0.12);
    transform: none;
  }
}

.planning-card.disabled .planning-card-title {
  color: rgba(242, 247, 255, 0.38);
}

.planning-card.disabled .planning-card-desc {
  color: rgba(242, 247, 255, 0.24);
}

.planning-card-coming-soon {
  display: none;
  margin-top: 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: rgba(216, 180, 90, 0.52);
  text-transform: uppercase;
}

.planning-card.disabled .planning-card-coming-soon {
  display: block;
}

/* Conditional content areas below cards */
.planning-detail {
  margin-top: 16px;
  padding: 18px 20px;
  border-radius: 14px;
  border: 1px solid rgba(132, 185, 255, 0.14);
  background: rgba(2, 10, 28, 0.18);
  display: none;
}

.planning-detail.visible {
  display: block;
}

.planning-detail-label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: rgba(255, 240, 184, 0.72);
  text-transform: uppercase;
}

.planning-detail-desc {
  margin: 0 0 14px;
  font-size: 12px;
  color: rgba(242, 247, 255, 0.42);
  line-height: 1.55;
}

.planning-detail-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  border-radius: 10px;
  border: 1px dashed rgba(132, 185, 255, 0.2);
  background: rgba(2, 10, 28, 0.2);
  color: rgba(242, 247, 255, 0.35);
  font-size: 13px;
}

/* === Right Side: Steps Card === */
.steps-card {
  position: relative;
  border-radius: 24px;
  background: rgba(3, 14, 38, 0.48);
  border: 1px solid rgba(216, 180, 90, 0.22);
  box-shadow: var(--shadow), inset 0 0 28px rgba(216, 180, 90, 0.06);
  backdrop-filter: blur(12px);
}

.steps-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(216, 180, 90, 0.6), rgba(255, 240, 184, 0.18), rgba(216, 180, 90, 0.4));
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.7;
}

.steps-card-header {
  position: relative;
  padding: 28px 28px 16px;
}

.steps-card-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: var(--gold-light);
}

.steps-list {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.step-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.step-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(216, 180, 90, 0.14);
  border: 1px solid rgba(216, 180, 90, 0.38);
  color: var(--gold-light);
  font-size: 13px;
  font-weight: 900;
}

.step-body strong {
  display: block;
  margin-bottom: 3px;
  font-size: 14px;
  color: rgba(242, 247, 255, 0.92);
}

.step-body span {
  font-size: 12px;
  color: rgba(242, 247, 255, 0.54);
  line-height: 1.55;
}

.profile-back-btn {
  position: relative;
  height: 42px;
  padding: 0 22px;
  border-radius: 12px;
  border: 1px solid rgba(216, 180, 90, 0.68);
  background: rgba(216, 180, 90, 0.1);
  color: var(--gold-light);
  font-size: 14px;
  font-weight: 850;
  cursor: pointer;
  transition: transform var(--duration-fast) var(--ease-out),
              border-color var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out);
}

@media (hover: hover) {
  .profile-back-btn:hover {
    transform: translateY(-1px);
    border-color: var(--gold-light);
    box-shadow: 0 0 22px rgba(216, 180, 90, 0.18);
  }
}

.profile-back-btn:active {
  transform: scale(0.97);
}

/* === Form Error Summary === */
.form-error-summary {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 122, 122, 0.52);
  background: rgba(70, 10, 18, 0.32);
  color: rgba(255, 230, 230, 0.96);
  box-shadow: 0 0 18px rgba(255, 122, 122, 0.12);
  animation: form-error-fade-in 0.25s ease-out;
}

.form-error-summary strong {
  display: block;
  margin-bottom: 8px;
  color: #fff0b8;
  font-size: 13px;
  font-weight: 800;
}

.form-error-summary ul {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.8;
}

.form-error-summary ul li {
  color: rgba(255, 230, 230, 0.92);
}

/* === Form Success Summary === */
.form-success-summary {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(144, 238, 144, 0.45);
  background: rgba(8, 48, 18, 0.32);
  color: rgba(230, 255, 230, 0.96);
  box-shadow: 0 0 18px rgba(144, 238, 144, 0.12);
  animation: form-error-fade-in 0.25s ease-out;
}

@keyframes form-error-fade-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ================================================================
   School Autocomplete Dropdown
   ================================================================ */
.school-autocomplete-wrap {
  position: relative;
  width: 100%;
}

.school-autocomplete-list {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  z-index: 50;
  max-height: 240px;
  overflow-y: auto;
  overflow-x: hidden;
  background: rgba(5, 14, 35, 0.97);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 6px;
  display: none;
}

.school-autocomplete-list.visible {
  display: block;
}

.school-autocomplete-noresult {
  padding: 14px 16px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.48);
  text-align: center;
}

.school-autocomplete-item {
  display: block;
  width: 100%;
  padding: 11px 14px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.school-autocomplete-item:last-child {
  border-bottom: none;
}

.school-autocomplete-item.active {
  background: rgba(212, 175, 55, 0.16);
}

@media (hover: hover) {
  .school-autocomplete-item:hover {
    background: rgba(212, 175, 55, 0.16);
  }
}

.school-autocomplete-item:active {
  background: rgba(212, 175, 55, 0.22);
}

.school-autocomplete-item-name {
  font-size: 14px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.94);
  line-height: 1.4;
}

.school-autocomplete-item.active .school-autocomplete-item-name {
  color: #f5d76e;
}

@media (hover: hover) {
  .school-autocomplete-item:hover .school-autocomplete-item-name {
    color: #f5d76e;
  }
}

.school-autocomplete-item:active .school-autocomplete-item-name {
  color: #f5d76e;
}

.school-autocomplete-item-name small {
  font-size: 12px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.52);
}

.school-autocomplete-item-region {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.48);
}

/* Scrollbar within dropdown */
.school-autocomplete-list::-webkit-scrollbar {
  width: 6px;
}

.school-autocomplete-list::-webkit-scrollbar-track {
  background: rgba(2, 8, 24, 0.35);
  border-radius: 10px;
}

.school-autocomplete-list::-webkit-scrollbar-thumb {
  background: rgba(216, 180, 90, 0.4);
  border-radius: 999px;
}

/* ================================================================
   Tencent Job Section — Search, Filters, Cards, Detail, Submit
   ================================================================ */

/* -- Search bar -- */
.tencent-search-bar {
  margin-bottom: 14px;
}

.tencent-search-input {
  width: 100%;
  height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid rgba(212, 175, 55, 0.28);
  background: rgba(5, 14, 35, 0.72);
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.tencent-search-input::placeholder {
  color: rgba(255, 255, 255, 0.36);
}

.tencent-search-input:focus {
  border-color: rgba(216, 180, 90, 0.78);
  box-shadow: var(--focus-ring);
}

/* -- Filter row -- */
.tencent-filter-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.tencent-filter-select {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(212, 175, 55, 0.25);
  background: rgba(5, 14, 35, 0.72);
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(216,180,90,0.7)' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

.tencent-filter-select:focus {
  border-color: rgba(216, 180, 90, 0.78);
  box-shadow: var(--focus-ring);
}

.tencent-filter-select option {
  background: #07142e;
  color: #ffffff;
}

/* -- Job count -- */
.tencent-job-count {
  margin-bottom: 14px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.56);
}

.tencent-job-count strong {
  color: var(--gold-light);
  font-weight: 800;
}

/* -- Jobs grid -- */
.tencent-jobs-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 16px;
}

/* -- Job card -- */
.tencent-job-card {
  padding: 18px 20px;
  border-radius: 16px;
  border: 1px solid rgba(212, 175, 55, 0.22);
  background: rgba(5, 14, 35, 0.72);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

@media (hover: hover) {
  .tencent-job-card:hover {
    transform: translateY(-2px);
    border-color: rgba(212, 175, 55, 0.52);
    background: rgba(9, 26, 60, 0.88);
  }
}

.tencent-job-card:active {
  transform: scale(0.98);
  border-color: rgba(212, 175, 55, 0.52);
}

.tencent-job-card.active {
  border-color: rgba(245, 215, 110, 0.9);
  background: rgba(212, 175, 55, 0.12);
  box-shadow: 0 0 28px rgba(216, 180, 90, 0.18);
}

/* -- Job card header -- */
.tencent-job-card-header {
  margin-bottom: 10px;
}

.tencent-job-card-title {
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.4;
}

.tencent-job-card.active .tencent-job-card-title {
  color: var(--gold-light);
}

/* -- Job card meta tags -- */
.tencent-job-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.tencent-job-card-tag {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.08);
  line-height: 1.5;
}

.tencent-job-card-tag.location {
  background: rgba(212, 175, 55, 0.14);
  color: rgba(255, 240, 184, 0.85);
}

/* -- Keyword tags -- */
.tencent-job-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.tencent-job-kw-tag {
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.12);
  color: rgba(255, 240, 184, 0.76);
  border: 1px solid rgba(212, 175, 55, 0.16);
  line-height: 1.5;
}

/* -- Job card detail (collapsed inside card) -- */
.tencent-job-card-detail {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.tencent-job-detail-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: rgba(255, 240, 184, 0.7);
  text-transform: uppercase;
  margin: 10px 0 6px;
}

.tencent-job-detail-list {
  margin: 4px 0 8px 20px;
  padding: 0;
}

.tencent-job-detail-list li {
  margin-bottom: 5px;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.76);
}

/* -- No result -- */
.tencent-jobs-noresult {
  padding: 28px 20px;
  text-align: center;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.42);
  border-radius: 14px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  background: rgba(5, 14, 35, 0.32);
}

/* -- Submit button wrap -- */
.tencent-submit-wrap {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.tencent-submit-btn {
  width: 100%;
  height: 48px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #d8b45a 0%, #f5d76e 50%, #d8b45a 100%);
  color: #0b1a3a;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  box-shadow: 0 8px 28px rgba(216, 180, 90, 0.25);
}

@media (hover: hover) {
  .tencent-submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(216, 180, 90, 0.35);
  }
}

.tencent-submit-btn:active:not(:disabled) {
  transform: scale(0.97);
}

.tencent-submit-btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  box-shadow: none;
}

.tencent-submit-hint {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.42);
}

/* -- Feature toast (floating notification) -- */
.feature-toast {
  position: fixed;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 100;
  padding: 12px 28px;
  border-radius: 999px;
  background: rgba(5, 14, 35, 0.92);
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: var(--gold-light);
  font-size: 14px;
  font-weight: 700;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
  pointer-events: none;
}

.feature-toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* -- Field error highlight -- */
.field-error {
  border-color: rgba(255, 122, 122, 0.7) !important;
  box-shadow: 0 0 12px rgba(255, 122, 122, 0.18) !important;
}

/* ================================================================
   Job Detail Modal — Premium glass-panel overlay + modal
   ================================================================ */

/* Body lock when modal is open */
body.modal-open {
  overflow: hidden;
}

/* Overlay / backdrop */
.job-detail-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background:
    radial-gradient(circle at 50% 30%, rgba(212, 175, 55, 0.10), transparent 34%),
    rgba(2, 8, 22, 0.68);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease;
}

.job-detail-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Modal panel */
.job-detail-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 3001;
  width: min(960px, calc(100vw - 56px));
  max-height: 86vh;
  transform: translate(-50%, -48%) scale(0.96);
  opacity: 0;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid rgba(230, 195, 95, 0.32);
  background:
    linear-gradient(180deg, rgba(10, 24, 56, 0.98), rgba(4, 13, 32, 0.98)),
    radial-gradient(circle at 20% 0%, rgba(212, 175, 55, 0.16), transparent 36%);
  box-shadow:
    0 36px 90px rgba(0, 0, 0, 0.58),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 0 50px rgba(212, 175, 55, 0.08);
  transition:
    opacity 0.26s ease,
    transform 0.26s ease;
}

.job-detail-modal.active {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

/* Internal glow layer */
.job-detail-modal-glow {
  position: absolute;
  inset: -40%;
  pointer-events: none;
  background:
    radial-gradient(circle at 24% 18%, rgba(245, 215, 110, 0.12), transparent 28%),
    radial-gradient(circle at 88% 20%, rgba(65, 120, 255, 0.12), transparent 28%);
  opacity: 0.8;
}

/* ── Header ── */
.job-detail-modal-header {
  position: relative;
  z-index: 1;
  padding: 28px 32px 22px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.job-detail-title-block {
  flex: 1 1 auto;
  min-width: 0;
}

.job-detail-eyebrow {
  margin-bottom: 8px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(245, 215, 110, 0.74);
}

.job-detail-modal-title {
  margin: 0 0 14px;
  font-size: 30px;
  line-height: 1.18;
  font-weight: 850;
  color: #f6d87b;
  text-shadow: 0 0 22px rgba(212, 175, 55, 0.18);
}

.job-detail-modal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.job-detail-modal-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.18);
  background: rgba(255, 255, 255, 0.065);
  color: rgba(255, 255, 255, 0.86);
  font-size: 12px;
  line-height: 1;
}

/* Close button */
.job-detail-modal-close {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(212, 175, 55, 0.28);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.88);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

@media (hover: hover) {
  .job-detail-modal-close:hover {
    transform: translateY(-1px);
    border-color: rgba(245, 215, 110, 0.72);
    background: rgba(212, 175, 55, 0.14);
  }
}

.job-detail-modal-close:active {
  border-color: rgba(245, 215, 110, 0.72);
  background: rgba(212, 175, 55, 0.2);
}

/* ── Body / scroll area ── */
.job-detail-modal-body {
  position: relative;
  z-index: 1;
  padding: 24px 32px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.job-detail-modal-body::-webkit-scrollbar {
  width: 8px;
}

.job-detail-modal-body::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.28);
  border-radius: 999px;
}

/* Overview grid */
.job-detail-overview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.job-overview-card {
  padding: 14px 15px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025));
}

.job-overview-label {
  margin-bottom: 6px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.48);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.job-overview-value {
  font-size: 14px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
}

/* ── Section blocks ── */
.job-detail-section {
  border-radius: 18px;
  padding: 18px 18px 16px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02));
}

.job-detail-section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.job-detail-section-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 24px;
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.14);
  color: #f6d87b;
  font-size: 11px;
  font-weight: 800;
}

.job-detail-section-title {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: #f6d87b;
}

/* Bullet lists */
.job-detail-list {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.job-detail-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.7;
  font-size: 14px;
}

.job-detail-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #f6d87b;
  box-shadow: 0 0 12px rgba(245, 215, 110, 0.45);
}

/* Keyword tags */
.job-keyword-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.job-keyword-tag {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.24);
  background: rgba(212, 175, 55, 0.11);
  color: #f6d87b;
  font-size: 12px;
  font-weight: 700;
}

.job-keyword-tag.required {
  border-color: rgba(92, 184, 255, 0.32);
  background: rgba(92, 184, 255, 0.12);
  color: #7fc4ff;
}

.job-keyword-tag.preferred {
  border-color: rgba(126, 211, 138, 0.28);
  background: rgba(126, 211, 138, 0.1);
  color: #a0e6a8;
}

/* Source section */
.job-source-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
}

.job-source-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.32);
  background: rgba(212, 175, 55, 0.10);
  color: #f6d87b;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  transition: background 0.18s ease, border-color 0.18s ease;
}

@media (hover: hover) {
  .job-source-link:hover {
    background: rgba(212, 175, 55, 0.18);
    border-color: rgba(245, 215, 110, 0.5);
  }
}

.job-source-link:active {
  background: rgba(212, 175, 55, 0.22);
  border-color: rgba(245, 215, 110, 0.5);
}

.job-source-empty {
  color: rgba(255, 255, 255, 0.42);
  font-size: 13px;
}

/* ── Footer ── */
.job-detail-modal-footer {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 20px 32px 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(3, 10, 25, 0.36);
}

.job-detail-secondary-btn,
.job-detail-primary-btn {
  height: 48px;
  min-width: 150px;
  padding: 0 20px;
  border-radius: 15px;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.job-detail-secondary-btn {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.045);
  color: rgba(255, 255, 255, 0.88);
}

@media (hover: hover) {
  .job-detail-secondary-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-1px);
  }
}

.job-detail-secondary-btn:active {
  background: rgba(255, 255, 255, 0.12);
}

.job-detail-primary-btn {
  border: 1px solid rgba(245, 215, 110, 0.46);
  background:
    linear-gradient(135deg, rgba(245, 215, 110, 0.26), rgba(212, 175, 55, 0.13));
  color: #f6d87b;
  box-shadow: 0 10px 26px rgba(212, 175, 55, 0.12);
}

@media (hover: hover) {
  .job-detail-primary-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(245, 215, 110, 0.68);
    box-shadow: 0 14px 32px rgba(212, 175, 55, 0.2);
  }
}

.job-detail-primary-btn:active {
  transform: scale(0.97);
  border-color: rgba(245, 215, 110, 0.68);
}

/* ================================================================
   Selected Job Overview (replaces inline job list on page)
   ================================================================ */
.selected-job-overview {
  /* wrapper */
}

.selected-job-card {
  margin-top: 12px;
  padding: 20px 22px;
  border-radius: 18px;
  border: 1px solid rgba(245, 215, 110, 0.38);
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(5, 14, 35, 0.6));
  box-shadow: 0 0 28px rgba(212, 175, 55, 0.12);
}

.selected-job-header {
  margin-bottom: 12px;
}

.selected-job-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--gold-light);
}

.selected-job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.selected-job-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  line-height: 1;
}

.selected-job-badge.location {
  background: rgba(212, 175, 55, 0.14);
  color: rgba(255, 240, 184, 0.85);
}

.selected-job-reselect-btn {
  height: 40px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid rgba(245, 215, 110, 0.4);
  background: rgba(212, 175, 55, 0.1);
  color: var(--gold-light);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

@media (hover: hover) {
  .selected-job-reselect-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(245, 215, 110, 0.72);
    background: rgba(212, 175, 55, 0.18);
  }
}

.selected-job-reselect-btn:active {
  transform: scale(0.97);
  border-color: rgba(245, 215, 110, 0.72);
  background: rgba(212, 175, 55, 0.22);
}

/* Empty state — no job selected */
.selected-job-empty {
  text-align: center;
  padding: 24px 20px;
}

.selected-job-empty-text {
  margin: 10px 0 18px;
  font-size: 13px;
  color: rgba(242, 247, 255, 0.48);
  line-height: 1.6;
}

.selected-job-select-btn {
  height: 44px;
  padding: 0 24px;
  border-radius: 13px;
  border: 1px solid rgba(245, 215, 110, 0.46);
  background: linear-gradient(135deg, rgba(245, 215, 110, 0.22), rgba(212, 175, 55, 0.1));
  color: #f6d87b;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

@media (hover: hover) {
  .selected-job-select-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 28px rgba(212, 175, 55, 0.18);
  }
}

.selected-job-select-btn:active {
  transform: scale(0.97);
}

/* Error highlight for job overview */
.selected-job-overview.field-error,
.selected-job-empty.field-error {
  border-color: rgba(255, 122, 122, 0.7) !important;
  box-shadow: 0 0 12px rgba(255, 122, 122, 0.18) !important;
  border-radius: 14px;
  padding: 10px;
  border: 1px solid rgba(255, 122, 122, 0.7);
}

/* ================================================================
   Job Selection Modal — Full center for browsing & selecting
   ================================================================ */

.job-selection-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background:
    radial-gradient(circle at 50% 30%, rgba(212, 175, 55, 0.10), transparent 34%),
    rgba(2, 8, 22, 0.68);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease;
}

.job-selection-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.job-selection-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 3001;
  width: min(1120px, calc(100vw - 56px));
  max-height: 88vh;
  transform: translate(-50%, -48%) scale(0.96);
  opacity: 0;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid rgba(230, 195, 95, 0.32);
  background:
    linear-gradient(180deg, rgba(10, 24, 56, 0.98), rgba(4, 13, 32, 0.98)),
    radial-gradient(circle at 20% 0%, rgba(212, 175, 55, 0.16), transparent 36%);
  box-shadow:
    0 36px 90px rgba(0, 0, 0, 0.58),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 0 50px rgba(212, 175, 55, 0.08);
  transition: opacity 0.26s ease, transform 0.26s ease;
}

.job-selection-modal.active {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.job-selection-modal-glow {
  position: absolute;
  inset: -40%;
  pointer-events: none;
  background:
    radial-gradient(circle at 24% 18%, rgba(245, 215, 110, 0.12), transparent 28%),
    radial-gradient(circle at 88% 20%, rgba(65, 120, 255, 0.12), transparent 28%);
  opacity: 0.8;
}

/* ── Header ── */
.job-selection-modal-header {
  position: relative;
  z-index: 1;
  padding: 28px 32px 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.job-selection-eyebrow {
  margin-bottom: 8px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(245, 215, 110, 0.74);
}

#jobSelectionModalTitle {
  margin: 0 0 8px;
  font-size: 30px;
  line-height: 1.18;
  font-weight: 850;
  color: #f6d87b;
  text-shadow: 0 0 22px rgba(212, 175, 55, 0.18);
}

.job-selection-modal-header p {
  margin: 0;
  max-width: 680px;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.6;
  font-size: 14px;
}

.job-selection-modal-close {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(212, 175, 55, 0.28);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.88);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

@media (hover: hover) {
  .job-selection-modal-close:hover {
    transform: translateY(-1px);
    border-color: rgba(245, 215, 110, 0.72);
    background: rgba(212, 175, 55, 0.14);
  }
}

.job-selection-modal-close:active {
  border-color: rgba(245, 215, 110, 0.72);
  background: rgba(212, 175, 55, 0.2);
}

/* ── Filters ── */
.job-selection-modal-filters {
  position: relative;
  z-index: 1;
  padding: 18px 32px;
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.job-selection-modal-filters input,
.job-selection-modal-filters select {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(212, 175, 55, 0.22);
  background: rgba(4, 13, 32, 0.72);
  color: rgba(255, 255, 255, 0.92);
  outline: none;
  font-size: 13px;
}

.job-selection-modal-filters input::placeholder {
  color: rgba(255, 255, 255, 0.42);
}

.job-selection-modal-filters input:focus,
.job-selection-modal-filters select:focus {
  border-color: rgba(216, 180, 90, 0.78);
  box-shadow: var(--focus-ring);
}

.job-selection-modal-filters select {
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(216,180,90,0.7)' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

.job-selection-modal-filters select option {
  background: #07142e;
  color: #ffffff;
}

/* ── Content (split: list + detail) ── */
.job-selection-modal-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(320px, 0.42fr) minmax(460px, 0.58fr);
  gap: 18px;
  padding: 22px 32px;
  min-height: 0;
  overflow: hidden;
}

.job-selection-list-panel,
.job-selection-detail-panel {
  min-height: 0;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.035);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.job-selection-list-header {
  height: 48px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #f6d87b;
  font-weight: 800;
  font-size: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  flex-shrink: 0;
}

.modal-tencent-job-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal-tencent-job-list::-webkit-scrollbar {
  width: 6px;
}

.modal-tencent-job-list::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.28);
  border-radius: 999px;
}

.modal-job-card {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(212, 175, 55, 0.16);
  background: rgba(5, 14, 35, 0.72);
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

@media (hover: hover) {
  .modal-job-card:hover {
    transform: translateY(-1px);
    border-color: rgba(212, 175, 55, 0.44);
    background: rgba(9, 26, 60, 0.82);
  }
}

.modal-job-card:active {
  border-color: rgba(212, 175, 55, 0.44);
  background: rgba(9, 26, 60, 0.82);
}

.modal-job-card.preview-active {
  border-color: rgba(245, 215, 110, 0.72);
  background: rgba(212, 175, 55, 0.12);
}

.modal-job-card.selected {
  border-color: rgba(245, 215, 110, 0.95);
  box-shadow: 0 0 0 1px rgba(245, 215, 110, 0.18) inset;
}

.modal-job-card-title {
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.94);
  line-height: 1.35;
}

.modal-job-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.modal-job-card-meta span {
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.68);
  font-size: 11px;
  line-height: 1.4;
}

.modal-job-card-desc {
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  line-height: 1.55;
}

.modal-job-empty {
  height: 100%;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: rgba(255, 255, 255, 0.48);
  line-height: 1.7;
  font-size: 14px;
  padding: 20px;
}

/* ── Detail panel ── */
.modal-tencent-job-detail {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 20px;
}

.modal-tencent-job-detail::-webkit-scrollbar {
  width: 6px;
}

.modal-tencent-job-detail::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.28);
  border-radius: 999px;
}

.modal-job-detail-title {
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 850;
  color: #f6d87b;
  line-height: 1.25;
}

.modal-job-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.modal-job-detail-badge {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  line-height: 1;
}

.modal-job-detail-section {
  margin-top: 14px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.065);
}

.modal-job-detail-section h4 {
  margin: 0 0 10px;
  color: #f6d87b;
  font-size: 15px;
  font-weight: 800;
}

.modal-job-detail-section ul {
  margin: 0;
  padding-left: 18px;
}

.modal-job-detail-section li {
  margin-bottom: 8px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
}

.modal-job-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.modal-job-keyword {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.22);
  color: #f6d87b;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.modal-job-keyword.required {
  border-color: rgba(92, 184, 255, 0.32);
  background: rgba(92, 184, 255, 0.12);
  color: #7fc4ff;
}

.modal-job-keyword.preferred {
  border-color: rgba(126, 211, 138, 0.28);
  background: rgba(126, 211, 138, 0.1);
  color: #a0e6a8;
}

/* ── Mobile "查看详情" button inside job card ── */
.modal-job-card-detail-btn {
  display: none;
  margin-top: 10px;
  width: 100%;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(245, 215, 110, 0.36);
  background: rgba(212, 175, 55, 0.1);
  color: #f6d87b;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
}

/* ── Mobile job card action row ── */
.mobile-job-card-actions {
  display: none;
}

.mobile-job-card-hint {
  display: none;
}

.mobile-job-detail-btn {
  display: none;
}

@media (max-width: 768px) {
  .modal-job-card-detail-btn {
    display: none; /* replaced by mobile-job-detail-btn */
  }

  /* Mobile card action row */
  .mobile-job-card-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    margin-top: 12px !important;
  }

  .mobile-job-card-hint {
    display: block !important;
    font-size: 12px !important;
    color: rgba(235, 241, 255, 0.58) !important;
  }

  .mobile-job-detail-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 38px !important;
    padding: 0 14px !important;
    border-radius: 999px !important;
    border: 1px solid rgba(244, 211, 94, 0.45) !important;
    color: #f4d35e !important;
    background: rgba(244, 211, 94, 0.08) !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    white-space: nowrap !important;
    cursor: pointer !important;
    transition: background 0.18s ease, border-color 0.18s ease !important;
  }

  .mobile-job-detail-btn:active {
    background: rgba(244, 211, 94, 0.18) !important;
    border-color: rgba(244, 211, 94, 0.68) !important;
  }
}

/* ── Mobile bottom select bar ── */
.mobile-job-select-bar {
  display: none;
}

@media (max-width: 768px) {
  .mobile-job-select-bar {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 10002 !important;
    display: grid !important;
    grid-template-columns: 1fr auto !important;
    gap: 10px !important;
    align-items: center !important;
    padding: 12px 14px calc(env(safe-area-inset-bottom, 0px) + 12px) !important;
    background: rgba(4, 14, 36, 0.96) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    border-top: 1px solid rgba(244, 211, 94, 0.18) !important;
  }

  .mobile-job-select-summary {
    min-width: 0 !important;
    font-size: 13px !important;
    color: rgba(235, 241, 255, 0.78) !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  .mobile-job-confirm-btn {
    min-height: 46px !important;
    padding: 0 18px !important;
    border-radius: 14px !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
  }

  .mobile-job-confirm-btn:disabled {
    opacity: 0.45 !important;
    cursor: not-allowed !important;
  }
}

/* ================================================================
   Mobile Job Detail Panel — Full-screen overlay inside modal
   ================================================================ */
.mobile-job-detail-panel {
  display: none;
}

@media (max-width: 768px) {
  .mobile-job-detail-panel {
    position: fixed;
    inset: 0;
    z-index: 10001;
    background: #061228;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    display: none;
    flex-direction: column;
  }

  .mobile-job-detail-panel.is-open {
    display: flex;
  }

  /* ── Topbar ── */
  .mobile-job-detail-topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: calc(env(safe-area-inset-top, 0px) + 10px) 10px 10px;
    background: rgba(6, 18, 40, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    min-height: 52px;
  }

  .mobile-job-detail-back {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    min-width: 44px;
    min-height: 44px;
    padding: 8px 10px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.88);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
  }

  .mobile-job-detail-back:active {
    background: rgba(255, 255, 255, 0.1);
  }

  .mobile-job-detail-topbar-title {
    flex: 1 1 auto;
    min-width: 0;
    text-align: center;
    font-size: 15px;
    font-weight: 800;
    color: #f6d87b;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-job-detail-topbar-close {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, 0.28);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.88);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-job-detail-topbar-close:active {
    background: rgba(212, 175, 55, 0.14);
    border-color: rgba(245, 215, 110, 0.72);
  }

  /* ── Body ── */
  .mobile-job-detail-body {
    flex: 1 1 auto;
    padding: 16px 14px;
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 120px);
    overflow-x: hidden;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  /* ── Meta badges ── */
  .mobile-job-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
  }

  .mobile-job-detail-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 11px;
    border-radius: 999px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.82);
    font-size: 12px;
    line-height: 1;
  }

  /* ── Sections ── */
  .mobile-job-detail-section {
    margin-bottom: 18px;
    padding: 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
  }

  .mobile-job-detail-section h4 {
    margin: 0 0 10px;
    color: #f6d87b;
    font-size: 15px;
    font-weight: 800;
  }

  .mobile-job-detail-section ul {
    margin: 0;
    padding-left: 18px;
  }

  .mobile-job-detail-section li {
    margin-bottom: 8px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
  }

  .mobile-job-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .mobile-job-keyword {
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid rgba(212, 175, 55, 0.22);
    color: #f6d87b;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
  }

  .mobile-job-keyword.required {
    border-color: rgba(92, 184, 255, 0.32);
    background: rgba(92, 184, 255, 0.12);
    color: #7fc4ff;
  }

  .mobile-job-keyword.preferred {
    border-color: rgba(126, 211, 138, 0.28);
    background: rgba(126, 211, 138, 0.1);
    color: #a0e6a8;
  }

  .mobile-job-empty-text {
    color: rgba(255, 255, 255, 0.42);
    font-size: 13px;
  }

  /* ── Bottom action bar ── */
  .mobile-job-detail-actions {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10002;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 10px;
    padding: 12px 14px calc(env(safe-area-inset-bottom, 0px) + 12px);
    background: rgba(4, 14, 36, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid rgba(244, 211, 94, 0.16);
  }

  .mobile-job-back-btn {
    min-height: 48px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.88);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.18s ease;
  }

  .mobile-job-back-btn:active {
    background: rgba(255, 255, 255, 0.1);
  }

  .mobile-job-select-btn {
    min-height: 48px;
    border-radius: 14px;
    border: 1px solid rgba(245, 215, 110, 0.46);
    background: linear-gradient(135deg, rgba(245, 215, 110, 0.26), rgba(212, 175, 55, 0.13));
    color: #f6d87b;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 10px 26px rgba(212, 175, 55, 0.12);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
  }

  .mobile-job-select-btn:active {
    transform: scale(0.97);
    border-color: rgba(245, 215, 110, 0.68);
    box-shadow: 0 14px 32px rgba(212, 175, 55, 0.2);
  }
}

/* ── Footer ── */
.job-selection-modal-footer {
  position: relative;
  z-index: 1;
  padding: 18px 32px 26px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(3, 10, 25, 0.36);
}

.job-selection-secondary-btn,
.job-selection-primary-btn {
  height: 48px;
  min-width: 150px;
  padding: 0 20px;
  border-radius: 15px;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.job-selection-secondary-btn {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.045);
  color: rgba(255, 255, 255, 0.88);
}

@media (hover: hover) {
  .job-selection-secondary-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-1px);
  }
}

.job-selection-secondary-btn:active {
  background: rgba(255, 255, 255, 0.12);
}

.job-selection-primary-btn {
  border: 1px solid rgba(245, 215, 110, 0.46);
  background: linear-gradient(135deg, rgba(245, 215, 110, 0.26), rgba(212, 175, 55, 0.13));
  color: #f6d87b;
  box-shadow: 0 10px 26px rgba(212, 175, 55, 0.12);
}

@media (hover: hover) {
  .job-selection-primary-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    border-color: rgba(245, 215, 110, 0.68);
    box-shadow: 0 14px 32px rgba(212, 175, 55, 0.2);
  }
}

.job-selection-primary-btn:active:not(:disabled) {
  transform: scale(0.97);
  border-color: rgba(245, 215, 110, 0.68);
}

.job-selection-primary-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

/* ================================================================
   Resume Parse Text — Extract button & result area
   ================================================================ */

.resume-parse-btn {
  margin-top: 8px;
  height: 32px;
  padding: 0 16px;
  border-radius: 8px;
  border: 1px solid rgba(132, 185, 255, 0.48);
  background: rgba(132, 185, 255, 0.08);
  color: rgba(180, 210, 255, 0.88);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

@media (hover: hover) {
  .resume-parse-btn:hover:not(:disabled) {
    border-color: rgba(132, 185, 255, 0.82);
    box-shadow: 0 0 16px rgba(132, 185, 255, 0.14);
  }
}

.resume-parse-btn:active:not(:disabled) {
  border-color: rgba(132, 185, 255, 0.82);
  box-shadow: 0 0 16px rgba(132, 185, 255, 0.14);
}

.resume-parse-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.resume-parse-result {
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(132, 185, 255, 0.14);
  background: rgba(2, 10, 28, 0.28);
}

.resume-parse-loading {
  font-size: 13px;
  color: rgba(180, 210, 255, 0.72);
}

.resume-parse-success-icon {
  font-size: 18px;
  margin-bottom: 4px;
}

.resume-parse-success-text {
  font-size: 14px;
  font-weight: 700;
  color: rgba(144, 238, 144, 0.88);
  margin-bottom: 6px;
}

.resume-parse-meta {
  font-size: 12px;
  color: rgba(242, 247, 255, 0.48);
  margin-bottom: 10px;
}

.resume-parse-preview-label {
  font-size: 12px;
  font-weight: 700;
  color: rgba(242, 247, 255, 0.56);
  margin-bottom: 6px;
}

.resume-parse-preview {
  font-size: 13px;
  line-height: 1.65;
  color: rgba(242, 247, 255, 0.78);
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 200px;
  overflow-y: auto;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.resume-parse-preview::-webkit-scrollbar {
  width: 5px;
}

.resume-parse-preview::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.24);
  border-radius: 999px;
}

.resume-parse-preview-more {
  margin-top: 8px;
  font-size: 11px;
  color: rgba(242, 247, 255, 0.38);
}

.resume-parse-error {
  font-size: 13px;
  color: rgba(255, 180, 80, 0.88);
}

/* ================================================================
   Resume Parse JSON — Structured parse button & result area
   ================================================================ */

.resume-parse-json-btn {
  margin-top: 14px;
  height: 36px;
  padding: 0 18px;
  border-radius: 10px;
  border: 1px solid rgba(212, 175, 55, 0.52);
  background: rgba(212, 175, 55, 0.12);
  color: var(--gold-light);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

@media (hover: hover) {
  .resume-parse-json-btn:hover:not(:disabled) {
    border-color: rgba(245, 215, 110, 0.82);
    background: rgba(212, 175, 55, 0.2);
    box-shadow: 0 0 20px rgba(216, 180, 90, 0.18);
  }
}

.resume-parse-json-btn:active:not(:disabled) {
  border-color: rgba(245, 215, 110, 0.82);
  background: rgba(212, 175, 55, 0.2);
  box-shadow: 0 0 20px rgba(216, 180, 90, 0.18);
}

.resume-parse-json-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.resume-parse-json-result {
  margin-top: 14px;
}

.resume-json-signals {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.resume-json-signal {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

.resume-json-signal.signal-yes {
  background: rgba(144, 238, 144, 0.12);
  border: 1px solid rgba(144, 238, 144, 0.28);
  color: rgba(144, 238, 144, 0.88);
}

.resume-json-signal.signal-no {
  background: rgba(255, 180, 80, 0.08);
  border: 1px solid rgba(255, 180, 80, 0.18);
  color: rgba(255, 180, 80, 0.72);
}

.resume-json-skills {
  margin-top: 14px;
}

.resume-json-skills-label {
  font-size: 12px;
  font-weight: 700;
  color: rgba(242, 247, 255, 0.56);
  margin-bottom: 8px;
}

.resume-json-skills-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.resume-json-skill-tag {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.2);
  color: rgba(255, 240, 184, 0.8);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
}

.resume-json-skills-more {
  margin-top: 6px;
  font-size: 11px;
  color: rgba(242, 247, 255, 0.38);
}

/* ================================================================
   Gap Analysis Result Display
   ================================================================ */

.gap-score-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
  padding: 20px;
  border-radius: 16px;
  background: rgba(2, 10, 28, 0.22);
  border: 1px solid rgba(132, 185, 255, 0.14);
}

.gap-score-circle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 4px solid rgba(144, 238, 144, 0.6);
  background: rgba(2, 10, 28, 0.4);
  margin-bottom: 10px;
}

.gap-score-value {
  font-size: 32px;
  font-weight: 900;
  line-height: 1;
}

.gap-score-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.7;
}

.gap-score-job {
  font-size: 15px;
  font-weight: 800;
  color: rgba(242, 247, 255, 0.88);
  margin-top: 8px;
  text-align: center;
}

.gap-section {
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(2, 10, 28, 0.18);
  border: 1px solid rgba(132, 185, 255, 0.1);
}

/* ── Job Matching / Smart Recommendation ─────────────────────────── */

/* Recommend button in the empty state */
.selected-job-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.selected-job-recommend-btn {
  padding: 10px 24px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  background: linear-gradient(135deg, rgba(23, 105, 255, 0.35), rgba(90, 160, 255, 0.45));
  color: rgba(242, 247, 255, 0.92);
  border: 1px solid rgba(132, 185, 255, 0.45);
  transition: all 0.2s;
}

.selected-job-recommend-btn:hover {
  background: linear-gradient(135deg, rgba(23, 105, 255, 0.55), rgba(90, 160, 255, 0.65));
  border-color: rgba(180, 210, 255, 0.7);
}

/* Job Matching Modal Content */
.job-matching-content {
  padding: 24px 32px;
  min-height: 320px;
  max-height: 55vh;
  overflow-y: auto;
}

.jm-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  gap: 16px;
}

.jm-loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(132, 185, 255, 0.2);
  border-top-color: rgba(132, 185, 255, 0.8);
  border-radius: 50%;
  animation: jm-spin 0.8s linear infinite;
}

@keyframes jm-spin {
  to { transform: rotate(360deg); }
}

.jm-loading p {
  color: rgba(242, 247, 255, 0.6);
  font-size: 14px;
  margin: 0;
}

.jm-error {
  padding: 40px 20px;
  text-align: center;
}

.jm-error-text {
  color: rgba(255, 180, 80, 0.88);
  font-size: 15px;
  margin: 0;
}

.jm-results-header {
  margin-bottom: 20px;
}

.jm-results-count {
  font-size: 14px;
  font-weight: 700;
  color: rgba(242, 247, 255, 0.7);
}

.jm-results-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.jm-result-card {
  display: flex;
  gap: 16px;
  padding: 20px;
  border-radius: 16px;
  background: rgba(3, 14, 38, 0.45);
  border: 1px solid rgba(132, 185, 255, 0.18);
  transition: border-color 0.2s;
}

.jm-result-card:hover {
  border-color: rgba(132, 185, 255, 0.4);
}

.jm-result-rank {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(23, 105, 255, 0.3), rgba(90, 160, 255, 0.2));
  border: 1px solid rgba(132, 185, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 900;
  color: rgba(242, 247, 255, 0.85);
}

.jm-result-body {
  flex: 1;
  min-width: 0;
}

.jm-result-title {
  font-size: 16px;
  font-weight: 800;
  color: rgba(242, 247, 255, 0.92);
  margin-bottom: 6px;
}

.jm-result-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.jm-result-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 20px;
  background: rgba(23, 105, 255, 0.12);
  border: 1px solid rgba(132, 185, 255, 0.15);
  color: rgba(242, 247, 255, 0.6);
}

.jm-result-score {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 8px;
}

.jm-score-value {
  font-size: 28px;
  font-weight: 900;
}

.jm-score-label {
  font-size: 11px;
  font-weight: 700;
  opacity: 0.7;
}

.jm-score-detail {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.jm-score-detail span {
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(242, 247, 255, 0.5);
  cursor: default;
}

.jm-result-reason {
  font-size: 12px;
  color: rgba(242, 247, 255, 0.55);
  line-height: 1.5;
  margin-bottom: 10px;
}

.jm-skills-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.jm-skills-label {
  font-size: 11px;
  font-weight: 700;
  color: rgba(242, 247, 255, 0.45);
  flex-shrink: 0;
}

.jm-skill-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 8px;
}

.jm-skill-tag.matched {
  background: rgba(127, 196, 255, 0.15);
  color: #7fc4ff;
  border: 1px solid rgba(127, 196, 255, 0.25);
}

.jm-skill-tag.missing {
  background: rgba(255, 180, 80, 0.12);
  color: #ffb450;
  border: 1px solid rgba(255, 180, 80, 0.2);
}

.jm-result-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.jm-action-btn {
  padding: 6px 16px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.jm-action-btn.primary {
  background: linear-gradient(135deg, rgba(216, 180, 90, 0.7), rgba(255, 240, 184, 0.7));
  color: rgba(2, 8, 24, 0.9);
}

.jm-action-btn.primary:hover {
  background: linear-gradient(135deg, rgba(255, 240, 184, 0.9), rgba(255, 250, 220, 0.9));
}

.jm-action-btn.secondary {
  background: rgba(132, 185, 255, 0.12);
  color: rgba(242, 247, 255, 0.7);
  border: 1px solid rgba(132, 185, 255, 0.25);
}

.jm-action-btn.secondary:hover {
  background: rgba(132, 185, 255, 0.25);
  color: rgba(242, 247, 255, 0.9);
}

/* Mobile responsive */
@media (max-width: 768px) {
  .job-matching-content {
    padding: 16px;
    max-height: 60vh;
  }

  .jm-result-card {
    flex-direction: column;
    gap: 10px;
    padding: 14px;
  }

  .jm-result-rank {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }

  .jm-result-title {
    font-size: 14px;
  }

  .jm-score-value {
    font-size: 22px;
  }

  .jm-result-actions {
    flex-wrap: wrap;
  }

  .jm-action-btn {
    flex: 1;
    min-width: 100px;
  }
}

.gap-section-title {
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 10px;
  color: rgba(242, 247, 255, 0.88);
  letter-spacing: 0.03em;
}

.gap-list {
  margin: 0;
  padding-left: 18px;
  list-style: none;
}

.gap-list li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 8px;
  font-size: 13px;
  line-height: 1.65;
  color: rgba(242, 247, 255, 0.78);
}

.gap-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(216, 180, 90, 0.6);
}

.gap-list-issues li::before {
  background: rgba(255, 180, 80, 0.7);
}

.gap-list-actions li::before {
  background: rgba(144, 238, 144, 0.7);
}

.gap-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.gap-tag {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 180, 80, 0.12);
  border: 1px solid rgba(255, 180, 80, 0.22);
  color: rgba(255, 220, 160, 0.85);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
}