/* register.{domain}: self-service registration wizard (loaded after admin.css) */
.reg { --p: #163d63; --gold: #e3a535; background: #f2f4f8; }
.reg a { color: var(--p); }
.reg-wrap { max-width: 1060px; margin: 0 auto; padding: 0 20px; }
.reg .btn-primary { background: var(--p); border-color: var(--p); }
.reg .btn { border-radius: 10px; padding: 11px 20px; }

.reg-top { background: #0e2a47; color: #fff; }
.reg-top-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 66px; }
.reg-brand { display: flex; align-items: center; gap: 12px; color: #fff !important; text-decoration: none; font-weight: 800; }
.reg-brand small { display: block; font-weight: 500; font-size: .74rem; color: #b8c6d8; }
.reg-mark { width: 38px; height: 38px; border-radius: 10px; background: var(--gold); color: #0e2a47; display: grid; place-items: center; font-weight: 900; }
.reg-price { background: rgba(255, 255, 255, .1); padding: 6px 14px; border-radius: 999px; font-weight: 700; font-size: .9rem; white-space: nowrap; }

.reg-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 22px; margin-bottom: 18px; }
.reg-step { display: flex; align-items: center; gap: 8px; padding: 10px; border-radius: 10px; background: #fff; border: 1px solid var(--line); color: var(--muted); font-size: .86rem; min-width: 0; }
.reg-step b { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #e9edf3; color: var(--muted); flex: none; font-size: .82rem; }
.reg-step em { font-style: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reg-step.current { border-color: var(--p); color: var(--ink); font-weight: 700; box-shadow: 0 0 0 3px rgba(22, 61, 99, .12); }
.reg-step.current b { background: var(--p); color: #fff; }
.reg-step.done b { background: #16a34a; color: #fff; }

.reg-main { padding-bottom: 40px; min-height: 60vh; }
.reg-intro { text-align: center; max-width: 720px; margin: 30px auto 24px; }
.reg-intro h1 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); }
.reg-intro p { color: var(--muted); font-size: 1.05rem; }
.reg-card { padding: 30px; border-radius: 16px; }
.reg-card h2 { font-size: 1.35rem; }
.reg-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 18px; align-items: start; }
.reg-grid .card { margin: 0; }
.reg-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 8px; }
.reg-err { color: #b42318; font-weight: 600; }
.reg-errlist { margin: 0; padding-left: 18px; display: grid; gap: 2px; }

.reg-points { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 18px; }
.reg-points li { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; display: grid; gap: 4px; }
.reg-points span { color: var(--muted); font-size: .92rem; }

.reg-howto { padding-left: 22px; display: grid; gap: 10px; }
.reg-howto ul { margin: 8px 0 0; padding-left: 18px; color: var(--muted); }
.reg-drop { display: grid; justify-items: center; gap: 6px; text-align: center; padding: 28px 16px; border: 2px dashed #b9c4d4; border-radius: 14px; cursor: pointer; background: #f8fafc; }
.reg-drop:hover { border-color: var(--p); background: #f2f6fb; }
.reg-drop input { width: 100%; max-width: 260px; }
.reg-drop-icon { width: 48px; height: 56px; border-radius: 8px; background: #c8382d; color: #fff; display: grid; place-items: center; font-weight: 800; font-size: .8rem; }
.reg-continue { margin-top: 12px; }
.reg-gaps ul { margin: 6px 0; padding-left: 18px; }
.reg-gaps span { display: block; font-weight: 500; }

.reg-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.reg-slug { display: flex; align-items: center; border: 1px solid #cfd5df; border-radius: 9px; overflow: hidden; background: #fff; }
.reg-slug span { padding: 0 10px; color: var(--muted); background: #f3f5f9; align-self: stretch; display: grid; place-items: center; font-size: .9rem; }
.reg-slug input { border: 0 !important; border-radius: 0 !important; flex: 1; min-width: 0; font-weight: 700; }

.reg-pay { position: sticky; top: 16px; }
.reg-amount { font-size: 2.4rem; font-weight: 900; color: var(--p); line-height: 1.1; margin-bottom: 12px; }
.reg-amount small { font-size: 1rem; font-weight: 600; color: var(--muted); margin-left: 6px; }
.reg-includes { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 6px; }
.reg-includes li::before { content: "✓"; color: #16a34a; font-weight: 900; margin-right: 8px; }
.reg-demo { background: #fff7e6; border: 1px solid #f6d58f; color: #7a5200; border-radius: 10px; padding: 12px 14px; margin-bottom: 14px; display: grid; gap: 2px; font-size: .9rem; }

.reg-done { max-width: 720px; margin: 30px auto 0; }
.reg-check { width: 64px; height: 64px; border-radius: 50%; background: #16a34a; color: #fff; display: grid; place-items: center; font-size: 2rem; font-weight: 900; margin-bottom: 14px; }
.reg-done .kv { margin: 18px 0; }

.reg-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-top: 18px; padding-bottom: 30px; color: var(--muted); font-size: .85rem; }

@media (max-width: 860px) {
    .reg-grid, .reg-points, .reg-fields { grid-template-columns: 1fr; }
    .reg-steps { grid-template-columns: repeat(5, auto); overflow-x: auto; }
    .reg-step em { display: none; }
    .reg-step.current em { display: inline; }
    .reg-pay { position: static; }
}
@media (max-width: 600px) {
    .reg-wrap { padding: 0 14px; }
    .reg-card { padding: 20px; }
    .reg-price { display: none; }
    .reg-actions { flex-direction: column-reverse; align-items: stretch; }
    .reg-actions .btn { width: 100%; }
}
