/* ===== Base ===== */
.rp-main-header{
  width: 100%;
  padding: 20px 0 12px;
  position: relative;
  z-index: 20;
  background-color: #2E1546;
  overflow: hidden;
}
/* Hide checkbox */
.rp-menu-toggle{
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
/* Background like screenshot */
.rp-main-header::before{
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(700px 260px at 85% 50%, rgba(169, 53, 147, 0.18), transparent 60%),
    linear-gradient(90deg, #2E1546 0%, #3B1656 55%, #2E1546 100%);
}
.rp-main-header__inner{
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  box-sizing: border-box;
  position: relative;
  z-index: 2; /* above background */
}
.rp-main-header__brand{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.rp-main-header__logo{
  height: 40px;
  width: auto;
  display: block;
}
.rp-main-header__nav{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  font-family: "M PLUS 1", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  font-weight: 500;
}
.rp-main-header__nav a{
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  white-space: nowrap;
  transition: color .18s ease, opacity .18s ease;
}
.rp-main-header__nav a:hover{ color:#fff; opacity:1; }
.rp-main-header__actions{
  display: flex;
  align-items: center;
  gap: 30px;
}
.rp-main-header__btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 26px;
  border-radius: 999px;
  font-family: "M PLUS 1", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .15s ease, opacity .15s ease;
}
.rp-main-header__btn--primary{ background:#4788FF; color:#fff; }
.rp-main-header__btn--secondary{ background:#A93593; color:#fff; }
.rp-main-header__btn--primary:hover,
.rp-main-header__btn--secondary:hover{ transform: translateY(-1px); }
/* Menu pill */
.worker-main-header__menu-btn{
  display: none;
  user-select: none;
  cursor: pointer;
  background: #A93593;
  color: #fff;
  padding: 10px 22px;
  border-radius: 999px;
  font-family: "M PLUS 1", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  transition: transform .15s ease, opacity .15s ease;
  max-width: 107px
}
.worker-main-header__menu-btn:hover{ transform: translateY(-1px); }
/* ===== Dropdown wrapper ===== */
.rp-dd{
  position: relative;
  z-index: 3;
}
/* overlay only covers the page area BELOW the header */
.rp-dd__overlay{
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  top: 72px; /* will be adjusted in media queries */
  bottom: 0;
  background: rgba(0,0,0,0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
  z-index: 30;
}
/* dropdown panel (hidden by default) */
.rp-dd__panel{
  display: none;
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px 16px 16px;
  box-sizing: border-box;
  position: relative;
  z-index: 31;
}
.rp-dd__panel::before{
  content:"";
  position: absolute;
  inset: 0 16px 0 16px;
  background: rgba(46, 21, 70, 0.96);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.28);
  z-index: -1;
}
.rp-dd__nav{
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 14px 10px;
}
.rp-dd__item{
  cursor: pointer;
  user-select: none;
}
.rp-dd__nav a{
  display: block;
  color: rgba(255,255,255,0.92);
  text-decoration: none;
  font-family: "M PLUS 1", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 600;
  font-size: 15px;
  padding: 10px 10px;
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
}
.rp-dd__actions{
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 0 14px 14px;
}
/* ===== OPEN state (checkbox checked) ===== */
.rp-menu-toggle:checked ~ .rp-dd .rp-dd__overlay{
  opacity: 1;
  pointer-events: auto;
}
.rp-menu-toggle:checked ~ .rp-dd .rp-dd__panel{
  display: block;
}
/* ===== Mobile + Tablet ===== */
@media (max-width: 1024px){
  .rp-main-header{ padding: 14px 0; }
  .rp-main-header__inner{ gap: 12px; }
  .rp-main-header__nav,
  .rp-main-header__actions{ display: none; }
  .worker-main-header__menu-btn{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
  }
  .rp-main-header__logo{ height: 28px; }
  /* Enable dropdown on mobile/tablet */
  .rp-dd__overlay{ display: block; }
  .rp-dd__panel{ display: block; } /* shown/hidden via checkbox, but keep layout ready */
  .rp-menu-toggle:not(:checked) ~ .rp-dd .rp-dd__panel{ display: none; }
  /* Better top offset for overlay (header height approx) */
  .rp-dd__overlay{ top: 64px; }
}
/* Optional: two-column buttons on wider tablets */
@media (min-width: 640px) and (max-width: 1024px){
  .rp-dd__actions{
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 420px){
  .worker-main-header__menu-btn{
    padding: 9px 18px;
    font-size: 13px;
  }
  .rp-dd__overlay{ top: 60px; }
}
