.register-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
    z-index: 2;
}

.register-card {
    width: 100%;
    max-width: 560px;
    background: var(--panel-strong);
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 36px 32px;
    backdrop-filter: blur(18px);
    box-shadow: 0 30px 80px rgba(5, 8, 25, .55);
}

.mobile-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.mobile-brand .brand-logo {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--purple), var(--blue));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.mobile-brand small {
    display: block;
    color: var(--muted);
    font-size: 12px;
}

/* ---------- Stepper ---------- */
.steps-track {
    display: flex;
    align-items: center;
    margin-bottom: 28px;
}

.step-dot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    opacity: .45;
    transition: opacity .3s;
}

.step-dot.active,
.step-dot.done {
    opacity: 1;
}

.step-dot span {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, .04);
}

.step-dot.active span {
    background: linear-gradient(135deg, var(--purple), var(--blue));
    border-color: transparent;
    box-shadow: 0 0 0 4px rgba(155, 92, 255, .18);
}

.step-dot.done span {
    background: var(--cyan);
    color: #04121a;
    border-color: transparent;
}

.step-dot small {
    font-size: 10px;
    color: var(--muted);
    white-space: nowrap;
}

.step-line {
    flex: 1;
    height: 2px;
    background: var(--border);
    margin: 0 4px;
    transform: translateY(-14px);
}

/* ---------- Panels ---------- */
.step-panel {
    display: none;
    animation: fadeUp .35s ease both;
}

.step-panel.active {
    display: block;
}

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

.step-panel h2 {
    font-size: 22px;
    margin-bottom: 6px;
}

.muted {
    color: var(--muted);
    font-size: 13.5px;
    margin-bottom: 20px;
    line-height: 1.9;
}

.field-help {
    display: block;
    color: var(--muted);
    font-size: 11.5px;
    margin: -10px 0 16px;
}

.primary-btn {
    width: 100%;
    margin-top: 10px;
    padding: 14px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--purple), var(--blue));
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform .2s, box-shadow .2s;
}

.primary-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(93, 60, 200, .35); }
.primary-btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

.ghost-btn {
    padding: 14px 18px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text);
    font-weight: 600;
    cursor: pointer;
}

.step-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.step-actions .primary-btn { margin-top: 0; flex: 1; }

.switch-line {
    text-align: center;
    margin-top: 22px;
    color: var(--muted);
    font-size: 13px;
}

.switch-line a { color: var(--cyan); font-weight: 600; }

.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #1a1030;
    border: 1px solid var(--border);
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 13px;
    opacity: 0;
    pointer-events: none;
    transition: all .3s;
    z-index: 50;
}

.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Plan cards ---------- */
.plan-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 8px;
}

.plan-card {
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 18px 14px;
    text-align: center;
    cursor: pointer;
    background: rgba(255, 255, 255, .03);
    transition: border-color .2s, transform .2s, background .2s;
}

.plan-card:hover { transform: translateY(-3px); }

.plan-card.selected {
    border-color: var(--purple);
    background: rgba(155, 92, 255, .14);
    box-shadow: 0 0 0 3px rgba(155, 92, 255, .18);
}

.plan-card .duration {
    font-weight: 800;
    font-size: 15px;
    margin-bottom: 8px;
}

.plan-card .price {
    font-size: 14px;
    font-weight: 700;
    color: var(--cyan);
}

.plan-card .per-month {
    display: block;
    font-size: 10.5px;
    color: var(--muted);
    margin-top: 4px;
}

.tier-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 14px;
}

.tier-badge.normal { background: rgba(61, 124, 255, .16); color: #8fb4ff; }
.tier-badge.pro { background: rgba(32, 217, 255, .16); color: var(--cyan); }

/* ---------- Payment ---------- */
.pay-summary {
    display: flex;
    justify-content: space-between;
    background: rgba(255, 255, 255, .03);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 18px;
    font-size: 13.5px;
}

.pay-summary b { color: var(--cyan); font-size: 16px; }

.card-box {
    background: linear-gradient(135deg, rgba(155, 92, 255, .18), rgba(32, 217, 255, .1));
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 20px;
    text-align: center;
    margin-bottom: 22px;
}

.card-label { font-size: 12px; color: var(--muted); }

.card-number {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 2px;
    direction: ltr;
    margin: 8px 0;
    font-family: monospace;
}

.card-owner { font-size: 12px; color: var(--muted); }

.upload-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    border: 1.5px dashed var(--border);
    border-radius: 16px;
    padding: 28px 16px;
    cursor: pointer;
    text-align: center;
    color: var(--muted);
    font-size: 13px;
    transition: border-color .2s, background .2s;
}

.upload-box:hover { border-color: var(--purple); background: rgba(155, 92, 255, .06); }
.upload-box.filled { border-color: var(--cyan); color: var(--text); }

.upload-icon { font-size: 26px; }

#receiptPreview {
    width: 100%;
    max-height: 220px;
    object-fit: contain;
    border-radius: 14px;
    margin-top: 14px;
    border: 1px solid var(--border);
}

.done-icon {
    font-size: 52px;
    text-align: center;
    margin-bottom: 8px;
}

#panel-4 { text-align: center; }

@media (max-width: 560px) {
    .register-card { padding: 26px 18px; }
    .plan-grid { grid-template-columns: 1fr; }
    .step-dot small { display: none; }
}
