/**
 * Modal Styles - Optimized for Performance
 * Consolidated and deduplicated for better PageSpeed scores
 */

/* Modal base styles */
.esim-modal,
#coverage-modal,
#confirmation-modal {
    display: none;
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 99999 !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px;
    box-sizing: border-box;
    margin: 0 !important;
}

.esim-modal.esim-modal-active,
.esim-modal[style*="flex"],
#coverage-modal.esim-modal-active,
#confirmation-modal.esim-modal-active {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.esim-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 1;
}

.esim-modal-content {
    position: relative !important;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 650px;
    width: 100%;
    max-height: 85vh;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease;
    z-index: 2;
    margin: 0 auto !important;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

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

/* Modal header - Enhanced */
.esim-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 28px 28px 24px;
    border-bottom: 1px solid #e2e8f0;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    position: relative;
    overflow: hidden;
}

.esim-modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #10b981, #f59e0b, #ec4899);
}

.esim-modal-header h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 12px;
}

#coverage-modal-title::before {
    content: '📡';
    font-size: 26px;
}

#confirmation-modal-title::before {
    content: '⚡';
    font-size: 26px;
}

/* Modal close button - Enhanced */
.esim-modal-close {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 2px solid #e2e8f0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #64748b;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.esim-modal-close::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50%;
}

.esim-modal-close:hover {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border-color: #dc2626;
    transform: scale(1.1) rotate(90deg);
    color: white;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.esim-modal-close:hover::before {
    opacity: 1;
}

.esim-modal-close:active {
    transform: scale(0.95) rotate(90deg);
}

/* Loading states - Enhanced */
.esim-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #374151; /* Darker gray for better visibility */
    font-style: italic;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-radius: 16px;
    border: 2px dashed #cbd5e1;
}

.esim-loading::before {
    content: '';
    width: 32px;
    height: 32px;
    border: 3px solid #e2e8f0;
    border-top: 3px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 16px;
}

/* Modal body - Enhanced */
.esim-modal-body {
    padding: 28px;
    max-height: calc(85vh - 140px);
    overflow-y: auto;
    flex: 1;
    background: linear-gradient(135deg, #fafbfc 0%, #ffffff 100%);
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

/* Custom scrollbar for modal body */
.esim-modal-body::-webkit-scrollbar {
    width: 8px;
}

.esim-modal-body::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.esim-modal-body::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #cbd5e1, #94a3b8);
    border-radius: 4px;
}

.esim-modal-body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #94a3b8, #64748b);
}

/* Coverage Details Styling - Enhanced */
.coverage-details {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-radius: 16px;
    padding: 4px;
}

.country-coverage {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.country-coverage::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #10b981, #f59e0b);
    border-radius: 16px 16px 0 0;
}

.country-coverage:last-child {
    margin-bottom: 0;
}

.country-coverage:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.country-coverage h4 {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0 0 20px 0;
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    padding-bottom: 12px;
    border-bottom: 2px solid #f1f5f9;
}

.country-coverage .country-flag {
    width: 40px;
    height: 30px;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    border: 2px solid #ffffff;
}

.network-coverage {
    background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.network-coverage strong {
    color: #374151;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 16px;
}

.network-coverage strong::before {
    content: '📡';
    font-size: 18px;
}

.network-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
}

.network-list li {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    padding: 16px 20px;
    border-radius: 12px;
    border-left: 5px solid #10b981;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.network-list li::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, #10b981, #059669);
}

.network-list li:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
    border-left-color: #059669;
}

.network-list li strong {
    color: #1e293b;
    margin: 0;
    display: inline;
    font-weight: 600;
    font-size: 15px;
}

.network-type {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Add icons and visual enhancements */
.network-coverage::before {
    content: '';
    position: absolute;
    top: -10px;
    right: -10px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 50%;
    opacity: 0.1;
}

/* No coverage state */
.no-coverage {
    text-align: center;
    padding: 40px 20px;
    color: #64748b;
    font-style: italic;
}

.no-coverage::before {
    content: '📵';
    font-size: 48px;
    display: block;
    margin-bottom: 16px;
}

/* Info Details Styling - Enhanced */
.esim-info-details {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-radius: 16px;
    padding: 4px;
}

.esim-info-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 24px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.esim-info-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6, #ec4899);
    border-radius: 16px 16px 0 0;
}

.esim-info-section:last-child {
    margin-bottom: 0;
}

.info-title {
    margin: 0 0 24px 0;
    font-size: 22px;
    font-weight: 700;
    color: #111827; /* Darker for better contrast */
    text-align: center;
    padding-bottom: 16px;
    border-bottom: 2px solid #f1f5f9;
    position: relative;
}

.info-title::before {
    content: '⚡';
    font-size: 24px;
    margin-right: 8px;
}

.info-items {
    background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.info-item {
    display: flex;
    align-items: flex-start;
    padding: 20px 24px;
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.2s ease;
    position: relative;
}

.info-item:last-child {
    border-bottom: none;
}

.info-item:nth-child(even) {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

.info-item:hover {
    background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 100%); /* More noticeable hover state */
    transform: translateX(4px);
    border-left: 4px solid #2563eb; /* Darker blue for better visibility */
    padding-left: 20px;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.1); /* Subtle shadow on hover */
}

.info-label {
    font-weight: 700;
    color: #1f2937; /* Darker for better contrast */
    min-width: 200px;
    flex-shrink: 0;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-label::before {
    content: '●';
    color: #2563eb; /* Slightly darker blue for better visibility */
    font-size: 12px;
}

.info-value {
    color: #111827; /* Much darker for better readability */
    flex: 1;
    font-weight: 500;
    line-height: 1.6;
    font-size: 15px;
}

/* Info Modal Specific Enhancements for Better Readability */
#info-modal .esim-modal-body {
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
}

#info-modal .esim-modal-header {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-bottom: 2px solid #0ea5e9;
}

#info-modal .esim-modal-header h3 {
    color: #0c4a6e;
    font-weight: 800;
}

#info-modal .info-item {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 8px;
}

#info-modal .info-item:hover {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-color: #2563eb;
    transform: translateY(-1px);
}

/* Add specific icons for different info types */
.info-item:has(.info-label:contains("Service Type")) .info-label::before {
    content: '🔧';
}

.info-item:has(.info-label:contains("Data Breakpoint")) .info-label::before {
    content: '🌐';
}

.info-item:has(.info-label:contains("Service Provider")) .info-label::before {
    content: '🏢';
}

.info-item:has(.info-label:contains("eKYC")) .info-label::before {
    content: '🆔';
}

.info-item:has(.info-label:contains("Pre-activation")) .info-label::before {
    content: '⏰';
}

.info-item:has(.info-label:contains("Activation Method")) .info-label::before {
    content: '🚀';
}

.info-item:has(.info-label:contains("Unlimited")) .info-label::before {
    content: '∞';
}

.info-item:has(.info-label:contains("Additional")) .info-label::before {
    content: '📋';
}

/* Enhanced no-info state */
.no-info {
    text-align: center;
    padding: 60px 20px;
    color: #64748b;
    font-style: italic;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-radius: 16px;
    border: 2px dashed #cbd5e1;
}

.no-info::before {
    content: '📝';
    font-size: 48px;
    display: block;
    margin-bottom: 16px;
    opacity: 0.6;
}

/* Special formatting for different value types */
.info-value strong {
    color: #059669;
    font-weight: 700;
}

.info-value em {
    color: #7c3aed;
    font-style: normal;
    font-weight: 600;
}

/* Multi-line content in Additional Info */
.info-value p {
    margin: 0 0 8px 0;
    line-height: 1.6;
}

.info-value p:last-child {
    margin-bottom: 0;
}

/* Error states */
.esim-error {
    background: #f8d7da;
    color: #721c24;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid #f5c6cb;
    text-align: center;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .esim-modal {
        padding: 16px;
    }
    
    .esim-modal-content {
        max-width: 100%;
        max-height: min(90dvh, 90vh, calc(100vh - 32px));
        border-radius: 12px;
    }
    
    .esim-modal-header {
        padding: 20px 20px 16px;
    }
    
    .esim-modal-header h3 {
        font-size: 18px;
    }
    
    .esim-modal-body {
        padding: 20px;
        max-height: min(calc(90dvh - 80px), calc(90vh - 80px), calc(100vh - 112px));
        scrollbar-width: thin;
        scrollbar-color: #cbd5e1 #f1f5f9;
    }
    
    .esim-modal-actions {
        flex-direction: column-reverse;
        gap: 12px;
    }
    
    .esim-btn-cancel,
    .esim-btn-confirm,
    .esim-confirm-add-btn {
        width: 100%;
        min-width: auto;
        padding: 16px 24px;
        font-size: 16px;
        border-radius: 10px;
    }
    
    .destination-list {
        grid-template-columns: 1fr;
    }
    
    .country-coverage,
    .esim-info-section {
        padding: 16px;
        margin-bottom: 12px;
    }
    
    .info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 12px 16px;
    }
    
    .info-label {
        min-width: auto;
        font-size: 14px;
    }
    
    .info-value {
        font-size: 14px;
    }
    
    .network-list li {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 10px 12px;
    }
}

/* Loading states */
.esim-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: #6c757d;
    font-style: italic;
}

.esim-loading::before {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid #dee2e6;
    border-top: 2px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 12px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Product summary in confirmation modal */
.esim-selected-product-info {
    background: #f9fafb;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.esim-selected-product-info h4 {
    margin: 0 0 12px 0;
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.3;
}

.esim-product-details {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.esim-product-price {
    font-size: 20px;
    font-weight: 700;
    color: #059669;
}

.esim-product-data {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    background: #dbeafe;
    color: #1e40af;
}

/* Confirmation section */
.esim-confirmation-section {
    background: #fef3c7;
    border: 1px solid #fde68a;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
}

.esim-checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
}

.esim-checkbox-wrapper input[type="checkbox"] {
    margin-top: 2px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    flex-shrink: 0;
}

.checkbox-label {
    font-size: 14px;
    line-height: 1.5;
    color: #92400e;
}

/* Modal actions - Enhanced */
.esim-modal-actions {
    display: flex;
    gap: 16px;
    justify-content: space-between;
    padding: 24px 0 0 0;
    border-top: 2px solid #f1f5f9;
    margin-top: 24px;
    background: linear-gradient(135deg, #fafafa 0%, #ffffff 100%);
    border-radius: 0 0 16px 16px;
    padding: 20px 28px 24px 28px;
    margin: 20px -28px -24px -28px;
}

.esim-btn-cancel,
.esim-btn-confirm,
.esim-confirm-add-btn {
    padding: 16px 32px;
    border-radius: 14px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    min-width: 160px;
    position: relative;
    overflow: hidden;
    text-transform: none;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.esim-btn-cancel {
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
    color: #374151;
    border: 2px solid #d1d5db;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.esim-btn-cancel:hover {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    border-color: #9ca3af;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    color: #1f2937;
}

.esim-btn-cancel:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.esim-btn-confirm,
.esim-confirm-add-btn {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    color: white;
    border: 2px solid #16a34a;
    box-shadow: 0 6px 16px rgba(34, 197, 94, 0.4);
    position: relative;
}

.esim-btn-confirm::before,
.esim-confirm-add-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;
}

.esim-btn-confirm:hover:not(:disabled),
.esim-confirm-add-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #15803d 0%, #166534 100%);
    border-color: #15803d;
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 24px rgba(34, 197, 94, 0.5);
}

.esim-btn-confirm:hover:not(:disabled)::before,
.esim-confirm-add-btn:hover:not(:disabled)::before {
    left: 100%;
}

.esim-btn-confirm:active:not(:disabled),
.esim-confirm-add-btn:active:not(:disabled) {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 6px 16px rgba(34, 197, 94, 0.4);
}

.esim-btn-confirm:disabled,
.esim-confirm-add-btn:disabled {
    background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%) !important;
    color: #9ca3af !important;
    cursor: not-allowed !important;
    border-color: #e5e7eb !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06) !important;
    transform: none !important;
    opacity: 0.6 !important;
}

.esim-btn-confirm:disabled::before,
.esim-confirm-add-btn:disabled::before {
    display: none;
}

/* Add shopping cart icon to Buy Now button */
.esim-btn-confirm::after,
.esim-confirm-add-btn::after {
    content: '🛒';
    margin-left: 8px;
    font-size: 16px;
    display: inline-block;
    animation: bounceIcon 2s infinite;
}

@keyframes bounceIcon {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-3px);
    }
    60% {
        transform: translateY(-1px);
    }
}

.esim-btn-confirm:hover:not(:disabled)::after,
.esim-confirm-add-btn:hover:not(:disabled)::after {
    animation: bounceIcon 0.6s infinite;
}

/* Add cancel icon to Cancel button */
.esim-btn-cancel::after {
    content: '✕';
    margin-left: 8px;
    font-size: 14px;
    opacity: 0.7;
}

/* Enhanced disabled state that overrides everything */
.esim-btn-confirm[disabled],
.esim-confirm-add-btn[disabled] {
    background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%) !important;
    color: #9ca3af !important;
    cursor: not-allowed !important;
    border-color: #e5e7eb !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06) !important;
    transform: none !important;
    opacity: 0.6 !important;
    pointer-events: none !important;
}

.esim-btn-confirm[disabled]::after,
.esim-confirm-add-btn[disabled]::after {
    content: '⏳';
    animation: none;
    opacity: 0.5;
}

/* Coverage details styling */
.coverage-details {
    padding: 0;
}

/* Country coverage styling */
.country-coverage {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    border: 1px solid #e5e7eb;
}

.country-coverage h4 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 12px 0;
}

.country-coverage .country-flag {
    width: 32px;
    height: 24px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Network list styling */
.network-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.network-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    font-size: 14px;
}

.network-list li::before {
    content: '📶';
    font-size: 14px;
    flex-shrink: 0;
}

.network-list strong {
    color: #0073aa;
    font-weight: 600;
}

.network-type {
    color: #6b7280;
    font-size: 12px;
    background: #f3f4f6;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: auto;
    font-weight: 500;
}

/* Destination fallback styling */
.destination-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.destination-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.destination-item:hover {
    border-color: #0073aa;
    box-shadow: 0 2px 6px rgba(0, 115, 170, 0.1);
}

.destination-item .country-flag {
    width: 28px;
    height: 21px;
    object-fit: cover;
    border-radius: 3px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.destination-item span {
    font-weight: 500;
    color: #374151;
    font-size: 14px;
}

/* Loading and error states */
.esim-loading {
    text-align: center;
    padding: 40px;
    color: #6b7280;
    font-size: 16px;
}

.esim-loading::before {
    content: '';
    display: block;
    width: 32px;
    height: 32px;
    border: 3px solid #e5e7eb;
    border-top-color: #0073aa;
    border-radius: 50%;
    margin: 0 auto 16px;
    animation: spin 1s linear infinite;
}

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

/* Body modal open state */
body.modal-open {
    overflow: hidden;
}

@media (max-width: 480px) {
    .esim-modal {
        padding: 12px;
    }
    
    .esim-modal-header {
        padding: 14px 16px;
    }
    
    .esim-modal-body {
        padding: 16px;
    }
}