/* Degen multi-step registration modal (injected, source-independent).
 * Field / header / button visuals intentionally reuse the original
 * CSS-module classes so they match the old sign-up modal 1:1. */

.rgm-overlay {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, visibility .2s ease;
    font-family: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.rgm-overlay.rgm-open { opacity: 1; visibility: visible; }
.rgm-backdrop {
    position: absolute;
    inset: 0;
    background-color: #0a0a0dcc;
}
.rgm-close { cursor: pointer; }
._modal_muy8n_1.rgm-modal { max-height: min(820px, calc(100vh - 24px)); }
.rgm-body { display: flex; flex-direction: column; gap: 16px; overflow-y: auto; }
.rgm-body::-webkit-scrollbar { width: 6px; }
.rgm-body::-webkit-scrollbar-thumb { background: #2a2a33; border-radius: 3px; }

/* login link inside the original subtitle */
._subtitle_bz3ap_38 .rgm-login {
    border: 0;
    background: none;
    padding: 0;
    font: inherit;
    color: #fff;
    cursor: pointer;
}

/* Slider */
.rgm-viewport { flex: 0 0 auto; overflow: hidden; transition: height .3s ease; }
.rgm-track { display: flex; align-items: flex-start; transition: transform .35s cubic-bezier(.4, 0, .2, 1); }
.rgm-step { flex: 0 0 100%; min-width: 100%; box-sizing: border-box; display: flex; flex-direction: column; gap: 16px; }

/* Field stack */
.rgm-fields { display: flex; flex-direction: column; gap: 16px; }
.rgm-field + .rgm-field { margin-top: 0; }
.rgm-req { color: #ff5a5a; }
.rgm-msg { min-height: 15px; margin-top: 4px; font-size: 12px; color: #ff5a5a; }
._content_j0vs3_27.rgm-invalid { border-color: #ff5a5a; }

/* Custom dropdown (Degen style) */
.rgm-dd ._optionsGroup_1k3y0_84 { display: none; }
.rgm-dd.rgm-dd-open ._optionsGroup_1k3y0_84 { display: block; }
.rgm-dd ._labelIcon_1k3y0_236 { display: inline-flex; align-items: center; justify-content: center; font-size: 15px; line-height: 1; flex: 0 0 auto; }
.rgm-dd ._labelIcon_1k3y0_236.rgm-flag-rect { width: 20px; height: 15px; border-radius: 2px; overflow: hidden; }
.rgm-dd ._labelIcon_1k3y0_236.rgm-flag-rect svg { width: 100%; height: 100%; display: block; }
.rgm-field.rgm-invalid ._selectAndDropdown_1k3y0_23 { box-shadow: 0 0 0 1px #ff5a5a inset, 0 2px 2px #00000040; }

/* Actions */
.rgm-actions { display: flex; gap: 10px; margin-top: 0; }
.rgm-actions ._button_1u9xt_1 { flex: 1 1 auto; }
.rgm-actions .rgm-back { flex: 0 0 auto; min-width: 96px; }
.rgm-actions .rgm-back ._label_1u9xt_52 { color: #fff; font-size: 14px; font-weight: 600; }
.rgm-actions ._labelprimary_1u9xt_73 { color: #0d0d10; font-size: 14px; font-weight: 600; }
.rgm-actions ._button_1u9xt_1[disabled] { opacity: .6; cursor: not-allowed; }

/* Terms checkbox */
.rgm-check { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; line-height: 1.5; color: #909090; cursor: pointer; }
.rgm-check input { width: 16px; height: 16px; margin-top: 1px; accent-color: #00ff6a; cursor: pointer; flex: 0 0 auto; }
.rgm-check a { color: #00ff6a; }

.rgm-alert {
    display: none; margin-bottom: 14px; padding: 10px 12px; border-radius: 8px;
    font-size: 13px; border: 1px solid #ff5a5a55; background: #ff5a5a14; color: #ff8080;
}
.rgm-alert.rgm-show { display: block; }
.rgm-success { text-align: center; padding: 18px 4px 4px; }
.rgm-success .rgm-check-icon {
    width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 50%;
    display: grid; place-items: center; background: #00ff6a1a; color: #00ff6a; font-size: 26px;
}
