.elp-auth-overlay {
    position: fixed; inset: 0;
    background: rgba(17, 24, 39, 0.7);
    backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center;
    z-index: 999999;
}
.elp-auth-modal {
    background: #fff;
    width: 100%; max-width: 440px;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.3);
    position: relative;
    animation: elp-slide-in 0.3s ease-out;
}
@keyframes elp-slide-in { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.elp-auth-close {
    position: absolute; top: 16px; right: 16px;
    background: #f3f4f6; border: none; border-radius: 50%;
    width: 30px; height: 30px; font-size: 18px; cursor: pointer; color: #6b7280;
}
.elp-auth-close:hover { background: #fee2e2; color: #dc2626; }

.elp-auth-tabs {
    display: flex; border-bottom: 1px solid #e5e7eb; margin-bottom: 24px;
}
.elp-tab {
    flex: 1; padding: 12px; text-align: center; cursor: pointer;
    background: none; border: none; font-size: 16px; font-weight: 600; color: #6b7280;
    border-bottom: 2px solid transparent; transition: 0.2s;
}
.elp-tab.active { color: #4f46e5; border-bottom-color: #4f46e5; }

.elp-auth-form input, .elp-auth-form select {
    width: 100%; padding: 12px 16px;
    border: 1px solid #e5e7eb; border-radius: 8px;
    margin-bottom: 16px; font-size: 14px; box-sizing: border-box;
}
.elp-auth-form input:focus, .elp-auth-form select:focus {
    outline: none; border-color: #4f46e5; box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}
.elp-btn-block { width: 100%; padding: 14px; font-size: 15px; border-radius: 8px; border: none; cursor: pointer; background: #4f46e5; color: #fff; font-weight: 600; }
.elp-btn-block:hover { background: #4338ca; }
/* Header Profile Component */
.elp-header-profile {
    position: relative;
    display: inline-block;
}

.elp-profile-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 24px;
    background: #f3f4f6;
    transition: background 0.2s;
}
.elp-profile-link:hover {
    background: #e5e7eb;
}

.elp-header-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.elp-header-welcome {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    white-space: nowrap;
}

/* Dropdown for Logout */
.elp-header-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    min-width: 150px;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    z-index: 9999;
    margin-top: 5px;
}

.elp-header-profile:hover .elp-header-dropdown,
.elp-header-profile:focus-within .elp-header-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.elp-header-dropdown a {
    display: block;
    padding: 8px 12px;
    color: #374151;
    text-decoration: none;
    font-size: 14px;
    border-radius: 6px;
    transition: 0.2s;
}

.elp-header-dropdown a:hover {
    background: #f9fafb;
    color: #4f46e5;
}