/* ── Registration Notification Popup ── */

.reg-overlay {
    position: fixed;
    inset: 0;
    background: rgba(11, 30, 61, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.reg-overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.reg-popup {
    background: #fff;
    border-radius: 20px;
    max-width: 460px;
    width: 100%;
    padding: 2.5rem 2rem 2rem;
    box-shadow: 0 24px 80px rgba(11, 30, 61, 0.28);
    position: relative;
    transform: translateY(28px) scale(0.96);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
    opacity: 0;
    text-align: center;
}

.reg-overlay.is-visible .reg-popup {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* Close (X) button */
.reg-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    border: none;
    background: #f1f5f9;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    transition: background 0.2s, color 0.2s;
    font-size: 1.1rem;
    line-height: 1;
}
.reg-close:hover {
    background: #e2e8f0;
    color: #0B1E3D;
}

/* Icon badge */
.reg-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0B1E3D, #1A3A6B);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    box-shadow: 0 8px 24px rgba(11, 30, 61, 0.25);
}

.reg-icon svg {
    width: 30px;
    height: 30px;
    color: #00B4D8;
}

.reg-popup h2 {
    font-size: 1.35rem;
    font-weight: 800;
    color: #0B1E3D;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.reg-popup p {
    font-size: 0.92rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1.6rem;
}

.reg-popup p strong {
    color: #0B1E3D;
}

/* Buttons */
.reg-actions {
    display: flex;
    gap: 0.75rem;
    flex-direction: column;
}

.reg-btn-primary {
    display: block;
    width: 100%;
    padding: 0.85rem 1.5rem;
    background: linear-gradient(135deg, #F59E0B, #D97706);
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.4);
}
.reg-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.45);
    color: #fff;
}

.reg-btn-secondary {
    display: block;
    width: 100%;
    padding: 0.75rem 1.5rem;
    background: transparent;
    color: #64748b;
    font-size: 0.88rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.reg-btn-secondary:hover {
    border-color: #00B4D8;
    color: #0B1E3D;
    background: #f0fbff;
}

/* Already have account */
.reg-login-link {
    margin-top: 1.1rem;
    font-size: 0.82rem;
    color: #94a3b8;
}
.reg-login-link a {
    color: #00B4D8;
    font-weight: 600;
    text-decoration: none;
}
.reg-login-link a:hover {
    text-decoration: underline;
}

/* Pulse dot */
.reg-pulse {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #22c55e;
    margin-right: 6px;
    vertical-align: middle;
    position: relative;
}
.reg-pulse::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid #22c55e;
    animation: reg-pulse-ring 1.6s ease-out infinite;
}
@keyframes reg-pulse-ring {
    0%   { transform: scale(0.8); opacity: 0.8; }
    100% { transform: scale(1.8); opacity: 0; }
}

/* Mobile */
@media (max-width: 500px) {
    .reg-popup {
        padding: 2rem 1.25rem 1.5rem;
        border-radius: 16px;
    }
    .reg-popup h2 {
        font-size: 1.15rem;
    }
}
