/* --- REGISTRATION MODAL (Neon Tron - Black & White) --- */
#reg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 20000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

#reg-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

.reg-card {
    background: #000000;
    border: 2px solid #ffffff;
    border-radius: 12px;
    padding: 25px;
    width: 380px;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
    color: white;
    font-family: 'Segoe UI', sans-serif;
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#reg-overlay.visible .reg-card {
    transform: translateY(0);
}

.reg-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    border-bottom: 1px solid #333;
    padding-bottom: 15px;
}

.reg-header h2 {
    color: #ffffff;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    font-size: 24px;
}

.close-btn {
    background: transparent;
    border: 1px solid #ff3333;
    color: #ff3333;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s;
}

.close-btn:hover {
    background: #ff3333;
    color: white;
    box-shadow: 0 0 10px #ff3333;
}

.input-group {
    margin-bottom: 18px;
    position: relative;
}

.input-group input {
    width: 100%;
    padding: 12px 15px;
    background: #0a0a0a;
    border: 1px solid #444;
    border-radius: 6px;
    color: white;
    outline: none;
    transition: all 0.3s;
    font-size: 14px;
}

.input-group input:focus {
    border-color: #ffffff;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
    background: #111;
}

.input-group input::placeholder {
    color: #666;
}

.reg-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    gap: 15px;
}

.reg-actions .btn {
    padding: 10px 25px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    border: none;
    font-size: 14px;
    transition: all 0.3s;
    text-transform: uppercase;
}

.reg-actions .btn.secondary {
    background: #333;
    color: #ccc;
    border: 1px solid #444;
}

.reg-actions .btn.secondary:hover {
    background: #444;
    color: white;
    border-color: #666;
}

/* Base button style (Disabled state primarily) */
.reg-actions .btn.primary {
    background: #111;
    color: #555;
    border: 1px solid #333;
    cursor: not-allowed;
    flex-grow: 1;
    /* Make it prominent */
}

/* Valid State - NEON GREEN */
.reg-actions .btn.primary.valid {
    background: #0aff0a;
    color: black;
    border: 1px solid #0aff0a;
    box-shadow: 0 0 20px rgba(10, 255, 10, 0.6);
    cursor: pointer;
    transform: scale(1.02);
}

.reg-actions .btn.primary.valid:hover {
    background: #00cc00;
    box-shadow: 0 0 30px rgba(10, 255, 10, 0.8);
    transform: scale(1.05);
}