#al-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(135deg, #4a42c7 0%, #5a3985 100%) !important;
    z-index: 999999 !important;
    display: none !important; /* Hidden by default; JS shows it */
    align-items: center !important;
    justify-content: center !important;
    pointer-events: none !important; /* Allow clicks to pass through to modal/buttons */
}

#al-overlay.active {
    display: flex !important;
    pointer-events: auto !important; /* Re-enable for outside clicks if needed */
}

#al-modal {
    background: #f8f9fa !important;
    padding: 3rem !important;
    border-radius: 20px !important;
    box-shadow: 0 25px 50px rgba(0,0,0,0.25) !important;
    max-width: 420px !important;
    width: 90% !important;
    text-align: center !important;
    z-index: 1000000 !important; /* Higher than overlay */
    position: relative !important;
    pointer-events: auto !important; /* Ensure modal receives clicks */
}

#al-modal h2 {
    color: #1a1a2e !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    margin: 0 0 0.5rem !important;
    font-size: 1.875rem !important;
    font-weight: 700 !important;
}

#al-modal p {
    color: #64748b !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    margin: 0 0 2rem !important;
    font-size: 1rem !important;
    line-height: 1.6 !important;
}

.al-buttons {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.75rem !important;
    margin-bottom: 2rem !important;
}

.al-btn {
    padding: 1rem 2rem !important;
    border: none !important;
    border-radius: 12px !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    cursor: pointer !important;
    pointer-events: auto !important;
    user-select: none !important;
    touch-action: manipulation !important;
    position: relative !important;
    z-index: 1000001 !important; /* Highest for buttons */
}

.al-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
}

.al-btn-secondary {
    background: white !important;
    color: #6c757d !important;
    border: 1px solid #dee2e6 !important;
}

.al-divider {
    width: 100% !important;
    height: 1px !important;
    background: linear-gradient(90deg, transparent, #e2e8f0, transparent) !important;
    margin: 2rem 0 1.5rem !important;
}

.al-badge {
    display: inline-block !important;
    padding: 0.375rem 0.875rem !important;
    background: rgba(102,126,234,0.1) !important;
    border: 1px solid rgba(102,126,234,0.2) !important;
    border-radius: 999px !important;
    font-size: 0.75rem !important;
    color: #667eea !important;
    font-weight: 600 !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    margin-bottom: 0.5rem !important;
}

.al-upgrade {
    color: #667eea !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-size: 0.875rem !important;
    display: block !important;
    margin-bottom: 1.5rem !important;
}

.al-powered {
    font-size: 0.75rem !important;
    color: #94a3b8 !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

.al-powered a {
    color: #667eea !important;
    text-decoration: none !important;
    font-weight: 600 !important;
}

/* Unhide body when verified */
html:not(.agelocator-loading) body {
    visibility: visible !important;
    opacity: 1 !important;
    overflow: auto !important;
}