/* Sign-up flow (/register, billing, verify, review).
   Follows the admin panel's light palette (admin-tokens.css): cream ground, bronze
   primary, Slippy type. Scoped to body.rg so nothing leaks into other pages. */
.rg {
  --rg-bg: #FCFAF7; --rg-surface: #FFFFFF; --rg-panel: #F5EFE8;
  --rg-border: #E8E0D7; --rg-input-border: #8C7F77;
  --rg-ink: #1B1613; --rg-muted: #574E48; --rg-dim: #6E655D;
  --rg-primary: #8A5A12; --rg-primary-hover: #6F480E; --rg-ring: #EBD9B4;
  --rg-link: #7A2A3C; --rg-link-hover: #63202F;
  --rg-danger: #A32B2B; --rg-danger-soft: #F8ECEC;
  --rg-ok: #2F6B4F; --rg-ok-soft: #E6F0EA; --rg-warn-soft: #FBF0DF; --rg-warn: #6B4A10;
  margin: 0; background: var(--rg-bg); color: var(--rg-ink);
  font-family: 'Slippy', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px; line-height: 1.5;
}
.rg a { color: var(--rg-link); } .rg a:hover { color: var(--rg-link-hover); }

/* layout */
.rg-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 720px); min-height: 100vh; }
.rg-main { padding: 0 clamp(20px, 5vw, 72px) 48px; display: flex; flex-direction: column; }
.rg-col { width: 100%; max-width: 480px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
.rg-top { height: 72px; display: flex; align-items: center; justify-content: space-between; max-width: 480px; width: 100%; margin: 0 auto; }
.rg-logo { display: flex; align-items: center; gap: 9px; text-decoration: none; }
.rg-logo img:first-child { width: 36px; height: 36px; }
.rg-logo img:last-child { height: 20px; width: auto; }
.rg-help { font-size: 15px; font-weight: 700; text-decoration: none; }
.rg-banner { display: none; position: relative; height: 132px; border-radius: 14px; overflow: hidden; border: 1px solid var(--rg-border); }
.rg-banner img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 22%; display: block; }

/* progress */
.rg-prog { display: flex; flex-direction: column; gap: 8px; }
.rg-bars { display: flex; gap: 6px; }
.rg-bars i { flex: 1; height: 4px; border-radius: 2px; background: var(--rg-border); }
.rg-bars i.on { background: var(--rg-primary); }
.rg-prog-lbl { font-size: 14px; color: var(--rg-muted); }
.rg-prog-lbl b { color: var(--rg-ink); }
.rg-title { margin: 0; font-size: 34px; line-height: 1.1; font-weight: 700; letter-spacing: -.01em; text-wrap: balance; color: var(--rg-ink); }
.rg-sub { margin: -8px 0 0; font-size: 16px; line-height: 1.55; color: var(--rg-muted); }
.rg-back { font-size: 14px; color: var(--rg-muted); text-decoration: none; }

/* form controls (Bootstrap markup, retargeted) */
.rg .form-label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 6px; color: var(--rg-ink); }
.rg .text-danger { color: var(--rg-danger) !important; }
.rg .form-control, .rg .form-select {
  box-sizing: border-box; width: 100%; height: 52px; padding: 0 16px;
  border: 1.5px solid var(--rg-input-border); border-radius: 10px; background-color: var(--rg-surface);
  font: 400 16px 'Slippy', -apple-system, system-ui, sans-serif; color: var(--rg-ink); box-shadow: none;
}
.rg .form-control::placeholder { color: #7A6E67; opacity: 1; }
.rg .form-control:focus, .rg .form-select:focus { outline: 3px solid var(--rg-ring); outline-offset: 0; border-color: var(--rg-primary); box-shadow: none; }
.rg .form-text { font-size: 14px; line-height: 1.45; color: var(--rg-muted); margin-top: 6px; }
.rg .form-check { display: flex; gap: 12px; align-items: flex-start; padding: 0; min-height: 0; }
.rg .form-check-input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; float: none; accent-color: var(--rg-primary); border-color: var(--rg-input-border); }
.rg .form-check-input:checked { background-color: var(--rg-primary); border-color: var(--rg-primary); }
.rg .form-check-label { font-size: 15px !important; line-height: 1.5; color: var(--rg-ink); }
.rg .btn { border-radius: 10px; font-family: inherit; font-weight: 700; }
.rg .btn-lg, .rg .btn-primary, .rg .btn-outline-secondary, .rg .stripe-btn {
  box-sizing: border-box; display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; height: 54px; font-size: 17px; text-decoration: none;
}
.rg .btn-primary, .rg .stripe-btn { background: var(--rg-primary); border: 0; color: #fff; }
.rg .btn-primary:hover, .rg .btn-primary:focus, .rg .stripe-btn:hover { background: var(--rg-primary-hover); color: #fff; }
.rg .btn-primary:disabled, .rg .stripe-btn:disabled { background: var(--rg-primary); opacity: .55; cursor: not-allowed; }
.rg .btn-outline-secondary { background: var(--rg-surface); border: 1.5px solid var(--rg-input-border); color: var(--rg-ink); }
.rg .btn-outline-secondary:hover { background: var(--rg-panel); border-color: var(--rg-ink); color: var(--rg-ink); }
.rg .btn:focus-visible, .rg .stripe-btn:focus-visible { outline: 3px solid var(--rg-ring); outline-offset: 2px; }

/* messages */
.rg .alert { border-radius: 10px; font-size: 15px; line-height: 1.5; padding: 12px 14px !important; margin: 0 !important; border: 1px solid var(--rg-border); }
.rg .alert-danger { background: var(--rg-danger-soft); border-color: #E6C5C5; color: #7C2020; }
.rg .alert-info { background: var(--rg-panel); border-color: var(--rg-border); color: var(--rg-ink); }
.rg .mn-alert-warn { background: var(--rg-warn-soft); border: 1px solid #EBDCC0; color: var(--rg-warn); border-radius: 10px; padding: 12px 14px; font-size: 15px; }
.rg .card { border: 1px solid var(--rg-border); border-radius: 12px; background: var(--rg-surface); }
.rg .badge.bg-warning { background: var(--rg-warn-soft) !important; color: var(--rg-warn) !important; }
.rg-or { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--rg-muted); }
.rg-or::before, .rg-or::after { content: ''; flex: 1; height: 1px; background: var(--rg-border); }
.rg-group { display: flex; flex-direction: column; gap: 14px; padding: 18px 20px; background: var(--rg-surface); border: 1px solid var(--rg-border); border-radius: 14px; }
.rg-group h2 { margin: 0; font-size: 16px; font-weight: 700; }
.rg-group p { margin: -6px 0 0; font-size: 14px; line-height: 1.45; color: var(--rg-muted); }
.rg-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.rg-pw { position: relative; }
.rg-pw .form-control { padding-right: 76px; }
.rg-pw button { position: absolute; right: 8px; top: 8px; height: 36px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; color: var(--rg-link); font: 700 14px inherit; font-family: inherit; cursor: pointer; }
.rg-resume { text-align: center; font-size: 14px; line-height: 1.6; color: var(--rg-muted); }

/* upload zones, plan card, review */
.rg .upload-zone { box-sizing: border-box; border: 1.5px dashed var(--rg-input-border); border-radius: 12px; padding: 22px 16px; min-height: 124px; background: var(--rg-surface); text-align: center; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.rg .upload-zone:hover { border-color: var(--rg-primary); background: var(--rg-warn-soft); }
.rg .upload-zone.has-file { border-style: solid; border-color: var(--rg-ok); background: var(--rg-ok-soft); }
.rg .upload-zone .uz-icon { color: var(--rg-muted); margin-bottom: 4px; }
.rg .upload-zone .uz-label { font-size: 15px; font-weight: 700; color: var(--rg-ink); }
.rg .upload-zone .uz-hint { font-size: 14px; line-height: 1.4; color: var(--rg-muted); margin: 0; }
.rg .upload-zone .uz-chosen { font-size: 14px; color: var(--rg-ok); font-weight: 700; }
.rg .plan-card { border: 1px solid var(--rg-border); border-radius: 14px; background: var(--rg-surface); padding: 22px; margin: 0; }
.rg .plan-trial-badge { display: inline-block; background: var(--rg-ok-soft); color: var(--rg-ok); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 6px; margin-bottom: 10px; }
.rg .plan-price { font-size: 44px; font-weight: 700; line-height: 1; color: var(--rg-ink); font-family: inherit; }
.rg .plan-period { font-size: 15px; color: var(--rg-muted); }
.rg .feature-list li { font-size: 15px; color: var(--rg-ink); }
.rg .feature-list li::before { color: var(--rg-ok); }
.rg .secure-note { font-size: 14px; color: var(--rg-muted); margin: 0; }
.rg .pending-icon { width: 48px; height: 48px; margin: 0; border-radius: 50%; background: var(--rg-ok-soft); border: 0; color: var(--rg-ok); font-size: 22px; }
.rg .app-id-box { background: var(--rg-surface); border: 1px solid var(--rg-border); border-radius: 10px; padding: 14px 16px; margin: 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.rg .app-id-label { margin: 0; font-size: 13px; letter-spacing: .08em; color: var(--rg-muted); }
.rg .app-id-value { font-size: 15px; }
.rg .next-steps { margin: 0; }
.rg .next-steps li { padding: 8px 0; border: 0; font-size: 15px; color: var(--rg-muted); }
.rg .ns-num { background: var(--rg-panel); color: var(--rg-primary-hover); width: 30px; height: 30px; font-size: 15px; margin-top: 0; }
.rg .ns-text strong { font-size: 16px; color: var(--rg-ink); }

/* image panel */
.rg-panel { position: sticky; top: 0; height: 100vh; overflow: hidden; background: var(--rg-panel); }
.rg-panel-in { position: absolute; left: 0; top: 0; width: 720px; height: 1080px; transform-origin: 0 0; }
.rg-panel h2 { position: absolute; left: 64px; top: 84px; width: 560px; margin: 0; font-size: 38px; line-height: 1.12; font-weight: 700; text-wrap: balance; }
.rg-panel .rg-psub { position: absolute; left: 64px; top: 214px; width: 500px; margin: 0; font-size: 18px; line-height: 1.5; color: var(--rg-muted); }
.rg-frame { position: absolute; left: 64px; top: 300px; width: 592px; border-radius: 16px; overflow: hidden; background: #fff; border: 1px solid var(--rg-border); box-shadow: 0 2px 4px rgba(27,22,19,.05), 0 18px 40px rgba(27,22,19,.12); }
.rg-frame-bar { height: 38px; display: flex; align-items: center; gap: 8px; padding: 0 14px; background: var(--rg-bg); border-bottom: 1px solid var(--rg-border); }
.rg-frame-bar i { width: 10px; height: 10px; border-radius: 50%; background: #D8CEC4; }
.rg-frame-bar span { margin-left: 10px; flex: 1; height: 22px; border-radius: 11px; background: #fff; border: 1px solid var(--rg-border); font-size: 12px; line-height: 20px; padding: 0 12px; color: var(--rg-dim); }
.rg-frame-img { position: relative; height: 340px; }
.rg-frame-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; display: block; }
.rg-verified { position: absolute; left: 16px; bottom: 16px; display: flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px; border-radius: 999px; background: #fff; box-shadow: 0 4px 14px rgba(27,22,19,.18); font-size: 14px; font-weight: 700; color: var(--rg-ok); }
.rg-phone { position: absolute; right: 44px; top: 462px; width: 280px; height: 588px; box-sizing: border-box; border: 8px solid #1B1613; border-radius: 40px; background: #fff; overflow: hidden; box-shadow: 0 22px 48px rgba(27,22,19,.30); }
.rg-phone img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.rg-float { position: absolute; left: 64px; top: 810px; width: 290px; box-sizing: border-box; padding: 14px 16px; display: flex; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--rg-border); border-radius: 14px; box-shadow: 0 12px 28px rgba(27,22,19,.14); }
.rg-float .ic { flex: none; width: 38px; height: 38px; border-radius: 50%; background: #F3E9D3; display: flex; align-items: center; justify-content: center; }
.rg-float b { display: block; font-size: 14px; } .rg-float span { font-size: 13px; color: var(--rg-muted); }
.rg-cap { position: absolute; left: 64px; bottom: 34px; font-size: 13px; color: var(--rg-dim); }

@media (max-width: 1100px) { .rg-wrap { grid-template-columns: minmax(0, 1fr) 46%; } }
@media (max-width: 960px) {
  .rg-wrap { display: block; }
  .rg-panel { display: none; }
  .rg-banner { display: block; }
  .rg-main { padding: 0 20px 36px; }
  .rg-title { font-size: 30px; }
}
@media (max-width: 480px) { .rg-row { grid-template-columns: 1fr; } }
.rg .feature-list { list-style: none; padding: 0; margin: 16px 0 0; }
.rg .feature-list li { padding: 4px 0; }
.rg .feature-list li::before { content: '\2713'; font-weight: 700; margin-right: 9px; }
.rg .stripe-btn { cursor: pointer; font-family: inherit; }
.rg-note { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.5; color: var(--rg-muted); }
.rg-note svg { flex: none; margin-top: 2px; }
/* musenest.css sets .btn-primary with !important on disabled; win it here. */
body.rg .btn.btn-primary, body.rg .btn.btn-primary:disabled { background: var(--rg-primary) !important; border: 0 !important; color: #fff; }
body.rg .btn.btn-primary:hover, body.rg .btn.btn-primary:focus { background: var(--rg-primary-hover) !important; }
body.rg .btn.btn-primary:disabled { opacity: .5; }
body.rg .btn.btn-lg { padding: 0 24px; font-size: 17px; }
.rg .upload-zone input[type="file"] { display: none; }
.rg .next-steps { list-style: none; padding: 0; }
.rg .next-steps li { display: flex; gap: 14px; align-items: flex-start; }
.rg .ns-num { flex: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.rg .ns-text strong { display: block; margin-bottom: 2px; }
.rg .pending-icon { display: flex; align-items: center; justify-content: center; }

.rg-trial { padding: 12px 14px; border: 1px solid var(--rg-border); border-radius: 12px; background: #fff; font-size: 14px; line-height: 1.45; color: var(--rg-muted); }
.rg-trial b { color: var(--rg-ink); font-weight: 700; }
