.reg-section { padding-top: 0; }
.reg-wrap { max-width: 920px; margin: 0 auto; text-align: left; }

.reg-steps {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}
.reg-step {
    flex: 1;
    text-align: center;
    padding: 12px 8px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid var(--of-border);
    font-size: 13px;
    color: var(--of-muted);
}
.reg-step span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #475569;
    font-size: 12px;
    font-weight: 700;
    margin-right: 6px;
}
.reg-step--on {
    border-color: var(--of-primary);
    color: var(--of-primary-dark);
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.12);
}
.reg-step--on span {
    background: var(--of-primary);
    color: #fff;
}

.reg-panel { display: none; }
.reg-panel--on { display: block; }

.reg-mode-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}
.reg-mode-card {
    padding: 24px;
    border-radius: 16px;
    background: #fff;
    border: 2px solid var(--of-border);
    cursor: pointer;
    transition: border-color .2s, box-shadow .2s;
}
.reg-mode-card:hover { border-color: #93c5fd; }
.reg-mode-card--on {
    border-color: var(--of-primary);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.15);
}
.reg-mode-card h3 { margin: 0 0 8px; font-size: 18px; }
.reg-mode-card p { margin: 0; font-size: 14px; color: var(--of-muted); line-height: 1.6; }

.reg-hint { font-size: 14px; color: var(--of-muted); margin: 0 0 16px; }
.reg-role-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}
.reg-role-card {
    padding: 0;
    border-radius: 16px;
    background: #fff;
    border: 1px solid var(--of-border);
    cursor: pointer;
    text-align: left;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    transition: transform .15s, box-shadow .15s, border-color .15s;
}
.reg-role-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.12);
}
.reg-role-card--on {
    border-color: var(--of-primary);
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.18);
}
.reg-role-card__cover {
    height: 112px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}
.reg-role-card__cover span { font-size: 46px; line-height: 1; }
.reg-role-card__body { padding: 16px 18px 18px; }
.reg-role-card strong { display: block; font-size: 18px; margin-bottom: 6px; color: #0f172a; }
.reg-role-card small { color: var(--of-muted); font-size: 13px; line-height: 1.55; display: block; min-height: 40px; }
.reg-role-detail {
    margin-top: 12px;
    height: 36px;
    padding: 0 14px;
    border: 0;
    border-radius: 8px;
    background: #eff6ff;
    color: var(--of-primary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}
@media (max-width: 900px) {
    .reg-role-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
    .reg-role-grid { grid-template-columns: 1fr; }
}
.reg-group-title {
    margin: 8px 0 6px;
    font-size: 18px;
    font-weight: 700;
}
.reg-pack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}
.reg-pack-card {
    padding: 16px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid var(--of-border);
    cursor: pointer;
}
.reg-pack-card--on {
    border-color: var(--of-primary);
    background: #eff6ff;
}
.reg-pack-card strong { display: block; font-size: 15px; }
.reg-pack-card em { display: block; font-style: normal; color: var(--of-muted); font-size: 12px; margin: 4px 0; }
.reg-pack-card span { display: block; color: var(--of-primary); font-weight: 700; font-size: 18px; }
.reg-pack-card small { color: var(--of-muted); font-size: 12px; }
.reg-pay-qr { width: 200px; height: 200px; margin: 0 auto 8px; display: block; background: #fff; }
.pay-card { text-align: left; }
.pay-card__top { text-align: center; padding-bottom: 18px; border-bottom: 1px solid var(--of-border); }
.pay-badge {
    display: inline-block;
    margin-bottom: 8px;
    padding: 2px 10px;
    border-radius: 999px;
    background: #fff7ed;
    color: #c2410c;
    font-size: 12px;
    font-weight: 700;
}
.reg-result .pay-card h3 { margin: 0 0 8px; font-size: 22px; color: #0f172a; }
.reg-result .pay-amount { margin: 0; font-size: 36px; font-weight: 800; color: #0f172a; letter-spacing: -0.03em; }
.reg-result .pay-sub { margin: 6px 0 0; color: var(--of-muted); font-size: 14px; }
.pay-card__main {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 28px;
    align-items: start;
    margin-top: 22px;
}
.pay-qr-box { text-align: center; }
.reg-result .pay-scan { margin: 0; font-size: 14px; font-weight: 700; color: #0f172a; }
.reg-result .pay-wait { margin: 6px 0 0; font-size: 12px; color: var(--of-muted); line-height: 1.5; }
.pay-h5 { margin-top: 14px; display: inline-block; line-height: 40px; text-decoration: none; height: 40px; padding: 0 16px; font-size: 14px; }
.pay-meta { margin: 0; }
.pay-row {
    display: grid;
    grid-template-columns: 108px 1fr;
    gap: 8px;
    padding: 9px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14px;
}
.pay-row dt { margin: 0; color: var(--of-muted); }
.pay-row dd { margin: 0; color: #0f172a; font-weight: 600; word-break: break-all; }
.reg-result .pay-note {
    margin: 18px 0 0;
    padding: 12px 14px;
    border-radius: 10px;
    background: #f8fafc;
    color: #475569;
    font-size: 13px;
    line-height: 1.6;
}
@media (max-width: 720px) {
    .pay-card__main { grid-template-columns: 1fr; }
}
.reg-feat-mask {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(15, 23, 42, .45);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 88px 16px 32px;
    overflow: auto;
}
.reg-feat-mask[hidden] { display: none; }
.reg-feat-dialog {
    width: min(920px, 100%);
    background: #fff;
    border-radius: 16px;
    padding: 20px 22px 24px;
    box-shadow: 0 20px 50px rgba(15,23,42,.2);
}
.reg-feat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.reg-feat-head h3 { margin: 0; font-size: 18px; }
.reg-feat-close {
    height: 36px;
    padding: 0 14px;
    border-radius: 8px;
    border: 1px solid var(--of-border);
    background: #fff;
    cursor: pointer;
}
.reg-feat-body { margin-top: 8px; max-height: 70vh; overflow: auto; }

.reg-form-row { margin-bottom: 16px; }
.reg-form-row label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.reg-form-row label em { color: #dc2626; font-style: normal; }
.reg-form-row input {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border: 1px solid var(--of-border);
    border-radius: 10px;
    font-size: 15px;
}
.reg-form-row input:focus {
    outline: none;
    border-color: var(--of-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.reg-field-hint {
    margin: 6px 0 0;
    font-size: 12px;
    line-height: 1.5;
    min-height: 18px;
}
.reg-field-hint--ok { color: #16a34a; }
.reg-field-hint--err { color: #dc2626; }
.reg-field-hint--muted { color: var(--of-muted); }
.reg-form-note {
    margin: 0 0 16px;
    padding: 10px 12px;
    font-size: 13px;
    line-height: 1.6;
    color: #475569;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}
.reg-form-note strong {
    color: #1d4ed8;
    font-weight: 700;
    letter-spacing: 0.04em;
}
#reg-sms-test-hint {
    margin-top: 8px;
}
.reg-sms-row {
    display: flex;
    gap: 10px;
}
.reg-sms-row input {
    flex: 1;
}
.reg-sms-btn {
    flex-shrink: 0;
    min-width: 112px;
    height: 44px;
    padding: 0 14px;
}
.reg-sms-btn:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.reg-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 8px;
}
.reg-btn {
    height: 44px;
    padding: 0 24px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
}
.reg-btn--primary { background: var(--of-primary); color: #fff; }
.reg-btn--primary:disabled { opacity: .5; cursor: not-allowed; }
.reg-btn--ghost { background: #fff; color: var(--of-text); border: 1px solid var(--of-border); }

.reg-result {
    padding: 32px 24px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid var(--of-border);
    text-align: center;
}
.reg-result h3 { margin: 0 0 12px; font-size: 22px; }
.reg-result p { margin: 0 0 8px; color: var(--of-muted); }
.reg-result .reg-btn { margin-top: 20px; display: inline-block; line-height: 44px; text-decoration: none; }

.reg-ref-banner {
    display: inline-block;
    margin: 12px 0 0;
    padding: 8px 14px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 14px;
}
.reg-ref-banner[hidden] { display: none; }
