/* ==================== */
/* WARRANTY MODAL */
/* ==================== */

.warranty-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 1rem;
}

.warranty-modal.active {
    display: flex;
}

.warranty-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
    cursor: pointer;
    z-index: 1;
}

.warranty-modal-content {
    position: relative;
    background: var(--bg-primary);
    border: 2px solid rgba(0, 240, 255, 0.3);
    border-radius: 20px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    z-index: 2;
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

body.dark-theme .warranty-modal-content {
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.98), rgba(20, 20, 20, 0.98));
    border-color: rgba(0, 255, 255, 0.4);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.8),
        0 0 40px rgba(0, 255, 255, 0.2),
        inset 0 1px 0 rgba(0, 255, 255, 0.1);
}

.warranty-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 0, 0, 0.1);
    border: 2px solid rgba(255, 0, 0, 0.3);
    color: #ff0080;
    font-size: 1.2rem;
    cursor: pointer !important;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999 !important;
    pointer-events: auto !important;
}

.warranty-modal-close:hover {
    background: rgba(255, 0, 0, 0.2);
    transform: rotate(90deg) scale(1.1);
}

body.dark-theme .warranty-modal-close {
    background: rgba(255, 0, 128, 0.2);
    border-color: rgba(255, 0, 128, 0.5);
    box-shadow: 0 0 10px rgba(255, 0, 128, 0.3);
}

body.dark-theme .warranty-modal-close:hover {
    background: rgba(255, 0, 128, 0.3);
    box-shadow: 0 0 20px rgba(255, 0, 128, 0.5);
}

.warranty-modal-header {
    padding: 2rem 2rem 1.5rem;
    border-bottom: 1px solid rgba(0, 240, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.warranty-modal-header i {
    font-size: 2rem;
    color: var(--neon-green);
}

body.dark-theme .warranty-modal-header i {
    text-shadow: 0 0 15px rgba(0, 255, 65, 0.8);
}

.warranty-modal-header h3 {
    font-size: 1.8rem;
    margin: 0;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-pink));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.warranty-modal-body {
    padding: 2rem;
}

.warranty-covered,
.warranty-not-covered {
    margin-bottom: 2rem;
    padding: 1.5rem;
    border-radius: 12px;
    background: rgba(0, 240, 255, 0.05);
    border: 1px solid rgba(0, 240, 255, 0.2);
}

.warranty-not-covered {
    background: rgba(255, 0, 128, 0.05);
    border-color: rgba(255, 0, 128, 0.2);
}

body.dark-theme .warranty-covered {
    background: rgba(0, 255, 255, 0.08);
    border-color: rgba(0, 255, 255, 0.3);
}

body.dark-theme .warranty-not-covered {
    background: rgba(255, 0, 128, 0.08);
    border-color: rgba(255, 0, 128, 0.3);
}

.warranty-covered h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--neon-green);
}

.warranty-not-covered h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--neon-pink);
}

body.dark-theme .warranty-covered h4 {
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.6);
}

body.dark-theme .warranty-not-covered h4 {
    text-shadow: 0 0 10px rgba(255, 0, 128, 0.6);
}

.warranty-covered ul,
.warranty-not-covered ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.warranty-covered ul li,
.warranty-not-covered ul li {
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1rem;
    line-height: 1.6;
}

.warranty-covered ul li:last-child,
.warranty-not-covered ul li:last-child {
    border-bottom: none;
}

.warranty-note {
    padding: 1.5rem;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.1), rgba(255, 0, 255, 0.1));
    border: 1px solid rgba(0, 240, 255, 0.3);
}

body.dark-theme .warranty-note {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.15), rgba(255, 0, 255, 0.15));
    border-color: rgba(0, 240, 255, 0.4);
}

.warranty-note p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* Warranty Info Button */
.warranty-info {
    cursor: pointer !important;
    transition: all 0.3s ease;
    padding: 0;
    border: none;
    background: transparent;
}

/* Responsive */
@media (max-width: 768px) {
    .warranty-modal {
        padding: 0.5rem;
    }
    
    .warranty-modal-content {
        max-height: 95vh;
    }
    
    .warranty-modal-close {
        top: 0.5rem;
        right: 0.5rem;
        width: 40px;
        height: 40px;
        z-index: 10003;
    }
    
    .warranty-modal-header {
        padding: 1.5rem 1rem 1rem;
    }
    
    .warranty-modal-header h3 {
        font-size: 1.3rem;
    }
    
    .warranty-modal-header i {
        font-size: 1.5rem;
    }
    
    .warranty-modal-body {
        padding: 1rem;
    }
    
    .warranty-covered,
    .warranty-not-covered {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .warranty-covered h4,
    .warranty-not-covered h4 {
        font-size: 1.1rem;
    }
    
    .warranty-covered ul li,
    .warranty-not-covered ul li {
        font-size: 0.9rem;
        padding: 0.6rem 0;
    }
    
    .warranty-note {
        padding: 1rem;
    }
    
    .warranty-note p {
        font-size: 0.85rem;
    }
}

