/* ========== Staff recruitment modal ========== */
body.mt-staff-modal-open {
  overflow: hidden;
}

.mt-staff-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background:
    radial-gradient(ellipse at center, rgba(40, 24, 10, 0.55) 0%, rgba(8, 5, 3, 0.82) 70%),
    rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
}

.mt-staff-modal {
  position: relative;
  width: min(440px, 100%);
  max-height: min(92vh, 720px);
  overflow: auto;
  padding: 28px 26px 22px;
  color: #f3e6c4;
  border: 1px solid #c9a227;
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(52, 32, 16, 0.97) 0%, rgba(24, 14, 8, 0.98) 100%);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.65),
    0 24px 60px rgba(0, 0, 0, 0.65),
    inset 0 1px 0 rgba(255, 220, 140, 0.18);
  font-family: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
}

.mt-staff-modal-close {
  position: absolute;
  top: 8px;
  right: 12px;
  appearance: none;
  border: 0;
  background: transparent;
  color: #e0c878;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.85;
}

.mt-staff-modal-close:hover {
  opacity: 1;
  color: #ffe9a8;
}

.mt-staff-modal-title {
  margin: 0 0 10px;
  text-align: center;
  font-size: 28px;
  letter-spacing: 0.04em;
  color: #f0d078;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.45);
}

.mt-staff-modal-lead {
  margin: 0 0 16px;
  text-align: center;
  font-size: 14px;
  line-height: 1.45;
  color: #e8d7a8;
}

.mt-staff-roles {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 14px;
}

.mt-staff-role {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid rgba(201, 162, 39, 0.35);
  border-radius: 6px;
  background: rgba(201, 162, 39, 0.08);
  cursor: pointer;
  font-size: 14px;
}

.mt-staff-role:hover {
  border-color: rgba(201, 162, 39, 0.7);
  background: rgba(201, 162, 39, 0.14);
}

.mt-staff-input,
.mt-staff-textarea {
  width: 100%;
  box-sizing: border-box;
  margin: 0 0 10px;
  padding: 10px 12px;
  border: 1px solid rgba(201, 162, 39, 0.45);
  border-radius: 6px;
  background: rgba(12, 8, 4, 0.65);
  color: #f3e6c4;
  font: inherit;
  font-size: 14px;
}

.mt-staff-textarea {
  resize: vertical;
  min-height: 72px;
}

.mt-staff-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 6px 0 10px;
}

.mt-staff-apply-btn,
.mt-staff-later-btn {
  appearance: none;
  cursor: pointer;
  border-radius: 6px;
  font-family: inherit;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: transform 0.12s ease, filter 0.12s ease;
}

.mt-staff-apply-btn {
  border: 2px solid #f0d078;
  padding: 12px 22px;
  color: #1a1008;
  background:
    linear-gradient(180deg, #ffe9a8 0%, #e0b84a 38%, #c48a18 72%, #8a5a0c 100%);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.mt-staff-apply-btn:hover:not(:disabled) {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.mt-staff-apply-btn:disabled {
  opacity: 0.7;
  cursor: wait;
}

.mt-staff-later-btn {
  border: 1px solid rgba(201, 162, 39, 0.45);
  padding: 12px 18px;
  color: #e0c878;
  background: transparent;
}

.mt-staff-later-btn:hover {
  border-color: #f0d078;
  color: #ffe9a8;
}

.mt-staff-status {
  min-height: 1.2em;
  margin: 0 0 8px;
  text-align: center;
  font-size: 13px;
}

.mt-staff-status-ok { color: #8fdf8a; }
.mt-staff-status-err { color: #ffb4a0; }
.mt-staff-status-pending { color: #e0c878; }

.mt-staff-note {
  margin: 0;
  text-align: center;
  font-size: 11px;
  line-height: 1.4;
  color: rgba(232, 215, 168, 0.75);
}

@media (max-width: 520px) {
  .mt-staff-modal {
    padding: 24px 16px 18px;
  }
  .mt-staff-modal-title {
    font-size: 24px;
  }
  .mt-staff-apply-btn,
  .mt-staff-later-btn {
    width: 100%;
  }
}
