/* Email Extractor AJAX Styles */

/* Notification System */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    max-width: 400px;
}

.notification {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 12px 16px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    backdrop-filter: blur(10px);
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification-success {
    background: rgba(16, 185, 129, 0.95);
    color: white;
    border-left: 4px solid #059669;
}

.notification-error {
    background: rgba(239, 68, 68, 0.95);
    color: white;
    border-left: 4px solid #dc2626;
}

.notification-info {
    background: rgba(59, 130, 246, 0.95);
    color: white;
    border-left: 4px solid #2563eb;
}

.notification-warning {
    background: rgba(245, 158, 11, 0.95);
    color: white;
    border-left: 4px solid #d97706;
}

.notification-message {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
}

.notification-close {
    background: none;
    border: none;
    color: currentColor;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    margin-left: 12px;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.notification-close:hover {
    opacity: 1;
}

/* Completion Card Styles */
.completion-card {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border: 1px solid #bbf7d0;
}

.completion-header {
    margin-bottom: 2rem;
}

.completion-icon {
    margin-bottom: 1rem;
}

.completion-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #059669;
    margin-bottom: 0.5rem;
}

.completion-message {
    color: #047857;
    font-size: 1rem;
}

.completion-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #059669;
}

.stat-label {
    font-size: 0.875rem;
    color: #047857;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.completion-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.view-results-btn, .new-extraction-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    font-size: 0.875rem;
}

.view-results-btn {
    background: #059669;
    color: white;
}

.view-results-btn:hover {
    background: #047857;
    transform: translateY(-1px);
}

.new-extraction-btn {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.new-extraction-btn:hover {
    background: #e5e7eb;
    transform: translateY(-1px);
}

/* Enhanced Status Updates */
.status-updates {
    max-height: 300px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #d1d5db #f9fafb;
}

.status-updates::-webkit-scrollbar {
    width: 6px;
}

.status-updates::-webkit-scrollbar-track {
    background: #f9fafb;
    border-radius: 3px;
}

.status-updates::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

.status-updates::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

.update-item {
    transition: all 0.3s ease;
    animation: slideInLeft 0.3s ease;
}

.update-item:hover {
    background: #f8fafc;
    border-left-color: #059669;
}

@keyframes slideInLeft {
    from {
        transform: translateX(-20px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.view-results-link {
    color: #059669;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.view-results-link:hover {
    border-bottom-color: #059669;
}

/* Loading States */
.btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Enhanced Processing Card */
.processing-card {
    background: linear-gradient(135deg, #fef7f0 0%, #fff7ed 100%);
    border: 1px solid #fed7aa;
}

.processing-title {
    color: #ea580c;
}

.processing-message {
    color: #c2410c;
}

.spinner-large {
    animation: spin 2s linear infinite;
}

/* Enhanced Form States */
.extraction-form.processing {
    pointer-events: none;
    opacity: 0.7;
}

.extraction-form.processing .extract-btn,
.extraction-form.processing .bulk-extract-btn {
    background: #9ca3af;
    cursor: not-allowed;
}

/* Responsive Notifications */
@media (max-width: 640px) {
    .notification-container {
        left: 20px;
        right: 20px;
        max-width: none;
    }
    
    .notification {
        margin-bottom: 8px;
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .completion-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .completion-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .view-results-btn, .new-extraction-btn {
        width: 100%;
        max-width: 200px;
    }
}

/* Error Message Enhancements */
.error-message {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: 1rem;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.error-message::before {
    content: "⚠️";
    font-size: 16px;
}

/* Success Animation */
@keyframes checkmark {
    0% {
        stroke-dashoffset: 50;
    }
    100% {
        stroke-dashoffset: 0;
    }
}

.completion-icon svg path {
    stroke-dasharray: 50;
    stroke-dashoffset: 50;
    animation: checkmark 0.6s ease-in-out 0.3s forwards;
}

/* Pulse Animation for Processing */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.processing-card .processing-icon {
    animation: pulse 2s infinite;
}

/* Enhanced Export Buttons */
.export-btn {
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.export-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.export-btn:hover::before {
    left: 100%;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .notification {
        backdrop-filter: blur(10px);
    }
    
    .completion-card {
        background: linear-gradient(135deg, #064e3b 0%, #065f46 100%);
        border-color: #059669;
    }
    
    .completion-stats {
        background: rgba(0, 0, 0, 0.3);
    }
    
    .processing-card {
        background: linear-gradient(135deg, #431407 0%, #451a03 100%);
        border-color: #ea580c;
    }
    
    .error-message {
        background: #450a0a;
        border-color: #dc2626;
        color: #fca5a5;
    }
}

/* Bulk Results Styles */
.domains-summary {
    margin: 2rem 0;
}

.domains-summary h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
}

.domain-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.domain-summary-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.2s ease;
}

.domain-summary-item:hover {
    background: #f1f5f9;
    border-color: #FF6B35;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.1);
}

.domain-name {
    font-weight: 600;
    color: #1f2937;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.domain-stats {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.email-count {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 0.375rem 0.875rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.email-count::before {
    content: '📧';
    font-size: 0.75rem;
}

.platform-tag {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    padding: 0.375rem 0.875rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.platform-tag::before {
    content: '🏷️';
    font-size: 0.75rem;
}

.confidence-badge {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    padding: 0.375rem 0.875rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    box-shadow: 0 2px 4px rgba(245, 158, 11, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.confidence-badge::before {
    content: '⭐';
    font-size: 0.75rem;
}

.domain-emails {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.email-preview {
    font-size: 0.875rem;
    color: #4b5563;
    font-family: 'Monaco', 'Menlo', monospace;
}

.more-emails {
    font-size: 0.75rem;
    color: #6b7280;
    font-style: italic;
}

.domain-badge {
    background: #6366f1;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Enhanced Bulk Results Styles */
.bulk-results-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.bulk-results-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.bulk-results-header::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #FF6B35, #f59e0b);
    border-radius: 2px;
}

.bulk-results-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.bulk-results-subtitle {
    font-size: 1.1rem;
    color: #6b7280;
    margin-bottom: 2rem;
}

.bulk-summary {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.summary-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    padding: 1.5rem 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    text-align: center;
    transition: all 0.3s ease;
    min-width: 150px;
}

.summary-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: #FF6B35;
}

.summary-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #FF6B35;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.summary-label {
    font-size: 0.875rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.total-domains, .total-emails {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    color: #1f2937;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
}

.bulk-export-actions {
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.export-buttons-wrapper {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.bulk-export-actions .export-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    background: linear-gradient(135deg, #FF6B35 0%, #f59e0b 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.bulk-export-actions .export-btn:hover {
    background: linear-gradient(135deg, #e55a2b 0%, #d97706 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.4);
}

.bulk-export-actions .export-btn i {
    font-size: 1rem;
}

.export-help-text {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 1rem;
}

.bulk-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.domain-result-card {
    background: linear-gradient(135deg, #ffffff 0%, #fefefe 100%);
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.domain-result-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #FF6B35, #f59e0b, #10b981);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.domain-result-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    border-color: #FF6B35;
}

.domain-result-card:hover::before {
    opacity: 1;
}

.domain-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #f1f5f9;
    position: relative;
}

.domain-card-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, #FF6B35, #f59e0b);
    border-radius: 1px;
}

.domain-name {
    font-size: 1.375rem;
    font-weight: 700;
    color: #1f2937;
    word-break: break-word;
    flex: 1;
    margin-right: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.domain-name::before {
    content: '🌐';
    font-size: 1.25rem;
}

.domain-stats {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-end;
}

.domain-emails {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 250px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.domain-emails::-webkit-scrollbar {
    width: 4px;
}

.domain-emails::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 2px;
}

.domain-emails::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.domain-emails::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

.email-preview {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    position: relative;
}

.email-preview:hover {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-color: #FF6B35;
    transform: translateX(4px);
}

.email-preview::before {
    content: '✉️';
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.75rem;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.email-preview:hover::before {
    opacity: 1;
}

.email-preview .email-address {
    font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
    color: #374151;
    word-break: break-word;
    flex: 1;
    margin-right: 1rem;
    font-weight: 500;
}

.email-preview .email-meta {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.email-preview .email-type {
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    white-space: nowrap;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    letter-spacing: 0.025em;
}

.more-emails {
    text-align: center;
    padding: 0.5rem;
    color: #6b7280;
    font-size: 0.875rem;
    font-style: italic;
    background: #f9fafb;
    border-radius: 6px;
    border: 1px dashed #d1d5db;
}

.no-emails {
    text-align: center;
    padding: 1.5rem;
    color: #6b7280;
    font-style: italic;
    background: #f9fafb;
    border-radius: 6px;
    border: 1px dashed #d1d5db;
}

/* Enhanced animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}

.bulk-results-container {
    animation: fadeInScale 0.6s ease-out;
}

.domain-result-card {
    animation: slideInUp 0.4s ease-out;
    animation-fill-mode: both;
}

.domain-result-card:nth-child(1) { animation-delay: 0.1s; }
.domain-result-card:nth-child(2) { animation-delay: 0.2s; }
.domain-result-card:nth-child(3) { animation-delay: 0.3s; }
.domain-result-card:nth-child(4) { animation-delay: 0.4s; }
.domain-result-card:nth-child(5) { animation-delay: 0.5s; }
.domain-result-card:nth-child(6) { animation-delay: 0.6s; }

.summary-card {
    animation: slideInUp 0.5s ease-out;
    animation-fill-mode: both;
}

.summary-card:nth-child(1) { animation-delay: 0.1s; }
.summary-card:nth-child(2) { animation-delay: 0.2s; }
.summary-card:nth-child(3) { animation-delay: 0.3s; }

.email-preview {
    animation: slideInUp 0.3s ease-out;
    animation-fill-mode: both;
}

/* Loading shimmer effect */
.loading-shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200px 100%;
    animation: shimmer 1.5s infinite;
}

/* Mobile responsiveness for bulk results */
@media (max-width: 768px) {
    .bulk-results-container {
        padding: 1rem;
        margin: 1rem;
        border-radius: 12px;
    }
    
    .bulk-results-header h2 {
        font-size: 2rem;
    }
    
    .summary-number {
        font-size: 2rem;
    }
    
    .bulk-results-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .bulk-summary {
        flex-direction: column;
        gap: 1rem;
    }
    
    .summary-card {
        padding: 1.25rem 1.5rem;
    }
    
    .domain-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .domain-name {
        margin-right: 0;
        margin-bottom: 0;
        font-size: 1.25rem;
    }
    
    .domain-stats {
        align-items: flex-start;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .export-buttons-wrapper {
        flex-direction: column;
        align-items: center;
    }
    
    .bulk-export-actions .export-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .domain-emails {
        max-height: 200px;
    }
    
    .email-preview {
        padding: 0.75rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .email-preview .email-address {
        margin-right: 0;
        font-size: 0.8rem;
    }
}

/* SEO Badge Styles */
.seo-score-badge, .seo-grade-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    white-space: nowrap;
    display: inline-block;
    margin-left: 0.25rem;
}

.seo-score-badge {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #93c5fd;
}

.seo-grade-badge {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}

/* Social Links Styles */
.social-links {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-left: 0.5rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 12px;
    transition: all 0.2s ease;
    background: #f3f4f6;
    color: #6b7280;
}

.social-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.social-link[title="Linkedin"] {
    background: #0077b5;
    color: white;
}

.social-link[title="Twitter"] {
    background: #1da1f2;
    color: white;
}

.social-link[title="Facebook"] {
    background: #4267b2;
    color: white;
}

.social-link[title="Instagram"] {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
}

.social-link[title="Github"] {
    background: #333;
    color: white;
}

.email-meta {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

/* Email Verification Popup Styles */
.verification-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.verification-popup.show {
    opacity: 1;
}

.verification-popup .popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.verification-popup .popup-content {
    position: relative;
    background: white;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    transform: scale(0.95) translateY(20px);
    transition: transform 0.3s ease;
}

.verification-popup.show .popup-content {
    transform: scale(1) translateY(0);
}

.verification-popup .popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e5e7eb;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 16px 16px 0 0;
}

.verification-popup .popup-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.verification-popup .popup-close {
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.verification-popup .popup-close:hover {
    background: #f3f4f6;
    color: #374151;
}

.verification-popup .popup-body {
    padding: 2rem;
}

.verification-popup .popup-footer {
    padding: 1rem 2rem;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
    border-radius: 0 0 16px 16px;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.verification-result-card {
    background: white;
}

.verification-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f1f5f9;
}

.verification-result-header .email-info {
    flex: 1;
}

.verification-result-header .result-email {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 0.5rem 0;
    word-break: break-word;
}

.verification-result-header .status-indicator {
    margin-bottom: 0.5rem;
}

.verification-result-header .status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
}

.status-badge.status-valid {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}

.status-badge.status-invalid {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.status-badge.status-unknown {
    background: #fef3c7;
    color: #d97706;
    border: 1px solid #fed7aa;
}

.verification-result-header .result-score {
    margin-left: 1rem;
}

.verification-result-header .score-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FF6B35 0%, #f59e0b 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.verification-result-header .score-value {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.verification-result-header .score-label {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.9;
}

.verification-result-details {
    margin-top: 1.5rem;
}

.verification-result-details .detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.verification-result-details .detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.verification-result-details .detail-label {
    font-weight: 500;
    color: #374151;
    font-size: 0.875rem;
}

.verification-result-details .detail-value {
    font-weight: 600;
    font-size: 0.875rem;
}

.verification-result-details .detail-value.positive {
    color: #059669;
}

.verification-result-details .detail-value.negative {
    color: #dc2626;
}

.verification-result-details .detail-value.warning {
    color: #d97706;
}

/* Verify Button States */
.verify-email-btn {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.verify-email-btn:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.verify-email-btn:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.verify-email-btn.verified {
    background: #10b981;
}

.verify-email-btn.invalid {
    background: #ef4444;
}

/* Button styling for popup */
.btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: #e5e7eb;
}

.btn-primary {
    background: #FF6B35;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background: #e55a2b;
}

/* Inline Verification Results */
.verification-result-inline {
    margin-top: 0.75rem;
    padding: 1rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    animation: slideDown 0.3s ease;
}

.verification-status {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.status-badge-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.status-badge-inline.status-valid {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}

.status-badge-inline.status-invalid {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.status-badge-inline.status-unknown {
    background: #fef3c7;
    color: #d97706;
    border: 1px solid #fed7aa;
}

.confidence-score-inline {
    background: linear-gradient(135deg, #FF6B35 0%, #f59e0b 100%);
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    box-shadow: 0 2px 4px rgba(255, 107, 53, 0.3);
}

.verification-details-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.detail-item-inline {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
}

.detail-label-inline {
    color: #6b7280;
    font-weight: 500;
}

.detail-value-inline {
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.detail-value-inline.valid {
    background: #dcfce7;
    color: #166534;
}

.detail-value-inline.invalid {
    background: #fef2f2;
    color: #dc2626;
}

.detail-value-inline.warning {
    background: #fef3c7;
    color: #d97706;
}

/* Animation for inline results */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
        max-height: 0;
    }
    to {
        opacity: 1;
        transform: translateY(0);
        max-height: 200px;
    }
}

/* Email item layout adjustments */
.email-item {
    flex-direction: column;
    align-items: stretch;
}

.email-item .email-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.email-item .email-meta {
    margin-top: 0.5rem;
    justify-content: flex-end;
}

/* Mobile responsiveness for verification popup */
@media (max-width: 768px) {
    .verification-popup .popup-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .verification-popup .popup-header,
    .verification-popup .popup-body,
    .verification-popup .popup-footer {
        padding: 1rem;
    }
    
    .verification-result-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .verification-result-header .result-score {
        margin-left: 0;
        align-self: center;
    }
    
    .verification-result-details .detail-grid {
        grid-template-columns: 1fr;
    }
    
    .verification-popup .popup-footer {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .btn-secondary,
    .btn-primary {
        width: 100%;
        text-align: center;
    }
    
    /* Mobile inline verification */
    .verification-status {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .verification-details-inline {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .detail-item-inline {
        justify-content: space-between;
        width: 100%;
    }
}

/* Bulk Email Item Styles */
.bulk-email-item {
    background: linear-gradient(135deg, #ffffff 0%, #fefefe 100%);
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.bulk-email-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #FF6B35, #f59e0b, #10b981);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.bulk-email-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    border-color: #FF6B35;
}

.bulk-email-item:hover::before {
    opacity: 1;
}

.bulk-email-item .email-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.bulk-email-item .email-address {
    font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
    font-size: 0.875rem;
    font-weight: 600;
    color: #1f2937;
    word-break: break-word;
    flex: 1;
    min-width: 200px;
}

.bulk-email-item .email-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    align-items: center;
}

.bulk-email-item .email-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.bulk-email-item .source-tag {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.bulk-email-item .social-links {
    display: flex;
    gap: 0.375rem;
    align-items: center;
}

.bulk-email-item .verify-email-btn {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
}

/* Bulk verification result styling */
.bulk-verification {
    margin-top: 0.5rem;
    padding: 0.75rem;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-radius: 6px;
    border: 1px solid #cbd5e1;
}

.bulk-verification .verification-status {
    margin-bottom: 0.5rem;
    gap: 0.75rem;
}

.bulk-verification .status-badge-inline {
    font-size: 0.6875rem;
    padding: 0.25rem 0.5rem;
}

.bulk-verification .confidence-score-inline {
    font-size: 0.6875rem;
    padding: 0.25rem 0.5rem;
}

.bulk-verification .verification-details-inline {
    gap: 0.5rem;
}

.bulk-verification .detail-item-inline {
    font-size: 0.6875rem;
}

/* Enhanced email type badges for bulk */
.bulk-email-item .email-type {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    white-space: nowrap;
}

.bulk-email-item .email-type.type-business {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.bulk-email-item .email-type.type-personal {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
}

.bulk-email-item .email-type.type-executive {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
}

.bulk-email-item .email-type.type-generic {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: white;
}

.bulk-email-item .confidence-badge,
.bulk-email-item .seo-score-badge,
.bulk-email-item .seo-grade-badge {
    font-size: 0.6875rem;
    padding: 0.25rem 0.5rem;
}

/* More emails link styling for bulk */
.more-emails {
    text-align: center;
    padding: 0.75rem;
    margin-top: 0.5rem;
    color: #6b7280;
    font-size: 0.875rem;
    font-style: italic;
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    border-radius: 8px;
    border: 1px dashed #d1d5db;
    cursor: pointer;
    transition: all 0.2s ease;
}

.more-emails:hover {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border-color: #9ca3af;
    color: #4b5563;
}

/* Responsive adjustments for bulk items */
@media (max-width: 768px) {
    .bulk-email-item {
        padding: 0.75rem;
    }
    
    .bulk-email-item .email-main {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .bulk-email-item .email-address {
        font-size: 0.8125rem;
        min-width: unset;
        width: 100%;
    }
    
    .bulk-email-item .email-badges {
        width: 100%;
        justify-content: flex-start;
    }
    
    .bulk-email-item .email-meta {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 0.5rem;
    }
    
    .bulk-verification .verification-status {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .bulk-verification .verification-details-inline {
        flex-direction: column;
        gap: 0.375rem;
    }
    
    .bulk-verification .detail-item-inline {
        justify-content: space-between;
        width: 100%;
    }
}