/* ── Lần 34: Recruiter onboarding banner (dashboard) ────────────────── */

.rc-onboard {
  position: relative;
  margin: 14px 0 18px;
  padding: 22px 24px 20px;
  border-radius: 22px;
  color: #ffffff;
  background:
    radial-gradient(120% 160% at 0% 0%, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0) 60%),
    radial-gradient(90% 120% at 100% 100%, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0) 60%),
    linear-gradient(135deg, #1a73e8 0%, #5b3df5 55%, #8d3ae5 100%);
  box-shadow: 0 22px 60px -24px rgba(27, 46, 114, 0.55), 0 6px 14px -6px rgba(27, 46, 114, 0.35);
  overflow: hidden;
  isolation: isolate;
  animation: rcOnboardIn 480ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.rc-onboard::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto auto;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 60%);
  filter: blur(4px);
  pointer-events: none;
  z-index: -1;
  animation: rcOnboardFloat 9s ease-in-out infinite;
}

.rc-onboard::after {
  content: "";
  position: absolute;
  inset: auto auto -30% -10%;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle at 70% 70%, rgba(255, 200, 120, 0.28), rgba(255, 200, 120, 0) 65%);
  filter: blur(6px);
  pointer-events: none;
  z-index: -1;
  animation: rcOnboardFloat 11s ease-in-out infinite reverse;
}

.rc-onboard[hidden] { display: none !important; }

.rc-onboard__head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.rc-onboard__icon {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  display: grid;
  place-items: center;
  font-size: 24px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: rcOnboardPulse 2.8s ease-in-out infinite;
}

.rc-onboard__text { flex: 1 1 auto; min-width: 0; }

.rc-onboard__title {
  margin: 0 0 4px;
  font-size: clamp(17px, 1.5vw + 10px, 22px);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: #ffffff;
}

.rc-onboard__subtitle {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.9);
}

.rc-onboard__benefits {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 8px 14px;
}

.rc-onboard__benefits li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.94);
}

.rc-onboard__benefits li::before {
  content: "";
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.55);
  position: relative;
}

.rc-onboard__benefits li::after {
  content: "";
  width: 9px;
  height: 5px;
  border-left: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  transform: translate(-13px, -2px) rotate(-45deg);
}

.rc-onboard__progress {
  margin: 16px 0 14px;
}

.rc-onboard__progress-track {
  position: relative;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  overflow: hidden;
}

.rc-onboard__progress-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #ffd66b 0%, #ffa94d 50%, #ff6ea0 100%);
  box-shadow: 0 0 14px rgba(255, 180, 90, 0.55);
  transition: width 680ms cubic-bezier(0.16, 1, 0.3, 1);
}

.rc-onboard__progress-fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.55) 50%, transparent 100%);
  animation: rcOnboardShimmer 2.4s linear infinite;
}

.rc-onboard__progress-text {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.88);
}

.rc-onboard__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.rc-onboard__btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  padding: 11px 18px;
  border-radius: 12px;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.rc-onboard__btn--primary {
  background: #ffffff;
  color: #1a2b63;
  box-shadow: 0 10px 22px -10px rgba(0, 0, 0, 0.35);
}

.rc-onboard__btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px -12px rgba(0, 0, 0, 0.4);
}

.rc-onboard__btn--ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.rc-onboard__btn--ghost:hover {
  background: rgba(255, 255, 255, 0.22);
}

.rc-onboard__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  font-size: 16px;
  cursor: pointer;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: background 160ms ease, transform 160ms ease;
}

.rc-onboard__close:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: rotate(90deg);
}

.rc-onboard.is-closing {
  animation: rcOnboardOut 280ms ease forwards;
}

@keyframes rcOnboardIn {
  0%   { opacity: 0; transform: translateY(16px) scale(0.985); }
  100% { opacity: 1; transform: translateY(0)   scale(1); }
}

@keyframes rcOnboardOut {
  0%   { opacity: 1; transform: translateY(0)   scale(1); max-height: 600px; margin-bottom: 18px; }
  100% { opacity: 0; transform: translateY(-8px) scale(0.99); max-height: 0; margin-bottom: 0; padding-top: 0; padding-bottom: 0; }
}

@keyframes rcOnboardPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.45); }
  50%      { transform: scale(1.04); box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); }
}

@keyframes rcOnboardFloat {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(-18px, 12px); }
}

@keyframes rcOnboardShimmer {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@media (max-width: 520px) {
  .rc-onboard { padding: 18px 18px 16px; border-radius: 18px; }
  .rc-onboard__title { font-size: 17px; }
  .rc-onboard__benefits { grid-template-columns: 1fr; }
  .rc-onboard__btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .rc-onboard,
  .rc-onboard__icon,
  .rc-onboard__progress-fill::after,
  .rc-onboard::before,
  .rc-onboard::after { animation: none !important; }
  .rc-onboard__progress-fill { transition: none !important; }
}

/* ── Missing-fields modal (company-profile) ─────────────────────────── */

.rc-missing-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(10, 15, 34, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: rcMissingFade 220ms ease both;
}

.rc-missing-card {
  width: min(520px, 100%);
  max-height: calc(100vh - 48px);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 40px 100px -30px rgba(10, 20, 60, 0.55);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: rcMissingIn 340ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.rc-missing-head {
  position: relative;
  padding: 22px 52px 18px 22px;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 60%),
    linear-gradient(135deg, #ff8a3d 0%, #ff5a7a 55%, #c94be0 100%);
  color: #ffffff;
}

.rc-missing-head__icon {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.45);
  font-size: 20px;
  margin-bottom: 10px;
}

.rc-missing-head__title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.3;
}

.rc-missing-head__subtitle {
  margin: 4px 0 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.92);
}

.rc-missing-head__count {
  display: inline-block;
  margin-top: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.45);
  font-size: 12px;
  font-weight: 700;
}

.rc-missing-head__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #ffffff;
  font-size: 16px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 160ms ease, transform 160ms ease;
}

.rc-missing-head__close:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: rotate(90deg);
}

.rc-missing-body {
  padding: 10px 10px 14px;
  overflow-y: auto;
}

.rc-missing-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rc-missing-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  font: inherit;
  text-align: left;
  color: #1a2b63;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.rc-missing-item:hover {
  background: #f4f6ff;
  border-color: #e4e8ff;
  transform: translateX(2px);
}

.rc-missing-item__label {
  flex: 1 1 auto;
  min-width: 0;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rc-missing-item__label::before {
  content: "📝";
  margin-right: 8px;
  opacity: 0.75;
}

.rc-missing-item__cta {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  background: #1a73e8;
  color: #ffffff;
}

/* Field-highlight pulse when scrolled into view */
.rc-missing-highlight {
  outline: 3px solid rgba(26, 115, 232, 0.55) !important;
  outline-offset: 3px !important;
  border-radius: 10px !important;
  animation: rcMissingHighlight 1800ms ease 2;
}

@keyframes rcMissingFade {
  0%   { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes rcMissingIn {
  0%   { opacity: 0; transform: translateY(20px) scale(0.96); }
  100% { opacity: 1; transform: translateY(0)    scale(1); }
}

@keyframes rcMissingHighlight {
  0%, 100% { box-shadow: 0 0 0 0 rgba(26, 115, 232, 0.45); }
  50%      { box-shadow: 0 0 0 10px rgba(26, 115, 232, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .rc-missing-overlay,
  .rc-missing-card,
  .rc-missing-highlight { animation: none !important; }
}
