/* ── Registration wizard ─────────────────────────────────── */

.reg-wrap {
    min-height: calc(100vh - 140px);
    display: flex;
    align-items: flex-start;
    padding: 3rem 0 5rem;
}

.reg-wrap .container {
    max-width: 700px;
}

/* ── Card shell ──────────────────────────────────────────── */
.reg-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

/* ── Header ──────────────────────────────────────────────── */
.reg-header {
    padding: 2rem 2rem 1.6rem;
    border-bottom: 1px solid var(--line);
    text-align: center;
}

.reg-header h3 {
    margin: .5rem 0 .3rem;
    font-size: 1.45rem;
}

.reg-header p {
    color: var(--muted);
    margin: 0;
    font-size: .93rem;
}

/* ── Progress bar ────────────────────────────────────────── */
.reg-progress {
    display: flex;
    align-items: center;
    padding: 1.1rem 2rem;
    background: var(--soft);
    border-bottom: 1px solid var(--line);
}

.reg-step {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .84rem;
    font-weight: 500;
    color: var(--muted);
    white-space: nowrap;
    transition: color .25s;
}

.reg-step.active {
    color: var(--brand);
}

.reg-step.done {
    color: var(--brand);
}

.reg-step-num {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid var(--line);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .75rem;
    font-weight: 700;
    flex-shrink: 0;
    transition: background .25s, border-color .25s, color .25s;
}

.reg-step.active .reg-step-num,
.reg-step.done .reg-step-num {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

.reg-step-line {
    flex: 1;
    height: 2px;
    background: var(--line);
    margin: 0 .8rem;
    border-radius: 999px;
    transition: background .35s;
    min-width: 24px;
}

.reg-step-line.done {
    background: var(--brand);
}

/* ── Wizard step panels ──────────────────────────────────── */
.wizard-step {
    display: none;
    padding: 1.8rem 2rem;
}

.wizard-step.active {
    display: block;
    animation: stepFadeIn .22s ease;
}

@keyframes stepFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Section labels ──────────────────────────────────────── */
.reg-section-label {
    font-size: .74rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--muted);
    margin-bottom: .85rem;
}

.reg-section-label.spaced {
    margin-top: 1.6rem;
}

/* ── Plan grid ───────────────────────────────────────────── */
.plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
    gap: .75rem;
    margin-bottom: .25rem;
}

/* ── Plan card ───────────────────────────────────────────── */
.reg-plan-card {
    position: relative;
    border: 2px solid var(--line);
    border-radius: 14px;
    padding: 1rem 1rem 1rem;
    cursor: pointer;
    background: var(--card);
    transition: border-color .2s, background .2s, transform .2s, box-shadow .2s;
    user-select: none;
}

.reg-plan-card:hover {
    border-color: var(--brand);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.reg-plan-card.selected {
    border-color: var(--brand);
    background: var(--brand-50);
    box-shadow: 0 0 0 3px rgba(var(--brand-rgb), .1);
}

.reg-plan-card.featured {
    border-color: var(--brand-50);
}

/* Popular badge sits above the card */
.plan-popular-badge {
    position: absolute;
    top: -.65rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--brand);
    color: #fff;
    padding: .15rem .65rem;
    border-radius: 999px;
    font-size: .7rem;
    font-weight: 600;
    white-space: nowrap;
    pointer-events: none;
}

/* Checkmark circle — top-right of card */
.plan-check {
    position: absolute;
    top: .7rem;
    right: .7rem;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--soft);
    border: 2px solid var(--line);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .62rem;
    color: transparent;
    transition: background .2s, border-color .2s, color .2s;
}

.reg-plan-card.selected .plan-check {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

.plan-name {
    font-weight: 700;
    font-size: .88rem;
    color: var(--ink);
    padding-right: 1.6rem;
    margin-bottom: .4rem;
}

.plan-price {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--ink);
    line-height: 1.15;
}

.plan-price small {
    font-size: .76rem;
    font-weight: 400;
    color: var(--muted);
}

.plan-meta {
    margin-top: .55rem;
    font-size: .76rem;
    color: var(--muted);
    line-height: 1.5;
}

.plan-meta span {
    display: block;
}

/* ── Step 2 selected-plan pill ───────────────────────────── */
.reg-plan-pill {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    background: var(--brand-50);
    border: 1px solid var(--brand);
    color: var(--brand);
    border-radius: 10px;
    padding: .5rem .85rem;
    font-size: .82rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.reg-plan-pill i {
    font-size: .9rem;
}

/* ── Password strength meter ─────────────────────────────── */
.pwd-meter {
    margin-top: .45rem;
}

.pwd-meter-track {
    height: 3px;
    border-radius: 999px;
    background: var(--line);
    overflow: hidden;
}

.pwd-meter-bar {
    height: 100%;
    border-radius: 999px;
    width: 0;
    transition: width .3s ease, background-color .3s ease;
}

.pwd-meter-label {
    font-size: .75rem;
    font-weight: 500;
    min-height: 1.1em;
    margin-top: .3rem;
}

/* ── Slug preview ────────────────────────────────────────── */
.slug-preview-text {
    font-size: .79rem;
    color: var(--muted);
    margin-top: .35rem;
}

.slug-preview-text .slug-highlight {
    color: var(--brand);
    font-weight: 600;
}

/* ── Form label ──────────────────────────────────────────── */
.form-label .opt {
    color: var(--muted);
    font-weight: 400;
    font-size: .82rem;
}

/* ── Global alert ────────────────────────────────────────── */
.reg-alert {
    border-radius: 10px;
    padding: .7rem .9rem;
    font-size: .87rem;
    margin-bottom: 1rem;
}

/* ── Divider ─────────────────────────────────────────────── */
.reg-divider {
    height: 1px;
    background: var(--line);
    margin: 1.4rem 0;
}

/* ── Button row ──────────────────────────────────────────── */
.reg-actions {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-top: 1.6rem;
}

.reg-actions .btn-back {
    flex-shrink: 0;
}

.reg-actions .btn-primary-action {
    flex: 1;
}

/* ── Terms note ──────────────────────────────────────────── */
.reg-terms {
    font-size: .8rem;
    color: var(--muted);
    text-align: center;
    margin-top: 1rem;
    line-height: 1.45;
}

/* ── Card footer ─────────────────────────────────────────── */
.reg-footer {
    padding: 1.1rem 2rem 1.4rem;
    border-top: 1px solid var(--line);
    text-align: center;
    font-size: .87rem;
    color: var(--muted);
    background: var(--soft);
}

/* ── Input group text (slug prefix) ─────────────────────── */
.reg-wrap .input-group-text {
    background: var(--soft);
    border-color: var(--line);
    color: var(--muted);
    font-size: .87rem;
    border-right: 0;
}

.reg-wrap .input-group .form-control {
    border-left: 0;
}

.reg-wrap .input-group .form-control:focus {
    border-left: 0;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 576px) {
    .reg-wrap {
        padding: 1.5rem 0 3rem;
        align-items: flex-start;
    }

    .reg-header {
        padding: 1.5rem 1.3rem 1.2rem;
    }

    .reg-progress {
        padding: .9rem 1.3rem;
        font-size: .8rem;
    }

    .wizard-step {
        padding: 1.3rem;
    }

    .plan-grid {
        grid-template-columns: 1fr 1fr;
    }

    .reg-footer {
        padding: .9rem 1.3rem 1.2rem;
    }

    .reg-actions {
        flex-direction: column-reverse;
        gap: .5rem;
    }

    .reg-actions .btn-back,
    .reg-actions .btn-primary-action {
        width: 100%;
        flex: none;
    }
}

/* ═══════════════════════════════════════════════════════════════
   Registration disabled — premium, fully-centered notice
═══════════════════════════════════════════════════════════════ */
.reg-disabled-wrap {
    min-height: calc(100vh - 140px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1.25rem;
}

.reg-disabled-card {
    position: relative;
    width: 100%;
    max-width: 460px;
    text-align: center;
    padding: 3rem 2.25rem 2.25rem;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow:
        0 1px 2px rgba(15, 23, 42, .04),
        0 24px 60px -18px rgba(var(--brand-rgb), .28);
    overflow: hidden;
    isolation: isolate;
    animation: reg-disabled-in .5s cubic-bezier(.22, 1, .36, 1) both;
}

/* Soft brand glow blooming behind the icon */
.reg-disabled-glow {
    position: absolute;
    top: -70px;
    left: 50%;
    transform: translateX(-50%);
    width: 320px;
    height: 320px;
    background: radial-gradient(circle at center,
        rgba(var(--brand-rgb), .22) 0%,
        rgba(var(--brand-rgb), .08) 38%,
        transparent 70%);
    z-index: -1;
    pointer-events: none;
}

/* Gradient lock badge */
.reg-disabled-icon {
    width: 76px;
    height: 76px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #fff;
    border-radius: 22px;
    background: linear-gradient(145deg, var(--brand) 0%, var(--brand-600) 100%);
    box-shadow:
        0 10px 24px -6px rgba(var(--brand-rgb), .55),
        inset 0 1px 0 rgba(255, 255, 255, .35);
    position: relative;
}

.reg-disabled-icon::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid rgba(255, 255, 255, .18);
}

/* Status pill */
.reg-disabled-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .38rem .85rem;
    margin-bottom: 1.15rem;
    font-size: .74rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--brand-600);
    background: rgba(var(--brand-rgb), .09);
    border: 1px solid rgba(var(--brand-rgb), .18);
    border-radius: 999px;
}

.reg-disabled-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--brand);
    box-shadow: 0 0 0 0 rgba(var(--brand-rgb), .55);
    animation: reg-disabled-pulse 2s ease-out infinite;
}

.reg-disabled-title {
    margin: 0 0 .6rem;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -.01em;
    color: var(--text, inherit);
}

.reg-disabled-text {
    margin: 0 auto 1.75rem;
    max-width: 34ch;
    color: var(--muted);
    font-size: .95rem;
    line-height: 1.6;
}

.reg-disabled-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .8rem 1.9rem;
    font-size: .95rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    border-radius: 12px;
    background: linear-gradient(145deg, var(--brand) 0%, var(--brand-600) 100%);
    box-shadow: 0 10px 22px -8px rgba(var(--brand-rgb), .6);
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.reg-disabled-btn:hover {
    color: #fff;
    transform: translateY(-2px);
    filter: brightness(1.04);
    box-shadow: 0 16px 30px -10px rgba(var(--brand-rgb), .7);
}

.reg-disabled-btn:active {
    transform: translateY(0);
}

.reg-disabled-foot {
    margin-top: 1.6rem;
    padding-top: 1.4rem;
    border-top: 1px solid var(--line);
    font-size: .87rem;
    color: var(--muted);
}

.reg-disabled-foot a {
    color: var(--muted);
    font-weight: 500;
    text-decoration: none;
    transition: color .18s ease;
}

.reg-disabled-foot a:hover {
    color: var(--brand-600);
}

@keyframes reg-disabled-in {
    from { opacity: 0; transform: translateY(14px) scale(.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes reg-disabled-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(var(--brand-rgb), .5); }
    70%  { box-shadow: 0 0 0 7px rgba(var(--brand-rgb), 0); }
    100% { box-shadow: 0 0 0 0 rgba(var(--brand-rgb), 0); }
}

@media (max-width: 576px) {
    .reg-disabled-card {
        padding: 2.4rem 1.5rem 1.9rem;
        border-radius: 20px;
    }
    .reg-disabled-icon {
        width: 66px;
        height: 66px;
        font-size: 1.7rem;
    }
    .reg-disabled-title {
        font-size: 1.3rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .reg-disabled-card { animation: none; }
    .reg-disabled-dot  { animation: none; }
    .reg-disabled-btn:hover { transform: none; }
}
