/* Advanced Eyewear Configurator - Complete Frontend Styles */

/* Base Configurator */
.aec-configurator-modern {
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
    border-radius: 20px;
    padding: 35px;
    margin: 30px 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    position: relative;
    overflow: hidden;
}

.aec-header {
    text-align: center;
    margin-bottom: 35px;
    position: relative;
    z-index: 1;
}

.aec-title {
    font-size: 2.2em;
    color: #1f2937;
    margin: 0 0 12px 0;
    font-weight: 800;
}

.aec-subtitle {
    font-size: 1.15em;
    color: #6b7280;
    margin: 0;
}

/* Package Cards */
.aec-package-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 35px;
}

.aec-package-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 30px;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.aec-package-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: #2563eb;
}

.aec-package-card.selected {
    background: #eff6ff;
    border-color: #2563eb;
    box-shadow: 0 20px 50px rgba(37, 99, 235, 0.3);
}

.aec-package-icon {
    font-size: 3.5em;
    margin-bottom: 20px;
}

.aec-package-card h4 {
    font-size: 1.4em;
    color: #1f2937;
    margin: 0 0 10px 0;
}

.aec-package-card p {
    color: #6b7280;
    font-size: 0.95em;
    line-height: 1.6;
    margin: 0 0 15px 0;
}

.aec-package-price {
    font-size: 1.3em;
    font-weight: 700;
    color: #2563eb;
    margin: 15px 0;
}

.aec-package-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 15px;
}

.aec-package-features .feature {
    color: #059669;
    font-size: 0.9em;
    text-align: left;
}

/* Buttons */
.aec-action-buttons {
    text-align: center;
    margin-top: 20px;
}

.aec-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    font-size: 1.1em;
    font-weight: 600;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}

.aec-btn-primary {
    background: #2563eb;
    color: white;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}

.aec-btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.5);
}

.aec-btn-outline {
    background: white;
    color: #2563eb;
    border: 2px solid #2563eb;
}

.aec-btn-outline:hover {
    background: #2563eb;
    color: white;
}

.aec-btn-success {
    background: #10b981;
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
    font-size: 1.1em;
}

.aec-btn-success:hover {
    background: #059669;
    transform: translateY(-3px);
}

.aec-btn-whatsapp {
    background: #25d366;
    color: white;
    font-size: 1.15em;
    padding: 18px 36px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
}

.aec-btn-whatsapp:hover {
    background: #20ba5a;
    transform: translateY(-4px);
}

/* Popup Overlay */
.aec-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.aec-popup-overlay.active {
    display: flex !important;
}

.aec-popup {
    background: white;
    border-radius: 24px;
    max-width: 1200px;
    width: 100%;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
}

/* Popup Header */
.aec-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 30px 35px;
    border-bottom: 1px solid #e5e7eb;
}

.aec-popup-title {
    font-size: 2em;
    color: #1f2937;
    margin: 0 0 8px 0;
    font-weight: 700;
}

.aec-popup-subtitle {
    color: #6b7280;
    margin: 0;
    font-size: 1.05em;
}

.aec-popup-close {
    background: #f3f4f6;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.6em;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.aec-popup-close:hover {
    background: #e5e7eb;
    color: #1f2937;
}

/* Progress Bar */
.aec-popup-progress {
    padding: 25px 35px;
    border-bottom: 1px solid #e5e7eb;
}

.aec-progress-bar {
    height: 8px;
    background: #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 25px;
}

.aec-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #2563eb, #3b82f6);
    border-radius: 10px;
    transition: width 0.3s ease;
    width: 25%;
}

.aec-progress-steps {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.aec-step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex: 1;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.aec-step-indicator.active,
.aec-step-indicator.completed {
    opacity: 1;
}

.step-number {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1em;
    transition: all 0.3s ease;
}

.aec-step-indicator.active .step-number {
    background: #2563eb;
    color: white;
}

.aec-step-indicator.completed .step-number {
    background: #10b981;
    color: white;
}

.step-label {
    font-size: 0.95em;
    color: #6b7280;
    text-align: center;
    font-weight: 500;
}

/* Popup Content */
.aec-popup-content {
    flex: 1;
    overflow-y: auto;
    padding: 35px;
}

.aec-step-content {
    display: none;
}

.aec-step-content.active {
    display: block;
}

.aec-step-header {
    text-align: center;
    margin-bottom: 35px;
}

.aec-step-header h4 {
    font-size: 1.7em;
    color: #1f2937;
    margin: 0 0 12px 0;
}

.aec-step-header p {
    color: #6b7280;
    margin: 0;
    font-size: 1.05em;
}

/* Lens Type Grid */
.aec-lens-type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.aec-lens-type-card {
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 14px;
    padding: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
}

.aec-lens-type-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.aec-lens-type-card.selected {
    background: #eff6ff;
    border-color: #2563eb;
}

.lens-type-icon {
    font-size: 3em;
    margin-bottom: 18px;
}

.aec-lens-type-card h4 {
    font-size: 1.3em;
    color: #1f2937;
    margin: 0 0 12px 0;
}

.aec-lens-type-card p {
    color: #6b7280;
    font-size: 1em;
    margin: 0;
    line-height: 1.5;
}

/* Lens Features Grid */
.aec-lens-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.aec-lens-feature-card {
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 14px;
    padding: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.aec-lens-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.aec-lens-feature-card.selected {
    background: #eff6ff;
    border-color: #2563eb;
}

.lens-feature-icon {
    font-size: 2.5em;
    margin-bottom: 12px;
}

.aec-lens-feature-card h4 {
    font-size: 1.2em;
    color: #1f2937;
    margin: 0 0 10px 0;
}

.aec-lens-feature-card p {
    color: #6b7280;
    font-size: 1em;
    margin: 0;
    line-height: 1.5;
}

/* Lens Products Grid */
.aec-lens-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.aec-lens-product-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.aec-lens-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.aec-lens-product-card.selected {
    border-color: #2563eb;
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.2);
}

.aec-lens-product-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.aec-lens-product-card .product-info {
    padding: 25px;
}

.aec-lens-product-card h4 {
    font-size: 1.2em;
    color: #1f2937;
    margin: 0 0 10px 0;
}

.aec-lens-product-card p {
    color: #6b7280;
    font-size: 1em;
    margin: 0 0 15px 0;
    line-height: 1.5;
}

.product-price {
    font-size: 1.3em;
    font-weight: 700;
    color: #2563eb;
}

.power-range-info {
    font-size: 0.95em;
    color: #059669;
    background: #d1fae5;
    padding: 8px 14px;
    border-radius: 8px;
    margin-top: 12px;
}

.select-indicator {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #10b981;
    color: white;
    display: none;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1em;
}

.aec-lens-type-card.selected .select-indicator,
.aec-lens-feature-card.selected .select-indicator,
.aec-lens-product-card.selected .select-indicator {
    display: flex;
}

/* Prescription Methods */
.aec-method-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 35px;
    border-bottom: 2px solid #e5e7eb;
}

.aec-method-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 18px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    color: #6b7280;
    transition: all 0.3s ease;
}

.aec-method-tab:hover {
    color: #1f2937;
    background: #f9fafb;
}

.aec-method-tab.active {
    color: #2563eb;
    border-bottom-color: #2563eb;
}

.tab-icon {
    font-size: 2em;
}

.tab-label {
    font-size: 1.05em;
    font-weight: 600;
}

.aec-method-content {
    display: none;
}

.aec-method-content.active {
    display: block;
}

/* Prescription Form */
.aec-prescription-form {
    background: #f9fafb;
    border-radius: 14px;
    padding: 30px;
}

.prescription-header {
    margin-bottom: 30px;
}

.prescription-header h4 {
    color: #1f2937;
    margin: 0 0 10px 0;
    font-size: 1.3em;
}

.prescription-header p {
    color: #6b7280;
    margin: 0;
    font-size: 1.05em;
}

.aec-eye-section {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 25px;
    margin-bottom: 25px;
}

.eye-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.eye-header h5 {
    color: #1f2937;
    margin: 0;
    font-size: 1.2em;
}

.eye-indicator {
    width: 40px;
    height: 40px;
    background: #2563eb;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1em;
}

.aec-input-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
}

.aec-input-field label {
    color: #374151;
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
    font-size: 1.05em;
}

.required {
    color: #dc2626;
}

.aec-input-field input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1.05em;
    transition: all 0.3s ease;
}

.aec-input-field input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.aec-input-field input.input-error {
    border-color: #dc2626;
}

.aec-input-field small {
    color: #6b7280;
    font-size: 0.95em;
    display: block;
    margin-top: 8px;
}

.range-error {
    color: #dc2626;
    font-size: 0.95em;
    margin-top: 8px;
}

/* Upload Section */
.aec-upload-area {
    border: 3px dashed #d1d5db;
    border-radius: 18px;
    padding: 50px;
    text-align: center;
    background: #f9fafb;
    transition: all 0.3s ease;
}

.aec-upload-area:hover {
    border-color: #2563eb;
    background: #eff6ff;
}

.upload-icon {
    font-size: 4.5em;
    margin-bottom: 25px;
}

.aec-upload-area h5 {
    font-size: 1.3em;
    margin-bottom: 12px;
}

.aec-upload-area p {
    font-size: 1.05em;
}

/* WhatsApp Section */
.whatsapp-header h4 {
    font-size: 1.5em;
}

.whatsapp-benefits {
    background: #f0fdf4;
    border-radius: 14px;
    padding: 30px;
    margin-bottom: 30px;
}

.whatsapp-benefits h6 {
    font-size: 1.2em;
}

.benefits-grid {
    display: grid;
    gap: 20px;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 18px;
}

.benefit-icon {
    font-size: 2em;
}

.benefit-item strong {
    font-size: 1.1em;
}

.benefit-item p {
    font-size: 1em;
}

/* Popup Footer */
.aec-popup-footer {
    padding: 25px 35px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
    background: #f9fafb;
}

.aec-price-summary {
    flex: 1;
}

.price-breakdown {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.price-item {
    display: flex;
    justify-content: space-between;
    color: #6b7280;
    font-size: 1.05em;
}

.price-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.5em;
    font-weight: 700;
    color: #1f2937;
    padding-top: 12px;
    border-top: 2px solid #e5e7eb;
    margin-top: 8px;
}

.aec-footer-actions {
    display: flex;
    gap: 15px;
}

/* Utility Classes */
.aec-hidden {
    display: none !important;
}

.aec-visible {
    display: block !important;
}

/* Notification */
.aec-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 18px 28px;
    border-radius: 14px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 100000;
    font-weight: 600;
    max-width: 450px;
    transition: all 0.3s ease;
    font-size: 1.05em;
}

.aec-notification.success {
    background: #10b981;
    color: white;
}

.aec-notification.error {
    background: #ef4444;
    color: white;
}

.aec-notification.show {
    opacity: 1;
    transform: translateY(0);
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .aec-configurator-modern {
        padding: 20px;
    }
    
    .aec-popup {
        max-height: 95vh;
        margin: 10px;
        max-width: 95vw;
    }
    
    .aec-popup-title {
        font-size: 1.5em;
    }
    
    .aec-lens-type-grid,
    .aec-lens-features-grid,
    .aec-lens-products-grid {
        grid-template-columns: 1fr;
    }
    
    .aec-popup-footer {
        flex-direction: column;
    }
    
    .step-label {
        font-size: 0.85em;
    }
}

/* Package Cards */
.aec-package-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 35px;
}

.aec-package-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 30px;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.aec-package-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: #2563eb;
}

.aec-package-card.selected {
    background: #eff6ff;
    border-color: #2563eb;
    box-shadow: 0 20px 50px rgba(37, 99, 235, 0.3);
}

.aec-package-icon {
    font-size: 3.5em;
    margin-bottom: 20px;
}

.aec-package-card h4 {
    font-size: 1.4em;
    color: #1f2937;
    margin: 0 0 10px 0;
}

.aec-package-card p {
    color: #6b7280;
    font-size: 0.95em;
    line-height: 1.6;
    margin: 0 0 15px 0;
}

.aec-package-price {
    font-size: 1.3em;
    font-weight: 700;
    color: #2563eb;
    margin: 15px 0;
}

.aec-package-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 15px;
}

.aec-package-features .feature {
    color: #059669;
    font-size: 0.9em;
    text-align: left;
}

/* Buttons */
.aec-action-buttons {
    text-align: center;
    margin-top: 20px;
}

.aec-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    font-size: 1.05em;
    font-weight: 600;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}

.aec-btn-primary {
    background: #2563eb;
    color: white;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}

.aec-btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.5);
}

.aec-btn-outline {
    background: white;
    color: #2563eb;
    border: 2px solid #2563eb;
}

.aec-btn-outline:hover {
    background: #2563eb;
    color: white;
}

.aec-btn-success {
    background: #10b981;
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.aec-btn-success:hover {
    background: #059669;
    transform: translateY(-3px);
}

.aec-btn-whatsapp {
    background: #25d366;
    color: white;
    font-size: 1.15em;
    padding: 18px 36px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
}

.aec-btn-whatsapp:hover {
    background: #20ba5a;
    transform: translateY(-4px);
}

/* Popup Overlay */
.aec-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.aec-popup-overlay.active {
    display: flex !important;
}

.aec-popup {
    background: white;
    border-radius: 24px;
    max-width: 950px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
}

/* Popup Header */
.aec-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 25px 30px;
    border-bottom: 1px solid #e5e7eb;
}

.aec-popup-title {
    font-size: 1.8em;
    color: #1f2937;
    margin: 0 0 5px 0;
    font-weight: 700;
}

.aec-popup-subtitle {
    color: #6b7280;
    margin: 0;
    font-size: 0.95em;
}

.aec-popup-close {
    background: #f3f4f6;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5em;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.aec-popup-close:hover {
    background: #e5e7eb;
    color: #1f2937;
}

/* Progress Bar */
.aec-popup-progress {
    padding: 20px 30px;
    border-bottom: 1px solid #e5e7eb;
}

.aec-progress-bar {
    height: 8px;
    background: #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 25px;
}

.aec-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #2563eb, #3b82f6);
    border-radius: 10px;
    transition: width 0.3s ease;
    width: 25%;
}

.aec-progress-steps {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.aec-step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex: 1;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.aec-step-indicator.active,
.aec-step-indicator.completed {
    opacity: 1;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    transition: all 0.3s ease;
}

.aec-step-indicator.active .step-number {
    background: #2563eb;
    color: white;
}

.aec-step-indicator.completed .step-number {
    background: #10b981;
    color: white;
}

.step-label {
    font-size: 0.85em;
    color: #6b7280;
    text-align: center;
}

/* Popup Content */
.aec-popup-content {
    flex: 1;
    overflow-y: auto;
    padding: 30px;
}

.aec-step-content {
    display: none;
}

.aec-step-content.active {
    display: block;
}

.aec-step-header {
    text-align: center;
    margin-bottom: 30px;
}

.aec-step-header h4 {
    font-size: 1.5em;
    color: #1f2937;
    margin: 0 0 10px 0;
}

.aec-step-header p {
    color: #6b7280;
    margin: 0;
}

/* Lens Type Grid */
.aec-lens-type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.aec-lens-type-card {
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
}

.aec-lens-type-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.aec-lens-type-card.selected {
    background: #eff6ff;
    border-color: #2563eb;
}

.lens-type-icon {
    font-size: 2.5em;
    margin-bottom: 15px;
}

.aec-lens-type-card h4 {
    font-size: 1.2em;
    color: #1f2937;
    margin: 0 0 10px 0;
}

.aec-lens-type-card p {
    color: #6b7280;
    font-size: 0.9em;
    margin: 0;
}

/* Lens Features Grid */
.aec-lens-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.aec-lens-feature-card {
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.aec-lens-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.aec-lens-feature-card.selected {
    background: #eff6ff;
    border-color: #2563eb;
}

.lens-feature-icon {
    font-size: 2em;
    margin-bottom: 10px;
}

.aec-lens-feature-card h4 {
    font-size: 1.1em;
    color: #1f2937;
    margin: 0 0 8px 0;
}

.aec-lens-feature-card p {
    color: #6b7280;
    font-size: 0.9em;
    margin: 0;
}

/* Lens Products Grid */
.aec-lens-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.aec-lens-product-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.aec-lens-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.aec-lens-product-card.selected {
    border-color: #2563eb;
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.2);
}

.aec-lens-product-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.aec-lens-product-card .product-info {
    padding: 20px;
}

.aec-lens-product-card h4 {
    font-size: 1.1em;
    color: #1f2937;
    margin: 0 0 8px 0;
}

.aec-lens-product-card p {
    color: #6b7280;
    font-size: 0.9em;
    margin: 0 0 12px 0;
}

.product-price {
    font-size: 1.2em;
    font-weight: 700;
    color: #2563eb;
}

.power-range-info {
    font-size: 0.85em;
    color: #059669;
    background: #d1fae5;
    padding: 6px 12px;
    border-radius: 6px;
    margin-top: 10px;
}

.select-indicator {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #10b981;
    color: white;
    display: none;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.aec-lens-type-card.selected .select-indicator,
.aec-lens-feature-card.selected .select-indicator,
.aec-lens-product-card.selected .select-indicator {
    display: flex;
}

/* Prescription Methods */
.aec-method-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid #e5e7eb;
}

.aec-method-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 15px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    color: #6b7280;
    transition: all 0.3s ease;
}

.aec-method-tab:hover {
    color: #1f2937;
    background: #f9fafb;
}

.aec-method-tab.active {
    color: #2563eb;
    border-bottom-color: #2563eb;
}

.tab-icon {
    font-size: 1.8em;
}

.tab-label {
    font-size: 0.95em;
    font-weight: 600;
}

.aec-method-content {
    display: none;
}

.aec-method-content.active {
    display: block;
}

/* Prescription Form */
.aec-prescription-form {
    background: #f9fafb;
    border-radius: 12px;
    padding: 25px;
}

.prescription-header {
    margin-bottom: 25px;
}

.prescription-header h4 {
    color: #1f2937;
    margin: 0 0 8px 0;
}

.prescription-header p {
    color: #6b7280;
    margin: 0;
}

.aec-eye-section {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.eye-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.eye-header h5 {
    color: #1f2937;
    margin: 0;
}

.eye-indicator {
    width: 36px;
    height: 36px;
    background: #2563eb;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.aec-input-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.aec-input-field label {
    color: #374151;
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

.required {
    color: #dc2626;
}

.aec-input-field input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1em;
    transition: all 0.3s ease;
}

.aec-input-field input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.aec-input-field input.input-error {
    border-color: #dc2626;
}

.aec-input-field small {
    color: #6b7280;
    font-size: 0.85em;
    display: block;
    margin-top: 6px;
}

.range-error {
    color: #dc2626;
    font-size: 0.85em;
    margin-top: 6px;
}

/* Upload Section */
.aec-upload-area {
    border: 3px dashed #d1d5db;
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    background: #f9fafb;
    transition: all 0.3s ease;
}

.aec-upload-area:hover {
    border-color: #2563eb;
    background: #eff6ff;
}

.upload-icon {
    font-size: 4em;
    margin-bottom: 20px;
}

/* WhatsApp Section */
.whatsapp-benefits {
    background: #f0fdf4;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
}

.benefits-grid {
    display: grid;
    gap: 15px;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.benefit-icon {
    font-size: 1.8em;
}

/* Popup Footer */
.aec-popup-footer {
    padding: 20px 30px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    background: #f9fafb;
}

.aec-price-summary {
    flex: 1;
}

.price-breakdown {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.price-item {
    display: flex;
    justify-content: space-between;
    color: #6b7280;
}

.price-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.3em;
    font-weight: 700;
    color: #1f2937;
    padding-top: 10px;
    border-top: 2px solid #e5e7eb;
    margin-top: 5px;
}

.aec-footer-actions {
    display: flex;
    gap: 12px;
}

/* Utility Classes */
.aec-hidden {
    display: none !important;
}

.aec-visible {
    display: block !important;
}

/* Notification */
.aec-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 100000;
    font-weight: 600;
    max-width: 400px;
    transition: all 0.3s ease;
}

.aec-notification.success {
    background: #10b981;
    color: white;
}

.aec-notification.error {
    background: #ef4444;
    color: white;
}

.aec-notification.show {
    opacity: 1;
    transform: translateY(0);
}

.spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .aec-configurator-modern {
        padding: 20px;
    }
    
    .aec-popup {
        max-height: 95vh;
        margin: 10px;
    }
    
    .aec-lens-type-grid,
    .aec-lens-features-grid,
    .aec-lens-products-grid {
        grid-template-columns: 1fr;
    }
    
    .aec-popup-footer {
        flex-direction: column;
    }
}