/* Guided server setup — a coach layer over the real settings page.
   The layer never blocks the page: only the bubble takes pointer events, so
   the operator fills in the actual control while the guide explains it. */
.rh-guide-layer {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  pointer-events: none;
}
.rh-guide-layer.is-open { display: block; }

/* No transition here on purpose: the spotlight is repositioned every frame to
   stay glued to a field that moves with smooth scrolling, and a transition
   would make it permanently chase the target instead of sitting on it. */
.rh-guide-spot {
  position: absolute;
  border-radius: 12px;
  box-shadow: 0 0 0 3px rgba(64, 215, 245, .55), 0 0 0 9999px rgba(2, 8, 17, .74);
  pointer-events: none;
}

.rh-guide-bubble {
  position: fixed;
  z-index: 2;
  width: min(420px, calc(100vw - 24px));
  padding: 16px 18px 14px;
  border: 1px solid rgba(64, 215, 245, .34);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(11, 30, 48, .99), rgba(6, 18, 31, .99));
  box-shadow: 0 30px 80px rgba(0, 0, 0, .58), inset 0 1px 0 rgba(255, 255, 255, .05);
  color: #dbeaf6;
  pointer-events: auto;
}
.rh-guide-bubble:focus { outline: none; }
.rh-guide-bubble.is-centered {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.rh-guide-bubble:not(.is-centered) { transform: none; }

.rh-guide-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rh-guide-step {
  color: #6fd6ef;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.rh-guide-resumed {
  display: inline-flex;
  align-items: center;
  margin-left: 7px;
  padding: 2px 6px;
  border: 1px solid rgba(52, 211, 153, .38);
  border-radius: 999px;
  color: #a7f3d0;
  font-size: 9px;
  letter-spacing: .04em;
}
.rh-guide-close {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(124, 176, 232, .22);
  border-radius: 7px;
  background: transparent;
  color: #9fb6c8;
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
}
.rh-guide-close:hover { border-color: rgba(248, 113, 113, .5); color: #fca5a5; }

.rh-guide-bubble h3 {
  margin: 9px 0 7px;
  color: #f2fbff;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.01em;
  line-height: 1.25;
}
.rh-guide-body p { margin: 0 0 10px; color: #a9c1d3; font-size: 13px; line-height: 1.6; }
.rh-guide-note {
  padding: 8px 10px;
  border-left: 3px solid rgba(240, 185, 74, .6);
  border-radius: 0 7px 7px 0;
  background: rgba(240, 185, 74, .09);
  color: #f0d8ac !important;
  font-size: 12px !important;
}
.rh-guide-required {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin: 10px 0 0 !important;
  padding: 8px 10px;
  border: 1px solid rgba(251, 191, 36, .34);
  border-radius: 8px;
  background: rgba(251, 191, 36, .08);
  color: #fde7aa !important;
  font-size: 11.5px !important;
  line-height: 1.45 !important;
}
.rh-guide-required i { margin-top: 2px; color: #fbbf24; }
.rh-guide-required.is-done { border-color: rgba(52, 211, 153, .38); background: rgba(52, 211, 153, .08); color: #bbf7d0 !important; }
.rh-guide-required.is-done i { color: #34d399; }
.rh-guide-summary { display: grid; gap: 6px; margin: 10px 0; }
.rh-guide-summary-row { display: flex; align-items: center; gap: 8px; color: #8fa9bd; font-size: 12px; }
.rh-guide-summary-row i { font-size: 13px; }
.rh-guide-summary-row.is-ready { color: #b8f4d4; }
.rh-guide-summary-row.is-ready i { color: #34d399; }
.rh-guide-summary-row.is-pending i { color: #fbbf24; }

.rh-guide-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-bottom: 10px; }
.rh-guide-plan {
  display: block;
  padding: 11px 12px;
  border: 1px solid rgba(124, 176, 232, .22);
  border-radius: 10px;
  background: rgba(255, 255, 255, .025);
  color: #cfe2f1;
  text-align: left;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.rh-guide-plan strong { display: block; font-size: 13px; font-weight: 800; }
.rh-guide-plan small { display: block; margin-top: 4px; color: #8aa2b6; font-size: 11px; line-height: 1.4; }
.rh-guide-plan:hover { border-color: rgba(64, 215, 245, .45); background: rgba(64, 215, 245, .07); }
.rh-guide-plan.is-active { border-color: rgba(52, 211, 153, .55); background: rgba(6, 30, 26, .6); color: #ecfdf5; }
.rh-guide-plan.is-locked { opacity: .6; }
.rh-guide-plan:disabled { cursor: not-allowed; }
.rh-guide-plan.is-locked strong::after {
  content: "Premium";
  margin-left: 7px;
  padding: 1px 6px;
  border: 1px solid rgba(240, 185, 74, .4);
  border-radius: 999px;
  color: #f0c069;
  font-size: 9px;
  vertical-align: middle;
}

.rh-guide-picks { display: grid; gap: 6px; max-height: 292px; overflow-y: auto; margin-bottom: 4px; padding-right: 3px; }
.rh-guide-pick {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 11px;
  border: 1px solid rgba(124, 176, 232, .18);
  border-radius: 9px;
  background: rgba(255, 255, 255, .02);
  cursor: pointer;
}
.rh-guide-pick:hover { border-color: rgba(64, 215, 245, .4); }
.rh-guide-pick input { width: 16px; height: 16px; margin-top: 2px; flex: 0 0 auto; accent-color: #22c55e; cursor: pointer; }
.rh-guide-pick strong { display: block; color: #e9f5ff; font-size: 12.5px; font-weight: 750; }
.rh-guide-pick small { display: block; margin-top: 2px; color: #7d95a9; font-size: 11px; line-height: 1.4; }
.rh-guide-pick:has(input:checked) { border-color: rgba(52, 211, 153, .45); background: rgba(6, 30, 26, .45); }
.rh-guide-pick.is-locked { opacity: .55; cursor: not-allowed; }
.rh-guide-lock {
  margin-left: auto;
  padding: 1px 6px;
  border: 1px solid rgba(240, 185, 74, .4);
  border-radius: 999px;
  color: #f0c069;
  font-size: 9px;
  font-weight: 800;
  white-space: nowrap;
}

.rh-guide-progress { height: 3px; margin: 12px 0 11px; border-radius: 999px; background: rgba(124, 176, 232, .16); overflow: hidden; }
.rh-guide-progress span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #40d7f5, #34d399); transition: width .22s ease; }

.rh-guide-actions { display: flex; align-items: center; gap: 8px; }
.rh-guide-btn {
  min-height: 34px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid rgba(124, 176, 232, .26);
  background: rgba(255, 255, 255, .03);
  color: #cfe2f1;
  font: inherit;
  font-size: 12px;
  font-weight: 780;
  cursor: pointer;
}
.rh-guide-btn:hover:not(:disabled) { border-color: rgba(64, 215, 245, .5); color: #eefbff; }
.rh-guide-btn:disabled { opacity: .4; cursor: default; }
.rh-guide-btn.primary {
  margin-left: auto;
  border-color: rgba(64, 215, 245, .5);
  background: linear-gradient(135deg, #42cee7, #24add0);
  color: #04131d;
  font-weight: 850;
}
.rh-guide-btn.primary:hover { filter: brightness(1.07); }

/* Launcher on the Overview card */
.rh-guide-launch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 37px;
  padding: 0 14px;
  border: 1px solid rgba(52, 211, 153, .45);
  border-radius: 9px;
  background: rgba(6, 30, 26, .6);
  color: #a7f3d0;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.rh-guide-launch:hover { border-color: rgba(52, 211, 153, .75); background: rgba(8, 42, 35, .8); color: #d1fae5; }
.rh-guide-launch i { font-size: 14px; }
.rh-overview-heading .rh-guide-launch { align-self: flex-start; }
.rh-guide-heading-actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }

/* The guide has a short-lived task to complete. A floating chat launcher must
   not cover its primary action on a phone. It returns as soon as the guide
   closes, so support remains one tap away outside this focused flow. */
body.rh-guide-active .rh-chat-widget {
  display: none !important;
  pointer-events: none !important;
}

@media (max-width: 760px) {
  .rh-guide-bubble { width: calc(100vw - 20px); }
  /* Pin only the anchored variant: the centered one is positioned with a
     translate, and forcing `left` on it drags the bubble off the screen. */
  .rh-guide-bubble:not(.is-centered) { left: 10px !important; }
  .rh-guide-plans { grid-template-columns: 1fr; }
  .rh-guide-heading-actions { width: 100%; }
}
