.ea-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    font-family: 'Inter', 'Archivo', sans-serif;
}

.ea-modal[hidden] {
    display: none;
}

body.ea-modal-open {
    overflow: hidden;
}

body.ea-modal-open .wa-widget,
body.ea-modal-open .floating-wa {
    display: none;
}

.ea-backdrop {
    position: absolute;
    inset: 0;
    background-color: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.ea-dialog {
    position: relative;
    width: 100%;
    max-width: 460px;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    border-radius: 20px;
    background-color: #fff;
    color: #1E293B;
    box-shadow: 0 40px 80px -20px rgba(15, 23, 42, 0.6);
    opacity: 0;
    transform: translateY(16px) scale(0.97);
    transition: opacity 0.25s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
}

.ea-modal.is-open .ea-backdrop {
    opacity: 1;
}

.ea-modal.is-open .ea-dialog {
    opacity: 1;
    transform: none;
}

.ea-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 1;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.16);
    color: #fff;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.ea-close:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.ea-close:focus-visible,
.ea-cta:focus-visible,
.ea-later:focus-visible {
    outline: 2px solid #1A56DB;
    outline-offset: 3px;
}

.ea-close:focus-visible {
    outline-color: #fff;
}

.ea-top {
    position: relative;
    padding: 32px 28px 28px;
    border-radius: 20px 20px 0 0;
    background:
        radial-gradient(60% 90% at 90% 0%, rgba(6, 182, 212, 0.45), transparent 70%),
        linear-gradient(160deg, #1E1B4B 0%, #0F172A 100%);
    color: #fff;
}

.ea-badge {
    display: inline-block;
    padding: 5px 12px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.08);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #BFDBFE;
}

.ea-discount {
    margin: 16px 0 0;
    font-size: clamp(3.5rem, 18vw, 5rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    background: linear-gradient(100deg, #60A5FA 0%, #06B6D4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.ea-discount span,
.ea-discount small {
    display: inline-block;
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: 0;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.8);
}

.ea-discount span {
    display: block;
    margin-bottom: 4px;
}

.ea-discount small {
    margin-left: 8px;
}

.ea-body {
    padding: 24px 28px 24px;
}

.ea-body h2 {
    margin: 0 0 10px;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #0F172A;
}

.ea-body p {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: #475569;
}

.ea-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    padding: 14px 20px;
    border-radius: 10px;
    background: linear-gradient(135deg, #1A56DB 0%, #0D6EFD 55%, #06B6D4 100%);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 24px -8px rgba(26, 86, 219, 0.6);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ea-cta:hover {
    transform: translateY(-2px);
    color: #fff;
}

.ea-later {
    display: block;
    width: 100%;
    margin-top: 8px;
    padding: 10px;
    border: 0;
    background: none;
    color: #64748B;
    font: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
}

.ea-later:hover {
    color: #0F172A;
}

.ea-body .ea-terms {
    margin-top: 6px;
    text-align: center;
    font-size: 0.75rem;
    color: #94A3B8;
}

@media (prefers-reduced-motion: reduce) {
    .ea-backdrop,
    .ea-dialog {
        transition: none;
    }
}
