/* Beta rollout bridge (V1 -> V2): one-time invite modal + top-bar toggle.
   Self-contained; brand colors carried from the RoboDesk theme. */

.rd-beta-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(61, 71, 87, 0.45);
}

.rd-beta-modal {
  width: 100%;
  max-width: 440px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(61, 71, 87, 0.3);
  padding: 28px 26px 22px;
  text-align: center;
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, 'Noto Sans Arabic', sans-serif;
  color: #3d4757;
}

.rd-beta-modal__badge {
  display: inline-block;
  padding: 4px 12px;
  margin-bottom: 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #fff;
  border-radius: 999px;
  background: linear-gradient(45deg, #622695 0%, #a4346e 50%, #ef4d29 100%);
}

.rd-beta-modal__title {
  margin: 0 0 10px;
  font-size: 21px;
  font-weight: 700;
  color: #3d4757;
}

.rd-beta-modal__body {
  margin: 0 0 22px;
  font-size: 14px;
  line-height: 1.55;
  color: #6a7383;
}

.rd-beta-modal__actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.rd-beta-btn {
  min-width: 130px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 999px;
  cursor: pointer;
  border: 1px solid transparent;
}

.rd-beta-btn--primary {
  color: #fff;
  background: #7442a1;
  border-color: #7442a1;
}
.rd-beta-btn--primary:hover {
  background: #63358c;
}

.rd-beta-btn--ghost {
  color: #3d4757;
  background: #fff;
  border-color: #d9dfe7;
}
.rd-beta-btn--ghost:hover {
  background: #f2f5f9;
}

/* Full-screen "Switching…" splash so the SPA boot doesn't feel like a lag */
.rd-beta-switching {
  position: fixed;
  inset: 0;
  z-index: 100001;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.92);
}
.rd-beta-switching__box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, 'Noto Sans Arabic', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #3d4757;
}
.rd-beta-spinner {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid #e4e8ee;
  border-top-color: #7442a1;
  animation: rd-beta-spin 0.7s linear infinite;
}
@keyframes rd-beta-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Top-bar toggle (rendered inside header.html) */
.rd-ver-toggle {
  display: inline-flex;
  align-items: stretch;
  height: 28px;
  margin: 12px 6px 0;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  overflow: hidden;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
}
.rd-ver-seg {
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  color: #fff;
  opacity: 0.85;
}
.rd-ver-seg.is-active {
  background: #fff;
  color: #7442a1;
  opacity: 1;
}
.rd-ver-toggle:hover .rd-ver-seg:not(.is-active) {
  text-decoration: underline;
}
