.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(4, 44, 78, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    padding: 20px;
}

.modal-overlay.visible { opacity: 1; visibility: visible; }

.modal-container {
    background-color: var(--white-color);
    width: 100%;
    max-width: 800px;
    display: flex;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    position: relative;
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-container-small {
    background-color: var(--white-color);
    width: 100%;
    max-width: 550px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    position: relative;
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.visible .modal-container,
.modal-overlay.visible .modal-container-small { transform: scale(1); }

.modal-image-column { flex-basis: 40%; background-color: var(--primary-color); }
.modal-image-column img { width: 100%; height: 100%; object-fit: cover; }

.modal-content-column {
    flex-basis: 60%;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-container-small .modal-content-column { flex-basis: 100%; padding: 30px 35px; }

.modal-tag {
    background-color: #e0f7fa;
    color: var(--primary-color);
    padding: 5px 12px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.8rem;
    align-self: flex-start;
    margin-bottom: 15px;
}

.modal-content-column h2 {
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.2;
}

.modal-content-column p {
    color: var(--text-color-dark);
    opacity: 0.8;
    margin-bottom: 15px;
    font-size: 1rem;
    line-height: 1.6;
}

.modal-contact-info { margin-top: 15px; width: 100%; }
.modal-contact-info p { font-weight: 600; margin-bottom: 10px; color: var(--primary-color); }

.copy-item {
    display: flex;
    align-items: center;
    border-radius: 10px;
    padding: 12px 15px;
    margin-bottom: 12px;
    border: 1px solid var(--border-light-color);
}

.copy-item a {
    color: inherit;
    text-decoration: none;
    margin-right: auto;
    display: flex;
    align-items: center;
}

.copy-item a svg { margin-right: 15px; flex-shrink: 0; }
.copy-item span { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.copy-item.email-style { background-color: #eaf5ff; border-color: #aed6f1; }
.copy-item.email-style svg { stroke: #0078d4; }
.copy-item.email-style span { color: #005a9e; }

.copy-item.whatsapp-style { background-color: #e7f8ee; border-color: #a2d9bb; }
.copy-item.whatsapp-style svg { stroke: #128c7e; }
.copy-item.whatsapp-style span { color: #075e54; }

.copy-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    border-radius: 5px;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
}

.copy-button:hover { background-color: rgba(0, 0, 0, 0.05); }
.copy-button svg { stroke: var(--primary-color); margin: 0; width: 18px; height: 18px; }
.copy-button.copied svg { stroke: #25D366; }

.modal-close {
    position: absolute;
    top: 15px; right: 15px;
    background: rgba(224, 247, 250, 0.8);
    border: none;
    border-radius: 50%;
    color: var(--primary-color);
    width: 36px; height: 36px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-close:hover {
    background: var(--primary-color);
    color: var(--white-color);
    transform: rotate(90deg);
}

.modal-close i { width: 20px; height: 20px; }

.modal-features-list { list-style: none; margin: 15px 0; padding: 0; }
.modal-features-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.95rem;
}
.modal-features-list svg { stroke: var(--secondary-color); width: 18px; height: 18px; flex-shrink: 0; }

/* Promo & Plan Overlays Specifics */
#promoModalOverlay .modal-container { max-width: 900px; }
#promoModalOverlay .modal-image-column { flex-basis: 50%; display: block !important; }
#promoModalOverlay .modal-content-column { flex-basis: 50%; padding: 30px 40px; text-align: center; }
.modal-header-logo { max-height: 85px; max-width: 150px; margin: 0 auto 15px auto; display: block; }
#promoModalOverlay .modal-tag { align-self: center; }
#promoModalOverlay h2 { font-size: 1.9rem; line-height: 1.2; margin-bottom: 8px; }
#promoModalOverlay p { font-size: 0.95rem; margin-bottom: 15px; }
#promoModalOverlay .modal-features-list { text-align: left; display: inline-block; margin: 0 auto 15px auto; }
#promoModalOverlay .modal-features-list li { font-size: 0.9rem; margin-bottom: 8px; }
#promoModalOverlay .modal-contact-info { margin-top: 20px; }
#promoModalOverlay .modal-contact-info .copy-item.email-style { display: none; }
#promoModalOverlay .copy-item.whatsapp-style {
    background-color: #25D366;
    border-color: #128c7e;
    transition: all 0.3s ease;
    padding: 8px 14px;
    justify-content: center;
}
#promoModalOverlay .copy-item.whatsapp-style:hover { transform: scale(1.05); box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4); }
#promoModalOverlay .copy-item.whatsapp-style a { margin-right: 0; justify-content: center; width: 100%; gap: 12px; }
#promoModalOverlay .copy-item.whatsapp-style span { color: var(--white-color); font-weight: 700; font-size: 1.1rem; }
#promoModalOverlay .copy-item.whatsapp-style svg { stroke: var(--white-color); }
#promoModalOverlay .copy-item.whatsapp-style .copy-button { display: none; }

#planModalOverlay .modal-container-small { background: linear-gradient(145deg, var(--white-color), #f0f8ff); overflow: hidden; }
#planModalOverlay .modal-content-column { text-align: center; padding: 30px 35px 35px 35px; }
#planModalOverlay .modal-header-logo { max-height: 80px; margin-bottom: 10px; }
#planModalOverlay .modal-tag { background-color: var(--secondary-color); color: var(--white-color); align-self: center; }
#planModalOverlay h2 { font-size: 1.9rem; line-height: 1.2; color: var(--primary-color); }
#planModalOverlay .modal-subtitle { font-size: 1rem; color: var(--text-color-dark); opacity: 0.8; margin: 5px auto 25px auto; max-width: 400px; }
#planModalOverlay .modal-features-list { text-align: left; display: inline-block; margin-bottom: 30px; border-top: 1px solid var(--border-light-color); padding-top: 20px; }
#planModalOverlay .modal-features-list li { font-size: 0.95rem; font-weight: 600; }

.modal-whatsapp-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #25D366;
    color: var(--white-color);
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.15rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    border: none;
}

.modal-whatsapp-button:hover { transform: translateY(-4px) scale(1.05); box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5); }
.modal-whatsapp-button i { width: 24px; height: 24px; }