/* ─── Register page extras ─── */

.register-card {
    width: 460px;
    animation: card-enter 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.logo-subtitle {
    font-size: 11px;
    letter-spacing: 4px;
    color: rgba(0,200,255,0.45);
    text-transform: uppercase;
    font-weight: 700;
}

/* ── Step indicator ── */
.steps-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 28px;
    animation: card-enter 0.9s 0.1s cubic-bezier(0.22,1,0.36,1) both;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    position: relative;
}

.step-circle {
    width: 30px; height: 30px;
    border-radius: 50%;
    border: 1.5px solid rgba(0,150,255,0.2);
    background: rgba(0,20,50,0.8);
    display: flex; align-items: center; justify-content: center;
    font-family: 'Rajdhani', sans-serif;
    font-size: 13px; font-weight: 700;
    color: rgba(0,180,255,0.3);
    transition: all 0.4s cubic-bezier(0.22,1,0.36,1);
}

.step.active .step-circle {
    border-color: #00e5ff;
    color: #00e5ff;
    box-shadow: 0 0 14px rgba(0,220,255,0.3);
    background: rgba(0,180,255,0.08);
}

.step.done .step-circle {
    border-color: #00e5ff;
    background: rgba(0,180,255,0.15);
    color: #00e5ff;
}

.step.done .step-circle::before {
    content: '✓';
    font-size: 12px;
}

.step.done .step-circle span { display: none; }

.step-label {
    font-size: 10px;
    letter-spacing: 1px;
    color: rgba(0,150,255,0.25);
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
    transition: color 0.3s;
}

.step.active .step-label {
    color: rgba(0,200,255,0.65);
}

.step.done .step-label {
    color: rgba(0,200,255,0.45);
}

.step-line {
    width: 48px; height: 1px;
    background: rgba(0,150,255,0.12);
    margin-bottom: 16px;
    transition: background 0.4s;
    flex-shrink: 0;
}

.step-line.lit {
    background: linear-gradient(90deg, #00e5ff, rgba(0,150,255,0.3));
}

/* ── Form steps ── */
.form-step { animation: fade-step 0.4s cubic-bezier(0.22,1,0.36,1) both; }
.form-step.hidden { display: none; }

@keyframes fade-step {
    from { opacity: 0; transform: translateX(18px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* ── Password strength ── */
.strength-bar {
    height: 3px;
    background: rgba(0,150,255,0.1);
    border-radius: 2px;
    margin-top: 6px;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    width: 0%;
    border-radius: 2px;
    transition: width 0.4s ease, background 0.4s ease;
}

.strength-text {
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 700;
    margin-top: 4px;
    min-height: 14px;
    transition: color 0.3s;
}

/* ── Eye toggle ── */
.pw-toggle {
    position: absolute;
    right: 12px; top: 50%;
    transform: translateY(-50%);
    background: none; border: none;
    cursor: pointer; padding: 0;
    display: flex; align-items: center;
    opacity: 0.5; transition: opacity 0.2s;
}
.pw-toggle:hover { opacity: 1; }
.eye-icon { width: 15px; height: 15px; }

/* ── Valid checkmark ── */
.input-valid-icon {
    position: absolute;
    right: 12px; top: 50%;
    transform: translateY(-50%);
    font-size: 13px;
    opacity: 0;
    transition: opacity 0.25s;
}

.input-valid-icon.show { opacity: 1; }

/* ── Avatar picker ── */
.avatar-picker { margin-bottom: 4px; }

.avatar-label {
    font-size: 11px;
    letter-spacing: 3px;
    color: rgba(0,200,255,0.6);
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 10px;
}

.avatar-grid {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.av-opt {
    width: 44px; height: 44px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Rajdhani', sans-serif;
    font-size: 13px; font-weight: 800;
    color: #fff;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
    opacity: 0.55;
    user-select: none;
}

.av-opt:hover { opacity: 0.8; transform: scale(1.08); }

.av-opt.selected {
    border-color: #00e5ff;
    opacity: 1;
    box-shadow: 0 0 14px rgba(0,220,255,0.45);
    transform: scale(1.1);
}

/* ── Char counter ── */
.char-counter {
    position: absolute;
    right: 12px; top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    color: rgba(0,150,255,0.3);
    font-weight: 600;
    pointer-events: none;
    font-family: 'Rajdhani', sans-serif;
}

/* ── Textarea ── */
.form-textarea {
    resize: none;
    height: 72px;
    padding-top: 10px;
    padding-left: 14px;
    line-height: 1.5;
}

/* ── Game chips ── */
.game-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 2px;
}

.chip-opt {
    cursor: pointer;
    position: relative;
}

.chip-opt input[type="radio"] { display: none; }

.chip-opt span {
    display: block;
    padding: 6px 13px;
    border-radius: 2px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    border: 1px solid rgba(0,150,255,0.15);
    background: rgba(0,20,60,0.5);
    color: rgba(150,200,255,0.4);
    transition: all 0.2s;
    user-select: none;
}

.chip-roblox input:checked ~ span  { border-color: rgba(255,70,70,0.6);  color: #ff9090; background: rgba(255,70,70,0.1); }
.chip-rov input:checked ~ span     { border-color: rgba(0,200,255,0.6);  color: #00e5ff; background: rgba(0,200,255,0.08); }
.chip-mc input:checked ~ span      { border-color: rgba(130,200,60,0.6); color: #9fdb60; background: rgba(130,200,60,0.08); }
.chip-genshin input:checked ~ span { border-color: rgba(255,210,60,0.6); color: #ffd700; background: rgba(255,210,60,0.08); }

.chip-opt:hover span { border-color: rgba(0,200,255,0.3); color: rgba(180,220,255,0.7); }

/* ── Button row ── */
.btn-row {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 4px;
}

.btn-back {
    padding: 13px 18px;
    background: rgba(0,150,255,0.05);
    border: 1px solid rgba(0,150,255,0.2);
    border-radius: 2px;
    color: rgba(0,200,255,0.5);
    font-family: 'Rajdhani', sans-serif;
    font-size: 13px; font-weight: 700;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.btn-back:hover {
    background: rgba(0,150,255,0.1);
    border-color: rgba(0,200,255,0.4);
    color: #00e5ff;
}

.btn-submit { flex: 1; }

/* ── Success step ── */
.success-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0 4px;
    animation: fade-step 0.5s cubic-bezier(0.22,1,0.36,1) both;
}

.success-ring {
    width: 80px; height: 80px;
    margin-bottom: 20px;
}

.success-circle {
    animation: draw-circle 0.8s 0.1s cubic-bezier(0.22,1,0.36,1) forwards;
    transform-origin: center;
    transform: rotate(-90deg);
}

@keyframes draw-circle {
    to { stroke-dashoffset: 0; }
}

.success-check {
    animation: draw-check 0.5s 0.7s cubic-bezier(0.22,1,0.36,1) forwards;
}

@keyframes draw-check {
    to { stroke-dashoffset: 0; }
}

.success-title {
    font-family: 'Cinzel Decorative', serif;
    font-size: 16px;
    font-weight: 900;
    letter-spacing: 3px;
    background: linear-gradient(135deg, #fff 0%, #a8d8ff 40%, #00e5ff 70%, #7c3aed 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    margin-bottom: 8px;
}

/* ── Shake error ── */
@keyframes shake {
    0%,100% { transform: translateX(0); }
    20%      { transform: translateX(-6px); }
    40%      { transform: translateX(6px); }
    60%      { transform: translateX(-4px); }
    80%      { transform: translateX(4px); }
}
.shake { animation: shake 0.35s ease; border-color: rgba(255,70,70,0.6) !important; }

.success-sub {
    font-size: 13px;
    color: rgba(150,200,255,0.45);
    text-align: center;
    line-height: 1.7;
    font-weight: 600;
    letter-spacing: 0.5px;
}
